Class: AWSCDK::WAFv2::CfnLoggingConfiguration::LabelNameConditionProperty

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

Overview

A single label name condition for a condition in a logging filter.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(label_name:) ⇒ LabelNameConditionProperty

Returns a new instance of LabelNameConditionProperty.

Parameters:

  • label_name (String)

    The label name that a log record must contain in order to meet the condition.



836
837
838
839
# File 'wa_fv2/cfn_logging_configuration.rb', line 836

def initialize(label_name:)
  @label_name = label_name
  Jsii::Type.check_type(@label_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "labelName")
end

Instance Attribute Details

#label_nameString (readonly)

The label name that a log record must contain in order to meet the condition.

This must be a fully qualified label name. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label.



847
848
849
# File 'wa_fv2/cfn_logging_configuration.rb', line 847

def label_name
  @label_name
end

Class Method Details

.jsii_propertiesObject



849
850
851
852
853
# File 'wa_fv2/cfn_logging_configuration.rb', line 849

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

Instance Method Details

#to_jsiiObject



855
856
857
858
859
860
861
# File 'wa_fv2/cfn_logging_configuration.rb', line 855

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