Skip to main content

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.

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

Initializer

import cdktn

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

Properties

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

conditionRequired

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_messageRequired

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