Class: AWSCDK::WAFv2::CfnWebACL::ApplicationAttributeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFv2::CfnWebACL::ApplicationAttributeProperty
- 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
-
#name ⇒ String
readonly
Specifies the attribute name.
-
#values ⇒ Array<String>
readonly
Specifies the attribute value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, values:) ⇒ ApplicationAttributeProperty
constructor
A new instance of ApplicationAttributeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, values:) ⇒ ApplicationAttributeProperty
Returns a new instance of ApplicationAttributeProperty.
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
#name ⇒ String (readonly)
Specifies the attribute name.
1140 1141 1142 |
# File 'wa_fv2/cfn_web_acl.rb', line 1140 def name @name end |
#values ⇒ Array<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_properties ⇒ Object
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_jsii ⇒ Object
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 |