MountPoint
- class aws_cdk.aws_ecs.MountPoint(*, container_path, read_only, source_volume)
Bases:
BaseMountPoint
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.
- 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 mount_point = ecs.MountPoint( container_path="containerPath", read_only=False, source_volume="sourceVolume" )
Attributes
- container_path
The path on the container to mount the host volume at.
- 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.
- source_volume
The name of the volume to mount.
Must be a volume name referenced in the name parameter of task definition volume.