@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:35.891Z") @Stability(value=Stable) public interface DockerVolume extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
DockerVolume dockerVolume = DockerVolume.builder()
.containerPath("containerPath")
.hostPath("hostPath")
// the properties below are optional
.consistency(DockerVolumeConsistency.CONSISTENT)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
DockerVolume.Builder
A builder for
DockerVolume |
static class |
DockerVolume.Jsii$Proxy
An implementation for
DockerVolume |
| Modifier and Type | Method and Description |
|---|---|
static DockerVolume.Builder |
builder() |
default DockerVolumeConsistency |
getConsistency()
Mount consistency.
|
String |
getContainerPath()
The path where the file or directory is mounted in the container.
|
String |
getHostPath()
The path to the file or directory on the host machine.
|
@Stability(value=Stable) @NotNull String getContainerPath()
@Stability(value=Stable) @NotNull String getHostPath()
@Stability(value=Stable) @Nullable default DockerVolumeConsistency getConsistency()
Only applicable for macOS
Default: DockerConsistency.DELEGATED
@Stability(value=Stable) static DockerVolume.Builder builder()
DockerVolume.Builder of DockerVolumeCopyright © 2022. All rights reserved.