# EmptyDirMediumType

What medium the volume will live in.

- Source: [`aws-batch/lib/eks-container-definition.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-batch/lib/eks-container-definition.ts#L760)
- Type last changed: v2.96.0 · 13 Sep 2023

## 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`](/v2/docs/aws-cdk-lib.aws_batch.EmptyDirVolume).medium
- [`EmptyDirVolumeOptions`](/v2/docs/aws-cdk-lib.aws_batch.EmptyDirVolumeOptions).medium
