AWS::AppMesh::Route GrpcRetryPolicy
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
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "GrpcRetryEvents" :
[ String, ... ]
, "HttpRetryEvents" :[ String, ... ]
, "MaxRetries" :Integer
, "PerRetryTimeout" :Duration
, "TcpRetryEvents" :[ String, ... ]
}
YAML
GrpcRetryEvents:
- String
HttpRetryEvents:- String
MaxRetries:Integer
PerRetryTimeout:Duration
TcpRetryEvents:- String
Properties
GrpcRetryEvents
-
Specify at least one of the valid values.
Required: No
Type: Array of String
Minimum:
1
Maximum:
5
Update requires: No interruption
HttpRetryEvents
-
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
Required: No
Type: Array of String
Minimum:
1
Maximum:
25
Update requires: No interruption
-
MaxRetries
-
The maximum number of retry attempts.
Required: Yes
Type: Integer
Update requires: No interruption
PerRetryTimeout
-
The timeout for each retry attempt.
Required: Yes
Type: Duration
Update requires: No interruption
TcpRetryEvents
-
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.
Required: No
Type: Array of String
Minimum:
1
Maximum:
1
Update requires: No interruption