| 1 | |||
| 2 | package Paws::S3::PutBucketNotification; | ||
| 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 NotificationConfiguration => (is => 'ro', isa => 'Paws::S3::NotificationConfigurationDeprecated', 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 => 'PutBucketNotification'); | |
| 14 | 1 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/{Bucket}?notification'); | |
| 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::PutBucketNotification - Arguments for method PutBucketNotification on L<Paws::S3> | ||
| 27 | |||
| 28 | =head1 DESCRIPTION | ||
| 29 | |||
| 30 | This class represents the parameters used for calling the method PutBucketNotification on the | ||
| 31 | L<Amazon Simple Storage Service|Paws::S3> service. Use the attributes of this class | ||
| 32 | as arguments to method PutBucketNotification. | ||
| 33 | |||
| 34 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutBucketNotification. | ||
| 35 | |||
| 36 | =head1 SYNOPSIS | ||
| 37 | |||
| 38 | my $s3 = Paws->service('S3'); | ||
| 39 | $s3->PutBucketNotification( | ||
| 40 | Bucket => 'MyBucketName', | ||
| 41 | NotificationConfiguration => { | ||
| 42 | CloudFunctionConfiguration => { | ||
| 43 | CloudFunction => 'MyCloudFunction', # OPTIONAL | ||
| 44 | Event => 's3:ReducedRedundancyLostObject' | ||
| 45 | , # values: s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated, s3:ObjectRestore:*, s3:ObjectRestore:Post, s3:ObjectRestore:Completed, s3:Replication:*, s3:Replication:OperationFailedReplication, s3:Replication:OperationNotTracked, s3:Replication:OperationMissedThreshold, s3:Replication:OperationReplicatedAfterThreshold; OPTIONAL | ||
| 46 | Events => [ | ||
| 47 | 's3:ReducedRedundancyLostObject', | ||
| 48 | ... # values: s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated, s3:ObjectRestore:*, s3:ObjectRestore:Post, s3:ObjectRestore:Completed, s3:Replication:*, s3:Replication:OperationFailedReplication, s3:Replication:OperationNotTracked, s3:Replication:OperationMissedThreshold, s3:Replication:OperationReplicatedAfterThreshold; OPTIONAL | ||
| 49 | ], # OPTIONAL | ||
| 50 | Id => 'MyNotificationId', # OPTIONAL | ||
| 51 | InvocationRole => 'MyCloudFunctionInvocationRole', # OPTIONAL | ||
| 52 | }, # OPTIONAL | ||
| 53 | QueueConfiguration => { | ||
| 54 | Event => 's3:ReducedRedundancyLostObject' | ||
| 55 | , # values: s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated, s3:ObjectRestore:*, s3:ObjectRestore:Post, s3:ObjectRestore:Completed, s3:Replication:*, s3:Replication:OperationFailedReplication, s3:Replication:OperationNotTracked, s3:Replication:OperationMissedThreshold, s3:Replication:OperationReplicatedAfterThreshold; OPTIONAL | ||
| 56 | Events => [ | ||
| 57 | 's3:ReducedRedundancyLostObject', | ||
| 58 | ... # values: s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated, s3:ObjectRestore:*, s3:ObjectRestore:Post, s3:ObjectRestore:Completed, s3:Replication:*, s3:Replication:OperationFailedReplication, s3:Replication:OperationNotTracked, s3:Replication:OperationMissedThreshold, s3:Replication:OperationReplicatedAfterThreshold; OPTIONAL | ||
| 59 | ], # OPTIONAL | ||
| 60 | Id => 'MyNotificationId', # OPTIONAL | ||
| 61 | Queue => 'MyQueueArn', # OPTIONAL | ||
| 62 | }, # OPTIONAL | ||
| 63 | TopicConfiguration => { | ||
| 64 | Event => 's3:ReducedRedundancyLostObject' | ||
| 65 | , # values: s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated, s3:ObjectRestore:*, s3:ObjectRestore:Post, s3:ObjectRestore:Completed, s3:Replication:*, s3:Replication:OperationFailedReplication, s3:Replication:OperationNotTracked, s3:Replication:OperationMissedThreshold, s3:Replication:OperationReplicatedAfterThreshold; OPTIONAL | ||
| 66 | Events => [ | ||
| 67 | 's3:ReducedRedundancyLostObject', | ||
| 68 | ... # values: s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated, s3:ObjectRestore:*, s3:ObjectRestore:Post, s3:ObjectRestore:Completed, s3:Replication:*, s3:Replication:OperationFailedReplication, s3:Replication:OperationNotTracked, s3:Replication:OperationMissedThreshold, s3:Replication:OperationReplicatedAfterThreshold; OPTIONAL | ||
| 69 | ], # OPTIONAL | ||
| 70 | Id => 'MyNotificationId', # OPTIONAL | ||
| 71 | Topic => 'MyTopicArn', # OPTIONAL | ||
| 72 | }, # OPTIONAL | ||
| 73 | }, | ||
| 74 | ContentLength => 1, # OPTIONAL | ||
| 75 | ContentMD5 => 'MyContentMD5', # OPTIONAL | ||
| 76 | ExpectedBucketOwner => 'MyAccountId', # OPTIONAL | ||
| 77 | ); | ||
| 78 | |||
| 79 | 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. | ||
| 80 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/s3/PutBucketNotification> | ||
| 81 | |||
| 82 | =head1 ATTRIBUTES | ||
| 83 | |||
| 84 | |||
| 85 | =head2 B<REQUIRED> Bucket => Str | ||
| 86 | |||
| 87 | The name of the bucket. | ||
| 88 | |||
| 89 | |||
| 90 | |||
| 91 | =head2 ContentLength => Int | ||
| 92 | |||
| 93 | Size of the body in bytes. | ||
| 94 | |||
| 95 | |||
| 96 | |||
| 97 | =head2 ContentMD5 => Str | ||
| 98 | |||
| 99 | The MD5 hash of the C<PutPublicAccessBlock> request body. | ||
| 100 | |||
| 101 | For requests made using the AWS Command Line Interface (CLI) or AWS | ||
| 102 | SDKs, this field is calculated automatically. | ||
| 103 | |||
| 104 | |||
| 105 | |||
| 106 | =head2 ExpectedBucketOwner => Str | ||
| 107 | |||
| 108 | The account ID of the expected bucket owner. If the bucket is owned by | ||
| 109 | a different account, the request will fail with an HTTP C<403 (Access | ||
| 110 | Denied)> error. | ||
| 111 | |||
| 112 | |||
| 113 | |||
| 114 | =head2 B<REQUIRED> NotificationConfiguration => L<Paws::S3::NotificationConfigurationDeprecated> | ||
| 115 | |||
| 116 | The container for the configuration. | ||
| 117 | |||
| 118 | |||
| 119 | |||
| 120 | |||
| 121 | =head1 SEE ALSO | ||
| 122 | |||
| 123 | This class forms part of L<Paws>, documenting arguments for method PutBucketNotification in L<Paws::S3> | ||
| 124 | |||
| 125 | =head1 BUGS and CONTRIBUTIONS | ||
| 126 | |||
| 127 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 128 | |||
| 129 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 130 | |||
| 131 | =cut | ||
| 132 | |||