Interface AmazonManagedImageAttributes

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
AmazonManagedImageAttributes.Jsii$Proxy

@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)", date="2025-12-05T22:26:50.003Z") @Stability(Experimental) public interface AmazonManagedImageAttributes extends software.amazon.jsii.JsiiSerializable
(experimental) Attributes for importing an Amazon-managed image by name (and optionally a version).

Example:

 // Import by name
 IImage managedImageByName = AmazonManagedImage.fromAmazonManagedImageName(this, "ManagedImageByName", "amazon-linux-2023-x86");
 // Import by attributes with specific version
 IImage managedImageByAttributes = AmazonManagedImage.fromAmazonManagedImageAttributes(this, "ManagedImageByAttributes", AmazonManagedImageAttributes.builder()
         .imageName("ubuntu-server-22-lts-x86")
         .imageVersion("2024.11.25")
         .build());
 
  • Method Details

    • getImageName

      @Stability(Experimental) @NotNull String getImageName()
      (experimental) The name of the Amazon-managed image.

      The provided name must be normalized by converting all alphabetical characters to lowercase, and replacing all spaces and underscores with hyphens.

    • getImageVersion

      @Stability(Experimental) @Nullable default String getImageVersion()
      (experimental) The version of the Amazon-managed image.

      Default: x.x.x

    • builder

      @Stability(Experimental) static AmazonManagedImageAttributes.Builder builder()
      Returns:
      a AmazonManagedImageAttributes.Builder of AmazonManagedImageAttributes