
com.pulumi.awsnative.secretsmanager.kotlin.inputs.SecretReplicaRegionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.secretsmanager.kotlin.inputs
import com.pulumi.awsnative.secretsmanager.inputs.SecretReplicaRegionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Specifies a ``Region`` and the ``KmsKeyId`` for a replica secret.
* @property kmsKeyId The ARN, key ID, or alias of the KMS key to encrypt the secret. If you don't include this field, Secrets Manager uses ``aws/secretsmanager``.
* @property region A string that represents a ``Region``, for example "us-east-1".
*/
public data class SecretReplicaRegionArgs(
public val kmsKeyId: Output? = null,
public val region: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.secretsmanager.inputs.SecretReplicaRegionArgs =
com.pulumi.awsnative.secretsmanager.inputs.SecretReplicaRegionArgs.builder()
.kmsKeyId(kmsKeyId?.applyValue({ args0 -> args0 }))
.region(region.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SecretReplicaRegionArgs].
*/
@PulumiTagMarker
public class SecretReplicaRegionArgsBuilder internal constructor() {
private var kmsKeyId: Output? = null
private var region: Output? = null
/**
* @param value The ARN, key ID, or alias of the KMS key to encrypt the secret. If you don't include this field, Secrets Manager uses ``aws/secretsmanager``.
*/
@JvmName("xmppxhgqwhhsmyge")
public suspend fun kmsKeyId(`value`: Output) {
this.kmsKeyId = value
}
/**
* @param value A string that represents a ``Region``, for example "us-east-1".
*/
@JvmName("oyjibgarblxngasx")
public suspend fun region(`value`: Output) {
this.region = value
}
/**
* @param value The ARN, key ID, or alias of the KMS key to encrypt the secret. If you don't include this field, Secrets Manager uses ``aws/secretsmanager``.
*/
@JvmName("viodwqgtfxfvtltm")
public suspend fun kmsKeyId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.kmsKeyId = mapped
}
/**
* @param value A string that represents a ``Region``, for example "us-east-1".
*/
@JvmName("dpspmtessejgbadg")
public suspend fun region(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.region = mapped
}
internal fun build(): SecretReplicaRegionArgs = SecretReplicaRegionArgs(
kmsKeyId = kmsKeyId,
region = region ?: throw PulumiNullFieldException("region"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy