Class: AWSCDK::ECS::Host
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::Host
- Defined in:
- ecs/host.rb
Overview
The details on a container instance bind mount host volume.
Instance Attribute Summary collapse
-
#source_path ⇒ String?
readonly
Specifies the path on the host container instance that is presented to the container.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(source_path: nil) ⇒ Host
constructor
A new instance of Host.
- #to_jsii ⇒ Object
Constructor Details
#initialize(source_path: nil) ⇒ Host
Returns a new instance of Host.
8 9 10 11 |
# File 'ecs/host.rb', line 8 def initialize(source_path: nil) @source_path = source_path Jsii::Type.check_type(@source_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourcePath") unless @source_path.nil? end |
Instance Attribute Details
#source_path ⇒ String? (readonly)
Specifies the path on the host container instance that is presented to the container.
If the sourcePath value does not exist on the host container instance, the Docker daemon creates it. If the location does exist, the contents of the source path folder are exported.
This property is not supported for tasks that use the Fargate launch type.
21 22 23 |
# File 'ecs/host.rb', line 21 def source_path @source_path end |
Class Method Details
.jsii_properties ⇒ Object
23 24 25 26 27 |
# File 'ecs/host.rb', line 23 def self.jsii_properties { :source_path => "sourcePath", } end |
Instance Method Details
#to_jsii ⇒ Object
29 30 31 32 33 34 35 |
# File 'ecs/host.rb', line 29 def to_jsii result = {} result.merge!({ "sourcePath" => @source_path, }) result.compact end |