Class: AWSCDK::WAFv2::CfnWebACL::RegexProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFv2::CfnWebACL::RegexProperty
- Defined in:
- wa_fv2/cfn_web_acl.rb
Overview
A single regular expression.
This is used in a RegexPatternSet and also in the configuration for the AWS Managed Rules rule group AWSManagedRulesAntiDDoSRuleSet .
Instance Attribute Summary collapse
-
#regex_string ⇒ String?
readonly
The string representing the regular expression.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(regex_string: nil) ⇒ RegexProperty
constructor
A new instance of RegexProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(regex_string: nil) ⇒ RegexProperty
Returns a new instance of RegexProperty.
4871 4872 4873 4874 |
# File 'wa_fv2/cfn_web_acl.rb', line 4871 def initialize(regex_string: nil) @regex_string = regex_string Jsii::Type.check_type(@regex_string, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "regexString") unless @regex_string.nil? end |
Instance Attribute Details
#regex_string ⇒ String? (readonly)
The string representing the regular expression.
4880 4881 4882 |
# File 'wa_fv2/cfn_web_acl.rb', line 4880 def regex_string @regex_string end |
Class Method Details
.jsii_properties ⇒ Object
4882 4883 4884 4885 4886 |
# File 'wa_fv2/cfn_web_acl.rb', line 4882 def self.jsii_properties { :regex_string => "regexString", } end |
Instance Method Details
#to_jsii ⇒ Object
4888 4889 4890 4891 4892 4893 4894 |
# File 'wa_fv2/cfn_web_acl.rb', line 4888 def to_jsii result = {} result.merge!({ "regexString" => @regex_string, }) result.compact end |