Class: AWSCDK::Pipes::CfnPipe::BatchJobDependencyProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pipes/cfn_pipe.rb

Overview

An object that represents 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) ⇒ BatchJobDependencyProperty

Returns a new instance of BatchJobDependencyProperty.

Parameters:

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

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

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

    The type of the job dependency.



932
933
934
935
936
937
# File 'pipes/cfn_pipe.rb', line 932

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)

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



943
944
945
# File 'pipes/cfn_pipe.rb', line 943

def job_id
  @job_id
end

#typeString? (readonly)

The type of the job dependency.



948
949
950
# File 'pipes/cfn_pipe.rb', line 948

def type
  @type
end

Class Method Details

.jsii_propertiesObject



950
951
952
953
954
955
# File 'pipes/cfn_pipe.rb', line 950

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

Instance Method Details

#to_jsiiObject



957
958
959
960
961
962
963
964
# File 'pipes/cfn_pipe.rb', line 957

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