@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, used by the ATP rule group to track login failure rates.
The ATP rule group evaluates the responses that your protected resources send back to client login 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 that submit too many failed login attempts in a short amount of time.
Response inspection is available only in web ACLs that protect Amazon CloudFront distributions.
This is part of the AWSManagedRulesATPRuleSet
configuration in ManagedRuleGroupConfig
.
Enable login response inspection by configuring exactly one component of the response to inspect. You can't configure more than one. 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.
|
ResponseInspectionHeader |
getHeader()
Configures inspection of the response header.
|
ResponseInspectionJson |
getJson()
Configures inspection of the response JSON.
|
ResponseInspectionStatusCode |
getStatusCode()
Configures inspection of the response status code.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBodyContains(ResponseInspectionBodyContains bodyContains)
Configures inspection of the response body.
|
void |
setHeader(ResponseInspectionHeader header)
Configures inspection of the response header.
|
void |
setJson(ResponseInspectionJson json)
Configures inspection of the response JSON.
|
void |
setStatusCode(ResponseInspectionStatusCode statusCode)
Configures inspection of the response status code.
|
String |
toString()
Returns a string representation of this object.
|
ResponseInspection |
withBodyContains(ResponseInspectionBodyContains bodyContains)
Configures inspection of the response body.
|
ResponseInspection |
withHeader(ResponseInspectionHeader header)
Configures inspection of the response header.
|
ResponseInspection |
withJson(ResponseInspectionJson json)
Configures inspection of the response JSON.
|
ResponseInspection |
withStatusCode(ResponseInspectionStatusCode statusCode)
Configures inspection of the response status code.
|
public void setStatusCode(ResponseInspectionStatusCode statusCode)
Configures inspection of the response status code.
statusCode
- Configures inspection of the response status code.public ResponseInspectionStatusCode getStatusCode()
Configures inspection of the response status code.
public ResponseInspection withStatusCode(ResponseInspectionStatusCode statusCode)
Configures inspection of the response status code.
statusCode
- Configures inspection of the response status code.public void setHeader(ResponseInspectionHeader header)
Configures inspection of the response header.
header
- Configures inspection of the response header.public ResponseInspectionHeader getHeader()
Configures inspection of the response header.
public ResponseInspection withHeader(ResponseInspectionHeader header)
Configures inspection of the response header.
header
- Configures inspection of the response header.public void setBodyContains(ResponseInspectionBodyContains bodyContains)
Configures inspection of the response body. WAF can inspect the first 65,536 bytes (64 KB) of the response body.
bodyContains
- Configures inspection of the response body. WAF can inspect the first 65,536 bytes (64 KB) of the response
body.public ResponseInspectionBodyContains getBodyContains()
Configures inspection of the response body. 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. WAF can inspect the first 65,536 bytes (64 KB) of the response body.
bodyContains
- Configures inspection of the response body. 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. WAF can inspect the first 65,536 bytes (64 KB) of the response JSON.
json
- Configures inspection of the response JSON. WAF can inspect the first 65,536 bytes (64 KB) of the response
JSON.public ResponseInspectionJson getJson()
Configures inspection of the response JSON. 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. WAF can inspect the first 65,536 bytes (64 KB) of the response JSON.
json
- Configures inspection of the response JSON. 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.