
com.pulumi.aws.pipes.kotlin.inputs.PipeSourceParametersManagedStreamingKafkaParametersArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.pipes.kotlin.inputs
import com.pulumi.aws.pipes.inputs.PipeSourceParametersManagedStreamingKafkaParametersArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property batchSize The maximum number of records to include in each batch. Maximum value of 10000.
* @property consumerGroupId The name of the destination queue to consume. Maximum value of 200.
* @property credentials The credentials needed to access the resource. Detailed below.
* @property maximumBatchingWindowInSeconds The maximum length of a time to wait for events. Maximum value of 300.
* @property startingPosition The position in a stream from which to start reading. Valid values: TRIM_HORIZON, LATEST.
* @property topicName The name of the topic that the pipe will read from. Maximum length of 249.
*/
public data class PipeSourceParametersManagedStreamingKafkaParametersArgs(
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.aws.pipes.inputs.PipeSourceParametersManagedStreamingKafkaParametersArgs =
com.pulumi.aws.pipes.inputs.PipeSourceParametersManagedStreamingKafkaParametersArgs.builder()
.batchSize(batchSize?.applyValue({ args0 -> args0 }))
.consumerGroupId(consumerGroupId?.applyValue({ args0 -> args0 }))
.credentials(credentials?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.maximumBatchingWindowInSeconds(maximumBatchingWindowInSeconds?.applyValue({ args0 -> args0 }))
.startingPosition(startingPosition?.applyValue({ args0 -> args0 }))
.topicName(topicName.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PipeSourceParametersManagedStreamingKafkaParametersArgs].
*/
@PulumiTagMarker
public class PipeSourceParametersManagedStreamingKafkaParametersArgsBuilder 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. Maximum value of 10000.
*/
@JvmName("giolrbuuumorehxt")
public suspend fun batchSize(`value`: Output) {
this.batchSize = value
}
/**
* @param value The name of the destination queue to consume. Maximum value of 200.
*/
@JvmName("skymdcbxpvgllyqe")
public suspend fun consumerGroupId(`value`: Output) {
this.consumerGroupId = value
}
/**
* @param value The credentials needed to access the resource. Detailed below.
*/
@JvmName("tnxqtfyvbrtwjwxf")
public suspend fun credentials(`value`: Output) {
this.credentials = value
}
/**
* @param value The maximum length of a time to wait for events. Maximum value of 300.
*/
@JvmName("kvxjbimveqkuahnc")
public suspend fun maximumBatchingWindowInSeconds(`value`: Output) {
this.maximumBatchingWindowInSeconds = value
}
/**
* @param value The position in a stream from which to start reading. Valid values: TRIM_HORIZON, LATEST.
*/
@JvmName("heikvfcbcgyajpqh")
public suspend fun startingPosition(`value`: Output) {
this.startingPosition = value
}
/**
* @param value The name of the topic that the pipe will read from. Maximum length of 249.
*/
@JvmName("lrlakmcwwtpwbkmf")
public suspend fun topicName(`value`: Output) {
this.topicName = value
}
/**
* @param value The maximum number of records to include in each batch. Maximum value of 10000.
*/
@JvmName("dgprdllcwkrulddv")
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. Maximum value of 200.
*/
@JvmName("ftqalydqcikkjfyu")
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. Detailed below.
*/
@JvmName("xxcdkentkfgdyhis")
public suspend fun credentials(`value`: PipeSourceParametersManagedStreamingKafkaParametersCredentialsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.credentials = mapped
}
/**
* @param argument The credentials needed to access the resource. Detailed below.
*/
@JvmName("nkdyrdubgxvnsjdh")
public suspend fun credentials(argument: suspend PipeSourceParametersManagedStreamingKafkaParametersCredentialsArgsBuilder.() -> Unit) {
val toBeMapped =
PipeSourceParametersManagedStreamingKafkaParametersCredentialsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.credentials = mapped
}
/**
* @param value The maximum length of a time to wait for events. Maximum value of 300.
*/
@JvmName("uicavuxwqbhwnnlc")
public suspend fun maximumBatchingWindowInSeconds(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maximumBatchingWindowInSeconds = mapped
}
/**
* @param value The position in a stream from which to start reading. Valid values: TRIM_HORIZON, LATEST.
*/
@JvmName("gansfdfhjrkirylt")
public suspend fun startingPosition(`value`: String?) {
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. Maximum length of 249.
*/
@JvmName("vvwyevaablvotbum")
public suspend fun topicName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.topicName = mapped
}
internal fun build(): PipeSourceParametersManagedStreamingKafkaParametersArgs =
PipeSourceParametersManagedStreamingKafkaParametersArgs(
batchSize = batchSize,
consumerGroupId = consumerGroupId,
credentials = credentials,
maximumBatchingWindowInSeconds = maximumBatchingWindowInSeconds,
startingPosition = startingPosition,
topicName = topicName ?: throw PulumiNullFieldException("topicName"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy