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

com.pulumi.aws.dynamodb.kotlin.inputs.TableOnDemandThroughputArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.dynamodb.kotlin.inputs

import com.pulumi.aws.dynamodb.inputs.TableOnDemandThroughputArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property maxReadRequestUnits Maximum number of read request units for the specified table. To specify set the value greater than or equal to 1. To remove set the value to -1.
 * @property maxWriteRequestUnits Maximum number of write request units for the specified table. To specify set the value greater than or equal to 1. To remove set the value to -1.
 */
public data class TableOnDemandThroughputArgs(
    public val maxReadRequestUnits: Output? = null,
    public val maxWriteRequestUnits: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.dynamodb.inputs.TableOnDemandThroughputArgs =
        com.pulumi.aws.dynamodb.inputs.TableOnDemandThroughputArgs.builder()
            .maxReadRequestUnits(maxReadRequestUnits?.applyValue({ args0 -> args0 }))
            .maxWriteRequestUnits(maxWriteRequestUnits?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TableOnDemandThroughputArgs].
 */
@PulumiTagMarker
public class TableOnDemandThroughputArgsBuilder internal constructor() {
    private var maxReadRequestUnits: Output? = null

    private var maxWriteRequestUnits: Output? = null

    /**
     * @param value Maximum number of read request units for the specified table. To specify set the value greater than or equal to 1. To remove set the value to -1.
     */
    @JvmName("cffwshwemvnhbwgr")
    public suspend fun maxReadRequestUnits(`value`: Output) {
        this.maxReadRequestUnits = value
    }

    /**
     * @param value Maximum number of write request units for the specified table. To specify set the value greater than or equal to 1. To remove set the value to -1.
     */
    @JvmName("ymmpmutsjdiunyah")
    public suspend fun maxWriteRequestUnits(`value`: Output) {
        this.maxWriteRequestUnits = value
    }

    /**
     * @param value Maximum number of read request units for the specified table. To specify set the value greater than or equal to 1. To remove set the value to -1.
     */
    @JvmName("phlmduanldrspqjd")
    public suspend fun maxReadRequestUnits(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxReadRequestUnits = mapped
    }

    /**
     * @param value Maximum number of write request units for the specified table. To specify set the value greater than or equal to 1. To remove set the value to -1.
     */
    @JvmName("arqmgtslovfqrvpb")
    public suspend fun maxWriteRequestUnits(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxWriteRequestUnits = mapped
    }

    internal fun build(): TableOnDemandThroughputArgs = TableOnDemandThroughputArgs(
        maxReadRequestUnits = maxReadRequestUnits,
        maxWriteRequestUnits = maxWriteRequestUnits,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy