@Stability(value=Stable)
public static interface CfnWebACL.SqliMatchStatementProperty
extends software.amazon.jsii.JsiiSerializable
To allow or block web requests that appear to contain malicious SQL code, create one or more SQL injection match conditions. An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. Later in the process, when you create a web ACL, you specify whether to allow or block requests that appear to contain malicious SQL code.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.wafv2.*;
Object all;
Object allQueryArguments;
Object body;
Object method;
Object queryString;
Object singleHeader;
Object singleQueryArgument;
Object uriPath;
SqliMatchStatementProperty sqliMatchStatementProperty = SqliMatchStatementProperty.builder()
.fieldToMatch(FieldToMatchProperty.builder()
.allQueryArguments(allQueryArguments)
.body(body)
.jsonBody(JsonBodyProperty.builder()
.matchPattern(JsonMatchPatternProperty.builder()
.all(all)
.includedPaths(List.of("includedPaths"))
.build())
.matchScope("matchScope")
// the properties below are optional
.invalidFallbackBehavior("invalidFallbackBehavior")
.build())
.method(method)
.queryString(queryString)
.singleHeader(singleHeader)
.singleQueryArgument(singleQueryArgument)
.uriPath(uriPath)
.build())
.textTransformations(List.of(TextTransformationProperty.builder()
.priority(123)
.type("type")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnWebACL.SqliMatchStatementProperty.Builder
A builder for
CfnWebACL.SqliMatchStatementProperty |
static class |
CfnWebACL.SqliMatchStatementProperty.Jsii$Proxy
An implementation for
CfnWebACL.SqliMatchStatementProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnWebACL.SqliMatchStatementProperty.Builder |
builder() |
Object |
getFieldToMatch()
The part of a web request that you want AWS WAF to inspect.
|
Object |
getTextTransformations()
Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
|
@Stability(value=Stable) @NotNull Object getFieldToMatch()
@Stability(value=Stable) @NotNull Object getTextTransformations()
If you specify one or more transformations in a rule statement, AWS WAF performs all transformations on the content identified by FieldToMatch , starting from the lowest priority setting, before inspecting the content for a match.
@Stability(value=Stable) static CfnWebACL.SqliMatchStatementProperty.Builder builder()
Copyright © 2022. All rights reserved.