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

com.pulumi.aws.wafv2.kotlin.outputs.WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUse.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.wafv2.kotlin.outputs

import kotlin.Suppress

/**
 *
 * @property allow
 * @property block
 * @property captcha Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details.
 * @property challenge Instructs AWS WAF to run a check against the request to verify that the request is coming from a legitimate client session. See `challenge` below for details.
 * @property count
 */
public data class WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUse(
    public val allow: WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseAllow? = null,
    public val block: WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseBlock? = null,
    public val captcha: WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseCaptcha? = null,
    public val challenge: WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseChallenge? = null,
    public val count: WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseCount? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.aws.wafv2.outputs.WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUse): WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUse =
            WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUse(
                allow = javaType.allow().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.aws.wafv2.kotlin.outputs.WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseAllow.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                block = javaType.block().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.aws.wafv2.kotlin.outputs.WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseBlock.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                captcha = javaType.captcha().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.aws.wafv2.kotlin.outputs.WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseCaptcha.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                challenge = javaType.challenge().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.aws.wafv2.kotlin.outputs.WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseChallenge.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                count = javaType.count().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.aws.wafv2.kotlin.outputs.WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseCount.Companion.toKotlin(args0)
                    })
                }).orElse(null),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy