Class ResolveSsmParameterAtLaunchImage

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

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-06T14:43:18.034Z") @Stability(Stable) public class ResolveSsmParameterAtLaunchImage extends software.amazon.jsii.JsiiObject implements IMachineImage
Select the image based on a given SSM parameter at instance launch time.

This Machine Image comes with an imageId as resolve:ssm:parameter-name or resolve:ssm:parameter-name:version format as described in the document:

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.*;
 UserData userData;
 ResolveSsmParameterAtLaunchImage resolveSsmParameterAtLaunchImage = ResolveSsmParameterAtLaunchImage.Builder.create("parameterName")
         .cachedInContext(false)
         .os(OperatingSystemType.LINUX)
         .parameterVersion("parameterVersion")
         .userData(userData)
         .build();
 

See Also:
  • Constructor Details

    • ResolveSsmParameterAtLaunchImage

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

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

      @Stability(Stable) public ResolveSsmParameterAtLaunchImage(@NotNull String parameterName, @Nullable SsmParameterImageOptions props)
      Parameters:
      parameterName - This parameter is required.
      props -
    • ResolveSsmParameterAtLaunchImage

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

    • getImage

      @Stability(Stable) @NotNull public MachineImageConfig getImage(@NotNull software.constructs.Construct __)
      Return the image to use in the given context.

      Specified by:
      getImage in interface IMachineImage
      Parameters:
      __ - This parameter is required.
      _ - This parameter is required.
    • getParameterName

      @Stability(Stable) @NotNull public String getParameterName()
      Name of the SSM parameter we're looking up.