blib/lib/Paws/S3/PutBucketLifecycleConfiguration.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 17 / 17 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Paws/S3/PutBucketInventoryConfiguration.pm ↑ Summary blib/lib/Paws/S3/PutBucketLogging.pm »
1  
2 package Paws::S3::PutBucketLifecycleConfiguration;
3 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 has Bucket => (is => 'ro', isa => 'Str', uri_name => 'Bucket', traits => ['ParamInURI'], required => 1);
5 2 has ExpectedBucketOwner => (is => 'ro', isa => 'Str', header_name => 'x-amz-expected-bucket-owner', traits => ['ParamInHeader']);
6 2 has LifecycleConfiguration => (is => 'ro', isa => 'Paws::S3::BucketLifecycleConfiguration', traits => ['ParamInBody']);
7  
8  
9 2 ▶ use MooseX::ClassAttribute;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 2 class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutBucketLifecycleConfiguration');
12 2 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/{Bucket}?lifecycle');
13 2 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
14 2 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
15 2 class_has _result_key => (isa => 'Str', is => 'ro');
16
17
18 2 1;
19  
20 ### main pod documentation begin ###
21  
22 =head1 NAME
23  
24 Paws::S3::PutBucketLifecycleConfiguration - Arguments for method PutBucketLifecycleConfiguration on L<Paws::S3>
25  
26 =head1 DESCRIPTION
27  
28 This class represents the parameters used for calling the method PutBucketLifecycleConfiguration on the
29 L<Amazon Simple Storage Service|Paws::S3> service. Use the attributes of this class
30 as arguments to method PutBucketLifecycleConfiguration.
31  
32 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutBucketLifecycleConfiguration.
33  
34 =head1 SYNOPSIS
35  
36 my $s3 = Paws->service('S3');
37 # Put bucket lifecycle
38 # The following example replaces existing lifecycle configuration, if any, on
39 # the specified bucket.
40 $s3->PutBucketLifecycleConfiguration(
41 'Bucket' => 'examplebucket',
42 'LifecycleConfiguration' => {
43 'Rules' => [
44  
45 {
46 'Expiration' => {
47 'Days' => 3650
48 },
49 'Filter' => {
50 'Prefix' => 'documents/'
51 },
52 'ID' => 'TestOnly',
53 'Status' => 'Enabled',
54 'Transitions' => [
55  
56 {
57 'Days' => 365,
58 'StorageClass' => 'GLACIER'
59 }
60 ]
61 }
62 ]
63 }
64 );
65  
66  
67 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.
68 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/s3/PutBucketLifecycleConfiguration>
69  
70 =head1 ATTRIBUTES
71  
72  
73 =head2 B<REQUIRED> Bucket => Str
74  
75 The name of the bucket for which to set the configuration.
76  
77  
78  
79 =head2 ExpectedBucketOwner => Str
80  
81 The account ID of the expected bucket owner. If the bucket is owned by
82 a different account, the request will fail with an HTTP C<403 (Access
83 Denied)> error.
84  
85  
86  
87 =head2 LifecycleConfiguration => L<Paws::S3::BucketLifecycleConfiguration>
88  
89 Container for lifecycle rules. You can add as many as 1,000 rules.
90  
91  
92  
93  
94 =head1 SEE ALSO
95  
96 This class forms part of L<Paws>, documenting arguments for method PutBucketLifecycleConfiguration in L<Paws::S3>
97  
98 =head1 BUGS and CONTRIBUTIONS
99  
100 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
101  
102 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
103  
104 =cut
105  
« blib/lib/Paws/S3/PutBucketInventoryConfiguration.pm ↑ Summary blib/lib/Paws/S3/PutBucketLogging.pm »