Interface SubscriptionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,SubscriptionOptions
- All Known Implementing Classes:
SubscriptionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:24.046Z")
@Stability(Stable)
public interface SubscriptionProps
extends software.amazon.jsii.JsiiSerializable, SubscriptionOptions
Properties for creating a new subscription.
Example:
import software.amazon.awscdk.services.kinesisfirehose.alpha.DeliveryStream; DeliveryStream stream; Topic topic = new Topic(this, "Topic"); Subscription.Builder.create(this, "Subscription") .topic(topic) .endpoint(stream.getDeliveryStreamArn()) .protocol(SubscriptionProtocol.FIREHOSE) .subscriptionRoleArn("SAMPLE_ARN") .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forSubscriptionProps
static final class
An implementation forSubscriptionProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic SubscriptionProps.Builder
builder()
getTopic()
The topic to subscribe to.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods inherited from interface software.amazon.awscdk.services.sns.SubscriptionOptions
getDeadLetterQueue, getEndpoint, getFilterPolicy, getFilterPolicyWithMessageBody, getProtocol, getRawMessageDelivery, getRegion, getSubscriptionRoleArn
-
Method Details
-
getTopic
The topic to subscribe to. -
builder
- Returns:
- a
SubscriptionProps.Builder
ofSubscriptionProps
-