interface RequestPolicy
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.SNS.RequestPolicy |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awssns#RequestPolicy |
![]() | software.amazon.awscdk.services.sns.RequestPolicy |
![]() | aws_cdk.aws_sns.RequestPolicy |
![]() | aws-cdk-lib » aws_sns » RequestPolicy |
Options for customising aspects of the content sent in AWS SNS HTTP/S requests.
Example
const myTopic = new sns.Topic(this, 'MyTopic');
myTopic.addSubscription(
new subscriptions.UrlSubscription(
'https://foobar.com/',
{
deliveryPolicy: {
healthyRetryPolicy: {
minDelayTarget: Duration.seconds(5),
maxDelayTarget: Duration.seconds(10),
numRetries: 6,
backoffFunction: sns.BackoffFunction.EXPONENTIAL,
},
throttlePolicy: {
maxReceivesPerSecond: 10,
},
requestPolicy: {
headerContentType: 'application/json',
},
},
},
),
);
Properties
Name | Type | Description |
---|---|---|
header | string | The content type of the notification being sent to HTTP/S endpoints. |
headerContentType?
Type:
string
(optional, default: text/plain; charset=UTF-8)
The content type of the notification being sent to HTTP/S endpoints.