GoogleProvider class final

Concrete StackProvider for hashicorp/google ~> 7.0.

StackSynth.synth(...) reads source / versionConstraint to populate the terraform.required_providers.google block, and configArgs to populate the provider.google[] block.

All configuration fields are plain Dart types (not TfArg) — provider blocks in Terraform JSON do not interpolate references to resources, so there is no TfArgRef use case here. Pass literal strings only.

Annotations
  • @immutable

Constructors

GoogleProvider({String? project, String? region, String? zone})
const

Properties

configArgs Map<String, Object?>
Provider-specific config args (project, region, credentials, etc.) as JSON-encodable map. The returned map is copied verbatim into the provider.<providerName> block. Empty map for unparameterized providers.
no setter
hashCode int
The hash code for this object.
no setterinherited
project String?
Default GCP project ID.
final
providerName String
Short provider name, e.g. 'google'. Used as the JSON key under provider.<providerName>.
no setter
region String?
Default GCP region (e.g. us-central1).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source String
Provider registry source — hashicorp/google.
no setter
versionConstraint String
Version constraint — ~> 7.0.
no setter
zone String?
Default GCP zone (e.g. us-central1-a).
final

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