Class: AWSCDK::WAFRegional::CfnRegexPatternSetProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
waf_regional/cfn_regex_pattern_set_props.rb

Overview

Properties for defining a CfnRegexPatternSet.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, regex_pattern_strings:) ⇒ CfnRegexPatternSetProps

Returns a new instance of CfnRegexPatternSetProps.

Parameters:

  • name (String)

    A friendly name or description of the RegexPatternSet .

  • regex_pattern_strings (Array<String>)

    Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as B[a@]dB[o0]t .



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

#nameString (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_stringsArray<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_propertiesObject



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_jsiiObject



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