com.pulumi.gcp.container.kotlin.inputs.AttachedClusterMonitoringConfigArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.container.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.AttachedClusterMonitoringConfigArgs.builder
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 managedPrometheusConfig Enable Google Cloud Managed Service for Prometheus in the cluster.
* Structure is documented below.
*/
public data class AttachedClusterMonitoringConfigArgs(
public val managedPrometheusConfig: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.container.inputs.AttachedClusterMonitoringConfigArgs =
com.pulumi.gcp.container.inputs.AttachedClusterMonitoringConfigArgs.builder()
.managedPrometheusConfig(
managedPrometheusConfig?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [AttachedClusterMonitoringConfigArgs].
*/
@PulumiTagMarker
public class AttachedClusterMonitoringConfigArgsBuilder internal constructor() {
private var managedPrometheusConfig:
Output? = null
/**
* @param value Enable Google Cloud Managed Service for Prometheus in the cluster.
* Structure is documented below.
*/
@JvmName("nvpfbyfsehcwspad")
public suspend fun managedPrometheusConfig(`value`: Output) {
this.managedPrometheusConfig = value
}
/**
* @param value Enable Google Cloud Managed Service for Prometheus in the cluster.
* Structure is documented below.
*/
@JvmName("cflgralxobtjjbht")
public suspend fun managedPrometheusConfig(`value`: AttachedClusterMonitoringConfigManagedPrometheusConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.managedPrometheusConfig = mapped
}
/**
* @param argument Enable Google Cloud Managed Service for Prometheus in the cluster.
* Structure is documented below.
*/
@JvmName("vfpaqwqkdhecntew")
public suspend fun managedPrometheusConfig(argument: suspend AttachedClusterMonitoringConfigManagedPrometheusConfigArgsBuilder.() -> Unit) {
val toBeMapped =
AttachedClusterMonitoringConfigManagedPrometheusConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.managedPrometheusConfig = mapped
}
internal fun build(): AttachedClusterMonitoringConfigArgs = AttachedClusterMonitoringConfigArgs(
managedPrometheusConfig = managedPrometheusConfig,
)
}