LifecycleCondition class final

A precondition or postcondition block: Terraform fails the plan (LifecycleCondition.pre) or the apply (LifecycleCondition.post) with errorMessage when condition is false.

Annotations
  • @immutable

Constructors

LifecycleCondition.post(TfArg<bool> condition, String errorMessage)
Checked after Terraform applies the resource; condition can read self.
const
LifecycleCondition.pre(TfArg<bool> condition, String errorMessage)
Checked before Terraform plans the resource.
const

Properties

condition → TfArg<bool>
The boolean to check: .expression(r'${self.status == "READY"}') or an attribute getter.
final
errorMessage → String
What Terraform reports when condition is false.
final
hashCode → int
The hash code for this object.
no setterinherited
post → bool
Whether this is a postcondition.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited