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

com.pulumi.cloudflare.kotlin.FallbackDomainArgs.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: 5.40.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin

import com.pulumi.cloudflare.FallbackDomainArgs.builder
import com.pulumi.cloudflare.kotlin.inputs.FallbackDomainDomainArgs
import com.pulumi.cloudflare.kotlin.inputs.FallbackDomainDomainArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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

/**
 * Provides a Cloudflare Fallback Domain resource. Fallback domains are
 * used to ignore DNS requests to a given list of domains. These DNS
 * requests will be passed back to other DNS servers configured on
 * existing network interfaces on the device.
 * ## Import
 * Fallback Domains for default device policies must use "default" as the policy ID.
 * ```sh
 * $ pulumi import cloudflare:index/fallbackDomain:FallbackDomain example /
 * ```
 * @property accountId The account identifier to target for the resource.
 * @property domains
 * @property policyId The settings policy for which to configure this fallback domain policy.
 */
public data class FallbackDomainArgs(
    public val accountId: Output? = null,
    public val domains: Output>? = null,
    public val policyId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.FallbackDomainArgs =
        com.pulumi.cloudflare.FallbackDomainArgs.builder()
            .accountId(accountId?.applyValue({ args0 -> args0 }))
            .domains(
                domains?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .policyId(policyId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [FallbackDomainArgs].
 */
@PulumiTagMarker
public class FallbackDomainArgsBuilder internal constructor() {
    private var accountId: Output? = null

    private var domains: Output>? = null

    private var policyId: Output? = null

    /**
     * @param value The account identifier to target for the resource.
     */
    @JvmName("jqifuqhaudoukmuh")
    public suspend fun accountId(`value`: Output) {
        this.accountId = value
    }

    /**
     * @param value
     */
    @JvmName("lbwpvxwvlbttsmhw")
    public suspend fun domains(`value`: Output>) {
        this.domains = value
    }

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

    /**
     * @param values
     */
    @JvmName("akyetvxiyltkatms")
    public suspend fun domains(values: List>) {
        this.domains = Output.all(values)
    }

    /**
     * @param value The settings policy for which to configure this fallback domain policy.
     */
    @JvmName("qyrbdjetmrgqgdpa")
    public suspend fun policyId(`value`: Output) {
        this.policyId = value
    }

    /**
     * @param value The account identifier to target for the resource.
     */
    @JvmName("niymejkmuouoqlsj")
    public suspend fun accountId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accountId = mapped
    }

    /**
     * @param value
     */
    @JvmName("clotcbtmpoooqjkj")
    public suspend fun domains(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domains = mapped
    }

    /**
     * @param argument
     */
    @JvmName("nvvbodcrydldbiuw")
    public suspend fun domains(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FallbackDomainDomainArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.domains = mapped
    }

    /**
     * @param argument
     */
    @JvmName("fnjltpneskncwaoj")
    public suspend fun domains(vararg argument: suspend FallbackDomainDomainArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FallbackDomainDomainArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.domains = mapped
    }

    /**
     * @param argument
     */
    @JvmName("lrwoxgpmbpuirlue")
    public suspend fun domains(argument: suspend FallbackDomainDomainArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(FallbackDomainDomainArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.domains = mapped
    }

    /**
     * @param values
     */
    @JvmName("qaniyxgaftfthlvm")
    public suspend fun domains(vararg values: FallbackDomainDomainArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.domains = mapped
    }

    /**
     * @param value The settings policy for which to configure this fallback domain policy.
     */
    @JvmName("tamdahlghrrkevnu")
    public suspend fun policyId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policyId = mapped
    }

    internal fun build(): FallbackDomainArgs = FallbackDomainArgs(
        accountId = accountId,
        domains = domains,
        policyId = policyId,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy