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

Initializer

import "github.com/open-constructs/cdk-terrain-go/cdktn"

&cdktn.Postcondition {
	Condition: interface{},
	ErrorMessage: *string,
}

Properties

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

ConditionRequired

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

ErrorMessageRequired

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