@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.243Z") @Stability(value=Stable) public interface SubscriptionOptions extends software.amazon.jsii.JsiiSerializable
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.*;
import software.amazon.awscdk.services.sqs.*;
Queue queue;
SubscriptionFilter subscriptionFilter;
SubscriptionOptions subscriptionOptions = SubscriptionOptions.builder()
.endpoint("endpoint")
.protocol(SubscriptionProtocol.HTTP)
// the properties below are optional
.deadLetterQueue(queue)
.filterPolicy(Map.of(
"filterPolicyKey", subscriptionFilter))
.rawMessageDelivery(false)
.region("region")
.subscriptionRoleArn("subscriptionRoleArn")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
SubscriptionOptions.Builder
A builder for
SubscriptionOptions |
static class |
SubscriptionOptions.Jsii$Proxy
An implementation for
SubscriptionOptions |
| Modifier and Type | Method and Description |
|---|---|
static SubscriptionOptions.Builder |
builder() |
default IQueue |
getDeadLetterQueue()
Queue to be used as dead letter queue.
|
String |
getEndpoint()
The subscription endpoint.
|
default Map<String,SubscriptionFilter> |
getFilterPolicy()
The filter policy.
|
SubscriptionProtocol |
getProtocol()
What type of subscription to add.
|
default Boolean |
getRawMessageDelivery()
true if raw message delivery is enabled for the subscription.
|
default String |
getRegion()
The region where the topic resides, in the case of cross-region subscriptions.
|
default String |
getSubscriptionRoleArn()
Arn of role allowing access to firehose delivery stream.
|
@Stability(value=Stable) @NotNull String getEndpoint()
The meaning of this value depends on the value for 'protocol'.
@Stability(value=Stable) @NotNull SubscriptionProtocol getProtocol()
@Stability(value=Stable) @Nullable default IQueue getDeadLetterQueue()
If not passed no dead letter queue is enabled.
Default: - No dead letter queue enabled.
@Stability(value=Stable) @Nullable default Map<String,SubscriptionFilter> getFilterPolicy()
Default: - all messages are delivered
@Stability(value=Stable) @Nullable default Boolean getRawMessageDelivery()
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
@Stability(value=Stable) @Nullable default String getRegion()
Default: - the region where the CloudFormation stack is being deployed.
@Stability(value=Stable) @Nullable default String getSubscriptionRoleArn()
Required for a firehose subscription protocol.
Default: - No subscription role is provided
@Stability(value=Stable) static SubscriptionOptions.Builder builder()
SubscriptionOptions.Builder of SubscriptionOptionsCopyright © 2022. All rights reserved.