Class: AWSCDK::NetworkFirewall::CfnFirewallPolicy::ActionDefinitionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::NetworkFirewall::CfnFirewallPolicy::ActionDefinitionProperty
- Defined in:
- network_firewall/cfn_firewall_policy.rb
Overview
A custom action to use in stateless rule actions settings.
Instance Attribute Summary collapse
-
#publish_metric_action ⇒ AWSCDK::IResolvable, ...
readonly
Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(publish_metric_action: nil) ⇒ ActionDefinitionProperty
constructor
A new instance of ActionDefinitionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(publish_metric_action: nil) ⇒ ActionDefinitionProperty
Returns a new instance of ActionDefinitionProperty.
567 568 569 570 |
# File 'network_firewall/cfn_firewall_policy.rb', line 567 def initialize(publish_metric_action: nil) @publish_metric_action = publish_metric_action.is_a?(Hash) ? ::AWSCDK::NetworkFirewall::CfnFirewallPolicy::PublishMetricActionProperty.new(**publish_metric_action.transform_keys(&:to_sym)) : publish_metric_action Jsii::Type.check_type(@publish_metric_action, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19uZXR3b3JrZmlyZXdhbGwuQ2ZuRmlyZXdhbGxQb2xpY3kuUHVibGlzaE1ldHJpY0FjdGlvblByb3BlcnR5In1dfX0=")), "publishMetricAction") unless @publish_metric_action.nil? end |
Instance Attribute Details
#publish_metric_action ⇒ AWSCDK::IResolvable, ... (readonly)
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.
You can pair this custom action with any of the standard stateless rule actions. For example, you could pair this in a rule action with the standard action that forwards the packet for stateful inspection. Then, when a packet matches the rule, Network Firewall publishes metrics for the packet and forwards it.
580 581 582 |
# File 'network_firewall/cfn_firewall_policy.rb', line 580 def publish_metric_action @publish_metric_action end |
Class Method Details
.jsii_properties ⇒ Object
582 583 584 585 586 |
# File 'network_firewall/cfn_firewall_policy.rb', line 582 def self.jsii_properties { :publish_metric_action => "publishMetricAction", } end |
Instance Method Details
#to_jsii ⇒ Object
588 589 590 591 592 593 594 |
# File 'network_firewall/cfn_firewall_policy.rb', line 588 def to_jsii result = {} result.merge!({ "publishMetricAction" => @publish_metric_action, }) result.compact end |