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

com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.wafv2.inputs;

import com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseAllowArgs;
import com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseBlockArgs;
import com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseCaptchaArgs;
import com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseChallengeArgs;
import com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseCountArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseArgs extends com.pulumi.resources.ResourceArgs {

    public static final WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseArgs Empty = new WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseArgs();

    @Import(name="allow")
    private @Nullable Output allow;

    public Optional> allow() {
        return Optional.ofNullable(this.allow);
    }

    @Import(name="block")
    private @Nullable Output block;

    public Optional> block() {
        return Optional.ofNullable(this.block);
    }

    /**
     * Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details.
     * 
     */
    @Import(name="captcha")
    private @Nullable Output captcha;

    /**
     * @return Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details.
     * 
     */
    public Optional> captcha() {
        return Optional.ofNullable(this.captcha);
    }

    /**
     * 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.
     * 
     */
    @Import(name="challenge")
    private @Nullable Output challenge;

    /**
     * @return 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.
     * 
     */
    public Optional> challenge() {
        return Optional.ofNullable(this.challenge);
    }

    @Import(name="count")
    private @Nullable Output count;

    public Optional> count() {
        return Optional.ofNullable(this.count);
    }

    private WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseArgs() {}

    private WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseArgs(WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseArgs $) {
        this.allow = $.allow;
        this.block = $.block;
        this.captcha = $.captcha;
        this.challenge = $.challenge;
        this.count = $.count;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseArgs $;

        public Builder() {
            $ = new WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseArgs();
        }

        public Builder(WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseArgs defaults) {
            $ = new WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseArgs(Objects.requireNonNull(defaults));
        }

        public Builder allow(@Nullable Output allow) {
            $.allow = allow;
            return this;
        }

        public Builder allow(WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseAllowArgs allow) {
            return allow(Output.of(allow));
        }

        public Builder block(@Nullable Output block) {
            $.block = block;
            return this;
        }

        public Builder block(WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseBlockArgs block) {
            return block(Output.of(block));
        }

        /**
         * @param captcha Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details.
         * 
         * @return builder
         * 
         */
        public Builder captcha(@Nullable Output captcha) {
            $.captcha = captcha;
            return this;
        }

        /**
         * @param captcha Instructs AWS WAF to run a Captcha check against the web request. See `captcha` below for details.
         * 
         * @return builder
         * 
         */
        public Builder captcha(WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseCaptchaArgs captcha) {
            return captcha(Output.of(captcha));
        }

        /**
         * @param 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.
         * 
         * @return builder
         * 
         */
        public Builder challenge(@Nullable Output challenge) {
            $.challenge = challenge;
            return this;
        }

        /**
         * @param 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.
         * 
         * @return builder
         * 
         */
        public Builder challenge(WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseChallengeArgs challenge) {
            return challenge(Output.of(challenge));
        }

        public Builder count(@Nullable Output count) {
            $.count = count;
            return this;
        }

        public Builder count(WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseCountArgs count) {
            return count(Output.of(count));
        }

        public WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy