| 1 | |||
| 2 | package Paws::S3::PutBucketVersioning; | ||
| 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 MFA => (is => 'ro', isa => 'Str', header_name => 'x-amz-mfa', traits => ['ParamInHeader']); | |
| 9 | 1 | has VersioningConfiguration => (is => 'ro', isa => 'Paws::S3::VersioningConfiguration', traits => ['ParamInBody'], required => 1); | |
| 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 => 'PutBucketVersioning'); | |
| 15 | 1 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/{Bucket}?versioning'); | |
| 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::PutBucketVersioning - Arguments for method PutBucketVersioning on L<Paws::S3> | ||
| 28 | |||
| 29 | =head1 DESCRIPTION | ||
| 30 | |||
| 31 | This class represents the parameters used for calling the method PutBucketVersioning on the | ||
| 32 | L<Amazon Simple Storage Service|Paws::S3> service. Use the attributes of this class | ||
| 33 | as arguments to method PutBucketVersioning. | ||
| 34 | |||
| 35 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutBucketVersioning. | ||
| 36 | |||
| 37 | =head1 SYNOPSIS | ||
| 38 | |||
| 39 | my $s3 = Paws->service('S3'); | ||
| 40 | # Set versioning configuration on a bucket | ||
| 41 | # The following example sets versioning configuration on bucket. The | ||
| 42 | # configuration enables versioning on the bucket. | ||
| 43 | $s3->PutBucketVersioning( | ||
| 44 | 'Bucket' => 'examplebucket', | ||
| 45 | 'VersioningConfiguration' => { | ||
| 46 | 'MFADelete' => 'Disabled', | ||
| 47 | 'Status' => 'Enabled' | ||
| 48 | } | ||
| 49 | ); | ||
| 50 | |||
| 51 | |||
| 52 | 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. | ||
| 53 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/s3/PutBucketVersioning> | ||
| 54 | |||
| 55 | =head1 ATTRIBUTES | ||
| 56 | |||
| 57 | |||
| 58 | =head2 B<REQUIRED> Bucket => Str | ||
| 59 | |||
| 60 | The bucket name. | ||
| 61 | |||
| 62 | |||
| 63 | |||
| 64 | =head2 ContentLength => Int | ||
| 65 | |||
| 66 | Size of the body in bytes. | ||
| 67 | |||
| 68 | |||
| 69 | |||
| 70 | =head2 ContentMD5 => Str | ||
| 71 | |||
| 72 | E<gt>The base64-encoded 128-bit MD5 digest of the data. You must use | ||
| 73 | this header as a message integrity check to verify that the request | ||
| 74 | body was not corrupted in transit. For more information, see RFC 1864 | ||
| 75 | (http://www.ietf.org/rfc/rfc1864.txt). | ||
| 76 | |||
| 77 | For requests made using the AWS Command Line Interface (CLI) or AWS | ||
| 78 | SDKs, this field is calculated automatically. | ||
| 79 | |||
| 80 | |||
| 81 | |||
| 82 | =head2 ExpectedBucketOwner => Str | ||
| 83 | |||
| 84 | The account ID of the expected bucket owner. If the bucket is owned by | ||
| 85 | a different account, the request will fail with an HTTP C<403 (Access | ||
| 86 | Denied)> error. | ||
| 87 | |||
| 88 | |||
| 89 | |||
| 90 | =head2 MFA => Str | ||
| 91 | |||
| 92 | The concatenation of the authentication device's serial number, a | ||
| 93 | space, and the value that is displayed on your authentication device. | ||
| 94 | |||
| 95 | |||
| 96 | |||
| 97 | =head2 B<REQUIRED> VersioningConfiguration => L<Paws::S3::VersioningConfiguration> | ||
| 98 | |||
| 99 | Container for setting the versioning state. | ||
| 100 | |||
| 101 | |||
| 102 | |||
| 103 | |||
| 104 | =head1 SEE ALSO | ||
| 105 | |||
| 106 | This class forms part of L<Paws>, documenting arguments for method PutBucketVersioning in L<Paws::S3> | ||
| 107 | |||
| 108 | =head1 BUGS and CONTRIBUTIONS | ||
| 109 | |||
| 110 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 111 | |||
| 112 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 113 | |||
| 114 | =cut | ||
| 115 | |||