Class: AWSCDK::Batch::CfnJobDefinition::MountPointsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Batch::CfnJobDefinition::MountPointsProperty
- Defined in:
- batch/cfn_job_definition.rb
Overview
Instance Attribute Summary collapse
- #container_path ⇒ String? readonly
- #read_only ⇒ Boolean, ... readonly
- #source_volume ⇒ String? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(container_path: nil, read_only: nil, source_volume: nil) ⇒ MountPointsProperty
constructor
A new instance of MountPointsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(container_path: nil, read_only: nil, source_volume: nil) ⇒ MountPointsProperty
Returns a new instance of MountPointsProperty.
2582 2583 2584 2585 2586 2587 2588 2589 |
# File 'batch/cfn_job_definition.rb', line 2582 def initialize(container_path: nil, read_only: nil, source_volume: nil) @container_path = container_path Jsii::Type.check_type(@container_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "containerPath") unless @container_path.nil? @read_only = read_only Jsii::Type.check_type(@read_only, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "readOnly") unless @read_only.nil? @source_volume = source_volume Jsii::Type.check_type(@source_volume, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceVolume") unless @source_volume.nil? end |
Instance Attribute Details
#container_path ⇒ String? (readonly)
2593 2594 2595 |
# File 'batch/cfn_job_definition.rb', line 2593 def container_path @container_path end |
#read_only ⇒ Boolean, ... (readonly)
2596 2597 2598 |
# File 'batch/cfn_job_definition.rb', line 2596 def read_only @read_only end |
#source_volume ⇒ String? (readonly)
2599 2600 2601 |
# File 'batch/cfn_job_definition.rb', line 2599 def source_volume @source_volume end |
Class Method Details
.jsii_properties ⇒ Object
2601 2602 2603 2604 2605 2606 2607 |
# File 'batch/cfn_job_definition.rb', line 2601 def self.jsii_properties { :container_path => "containerPath", :read_only => "readOnly", :source_volume => "sourceVolume", } end |
Instance Method Details
#to_jsii ⇒ Object
2609 2610 2611 2612 2613 2614 2615 2616 2617 |
# File 'batch/cfn_job_definition.rb', line 2609 def to_jsii result = {} result.merge!({ "containerPath" => @container_path, "readOnly" => @read_only, "sourceVolume" => @source_volume, }) result.compact end |