Class: AWSCDK::WAF::CfnXssMatchSetProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
waf/cfn_xss_match_set_props.rb

Overview

Properties for defining a CfnXssMatchSet.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, xss_match_tuples:) ⇒ CfnXssMatchSetProps

Returns a new instance of CfnXssMatchSetProps.

Parameters:



11
12
13
14
15
16
# File 'waf/cfn_xss_match_set_props.rb', line 11

def initialize(name:, xss_match_tuples:)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @xss_match_tuples = xss_match_tuples
  Jsii::Type.check_type(@xss_match_tuples, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfd2FmLkNmblhzc01hdGNoU2V0Llhzc01hdGNoVHVwbGVQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "xssMatchTuples")
end

Instance Attribute Details

#nameString (readonly)

The name, if any, of the XssMatchSet .



22
23
24
# File 'waf/cfn_xss_match_set_props.rb', line 22

def name
  @name
end

#xss_match_tuplesAWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::WAF::CfnXssMatchSet::XssMatchTupleProperty> (readonly)

Specifies the parts of web requests that you want to inspect for cross-site scripting attacks.



27
28
29
# File 'waf/cfn_xss_match_set_props.rb', line 27

def xss_match_tuples
  @xss_match_tuples
end

Class Method Details

.jsii_propertiesObject



29
30
31
32
33
34
# File 'waf/cfn_xss_match_set_props.rb', line 29

def self.jsii_properties
  {
    :name => "name",
    :xss_match_tuples => "xssMatchTuples",
  }
end

Instance Method Details

#to_jsiiObject



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

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