class Aws::Batch::Types::RetryStrategy

The retry strategy associated with a job. For more information, see

Automated job retries][1

in the *Batch User Guide*.

[1]: docs.aws.amazon.com/batch/latest/userguide/job_retries.html

@note When making an API call, you may pass RetryStrategy

data as a hash:

    {
      attempts: 1,
      evaluate_on_exit: [
        {
          on_status_reason: "String",
          on_reason: "String",
          on_exit_code: "String",
          action: "RETRY", # required, accepts RETRY, EXIT
        },
      ],
    }

@!attribute [rw] 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.
@return [Integer]

@!attribute [rw] evaluate_on_exit

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.
@return [Array<Types::EvaluateOnExit>]

@see docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/RetryStrategy AWS API Documentation

Constants

SENSITIVE