Skip to content

[sns] support region property for SqsSubscription #3842

@jcosentino11

Description

@jcosentino11

🚀 Feature Request

General Information

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

Description

I would like to be able to specify region when creating an SqsSubscription:

new SqsSubscription(queue,
                    SqsSubscriptionProps.builder()
                            .rawMessageDelivery(true)
                            .region("us-east-1")
                            .build());

Currently, I have to work around this via:

new CfnSubscription(this, "my-subscription", CfnSubscriptionProps.builder()
                    .region("us-east-1")
                    .protocol("sqs")
                    .topicArn("arn:aws:sns:us-east-1:123456789:MyTopic")
                    .endpoint("arn:aws:sqs:us-west-2:123456789:QueueInADifferentRegion")
                    .rawMessageDelivery(true)
                    .build());

Proposed Solution

Environment

  • CDK CLI Version: 1.6.0
  • Module Version: 1.6.0
  • OS: Linux Alpine
  • Language: Java

Other information

Metadata

Metadata

Labels

@aws-cdk/aws-snsRelated to Amazon Simple Notification Servicefeature-requestA feature should be added or improved.in-progressThis issue is being actively worked on.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions