AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

This class contains the configuration Amazon S3 uses to figure out what events you want to listen and send the event to an Amazon SNS topic.

The topic's policy must allow S3 to publish messages to it. The utility method Amazon.SimpleNotificationService.AmazonSimpleNotificationServiceClient.AuthorizeS3ToPublish(string,string) can be used to help setup the topic policy.

Inheritance Hierarchy

System.Object
  Amazon.S3.Model.NotificationConfiguration
    Amazon.S3.Model.TopicConfiguration

Namespace: Amazon.S3.Model
Assembly: AWSSDK.S3.dll
Version: 3.x.y.z

Syntax

C#
public class TopicConfiguration : NotificationConfiguration

The TopicConfiguration type exposes the following members

Constructors

NameDescription
Public Method TopicConfiguration()

Properties

NameTypeDescription
Public Property Event System.String

Bucket event for which to send notifications.

Topic configurations can now contain multiple events. This property is obsolete in favor of the Events property. This property will aways get or set the the zeroth element in the Events collection.

Public Property Events System.Collections.Generic.List<Amazon.S3.EventType> Inherited from Amazon.S3.Model.NotificationConfiguration.
Public Property Filter Amazon.S3.Model.Filter Inherited from Amazon.S3.Model.NotificationConfiguration.
Public Property Id System.String

Gets and set the Id property. The Id will be provided in the event content and can be used to identify which configuration caused an event to fire. If the Id is not provided for the configuration, one will be generated.

Public Property Topic System.String

Gets and sets the Topic property. Amazon SNS topic to which Amazon S3 will publish a message to report the specified events for the bucket.

The topic's policy must allow S3 to publish messages to it. The utility method Amazon.SimpleNotificationService.AmazonSimpleNotificationServiceClient.AuthorizeS3ToPublish(string,string) can be used to help setup the topic policy.

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

Unity:
Supported Versions: 4.6 and above
Supported Platforms: Android, iOS, Standalone