@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:15.167Z") @Stability(value=Experimental) public class Topic extends TopicBase
Example:
import software.amazon.awscdk.core.*;
Topic topic1 = new Topic(this, "MyTopic1");
portfolio.notifyOnStackEvents(product, topic1);
Topic topic2 = new Topic(this, "MyTopic2");
portfolio.notifyOnStackEvents(product, topic2, CommonConstraintOptions.builder()
.description("description for this topic2")
.build());
| Modifier and Type | Class and Description |
|---|---|
static class |
Topic.Builder
(experimental) A fluent builder for
Topic. |
software.amazon.jsii.JsiiObject.InitializationModeITopic.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
Topic(software.constructs.Construct scope,
String id) |
|
Topic(software.constructs.Construct scope,
String id,
TopicProps props) |
protected |
Topic(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Topic(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static ITopic |
fromTopicArn(software.constructs.Construct scope,
String id,
String topicArn)
(experimental) Import an existing SNS topic provided an ARN.
|
protected Boolean |
getAutoCreatePolicy()
(experimental) Controls automatic creation of policy objects.
|
String |
getTopicArn()
(experimental) The ARN of the topic.
|
String |
getTopicName()
(experimental) The name of the topic.
|
addSubscription, addToResourcePolicy, bindAsNotificationRuleTarget, grantPublish, metric, metric, metricNumberOfMessagesPublished, metricNumberOfMessagesPublished, metricNumberOfNotificationsDelivered, metricNumberOfNotificationsDelivered, metricNumberOfNotificationsFailed, metricNumberOfNotificationsFailed, metricNumberOfNotificationsFilteredOut, metricNumberOfNotificationsFilteredOut, metricNumberOfNotificationsFilteredOutInvalidAttributes, metricNumberOfNotificationsFilteredOutInvalidAttributes, metricNumberOfNotificationsFilteredOutNoMessageAttributes, metricNumberOfNotificationsFilteredOutNoMessageAttributes, metricPublishSize, metricPublishSize, metricSMSMonthToDateSpentUSD, metricSMSMonthToDateSpentUSD, metricSMSSuccessRate, metricSMSSuccessRate, validateapplyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesizejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected Topic(software.amazon.jsii.JsiiObjectRef objRef)
protected Topic(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Topic(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
TopicProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Experimental)
public Topic(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental) @NotNull public static ITopic fromTopicArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String topicArn)
scope - The parent creating construct. This parameter is required.id - The construct's name. This parameter is required.topicArn - topic ARN (i.e. arn:aws:sns:us-east-2:444455556666:MyTopic). This parameter is required.@Stability(value=Experimental) @NotNull protected Boolean getAutoCreatePolicy()
Set by subclasses.
getAutoCreatePolicy in class TopicBase@Stability(value=Experimental) @NotNull public String getTopicArn()
getTopicArn in interface ITopicgetTopicArn in class TopicBase@Stability(value=Experimental) @NotNull public String getTopicName()
getTopicName in interface ITopicgetTopicName in class TopicBaseCopyright © 2022. All rights reserved.