amazonka-batch-2.0: Amazon Batch SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Batch.Types.RetryStrategy

Description

 
Synopsis

Documentation

data RetryStrategy Source #

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

See: newRetryStrategy smart constructor.

Constructors

RetryStrategy' 

Fields

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

  • evaluateOnExit :: Maybe [EvaluateOnExit]

    Array of up to 5 objects that specify the conditions where jobs are retried or failed. If this parameter is specified, then the attempts parameter must also be specified. If none of the listed conditions match, then the job is retried.

Instances

Instances details
FromJSON RetryStrategy Source # 
Instance details

Defined in Amazonka.Batch.Types.RetryStrategy

ToJSON 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 #

Read RetryStrategy Source # 
Instance details

Defined in Amazonka.Batch.Types.RetryStrategy

Show RetryStrategy Source # 
Instance details

Defined in Amazonka.Batch.Types.RetryStrategy

NFData RetryStrategy Source # 
Instance details

Defined in Amazonka.Batch.Types.RetryStrategy

Methods

rnf :: RetryStrategy -> () #

Eq RetryStrategy Source # 
Instance details

Defined in Amazonka.Batch.Types.RetryStrategy

Hashable 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" "amazonka-batch-2.0-Ey2VZ5obnq65VwmlrJ2r2K" 'False) (C1 ('MetaCons "RetryStrategy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "attempts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "evaluateOnExit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [EvaluateOnExit]))))

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

$sel:evaluateOnExit:RetryStrategy', retryStrategy_evaluateOnExit - Array of up to 5 objects that specify the conditions where jobs are retried or failed. If this parameter is specified, then the attempts parameter must also be specified. If none of the listed conditions match, then the job is retried.

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.

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

Array of up to 5 objects that specify the conditions where jobs are retried or failed. If this parameter is specified, then the attempts parameter must also be specified. If none of the listed conditions match, then the job is retried.