Class CfnBucket.TopicConfigurationProperty
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.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TopicConfigurationProperty : Object, CfnBucket.ITopicConfigurationProperty
Syntax (vb)
Public Class TopicConfigurationProperty
Inherits Object
Implements CfnBucket.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
Constructors
TopicConfigurationProperty() |
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. |
Constructors
TopicConfigurationProperty()
public TopicConfigurationProperty()
Properties
Event
The Amazon S3 bucket event about which to send notifications.
public string Event { get; set; }
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.
public object Filter { get; set; }
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.
public string Topic { get; set; }
Property Value
System.String