Class: AWSCDK::ObservabilityAdmin::CfnOrganizationTelemetryRule::LabelNameConditionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
observability_admin/cfn_organization_telemetry_rule.rb

Overview

Condition that matches based on WAF rule labels, with label names limited to 1024 characters.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(label_name: nil) ⇒ LabelNameConditionProperty

Returns a new instance of LabelNameConditionProperty.

Parameters:

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

    The label name to match, supporting alphanumeric characters, underscores, hyphens, and colons.



951
952
953
954
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 951

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

Instance Attribute Details

#label_nameString? (readonly)

The label name to match, supporting alphanumeric characters, underscores, hyphens, and colons.



960
961
962
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 960

def label_name
  @label_name
end

Class Method Details

.jsii_propertiesObject



962
963
964
965
966
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 962

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

Instance Method Details

#to_jsiiObject



968
969
970
971
972
973
974
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 968

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