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

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

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

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

import com.pulumi.awsnative.dynamodb.inputs.GlobalTableReadProvisionedThroughputSettingsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property readCapacityAutoScalingSettings Specifies auto scaling settings for the replica table or global secondary index.
 * @property readCapacityUnits Specifies a fixed read capacity for the replica table or global secondary index.
 */
public data class GlobalTableReadProvisionedThroughputSettingsArgs(
    public val readCapacityAutoScalingSettings: Output? =
        null,
    public val readCapacityUnits: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.dynamodb.inputs.GlobalTableReadProvisionedThroughputSettingsArgs =
        com.pulumi.awsnative.dynamodb.inputs.GlobalTableReadProvisionedThroughputSettingsArgs.builder()
            .readCapacityAutoScalingSettings(
                readCapacityAutoScalingSettings?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .readCapacityUnits(readCapacityUnits?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GlobalTableReadProvisionedThroughputSettingsArgs].
 */
@PulumiTagMarker
public class GlobalTableReadProvisionedThroughputSettingsArgsBuilder internal constructor() {
    private var readCapacityAutoScalingSettings: Output? =
        null

    private var readCapacityUnits: Output? = null

    /**
     * @param value Specifies auto scaling settings for the replica table or global secondary index.
     */
    @JvmName("nxeomgfheffexket")
    public suspend fun readCapacityAutoScalingSettings(`value`: Output) {
        this.readCapacityAutoScalingSettings = value
    }

    /**
     * @param value Specifies a fixed read capacity for the replica table or global secondary index.
     */
    @JvmName("dtginbgfilxmxuhp")
    public suspend fun readCapacityUnits(`value`: Output) {
        this.readCapacityUnits = value
    }

    /**
     * @param value Specifies auto scaling settings for the replica table or global secondary index.
     */
    @JvmName("sqrqesliukjbavsb")
    public suspend fun readCapacityAutoScalingSettings(`value`: GlobalTableCapacityAutoScalingSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.readCapacityAutoScalingSettings = mapped
    }

    /**
     * @param argument Specifies auto scaling settings for the replica table or global secondary index.
     */
    @JvmName("rmacbawdidonhkqw")
    public suspend fun readCapacityAutoScalingSettings(argument: suspend GlobalTableCapacityAutoScalingSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = GlobalTableCapacityAutoScalingSettingsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.readCapacityAutoScalingSettings = mapped
    }

    /**
     * @param value Specifies a fixed read capacity for the replica table or global secondary index.
     */
    @JvmName("wwbnafssnewwfrep")
    public suspend fun readCapacityUnits(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.readCapacityUnits = mapped
    }

    internal fun build(): GlobalTableReadProvisionedThroughputSettingsArgs =
        GlobalTableReadProvisionedThroughputSettingsArgs(
            readCapacityAutoScalingSettings = readCapacityAutoScalingSettings,
            readCapacityUnits = readCapacityUnits,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy