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

com.pulumi.awsnative.msk.kotlin.inputs.ClusterLoggingInfoArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.msk.kotlin.inputs

import com.pulumi.awsnative.msk.inputs.ClusterLoggingInfoArgs.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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property brokerLogs You can configure your MSK cluster to send broker logs to different destination types. This configuration specifies the details of these destinations.
 */
public data class ClusterLoggingInfoArgs(
    public val brokerLogs: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.msk.inputs.ClusterLoggingInfoArgs =
        com.pulumi.awsnative.msk.inputs.ClusterLoggingInfoArgs.builder()
            .brokerLogs(brokerLogs.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ClusterLoggingInfoArgs].
 */
@PulumiTagMarker
public class ClusterLoggingInfoArgsBuilder internal constructor() {
    private var brokerLogs: Output? = null

    /**
     * @param value You can configure your MSK cluster to send broker logs to different destination types. This configuration specifies the details of these destinations.
     */
    @JvmName("bxgendipyvnrefik")
    public suspend fun brokerLogs(`value`: Output) {
        this.brokerLogs = value
    }

    /**
     * @param value You can configure your MSK cluster to send broker logs to different destination types. This configuration specifies the details of these destinations.
     */
    @JvmName("bvknpvxbxefglumm")
    public suspend fun brokerLogs(`value`: ClusterBrokerLogsArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.brokerLogs = mapped
    }

    /**
     * @param argument You can configure your MSK cluster to send broker logs to different destination types. This configuration specifies the details of these destinations.
     */
    @JvmName("ickpgscfmisjxbys")
    public suspend fun brokerLogs(argument: suspend ClusterBrokerLogsArgsBuilder.() -> Unit) {
        val toBeMapped = ClusterBrokerLogsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.brokerLogs = mapped
    }

    internal fun build(): ClusterLoggingInfoArgs = ClusterLoggingInfoArgs(
        brokerLogs = brokerLogs ?: throw PulumiNullFieldException("brokerLogs"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy