com.pulumi.awsnative.cassandra.kotlin.inputs.TableReplicaSpecificationArgs.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.cassandra.kotlin.inputs
import com.pulumi.awsnative.cassandra.inputs.TableReplicaSpecificationArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Represents replica specifications.
* @property readCapacityAutoScaling The read capacity auto scaling settings for the multi-Region table in the specified AWS Region.
* @property readCapacityUnits The provisioned read capacity units for the multi-Region table in the specified AWS Region.
* @property region The AWS Region.
*/
public data class TableReplicaSpecificationArgs(
public val readCapacityAutoScaling: Output? = null,
public val readCapacityUnits: Output? = null,
public val region: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.cassandra.inputs.TableReplicaSpecificationArgs =
com.pulumi.awsnative.cassandra.inputs.TableReplicaSpecificationArgs.builder()
.readCapacityAutoScaling(
readCapacityAutoScaling?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.readCapacityUnits(readCapacityUnits?.applyValue({ args0 -> args0 }))
.region(region.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TableReplicaSpecificationArgs].
*/
@PulumiTagMarker
public class TableReplicaSpecificationArgsBuilder internal constructor() {
private var readCapacityAutoScaling: Output? = null
private var readCapacityUnits: Output? = null
private var region: Output? = null
/**
* @param value The read capacity auto scaling settings for the multi-Region table in the specified AWS Region.
*/
@JvmName("niecmxpaoeylbhct")
public suspend fun readCapacityAutoScaling(`value`: Output) {
this.readCapacityAutoScaling = value
}
/**
* @param value The provisioned read capacity units for the multi-Region table in the specified AWS Region.
*/
@JvmName("eqphqobxelmyupae")
public suspend fun readCapacityUnits(`value`: Output) {
this.readCapacityUnits = value
}
/**
* @param value The AWS Region.
*/
@JvmName("vmkvobeajpajtahq")
public suspend fun region(`value`: Output) {
this.region = value
}
/**
* @param value The read capacity auto scaling settings for the multi-Region table in the specified AWS Region.
*/
@JvmName("iawycwbngvblhimj")
public suspend fun readCapacityAutoScaling(`value`: TableAutoScalingSettingArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.readCapacityAutoScaling = mapped
}
/**
* @param argument The read capacity auto scaling settings for the multi-Region table in the specified AWS Region.
*/
@JvmName("srceubdvasasrswp")
public suspend fun readCapacityAutoScaling(argument: suspend TableAutoScalingSettingArgsBuilder.() -> Unit) {
val toBeMapped = TableAutoScalingSettingArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.readCapacityAutoScaling = mapped
}
/**
* @param value The provisioned read capacity units for the multi-Region table in the specified AWS Region.
*/
@JvmName("oelevawmtbeeagqk")
public suspend fun readCapacityUnits(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.readCapacityUnits = mapped
}
/**
* @param value The AWS Region.
*/
@JvmName("lejqalfjrbtoqtek")
public suspend fun region(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.region = mapped
}
internal fun build(): TableReplicaSpecificationArgs = TableReplicaSpecificationArgs(
readCapacityAutoScaling = readCapacityAutoScaling,
readCapacityUnits = readCapacityUnits,
region = region ?: throw PulumiNullFieldException("region"),
)
}