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

com.pulumi.awsnative.pipes.kotlin.inputs.PipeSourceSelfManagedKafkaParametersArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.pipes.kotlin.inputs

import com.pulumi.awsnative.pipes.inputs.PipeSourceSelfManagedKafkaParametersArgs.builder
import com.pulumi.awsnative.pipes.kotlin.enums.PipeSelfManagedKafkaStartPosition
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.Any
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property additionalBootstrapServers An array of server URLs.
 * @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 serverRootCaCertificate Optional SecretManager ARN which stores the database credentials
 * @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.
 * @property vpc This structure specifies the VPC subnets and security groups for the stream, and whether a public IP address is to be used.
 */
public data class PipeSourceSelfManagedKafkaParametersArgs(
    public val additionalBootstrapServers: Output>? = null,
    public val batchSize: Output? = null,
    public val consumerGroupId: Output? = null,
    public val credentials: Output? = null,
    public val maximumBatchingWindowInSeconds: Output? = null,
    public val serverRootCaCertificate: Output? = null,
    public val startingPosition: Output? = null,
    public val topicName: Output,
    public val vpc: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.pipes.inputs.PipeSourceSelfManagedKafkaParametersArgs = com.pulumi.awsnative.pipes.inputs.PipeSourceSelfManagedKafkaParametersArgs.builder()
        .additionalBootstrapServers(
            additionalBootstrapServers?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0
                })
            }),
        )
        .batchSize(batchSize?.applyValue({ args0 -> args0 }))
        .consumerGroupId(consumerGroupId?.applyValue({ args0 -> args0 }))
        .credentials(credentials?.applyValue({ args0 -> args0 }))
        .maximumBatchingWindowInSeconds(maximumBatchingWindowInSeconds?.applyValue({ args0 -> args0 }))
        .serverRootCaCertificate(serverRootCaCertificate?.applyValue({ args0 -> args0 }))
        .startingPosition(startingPosition?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .topicName(topicName.applyValue({ args0 -> args0 }))
        .vpc(vpc?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var batchSize: Output? = null

    private var consumerGroupId: Output? = null

    private var credentials: Output? = null

    private var maximumBatchingWindowInSeconds: Output? = null

    private var serverRootCaCertificate: Output? = null

    private var startingPosition: Output? = null

    private var topicName: Output? = null

    private var vpc: Output? = null

    /**
     * @param value An array of server URLs.
     */
    @JvmName("lrynkkfyywjmukee")
    public suspend fun additionalBootstrapServers(`value`: Output>) {
        this.additionalBootstrapServers = value
    }

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

    /**
     * @param values An array of server URLs.
     */
    @JvmName("hmurcjkaeennunbx")
    public suspend fun additionalBootstrapServers(values: List>) {
        this.additionalBootstrapServers = Output.all(values)
    }

    /**
     * @param value The maximum number of records to include in each batch.
     */
    @JvmName("ycqtuskcpljjwaoi")
    public suspend fun batchSize(`value`: Output) {
        this.batchSize = value
    }

    /**
     * @param value The name of the destination queue to consume.
     */
    @JvmName("wqmweanrkmecxxby")
    public suspend fun consumerGroupId(`value`: Output) {
        this.consumerGroupId = value
    }

    /**
     * @param value The credentials needed to access the resource.
     */
    @JvmName("dskkwehektaelqvf")
    public suspend fun credentials(`value`: Output) {
        this.credentials = value
    }

    /**
     * @param value The maximum length of a time to wait for events.
     */
    @JvmName("ildrlrjnggibcsse")
    public suspend fun maximumBatchingWindowInSeconds(`value`: Output) {
        this.maximumBatchingWindowInSeconds = value
    }

    /**
     * @param value Optional SecretManager ARN which stores the database credentials
     */
    @JvmName("ieqgjmhfregdlpfg")
    public suspend fun serverRootCaCertificate(`value`: Output) {
        this.serverRootCaCertificate = value
    }

    /**
     * @param value (Streams only) The position in a stream from which to start reading.
     */
    @JvmName("fkryujnwfwdhfswm")
    public suspend fun startingPosition(`value`: Output) {
        this.startingPosition = value
    }

    /**
     * @param value The name of the topic that the pipe will read from.
     */
    @JvmName("heeacypcpkeqxvlx")
    public suspend fun topicName(`value`: Output) {
        this.topicName = value
    }

    /**
     * @param value This structure specifies the VPC subnets and security groups for the stream, and whether a public IP address is to be used.
     */
    @JvmName("cltfadbcxlkbjgcn")
    public suspend fun vpc(`value`: Output) {
        this.vpc = value
    }

    /**
     * @param value An array of server URLs.
     */
    @JvmName("ehhrnprhwycifiif")
    public suspend fun additionalBootstrapServers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.additionalBootstrapServers = mapped
    }

    /**
     * @param values An array of server URLs.
     */
    @JvmName("leyaourehhcujfbs")
    public suspend fun additionalBootstrapServers(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.additionalBootstrapServers = mapped
    }

    /**
     * @param value The maximum number of records to include in each batch.
     */
    @JvmName("dexwktbwhdelvuor")
    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("fikjwxwxivgyjqwx")
    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("nduvhcyxbthmttlw")
    public suspend fun credentials(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.credentials = mapped
    }

    /**
     * @param value The maximum length of a time to wait for events.
     */
    @JvmName("kysekgkdhrkjcixo")
    public suspend fun maximumBatchingWindowInSeconds(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maximumBatchingWindowInSeconds = mapped
    }

    /**
     * @param value Optional SecretManager ARN which stores the database credentials
     */
    @JvmName("rqngvhmtapgilwqd")
    public suspend fun serverRootCaCertificate(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serverRootCaCertificate = mapped
    }

    /**
     * @param value (Streams only) The position in a stream from which to start reading.
     */
    @JvmName("ahjpmrasfbyvpjnk")
    public suspend fun startingPosition(`value`: PipeSelfManagedKafkaStartPosition?) {
        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("sgnuglyfagisbxkx")
    public suspend fun topicName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.topicName = mapped
    }

    /**
     * @param value This structure specifies the VPC subnets and security groups for the stream, and whether a public IP address is to be used.
     */
    @JvmName("clrbaqxeyrbmawvh")
    public suspend fun vpc(`value`: PipeSelfManagedKafkaAccessConfigurationVpcArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpc = mapped
    }

    /**
     * @param argument This structure specifies the VPC subnets and security groups for the stream, and whether a public IP address is to be used.
     */
    @JvmName("iokghomtscytufgm")
    public suspend fun vpc(argument: suspend PipeSelfManagedKafkaAccessConfigurationVpcArgsBuilder.() -> Unit) {
        val toBeMapped = PipeSelfManagedKafkaAccessConfigurationVpcArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.vpc = mapped
    }

    internal fun build(): PipeSourceSelfManagedKafkaParametersArgs =
        PipeSourceSelfManagedKafkaParametersArgs(
            additionalBootstrapServers = additionalBootstrapServers,
            batchSize = batchSize,
            consumerGroupId = consumerGroupId,
            credentials = credentials,
            maximumBatchingWindowInSeconds = maximumBatchingWindowInSeconds,
            serverRootCaCertificate = serverRootCaCertificate,
            startingPosition = startingPosition,
            topicName = topicName ?: throw PulumiNullFieldException("topicName"),
            vpc = vpc,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy