ResourceRef class final

Public for sealed pattern matching, but constructor is private — only TfRef.resource() may construct instances.

ResourceRef represents the whole resource (no attribute suffix). Used in reference-only positions:

  • replace_triggered_by = [<address>]
  • for_each = <resource>.iterable (when sourcing from a resource set)
Inheritance
Available extensions
Annotations
  • @immutable

Properties

bareAddress → String
Bare address form: address.attr (no ${...}). Used in depends_on, replace_triggered_by, for_each positions where Terraform expects a raw reference.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
interpolation → String
Wrapped form for non-reference-only positions. Reference-only callers (synth's replace_triggered_by / for_each emitters) use bareAddress directly.
no setteroverride
owner → TfAddressed
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

encodeAs(String attribute) → TfArg<Object?>

Available on TfArg<List<RefTo<R>>>, provided by the RefToList extension

The argument value: each element's RefTo.encodeAs for a literal list, the value itself otherwise.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
toTfJson() → Object?
Value emitted into Terraform JSON.
inherited

Operators

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