Class: AWSCDK::WAFv2::CfnWebACL::RegexProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(regex_string: nil) ⇒ RegexProperty

Returns a new instance of RegexProperty.

Parameters:

  • regex_string (String, nil) (defaults to: nil)

    The string representing the regular expression.



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_stringString? (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_propertiesObject



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_jsiiObject



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