public static interface CfnRoute.HttpRetryPolicyProperty
Specify at least one value for at least one of the types of RetryEvents
, a value for maxRetries
, and a value for perRetryTimeout
. Both server-error
and gateway-error
under httpRetryEvents
include the Envoy reset
policy. For more information on the reset
policy, see the Envoy documentation .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.appmesh.*; HttpRetryPolicyProperty httpRetryPolicyProperty = HttpRetryPolicyProperty.builder() .maxRetries(123) .perRetryTimeout(DurationProperty.builder() .unit("unit") .value(123) .build()) // the properties below are optional .httpRetryEvents(List.of("httpRetryEvents")) .tcpRetryEvents(List.of("tcpRetryEvents")) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnRoute.HttpRetryPolicyProperty.Builder
A builder for
CfnRoute.HttpRetryPolicyProperty |
static class |
CfnRoute.HttpRetryPolicyProperty.Jsii$Proxy
An implementation for
CfnRoute.HttpRetryPolicyProperty |
Modifier and Type | Method and Description |
---|---|
static CfnRoute.HttpRetryPolicyProperty.Builder |
builder() |
default java.util.List<java.lang.String> |
getHttpRetryEvents()
Specify at least one of the following values.
|
java.lang.Number |
getMaxRetries()
The maximum number of retry attempts.
|
java.lang.Object |
getPerRetryTimeout()
The timeout for each retry attempt.
|
default java.util.List<java.lang.String> |
getTcpRetryEvents()
Specify a valid value.
|
java.lang.Number getMaxRetries()
java.lang.Object getPerRetryTimeout()
default java.util.List<java.lang.String> getHttpRetryEvents()
default java.util.List<java.lang.String> getTcpRetryEvents()
The event occurs before any processing of a request has started and is encountered when the upstream is temporarily or permanently unavailable.
static CfnRoute.HttpRetryPolicyProperty.Builder builder()