libZSservicesZSamazonka-batchZSamazonka-batch
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.Batch.Types.RetryStrategy

Description

 
Synopsis

Documentation

data RetryStrategy Source #

The retry strategy associated with a job. For more information, see Automated job retries in the Batch User Guide.

See: newRetryStrategy smart constructor.

Constructors

RetryStrategy' 

Fields

  • evaluateOnExit :: Maybe [EvaluateOnExit]

    Array of up to 5 objects that specify conditions under which the job should be retried or failed. If this parameter is specified, then the attempts parameter must also be specified.

  • attempts :: Maybe Int

    The number of times to move a job to the RUNNABLE status. You can specify between 1 and 10 attempts. If the value of attempts is greater than one, the job is retried on failure the same number of attempts as the value.

Instances

Instances details
Eq RetryStrategy Source # 
Instance details

Defined in Amazonka.Batch.Types.RetryStrategy

Read RetryStrategy Source # 
Instance details

Defined in Amazonka.Batch.Types.RetryStrategy

Show RetryStrategy Source # 
Instance details

Defined in Amazonka.Batch.Types.RetryStrategy

Generic RetryStrategy Source # 
Instance details

Defined in Amazonka.Batch.Types.RetryStrategy

Associated Types

type Rep RetryStrategy :: Type -> Type #

NFData RetryStrategy Source # 
Instance details

Defined in Amazonka.Batch.Types.RetryStrategy

Methods

rnf :: RetryStrategy -> () #

Hashable RetryStrategy Source # 
Instance details

Defined in Amazonka.Batch.Types.RetryStrategy

ToJSON RetryStrategy Source # 
Instance details

Defined in Amazonka.Batch.Types.RetryStrategy

FromJSON RetryStrategy Source # 
Instance details

Defined in Amazonka.Batch.Types.RetryStrategy

type Rep RetryStrategy Source # 
Instance details

Defined in Amazonka.Batch.Types.RetryStrategy

type Rep RetryStrategy = D1 ('MetaData "RetryStrategy" "Amazonka.Batch.Types.RetryStrategy" "libZSservicesZSamazonka-batchZSamazonka-batch" 'False) (C1 ('MetaCons "RetryStrategy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "evaluateOnExit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [EvaluateOnExit])) :*: S1 ('MetaSel ('Just "attempts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))

newRetryStrategy :: RetryStrategy Source #

Create a value of RetryStrategy 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:evaluateOnExit:RetryStrategy', retryStrategy_evaluateOnExit - Array of up to 5 objects that specify conditions under which the job should be retried or failed. If this parameter is specified, then the attempts parameter must also be specified.

$sel:attempts:RetryStrategy', retryStrategy_attempts - The number of times to move a job to the RUNNABLE status. You can specify between 1 and 10 attempts. If the value of attempts is greater than one, the job is retried on failure the same number of attempts as the value.

retryStrategy_evaluateOnExit :: Lens' RetryStrategy (Maybe [EvaluateOnExit]) Source #

Array of up to 5 objects that specify conditions under which the job should be retried or failed. If this parameter is specified, then the attempts parameter must also be specified.

retryStrategy_attempts :: Lens' RetryStrategy (Maybe Int) Source #

The number of times to move a job to the RUNNABLE status. You can specify between 1 and 10 attempts. If the value of attempts is greater than one, the job is retried on failure the same number of attempts as the value.