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

The value of a constant in 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#L338)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as imagebuilder_alpha from '@aws-cdk/aws-imagebuilder-alpha';
const componentConstantValue = imagebuilder_alpha.ComponentConstantValue.fromString('value');
```

## Properties

- `type`: string — The data type of the constant.

- `value`: any — The value of the constant.

## Methods

- `fromString(value: string): ComponentConstantValue // chainable` (static) — Creates a string type constant in a component document.

  **Parameters**

  - `value` — The value of the constant.
