com.pulumi.gcp.cloudfunctions.kotlin.outputs.GetFunctionSecretVolume.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.cloudfunctions.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 mount_path 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 paths: "/etc/secrets" Restricted mount paths: "/cloudsql", "/dev/log", "/pod", "/proc", "/var/log".
* @property projectId Project identifier (due to a known limitation, only project number is supported by this field) 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 ID 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 GetFunctionSecretVolume(
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.cloudfunctions.outputs.GetFunctionSecretVolume): GetFunctionSecretVolume = GetFunctionSecretVolume(
mountPath = javaType.mountPath(),
projectId = javaType.projectId(),
secret = javaType.secret(),
versions = javaType.versions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudfunctions.kotlin.outputs.GetFunctionSecretVolumeVersion.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy