Skip to content

Commit

Permalink
fix(docs): update removed subscribeLambda method example (#5060)
Browse files Browse the repository at this point in the history
  • Loading branch information
hong823 authored and mergify[bot] committed Nov 26, 2019
1 parent a48c6a1 commit d2a86a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-sns/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const fn = new lambda.Function(this, 'Function', ...);
// size: anything but 'small' or 'medium'
// price: between 100 and 200 or greater than 300
// store: attribute must be present
topic.subscribeLambda(new subs.LambdaSubscription(fn, {
topic.addSubscription(new subs.LambdaSubscription(fn, {
filterPolicy: {
color: sns.SubscriptionFilter.stringFilter({
whitelist: ['red', 'orange'],
Expand Down

0 comments on commit d2a86a5

Please sign in to comment.