com.pulumi.awsnative.pipes.kotlin.outputs.PipeSourceManagedStreamingKafkaParameters.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.outputs
import com.pulumi.awsnative.pipes.kotlin.enums.PipeMskStartPosition
import com.pulumi.core.Either
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @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 PipeSourceManagedStreamingKafkaParameters(
public val batchSize: Int? = null,
public val consumerGroupId: String? = null,
public val credentials: Either? = null,
public val maximumBatchingWindowInSeconds: Int? = null,
public val startingPosition: PipeMskStartPosition? = null,
public val topicName: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.pipes.outputs.PipeSourceManagedStreamingKafkaParameters): PipeSourceManagedStreamingKafkaParameters = PipeSourceManagedStreamingKafkaParameters(
batchSize = javaType.batchSize().map({ args0 -> args0 }).orElse(null),
consumerGroupId = javaType.consumerGroupId().map({ args0 -> args0 }).orElse(null),
credentials = javaType.credentials().map({ args0 ->
args0.transform(
{ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.pipes.kotlin.outputs.PipeMskAccessCredentials0Properties.Companion.toKotlin(args0)
})
},
{ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.pipes.kotlin.outputs.PipeMskAccessCredentials1Properties.Companion.toKotlin(args0)
})
},
)
}).orElse(null),
maximumBatchingWindowInSeconds = javaType.maximumBatchingWindowInSeconds().map({ args0 ->
args0
}).orElse(null),
startingPosition = javaType.startingPosition().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.pipes.kotlin.enums.PipeMskStartPosition.Companion.toKotlin(args0)
})
}).orElse(null),
topicName = javaType.topicName(),
)
}
}