
com.pulumi.awsnative.route53resolver.kotlin.outputs.FirewallRuleGroupFirewallRule.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.route53resolver.kotlin.outputs
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 kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
* 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 FirewallRuleGroupFirewallRule(
public val action: FirewallRuleGroupFirewallRuleAction,
public val blockOverrideDnsType: FirewallRuleGroupFirewallRuleBlockOverrideDnsType? = null,
public val blockOverrideDomain: String? = null,
public val blockOverrideTtl: Int? = null,
public val blockResponse: FirewallRuleGroupFirewallRuleBlockResponse? = null,
public val firewallDomainListId: String,
public val firewallDomainRedirectionAction: FirewallRuleGroupFirewallRuleFirewallDomainRedirectionAction? = null,
public val priority: Int,
public val qtype: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.route53resolver.outputs.FirewallRuleGroupFirewallRule): FirewallRuleGroupFirewallRule = FirewallRuleGroupFirewallRule(
action = javaType.action().let({ args0 ->
com.pulumi.awsnative.route53resolver.kotlin.enums.FirewallRuleGroupFirewallRuleAction.Companion.toKotlin(args0)
}),
blockOverrideDnsType = javaType.blockOverrideDnsType().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.route53resolver.kotlin.enums.FirewallRuleGroupFirewallRuleBlockOverrideDnsType.Companion.toKotlin(args0)
})
}).orElse(null),
blockOverrideDomain = javaType.blockOverrideDomain().map({ args0 -> args0 }).orElse(null),
blockOverrideTtl = javaType.blockOverrideTtl().map({ args0 -> args0 }).orElse(null),
blockResponse = javaType.blockResponse().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.route53resolver.kotlin.enums.FirewallRuleGroupFirewallRuleBlockResponse.Companion.toKotlin(args0)
})
}).orElse(null),
firewallDomainListId = javaType.firewallDomainListId(),
firewallDomainRedirectionAction = javaType.firewallDomainRedirectionAction().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.route53resolver.kotlin.enums.FirewallRuleGroupFirewallRuleFirewallDomainRedirectionAction.Companion.toKotlin(args0)
})
}).orElse(null),
priority = javaType.priority(),
qtype = javaType.qtype().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy