class AmazonLinux2023Kernel
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.EC2.AmazonLinux2023Kernel |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#AmazonLinux2023Kernel |
![]() | software.amazon.awscdk.services.ec2.AmazonLinux2023Kernel |
![]() | aws_cdk.aws_ec2.AmazonLinux2023Kernel |
![]() | aws-cdk-lib » aws_ec2 » AmazonLinux2023Kernel |
Amazon Linux 2023 kernel versions.
Example
declare const vpc: ec2.Vpc;
new ec2.Instance(this, 'LatestAl2023', {
vpc,
instanceType: ec2.InstanceType.of(ec2.InstanceClass.C7G, ec2.InstanceSize.LARGE),
// context cache is turned on by default
machineImage: new ec2.AmazonLinux2023ImageSsmParameter({
kernel: ec2.AmazonLinux2023Kernel.KERNEL_6_1,
}),
});
Initializer
new AmazonLinux2023Kernel(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 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). |
static KERNEL_6_1 | Amazon | Kernel version 6.1. |
static CDK_LATEST
Type:
Amazon
The latest kernel version currently available in a published AMI.
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.
static DEFAULT
Type:
Amazon
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).
static KERNEL_6_1
Type:
Amazon
Kernel version 6.1.
Methods
Name | Description |
---|---|
to | Generate a string representation of the kernel. |
toString()
public toString(): string
Returns
string
Generate a string representation of the kernel.