Skip to content

Commit 4d0258f

Browse files
authored
Update README.md
1 parent 237534d commit 4d0258f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/aws-cdk-lib/aws-sns/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,13 @@ declare const fn: lambda.Function;
121121

122122
// Lambda should receive only message matching the following conditions on message body:
123123
// color: 'red' or 'orange'
124+
// store: attribute must not be present
124125
myTopic.addSubscription(new subscriptions.LambdaSubscription(fn, {
125126
filterPolicyWithMessageBody: {
126127
background: sns.FilterOrPolicy.policy({
127128
color: sns.FilterOrPolicy.filter(sns.SubscriptionFilter.stringFilter({
128129
allowlist: ['red', 'orange'],
130+
store: sns.SubscriptionFilter.existsFilter(false),
129131
})),
130132
}),
131133
},

0 commit comments

Comments
 (0)