@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.239Z") @Stability(value=Stable) public interface ITopic extends software.amazon.jsii.JsiiSerializable, IResource, INotificationRuleTarget
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ITopic.Jsii$Default
Internal default implementation for
ITopic. |
static class |
ITopic.Jsii$Proxy
A proxy class which represents a concrete javascript instance of this type.
|
| Modifier and Type | Method and Description |
|---|---|
Subscription |
addSubscription(ITopicSubscription subscription)
Subscribe some endpoint to this topic.
|
AddToResourcePolicyResult |
addToResourcePolicy(PolicyStatement statement)
Adds a statement to the IAM resource policy associated with this topic.
|
Boolean |
getFifo()
Whether this topic is an Amazon SNS FIFO queue.
|
String |
getTopicArn()
The ARN of the topic.
|
String |
getTopicName()
The name of the topic.
|
Grant |
grantPublish(IGrantable identity)
Grant topic publishing permissions to the given identity.
|
Metric |
metric(String metricName)
Return the given named metric for this Topic.
|
Metric |
metric(String metricName,
MetricOptions props)
Return the given named metric for this Topic.
|
Metric |
metricNumberOfMessagesPublished()
The number of messages published to your Amazon SNS topics.
|
Metric |
metricNumberOfMessagesPublished(MetricOptions props)
The number of messages published to your Amazon SNS topics.
|
Metric |
metricNumberOfNotificationsDelivered()
The number of messages successfully delivered from your Amazon SNS topics to subscribing endpoints.
|
Metric |
metricNumberOfNotificationsDelivered(MetricOptions props)
The number of messages successfully delivered from your Amazon SNS topics to subscribing endpoints.
|
Metric |
metricNumberOfNotificationsFailed()
The number of messages that Amazon SNS failed to deliver.
|
Metric |
metricNumberOfNotificationsFailed(MetricOptions props)
The number of messages that Amazon SNS failed to deliver.
|
Metric |
metricNumberOfNotificationsFilteredOut()
The number of messages that were rejected by subscription filter policies.
|
Metric |
metricNumberOfNotificationsFilteredOut(MetricOptions props)
The number of messages that were rejected by subscription filter policies.
|
Metric |
metricNumberOfNotificationsFilteredOutInvalidAttributes()
The number of messages that were rejected by subscription filter policies because the messages' attributes are invalid.
|
Metric |
metricNumberOfNotificationsFilteredOutInvalidAttributes(MetricOptions props)
The number of messages that were rejected by subscription filter policies because the messages' attributes are invalid.
|
Metric |
metricNumberOfNotificationsFilteredOutNoMessageAttributes()
The number of messages that were rejected by subscription filter policies because the messages have no attributes.
|
Metric |
metricNumberOfNotificationsFilteredOutNoMessageAttributes(MetricOptions props)
The number of messages that were rejected by subscription filter policies because the messages have no attributes.
|
Metric |
metricPublishSize()
Metric for the size of messages published through this topic.
|
Metric |
metricPublishSize(MetricOptions props)
Metric for the size of messages published through this topic.
|
Metric |
metricSMSMonthToDateSpentUSD()
The charges you have accrued since the start of the current calendar month for sending SMS messages.
|
Metric |
metricSMSMonthToDateSpentUSD(MetricOptions props)
The charges you have accrued since the start of the current calendar month for sending SMS messages.
|
Metric |
metricSMSSuccessRate()
The rate of successful SMS message deliveries.
|
Metric |
metricSMSSuccessRate(MetricOptions props)
The rate of successful SMS message deliveries.
|
applyRemovalPolicy, getEnv, getStackbindAsNotificationRuleTarget@Stability(value=Stable) @NotNull Boolean getFifo()
If false, this is a standard topic.
@Stability(value=Stable) @NotNull String getTopicArn()
@Stability(value=Stable) @NotNull String getTopicName()
@Stability(value=Stable) @NotNull Subscription addSubscription(@NotNull ITopicSubscription subscription)
subscription - This parameter is required.@Stability(value=Stable) @NotNull AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement)
If this topic was created in this stack (new Topic), a topic policy
will be automatically created upon the first call to addToPolicy. If
the topic is imported (Topic.import), then this is a no-op.
statement - This parameter is required.@Stability(value=Stable) @NotNull Grant grantPublish(@NotNull IGrantable identity)
identity - This parameter is required.@Stability(value=Stable) @NotNull Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
metricName - This parameter is required.props - @Stability(value=Stable) @NotNull Metric metric(@NotNull String metricName)
metricName - This parameter is required.@Stability(value=Stable) @NotNull Metric metricNumberOfMessagesPublished(@Nullable MetricOptions props)
Sum over 5 minutes
props - @Stability(value=Stable) @NotNull Metric metricNumberOfMessagesPublished()
Sum over 5 minutes
@Stability(value=Stable) @NotNull Metric metricNumberOfNotificationsDelivered(@Nullable MetricOptions props)
Sum over 5 minutes
props - @Stability(value=Stable) @NotNull Metric metricNumberOfNotificationsDelivered()
Sum over 5 minutes
@Stability(value=Stable) @NotNull Metric metricNumberOfNotificationsFailed(@Nullable MetricOptions props)
Sum over 5 minutes
props - @Stability(value=Stable) @NotNull Metric metricNumberOfNotificationsFailed()
Sum over 5 minutes
@Stability(value=Stable) @NotNull Metric metricNumberOfNotificationsFilteredOut(@Nullable MetricOptions props)
Sum over 5 minutes
props - @Stability(value=Stable) @NotNull Metric metricNumberOfNotificationsFilteredOut()
Sum over 5 minutes
@Stability(value=Stable) @NotNull Metric metricNumberOfNotificationsFilteredOutInvalidAttributes(@Nullable MetricOptions props)
Sum over 5 minutes
props - @Stability(value=Stable) @NotNull Metric metricNumberOfNotificationsFilteredOutInvalidAttributes()
Sum over 5 minutes
@Stability(value=Stable) @NotNull Metric metricNumberOfNotificationsFilteredOutNoMessageAttributes(@Nullable MetricOptions props)
Sum over 5 minutes
props - @Stability(value=Stable) @NotNull Metric metricNumberOfNotificationsFilteredOutNoMessageAttributes()
Sum over 5 minutes
@Stability(value=Stable) @NotNull Metric metricPublishSize(@Nullable MetricOptions props)
Average over 5 minutes
props - @Stability(value=Stable) @NotNull Metric metricPublishSize()
Average over 5 minutes
@Stability(value=Stable) @NotNull Metric metricSMSMonthToDateSpentUSD(@Nullable MetricOptions props)
Maximum over 5 minutes
props - @Stability(value=Stable) @NotNull Metric metricSMSMonthToDateSpentUSD()
Maximum over 5 minutes
@Stability(value=Stable) @NotNull Metric metricSMSSuccessRate(@Nullable MetricOptions props)
Sum over 5 minutes
props - @Stability(value=Stable) @NotNull Metric metricSMSSuccessRate()
Sum over 5 minutes
Copyright © 2022. All rights reserved.