Class: AWSCDK::ApplicationAutoScaling::CfnScalingPolicy::PredictiveScalingMetricDimensionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ApplicationAutoScaling::CfnScalingPolicy::PredictiveScalingMetricDimensionProperty
- Defined in:
- application_auto_scaling/cfn_scaling_policy.rb
Overview
Describes the dimension of a metric.
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: nil, value: nil) ⇒ PredictiveScalingMetricDimensionProperty
constructor
A new instance of PredictiveScalingMetricDimensionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name: nil, value: nil) ⇒ PredictiveScalingMetricDimensionProperty
Returns a new instance of PredictiveScalingMetricDimensionProperty.
1012 1013 1014 1015 1016 1017 |
# File 'application_auto_scaling/cfn_scaling_policy.rb', line 1012 def initialize(name: nil, value: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") unless @value.nil? end |
Instance Attribute Details
#name ⇒ String? (readonly)
The name of the dimension.
1023 1024 1025 |
# File 'application_auto_scaling/cfn_scaling_policy.rb', line 1023 def name @name end |
#value ⇒ String? (readonly)
The value of the dimension.
1028 1029 1030 |
# File 'application_auto_scaling/cfn_scaling_policy.rb', line 1028 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
1030 1031 1032 1033 1034 1035 |
# File 'application_auto_scaling/cfn_scaling_policy.rb', line 1030 def self.jsii_properties { :name => "name", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
1037 1038 1039 1040 1041 1042 1043 1044 |
# File 'application_auto_scaling/cfn_scaling_policy.rb', line 1037 def to_jsii result = {} result.merge!({ "name" => @name, "value" => @value, }) result.compact end |