Class: AWSCDK::NetworkFirewall::CfnRuleGroup::ActionDefinitionProperty

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

Overview

A custom action to use in stateless rule actions settings.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(publish_metric_action: nil) ⇒ ActionDefinitionProperty

Returns a new instance of ActionDefinitionProperty.

Parameters:



605
606
607
608
# File 'network_firewall/cfn_rule_group.rb', line 605

def initialize(publish_metric_action: nil)
  @publish_metric_action = publish_metric_action.is_a?(Hash) ? ::AWSCDK::NetworkFirewall::CfnRuleGroup::PublishMetricActionProperty.new(**publish_metric_action.transform_keys(&:to_sym)) : publish_metric_action
  Jsii::Type.check_type(@publish_metric_action, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19uZXR3b3JrZmlyZXdhbGwuQ2ZuUnVsZUdyb3VwLlB1Ymxpc2hNZXRyaWNBY3Rpb25Qcm9wZXJ0eSJ9XX19")), "publishMetricAction") unless @publish_metric_action.nil?
end

Instance Attribute Details

#publish_metric_actionAWSCDK::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.



618
619
620
# File 'network_firewall/cfn_rule_group.rb', line 618

def publish_metric_action
  @publish_metric_action
end

Class Method Details

.jsii_propertiesObject



620
621
622
623
624
# File 'network_firewall/cfn_rule_group.rb', line 620

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

Instance Method Details

#to_jsiiObject



626
627
628
629
630
631
632
# File 'network_firewall/cfn_rule_group.rb', line 626

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