Interface LambdaSubscriptionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,SubscriptionProps
- All Known Subinterfaces:
SnsEventSourceProps
- All Known Implementing Classes:
LambdaSubscriptionProps.Jsii$Proxy
,SnsEventSourceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:24.058Z")
@Stability(Stable)
public interface LambdaSubscriptionProps
extends software.amazon.jsii.JsiiSerializable, SubscriptionProps
Properties for a Lambda subscription.
Example:
import software.amazon.awscdk.services.lambda.*; Function fn; Topic myTopic = new Topic(this, "MyTopic"); // Lambda should receive only message matching the following conditions on attributes: // color: 'red' or 'orange' or begins with 'bl' // size: anything but 'small' or 'medium' // price: between 100 and 200 or greater than 300 // store: attribute must be present myTopic.addSubscription(LambdaSubscription.Builder.create(fn) .filterPolicy(Map.of( "color", SubscriptionFilter.stringFilter(StringConditions.builder() .allowlist(List.of("red", "orange")) .matchPrefixes(List.of("bl")) .matchSuffixes(List.of("ue")) .build()), "size", SubscriptionFilter.stringFilter(StringConditions.builder() .denylist(List.of("small", "medium")) .build()), "price", SubscriptionFilter.numericFilter(NumericConditions.builder() .between(BetweenCondition.builder().start(100).stop(200).build()) .greaterThan(300) .build()), "store", SubscriptionFilter.existsFilter())) .build());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forLambdaSubscriptionProps
static final class
An implementation forLambdaSubscriptionProps
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods inherited from interface software.amazon.awscdk.services.sns.subscriptions.SubscriptionProps
getDeadLetterQueue, getFilterPolicy, getFilterPolicyWithMessageBody
-
Method Details
-
builder
- Returns:
- a
LambdaSubscriptionProps.Builder
ofLambdaSubscriptionProps
-