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 GrpcRetryPolicy = GrpcRetryPolicy' {}
- newGrpcRetryPolicy :: Natural -> Duration -> GrpcRetryPolicy
- grpcRetryPolicy_httpRetryEvents :: Lens' GrpcRetryPolicy (Maybe (NonEmpty Text))
- grpcRetryPolicy_grpcRetryEvents :: Lens' GrpcRetryPolicy (Maybe (NonEmpty GrpcRetryPolicyEvent))
- grpcRetryPolicy_tcpRetryEvents :: Lens' GrpcRetryPolicy (Maybe (NonEmpty TcpRetryPolicyEvent))
- grpcRetryPolicy_maxRetries :: Lens' GrpcRetryPolicy Natural
- grpcRetryPolicy_perRetryTimeout :: Lens' GrpcRetryPolicy Duration
Documentation
data GrpcRetryPolicy 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: newGrpcRetryPolicy
smart constructor.
GrpcRetryPolicy' | |
|
Instances
:: Natural | |
-> Duration | |
-> GrpcRetryPolicy |
Create a value of GrpcRetryPolicy
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:GrpcRetryPolicy'
, grpcRetryPolicy_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:grpcRetryEvents:GrpcRetryPolicy'
, grpcRetryPolicy_grpcRetryEvents
- Specify at least one of the valid values.
$sel:tcpRetryEvents:GrpcRetryPolicy'
, grpcRetryPolicy_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:GrpcRetryPolicy'
, grpcRetryPolicy_maxRetries
- The maximum number of retry attempts.
$sel:perRetryTimeout:GrpcRetryPolicy'
, grpcRetryPolicy_perRetryTimeout
- The timeout for each retry attempt.
grpcRetryPolicy_httpRetryEvents :: Lens' GrpcRetryPolicy (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
grpcRetryPolicy_grpcRetryEvents :: Lens' GrpcRetryPolicy (Maybe (NonEmpty GrpcRetryPolicyEvent)) Source #
Specify at least one of the valid values.
grpcRetryPolicy_tcpRetryEvents :: Lens' GrpcRetryPolicy (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.
grpcRetryPolicy_maxRetries :: Lens' GrpcRetryPolicy Natural Source #
The maximum number of retry attempts.
grpcRetryPolicy_perRetryTimeout :: Lens' GrpcRetryPolicy Duration Source #
The timeout for each retry attempt.