AmazonManagedComponentOptions

class aws_cdk.aws_imagebuilder_alpha.AmazonManagedComponentOptions(*, platform, component_version=None)

Bases: object

(experimental) Options for selecting a predefined Amazon-managed image.

Parameters:
  • platform (Platform) – (experimental) The platform of the Amazon-managed component.

  • component_version (Optional[str]) – (experimental) The version of the Amazon-managed component. Default: - the latest version of the component, x.x.x

Stability:

experimental

ExampleMetadata:

infused

Example:

image_recipe = imagebuilder.ImageRecipe(self, "AmazonManagedImageRecipe",
    base_image=imagebuilder.BaseImage.from_ssm_parameter_name("/aws/service/ami-amazon-linux-latest/al2023-ami-minimal-kernel-default-x86_64"),
    components=[imagebuilder.ComponentConfiguration(
        component=imagebuilder.AmazonManagedComponent.update_os(self, "UpdateOS",
            platform=imagebuilder.Platform.LINUX
        )
    ), imagebuilder.ComponentConfiguration(
        component=imagebuilder.AmazonManagedComponent.aws_cli_v2(self, "AwsCli",
            platform=imagebuilder.Platform.LINUX
        )
    )
    ]
)

Attributes

component_version

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

Default:
  • the latest version of the component, x.x.x

Stability:

experimental

platform

(experimental) The platform of the Amazon-managed component.

Stability:

experimental