Class: Aws::S3::Types::NotificationConfiguration
- Inherits:
-
Struct
- Object
- Struct
- Aws::S3::Types::NotificationConfiguration
- Includes:
- Aws::Structure
- Defined in:
- lib/aws-sdk-s3/types.rb
Overview
Note:
When making an API call, you may pass NotificationConfiguration data as a hash:
{
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, s3:ObjectRestore:Post, s3:ObjectRestore:Completed
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, s3:ObjectRestore:Post, s3:ObjectRestore:Completed
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, s3:ObjectRestore:Post, s3:ObjectRestore:Completed
filter: {
key: {
filter_rules: [
{
name: "prefix", # accepts prefix, suffix
value: "FilterRuleValue",
},
],
},
},
},
],
}
A container for specifying the notification configuration of the bucket. If this element is empty, notifications are turned off for the bucket.
Instance Attribute Summary collapse
- #lambda_function_configurations ⇒ Array<Types::LambdaFunctionConfiguration>
- #queue_configurations ⇒ Array<Types::QueueConfiguration>
- #topic_configurations ⇒ Array<Types::TopicConfiguration>
Instance Attribute Details
#lambda_function_configurations ⇒ Array<Types::LambdaFunctionConfiguration>
5895 5896 5897 5898 5899 5900 |
# File 'lib/aws-sdk-s3/types.rb', line 5895 class NotificationConfiguration < Struct.new( :topic_configurations, :queue_configurations, :lambda_function_configurations) include Aws::Structure end |
#queue_configurations ⇒ Array<Types::QueueConfiguration>
5895 5896 5897 5898 5899 5900 |
# File 'lib/aws-sdk-s3/types.rb', line 5895 class NotificationConfiguration < Struct.new( :topic_configurations, :queue_configurations, :lambda_function_configurations) include Aws::Structure end |
#topic_configurations ⇒ Array<Types::TopicConfiguration>
5895 5896 5897 5898 5899 5900 |
# File 'lib/aws-sdk-s3/types.rb', line 5895 class NotificationConfiguration < Struct.new( :topic_configurations, :queue_configurations, :lambda_function_configurations) include Aws::Structure end |