File Coverage

blib/lib/Paws/IAM/PolicyVersion.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Paws::IAM::PolicyVersion;
2 1     1   427 use Moose;
  1         3  
  1         6  
3             has CreateDate => (is => 'ro', isa => 'Str');
4             has Document => (is => 'ro', isa => 'Str', decode_as => 'URLJSON', method => 'Policy', traits => ['JSONAttribute']);
5             has IsDefaultVersion => (is => 'ro', isa => 'Bool');
6             has VersionId => (is => 'ro', isa => 'Str');
7             1;
8              
9             ### main pod documentation begin ###
10              
11             =head1 NAME
12              
13             Paws::IAM::PolicyVersion
14              
15             =head1 USAGE
16              
17             This class represents one of two things:
18              
19             =head3 Arguments in a call to a service
20              
21             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
22             Each attribute should be used as a named argument in the calls that expect this type of object.
23              
24             As an example, if Att1 is expected to be a Paws::IAM::PolicyVersion object:
25              
26             $service_obj->Method(Att1 => { CreateDate => $value, ..., VersionId => $value });
27              
28             =head3 Results returned from an API call
29              
30             Use accessors for each attribute. If Att1 is expected to be an Paws::IAM::PolicyVersion object:
31              
32             $result = $service_obj->Method(...);
33             $result->Att1->CreateDate
34              
35             =head1 DESCRIPTION
36              
37             Contains information about a version of a managed policy.
38              
39             This data type is used as a response element in the
40             CreatePolicyVersion, GetPolicyVersion, ListPolicyVersions, and
41             GetAccountAuthorizationDetails actions.
42              
43             For more information about managed policies, refer to Managed Policies
44             and Inline Policies in the I<Using IAM> guide.
45              
46             =head1 ATTRIBUTES
47              
48              
49             =head2 CreateDate => Str
50              
51             The date and time, in ISO 8601 date-time format, when the policy
52             version was created.
53              
54              
55             =head2 Document => Str
56              
57             The policy document.
58              
59             The policy document is returned in the response to the GetPolicyVersion
60             and GetAccountAuthorizationDetails operations. It is not returned in
61             the response to the CreatePolicyVersion or ListPolicyVersions
62             operations.
63              
64              
65             =head2 IsDefaultVersion => Bool
66              
67             Specifies whether the policy version is set as the policy's default
68             version.
69              
70              
71             =head2 VersionId => Str
72              
73             The identifier for the policy version.
74              
75             Policy version identifiers always begin with C<v> (always lowercase).
76             When a policy is created, the first policy version is C<v1>.
77              
78              
79              
80             =head1 SEE ALSO
81              
82             This class forms part of L<Paws>, describing an object used in L<Paws::IAM>
83              
84             =head1 BUGS and CONTRIBUTIONS
85              
86             The source code is located here: https://github.com/pplu/aws-sdk-perl
87              
88             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
89              
90             =cut
91