DockerVolumeConfiguration

class aws_cdk.aws_ecs.DockerVolumeConfiguration(*, driver, scope, autoprovision=None, driver_opts=None, labels=None)

Bases: object

__init__(*, driver, scope, autoprovision=None, driver_opts=None, labels=None)

The configuration for a Docker volume.

Docker volumes are only supported when you are using the EC2 launch type.

Parameters
  • driver (str) – The Docker volume driver to use.

  • scope (Scope) – The scope for the Docker volume that determines its lifecycle.

  • autoprovision (Optional[bool]) – Specifies whether the Docker volume should be created if it does not already exist. If true is specified, the Docker volume will be created for you. Default: false

  • driver_opts (Optional[Mapping[str, str]]) – A map of Docker driver-specific options passed through. Default: No options

  • labels (Optional[List[str]]) – Custom metadata to add to your Docker volume. Default: No labels

Attributes

autoprovision

Specifies whether the Docker volume should be created if it does not already exist. If true is specified, the Docker volume will be created for you.

default :default: false

Return type

Optional[bool]

driver

The Docker volume driver to use.

Return type

str

driver_opts

A map of Docker driver-specific options passed through.

default :default: No options

Return type

Optional[Mapping[str, str]]

labels

Custom metadata to add to your Docker volume.

default :default: No labels

Return type

Optional[List[str]]

scope

The scope for the Docker volume that determines its lifecycle.

Return type

Scope