All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.dynamodb.kotlin.inputs.TableProvisionedThroughputArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.dynamodb.kotlin.inputs

import com.pulumi.awsnative.dynamodb.inputs.TableProvisionedThroughputArgs.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.Suppress
import kotlin.jvm.JvmName

/**
 * Throughput for the specified table, which consists of values for ``ReadCapacityUnits`` and ``WriteCapacityUnits``. For more information about the contents of a provisioned throughput structure, see [Table ProvisionedThroughput](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ProvisionedThroughput.html).
 * @property readCapacityUnits The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ``ThrottlingException``. For more information, see [Specifying Read and Write Requirements](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughput.html) in the *Amazon DynamoDB Developer Guide*.
 *  If read/write capacity mode is ``PAY_PER_REQUEST`` the value is set to 0.
 * @property writeCapacityUnits The maximum number of writes consumed per second before DynamoDB returns a ``ThrottlingException``. For more information, see [Specifying Read and Write Requirements](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughput.html) in the *Amazon DynamoDB Developer Guide*.
 *  If read/write capacity mode is ``PAY_PER_REQUEST`` the value is set to 0.
 */
public data class TableProvisionedThroughputArgs(
    public val readCapacityUnits: Output,
    public val writeCapacityUnits: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.dynamodb.inputs.TableProvisionedThroughputArgs =
        com.pulumi.awsnative.dynamodb.inputs.TableProvisionedThroughputArgs.builder()
            .readCapacityUnits(readCapacityUnits.applyValue({ args0 -> args0 }))
            .writeCapacityUnits(writeCapacityUnits.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TableProvisionedThroughputArgs].
 */
@PulumiTagMarker
public class TableProvisionedThroughputArgsBuilder internal constructor() {
    private var readCapacityUnits: Output? = null

    private var writeCapacityUnits: Output? = null

    /**
     * @param value The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ``ThrottlingException``. For more information, see [Specifying Read and Write Requirements](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughput.html) in the *Amazon DynamoDB Developer Guide*.
     *  If read/write capacity mode is ``PAY_PER_REQUEST`` the value is set to 0.
     */
    @JvmName("kkdpmifmjippfmsi")
    public suspend fun readCapacityUnits(`value`: Output) {
        this.readCapacityUnits = value
    }

    /**
     * @param value The maximum number of writes consumed per second before DynamoDB returns a ``ThrottlingException``. For more information, see [Specifying Read and Write Requirements](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughput.html) in the *Amazon DynamoDB Developer Guide*.
     *  If read/write capacity mode is ``PAY_PER_REQUEST`` the value is set to 0.
     */
    @JvmName("mffexggvxorhhnbi")
    public suspend fun writeCapacityUnits(`value`: Output) {
        this.writeCapacityUnits = value
    }

    /**
     * @param value The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ``ThrottlingException``. For more information, see [Specifying Read and Write Requirements](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughput.html) in the *Amazon DynamoDB Developer Guide*.
     *  If read/write capacity mode is ``PAY_PER_REQUEST`` the value is set to 0.
     */
    @JvmName("vhugsscqotatmlxi")
    public suspend fun readCapacityUnits(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.readCapacityUnits = mapped
    }

    /**
     * @param value The maximum number of writes consumed per second before DynamoDB returns a ``ThrottlingException``. For more information, see [Specifying Read and Write Requirements](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughput.html) in the *Amazon DynamoDB Developer Guide*.
     *  If read/write capacity mode is ``PAY_PER_REQUEST`` the value is set to 0.
     */
    @JvmName("gwiwbgrnhtqjpgsw")
    public suspend fun writeCapacityUnits(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.writeCapacityUnits = mapped
    }

    internal fun build(): TableProvisionedThroughputArgs = TableProvisionedThroughputArgs(
        readCapacityUnits = readCapacityUnits ?: throw PulumiNullFieldException("readCapacityUnits"),
        writeCapacityUnits = writeCapacityUnits ?: throw PulumiNullFieldException("writeCapacityUnits"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy