Interface IAmazonLinux2023ImageSsmParameterProps
Properties specific to al2023 images.
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IAmazonLinux2023ImageSsmParameterProps : IAmazonLinuxImageSsmParameterCommonOptions, IAmazonLinuxImageSsmParameterBaseOptions
Syntax (vb)
Public Interface IAmazonLinux2023ImageSsmParameterProps 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. |
Properties
Kernel
What kernel version of Amazon Linux to use.
AmazonLinux2023Kernel? Kernel { get; }
Property Value
Remarks
Default: AmazonLinux2023Kernel.DEFAULT