Skip to content
v2.273.0

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 ​

MemberDescription
DISKUse the disk storage of the node.
MEMORYUse the tmpfs volume that is backed by RAM of the node.

Referenced by ​