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

com.pulumi.awsnative.route53resolver.kotlin.inputs.FirewallRuleGroupFirewallRuleArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.route53resolver.kotlin.inputs

import com.pulumi.awsnative.route53resolver.inputs.FirewallRuleGroupFirewallRuleArgs.builder
import com.pulumi.awsnative.route53resolver.kotlin.enums.FirewallRuleGroupFirewallRuleAction
import com.pulumi.awsnative.route53resolver.kotlin.enums.FirewallRuleGroupFirewallRuleBlockOverrideDnsType
import com.pulumi.awsnative.route53resolver.kotlin.enums.FirewallRuleGroupFirewallRuleBlockResponse
import com.pulumi.awsnative.route53resolver.kotlin.enums.FirewallRuleGroupFirewallRuleFirewallDomainRedirectionAction
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Firewall Rule associating the Rule Group to a Domain List
 * @property action Rule Action
 * @property blockOverrideDnsType BlockOverrideDnsType
 * @property blockOverrideDomain BlockOverrideDomain
 * @property blockOverrideTtl BlockOverrideTtl
 * @property blockResponse BlockResponse
 * @property firewallDomainListId ResourceId
 * @property firewallDomainRedirectionAction FirewallDomainRedirectionAction
 * @property priority Rule Priority
 * @property qtype Qtype
 */
public data class FirewallRuleGroupFirewallRuleArgs(
    public val action: Output,
    public val blockOverrideDnsType: Output? =
        null,
    public val blockOverrideDomain: Output? = null,
    public val blockOverrideTtl: Output? = null,
    public val blockResponse: Output? = null,
    public val firewallDomainListId: Output,
    public val firewallDomainRedirectionAction: Output? = null,
    public val priority: Output,
    public val qtype: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.route53resolver.inputs.FirewallRuleGroupFirewallRuleArgs =
        com.pulumi.awsnative.route53resolver.inputs.FirewallRuleGroupFirewallRuleArgs.builder()
            .action(action.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .blockOverrideDnsType(
                blockOverrideDnsType?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .blockOverrideDomain(blockOverrideDomain?.applyValue({ args0 -> args0 }))
            .blockOverrideTtl(blockOverrideTtl?.applyValue({ args0 -> args0 }))
            .blockResponse(blockResponse?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .firewallDomainListId(firewallDomainListId.applyValue({ args0 -> args0 }))
            .firewallDomainRedirectionAction(
                firewallDomainRedirectionAction?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .priority(priority.applyValue({ args0 -> args0 }))
            .qtype(qtype?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [FirewallRuleGroupFirewallRuleArgs].
 */
@PulumiTagMarker
public class FirewallRuleGroupFirewallRuleArgsBuilder internal constructor() {
    private var action: Output? = null

    private var blockOverrideDnsType: Output? =
        null

    private var blockOverrideDomain: Output? = null

    private var blockOverrideTtl: Output? = null

    private var blockResponse: Output? = null

    private var firewallDomainListId: Output? = null

    private var firewallDomainRedirectionAction:
        Output? = null

    private var priority: Output? = null

    private var qtype: Output? = null

    /**
     * @param value Rule Action
     */
    @JvmName("asjddcgmlchitamo")
    public suspend fun action(`value`: Output) {
        this.action = value
    }

    /**
     * @param value BlockOverrideDnsType
     */
    @JvmName("yushcnnypnwnkuhn")
    public suspend fun blockOverrideDnsType(`value`: Output) {
        this.blockOverrideDnsType = value
    }

    /**
     * @param value BlockOverrideDomain
     */
    @JvmName("uopjchmfketwxrcg")
    public suspend fun blockOverrideDomain(`value`: Output) {
        this.blockOverrideDomain = value
    }

    /**
     * @param value BlockOverrideTtl
     */
    @JvmName("ahyqgnyoadwtxgmk")
    public suspend fun blockOverrideTtl(`value`: Output) {
        this.blockOverrideTtl = value
    }

    /**
     * @param value BlockResponse
     */
    @JvmName("karcrshawogilhus")
    public suspend fun blockResponse(`value`: Output) {
        this.blockResponse = value
    }

    /**
     * @param value ResourceId
     */
    @JvmName("fgpgaxajaddywlnr")
    public suspend fun firewallDomainListId(`value`: Output) {
        this.firewallDomainListId = value
    }

    /**
     * @param value FirewallDomainRedirectionAction
     */
    @JvmName("cdjxmkcnxgkiqrih")
    public suspend fun firewallDomainRedirectionAction(`value`: Output) {
        this.firewallDomainRedirectionAction = value
    }

    /**
     * @param value Rule Priority
     */
    @JvmName("uwhjmjxfjsyfdqhd")
    public suspend fun priority(`value`: Output) {
        this.priority = value
    }

    /**
     * @param value Qtype
     */
    @JvmName("aqdvurqxrxhckyys")
    public suspend fun qtype(`value`: Output) {
        this.qtype = value
    }

    /**
     * @param value Rule Action
     */
    @JvmName("ewwxdiokwpqkkyeu")
    public suspend fun action(`value`: FirewallRuleGroupFirewallRuleAction) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.action = mapped
    }

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

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

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

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

    /**
     * @param value ResourceId
     */
    @JvmName("tyblcxywexcrjdtp")
    public suspend fun firewallDomainListId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.firewallDomainListId = mapped
    }

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

    /**
     * @param value Rule Priority
     */
    @JvmName("qilcmnlljerocgif")
    public suspend fun priority(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.priority = mapped
    }

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

    internal fun build(): FirewallRuleGroupFirewallRuleArgs = FirewallRuleGroupFirewallRuleArgs(
        action = action ?: throw PulumiNullFieldException("action"),
        blockOverrideDnsType = blockOverrideDnsType,
        blockOverrideDomain = blockOverrideDomain,
        blockOverrideTtl = blockOverrideTtl,
        blockResponse = blockResponse,
        firewallDomainListId = firewallDomainListId ?: throw
            PulumiNullFieldException("firewallDomainListId"),
        firewallDomainRedirectionAction = firewallDomainRedirectionAction,
        priority = priority ?: throw PulumiNullFieldException("priority"),
        qtype = qtype,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy