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

com.pulumi.gcp.cloudfunctionsv2.kotlin.outputs.FunctionServiceConfigSecretVolume.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
import kotlin.collections.List

/**
 *
 * @property mountPath The path within the container to mount the secret volume. For example, setting the mountPath as /etc/secrets would mount the secret value files under the /etc/secrets directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets
 * @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 versions List of secret versions to mount for this secret. If empty, the latest version of the secret will be made available in a file named after the secret under the mount point.'
 * Structure is documented below.
 */
public data class FunctionServiceConfigSecretVolume(
    public val mountPath: String,
    public val projectId: String,
    public val secret: String,
    public val versions: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.cloudfunctionsv2.outputs.FunctionServiceConfigSecretVolume): FunctionServiceConfigSecretVolume = FunctionServiceConfigSecretVolume(
            mountPath = javaType.mountPath(),
            projectId = javaType.projectId(),
            secret = javaType.secret(),
            versions = javaType.versions().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudfunctionsv2.kotlin.outputs.FunctionServiceConfigSecretVolumeVersion.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy