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

com.pulumi.awsnative.msk.kotlin.ServerlessClusterArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.msk.kotlin

import com.pulumi.awsnative.msk.ServerlessClusterArgs.builder
import com.pulumi.awsnative.msk.kotlin.inputs.ServerlessClusterClientAuthenticationArgs
import com.pulumi.awsnative.msk.kotlin.inputs.ServerlessClusterClientAuthenticationArgsBuilder
import com.pulumi.awsnative.msk.kotlin.inputs.ServerlessClusterVpcConfigArgs
import com.pulumi.awsnative.msk.kotlin.inputs.ServerlessClusterVpcConfigArgsBuilder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::MSK::ServerlessCluster
 * @property clientAuthentication Includes all client authentication information.
 * @property clusterName
 * @property tags A key-value pair to associate with a resource.
 * @property vpcConfigs
 */
public data class ServerlessClusterArgs(
    public val clientAuthentication: Output? = null,
    public val clusterName: Output? = null,
    public val tags: Output>? = null,
    public val vpcConfigs: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.msk.ServerlessClusterArgs =
        com.pulumi.awsnative.msk.ServerlessClusterArgs.builder()
            .clientAuthentication(
                clientAuthentication?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .clusterName(clusterName?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .vpcConfigs(
                vpcConfigs?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ServerlessClusterArgs].
 */
@PulumiTagMarker
public class ServerlessClusterArgsBuilder internal constructor() {
    private var clientAuthentication: Output? = null

    private var clusterName: Output? = null

    private var tags: Output>? = null

    private var vpcConfigs: Output>? = null

    /**
     * @param value Includes all client authentication information.
     */
    @JvmName("ofdgmileltlekgcq")
    public suspend fun clientAuthentication(`value`: Output) {
        this.clientAuthentication = value
    }

    /**
     * @param value
     */
    @JvmName("cxrqapyxlxkyylij")
    public suspend fun clusterName(`value`: Output) {
        this.clusterName = value
    }

    /**
     * @param value A key-value pair to associate with a resource.
     */
    @JvmName("ynohpgfmpmxcejla")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value
     */
    @JvmName("engwiqifxcwtxyda")
    public suspend fun vpcConfigs(`value`: Output>) {
        this.vpcConfigs = value
    }

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

    /**
     * @param values
     */
    @JvmName("upludsoupirfqnia")
    public suspend fun vpcConfigs(values: List>) {
        this.vpcConfigs = Output.all(values)
    }

    /**
     * @param value Includes all client authentication information.
     */
    @JvmName("tpjbpbubujpdpqjt")
    public suspend fun clientAuthentication(`value`: ServerlessClusterClientAuthenticationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientAuthentication = mapped
    }

    /**
     * @param argument Includes all client authentication information.
     */
    @JvmName("hejalcfyjffjkdbb")
    public suspend fun clientAuthentication(argument: suspend ServerlessClusterClientAuthenticationArgsBuilder.() -> Unit) {
        val toBeMapped = ServerlessClusterClientAuthenticationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.clientAuthentication = mapped
    }

    /**
     * @param value
     */
    @JvmName("ywdgigbahsihrhjd")
    public suspend fun clusterName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clusterName = mapped
    }

    /**
     * @param value A key-value pair to associate with a resource.
     */
    @JvmName("jhrqusmglgujxxef")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A key-value pair to associate with a resource.
     */
    @JvmName("yhedrtduwqrmbelb")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value
     */
    @JvmName("uuwhkennywffpeav")
    public suspend fun vpcConfigs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcConfigs = mapped
    }

    /**
     * @param argument
     */
    @JvmName("wfauunthtflgvuxv")
    public suspend fun vpcConfigs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ServerlessClusterVpcConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.vpcConfigs = mapped
    }

    /**
     * @param argument
     */
    @JvmName("lppqofmbttqpmgmm")
    public suspend fun vpcConfigs(vararg argument: suspend ServerlessClusterVpcConfigArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ServerlessClusterVpcConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.vpcConfigs = mapped
    }

    /**
     * @param argument
     */
    @JvmName("buaaaisthaqujsaq")
    public suspend fun vpcConfigs(argument: suspend ServerlessClusterVpcConfigArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ServerlessClusterVpcConfigArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.vpcConfigs = mapped
    }

    /**
     * @param values
     */
    @JvmName("pjwceaqbsnaiaeko")
    public suspend fun vpcConfigs(vararg values: ServerlessClusterVpcConfigArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.vpcConfigs = mapped
    }

    internal fun build(): ServerlessClusterArgs = ServerlessClusterArgs(
        clientAuthentication = clientAuthentication,
        clusterName = clusterName,
        tags = tags,
        vpcConfigs = vpcConfigs,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy