interface MachineImageConfig
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EC2.MachineImageConfig |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#MachineImageConfig |
Java | software.amazon.awscdk.services.ec2.MachineImageConfig |
Python | aws_cdk.aws_ec2.MachineImageConfig |
TypeScript (source) | aws-cdk-lib » aws_ec2 » MachineImageConfig |
Obtainable from
Amazon
.getImage()
, Amazon
.getImage()
, Generic
.getImage()
, Generic
.getImage()
, Generic
.getImage()
, Lookup
.getImage()
, Resolve
.getImage()
, Bottle
.getImage()
, Ecs
.getImage()
, Eks
.getImage()
Configuration for a machine image.
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 machineImageConfig: ec2.MachineImageConfig = {
imageId: 'imageId',
osType: ec2.OperatingSystemType.LINUX,
userData: userData,
};
Properties
Name | Type | Description |
---|---|---|
image | string | The AMI ID of the image to use. |
os | Operating | Operating system type for this image. |
user | User | Initial UserData for this image. |
imageId
Type:
string
The AMI ID of the image to use.
osType
Type:
Operating
Operating system type for this image.
userData
Type:
User
Initial UserData for this image.