Host

class aws_cdk.aws_ecs.Host(*, source_path=None)

Bases: object

The details on a container instance bind mount host volume.

Parameters:

source_path (Optional[str]) – 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.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ecs as ecs

host = ecs.Host(
    source_path="sourcePath"
)

Attributes

source_path

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.