Class AmazonLinux2023ImageSsmParameter
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ec2.AmazonLinuxImageSsmParameterBase
software.amazon.awscdk.services.ec2.AmazonLinux2023ImageSsmParameter
- All Implemented Interfaces:
IMachineImage
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2025-01-15T21:09:17.649Z")
@Stability(Stable)
public class AmazonLinux2023ImageSsmParameter
extends AmazonLinuxImageSsmParameterBase
A SSM Parameter that contains the AMI ID for Amazon Linux 2023.
Example:
Vpc vpc; Instance.Builder.create(this, "LatestAl2023") .vpc(vpc) .instanceType(InstanceType.of(InstanceClass.C7G, InstanceSize.LARGE)) .machineImage(MachineImage.latestAmazonLinux2023(AmazonLinux2023ImageSsmParameterProps.builder() .cachedInContext(true) .build())) .build(); // or // or Instance.Builder.create(this, "LatestAl2023") .vpc(vpc) .instanceType(InstanceType.of(InstanceClass.C7G, InstanceSize.LARGE)) // context cache is turned on by default .machineImage(new AmazonLinux2023ImageSsmParameter()) .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forAmazonLinux2023ImageSsmParameter
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IMachineImage
IMachineImage.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
AmazonLinux2023ImageSsmParameter
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
AmazonLinux2023ImageSsmParameter
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Generates a SSM Parameter name for a specific amazon linux 2023 AMI.Methods inherited from class software.amazon.awscdk.services.ec2.AmazonLinuxImageSsmParameterBase
getImage
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, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
AmazonLinux2023ImageSsmParameter
protected AmazonLinux2023ImageSsmParameter(software.amazon.jsii.JsiiObjectRef objRef) -
AmazonLinux2023ImageSsmParameter
protected AmazonLinux2023ImageSsmParameter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
AmazonLinux2023ImageSsmParameter
@Stability(Stable) public AmazonLinux2023ImageSsmParameter(@Nullable AmazonLinux2023ImageSsmParameterProps props) - Parameters:
props
-
-
AmazonLinux2023ImageSsmParameter
@Stability(Stable) public AmazonLinux2023ImageSsmParameter()
-
-
Method Details
-
ssmParameterName
@Stability(Stable) @NotNull public static String ssmParameterName(@NotNull AmazonLinux2023ImageSsmParameterProps props) Generates a SSM Parameter name for a specific amazon linux 2023 AMI.Example values:
"/aws/service/ami-amazon-linux-latest/al2023-ami-kernel-6.1-arm64", "/aws/service/ami-amazon-linux-latest/al2023-ami-kernel-6.1-x86_64", "/aws/service/ami-amazon-linux-latest/al2023-ami-minimal-kernel-6.1-arm64", "/aws/service/ami-amazon-linux-latest/al2023-ami-minimal-kernel-6.1-x86_64", "/aws/service/ami-amazon-linux-latest/al2023-ami-minimal-kernel-default-arm64", "/aws/service/ami-amazon-linux-latest/al2023-ami-kernel-default-x86_64", "/aws/service/ami-amazon-linux-latest/al2023-ami-minimal-kernel-default-x86_64", "/aws/service/ami-amazon-linux-latest/al2023-ami-kernel-default-arm64",
- Parameters:
props
- This parameter is required.
-