Interface ITopic
- All Superinterfaces:
software.constructs.IConstruct
,software.constructs.IDependable
,INotificationRuleTarget
,IResource
,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
ITopic.Jsii$Default
- All Known Implementing Classes:
ITopic.Jsii$Proxy
,Topic
,TopicBase
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-21T06:34:16.441Z")
@Stability(Stable)
public interface ITopic
extends software.amazon.jsii.JsiiSerializable, IResource, INotificationRuleTarget
Represents an SNS topic.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Internal default implementation forITopic
.static final class
A proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionaddSubscription
(ITopicSubscription subscription) Subscribe some endpoint to this topic.addToResourcePolicy
(PolicyStatement statement) Adds a statement to the IAM resource policy associated with this topic.Enables content-based deduplication for FIFO topics.getFifo()
Whether this topic is an Amazon SNS FIFO queue.The ARN of the topic.The name of the topic.grantPublish
(IGrantable identity) Grant topic publishing permissions to the given identity.grantSubscribe
(IGrantable identity) Grant topic subscribing permissions to the given identity.Return the given named metric for this Topic.metric
(String metricName, MetricOptions props) Return the given named metric for this Topic.The number of messages published to your Amazon SNS topics.The number of messages published to your Amazon SNS topics.The number of messages successfully delivered from your Amazon SNS topics to subscribing endpoints.The number of messages successfully delivered from your Amazon SNS topics to subscribing endpoints.The number of messages that Amazon SNS failed to deliver.The number of messages that Amazon SNS failed to deliver.The number of messages that were rejected by subscription filter policies.The number of messages that were rejected by subscription filter policies.The number of messages that were rejected by subscription filter policies because the messages' attributes are invalid.The number of messages that were rejected by subscription filter policies because the messages' attributes are invalid.The number of messages that were rejected by subscription filter policies because the messages have no attributes.The number of messages that were rejected by subscription filter policies because the messages have no attributes.Metric for the size of messages published through this topic.metricPublishSize
(MetricOptions props) Metric for the size of messages published through this topic.The charges you have accrued since the start of the current calendar month for sending SMS messages.The charges you have accrued since the start of the current calendar month for sending SMS messages.The rate of successful SMS message deliveries.The rate of successful SMS message deliveries.Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.services.codestarnotifications.INotificationRuleTarget
bindAsNotificationRuleTarget
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getContentBasedDeduplication
Enables content-based deduplication for FIFO topics. -
getFifo
Whether this topic is an Amazon SNS FIFO queue.If false, this is a standard topic.
-
getTopicArn
The ARN of the topic. -
getTopicName
The name of the topic. -
addSubscription
Subscribe some endpoint to this topic.- Parameters:
subscription
- This parameter is required.
-
addToResourcePolicy
@Stability(Stable) @NotNull 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.- Parameters:
statement
- This parameter is required.
-
grantPublish
Grant topic publishing permissions to the given identity.- Parameters:
identity
- This parameter is required.
-
grantSubscribe
Grant topic subscribing permissions to the given identity.- Parameters:
identity
- This parameter is required.
-
metric
@Stability(Stable) @NotNull Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Return the given named metric for this Topic.- Parameters:
metricName
- This parameter is required.props
-
-
metric
Return the given named metric for this Topic.- Parameters:
metricName
- This parameter is required.
-
metricNumberOfMessagesPublished
The number of messages published to your Amazon SNS topics.Sum over 5 minutes
- Parameters:
props
-
-
metricNumberOfMessagesPublished
The number of messages published to your Amazon SNS topics.Sum over 5 minutes
-
metricNumberOfNotificationsDelivered
@Stability(Stable) @NotNull Metric metricNumberOfNotificationsDelivered(@Nullable MetricOptions props) The number of messages successfully delivered from your Amazon SNS topics to subscribing endpoints.Sum over 5 minutes
- Parameters:
props
-
-
metricNumberOfNotificationsDelivered
The number of messages successfully delivered from your Amazon SNS topics to subscribing endpoints.Sum over 5 minutes
-
metricNumberOfNotificationsFailed
The number of messages that Amazon SNS failed to deliver.Sum over 5 minutes
- Parameters:
props
-
-
metricNumberOfNotificationsFailed
The number of messages that Amazon SNS failed to deliver.Sum over 5 minutes
-
metricNumberOfNotificationsFilteredOut
@Stability(Stable) @NotNull Metric metricNumberOfNotificationsFilteredOut(@Nullable MetricOptions props) The number of messages that were rejected by subscription filter policies.Sum over 5 minutes
- Parameters:
props
-
-
metricNumberOfNotificationsFilteredOut
The number of messages that were rejected by subscription filter policies.Sum over 5 minutes
-
metricNumberOfNotificationsFilteredOutInvalidAttributes
@Stability(Stable) @NotNull 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
- Parameters:
props
-
-
metricNumberOfNotificationsFilteredOutInvalidAttributes
The number of messages that were rejected by subscription filter policies because the messages' attributes are invalid.Sum over 5 minutes
-
metricNumberOfNotificationsFilteredOutNoMessageAttributes
@Stability(Stable) @NotNull 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
- Parameters:
props
-
-
metricNumberOfNotificationsFilteredOutNoMessageAttributes
The number of messages that were rejected by subscription filter policies because the messages have no attributes.Sum over 5 minutes
-
metricPublishSize
Metric for the size of messages published through this topic.Average over 5 minutes
- Parameters:
props
-
-
metricPublishSize
Metric for the size of messages published through this topic.Average over 5 minutes
-
metricSMSMonthToDateSpentUSD
The charges you have accrued since the start of the current calendar month for sending SMS messages.Maximum over 5 minutes
- Parameters:
props
-
-
metricSMSMonthToDateSpentUSD
The charges you have accrued since the start of the current calendar month for sending SMS messages.Maximum over 5 minutes
-
metricSMSSuccessRate
The rate of successful SMS message deliveries.Sum over 5 minutes
- Parameters:
props
-
-
metricSMSSuccessRate
The rate of successful SMS message deliveries.Sum over 5 minutes
-