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

com.pulumi.awsnative.lambda.kotlin.inputs.EventSourceMappingSelfManagedEventSourceArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.lambda.kotlin.inputs

import com.pulumi.awsnative.lambda.inputs.EventSourceMappingSelfManagedEventSourceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * The self-managed Apache Kafka cluster for your event source.
 * @property endpoints The list of bootstrap servers for your Kafka brokers in the following format: ``"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]``.
 */
public data class EventSourceMappingSelfManagedEventSourceArgs(
    public val endpoints: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lambda.inputs.EventSourceMappingSelfManagedEventSourceArgs =
        com.pulumi.awsnative.lambda.inputs.EventSourceMappingSelfManagedEventSourceArgs.builder()
            .endpoints(endpoints?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [EventSourceMappingSelfManagedEventSourceArgs].
 */
@PulumiTagMarker
public class EventSourceMappingSelfManagedEventSourceArgsBuilder internal constructor() {
    private var endpoints: Output? = null

    /**
     * @param value The list of bootstrap servers for your Kafka brokers in the following format: ``"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]``.
     */
    @JvmName("nafhkkikhnmmpaiq")
    public suspend fun endpoints(`value`: Output) {
        this.endpoints = value
    }

    /**
     * @param value The list of bootstrap servers for your Kafka brokers in the following format: ``"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]``.
     */
    @JvmName("fkdvukuiwyjsfppy")
    public suspend fun endpoints(`value`: EventSourceMappingEndpointsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endpoints = mapped
    }

    /**
     * @param argument The list of bootstrap servers for your Kafka brokers in the following format: ``"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]``.
     */
    @JvmName("hfpkwqwcgonmunlm")
    public suspend fun endpoints(argument: suspend EventSourceMappingEndpointsArgsBuilder.() -> Unit) {
        val toBeMapped = EventSourceMappingEndpointsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.endpoints = mapped
    }

    internal fun build(): EventSourceMappingSelfManagedEventSourceArgs =
        EventSourceMappingSelfManagedEventSourceArgs(
            endpoints = endpoints,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy