Class: AWSCDK::WAFv2::CfnRuleGroup::LabelSummaryProperty

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

Overview

List of labels used by one or more of the rules of a RuleGroup .

This summary object is used for the following rule group lists:

  • AvailableLabels - Labels that rules add to matching requests. These labels are defined in the RuleLabels for a rule.
  • ConsumedLabels - Labels that rules match against. These labels are defined in a LabelMatchStatement specification, in the Statement definition of a rule.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name: nil) ⇒ LabelSummaryProperty

Returns a new instance of LabelSummaryProperty.

Parameters:

  • name (String, nil) (defaults to: nil)

    An individual label specification.



2565
2566
2567
2568
# File 'wa_fv2/cfn_rule_group.rb', line 2565

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

Instance Attribute Details

#nameString? (readonly)

An individual label specification.



2574
2575
2576
# File 'wa_fv2/cfn_rule_group.rb', line 2574

def name
  @name
end

Class Method Details

.jsii_propertiesObject



2576
2577
2578
2579
2580
# File 'wa_fv2/cfn_rule_group.rb', line 2576

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

Instance Method Details

#to_jsiiObject



2582
2583
2584
2585
2586
2587
2588
# File 'wa_fv2/cfn_rule_group.rb', line 2582

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