> ## Documentation Index
> Fetch the complete documentation index at: https://cdktn.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Typescript: TerraformCondition

> CDKTN Core API Reference for TerraformCondition in Typescript.

## Initializer <a name="Initializer" id="cdktn.TerraformCondition.Initializer" />

```typescript theme={null}
import { TerraformCondition } from 'cdktn'

const terraformCondition: TerraformCondition = { ... }
```

## Properties <a name="Properties" id="Properties" />

| **Name**                                                                                | **Type**            | **Description**                                                                                                                    |
| --------------------------------------------------------------------------------------- | ------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| <code><a href="#cdktn.TerraformCondition.property.condition">condition</a></code>       | <code>any</code>    | This is a boolean expression that should return true if the intended assumption or guarantee is fulfilled or false if it does not. |
| <code><a href="#cdktn.TerraformCondition.property.errorMessage">errorMessage</a></code> | <code>string</code> | This contains the text that Terraform will include as part of error messages when it detects an unmet condition.                   |

***

### `condition`<sup>Required</sup> <a name="condition" id="cdktn.TerraformCondition.property.condition" />

```typescript theme={null}
public readonly condition: any;
```

* *Type:* any

This is a boolean expression that should return true if the intended assumption or guarantee is fulfilled or false if it does not.

***

### `errorMessage`<sup>Required</sup> <a name="errorMessage" id="cdktn.TerraformCondition.property.errorMessage" />

```typescript theme={null}
public readonly errorMessage: string;
```

* *Type:* string

This contains the text that Terraform will include as part of error messages when it detects an unmet condition.

***
