Package software.amazon.awscdk.core
Interface DockerVolume
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
DockerVolume.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:29:55.028Z")
@Stability(Stable)
public interface DockerVolume
extends software.amazon.jsii.JsiiSerializable
A Docker volume.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.core.*; DockerVolume dockerVolume = DockerVolume.builder() .containerPath("containerPath") .hostPath("hostPath") // the properties below are optional .consistency(DockerVolumeConsistency.CONSISTENT) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forDockerVolume
static final class
An implementation forDockerVolume
-
Method Summary
Modifier and TypeMethodDescriptionstatic DockerVolume.Builder
builder()
default DockerVolumeConsistency
Mount consistency.The path where the file or directory is mounted in the container.The path to the file or directory on the host machine.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getContainerPath
The path where the file or directory is mounted in the container. -
getHostPath
The path to the file or directory on the host machine. -
getConsistency
Mount consistency.Only applicable for macOS
Default: DockerConsistency.DELEGATED
-
builder
- Returns:
- a
DockerVolume.Builder
ofDockerVolume
-