Class: AWSCDK::StepFunctionsTasks::StoppingCondition
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::StepFunctionsTasks::StoppingCondition
- Defined in:
- step_functions_tasks/stopping_condition.rb
Overview
Specifies a limit to how long a model training job can run.
When the job reaches the time limit, Amazon SageMaker ends the training job.
Instance Attribute Summary collapse
-
#max_runtime ⇒ AWSCDK::Duration?
readonly
The maximum length of time, in seconds, that the training or compilation job can run.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(max_runtime: nil) ⇒ StoppingCondition
constructor
A new instance of StoppingCondition.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max_runtime: nil) ⇒ StoppingCondition
Returns a new instance of StoppingCondition.
10 11 12 13 |
# File 'step_functions_tasks/stopping_condition.rb', line 10 def initialize(max_runtime: nil) @max_runtime = max_runtime Jsii::Type.check_type(@max_runtime, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5EdXJhdGlvbiJ9")), "maxRuntime") unless @max_runtime.nil? end |
Instance Attribute Details
#max_runtime ⇒ AWSCDK::Duration? (readonly)
Note:
Default: - 1 hour
The maximum length of time, in seconds, that the training or compilation job can run.
19 20 21 |
# File 'step_functions_tasks/stopping_condition.rb', line 19 def max_runtime @max_runtime end |
Class Method Details
.jsii_properties ⇒ Object
21 22 23 24 25 |
# File 'step_functions_tasks/stopping_condition.rb', line 21 def self.jsii_properties { :max_runtime => "maxRuntime", } end |
Instance Method Details
#to_jsii ⇒ Object
27 28 29 30 31 32 33 |
# File 'step_functions_tasks/stopping_condition.rb', line 27 def to_jsii result = {} result.merge!({ "maxRuntime" => @max_runtime, }) result.compact end |