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

com.pulumi.gcp.container.kotlin.outputs.GetClusterResourceUsageExportConfig.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.outputs

import kotlin.Boolean
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property bigqueryDestinations Parameters for using BigQuery as the destination of resource usage export.
 * @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 GetClusterResourceUsageExportConfig(
    public val bigqueryDestinations: List,
    public val enableNetworkEgressMetering: Boolean,
    public val enableResourceConsumptionMetering: Boolean,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.container.outputs.GetClusterResourceUsageExportConfig): GetClusterResourceUsageExportConfig = GetClusterResourceUsageExportConfig(
            bigqueryDestinations = javaType.bigqueryDestinations().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.container.kotlin.outputs.GetClusterResourceUsageExportConfigBigqueryDestination.Companion.toKotlin(args0)
                })
            }),
            enableNetworkEgressMetering = javaType.enableNetworkEgressMetering(),
            enableResourceConsumptionMetering = javaType.enableResourceConsumptionMetering(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy