class AmazonManagedImage
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ImageBuilder.Alpha.AmazonManagedImage |
Go | github.com/aws/aws-cdk-go/awsimagebuilderalpha/v2#AmazonManagedImage |
Java | software.amazon.awscdk.services.imagebuilder.alpha.AmazonManagedImage |
Python | aws_cdk.aws_imagebuilder_alpha.AmazonManagedImage |
TypeScript (source) | @aws-cdk/aws-imagebuilder-alpha ยป AmazonManagedImage |
Helper class for working with Amazon-managed images.
Example
// Amazon Linux 2023 AMI for x86_64
const amazonLinux2023Ami = imagebuilder.AmazonManagedImage.amazonLinux2023(this, 'AmazonLinux2023', {
imageType: imagebuilder.ImageType.AMI,
imageArchitecture: imagebuilder.ImageArchitecture.X86_64
});
// Ubuntu 22.04 AMI for ARM64
const ubuntu2204Ami = imagebuilder.AmazonManagedImage.ubuntuServer2204(this, 'Ubuntu2204', {
imageType: imagebuilder.ImageType.AMI,
imageArchitecture: imagebuilder.ImageArchitecture.ARM64
});
// Windows Server 2022 Full AMI
const windows2022Ami = imagebuilder.AmazonManagedImage.windowsServer2022Full(this, 'Windows2022', {
imageType: imagebuilder.ImageType.AMI,
imageArchitecture: imagebuilder.ImageArchitecture.X86_64
});
// Use as base image in recipe
const managedImageRecipe = new imagebuilder.ImageRecipe(this, 'ManagedImageRecipe', {
baseImage: amazonLinux2023Ami.toBaseImage()
});
Initializer
new AmazonManagedImage()
Methods
| Name | Description |
|---|---|
| static amazon | Imports the Amazon Linux 2 Amazon-managed image. |
| static amazon | Imports the Amazon Linux 2023 Amazon-managed image. |
| static from | Imports an Amazon-managed image from its attributes. |
| static from | Imports an Amazon-managed image from its name. |
| static mac | Imports the macOS 14 Amazon-managed image. |
| static mac | Imports the macOS 15 Amazon-managed image. |
| static red | Imports the Red Hat Enterprise Linux 10 Amazon-managed image. |
| static suse | Imports the SUSE Linux Enterprise Server 15 Amazon-managed image. |
| static ubuntu | Imports the Ubuntu 22.04 Amazon-managed image. |
| static ubuntu | Imports the Ubuntu 24.04 Amazon-managed image. |
| static windows | Imports the Windows Server 2016 Core Amazon-managed image. |
| static windows | Imports the Windows Server 2016 Full Amazon-managed image. |
| static windows | Imports the Windows Server 2019 Core Amazon-managed image. |
| static windows | Imports the Windows Server 2019 Full Amazon-managed image. |
| static windows | Imports the Windows Server 2022 Core Amazon-managed image. |
| static windows | Imports the Windows Server 2022 Full Amazon-managed image. |
| static windows | Imports the Windows Server 2025 Core Amazon-managed image. |
| static windows | Imports the Windows Server 2025 Full Amazon-managed image. |
static amazonLinux2(scope, id, opts)
public static amazonLinux2(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - opts
Amazonโ The Amazon-managed image attributes.Managed Image Options
Returns
Imports the Amazon Linux 2 Amazon-managed image.
See also: https://gallery.ecr.aws/amazonlinux/amazonlinux
static amazonLinux2023(scope, id, opts)
public static amazonLinux2023(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - opts
Amazonโ The Amazon-managed image attributes.Managed Image Options
Returns
Imports the Amazon Linux 2023 Amazon-managed image.
See also: https://gallery.ecr.aws/amazonlinux/amazonlinux
static fromAmazonManagedImageAttributes(scope, id, attrs)
public static fromAmazonManagedImageAttributes(scope: Construct, id: string, attrs: AmazonManagedImageAttributes): IImage
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - attrs
Amazonโ - The Amazon-managed image attributes.Managed Image Attributes
Returns
Imports an Amazon-managed image from its attributes.
static fromAmazonManagedImageName(scope, id, amazonManagedImageName)
public static fromAmazonManagedImageName(scope: Construct, id: string, amazonManagedImageName: string): IImage
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - amazonManagedImageName
stringโ - The name of the Amazon-managed image.
Returns
Imports an Amazon-managed image from its name.
static macOS14(scope, id, opts)
public static macOS14(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - opts
Amazonโ The Amazon-managed image attributes.Managed Image Options
Returns
Imports the macOS 14 Amazon-managed image.
See also: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-mac-instances.html
static macOS15(scope, id, opts)
public static macOS15(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - opts
Amazonโ The Amazon-managed image attributes.Managed Image Options
Returns
Imports the macOS 15 Amazon-managed image.
See also: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-mac-instances.html
static redHatEnterpriseLinux10(scope, id, opts)
public static redHatEnterpriseLinux10(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - opts
Amazonโ The Amazon-managed image attributes.Managed Image Options
Returns
Imports the Red Hat Enterprise Linux 10 Amazon-managed image.
See also: https://aws.amazon.com/partners/redhat/faqs
static suseLinuxEnterpriseServer15(scope, id, opts)
public static suseLinuxEnterpriseServer15(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - opts
Amazonโ The Amazon-managed image attributes.Managed Image Options
Returns
Imports the SUSE Linux Enterprise Server 15 Amazon-managed image.
See also: https://aws.amazon.com/linux/commercial-linux/faqs/
static ubuntuServer2204(scope, id, opts)
public static ubuntuServer2204(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - opts
Amazonโ The Amazon-managed image attributes.Managed Image Options
Returns
Imports the Ubuntu 22.04 Amazon-managed image.
See also: https://hub.docker.com/_/ubuntu
static ubuntuServer2404(scope, id, opts)
public static ubuntuServer2404(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - opts
Amazonโ The Amazon-managed image attributes.Managed Image Options
Returns
Imports the Ubuntu 24.04 Amazon-managed image.
See also: https://hub.docker.com/_/ubuntu
static windowsServer2016Core(scope, id, opts)
public static windowsServer2016Core(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - opts
Amazonโ The Amazon-managed image attributes.Managed Image Options
Returns
Imports the Windows Server 2016 Core Amazon-managed image.
See also: https://hub.docker.com/r/microsoft/windows-servercore
static windowsServer2016Full(scope, id, opts)
public static windowsServer2016Full(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - opts
Amazonโ The Amazon-managed image attributes.Managed Image Options
Returns
Imports the Windows Server 2016 Full Amazon-managed image.
See also: https://docs.aws.amazon.com/ec2/latest/windows-ami-reference/index.html
static windowsServer2019Core(scope, id, opts)
public static windowsServer2019Core(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - opts
Amazonโ The Amazon-managed image attributes.Managed Image Options
Returns
Imports the Windows Server 2019 Core Amazon-managed image.
See also: https://hub.docker.com/r/microsoft/windows-servercore
static windowsServer2019Full(scope, id, opts)
public static windowsServer2019Full(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - opts
Amazonโ The Amazon-managed image attributes.Managed Image Options
Returns
Imports the Windows Server 2019 Full Amazon-managed image.
See also: https://docs.aws.amazon.com/ec2/latest/windows-ami-reference/index.html
static windowsServer2022Core(scope, id, opts)
public static windowsServer2022Core(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - opts
Amazonโ The Amazon-managed image attributes.Managed Image Options
Returns
Imports the Windows Server 2022 Core Amazon-managed image.
See also: https://docs.aws.amazon.com/ec2/latest/windows-ami-reference/index.html
static windowsServer2022Full(scope, id, opts)
public static windowsServer2022Full(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - opts
Amazonโ The Amazon-managed image attributes.Managed Image Options
Returns
Imports the Windows Server 2022 Full Amazon-managed image.
See also: https://docs.aws.amazon.com/ec2/latest/windows-ami-reference/index.html
static windowsServer2025Core(scope, id, opts)
public static windowsServer2025Core(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - opts
Amazonโ The Amazon-managed image attributes.Managed Image Options
Returns
Imports the Windows Server 2025 Core Amazon-managed image.
See also: https://docs.aws.amazon.com/ec2/latest/windows-ami-reference/index.html
static windowsServer2025Full(scope, id, opts)
public static windowsServer2025Full(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage
Parameters
- scope
Constructโ The construct scope. - id
stringโ Identifier of the construct. - opts
Amazonโ The Amazon-managed image attributes.Managed Image Options
Returns
Imports the Windows Server 2025 Full Amazon-managed image.
See also: https://docs.aws.amazon.com/ec2/latest/windows-ami-reference/index.html

.NET
Go
Java
Python
TypeScript (