All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.cloudfunctionsv2.kotlin.outputs.GetFunctionServiceConfig.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.cloudfunctionsv2.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map

/**
 *
 * @property allTrafficOnLatestRevision Whether 100% of traffic is routed to the latest revision. Defaults to true.
 * @property availableCpu The number of CPUs used in a single container instance. Default value is calculated from available memory.
 * @property availableMemory 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.
 * @property environmentVariables Environment variables that shall be available during function execution.
 * @property gcfUri URIs of the Service deployed
 * @property 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"]
 * @property maxInstanceCount The limit on the maximum number of function instances that may coexist at a
 * given time.
 * @property maxInstanceRequestConcurrency Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
 * @property minInstanceCount The limit on the minimum number of function instances that may coexist at a
 * given time.
 * @property secretEnvironmentVariables Secret environment variables configuration.
 * @property secretVolumes Secret volumes configuration.
 * @property service Name of the service associated with a Function.
 * @property serviceAccountEmail The email of the service account for this function.
 * @property timeoutSeconds 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.
 * @property uri URI of the Service deployed.
 * @property vpcConnector The Serverless VPC Access connector that this cloud function can connect to.
 * @property vpcConnectorEgressSettings Available egress settings. Possible values: ["VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED", "PRIVATE_RANGES_ONLY", "ALL_TRAFFIC"]
 */
public data class GetFunctionServiceConfig(
    public val allTrafficOnLatestRevision: Boolean,
    public val availableCpu: String,
    public val availableMemory: String,
    public val environmentVariables: Map,
    public val gcfUri: String,
    public val ingressSettings: String,
    public val maxInstanceCount: Int,
    public val maxInstanceRequestConcurrency: Int,
    public val minInstanceCount: Int,
    public val secretEnvironmentVariables: List,
    public val secretVolumes: List,
    public val service: String,
    public val serviceAccountEmail: String,
    public val timeoutSeconds: Int,
    public val uri: String,
    public val vpcConnector: String,
    public val vpcConnectorEgressSettings: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.cloudfunctionsv2.outputs.GetFunctionServiceConfig): GetFunctionServiceConfig = GetFunctionServiceConfig(
            allTrafficOnLatestRevision = javaType.allTrafficOnLatestRevision(),
            availableCpu = javaType.availableCpu(),
            availableMemory = javaType.availableMemory(),
            environmentVariables = javaType.environmentVariables().map({ args0 ->
                args0.key.to(args0.value)
            }).toMap(),
            gcfUri = javaType.gcfUri(),
            ingressSettings = javaType.ingressSettings(),
            maxInstanceCount = javaType.maxInstanceCount(),
            maxInstanceRequestConcurrency = javaType.maxInstanceRequestConcurrency(),
            minInstanceCount = javaType.minInstanceCount(),
            secretEnvironmentVariables = javaType.secretEnvironmentVariables().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudfunctionsv2.kotlin.outputs.GetFunctionServiceConfigSecretEnvironmentVariable.Companion.toKotlin(args0)
                })
            }),
            secretVolumes = javaType.secretVolumes().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudfunctionsv2.kotlin.outputs.GetFunctionServiceConfigSecretVolume.Companion.toKotlin(args0)
                })
            }),
            service = javaType.service(),
            serviceAccountEmail = javaType.serviceAccountEmail(),
            timeoutSeconds = javaType.timeoutSeconds(),
            uri = javaType.uri(),
            vpcConnector = javaType.vpcConnector(),
            vpcConnectorEgressSettings = javaType.vpcConnectorEgressSettings(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy