com.pulumi.gcp.container.kotlin.inputs.ClusterMonitoringConfigAdvancedDatapathObservabilityConfigArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.container.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.ClusterMonitoringConfigAdvancedDatapathObservabilityConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property enableMetrics Whether or not to enable advanced datapath metrics.
* @property enableRelay Whether or not Relay is enabled.
* @property relayMode Mode used to make Relay available.
*/
public data class ClusterMonitoringConfigAdvancedDatapathObservabilityConfigArgs(
public val enableMetrics: Output,
public val enableRelay: Output? = null,
@Deprecated(
message = """
Deprecated in favor of enable_relay field. Remove this attribute's configuration as this field
will be removed in the next major release and enable_relay will become a required field.
""",
)
public val relayMode: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.container.inputs.ClusterMonitoringConfigAdvancedDatapathObservabilityConfigArgs =
com.pulumi.gcp.container.inputs.ClusterMonitoringConfigAdvancedDatapathObservabilityConfigArgs.builder()
.enableMetrics(enableMetrics.applyValue({ args0 -> args0 }))
.enableRelay(enableRelay?.applyValue({ args0 -> args0 }))
.relayMode(relayMode?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ClusterMonitoringConfigAdvancedDatapathObservabilityConfigArgs].
*/
@PulumiTagMarker
public class ClusterMonitoringConfigAdvancedDatapathObservabilityConfigArgsBuilder internal constructor() {
private var enableMetrics: Output? = null
private var enableRelay: Output? = null
private var relayMode: Output? = null
/**
* @param value Whether or not to enable advanced datapath metrics.
*/
@JvmName("ccvknrmdivdjncmb")
public suspend fun enableMetrics(`value`: Output) {
this.enableMetrics = value
}
/**
* @param value Whether or not Relay is enabled.
*/
@JvmName("mebbcspowkpmyopg")
public suspend fun enableRelay(`value`: Output) {
this.enableRelay = value
}
/**
* @param value Mode used to make Relay available.
*/
@Deprecated(
message = """
Deprecated in favor of enable_relay field. Remove this attribute's configuration as this field
will be removed in the next major release and enable_relay will become a required field.
""",
)
@JvmName("tcdqvdqxfgfgqaxv")
public suspend fun relayMode(`value`: Output) {
this.relayMode = value
}
/**
* @param value Whether or not to enable advanced datapath metrics.
*/
@JvmName("tjpgphlvxiikrngp")
public suspend fun enableMetrics(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.enableMetrics = mapped
}
/**
* @param value Whether or not Relay is enabled.
*/
@JvmName("mtwhfchtoqfspbaa")
public suspend fun enableRelay(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enableRelay = mapped
}
/**
* @param value Mode used to make Relay available.
*/
@Deprecated(
message = """
Deprecated in favor of enable_relay field. Remove this attribute's configuration as this field
will be removed in the next major release and enable_relay will become a required field.
""",
)
@JvmName("swymuigpwmmuxokw")
public suspend fun relayMode(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.relayMode = mapped
}
internal fun build(): ClusterMonitoringConfigAdvancedDatapathObservabilityConfigArgs =
ClusterMonitoringConfigAdvancedDatapathObservabilityConfigArgs(
enableMetrics = enableMetrics ?: throw PulumiNullFieldException("enableMetrics"),
enableRelay = enableRelay,
relayMode = relayMode,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy