Class AmazonLinux2022Kernel
Amazon Linux 2022 kernel versions.
Inheritance
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AmazonLinux2022Kernel : DeputyBase
Syntax (vb)
Public Class AmazonLinux2022Kernel
Inherits DeputyBase
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;
var amazonLinux2022Kernel = AmazonLinux2022Kernel.CDK_LATEST;
Synopsis
Constructors
AmazonLinux2022Kernel(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
AmazonLinux2022Kernel(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
AmazonLinux2022Kernel(String) |
Properties
CDK_LATEST | The latest kernel version currently available in a published AMI. |
DEFAULT | The default kernel version for Amazon Linux 2022 is 5.15 and the SSM parameter does not include it in the name (i.e. /aws/service/ami-amazon-linux-latest/amzn2022-ami-kernel-default-x86_64). |
KERNEL_5_15 | Kernel version 5.15. |
Methods
ToString() | Generate a string representation of the kernel. |
Constructors
AmazonLinux2022Kernel(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected AmazonLinux2022Kernel(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
AmazonLinux2022Kernel(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected AmazonLinux2022Kernel(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
AmazonLinux2022Kernel(String)
public AmazonLinux2022Kernel(string version)
Parameters
- version System.String
Properties
CDK_LATEST
The latest kernel version currently available in a published AMI.
public static AmazonLinux2022Kernel CDK_LATEST { get; }
Property Value
Remarks
When a new kernel version is available for an al2022 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 2022 is 5.15 and the SSM parameter does not include it in the name (i.e. /aws/service/ami-amazon-linux-latest/amzn2022-ami-kernel-default-x86_64).
public static AmazonLinux2022Kernel DEFAULT { get; }
Property Value
KERNEL_5_15
Kernel version 5.15.
public static AmazonLinux2022Kernel KERNEL_5_15 { get; }
Property Value
Methods
ToString()
Generate a string representation of the kernel.
public override string ToString()
Returns
System.String