Class: AWSCDK::ECS::BaseMountPoint
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::BaseMountPoint
- Defined in:
- ecs/base_mount_point.rb
Overview
The base details of where a volume will be mounted within a container.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#container_path ⇒ String
readonly
The path on the container to mount the host volume at.
-
#read_only ⇒ Boolean
readonly
Specifies whether to give the container read-only access to the volume.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(container_path:, read_only:) ⇒ BaseMountPoint
constructor
A new instance of BaseMountPoint.
- #to_jsii ⇒ Object
Constructor Details
#initialize(container_path:, read_only:) ⇒ BaseMountPoint
Returns a new instance of BaseMountPoint.
9 10 11 12 13 14 |
# File 'ecs/base_mount_point.rb', line 9 def initialize(container_path:, read_only:) @container_path = container_path Jsii::Type.check_type(@container_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "containerPath") @read_only = read_only Jsii::Type.check_type(@read_only, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "readOnly") end |
Instance Attribute Details
#container_path ⇒ String (readonly)
The path on the container to mount the host volume at.
19 20 21 |
# File 'ecs/base_mount_point.rb', line 19 def container_path @container_path end |
#read_only ⇒ Boolean (readonly)
Specifies whether to give the container read-only access to the volume.
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.
26 27 28 |
# File 'ecs/base_mount_point.rb', line 26 def read_only @read_only end |
Class Method Details
.jsii_properties ⇒ Object
28 29 30 31 32 33 |
# File 'ecs/base_mount_point.rb', line 28 def self.jsii_properties { :container_path => "containerPath", :read_only => "readOnly", } end |
Instance Method Details
#to_jsii ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'ecs/base_mount_point.rb', line 35 def to_jsii result = {} result.merge!({ "containerPath" => @container_path, "readOnly" => @read_only, }) result.compact end |