File Coverage

blib/lib/Paws/Organizations/ListPoliciesForTarget.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::Organizations::ListPoliciesForTarget;
3 1     1   468 use Moose;
  1         4  
  1         7  
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 1     1   8299 use MooseX::ClassAttribute;
  1         4  
  1         14  
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 Paws::Organizations
21              
22             =head1 DESCRIPTION
23              
24             This class represents the parameters used for calling the method ListPoliciesForTarget on the
25             AWS 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             As an example:
31              
32             $service_obj->ListPoliciesForTarget(Att1 => $value1, Att2 => $value2, ...);
33              
34             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.
35              
36             =head1 ATTRIBUTES
37              
38              
39             =head2 B<REQUIRED> Filter => Str
40              
41             The type of policy that you want to include in the returned list.
42              
43             Valid values are: C<"SERVICE_CONTROL_POLICY">
44              
45             =head2 MaxResults => Int
46              
47             (Optional) Use this to limit the number of results you want included in
48             the response. If you do not include this parameter, it defaults to a
49             value that is specific to the operation. If additional items exist
50             beyond the maximum you specify, the C<NextToken> response element is
51             present and has a value (is not null). Include that value as the
52             C<NextToken> request parameter in the next call to the operation to get
53             the next part of the results. Note that Organizations might return
54             fewer results than the maximum even when there are more results
55             available. You should check C<NextToken> after every operation to
56             ensure that you receive all of the results.
57              
58              
59              
60             =head2 NextToken => Str
61              
62             Use this parameter if you receive a C<NextToken> response in a previous
63             request that indicates that there is more output available. Set it to
64             the value of the previous call's C<NextToken> response to indicate
65             where the output should continue from.
66              
67              
68              
69             =head2 B<REQUIRED> TargetId => Str
70              
71             The unique identifier (ID) of the root, organizational unit, or account
72             whose policies you want to list.
73              
74             The regex pattern for a target ID string requires one of the following:
75              
76             =over
77              
78             =item *
79              
80             Root: a string that begins with "r-" followed by from 4 to 32
81             lower-case letters or digits.
82              
83             =item *
84              
85             Account: a string that consists of exactly 12 digits.
86              
87             =item *
88              
89             Organizational unit (OU): a string that begins with "ou-" followed by
90             from 4 to 32 lower-case letters or digits (the ID of the root that the
91             OU is in) followed by a second "-" dash and from 8 to 32 additional
92             lower-case letters or digits.
93              
94             =back
95              
96              
97              
98              
99              
100             =head1 SEE ALSO
101              
102             This class forms part of L<Paws>, documenting arguments for method ListPoliciesForTarget in L<Paws::Organizations>
103              
104             =head1 BUGS and CONTRIBUTIONS
105              
106             The source code is located here: https://github.com/pplu/aws-sdk-perl
107              
108             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
109              
110             =cut
111