Class: AWSCDK::WAFRegional::CfnSqlInjectionMatchSetProps

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

Overview

Properties for defining a CfnSqlInjectionMatchSet.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, sql_injection_match_tuples: nil) ⇒ CfnSqlInjectionMatchSetProps

Returns a new instance of CfnSqlInjectionMatchSetProps.

Parameters:



11
12
13
14
15
16
# File 'waf_regional/cfn_sql_injection_match_set_props.rb', line 11

def initialize(name:, sql_injection_match_tuples: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @sql_injection_match_tuples = sql_injection_match_tuples
  Jsii::Type.check_type(@sql_injection_match_tuples, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfd2FmcmVnaW9uYWwuQ2ZuU3FsSW5qZWN0aW9uTWF0Y2hTZXQuU3FsSW5qZWN0aW9uTWF0Y2hUdXBsZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "sqlInjectionMatchTuples") unless @sql_injection_match_tuples.nil?
end

Instance Attribute Details

#nameString (readonly)

The name, if any, of the SqlInjectionMatchSet .



22
23
24
# File 'waf_regional/cfn_sql_injection_match_set_props.rb', line 22

def name
  @name
end

#sql_injection_match_tuplesAWSCDK::IResolvable, ... (readonly)

Specifies the parts of web requests that you want to inspect for snippets of malicious SQL code.



27
28
29
# File 'waf_regional/cfn_sql_injection_match_set_props.rb', line 27

def sql_injection_match_tuples
  @sql_injection_match_tuples
end

Class Method Details

.jsii_propertiesObject



29
30
31
32
33
34
# File 'waf_regional/cfn_sql_injection_match_set_props.rb', line 29

def self.jsii_properties
  {
    :name => "name",
    :sql_injection_match_tuples => "sqlInjectionMatchTuples",
  }
end

Instance Method Details

#to_jsiiObject



36
37
38
39
40
41
42
43
# File 'waf_regional/cfn_sql_injection_match_set_props.rb', line 36

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "sqlInjectionMatchTuples" => @sql_injection_match_tuples,
  })
  result.compact
end