MachineImageConfig

class aws_cdk.aws_ec2.MachineImageConfig(*, image_id, os_type, user_data=None)

Bases: object

__init__(*, image_id, os_type, user_data=None)

Configuration for a machine image.

Parameters
  • image_id (str) – The AMI ID of the image to use.

  • os_type (OperatingSystemType) – Operating system type for this image.

  • user_data (Optional[UserData]) – Initial UserData for this image. Default: - Default UserData appropriate for the osType is created

Attributes

image_id

The AMI ID of the image to use.

Return type

str

os_type

Operating system type for this image.

Return type

OperatingSystemType

user_data

Initial UserData for this image.

default :default: - Default UserData appropriate for the osType is created

Return type

Optional[UserData]