| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::Batch::RetryStrategy; | ||
| 3 | use Moose; | ||
| 4 | has Attempts => (is => 'ro', isa => 'Int', request_name => 'attempts', traits => ['NameInRequest']); | ||
| 5 | has EvaluateOnExit => (is => 'ro', isa => 'ArrayRef[Paws::Batch::EvaluateOnExit]', request_name => 'evaluateOnExit', traits => ['NameInRequest']); | ||
| 6 | |||
| 7 | 1; | ||
| 8 | |||
| 9 | ### main pod documentation begin ### | ||
| 10 | |||
| 11 | =head1 NAME | ||
| 12 | |||
| 13 | Paws::Batch::RetryStrategy | ||
| 14 | |||
| 15 | =head1 USAGE | ||
| 16 | |||
| 17 | This class represents one of two things: | ||
| 18 | |||
| 19 | =head3 Arguments in a call to a service | ||
| 20 | |||
| 21 | Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. | ||
| 22 | Each attribute should be used as a named argument in the calls that expect this type of object. | ||
| 23 | |||
| 24 | As an example, if Att1 is expected to be a Paws::Batch::RetryStrategy object: | ||
| 25 | |||
| 26 | $service_obj->Method(Att1 => { Attempts => $value, ..., EvaluateOnExit => $value }); | ||
| 27 | |||
| 28 | =head3 Results returned from an API call | ||
| 29 | |||
| 30 | Use accessors for each attribute. If Att1 is expected to be an Paws::Batch::RetryStrategy object: | ||
| 31 | |||
| 32 | $result = $service_obj->Method(...); | ||
| 33 | $result->Att1->Attempts | ||
| 34 | |||
| 35 | =head1 DESCRIPTION | ||
| 36 | |||
| 37 | The retry strategy associated with a job. For more information, see | ||
| 38 | Automated job retries | ||
| 39 | (https://docs.aws.amazon.com/batch/latest/userguide/job_retries.html) | ||
| 40 | in the I<AWS Batch User Guide>. | ||
| 41 | |||
| 42 | =head1 ATTRIBUTES | ||
| 43 | |||
| 44 | |||
| 45 | =head2 Attempts => Int | ||
| 46 | |||
| 47 | The number of times to move a job to the C<RUNNABLE> status. You can | ||
| 48 | specify between 1 and 10 attempts. If the value of C<attempts> is | ||
| 49 | greater than one, the job is retried on failure the same number of | ||
| 50 | attempts as the value. | ||
| 51 | |||
| 52 | |||
| 53 | =head2 EvaluateOnExit => ArrayRef[L<Paws::Batch::EvaluateOnExit>] | ||
| 54 | |||
| 55 | Array of up to 5 objects that specify conditions under which the job | ||
| 56 | should be retried or failed. If this parameter is specified, then the | ||
| 57 | C<attempts> parameter must also be specified. | ||
| 58 | |||
| 59 | |||
| 60 | |||
| 61 | =head1 SEE ALSO | ||
| 62 | |||
| 63 | This class forms part of L<Paws>, describing an object used in L<Paws::Batch> | ||
| 64 | |||
| 65 | =head1 BUGS and CONTRIBUTIONS | ||
| 66 | |||
| 67 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 68 | |||
| 69 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 70 | |||
| 71 | =cut | ||
| 72 |