firebase_app_hosting library

Firebase App Hosting — Cloud Run-backed successor to classic Firebase Hosting. Backends, build artifacts, custom domains, traffic split.

Classes

AppHostingBackendCodebase
codebase block. Links the backend to a Developer Connect-managed git repository, so commits flowing into the configured branch trigger builds (see GoogleFirebaseAppHostingTraffic.rolloutPolicy).
AppHostingBuildSource
source block (required, max_items=1). Sealed dispatch over the schema's two mutually exclusive sub-blocks: pick a commit from the backend's Developer Connect repository (AppHostingBuildSourceCodebase) OR point at a prebuilt Artifact Registry image (AppHostingBuildSourceContainer).
AppHostingBuildSourceCodebase
source.codebase sub-block. Specify the commit by branch (build at branch HEAD) and/or commit (pin to a specific SHA). The schema does not enforce a one-of, but the API ignores both being null.
AppHostingBuildSourceContainer
source.container sub-block. Skips the Cloud Build step and uses the supplied Artifact Registry image directly for the Cloud Run revision.
AppHostingDomainRedirect
serve.redirect sub-block. Returns an HTTP 3xx redirect for every request hitting this domain.
AppHostingDomainServe
serve block. When omitted (the default), the domain serves the backend's live content. When set, the redirect sub-block takes over -- requests are answered with an HTTP 3xx response pointing at the configured URI.
AppHostingTrafficRolloutPolicy
rollout_policy block. Drives automated builds and rollouts off a git branch in the backend's linked Developer Connect repository. When omitted, the backend never auto-rolls out -- builds are triggered exclusively by explicit GoogleFirebaseAppHostingBuild resources.
AppHostingTrafficSplit
One entry in target.splits. Pairs a build with the percentage of traffic it should receive.
AppHostingTrafficTarget
target block. Manually pin the desired traffic split across builds. The state's current field eventually reconverges to this value. Split percentages must sum to 100, and per the provider's current schema each individual entry must be exactly 0 or 100 (so today this behaves as "single live build" rather than a true weighted split).
GoogleFirebaseAppHostingBackend
Factory wrapper for google_firebase_app_hosting_backend (provider hashicorp/google ~> 7.0).
GoogleFirebaseAppHostingBuild
Factory wrapper for google_firebase_app_hosting_build (provider hashicorp/google ~> 7.0).
GoogleFirebaseAppHostingDefaultDomain
Factory wrapper for google_firebase_app_hosting_default_domain (provider hashicorp/google ~> 7.0).
GoogleFirebaseAppHostingDomain
Factory wrapper for google_firebase_app_hosting_domain (provider hashicorp/google ~> 7.0).
GoogleFirebaseAppHostingTraffic
Factory wrapper for google_firebase_app_hosting_traffic (provider hashicorp/google ~> 7.0).

Enums

AppHostingServingLocality
serving_locality -- where App Hosting will serve content from. Set on create; immutable thereafter (changing forces replacement). regionalStrict pins serving to the backend's location; globalAccess lets App Hosting replicate across its global edge fleet.