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

Initializer

using Io.Cdktn;

new TerraformVariableValidationConfig {
    object Condition,
    string ErrorMessage
};

Properties

NameTypeDescription
ConditionobjectThis is a boolean expression that should return true if the intended assumption or guarantee is fulfilled or false if it does not.
ErrorMessagestringThis contains the text that Terraform will include as part of error messages when it detects an unmet condition.

ConditionRequired

public object Condition { get; set; }
  • Type: object
This is a boolean expression that should return true if the intended assumption or guarantee is fulfilled or false if it does not.

ErrorMessageRequired

public string ErrorMessage { get; set; }
  • Type: string
This contains the text that Terraform will include as part of error messages when it detects an unmet condition.