Skip to content
v2.275.0

ThrottlePolicy Struct ​

Options for customising AWS SNS HTTP/S delivery throttling.

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 ​

maxReceivesPerSecondoptionalnumbermax_receives_per_secondoptionalint | floatmaxReceivesPerSecondoptionalNumberMaxReceivesPerSecondoptionaldoubleMaxReceivesPerSecondoptional*float64#
The maximum number of deliveries per second, per subscription.

Default: no throttling