@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.245Z") @Stability(value=Stable) public abstract class TopicBase extends Resource implements ITopic
software.amazon.jsii.JsiiObject.InitializationModeITopic.Jsii$Default| Modifier | Constructor and Description |
|---|---|
protected |
TopicBase(software.constructs.Construct scope,
String id) |
protected |
TopicBase(software.constructs.Construct scope,
String id,
ResourceProps props) |
protected |
TopicBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
TopicBase(software.amazon.jsii.JsiiObjectRef objRef) |
| 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.
|
NotificationRuleTargetConfig |
bindAsNotificationRuleTarget(software.constructs.Construct _scope)
Represents a notification target That allows SNS topic to associate with this rule target.
|
protected abstract Boolean |
getAutoCreatePolicy()
Controls automatic creation of policy objects.
|
abstract Boolean |
getFifo()
Whether this topic is an Amazon SNS FIFO queue.
|
abstract String |
getTopicArn()
The ARN of the topic.
|
abstract String |
getTopicName()
The name of the topic.
|
Grant |
grantPublish(IGrantable grantee)
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, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected TopicBase(software.amazon.jsii.JsiiObjectRef objRef)
protected TopicBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
protected TopicBase(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
ResourceProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Stable)
protected TopicBase(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Stable) @NotNull public Subscription addSubscription(@NotNull ITopicSubscription subscription)
addSubscription in interface ITopicsubscription - This parameter is required.@Stability(value=Stable) @NotNull public 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 public NotificationRuleTargetConfig bindAsNotificationRuleTarget(@NotNull software.constructs.Construct _scope)
bindAsNotificationRuleTarget in interface INotificationRuleTarget_scope - This parameter is required.@Stability(value=Stable) @NotNull public Grant grantPublish(@NotNull IGrantable grantee)
grantPublish in interface ITopicgrantee - This parameter is required.@Stability(value=Stable) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
@Stability(value=Stable) @NotNull public Metric metric(@NotNull String metricName)
@Stability(value=Stable) @NotNull public Metric metricNumberOfMessagesPublished(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfMessagesPublished in interface ITopicprops - @Stability(value=Stable) @NotNull public Metric metricNumberOfMessagesPublished()
Sum over 5 minutes
metricNumberOfMessagesPublished in interface ITopic@Stability(value=Stable) @NotNull public Metric metricNumberOfNotificationsDelivered(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfNotificationsDelivered in interface ITopicprops - @Stability(value=Stable) @NotNull public Metric metricNumberOfNotificationsDelivered()
Sum over 5 minutes
metricNumberOfNotificationsDelivered in interface ITopic@Stability(value=Stable) @NotNull public Metric metricNumberOfNotificationsFailed(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfNotificationsFailed in interface ITopicprops - @Stability(value=Stable) @NotNull public Metric metricNumberOfNotificationsFailed()
Sum over 5 minutes
metricNumberOfNotificationsFailed in interface ITopic@Stability(value=Stable) @NotNull public Metric metricNumberOfNotificationsFilteredOut(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfNotificationsFilteredOut in interface ITopicprops - @Stability(value=Stable) @NotNull public Metric metricNumberOfNotificationsFilteredOut()
Sum over 5 minutes
metricNumberOfNotificationsFilteredOut in interface ITopic@Stability(value=Stable) @NotNull public Metric metricNumberOfNotificationsFilteredOutInvalidAttributes(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfNotificationsFilteredOutInvalidAttributes in interface ITopicprops - @Stability(value=Stable) @NotNull public Metric metricNumberOfNotificationsFilteredOutInvalidAttributes()
Sum over 5 minutes
metricNumberOfNotificationsFilteredOutInvalidAttributes in interface ITopic@Stability(value=Stable) @NotNull public Metric metricNumberOfNotificationsFilteredOutNoMessageAttributes(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfNotificationsFilteredOutNoMessageAttributes in interface ITopicprops - @Stability(value=Stable) @NotNull public Metric metricNumberOfNotificationsFilteredOutNoMessageAttributes()
Sum over 5 minutes
metricNumberOfNotificationsFilteredOutNoMessageAttributes in interface ITopic@Stability(value=Stable) @NotNull public Metric metricPublishSize(@Nullable MetricOptions props)
Average over 5 minutes
metricPublishSize in interface ITopicprops - @Stability(value=Stable) @NotNull public Metric metricPublishSize()
Average over 5 minutes
metricPublishSize in interface ITopic@Stability(value=Stable) @NotNull public Metric metricSMSMonthToDateSpentUSD(@Nullable MetricOptions props)
Maximum over 5 minutes
metricSMSMonthToDateSpentUSD in interface ITopicprops - @Stability(value=Stable) @NotNull public Metric metricSMSMonthToDateSpentUSD()
Maximum over 5 minutes
metricSMSMonthToDateSpentUSD in interface ITopic@Stability(value=Stable) @NotNull public Metric metricSMSSuccessRate(@Nullable MetricOptions props)
Sum over 5 minutes
metricSMSSuccessRate in interface ITopicprops - @Stability(value=Stable) @NotNull public Metric metricSMSSuccessRate()
Sum over 5 minutes
metricSMSSuccessRate in interface ITopic@Stability(value=Stable) @NotNull protected abstract Boolean getAutoCreatePolicy()
Set by subclasses.
@Stability(value=Stable) @NotNull public abstract Boolean getFifo()
If false, this is a standard topic.
@Stability(value=Stable) @NotNull public abstract String getTopicArn()
getTopicArn in interface ITopic@Stability(value=Stable) @NotNull public abstract String getTopicName()
getTopicName in interface ITopicCopyright © 2022. All rights reserved.