Class: AWSCDK::WAFv2::CfnWebACL::CustomRequestHandlingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFv2::CfnWebACL::CustomRequestHandlingProperty
- Defined in:
- wa_fv2/cfn_web_acl.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::CfnWebACL::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.
2050 2051 2052 2053 |
# File 'wa_fv2/cfn_web_acl.rb', line 2050 def initialize(insert_headers:) @insert_headers = insert_headers Jsii::Type.check_type(@insert_headers, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfd2FmdjIuQ2ZuV2ViQUNMLkN1c3RvbUhUVFBIZWFkZXJQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "insertHeaders") end |
Instance Attribute Details
#insert_headers ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::WAFv2::CfnWebACL::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 .
2061 2062 2063 |
# File 'wa_fv2/cfn_web_acl.rb', line 2061 def insert_headers @insert_headers end |
Class Method Details
.jsii_properties ⇒ Object
2063 2064 2065 2066 2067 |
# File 'wa_fv2/cfn_web_acl.rb', line 2063 def self.jsii_properties { :insert_headers => "insertHeaders", } end |
Instance Method Details
#to_jsii ⇒ Object
2069 2070 2071 2072 2073 2074 2075 |
# File 'wa_fv2/cfn_web_acl.rb', line 2069 def to_jsii result = {} result.merge!({ "insertHeaders" => @insert_headers, }) result.compact end |