Class: AWSCDK::NetworkFirewall::CfnFirewallPolicy::ActionDefinitionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
network_firewall/cfn_firewall_policy.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:



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_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.



580
581
582
# File 'network_firewall/cfn_firewall_policy.rb', line 580

def publish_metric_action
  @publish_metric_action
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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