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

# Python: TerraformVariableValidationConfig

> CDKTN Core API Reference for TerraformVariableValidationConfig in Python.

Add one or more validation blocks within the variable block to specify custom conditions.

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

```python theme={null}
import cdktn

cdktn.TerraformVariableValidationConfig(
  condition: typing.Any,
  error_message: str
)
```

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

| **Name**                                                                                                 | **Type**                | **Description**                                                                                                                    |
| -------------------------------------------------------------------------------------------------------- | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| <code><a href="#cdktn.TerraformVariableValidationConfig.property.condition">condition</a></code>         | <code>typing.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.TerraformVariableValidationConfig.property.errorMessage">error\_message</a></code> | <code>str</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.TerraformVariableValidationConfig.property.condition" />

```python theme={null}
condition: typing.Any
```

* *Type:* typing.Any

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

***

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

```python theme={null}
error_message: str
```

* *Type:* str

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

***
