HttpRetryPolicy
import type { HttpRetryPolicy } from "https://aws-api.deno.dev/v0.3/services/appmesh.ts?docs=full";
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.
interface HttpRetryPolicy {
httpRetryEvents?: string[] | null;
maxRetries: number;
perRetryTimeout: Duration;
tcpRetryEvents?: TcpRetryPolicyEvent[] | null;
}§Properties
§
httpRetryEvents?: string[] | null
[src]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
§
tcpRetryEvents?: TcpRetryPolicyEvent[] | null
[src]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.