Class: AWSCDK::Batch::CfnJobDefinition::TaskContainerDependencyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Batch::CfnJobDefinition::TaskContainerDependencyProperty
- Defined in:
- batch/cfn_job_definition.rb
Overview
A list of containers that this task depends on.
Instance Attribute Summary collapse
-
#condition ⇒ String
readonly
The dependency condition of the container.
-
#container_name ⇒ String
readonly
A unique identifier for the container.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(condition:, container_name:) ⇒ TaskContainerDependencyProperty
constructor
A new instance of TaskContainerDependencyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(condition:, container_name:) ⇒ TaskContainerDependencyProperty
Returns a new instance of TaskContainerDependencyProperty.
3523 3524 3525 3526 3527 3528 |
# File 'batch/cfn_job_definition.rb', line 3523 def initialize(condition:, container_name:) @condition = condition Jsii::Type.check_type(@condition, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "condition") @container_name = container_name Jsii::Type.check_type(@container_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "containerName") end |
Instance Attribute Details
#condition ⇒ String (readonly)
The dependency condition of the container. The following are the available conditions and their behavior:.
START- This condition emulates the behavior of links and volumes today. It validates that a dependent container is started before permitting other containers to start.COMPLETE- This condition validates that a dependent container runs to completion (exits) before permitting other containers to start. This can be useful for nonessential containers that run a script and then exit. This condition can't be set on an essential container.SUCCESS- This condition is the same asCOMPLETE, but it also requires that the container exits with a zero status. This condition can't be set on an essential container.
3538 3539 3540 |
# File 'batch/cfn_job_definition.rb', line 3538 def condition @condition end |
#container_name ⇒ String (readonly)
A unique identifier for the container.
3543 3544 3545 |
# File 'batch/cfn_job_definition.rb', line 3543 def container_name @container_name end |
Class Method Details
.jsii_properties ⇒ Object
3545 3546 3547 3548 3549 3550 |
# File 'batch/cfn_job_definition.rb', line 3545 def self.jsii_properties { :condition => "condition", :container_name => "containerName", } end |
Instance Method Details
#to_jsii ⇒ Object
3552 3553 3554 3555 3556 3557 3558 3559 |
# File 'batch/cfn_job_definition.rb', line 3552 def to_jsii result = {} result.merge!({ "condition" => @condition, "containerName" => @container_name, }) result.compact end |