| 1 | |||
| 2 | package Paws::S3::PutBucketReplication; | ||
| 3 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | has Bucket => (is => 'ro', isa => 'Str', uri_name => 'Bucket', traits => ['ParamInURI'], required => 1); | |
| 5 | 1 | has ContentLength => (is => 'ro', isa => 'Int', header_name => 'Content-Length', traits => ['ParamInHeader']); | |
| 6 | 1 | has ContentMD5 => (is => 'ro', isa => 'Str', header_name => 'Content-MD5', auto => 'MD5', traits => ['AutoInHeader']); | |
| 7 | 1 | has ExpectedBucketOwner => (is => 'ro', isa => 'Str', header_name => 'x-amz-expected-bucket-owner', traits => ['ParamInHeader']); | |
| 8 | 1 | has ReplicationConfiguration => (is => 'ro', isa => 'Paws::S3::ReplicationConfiguration', traits => ['ParamInBody'], required => 1); | |
| 9 | 1 | has Token => (is => 'ro', isa => 'Str', header_name => 'x-amz-bucket-object-lock-token', traits => ['ParamInHeader']); | |
| 10 | |||
| 11 | |||
| 12 | 1 | ▶ | use MooseX::ClassAttribute; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | 1 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutBucketReplication'); | |
| 15 | 1 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/{Bucket}?replication'); | |
| 16 | 1 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); | |
| 17 | 1 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response'); | |
| 18 | 1 | class_has _result_key => (isa => 'Str', is => 'ro'); | |
| 19 | |||
| 20 | |||
| 21 | 1 | 1; | |
| 22 | |||
| 23 | ### main pod documentation begin ### | ||
| 24 | |||
| 25 | =head1 NAME | ||
| 26 | |||
| 27 | Paws::S3::PutBucketReplication - Arguments for method PutBucketReplication on L<Paws::S3> | ||
| 28 | |||
| 29 | =head1 DESCRIPTION | ||
| 30 | |||
| 31 | This class represents the parameters used for calling the method PutBucketReplication on the | ||
| 32 | L<Amazon Simple Storage Service|Paws::S3> service. Use the attributes of this class | ||
| 33 | as arguments to method PutBucketReplication. | ||
| 34 | |||
| 35 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutBucketReplication. | ||
| 36 | |||
| 37 | =head1 SYNOPSIS | ||
| 38 | |||
| 39 | my $s3 = Paws->service('S3'); | ||
| 40 | # Set replication configuration on a bucket | ||
| 41 | # The following example sets replication configuration on a bucket. | ||
| 42 | $s3->PutBucketReplication( | ||
| 43 | 'Bucket' => 'examplebucket', | ||
| 44 | 'ReplicationConfiguration' => { | ||
| 45 | 'Role' => 'arn:aws:iam::123456789012:role/examplerole', | ||
| 46 | 'Rules' => [ | ||
| 47 | |||
| 48 | { | ||
| 49 | 'Destination' => { | ||
| 50 | 'Bucket' => 'arn:aws:s3:::destinationbucket', | ||
| 51 | 'StorageClass' => 'STANDARD' | ||
| 52 | }, | ||
| 53 | 'Prefix' => '', | ||
| 54 | 'Status' => 'Enabled' | ||
| 55 | } | ||
| 56 | ] | ||
| 57 | } | ||
| 58 | ); | ||
| 59 | |||
| 60 | |||
| 61 | 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. | ||
| 62 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/s3/PutBucketReplication> | ||
| 63 | |||
| 64 | =head1 ATTRIBUTES | ||
| 65 | |||
| 66 | |||
| 67 | =head2 B<REQUIRED> Bucket => Str | ||
| 68 | |||
| 69 | The name of the bucket | ||
| 70 | |||
| 71 | |||
| 72 | |||
| 73 | =head2 ContentLength => Int | ||
| 74 | |||
| 75 | Size of the body in bytes. | ||
| 76 | |||
| 77 | |||
| 78 | |||
| 79 | =head2 ContentMD5 => Str | ||
| 80 | |||
| 81 | The base64-encoded 128-bit MD5 digest of the data. You must use this | ||
| 82 | header as a message integrity check to verify that the request body was | ||
| 83 | not corrupted in transit. For more information, see RFC 1864 | ||
| 84 | (http://www.ietf.org/rfc/rfc1864.txt). | ||
| 85 | |||
| 86 | For requests made using the AWS Command Line Interface (CLI) or AWS | ||
| 87 | SDKs, this field is calculated automatically. | ||
| 88 | |||
| 89 | |||
| 90 | |||
| 91 | =head2 ExpectedBucketOwner => Str | ||
| 92 | |||
| 93 | The account ID of the expected bucket owner. If the bucket is owned by | ||
| 94 | a different account, the request will fail with an HTTP C<403 (Access | ||
| 95 | Denied)> error. | ||
| 96 | |||
| 97 | |||
| 98 | |||
| 99 | =head2 B<REQUIRED> ReplicationConfiguration => L<Paws::S3::ReplicationConfiguration> | ||
| 100 | |||
| 101 | |||
| 102 | |||
| 103 | |||
| 104 | |||
| 105 | =head2 Token => Str | ||
| 106 | |||
| 107 | A token to allow Object Lock to be enabled for an existing bucket. | ||
| 108 | |||
| 109 | |||
| 110 | |||
| 111 | |||
| 112 | =head1 SEE ALSO | ||
| 113 | |||
| 114 | This class forms part of L<Paws>, documenting arguments for method PutBucketReplication in L<Paws::S3> | ||
| 115 | |||
| 116 | =head1 BUGS and CONTRIBUTIONS | ||
| 117 | |||
| 118 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 119 | |||
| 120 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 121 | |||
| 122 | =cut | ||
| 123 | |||