| 1 | |||
| 2 | package Paws::S3::PutPublicAccessBlock; | ||
| 3 | use Moose; | ||
| 4 | has Bucket => (is => 'ro', isa => 'Str', uri_name => 'Bucket', traits => ['ParamInURI'], required => 1); | ||
| 5 | has ContentMD5 => (is => 'ro', isa => 'Str', header_name => 'Content-MD5', auto => 'MD5', traits => ['AutoInHeader']); | ||
| 6 | has ExpectedBucketOwner => (is => 'ro', isa => 'Str', header_name => 'x-amz-expected-bucket-owner', traits => ['ParamInHeader']); | ||
| 7 | has PublicAccessBlockConfiguration => (is => 'ro', isa => 'Paws::S3::PublicAccessBlockConfiguration', traits => ['ParamInBody'], required => 1); | ||
| 8 | |||
| 9 | |||
| 10 | use MooseX::ClassAttribute; | ||
| 11 | |||
| 12 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutPublicAccessBlock'); | ||
| 13 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/{Bucket}?publicAccessBlock'); | ||
| 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 | |||
| 18 | |||
| 19 | 1; | ||
| 20 | |||
| 21 | ### main pod documentation begin ### | ||
| 22 | |||
| 23 | =head1 NAME | ||
| 24 | |||
| 25 | Paws::S3::PutPublicAccessBlock - Arguments for method PutPublicAccessBlock on L<Paws::S3> | ||
| 26 | |||
| 27 | =head1 DESCRIPTION | ||
| 28 | |||
| 29 | This class represents the parameters used for calling the method PutPublicAccessBlock on the | ||
| 30 | L<Amazon Simple Storage Service|Paws::S3> service. Use the attributes of this class | ||
| 31 | as arguments to method PutPublicAccessBlock. | ||
| 32 | |||
| 33 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutPublicAccessBlock. | ||
| 34 | |||
| 35 | =head1 SYNOPSIS | ||
| 36 | |||
| 37 | my $s3 = Paws->service('S3'); | ||
| 38 | $s3->PutPublicAccessBlock( | ||
| 39 | Bucket => 'MyBucketName', | ||
| 40 | PublicAccessBlockConfiguration => { | ||
| 41 | BlockPublicAcls => 1, # OPTIONAL | ||
| 42 | BlockPublicPolicy => 1, # OPTIONAL | ||
| 43 | IgnorePublicAcls => 1, # OPTIONAL | ||
| 44 | RestrictPublicBuckets => 1, # OPTIONAL | ||
| 45 | }, | ||
| 46 | ContentMD5 => 'MyContentMD5', # OPTIONAL | ||
| 47 | ExpectedBucketOwner => 'MyAccountId', # OPTIONAL | ||
| 48 | ); | ||
| 49 | |||
| 50 | 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. | ||
| 51 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/s3/PutPublicAccessBlock> | ||
| 52 | |||
| 53 | =head1 ATTRIBUTES | ||
| 54 | |||
| 55 | |||
| 56 | =head2 B<REQUIRED> Bucket => Str | ||
| 57 | |||
| 58 | The name of the Amazon S3 bucket whose C<PublicAccessBlock> | ||
| 59 | configuration you want to set. | ||
| 60 | |||
| 61 | |||
| 62 | |||
| 63 | =head2 ContentMD5 => Str | ||
| 64 | |||
| 65 | The MD5 hash of the C<PutPublicAccessBlock> request body. | ||
| 66 | |||
| 67 | For requests made using the AWS Command Line Interface (CLI) or AWS | ||
| 68 | SDKs, this field is calculated automatically. | ||
| 69 | |||
| 70 | |||
| 71 | |||
| 72 | =head2 ExpectedBucketOwner => Str | ||
| 73 | |||
| 74 | The account ID of the expected bucket owner. If the bucket is owned by | ||
| 75 | a different account, the request will fail with an HTTP C<403 (Access | ||
| 76 | Denied)> error. | ||
| 77 | |||
| 78 | |||
| 79 | |||
| 80 | =head2 B<REQUIRED> PublicAccessBlockConfiguration => L<Paws::S3::PublicAccessBlockConfiguration> | ||
| 81 | |||
| 82 | The C<PublicAccessBlock> configuration that you want to apply to this | ||
| 83 | Amazon S3 bucket. You can enable the configuration options in any | ||
| 84 | combination. For more information about when Amazon S3 considers a | ||
| 85 | bucket or object public, see The Meaning of "Public" | ||
| 86 | (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status) | ||
| 87 | in the I<Amazon S3 User Guide>. | ||
| 88 | |||
| 89 | |||
| 90 | |||
| 91 | |||
| 92 | =head1 SEE ALSO | ||
| 93 | |||
| 94 | This class forms part of L<Paws>, documenting arguments for method PutPublicAccessBlock in L<Paws::S3> | ||
| 95 | |||
| 96 | =head1 BUGS and CONTRIBUTIONS | ||
| 97 | |||
| 98 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 99 | |||
| 100 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 101 | |||
| 102 | =cut | ||
| 103 |