Class: AWSCDK::IoT::CfnSecurityProfile::MetricDimensionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnSecurityProfile::MetricDimensionProperty
- Defined in:
- io_t/cfn_security_profile.rb
Overview
The dimension of the metric.
Instance Attribute Summary collapse
-
#dimension_name ⇒ String
readonly
The name of the dimension.
-
#operator ⇒ String?
readonly
Operators are constructs that perform logical operations.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(dimension_name:, operator: nil) ⇒ MetricDimensionProperty
constructor
A new instance of MetricDimensionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(dimension_name:, operator: nil) ⇒ MetricDimensionProperty
Returns a new instance of MetricDimensionProperty.
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_name ⇒ String (readonly)
The name of the dimension.
922 923 924 |
# File 'io_t/cfn_security_profile.rb', line 922 def dimension_name @dimension_name end |
#operator ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |