@Internal public static interface ITopic.Jsii$Default extends ITopic, IResource.Jsii$Default, INotificationRuleTarget.Jsii$Default
ITopic.ITopic.Jsii$Default, ITopic.Jsii$Proxy| Modifier and Type | Method and Description |
|---|---|
default Subscription |
addSubscription(ITopicSubscription subscription)
Subscribe some endpoint to this topic.
|
default AddToResourcePolicyResult |
addToResourcePolicy(PolicyStatement statement)
Adds a statement to the IAM resource policy associated with this topic.
|
default void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
default NotificationRuleTargetConfig |
bindAsNotificationRuleTarget(software.constructs.Construct scope)
Returns a target configuration for notification rule.
|
default ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
default Boolean |
getFifo()
Whether this topic is an Amazon SNS FIFO queue.
|
default software.constructs.Node |
getNode()
The tree node.
|
default Stack |
getStack()
The stack in which this resource is defined.
|
default String |
getTopicArn()
The ARN of the topic.
|
default String |
getTopicName()
The name of the topic.
|
default Grant |
grantPublish(IGrantable identity)
Grant topic publishing permissions to the given identity.
|
default Metric |
metric(String metricName,
MetricOptions props)
Return the given named metric for this Topic.
|
default Metric |
metricNumberOfMessagesPublished(MetricOptions props)
The number of messages published to your Amazon SNS topics.
|
default Metric |
metricNumberOfNotificationsDelivered(MetricOptions props)
The number of messages successfully delivered from your Amazon SNS topics to subscribing endpoints.
|
default Metric |
metricNumberOfNotificationsFailed(MetricOptions props)
The number of messages that Amazon SNS failed to deliver.
|
default Metric |
metricNumberOfNotificationsFilteredOut(MetricOptions props)
The number of messages that were rejected by subscription filter policies.
|
default Metric |
metricNumberOfNotificationsFilteredOutInvalidAttributes(MetricOptions props)
The number of messages that were rejected by subscription filter policies because the messages' attributes are invalid.
|
default Metric |
metricNumberOfNotificationsFilteredOutNoMessageAttributes(MetricOptions props)
The number of messages that were rejected by subscription filter policies because the messages have no attributes.
|
default Metric |
metricPublishSize(MetricOptions props)
Metric for the size of messages published through this topic.
|
default Metric |
metricSMSMonthToDateSpentUSD(MetricOptions props)
The charges you have accrued since the start of the current calendar month for sending SMS messages.
|
default Metric |
metricSMSSuccessRate(MetricOptions props)
The rate of successful SMS message deliveries.
|
metric, metricNumberOfMessagesPublished, metricNumberOfNotificationsDelivered, metricNumberOfNotificationsFailed, metricNumberOfNotificationsFilteredOut, metricNumberOfNotificationsFilteredOutInvalidAttributes, metricNumberOfNotificationsFilteredOutNoMessageAttributes, metricPublishSize, metricSMSMonthToDateSpentUSD, metricSMSSuccessRate@Stability(value=Stable) @NotNull default software.constructs.Node getNode()
getNode in interface software.constructs.IConstructgetNode in interface software.constructs.IConstruct.Jsii$DefaultgetNode in interface IResource.Jsii$Default@Stability(value=Stable) @NotNull default ResourceEnvironment getEnv()
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.
getEnv in interface IResourcegetEnv in interface IResource.Jsii$Default@Stability(value=Stable) @NotNull default Stack getStack()
getStack in interface IResourcegetStack in interface IResource.Jsii$Default@Stability(value=Stable) @NotNull default Boolean getFifo()
If false, this is a standard topic.
@Stability(value=Stable) @NotNull default String getTopicArn()
getTopicArn in interface ITopic@Stability(value=Stable) @NotNull default String getTopicName()
getTopicName in interface ITopic@Stability(value=Stable)
default void applyRemovalPolicy(@NotNull
RemovalPolicy policy)
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).
applyRemovalPolicy in interface IResourceapplyRemovalPolicy in interface IResource.Jsii$Defaultpolicy - This parameter is required.@Stability(value=Stable) @NotNull default NotificationRuleTargetConfig bindAsNotificationRuleTarget(@NotNull software.constructs.Construct scope)
bindAsNotificationRuleTarget in interface INotificationRuleTargetbindAsNotificationRuleTarget in interface INotificationRuleTarget.Jsii$Defaultscope - This parameter is required.@Stability(value=Stable) @NotNull default Subscription addSubscription(@NotNull ITopicSubscription subscription)
addSubscription in interface ITopicsubscription - This parameter is required.@Stability(value=Stable) @NotNull default 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.
addToResourcePolicy in interface ITopicstatement - This parameter is required.@Stability(value=Stable) @NotNull default Grant grantPublish(@NotNull IGrantable identity)
grantPublish in interface ITopicidentity - This parameter is required.@Stability(value=Stable) @NotNull default Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
@Stability(value=Stable) @NotNull default Metric metricNumberOfMessagesPublished(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfMessagesPublished in interface ITopicprops - @Stability(value=Stable) @NotNull default Metric metricNumberOfNotificationsDelivered(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfNotificationsDelivered in interface ITopicprops - @Stability(value=Stable) @NotNull default Metric metricNumberOfNotificationsFailed(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfNotificationsFailed in interface ITopicprops - @Stability(value=Stable) @NotNull default Metric metricNumberOfNotificationsFilteredOut(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfNotificationsFilteredOut in interface ITopicprops - @Stability(value=Stable) @NotNull default Metric metricNumberOfNotificationsFilteredOutInvalidAttributes(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfNotificationsFilteredOutInvalidAttributes in interface ITopicprops - @Stability(value=Stable) @NotNull default Metric metricNumberOfNotificationsFilteredOutNoMessageAttributes(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfNotificationsFilteredOutNoMessageAttributes in interface ITopicprops - @Stability(value=Stable) @NotNull default Metric metricPublishSize(@Nullable MetricOptions props)
Average over 5 minutes
metricPublishSize in interface ITopicprops - @Stability(value=Stable) @NotNull default Metric metricSMSMonthToDateSpentUSD(@Nullable MetricOptions props)
Maximum over 5 minutes
metricSMSMonthToDateSpentUSD in interface ITopicprops - @Stability(value=Stable) @NotNull default Metric metricSMSSuccessRate(@Nullable MetricOptions props)
Sum over 5 minutes
metricSMSSuccessRate in interface ITopicprops - Copyright © 2022. All rights reserved.