blib/lib/Paws/IAM/ListPolicies.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::IAM::ListPolicies;
3 use Moose;
4 has Marker => (is => 'ro', isa => 'Str');
5 has MaxItems => (is => 'ro', isa => 'Int');
6 has OnlyAttached => (is => 'ro', isa => 'Bool');
7 has PathPrefix => (is => 'ro', isa => 'Str');
8 has PolicyUsageFilter => (is => 'ro', isa => 'Str');
9 has Scope => (is => 'ro', isa => 'Str');
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ListPolicies');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::IAM::ListPoliciesResponse');
15 class_has _result_key => (isa => 'Str', is => 'ro', default => 'ListPoliciesResult');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::IAM::ListPolicies - Arguments for method ListPolicies on L<Paws::IAM>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method ListPolicies on the
27 L<AWS Identity and Access Management|Paws::IAM> service. Use the attributes of this class
28 as arguments to method ListPolicies.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ListPolicies.
31  
32 =head1 SYNOPSIS
33  
34 my $iam = Paws->service('IAM');
35 my $ListPoliciesResponse = $iam->ListPolicies(
36 Marker => 'MymarkerType', # OPTIONAL
37 MaxItems => 1, # OPTIONAL
38 OnlyAttached => 1, # OPTIONAL
39 PathPrefix => 'MypolicyPathType', # OPTIONAL
40 PolicyUsageFilter => 'PermissionsPolicy', # OPTIONAL
41 Scope => 'All', # OPTIONAL
42 );
43  
44 # Results:
45 my $IsTruncated = $ListPoliciesResponse->IsTruncated;
46 my $Marker = $ListPoliciesResponse->Marker;
47 my $Policies = $ListPoliciesResponse->Policies;
48  
49 # Returns a L<Paws::IAM::ListPoliciesResponse> object.
50  
51 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.
52 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/iam/ListPolicies>
53  
54 =head1 ATTRIBUTES
55  
56  
57 =head2 Marker => Str
58  
59 Use this parameter only when paginating results and only after you
60 receive a response indicating that the results are truncated. Set it to
61 the value of the C<Marker> element in the response that you received to
62 indicate where the next call should start.
63  
64  
65  
66 =head2 MaxItems => Int
67  
68 Use this only when paginating results to indicate the maximum number of
69 items you want in the response. If additional items exist beyond the
70 maximum you specify, the C<IsTruncated> response element is C<true>.
71  
72 If you do not include this parameter, the number of items defaults to
73 100. Note that IAM might return fewer results, even when there are more
74 results available. In that case, the C<IsTruncated> response element
75 returns C<true>, and C<Marker> contains a value to include in the
76 subsequent call that tells the service where to continue from.
77  
78  
79  
80 =head2 OnlyAttached => Bool
81  
82 A flag to filter the results to only the attached policies.
83  
84 When C<OnlyAttached> is C<true>, the returned list contains only the
85 policies that are attached to an IAM user, group, or role. When
86 C<OnlyAttached> is C<false>, or when the parameter is not included, all
87 policies are returned.
88  
89  
90  
91 =head2 PathPrefix => Str
92  
93 The path prefix for filtering the results. This parameter is optional.
94 If it is not included, it defaults to a slash (/), listing all
95 policies. This parameter allows (through its regex pattern
96 (http://wikipedia.org/wiki/regex)) a string of characters consisting of
97 either a forward slash (/) by itself or a string that must begin and
98 end with forward slashes. In addition, it can contain any ASCII
99 character from the ! (C<\u0021>) through the DEL character (C<\u007F>),
100 including most punctuation characters, digits, and upper and lowercased
101 letters.
102  
103  
104  
105 =head2 PolicyUsageFilter => Str
106  
107 The policy usage method to use for filtering the results.
108  
109 To list only permissions policies, set C<PolicyUsageFilter> to
110 C<PermissionsPolicy>. To list only the policies used to set permissions
111 boundaries, set the value to C<PermissionsBoundary>.
112  
113 This parameter is optional. If it is not included, all policies are
114 returned.
115  
116 Valid values are: C<"PermissionsPolicy">, C<"PermissionsBoundary">
117  
118 =head2 Scope => Str
119  
120 The scope to use for filtering the results.
121  
122 To list only AWS managed policies, set C<Scope> to C<AWS>. To list only
123 the customer managed policies in your AWS account, set C<Scope> to
124 C<Local>.
125  
126 This parameter is optional. If it is not included, or if it is set to
127 C<All>, all policies are returned.
128  
129 Valid values are: C<"All">, C<"AWS">, C<"Local">
130  
131  
132 =head1 SEE ALSO
133  
134 This class forms part of L<Paws>, documenting arguments for method ListPolicies in L<Paws::IAM>
135  
136 =head1 BUGS and CONTRIBUTIONS
137  
138 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
139  
140 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
141  
142 =cut
143