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

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::IAM::Policy;
3 use Moose;
4 has Arn => (is => 'ro', isa => 'Str');
5 has AttachmentCount => (is => 'ro', isa => 'Int');
6 has CreateDate => (is => 'ro', isa => 'Str');
7 has DefaultVersionId => (is => 'ro', isa => 'Str');
8 has Description => (is => 'ro', isa => 'Str');
9 has IsAttachable => (is => 'ro', isa => 'Bool');
10 has Path => (is => 'ro', isa => 'Str');
11 has PermissionsBoundaryUsageCount => (is => 'ro', isa => 'Int');
12 has PolicyId => (is => 'ro', isa => 'Str');
13 has PolicyName => (is => 'ro', isa => 'Str');
14 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::IAM::Tag]');
15 has UpdateDate => (is => 'ro', isa => 'Str');
16  
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::IAM::Policy
24  
25 =head1 USAGE
26  
27 This class represents one of two things:
28  
29 =head3 Arguments in a call to a service
30  
31 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
32 Each attribute should be used as a named argument in the calls that expect this type of object.
33  
34 As an example, if Att1 is expected to be a Paws::IAM::Policy object:
35  
36 $service_obj->Method(Att1 => { Arn => $value, ..., UpdateDate => $value });
37  
38 =head3 Results returned from an API call
39  
40 Use accessors for each attribute. If Att1 is expected to be an Paws::IAM::Policy object:
41  
42 $result = $service_obj->Method(...);
43 $result->Att1->Arn
44  
45 =head1 DESCRIPTION
46  
47 Contains information about a managed policy.
48  
49 This data type is used as a response element in the CreatePolicy,
50 GetPolicy, and ListPolicies operations.
51  
52 For more information about managed policies, refer to Managed policies
53 and inline policies
54 (https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html)
55 in the I<IAM User Guide>.
56  
57 =head1 ATTRIBUTES
58  
59  
60 =head2 Arn => Str
61  
62  
63  
64  
65 =head2 AttachmentCount => Int
66  
67 The number of entities (users, groups, and roles) that the policy is
68 attached to.
69  
70  
71 =head2 CreateDate => Str
72  
73 The date and time, in ISO 8601 date-time format
74 (http://www.iso.org/iso/iso8601), when the policy was created.
75  
76  
77 =head2 DefaultVersionId => Str
78  
79 The identifier for the version of the policy that is set as the default
80 version.
81  
82  
83 =head2 Description => Str
84  
85 A friendly description of the policy.
86  
87 This element is included in the response to the GetPolicy operation. It
88 is not included in the response to the ListPolicies operation.
89  
90  
91 =head2 IsAttachable => Bool
92  
93 Specifies whether the policy can be attached to an IAM user, group, or
94 role.
95  
96  
97 =head2 Path => Str
98  
99 The path to the policy.
100  
101 For more information about paths, see IAM identifiers
102 (https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html)
103 in the I<IAM User Guide>.
104  
105  
106 =head2 PermissionsBoundaryUsageCount => Int
107  
108 The number of entities (users and roles) for which the policy is used
109 to set the permissions boundary.
110  
111 For more information about permissions boundaries, see Permissions
112 boundaries for IAM identities
113 (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html)
114 in the I<IAM User Guide>.
115  
116  
117 =head2 PolicyId => Str
118  
119 The stable and unique string identifying the policy.
120  
121 For more information about IDs, see IAM identifiers
122 (https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html)
123 in the I<IAM User Guide>.
124  
125  
126 =head2 PolicyName => Str
127  
128 The friendly name (not ARN) identifying the policy.
129  
130  
131 =head2 Tags => ArrayRef[L<Paws::IAM::Tag>]
132  
133 A list of tags that are attached to the instance profile. For more
134 information about tagging, see Tagging IAM resources
135 (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the
136 I<IAM User Guide>.
137  
138  
139 =head2 UpdateDate => Str
140  
141 The date and time, in ISO 8601 date-time format
142 (http://www.iso.org/iso/iso8601), when the policy was last updated.
143  
144 When a policy has only one version, this field contains the date and
145 time when the policy was created. When a policy has more than one
146 version, this field contains the date and time when the most recent
147 policy version was created.
148  
149  
150  
151 =head1 SEE ALSO
152  
153 This class forms part of L<Paws>, describing an object used in L<Paws::IAM>
154  
155 =head1 BUGS and CONTRIBUTIONS
156  
157 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
158  
159 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
160  
161 =cut
162