GenericWindowsImage

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

Bases: object

Construct a Windows machine image from an AMI map.

Allows you to create a generic Windows EC2 , manually specify an AMI map.

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

generic_windows_image = ec2.GenericWindowsImage({
    "ami_map_key": "amiMap"
},
    user_data=user_data
)
Parameters:
  • ami_map (Mapping[str, str])

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

Methods

get_image(scope)

Return the image to use in the given context.

Parameters:

scope (Construct)

Return type:

MachineImageConfig