Class: AWSCDK::WAF::CfnSqlInjectionMatchSetProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAF::CfnSqlInjectionMatchSetProps
- Defined in:
- waf/cfn_sql_injection_match_set_props.rb
Overview
Properties for defining a CfnSqlInjectionMatchSet.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The name, if any, of the
SqlInjectionMatchSet. -
#sql_injection_match_tuples ⇒ AWSCDK::IResolvable, ...
readonly
Specifies the parts of web requests that you want to inspect for snippets of malicious SQL code.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, sql_injection_match_tuples: nil) ⇒ CfnSqlInjectionMatchSetProps
constructor
A new instance of CfnSqlInjectionMatchSetProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, sql_injection_match_tuples: nil) ⇒ CfnSqlInjectionMatchSetProps
Returns a new instance of CfnSqlInjectionMatchSetProps.
11 12 13 14 15 16 |
# File 'waf/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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfd2FmLkNmblNxbEluamVjdGlvbk1hdGNoU2V0LlNxbEluamVjdGlvbk1hdGNoVHVwbGVQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "sqlInjectionMatchTuples") unless @sql_injection_match_tuples.nil? end |
Instance Attribute Details
#name ⇒ String (readonly)
The name, if any, of the SqlInjectionMatchSet .
22 23 24 |
# File 'waf/cfn_sql_injection_match_set_props.rb', line 22 def name @name end |
#sql_injection_match_tuples ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies the parts of web requests that you want to inspect for snippets of malicious SQL code.
27 28 29 |
# File 'waf/cfn_sql_injection_match_set_props.rb', line 27 def sql_injection_match_tuples @sql_injection_match_tuples end |
Class Method Details
.jsii_properties ⇒ Object
29 30 31 32 33 34 |
# File 'waf/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_jsii ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'waf/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 |