Scope
- class aws_cdk.aws_ecs.Scope(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
The scope for the Docker volume that determines its lifecycle.
Docker volumes that are scoped to a task are automatically provisioned when the task starts and destroyed when the task stops. Docker volumes that are scoped as shared persist after the task stops.
Attributes
- SHARED
Docker volumes that are scoped as shared persist after the task stops.
- TASK
Docker volumes that are scoped to a task are automatically provisioned when the task starts and destroyed when the task stops.