Class ResponseInspection
- java.lang.Object
-
- software.amazon.awssdk.services.wafv2.model.ResponseInspection
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ResponseInspection.Builder,ResponseInspection>
@Generated("software.amazon.awssdk:codegen") public final class ResponseInspection extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResponseInspection.Builder,ResponseInspection>
The criteria for inspecting responses to login requests and account creation requests, used by the ATP and ACFP rule groups to track login and account creation success and failure rates.
Response inspection is available only in web ACLs that protect Amazon CloudFront distributions.
The rule groups evaluates the responses that your protected resources send back to client login and account creation attempts, keeping count of successful and failed attempts from each IP address and client session. Using this information, the rule group labels and mitigates requests from client sessions and IP addresses with too much suspicious activity in a short amount of time.
This is part of the
AWSManagedRulesATPRuleSetandAWSManagedRulesACFPRuleSetconfigurations inManagedRuleGroupConfig.Enable response inspection by configuring exactly one component of the response to inspect, for example,
HeaderorStatusCode. You can't configure more than one component for inspection. If you don't configure any of the response inspection options, response inspection is disabled.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceResponseInspection.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseInspectionBodyContainsbodyContains()Configures inspection of the response body for success and failure indicators.static ResponseInspection.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()ResponseInspectionHeaderheader()Configures inspection of the response header for success and failure indicators.ResponseInspectionJsonjson()Configures inspection of the response JSON for success and failure indicators.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ResponseInspection.Builder>serializableBuilderClass()ResponseInspectionStatusCodestatusCode()Configures inspection of the response status code for success and failure indicators.ResponseInspection.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
statusCode
public final ResponseInspectionStatusCode statusCode()
Configures inspection of the response status code for success and failure indicators.
- Returns:
- Configures inspection of the response status code for success and failure indicators.
-
header
public final ResponseInspectionHeader header()
Configures inspection of the response header for success and failure indicators.
- Returns:
- Configures inspection of the response header for success and failure indicators.
-
bodyContains
public final ResponseInspectionBodyContains bodyContains()
Configures inspection of the response body for success and failure indicators. WAF can inspect the first 65,536 bytes (64 KB) of the response body.
- Returns:
- Configures inspection of the response body for success and failure indicators. WAF can inspect the first 65,536 bytes (64 KB) of the response body.
-
json
public final ResponseInspectionJson json()
Configures inspection of the response JSON for success and failure indicators. WAF can inspect the first 65,536 bytes (64 KB) of the response JSON.
- Returns:
- Configures inspection of the response JSON for success and failure indicators. WAF can inspect the first 65,536 bytes (64 KB) of the response JSON.
-
toBuilder
public ResponseInspection.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ResponseInspection.Builder,ResponseInspection>
-
builder
public static ResponseInspection.Builder builder()
-
serializableBuilderClass
public static Class<? extends ResponseInspection.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-