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

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

package com.pulumi.gcp.compute.kotlin.outputs

import kotlin.Boolean
import kotlin.Double
import kotlin.Suppress

/**
 *
 * @property enable Whether to enable logging for the load balancer traffic served by this backend service.
 * @property sampleRate This field can only be specified if logging is enabled for this backend service. The value of
 * the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer
 * where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported.
 * The default value is 1.0.
 */
public data class BackendServiceLogConfig(
    public val enable: Boolean? = null,
    public val sampleRate: Double? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.BackendServiceLogConfig): BackendServiceLogConfig = BackendServiceLogConfig(
            enable = javaType.enable().map({ args0 -> args0 }).orElse(null),
            sampleRate = javaType.sampleRate().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy