Class: AWSCDK::StepFunctionsTasks::BatchJobDependency

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
step_functions_tasks/batch_job_dependency.rb

Overview

An object representing an AWS Batch job dependency.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(job_id: nil, type: nil) ⇒ BatchJobDependency

Returns a new instance of BatchJobDependency.

Parameters:

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

    The job ID of the AWS Batch job associated with this dependency.

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

    The type of the job dependency.



9
10
11
12
13
14
# File 'step_functions_tasks/batch_job_dependency.rb', line 9

def initialize(job_id: nil, type: nil)
  @job_id = job_id
  Jsii::Type.check_type(@job_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "jobId") unless @job_id.nil?
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil?
end

Instance Attribute Details

#job_idString? (readonly)

Note:

Default: - No jobId

The job ID of the AWS Batch job associated with this dependency.

Returns:

  • (String, nil)


20
21
22
# File 'step_functions_tasks/batch_job_dependency.rb', line 20

def job_id
  @job_id
end

#typeString? (readonly)

Note:

Default: - No type

The type of the job dependency.

Returns:

  • (String, nil)


25
26
27
# File 'step_functions_tasks/batch_job_dependency.rb', line 25

def type
  @type
end

Class Method Details

.jsii_propertiesObject



27
28
29
30
31
32
# File 'step_functions_tasks/batch_job_dependency.rb', line 27

def self.jsii_properties
  {
    :job_id => "jobId",
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



34
35
36
37
38
39
40
41
# File 'step_functions_tasks/batch_job_dependency.rb', line 34

def to_jsii
  result = {}
  result.merge!({
    "jobId" => @job_id,
    "type" => @type,
  })
  result.compact
end