@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResponseInspection extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
ResponseInspection() |
Modifier and Type | Method and Description |
---|---|
ResponseInspection |
clone() |
boolean |
equals(Object obj) |
ResponseInspectionBodyContains |
getBodyContains()
Configures inspection of the response body for success and failure indicators.
|
ResponseInspectionHeader |
getHeader()
Configures inspection of the response header for success and failure indicators.
|
ResponseInspectionJson |
getJson()
Configures inspection of the response JSON for success and failure indicators.
|
ResponseInspectionStatusCode |
getStatusCode()
Configures inspection of the response status code for success and failure indicators.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBodyContains(ResponseInspectionBodyContains bodyContains)
Configures inspection of the response body for success and failure indicators.
|
void |
setHeader(ResponseInspectionHeader header)
Configures inspection of the response header for success and failure indicators.
|
void |
setJson(ResponseInspectionJson json)
Configures inspection of the response JSON for success and failure indicators.
|
void |
setStatusCode(ResponseInspectionStatusCode statusCode)
Configures inspection of the response status code for success and failure indicators.
|
String |
toString()
Returns a string representation of this object.
|
ResponseInspection |
withBodyContains(ResponseInspectionBodyContains bodyContains)
Configures inspection of the response body for success and failure indicators.
|
ResponseInspection |
withHeader(ResponseInspectionHeader header)
Configures inspection of the response header for success and failure indicators.
|
ResponseInspection |
withJson(ResponseInspectionJson json)
Configures inspection of the response JSON for success and failure indicators.
|
ResponseInspection |
withStatusCode(ResponseInspectionStatusCode statusCode)
Configures inspection of the response status code for success and failure indicators.
|
public void setStatusCode(ResponseInspectionStatusCode statusCode)
Configures inspection of the response status code for success and failure indicators.
statusCode
- Configures inspection of the response status code for success and failure indicators.public ResponseInspectionStatusCode getStatusCode()
Configures inspection of the response status code for success and failure indicators.
public ResponseInspection withStatusCode(ResponseInspectionStatusCode statusCode)
Configures inspection of the response status code for success and failure indicators.
statusCode
- Configures inspection of the response status code for success and failure indicators.public void setHeader(ResponseInspectionHeader header)
Configures inspection of the response header for success and failure indicators.
header
- Configures inspection of the response header for success and failure indicators.public ResponseInspectionHeader getHeader()
Configures inspection of the response header for success and failure indicators.
public ResponseInspection withHeader(ResponseInspectionHeader header)
Configures inspection of the response header for success and failure indicators.
header
- Configures inspection of the response header for success and failure indicators.public void setBodyContains(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.
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.public ResponseInspectionBodyContains getBodyContains()
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.
public ResponseInspection withBodyContains(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.
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.public void setJson(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.
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.public ResponseInspectionJson getJson()
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.
public ResponseInspection withJson(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.
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.public String toString()
toString
in class Object
Object.toString()
public ResponseInspection clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.