aws-cdk-lib.aws_ec2.AmazonLinux2022Kernel

class AmazonLinux2022Kernel

LanguageType name
.NETAmazon.CDK.AWS.EC2.AmazonLinux2022Kernel
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#AmazonLinux2022Kernel
Javasoftware.amazon.awscdk.services.ec2.AmazonLinux2022Kernel
Pythonaws_cdk.aws_ec2.AmazonLinux2022Kernel
TypeScript (source)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

NameTypeDescription
static CDK_LATESTAmazonLinux2022KernelThe latest kernel version currently available in a published AMI.
static DEFAULTAmazonLinux2022KernelThe 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_15AmazonLinux2022KernelKernel version 5.15.

static CDK_LATEST

Type: AmazonLinux2022Kernel

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: AmazonLinux2022Kernel

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: AmazonLinux2022Kernel

Kernel version 5.15.

Methods

NameDescription
toString()Generate a string representation of the kernel.

toString()

public toString(): string

Returns

  • string

Generate a string representation of the kernel.