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, s3:ObjectRestore:Post, s3:ObjectRestore:Completed
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, s3:ObjectRestore:Post, s3:ObjectRestore:Completed
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, s3:ObjectRestore:Post, s3:ObjectRestore:Completed
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, s3:ObjectRestore:Post, s3:ObjectRestore:Completed
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, s3:ObjectRestore:Post, s3:ObjectRestore:Completed
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, s3:ObjectRestore:Post, s3:ObjectRestore:Completed
cloud_function: "CloudFunction",
invocation_role: "CloudFunctionInvocationRole",
},
},
}
Instance Attribute Summary collapse
- #bucket ⇒ String
- #content_md5 ⇒ String
- #notification_configuration ⇒ Types::NotificationConfigurationDeprecated
Instance Attribute Details
#bucket ⇒ String
7081 7082 7083 7084 7085 7086 |
# File 'lib/aws-sdk-s3/types.rb', line 7081 class PutBucketNotificationRequest < Struct.new( :bucket, :content_md5, :notification_configuration) include Aws::Structure end |
#content_md5 ⇒ String
7081 7082 7083 7084 7085 7086 |
# File 'lib/aws-sdk-s3/types.rb', line 7081 class PutBucketNotificationRequest < Struct.new( :bucket, :content_md5, :notification_configuration) include Aws::Structure end |
#notification_configuration ⇒ Types::NotificationConfigurationDeprecated
7081 7082 7083 7084 7085 7086 |
# File 'lib/aws-sdk-s3/types.rb', line 7081 class PutBucketNotificationRequest < Struct.new( :bucket, :content_md5, :notification_configuration) include Aws::Structure end |