BottleRocketImage

class aws_cdk.aws_ecs.BottleRocketImage(*, variant=None)

Bases: object

Construct an Bottlerocket image from the latest AMI published in SSM.

Constructs a new instance of the BottleRocketImage class.

Parameters

variant (Optional[BottlerocketEcsVariant]) – The Amazon ECS variant to use. Only aws-ecs-1 is currently available Default: - BottlerocketEcsVariant.AWS_ECS_1

Methods

get_image(scope)

Return the correct image.

Parameters

scope (Construct) –

Return type

MachineImageConfig