Interface EmptyDirVolumeOptions
- All Superinterfaces:
EksVolumeOptions,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EmptyDirVolumeOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T13:51:57.370Z")
@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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forEmptyDirVolumeOptionsstatic final classAn implementation forEmptyDirVolumeOptions -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default EmptyDirMediumTypeThe storage type to use for this Volume.default SizeThe maximum size for this Volume.Methods inherited from interface software.amazon.awscdk.services.batch.EksVolumeOptions
getMountPath, getName, getReadonlyMethods 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.BuilderofEmptyDirVolumeOptions
-