AmiHardwareType

class aws_cdk.aws_ecs.AmiHardwareType(value)

Bases: enum.Enum

The ECS-optimized AMI variant to use.

For more information, see Amazon ECS-optimized AMIs.

Example:

# cluster is of type Cluster


cluster.add_capacity("graviton-cluster",
    min_capacity=2,
    instance_type=ec2.InstanceType("c6g.large"),
    machine_image=ecs.EcsOptimizedImage.amazon_linux2(ecs.AmiHardwareType.ARM)
)

Attributes

ARM

Use the Amazon ECS-optimized Amazon Linux 2 (arm64) AMI.

GPU

Use the Amazon ECS GPU-optimized AMI.

STANDARD

Use the standard Amazon ECS-optimized AMI.