Class: AWSCDK::WAFRegional::CfnByteMatchSetProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFRegional::CfnByteMatchSetProps
- Defined in:
- waf_regional/cfn_byte_match_set_props.rb
Overview
Properties for defining a CfnByteMatchSet.
Instance Attribute Summary collapse
-
#byte_match_tuples ⇒ AWSCDK::IResolvable, ...
readonly
Specifies the bytes (typically a string that corresponds with ASCII characters) that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings.
-
#name ⇒ String
readonly
A friendly name or description of the
ByteMatchSet.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, byte_match_tuples: nil) ⇒ CfnByteMatchSetProps
constructor
A new instance of CfnByteMatchSetProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, byte_match_tuples: nil) ⇒ CfnByteMatchSetProps
Returns a new instance of CfnByteMatchSetProps.
11 12 13 14 15 16 |
# File 'waf_regional/cfn_byte_match_set_props.rb', line 11 def initialize(name:, byte_match_tuples: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @byte_match_tuples = byte_match_tuples Jsii::Type.check_type(@byte_match_tuples, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfd2FmcmVnaW9uYWwuQ2ZuQnl0ZU1hdGNoU2V0LkJ5dGVNYXRjaFR1cGxlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "byteMatchTuples") unless @byte_match_tuples.nil? end |
Instance Attribute Details
#byte_match_tuples ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies the bytes (typically a string that corresponds with ASCII characters) that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings.
29 30 31 |
# File 'waf_regional/cfn_byte_match_set_props.rb', line 29 def byte_match_tuples @byte_match_tuples end |
#name ⇒ String (readonly)
A friendly name or description of the ByteMatchSet .
You can't change Name after you create a ByteMatchSet .
24 25 26 |
# File 'waf_regional/cfn_byte_match_set_props.rb', line 24 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
31 32 33 34 35 36 |
# File 'waf_regional/cfn_byte_match_set_props.rb', line 31 def self.jsii_properties { :name => "name", :byte_match_tuples => "byteMatchTuples", } end |
Instance Method Details
#to_jsii ⇒ Object
38 39 40 41 42 43 44 45 |
# File 'waf_regional/cfn_byte_match_set_props.rb', line 38 def to_jsii result = {} result.merge!({ "name" => @name, "byteMatchTuples" => @byte_match_tuples, }) result.compact end |