VolumeFrom
- class aws_cdk.aws_ecs.VolumeFrom(*, read_only, source_container)
Bases:
object
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.
- 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 volume_from = ecs.VolumeFrom( read_only=False, source_container="sourceContainer" )
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.
- source_container
The name of another container within the same task definition from which to mount volumes.