MachineImageConfig
- class aws_cdk.aws_ec2.MachineImageConfig(*, image_id, os_type, user_data)
Bases:
object
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 (
UserData
) – Initial UserData for this image.
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_ec2 as ec2 # user_data: ec2.UserData machine_image_config = ec2.MachineImageConfig( image_id="imageId", os_type=ec2.OperatingSystemType.LINUX, user_data=user_data )
Attributes
- image_id
The AMI ID of the image to use.
- os_type
Operating system type for this image.
- user_data
Initial UserData for this image.