blib/lib/Paws/S3/PutBucketLifecycle.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 23 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::S3::PutBucketLifecycle;
3 use Moose;
4 has Bucket => (is => 'ro', isa => 'Str', uri_name => 'Bucket', traits => ['ParamInURI'], required => 1);
5 has ContentLength => (is => 'ro', isa => 'Int', header_name => 'Content-Length', traits => ['ParamInHeader']);
6 has ContentMD5 => (is => 'ro', isa => 'Str', header_name => 'Content-MD5', auto => 'MD5', traits => ['AutoInHeader']);
7 has ExpectedBucketOwner => (is => 'ro', isa => 'Str', header_name => 'x-amz-expected-bucket-owner', traits => ['ParamInHeader']);
8 has LifecycleConfiguration => (is => 'ro', isa => 'Paws::S3::LifecycleConfiguration', traits => ['ParamInBody']);
9  
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutBucketLifecycle');
14 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/{Bucket}?lifecycle');
15 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
16 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
17 class_has _result_key => (isa => 'Str', is => 'ro');
18
19
20 1;
21  
22 ### main pod documentation begin ###
23  
24 =head1 NAME
25  
26 Paws::S3::PutBucketLifecycle - Arguments for method PutBucketLifecycle on L<Paws::S3>
27  
28 =head1 DESCRIPTION
29  
30 This class represents the parameters used for calling the method PutBucketLifecycle on the
31 L<Amazon Simple Storage Service|Paws::S3> service. Use the attributes of this class
32 as arguments to method PutBucketLifecycle.
33  
34 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutBucketLifecycle.
35  
36 =head1 SYNOPSIS
37  
38 my $s3 = Paws->service('S3');
39 $s3->PutBucketLifecycle(
40 Bucket => 'MyBucketName',
41 ContentLength => 1, # OPTIONAL
42 ContentMD5 => 'MyContentMD5', # OPTIONAL
43 ExpectedBucketOwner => 'MyAccountId', # OPTIONAL
44 LifecycleConfiguration => {
45 Rules => [
46 {
47 Prefix => 'MyPrefix',
48 Status => 'Enabled', # values: Enabled, Disabled
49 AbortIncompleteMultipartUpload => {
50 DaysAfterInitiation => 1, # OPTIONAL
51 }, # OPTIONAL
52 Expiration => {
53 Date => '1970-01-01T01:00:00', # OPTIONAL
54 Days => 1, # OPTIONAL
55 ExpiredObjectDeleteMarker => 1, # OPTIONAL
56 }, # OPTIONAL
57 ID => 'MyID', # OPTIONAL
58 NoncurrentVersionExpiration => {
59 NoncurrentDays => 1, # OPTIONAL
60 }, # OPTIONAL
61 NoncurrentVersionTransition => {
62 NoncurrentDays => 1, # OPTIONAL
63 StorageClass => 'GLACIER'
64 , # values: GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE; OPTIONAL
65 }, # OPTIONAL
66 Transition => {
67 Date => '1970-01-01T01:00:00', # OPTIONAL
68 Days => 1, # OPTIONAL
69 StorageClass => 'GLACIER'
70 , # values: GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE; OPTIONAL
71 }, # OPTIONAL
72 },
73 ...
74 ],
75  
76 }, # OPTIONAL
77 );
78  
79 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.
80 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/s3/PutBucketLifecycle>
81  
82 =head1 ATTRIBUTES
83  
84  
85 =head2 B<REQUIRED> Bucket => Str
86  
87  
88  
89  
90  
91 =head2 ContentLength => Int
92  
93 Size of the body in bytes.
94  
95  
96  
97 =head2 ContentMD5 => Str
98  
99 For requests made using the AWS Command Line Interface (CLI) or AWS
100 SDKs, this field is calculated automatically.
101  
102  
103  
104 =head2 ExpectedBucketOwner => Str
105  
106 The account ID of the expected bucket owner. If the bucket is owned by
107 a different account, the request will fail with an HTTP C<403 (Access
108 Denied)> error.
109  
110  
111  
112 =head2 LifecycleConfiguration => L<Paws::S3::LifecycleConfiguration>
113  
114  
115  
116  
117  
118  
119 =head1 SEE ALSO
120  
121 This class forms part of L<Paws>, documenting arguments for method PutBucketLifecycle in L<Paws::S3>
122  
123 =head1 BUGS and CONTRIBUTIONS
124  
125 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
126  
127 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
128  
129 =cut
130