Class: AWSCDK::IoT::CfnJobTemplate::RetryCriteriaProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnJobTemplate::RetryCriteriaProperty
- Defined in:
- io_t/cfn_job_template.rb
Overview
The criteria that determines how many retries are allowed for each failure type for a job.
Instance Attribute Summary collapse
-
#failure_type ⇒ String?
readonly
The type of job execution failures that can initiate a job retry.
-
#number_of_retries ⇒ Numeric?
readonly
The number of retries allowed for a failure type for the job.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(failure_type: nil, number_of_retries: nil) ⇒ RetryCriteriaProperty
constructor
A new instance of RetryCriteriaProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(failure_type: nil, number_of_retries: nil) ⇒ RetryCriteriaProperty
Returns a new instance of RetryCriteriaProperty.
1071 1072 1073 1074 1075 1076 |
# File 'io_t/cfn_job_template.rb', line 1071 def initialize(failure_type: nil, number_of_retries: nil) @failure_type = failure_type Jsii::Type.check_type(@failure_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "failureType") unless @failure_type.nil? @number_of_retries = number_of_retries Jsii::Type.check_type(@number_of_retries, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "numberOfRetries") unless @number_of_retries.nil? end |
Instance Attribute Details
#failure_type ⇒ String? (readonly)
The type of job execution failures that can initiate a job retry.
1082 1083 1084 |
# File 'io_t/cfn_job_template.rb', line 1082 def failure_type @failure_type end |
#number_of_retries ⇒ Numeric? (readonly)
The number of retries allowed for a failure type for the job.
1087 1088 1089 |
# File 'io_t/cfn_job_template.rb', line 1087 def number_of_retries @number_of_retries end |
Class Method Details
.jsii_properties ⇒ Object
1089 1090 1091 1092 1093 1094 |
# File 'io_t/cfn_job_template.rb', line 1089 def self.jsii_properties { :failure_type => "failureType", :number_of_retries => "numberOfRetries", } end |
Instance Method Details
#to_jsii ⇒ Object
1096 1097 1098 1099 1100 1101 1102 1103 |
# File 'io_t/cfn_job_template.rb', line 1096 def to_jsii result = {} result.merge!({ "failureType" => @failure_type, "numberOfRetries" => @number_of_retries, }) result.compact end |