Class: AWSCDK::Batch::CfnJobDefinition::JobTimeoutProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
batch/cfn_job_definition.rb

Overview

An object that represents a job timeout configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attempt_duration_seconds: nil) ⇒ JobTimeoutProperty

Returns a new instance of JobTimeoutProperty.

Parameters:

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

    The job timeout time (in seconds) that's measured from the job attempt's startedAt timestamp.



2265
2266
2267
2268
# File 'batch/cfn_job_definition.rb', line 2265

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

Instance Attribute Details

#attempt_duration_secondsNumeric? (readonly)

The job timeout time (in seconds) that's measured from the job attempt's startedAt timestamp.

After this time passes, AWS Batch terminates your jobs if they aren't finished. The minimum value for the timeout is 60 seconds.

For array jobs, the timeout applies to the child jobs, not to the parent array job.

For multi-node parallel (MNP) jobs, the timeout applies to the whole job, not to the individual nodes.



2280
2281
2282
# File 'batch/cfn_job_definition.rb', line 2280

def attempt_duration_seconds
  @attempt_duration_seconds
end

Class Method Details

.jsii_propertiesObject



2282
2283
2284
2285
2286
# File 'batch/cfn_job_definition.rb', line 2282

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

Instance Method Details

#to_jsiiObject



2288
2289
2290
2291
2292
2293
2294
# File 'batch/cfn_job_definition.rb', line 2288

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