Class: AWSCDK::WAFv2::CfnWebACL::LabelProperty

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

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.



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

#nameString (readonly)

The label string.



3471
3472
3473
# File 'wa_fv2/cfn_web_acl.rb', line 3471

def name
  @name
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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