Class: AWSCDK::NetworkFirewall::CfnRuleGroup::PublishMetricActionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::NetworkFirewall::CfnRuleGroup::PublishMetricActionProperty
- Defined in:
- network_firewall/cfn_rule_group.rb
Overview
Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet.
This setting defines a CloudWatch dimension value to be published.
Instance Attribute Summary collapse
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(dimensions:) ⇒ PublishMetricActionProperty
constructor
A new instance of PublishMetricActionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(dimensions:) ⇒ PublishMetricActionProperty
Returns a new instance of PublishMetricActionProperty.
1157 1158 1159 1160 |
# File 'network_firewall/cfn_rule_group.rb', line 1157 def initialize(dimensions:) @dimensions = dimensions Jsii::Type.check_type(@dimensions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbmV0d29ya2ZpcmV3YWxsLkNmblJ1bGVHcm91cC5EaW1lbnNpb25Qcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "dimensions") end |
Instance Attribute Details
#dimensions ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::NetworkFirewall::CfnRuleGroup::DimensionProperty> (readonly)
1164 1165 1166 |
# File 'network_firewall/cfn_rule_group.rb', line 1164 def dimensions @dimensions end |
Class Method Details
.jsii_properties ⇒ Object
1166 1167 1168 1169 1170 |
# File 'network_firewall/cfn_rule_group.rb', line 1166 def self.jsii_properties { :dimensions => "dimensions", } end |
Instance Method Details
#to_jsii ⇒ Object
1172 1173 1174 1175 1176 1177 1178 |
# File 'network_firewall/cfn_rule_group.rb', line 1172 def to_jsii result = {} result.merge!({ "dimensions" => @dimensions, }) result.compact end |