public static class BucketNotificationConfiguration.TopicConfiguration extends Object
Represents the SNS topic to publish event notification to. Notifications are published to the topic only if the specified event is triggered.
Constructor and Description |
---|
TopicConfiguration(String topic,
String event)
Creates a new
BucketNotificationConfiguration.TopicConfiguration . |
Modifier and Type | Method and Description |
---|---|
String |
getEvent()
Gets the event that must occur for the notification to be published.
|
String |
getTopic()
Gets the topic ARN (Amazon Resource Name) for the topic to publish
events to.
|
String |
toString() |
public TopicConfiguration(String topic, String event)
Creates a new
BucketNotificationConfiguration.TopicConfiguration
.
topic
- The SNS Topic ARN (Amazon Resource Name) to publish
notifications to.event
- The event that must occur to trigger the notification
publication.public String getTopic()
Gets the topic ARN (Amazon Resource Name) for the topic to publish events to.
public String getEvent()
Gets the event that must occur for the notification to be published.
Copyright © 2017. All rights reserved.