Cloudfunctions2FunctionServiceConfig class

service_config block (single, max_items=1). Configures the underlying Cloud Run service: memory, CPU, scaling, environment, VPC egress, secret refs.

Annotations
  • @immutable

Constructors

Cloudfunctions2FunctionServiceConfig({TfArg<String>? availableMemory, TfArg<String>? availableCpu, TfArg<int>? timeoutSeconds, TfArg<int>? minInstanceCount, TfArg<int>? maxInstanceCount, TfArg<int>? maxInstanceRequestConcurrency, TfArg<Map<String, String>>? environmentVariables, TfArg<String>? serviceAccountEmail, TfArg<IngressSettings>? ingressSettings, TfArg<bool>? allTrafficOnLatestRevision, TfArg<String>? vpcConnector, TfArg<VpcConnectorEgressSettings>? vpcConnectorEgressSettings, TfArg<DirectVpcEgress>? directVpcEgress, TfArg<String>? binaryAuthorizationPolicy, List<Cloudfunctions2FunctionSecretEnvironmentVariable>? secretEnvironmentVariables, List<Cloudfunctions2FunctionSecretVolume>? secretVolumes, List<Cloudfunctions2FunctionDirectVpcNetworkInterface>? directVpcNetworkInterfaces})
const

Properties

allTrafficOnLatestRevision → TfArg<bool>?
When true (default), 100% of traffic targets the latest revision.
final
availableCpu → TfArg<String>?
CPU limit. Accepts the Cloud Run-style scalar ('1', '2', ...). Server picks a default proportional to availableMemory when null.
final
availableMemory → TfArg<String>?
Memory limit. Accepts the schema's Kubernetes-Quantity form ('256M', '1Gi'). Defaults to '256M'.
final
binaryAuthorizationPolicy → TfArg<String>?
Binary Authorization policy resource name. Enforces image admission on every deploy.
final
directVpcEgress → TfArg<DirectVpcEgress>?
Egress policy when directVpcNetworkInterfaces is set.
final
directVpcNetworkInterfaces List<Cloudfunctions2FunctionDirectVpcNetworkInterface>?
Direct VPC network interfaces. Mutually exclusive (at the provider level) with vpcConnector.
final
environmentVariables → TfArg<Map<String, String>>?
Runtime environment variables (visible to the function code, NOT to the build step -- use Cloudfunctions2FunctionBuildConfig.environmentVariables for that).
final
hashCode int
The hash code for this object.
no setterinherited
ingressSettings → TfArg<IngressSettings>?
Which traffic sources can invoke the function.
final
maxInstanceCount → TfArg<int>?
Ceiling on serving instances.
final
maxInstanceRequestConcurrency → TfArg<int>?
Maximum concurrent requests per instance. Defaults to 1.
final
minInstanceCount → TfArg<int>?
Floor on serving instances. Defaults to 0 (cold starts allowed).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secretEnvironmentVariables List<Cloudfunctions2FunctionSecretEnvironmentVariable>?
Secret-Manager backed environment variables.
final
secretVolumes List<Cloudfunctions2FunctionSecretVolume>?
Secret-Manager backed file mounts.
final
serviceAccountEmail → TfArg<String>?
Runtime service account email. Defaults to the project default compute SA.
final
timeoutSeconds → TfArg<int>?
Per-request timeout in seconds. Defaults to 60.
final
vpcConnector → TfArg<String>?
Serverless VPC Access connector path. Mutually exclusive (at the provider level) with directVpcNetworkInterfaces.
final
vpcConnectorEgressSettings → TfArg<VpcConnectorEgressSettings>?
Egress policy when vpcConnector is set.
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