
com.pulumi.awsnative.redshiftserverless.kotlin.inputs.NamespaceSnapshotCopyConfigurationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.redshiftserverless.kotlin.inputs
import com.pulumi.awsnative.redshiftserverless.inputs.NamespaceSnapshotCopyConfigurationArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property destinationKmsKeyId The ID of the KMS key to use to encrypt your snapshots in the destination AWS Region .
* @property destinationRegion The destination AWS Region to copy snapshots to.
* @property snapshotRetentionPeriod The retention period of snapshots that are copied to the destination AWS Region .
*/
public data class NamespaceSnapshotCopyConfigurationArgs(
public val destinationKmsKeyId: Output? = null,
public val destinationRegion: Output,
public val snapshotRetentionPeriod: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.redshiftserverless.inputs.NamespaceSnapshotCopyConfigurationArgs =
com.pulumi.awsnative.redshiftserverless.inputs.NamespaceSnapshotCopyConfigurationArgs.builder()
.destinationKmsKeyId(destinationKmsKeyId?.applyValue({ args0 -> args0 }))
.destinationRegion(destinationRegion.applyValue({ args0 -> args0 }))
.snapshotRetentionPeriod(snapshotRetentionPeriod?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [NamespaceSnapshotCopyConfigurationArgs].
*/
@PulumiTagMarker
public class NamespaceSnapshotCopyConfigurationArgsBuilder internal constructor() {
private var destinationKmsKeyId: Output? = null
private var destinationRegion: Output? = null
private var snapshotRetentionPeriod: Output? = null
/**
* @param value The ID of the KMS key to use to encrypt your snapshots in the destination AWS Region .
*/
@JvmName("qtrrtdhagowmoksf")
public suspend fun destinationKmsKeyId(`value`: Output) {
this.destinationKmsKeyId = value
}
/**
* @param value The destination AWS Region to copy snapshots to.
*/
@JvmName("ncweoglyqfwyjbss")
public suspend fun destinationRegion(`value`: Output) {
this.destinationRegion = value
}
/**
* @param value The retention period of snapshots that are copied to the destination AWS Region .
*/
@JvmName("dhvortrnounuueak")
public suspend fun snapshotRetentionPeriod(`value`: Output) {
this.snapshotRetentionPeriod = value
}
/**
* @param value The ID of the KMS key to use to encrypt your snapshots in the destination AWS Region .
*/
@JvmName("gcppmhfhovowhhjp")
public suspend fun destinationKmsKeyId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.destinationKmsKeyId = mapped
}
/**
* @param value The destination AWS Region to copy snapshots to.
*/
@JvmName("ujjewucrsxyhsrxm")
public suspend fun destinationRegion(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.destinationRegion = mapped
}
/**
* @param value The retention period of snapshots that are copied to the destination AWS Region .
*/
@JvmName("nugollmryajuytgl")
public suspend fun snapshotRetentionPeriod(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.snapshotRetentionPeriod = mapped
}
internal fun build(): NamespaceSnapshotCopyConfigurationArgs =
NamespaceSnapshotCopyConfigurationArgs(
destinationKmsKeyId = destinationKmsKeyId,
destinationRegion = destinationRegion ?: throw PulumiNullFieldException("destinationRegion"),
snapshotRetentionPeriod = snapshotRetentionPeriod,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy