Class: AWSCDK::NetworkFirewall::CfnRuleGroup::DimensionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::NetworkFirewall::CfnRuleGroup::DimensionProperty
- 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
-
#value ⇒ String
readonly
The value to use in the custom metric dimension.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value:) ⇒ DimensionProperty
constructor
A new instance of DimensionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(value:) ⇒ DimensionProperty
Returns a new instance of DimensionProperty.
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
#value ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |