@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.691Z") @Stability(value=Stable) public interface DockerVolumeConfiguration extends software.amazon.jsii.JsiiSerializable
Docker volumes are only supported when you are using the EC2 launch type.
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.*;
DockerVolumeConfiguration dockerVolumeConfiguration = DockerVolumeConfiguration.builder()
.driver("driver")
.scope(Scope.TASK)
// the properties below are optional
.autoprovision(false)
.driverOpts(Map.of(
"driverOptsKey", "driverOpts"))
.labels(Map.of(
"labelsKey", "labels"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
DockerVolumeConfiguration.Builder
A builder for
DockerVolumeConfiguration |
static class |
DockerVolumeConfiguration.Jsii$Proxy
An implementation for
DockerVolumeConfiguration |
| Modifier and Type | Method and Description |
|---|---|
static DockerVolumeConfiguration.Builder |
builder() |
default Boolean |
getAutoprovision()
Specifies whether the Docker volume should be created if it does not already exist.
|
String |
getDriver()
The Docker volume driver to use.
|
default Map<String,String> |
getDriverOpts()
A map of Docker driver-specific options passed through.
|
default Map<String,String> |
getLabels()
Custom metadata to add to your Docker volume.
|
Scope |
getScope()
The scope for the Docker volume that determines its lifecycle.
|
@Stability(value=Stable) @NotNull String getDriver()
@Stability(value=Stable) @NotNull Scope getScope()
@Stability(value=Stable) @Nullable default Boolean getAutoprovision()
If true is specified, the Docker volume will be created for you.
Default: false
@Stability(value=Stable) @Nullable default Map<String,String> getDriverOpts()
Default: No options
@Stability(value=Stable) @Nullable default Map<String,String> getLabels()
Default: No labels
@Stability(value=Stable) static DockerVolumeConfiguration.Builder builder()
DockerVolumeConfiguration.Builder of DockerVolumeConfigurationCopyright © 2022. All rights reserved.