Class EmptyDirVolume

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.batch.EksVolume
software.amazon.awscdk.services.batch.EmptyDirVolume
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:03.388Z") @Stability(Stable) public class EmptyDirVolume extends EksVolume
A Kubernetes EmptyDir volume.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.*;
 import software.amazon.awscdk.services.batch.*;
 Size size;
 EmptyDirVolume emptyDirVolume = EmptyDirVolume.Builder.create()
         .name("name")
         // the properties below are optional
         .medium(EmptyDirMediumType.DISK)
         .mountPath("mountPath")
         .readonly(false)
         .sizeLimit(size)
         .build();
 

See Also:
  • Constructor Details

    • EmptyDirVolume

      protected EmptyDirVolume(software.amazon.jsii.JsiiObjectRef objRef)
    • EmptyDirVolume

      protected EmptyDirVolume(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • EmptyDirVolume

      @Stability(Stable) public EmptyDirVolume(@NotNull EmptyDirVolumeOptions options)
      Parameters:
      options - This parameter is required.
  • Method Details

    • isEmptyDirVolume

      @Stability(Stable) @NotNull public static Boolean isEmptyDirVolume(@NotNull Object x)
      Returns true if x is an EmptyDirVolume, false otherwise.

      Parameters:
      x - This parameter is required.
    • getMedium

      @Stability(Stable) @Nullable public EmptyDirMediumType getMedium()
      The storage type to use for this Volume.

      Default: `EmptyDirMediumType.DISK`

    • getSizeLimit

      @Stability(Stable) @Nullable public Size getSizeLimit()
      The maximum size for this Volume.

      Default: - no size limit