Class: AWSCDK::AutoScalingPlans::CfnScalingPlan::MetricDimensionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AutoScalingPlans::CfnScalingPlan::MetricDimensionProperty
- Defined in:
- auto_scaling_plans/cfn_scaling_plan.rb
Overview
MetricDimension is a subproperty of CustomizedScalingMetricSpecification that specifies a dimension for a customized metric to use with a scaling plan. Dimensions are arbitrary name/value pairs that can be associated with a CloudWatch metric. Duplicate dimensions are not allowed.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The name of the dimension.
-
#value ⇒ String
readonly
The value of the dimension.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, value:) ⇒ MetricDimensionProperty
constructor
A new instance of MetricDimensionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, value:) ⇒ MetricDimensionProperty
Returns a new instance of MetricDimensionProperty.
759 760 761 762 763 764 |
# File 'auto_scaling_plans/cfn_scaling_plan.rb', line 759 def initialize(name:, value:) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") end |
Instance Attribute Details
#name ⇒ String (readonly)
The name of the dimension.
770 771 772 |
# File 'auto_scaling_plans/cfn_scaling_plan.rb', line 770 def name @name end |
#value ⇒ String (readonly)
The value of the dimension.
775 776 777 |
# File 'auto_scaling_plans/cfn_scaling_plan.rb', line 775 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
777 778 779 780 781 782 |
# File 'auto_scaling_plans/cfn_scaling_plan.rb', line 777 def self.jsii_properties { :name => "name", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
784 785 786 787 788 789 790 791 |
# File 'auto_scaling_plans/cfn_scaling_plan.rb', line 784 def to_jsii result = {} result.merge!({ "name" => @name, "value" => @value, }) result.compact end |