blib/lib/Paws/Organizations/ListPoliciesForTarget.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Organizations::ListPoliciesForTarget;
3 use Moose;
4 has Filter => (is => 'ro', isa => 'Str', required => 1);
5 has MaxResults => (is => 'ro', isa => 'Int');
6 has NextToken => (is => 'ro', isa => 'Str');
7 has TargetId => (is => 'ro', isa => 'Str', required => 1);
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ListPoliciesForTarget');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Organizations::ListPoliciesForTargetResponse');
13 class_has _result_key => (isa => 'Str', is => 'ro');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::Organizations::ListPoliciesForTarget - Arguments for method ListPoliciesForTarget on L<Paws::Organizations>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method ListPoliciesForTarget on the
25 L<AWS Organizations|Paws::Organizations> service. Use the attributes of this class
26 as arguments to method ListPoliciesForTarget.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ListPoliciesForTarget.
29  
30 =head1 SYNOPSIS
31  
32 my $organizations = Paws->service('Organizations');
33 # To retrieve a list policies attached to a root, OU, or account
34 # The following example shows how to get a list of all service control policies
35 # (SCPs) of the type specified by the Filter parameter, that are directly
36 # attached to an account. The returned list does not include policies that apply
37 # to the account because of inheritance from its location in an OU
38 # hierarchy:/n/n
39 my $ListPoliciesForTargetResponse = $organizations->ListPoliciesForTarget(
40 'Filter' => 'SERVICE_CONTROL_POLICY',
41 'TargetId' => 444444444444
42 );
43  
44 # Results:
45 my $Policies = $ListPoliciesForTargetResponse->Policies;
46  
47 # Returns a L<Paws::Organizations::ListPoliciesForTargetResponse> object.
48  
49 Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
50 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/organizations/ListPoliciesForTarget>
51  
52 =head1 ATTRIBUTES
53  
54  
55 =head2 B<REQUIRED> Filter => Str
56  
57 The type of policy that you want to include in the returned list. You
58 must specify one of the following values:
59  
60 =over
61  
62 =item *
63  
64 AISERVICES_OPT_OUT_POLICY
65 (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html)
66  
67 =item *
68  
69 BACKUP_POLICY
70 (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_backup.html)
71  
72 =item *
73  
74 SERVICE_CONTROL_POLICY
75 (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html)
76  
77 =item *
78  
79 TAG_POLICY
80 (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html)
81  
82 =back
83  
84  
85 Valid values are: C<"SERVICE_CONTROL_POLICY">, C<"TAG_POLICY">, C<"BACKUP_POLICY">, C<"AISERVICES_OPT_OUT_POLICY">
86  
87 =head2 MaxResults => Int
88  
89 The total number of results that you want included on each page of the
90 response. If you do not include this parameter, it defaults to a value
91 that is specific to the operation. If additional items exist beyond the
92 maximum you specify, the C<NextToken> response element is present and
93 has a value (is not null). Include that value as the C<NextToken>
94 request parameter in the next call to the operation to get the next
95 part of the results. Note that Organizations might return fewer results
96 than the maximum even when there are more results available. You should
97 check C<NextToken> after every operation to ensure that you receive all
98 of the results.
99  
100  
101  
102 =head2 NextToken => Str
103  
104 The parameter for receiving additional results if you receive a
105 C<NextToken> response in a previous request. A C<NextToken> response
106 indicates that more output is available. Set this parameter to the
107 value of the previous call's C<NextToken> response to indicate where
108 the output should continue from.
109  
110  
111  
112 =head2 B<REQUIRED> TargetId => Str
113  
114 The unique identifier (ID) of the root, organizational unit, or account
115 whose policies you want to list.
116  
117 The regex pattern (http://wikipedia.org/wiki/regex) for a target ID
118 string requires one of the following:
119  
120 =over
121  
122 =item *
123  
124 B<Root> - A string that begins with "r-" followed by from 4 to 32
125 lowercase letters or digits.
126  
127 =item *
128  
129 B<Account> - A string that consists of exactly 12 digits.
130  
131 =item *
132  
133 B<Organizational unit (OU)> - A string that begins with "ou-" followed
134 by from 4 to 32 lowercase letters or digits (the ID of the root that
135 the OU is in). This string is followed by a second "-" dash and from 8
136 to 32 additional lowercase letters or digits.
137  
138 =back
139  
140  
141  
142  
143  
144 =head1 SEE ALSO
145  
146 This class forms part of L<Paws>, documenting arguments for method ListPoliciesForTarget in L<Paws::Organizations>
147  
148 =head1 BUGS and CONTRIBUTIONS
149  
150 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
151  
152 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
153  
154 =cut
155