FunctionServiceConfig class
Constructors
-
FunctionServiceConfig({Input<bool?>? allTrafficOnLatestRevision, Input<String?>? availableCpu, Input<String?>? availableMemory, Input<String?>? binaryAuthorizationPolicy, Input<String?>? directVpcEgress, Input<List<FunctionServiceConfigDirectVpcNetworkInterface>?>? directVpcNetworkInterfaces, Input<Map<String, String>?>? environmentVariables, Input<String?>? gcfUri, Input<String?>? ingressSettings, Input<int?>? maxInstanceCount, Input<int?>? maxInstanceRequestConcurrency, Input<int?>? minInstanceCount, Input<List<FunctionServiceConfigSecretEnvironmentVariable>?>? secretEnvironmentVariables, Input<List<FunctionServiceConfigSecretVolume>?>? secretVolumes, Input<String?>? service, Input<String?>? serviceAccountEmail, Input<int?>? timeoutSeconds, Input<String?>? uri, Input<String?>? vpcConnector, Input<String?>? vpcConnectorEgressSettings})
-
Creates a new FunctionServiceConfig.
allTrafficOnLatestRevision Whether 100% of traffic is routed to the latest revision. Defaults to true. When false, GCF honors the existing traffic configuration of the underlying Cloud Run service. If that configuration is set to route to LATEST (the default), the new deployment will become LATEST and intercept the traffic. To prevent traffic from shifting, you must manually pin the existing service to a specific revision name in Cloud Run before deploying.
availableCpu The number of CPUs used in a single container instance. Default value is calculated from available memory.
availableMemory The amount of memory available for a function.
binaryAuthorizationPolicy The binary authorization policy to be checked when deploying the Cloud Run service.
directVpcEgress Egress settings for direct VPC. If not provided, it defaults to VPC_EGRESS_PRIVATE_RANGES_ONLY.
directVpcNetworkInterfaces The Direct VPC network interface for the Cloud Function. Currently only a single Direct VPC is supported.
environmentVariables Environment variables that shall be available during function execution.
gcfUri (Output)
ingressSettings Available ingress settings. Defaults to "ALLOW_ALL" if unspecified.
maxInstanceCount The limit on the maximum number of function instances that may coexist at a
maxInstanceRequestConcurrency Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
minInstanceCount The limit on the minimum number of function instances that may coexist at a
secretEnvironmentVariables Secret environment variables configuration.
secretVolumes Secret volumes configuration.
service (Output)
serviceAccountEmail The email of the service account for this function.
timeoutSeconds The function execution timeout. Execution is considered failed and
uri (Output)
vpcConnector The Serverless VPC Access connector that this cloud function can connect to.
vpcConnectorEgressSettings Available egress settings.
const
-
FunctionServiceConfig.fromMap(Map<String, dynamic> map)
-
factory
Properties
-
allTrafficOnLatestRevision
→ Input<bool?>?
-
Whether 100% of traffic is routed to the latest revision. Defaults to true. When false, GCF honors the existing traffic configuration of the underlying Cloud Run service. If that configuration is set to route to LATEST (the default), the new deployment will become LATEST and intercept the traffic. To prevent traffic from shifting, you must manually pin the existing service to a specific revision name in Cloud Run before deploying.
final
-
availableCpu
→ Input<String?>?
-
The number of CPUs used in a single container instance. Default value is calculated from available memory.
final
-
availableMemory
→ Input<String?>?
-
The amount of memory available for a function.
Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
supplied the value is interpreted as bytes.
final
-
binaryAuthorizationPolicy
→ Input<String?>?
-
The binary authorization policy to be checked when deploying the Cloud Run service.
final
-
directVpcEgress
→ Input<String?>?
-
Egress settings for direct VPC. If not provided, it defaults to VPC_EGRESS_PRIVATE_RANGES_ONLY.
Possible values are:
VPC_EGRESS_ALL_TRAFFIC, VPC_EGRESS_PRIVATE_RANGES_ONLY.
final
-
directVpcNetworkInterfaces
→ Input<List<FunctionServiceConfigDirectVpcNetworkInterface>?>?
-
The Direct VPC network interface for the Cloud Function. Currently only a single Direct VPC is supported.
Structure is documented below.
final
-
environmentVariables
→ Input<Map<String, String>?>?
-
Environment variables that shall be available during function execution.
final
-
gcfUri
→ Input<String?>?
-
(Output)
URIs of the Service deployed
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
ingressSettings
→ Input<String?>?
-
Available ingress settings. Defaults to "ALLOW_ALL" if unspecified.
Default value is
ALLOW_ALL.
Possible values are: ALLOW_ALL, ALLOW_INTERNAL_ONLY, ALLOW_INTERNAL_AND_GCLB.
final
-
maxInstanceCount
→ Input<int?>?
-
The limit on the maximum number of function instances that may coexist at a
given time.
final
-
maxInstanceRequestConcurrency
→ Input<int?>?
-
Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
final
-
minInstanceCount
→ Input<int?>?
-
The limit on the minimum number of function instances that may coexist at a
given time.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
secretEnvironmentVariables
→ Input<List<FunctionServiceConfigSecretEnvironmentVariable>?>?
-
Secret environment variables configuration.
Structure is documented below.
final
-
secretVolumes
→ Input<List<FunctionServiceConfigSecretVolume>?>?
-
Secret volumes configuration.
Structure is documented below.
final
-
service
→ Input<String?>?
-
(Output)
Name of the service associated with a Function.
final
-
serviceAccountEmail
→ Input<String?>?
-
The email of the service account for this function.
final
-
timeoutSeconds
→ Input<int?>?
-
The function execution timeout. Execution is considered failed and
can be terminated if the function is not completed at the end of the
timeout period. Defaults to 60 seconds.
final
-
uri
→ Input<String?>?
-
(Output)
URI of the Service deployed.
final
-
vpcConnector
→ Input<String?>?
-
The Serverless VPC Access connector that this cloud function can connect to.
final
-
vpcConnectorEgressSettings
→ Input<String?>?
-
Available egress settings.
Possible values are:
VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED, PRIVATE_RANGES_ONLY, ALL_TRAFFIC.
final