Class: Aws::S3::Types::PutBucketNotificationRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::S3::Types::PutBucketNotificationRequest
- Includes:
- Aws::Structure
- Defined in:
- lib/aws-sdk-s3/types.rb
Overview
Note:
When making an API call, you may pass PutBucketNotificationRequest data as a hash:
{
bucket: "BucketName", # required
content_md5: "ContentMD5",
notification_configuration: { # required
topic_configuration: {
id: "NotificationId",
events: ["s3:ReducedRedundancyLostObject"], # accepts s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated
event: "s3:ReducedRedundancyLostObject", # accepts s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated
topic: "TopicArn",
},
queue_configuration: {
id: "NotificationId",
event: "s3:ReducedRedundancyLostObject", # accepts s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated
events: ["s3:ReducedRedundancyLostObject"], # accepts s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated
queue: "QueueArn",
},
cloud_function_configuration: {
id: "NotificationId",
event: "s3:ReducedRedundancyLostObject", # accepts s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated
events: ["s3:ReducedRedundancyLostObject"], # accepts s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated
cloud_function: "CloudFunction",
invocation_role: "CloudFunctionInvocationRole",
},
},
}
Instance Attribute Summary collapse
- #bucket ⇒ String
- #content_md5 ⇒ String
- #notification_configuration ⇒ Types::NotificationConfigurationDeprecated
Instance Attribute Details
#bucket ⇒ String
6446 6447 6448 6449 6450 6451 |
# File 'lib/aws-sdk-s3/types.rb', line 6446 class PutBucketNotificationRequest < Struct.new( :bucket, :content_md5, :notification_configuration) include Aws::Structure end |
#content_md5 ⇒ String
6446 6447 6448 6449 6450 6451 |
# File 'lib/aws-sdk-s3/types.rb', line 6446 class PutBucketNotificationRequest < Struct.new( :bucket, :content_md5, :notification_configuration) include Aws::Structure end |
#notification_configuration ⇒ Types::NotificationConfigurationDeprecated
6446 6447 6448 6449 6450 6451 |
# File 'lib/aws-sdk-s3/types.rb', line 6446 class PutBucketNotificationRequest < Struct.new( :bucket, :content_md5, :notification_configuration) include Aws::Structure end |