Class: AWSCDK::WAFv2::CfnRuleGroup::HeaderMatchPatternProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFv2::CfnRuleGroup::HeaderMatchPatternProperty
- Defined in:
- wa_fv2/cfn_rule_group.rb
Overview
The filter to use to identify the subset of headers to inspect in a web request.
You must specify exactly one setting: either All , IncludedHeaders , or ExcludedHeaders .
Example JSON: "MatchPattern": { "ExcludedHeaders": [ "KeyToExclude1", "KeyToExclude2" ] }
Instance Attribute Summary collapse
-
#all ⇒ Object?
readonly
Inspect all headers.
-
#excluded_headers ⇒ Array<String>?
readonly
Inspect only the headers whose keys don't match any of the strings specified here.
-
#included_headers ⇒ Array<String>?
readonly
Inspect only the headers that have a key that matches one of the strings specified here.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(all: nil, excluded_headers: nil, included_headers: nil) ⇒ HeaderMatchPatternProperty
constructor
A new instance of HeaderMatchPatternProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(all: nil, excluded_headers: nil, included_headers: nil) ⇒ HeaderMatchPatternProperty
Returns a new instance of HeaderMatchPatternProperty.
1900 1901 1902 1903 1904 1905 1906 1907 |
# File 'wa_fv2/cfn_rule_group.rb', line 1900 def initialize(all: nil, excluded_headers: nil, included_headers: nil) @all = all Jsii::Type.check_type(@all, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "all") unless @all.nil? @excluded_headers = excluded_headers Jsii::Type.check_type(@excluded_headers, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "excludedHeaders") unless @excluded_headers.nil? @included_headers = included_headers Jsii::Type.check_type(@included_headers, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "includedHeaders") unless @included_headers.nil? end |
Instance Attribute Details
#all ⇒ Object? (readonly)
Inspect all headers.
1913 1914 1915 |
# File 'wa_fv2/cfn_rule_group.rb', line 1913 def all @all end |
#excluded_headers ⇒ Array<String>? (readonly)
Inspect only the headers whose keys don't match any of the strings specified here.
1918 1919 1920 |
# File 'wa_fv2/cfn_rule_group.rb', line 1918 def excluded_headers @excluded_headers end |
#included_headers ⇒ Array<String>? (readonly)
Inspect only the headers that have a key that matches one of the strings specified here.
1923 1924 1925 |
# File 'wa_fv2/cfn_rule_group.rb', line 1923 def included_headers @included_headers end |
Class Method Details
.jsii_properties ⇒ Object
1925 1926 1927 1928 1929 1930 1931 |
# File 'wa_fv2/cfn_rule_group.rb', line 1925 def self.jsii_properties { :all => "all", :excluded_headers => "excludedHeaders", :included_headers => "includedHeaders", } end |
Instance Method Details
#to_jsii ⇒ Object
1933 1934 1935 1936 1937 1938 1939 1940 1941 |
# File 'wa_fv2/cfn_rule_group.rb', line 1933 def to_jsii result = {} result.merge!({ "all" => @all, "excludedHeaders" => @excluded_headers, "includedHeaders" => @included_headers, }) result.compact end |