com.pulumi.gcp.cloudfunctionsv2.kotlin.outputs.GetFunctionServiceConfigSecretVolume.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.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.'
*/
public data class GetFunctionServiceConfigSecretVolume(
public val mountPath: String,
public val projectId: String,
public val secret: String,
public val versions: List,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudfunctionsv2.outputs.GetFunctionServiceConfigSecretVolume): GetFunctionServiceConfigSecretVolume = GetFunctionServiceConfigSecretVolume(
mountPath = javaType.mountPath(),
projectId = javaType.projectId(),
secret = javaType.secret(),
versions = javaType.versions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudfunctionsv2.kotlin.outputs.GetFunctionServiceConfigSecretVolumeVersion.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy