Class: AWSCDK::WAFRegional::CfnRegexPatternSetProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFRegional::CfnRegexPatternSetProps
- Defined in:
- waf_regional/cfn_regex_pattern_set_props.rb
Overview
Properties for defining a CfnRegexPatternSet.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
A friendly name or description of the
RegexPatternSet. -
#regex_pattern_strings ⇒ Array<String>
readonly
Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as
B[a@]dB[o0]t.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, regex_pattern_strings:) ⇒ CfnRegexPatternSetProps
constructor
A new instance of CfnRegexPatternSetProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, regex_pattern_strings:) ⇒ CfnRegexPatternSetProps
Returns a new instance of CfnRegexPatternSetProps.
11 12 13 14 15 16 |
# File 'waf_regional/cfn_regex_pattern_set_props.rb', line 11 def initialize(name:, regex_pattern_strings:) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @regex_pattern_strings = regex_pattern_strings Jsii::Type.check_type(@regex_pattern_strings, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "regexPatternStrings") end |
Instance Attribute Details
#name ⇒ String (readonly)
A friendly name or description of the RegexPatternSet .
You can't change Name after you create a RegexPatternSet .
24 25 26 |
# File 'waf_regional/cfn_regex_pattern_set_props.rb', line 24 def name @name end |
#regex_pattern_strings ⇒ Array<String> (readonly)
Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as B[a@]dB[o0]t .
29 30 31 |
# File 'waf_regional/cfn_regex_pattern_set_props.rb', line 29 def regex_pattern_strings @regex_pattern_strings end |
Class Method Details
.jsii_properties ⇒ Object
31 32 33 34 35 36 |
# File 'waf_regional/cfn_regex_pattern_set_props.rb', line 31 def self.jsii_properties { :name => "name", :regex_pattern_strings => "regexPatternStrings", } end |
Instance Method Details
#to_jsii ⇒ Object
38 39 40 41 42 43 44 45 |
# File 'waf_regional/cfn_regex_pattern_set_props.rb', line 38 def to_jsii result = {} result.merge!({ "name" => @name, "regexPatternStrings" => @regex_pattern_strings, }) result.compact end |