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, withTopicARNaddEvent, addEvent, addObjectPrefix, getEvents, getFilter, getObjectPrefixes, setEvents, setFilter, setObjectPrefixes, withEvents, withFilter, withObjectPrefixespublic 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.
@Deprecated public String getEvent()
NotificationConfiguration.getEvents()
instead.Gets the first event that is configured in the list of events.
Copyright © 2020. All rights reserved.