com.pulumi.gcp.secretmanager.kotlin.inputs.SecretReplicationArgs.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.secretmanager.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.secretmanager.inputs.SecretReplicationArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property auto The Secret will automatically be replicated without any restrictions.
* Structure is documented below.
* @property userManaged The Secret will be replicated to the regions specified by the user.
* Structure is documented below.
*/
public data class SecretReplicationArgs(
public val auto: Output? = null,
public val userManaged: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.secretmanager.inputs.SecretReplicationArgs =
com.pulumi.gcp.secretmanager.inputs.SecretReplicationArgs.builder()
.auto(auto?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.userManaged(userManaged?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [SecretReplicationArgs].
*/
@PulumiTagMarker
public class SecretReplicationArgsBuilder internal constructor() {
private var auto: Output? = null
private var userManaged: Output? = null
/**
* @param value The Secret will automatically be replicated without any restrictions.
* Structure is documented below.
*/
@JvmName("wjagthrydekehtrl")
public suspend fun auto(`value`: Output) {
this.auto = value
}
/**
* @param value The Secret will be replicated to the regions specified by the user.
* Structure is documented below.
*/
@JvmName("rbtqpjmwgpufadat")
public suspend fun userManaged(`value`: Output) {
this.userManaged = value
}
/**
* @param value The Secret will automatically be replicated without any restrictions.
* Structure is documented below.
*/
@JvmName("cmmdvavwvweoobms")
public suspend fun auto(`value`: SecretReplicationAutoArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.auto = mapped
}
/**
* @param argument The Secret will automatically be replicated without any restrictions.
* Structure is documented below.
*/
@JvmName("pvbrjieoqblgssdh")
public suspend fun auto(argument: suspend SecretReplicationAutoArgsBuilder.() -> Unit) {
val toBeMapped = SecretReplicationAutoArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.auto = mapped
}
/**
* @param value The Secret will be replicated to the regions specified by the user.
* Structure is documented below.
*/
@JvmName("atxmtqmficdenpvm")
public suspend fun userManaged(`value`: SecretReplicationUserManagedArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.userManaged = mapped
}
/**
* @param argument The Secret will be replicated to the regions specified by the user.
* Structure is documented below.
*/
@JvmName("uiuhthkirmpgswjc")
public suspend fun userManaged(argument: suspend SecretReplicationUserManagedArgsBuilder.() -> Unit) {
val toBeMapped = SecretReplicationUserManagedArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.userManaged = mapped
}
internal fun build(): SecretReplicationArgs = SecretReplicationArgs(
auto = auto,
userManaged = userManaged,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy