![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.containerservice.kotlin.inputs.KubernetesClusterMonitorMetricsArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.containerservice.kotlin.inputs
import com.pulumi.azure.containerservice.inputs.KubernetesClusterMonitorMetricsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property annotationsAllowed Specifies a comma-separated list of Kubernetes annotation keys that will be used in the resource's labels metric.
* @property labelsAllowed Specifies a Comma-separated list of additional Kubernetes label keys that will be used in the resource's labels metric.
* > **Note:** Both properties `annotations_allowed` and `labels_allowed` are required if you are enabling Managed Prometheus with an existing Azure Monitor Workspace.
*/
public data class KubernetesClusterMonitorMetricsArgs(
public val annotationsAllowed: Output? = null,
public val labelsAllowed: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.containerservice.inputs.KubernetesClusterMonitorMetricsArgs =
com.pulumi.azure.containerservice.inputs.KubernetesClusterMonitorMetricsArgs.builder()
.annotationsAllowed(annotationsAllowed?.applyValue({ args0 -> args0 }))
.labelsAllowed(labelsAllowed?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [KubernetesClusterMonitorMetricsArgs].
*/
@PulumiTagMarker
public class KubernetesClusterMonitorMetricsArgsBuilder internal constructor() {
private var annotationsAllowed: Output? = null
private var labelsAllowed: Output? = null
/**
* @param value Specifies a comma-separated list of Kubernetes annotation keys that will be used in the resource's labels metric.
*/
@JvmName("obkwmoidyesfmnya")
public suspend fun annotationsAllowed(`value`: Output) {
this.annotationsAllowed = value
}
/**
* @param value Specifies a Comma-separated list of additional Kubernetes label keys that will be used in the resource's labels metric.
* > **Note:** Both properties `annotations_allowed` and `labels_allowed` are required if you are enabling Managed Prometheus with an existing Azure Monitor Workspace.
*/
@JvmName("jgtbumpwfewcqpct")
public suspend fun labelsAllowed(`value`: Output) {
this.labelsAllowed = value
}
/**
* @param value Specifies a comma-separated list of Kubernetes annotation keys that will be used in the resource's labels metric.
*/
@JvmName("xkpgbxuxaylvivri")
public suspend fun annotationsAllowed(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.annotationsAllowed = mapped
}
/**
* @param value Specifies a Comma-separated list of additional Kubernetes label keys that will be used in the resource's labels metric.
* > **Note:** Both properties `annotations_allowed` and `labels_allowed` are required if you are enabling Managed Prometheus with an existing Azure Monitor Workspace.
*/
@JvmName("hneyphqraimlihun")
public suspend fun labelsAllowed(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.labelsAllowed = mapped
}
internal fun build(): KubernetesClusterMonitorMetricsArgs = KubernetesClusterMonitorMetricsArgs(
annotationsAllowed = annotationsAllowed,
labelsAllowed = labelsAllowed,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy