Class: AWSCDK::ECS::CfnDaemonTaskDefinition::MountPointProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnDaemonTaskDefinition::MountPointProperty
- Defined in:
- ecs/cfn_daemon_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.
1708 1709 1710 1711 1712 1713 1714 1715 |
# File 'ecs/cfn_daemon_task_definition.rb', line 1708 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.
1721 1722 1723 |
# File 'ecs/cfn_daemon_task_definition.rb', line 1721 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.
1728 1729 1730 |
# File 'ecs/cfn_daemon_task_definition.rb', line 1728 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.
1735 1736 1737 |
# File 'ecs/cfn_daemon_task_definition.rb', line 1735 def source_volume @source_volume end |
Class Method Details
.jsii_properties ⇒ Object
1737 1738 1739 1740 1741 1742 1743 |
# File 'ecs/cfn_daemon_task_definition.rb', line 1737 def self.jsii_properties { :container_path => "containerPath", :read_only => "readOnly", :source_volume => "sourceVolume", } end |
Instance Method Details
#to_jsii ⇒ Object
1745 1746 1747 1748 1749 1750 1751 1752 1753 |
# File 'ecs/cfn_daemon_task_definition.rb', line 1745 def to_jsii result = {} result.merge!({ "containerPath" => @container_path, "readOnly" => @read_only, "sourceVolume" => @source_volume, }) result.compact end |