Show / Hide Table of Contents

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
System.Object
CfnBucket.TopicConfigurationProperty
Implements
CfnBucket.ITopicConfigurationProperty
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.AWS.S3.dll
Syntax (csharp)
public class TopicConfigurationProperty : Object, CfnBucket.ITopicConfigurationProperty
Syntax (vb)
Public Class TopicConfigurationProperty
    Inherits Object
    Implements CfnBucket.ITopicConfigurationProperty
Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-topicconfig.html

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;

TopicConfigurationProperty 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 .

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-topicconfig.html#cfn-s3-bucket-notificationconfig-topicconfig-event

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.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-topicconfig.html#cfn-s3-bucket-notificationconfig-topicconfig-filter

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

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-topicconfig.html#cfn-s3-bucket-notificationconfig-topicconfig-topic

Implements

CfnBucket.ITopicConfigurationProperty
Back to top Generated by DocFX