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

com.pulumi.gcp.container.kotlin.outputs.ClusterResourceUsageExportConfig.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.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.container.kotlin.outputs

import kotlin.Boolean
import kotlin.Suppress

/**
 *
 * @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 ClusterResourceUsageExportConfig(
    public val bigqueryDestination: ClusterResourceUsageExportConfigBigqueryDestination,
    public val enableNetworkEgressMetering: Boolean? = null,
    public val enableResourceConsumptionMetering: Boolean? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.container.outputs.ClusterResourceUsageExportConfig): ClusterResourceUsageExportConfig = ClusterResourceUsageExportConfig(
            bigqueryDestination = javaType.bigqueryDestination().let({ args0 ->
                com.pulumi.gcp.container.kotlin.outputs.ClusterResourceUsageExportConfigBigqueryDestination.Companion.toKotlin(args0)
            }),
            enableNetworkEgressMetering = javaType.enableNetworkEgressMetering().map({ args0 ->
                args0
            }).orElse(null),
            enableResourceConsumptionMetering = javaType.enableResourceConsumptionMetering().map({ args0 ->
                args0
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy