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

com.pulumi.gcp.container.kotlin.inputs.ClusterResourceUsageExportConfigArgs.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.12.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.ClusterResourceUsageExportConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property bigqueryDestination Parameters for using BigQuery as the destination of resource usage export.
 * * `bigquery_destination.dataset_id` (Required) - The ID of a BigQuery Dataset. For Example:
 * @property enableNetworkEgressMetering Whether to enable network egress metering for this cluster. If enabled, a daemonset will be created
 * in the cluster to meter network egress traffic.
 * @property enableResourceConsumptionMetering Whether to enable resource
 * consumption metering on this cluster. When enabled, a table will be created in
 * the resource export BigQuery dataset to store resource consumption data. The
 * resulting table can be joined with the resource usage table or with BigQuery
 * billing export. Defaults to `true`.
 */
public data class ClusterResourceUsageExportConfigArgs(
    public val bigqueryDestination: Output,
    public val enableNetworkEgressMetering: Output? = null,
    public val enableResourceConsumptionMetering: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.container.inputs.ClusterResourceUsageExportConfigArgs =
        com.pulumi.gcp.container.inputs.ClusterResourceUsageExportConfigArgs.builder()
            .bigqueryDestination(
                bigqueryDestination.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .enableNetworkEgressMetering(enableNetworkEgressMetering?.applyValue({ args0 -> args0 }))
            .enableResourceConsumptionMetering(
                enableResourceConsumptionMetering?.applyValue({ args0 ->
                    args0
                }),
            ).build()
}

/**
 * Builder for [ClusterResourceUsageExportConfigArgs].
 */
@PulumiTagMarker
public class ClusterResourceUsageExportConfigArgsBuilder internal constructor() {
    private var bigqueryDestination: Output? =
        null

    private var enableNetworkEgressMetering: Output? = null

    private var enableResourceConsumptionMetering: Output? = null

    /**
     * @param value Parameters for using BigQuery as the destination of resource usage export.
     * * `bigquery_destination.dataset_id` (Required) - The ID of a BigQuery Dataset. For Example:
     */
    @JvmName("puyoigbadlixbmoq")
    public suspend fun bigqueryDestination(`value`: Output) {
        this.bigqueryDestination = value
    }

    /**
     * @param value Whether to enable network egress metering for this cluster. If enabled, a daemonset will be created
     * in the cluster to meter network egress traffic.
     */
    @JvmName("ltfaffduvmhhacam")
    public suspend fun enableNetworkEgressMetering(`value`: Output) {
        this.enableNetworkEgressMetering = value
    }

    /**
     * @param value Whether to enable resource
     * consumption metering on this cluster. When enabled, a table will be created in
     * the resource export BigQuery dataset to store resource consumption data. The
     * resulting table can be joined with the resource usage table or with BigQuery
     * billing export. Defaults to `true`.
     */
    @JvmName("lurnuftainwxolug")
    public suspend fun enableResourceConsumptionMetering(`value`: Output) {
        this.enableResourceConsumptionMetering = value
    }

    /**
     * @param value Parameters for using BigQuery as the destination of resource usage export.
     * * `bigquery_destination.dataset_id` (Required) - The ID of a BigQuery Dataset. For Example:
     */
    @JvmName("hjhjlktppofsqcca")
    public suspend fun bigqueryDestination(`value`: ClusterResourceUsageExportConfigBigqueryDestinationArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bigqueryDestination = mapped
    }

    /**
     * @param argument Parameters for using BigQuery as the destination of resource usage export.
     * * `bigquery_destination.dataset_id` (Required) - The ID of a BigQuery Dataset. For Example:
     */
    @JvmName("owgivcrrtpntiwip")
    public suspend fun bigqueryDestination(argument: suspend ClusterResourceUsageExportConfigBigqueryDestinationArgsBuilder.() -> Unit) {
        val toBeMapped = ClusterResourceUsageExportConfigBigqueryDestinationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.bigqueryDestination = mapped
    }

    /**
     * @param value Whether to enable network egress metering for this cluster. If enabled, a daemonset will be created
     * in the cluster to meter network egress traffic.
     */
    @JvmName("xfvmkkxtvcnguiju")
    public suspend fun enableNetworkEgressMetering(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableNetworkEgressMetering = mapped
    }

    /**
     * @param value Whether to enable resource
     * consumption metering on this cluster. When enabled, a table will be created in
     * the resource export BigQuery dataset to store resource consumption data. The
     * resulting table can be joined with the resource usage table or with BigQuery
     * billing export. Defaults to `true`.
     */
    @JvmName("ylrtovmrradcgutr")
    public suspend fun enableResourceConsumptionMetering(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableResourceConsumptionMetering = mapped
    }

    internal fun build(): ClusterResourceUsageExportConfigArgs = ClusterResourceUsageExportConfigArgs(
        bigqueryDestination = bigqueryDestination ?: throw PulumiNullFieldException("bigqueryDestination"),
        enableNetworkEgressMetering = enableNetworkEgressMetering,
        enableResourceConsumptionMetering = enableResourceConsumptionMetering,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy