Scope

class aws_cdk.aws_ecs.Scope

Bases: enum.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.

Attributes

SHARED = 'SHARED'

Docker volumes that are scoped as shared persist after the task stops.

TASK = 'TASK'

Docker volumes that are scoped to a task are automatically provisioned when the task starts and destroyed when the task stops.