Class: AWSCDK::WAFv2::CfnRuleGroup::CustomRequestHandlingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFv2::CfnRuleGroup::CustomRequestHandlingProperty
- Defined in:
- wa_fv2/cfn_rule_group.rb
Overview
Custom request handling behavior that inserts custom headers into a web request.
You can add custom request handling for AWS WAF to use when the rule action doesn't block the request. For example, CaptchaAction for requests with valid t okens, and AllowAction .
For information about customizing web requests and responses, see Customizing web requests and responses in AWS WAF in the AWS WAF Developer Guide .
Instance Attribute Summary collapse
-
#insert_headers ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::WAFv2::CfnRuleGroup::CustomHTTPHeaderProperty>
readonly
The HTTP headers to insert into the request.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(insert_headers:) ⇒ CustomRequestHandlingProperty
constructor
A new instance of CustomRequestHandlingProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(insert_headers:) ⇒ CustomRequestHandlingProperty
Returns a new instance of CustomRequestHandlingProperty.
1379 1380 1381 1382 |
# File 'wa_fv2/cfn_rule_group.rb', line 1379 def initialize(insert_headers:) @insert_headers = insert_headers Jsii::Type.check_type(@insert_headers, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfd2FmdjIuQ2ZuUnVsZUdyb3VwLkN1c3RvbUhUVFBIZWFkZXJQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "insertHeaders") end |
Instance Attribute Details
#insert_headers ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::WAFv2::CfnRuleGroup::CustomHTTPHeaderProperty> (readonly)
The HTTP headers to insert into the request. Duplicate header names are not allowed.
For information about the limits on count and size for custom request and response settings, see AWS WAF quotas in the AWS WAF Developer Guide .
1390 1391 1392 |
# File 'wa_fv2/cfn_rule_group.rb', line 1390 def insert_headers @insert_headers end |
Class Method Details
.jsii_properties ⇒ Object
1392 1393 1394 1395 1396 |
# File 'wa_fv2/cfn_rule_group.rb', line 1392 def self.jsii_properties { :insert_headers => "insertHeaders", } end |
Instance Method Details
#to_jsii ⇒ Object
1398 1399 1400 1401 1402 1403 1404 |
# File 'wa_fv2/cfn_rule_group.rb', line 1398 def to_jsii result = {} result.merge!({ "insertHeaders" => @insert_headers, }) result.compact end |