Interface CfnJobDefinition.EksVolumeProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnJobDefinition.EksVolumeProperty.Jsii$Proxy
Enclosing class:
CfnJobDefinition

@Stability(Stable) public static interface CfnJobDefinition.EksVolumeProperty extends software.amazon.jsii.JsiiSerializable
Specifies an Amazon EKS volume for a job definition.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.batch.*;
 EksVolumeProperty eksVolumeProperty = EksVolumeProperty.builder()
         .name("name")
         // the properties below are optional
         .emptyDir(EmptyDirProperty.builder()
                 .medium("medium")
                 .sizeLimit("sizeLimit")
                 .build())
         .hostPath(HostPathProperty.builder()
                 .path("path")
                 .build())
         .secret(EksSecretProperty.builder()
                 .secretName("secretName")
                 // the properties below are optional
                 .optional(false)
                 .build())
         .build();
 
  • Method Details

    • getName

      @Stability(Stable) @NotNull String getName()
      The name of the volume.

      The name must be allowed as a DNS subdomain name. For more information, see DNS subdomain names in the Kubernetes documentation .

    • getEmptyDir

      @Stability(Stable) @Nullable default Object getEmptyDir()
      Specifies the configuration of a Kubernetes emptyDir volume.

      For more information, see emptyDir in the Kubernetes documentation .

    • getHostPath

      @Stability(Stable) @Nullable default Object getHostPath()
      Specifies the configuration of a Kubernetes hostPath volume.

      For more information, see hostPath in the Kubernetes documentation .

    • getSecret

      @Stability(Stable) @Nullable default Object getSecret()
      Specifies the configuration of a Kubernetes secret volume.

      For more information, see secret in the Kubernetes documentation .

    • builder

      @Stability(Stable) static CfnJobDefinition.EksVolumeProperty.Builder builder()
      Returns:
      a CfnJobDefinition.EksVolumeProperty.Builder of CfnJobDefinition.EksVolumeProperty