Interface IAmazonLinux2ImageSsmParameterProps
Properties specific to amzn2 images.
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IAmazonLinux2ImageSsmParameterProps : IAmazonLinuxImageSsmParameterCommonOptions, IAmazonLinuxImageSsmParameterBaseOptions
Syntax (vb)
Public Interface IAmazonLinux2ImageSsmParameterProps
Inherits IAmazonLinuxImageSsmParameterCommonOptions, IAmazonLinuxImageSsmParameterBaseOptions
Remarks
ExampleMetadata: infused
Examples
Vpc vpc;
InstanceType instanceType;
// Amazon Linux 2
// Amazon Linux 2
new Instance(this, "Instance2", new InstanceProps {
Vpc = vpc,
InstanceType = instanceType,
MachineImage = MachineImage.LatestAmazonLinux2()
});
// Amazon Linux 2 with kernel 5.x
// Amazon Linux 2 with kernel 5.x
new Instance(this, "Instance3", new InstanceProps {
Vpc = vpc,
InstanceType = instanceType,
MachineImage = MachineImage.LatestAmazonLinux2(new AmazonLinux2ImageSsmParameterProps {
Kernel = AmazonLinux2Kernel.KERNEL_5_10
})
});
// Amazon Linux 2023
// Amazon Linux 2023
new Instance(this, "Instance4", new InstanceProps {
Vpc = vpc,
InstanceType = instanceType,
MachineImage = MachineImage.LatestAmazonLinux2023()
});
// Graviton 3 Processor
// Graviton 3 Processor
new Instance(this, "Instance5", new InstanceProps {
Vpc = vpc,
InstanceType = InstanceType.Of(InstanceClass.C7G, InstanceSize.LARGE),
MachineImage = MachineImage.LatestAmazonLinux2023(new AmazonLinux2023ImageSsmParameterProps {
CpuType = AmazonLinuxCpuType.ARM_64
})
});
Synopsis
Properties
Kernel | What kernel version of Amazon Linux to use. |
Storage | What storage backed image to use. |
Virtualization | Virtualization type. |
Properties
Kernel
What kernel version of Amazon Linux to use.
virtual AmazonLinux2Kernel Kernel { get; }
Property Value
Remarks
Default: -
Storage
What storage backed image to use.
virtual Nullable<AmazonLinuxStorage> Storage { get; }
Property Value
System.Nullable<AmazonLinuxStorage>
Remarks
Default: GeneralPurpose
Virtualization
Virtualization type.
virtual Nullable<AmazonLinuxVirt> Virtualization { get; }
Property Value
System.Nullable<AmazonLinuxVirt>
Remarks
Default: HVM