class GenericWindowsImage
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EC2.GenericWindowsImage |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#GenericWindowsImage |
Java | software.amazon.awscdk.services.ec2.GenericWindowsImage |
Python | aws_cdk.aws_ec2.GenericWindowsImage |
TypeScript (source) | aws-cdk-lib » 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 { 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
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. |
Image(scope)
getpublic getImage(scope: Construct): MachineImageConfig
Parameters
- scope
Construct
Returns
Return the image to use in the given context.