Interface CfnBucket.ITopicConfigurationProperty
A container for specifying the configuration for publication of messages to an Amazon Simple Notification Service (Amazon SNS) topic when Amazon S3 detects specified events.
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ITopicConfigurationProperty
Syntax (vb)
Public Interface ITopicConfigurationProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3;
var topicConfigurationProperty = new TopicConfigurationProperty {
Event = "event",
Topic = "topic",
// the properties below are optional
Filter = new NotificationFilterProperty {
S3Key = new S3KeyFilterProperty {
Rules = new [] { new FilterRuleProperty {
Name = "name",
Value = "value"
} }
}
}
};
Synopsis
Properties
Event | The Amazon S3 bucket event about which to send notifications. |
Filter | The filtering rules that determine for which objects to send notifications. |
Topic | The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 publishes a message when it detects events of the specified type. |
Properties
Event
The Amazon S3 bucket event about which to send notifications.
string Event { get; }
Property Value
System.String
Remarks
For more information, see Supported Event Types in the Amazon S3 User Guide .
Filter
The filtering rules that determine for which objects to send notifications.
virtual object Filter { get; }
Property Value
System.Object
Remarks
For example, you can create a filter so that Amazon S3 sends notifications only when image files with a .jpg
extension are added to the bucket.
Topic
The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 publishes a message when it detects events of the specified type.
string Topic { get; }
Property Value
System.String