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

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

Go to download

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

There is a newer version: 6.60.0-alpha.1731982519
Show 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.WebAclRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


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

    public static final WebAclRuleStatementRegexMatchStatementFieldToMatchHeaderArgs Empty = new WebAclRuleStatementRegexMatchStatementFieldToMatchHeaderArgs();

    /**
     * The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments:
     * 
     */
    @Import(name="matchPattern", required=true)
    private Output matchPattern;

    /**
     * @return The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments:
     * 
     */
    public Output matchPattern() {
        return this.matchPattern;
    }

    /**
     * The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`.
     * 
     */
    @Import(name="matchScope", required=true)
    private Output matchScope;

    /**
     * @return The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`.
     * 
     */
    public Output matchScope() {
        return this.matchScope;
    }

    /**
     * Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information.
     * 
     */
    @Import(name="oversizeHandling", required=true)
    private Output oversizeHandling;

    /**
     * @return Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information.
     * 
     */
    public Output oversizeHandling() {
        return this.oversizeHandling;
    }

    private WebAclRuleStatementRegexMatchStatementFieldToMatchHeaderArgs() {}

    private WebAclRuleStatementRegexMatchStatementFieldToMatchHeaderArgs(WebAclRuleStatementRegexMatchStatementFieldToMatchHeaderArgs $) {
        this.matchPattern = $.matchPattern;
        this.matchScope = $.matchScope;
        this.oversizeHandling = $.oversizeHandling;
    }

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

    public static final class Builder {
        private WebAclRuleStatementRegexMatchStatementFieldToMatchHeaderArgs $;

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

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

        /**
         * @param matchPattern The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments:
         * 
         * @return builder
         * 
         */
        public Builder matchPattern(Output matchPattern) {
            $.matchPattern = matchPattern;
            return this;
        }

        /**
         * @param matchPattern The filter to use to identify the subset of headers to inspect in a web request. The `match_pattern` block supports only one of the following arguments:
         * 
         * @return builder
         * 
         */
        public Builder matchPattern(WebAclRuleStatementRegexMatchStatementFieldToMatchHeaderMatchPatternArgs matchPattern) {
            return matchPattern(Output.of(matchPattern));
        }

        /**
         * @param matchScope The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`.
         * 
         * @return builder
         * 
         */
        public Builder matchScope(Output matchScope) {
            $.matchScope = matchScope;
            return this;
        }

        /**
         * @param matchScope The parts of the headers to inspect with the rule inspection criteria. If you specify `All`, AWS WAF inspects both keys and values. Valid values include the following: `ALL`, `Key`, `Value`.
         * 
         * @return builder
         * 
         */
        public Builder matchScope(String matchScope) {
            return matchScope(Output.of(matchScope));
        }

        /**
         * @param oversizeHandling Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information.
         * 
         * @return builder
         * 
         */
        public Builder oversizeHandling(Output oversizeHandling) {
            $.oversizeHandling = oversizeHandling;
            return this;
        }

        /**
         * @param oversizeHandling Oversize handling tells AWS WAF what to do with a web request when the request component that the rule inspects is over the limits. Valid values include the following: `CONTINUE`, `MATCH`, `NO_MATCH`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-oversize-handling.html) for more information.
         * 
         * @return builder
         * 
         */
        public Builder oversizeHandling(String oversizeHandling) {
            return oversizeHandling(Output.of(oversizeHandling));
        }

        public WebAclRuleStatementRegexMatchStatementFieldToMatchHeaderArgs build() {
            if ($.matchPattern == null) {
                throw new MissingRequiredPropertyException("WebAclRuleStatementRegexMatchStatementFieldToMatchHeaderArgs", "matchPattern");
            }
            if ($.matchScope == null) {
                throw new MissingRequiredPropertyException("WebAclRuleStatementRegexMatchStatementFieldToMatchHeaderArgs", "matchScope");
            }
            if ($.oversizeHandling == null) {
                throw new MissingRequiredPropertyException("WebAclRuleStatementRegexMatchStatementFieldToMatchHeaderArgs", "oversizeHandling");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy