Interface CfnTopic.SubscriptionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnTopic.SubscriptionProperty.Jsii$Proxy
- Enclosing class:
CfnTopic
@Stability(Stable)
public static interface CfnTopic.SubscriptionProperty
extends software.amazon.jsii.JsiiSerializable
Subscription
is an embedded property that describes the subscription endpoints of an Amazon SNS topic.
For full control over subscription behavior (for example, delivery policy, filtering, raw message delivery, and cross-region subscriptions), use the AWS::SNS::Subscription resource.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.sns.*; SubscriptionProperty subscriptionProperty = SubscriptionProperty.builder() .endpoint("endpoint") .protocol("protocol") .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnTopic.SubscriptionProperty
static final class
An implementation forCfnTopic.SubscriptionProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The endpoint that receives notifications from the Amazon SNS topic.The subscription's protocol.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEndpoint
The endpoint that receives notifications from the Amazon SNS topic.The endpoint value depends on the protocol that you specify. For more information, see the
Endpoint
parameter of the[Subscribe](https://docs.aws.amazon.com/sns/latest/api/API_Subscribe.html)
action in the Amazon SNS API Reference .- See Also:
-
getProtocol
The subscription's protocol.For more information, see the
Protocol
parameter of the[Subscribe](https://docs.aws.amazon.com/sns/latest/api/API_Subscribe.html)
action in the Amazon SNS API Reference .- See Also:
-
builder
-