GoogleFirebaseAppHostingDomain class final
Factory wrapper for google_firebase_app_hosting_domain (provider
hashicorp/google ~> 7.0).
Required identity:
localName: Terraform local name (the address segment aftergoogle_firebase_app_hosting_domain.).backend: ID of the backend this domain is attached to. TypicallyTfArg.ref(backend.backendIdRef)wherebackendis a GoogleFirebaseAppHostingBackend.location: GCP region of the backend.domain_id: Fully qualified custom domain name, e.g.'www.example.com'.
Example (custom domain serving the backend's live content):
final www = GoogleFirebaseAppHostingDomain(
localName: 'www',
backend: TfArg.ref(backend.backendIdRef),
location: TfArg.literal('us-central1'),
domainId: TfArg.literal('www.example.com'),
);
Example (apex domain redirecting to www):
final apex = GoogleFirebaseAppHostingDomain(
localName: 'apex',
backend: TfArg.ref(backend.backendIdRef),
location: TfArg.literal('us-central1'),
domainId: TfArg.literal('example.com'),
serve: AppHostingDomainServe(
redirect: AppHostingDomainRedirect(
uri: TfArg.literal('https://www.example.com'),
status: TfArg.literal('301'),
),
),
);
Manages a custom domain attached to an App Hosting backend. The
optional serve block overrides the default behaviour (serve the
backend's live content) with a redirect; future provider releases may
add additional serve modes -- the helper is shaped to absorb them
without breaking callers.
Constructors
-
GoogleFirebaseAppHostingDomain({required String localName, required TfArg<
String> backend, required TfArg<String> location, required TfArg<String> domainId, AppHostingDomainServe? serve, TfArg<String> ? project, LifecycleOptions? lifecycle, List<DependencyTarget> ? dependsOn})
Properties
-
$sensitiveFields
→ Set<
String> -
Field names that are
@Sensitiveper the IR-derived per-resource constant. Curated factories override with a baked-instatic const Set<String>(file-private in v0.5+).no setter -
argMap
→ Map<
String, TfArg?> -
Argument-name → TfArg map. Keys are snake_case (Terraform JSON name).
Synth emits these keys directly; the factory is responsible for the
camelCase → snake_case translation at construction time.
finalinherited
-
dependsOn
→ List<
DependencyTarget> ? -
Optional
depends_on = [...]. Each entry is aDependencyTarget— either a wholesale resource (rendered as bare address) or an explicitTfRef(rendered viabareAddress).finalinherited -
domainIdRef
→ TfRef<
String> -
Reference to
domain_id-- the fully qualified host name.no setter -
etag
→ TfRef<
String> -
Reference to
etag(used for optimistic concurrency).no setter - hashCode → int
-
The hash code for this object.
no setterinherited
-
id
→ TfRef<
String> -
Reference to
idattribute. Same asnameReffor this resource.no setter - kind → ResourceKind
-
Always
ResourceKind.resource. Overridden byData.no setterinherited - lifecycle → LifecycleOptions?
-
Optional
lifecycle { ... }block.finalinherited - localName → String
-
User-supplied local name within a Stack.
finalinherited
-
nameRef
→ TfRef<
String> -
Reference to
nameattribute (full resource pathprojects/{project}/locations/{location}/backends/{backend}/domains/{domain_id}).no setter - provider → ProviderBinding?
-
Optional explicit provider binding. Only the type is referenced here;
the concrete
Providerclass lives interradart_google(provider classes are defined per-provider, outside the core runtime).finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- terraformType → String
-
Terraform resource type, e.g.
google_pubsub_topic.finalinherited - tfAddress → String
-
no setterinherited
-
uid
→ TfRef<
String> -
Reference to
uid(server-assigned unique identifier).no setter
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