Class: AWSCDK::ApplicationAutoScaling::CfnScalingPolicy::TargetTrackingMetricDimensionProperty

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

Overview

TargetTrackingMetricDimension specifies a name/value pair that is part of the identity of a CloudWatch metric for the Dimensions property of the AWS::ApplicationAutoScaling::ScalingPolicy TargetTrackingMetric property type. Duplicate dimensions are not allowed.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of TargetTrackingMetricDimensionProperty.

Parameters:

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

    The name of the dimension.

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

    The value of the dimension.



1772
1773
1774
1775
1776
1777
# File 'application_auto_scaling/cfn_scaling_policy.rb', line 1772

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.



1783
1784
1785
# File 'application_auto_scaling/cfn_scaling_policy.rb', line 1783

def name
  @name
end

#valueString? (readonly)

The value of the dimension.



1788
1789
1790
# File 'application_auto_scaling/cfn_scaling_policy.rb', line 1788

def value
  @value
end

Class Method Details

.jsii_propertiesObject



1790
1791
1792
1793
1794
1795
# File 'application_auto_scaling/cfn_scaling_policy.rb', line 1790

def self.jsii_properties
  {
    :name => "name",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



1797
1798
1799
1800
1801
1802
1803
1804
# File 'application_auto_scaling/cfn_scaling_policy.rb', line 1797

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "value" => @value,
  })
  result.compact
end