Class: AWSCDK::Pipes::CfnPipe::BatchRetryStrategyProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pipes/cfn_pipe.rb

Overview

The retry strategy that's associated with a job.

For more information, see Automated job retries in the AWS Batch User Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attempts: nil) ⇒ BatchRetryStrategyProperty

Returns a new instance of BatchRetryStrategyProperty.

Parameters:

  • attempts (Numeric, nil) (defaults to: nil)

    The number of times to move a job to the RUNNABLE status.



1061
1062
1063
1064
# File 'pipes/cfn_pipe.rb', line 1061

def initialize(attempts: nil)
  @attempts = attempts
  Jsii::Type.check_type(@attempts, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "attempts") unless @attempts.nil?
end

Instance Attribute Details

#attemptsNumeric? (readonly)

Note:

Default: - 0

The number of times to move a job to the RUNNABLE status.

If the value of attempts is greater than one, the job is retried on failure the same number of attempts as the value.



1073
1074
1075
# File 'pipes/cfn_pipe.rb', line 1073

def attempts
  @attempts
end

Class Method Details

.jsii_propertiesObject



1075
1076
1077
1078
1079
# File 'pipes/cfn_pipe.rb', line 1075

def self.jsii_properties
  {
    :attempts => "attempts",
  }
end

Instance Method Details

#to_jsiiObject



1081
1082
1083
1084
1085
1086
1087
# File 'pipes/cfn_pipe.rb', line 1081

def to_jsii
  result = {}
  result.merge!({
    "attempts" => @attempts,
  })
  result.compact
end