GenericLinuxImage

class aws_cdk.aws_ec2.GenericLinuxImage(ami_map, *, user_data=None)

Bases: object

Construct a Linux machine image from an AMI map.

Linux images IDs are not published to SSM parameter store yet, so you’ll have to manually specify an AMI map.

__init__(ami_map, *, user_data=None)
Parameters
  • ami_map (Mapping[str, str]) –

  • props

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

Return type

None

Methods

get_image(scope)

Return the image to use in the given context.

Parameters

scope (Construct) –

Return type

MachineImageConfig