
com.pulumi.awsnative.msk.kotlin.inputs.ClusterOpenMonitoringArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.msk.kotlin.inputs
import com.pulumi.awsnative.msk.inputs.ClusterOpenMonitoringArgs.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 prometheus Prometheus exporter settings.
*/
public data class ClusterOpenMonitoringArgs(
public val prometheus: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.msk.inputs.ClusterOpenMonitoringArgs =
com.pulumi.awsnative.msk.inputs.ClusterOpenMonitoringArgs.builder()
.prometheus(prometheus.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ClusterOpenMonitoringArgs].
*/
@PulumiTagMarker
public class ClusterOpenMonitoringArgsBuilder internal constructor() {
private var prometheus: Output? = null
/**
* @param value Prometheus exporter settings.
*/
@JvmName("iitumtrmecbqlmhy")
public suspend fun prometheus(`value`: Output) {
this.prometheus = value
}
/**
* @param value Prometheus exporter settings.
*/
@JvmName("ixuvvbfadsbxwmgq")
public suspend fun prometheus(`value`: ClusterPrometheusArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.prometheus = mapped
}
/**
* @param argument Prometheus exporter settings.
*/
@JvmName("uccyycmqomoacqif")
public suspend fun prometheus(argument: suspend ClusterPrometheusArgsBuilder.() -> Unit) {
val toBeMapped = ClusterPrometheusArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.prometheus = mapped
}
internal fun build(): ClusterOpenMonitoringArgs = ClusterOpenMonitoringArgs(
prometheus = prometheus ?: throw PulumiNullFieldException("prometheus"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy