AmazonLinuxImageProps

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

Bases: object

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

Amazon Linux image properties.

Parameters
  • 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

Attributes

edition

What edition of Amazon Linux to use.

default :default: Standard

Return type

Optional[AmazonLinuxEdition]

generation

What generation of Amazon Linux to use.

default :default: AmazonLinux

Return type

Optional[AmazonLinuxGeneration]

storage

What storage backed image to use.

default :default: GeneralPurpose

Return type

Optional[AmazonLinuxStorage]

user_data

Initial user data.

default :default: - Empty UserData for Linux machines

Return type

Optional[UserData]

virtualization

Virtualization type.

default :default: HVM

Return type

Optional[AmazonLinuxVirt]