Class AmazonLinux2023Kernel

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ec2.AmazonLinux2023Kernel
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:05.629Z") @Stability(Stable) public class AmazonLinux2023Kernel extends software.amazon.jsii.JsiiObject
Amazon Linux 2023 kernel versions.

Example:

 Vpc vpc;
 Instance.Builder.create(this, "LatestAl2023")
         .vpc(vpc)
         .instanceType(InstanceType.of(InstanceClass.C7G, InstanceSize.LARGE))
         // context cache is turned on by default
         .machineImage(AmazonLinux2023ImageSsmParameter.Builder.create()
                 .kernel(AmazonLinux2023Kernel.KERNEL_6_1)
                 .build())
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The latest kernel version currently available in a published AMI.
    The default kernel version for Amazon Linux 2023 is 6.1 and the SSM parameter does not include it in the name (i.e.
    Kernel version 6.1.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
     
    protected
    AmazonLinux2023Kernel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    AmazonLinux2023Kernel(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Generate a string representation of the kernel.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Field Details

    • CDK_LATEST

      @Stability(Stable) public static final AmazonLinux2023Kernel CDK_LATEST
      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.

    • DEFAULT

      @Stability(Stable) public static final AmazonLinux2023Kernel DEFAULT
      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).
    • KERNEL_6_1

      @Stability(Stable) public static final AmazonLinux2023Kernel KERNEL_6_1
      Kernel version 6.1.
  • Constructor Details

    • AmazonLinux2023Kernel

      protected AmazonLinux2023Kernel(software.amazon.jsii.JsiiObjectRef objRef)
    • AmazonLinux2023Kernel

      protected AmazonLinux2023Kernel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • AmazonLinux2023Kernel

      @Stability(Stable) public AmazonLinux2023Kernel(@NotNull String version)
      Parameters:
      version - This parameter is required.
  • Method Details

    • toString

      @Stability(Stable) @NotNull public String toString()
      Generate a string representation of the kernel.
      Overrides:
      toString in class Object