class Aws::Batch::Types::Ec2Configuration

Provides information used to select Amazon Machine Images (AMIs) for instances in the compute environment. If `Ec2Configuration` isn't specified, the default is currently `ECS_AL1` ([Amazon Linux]) for non-GPU, non AWSGraviton instances. Starting on March 31, 2021, this default will be changing to `ECS_AL2` ([Amazon Linux 2]).

<note markdown=“1”> This object isn't applicable to jobs that are running on Fargate resources.

</note>

[1]: docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#alami [2]: docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami

@note When making an API call, you may pass Ec2Configuration

data as a hash:

    {
      image_type: "ImageType", # required
      image_id_override: "ImageIdOverride",
    }

@!attribute [rw] image_type

The image type to match with the instance type to select an AMI. If
the `imageIdOverride` parameter isn't specified, then a recent
[Amazon ECS-optimized AMI][1] (`ECS_AL1`) is used. Starting on March
31, 2021, this default will be changing to `ECS_AL2` ([Amazon Linux
2][2]).

ECS\_AL2

: [Amazon Linux 2][2]− Default for all Amazon Web Services
  Graviton-based instance families (for example, `C6g`, `M6g`,
  `R6g`, and `T4g`) and can be used for all non-GPU instance types.

ECS\_AL2\_NVIDIA

: [Amazon Linux 2 (GPU)][3]−Default for all GPU instance families
  (for example `P4` and `G4`) and can be used for all non Amazon Web
  Services Graviton-based instance types.

ECS\_AL1

: [Amazon Linux][4]−Default for all non-GPU, non Amazon Web Services
  Graviton instance families. Amazon Linux is reaching the
  end-of-life of standard support. For more information, see [Amazon
  Linux AMI][5].

[1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html
[2]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami
[3]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#gpuami
[4]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#alami
[5]: http://aws.amazon.com/amazon-linux-ami/
@return [String]

@!attribute [rw] image_id_override

The AMI ID used for instances launched in the compute environment
that match the image type. This setting overrides the `imageId` set
in the `computeResource` object.
@return [String]

@see docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/Ec2Configuration AWS API Documentation

Constants

SENSITIVE