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)
Properties
- bareAddress → String
-
Bare address form:
address.attr(no${...}). Used independs_on,replace_triggered_by,for_eachpositions 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_eachemitters) usebareAddressdirectly.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<
The argument value: each element's RefTo.encodeAs for a literal list, the value itself otherwise.List< , provided by the RefToList extensionRefTo< >R> > -
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