Class: AWSCDK::WAFv2::CfnRuleGroup::LabelProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFv2::CfnRuleGroup::LabelProperty
- Defined in:
- wa_fv2/cfn_rule_group.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.
2527 2528 2529 2530 |
# File 'wa_fv2/cfn_rule_group.rb', line 2527 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.
2536 2537 2538 |
# File 'wa_fv2/cfn_rule_group.rb', line 2536 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
2538 2539 2540 2541 2542 |
# File 'wa_fv2/cfn_rule_group.rb', line 2538 def self.jsii_properties { :name => "name", } end |
Instance Method Details
#to_jsii ⇒ Object
2544 2545 2546 2547 2548 2549 2550 |
# File 'wa_fv2/cfn_rule_group.rb', line 2544 def to_jsii result = {} result.merge!({ "name" => @name, }) result.compact end |