Interface EmptyDirVolumeOptions
- All Superinterfaces:
EksVolumeOptions
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EmptyDirVolumeOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-09-11T18:01:12.023Z")
@Stability(Stable)
public interface EmptyDirVolumeOptions
extends software.amazon.jsii.JsiiSerializable, EksVolumeOptions
Options for a Kubernetes EmptyDir volume.
Example:
EksJobDefinition jobDefn = EksJobDefinition.Builder.create(this, "eksf2") .container(EksContainerDefinition.Builder.create(this, "container") .image(ContainerImage.fromRegistry("amazon/amazon-ecs-sample")) .volumes(List.of(EksVolume.emptyDir(EmptyDirVolumeOptions.builder() .name("myEmptyDirVolume") .mountPath("/mount/path") .medium(EmptyDirMediumType.MEMORY) .readonly(true) .sizeLimit(Size.mebibytes(2048)) .build()))) .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forEmptyDirVolumeOptions
static final class
An implementation forEmptyDirVolumeOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default EmptyDirMediumType
The storage type to use for this Volume.default Size
The maximum size for this Volume.Methods inherited from interface software.amazon.awscdk.services.batch.EksVolumeOptions
getMountPath, getName, getReadonly
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMedium
The storage type to use for this Volume.Default: `EmptyDirMediumType.DISK`
-
getSizeLimit
The maximum size for this Volume.Default: - no size limit
-
builder
- Returns:
- a
EmptyDirVolumeOptions.Builder
ofEmptyDirVolumeOptions
-