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

com.pulumi.awsnative.kendra.kotlin.inputs.IndexCapacityUnitsConfigurationArgs.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.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.kendra.kotlin.inputs

import com.pulumi.awsnative.kendra.inputs.IndexCapacityUnitsConfigurationArgs.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

/**
 *
 * @property queryCapacityUnits The amount of extra query capacity for an index and [GetQuerySuggestions](https://docs.aws.amazon.com/kendra/latest/dg/API_GetQuerySuggestions.html) capacity.
 * A single extra capacity unit for an index provides 0.1 queries per second or approximately 8,000 queries per day. You can add up to 100 extra capacity units.
 * `GetQuerySuggestions` capacity is five times the provisioned query capacity for an index, or the base capacity of 2.5 calls per second, whichever is higher. For example, the base capacity for an index is 0.1 queries per second, and `GetQuerySuggestions` capacity has a base of 2.5 calls per second. If you add another 0.1 queries per second to total 0.2 queries per second for an index, the `GetQuerySuggestions` capacity is 2.5 calls per second (higher than five times 0.2 queries per second).
 * @property storageCapacityUnits The amount of extra storage capacity for an index. A single capacity unit provides 30 GB of storage space or 100,000 documents, whichever is reached first. You can add up to 100 extra capacity units.
 */
public data class IndexCapacityUnitsConfigurationArgs(
    public val queryCapacityUnits: Output,
    public val storageCapacityUnits: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.kendra.inputs.IndexCapacityUnitsConfigurationArgs =
        com.pulumi.awsnative.kendra.inputs.IndexCapacityUnitsConfigurationArgs.builder()
            .queryCapacityUnits(queryCapacityUnits.applyValue({ args0 -> args0 }))
            .storageCapacityUnits(storageCapacityUnits.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [IndexCapacityUnitsConfigurationArgs].
 */
@PulumiTagMarker
public class IndexCapacityUnitsConfigurationArgsBuilder internal constructor() {
    private var queryCapacityUnits: Output? = null

    private var storageCapacityUnits: Output? = null

    /**
     * @param value The amount of extra query capacity for an index and [GetQuerySuggestions](https://docs.aws.amazon.com/kendra/latest/dg/API_GetQuerySuggestions.html) capacity.
     * A single extra capacity unit for an index provides 0.1 queries per second or approximately 8,000 queries per day. You can add up to 100 extra capacity units.
     * `GetQuerySuggestions` capacity is five times the provisioned query capacity for an index, or the base capacity of 2.5 calls per second, whichever is higher. For example, the base capacity for an index is 0.1 queries per second, and `GetQuerySuggestions` capacity has a base of 2.5 calls per second. If you add another 0.1 queries per second to total 0.2 queries per second for an index, the `GetQuerySuggestions` capacity is 2.5 calls per second (higher than five times 0.2 queries per second).
     */
    @JvmName("kebayscuxwogysxh")
    public suspend fun queryCapacityUnits(`value`: Output) {
        this.queryCapacityUnits = value
    }

    /**
     * @param value The amount of extra storage capacity for an index. A single capacity unit provides 30 GB of storage space or 100,000 documents, whichever is reached first. You can add up to 100 extra capacity units.
     */
    @JvmName("wljgoyhiimheycut")
    public suspend fun storageCapacityUnits(`value`: Output) {
        this.storageCapacityUnits = value
    }

    /**
     * @param value The amount of extra query capacity for an index and [GetQuerySuggestions](https://docs.aws.amazon.com/kendra/latest/dg/API_GetQuerySuggestions.html) capacity.
     * A single extra capacity unit for an index provides 0.1 queries per second or approximately 8,000 queries per day. You can add up to 100 extra capacity units.
     * `GetQuerySuggestions` capacity is five times the provisioned query capacity for an index, or the base capacity of 2.5 calls per second, whichever is higher. For example, the base capacity for an index is 0.1 queries per second, and `GetQuerySuggestions` capacity has a base of 2.5 calls per second. If you add another 0.1 queries per second to total 0.2 queries per second for an index, the `GetQuerySuggestions` capacity is 2.5 calls per second (higher than five times 0.2 queries per second).
     */
    @JvmName("pynunlpxlhbbvqxy")
    public suspend fun queryCapacityUnits(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.queryCapacityUnits = mapped
    }

    /**
     * @param value The amount of extra storage capacity for an index. A single capacity unit provides 30 GB of storage space or 100,000 documents, whichever is reached first. You can add up to 100 extra capacity units.
     */
    @JvmName("jwjdmehacfelrbqa")
    public suspend fun storageCapacityUnits(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.storageCapacityUnits = mapped
    }

    internal fun build(): IndexCapacityUnitsConfigurationArgs = IndexCapacityUnitsConfigurationArgs(
        queryCapacityUnits = queryCapacityUnits ?: throw PulumiNullFieldException("queryCapacityUnits"),
        storageCapacityUnits = storageCapacityUnits ?: throw
            PulumiNullFieldException("storageCapacityUnits"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy