MountPoint

class aws_cdk.aws_ecs.MountPoint(*, container_path, read_only, source_volume)

Bases: object

__init__(*, container_path, read_only, source_volume)

The details of data volume mount points for a container.

Parameters
  • container_path (str) – The path on the container to mount the host volume at.

  • read_only (bool) – 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.

  • source_volume (str) – The name of the volume to mount. Must be a volume name referenced in the name parameter of task definition volume.

Attributes

container_path

The path on the container to mount the host volume at.

Return type

str

read_only

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.

Return type

bool

source_volume

The name of the volume to mount.

Must be a volume name referenced in the name parameter of task definition volume.

Return type

str