Class: AWSCDK::ECS::CfnTaskDefinition::MountPointProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnTaskDefinition::MountPointProperty
- Defined in:
- ecs/cfn_task_definition.rb
Overview
The details for a volume mount point that's used in a container definition.
Instance Attribute Summary collapse
-
#container_path ⇒ String?
readonly
The path on the container to mount the host volume at.
-
#read_only ⇒ Boolean, ...
readonly
If this value is
true, the container has read-only access to the volume. -
#source_volume ⇒ String?
readonly
The name of the volume to mount.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(container_path: nil, read_only: nil, source_volume: nil) ⇒ MountPointProperty
constructor
A new instance of MountPointProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(container_path: nil, read_only: nil, source_volume: nil) ⇒ MountPointProperty
Returns a new instance of MountPointProperty.
2622 2623 2624 2625 2626 2627 2628 2629 |
# File 'ecs/cfn_task_definition.rb', line 2622 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)
The path on the container to mount the host volume at.
2635 2636 2637 |
# File 'ecs/cfn_task_definition.rb', line 2635 def container_path @container_path end |
#read_only ⇒ Boolean, ... (readonly)
If this value is true , the container has read-only access to the volume.
If this value is false , then the container can write to the volume. The default value is false .
2642 2643 2644 |
# File 'ecs/cfn_task_definition.rb', line 2642 def read_only @read_only end |
#source_volume ⇒ String? (readonly)
The name of the volume to mount.
Must be a volume name referenced in the name parameter of task definition volume .
2649 2650 2651 |
# File 'ecs/cfn_task_definition.rb', line 2649 def source_volume @source_volume end |
Class Method Details
.jsii_properties ⇒ Object
2651 2652 2653 2654 2655 2656 2657 |
# File 'ecs/cfn_task_definition.rb', line 2651 def self.jsii_properties { :container_path => "containerPath", :read_only => "readOnly", :source_volume => "sourceVolume", } end |
Instance Method Details
#to_jsii ⇒ Object
2659 2660 2661 2662 2663 2664 2665 2666 2667 |
# File 'ecs/cfn_task_definition.rb', line 2659 def to_jsii result = {} result.merge!({ "containerPath" => @container_path, "readOnly" => @read_only, "sourceVolume" => @source_volume, }) result.compact end |