You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::AppMesh::Types::HttpRetryPolicy
- Inherits:
-
Struct
- Object
- Struct
- Aws::AppMesh::Types::HttpRetryPolicy
- Defined in:
- (unknown)
Overview
When passing HttpRetryPolicy as input to an Aws::Client method, you can use a vanilla Hash:
{
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
}
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
.
Returned by:
Instance Attribute Summary collapse
-
#http_retry_events ⇒ Array<String>
Specify at least one of the following values.
-
#max_retries ⇒ Integer
The maximum number of retry attempts.
-
#per_retry_timeout ⇒ Types::Duration
The timeout for each retry attempt.
-
#tcp_retry_events ⇒ Array<String>
Specify a valid value.
Instance Attribute Details
#http_retry_events ⇒ Array<String>
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
#max_retries ⇒ Integer
The maximum number of retry attempts.
#per_retry_timeout ⇒ Types::Duration
The timeout for each retry attempt.
#tcp_retry_events ⇒ Array<String>
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.