Class: AWSCDK::ApplicationAutoScaling::CfnScalingPolicy::PredictiveScalingMetricDimensionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
application_auto_scaling/cfn_scaling_policy.rb

Overview

Describes the dimension of a metric.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name: nil, value: nil) ⇒ PredictiveScalingMetricDimensionProperty

Returns a new instance of PredictiveScalingMetricDimensionProperty.

Parameters:

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

    The name of the dimension.

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

    The value of the dimension.



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

#nameString? (readonly)

The name of the dimension.



1023
1024
1025
# File 'application_auto_scaling/cfn_scaling_policy.rb', line 1023

def name
  @name
end

#valueString? (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_propertiesObject



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_jsiiObject



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