LookupMachineImageProps

class aws_cdk.aws_ec2.LookupMachineImageProps(*, name, filters=None, owners=None, user_data=None, windows=None)

Bases: object

__init__(*, name, filters=None, owners=None, user_data=None, windows=None)

Properties for looking up an image.

Parameters
  • name (str) – Name of the image (may contain wildcards).

  • filters (Optional[Mapping[str, List[str]]]) – Additional filters on the AMI. Default: - No additional filters

  • owners (Optional[List[str]]) – Owner account IDs or aliases. Default: - All owners

  • user_data (Optional[UserData]) – Custom userdata for this image. Default: - Empty user data appropriate for the platform type

  • windows (Optional[bool]) – Look for Windows images. Default: false

Attributes

filters

Additional filters on the AMI.

default :default: - No additional filters

see :see: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeImages.html

Return type

Optional[Mapping[str, List[str]]]

name

Name of the image (may contain wildcards).

Return type

str

owners

Owner account IDs or aliases.

default :default: - All owners

Return type

Optional[List[str]]

user_data

Custom userdata for this image.

default :default: - Empty user data appropriate for the platform type

Return type

Optional[UserData]

windows

Look for Windows images.

default :default: false

Return type

Optional[bool]