com.pulumi.gcp.cloudrunv2.kotlin.inputs.ServiceTemplateVolumeSecretItemArgs.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.cloudrunv2.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateVolumeSecretItemArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property mode Integer octal mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be used.
* @property path The relative path of the secret in the container.
* @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 ServiceTemplateVolumeSecretItemArgs(
public val mode: Output? = null,
public val path: Output,
public val version: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateVolumeSecretItemArgs =
com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateVolumeSecretItemArgs.builder()
.mode(mode?.applyValue({ args0 -> args0 }))
.path(path.applyValue({ args0 -> args0 }))
.version(version?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ServiceTemplateVolumeSecretItemArgs].
*/
@PulumiTagMarker
public class ServiceTemplateVolumeSecretItemArgsBuilder internal constructor() {
private var mode: Output? = null
private var path: Output? = null
private var version: Output? = null
/**
* @param value Integer octal mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be used.
*/
@JvmName("hqhvxqgiclhxtijs")
public suspend fun mode(`value`: Output) {
this.mode = value
}
/**
* @param value The relative path of the secret in the container.
*/
@JvmName("mqgevblsibqkciqi")
public suspend fun path(`value`: Output) {
this.path = value
}
/**
* @param value The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version
*/
@JvmName("qqludhuhjpormbfe")
public suspend fun version(`value`: Output) {
this.version = value
}
/**
* @param value Integer octal mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be used.
*/
@JvmName("dhqeuhwjxfatoell")
public suspend fun mode(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.mode = mapped
}
/**
* @param value The relative path of the secret in the container.
*/
@JvmName("nwjvfagfftjdgbdd")
public suspend fun path(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.path = mapped
}
/**
* @param value The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version
*/
@JvmName("eitiohokoiubnwkb")
public suspend fun version(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.version = mapped
}
internal fun build(): ServiceTemplateVolumeSecretItemArgs = ServiceTemplateVolumeSecretItemArgs(
mode = mode,
path = path ?: throw PulumiNullFieldException("path"),
version = version,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy