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.

Terraform checks a precondition before evaluating the object it is associated with.

Initializer

import cdktn

cdktn.Precondition(
  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.