Class: AWSCDK::WAFv2::CfnWebACL::FieldIdentifierProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
wa_fv2/cfn_web_acl.rb

Overview

The identifier of a field in the web request payload that contains customer data.

This data type is used to specify fields in the RequestInspection and RequestInspectionACFP configurations, which are used in the managed rule group configurations AWSManagedRulesATPRuleSet and AWSManagedRulesACFPRuleSet , respectively.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(identifier:) ⇒ FieldIdentifierProperty

Returns a new instance of FieldIdentifierProperty.

Parameters:

  • identifier (String)

    The name of the field.



2377
2378
2379
2380
# File 'wa_fv2/cfn_web_acl.rb', line 2377

def initialize(identifier:)
  @identifier = identifier
  Jsii::Type.check_type(@identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "identifier")
end

Instance Attribute Details

#identifierString (readonly)

The name of the field.

When the PayloadType in the request inspection is JSON , this identifier must be in JSON pointer syntax. For example /form/username . For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer .

When the PayloadType is FORM_ENCODED , use the HTML form names. For example, username .

For more information, see the descriptions for each field type in the request inspection properties.



2392
2393
2394
# File 'wa_fv2/cfn_web_acl.rb', line 2392

def identifier
  @identifier
end

Class Method Details

.jsii_propertiesObject



2394
2395
2396
2397
2398
# File 'wa_fv2/cfn_web_acl.rb', line 2394

def self.jsii_properties
  {
    :identifier => "identifier",
  }
end

Instance Method Details

#to_jsiiObject



2400
2401
2402
2403
2404
2405
2406
# File 'wa_fv2/cfn_web_acl.rb', line 2400

def to_jsii
  result = {}
  result.merge!({
    "identifier" => @identifier,
  })
  result.compact
end