amazonka-ecs-2.0: Amazon EC2 Container Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.ECS.Types.DockerVolumeConfiguration

Description

 
Synopsis

Documentation

data DockerVolumeConfiguration Source #

This parameter is specified when you're using Docker volumes. Docker volumes are only supported when you're using the EC2 launch type. Windows containers only support the use of the local driver. To use bind mounts, specify a host instead.

See: newDockerVolumeConfiguration smart constructor.

Constructors

DockerVolumeConfiguration' 

Fields

  • autoprovision :: Maybe Bool

    If this value is true, the Docker volume is created if it doesn't already exist.

    This field is only used if the scope is shared.

  • driver :: Maybe Text

    The Docker volume driver to use. The driver value must match the driver name provided by Docker because it is used for task placement. If the driver was installed using the Docker plugin CLI, use docker plugin ls to retrieve the driver name from your container instance. If the driver was installed using another method, use Docker plugin discovery to retrieve the driver name. For more information, see Docker plugin discovery. This parameter maps to Driver in the Create a volume section of the Docker Remote API and the xxdriver option to docker volume create.

  • driverOpts :: Maybe (HashMap Text Text)

    A map of Docker driver-specific options passed through. This parameter maps to DriverOpts in the Create a volume section of the Docker Remote API and the xxopt option to docker volume create.

  • labels :: Maybe (HashMap Text Text)

    Custom metadata to add to your Docker volume. This parameter maps to Labels in the Create a volume section of the Docker Remote API and the xxlabel option to docker volume create.

  • scope :: Maybe Scope

    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.

Instances

Instances details
FromJSON DockerVolumeConfiguration Source # 
Instance details

Defined in Amazonka.ECS.Types.DockerVolumeConfiguration

ToJSON DockerVolumeConfiguration Source # 
Instance details

Defined in Amazonka.ECS.Types.DockerVolumeConfiguration

Generic DockerVolumeConfiguration Source # 
Instance details

Defined in Amazonka.ECS.Types.DockerVolumeConfiguration

Associated Types

type Rep DockerVolumeConfiguration :: Type -> Type #

Read DockerVolumeConfiguration Source # 
Instance details

Defined in Amazonka.ECS.Types.DockerVolumeConfiguration

Show DockerVolumeConfiguration Source # 
Instance details

Defined in Amazonka.ECS.Types.DockerVolumeConfiguration

NFData DockerVolumeConfiguration Source # 
Instance details

Defined in Amazonka.ECS.Types.DockerVolumeConfiguration

Eq DockerVolumeConfiguration Source # 
Instance details

Defined in Amazonka.ECS.Types.DockerVolumeConfiguration

Hashable DockerVolumeConfiguration Source # 
Instance details

Defined in Amazonka.ECS.Types.DockerVolumeConfiguration

type Rep DockerVolumeConfiguration Source # 
Instance details

Defined in Amazonka.ECS.Types.DockerVolumeConfiguration

type Rep DockerVolumeConfiguration = D1 ('MetaData "DockerVolumeConfiguration" "Amazonka.ECS.Types.DockerVolumeConfiguration" "amazonka-ecs-2.0-3xFxVqi9x5nBZ44jBEC5G8" 'False) (C1 ('MetaCons "DockerVolumeConfiguration'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "autoprovision") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "driver") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "driverOpts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "labels") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "scope") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Scope))))))

newDockerVolumeConfiguration :: DockerVolumeConfiguration Source #

Create a value of DockerVolumeConfiguration with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:autoprovision:DockerVolumeConfiguration', dockerVolumeConfiguration_autoprovision - If this value is true, the Docker volume is created if it doesn't already exist.

This field is only used if the scope is shared.

$sel:driver:DockerVolumeConfiguration', dockerVolumeConfiguration_driver - The Docker volume driver to use. The driver value must match the driver name provided by Docker because it is used for task placement. If the driver was installed using the Docker plugin CLI, use docker plugin ls to retrieve the driver name from your container instance. If the driver was installed using another method, use Docker plugin discovery to retrieve the driver name. For more information, see Docker plugin discovery. This parameter maps to Driver in the Create a volume section of the Docker Remote API and the xxdriver option to docker volume create.

$sel:driverOpts:DockerVolumeConfiguration', dockerVolumeConfiguration_driverOpts - A map of Docker driver-specific options passed through. This parameter maps to DriverOpts in the Create a volume section of the Docker Remote API and the xxopt option to docker volume create.

$sel:labels:DockerVolumeConfiguration', dockerVolumeConfiguration_labels - Custom metadata to add to your Docker volume. This parameter maps to Labels in the Create a volume section of the Docker Remote API and the xxlabel option to docker volume create.

$sel:scope:DockerVolumeConfiguration', dockerVolumeConfiguration_scope - 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.

dockerVolumeConfiguration_autoprovision :: Lens' DockerVolumeConfiguration (Maybe Bool) Source #

If this value is true, the Docker volume is created if it doesn't already exist.

This field is only used if the scope is shared.

dockerVolumeConfiguration_driver :: Lens' DockerVolumeConfiguration (Maybe Text) Source #

The Docker volume driver to use. The driver value must match the driver name provided by Docker because it is used for task placement. If the driver was installed using the Docker plugin CLI, use docker plugin ls to retrieve the driver name from your container instance. If the driver was installed using another method, use Docker plugin discovery to retrieve the driver name. For more information, see Docker plugin discovery. This parameter maps to Driver in the Create a volume section of the Docker Remote API and the xxdriver option to docker volume create.

dockerVolumeConfiguration_driverOpts :: Lens' DockerVolumeConfiguration (Maybe (HashMap Text Text)) Source #

A map of Docker driver-specific options passed through. This parameter maps to DriverOpts in the Create a volume section of the Docker Remote API and the xxopt option to docker volume create.

dockerVolumeConfiguration_labels :: Lens' DockerVolumeConfiguration (Maybe (HashMap Text Text)) Source #

Custom metadata to add to your Docker volume. This parameter maps to Labels in the Create a volume section of the Docker Remote API and the xxlabel option to docker volume create.

dockerVolumeConfiguration_scope :: Lens' DockerVolumeConfiguration (Maybe Scope) Source #

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.