Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data HttpRetryPolicy = HttpRetryPolicy' {}
- newHttpRetryPolicy :: Natural -> Duration -> HttpRetryPolicy
- httpRetryPolicy_httpRetryEvents :: Lens' HttpRetryPolicy (Maybe (NonEmpty Text))
- httpRetryPolicy_tcpRetryEvents :: Lens' HttpRetryPolicy (Maybe (NonEmpty TcpRetryPolicyEvent))
- httpRetryPolicy_maxRetries :: Lens' HttpRetryPolicy Natural
- httpRetryPolicy_perRetryTimeout :: Lens' HttpRetryPolicy Duration
Documentation
data HttpRetryPolicy Source #
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.
See: newHttpRetryPolicy
smart constructor.
HttpRetryPolicy' | |
|
Instances
:: Natural | |
-> Duration | |
-> HttpRetryPolicy |
Create a value of HttpRetryPolicy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpRetryEvents:HttpRetryPolicy'
, httpRetryPolicy_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
$sel:tcpRetryEvents:HttpRetryPolicy'
, httpRetryPolicy_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.
$sel:maxRetries:HttpRetryPolicy'
, httpRetryPolicy_maxRetries
- The maximum number of retry attempts.
$sel:perRetryTimeout:HttpRetryPolicy'
, httpRetryPolicy_perRetryTimeout
- The timeout for each retry attempt.
httpRetryPolicy_httpRetryEvents :: Lens' HttpRetryPolicy (Maybe (NonEmpty Text)) Source #
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
httpRetryPolicy_tcpRetryEvents :: Lens' HttpRetryPolicy (Maybe (NonEmpty TcpRetryPolicyEvent)) Source #
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.
httpRetryPolicy_maxRetries :: Lens' HttpRetryPolicy Natural Source #
The maximum number of retry attempts.
httpRetryPolicy_perRetryTimeout :: Lens' HttpRetryPolicy Duration Source #
The timeout for each retry attempt.