
com.pulumi.googlenative.cloudfunctions.v1.kotlin.outputs.SecretEnvVarResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.cloudfunctions.v1.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
* Configuration for a secret environment variable. It has the information necessary to fetch the secret value from secret manager and expose it as an environment variable.
* @property key Name of the environment variable.
* @property project 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 SecretEnvVarResponse(
public val key: String,
public val project: String,
public val secret: String,
public val version: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.googlenative.cloudfunctions.v1.outputs.SecretEnvVarResponse): SecretEnvVarResponse = SecretEnvVarResponse(
key = javaType.key(),
project = javaType.project(),
secret = javaType.secret(),
version = javaType.version(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy