@Stability(value=Experimental) public static final class TopicSubscriptionConfig.Builder extends Object implements software.amazon.jsii.Builder<TopicSubscriptionConfig>
TopicSubscriptionConfig
Constructor and Description |
---|
Builder() |
@Stability(value=Experimental) public TopicSubscriptionConfig.Builder subscriberId(String subscriberId)
TopicSubscriptionConfig.getSubscriberId()
subscriberId
- The id of the SNS subscription resource created under `scope`. This parameter is required.
In most
cases, it is recommended to use the uniqueId
of the topic you are
subscribing to.this
@Stability(value=Experimental) public TopicSubscriptionConfig.Builder subscriberScope(software.constructs.Construct subscriberScope)
TopicSubscriptionConfig.getSubscriberScope()
subscriberScope
- The scope in which to create the SNS subscription resource.
Normally you'd
want the subscription to be created on the consuming stack because the
topic is usually referenced by the consumer's resource policy (e.g. SQS
queue policy). Otherwise, it will cause a cyclic reference.
If this is undefined, the subscription will be created on the topic's stack.
this
@Stability(value=Experimental) public TopicSubscriptionConfig.Builder endpoint(String endpoint)
SubscriptionOptions.getEndpoint()
endpoint
- The subscription endpoint. This parameter is required.
The meaning of this value depends on the value for 'protocol'.this
@Stability(value=Experimental) public TopicSubscriptionConfig.Builder protocol(SubscriptionProtocol protocol)
SubscriptionOptions.getProtocol()
protocol
- What type of subscription to add. This parameter is required.this
@Stability(value=Experimental) public TopicSubscriptionConfig.Builder deadLetterQueue(IQueue deadLetterQueue)
SubscriptionOptions.getDeadLetterQueue()
deadLetterQueue
- Queue to be used as dead letter queue.
If not passed no dead letter queue is enabled.this
@Stability(value=Experimental) public TopicSubscriptionConfig.Builder filterPolicy(Map<String,? extends SubscriptionFilter> filterPolicy)
SubscriptionOptions.getFilterPolicy()
filterPolicy
- The filter policy.this
@Stability(value=Experimental) public TopicSubscriptionConfig.Builder rawMessageDelivery(Boolean rawMessageDelivery)
SubscriptionOptions.getRawMessageDelivery()
rawMessageDelivery
- true if raw message delivery is enabled for the subscription.
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.this
@Stability(value=Experimental) public TopicSubscriptionConfig.Builder region(String region)
SubscriptionOptions.getRegion()
region
- The region where the topic resides, in the case of cross-region subscriptions.this
@Stability(value=Experimental) public TopicSubscriptionConfig build()
build
in interface software.amazon.jsii.Builder<TopicSubscriptionConfig>
TopicSubscriptionConfig
NullPointerException
- if any required attribute was not providedCopyright © 2021. All rights reserved.