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

com.pulumi.gcp.container.kotlin.inputs.ClusterMonitoringConfigArgs.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: 8.10.0.0
Show newest version
@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.ClusterMonitoringConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property advancedDatapathObservabilityConfigs Configuration for Advanced Datapath Monitoring. Structure is documented below.
 * @property enableComponents The GKE components exposing metrics. Supported values include: `SYSTEM_COMPONENTS`, `APISERVER`, `SCHEDULER`, `CONTROLLER_MANAGER`, `STORAGE`, `HPA`, `POD`, `DAEMONSET`, `DEPLOYMENT`, `STATEFULSET`, `KUBELET` and `CADVISOR`. In beta provider, `WORKLOADS` is supported on top of those 12 values. (`WORKLOADS` is deprecated and removed in GKE 1.24.) `KUBELET` and `CADVISOR` are only supported in GKE 1.29.3-gke.1093000 and above.
 * @property managedPrometheus Configuration for Managed Service for Prometheus. Structure is documented below.
 */
public data class ClusterMonitoringConfigArgs(
    public val advancedDatapathObservabilityConfigs: Output>? = null,
    public val enableComponents: Output>? = null,
    public val managedPrometheus: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.container.inputs.ClusterMonitoringConfigArgs =
        com.pulumi.gcp.container.inputs.ClusterMonitoringConfigArgs.builder()
            .advancedDatapathObservabilityConfigs(
                advancedDatapathObservabilityConfigs?.applyValue({ args0 ->
                    args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .enableComponents(enableComponents?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .managedPrometheus(
                managedPrometheus?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [ClusterMonitoringConfigArgs].
 */
@PulumiTagMarker
public class ClusterMonitoringConfigArgsBuilder internal constructor() {
    private var advancedDatapathObservabilityConfigs:
        Output>? = null

    private var enableComponents: Output>? = null

    private var managedPrometheus: Output? = null

    /**
     * @param value Configuration for Advanced Datapath Monitoring. Structure is documented below.
     */
    @JvmName("sdrtkitfulawtyhp")
    public suspend fun advancedDatapathObservabilityConfigs(`value`: Output>) {
        this.advancedDatapathObservabilityConfigs = value
    }

    @JvmName("jolvalawillnwqke")
    public suspend fun advancedDatapathObservabilityConfigs(vararg values: Output) {
        this.advancedDatapathObservabilityConfigs = Output.all(values.asList())
    }

    /**
     * @param values Configuration for Advanced Datapath Monitoring. Structure is documented below.
     */
    @JvmName("tobjhgrmhukcjfml")
    public suspend fun advancedDatapathObservabilityConfigs(values: List>) {
        this.advancedDatapathObservabilityConfigs = Output.all(values)
    }

    /**
     * @param value The GKE components exposing metrics. Supported values include: `SYSTEM_COMPONENTS`, `APISERVER`, `SCHEDULER`, `CONTROLLER_MANAGER`, `STORAGE`, `HPA`, `POD`, `DAEMONSET`, `DEPLOYMENT`, `STATEFULSET`, `KUBELET` and `CADVISOR`. In beta provider, `WORKLOADS` is supported on top of those 12 values. (`WORKLOADS` is deprecated and removed in GKE 1.24.) `KUBELET` and `CADVISOR` are only supported in GKE 1.29.3-gke.1093000 and above.
     */
    @JvmName("ttmsvxxdpmxuosbl")
    public suspend fun enableComponents(`value`: Output>) {
        this.enableComponents = value
    }

    @JvmName("iryymmfxftbqhasp")
    public suspend fun enableComponents(vararg values: Output) {
        this.enableComponents = Output.all(values.asList())
    }

    /**
     * @param values The GKE components exposing metrics. Supported values include: `SYSTEM_COMPONENTS`, `APISERVER`, `SCHEDULER`, `CONTROLLER_MANAGER`, `STORAGE`, `HPA`, `POD`, `DAEMONSET`, `DEPLOYMENT`, `STATEFULSET`, `KUBELET` and `CADVISOR`. In beta provider, `WORKLOADS` is supported on top of those 12 values. (`WORKLOADS` is deprecated and removed in GKE 1.24.) `KUBELET` and `CADVISOR` are only supported in GKE 1.29.3-gke.1093000 and above.
     */
    @JvmName("ibcywertugjdbyya")
    public suspend fun enableComponents(values: List>) {
        this.enableComponents = Output.all(values)
    }

    /**
     * @param value Configuration for Managed Service for Prometheus. Structure is documented below.
     */
    @JvmName("debxwvtclnhdqnut")
    public suspend fun managedPrometheus(`value`: Output) {
        this.managedPrometheus = value
    }

    /**
     * @param value Configuration for Advanced Datapath Monitoring. Structure is documented below.
     */
    @JvmName("isocyagquggcewji")
    public suspend fun advancedDatapathObservabilityConfigs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.advancedDatapathObservabilityConfigs = mapped
    }

    /**
     * @param argument Configuration for Advanced Datapath Monitoring. Structure is documented below.
     */
    @JvmName("naqukqsrebpjmogt")
    public suspend fun advancedDatapathObservabilityConfigs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ClusterMonitoringConfigAdvancedDatapathObservabilityConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.advancedDatapathObservabilityConfigs = mapped
    }

    /**
     * @param argument Configuration for Advanced Datapath Monitoring. Structure is documented below.
     */
    @JvmName("rfekuqymsfqnarib")
    public suspend fun advancedDatapathObservabilityConfigs(vararg argument: suspend ClusterMonitoringConfigAdvancedDatapathObservabilityConfigArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ClusterMonitoringConfigAdvancedDatapathObservabilityConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.advancedDatapathObservabilityConfigs = mapped
    }

    /**
     * @param argument Configuration for Advanced Datapath Monitoring. Structure is documented below.
     */
    @JvmName("qihlqqkkpctjxcui")
    public suspend fun advancedDatapathObservabilityConfigs(argument: suspend ClusterMonitoringConfigAdvancedDatapathObservabilityConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ClusterMonitoringConfigAdvancedDatapathObservabilityConfigArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.advancedDatapathObservabilityConfigs = mapped
    }

    /**
     * @param values Configuration for Advanced Datapath Monitoring. Structure is documented below.
     */
    @JvmName("xupdxjtwhaphosfj")
    public suspend fun advancedDatapathObservabilityConfigs(vararg values: ClusterMonitoringConfigAdvancedDatapathObservabilityConfigArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.advancedDatapathObservabilityConfigs = mapped
    }

    /**
     * @param value The GKE components exposing metrics. Supported values include: `SYSTEM_COMPONENTS`, `APISERVER`, `SCHEDULER`, `CONTROLLER_MANAGER`, `STORAGE`, `HPA`, `POD`, `DAEMONSET`, `DEPLOYMENT`, `STATEFULSET`, `KUBELET` and `CADVISOR`. In beta provider, `WORKLOADS` is supported on top of those 12 values. (`WORKLOADS` is deprecated and removed in GKE 1.24.) `KUBELET` and `CADVISOR` are only supported in GKE 1.29.3-gke.1093000 and above.
     */
    @JvmName("lddolgiwoxyobiri")
    public suspend fun enableComponents(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableComponents = mapped
    }

    /**
     * @param values The GKE components exposing metrics. Supported values include: `SYSTEM_COMPONENTS`, `APISERVER`, `SCHEDULER`, `CONTROLLER_MANAGER`, `STORAGE`, `HPA`, `POD`, `DAEMONSET`, `DEPLOYMENT`, `STATEFULSET`, `KUBELET` and `CADVISOR`. In beta provider, `WORKLOADS` is supported on top of those 12 values. (`WORKLOADS` is deprecated and removed in GKE 1.24.) `KUBELET` and `CADVISOR` are only supported in GKE 1.29.3-gke.1093000 and above.
     */
    @JvmName("mqedgaimjiyifvjb")
    public suspend fun enableComponents(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enableComponents = mapped
    }

    /**
     * @param value Configuration for Managed Service for Prometheus. Structure is documented below.
     */
    @JvmName("wlcckehsyqmkwiul")
    public suspend fun managedPrometheus(`value`: ClusterMonitoringConfigManagedPrometheusArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.managedPrometheus = mapped
    }

    /**
     * @param argument Configuration for Managed Service for Prometheus. Structure is documented below.
     */
    @JvmName("bhyrlsykivhqvgay")
    public suspend fun managedPrometheus(argument: suspend ClusterMonitoringConfigManagedPrometheusArgsBuilder.() -> Unit) {
        val toBeMapped = ClusterMonitoringConfigManagedPrometheusArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.managedPrometheus = mapped
    }

    internal fun build(): ClusterMonitoringConfigArgs = ClusterMonitoringConfigArgs(
        advancedDatapathObservabilityConfigs = advancedDatapathObservabilityConfigs,
        enableComponents = enableComponents,
        managedPrometheus = managedPrometheus,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy