# RequestPolicy

Options for customising aspects of the content sent in AWS SNS HTTP/S requests.

- Source: [`aws-sns/lib/delivery-policy.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-sns/lib/delivery-policy.ts#L40)
- Type last changed: v2.169.0 · 21 Nov 2024

## Example

```ts
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

- `headerContentType`: string — The content type of the notification being sent to HTTP/S endpoints.

  **Default:** text/plain; charset=UTF-8
