Interface EcsMachineImage

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

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-02T15:58:22.027Z") @Stability(Stable) public interface EcsMachineImage extends software.amazon.jsii.JsiiSerializable
A Batch MachineImage that is compatible with ECS.

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;
 EcsMachineImage ecsMachineImage = EcsMachineImage.builder()
         .image(machineImage)
         .imageType(EcsMachineImageType.ECS_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 EcsMachineImageType getImageType()
      Tells Batch which instance type to launch this image on.

      Default: - 'ECS_AL2' for non-gpu instances, 'ECS_AL2_NVIDIA' for gpu instances

    • builder

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