Class: AWSCDK::WAFv2::CfnWebACL::LabelProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFv2::CfnWebACL::LabelProperty
- Defined in:
- wa_fv2/cfn_web_acl.rb
Overview
A single label container.
This is used as an element of a label array in RuleLabels inside a rule.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The label string.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:) ⇒ LabelProperty
constructor
A new instance of LabelProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:) ⇒ LabelProperty
Returns a new instance of LabelProperty.
3462 3463 3464 3465 |
# File 'wa_fv2/cfn_web_acl.rb', line 3462 def initialize(name:) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") end |
Instance Attribute Details
#name ⇒ String (readonly)
The label string.
3471 3472 3473 |
# File 'wa_fv2/cfn_web_acl.rb', line 3471 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
3473 3474 3475 3476 3477 |
# File 'wa_fv2/cfn_web_acl.rb', line 3473 def self.jsii_properties { :name => "name", } end |
Instance Method Details
#to_jsii ⇒ Object
3479 3480 3481 3482 3483 3484 3485 |
# File 'wa_fv2/cfn_web_acl.rb', line 3479 def to_jsii result = {} result.merge!({ "name" => @name, }) result.compact end |