Class: Aws::S3::Types::PutBucketNotificationConfigurationRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::S3::Types::PutBucketNotificationConfigurationRequest
- Includes:
- Aws::Structure
- Defined in:
- lib/aws-sdk-s3/types.rb
Overview
Note:
When making an API call, you may pass PutBucketNotificationConfigurationRequest data as a hash:
{
bucket: "BucketName", # required
notification_configuration: { # required
topic_configurations: [
{
id: "NotificationId",
topic_arn: "TopicArn", # required
events: ["s3:ReducedRedundancyLostObject"], # required, 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
filter: {
key: {
filter_rules: [
{
name: "prefix", # accepts prefix, suffix
value: "FilterRuleValue",
},
],
},
},
},
],
queue_configurations: [
{
id: "NotificationId",
queue_arn: "QueueArn", # required
events: ["s3:ReducedRedundancyLostObject"], # required, 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
filter: {
key: {
filter_rules: [
{
name: "prefix", # accepts prefix, suffix
value: "FilterRuleValue",
},
],
},
},
},
],
lambda_function_configurations: [
{
id: "NotificationId",
lambda_function_arn: "LambdaFunctionArn", # required
events: ["s3:ReducedRedundancyLostObject"], # required, 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
filter: {
key: {
filter_rules: [
{
name: "prefix", # accepts prefix, suffix
value: "FilterRuleValue",
},
],
},
},
},
],
},
}
Instance Attribute Summary collapse
- #bucket ⇒ String
-
#notification_configuration ⇒ Types::NotificationConfiguration
Container for specifying the notification configuration of the bucket.
Instance Attribute Details
#bucket ⇒ String
6400 6401 6402 6403 6404 |
# File 'lib/aws-sdk-s3/types.rb', line 6400 class PutBucketNotificationConfigurationRequest < Struct.new( :bucket, :notification_configuration) include Aws::Structure end |
#notification_configuration ⇒ Types::NotificationConfiguration
Container for specifying the notification configuration of the bucket. If this element is empty, notifications are turned off on the bucket.
6400 6401 6402 6403 6404 |
# File 'lib/aws-sdk-s3/types.rb', line 6400 class PutBucketNotificationConfigurationRequest < Struct.new( :bucket, :notification_configuration) include Aws::Structure end |