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

com.pulumi.gcp.cloudrunv2.kotlin.outputs.ServiceTemplateContainerEnvValueSourceSecretKeyRef.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.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