Class EmptyDirMediumType
What medium the volume will live in.
Inheritance
System.Object
EmptyDirMediumType
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class EmptyDirMediumType : Enum
Syntax (vb)
Public NotInheritable Class EmptyDirMediumType
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
var jobDefn = new EksJobDefinition(this, "eksf2", new EksJobDefinitionProps {
Container = new EksContainerDefinition(this, "container", new EksContainerDefinitionProps {
Image = ContainerImage.FromRegistry("amazon/amazon-ecs-sample"),
Volumes = new [] { EksVolume.EmptyDir(new EmptyDirVolumeOptions {
Name = "myEmptyDirVolume",
MountPath = "/mount/path",
Medium = EmptyDirMediumType.MEMORY,
Readonly = true,
SizeLimit = Size.Mebibytes(2048)
}) }
})
});
Synopsis
Fields
DISK | Use the disk storage of the node. |
MEMORY | Use the |
value__ |
Fields
DISK
Use the disk storage of the node.
public const EmptyDirMediumType DISK
Field Value
Type | Description |
---|---|
EmptyDirMediumType |
Remarks
Items written here will survive node reboots.
MEMORY
Use the tmpfs
volume that is backed by RAM of the node.
public const EmptyDirMediumType MEMORY
Field Value
Type | Description |
---|---|
EmptyDirMediumType |
Remarks
Items written here will not survive node reboots.
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |