Describe the feature
return Subscription when calling ITopic.addSubscription
Use Case
I want to make the SQS policy deploy before the Subscription gets created so that SNS doesn't fail to deliver messages.
Proposed Solution
Currently the subscription that is created is not returned: https://github.com/aws/aws-cdk/blob/v1.159.0/packages/%40aws-cdk/aws-sns/lib/topic-base.ts#L80
Adding a return would solve the problem.
Other Information
No response
Acknowledgements
CDK version used
2
Environment details (OS name and version, etc.)
Mac OS
Describe the feature
return Subscription when calling ITopic.addSubscription
Use Case
I want to make the SQS policy deploy before the Subscription gets created so that SNS doesn't fail to deliver messages.
Proposed Solution
Currently the subscription that is created is not returned: https://github.com/aws/aws-cdk/blob/v1.159.0/packages/%40aws-cdk/aws-sns/lib/topic-base.ts#L80
Adding a return would solve the problem.
Other Information
No response
Acknowledgements
CDK version used
2
Environment details (OS name and version, etc.)
Mac OS