com.pulumi.cloudflare.kotlin.FallbackDomainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-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.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