Sensitive<T> class
sealed
What an argument Terraform marks sensitive takes: a variable, an
expression or an attribute getter — a value Terraform resolves, never a
Dart literal that would be written into main.tf.json.
final dbPassword = variable<String>('db_password', sensitive: true);
add(
GoogleSqlUser(
'app',
instance: primary.ref,
name: .literal('app'),
password: dbPassword, // or .variable('db_password')
),
);
There is no .literal: password: .literal('pw') does not compile.
Constructors
- Sensitive.expression(String template)
-
A Terraform expression, as TfArg.expression.
factory
- Sensitive.variable(String name)
-
var.<name>, as TfArg.variable.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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