Class CfnWebACL.RequestInspectionProperty.Builder

java.lang.Object
software.amazon.awscdk.services.wafv2.CfnWebACL.RequestInspectionProperty.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACL.RequestInspectionProperty>
Enclosing interface:
CfnWebACL.RequestInspectionProperty

@Stability(Stable) public static final class CfnWebACL.RequestInspectionProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnWebACL.RequestInspectionProperty>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • passwordField

      @Stability(Stable) public CfnWebACL.RequestInspectionProperty.Builder passwordField(IResolvable passwordField)
      Parameters:
      passwordField - The name of the field in the request payload that contains your customer's password. This parameter is required. 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 is password1 .

      Returns:
      this
    • passwordField

      @Stability(Stable) public CfnWebACL.RequestInspectionProperty.Builder passwordField(CfnWebACL.FieldIdentifierProperty passwordField)
      Parameters:
      passwordField - The name of the field in the request payload that contains your customer's password. This parameter is required. 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 is password1 .

      Returns:
      this
    • payloadType

      @Stability(Stable) public CfnWebACL.RequestInspectionProperty.Builder payloadType(String payloadType)
      Parameters:
      payloadType - The payload type for your login endpoint, either JSON or form encoded. This parameter is required.
      Returns:
      this
    • usernameField

      @Stability(Stable) public CfnWebACL.RequestInspectionProperty.Builder usernameField(IResolvable usernameField)
      Parameters:
      usernameField - The name of the field in the request payload that contains your customer's username. This parameter is required. 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 is username1

      Returns:
      this
    • usernameField

      @Stability(Stable) public CfnWebACL.RequestInspectionProperty.Builder usernameField(CfnWebACL.FieldIdentifierProperty usernameField)
      Parameters:
      usernameField - The name of the field in the request payload that contains your customer's username. This parameter is required. 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 is username1

      Returns:
      this
    • build

      @Stability(Stable) public CfnWebACL.RequestInspectionProperty build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnWebACL.RequestInspectionProperty>
      Returns:
      a new instance of CfnWebACL.RequestInspectionProperty
      Throws:
      NullPointerException - if any required attribute was not provided