« blib/lib/Paws/S3Control/PutAccessPointPolicyForObjectLambda.pm
↑ Summary
blib/lib/Paws/S3Control/PutBucketPolicy.pm »
| 1 | |||
| 2 | package Paws::S3Control::PutBucketLifecycleConfiguration; | ||
| 3 | use Moose; | ||
| 4 | has AccountId => (is => 'ro', isa => 'Str', header_name => 'x-amz-account-id', traits => ['ParamInHeader'], required => 1); | ||
| 5 | has Bucket => (is => 'ro', isa => 'Str', uri_name => 'name', traits => ['ParamInURI'], required => 1); | ||
| 6 | has LifecycleConfiguration => (is => 'ro', isa => 'Paws::S3Control::LifecycleConfiguration', traits => ['ParamInBody']); | ||
| 7 | |||
| 8 | |||
| 9 | use MooseX::ClassAttribute; | ||
| 10 | |||
| 11 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutBucketLifecycleConfiguration'); | ||
| 12 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v20180820/bucket/{name}/lifecycleconfiguration'); | ||
| 13 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); | ||
| 14 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response'); | ||
| 15 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 16 | |||
| 17 | |||
| 18 | 1; | ||
| 19 | |||
| 20 | ### main pod documentation begin ### | ||
| 21 | |||
| 22 | =head1 NAME | ||
| 23 | |||
| 24 | Paws::S3Control::PutBucketLifecycleConfiguration - Arguments for method PutBucketLifecycleConfiguration on L<Paws::S3Control> | ||
| 25 | |||
| 26 | =head1 DESCRIPTION | ||
| 27 | |||
| 28 | This class represents the parameters used for calling the method PutBucketLifecycleConfiguration on the | ||
| 29 | L<AWS S3 Control|Paws::S3Control> 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-control = Paws->service('S3Control'); | ||
| 37 | $s3 -control->PutBucketLifecycleConfiguration( | ||
| 38 | AccountId => 'MyAccountId', | ||
| 39 | Bucket => 'MyBucketName', | ||
| 40 | LifecycleConfiguration => { | ||
| 41 | Rules => [ | ||
| 42 | { | ||
| 43 | Status => 'Enabled', # values: Enabled, Disabled | ||
| 44 | AbortIncompleteMultipartUpload => { | ||
| 45 | DaysAfterInitiation => 1, # OPTIONAL | ||
| 46 | }, # OPTIONAL | ||
| 47 | Expiration => { | ||
| 48 | Date => '1970-01-01T01:00:00', # OPTIONAL | ||
| 49 | Days => 1, # OPTIONAL | ||
| 50 | ExpiredObjectDeleteMarker => 1, # OPTIONAL | ||
| 51 | }, # OPTIONAL | ||
| 52 | Filter => { | ||
| 53 | And => { | ||
| 54 | Prefix => 'MyPrefix', # OPTIONAL | ||
| 55 | Tags => [ | ||
| 56 | { | ||
| 57 | Key => 'MyTagKeyString', # min: 1, max: 1024 | ||
| 58 | Value => 'MyTagValueString', # max: 1024 | ||
| 59 | |||
| 60 | }, | ||
| 61 | ... | ||
| 62 | ], # OPTIONAL | ||
| 63 | }, # OPTIONAL | ||
| 64 | Prefix => 'MyPrefix', # OPTIONAL | ||
| 65 | Tag => { | ||
| 66 | Key => 'MyTagKeyString', # min: 1, max: 1024 | ||
| 67 | Value => 'MyTagValueString', # max: 1024 | ||
| 68 | |||
| 69 | }, | ||
| 70 | }, # OPTIONAL | ||
| 71 | ID => 'MyID', # OPTIONAL | ||
| 72 | NoncurrentVersionExpiration => { | ||
| 73 | NoncurrentDays => 1, # OPTIONAL | ||
| 74 | }, # OPTIONAL | ||
| 75 | NoncurrentVersionTransitions => [ | ||
| 76 | { | ||
| 77 | NoncurrentDays => 1, # OPTIONAL | ||
| 78 | StorageClass => 'GLACIER' | ||
| 79 | , # values: GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE; OPTIONAL | ||
| 80 | }, | ||
| 81 | ... | ||
| 82 | ], # OPTIONAL | ||
| 83 | Transitions => [ | ||
| 84 | { | ||
| 85 | Date => '1970-01-01T01:00:00', # OPTIONAL | ||
| 86 | Days => 1, # OPTIONAL | ||
| 87 | StorageClass => 'GLACIER' | ||
| 88 | , # values: GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE; OPTIONAL | ||
| 89 | }, | ||
| 90 | ... | ||
| 91 | ], # OPTIONAL | ||
| 92 | }, | ||
| 93 | ... | ||
| 94 | ], # OPTIONAL | ||
| 95 | }, # OPTIONAL | ||
| 96 | ); | ||
| 97 | |||
| 98 | 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. | ||
| 99 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/s3-control/PutBucketLifecycleConfiguration> | ||
| 100 | |||
| 101 | =head1 ATTRIBUTES | ||
| 102 | |||
| 103 | |||
| 104 | =head2 B<REQUIRED> AccountId => Str | ||
| 105 | |||
| 106 | The AWS account ID of the Outposts bucket. | ||
| 107 | |||
| 108 | |||
| 109 | |||
| 110 | =head2 B<REQUIRED> Bucket => Str | ||
| 111 | |||
| 112 | The name of the bucket for which to set the configuration. | ||
| 113 | |||
| 114 | |||
| 115 | |||
| 116 | =head2 LifecycleConfiguration => L<Paws::S3Control::LifecycleConfiguration> | ||
| 117 | |||
| 118 | Container for lifecycle rules. You can add as many as 1,000 rules. | ||
| 119 | |||
| 120 | |||
| 121 | |||
| 122 | |||
| 123 | =head1 SEE ALSO | ||
| 124 | |||
| 125 | This class forms part of L<Paws>, documenting arguments for method PutBucketLifecycleConfiguration in L<Paws::S3Control> | ||
| 126 | |||
| 127 | =head1 BUGS and CONTRIBUTIONS | ||
| 128 | |||
| 129 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 130 | |||
| 131 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 132 | |||
| 133 | =cut | ||
| 134 |