Enum EmptyDirMediumType

java.lang.Object
java.lang.Enum<EmptyDirMediumType>
software.amazon.awscdk.services.batch.EmptyDirMediumType
All Implemented Interfaces:
Serializable, Comparable<EmptyDirMediumType>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-09-11T18:01:12.022Z") @Stability(Stable) public enum EmptyDirMediumType extends Enum<EmptyDirMediumType>
What medium the volume will live in.

Example:

 EksJobDefinition jobDefn = EksJobDefinition.Builder.create(this, "eksf2")
         .container(EksContainerDefinition.Builder.create(this, "container")
                 .image(ContainerImage.fromRegistry("amazon/amazon-ecs-sample"))
                 .volumes(List.of(EksVolume.emptyDir(EmptyDirVolumeOptions.builder()
                         .name("myEmptyDirVolume")
                         .mountPath("/mount/path")
                         .medium(EmptyDirMediumType.MEMORY)
                         .readonly(true)
                         .sizeLimit(Size.mebibytes(2048))
                         .build())))
                 .build())
         .build();
 
  • Enum Constant Details

    • DISK

      @Stability(Stable) public static final EmptyDirMediumType DISK
      Use the disk storage of the node.

      Items written here will survive node reboots.

    • MEMORY

      @Stability(Stable) public static final EmptyDirMediumType MEMORY
      Use the tmpfs volume that is backed by RAM of the node.

      Items written here will not survive node reboots.

  • Method Details

    • values

      public static EmptyDirMediumType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static EmptyDirMediumType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null