FunctionServiceConfig constructor
- Input<
bool?> ? allTrafficOnLatestRevision, - Input<
String?> ? availableCpu, - Input<
String?> ? availableMemory, - Input<
String?> ? binaryAuthorizationPolicy, - Input<
String?> ? directVpcEgress, - Input<
List< ? directVpcNetworkInterfaces,FunctionServiceConfigDirectVpcNetworkInterface> ?> - Input<
Map< ? environmentVariables,String, String> ?> - Input<
String?> ? gcfUri, - Input<
String?> ? ingressSettings, - Input<
int?> ? maxInstanceCount, - Input<
int?> ? maxInstanceRequestConcurrency, - Input<
int?> ? minInstanceCount, - Input<
List< ? secretEnvironmentVariables,FunctionServiceConfigSecretEnvironmentVariable> ?> - Input<
List< ? secretVolumes,FunctionServiceConfigSecretVolume> ?> - 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.
Implementation
const FunctionServiceConfig({
this.allTrafficOnLatestRevision,
this.availableCpu,
this.availableMemory,
this.binaryAuthorizationPolicy,
this.directVpcEgress,
this.directVpcNetworkInterfaces,
this.environmentVariables,
this.gcfUri,
this.ingressSettings,
this.maxInstanceCount,
this.maxInstanceRequestConcurrency,
this.minInstanceCount,
this.secretEnvironmentVariables,
this.secretVolumes,
this.service,
this.serviceAccountEmail,
this.timeoutSeconds,
this.uri,
this.vpcConnector,
this.vpcConnectorEgressSettings,
});