VolumeFrom

class aws_cdk.aws_ecs.VolumeFrom(*, read_only, source_container)

Bases: object

__init__(*, read_only, source_container)

The details on a data volume from another container in the same task definition.

Parameters
  • read_only (bool) – Specifies whether the container has 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_container (str) – The name of another container within the same task definition from which to mount volumes.

Attributes

read_only

Specifies whether the container has 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_container

The name of another container within the same task definition from which to mount volumes.

Return type

str