Class MachineImageConfig
Configuration for a machine image.
Inheritance
System.Object
MachineImageConfig
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class MachineImageConfig : Object, IMachineImageConfig
Syntax (vb)
Public Class MachineImageConfig
Inherits Object
Implements IMachineImageConfig
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
UserData userData;
var machineImageConfig = new MachineImageConfig {
ImageId = "imageId",
OsType = OperatingSystemType.LINUX,
UserData = userData
};
Synopsis
Constructors
MachineImageConfig() |
Properties
ImageId | The AMI ID of the image to use. |
OsType | Operating system type for this image. |
UserData | Initial UserData for this image. |
Constructors
MachineImageConfig()
public MachineImageConfig()
Properties
ImageId
The AMI ID of the image to use.
public string ImageId { get; set; }
Property Value
System.String
OsType
Operating system type for this image.
public OperatingSystemType OsType { get; set; }
Property Value