Cloudfunctions2FunctionBuildConfig class

build_config block (single, max_items=1). Carries the runtime declaration and source-archive reference for the Cloud Build step that produces the function's container image.

Annotations
  • @immutable

Constructors

Cloudfunctions2FunctionBuildConfig({TfArg<String>? runtime, TfArg<String>? entryPoint, Cloudfunctions2FunctionSourceConfig? source, TfArg<Map<String, String>>? environmentVariables, TfArg<String>? serviceAccount, TfArg<String>? dockerRepository, TfArg<String>? workerPool, Cloudfunctions2FunctionUpdatePolicy? updatePolicy})
const

Properties

dockerRepository → TfArg<String>?
User-managed Artifact Registry repository for the built image. When unset, GCP uses the per-project default repo.
final
entryPoint → TfArg<String>?
Entry point function name in the source code. Defaults to the resource name suffix if unset.
final
environmentVariables → TfArg<Map<String, String>>?
Build-time environment variables (available to the build script, NOT to the runtime — use Cloudfunctions2FunctionServiceConfig.environmentVariables for that).
final
hashCode int
The hash code for this object.
no setterinherited
runtime → TfArg<String>?
Runtime identifier, e.g. 'python311', 'nodejs20', 'go122'. The schema marks this optional (updates can omit it) but creating a new function effectively requires it.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serviceAccount → TfArg<String>?
Service account email Cloud Build runs as. Defaults to the project Cloud Build SA.
final
source Cloudfunctions2FunctionSourceConfig?
Source archive reference. Pick exactly one of StorageSource (GCS object) or RepoSource (Cloud Source Repositories ref).
final
updatePolicy Cloudfunctions2FunctionUpdatePolicy?
Runtime update policy. Pick AutomaticUpdatePolicy (the default -- pull patch-level runtime updates on every deploy) or OnDeployUpdatePolicy (pin the runtime version at deploy time).
final
workerPool → TfArg<String>?
Cloud Build Custom Worker Pool resource path. Required when the build must run inside a VPC perimeter.
final

Methods

encode() Map<String, Object?>
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