AmazonLinuxImage

class aws_cdk.aws_ec2.AmazonLinuxImage(*, edition=None, generation=None, storage=None, user_data=None, virtualization=None)

Bases: object

Selects the latest version of Amazon Linux.

The AMI ID is selected using the values published to the SSM parameter store.

__init__(*, edition=None, generation=None, storage=None, user_data=None, virtualization=None)
Parameters
  • props

  • edition (Optional[AmazonLinuxEdition]) – What edition of Amazon Linux to use. Default: Standard

  • generation (Optional[AmazonLinuxGeneration]) – What generation of Amazon Linux to use. Default: AmazonLinux

  • storage (Optional[AmazonLinuxStorage]) – What storage backed image to use. Default: GeneralPurpose

  • user_data (Optional[UserData]) – Initial user data. Default: - Empty UserData for Linux machines

  • virtualization (Optional[AmazonLinuxVirt]) – Virtualization type. Default: HVM

Return type

None

Methods

get_image(scope)

Return the image to use in the given context.

Parameters

scope (Construct) –

Return type

MachineImageConfig