« blib/lib/Paws/S3Control/PutBucketLifecycleConfiguration.pm
↑ Summary
blib/lib/Paws/S3Control/PutBucketTagging.pm »
| 1 | |||
| 2 | package Paws::S3Control::PutBucketPolicy; | ||
| 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 ConfirmRemoveSelfBucketAccess => (is => 'ro', isa => 'Bool', header_name => 'x-amz-confirm-remove-self-bucket-access', traits => ['ParamInHeader']); | ||
| 7 | has Policy => (is => 'ro', isa => 'Str', required => 1); | ||
| 8 | |||
| 9 | |||
| 10 | use MooseX::ClassAttribute; | ||
| 11 | |||
| 12 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutBucketPolicy'); | ||
| 13 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v20180820/bucket/{name}/policy'); | ||
| 14 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); | ||
| 15 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response'); | ||
| 16 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 17 | class_has _top_level_element => (isa => 'Str', is => 'ro', default => 'PutBucketPolicyRequest'); | ||
| 18 | class_has _top_level_namespace => (isa => 'Str', is => 'ro', default => 'http://awss3control.amazonaws.com/doc/2018-08-20/'); | ||
| 19 | 1; | ||
| 20 | |||
| 21 | ### main pod documentation begin ### | ||
| 22 | |||
| 23 | =head1 NAME | ||
| 24 | |||
| 25 | Paws::S3Control::PutBucketPolicy - Arguments for method PutBucketPolicy on L<Paws::S3Control> | ||
| 26 | |||
| 27 | =head1 DESCRIPTION | ||
| 28 | |||
| 29 | This class represents the parameters used for calling the method PutBucketPolicy on the | ||
| 30 | L<AWS S3 Control|Paws::S3Control> service. Use the attributes of this class | ||
| 31 | as arguments to method PutBucketPolicy. | ||
| 32 | |||
| 33 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutBucketPolicy. | ||
| 34 | |||
| 35 | =head1 SYNOPSIS | ||
| 36 | |||
| 37 | my $s3-control = Paws->service('S3Control'); | ||
| 38 | $s3 -control->PutBucketPolicy( | ||
| 39 | AccountId => 'MyAccountId', | ||
| 40 | Bucket => 'MyBucketName', | ||
| 41 | Policy => 'MyPolicy', | ||
| 42 | ConfirmRemoveSelfBucketAccess => 1, # OPTIONAL | ||
| 43 | ); | ||
| 44 | |||
| 45 | 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. | ||
| 46 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/s3-control/PutBucketPolicy> | ||
| 47 | |||
| 48 | =head1 ATTRIBUTES | ||
| 49 | |||
| 50 | |||
| 51 | =head2 B<REQUIRED> AccountId => Str | ||
| 52 | |||
| 53 | The AWS account ID of the Outposts bucket. | ||
| 54 | |||
| 55 | |||
| 56 | |||
| 57 | =head2 B<REQUIRED> Bucket => Str | ||
| 58 | |||
| 59 | Specifies the bucket. | ||
| 60 | |||
| 61 | For using this parameter with Amazon S3 on Outposts with the REST API, | ||
| 62 | you must specify the name and the x-amz-outpost-id as well. | ||
| 63 | |||
| 64 | For using this parameter with S3 on Outposts with the AWS SDK and CLI, | ||
| 65 | you must specify the ARN of the bucket accessed in the format | ||
| 66 | C<arn:aws:s3-outposts:E<lt>RegionE<gt>:E<lt>account-idE<gt>:outpost/E<lt>outpost-idE<gt>/bucket/E<lt>my-bucket-nameE<gt>>. | ||
| 67 | For example, to access the bucket C<reports> through outpost | ||
| 68 | C<my-outpost> owned by account C<123456789012> in Region C<us-west-2>, | ||
| 69 | use the URL encoding of | ||
| 70 | C<arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports>. | ||
| 71 | The value must be URL encoded. | ||
| 72 | |||
| 73 | |||
| 74 | |||
| 75 | =head2 ConfirmRemoveSelfBucketAccess => Bool | ||
| 76 | |||
| 77 | Set this parameter to true to confirm that you want to remove your | ||
| 78 | permissions to change this bucket policy in the future. | ||
| 79 | |||
| 80 | This is not supported by Amazon S3 on Outposts buckets. | ||
| 81 | |||
| 82 | |||
| 83 | |||
| 84 | =head2 B<REQUIRED> Policy => Str | ||
| 85 | |||
| 86 | The bucket policy as a JSON document. | ||
| 87 | |||
| 88 | |||
| 89 | |||
| 90 | |||
| 91 | =head1 SEE ALSO | ||
| 92 | |||
| 93 | This class forms part of L<Paws>, documenting arguments for method PutBucketPolicy in L<Paws::S3Control> | ||
| 94 | |||
| 95 | =head1 BUGS and CONTRIBUTIONS | ||
| 96 | |||
| 97 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 98 | |||
| 99 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 100 | |||
| 101 | =cut | ||
| 102 |