Class: AWSCDK::StepFunctionsTasks::JobDependency
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::StepFunctionsTasks::JobDependency
- Defined in:
- step_functions_tasks/job_dependency.rb
Overview
An object representing an AWS Batch job dependency.
Instance Attribute Summary collapse
-
#job_id ⇒ String?
readonly
The job ID of the AWS Batch job associated with this dependency.
-
#type ⇒ String?
readonly
The type of the job dependency.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(job_id: nil, type: nil) ⇒ JobDependency
constructor
A new instance of JobDependency.
- #to_jsii ⇒ Object
Constructor Details
#initialize(job_id: nil, type: nil) ⇒ JobDependency
Returns a new instance of JobDependency.
9 10 11 12 13 14 |
# File 'step_functions_tasks/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_id ⇒ String? (readonly)
Note:
Default: - No jobId
The job ID of the AWS Batch job associated with this dependency.
20 21 22 |
# File 'step_functions_tasks/job_dependency.rb', line 20 def job_id @job_id end |
#type ⇒ String? (readonly)
Note:
Default: - No type
The type of the job dependency.
25 26 27 |
# File 'step_functions_tasks/job_dependency.rb', line 25 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
27 28 29 30 31 32 |
# File 'step_functions_tasks/job_dependency.rb', line 27 def self.jsii_properties { :job_id => "jobId", :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'step_functions_tasks/job_dependency.rb', line 34 def to_jsii result = {} result.merge!({ "jobId" => @job_id, "type" => @type, }) result.compact end |