com.pulumi.aws.wafv2.outputs.RuleGroupRuleStatementSqliMatchStatement 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.RuleGroupRuleStatementSqliMatchStatementFieldToMatch;
import com.pulumi.aws.wafv2.outputs.RuleGroupRuleStatementSqliMatchStatementTextTransformation;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class RuleGroupRuleStatementSqliMatchStatement {
/**
* @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details.
*
*/
private @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatch fieldToMatch;
/**
* @return Sensitivity that you want AWS WAF to use to inspect for SQL injection attacks. Valid values include: `LOW`, `HIGH`.
*
*/
private @Nullable String sensitivityLevel;
/**
* @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
* At least one required.
* See Text Transformation below for details.
*
*/
private List textTransformations;
private RuleGroupRuleStatementSqliMatchStatement() {}
/**
* @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details.
*
*/
public Optional fieldToMatch() {
return Optional.ofNullable(this.fieldToMatch);
}
/**
* @return Sensitivity that you want AWS WAF to use to inspect for SQL injection attacks. Valid values include: `LOW`, `HIGH`.
*
*/
public Optional sensitivityLevel() {
return Optional.ofNullable(this.sensitivityLevel);
}
/**
* @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
* At least one required.
* See Text Transformation below for details.
*
*/
public List textTransformations() {
return this.textTransformations;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RuleGroupRuleStatementSqliMatchStatement defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatch fieldToMatch;
private @Nullable String sensitivityLevel;
private List textTransformations;
public Builder() {}
public Builder(RuleGroupRuleStatementSqliMatchStatement defaults) {
Objects.requireNonNull(defaults);
this.fieldToMatch = defaults.fieldToMatch;
this.sensitivityLevel = defaults.sensitivityLevel;
this.textTransformations = defaults.textTransformations;
}
@CustomType.Setter
public Builder fieldToMatch(@Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatch fieldToMatch) {
this.fieldToMatch = fieldToMatch;
return this;
}
@CustomType.Setter
public Builder sensitivityLevel(@Nullable String sensitivityLevel) {
this.sensitivityLevel = sensitivityLevel;
return this;
}
@CustomType.Setter
public Builder textTransformations(List textTransformations) {
if (textTransformations == null) {
throw new MissingRequiredPropertyException("RuleGroupRuleStatementSqliMatchStatement", "textTransformations");
}
this.textTransformations = textTransformations;
return this;
}
public Builder textTransformations(RuleGroupRuleStatementSqliMatchStatementTextTransformation... textTransformations) {
return textTransformations(List.of(textTransformations));
}
public RuleGroupRuleStatementSqliMatchStatement build() {
final var _resultValue = new RuleGroupRuleStatementSqliMatchStatement();
_resultValue.fieldToMatch = fieldToMatch;
_resultValue.sensitivityLevel = sensitivityLevel;
_resultValue.textTransformations = textTransformations;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy