interface MachineImageConfig
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EC2.MachineImageConfig |
Java | software.amazon.awscdk.services.ec2.MachineImageConfig |
Python | aws_cdk.aws_ec2.MachineImageConfig |
TypeScript (source) | @aws-cdk/aws-ec2 » MachineImageConfig |
Obtainable from
Amazon
.getImage()
, Generic
.getImage()
, Generic
.getImage()
, Generic
.getImage()
, Lookup
.getImage()
, Bottle
.getImage()
, Ecs
.getImage()
, Ecs
.getImage()
, Eks
.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 * as ec2 from '@aws-cdk/aws-ec2';
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.