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

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

/**
 *
 * @property key Name of the environment variable.
 * @property projectId Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.
 * @property secret Name of the secret in secret manager (not the full resource name).
 * @property version Version of the secret (version number or the string 'latest'). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.
 */
public data class FunctionServiceConfigSecretEnvironmentVariable(
    public val key: String,
    public val projectId: String,
    public val secret: String,
    public val version: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.cloudfunctionsv2.outputs.FunctionServiceConfigSecretEnvironmentVariable): FunctionServiceConfigSecretEnvironmentVariable =
            FunctionServiceConfigSecretEnvironmentVariable(
                key = javaType.key(),
                projectId = javaType.projectId(),
                secret = javaType.secret(),
                version = javaType.version(),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy