Show / Hide Table of Contents

Interface IEmptyDirVolumeOptions

Options for a Kubernetes EmptyDir volume.

Inherited Members
IEksVolumeOptions.Name
IEksVolumeOptions.MountPath
IEksVolumeOptions.Readonly
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IEmptyDirVolumeOptions : IEksVolumeOptions
Syntax (vb)
Public Interface IEmptyDirVolumeOptions Inherits IEksVolumeOptions
Remarks

See: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir

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

Properties

Medium

The storage type to use for this Volume.

SizeLimit

The maximum size for this Volume.

Properties

Medium

The storage type to use for this Volume.

EmptyDirMediumType? Medium { get; }
Property Value

EmptyDirMediumType?

Remarks

Default: EmptyDirMediumType.DISK

SizeLimit

The maximum size for this Volume.

Size? SizeLimit { get; }
Property Value

Size

Remarks

Default: - no size limit

Back to top Generated by DocFX