Class ITopic.Jsii$Proxy
- All Implemented Interfaces:
IResource
,IResource.Jsii$Default
,INotificationRuleTarget
,INotificationRuleTarget.Jsii$Default
,ITopic
,ITopic.Jsii$Default
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IConstruct.Jsii$Default
,software.constructs.IDependable
,software.constructs.IDependable.Jsii$Default
- Enclosing interface:
ITopic
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
Nested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.codestarnotifications.INotificationRuleTarget
INotificationRuleTarget.Jsii$Default, INotificationRuleTarget.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.sns.ITopic
ITopic.Jsii$Default, ITopic.Jsii$Proxy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Subscription
addSubscription
(ITopicSubscription subscription) Subscribe some endpoint to this topic.addToResourcePolicy
(PolicyStatement statement) Adds a statement to the IAM resource policy associated with this topic.final void
applyRemovalPolicy
(RemovalPolicy policy) Apply the given removal policy to this resource.bindAsNotificationRuleTarget
(software.constructs.Construct scope) Returns a target configuration for notification rule.final Boolean
Enables content-based deduplication for FIFO topics.final ResourceEnvironment
getEnv()
The environment this resource belongs to.final Boolean
getFifo()
Whether this topic is an Amazon SNS FIFO queue.final software.constructs.Node
getNode()
The tree node.final Stack
getStack()
The stack in which this resource is defined.final String
The ARN of the topic.final String
The name of the topic.final Grant
grantPublish
(IGrantable identity) Grant topic publishing permissions to the given identity.final Grant
grantSubscribe
(IGrantable identity) Grant topic subscribing permissions to the given identity.final Metric
Return the given named metric for this Topic.final Metric
metric
(String metricName, MetricOptions props) Return the given named metric for this Topic.final Metric
The number of messages published to your Amazon SNS topics.final Metric
The number of messages published to your Amazon SNS topics.final Metric
The number of messages successfully delivered from your Amazon SNS topics to subscribing endpoints.final Metric
The number of messages successfully delivered from your Amazon SNS topics to subscribing endpoints.final Metric
The number of messages that Amazon SNS failed to deliver.final Metric
The number of messages that Amazon SNS failed to deliver.final Metric
The number of messages that were rejected by subscription filter policies.final Metric
The number of messages that were rejected by subscription filter policies.final Metric
The number of messages that were rejected by subscription filter policies because the messages' attributes are invalid.final Metric
The number of messages that were rejected by subscription filter policies because the messages' attributes are invalid.final Metric
The number of messages that were rejected by subscription filter policies because the messages have no attributes.final Metric
The number of messages that were rejected by subscription filter policies because the messages have no attributes.final Metric
Metric for the size of messages published through this topic.final Metric
metricPublishSize
(MetricOptions props) Metric for the size of messages published through this topic.final Metric
The charges you have accrued since the start of the current calendar month for sending SMS messages.final Metric
The charges you have accrued since the start of the current calendar month for sending SMS messages.final Metric
The rate of successful SMS message deliveries.final Metric
The rate of successful SMS message deliveries.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
-
-
Method Details
-
getNode
@Stability(Stable) @NotNull public final software.constructs.Node getNode()The tree node.- Specified by:
getNode
in interfacesoftware.constructs.IConstruct
- Specified by:
getNode
in interfacesoftware.constructs.IConstruct.Jsii$Default
- Specified by:
getNode
in interfaceIResource.Jsii$Default
- Specified by:
getNode
in interfaceITopic.Jsii$Default
-
getEnv
The environment this resource belongs to.For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
- Specified by:
getEnv
in interfaceIResource
- Specified by:
getEnv
in interfaceIResource.Jsii$Default
- Specified by:
getEnv
in interfaceITopic.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStack
in interfaceIResource
- Specified by:
getStack
in interfaceIResource.Jsii$Default
- Specified by:
getStack
in interfaceITopic.Jsii$Default
-
getContentBasedDeduplication
Enables content-based deduplication for FIFO topics.- Specified by:
getContentBasedDeduplication
in interfaceITopic
- Specified by:
getContentBasedDeduplication
in interfaceITopic.Jsii$Default
-
getFifo
Whether this topic is an Amazon SNS FIFO queue.If false, this is a standard topic.
- Specified by:
getFifo
in interfaceITopic
- Specified by:
getFifo
in interfaceITopic.Jsii$Default
-
getTopicArn
The ARN of the topic.- Specified by:
getTopicArn
in interfaceITopic
- Specified by:
getTopicArn
in interfaceITopic.Jsii$Default
-
getTopicName
The name of the topic.- Specified by:
getTopicName
in interfaceITopic
- Specified by:
getTopicName
in interfaceITopic.Jsii$Default
-
applyRemovalPolicy
Apply the given removal policy to this resource.The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (
RemovalPolicy.DESTROY
), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN
).- Specified by:
applyRemovalPolicy
in interfaceIResource
- Specified by:
applyRemovalPolicy
in interfaceIResource.Jsii$Default
- Specified by:
applyRemovalPolicy
in interfaceITopic.Jsii$Default
- Parameters:
policy
- This parameter is required.
-
bindAsNotificationRuleTarget
@Stability(Stable) @NotNull public final NotificationRuleTargetConfig bindAsNotificationRuleTarget(@NotNull software.constructs.Construct scope) Returns a target configuration for notification rule.- Specified by:
bindAsNotificationRuleTarget
in interfaceINotificationRuleTarget
- Specified by:
bindAsNotificationRuleTarget
in interfaceINotificationRuleTarget.Jsii$Default
- Specified by:
bindAsNotificationRuleTarget
in interfaceITopic.Jsii$Default
- Parameters:
scope
- This parameter is required.
-
addSubscription
@Stability(Stable) @NotNull public final Subscription addSubscription(@NotNull ITopicSubscription subscription) Subscribe some endpoint to this topic.- Specified by:
addSubscription
in interfaceITopic
- Specified by:
addSubscription
in interfaceITopic.Jsii$Default
- Parameters:
subscription
- This parameter is required.
-
addToResourcePolicy
@Stability(Stable) @NotNull public final AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement) Adds a statement to the IAM resource policy associated with this topic.If this topic was created in this stack (
new Topic
), a topic policy will be automatically created upon the first call toaddToResourcePolicy
. If the topic is imported (Topic.import
), then this is a no-op.- Specified by:
addToResourcePolicy
in interfaceITopic
- Specified by:
addToResourcePolicy
in interfaceITopic.Jsii$Default
- Parameters:
statement
- This parameter is required.
-
grantPublish
Grant topic publishing permissions to the given identity.- Specified by:
grantPublish
in interfaceITopic
- Specified by:
grantPublish
in interfaceITopic.Jsii$Default
- Parameters:
identity
- This parameter is required.
-
grantSubscribe
Grant topic subscribing permissions to the given identity.- Specified by:
grantSubscribe
in interfaceITopic
- Specified by:
grantSubscribe
in interfaceITopic.Jsii$Default
- Parameters:
identity
- This parameter is required.
-
metric
@Stability(Stable) @NotNull public final Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Return the given named metric for this Topic.- Specified by:
metric
in interfaceITopic
- Specified by:
metric
in interfaceITopic.Jsii$Default
- Parameters:
metricName
- This parameter is required.props
-
-
metric
Return the given named metric for this Topic. -
metricNumberOfMessagesPublished
@Stability(Stable) @NotNull public final Metric metricNumberOfMessagesPublished(@Nullable MetricOptions props) The number of messages published to your Amazon SNS topics.Sum over 5 minutes
- Specified by:
metricNumberOfMessagesPublished
in interfaceITopic
- Specified by:
metricNumberOfMessagesPublished
in interfaceITopic.Jsii$Default
- Parameters:
props
-
-
metricNumberOfMessagesPublished
The number of messages published to your Amazon SNS topics.Sum over 5 minutes
- Specified by:
metricNumberOfMessagesPublished
in interfaceITopic
-
metricNumberOfNotificationsDelivered
@Stability(Stable) @NotNull public final Metric metricNumberOfNotificationsDelivered(@Nullable MetricOptions props) The number of messages successfully delivered from your Amazon SNS topics to subscribing endpoints.Sum over 5 minutes
- Specified by:
metricNumberOfNotificationsDelivered
in interfaceITopic
- Specified by:
metricNumberOfNotificationsDelivered
in interfaceITopic.Jsii$Default
- Parameters:
props
-
-
metricNumberOfNotificationsDelivered
The number of messages successfully delivered from your Amazon SNS topics to subscribing endpoints.Sum over 5 minutes
- Specified by:
metricNumberOfNotificationsDelivered
in interfaceITopic
-
metricNumberOfNotificationsFailed
@Stability(Stable) @NotNull public final Metric metricNumberOfNotificationsFailed(@Nullable MetricOptions props) The number of messages that Amazon SNS failed to deliver.Sum over 5 minutes
- Specified by:
metricNumberOfNotificationsFailed
in interfaceITopic
- Specified by:
metricNumberOfNotificationsFailed
in interfaceITopic.Jsii$Default
- Parameters:
props
-
-
metricNumberOfNotificationsFailed
The number of messages that Amazon SNS failed to deliver.Sum over 5 minutes
- Specified by:
metricNumberOfNotificationsFailed
in interfaceITopic
-
metricNumberOfNotificationsFilteredOut
@Stability(Stable) @NotNull public final Metric metricNumberOfNotificationsFilteredOut(@Nullable MetricOptions props) The number of messages that were rejected by subscription filter policies.Sum over 5 minutes
- Specified by:
metricNumberOfNotificationsFilteredOut
in interfaceITopic
- Specified by:
metricNumberOfNotificationsFilteredOut
in interfaceITopic.Jsii$Default
- Parameters:
props
-
-
metricNumberOfNotificationsFilteredOut
The number of messages that were rejected by subscription filter policies.Sum over 5 minutes
- Specified by:
metricNumberOfNotificationsFilteredOut
in interfaceITopic
-
metricNumberOfNotificationsFilteredOutInvalidAttributes
@Stability(Stable) @NotNull public final Metric metricNumberOfNotificationsFilteredOutInvalidAttributes(@Nullable MetricOptions props) The number of messages that were rejected by subscription filter policies because the messages' attributes are invalid.Sum over 5 minutes
- Specified by:
metricNumberOfNotificationsFilteredOutInvalidAttributes
in interfaceITopic
- Specified by:
metricNumberOfNotificationsFilteredOutInvalidAttributes
in interfaceITopic.Jsii$Default
- Parameters:
props
-
-
metricNumberOfNotificationsFilteredOutInvalidAttributes
@Stability(Stable) @NotNull public final Metric metricNumberOfNotificationsFilteredOutInvalidAttributes()The number of messages that were rejected by subscription filter policies because the messages' attributes are invalid.Sum over 5 minutes
- Specified by:
metricNumberOfNotificationsFilteredOutInvalidAttributes
in interfaceITopic
-
metricNumberOfNotificationsFilteredOutNoMessageAttributes
@Stability(Stable) @NotNull public final Metric metricNumberOfNotificationsFilteredOutNoMessageAttributes(@Nullable MetricOptions props) The number of messages that were rejected by subscription filter policies because the messages have no attributes.Sum over 5 minutes
- Specified by:
metricNumberOfNotificationsFilteredOutNoMessageAttributes
in interfaceITopic
- Specified by:
metricNumberOfNotificationsFilteredOutNoMessageAttributes
in interfaceITopic.Jsii$Default
- Parameters:
props
-
-
metricNumberOfNotificationsFilteredOutNoMessageAttributes
@Stability(Stable) @NotNull public final Metric metricNumberOfNotificationsFilteredOutNoMessageAttributes()The number of messages that were rejected by subscription filter policies because the messages have no attributes.Sum over 5 minutes
- Specified by:
metricNumberOfNotificationsFilteredOutNoMessageAttributes
in interfaceITopic
-
metricPublishSize
Metric for the size of messages published through this topic.Average over 5 minutes
- Specified by:
metricPublishSize
in interfaceITopic
- Specified by:
metricPublishSize
in interfaceITopic.Jsii$Default
- Parameters:
props
-
-
metricPublishSize
Metric for the size of messages published through this topic.Average over 5 minutes
- Specified by:
metricPublishSize
in interfaceITopic
-
metricSMSMonthToDateSpentUSD
@Stability(Stable) @NotNull public final Metric metricSMSMonthToDateSpentUSD(@Nullable MetricOptions props) The charges you have accrued since the start of the current calendar month for sending SMS messages.Maximum over 5 minutes
- Specified by:
metricSMSMonthToDateSpentUSD
in interfaceITopic
- Specified by:
metricSMSMonthToDateSpentUSD
in interfaceITopic.Jsii$Default
- Parameters:
props
-
-
metricSMSMonthToDateSpentUSD
The charges you have accrued since the start of the current calendar month for sending SMS messages.Maximum over 5 minutes
- Specified by:
metricSMSMonthToDateSpentUSD
in interfaceITopic
-
metricSMSSuccessRate
The rate of successful SMS message deliveries.Sum over 5 minutes
- Specified by:
metricSMSSuccessRate
in interfaceITopic
- Specified by:
metricSMSSuccessRate
in interfaceITopic.Jsii$Default
- Parameters:
props
-
-
metricSMSSuccessRate
The rate of successful SMS message deliveries.Sum over 5 minutes
- Specified by:
metricSMSSuccessRate
in interfaceITopic
-