enum ComponentPhaseName
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ImageBuilder.Alpha.ComponentPhaseName |
Go | github.com/aws/aws-cdk-go/awsimagebuilderalpha/v2#ComponentPhaseName |
Java | software.amazon.awscdk.services.imagebuilder.alpha.ComponentPhaseName |
Python | aws_cdk.aws_imagebuilder_alpha.ComponentPhaseName |
TypeScript (source) | @aws-cdk/aws-imagebuilder-alpha ยป ComponentPhaseName |
The phases of a component document.
Example
const component = new imagebuilder.Component(this, 'JsonComponent', {
platform: imagebuilder.Platform.LINUX,
data: imagebuilder.ComponentData.fromJsonObject({
schemaVersion: imagebuilder.ComponentSchemaVersion.V1_0,
phases: [
{
name: imagebuilder.ComponentPhaseName.BUILD,
steps: [
{
name: 'configure-app',
action: imagebuilder.ComponentAction.CREATE_FILE,
inputs: {
path: '/etc/myapp/config.json',
content: '{"env": "production"}'
}
}
]
}
]
})
});
Members
| Name | Description |
|---|---|
| BUILD | Build phase of the component. |
| CONTAINER_HOST_TEST | Test phase of the component, executed directly on the instance which is used to build the container image. |
| TEST | Test phase of the component. |
| VALIDATE | Validate phase of the component. |
BUILD
Build phase of the component.
This phase is run during the BUILDING phase of the image build.
CONTAINER_HOST_TEST
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.
TEST
Test phase of the component.
This phase is run during the TESTING phase of the image build.
VALIDATE
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.

.NET
Go
Java
Python
TypeScript (