Interface RequestPolicy
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
RequestPolicy.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:49.083Z")
@Stability(Stable)
public interface RequestPolicy
extends software.amazon.jsii.JsiiSerializable
Options for customising aspects of the content sent in AWS SNS HTTP/S requests.
Example:
Topic myTopic = new Topic(this, "MyTopic");
myTopic.addSubscription(
UrlSubscription.Builder.create("https://foobar.com/")
.deliveryPolicy(DeliveryPolicy.builder()
.healthyRetryPolicy(HealthyRetryPolicy.builder()
.minDelayTarget(Duration.seconds(5))
.maxDelayTarget(Duration.seconds(10))
.numRetries(6)
.backoffFunction(BackoffFunction.EXPONENTIAL)
.build())
.throttlePolicy(ThrottlePolicy.builder()
.maxReceivesPerSecond(10)
.build())
.requestPolicy(RequestPolicy.builder()
.headerContentType("application/json")
.build())
.build())
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forRequestPolicystatic final classAn implementation forRequestPolicy -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestPolicy.Builderbuilder()default StringThe content type of the notification being sent to HTTP/S endpoints.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getHeaderContentType
The content type of the notification being sent to HTTP/S endpoints.Default: - text/plain; charset=UTF-8
-
builder
- Returns:
- a
RequestPolicy.BuilderofRequestPolicy
-