Skip to content

Commit

Permalink
fix: fix construct check
Browse files Browse the repository at this point in the history
  • Loading branch information
mjeanroy committed Jul 3, 2023
1 parent fa3caf3 commit 466faf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-sns-subscriptions/lib/lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class LambdaSubscription implements sns.ITopicSubscription {
public bind(topic: sns.ITopic): sns.TopicSubscriptionConfig {
// Create subscription under *consuming* construct to make sure it ends up
// in the correct stack in cases of cross-stack subscriptions.
if (!(this.fn instanceof Construct)) {
if (!Construct.isConstruct(this.fn)) {
throw new Error('The supplied lambda Function object must be an instance of Construct');
}

Expand Down

0 comments on commit 466faf8

Please sign in to comment.