# GenericWindowsImage

Construct a Windows machine image from an AMI map.

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

Extends: GenericWindowsImage
Implements: IMachineImage

- Source: [`aws-ec2/lib/machine-image/machine-image.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-ec2/lib/machine-image/machine-image.ts#L645)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';

declare const userData: ec2.UserData;
const genericWindowsImage = new ec2.GenericWindowsImage({
  amiMapKey: 'amiMap',
}, /* all optional props */ {
  userData: userData,
});
```

## Initializer

```ts
new GenericWindowsImage(amiMap: { [key: string]: string }, props?: GenericWindowsImageProps)
```

## Methods

- `getImage(scope: Construct): MachineImageConfig` — Return the image to use in the given context.
