
com.pulumi.awsnative.pipes.kotlin.inputs.PipeSourceManagedStreamingKafkaParametersArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.pipes.kotlin.inputs
import com.pulumi.awsnative.pipes.inputs.PipeSourceManagedStreamingKafkaParametersArgs.builder
import com.pulumi.awsnative.pipes.kotlin.enums.PipeMskStartPosition
import com.pulumi.core.Either
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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property batchSize The maximum number of records to include in each batch.
* @property consumerGroupId The name of the destination queue to consume.
* @property credentials The credentials needed to access the resource.
* @property maximumBatchingWindowInSeconds The maximum length of a time to wait for events.
* @property startingPosition (Streams only) The position in a stream from which to start reading.
* @property topicName The name of the topic that the pipe will read from.
*/
public data class PipeSourceManagedStreamingKafkaParametersArgs(
public val batchSize: Output? = null,
public val consumerGroupId: Output? = null,
public val credentials: Output>? =
null,
public val maximumBatchingWindowInSeconds: Output? = null,
public val startingPosition: Output? = null,
public val topicName: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.pipes.inputs.PipeSourceManagedStreamingKafkaParametersArgs =
com.pulumi.awsnative.pipes.inputs.PipeSourceManagedStreamingKafkaParametersArgs.builder()
.batchSize(batchSize?.applyValue({ args0 -> args0 }))
.consumerGroupId(consumerGroupId?.applyValue({ args0 -> args0 }))
.credentials(
credentials?.applyValue({ args0 ->
args0.transform({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}, { args0 -> args0.let({ args0 -> args0.toJava() }) })
}),
)
.maximumBatchingWindowInSeconds(maximumBatchingWindowInSeconds?.applyValue({ args0 -> args0 }))
.startingPosition(startingPosition?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.topicName(topicName.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PipeSourceManagedStreamingKafkaParametersArgs].
*/
@PulumiTagMarker
public class PipeSourceManagedStreamingKafkaParametersArgsBuilder internal constructor() {
private var batchSize: Output? = null
private var consumerGroupId: Output? = null
private var credentials:
Output>? =
null
private var maximumBatchingWindowInSeconds: Output? = null
private var startingPosition: Output? = null
private var topicName: Output? = null
/**
* @param value The maximum number of records to include in each batch.
*/
@JvmName("vjxtlwkofqkvhons")
public suspend fun batchSize(`value`: Output) {
this.batchSize = value
}
/**
* @param value The name of the destination queue to consume.
*/
@JvmName("giobnrraulhqnnca")
public suspend fun consumerGroupId(`value`: Output) {
this.consumerGroupId = value
}
/**
* @param value The credentials needed to access the resource.
*/
@JvmName("sqydvtmlentrdlfb")
public suspend fun credentials(`value`: Output>) {
this.credentials = value
}
/**
* @param value The maximum length of a time to wait for events.
*/
@JvmName("dqciprpdwgboyqbr")
public suspend fun maximumBatchingWindowInSeconds(`value`: Output) {
this.maximumBatchingWindowInSeconds = value
}
/**
* @param value (Streams only) The position in a stream from which to start reading.
*/
@JvmName("owisktojjstunxol")
public suspend fun startingPosition(`value`: Output) {
this.startingPosition = value
}
/**
* @param value The name of the topic that the pipe will read from.
*/
@JvmName("xwcabgjdnhfkkktl")
public suspend fun topicName(`value`: Output) {
this.topicName = value
}
/**
* @param value The maximum number of records to include in each batch.
*/
@JvmName("ugpwjwyxonqwawuo")
public suspend fun batchSize(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.batchSize = mapped
}
/**
* @param value The name of the destination queue to consume.
*/
@JvmName("mrshmtidiqvtqprq")
public suspend fun consumerGroupId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.consumerGroupId = mapped
}
/**
* @param value The credentials needed to access the resource.
*/
@JvmName("ofbeeaohjftkkfdt")
public suspend fun credentials(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.credentials = mapped
}
/**
* @param value The credentials needed to access the resource.
*/
@JvmName("upedxpklgadrnwgx")
public fun credentials(`value`: PipeMskAccessCredentials0PropertiesArgs) {
val toBeMapped = Either.ofLeft<
PipeMskAccessCredentials0PropertiesArgs,
PipeMskAccessCredentials1PropertiesArgs,
>(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.credentials = mapped
}
/**
* @param value The credentials needed to access the resource.
*/
@JvmName("vmfvberrdraeebrq")
public fun credentials(`value`: PipeMskAccessCredentials1PropertiesArgs) {
val toBeMapped = Either.ofRight<
PipeMskAccessCredentials0PropertiesArgs,
PipeMskAccessCredentials1PropertiesArgs,
>(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.credentials = mapped
}
/**
* @param value The maximum length of a time to wait for events.
*/
@JvmName("wgjsldemsfsyuudc")
public suspend fun maximumBatchingWindowInSeconds(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maximumBatchingWindowInSeconds = mapped
}
/**
* @param value (Streams only) The position in a stream from which to start reading.
*/
@JvmName("jsrsykqcxnpgmqtp")
public suspend fun startingPosition(`value`: PipeMskStartPosition?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.startingPosition = mapped
}
/**
* @param value The name of the topic that the pipe will read from.
*/
@JvmName("kaenfuubvckciljo")
public suspend fun topicName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.topicName = mapped
}
internal fun build(): PipeSourceManagedStreamingKafkaParametersArgs =
PipeSourceManagedStreamingKafkaParametersArgs(
batchSize = batchSize,
consumerGroupId = consumerGroupId,
credentials = credentials,
maximumBatchingWindowInSeconds = maximumBatchingWindowInSeconds,
startingPosition = startingPosition,
topicName = topicName ?: throw PulumiNullFieldException("topicName"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy