@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:38.348Z") @Stability(value=Experimental) 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 |
|---|---|
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.
|
protected abstract Boolean |
getAutoCreatePolicy()
(experimental) Controls automatic creation of policy objects.
|
abstract String |
getTopicArn()
(experimental) The ARN of the topic.
|
abstract String |
getTopicName()
(experimental) The name of the topic.
|
Grant |
grantPublish(IGrantable grantee)
(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.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected TopicBase(software.amazon.jsii.JsiiObjectRef objRef)
protected TopicBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
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=Experimental)
protected TopicBase(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental)
public void addSubscription(@NotNull
ITopicSubscription subscription)
addSubscription in interface ITopicsubscription - This parameter is required.@Stability(value=Experimental) @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=Experimental) @NotNull public Grant grantPublish(@NotNull IGrantable grantee)
grantPublish in interface ITopicgrantee - This parameter is required.@Stability(value=Experimental) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
@Stability(value=Experimental) @NotNull public Metric metric(@NotNull String metricName)
@Stability(value=Experimental) @NotNull public Metric metricNumberOfMessagesPublished(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfMessagesPublished in interface ITopicprops - @Stability(value=Experimental) @NotNull public Metric metricNumberOfMessagesPublished()
Sum over 5 minutes
metricNumberOfMessagesPublished in interface ITopic@Stability(value=Experimental) @NotNull public Metric metricNumberOfNotificationsDelivered(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfNotificationsDelivered in interface ITopicprops - @Stability(value=Experimental) @NotNull public Metric metricNumberOfNotificationsDelivered()
Sum over 5 minutes
metricNumberOfNotificationsDelivered in interface ITopic@Stability(value=Experimental) @NotNull public Metric metricNumberOfNotificationsFailed(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfNotificationsFailed in interface ITopicprops - @Stability(value=Experimental) @NotNull public Metric metricNumberOfNotificationsFailed()
Sum over 5 minutes
metricNumberOfNotificationsFailed in interface ITopic@Stability(value=Experimental) @NotNull public Metric metricNumberOfNotificationsFilteredOut(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfNotificationsFilteredOut in interface ITopicprops - @Stability(value=Experimental) @NotNull public Metric metricNumberOfNotificationsFilteredOut()
Sum over 5 minutes
metricNumberOfNotificationsFilteredOut in interface ITopic@Stability(value=Experimental) @NotNull public Metric metricNumberOfNotificationsFilteredOutInvalidAttributes(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfNotificationsFilteredOutInvalidAttributes in interface ITopicprops - @Stability(value=Experimental) @NotNull public Metric metricNumberOfNotificationsFilteredOutInvalidAttributes()
Sum over 5 minutes
metricNumberOfNotificationsFilteredOutInvalidAttributes in interface ITopic@Stability(value=Experimental) @NotNull public Metric metricNumberOfNotificationsFilteredOutNoMessageAttributes(@Nullable MetricOptions props)
Sum over 5 minutes
metricNumberOfNotificationsFilteredOutNoMessageAttributes in interface ITopicprops - @Stability(value=Experimental) @NotNull public Metric metricNumberOfNotificationsFilteredOutNoMessageAttributes()
Sum over 5 minutes
metricNumberOfNotificationsFilteredOutNoMessageAttributes in interface ITopic@Stability(value=Experimental) @NotNull public Metric metricPublishSize(@Nullable MetricOptions props)
Average over 5 minutes
metricPublishSize in interface ITopicprops - @Stability(value=Experimental) @NotNull public Metric metricPublishSize()
Average over 5 minutes
metricPublishSize in interface ITopic@Stability(value=Experimental) @NotNull public Metric metricSMSMonthToDateSpentUSD(@Nullable MetricOptions props)
Maximum over 5 minutes
metricSMSMonthToDateSpentUSD in interface ITopicprops - @Stability(value=Experimental) @NotNull public Metric metricSMSMonthToDateSpentUSD()
Maximum over 5 minutes
metricSMSMonthToDateSpentUSD in interface ITopic@Stability(value=Experimental) @NotNull public Metric metricSMSSuccessRate(@Nullable MetricOptions props)
Sum over 5 minutes
metricSMSSuccessRate in interface ITopicprops - @Stability(value=Experimental) @NotNull public Metric metricSMSSuccessRate()
Sum over 5 minutes
metricSMSSuccessRate in interface ITopic@Stability(value=Experimental) @NotNull protected abstract Boolean getAutoCreatePolicy()
Set by subclasses.
@Stability(value=Experimental) @NotNull public abstract String getTopicArn()
getTopicArn in interface ITopic@Stability(value=Experimental) @NotNull public abstract String getTopicName()
getTopicName in interface ITopicCopyright © 2021. All rights reserved.