Class AmazonManagedImage
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.imagebuilder.alpha.AmazonManagedImage
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:49.985Z")
@Stability(Experimental)
public class AmazonManagedImage
extends software.amazon.jsii.JsiiObject
(experimental) Helper class for working with Amazon-managed images.
Example:
// Amazon Linux 2023 AMI for x86_64
IImage amazonLinux2023Ami = AmazonManagedImage.amazonLinux2023(this, "AmazonLinux2023", AmazonManagedImageOptions.builder()
.imageType(ImageType.AMI)
.imageArchitecture(ImageArchitecture.X86_64)
.build());
// Ubuntu 22.04 AMI for ARM64
IImage ubuntu2204Ami = AmazonManagedImage.ubuntuServer2204(this, "Ubuntu2204", AmazonManagedImageOptions.builder()
.imageType(ImageType.AMI)
.imageArchitecture(ImageArchitecture.ARM64)
.build());
// Windows Server 2022 Full AMI
IImage windows2022Ami = AmazonManagedImage.windowsServer2022Full(this, "Windows2022", AmazonManagedImageOptions.builder()
.imageType(ImageType.AMI)
.imageArchitecture(ImageArchitecture.X86_64)
.build());
// Use as base image in recipe
ImageRecipe managedImageRecipe = ImageRecipe.Builder.create(this, "ManagedImageRecipe")
.baseImage(amazonLinux2023Ami.toBaseImage())
.build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAmazonManagedImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedAmazonManagedImage(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic IImageamazonLinux2(software.constructs.Construct scope, String id, AmazonManagedImageOptions opts) (experimental) Imports the Amazon Linux 2 Amazon-managed image.static IImageamazonLinux2023(software.constructs.Construct scope, String id, AmazonManagedImageOptions opts) (experimental) Imports the Amazon Linux 2023 Amazon-managed image.static IImagefromAmazonManagedImageAttributes(software.constructs.Construct scope, String id, AmazonManagedImageAttributes attrs) (experimental) Imports an Amazon-managed image from its attributes.static IImagefromAmazonManagedImageName(software.constructs.Construct scope, String id, String amazonManagedImageName) (experimental) Imports an Amazon-managed image from its name.static IImagemacOS14(software.constructs.Construct scope, String id, AmazonManagedImageOptions opts) (experimental) Imports the macOS 14 Amazon-managed image.static IImagemacOS15(software.constructs.Construct scope, String id, AmazonManagedImageOptions opts) (experimental) Imports the macOS 15 Amazon-managed image.static IImageredHatEnterpriseLinux10(software.constructs.Construct scope, String id, AmazonManagedImageOptions opts) (experimental) Imports the Red Hat Enterprise Linux 10 Amazon-managed image.static IImagesuseLinuxEnterpriseServer15(software.constructs.Construct scope, String id, AmazonManagedImageOptions opts) (experimental) Imports the SUSE Linux Enterprise Server 15 Amazon-managed image.static IImageubuntuServer2204(software.constructs.Construct scope, String id, AmazonManagedImageOptions opts) (experimental) Imports the Ubuntu 22.04 Amazon-managed image.static IImageubuntuServer2404(software.constructs.Construct scope, String id, AmazonManagedImageOptions opts) (experimental) Imports the Ubuntu 24.04 Amazon-managed image.static IImagewindowsServer2016Core(software.constructs.Construct scope, String id, AmazonManagedImageOptions opts) (experimental) Imports the Windows Server 2016 Core Amazon-managed image.static IImagewindowsServer2016Full(software.constructs.Construct scope, String id, AmazonManagedImageOptions opts) (experimental) Imports the Windows Server 2016 Full Amazon-managed image.static IImagewindowsServer2019Core(software.constructs.Construct scope, String id, AmazonManagedImageOptions opts) (experimental) Imports the Windows Server 2019 Core Amazon-managed image.static IImagewindowsServer2019Full(software.constructs.Construct scope, String id, AmazonManagedImageOptions opts) (experimental) Imports the Windows Server 2019 Full Amazon-managed image.static IImagewindowsServer2022Core(software.constructs.Construct scope, String id, AmazonManagedImageOptions opts) (experimental) Imports the Windows Server 2022 Core Amazon-managed image.static IImagewindowsServer2022Full(software.constructs.Construct scope, String id, AmazonManagedImageOptions opts) (experimental) Imports the Windows Server 2022 Full Amazon-managed image.static IImagewindowsServer2025Core(software.constructs.Construct scope, String id, AmazonManagedImageOptions opts) (experimental) Imports the Windows Server 2025 Core Amazon-managed image.static IImagewindowsServer2025Full(software.constructs.Construct scope, String id, AmazonManagedImageOptions opts) (experimental) Imports the Windows Server 2025 Full Amazon-managed image.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
AmazonManagedImage
protected AmazonManagedImage(software.amazon.jsii.JsiiObjectRef objRef) -
AmazonManagedImage
protected AmazonManagedImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
AmazonManagedImage
@Stability(Experimental) public AmazonManagedImage()
-
-
Method Details
-
amazonLinux2
@Stability(Experimental) @NotNull public static IImage amazonLinux2(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AmazonManagedImageOptions opts) (experimental) Imports the Amazon Linux 2 Amazon-managed image.- Parameters:
scope- The construct scope. This parameter is required.id- Identifier of the construct. This parameter is required.opts- The Amazon-managed image attributes. This parameter is required.- See Also:
-
amazonLinux2023
@Stability(Experimental) @NotNull public static IImage amazonLinux2023(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AmazonManagedImageOptions opts) (experimental) Imports the Amazon Linux 2023 Amazon-managed image.- Parameters:
scope- The construct scope. This parameter is required.id- Identifier of the construct. This parameter is required.opts- The Amazon-managed image attributes. This parameter is required.- See Also:
-
fromAmazonManagedImageAttributes
@Stability(Experimental) @NotNull public static IImage fromAmazonManagedImageAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AmazonManagedImageAttributes attrs) (experimental) Imports an Amazon-managed image from its attributes.- Parameters:
scope- The construct scope. This parameter is required.id- Identifier of the construct. This parameter is required.attrs-- The Amazon-managed image attributes.
-
fromAmazonManagedImageName
@Stability(Experimental) @NotNull public static IImage fromAmazonManagedImageName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String amazonManagedImageName) (experimental) Imports an Amazon-managed image from its name.- Parameters:
scope- The construct scope. This parameter is required.id- Identifier of the construct. This parameter is required.amazonManagedImageName-- The name of the Amazon-managed image.
-
macOS14
@Stability(Experimental) @NotNull public static IImage macOS14(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AmazonManagedImageOptions opts) (experimental) Imports the macOS 14 Amazon-managed image.- Parameters:
scope- The construct scope. This parameter is required.id- Identifier of the construct. This parameter is required.opts- The Amazon-managed image attributes. This parameter is required.- See Also:
-
macOS15
@Stability(Experimental) @NotNull public static IImage macOS15(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AmazonManagedImageOptions opts) (experimental) Imports the macOS 15 Amazon-managed image.- Parameters:
scope- The construct scope. This parameter is required.id- Identifier of the construct. This parameter is required.opts- The Amazon-managed image attributes. This parameter is required.- See Also:
-
redHatEnterpriseLinux10
@Stability(Experimental) @NotNull public static IImage redHatEnterpriseLinux10(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AmazonManagedImageOptions opts) (experimental) Imports the Red Hat Enterprise Linux 10 Amazon-managed image.- Parameters:
scope- The construct scope. This parameter is required.id- Identifier of the construct. This parameter is required.opts- The Amazon-managed image attributes. This parameter is required.- See Also:
-
suseLinuxEnterpriseServer15
@Stability(Experimental) @NotNull public static IImage suseLinuxEnterpriseServer15(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AmazonManagedImageOptions opts) (experimental) Imports the SUSE Linux Enterprise Server 15 Amazon-managed image.- Parameters:
scope- The construct scope. This parameter is required.id- Identifier of the construct. This parameter is required.opts- The Amazon-managed image attributes. This parameter is required.- See Also:
-
ubuntuServer2204
@Stability(Experimental) @NotNull public static IImage ubuntuServer2204(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AmazonManagedImageOptions opts) (experimental) Imports the Ubuntu 22.04 Amazon-managed image.- Parameters:
scope- The construct scope. This parameter is required.id- Identifier of the construct. This parameter is required.opts- The Amazon-managed image attributes. This parameter is required.- See Also:
-
ubuntuServer2404
@Stability(Experimental) @NotNull public static IImage ubuntuServer2404(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AmazonManagedImageOptions opts) (experimental) Imports the Ubuntu 24.04 Amazon-managed image.- Parameters:
scope- The construct scope. This parameter is required.id- Identifier of the construct. This parameter is required.opts- The Amazon-managed image attributes. This parameter is required.- See Also:
-
windowsServer2016Core
@Stability(Experimental) @NotNull public static IImage windowsServer2016Core(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AmazonManagedImageOptions opts) (experimental) Imports the Windows Server 2016 Core Amazon-managed image.- Parameters:
scope- The construct scope. This parameter is required.id- Identifier of the construct. This parameter is required.opts- The Amazon-managed image attributes. This parameter is required.- See Also:
-
windowsServer2016Full
@Stability(Experimental) @NotNull public static IImage windowsServer2016Full(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AmazonManagedImageOptions opts) (experimental) Imports the Windows Server 2016 Full Amazon-managed image.- Parameters:
scope- The construct scope. This parameter is required.id- Identifier of the construct. This parameter is required.opts- The Amazon-managed image attributes. This parameter is required.- See Also:
-
windowsServer2019Core
@Stability(Experimental) @NotNull public static IImage windowsServer2019Core(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AmazonManagedImageOptions opts) (experimental) Imports the Windows Server 2019 Core Amazon-managed image.- Parameters:
scope- The construct scope. This parameter is required.id- Identifier of the construct. This parameter is required.opts- The Amazon-managed image attributes. This parameter is required.- See Also:
-
windowsServer2019Full
@Stability(Experimental) @NotNull public static IImage windowsServer2019Full(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AmazonManagedImageOptions opts) (experimental) Imports the Windows Server 2019 Full Amazon-managed image.- Parameters:
scope- The construct scope. This parameter is required.id- Identifier of the construct. This parameter is required.opts- The Amazon-managed image attributes. This parameter is required.- See Also:
-
windowsServer2022Core
@Stability(Experimental) @NotNull public static IImage windowsServer2022Core(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AmazonManagedImageOptions opts) (experimental) Imports the Windows Server 2022 Core Amazon-managed image.- Parameters:
scope- The construct scope. This parameter is required.id- Identifier of the construct. This parameter is required.opts- The Amazon-managed image attributes. This parameter is required.- See Also:
-
windowsServer2022Full
@Stability(Experimental) @NotNull public static IImage windowsServer2022Full(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AmazonManagedImageOptions opts) (experimental) Imports the Windows Server 2022 Full Amazon-managed image.- Parameters:
scope- The construct scope. This parameter is required.id- Identifier of the construct. This parameter is required.opts- The Amazon-managed image attributes. This parameter is required.- See Also:
-
windowsServer2025Core
@Stability(Experimental) @NotNull public static IImage windowsServer2025Core(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AmazonManagedImageOptions opts) (experimental) Imports the Windows Server 2025 Core Amazon-managed image.- Parameters:
scope- The construct scope. This parameter is required.id- Identifier of the construct. This parameter is required.opts- The Amazon-managed image attributes. This parameter is required.- See Also:
-
windowsServer2025Full
@Stability(Experimental) @NotNull public static IImage windowsServer2025Full(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AmazonManagedImageOptions opts) (experimental) Imports the Windows Server 2025 Full Amazon-managed image.- Parameters:
scope- The construct scope. This parameter is required.id- Identifier of the construct. This parameter is required.opts- The Amazon-managed image attributes. This parameter is required.- See Also:
-