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