interface ComponentDocumentPhase
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ImageBuilder.Alpha.ComponentDocumentPhase |
Go | github.com/aws/aws-cdk-go/awsimagebuilderalpha/v2#ComponentDocumentPhase |
Java | software.amazon.awscdk.services.imagebuilder.alpha.ComponentDocumentPhase |
Python | aws_cdk.aws_imagebuilder_alpha.ComponentDocumentPhase |
TypeScript (source) | @aws-cdk/aws-imagebuilder-alpha » ComponentDocumentPhase |
The phase to run in a specific workflow in an image build, which define the steps to execute to customize or test the instance.
Example
const phase: imagebuilder.ComponentDocumentPhase = {
name: imagebuilder.ComponentPhaseName.BUILD,
steps: [
{
name: 'configure-app',
action: imagebuilder.ComponentAction.CREATE_FILE,
inputs: imagebuilder.ComponentStepInputs.fromObject({
path: '/etc/myapp/config.json',
content: '{"env": "production"}'
})
}
]
};
Properties
| Name | Type | Description |
|---|---|---|
| name | Component | The name of the phase. |
| steps | Component[] | The list of steps to execute to modify or test the build/test instance. |
name
Type:
Component
The name of the phase.
steps
Type:
Component[]
The list of steps to execute to modify or test the build/test instance.

.NET
Go
Java
Python
TypeScript (