com.pulumi.aws.rds.kotlin.inputs.ClusterRestoreToPointInTimeArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.rds.kotlin.inputs
import com.pulumi.aws.rds.inputs.ClusterRestoreToPointInTimeArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property restoreToTime Date and time in UTC format to restore the database cluster to. Conflicts with `use_latest_restorable_time`.
* @property restoreType Type of restore to be performed.
* Valid options are `full-copy` (default) and `copy-on-write`.
* @property sourceClusterIdentifier Identifier of the source database cluster from which to restore. When restoring from a cluster in another AWS account, the identifier is the ARN of that cluster.
* @property sourceClusterResourceId Cluster resource ID of the source database cluster from which to restore. To be used for restoring a deleted cluster in the same account which still has a retained automatic backup available.
* @property useLatestRestorableTime Set to true to restore the database cluster to the latest restorable backup time. Defaults to false. Conflicts with `restore_to_time`.
*/
public data class ClusterRestoreToPointInTimeArgs(
public val restoreToTime: Output? = null,
public val restoreType: Output? = null,
public val sourceClusterIdentifier: Output? = null,
public val sourceClusterResourceId: Output? = null,
public val useLatestRestorableTime: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.rds.inputs.ClusterRestoreToPointInTimeArgs =
com.pulumi.aws.rds.inputs.ClusterRestoreToPointInTimeArgs.builder()
.restoreToTime(restoreToTime?.applyValue({ args0 -> args0 }))
.restoreType(restoreType?.applyValue({ args0 -> args0 }))
.sourceClusterIdentifier(sourceClusterIdentifier?.applyValue({ args0 -> args0 }))
.sourceClusterResourceId(sourceClusterResourceId?.applyValue({ args0 -> args0 }))
.useLatestRestorableTime(useLatestRestorableTime?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ClusterRestoreToPointInTimeArgs].
*/
@PulumiTagMarker
public class ClusterRestoreToPointInTimeArgsBuilder internal constructor() {
private var restoreToTime: Output? = null
private var restoreType: Output? = null
private var sourceClusterIdentifier: Output? = null
private var sourceClusterResourceId: Output? = null
private var useLatestRestorableTime: Output? = null
/**
* @param value Date and time in UTC format to restore the database cluster to. Conflicts with `use_latest_restorable_time`.
*/
@JvmName("kgjhgkhmnhprnacl")
public suspend fun restoreToTime(`value`: Output) {
this.restoreToTime = value
}
/**
* @param value Type of restore to be performed.
* Valid options are `full-copy` (default) and `copy-on-write`.
*/
@JvmName("bwflphrnuccgxigc")
public suspend fun restoreType(`value`: Output) {
this.restoreType = value
}
/**
* @param value Identifier of the source database cluster from which to restore. When restoring from a cluster in another AWS account, the identifier is the ARN of that cluster.
*/
@JvmName("ikpxbeybqboutlcg")
public suspend fun sourceClusterIdentifier(`value`: Output) {
this.sourceClusterIdentifier = value
}
/**
* @param value Cluster resource ID of the source database cluster from which to restore. To be used for restoring a deleted cluster in the same account which still has a retained automatic backup available.
*/
@JvmName("bylbwgvuqccosafe")
public suspend fun sourceClusterResourceId(`value`: Output) {
this.sourceClusterResourceId = value
}
/**
* @param value Set to true to restore the database cluster to the latest restorable backup time. Defaults to false. Conflicts with `restore_to_time`.
*/
@JvmName("ehpfwkohkujxpfvx")
public suspend fun useLatestRestorableTime(`value`: Output) {
this.useLatestRestorableTime = value
}
/**
* @param value Date and time in UTC format to restore the database cluster to. Conflicts with `use_latest_restorable_time`.
*/
@JvmName("gqdmjabndlxbhcwr")
public suspend fun restoreToTime(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.restoreToTime = mapped
}
/**
* @param value Type of restore to be performed.
* Valid options are `full-copy` (default) and `copy-on-write`.
*/
@JvmName("jduuhxbyakyrgfsa")
public suspend fun restoreType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.restoreType = mapped
}
/**
* @param value Identifier of the source database cluster from which to restore. When restoring from a cluster in another AWS account, the identifier is the ARN of that cluster.
*/
@JvmName("hewkjcqhpcnbqwkl")
public suspend fun sourceClusterIdentifier(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sourceClusterIdentifier = mapped
}
/**
* @param value Cluster resource ID of the source database cluster from which to restore. To be used for restoring a deleted cluster in the same account which still has a retained automatic backup available.
*/
@JvmName("ajxkxnebuxdwirgj")
public suspend fun sourceClusterResourceId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sourceClusterResourceId = mapped
}
/**
* @param value Set to true to restore the database cluster to the latest restorable backup time. Defaults to false. Conflicts with `restore_to_time`.
*/
@JvmName("gfqfarokowsgjbwg")
public suspend fun useLatestRestorableTime(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.useLatestRestorableTime = mapped
}
internal fun build(): ClusterRestoreToPointInTimeArgs = ClusterRestoreToPointInTimeArgs(
restoreToTime = restoreToTime,
restoreType = restoreType,
sourceClusterIdentifier = sourceClusterIdentifier,
sourceClusterResourceId = sourceClusterResourceId,
useLatestRestorableTime = useLatestRestorableTime,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy