@Stability(value=Stable)
public static interface CfnTopic.SubscriptionProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnTopic.SubscriptionProperty.Builder
A builder for
CfnTopic.SubscriptionProperty |
static class |
CfnTopic.SubscriptionProperty.Jsii$Proxy
An implementation for
CfnTopic.SubscriptionProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnTopic.SubscriptionProperty.Builder |
builder() |
String |
getEndpoint()
The endpoint that receives notifications from the Amazon SNS topic.
|
String |
getProtocol()
The subscription's protocol.
|
@Stability(value=Stable) @NotNull String getEndpoint()
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 .
@Stability(value=Stable) @NotNull String getProtocol()
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 .
@Stability(value=Stable) static CfnTopic.SubscriptionProperty.Builder builder()
Copyright © 2022. All rights reserved.