ScratchSpace

class aws_cdk.aws_ecs.ScratchSpace(*, container_path, name, read_only, source_path)

Bases: object

The temporary disk space mounted to the container.

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

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

  • read_only (bool) – Specifies whether to give the container read-only access to the scratch volume. If this value is true, the container has read-only access to the scratch volume. If this value is false, then the container can write to the scratch volume.

  • source_path (str)

ExampleMetadata:

fixture=_generated

Example:

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

scratch_space = ecs.ScratchSpace(
    container_path="containerPath",
    name="name",
    read_only=False,
    source_path="sourcePath"
)

Attributes

container_path

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

name

The name of the scratch volume to mount.

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

read_only

Specifies whether to give the container read-only access to the scratch volume.

If this value is true, the container has read-only access to the scratch volume. If this value is false, then the container can write to the scratch volume.

source_path