Interface HostVolumeOptions
- All Superinterfaces:
EcsVolumeOptions
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
HostVolumeOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-09-11T18:01:12.029Z")
@Stability(Stable)
public interface HostVolumeOptions
extends software.amazon.jsii.JsiiSerializable, EcsVolumeOptions
Options for configuring an ECS HostVolume.
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.batch.*; HostVolumeOptions hostVolumeOptions = HostVolumeOptions.builder() .containerPath("containerPath") .name("name") // the properties below are optional .hostPath("hostPath") .readonly(false) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forHostVolumeOptions
static final class
An implementation forHostVolumeOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic HostVolumeOptions.Builder
builder()
default String
The path on the host machine this container will have access to.Methods inherited from interface software.amazon.awscdk.services.batch.EcsVolumeOptions
getContainerPath, getName, getReadonly
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getHostPath
The path on the host machine this container will have access to.Default: - Docker will choose the host path. The data may not persist after the containers that use it stop running.
-
builder
- Returns:
- a
HostVolumeOptions.Builder
ofHostVolumeOptions
-