Skip to content

Commit

Permalink
Merge branch 'main' into huijbers/fix-pkglint
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Oct 5, 2023
2 parents 64db0ff + 52eee85 commit fc110ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-sns-subscriptions/lib/sqs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class SqsSubscription 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.queue instanceof Construct)) {
if (!Construct.isConstruct(this.queue)) {
throw new Error('The supplied Queue object must be an instance of Construct');
}
const snsServicePrincipal = new iam.ServicePrincipal('sns.amazonaws.com');
Expand Down

0 comments on commit fc110ae

Please sign in to comment.