Class: AWSCDK::Pipes::CfnPipe::BatchRetryStrategyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Pipes::CfnPipe::BatchRetryStrategyProperty
- 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
-
#attempts ⇒ Numeric?
readonly
The number of times to move a job to the
RUNNABLEstatus.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attempts: nil) ⇒ BatchRetryStrategyProperty
constructor
A new instance of BatchRetryStrategyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(attempts: nil) ⇒ BatchRetryStrategyProperty
Returns a new instance of BatchRetryStrategyProperty.
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
#attempts ⇒ Numeric? (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_properties ⇒ Object
1075 1076 1077 1078 1079 |
# File 'pipes/cfn_pipe.rb', line 1075 def self.jsii_properties { :attempts => "attempts", } end |
Instance Method Details
#to_jsii ⇒ Object
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 |