Class AmazonLinux2Kernel
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ec2.AmazonLinux2Kernel
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-09-11T18:01:14.387Z")
@Stability(Stable)
public class AmazonLinux2Kernel
extends software.amazon.jsii.JsiiObject
Amazon Linux 2 kernel versions.
Example:
Vpc vpc; InstanceType instanceType; // Amazon Linux 2 // Amazon Linux 2 Instance.Builder.create(this, "Instance2") .vpc(vpc) .instanceType(instanceType) .machineImage(MachineImage.latestAmazonLinux2()) .build(); // Amazon Linux 2 with kernel 5.x // Amazon Linux 2 with kernel 5.x Instance.Builder.create(this, "Instance3") .vpc(vpc) .instanceType(instanceType) .machineImage(MachineImage.latestAmazonLinux2(AmazonLinux2ImageSsmParameterProps.builder() .kernel(AmazonLinux2Kernel.KERNEL_5_10) .build())) .build(); // Amazon Linux 2023 // Amazon Linux 2023 Instance.Builder.create(this, "Instance4") .vpc(vpc) .instanceType(instanceType) .machineImage(MachineImage.latestAmazonLinux2023()) .build(); // Graviton 3 Processor // Graviton 3 Processor Instance.Builder.create(this, "Instance5") .vpc(vpc) .instanceType(InstanceType.of(InstanceClass.C7G, InstanceSize.LARGE)) .machineImage(MachineImage.latestAmazonLinux2023(AmazonLinux2023ImageSsmParameterProps.builder() .cpuType(AmazonLinuxCpuType.ARM_64) .build())) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AmazonLinux2Kernel
The latest kernel version currently available in a published AMI.static final AmazonLinux2Kernel
The default kernel version for Amazon Linux 2 is 4.14 and Linux 4.14.311-233.529.amzn2.x86_64 the SSM parameter does not include it in the name (i.e.static final AmazonLinux2Kernel
Kernel version 5.10. -
Constructor Summary
ConstructorsModifierConstructorDescriptionAmazonLinux2Kernel
(String version) protected
AmazonLinux2Kernel
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
AmazonLinux2Kernel
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
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
The latest kernel version currently available in a published AMI.When a new kernel version is available for an amzn2 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 2 is 4.14 and Linux 4.14.311-233.529.amzn2.x86_64 the SSM parameter does not include it in the name (i.e. /aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2). -
KERNEL_5_10
Kernel version 5.10.
-
-
Constructor Details
-
AmazonLinux2Kernel
protected AmazonLinux2Kernel(software.amazon.jsii.JsiiObjectRef objRef) -
AmazonLinux2Kernel
protected AmazonLinux2Kernel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
AmazonLinux2Kernel
- Parameters:
version
- This parameter is required.
-
-
Method Details