class Aws::AppMesh::Types::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].
[1]: www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-on
@note When making an API call, you may pass GrpcRetryPolicy
data as a hash: { grpc_retry_events: ["cancelled"], # accepts cancelled, deadline-exceeded, internal, resource-exhausted, unavailable http_retry_events: ["HttpRetryPolicyEvent"], max_retries: 1, # required per_retry_timeout: { # required unit: "s", # accepts s, ms value: 1, }, tcp_retry_events: ["connection-error"], # accepts connection-error }
@!attribute [rw] grpc_retry_events
Specify at least one of the valid values. @return [Array<String>]
@!attribute [rw] http_retry_events
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 @return [Array<String>]
@!attribute [rw] max_retries
The maximum number of retry attempts. @return [Integer]
@!attribute [rw] per_retry_timeout
The timeout for each retry attempt. @return [Types::Duration]
@!attribute [rw] tcp_retry_events
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. @return [Array<String>]
@see docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/GrpcRetryPolicy AWS API Documentation
Constants
- SENSITIVE