Class: AWSCDK::NetworkFirewall::CfnRuleGroup::DimensionProperty

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

Overview

The value to use in an Amazon CloudWatch custom metric dimension.

This is used in the PublishMetrics custom action. A CloudWatch custom metric dimension is a name/value pair that's part of the identity of a metric.

AWS Network Firewall sets the dimension name to CustomAction and you provide the dimension value.

For more information about CloudWatch custom metric dimensions, see Publishing Custom Metrics in the Amazon CloudWatch User Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value:) ⇒ DimensionProperty

Returns a new instance of DimensionProperty.

Parameters:

  • value (String)

    The value to use in the custom metric dimension.



748
749
750
751
# File 'network_firewall/cfn_rule_group.rb', line 748

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

Instance Attribute Details

#valueString (readonly)

The value to use in the custom metric dimension.



757
758
759
# File 'network_firewall/cfn_rule_group.rb', line 757

def value
  @value
end

Class Method Details

.jsii_propertiesObject



759
760
761
762
763
# File 'network_firewall/cfn_rule_group.rb', line 759

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

Instance Method Details

#to_jsiiObject



765
766
767
768
769
770
771
# File 'network_firewall/cfn_rule_group.rb', line 765

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