Class: AWSCDK::WAF::CfnByteMatchSetProps

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

Overview

Properties for defining a CfnByteMatchSet.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, byte_match_tuples: nil) ⇒ CfnByteMatchSetProps

Returns a new instance of CfnByteMatchSetProps.

Parameters:



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

def initialize(name:, byte_match_tuples: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @byte_match_tuples = byte_match_tuples
  Jsii::Type.check_type(@byte_match_tuples, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfd2FmLkNmbkJ5dGVNYXRjaFNldC5CeXRlTWF0Y2hUdXBsZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "byteMatchTuples") unless @byte_match_tuples.nil?
end

Instance Attribute Details

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

Specifies the bytes (typically a string that corresponds with ASCII characters) that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings.



29
30
31
# File 'waf/cfn_byte_match_set_props.rb', line 29

def byte_match_tuples
  @byte_match_tuples
end

#nameString (readonly)

The name of the ByteMatchSet .

You can't change Name after you create a ByteMatchSet .



24
25
26
# File 'waf/cfn_byte_match_set_props.rb', line 24

def name
  @name
end

Class Method Details

.jsii_propertiesObject



31
32
33
34
35
36
# File 'waf/cfn_byte_match_set_props.rb', line 31

def self.jsii_properties
  {
    :name => "name",
    :byte_match_tuples => "byteMatchTuples",
  }
end

Instance Method Details

#to_jsiiObject



38
39
40
41
42
43
44
45
# File 'waf/cfn_byte_match_set_props.rb', line 38

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