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

filter: Statementstmt 0.0% 0 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 9 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::PolicyVersion;
3 use Moose;
4 has CreateDate => (is => 'ro', isa => 'Str');
5 has Document => (is => 'ro', isa => 'Str', decode_as => 'URLJSON', method => 'Policy', traits => ['JSONAttribute']);
6 has IsDefaultVersion => (is => 'ro', isa => 'Bool');
7 has VersionId => (is => 'ro', isa => 'Str');
8  
9 1;
10  
11 ### main pod documentation begin ###
12  
13 =head1 NAME
14  
15 Paws::IAM::PolicyVersion
16  
17 =head1 USAGE
18  
19 This class represents one of two things:
20  
21 =head3 Arguments in a call to a service
22  
23 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
24 Each attribute should be used as a named argument in the calls that expect this type of object.
25  
26 As an example, if Att1 is expected to be a Paws::IAM::PolicyVersion object:
27  
28 $service_obj->Method(Att1 => { CreateDate => $value, ..., VersionId => $value });
29  
30 =head3 Results returned from an API call
31  
32 Use accessors for each attribute. If Att1 is expected to be an Paws::IAM::PolicyVersion object:
33  
34 $result = $service_obj->Method(...);
35 $result->Att1->CreateDate
36  
37 =head1 DESCRIPTION
38  
39 Contains information about a version of a managed policy.
40  
41 This data type is used as a response element in the
42 CreatePolicyVersion, GetPolicyVersion, ListPolicyVersions, and
43 GetAccountAuthorizationDetails operations.
44  
45 For more information about managed policies, refer to Managed policies
46 and inline policies
47 (https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html)
48 in the I<IAM User Guide>.
49  
50 =head1 ATTRIBUTES
51  
52  
53 =head2 CreateDate => Str
54  
55 The date and time, in ISO 8601 date-time format
56 (http://www.iso.org/iso/iso8601), when the policy version was created.
57  
58  
59 =head2 Document => Str
60  
61 The policy document.
62  
63 The policy document is returned in the response to the GetPolicyVersion
64 and GetAccountAuthorizationDetails operations. It is not returned in
65 the response to the CreatePolicyVersion or ListPolicyVersions
66 operations.
67  
68 The policy document returned in this structure is URL-encoded compliant
69 with RFC 3986 (https://tools.ietf.org/html/rfc3986). You can use a URL
70 decoding method to convert the policy back to plain JSON text. For
71 example, if you use Java, you can use the C<decode> method of the
72 C<java.net.URLDecoder> utility class in the Java SDK. Other languages
73 and SDKs provide similar functionality.
74  
75  
76 =head2 IsDefaultVersion => Bool
77  
78 Specifies whether the policy version is set as the policy's default
79 version.
80  
81  
82 =head2 VersionId => Str
83  
84 The identifier for the policy version.
85  
86 Policy version identifiers always begin with C<v> (always lowercase).
87 When a policy is created, the first policy version is C<v1>.
88  
89  
90  
91 =head1 SEE ALSO
92  
93 This class forms part of L<Paws>, describing an object used in L<Paws::IAM>
94  
95 =head1 BUGS and CONTRIBUTIONS
96  
97 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
98  
99 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
100  
101 =cut
102