AmazonManagedImageAttributes

class aws_cdk.aws_imagebuilder_alpha.AmazonManagedImageAttributes(*, image_name, image_version=None)

Bases: object

(experimental) Attributes for importing an Amazon-managed image by name (and optionally a version).

Parameters:
  • image_name (str) – (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.

  • image_version (Optional[str]) – (experimental) The version of the Amazon-managed image. Default: x.x.x

Stability:

experimental

ExampleMetadata:

infused

Example:

# Import by name
managed_image_by_name = imagebuilder.AmazonManagedImage.from_amazon_managed_image_name(self, "ManagedImageByName", "amazon-linux-2023-x86")

# Import by attributes with specific version
managed_image_by_attributes = imagebuilder.AmazonManagedImage.from_amazon_managed_image_attributes(self, "ManagedImageByAttributes",
    image_name="ubuntu-server-22-lts-x86",
    image_version="2024.11.25"
)

Attributes

image_name

(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.

Stability:

experimental

image_version

(experimental) The version of the Amazon-managed image.

Default:

x.x.x

Stability:

experimental