TopicConfiguration
instead@Deprecated public static class BucketNotificationConfiguration.TopicConfiguration extends TopicConfiguration
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)
Deprecated.
Creates a new
BucketNotificationConfiguration.TopicConfiguration . |
Modifier and Type | Method and Description |
---|---|
String |
getEvent()
Deprecated.
use
NotificationConfiguration.getEvents()
instead. |
String |
getTopic()
Deprecated.
Gets the topic ARN (Amazon Resource Name) for the topic to publish events to.
|
String |
toString()
Deprecated.
|
getTopicARN, setTopicARN, withTopicARN
addEvent, addEvent, addObjectPrefix, getEvents, getFilter, getObjectPrefixes, setEvents, setFilter, setObjectPrefixes, withEvents, withFilter, withObjectPrefixes
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()
NotificationConfiguration.getEvents()
instead.Gets the first event that is configured in the list of events.
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.