GetFunctionServiceConfig class
Constructors
-
GetFunctionServiceConfig({required Input<bool> allTrafficOnLatestRevision, required Input<String> availableCpu, required Input<String> availableMemory, required Input<String> binaryAuthorizationPolicy, required Input<String> directVpcEgress, required Input<List<GetFunctionServiceConfigDirectVpcNetworkInterface>> directVpcNetworkInterfaces, required Input<Map<String, String>> environmentVariables, required Input<String> gcfUri, required Input<String> ingressSettings, required Input<int> maxInstanceCount, required Input<int> maxInstanceRequestConcurrency, required Input<int> minInstanceCount, required Input<List<GetFunctionServiceConfigSecretEnvironmentVariable>> secretEnvironmentVariables, required Input<List<GetFunctionServiceConfigSecretVolume>> secretVolumes, required Input<String> service, required Input<String> serviceAccountEmail, required Input<int> timeoutSeconds, required Input<String> uri, required Input<String> vpcConnector, required Input<String> vpcConnectorEgressSettings})
-
Creates a new GetFunctionServiceConfig.
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. Possible values: "VPC_EGRESS_ALL_TRAFFIC", "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 URIs of the Service deployed
ingressSettings Available ingress settings. Defaults to "ALLOW_ALL" if unspecified. Default value: "ALLOW_ALL" Possible values: "ALLOW_ALL", "ALLOW_INTERNAL_ONLY", "ALLOW_INTERNAL_AND_GCLB"
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 Name of the service associated with a Function.
serviceAccountEmail The email of the service account for this function.
timeoutSeconds The function execution timeout. Execution is considered failed and
uri URI of the Service deployed.
vpcConnector The Serverless VPC Access connector that this cloud function can connect to.
vpcConnectorEgressSettings Available egress settings. Possible values: "VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED", "PRIVATE_RANGES_ONLY", "ALL_TRAFFIC"
const
-
GetFunctionServiceConfig.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:
"VPC_EGRESS_ALL_TRAFFIC", "VPC_EGRESS_PRIVATE_RANGES_ONLY"
final
-
directVpcNetworkInterfaces
→ Input<List<GetFunctionServiceConfigDirectVpcNetworkInterface>>
-
The Direct VPC network interface for the Cloud Function. Currently only a single Direct VPC is supported.
final
-
environmentVariables
→ Input<Map<String, String>>
-
Environment variables that shall be available during function execution.
final
-
gcfUri
→ Input<String>
-
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: "ALLOW_ALL" Possible values:
"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<GetFunctionServiceConfigSecretEnvironmentVariable>>
-
Secret environment variables configuration.
final
-
secretVolumes
→ Input<List<GetFunctionServiceConfigSecretVolume>>
-
Secret volumes configuration.
final
-
service
→ Input<String>
-
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>
-
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:
"VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED", "PRIVATE_RANGES_ONLY", "ALL_TRAFFIC"
final