libZSservicesZSamazonka-appmeshZSamazonka-appmesh
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.AppMesh.Types.HttpRetryPolicy

Description

 
Synopsis

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.

Constructors

HttpRetryPolicy' 

Fields

  • httpRetryEvents :: Maybe (NonEmpty Text)

    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 :: Maybe (NonEmpty TcpRetryPolicyEvent)

    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.

  • maxRetries :: Natural

    The maximum number of retry attempts.

  • perRetryTimeout :: Duration

    The timeout for each retry attempt.

Instances

Instances details
Eq HttpRetryPolicy Source # 
Instance details

Defined in Amazonka.AppMesh.Types.HttpRetryPolicy

Read HttpRetryPolicy Source # 
Instance details

Defined in Amazonka.AppMesh.Types.HttpRetryPolicy

Show HttpRetryPolicy Source # 
Instance details

Defined in Amazonka.AppMesh.Types.HttpRetryPolicy

Generic HttpRetryPolicy Source # 
Instance details

Defined in Amazonka.AppMesh.Types.HttpRetryPolicy

Associated Types

type Rep HttpRetryPolicy :: Type -> Type #

NFData HttpRetryPolicy Source # 
Instance details

Defined in Amazonka.AppMesh.Types.HttpRetryPolicy

Methods

rnf :: HttpRetryPolicy -> () #

Hashable HttpRetryPolicy Source # 
Instance details

Defined in Amazonka.AppMesh.Types.HttpRetryPolicy

ToJSON HttpRetryPolicy Source # 
Instance details

Defined in Amazonka.AppMesh.Types.HttpRetryPolicy

FromJSON HttpRetryPolicy Source # 
Instance details

Defined in Amazonka.AppMesh.Types.HttpRetryPolicy

type Rep HttpRetryPolicy Source # 
Instance details

Defined in Amazonka.AppMesh.Types.HttpRetryPolicy

type Rep HttpRetryPolicy = D1 ('MetaData "HttpRetryPolicy" "Amazonka.AppMesh.Types.HttpRetryPolicy" "libZSservicesZSamazonka-appmeshZSamazonka-appmesh" 'False) (C1 ('MetaCons "HttpRetryPolicy'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "httpRetryEvents") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text))) :*: S1 ('MetaSel ('Just "tcpRetryEvents") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty TcpRetryPolicyEvent)))) :*: (S1 ('MetaSel ('Just "maxRetries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural) :*: S1 ('MetaSel ('Just "perRetryTimeout") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Duration))))

newHttpRetryPolicy Source #

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.