blib/lib/Paws/S3/LifecycleRule.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« blib/lib/Paws/S3/JSONOutput.pm ↑ Summary blib/lib/Paws/S3/LifecycleRuleFilter.pm »
1 # Generated by default/object.tt
2 package Paws::S3::LifecycleRule;
3 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 has AbortIncompleteMultipartUpload => (is => 'ro', isa => 'Paws::S3::AbortIncompleteMultipartUpload');
5 2 has Expiration => (is => 'ro', isa => 'Paws::S3::LifecycleExpiration');
6 2 has Filter => (is => 'ro', isa => 'Paws::S3::LifecycleRuleFilter');
7 2 has ID => (is => 'ro', isa => 'Str');
8 2 has NoncurrentVersionExpiration => (is => 'ro', isa => 'Paws::S3::NoncurrentVersionExpiration');
9 2 has NoncurrentVersionTransitions => (is => 'ro', isa => 'ArrayRef[Paws::S3::NoncurrentVersionTransition]', request_name => 'NoncurrentVersionTransition', traits => ['NameInRequest']);
10 2 has Prefix => (is => 'ro', isa => 'Str');
11 2 has Status => (is => 'ro', isa => 'Str', required => 1);
12 2 has Transitions => (is => 'ro', isa => 'ArrayRef[Paws::S3::Transition]', request_name => 'Transition', traits => ['NameInRequest']);
13  
14 2 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::S3::LifecycleRule
21  
22 =head1 USAGE
23  
24 This class represents one of two things:
25  
26 =head3 Arguments in a call to a service
27  
28 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
29 Each attribute should be used as a named argument in the calls that expect this type of object.
30  
31 As an example, if Att1 is expected to be a Paws::S3::LifecycleRule object:
32  
33 $service_obj->Method(Att1 => { AbortIncompleteMultipartUpload => $value, ..., Transitions => $value });
34  
35 =head3 Results returned from an API call
36  
37 Use accessors for each attribute. If Att1 is expected to be an Paws::S3::LifecycleRule object:
38  
39 $result = $service_obj->Method(...);
40 $result->Att1->AbortIncompleteMultipartUpload
41  
42 =head1 DESCRIPTION
43  
44 A lifecycle rule for individual objects in an Amazon S3 bucket.
45  
46 =head1 ATTRIBUTES
47  
48  
49 =head2 AbortIncompleteMultipartUpload => L<Paws::S3::AbortIncompleteMultipartUpload>
50  
51  
52  
53  
54 =head2 Expiration => L<Paws::S3::LifecycleExpiration>
55  
56 Specifies the expiration for the lifecycle of the object in the form of
57 date, days and, whether the object has a delete marker.
58  
59  
60 =head2 Filter => L<Paws::S3::LifecycleRuleFilter>
61  
62 The C<Filter> is used to identify objects that a Lifecycle Rule applies
63 to. A C<Filter> must have exactly one of C<Prefix>, C<Tag>, or C<And>
64 specified. C<Filter> is required if the C<LifecycleRule> does not
65 containt a C<Prefix> element.
66  
67  
68 =head2 ID => Str
69  
70 Unique identifier for the rule. The value cannot be longer than 255
71 characters.
72  
73  
74 =head2 NoncurrentVersionExpiration => L<Paws::S3::NoncurrentVersionExpiration>
75  
76  
77  
78  
79 =head2 NoncurrentVersionTransitions => ArrayRef[L<Paws::S3::NoncurrentVersionTransition>]
80  
81 Specifies the transition rule for the lifecycle rule that describes
82 when noncurrent objects transition to a specific storage class. If your
83 bucket is versioning-enabled (or versioning is suspended), you can set
84 this action to request that Amazon S3 transition noncurrent object
85 versions to a specific storage class at a set period in the object's
86 lifetime.
87  
88  
89 =head2 Prefix => Str
90  
91 Prefix identifying one or more objects to which the rule applies. This
92 is no longer used; use C<Filter> instead.
93  
94 Replacement must be made for object keys containing special characters
95 (such as carriage returns) when using XML requests. For more
96 information, see XML related object key constraints
97 (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints).
98  
99  
100 =head2 B<REQUIRED> Status => Str
101  
102 If 'Enabled', the rule is currently being applied. If 'Disabled', the
103 rule is not currently being applied.
104  
105  
106 =head2 Transitions => ArrayRef[L<Paws::S3::Transition>]
107  
108 Specifies when an Amazon S3 object transitions to a specified storage
109 class.
110  
111  
112  
113 =head1 SEE ALSO
114  
115 This class forms part of L<Paws>, describing an object used in L<Paws::S3>
116  
117 =head1 BUGS and CONTRIBUTIONS
118  
119 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
120  
121 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
122  
123 =cut
124  
« blib/lib/Paws/S3/JSONOutput.pm ↑ Summary blib/lib/Paws/S3/LifecycleRuleFilter.pm »