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