Class CfnWebACL.RequestInspectionProperty
The criteria for inspecting login requests, used by the ATP rule group to validate credentials usage.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.AWS.WAFv2.dll
Syntax (csharp)
public class RequestInspectionProperty : Object, CfnWebACL.IRequestInspectionProperty
Syntax (vb)
Public Class RequestInspectionProperty
Inherits Object
Implements CfnWebACL.IRequestInspectionProperty
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.WAFv2;
var requestInspectionProperty = new RequestInspectionProperty {
PasswordField = new FieldIdentifierProperty {
Identifier = "identifier"
},
PayloadType = "payloadType",
UsernameField = new FieldIdentifierProperty {
Identifier = "identifier"
}
};
Synopsis
Constructors
RequestInspectionProperty() |
Properties
PasswordField | The name of the field in the request payload that contains your customer's password. |
PayloadType | The payload type for your login endpoint, either JSON or form encoded. |
UsernameField | The name of the field in the request payload that contains your customer's username. |
Constructors
RequestInspectionProperty()
public RequestInspectionProperty()
Properties
PasswordField
The name of the field in the request payload that contains your customer's password.
public object PasswordField { get; set; }
Property Value
System.Object
Remarks
How you specify this depends on the request inspection payload type.
For example, for the JSON payload { "form": { "password": "THE_PASSWORD" } }
, the password field specification is /form/password
.
For example, for an HTML form with the input element named password1
, the password field specification is password1
.
PayloadType
The payload type for your login endpoint, either JSON or form encoded.
public string PayloadType { get; set; }
Property Value
System.String
Remarks
UsernameField
The name of the field in the request payload that contains your customer's username.
public object UsernameField { get; set; }
Property Value
System.Object
Remarks
How you specify this depends on the request inspection payload type.
For example, for the JSON payload { "form": { "username": "THE_USERNAME" } }
, the username field specification is /form/username
.
For example, for an HTML form with the input element named username1
, the username field specification is username1