Class ResponseInspection
- All Implemented Interfaces:
Serializable
,SdkPojo
,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 AWSManagedRulesATPRuleSet
and AWSManagedRulesACFPRuleSet
configurations
in ManagedRuleGroupConfig
.
Enable response inspection by configuring exactly one component of the response to inspect, for example,
Header
or StatusCode
. 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:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionConfigures inspection of the response body for success and failure indicators.static ResponseInspection.Builder
builder()
final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final ResponseInspectionHeader
header()
Configures inspection of the response header for success and failure indicators.final ResponseInspectionJson
json()
Configures inspection of the response JSON for success and failure indicators.static Class
<? extends ResponseInspection.Builder> Configures inspection of the response status code for success and failure indicators.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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
Configures inspection of the response header for success and failure indicators.
- Returns:
- Configures inspection of the response header for success and failure indicators.
-
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
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
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<ResponseInspection.Builder,
ResponseInspection> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-