Interface CfnTaskDefinition.DockerVolumeConfigurationProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnTaskDefinition.DockerVolumeConfigurationProperty.Jsii$Proxy
Enclosing class:
CfnTaskDefinition

@Stability(Stable) public static interface CfnTaskDefinition.DockerVolumeConfigurationProperty extends software.amazon.jsii.JsiiSerializable
The DockerVolumeConfiguration property specifies a Docker volume configuration and is used when you use Docker volumes.

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

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ecs.*;
 DockerVolumeConfigurationProperty dockerVolumeConfigurationProperty = DockerVolumeConfigurationProperty.builder()
         .autoprovision(false)
         .driver("driver")
         .driverOpts(Map.of(
                 "driverOptsKey", "driverOpts"))
         .labels(Map.of(
                 "labelsKey", "labels"))
         .scope("scope")
         .build();
 

See Also: