> **Experimental**
>
> `@aws-cdk/aws-imagebuilder-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# AmazonManagedImage

Helper class for working with Amazon-managed images.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/amazon-managed-image.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-imagebuilder-alpha/lib/amazon-managed-image.ts#L56)

## Example

```ts
// 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

```ts
new AmazonManagedImage()
```

## Methods

- `amazonLinux2(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage` (static) — Imports the Amazon Linux 2 Amazon-managed image.

  **Parameters**

  - `scope` — The construct scope.
  - `id` — Identifier of the construct.
  - `opts` — The Amazon-managed image attributes.

- `amazonLinux2023(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage` (static) — Imports the Amazon Linux 2023 Amazon-managed image.

  **Parameters**

  - `scope` — The construct scope.
  - `id` — Identifier of the construct.
  - `opts` — The Amazon-managed image attributes.

- `fromAmazonManagedImageAttributes(scope: Construct, id: string, attrs: AmazonManagedImageAttributes): IImage` (static) — Imports an Amazon-managed image from its attributes.

  **Parameters**

  - `scope` — The construct scope.
  - `id` — Identifier of the construct.
  - `attrs` — - The Amazon-managed image attributes.

- `fromAmazonManagedImageName(scope: Construct, id: string, amazonManagedImageName: string): IImage` (static) — Imports an Amazon-managed image from its name.

  **Parameters**

  - `scope` — The construct scope.
  - `id` — Identifier of the construct.
  - `amazonManagedImageName` — - The name of the Amazon-managed image.

- `macOS14(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage` (static) — Imports the macOS 14 Amazon-managed image.

  **Parameters**

  - `scope` — The construct scope.
  - `id` — Identifier of the construct.
  - `opts` — The Amazon-managed image attributes.

- `macOS15(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage` (static) — Imports the macOS 15 Amazon-managed image.

  **Parameters**

  - `scope` — The construct scope.
  - `id` — Identifier of the construct.
  - `opts` — The Amazon-managed image attributes.

- `redHatEnterpriseLinux10(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage` (static) — Imports the Red Hat Enterprise Linux 10 Amazon-managed image.

  **Parameters**

  - `scope` — The construct scope.
  - `id` — Identifier of the construct.
  - `opts` — The Amazon-managed image attributes.

- `suseLinuxEnterpriseServer15(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage` (static) — Imports the SUSE Linux Enterprise Server 15 Amazon-managed image.

  **Parameters**

  - `scope` — The construct scope.
  - `id` — Identifier of the construct.
  - `opts` — The Amazon-managed image attributes.

- `ubuntuServer2204(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage` (static) — Imports the Ubuntu 22.04 Amazon-managed image.

  **Parameters**

  - `scope` — The construct scope.
  - `id` — Identifier of the construct.
  - `opts` — The Amazon-managed image attributes.

- `ubuntuServer2404(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage` (static) — Imports the Ubuntu 24.04 Amazon-managed image.

  **Parameters**

  - `scope` — The construct scope.
  - `id` — Identifier of the construct.
  - `opts` — The Amazon-managed image attributes.

- `windowsServer2016Core(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage` (static) — Imports the Windows Server 2016 Core Amazon-managed image.

  **Parameters**

  - `scope` — The construct scope.
  - `id` — Identifier of the construct.
  - `opts` — The Amazon-managed image attributes.

- `windowsServer2016Full(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage` (static) — Imports the Windows Server 2016 Full Amazon-managed image.

  **Parameters**

  - `scope` — The construct scope.
  - `id` — Identifier of the construct.
  - `opts` — The Amazon-managed image attributes.

- `windowsServer2019Core(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage` (static) — Imports the Windows Server 2019 Core Amazon-managed image.

  **Parameters**

  - `scope` — The construct scope.
  - `id` — Identifier of the construct.
  - `opts` — The Amazon-managed image attributes.

- `windowsServer2019Full(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage` (static) — Imports the Windows Server 2019 Full Amazon-managed image.

  **Parameters**

  - `scope` — The construct scope.
  - `id` — Identifier of the construct.
  - `opts` — The Amazon-managed image attributes.

- `windowsServer2022Core(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage` (static) — Imports the Windows Server 2022 Core Amazon-managed image.

  **Parameters**

  - `scope` — The construct scope.
  - `id` — Identifier of the construct.
  - `opts` — The Amazon-managed image attributes.

- `windowsServer2022Full(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage` (static) — Imports the Windows Server 2022 Full Amazon-managed image.

  **Parameters**

  - `scope` — The construct scope.
  - `id` — Identifier of the construct.
  - `opts` — The Amazon-managed image attributes.

- `windowsServer2025Core(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage` (static) — Imports the Windows Server 2025 Core Amazon-managed image.

  **Parameters**

  - `scope` — The construct scope.
  - `id` — Identifier of the construct.
  - `opts` — The Amazon-managed image attributes.

- `windowsServer2025Full(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage` (static) — Imports the Windows Server 2025 Full Amazon-managed image.

  **Parameters**

  - `scope` — The construct scope.
  - `id` — Identifier of the construct.
  - `opts` — The Amazon-managed image attributes.
