AmazonManagedComponent
- class aws_cdk.aws_imagebuilder_alpha.AmazonManagedComponent
Bases:
object(experimental) Helper class for working with Amazon-managed components.
- 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 ) ) ] )
- Stability:
experimental
Static Methods
- classmethod aws_cli_v2(scope, id, *, platform, component_version=None)
(experimental) Imports the AWS CLI v2 Amazon-managed component.
- Parameters:
scope (
Construct) – The construct scope.id (
str) – Identifier of the construct.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
- Return type:
- classmethod from_amazon_managed_component_attributes(scope, id, *, component_name, component_version=None)
(experimental) Imports an Amazon-managed component from its attributes.
- Parameters:
scope (
Construct) – The construct scope.id (
str) – Identifier of the construct.component_name (
str) – (experimental) The name 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
- Return type:
- classmethod from_amazon_managed_component_name(scope, id, amazon_managed_component_name)
(experimental) Imports an Amazon-managed component from its name.
- Parameters:
scope (
Construct) – The construct scope.id (
str) – Identifier of the construct.amazon_managed_component_name (
str) –The name of the Amazon-managed component.
- Stability:
experimental
- Return type:
- classmethod hello_world(scope, id, *, platform, component_version=None)
(experimental) Imports the hello world Amazon-managed component.
- Parameters:
scope (
Construct) – The construct scope.id (
str) – Identifier of the construct.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
- Return type:
- classmethod python3(scope, id, *, platform, component_version=None)
(experimental) Imports the Python 3 Amazon-managed component.
- Parameters:
scope (
Construct) – The construct scope.id (
str) – Identifier of the construct.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
- Return type:
- classmethod reboot(scope, id, *, platform, component_version=None)
(experimental) Imports the reboot Amazon-managed component.
- Parameters:
scope (
Construct) – The construct scope.id (
str) – Identifier of the construct.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
- Return type:
- classmethod stig_build(scope, id, *, platform, component_version=None)
(experimental) Imports the STIG hardening Amazon-managed component.
- Parameters:
scope (
Construct) – The construct scope.id (
str) – Identifier of the construct.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
- See:
https://docs.aws.amazon.com/imagebuilder/latest/userguide/ib-stig.html
- Stability:
experimental
- Return type:
- classmethod update_os(scope, id, *, platform, component_version=None)
(experimental) Imports the OS update Amazon-managed component.
- Parameters:
scope (
Construct) – The construct scope.id (
str) – Identifier of the construct.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
- Return type: