Skip to main content
Terraform checks a postcondition after evaluating the object it is associated with.

Initializer

import cdktn

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