Interface SubscriptionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
EmailSubscriptionProps
,LambdaSubscriptionProps
,SmsSubscriptionProps
,SnsEventSourceProps
,SqsSubscriptionProps
,UrlSubscriptionProps
- All Known Implementing Classes:
EmailSubscriptionProps.Jsii$Proxy
,LambdaSubscriptionProps.Jsii$Proxy
,SmsSubscriptionProps.Jsii$Proxy
,SnsEventSourceProps.Jsii$Proxy
,SqsSubscriptionProps.Jsii$Proxy
,SubscriptionProps.Jsii$Proxy
,UrlSubscriptionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:41.460Z")
@Stability(Stable)
public interface SubscriptionProps
extends software.amazon.jsii.JsiiSerializable
Options to subscribing to an SNS topic.
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.sns.subscriptions.*; import software.amazon.awscdk.services.sqs.*; Queue queue; SubscriptionFilter subscriptionFilter; SubscriptionProps subscriptionProps = SubscriptionProps.builder() .deadLetterQueue(queue) .filterPolicy(Map.of( "filterPolicyKey", subscriptionFilter)) .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()
default IQueue
Queue to be used as dead letter queue.default Map<String,
SubscriptionFilter> The filter policy.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDeadLetterQueue
Queue to be used as dead letter queue.If not passed no dead letter queue is enabled.
Default: - No dead letter queue enabled.
-
getFilterPolicy
The filter policy.Default: - all messages are delivered
-
builder
- Returns:
- a
SubscriptionProps.Builder
ofSubscriptionProps
-