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

com.pulumi.gcp.cloudfunctionsv2.kotlin.outputs.GetFunctionBuildConfig.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.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map

/**
 *
 * @property build The Cloud Build name of the latest successful
 * deployment of the function.
 * @property dockerRepository User managed repository created in Artifact Registry optionally with a customer managed encryption key.
 * @property entryPoint The name of the function (as defined in source code) that will be executed.
 * Defaults to the resource name suffix, if not specified. For backward
 * compatibility, if function with given name is not found, then the system
 * will try to use function named "function". For Node.js this is name of a
 * function exported by the module specified in source_location.
 * @property environmentVariables User-provided build-time environment variables for the function.
 * @property runtime The runtime in which to run the function. Required when deploying a new
 * function, optional when updating an existing function.
 * @property serviceAccount The fully-qualified name of the service account to be used for building the container.
 * @property sources The location of the function source code.
 * @property workerPool Name of the Cloud Build Custom Worker Pool that should be used to build the function.
 */
public data class GetFunctionBuildConfig(
    public val build: String,
    public val dockerRepository: String,
    public val entryPoint: String,
    public val environmentVariables: Map,
    public val runtime: String,
    public val serviceAccount: String,
    public val sources: List,
    public val workerPool: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.cloudfunctionsv2.outputs.GetFunctionBuildConfig): GetFunctionBuildConfig = GetFunctionBuildConfig(
            build = javaType.build(),
            dockerRepository = javaType.dockerRepository(),
            entryPoint = javaType.entryPoint(),
            environmentVariables = javaType.environmentVariables().map({ args0 ->
                args0.key.to(args0.value)
            }).toMap(),
            runtime = javaType.runtime(),
            serviceAccount = javaType.serviceAccount(),
            sources = javaType.sources().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudfunctionsv2.kotlin.outputs.GetFunctionBuildConfigSource.Companion.toKotlin(args0)
                })
            }),
            workerPool = javaType.workerPool(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy