Interface EksMachineImage

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
EksMachineImage.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-15T10:24:55.421Z") @Stability(Stable) public interface EksMachineImage extends software.amazon.jsii.JsiiSerializable
A Batch MachineImage that is compatible with EKS.

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.*;
 import software.amazon.awscdk.services.ec2.*;
 IMachineImage machineImage;
 EksMachineImage eksMachineImage = EksMachineImage.builder()
         .image(machineImage)
         .imageType(EksMachineImageType.EKS_AL2)
         .build();
 
  • Method Details

    • getImage

      @Stability(Stable) @Nullable default IMachineImage getImage()
      The machine image to use.

      Default: - chosen by batch

    • getImageType

      @Stability(Stable) @Nullable default EksMachineImageType getImageType()
      Tells Batch which instance type to launch this image on.

      Default: - 'EKS_AL2' for non-gpu instances, 'EKS_AL2_NVIDIA' for gpu instances

    • builder

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