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

com.pulumi.gcp.dns.kotlin.inputs.ManagedZoneCloudLoggingConfigArgs.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.dns.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dns.inputs.ManagedZoneCloudLoggingConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property enableLogging If set, enable query logging for this ManagedZone. False by default, making logging opt-in.
 */
public data class ManagedZoneCloudLoggingConfigArgs(
    public val enableLogging: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dns.inputs.ManagedZoneCloudLoggingConfigArgs =
        com.pulumi.gcp.dns.inputs.ManagedZoneCloudLoggingConfigArgs.builder()
            .enableLogging(enableLogging.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ManagedZoneCloudLoggingConfigArgs].
 */
@PulumiTagMarker
public class ManagedZoneCloudLoggingConfigArgsBuilder internal constructor() {
    private var enableLogging: Output? = null

    /**
     * @param value If set, enable query logging for this ManagedZone. False by default, making logging opt-in.
     */
    @JvmName("jtaldugdfdtwqlpu")
    public suspend fun enableLogging(`value`: Output) {
        this.enableLogging = value
    }

    /**
     * @param value If set, enable query logging for this ManagedZone. False by default, making logging opt-in.
     */
    @JvmName("criktxpxpdectqpf")
    public suspend fun enableLogging(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enableLogging = mapped
    }

    internal fun build(): ManagedZoneCloudLoggingConfigArgs = ManagedZoneCloudLoggingConfigArgs(
        enableLogging = enableLogging ?: throw PulumiNullFieldException("enableLogging"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy