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

com.pulumi.aws.msk.kotlin.inputs.ClusterOpenMonitoringPrometheusArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.msk.kotlin.inputs

import com.pulumi.aws.msk.inputs.ClusterOpenMonitoringPrometheusArgs.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

/**
 *
 * @property jmxExporter Configuration block for JMX Exporter. See below.
 * @property nodeExporter Configuration block for Node Exporter. See below.
 */
public data class ClusterOpenMonitoringPrometheusArgs(
    public val jmxExporter: Output? = null,
    public val nodeExporter: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.msk.inputs.ClusterOpenMonitoringPrometheusArgs =
        com.pulumi.aws.msk.inputs.ClusterOpenMonitoringPrometheusArgs.builder()
            .jmxExporter(jmxExporter?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .nodeExporter(nodeExporter?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ClusterOpenMonitoringPrometheusArgs].
 */
@PulumiTagMarker
public class ClusterOpenMonitoringPrometheusArgsBuilder internal constructor() {
    private var jmxExporter: Output? = null

    private var nodeExporter: Output? = null

    /**
     * @param value Configuration block for JMX Exporter. See below.
     */
    @JvmName("bnihneblgcmvurkx")
    public suspend fun jmxExporter(`value`: Output) {
        this.jmxExporter = value
    }

    /**
     * @param value Configuration block for Node Exporter. See below.
     */
    @JvmName("qlqvspcrigasbyfp")
    public suspend fun nodeExporter(`value`: Output) {
        this.nodeExporter = value
    }

    /**
     * @param value Configuration block for JMX Exporter. See below.
     */
    @JvmName("wkdyytcdvsdtfyhm")
    public suspend fun jmxExporter(`value`: ClusterOpenMonitoringPrometheusJmxExporterArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.jmxExporter = mapped
    }

    /**
     * @param argument Configuration block for JMX Exporter. See below.
     */
    @JvmName("akivnxbgflcahrif")
    public suspend fun jmxExporter(argument: suspend ClusterOpenMonitoringPrometheusJmxExporterArgsBuilder.() -> Unit) {
        val toBeMapped = ClusterOpenMonitoringPrometheusJmxExporterArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.jmxExporter = mapped
    }

    /**
     * @param value Configuration block for Node Exporter. See below.
     */
    @JvmName("eetwswafgchitjxe")
    public suspend fun nodeExporter(`value`: ClusterOpenMonitoringPrometheusNodeExporterArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodeExporter = mapped
    }

    /**
     * @param argument Configuration block for Node Exporter. See below.
     */
    @JvmName("vgalubmumesrrwuo")
    public suspend fun nodeExporter(argument: suspend ClusterOpenMonitoringPrometheusNodeExporterArgsBuilder.() -> Unit) {
        val toBeMapped = ClusterOpenMonitoringPrometheusNodeExporterArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.nodeExporter = mapped
    }

    internal fun build(): ClusterOpenMonitoringPrometheusArgs = ClusterOpenMonitoringPrometheusArgs(
        jmxExporter = jmxExporter,
        nodeExporter = nodeExporter,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy