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

Description

 
Synopsis

Documentation

data EvaluateOnExit Source #

Specifies an array of up to 5 conditions to be met, and an action to take (RETRY or EXIT) if all conditions are met. If none of the EvaluateOnExit conditions in a RetryStrategy match, then the job is retried.

See: newEvaluateOnExit smart constructor.

Constructors

EvaluateOnExit' 

Fields

  • onExitCode :: Maybe Text

    Contains a glob pattern to match against the decimal representation of the ExitCode returned for a job. The pattern can be up to 512 characters long. It can contain only numbers, and can end with an asterisk (*) so that only the start of the string needs to be an exact match.

    The string can contain up to 512 characters.

  • onReason :: Maybe Text

    Contains a glob pattern to match against the Reason returned for a job. The pattern can contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white space (including spaces and tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact match.

  • onStatusReason :: Maybe Text

    Contains a glob pattern to match against the StatusReason returned for a job. The pattern can contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white spaces (including spaces or tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact match.

  • action :: RetryAction

    Specifies the action to take if all of the specified conditions (onStatusReason, onReason, and onExitCode) are met. The values aren't case sensitive.

Instances

Instances details
FromJSON EvaluateOnExit Source # 
Instance details

Defined in Amazonka.Batch.Types.EvaluateOnExit

ToJSON EvaluateOnExit Source # 
Instance details

Defined in Amazonka.Batch.Types.EvaluateOnExit

Generic EvaluateOnExit Source # 
Instance details

Defined in Amazonka.Batch.Types.EvaluateOnExit

Associated Types

type Rep EvaluateOnExit :: Type -> Type #

Read EvaluateOnExit Source # 
Instance details

Defined in Amazonka.Batch.Types.EvaluateOnExit

Show EvaluateOnExit Source # 
Instance details

Defined in Amazonka.Batch.Types.EvaluateOnExit

NFData EvaluateOnExit Source # 
Instance details

Defined in Amazonka.Batch.Types.EvaluateOnExit

Methods

rnf :: EvaluateOnExit -> () #

Eq EvaluateOnExit Source # 
Instance details

Defined in Amazonka.Batch.Types.EvaluateOnExit

Hashable EvaluateOnExit Source # 
Instance details

Defined in Amazonka.Batch.Types.EvaluateOnExit

type Rep EvaluateOnExit Source # 
Instance details

Defined in Amazonka.Batch.Types.EvaluateOnExit

type Rep EvaluateOnExit = D1 ('MetaData "EvaluateOnExit" "Amazonka.Batch.Types.EvaluateOnExit" "amazonka-batch-2.0-Ey2VZ5obnq65VwmlrJ2r2K" 'False) (C1 ('MetaCons "EvaluateOnExit'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "onExitCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "onReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "onStatusReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "action") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RetryAction))))

newEvaluateOnExit Source #

Create a value of EvaluateOnExit 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:onExitCode:EvaluateOnExit', evaluateOnExit_onExitCode - Contains a glob pattern to match against the decimal representation of the ExitCode returned for a job. The pattern can be up to 512 characters long. It can contain only numbers, and can end with an asterisk (*) so that only the start of the string needs to be an exact match.

The string can contain up to 512 characters.

$sel:onReason:EvaluateOnExit', evaluateOnExit_onReason - Contains a glob pattern to match against the Reason returned for a job. The pattern can contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white space (including spaces and tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact match.

$sel:onStatusReason:EvaluateOnExit', evaluateOnExit_onStatusReason - Contains a glob pattern to match against the StatusReason returned for a job. The pattern can contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white spaces (including spaces or tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact match.

$sel:action:EvaluateOnExit', evaluateOnExit_action - Specifies the action to take if all of the specified conditions (onStatusReason, onReason, and onExitCode) are met. The values aren't case sensitive.

evaluateOnExit_onExitCode :: Lens' EvaluateOnExit (Maybe Text) Source #

Contains a glob pattern to match against the decimal representation of the ExitCode returned for a job. The pattern can be up to 512 characters long. It can contain only numbers, and can end with an asterisk (*) so that only the start of the string needs to be an exact match.

The string can contain up to 512 characters.

evaluateOnExit_onReason :: Lens' EvaluateOnExit (Maybe Text) Source #

Contains a glob pattern to match against the Reason returned for a job. The pattern can contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white space (including spaces and tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact match.

evaluateOnExit_onStatusReason :: Lens' EvaluateOnExit (Maybe Text) Source #

Contains a glob pattern to match against the StatusReason returned for a job. The pattern can contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white spaces (including spaces or tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact match.

evaluateOnExit_action :: Lens' EvaluateOnExit RetryAction Source #

Specifies the action to take if all of the specified conditions (onStatusReason, onReason, and onExitCode) are met. The values aren't case sensitive.