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

com.pulumi.awsnative.neptune.kotlin.inputs.DbClusterServerlessScalingConfigurationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.neptune.kotlin.inputs

import com.pulumi.awsnative.neptune.inputs.DbClusterServerlessScalingConfigurationArgs.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.Double
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Contains the scaling configuration of an Neptune Serverless DB cluster.
 * @property maxCapacity The maximum number of Neptune capacity units (NCUs) for a DB instance in an Neptune Serverless cluster. You can specify NCU values in half-step increments, such as 40, 40.5, 41, and so on. The smallest value you can use is 2.5, whereas the largest is 128.
 * @property minCapacity The minimum number of Neptune capacity units (NCUs) for a DB instance in an Neptune Serverless cluster. You can specify NCU values in half-step increments, such as 8, 8.5, 9, and so on. The smallest value you can use is 1, whereas the largest is 128.
 */
public data class DbClusterServerlessScalingConfigurationArgs(
    public val maxCapacity: Output,
    public val minCapacity: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.neptune.inputs.DbClusterServerlessScalingConfigurationArgs =
        com.pulumi.awsnative.neptune.inputs.DbClusterServerlessScalingConfigurationArgs.builder()
            .maxCapacity(maxCapacity.applyValue({ args0 -> args0 }))
            .minCapacity(minCapacity.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DbClusterServerlessScalingConfigurationArgs].
 */
@PulumiTagMarker
public class DbClusterServerlessScalingConfigurationArgsBuilder internal constructor() {
    private var maxCapacity: Output? = null

    private var minCapacity: Output? = null

    /**
     * @param value The maximum number of Neptune capacity units (NCUs) for a DB instance in an Neptune Serverless cluster. You can specify NCU values in half-step increments, such as 40, 40.5, 41, and so on. The smallest value you can use is 2.5, whereas the largest is 128.
     */
    @JvmName("tcbnsacghqqkloks")
    public suspend fun maxCapacity(`value`: Output) {
        this.maxCapacity = value
    }

    /**
     * @param value The minimum number of Neptune capacity units (NCUs) for a DB instance in an Neptune Serverless cluster. You can specify NCU values in half-step increments, such as 8, 8.5, 9, and so on. The smallest value you can use is 1, whereas the largest is 128.
     */
    @JvmName("chqkebottovwqpuy")
    public suspend fun minCapacity(`value`: Output) {
        this.minCapacity = value
    }

    /**
     * @param value The maximum number of Neptune capacity units (NCUs) for a DB instance in an Neptune Serverless cluster. You can specify NCU values in half-step increments, such as 40, 40.5, 41, and so on. The smallest value you can use is 2.5, whereas the largest is 128.
     */
    @JvmName("dtfltuvqmrlcqypc")
    public suspend fun maxCapacity(`value`: Double) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.maxCapacity = mapped
    }

    /**
     * @param value The minimum number of Neptune capacity units (NCUs) for a DB instance in an Neptune Serverless cluster. You can specify NCU values in half-step increments, such as 8, 8.5, 9, and so on. The smallest value you can use is 1, whereas the largest is 128.
     */
    @JvmName("etaacyefyribhofc")
    public suspend fun minCapacity(`value`: Double) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.minCapacity = mapped
    }

    internal fun build(): DbClusterServerlessScalingConfigurationArgs =
        DbClusterServerlessScalingConfigurationArgs(
            maxCapacity = maxCapacity ?: throw PulumiNullFieldException("maxCapacity"),
            minCapacity = minCapacity ?: throw PulumiNullFieldException("minCapacity"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy