Class ITopic.Jsii$Proxy
- All Implemented Interfaces:
IConstruct,IConstruct.Jsii$Default,IDependable,IDependable.Jsii$Default,IResource,IResource.Jsii$Default,INotificationRuleTarget,INotificationRuleTarget.Jsii$Default,ITopic,ITopic.Jsii$Default,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IConstruct.Jsii$Default
- Enclosing interface:
- ITopic
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default, IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.IDependable
IDependable.Jsii$Default, IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.codestarnotifications.INotificationRuleTarget
INotificationRuleTarget.Jsii$Default, INotificationRuleTarget.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default, IResource.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.sns.ITopic
ITopic.Jsii$Default, ITopic.Jsii$Proxy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddSubscription(ITopicSubscription subscription) Subscribe some endpoint to this topic.addToResourcePolicy(PolicyStatement statement) Adds a statement to the IAM resource policy associated with this topic.final voidapplyRemovalPolicy(RemovalPolicy policy) Apply the given removal policy to this resource.bindAsNotificationRuleTarget(software.constructs.Construct scope) Returns a target configuration for notification rule.final ResourceEnvironmentgetEnv()The environment this resource belongs to.final BooleangetFifo()Whether this topic is an Amazon SNS FIFO queue.final ConstructNodegetNode()The construct tree node for this construct.final StackgetStack()The stack in which this resource is defined.final StringThe ARN of the topic.final StringThe name of the topic.final GrantgrantPublish(IGrantable identity) Grant topic publishing permissions to the given identity.final MetricReturn the given named metric for this Topic.final Metricmetric(String metricName, MetricOptions props) Return the given named metric for this Topic.final MetricThe number of messages published to your Amazon SNS topics.final MetricThe number of messages published to your Amazon SNS topics.final MetricThe number of messages successfully delivered from your Amazon SNS topics to subscribing endpoints.final MetricThe number of messages successfully delivered from your Amazon SNS topics to subscribing endpoints.final MetricThe number of messages that Amazon SNS failed to deliver.final MetricThe number of messages that Amazon SNS failed to deliver.final MetricThe number of messages that were rejected by subscription filter policies.final MetricThe number of messages that were rejected by subscription filter policies.final MetricThe number of messages that were rejected by subscription filter policies because the messages' attributes are invalid.final MetricThe number of messages that were rejected by subscription filter policies because the messages' attributes are invalid.final MetricThe number of messages that were rejected by subscription filter policies because the messages have no attributes.final MetricThe number of messages that were rejected by subscription filter policies because the messages have no attributes.final MetricMetric for the size of messages published through this topic.final MetricmetricPublishSize(MetricOptions props) Metric for the size of messages published through this topic.final MetricThe charges you have accrued since the start of the current calendar month for sending SMS messages.final MetricThe charges you have accrued since the start of the current calendar month for sending SMS messages.final MetricThe rate of successful SMS message deliveries.final MetricThe rate of successful SMS message deliveries.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
-
-
Method Details
-
getNode
The construct tree node for this construct.- Specified by:
getNodein interfaceIConstruct- Specified by:
getNodein interfaceIConstruct.Jsii$Default- Specified by:
getNodein interfaceIResource.Jsii$Default- Specified by:
getNodein interfaceITopic.Jsii$Default
-
getEnv
The environment this resource belongs to.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.
- Specified by:
getEnvin interfaceIResource- Specified by:
getEnvin interfaceIResource.Jsii$Default- Specified by:
getEnvin interfaceITopic.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStackin interfaceIResource- Specified by:
getStackin interfaceIResource.Jsii$Default- Specified by:
getStackin interfaceITopic.Jsii$Default
-
getFifo
Whether this topic is an Amazon SNS FIFO queue.If false, this is a standard topic.
- Specified by:
getFifoin interfaceITopic- Specified by:
getFifoin interfaceITopic.Jsii$Default
-
getTopicArn
The ARN of the topic.- Specified by:
getTopicArnin interfaceITopic- Specified by:
getTopicArnin interfaceITopic.Jsii$Default
-
getTopicName
The name of the topic.- Specified by:
getTopicNamein interfaceITopic- Specified by:
getTopicNamein interfaceITopic.Jsii$Default
-
applyRemovalPolicy
Apply the given removal policy to this resource.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).- Specified by:
applyRemovalPolicyin interfaceIResource- Specified by:
applyRemovalPolicyin interfaceIResource.Jsii$Default- Specified by:
applyRemovalPolicyin interfaceITopic.Jsii$Default- Parameters:
policy- This parameter is required.
-
bindAsNotificationRuleTarget
@Stability(Stable) @NotNull public final NotificationRuleTargetConfig bindAsNotificationRuleTarget(@NotNull software.constructs.Construct scope) Returns a target configuration for notification rule.- Specified by:
bindAsNotificationRuleTargetin interfaceINotificationRuleTarget- Specified by:
bindAsNotificationRuleTargetin interfaceINotificationRuleTarget.Jsii$Default- Specified by:
bindAsNotificationRuleTargetin interfaceITopic.Jsii$Default- Parameters:
scope- This parameter is required.
-
addSubscription
Subscribe some endpoint to this topic.- Specified by:
addSubscriptionin interfaceITopic- Specified by:
addSubscriptionin interfaceITopic.Jsii$Default- Parameters:
subscription- This parameter is required.
-
addToResourcePolicy
@Stability(Stable) @NotNull public final AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement) Adds a statement to the IAM resource policy associated with this topic.If this topic was created in this stack (
new Topic), a topic policy will be automatically created upon the first call toaddToPolicy. If the topic is imported (Topic.import), then this is a no-op.- Specified by:
addToResourcePolicyin interfaceITopic- Specified by:
addToResourcePolicyin interfaceITopic.Jsii$Default- Parameters:
statement- This parameter is required.
-
grantPublish
Grant topic publishing permissions to the given identity.- Specified by:
grantPublishin interfaceITopic- Specified by:
grantPublishin interfaceITopic.Jsii$Default- Parameters:
identity- This parameter is required.
-
metric
@Stability(Stable) @NotNull public final Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Return the given named metric for this Topic.- Specified by:
metricin interfaceITopic- Specified by:
metricin interfaceITopic.Jsii$Default- Parameters:
metricName- This parameter is required.props-
-
metric
Return the given named metric for this Topic. -
metricNumberOfMessagesPublished
@Stability(Stable) @NotNull public final Metric metricNumberOfMessagesPublished(@Nullable MetricOptions props) The number of messages published to your Amazon SNS topics.Sum over 5 minutes
- Specified by:
metricNumberOfMessagesPublishedin interfaceITopic- Specified by:
metricNumberOfMessagesPublishedin interfaceITopic.Jsii$Default- Parameters:
props-
-
metricNumberOfMessagesPublished
The number of messages published to your Amazon SNS topics.Sum over 5 minutes
- Specified by:
metricNumberOfMessagesPublishedin interfaceITopic
-
metricNumberOfNotificationsDelivered
@Stability(Stable) @NotNull public final Metric metricNumberOfNotificationsDelivered(@Nullable MetricOptions props) The number of messages successfully delivered from your Amazon SNS topics to subscribing endpoints.Sum over 5 minutes
- Specified by:
metricNumberOfNotificationsDeliveredin interfaceITopic- Specified by:
metricNumberOfNotificationsDeliveredin interfaceITopic.Jsii$Default- Parameters:
props-
-
metricNumberOfNotificationsDelivered
The number of messages successfully delivered from your Amazon SNS topics to subscribing endpoints.Sum over 5 minutes
- Specified by:
metricNumberOfNotificationsDeliveredin interfaceITopic
-
metricNumberOfNotificationsFailed
@Stability(Stable) @NotNull public final Metric metricNumberOfNotificationsFailed(@Nullable MetricOptions props) The number of messages that Amazon SNS failed to deliver.Sum over 5 minutes
- Specified by:
metricNumberOfNotificationsFailedin interfaceITopic- Specified by:
metricNumberOfNotificationsFailedin interfaceITopic.Jsii$Default- Parameters:
props-
-
metricNumberOfNotificationsFailed
The number of messages that Amazon SNS failed to deliver.Sum over 5 minutes
- Specified by:
metricNumberOfNotificationsFailedin interfaceITopic
-
metricNumberOfNotificationsFilteredOut
@Stability(Stable) @NotNull public final Metric metricNumberOfNotificationsFilteredOut(@Nullable MetricOptions props) The number of messages that were rejected by subscription filter policies.Sum over 5 minutes
- Specified by:
metricNumberOfNotificationsFilteredOutin interfaceITopic- Specified by:
metricNumberOfNotificationsFilteredOutin interfaceITopic.Jsii$Default- Parameters:
props-
-
metricNumberOfNotificationsFilteredOut
The number of messages that were rejected by subscription filter policies.Sum over 5 minutes
- Specified by:
metricNumberOfNotificationsFilteredOutin interfaceITopic
-
metricNumberOfNotificationsFilteredOutInvalidAttributes
@Stability(Stable) @NotNull public final Metric metricNumberOfNotificationsFilteredOutInvalidAttributes(@Nullable MetricOptions props) The number of messages that were rejected by subscription filter policies because the messages' attributes are invalid.Sum over 5 minutes
- Specified by:
metricNumberOfNotificationsFilteredOutInvalidAttributesin interfaceITopic- Specified by:
metricNumberOfNotificationsFilteredOutInvalidAttributesin interfaceITopic.Jsii$Default- Parameters:
props-
-
metricNumberOfNotificationsFilteredOutInvalidAttributes
@Stability(Stable) @NotNull public final Metric metricNumberOfNotificationsFilteredOutInvalidAttributes()The number of messages that were rejected by subscription filter policies because the messages' attributes are invalid.Sum over 5 minutes
- Specified by:
metricNumberOfNotificationsFilteredOutInvalidAttributesin interfaceITopic
-
metricNumberOfNotificationsFilteredOutNoMessageAttributes
@Stability(Stable) @NotNull public final Metric metricNumberOfNotificationsFilteredOutNoMessageAttributes(@Nullable MetricOptions props) The number of messages that were rejected by subscription filter policies because the messages have no attributes.Sum over 5 minutes
- Specified by:
metricNumberOfNotificationsFilteredOutNoMessageAttributesin interfaceITopic- Specified by:
metricNumberOfNotificationsFilteredOutNoMessageAttributesin interfaceITopic.Jsii$Default- Parameters:
props-
-
metricNumberOfNotificationsFilteredOutNoMessageAttributes
@Stability(Stable) @NotNull public final Metric metricNumberOfNotificationsFilteredOutNoMessageAttributes()The number of messages that were rejected by subscription filter policies because the messages have no attributes.Sum over 5 minutes
- Specified by:
metricNumberOfNotificationsFilteredOutNoMessageAttributesin interfaceITopic
-
metricPublishSize
Metric for the size of messages published through this topic.Average over 5 minutes
- Specified by:
metricPublishSizein interfaceITopic- Specified by:
metricPublishSizein interfaceITopic.Jsii$Default- Parameters:
props-
-
metricPublishSize
Metric for the size of messages published through this topic.Average over 5 minutes
- Specified by:
metricPublishSizein interfaceITopic
-
metricSMSMonthToDateSpentUSD
@Stability(Stable) @NotNull public final Metric metricSMSMonthToDateSpentUSD(@Nullable MetricOptions props) The charges you have accrued since the start of the current calendar month for sending SMS messages.Maximum over 5 minutes
- Specified by:
metricSMSMonthToDateSpentUSDin interfaceITopic- Specified by:
metricSMSMonthToDateSpentUSDin interfaceITopic.Jsii$Default- Parameters:
props-
-
metricSMSMonthToDateSpentUSD
The charges you have accrued since the start of the current calendar month for sending SMS messages.Maximum over 5 minutes
- Specified by:
metricSMSMonthToDateSpentUSDin interfaceITopic
-
metricSMSSuccessRate
The rate of successful SMS message deliveries.Sum over 5 minutes
- Specified by:
metricSMSSuccessRatein interfaceITopic- Specified by:
metricSMSSuccessRatein interfaceITopic.Jsii$Default- Parameters:
props-
-
metricSMSSuccessRate
The rate of successful SMS message deliveries.Sum over 5 minutes
- Specified by:
metricSMSSuccessRatein interfaceITopic
-