ServiceConfigArgs

data class ServiceConfigArgs(val allTrafficOnLatestRevision: Output<Boolean>? = null, val availableCpu: Output<String>? = null, val availableMemory: Output<String>? = null, val environmentVariables: Output<Map<String, String>>? = null, val ingressSettings: Output<ServiceConfigIngressSettings>? = null, val maxInstanceCount: Output<Int>? = null, val maxInstanceRequestConcurrency: Output<Int>? = null, val minInstanceCount: Output<Int>? = null, val secretEnvironmentVariables: Output<List<SecretEnvVarArgs>>? = null, val secretVolumes: Output<List<SecretVolumeArgs>>? = null, val securityLevel: Output<ServiceConfigSecurityLevel>? = null, val serviceAccountEmail: Output<String>? = null, val timeoutSeconds: Output<Int>? = null, val vpcConnector: Output<String>? = null, val vpcConnectorEgressSettings: Output<ServiceConfigVpcConnectorEgressSettings>? = null) : ConvertibleToJava<ServiceConfigArgs>

Describes the Service being deployed. Currently Supported : Cloud Run (fully managed).

Constructors

Link copied to clipboard
fun ServiceConfigArgs(allTrafficOnLatestRevision: Output<Boolean>? = null, availableCpu: Output<String>? = null, availableMemory: Output<String>? = null, environmentVariables: Output<Map<String, String>>? = null, ingressSettings: Output<ServiceConfigIngressSettings>? = null, maxInstanceCount: Output<Int>? = null, maxInstanceRequestConcurrency: Output<Int>? = null, minInstanceCount: Output<Int>? = null, secretEnvironmentVariables: Output<List<SecretEnvVarArgs>>? = null, secretVolumes: Output<List<SecretVolumeArgs>>? = null, securityLevel: Output<ServiceConfigSecurityLevel>? = null, serviceAccountEmail: Output<String>? = null, timeoutSeconds: Output<Int>? = null, vpcConnector: Output<String>? = null, vpcConnectorEgressSettings: Output<ServiceConfigVpcConnectorEgressSettings>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ServiceConfigArgs

Properties

Link copied to clipboard
val allTrafficOnLatestRevision: Output<Boolean>? = null

Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.

Link copied to clipboard
val availableCpu: Output<String>? = null

Preview The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU

Link copied to clipboard
val availableMemory: Output<String>? = null

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. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.

Link copied to clipboard
val environmentVariables: Output<Map<String, String>>? = null

Environment variables that shall be available during function execution.

Link copied to clipboard

The ingress settings for the function, controlling what traffic can reach it.

Link copied to clipboard
val maxInstanceCount: Output<Int>? = null

The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the Max Instances Guide for more details.

Link copied to clipboard
val maxInstanceRequestConcurrency: Output<Int>? = null

Preview Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.

Link copied to clipboard
val minInstanceCount: Output<Int>? = null

The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.

Link copied to clipboard

Secret environment variables configuration.

Link copied to clipboard
val secretVolumes: Output<List<SecretVolumeArgs>>? = null

Secret volumes configuration.

Link copied to clipboard

Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.

Link copied to clipboard
val serviceAccountEmail: Output<String>? = null

The email of the service's service account. If empty, defaults to {project_number}-compute@developer.gserviceaccount.com.

Link copied to clipboard
val timeoutSeconds: Output<Int>? = null

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.

Link copied to clipboard
val vpcConnector: Output<String>? = null

The Serverless VPC Access connector that this cloud function can connect to. The format of this field is projects/*/locations/*/connectors/*.

Link copied to clipboard

The egress settings for the connector, controlling what traffic is diverted through it. //*/