com.pulumi.gcp.cloudfunctionsv2.kotlin.inputs.FunctionServiceConfigSecretVolumeArgs.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.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudfunctionsv2.inputs.FunctionServiceConfigSecretVolumeArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @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 FunctionServiceConfigSecretVolumeArgs(
public val mountPath: Output,
public val projectId: Output,
public val secret: Output,
public val versions: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudfunctionsv2.inputs.FunctionServiceConfigSecretVolumeArgs =
com.pulumi.gcp.cloudfunctionsv2.inputs.FunctionServiceConfigSecretVolumeArgs.builder()
.mountPath(mountPath.applyValue({ args0 -> args0 }))
.projectId(projectId.applyValue({ args0 -> args0 }))
.secret(secret.applyValue({ args0 -> args0 }))
.versions(
versions?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [FunctionServiceConfigSecretVolumeArgs].
*/
@PulumiTagMarker
public class FunctionServiceConfigSecretVolumeArgsBuilder internal constructor() {
private var mountPath: Output? = null
private var projectId: Output? = null
private var secret: Output? = null
private var versions: Output>? = null
/**
* @param value 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
*/
@JvmName("imnvfnupomtghjnm")
public suspend fun mountPath(`value`: Output) {
this.mountPath = value
}
/**
* @param value 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.
*/
@JvmName("araqupyiolvikipn")
public suspend fun projectId(`value`: Output) {
this.projectId = value
}
/**
* @param value Name of the secret in secret manager (not the full resource name).
*/
@JvmName("imvhoxflclxfjpov")
public suspend fun secret(`value`: Output) {
this.secret = value
}
/**
* @param value 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.
*/
@JvmName("bdluylxtlagbhxre")
public suspend fun versions(`value`: Output>) {
this.versions = value
}
@JvmName("gbfmjnfobnfovohs")
public suspend fun versions(vararg values: Output) {
this.versions = Output.all(values.asList())
}
/**
* @param values 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.
*/
@JvmName("rqankjlkexumwcqf")
public suspend fun versions(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy