Class: AWSCDK::IoT::CfnSecurityProfile::MetricDimensionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t/cfn_security_profile.rb

Overview

The dimension of the metric.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dimension_name:, operator: nil) ⇒ MetricDimensionProperty

Returns a new instance of MetricDimensionProperty.

Parameters:

  • dimension_name (String)

    The name of the dimension.

  • operator (String, nil) (defaults to: nil)

    Operators are constructs that perform logical operations.



911
912
913
914
915
916
# File 'io_t/cfn_security_profile.rb', line 911

def initialize(dimension_name:, operator: nil)
  @dimension_name = dimension_name
  Jsii::Type.check_type(@dimension_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dimensionName")
  @operator = operator
  Jsii::Type.check_type(@operator, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "operator") unless @operator.nil?
end

Instance Attribute Details

#dimension_nameString (readonly)

The name of the dimension.



922
923
924
# File 'io_t/cfn_security_profile.rb', line 922

def dimension_name
  @dimension_name
end

#operatorString? (readonly)

Operators are constructs that perform logical operations.

Valid values are IN and NOT_IN .



929
930
931
# File 'io_t/cfn_security_profile.rb', line 929

def operator
  @operator
end

Class Method Details

.jsii_propertiesObject



931
932
933
934
935
936
# File 'io_t/cfn_security_profile.rb', line 931

def self.jsii_properties
  {
    :dimension_name => "dimensionName",
    :operator => "operator",
  }
end

Instance Method Details

#to_jsiiObject



938
939
940
941
942
943
944
945
# File 'io_t/cfn_security_profile.rb', line 938

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