Class AmazonLinux2022ImageSsmParameter

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ec2.AmazonLinuxImageSsmParameterBase
software.amazon.awscdk.services.ec2.AmazonLinux2022ImageSsmParameter
All Implemented Interfaces:
IMachineImage, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:24:00.122Z") @Stability(Stable) public class AmazonLinux2022ImageSsmParameter extends AmazonLinuxImageSsmParameterBase
A SSM Parameter that contains the AMI ID for Amazon Linux 2023.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ec2.*;
 AmazonLinux2022Kernel amazonLinux2022Kernel;
 UserData userData;
 AmazonLinux2022ImageSsmParameter amazonLinux2022ImageSsmParameter = AmazonLinux2022ImageSsmParameter.Builder.create()
         .cachedInContext(false)
         .cpuType(AmazonLinuxCpuType.ARM_64)
         .edition(AmazonLinuxEdition.STANDARD)
         .kernel(amazonLinux2022Kernel)
         .userData(userData)
         .build();
 
  • Constructor Details

    • AmazonLinux2022ImageSsmParameter

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

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

      @Stability(Stable) public AmazonLinux2022ImageSsmParameter(@NotNull AmazonLinux2022ImageSsmParameterProps props)
      Parameters:
      props - This parameter is required.
  • Method Details

    • ssmParameterName

      @Stability(Stable) @NotNull public static String ssmParameterName(@NotNull AmazonLinux2022ImageSsmParameterProps props)
      Generates a SSM Parameter name for a specific amazon linux 2022 AMI.

      Example values:

       "/aws/service/ami-amazon-linux-latest/al2022-ami-kernel-5.15-x86_64",
       "/aws/service/ami-amazon-linux-latest/al2022-ami-kernel-default-x86_64",
       "/aws/service/ami-amazon-linux-latest/al2022-ami-minimal-kernel-5.15-arm64",
       "/aws/service/ami-amazon-linux-latest/al2022-ami-minimal-kernel-5.15-x86_64",
       "/aws/service/ami-amazon-linux-latest/al2022-ami-kernel-5.15-arm64",
       "/aws/service/ami-amazon-linux-latest/al2022-ami-minimal-kernel-default-arm64",
       "/aws/service/ami-amazon-linux-latest/al2022-ami-minimal-kernel-default-x86_64",
       "/aws/service/ami-amazon-linux-latest/al2022-ami-kernel-default-arm64",
       

      Parameters:
      props - This parameter is required.