Class LambdaSubscription.Builder
java.lang.Object
software.amazon.awscdk.services.sns.subscriptions.LambdaSubscription.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LambdaSubscription>
- Enclosing class:
LambdaSubscription
@Stability(Stable)
public static final class LambdaSubscription.Builder
extends Object
implements software.amazon.jsii.Builder<LambdaSubscription>
A fluent builder for
LambdaSubscription
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static LambdaSubscription.Builder
deadLetterQueue
(IQueue deadLetterQueue) Queue to be used as dead letter queue.filterPolicy
(Map<String, ? extends SubscriptionFilter> filterPolicy) The filter policy.
-
Method Details
-
create
- Parameters:
fn
- This parameter is required.- Returns:
- a new instance of
LambdaSubscription.Builder
.
-
deadLetterQueue
Queue to be used as dead letter queue.If not passed no dead letter queue is enabled.
Default: - No dead letter queue enabled.
- Parameters:
deadLetterQueue
- Queue to be used as dead letter queue. This parameter is required.- Returns:
this
-
filterPolicy
@Stability(Stable) public LambdaSubscription.Builder filterPolicy(Map<String, ? extends SubscriptionFilter> filterPolicy) The filter policy.Default: - all messages are delivered
- Parameters:
filterPolicy
- The filter policy. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<LambdaSubscription>
- Returns:
- a newly built instance of
LambdaSubscription
.
-