com.pulumi.aws.wafv2.outputs.RuleGroupRuleStatementRateBasedStatementCustomKeyHeader 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.RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation;
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 RuleGroupRuleStatementRateBasedStatementCustomKeyHeader {
/**
* @return A friendly name of the rule group.
*
*/
private String name;
/**
* @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See Text Transformation above for details.
*
*/
private List textTransformations;
private RuleGroupRuleStatementRateBasedStatementCustomKeyHeader() {}
/**
* @return A friendly name of the rule group.
*
*/
public String name() {
return this.name;
}
/**
* @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See Text Transformation above for details.
*
*/
public List textTransformations() {
return this.textTransformations;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RuleGroupRuleStatementRateBasedStatementCustomKeyHeader defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String name;
private List textTransformations;
public Builder() {}
public Builder(RuleGroupRuleStatementRateBasedStatementCustomKeyHeader defaults) {
Objects.requireNonNull(defaults);
this.name = defaults.name;
this.textTransformations = defaults.textTransformations;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("RuleGroupRuleStatementRateBasedStatementCustomKeyHeader", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder textTransformations(List textTransformations) {
if (textTransformations == null) {
throw new MissingRequiredPropertyException("RuleGroupRuleStatementRateBasedStatementCustomKeyHeader", "textTransformations");
}
this.textTransformations = textTransformations;
return this;
}
public Builder textTransformations(RuleGroupRuleStatementRateBasedStatementCustomKeyHeaderTextTransformation... textTransformations) {
return textTransformations(List.of(textTransformations));
}
public RuleGroupRuleStatementRateBasedStatementCustomKeyHeader build() {
final var _resultValue = new RuleGroupRuleStatementRateBasedStatementCustomKeyHeader();
_resultValue.name = name;
_resultValue.textTransformations = textTransformations;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy