com.pulumi.gcp.cloudrunv2.kotlin.outputs.ServiceTemplateContainerEnvValueSourceSecretKeyRef.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.cloudrunv2.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property secret The name of the secret in Cloud Secret Manager. Format: {secretName} if the secret is in the same project. projects/{project}/secrets/{secretName} if the secret is in a different project.
* @property version The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.
*/
public data class ServiceTemplateContainerEnvValueSourceSecretKeyRef(
public val secret: String,
public val version: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudrunv2.outputs.ServiceTemplateContainerEnvValueSourceSecretKeyRef): ServiceTemplateContainerEnvValueSourceSecretKeyRef =
ServiceTemplateContainerEnvValueSourceSecretKeyRef(
secret = javaType.secret(),
version = javaType.version().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy