| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::S3::Rule; | ||
| 3 | use Moose; | ||
| 4 | has AbortIncompleteMultipartUpload => (is => 'ro', isa => 'Paws::S3::AbortIncompleteMultipartUpload'); | ||
| 5 | has Expiration => (is => 'ro', isa => 'Paws::S3::LifecycleExpiration'); | ||
| 6 | has ID => (is => 'ro', isa => 'Str'); | ||
| 7 | has NoncurrentVersionExpiration => (is => 'ro', isa => 'Paws::S3::NoncurrentVersionExpiration'); | ||
| 8 | has NoncurrentVersionTransition => (is => 'ro', isa => 'Paws::S3::NoncurrentVersionTransition'); | ||
| 9 | has Prefix => (is => 'ro', isa => 'Str', required => 1); | ||
| 10 | has Status => (is => 'ro', isa => 'Str', required => 1); | ||
| 11 | has Transition => (is => 'ro', isa => 'Paws::S3::Transition'); | ||
| 12 | |||
| 13 | 1; | ||
| 14 | |||
| 15 | ### main pod documentation begin ### | ||
| 16 | |||
| 17 | =head1 NAME | ||
| 18 | |||
| 19 | Paws::S3::Rule | ||
| 20 | |||
| 21 | =head1 USAGE | ||
| 22 | |||
| 23 | This class represents one of two things: | ||
| 24 | |||
| 25 | =head3 Arguments in a call to a service | ||
| 26 | |||
| 27 | Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. | ||
| 28 | Each attribute should be used as a named argument in the calls that expect this type of object. | ||
| 29 | |||
| 30 | As an example, if Att1 is expected to be a Paws::S3::Rule object: | ||
| 31 | |||
| 32 | $service_obj->Method(Att1 => { AbortIncompleteMultipartUpload => $value, ..., Transition => $value }); | ||
| 33 | |||
| 34 | =head3 Results returned from an API call | ||
| 35 | |||
| 36 | Use accessors for each attribute. If Att1 is expected to be an Paws::S3::Rule object: | ||
| 37 | |||
| 38 | $result = $service_obj->Method(...); | ||
| 39 | $result->Att1->AbortIncompleteMultipartUpload | ||
| 40 | |||
| 41 | =head1 DESCRIPTION | ||
| 42 | |||
| 43 | Specifies lifecycle rules for an Amazon S3 bucket. For more | ||
| 44 | information, see Put Bucket Lifecycle Configuration | ||
| 45 | (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTlifecycle.html) | ||
| 46 | in the I<Amazon S3 API Reference>. For examples, see Put Bucket | ||
| 47 | Lifecycle Configuration Examples | ||
| 48 | (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html#API_PutBucketLifecycleConfiguration_Examples). | ||
| 49 | |||
| 50 | =head1 ATTRIBUTES | ||
| 51 | |||
| 52 | |||
| 53 | =head2 AbortIncompleteMultipartUpload => L<Paws::S3::AbortIncompleteMultipartUpload> | ||
| 54 | |||
| 55 | |||
| 56 | |||
| 57 | |||
| 58 | =head2 Expiration => L<Paws::S3::LifecycleExpiration> | ||
| 59 | |||
| 60 | Specifies the expiration for the lifecycle of the object. | ||
| 61 | |||
| 62 | |||
| 63 | =head2 ID => Str | ||
| 64 | |||
| 65 | Unique identifier for the rule. The value can't be longer than 255 | ||
| 66 | characters. | ||
| 67 | |||
| 68 | |||
| 69 | =head2 NoncurrentVersionExpiration => L<Paws::S3::NoncurrentVersionExpiration> | ||
| 70 | |||
| 71 | |||
| 72 | |||
| 73 | |||
| 74 | =head2 NoncurrentVersionTransition => L<Paws::S3::NoncurrentVersionTransition> | ||
| 75 | |||
| 76 | |||
| 77 | |||
| 78 | |||
| 79 | =head2 B<REQUIRED> Prefix => Str | ||
| 80 | |||
| 81 | Object key prefix that identifies one or more objects to which this | ||
| 82 | rule applies. | ||
| 83 | |||
| 84 | Replacement must be made for object keys containing special characters | ||
| 85 | (such as carriage returns) when using XML requests. For more | ||
| 86 | information, see XML related object key constraints | ||
| 87 | (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). | ||
| 88 | |||
| 89 | |||
| 90 | =head2 B<REQUIRED> Status => Str | ||
| 91 | |||
| 92 | If C<Enabled>, the rule is currently being applied. If C<Disabled>, the | ||
| 93 | rule is not currently being applied. | ||
| 94 | |||
| 95 | |||
| 96 | =head2 Transition => L<Paws::S3::Transition> | ||
| 97 | |||
| 98 | Specifies when an object transitions to a specified storage class. For | ||
| 99 | more information about Amazon S3 lifecycle configuration rules, see | ||
| 100 | Transitioning Objects Using Amazon S3 Lifecycle | ||
| 101 | (https://docs.aws.amazon.com/AmazonS3/latest/dev/lifecycle-transition-general-considerations.html) | ||
| 102 | in the I<Amazon S3 User Guide>. | ||
| 103 | |||
| 104 | |||
| 105 | |||
| 106 | =head1 SEE ALSO | ||
| 107 | |||
| 108 | This class forms part of L<Paws>, describing an object used in L<Paws::S3> | ||
| 109 | |||
| 110 | =head1 BUGS and CONTRIBUTIONS | ||
| 111 | |||
| 112 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 113 | |||
| 114 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 115 | |||
| 116 | =cut | ||
| 117 |