EmptyDirMediumType Enum
What medium the volume will live in.
Example
ts
const jobDefn = new batch.EksJobDefinition(this, 'eksf2', {
container: new batch.EksContainerDefinition(this, 'container', {
image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'),
volumes: [batch.EksVolume.emptyDir({
name: 'myEmptyDirVolume',
mountPath: '/mount/path',
medium: batch.EmptyDirMediumType.MEMORY,
readonly: true,
sizeLimit: cdk.Size.mebibytes(2048),
})],
}),
});
Members
| Member | Description |
|---|---|
DISK | Use the disk storage of the node. |
MEMORY | Use the tmpfs volume that is backed by RAM of the node. |
Referenced by
EmptyDirVolume.mediummediummediumMediumMediumEmptyDirVolumeOptions.mediummediummediumMediumMedium