Interface CfnRoute.GrpcRetryPolicyProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRoute.GrpcRetryPolicyProperty.Jsii$Proxy
- Enclosing class:
CfnRoute
@Stability(Stable)
public static interface CfnRoute.GrpcRetryPolicyProperty
extends software.amazon.jsii.JsiiSerializable
An object that represents a retry policy.
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.*;
GrpcRetryPolicyProperty grpcRetryPolicyProperty = GrpcRetryPolicyProperty.builder()
.maxRetries(123)
.perRetryTimeout(DurationProperty.builder()
.unit("unit")
.value(123)
.build())
// the properties below are optional
.grpcRetryEvents(List.of("grpcRetryEvents"))
.httpRetryEvents(List.of("httpRetryEvents"))
.tcpRetryEvents(List.of("tcpRetryEvents"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnRoute.GrpcRetryPolicyPropertystatic final classAn implementation forCfnRoute.GrpcRetryPolicyProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Specify at least one of the valid values.Specify at least one of the following values.The maximum number of retry attempts.The timeout for each retry attempt.Specify a valid value.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMaxRetries
The maximum number of retry attempts.- See Also:
-
getPerRetryTimeout
The timeout for each retry attempt.Returns union: either
IResolvableorCfnRoute.DurationProperty- See Also:
-
getGrpcRetryEvents
Specify at least one of the valid values.- See Also:
-
getHttpRetryEvents
Specify at least one of the following values.- server-error – HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511
- gateway-error – HTTP status codes 502, 503, and 504
- client-error – HTTP status code 409
- stream-error – Retry on refused stream
- See Also:
-
getTcpRetryEvents
Specify a valid value.The event occurs before any processing of a request has started and is encountered when the upstream is temporarily or permanently unavailable.
- See Also:
-
builder
-