ComponentSchemaVersion
- class aws_cdk.aws_imagebuilder_alpha.ComponentSchemaVersion(*values)
Bases:
Enum(experimental) The schema version of the component.
- Stability:
experimental
- ExampleMetadata:
infused
Example:
custom_component = imagebuilder.Component(self, "MyComponent", platform=imagebuilder.Platform.LINUX, data=imagebuilder.ComponentData.from_json_object({ "schema_version": imagebuilder.ComponentSchemaVersion.V1_0, "phases": [{ "name": imagebuilder.ComponentPhaseName.BUILD, "steps": [{ "name": "install-app", "action": imagebuilder.ComponentAction.EXECUTE_BASH, "inputs": { "commands": ["yum install -y my-application"] } } ] } ] }) ) image_recipe = imagebuilder.ImageRecipe(self, "ComponentImageRecipe", 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=custom_component ) ] )
Attributes
- V1_0
(experimental) Schema version 1.0 for the component document.
- Stability:
experimental