Class: AWSCDK::ECS::Host

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ecs/host.rb

Overview

The details on a container instance bind mount host volume.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source_path: nil) ⇒ Host

Returns a new instance of Host.

Parameters:

  • source_path (String, nil) (defaults to: nil)

    Specifies the path on the host container instance that is presented to the container.



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_pathString? (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.

Returns:

  • (String, nil)


21
22
23
# File 'ecs/host.rb', line 21

def source_path
  @source_path
end

Class Method Details

.jsii_propertiesObject



23
24
25
26
27
# File 'ecs/host.rb', line 23

def self.jsii_properties
  {
    :source_path => "sourcePath",
  }
end

Instance Method Details

#to_jsiiObject



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