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

# Java: TerraformVariableValidationConfig

> CDKTN Core API Reference for TerraformVariableValidationConfig in Java.

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

## Initializer&#x20;

```java theme={null}
import io.cdktn.cdktn.TerraformVariableValidationConfig;

TerraformVariableValidationConfig.builder()
    .condition(java.lang.Object)
    .errorMessage(java.lang.String)
    .build();
```

## Properties&#x20;

| **Name** | **Type** | **Description** |
| - | - | - |
| `condition` | `java.lang.Object` | This is a boolean expression that should return true if the intended assumption or guarantee is fulfilled or false if it does not. |
| `errorMessage` | `java.lang.String` | This contains the text that Terraform will include as part of error messages when it detects an unmet condition. |

***

### `condition`<sup>Required</sup>&#x20;

```java theme={null}
public java.lang.Object getCondition();
```

* *Type:* java.lang.Object

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>&#x20;

```java theme={null}
public java.lang.String getErrorMessage();
```

* *Type:* java.lang.String

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

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.