Class: AWSCDK::IoT::CfnJobTemplate::RetryCriteriaProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(failure_type: nil, number_of_retries: nil) ⇒ RetryCriteriaProperty

Returns a new instance of RetryCriteriaProperty.

Parameters:

  • failure_type (String, nil) (defaults to: nil)

    The type of job execution failures that can initiate a job retry.

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

    The number of retries allowed for a failure type for the job.



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_typeString? (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_retriesNumeric? (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_propertiesObject



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_jsiiObject



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