@Stability(value=Stable) public static final class Subscription.Builder extends Object implements software.amazon.jsii.Builder<Subscription>
Subscription.| Modifier and Type | Method and Description |
|---|---|
Subscription |
build() |
static Subscription.Builder |
create(software.constructs.Construct scope,
String id) |
Subscription.Builder |
deadLetterQueue(IQueue deadLetterQueue)
Queue to be used as dead letter queue.
|
Subscription.Builder |
endpoint(String endpoint)
The subscription endpoint.
|
Subscription.Builder |
filterPolicy(Map<String,? extends SubscriptionFilter> filterPolicy)
The filter policy.
|
Subscription.Builder |
protocol(SubscriptionProtocol protocol)
What type of subscription to add.
|
Subscription.Builder |
rawMessageDelivery(Boolean rawMessageDelivery)
true if raw message delivery is enabled for the subscription.
|
Subscription.Builder |
region(String region)
The region where the topic resides, in the case of cross-region subscriptions.
|
Subscription.Builder |
subscriptionRoleArn(String subscriptionRoleArn)
Arn of role allowing access to firehose delivery stream.
|
Subscription.Builder |
topic(ITopic topic)
The topic to subscribe to.
|
@Stability(value=Stable) public static Subscription.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.Subscription.Builder.@Stability(value=Stable) public Subscription.Builder endpoint(String endpoint)
The meaning of this value depends on the value for 'protocol'.
endpoint - The subscription endpoint. This parameter is required.this@Stability(value=Stable) public Subscription.Builder protocol(SubscriptionProtocol protocol)
protocol - What type of subscription to add. This parameter is required.this@Stability(value=Stable) public Subscription.Builder deadLetterQueue(IQueue deadLetterQueue)
If not passed no dead letter queue is enabled.
Default: - No dead letter queue enabled.
deadLetterQueue - Queue to be used as dead letter queue. This parameter is required.this@Stability(value=Stable) public Subscription.Builder filterPolicy(Map<String,? extends SubscriptionFilter> filterPolicy)
Default: - all messages are delivered
filterPolicy - The filter policy. This parameter is required.this@Stability(value=Stable) public Subscription.Builder rawMessageDelivery(Boolean rawMessageDelivery)
Raw messages are free of JSON formatting and can be sent to HTTP/S and Amazon SQS endpoints. For more information, see GetSubscriptionAttributes in the Amazon Simple Notification Service API Reference.
Default: false
rawMessageDelivery - true if raw message delivery is enabled for the subscription. This parameter is required.this@Stability(value=Stable) public Subscription.Builder region(String region)
Default: - the region where the CloudFormation stack is being deployed.
region - The region where the topic resides, in the case of cross-region subscriptions. This parameter is required.this@Stability(value=Stable) public Subscription.Builder subscriptionRoleArn(String subscriptionRoleArn)
Required for a firehose subscription protocol.
Default: - No subscription role is provided
subscriptionRoleArn - Arn of role allowing access to firehose delivery stream. This parameter is required.this@Stability(value=Stable) public Subscription.Builder topic(ITopic topic)
topic - The topic to subscribe to. This parameter is required.this@Stability(value=Stable) public Subscription build()
build in interface software.amazon.jsii.Builder<Subscription>Copyright © 2022. All rights reserved.