Class: AWSCDK::NetworkFirewall::CfnFirewallPolicy::DimensionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::NetworkFirewall::CfnFirewallPolicy::DimensionProperty
- Defined in:
- network_firewall/cfn_firewall_policy.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.
664 665 666 667 |
# File 'network_firewall/cfn_firewall_policy.rb', line 664 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.
673 674 675 |
# File 'network_firewall/cfn_firewall_policy.rb', line 673 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
675 676 677 678 679 |
# File 'network_firewall/cfn_firewall_policy.rb', line 675 def self.jsii_properties { :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
681 682 683 684 685 686 687 |
# File 'network_firewall/cfn_firewall_policy.rb', line 681 def to_jsii result = {} result.merge!({ "value" => @value, }) result.compact end |