EmptyDirMediumType

class aws_cdk.aws_batch.EmptyDirMediumType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

What medium the volume will live in.

ExampleMetadata:

infused

Example:

job_defn = batch.EksJobDefinition(self, "eksf2",
    container=batch.EksContainerDefinition(self, "container",
        image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample"),
        volumes=[batch.EksVolume.empty_dir(
            name="myEmptyDirVolume",
            mount_path="/mount/path",
            medium=batch.EmptyDirMediumType.MEMORY,
            readonly=True,
            size_limit=cdk.Size.mebibytes(2048)
        )]
    )
)

Attributes

DISK

Use the disk storage of the node.

Items written here will survive node reboots.

MEMORY

Use the tmpfs volume that is backed by RAM of the node.

Items written here will not survive node reboots.