> **Experimental**
>
> `@aws-cdk/aws-imagebuilder-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# ComponentPhaseName

The phases of a component document.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/component.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-imagebuilder-alpha/lib/component.ts#L578)

## Example

```ts
const component = new imagebuilder.Component(this, 'EncryptedComponent', {
  platform: imagebuilder.Platform.LINUX,
  kmsKey: new kms.Key(this, 'ComponentKey'),
  data: imagebuilder.ComponentData.fromJsonObject({
    schemaVersion: 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"']
            }
          }
        ]
      }
    ]
  })
});
```

## Members

| Member | 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. |

## Referenced by

- [`ComponentDocumentPhase`](/v2/docs/@aws-cdk_aws-imagebuilder-alpha.ComponentDocumentPhase).name
