aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.5k stars 3.84k forks source link

(sns): Allow delivery retry policy configuration of HTTPS subscription on SNS topic #17576

Open kunalshah opened 2 years ago

kunalshah commented 2 years ago

Description

While creating HTTPS Subscription on SNS topic, there's no way to configure the retry policy.

Use Case

I am creating SNS topic and HTTPS subscription using CDK and want to provide custom delivery retry policy.

Proposed Solution

Update UrlSubscriptionProps interface to provide deliveryRetryPolicy as well.

Other information

No response

Acknowledge

njlynch commented 2 years ago

Thanks for the feature request.

While you're waiting for the feature, you can use escape hatches to set the underlying Cloudformation properties. (In this case, it looks like the Subscription DeliveryPolicy).

Relevant docs on the feature for reference: https://docs.aws.amazon.com/sns/latest/dg/sns-message-delivery-retries.html#creating-delivery-policy

fertrevino commented 2 years ago

I just came across this use case, it would be neat it implemented

dannellyz commented 1 year ago

Also working this for being able to set the HTTP/S Content Header type via the topic CDK creation for those that have subscribers of multiple types. Thanks!