com.pulumi.gcp.cloudfunctions.kotlin.outputs.FunctionSecretEnvironmentVariable.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.cloudfunctions.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property key Name of the environment variable.
* @property projectId Project identifier (due to a known limitation, only project number is supported by this field) 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 ID 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 clones start.
*/
public data class FunctionSecretEnvironmentVariable(
public val key: String,
public val projectId: String? = null,
public val secret: String,
public val version: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudfunctions.outputs.FunctionSecretEnvironmentVariable): FunctionSecretEnvironmentVariable = FunctionSecretEnvironmentVariable(
key = javaType.key(),
projectId = javaType.projectId().map({ args0 -> args0 }).orElse(null),
secret = javaType.secret(),
version = javaType.version(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy