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

com.pulumi.gcp.cloudfunctionsv2.kotlin.outputs.FunctionBuildConfig.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.Map

/**
 *
 * @property build (Output)
 * 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 source The location of the function source code.
 * Structure is documented below.
 * @property workerPool Name of the Cloud Build Custom Worker Pool that should be used to build the function.
 */
public data class FunctionBuildConfig(
    public val build: String? = null,
    public val dockerRepository: String? = null,
    public val entryPoint: String? = null,
    public val environmentVariables: Map? = null,
    public val runtime: String? = null,
    public val serviceAccount: String? = null,
    public val source: FunctionBuildConfigSource? = null,
    public val workerPool: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.cloudfunctionsv2.outputs.FunctionBuildConfig): FunctionBuildConfig = FunctionBuildConfig(
            build = javaType.build().map({ args0 -> args0 }).orElse(null),
            dockerRepository = javaType.dockerRepository().map({ args0 -> args0 }).orElse(null),
            entryPoint = javaType.entryPoint().map({ args0 -> args0 }).orElse(null),
            environmentVariables = javaType.environmentVariables().map({ args0 ->
                args0.key.to(args0.value)
            }).toMap(),
            runtime = javaType.runtime().map({ args0 -> args0 }).orElse(null),
            serviceAccount = javaType.serviceAccount().map({ args0 -> args0 }).orElse(null),
            source = javaType.source().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudfunctionsv2.kotlin.outputs.FunctionBuildConfigSource.Companion.toKotlin(args0)
                })
            }).orElse(null),
            workerPool = javaType.workerPool().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy