Class: AWSCDK::WAFv2::CfnWebACL::CustomRequestHandlingProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(insert_headers:) ⇒ CustomRequestHandlingProperty

Returns a new instance of CustomRequestHandlingProperty.

Parameters:



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_headersAWSCDK::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_propertiesObject



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_jsiiObject



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