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

com.pulumi.aws.kinesisanalyticsv2.kotlin.inputs.ApplicationApplicationConfigurationSqlApplicationConfigurationInputArgs.kt Maven / Gradle / Ivy

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

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

import com.pulumi.aws.kinesisanalyticsv2.inputs.ApplicationApplicationConfigurationSqlApplicationConfigurationInputArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property inAppStreamNames
 * @property inputId
 * @property inputParallelism Describes the number of in-application streams to create.
 * @property inputProcessingConfiguration The input processing configuration for the input.
 * An input processor transforms records as they are received from the stream, before the application's SQL code executes.
 * @property inputSchema Describes the format of the data in the streaming source, and how each data element maps to corresponding columns in the in-application stream that is being created.
 * @property inputStartingPositionConfigurations The point at which the application starts processing records from the streaming source.
 * @property kinesisFirehoseInput If the streaming source is a Kinesis Data Firehose delivery stream, identifies the delivery stream's ARN.
 * @property kinesisStreamsInput If the streaming source is a Kinesis data stream, identifies the stream's Amazon Resource Name (ARN).
 * @property namePrefix The name prefix to use when creating an in-application stream.
 */
public data class ApplicationApplicationConfigurationSqlApplicationConfigurationInputArgs(
    public val inAppStreamNames: Output>? = null,
    public val inputId: Output? = null,
    public val inputParallelism: Output? =
        null,
    public val inputProcessingConfiguration: Output? =
        null,
    public val inputSchema: Output,
    public val inputStartingPositionConfigurations: Output>? =
        null,
    public val kinesisFirehoseInput: Output? =
        null,
    public val kinesisStreamsInput: Output? =
        null,
    public val namePrefix: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.kinesisanalyticsv2.inputs.ApplicationApplicationConfigurationSqlApplicationConfigurationInputArgs =
        com.pulumi.aws.kinesisanalyticsv2.inputs.ApplicationApplicationConfigurationSqlApplicationConfigurationInputArgs.builder()
            .inAppStreamNames(inAppStreamNames?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .inputId(inputId?.applyValue({ args0 -> args0 }))
            .inputParallelism(inputParallelism?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .inputProcessingConfiguration(
                inputProcessingConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .inputSchema(inputSchema.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .inputStartingPositionConfigurations(
                inputStartingPositionConfigurations?.applyValue({ args0 ->
                    args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .kinesisFirehoseInput(
                kinesisFirehoseInput?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .kinesisStreamsInput(
                kinesisStreamsInput?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .namePrefix(namePrefix.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ApplicationApplicationConfigurationSqlApplicationConfigurationInputArgs].
 */
@PulumiTagMarker
public class ApplicationApplicationConfigurationSqlApplicationConfigurationInputArgsBuilder internal constructor() {
    private var inAppStreamNames: Output>? = null

    private var inputId: Output? = null

    private var inputParallelism:
        Output? =
        null

    private var inputProcessingConfiguration:
        Output? =
        null

    private var inputSchema:
        Output? =
        null

    private var inputStartingPositionConfigurations:
        Output>? =
        null

    private var kinesisFirehoseInput:
        Output? =
        null

    private var kinesisStreamsInput:
        Output? =
        null

    private var namePrefix: Output? = null

    /**
     * @param value
     */
    @JvmName("iucevdejlotxerjo")
    public suspend fun inAppStreamNames(`value`: Output>) {
        this.inAppStreamNames = value
    }

    @JvmName("tbclglwayvjccsjl")
    public suspend fun inAppStreamNames(vararg values: Output) {
        this.inAppStreamNames = Output.all(values.asList())
    }

    /**
     * @param values
     */
    @JvmName("jmvtrnpqgdpjpsbw")
    public suspend fun inAppStreamNames(values: List>) {
        this.inAppStreamNames = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("rgoelccgqnqliwpt")
    public suspend fun inputId(`value`: Output) {
        this.inputId = value
    }

    /**
     * @param value Describes the number of in-application streams to create.
     */
    @JvmName("hhwfojgwrvbrdypg")
    public suspend fun inputParallelism(`value`: Output) {
        this.inputParallelism = value
    }

    /**
     * @param value The input processing configuration for the input.
     * An input processor transforms records as they are received from the stream, before the application's SQL code executes.
     */
    @JvmName("camahxtprgsidwye")
    public suspend fun inputProcessingConfiguration(`value`: Output) {
        this.inputProcessingConfiguration = value
    }

    /**
     * @param value Describes the format of the data in the streaming source, and how each data element maps to corresponding columns in the in-application stream that is being created.
     */
    @JvmName("efscgmakxafaerqw")
    public suspend fun inputSchema(`value`: Output) {
        this.inputSchema = value
    }

    /**
     * @param value The point at which the application starts processing records from the streaming source.
     */
    @JvmName("cgemlmngcshsxnqn")
    public suspend fun inputStartingPositionConfigurations(`value`: Output>) {
        this.inputStartingPositionConfigurations = value
    }

    @JvmName("qvdwlteigxbsferh")
    public suspend fun inputStartingPositionConfigurations(vararg values: Output) {
        this.inputStartingPositionConfigurations = Output.all(values.asList())
    }

    /**
     * @param values The point at which the application starts processing records from the streaming source.
     */
    @JvmName("wkwqdfxymryptuqo")
    public suspend fun inputStartingPositionConfigurations(values: List>) {
        this.inputStartingPositionConfigurations = Output.all(values)
    }

    /**
     * @param value If the streaming source is a Kinesis Data Firehose delivery stream, identifies the delivery stream's ARN.
     */
    @JvmName("jhktetrhyvjyxkna")
    public suspend fun kinesisFirehoseInput(`value`: Output) {
        this.kinesisFirehoseInput = value
    }

    /**
     * @param value If the streaming source is a Kinesis data stream, identifies the stream's Amazon Resource Name (ARN).
     */
    @JvmName("urdmameajmgnlfaf")
    public suspend fun kinesisStreamsInput(`value`: Output) {
        this.kinesisStreamsInput = value
    }

    /**
     * @param value The name prefix to use when creating an in-application stream.
     */
    @JvmName("ddpnbqquccpjhtdx")
    public suspend fun namePrefix(`value`: Output) {
        this.namePrefix = value
    }

    /**
     * @param value
     */
    @JvmName("esndrhtudplhywch")
    public suspend fun inAppStreamNames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inAppStreamNames = mapped
    }

    /**
     * @param values
     */
    @JvmName("rdryetbtlxnueyjp")
    public suspend fun inAppStreamNames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.inAppStreamNames = mapped
    }

    /**
     * @param value
     */
    @JvmName("fyindocpoqoielsf")
    public suspend fun inputId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inputId = mapped
    }

    /**
     * @param value Describes the number of in-application streams to create.
     */
    @JvmName("bcgdubvlbyxegfsp")
    public suspend fun inputParallelism(`value`: ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputParallelismArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inputParallelism = mapped
    }

    /**
     * @param argument Describes the number of in-application streams to create.
     */
    @JvmName("ujhpksbptrbunnle")
    public suspend fun inputParallelism(argument: suspend ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputParallelismArgsBuilder.() -> Unit) {
        val toBeMapped =
            ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputParallelismArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.inputParallelism = mapped
    }

    /**
     * @param value The input processing configuration for the input.
     * An input processor transforms records as they are received from the stream, before the application's SQL code executes.
     */
    @JvmName("gwlaiupjqnrcofls")
    public suspend fun inputProcessingConfiguration(`value`: ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputProcessingConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inputProcessingConfiguration = mapped
    }

    /**
     * @param argument The input processing configuration for the input.
     * An input processor transforms records as they are received from the stream, before the application's SQL code executes.
     */
    @JvmName("arbtfrsostienbfh")
    public suspend fun inputProcessingConfiguration(argument: suspend ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputProcessingConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped =
            ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputProcessingConfigurationArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.inputProcessingConfiguration = mapped
    }

    /**
     * @param value Describes the format of the data in the streaming source, and how each data element maps to corresponding columns in the in-application stream that is being created.
     */
    @JvmName("ighqvhmeisofpqki")
    public suspend fun inputSchema(`value`: ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputSchemaArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.inputSchema = mapped
    }

    /**
     * @param argument Describes the format of the data in the streaming source, and how each data element maps to corresponding columns in the in-application stream that is being created.
     */
    @JvmName("ryqhlwheimcgqict")
    public suspend fun inputSchema(argument: suspend ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputSchemaArgsBuilder.() -> Unit) {
        val toBeMapped =
            ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputSchemaArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.inputSchema = mapped
    }

    /**
     * @param value The point at which the application starts processing records from the streaming source.
     */
    @JvmName("wolxwwdkandlyvdc")
    public suspend fun inputStartingPositionConfigurations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inputStartingPositionConfigurations = mapped
    }

    /**
     * @param argument The point at which the application starts processing records from the streaming source.
     */
    @JvmName("rhrfbibqvdxhghfb")
    public suspend fun inputStartingPositionConfigurations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputStartingPositionConfigurationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.inputStartingPositionConfigurations = mapped
    }

    /**
     * @param argument The point at which the application starts processing records from the streaming source.
     */
    @JvmName("tqwviragnwxosscc")
    public suspend fun inputStartingPositionConfigurations(vararg argument: suspend ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputStartingPositionConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputStartingPositionConfigurationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.inputStartingPositionConfigurations = mapped
    }

    /**
     * @param argument The point at which the application starts processing records from the streaming source.
     */
    @JvmName("qpkhjdsytbjwrunh")
    public suspend fun inputStartingPositionConfigurations(argument: suspend ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputStartingPositionConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputStartingPositionConfigurationArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.inputStartingPositionConfigurations = mapped
    }

    /**
     * @param values The point at which the application starts processing records from the streaming source.
     */
    @JvmName("qendslctbtuqcsek")
    public suspend fun inputStartingPositionConfigurations(vararg values: ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputStartingPositionConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.inputStartingPositionConfigurations = mapped
    }

    /**
     * @param value If the streaming source is a Kinesis Data Firehose delivery stream, identifies the delivery stream's ARN.
     */
    @JvmName("wqgasnsokpysnqji")
    public suspend fun kinesisFirehoseInput(`value`: ApplicationApplicationConfigurationSqlApplicationConfigurationInputKinesisFirehoseInputArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kinesisFirehoseInput = mapped
    }

    /**
     * @param argument If the streaming source is a Kinesis Data Firehose delivery stream, identifies the delivery stream's ARN.
     */
    @JvmName("xsntpgmilpslscqg")
    public suspend fun kinesisFirehoseInput(argument: suspend ApplicationApplicationConfigurationSqlApplicationConfigurationInputKinesisFirehoseInputArgsBuilder.() -> Unit) {
        val toBeMapped =
            ApplicationApplicationConfigurationSqlApplicationConfigurationInputKinesisFirehoseInputArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.kinesisFirehoseInput = mapped
    }

    /**
     * @param value If the streaming source is a Kinesis data stream, identifies the stream's Amazon Resource Name (ARN).
     */
    @JvmName("srwqvxalujqauslb")
    public suspend fun kinesisStreamsInput(`value`: ApplicationApplicationConfigurationSqlApplicationConfigurationInputKinesisStreamsInputArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kinesisStreamsInput = mapped
    }

    /**
     * @param argument If the streaming source is a Kinesis data stream, identifies the stream's Amazon Resource Name (ARN).
     */
    @JvmName("jelwlhgiakvbfiqr")
    public suspend fun kinesisStreamsInput(argument: suspend ApplicationApplicationConfigurationSqlApplicationConfigurationInputKinesisStreamsInputArgsBuilder.() -> Unit) {
        val toBeMapped =
            ApplicationApplicationConfigurationSqlApplicationConfigurationInputKinesisStreamsInputArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.kinesisStreamsInput = mapped
    }

    /**
     * @param value The name prefix to use when creating an in-application stream.
     */
    @JvmName("inqsicuwxcwnbywx")
    public suspend fun namePrefix(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.namePrefix = mapped
    }

    internal fun build(): ApplicationApplicationConfigurationSqlApplicationConfigurationInputArgs =
        ApplicationApplicationConfigurationSqlApplicationConfigurationInputArgs(
            inAppStreamNames = inAppStreamNames,
            inputId = inputId,
            inputParallelism = inputParallelism,
            inputProcessingConfiguration = inputProcessingConfiguration,
            inputSchema = inputSchema ?: throw PulumiNullFieldException("inputSchema"),
            inputStartingPositionConfigurations = inputStartingPositionConfigurations,
            kinesisFirehoseInput = kinesisFirehoseInput,
            kinesisStreamsInput = kinesisStreamsInput,
            namePrefix = namePrefix ?: throw PulumiNullFieldException("namePrefix"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy