Interface CfnWebACL.RequestInspectionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnWebACL.RequestInspectionProperty.Jsii$Proxy
- Enclosing class:
CfnWebACL
This is part of the AWSManagedRulesATPRuleSet
configuration in ManagedRuleGroupConfig
.
In these settings, you specify how your application accepts login attempts by providing the request payload type and the names of the fields within the request body where the username and password are provided.
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.*; RequestInspectionProperty requestInspectionProperty = RequestInspectionProperty.builder() .passwordField(FieldIdentifierProperty.builder() .identifier("identifier") .build()) .payloadType("payloadType") .usernameField(FieldIdentifierProperty.builder() .identifier("identifier") .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnWebACL.RequestInspectionProperty
static final class
An implementation forCfnWebACL.RequestInspectionProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The name of the field in the request payload that contains your customer's password.The payload type for your login endpoint, either JSON or form encoded.The name of the field in the request payload that contains your customer's username.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPasswordField
The name of the field in the request payload that contains your customer's password.How you specify this depends on the request inspection payload type.
- For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer .
For example, for the JSON payload
{ "form": { "password": "THE_PASSWORD" } }
, the password field specification is/form/password
.- For form encoded payload types, use the HTML form names.
For example, for an HTML form with the input element named
password1
, the password field specification ispassword1
.- See Also:
-
getPayloadType
The payload type for your login endpoint, either JSON or form encoded.- See Also:
-
getUsernameField
The name of the field in the request payload that contains your customer's username.How you specify this depends on the request inspection payload type.
- For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer .
For example, for the JSON payload
{ "form": { "username": "THE_USERNAME" } }
, the username field specification is/form/username
.- For form encoded payload types, use the HTML form names.
For example, for an HTML form with the input element named
username1
, the username field specification isusername1
- See Also:
-
builder
-