Enum AmiHardwareType

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

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:16.255Z") @Stability(Stable) public enum AmiHardwareType extends Enum<AmiHardwareType>
The ECS-optimized AMI variant to use.

For more information, see Amazon ECS-optimized AMIs.

Example:

 Cluster cluster;
 cluster.addCapacity("graviton-cluster", AddCapacityOptions.builder()
         .minCapacity(2)
         .instanceType(new InstanceType("c6g.large"))
         .machineImage(EcsOptimizedImage.amazonLinux2(AmiHardwareType.ARM))
         .build());
 
  • Enum Constant Details

    • STANDARD

      @Stability(Stable) public static final AmiHardwareType STANDARD
      Use the standard Amazon ECS-optimized AMI.
    • GPU

      @Stability(Stable) public static final AmiHardwareType GPU
      Use the Amazon ECS GPU-optimized AMI.
    • ARM

      @Stability(Stable) public static final AmiHardwareType ARM
      Use the Amazon ECS-optimized Amazon Linux 2 (arm64) AMI.
    • NEURON

      @Stability(Stable) public static final AmiHardwareType NEURON
      Use the Amazon ECS-optimized Amazon Linux 2 (Neuron) AMI.
  • Method Details

    • values

      public static AmiHardwareType[] 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 AmiHardwareType 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