AmazonLinux2023Kernel

class aws_cdk.aws_ec2.AmazonLinux2023Kernel(version)

Bases: object

Amazon Linux 2023 kernel versions.

ExampleMetadata:

infused

Example:

# vpc: ec2.Vpc


ec2.Instance(self, "LatestAl2023",
    vpc=vpc,
    instance_type=ec2.InstanceType.of(ec2.InstanceClass.C7G, ec2.InstanceSize.LARGE),
    # context cache is turned on by default
    machine_image=ec2.AmazonLinux2023ImageSsmParameter(
        kernel=ec2.AmazonLinux2023Kernel.KERNEL_6_1
    )
)
Parameters:

version (str) –

Methods

to_string()

Generate a string representation of the kernel.

Return type:

str

Attributes

CDK_LATEST = <aws_cdk.aws_ec2.AmazonLinux2023Kernel object>
DEFAULT = <aws_cdk.aws_ec2.AmazonLinux2023Kernel object>
KERNEL_6_1 = <aws_cdk.aws_ec2.AmazonLinux2023Kernel object>