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

Represents an `if` condition in the 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#L647)

## 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';

declare const ifObject: any;
const componentStepIfCondition = imagebuilder_alpha.ComponentStepIfCondition.fromObject({
  ifObjectKey: ifObject,
});
```

## Properties

- `ifCondition`: any — The rendered input value.

## Methods

- `fromObject(ifObject: { [key: string]: any }): ComponentStepIfCondition // chainable` (static) — Creates the `if` value from an object, for the component step.

  **Parameters**

  - `ifObject` — The object containing the `if` condition.
