ComponentPhaseName
- class aws_cdk.aws_imagebuilder_alpha.ComponentPhaseName(*values)
Bases:
Enum(experimental) The phases of a component document.
- Stability:
experimental
- ExampleMetadata:
infused
Example:
component = imagebuilder.Component(self, "EncryptedComponent", platform=imagebuilder.Platform.LINUX, kms_key=kms.Key(self, "ComponentKey"), data=imagebuilder.ComponentData.from_json_object({ "schema_version": imagebuilder.ComponentSchemaVersion.V1_0, "phases": [{ "name": imagebuilder.ComponentPhaseName.BUILD, "steps": [{ "name": "secure-setup", "action": imagebuilder.ComponentAction.EXECUTE_BASH, "inputs": { "commands": ["echo "This component data is encrypted with KMS""] } } ] } ] }) )
Attributes
- BUILD
(experimental) Build phase of the component.
This phase is run during the BUILDING phase of the image build.
- Stability:
experimental
- CONTAINER_HOST_TEST
(experimental) Test phase of the component, executed directly on the instance which is used to build the container image.
This phase is run during the TESTING phase of the image build.
- Stability:
experimental
- TEST
(experimental) Test phase of the component.
This phase is run during the TESTING phase of the image build.
- Stability:
experimental
- VALIDATE
(experimental) Validate phase of the component.
This phase is run during the BUILDING phase of the image build, after the build step of the component is executed.
- Stability:
experimental