com.pulumi.aws.wafv2.outputs.WebAclRuleStatementXssMatchStatementFieldToMatchCookies Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** 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.outputs;
import com.pulumi.aws.wafv2.outputs.WebAclRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class WebAclRuleStatementXssMatchStatementFieldToMatchCookies {
/**
* @return The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html)
*
*/
private List matchPatterns;
/**
* @return The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE`
*
*/
private String matchScope;
/**
* @return What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`.
*
*/
private String oversizeHandling;
private WebAclRuleStatementXssMatchStatementFieldToMatchCookies() {}
/**
* @return The filter to use to identify the subset of cookies to inspect in a web request. You must specify exactly one setting: either `all`, `included_cookies` or `excluded_cookies`. More details: [CookieMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_CookieMatchPattern.html)
*
*/
public List matchPatterns() {
return this.matchPatterns;
}
/**
* @return The parts of the cookies to inspect with the rule inspection criteria. If you specify All, AWS WAF inspects both keys and values. Valid values: `ALL`, `KEY`, `VALUE`
*
*/
public String matchScope() {
return this.matchScope;
}
/**
* @return What AWS WAF should do if the cookies of the request are larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF. Valid values: `CONTINUE`, `MATCH`, `NO_MATCH`.
*
*/
public String oversizeHandling() {
return this.oversizeHandling;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WebAclRuleStatementXssMatchStatementFieldToMatchCookies defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List matchPatterns;
private String matchScope;
private String oversizeHandling;
public Builder() {}
public Builder(WebAclRuleStatementXssMatchStatementFieldToMatchCookies defaults) {
Objects.requireNonNull(defaults);
this.matchPatterns = defaults.matchPatterns;
this.matchScope = defaults.matchScope;
this.oversizeHandling = defaults.oversizeHandling;
}
@CustomType.Setter
public Builder matchPatterns(List matchPatterns) {
if (matchPatterns == null) {
throw new MissingRequiredPropertyException("WebAclRuleStatementXssMatchStatementFieldToMatchCookies", "matchPatterns");
}
this.matchPatterns = matchPatterns;
return this;
}
public Builder matchPatterns(WebAclRuleStatementXssMatchStatementFieldToMatchCookiesMatchPattern... matchPatterns) {
return matchPatterns(List.of(matchPatterns));
}
@CustomType.Setter
public Builder matchScope(String matchScope) {
if (matchScope == null) {
throw new MissingRequiredPropertyException("WebAclRuleStatementXssMatchStatementFieldToMatchCookies", "matchScope");
}
this.matchScope = matchScope;
return this;
}
@CustomType.Setter
public Builder oversizeHandling(String oversizeHandling) {
if (oversizeHandling == null) {
throw new MissingRequiredPropertyException("WebAclRuleStatementXssMatchStatementFieldToMatchCookies", "oversizeHandling");
}
this.oversizeHandling = oversizeHandling;
return this;
}
public WebAclRuleStatementXssMatchStatementFieldToMatchCookies build() {
final var _resultValue = new WebAclRuleStatementXssMatchStatementFieldToMatchCookies();
_resultValue.matchPatterns = matchPatterns;
_resultValue.matchScope = matchScope;
_resultValue.oversizeHandling = oversizeHandling;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy