Class: AWSCDK::NetworkFirewall::CfnFirewallPolicy::PublishMetricActionProperty

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

Constructor Details

#initialize(dimensions:) ⇒ PublishMetricActionProperty

Returns a new instance of PublishMetricActionProperty.



964
965
966
967
# File 'network_firewall/cfn_firewall_policy.rb', line 964

def initialize(dimensions:)
  @dimensions = dimensions
  Jsii::Type.check_type(@dimensions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbmV0d29ya2ZpcmV3YWxsLkNmbkZpcmV3YWxsUG9saWN5LkRpbWVuc2lvblByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "dimensions")
end

Class Method Details

.jsii_propertiesObject



973
974
975
976
977
# File 'network_firewall/cfn_firewall_policy.rb', line 973

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

Instance Method Details

#to_jsiiObject



979
980
981
982
983
984
985
# File 'network_firewall/cfn_firewall_policy.rb', line 979

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