MachineImageType

class aws_cdk.aws_ecs.MachineImageType(value)

Bases: Enum

The machine image type.

ExampleMetadata:

infused

Example:

# cluster: ecs.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.