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.GrpcRetryPolicy

Description

 
Synopsis

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.

Constructors

GrpcRetryPolicy' 

Fields

Instances

Instances details
Eq GrpcRetryPolicy Source # 
Instance details

Defined in Amazonka.AppMesh.Types.GrpcRetryPolicy

Read GrpcRetryPolicy Source # 
Instance details

Defined in Amazonka.AppMesh.Types.GrpcRetryPolicy

Show GrpcRetryPolicy Source # 
Instance details

Defined in Amazonka.AppMesh.Types.GrpcRetryPolicy

Generic GrpcRetryPolicy Source # 
Instance details

Defined in Amazonka.AppMesh.Types.GrpcRetryPolicy

Associated Types

type Rep GrpcRetryPolicy :: Type -> Type #

NFData GrpcRetryPolicy Source # 
Instance details

Defined in Amazonka.AppMesh.Types.GrpcRetryPolicy

Methods

rnf :: GrpcRetryPolicy -> () #

Hashable GrpcRetryPolicy Source # 
Instance details

Defined in Amazonka.AppMesh.Types.GrpcRetryPolicy

ToJSON GrpcRetryPolicy Source # 
Instance details

Defined in Amazonka.AppMesh.Types.GrpcRetryPolicy

FromJSON GrpcRetryPolicy Source # 
Instance details

Defined in Amazonka.AppMesh.Types.GrpcRetryPolicy

type Rep GrpcRetryPolicy Source # 
Instance details

Defined in Amazonka.AppMesh.Types.GrpcRetryPolicy

type Rep GrpcRetryPolicy = D1 ('MetaData "GrpcRetryPolicy" "Amazonka.AppMesh.Types.GrpcRetryPolicy" "libZSservicesZSamazonka-appmeshZSamazonka-appmesh" 'False) (C1 ('MetaCons "GrpcRetryPolicy'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "httpRetryEvents") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text))) :*: S1 ('MetaSel ('Just "grpcRetryEvents") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty GrpcRetryPolicyEvent)))) :*: (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)))))

newGrpcRetryPolicy Source #

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_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.