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

com.pulumi.aws.kinesisanalyticsv2.kotlin.inputs.ApplicationApplicationConfigurationFlinkApplicationConfigurationParallelismConfigurationArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.kinesisanalyticsv2.kotlin.inputs

import com.pulumi.aws.kinesisanalyticsv2.inputs.ApplicationApplicationConfigurationFlinkApplicationConfigurationParallelismConfigurationArgs.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.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property autoScalingEnabled Describes whether the Kinesis Data Analytics service can increase the parallelism of the application in response to increased throughput.
 * @property configurationType Describes whether the application uses the default parallelism for the Kinesis Data Analytics service. Valid values: `CUSTOM`, `DEFAULT`. Set this attribute to `CUSTOM` in order for any specified `auto_scaling_enabled`, `parallelism`, or `parallelism_per_kpu` attribute values to be effective.
 * @property parallelism Describes the initial number of parallel tasks that a Flink-based Kinesis Data Analytics application can perform.
 * @property parallelismPerKpu Describes the number of parallel tasks that a Flink-based Kinesis Data Analytics application can perform per Kinesis Processing Unit (KPU) used by the application.
 */
public data class
ApplicationApplicationConfigurationFlinkApplicationConfigurationParallelismConfigurationArgs(
    public val autoScalingEnabled: Output? = null,
    public val configurationType: Output,
    public val parallelism: Output? = null,
    public val parallelismPerKpu: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.kinesisanalyticsv2.inputs.ApplicationApplicationConfigurationFlinkApplicationConfigurationParallelismConfigurationArgs =
        com.pulumi.aws.kinesisanalyticsv2.inputs.ApplicationApplicationConfigurationFlinkApplicationConfigurationParallelismConfigurationArgs.builder()
            .autoScalingEnabled(autoScalingEnabled?.applyValue({ args0 -> args0 }))
            .configurationType(configurationType.applyValue({ args0 -> args0 }))
            .parallelism(parallelism?.applyValue({ args0 -> args0 }))
            .parallelismPerKpu(parallelismPerKpu?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ApplicationApplicationConfigurationFlinkApplicationConfigurationParallelismConfigurationArgs].
 */
@PulumiTagMarker
public class
ApplicationApplicationConfigurationFlinkApplicationConfigurationParallelismConfigurationArgsBuilder
internal constructor() {
    private var autoScalingEnabled: Output? = null

    private var configurationType: Output? = null

    private var parallelism: Output? = null

    private var parallelismPerKpu: Output? = null

    /**
     * @param value Describes whether the Kinesis Data Analytics service can increase the parallelism of the application in response to increased throughput.
     */
    @JvmName("mjsogemmnggtficq")
    public suspend fun autoScalingEnabled(`value`: Output) {
        this.autoScalingEnabled = value
    }

    /**
     * @param value Describes whether the application uses the default parallelism for the Kinesis Data Analytics service. Valid values: `CUSTOM`, `DEFAULT`. Set this attribute to `CUSTOM` in order for any specified `auto_scaling_enabled`, `parallelism`, or `parallelism_per_kpu` attribute values to be effective.
     */
    @JvmName("vtpbbqvjqqbyslii")
    public suspend fun configurationType(`value`: Output) {
        this.configurationType = value
    }

    /**
     * @param value Describes the initial number of parallel tasks that a Flink-based Kinesis Data Analytics application can perform.
     */
    @JvmName("ultxiuoksxyrwypk")
    public suspend fun parallelism(`value`: Output) {
        this.parallelism = value
    }

    /**
     * @param value Describes the number of parallel tasks that a Flink-based Kinesis Data Analytics application can perform per Kinesis Processing Unit (KPU) used by the application.
     */
    @JvmName("rrgnuxwhjyutvqqm")
    public suspend fun parallelismPerKpu(`value`: Output) {
        this.parallelismPerKpu = value
    }

    /**
     * @param value Describes whether the Kinesis Data Analytics service can increase the parallelism of the application in response to increased throughput.
     */
    @JvmName("wojatfwtjmxoibfc")
    public suspend fun autoScalingEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoScalingEnabled = mapped
    }

    /**
     * @param value Describes whether the application uses the default parallelism for the Kinesis Data Analytics service. Valid values: `CUSTOM`, `DEFAULT`. Set this attribute to `CUSTOM` in order for any specified `auto_scaling_enabled`, `parallelism`, or `parallelism_per_kpu` attribute values to be effective.
     */
    @JvmName("yyuskiabflanwsim")
    public suspend fun configurationType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.configurationType = mapped
    }

    /**
     * @param value Describes the initial number of parallel tasks that a Flink-based Kinesis Data Analytics application can perform.
     */
    @JvmName("esjptaywaaqmbjbs")
    public suspend fun parallelism(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parallelism = mapped
    }

    /**
     * @param value Describes the number of parallel tasks that a Flink-based Kinesis Data Analytics application can perform per Kinesis Processing Unit (KPU) used by the application.
     */
    @JvmName("cpdyxludnnxioiah")
    public suspend fun parallelismPerKpu(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parallelismPerKpu = mapped
    }

    internal fun build(): ApplicationApplicationConfigurationFlinkApplicationConfigurationParallelismConfigurationArgs =
        ApplicationApplicationConfigurationFlinkApplicationConfigurationParallelismConfigurationArgs(
            autoScalingEnabled = autoScalingEnabled,
            configurationType = configurationType ?: throw PulumiNullFieldException("configurationType"),
            parallelism = parallelism,
            parallelismPerKpu = parallelismPerKpu,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy