Class: AWSCDK::NetworkFirewall::CfnFirewallPolicy::DimensionProperty

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

Overview

The value to use in an Amazon CloudWatch custom metric dimension.

This is used in the PublishMetrics custom action. A CloudWatch custom metric dimension is a name/value pair that's part of the identity of a metric.

AWS Network Firewall sets the dimension name to CustomAction and you provide the dimension value.

For more information about CloudWatch custom metric dimensions, see Publishing Custom Metrics in the Amazon CloudWatch User Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value:) ⇒ DimensionProperty

Returns a new instance of DimensionProperty.

Parameters:

  • value (String)

    The value to use in the custom metric dimension.



664
665
666
667
# File 'network_firewall/cfn_firewall_policy.rb', line 664

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

Instance Attribute Details

#valueString (readonly)

The value to use in the custom metric dimension.



673
674
675
# File 'network_firewall/cfn_firewall_policy.rb', line 673

def value
  @value
end

Class Method Details

.jsii_propertiesObject



675
676
677
678
679
# File 'network_firewall/cfn_firewall_policy.rb', line 675

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

Instance Method Details

#to_jsiiObject



681
682
683
684
685
686
687
# File 'network_firewall/cfn_firewall_policy.rb', line 681

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