Class AmazonLinux2023Kernel
Amazon Linux 2023 kernel versions.
Inheritance
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AmazonLinux2023Kernel : DeputyBase
Syntax (vb)
Public Class AmazonLinux2023Kernel
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
Vpc vpc;
new Instance(this, "LatestAl2023", new InstanceProps {
Vpc = vpc,
InstanceType = InstanceType.Of(InstanceClass.C7G, InstanceSize.LARGE),
// context cache is turned on by default
MachineImage = new AmazonLinux2023ImageSsmParameter(new AmazonLinux2023ImageSsmParameterProps {
Kernel = AmazonLinux2023Kernel.KERNEL_6_1
})
});
Synopsis
Constructors
AmazonLinux2023Kernel(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
AmazonLinux2023Kernel(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
AmazonLinux2023Kernel(String) |
Properties
CDK_LATEST | The latest kernel version currently available in a published AMI. |
DEFAULT | The default kernel version for Amazon Linux 2023 is 6.1 and the SSM parameter does not include it in the name (i.e. /aws/service/ami-amazon-linux-latest/amzn2023-ami-kernel-default-x86_64). |
KERNEL_6_1 | Kernel version 6.1. |
Methods
ToString() | Generate a string representation of the kernel. |
Constructors
AmazonLinux2023Kernel(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected AmazonLinux2023Kernel(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
AmazonLinux2023Kernel(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected AmazonLinux2023Kernel(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
AmazonLinux2023Kernel(String)
public AmazonLinux2023Kernel(string version)
Parameters
- version System.String
Properties
CDK_LATEST
The latest kernel version currently available in a published AMI.
public static AmazonLinux2023Kernel CDK_LATEST { get; }
Property Value
Remarks
When a new kernel version is available for an al2023 AMI this will be updated to contain the latest kernel version and will cause your instances to be replaced. Do not store stateful information on the instance if you are using this version.
DEFAULT
The default kernel version for Amazon Linux 2023 is 6.1 and the SSM parameter does not include it in the name (i.e. /aws/service/ami-amazon-linux-latest/amzn2023-ami-kernel-default-x86_64).
public static AmazonLinux2023Kernel DEFAULT { get; }
Property Value
KERNEL_6_1
Kernel version 6.1.
public static AmazonLinux2023Kernel KERNEL_6_1 { get; }
Property Value
Methods
ToString()
Generate a string representation of the kernel.
public override string ToString()
Returns
System.String