class AmazonLinux2022Kernel
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.EC2.AmazonLinux2022Kernel |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#AmazonLinux2022Kernel |
![]() | software.amazon.awscdk.services.ec2.AmazonLinux2022Kernel |
![]() | aws_cdk.aws_ec2.AmazonLinux2022Kernel |
![]() | aws-cdk-lib » aws_ec2 » AmazonLinux2022Kernel |
Amazon Linux 2022 kernel versions.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const amazonLinux2022Kernel = ec2.AmazonLinux2022Kernel.CDK_LATEST;
Initializer
new AmazonLinux2022Kernel(version: string)
Parameters
- version
string
Properties
Name | Type | Description |
---|---|---|
static CDK_LATEST | Amazon | The latest kernel version currently available in a published AMI. |
static DEFAULT | Amazon | 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). |
static KERNEL_5_15 | Amazon | Kernel version 5.15. |
static CDK_LATEST
Type:
Amazon
The latest kernel version currently available in a published AMI.
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.
static DEFAULT
Type:
Amazon
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).
static KERNEL_5_15
Type:
Amazon
Kernel version 5.15.
Methods
Name | Description |
---|---|
to | Generate a string representation of the kernel. |
toString()
public toString(): string
Returns
string
Generate a string representation of the kernel.