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

com.pulumi.awsnative.kinesisanalyticsv2.kotlin.inputs.ApplicationParallelismConfigurationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.kinesisanalyticsv2.kotlin.inputs

import com.pulumi.awsnative.kinesisanalyticsv2.inputs.ApplicationParallelismConfigurationArgs.builder
import com.pulumi.awsnative.kinesisanalyticsv2.kotlin.enums.ApplicationParallelismConfigurationConfigurationType
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.Suppress
import kotlin.jvm.JvmName

/**
 * Describes parameters for how a Flink-based Kinesis Data Analytics application executes multiple tasks simultaneously. For more information about parallelism, see Parallel Execution in the Apache Flink Documentation
 * @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. You must set this property to `CUSTOM` in order to change your application's `AutoScalingEnabled`, `Parallelism`, or `ParallelismPerKPU` properties.
 * @property parallelism Describes the initial number of parallel tasks that a Java-based Kinesis Data Analytics application can perform. The Kinesis Data Analytics service can increase this number automatically if ParallelismConfiguration:AutoScalingEnabled is set to true.
 * @property parallelismPerKpu Describes the number of parallel tasks that a Java-based Kinesis Data Analytics application can perform per Kinesis Processing Unit (KPU) used by the application. For more information about KPUs, see Amazon Kinesis Data Analytics Pricing.
 */
public data class ApplicationParallelismConfigurationArgs(
    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.awsnative.kinesisanalyticsv2.inputs.ApplicationParallelismConfigurationArgs =
        com.pulumi.awsnative.kinesisanalyticsv2.inputs.ApplicationParallelismConfigurationArgs.builder()
            .autoScalingEnabled(autoScalingEnabled?.applyValue({ args0 -> args0 }))
            .configurationType(configurationType.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .parallelism(parallelism?.applyValue({ args0 -> args0 }))
            .parallelismPerKpu(parallelismPerKpu?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ApplicationParallelismConfigurationArgs].
 */
@PulumiTagMarker
public class ApplicationParallelismConfigurationArgsBuilder 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("tosxihtuwbowsomk")
    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. You must set this property to `CUSTOM` in order to change your application's `AutoScalingEnabled`, `Parallelism`, or `ParallelismPerKPU` properties.
     */
    @JvmName("arkjddhnfmuyctpv")
    public suspend fun configurationType(`value`: Output) {
        this.configurationType = value
    }

    /**
     * @param value Describes the initial number of parallel tasks that a Java-based Kinesis Data Analytics application can perform. The Kinesis Data Analytics service can increase this number automatically if ParallelismConfiguration:AutoScalingEnabled is set to true.
     */
    @JvmName("vuncrgjdcdnoqfgf")
    public suspend fun parallelism(`value`: Output) {
        this.parallelism = value
    }

    /**
     * @param value Describes the number of parallel tasks that a Java-based Kinesis Data Analytics application can perform per Kinesis Processing Unit (KPU) used by the application. For more information about KPUs, see Amazon Kinesis Data Analytics Pricing.
     */
    @JvmName("pjfpgbafowbnjjoq")
    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("eclvifekaewytbna")
    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. You must set this property to `CUSTOM` in order to change your application's `AutoScalingEnabled`, `Parallelism`, or `ParallelismPerKPU` properties.
     */
    @JvmName("bqnpxfbphnmupygo")
    public suspend fun configurationType(`value`: ApplicationParallelismConfigurationConfigurationType) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.configurationType = mapped
    }

    /**
     * @param value Describes the initial number of parallel tasks that a Java-based Kinesis Data Analytics application can perform. The Kinesis Data Analytics service can increase this number automatically if ParallelismConfiguration:AutoScalingEnabled is set to true.
     */
    @JvmName("bsjplebxhhqrhglg")
    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 Java-based Kinesis Data Analytics application can perform per Kinesis Processing Unit (KPU) used by the application. For more information about KPUs, see Amazon Kinesis Data Analytics Pricing.
     */
    @JvmName("gimujkrakcprirqh")
    public suspend fun parallelismPerKpu(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parallelismPerKpu = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy