com.pulumi.awsnative.cassandra.kotlin.outputs.TableAutoScalingSetting.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.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress
/**
* Represents configuration for auto scaling.
* @property autoScalingDisabled This optional parameter enables auto scaling for the table if set to `false` .
* @property maximumUnits Manage costs by specifying the maximum amount of throughput to provision. The value must be between 1 and the max throughput per second quota for your account (40,000 by default).
* @property minimumUnits The minimum level of throughput the table should always be ready to support. The value must be between 1 and the max throughput per second quota for your account (40,000 by default).
* @property scalingPolicy Amazon Keyspaces supports the `target tracking` auto scaling policy. With this policy, Amazon Keyspaces auto scaling ensures that the table's ratio of consumed to provisioned capacity stays at or near the target value that you specify. You define the target value as a percentage between 20 and 90.
*/
public data class TableAutoScalingSetting(
public val autoScalingDisabled: Boolean? = null,
public val maximumUnits: Int? = null,
public val minimumUnits: Int? = null,
public val scalingPolicy: TableScalingPolicy? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.cassandra.outputs.TableAutoScalingSetting): TableAutoScalingSetting = TableAutoScalingSetting(
autoScalingDisabled = javaType.autoScalingDisabled().map({ args0 -> args0 }).orElse(null),
maximumUnits = javaType.maximumUnits().map({ args0 -> args0 }).orElse(null),
minimumUnits = javaType.minimumUnits().map({ args0 -> args0 }).orElse(null),
scalingPolicy = javaType.scalingPolicy().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.cassandra.kotlin.outputs.TableScalingPolicy.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}