ComponentDocumentPhase
- class aws_cdk.aws_imagebuilder_alpha.ComponentDocumentPhase(*, name, steps)
Bases:
object(experimental) The phase to run in a specific workflow in an image build, which define the steps to execute to customize or test the instance.
- Parameters:
name (
ComponentPhaseName) – (experimental) The name of the phase.steps (
Sequence[Union[ComponentDocumentStep,Dict[str,Any]]]) – (experimental) The list of steps to execute to modify or test the build/test instance.
- Stability:
experimental
- ExampleMetadata:
infused
Example:
phase = imagebuilder.ComponentDocumentPhase( name=imagebuilder.ComponentPhaseName.BUILD, steps=[imagebuilder.ComponentDocumentStep( name="configure-app", action=imagebuilder.ComponentAction.CREATE_FILE, inputs=imagebuilder.ComponentStepInputs.from_object({ "path": "/etc/myapp/config.json", "content": "{"env": "production"}" }) ) ] )
Attributes
- name
(experimental) The name of the phase.
- Stability:
experimental
- steps
(experimental) The list of steps to execute to modify or test the build/test instance.
- Stability:
experimental