Show / Hide Table of Contents

Class AmazonLinux2022Kernel

Amazon Linux 2022 kernel versions.

Inheritance
object
AmazonLinux2022Kernel
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(string)

Amazon Linux 2022 kernel versions.

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(string)

Amazon Linux 2022 kernel versions.

public AmazonLinux2022Kernel(string version)
Parameters
version string
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;

Properties

CDK_LATEST

The latest kernel version currently available in a published AMI.

public static AmazonLinux2022Kernel CDK_LATEST { get; }
Property Value

AmazonLinux2022Kernel

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

AmazonLinux2022Kernel

Remarks

ExampleMetadata: fixture=_generated

KERNEL_5_15

Kernel version 5.15.

public static AmazonLinux2022Kernel KERNEL_5_15 { get; }
Property Value

AmazonLinux2022Kernel

Remarks

ExampleMetadata: fixture=_generated

Methods

ToString()

Generate a string representation of the kernel.

public override string ToString()
Returns

string

Remarks

ExampleMetadata: fixture=_generated

Back to top Generated by DocFX