Class: AWSCDK::WAFv2::CfnRuleGroup::LabelProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:) ⇒ LabelProperty

Returns a new instance of LabelProperty.

Parameters:

  • name (String)

    The label string.



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

#nameString (readonly)

The label string.



2536
2537
2538
# File 'wa_fv2/cfn_rule_group.rb', line 2536

def name
  @name
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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