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

com.pulumi.gcp.dns.kotlin.inputs.ManagedZoneDnssecConfigArgs.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.ManagedZoneDnssecConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property defaultKeySpecs Specifies parameters that will be used for generating initial DnsKeys
 * for this ManagedZone. If you provide a spec for keySigning or zoneSigning,
 * you must also provide one for the other.
 * default_key_specs can only be updated when the state is `off`.
 * Structure is documented below.
 * @property kind Identifies what kind of resource this is
 * @property nonExistence Specifies the mechanism used to provide authenticated denial-of-existence responses.
 * non_existence can only be updated when the state is `off`.
 * Possible values are: `nsec`, `nsec3`.
 * @property state Specifies whether DNSSEC is enabled, and what mode it is in
 * Possible values are: `off`, `on`, `transfer`.
 */
public data class ManagedZoneDnssecConfigArgs(
    public val defaultKeySpecs: Output>? = null,
    public val kind: Output? = null,
    public val nonExistence: Output? = null,
    public val state: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dns.inputs.ManagedZoneDnssecConfigArgs =
        com.pulumi.gcp.dns.inputs.ManagedZoneDnssecConfigArgs.builder()
            .defaultKeySpecs(
                defaultKeySpecs?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .kind(kind?.applyValue({ args0 -> args0 }))
            .nonExistence(nonExistence?.applyValue({ args0 -> args0 }))
            .state(state?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ManagedZoneDnssecConfigArgs].
 */
@PulumiTagMarker
public class ManagedZoneDnssecConfigArgsBuilder internal constructor() {
    private var defaultKeySpecs: Output>? = null

    private var kind: Output? = null

    private var nonExistence: Output? = null

    private var state: Output? = null

    /**
     * @param value Specifies parameters that will be used for generating initial DnsKeys
     * for this ManagedZone. If you provide a spec for keySigning or zoneSigning,
     * you must also provide one for the other.
     * default_key_specs can only be updated when the state is `off`.
     * Structure is documented below.
     */
    @JvmName("yoyxqsnijddwcncg")
    public suspend fun defaultKeySpecs(`value`: Output>) {
        this.defaultKeySpecs = value
    }

    @JvmName("woybmmtklkiappqs")
    public suspend fun defaultKeySpecs(vararg values: Output) {
        this.defaultKeySpecs = Output.all(values.asList())
    }

    /**
     * @param values Specifies parameters that will be used for generating initial DnsKeys
     * for this ManagedZone. If you provide a spec for keySigning or zoneSigning,
     * you must also provide one for the other.
     * default_key_specs can only be updated when the state is `off`.
     * Structure is documented below.
     */
    @JvmName("pnakxklvpuufsphd")
    public suspend fun defaultKeySpecs(values: List>) {
        this.defaultKeySpecs = Output.all(values)
    }

    /**
     * @param value Identifies what kind of resource this is
     */
    @JvmName("irwvsbhlifjguoqr")
    public suspend fun kind(`value`: Output) {
        this.kind = value
    }

    /**
     * @param value Specifies the mechanism used to provide authenticated denial-of-existence responses.
     * non_existence can only be updated when the state is `off`.
     * Possible values are: `nsec`, `nsec3`.
     */
    @JvmName("aptnhblsnddrplnn")
    public suspend fun nonExistence(`value`: Output) {
        this.nonExistence = value
    }

    /**
     * @param value Specifies whether DNSSEC is enabled, and what mode it is in
     * Possible values are: `off`, `on`, `transfer`.
     */
    @JvmName("jsngygbkqxihxdyh")
    public suspend fun state(`value`: Output) {
        this.state = value
    }

    /**
     * @param value Specifies parameters that will be used for generating initial DnsKeys
     * for this ManagedZone. If you provide a spec for keySigning or zoneSigning,
     * you must also provide one for the other.
     * default_key_specs can only be updated when the state is `off`.
     * Structure is documented below.
     */
    @JvmName("seemgwaxqqsmqqyy")
    public suspend fun defaultKeySpecs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultKeySpecs = mapped
    }

    /**
     * @param argument Specifies parameters that will be used for generating initial DnsKeys
     * for this ManagedZone. If you provide a spec for keySigning or zoneSigning,
     * you must also provide one for the other.
     * default_key_specs can only be updated when the state is `off`.
     * Structure is documented below.
     */
    @JvmName("yvwwwijwmbfhahsv")
    public suspend fun defaultKeySpecs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ManagedZoneDnssecConfigDefaultKeySpecArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.defaultKeySpecs = mapped
    }

    /**
     * @param argument Specifies parameters that will be used for generating initial DnsKeys
     * for this ManagedZone. If you provide a spec for keySigning or zoneSigning,
     * you must also provide one for the other.
     * default_key_specs can only be updated when the state is `off`.
     * Structure is documented below.
     */
    @JvmName("rtfdtsbatdufblcp")
    public suspend fun defaultKeySpecs(vararg argument: suspend ManagedZoneDnssecConfigDefaultKeySpecArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ManagedZoneDnssecConfigDefaultKeySpecArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.defaultKeySpecs = mapped
    }

    /**
     * @param argument Specifies parameters that will be used for generating initial DnsKeys
     * for this ManagedZone. If you provide a spec for keySigning or zoneSigning,
     * you must also provide one for the other.
     * default_key_specs can only be updated when the state is `off`.
     * Structure is documented below.
     */
    @JvmName("kwakkilepvvsckuc")
    public suspend fun defaultKeySpecs(argument: suspend ManagedZoneDnssecConfigDefaultKeySpecArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ManagedZoneDnssecConfigDefaultKeySpecArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.defaultKeySpecs = mapped
    }

    /**
     * @param values Specifies parameters that will be used for generating initial DnsKeys
     * for this ManagedZone. If you provide a spec for keySigning or zoneSigning,
     * you must also provide one for the other.
     * default_key_specs can only be updated when the state is `off`.
     * Structure is documented below.
     */
    @JvmName("qoqjliwmggvogttd")
    public suspend fun defaultKeySpecs(vararg values: ManagedZoneDnssecConfigDefaultKeySpecArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.defaultKeySpecs = mapped
    }

    /**
     * @param value Identifies what kind of resource this is
     */
    @JvmName("gtxwehejfhfetaiy")
    public suspend fun kind(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kind = mapped
    }

    /**
     * @param value Specifies the mechanism used to provide authenticated denial-of-existence responses.
     * non_existence can only be updated when the state is `off`.
     * Possible values are: `nsec`, `nsec3`.
     */
    @JvmName("bonfgedkaehcnuqm")
    public suspend fun nonExistence(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nonExistence = mapped
    }

    /**
     * @param value Specifies whether DNSSEC is enabled, and what mode it is in
     * Possible values are: `off`, `on`, `transfer`.
     */
    @JvmName("irsdkrpukjswxpbf")
    public suspend fun state(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.state = mapped
    }

    internal fun build(): ManagedZoneDnssecConfigArgs = ManagedZoneDnssecConfigArgs(
        defaultKeySpecs = defaultKeySpecs,
        kind = kind,
        nonExistence = nonExistence,
        state = state,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy