Class: AWSCDK::WAFv2::CfnWebACL::ApplicationAttributeProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
wa_fv2/cfn_web_acl.rb

Overview

Application details defined during the web ACL creation process.

Application attributes help AWS WAF give recommendations for protection packs.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, values:) ⇒ ApplicationAttributeProperty

Returns a new instance of ApplicationAttributeProperty.

Parameters:

  • name (String)

    Specifies the attribute name.

  • values (Array<String>)

    Specifies the attribute value.



1129
1130
1131
1132
1133
1134
# File 'wa_fv2/cfn_web_acl.rb', line 1129

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

Instance Attribute Details

#nameString (readonly)

Specifies the attribute name.



1140
1141
1142
# File 'wa_fv2/cfn_web_acl.rb', line 1140

def name
  @name
end

#valuesArray<String> (readonly)

Specifies the attribute value.



1145
1146
1147
# File 'wa_fv2/cfn_web_acl.rb', line 1145

def values
  @values
end

Class Method Details

.jsii_propertiesObject



1147
1148
1149
1150
1151
1152
# File 'wa_fv2/cfn_web_acl.rb', line 1147

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

Instance Method Details

#to_jsiiObject



1154
1155
1156
1157
1158
1159
1160
1161
# File 'wa_fv2/cfn_web_acl.rb', line 1154

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