class GenericWindowsImage
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.EC2.GenericWindowsImage |
![]() | software.amazon.awscdk.services.ec2.GenericWindowsImage |
![]() | aws_cdk.aws_ec2.GenericWindowsImage |
![]() | @aws-cdk/aws-ec2 » GenericWindowsImage |
Implements
IMachine
Construct a Windows machine image from an AMI map.
Allows you to create a generic Windows EC2 , manually specify an AMI map.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ec2 from '@aws-cdk/aws-ec2';
declare const userData: ec2.UserData;
const genericWindowsImage = new ec2.GenericWindowsImage({
amiMapKey: 'amiMap',
}, /* all optional props */ {
userData: userData,
});
Initializer
new GenericWindowsImage(amiMap: { [string]: string }, props?: GenericWindowsImageProps)
Parameters
- amiMap
{ [string]: string }
- props
Generic
Windows Image Props
Methods
Name | Description |
---|---|
get | Return the image to use in the given context. |
getImage(scope)
public getImage(scope: Construct): MachineImageConfig
Parameters
- scope
Construct
Returns
Return the image to use in the given context.