@aws-cdk_aws-batch-alpha.EmptyDirMediumType

enum EmptyDirMediumType ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Batch.Alpha.EmptyDirMediumType
Gogithub.com/aws/aws-cdk-go/awscdkbatchalpha/v2#EmptyDirMediumType
Javasoftware.amazon.awscdk.services.batch.alpha.EmptyDirMediumType
Pythonaws_cdk.aws_batch_alpha.EmptyDirMediumType
TypeScript (source)@aws-cdk/aws-batch-alpha ยป EmptyDirMediumType

What medium the volume will live in.

Example

import * as cdk from 'aws-cdk-lib';
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

NameDescription
DISK ๐Ÿ”นUse the disk storage of the node.
MEMORY ๐Ÿ”นUse the tmpfs volume that is backed by RAM of the node.

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.