enum EmptyDirMediumType
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Batch.EmptyDirMediumType |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbatch#EmptyDirMediumType |
Java | software.amazon.awscdk.services.batch.EmptyDirMediumType |
Python | aws_cdk.aws_batch.EmptyDirMediumType |
TypeScript (source) | aws-cdk-lib » aws_batch » EmptyDirMediumType |
What medium the volume will live in.
Example
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
Name | Description |
---|---|
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.