com.pulumi.gcp.cloudtasks.kotlin.inputs.QueueStackdriverLoggingConfigArgs.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.cloudtasks.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudtasks.inputs.QueueStackdriverLoggingConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property samplingRatio Specifies the fraction of operations to write to Stackdriver Logging.
* This field may contain any value between 0.0 and 1.0, inclusive. 0.0 is the
* default and means that no operations are logged.
*/
public data class QueueStackdriverLoggingConfigArgs(
public val samplingRatio: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudtasks.inputs.QueueStackdriverLoggingConfigArgs =
com.pulumi.gcp.cloudtasks.inputs.QueueStackdriverLoggingConfigArgs.builder()
.samplingRatio(samplingRatio.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [QueueStackdriverLoggingConfigArgs].
*/
@PulumiTagMarker
public class QueueStackdriverLoggingConfigArgsBuilder internal constructor() {
private var samplingRatio: Output? = null
/**
* @param value Specifies the fraction of operations to write to Stackdriver Logging.
* This field may contain any value between 0.0 and 1.0, inclusive. 0.0 is the
* default and means that no operations are logged.
*/
@JvmName("ywlfkugejsvqucip")
public suspend fun samplingRatio(`value`: Output) {
this.samplingRatio = value
}
/**
* @param value Specifies the fraction of operations to write to Stackdriver Logging.
* This field may contain any value between 0.0 and 1.0, inclusive. 0.0 is the
* default and means that no operations are logged.
*/
@JvmName("giinchmrrrpueqhd")
public suspend fun samplingRatio(`value`: Double) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.samplingRatio = mapped
}
internal fun build(): QueueStackdriverLoggingConfigArgs = QueueStackdriverLoggingConfigArgs(
samplingRatio = samplingRatio ?: throw PulumiNullFieldException("samplingRatio"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy