MachineImageType

class aws_cdk.aws_ecs.MachineImageType(value)

Bases: enum.Enum

The machine image type.

Example:

# cluster is of type Cluster


cluster.add_capacity("graviton-cluster",
    min_capacity=2,
    instance_type=ec2.InstanceType("c6g.large"),
    machine_image_type=ecs.MachineImageType.BOTTLEROCKET
)

Attributes

AMAZON_LINUX_2

Amazon ECS-optimized Amazon Linux 2 AMI.

BOTTLEROCKET

Bottlerocket AMI.