@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:48.080Z") @Stability(value=Experimental) public interface ITopic extends software.amazon.jsii.JsiiSerializable, IResource
| 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 |
|---|---|
void |
addSubscription(ITopicSubscription subscription)
(experimental) Subscribe some endpoint to this topic.
|
AddToResourcePolicyResult |
addToResourcePolicy(PolicyStatement statement)
(experimental) Adds a statement to the IAM resource policy associated with this topic.
|
String |
getTopicArn()
(experimental) The ARN of the topic.
|
String |
getTopicName()
(experimental) The name of the topic.
|
Grant |
grantPublish(IGrantable identity)
(experimental) Grant topic publishing permissions to the given identity.
|
Metric |
metric(String metricName)
(experimental) Return the given named metric for this Topic.
|
Metric |
metric(String metricName,
MetricOptions props)
(experimental) Return the given named metric for this Topic.
|
Metric |
metricNumberOfMessagesPublished()
(experimental) The number of messages published to your Amazon SNS topics.
|
Metric |
metricNumberOfMessagesPublished(MetricOptions props)
(experimental) The number of messages published to your Amazon SNS topics.
|
Metric |
metricNumberOfNotificationsDelivered()
(experimental) The number of messages successfully delivered from your Amazon SNS topics to subscribing endpoints.
|
Metric |
metricNumberOfNotificationsDelivered(MetricOptions props)
(experimental) The number of messages successfully delivered from your Amazon SNS topics to subscribing endpoints.
|
Metric |
metricNumberOfNotificationsFailed()
(experimental) The number of messages that Amazon SNS failed to deliver.
|
Metric |
metricNumberOfNotificationsFailed(MetricOptions props)
(experimental) The number of messages that Amazon SNS failed to deliver.
|
Metric |
metricNumberOfNotificationsFilteredOut()
(experimental) The number of messages that were rejected by subscription filter policies.
|
Metric |
metricNumberOfNotificationsFilteredOut(MetricOptions props)
(experimental) The number of messages that were rejected by subscription filter policies.
|
Metric |
metricNumberOfNotificationsFilteredOutInvalidAttributes()
(experimental) The number of messages that were rejected by subscription filter policies because the messages' attributes are invalid.
|
Metric |
metricNumberOfNotificationsFilteredOutInvalidAttributes(MetricOptions props)
(experimental) The number of messages that were rejected by subscription filter policies because the messages' attributes are invalid.
|
Metric |
metricNumberOfNotificationsFilteredOutNoMessageAttributes()
(experimental) The number of messages that were rejected by subscription filter policies because the messages have no attributes.
|
Metric |
metricNumberOfNotificationsFilteredOutNoMessageAttributes(MetricOptions props)
(experimental) The number of messages that were rejected by subscription filter policies because the messages have no attributes.
|
Metric |
metricPublishSize()
(experimental) Metric for the size of messages published through this topic.
|
Metric |
metricPublishSize(MetricOptions props)
(experimental) Metric for the size of messages published through this topic.
|
Metric |
metricSMSMonthToDateSpentUSD()
(experimental) The charges you have accrued since the start of the current calendar month for sending SMS messages.
|
Metric |
metricSMSMonthToDateSpentUSD(MetricOptions props)
(experimental) The charges you have accrued since the start of the current calendar month for sending SMS messages.
|
Metric |
metricSMSSuccessRate()
(experimental) The rate of successful SMS message deliveries.
|
Metric |
metricSMSSuccessRate(MetricOptions props)
(experimental) The rate of successful SMS message deliveries.
|
@Stability(value=Experimental) @NotNull String getTopicArn()
@Stability(value=Experimental) @NotNull String getTopicName()
@Stability(value=Experimental)
void addSubscription(@NotNull
ITopicSubscription subscription)
subscription - This parameter is required.@Stability(value=Experimental) @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=Experimental) @NotNull Grant grantPublish(@NotNull IGrantable identity)
identity - This parameter is required.@Stability(value=Experimental) @NotNull Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
metricName - This parameter is required.props - @Stability(value=Experimental) @NotNull Metric metric(@NotNull String metricName)
metricName - This parameter is required.@Stability(value=Experimental) @NotNull Metric metricNumberOfMessagesPublished(@Nullable MetricOptions props)
Sum over 5 minutes
props - @Stability(value=Experimental) @NotNull Metric metricNumberOfMessagesPublished()
Sum over 5 minutes
@Stability(value=Experimental) @NotNull Metric metricNumberOfNotificationsDelivered(@Nullable MetricOptions props)
Sum over 5 minutes
props - @Stability(value=Experimental) @NotNull Metric metricNumberOfNotificationsDelivered()
Sum over 5 minutes
@Stability(value=Experimental) @NotNull Metric metricNumberOfNotificationsFailed(@Nullable MetricOptions props)
Sum over 5 minutes
props - @Stability(value=Experimental) @NotNull Metric metricNumberOfNotificationsFailed()
Sum over 5 minutes
@Stability(value=Experimental) @NotNull Metric metricNumberOfNotificationsFilteredOut(@Nullable MetricOptions props)
Sum over 5 minutes
props - @Stability(value=Experimental) @NotNull Metric metricNumberOfNotificationsFilteredOut()
Sum over 5 minutes
@Stability(value=Experimental) @NotNull Metric metricNumberOfNotificationsFilteredOutInvalidAttributes(@Nullable MetricOptions props)
Sum over 5 minutes
props - @Stability(value=Experimental) @NotNull Metric metricNumberOfNotificationsFilteredOutInvalidAttributes()
Sum over 5 minutes
@Stability(value=Experimental) @NotNull Metric metricNumberOfNotificationsFilteredOutNoMessageAttributes(@Nullable MetricOptions props)
Sum over 5 minutes
props - @Stability(value=Experimental) @NotNull Metric metricNumberOfNotificationsFilteredOutNoMessageAttributes()
Sum over 5 minutes
@Stability(value=Experimental) @NotNull Metric metricPublishSize(@Nullable MetricOptions props)
Average over 5 minutes
props - @Stability(value=Experimental) @NotNull Metric metricPublishSize()
Average over 5 minutes
@Stability(value=Experimental) @NotNull Metric metricSMSMonthToDateSpentUSD(@Nullable MetricOptions props)
Maximum over 5 minutes
props - @Stability(value=Experimental) @NotNull Metric metricSMSMonthToDateSpentUSD()
Maximum over 5 minutes
@Stability(value=Experimental) @NotNull Metric metricSMSSuccessRate(@Nullable MetricOptions props)
Sum over 5 minutes
props - @Stability(value=Experimental) @NotNull Metric metricSMSSuccessRate()
Sum over 5 minutes
Copyright © 2021. All rights reserved.