aws-sdk-applicationautoscaling 1.96.0 → 1.98.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-applicationautoscaling/client.rb +267 -3
- data/lib/aws-sdk-applicationautoscaling/client_api.rb +129 -0
- data/lib/aws-sdk-applicationautoscaling/endpoint_parameters.rb +9 -6
- data/lib/aws-sdk-applicationautoscaling/endpoints.rb +2 -141
- data/lib/aws-sdk-applicationautoscaling/plugins/endpoints.rb +1 -32
- data/lib/aws-sdk-applicationautoscaling/types.rb +479 -2
- data/lib/aws-sdk-applicationautoscaling.rb +1 -1
- data/sig/client.rbs +113 -1
- data/sig/types.rbs +107 -2
- metadata +4 -4
@@ -29,6 +29,28 @@ module Aws::ApplicationAutoScaling
|
|
29
29
|
include Aws::Structure
|
30
30
|
end
|
31
31
|
|
32
|
+
# A `GetPredictiveScalingForecast` call returns the capacity forecast
|
33
|
+
# for a predictive scaling policy. This structure includes the data
|
34
|
+
# points for that capacity forecast, along with the timestamps of those
|
35
|
+
# data points.
|
36
|
+
#
|
37
|
+
# @!attribute [rw] timestamps
|
38
|
+
# The timestamps for the data points, in UTC format.
|
39
|
+
# @return [Array<Time>]
|
40
|
+
#
|
41
|
+
# @!attribute [rw] values
|
42
|
+
# The values of the data points.
|
43
|
+
# @return [Array<Float>]
|
44
|
+
#
|
45
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/CapacityForecast AWS API Documentation
|
46
|
+
#
|
47
|
+
class CapacityForecast < Struct.new(
|
48
|
+
:timestamps,
|
49
|
+
:values)
|
50
|
+
SENSITIVE = []
|
51
|
+
include Aws::Structure
|
52
|
+
end
|
53
|
+
|
32
54
|
# Concurrent updates caused an exception, for example, if you request an
|
33
55
|
# update to an Application Auto Scaling resource that already has a
|
34
56
|
# pending update.
|
@@ -1588,6 +1610,71 @@ module Aws::ApplicationAutoScaling
|
|
1588
1610
|
include Aws::Structure
|
1589
1611
|
end
|
1590
1612
|
|
1613
|
+
# @!attribute [rw] service_namespace
|
1614
|
+
# The namespace of the Amazon Web Services service that provides the
|
1615
|
+
# resource. For a resource provided by your own application or
|
1616
|
+
# service, use `custom-resource` instead.
|
1617
|
+
# @return [String]
|
1618
|
+
#
|
1619
|
+
# @!attribute [rw] resource_id
|
1620
|
+
# The identifier of the resource.
|
1621
|
+
# @return [String]
|
1622
|
+
#
|
1623
|
+
# @!attribute [rw] scalable_dimension
|
1624
|
+
# The scalable dimension.
|
1625
|
+
# @return [String]
|
1626
|
+
#
|
1627
|
+
# @!attribute [rw] policy_name
|
1628
|
+
# The name of the policy.
|
1629
|
+
# @return [String]
|
1630
|
+
#
|
1631
|
+
# @!attribute [rw] start_time
|
1632
|
+
# The inclusive start time of the time range for the forecast data to
|
1633
|
+
# get. At most, the date and time can be one year before the current
|
1634
|
+
# date and time
|
1635
|
+
# @return [Time]
|
1636
|
+
#
|
1637
|
+
# @!attribute [rw] end_time
|
1638
|
+
# The exclusive end time of the time range for the forecast data to
|
1639
|
+
# get. The maximum time duration between the start and end time is 30
|
1640
|
+
# days.
|
1641
|
+
# @return [Time]
|
1642
|
+
#
|
1643
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/GetPredictiveScalingForecastRequest AWS API Documentation
|
1644
|
+
#
|
1645
|
+
class GetPredictiveScalingForecastRequest < Struct.new(
|
1646
|
+
:service_namespace,
|
1647
|
+
:resource_id,
|
1648
|
+
:scalable_dimension,
|
1649
|
+
:policy_name,
|
1650
|
+
:start_time,
|
1651
|
+
:end_time)
|
1652
|
+
SENSITIVE = []
|
1653
|
+
include Aws::Structure
|
1654
|
+
end
|
1655
|
+
|
1656
|
+
# @!attribute [rw] load_forecast
|
1657
|
+
# The load forecast.
|
1658
|
+
# @return [Array<Types::LoadForecast>]
|
1659
|
+
#
|
1660
|
+
# @!attribute [rw] capacity_forecast
|
1661
|
+
# The capacity forecast.
|
1662
|
+
# @return [Types::CapacityForecast]
|
1663
|
+
#
|
1664
|
+
# @!attribute [rw] update_time
|
1665
|
+
# The time the forecast was made.
|
1666
|
+
# @return [Time]
|
1667
|
+
#
|
1668
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/GetPredictiveScalingForecastResponse AWS API Documentation
|
1669
|
+
#
|
1670
|
+
class GetPredictiveScalingForecastResponse < Struct.new(
|
1671
|
+
:load_forecast,
|
1672
|
+
:capacity_forecast,
|
1673
|
+
:update_time)
|
1674
|
+
SENSITIVE = []
|
1675
|
+
include Aws::Structure
|
1676
|
+
end
|
1677
|
+
|
1591
1678
|
# The service encountered an internal error.
|
1592
1679
|
#
|
1593
1680
|
# @!attribute [rw] message
|
@@ -1661,6 +1748,33 @@ module Aws::ApplicationAutoScaling
|
|
1661
1748
|
include Aws::Structure
|
1662
1749
|
end
|
1663
1750
|
|
1751
|
+
# A `GetPredictiveScalingForecast` call returns the load forecast for a
|
1752
|
+
# predictive scaling policy. This structure includes the data points for
|
1753
|
+
# that load forecast, along with the timestamps of those data points and
|
1754
|
+
# the metric specification.
|
1755
|
+
#
|
1756
|
+
# @!attribute [rw] timestamps
|
1757
|
+
# The timestamps for the data points, in UTC format.
|
1758
|
+
# @return [Array<Time>]
|
1759
|
+
#
|
1760
|
+
# @!attribute [rw] values
|
1761
|
+
# The values of the data points.
|
1762
|
+
# @return [Array<Float>]
|
1763
|
+
#
|
1764
|
+
# @!attribute [rw] metric_specification
|
1765
|
+
# The metric specification for the load forecast.
|
1766
|
+
# @return [Types::PredictiveScalingMetricSpecification]
|
1767
|
+
#
|
1768
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/LoadForecast AWS API Documentation
|
1769
|
+
#
|
1770
|
+
class LoadForecast < Struct.new(
|
1771
|
+
:timestamps,
|
1772
|
+
:values,
|
1773
|
+
:metric_specification)
|
1774
|
+
SENSITIVE = []
|
1775
|
+
include Aws::Structure
|
1776
|
+
end
|
1777
|
+
|
1664
1778
|
# Describes the dimension names and values associated with a metric.
|
1665
1779
|
#
|
1666
1780
|
# @!attribute [rw] name
|
@@ -1754,7 +1868,7 @@ module Aws::ApplicationAutoScaling
|
|
1754
1868
|
#
|
1755
1869
|
#
|
1756
1870
|
#
|
1757
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/
|
1871
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/monitoring-cloudwatch.html#predefined-metrics
|
1758
1872
|
#
|
1759
1873
|
# @!attribute [rw] predefined_metric_type
|
1760
1874
|
# The metric type. The `ALBRequestCountPerTarget` metric type applies
|
@@ -1801,6 +1915,354 @@ module Aws::ApplicationAutoScaling
|
|
1801
1915
|
include Aws::Structure
|
1802
1916
|
end
|
1803
1917
|
|
1918
|
+
# Represents a CloudWatch metric of your choosing for a predictive
|
1919
|
+
# scaling policy.
|
1920
|
+
#
|
1921
|
+
# @!attribute [rw] metric_data_queries
|
1922
|
+
# One or more metric data queries to provide data points for a metric
|
1923
|
+
# specification.
|
1924
|
+
# @return [Array<Types::PredictiveScalingMetricDataQuery>]
|
1925
|
+
#
|
1926
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PredictiveScalingCustomizedMetricSpecification AWS API Documentation
|
1927
|
+
#
|
1928
|
+
class PredictiveScalingCustomizedMetricSpecification < Struct.new(
|
1929
|
+
:metric_data_queries)
|
1930
|
+
SENSITIVE = []
|
1931
|
+
include Aws::Structure
|
1932
|
+
end
|
1933
|
+
|
1934
|
+
# Describes the scaling metric.
|
1935
|
+
#
|
1936
|
+
# @!attribute [rw] dimensions
|
1937
|
+
# Describes the dimensions of the metric.
|
1938
|
+
# @return [Array<Types::PredictiveScalingMetricDimension>]
|
1939
|
+
#
|
1940
|
+
# @!attribute [rw] metric_name
|
1941
|
+
# The name of the metric.
|
1942
|
+
# @return [String]
|
1943
|
+
#
|
1944
|
+
# @!attribute [rw] namespace
|
1945
|
+
# The namespace of the metric.
|
1946
|
+
# @return [String]
|
1947
|
+
#
|
1948
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PredictiveScalingMetric AWS API Documentation
|
1949
|
+
#
|
1950
|
+
class PredictiveScalingMetric < Struct.new(
|
1951
|
+
:dimensions,
|
1952
|
+
:metric_name,
|
1953
|
+
:namespace)
|
1954
|
+
SENSITIVE = []
|
1955
|
+
include Aws::Structure
|
1956
|
+
end
|
1957
|
+
|
1958
|
+
# The metric data to return. Also defines whether this call is returning
|
1959
|
+
# data for one metric only, or whether it is performing a math
|
1960
|
+
# expression on the values of returned metric statistics to create a new
|
1961
|
+
# time series. A time series is a series of data points, each of which
|
1962
|
+
# is associated with a timestamp.
|
1963
|
+
#
|
1964
|
+
# @!attribute [rw] id
|
1965
|
+
# A short name that identifies the object's results in the response.
|
1966
|
+
# This name must be unique among all `MetricDataQuery` objects
|
1967
|
+
# specified for a single scaling policy. If you are performing math
|
1968
|
+
# expressions on this set of data, this name represents that data and
|
1969
|
+
# can serve as a variable in the mathematical expression. The valid
|
1970
|
+
# characters are letters, numbers, and underscores. The first
|
1971
|
+
# character must be a lowercase letter.
|
1972
|
+
# @return [String]
|
1973
|
+
#
|
1974
|
+
# @!attribute [rw] expression
|
1975
|
+
# The math expression to perform on the returned data, if this object
|
1976
|
+
# is performing a math expression. This expression can use the `Id` of
|
1977
|
+
# the other metrics to refer to those metrics, and can also use the
|
1978
|
+
# `Id` of other expressions to use the result of those expressions.
|
1979
|
+
#
|
1980
|
+
# Conditional: Within each `MetricDataQuery` object, you must specify
|
1981
|
+
# either `Expression` or `MetricStat`, but not both.
|
1982
|
+
# @return [String]
|
1983
|
+
#
|
1984
|
+
# @!attribute [rw] metric_stat
|
1985
|
+
# Information about the metric data to return.
|
1986
|
+
#
|
1987
|
+
# Conditional: Within each `MetricDataQuery` object, you must specify
|
1988
|
+
# either `Expression` or `MetricStat`, but not both.
|
1989
|
+
# @return [Types::PredictiveScalingMetricStat]
|
1990
|
+
#
|
1991
|
+
# @!attribute [rw] label
|
1992
|
+
# A human-readable label for this metric or expression. This is
|
1993
|
+
# especially useful if this is a math expression, so that you know
|
1994
|
+
# what the value represents.
|
1995
|
+
# @return [String]
|
1996
|
+
#
|
1997
|
+
# @!attribute [rw] return_data
|
1998
|
+
# Indicates whether to return the timestamps and raw data values of
|
1999
|
+
# this metric.
|
2000
|
+
#
|
2001
|
+
# If you use any math expressions, specify `true` for this value for
|
2002
|
+
# only the final math expression that the metric specification is
|
2003
|
+
# based on. You must specify `false` for `ReturnData` for all the
|
2004
|
+
# other metrics and expressions used in the metric specification.
|
2005
|
+
#
|
2006
|
+
# If you are only retrieving metrics and not performing any math
|
2007
|
+
# expressions, do not specify anything for `ReturnData`. This sets it
|
2008
|
+
# to its default (`true`).
|
2009
|
+
# @return [Boolean]
|
2010
|
+
#
|
2011
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PredictiveScalingMetricDataQuery AWS API Documentation
|
2012
|
+
#
|
2013
|
+
class PredictiveScalingMetricDataQuery < Struct.new(
|
2014
|
+
:id,
|
2015
|
+
:expression,
|
2016
|
+
:metric_stat,
|
2017
|
+
:label,
|
2018
|
+
:return_data)
|
2019
|
+
SENSITIVE = []
|
2020
|
+
include Aws::Structure
|
2021
|
+
end
|
2022
|
+
|
2023
|
+
# Describes the dimension of a metric.
|
2024
|
+
#
|
2025
|
+
# @!attribute [rw] name
|
2026
|
+
# The name of the dimension.
|
2027
|
+
# @return [String]
|
2028
|
+
#
|
2029
|
+
# @!attribute [rw] value
|
2030
|
+
# The value of the dimension.
|
2031
|
+
# @return [String]
|
2032
|
+
#
|
2033
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PredictiveScalingMetricDimension AWS API Documentation
|
2034
|
+
#
|
2035
|
+
class PredictiveScalingMetricDimension < Struct.new(
|
2036
|
+
:name,
|
2037
|
+
:value)
|
2038
|
+
SENSITIVE = []
|
2039
|
+
include Aws::Structure
|
2040
|
+
end
|
2041
|
+
|
2042
|
+
# This structure specifies the metrics and target utilization settings
|
2043
|
+
# for a predictive scaling policy.
|
2044
|
+
#
|
2045
|
+
# You must specify either a metric pair, or a load metric and a scaling
|
2046
|
+
# metric individually. Specifying a metric pair instead of individual
|
2047
|
+
# metrics provides a simpler way to configure metrics for a scaling
|
2048
|
+
# policy. You choose the metric pair, and the policy automatically knows
|
2049
|
+
# the correct sum and average statistics to use for the load metric and
|
2050
|
+
# the scaling metric.
|
2051
|
+
#
|
2052
|
+
# @!attribute [rw] target_value
|
2053
|
+
# Specifies the target utilization.
|
2054
|
+
# @return [Float]
|
2055
|
+
#
|
2056
|
+
# @!attribute [rw] predefined_metric_pair_specification
|
2057
|
+
# The predefined metric pair specification that determines the
|
2058
|
+
# appropriate scaling metric and load metric to use.
|
2059
|
+
# @return [Types::PredictiveScalingPredefinedMetricPairSpecification]
|
2060
|
+
#
|
2061
|
+
# @!attribute [rw] predefined_scaling_metric_specification
|
2062
|
+
# The predefined scaling metric specification.
|
2063
|
+
# @return [Types::PredictiveScalingPredefinedScalingMetricSpecification]
|
2064
|
+
#
|
2065
|
+
# @!attribute [rw] predefined_load_metric_specification
|
2066
|
+
# The predefined load metric specification.
|
2067
|
+
# @return [Types::PredictiveScalingPredefinedLoadMetricSpecification]
|
2068
|
+
#
|
2069
|
+
# @!attribute [rw] customized_scaling_metric_specification
|
2070
|
+
# The customized scaling metric specification.
|
2071
|
+
# @return [Types::PredictiveScalingCustomizedMetricSpecification]
|
2072
|
+
#
|
2073
|
+
# @!attribute [rw] customized_load_metric_specification
|
2074
|
+
# The customized load metric specification.
|
2075
|
+
# @return [Types::PredictiveScalingCustomizedMetricSpecification]
|
2076
|
+
#
|
2077
|
+
# @!attribute [rw] customized_capacity_metric_specification
|
2078
|
+
# The customized capacity metric specification.
|
2079
|
+
# @return [Types::PredictiveScalingCustomizedMetricSpecification]
|
2080
|
+
#
|
2081
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PredictiveScalingMetricSpecification AWS API Documentation
|
2082
|
+
#
|
2083
|
+
class PredictiveScalingMetricSpecification < Struct.new(
|
2084
|
+
:target_value,
|
2085
|
+
:predefined_metric_pair_specification,
|
2086
|
+
:predefined_scaling_metric_specification,
|
2087
|
+
:predefined_load_metric_specification,
|
2088
|
+
:customized_scaling_metric_specification,
|
2089
|
+
:customized_load_metric_specification,
|
2090
|
+
:customized_capacity_metric_specification)
|
2091
|
+
SENSITIVE = []
|
2092
|
+
include Aws::Structure
|
2093
|
+
end
|
2094
|
+
|
2095
|
+
# This structure defines the CloudWatch metric to return, along with the
|
2096
|
+
# statistic and unit.
|
2097
|
+
#
|
2098
|
+
# @!attribute [rw] metric
|
2099
|
+
# The CloudWatch metric to return, including the metric name,
|
2100
|
+
# namespace, and dimensions. To get the exact metric name, namespace,
|
2101
|
+
# and dimensions, inspect the [Metric][1] object that is returned by a
|
2102
|
+
# call to [ListMetrics][2].
|
2103
|
+
#
|
2104
|
+
#
|
2105
|
+
#
|
2106
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_Metric.html
|
2107
|
+
# [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html
|
2108
|
+
# @return [Types::PredictiveScalingMetric]
|
2109
|
+
#
|
2110
|
+
# @!attribute [rw] stat
|
2111
|
+
# The statistic to return. It can include any CloudWatch statistic or
|
2112
|
+
# extended statistic. For a list of valid values, see the table in
|
2113
|
+
# [Statistics][1] in the *Amazon CloudWatch User Guide*.
|
2114
|
+
#
|
2115
|
+
# The most commonly used metrics for predictive scaling are `Average`
|
2116
|
+
# and `Sum`.
|
2117
|
+
#
|
2118
|
+
#
|
2119
|
+
#
|
2120
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Statistic
|
2121
|
+
# @return [String]
|
2122
|
+
#
|
2123
|
+
# @!attribute [rw] unit
|
2124
|
+
# The unit to use for the returned data points. For a complete list of
|
2125
|
+
# the units that CloudWatch supports, see the [MetricDatum][1] data
|
2126
|
+
# type in the *Amazon CloudWatch API Reference*.
|
2127
|
+
#
|
2128
|
+
#
|
2129
|
+
#
|
2130
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html
|
2131
|
+
# @return [String]
|
2132
|
+
#
|
2133
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PredictiveScalingMetricStat AWS API Documentation
|
2134
|
+
#
|
2135
|
+
class PredictiveScalingMetricStat < Struct.new(
|
2136
|
+
:metric,
|
2137
|
+
:stat,
|
2138
|
+
:unit)
|
2139
|
+
SENSITIVE = []
|
2140
|
+
include Aws::Structure
|
2141
|
+
end
|
2142
|
+
|
2143
|
+
# Represents a predictive scaling policy configuration.
|
2144
|
+
#
|
2145
|
+
# @!attribute [rw] metric_specifications
|
2146
|
+
# This structure includes the metrics and target utilization to use
|
2147
|
+
# for predictive scaling.
|
2148
|
+
#
|
2149
|
+
# This is an array, but we currently only support a single metric
|
2150
|
+
# specification. That is, you can specify a target value and a single
|
2151
|
+
# metric pair, or a target value and one scaling metric and one load
|
2152
|
+
# metric.
|
2153
|
+
# @return [Array<Types::PredictiveScalingMetricSpecification>]
|
2154
|
+
#
|
2155
|
+
# @!attribute [rw] mode
|
2156
|
+
# The predictive scaling mode. Defaults to `ForecastOnly` if not
|
2157
|
+
# specified.
|
2158
|
+
# @return [String]
|
2159
|
+
#
|
2160
|
+
# @!attribute [rw] scheduling_buffer_time
|
2161
|
+
# The amount of time, in seconds, that the start time can be advanced.
|
2162
|
+
#
|
2163
|
+
# The value must be less than the forecast interval duration of 3600
|
2164
|
+
# seconds (60 minutes). Defaults to 300 seconds if not specified.
|
2165
|
+
# @return [Integer]
|
2166
|
+
#
|
2167
|
+
# @!attribute [rw] max_capacity_breach_behavior
|
2168
|
+
# Defines the behavior that should be applied if the forecast capacity
|
2169
|
+
# approaches or exceeds the maximum capacity. Defaults to
|
2170
|
+
# `HonorMaxCapacity` if not specified.
|
2171
|
+
# @return [String]
|
2172
|
+
#
|
2173
|
+
# @!attribute [rw] max_capacity_buffer
|
2174
|
+
# The size of the capacity buffer to use when the forecast capacity is
|
2175
|
+
# close to or exceeds the maximum capacity. The value is specified as
|
2176
|
+
# a percentage relative to the forecast capacity. For example, if the
|
2177
|
+
# buffer is 10, this means a 10 percent buffer, such that if the
|
2178
|
+
# forecast capacity is 50, and the maximum capacity is 40, then the
|
2179
|
+
# effective maximum capacity is 55.
|
2180
|
+
#
|
2181
|
+
# Required if the `MaxCapacityBreachBehavior` property is set to
|
2182
|
+
# `IncreaseMaxCapacity`, and cannot be used otherwise.
|
2183
|
+
# @return [Integer]
|
2184
|
+
#
|
2185
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PredictiveScalingPolicyConfiguration AWS API Documentation
|
2186
|
+
#
|
2187
|
+
class PredictiveScalingPolicyConfiguration < Struct.new(
|
2188
|
+
:metric_specifications,
|
2189
|
+
:mode,
|
2190
|
+
:scheduling_buffer_time,
|
2191
|
+
:max_capacity_breach_behavior,
|
2192
|
+
:max_capacity_buffer)
|
2193
|
+
SENSITIVE = []
|
2194
|
+
include Aws::Structure
|
2195
|
+
end
|
2196
|
+
|
2197
|
+
# Describes a load metric for a predictive scaling policy.
|
2198
|
+
#
|
2199
|
+
# When returned in the output of `DescribePolicies`, it indicates that a
|
2200
|
+
# predictive scaling policy uses individually specified load and scaling
|
2201
|
+
# metrics instead of a metric pair.
|
2202
|
+
#
|
2203
|
+
# @!attribute [rw] predefined_metric_type
|
2204
|
+
# The metric type.
|
2205
|
+
# @return [String]
|
2206
|
+
#
|
2207
|
+
# @!attribute [rw] resource_label
|
2208
|
+
# A label that uniquely identifies a target group.
|
2209
|
+
# @return [String]
|
2210
|
+
#
|
2211
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PredictiveScalingPredefinedLoadMetricSpecification AWS API Documentation
|
2212
|
+
#
|
2213
|
+
class PredictiveScalingPredefinedLoadMetricSpecification < Struct.new(
|
2214
|
+
:predefined_metric_type,
|
2215
|
+
:resource_label)
|
2216
|
+
SENSITIVE = []
|
2217
|
+
include Aws::Structure
|
2218
|
+
end
|
2219
|
+
|
2220
|
+
# Represents a metric pair for a predictive scaling policy.
|
2221
|
+
#
|
2222
|
+
# @!attribute [rw] predefined_metric_type
|
2223
|
+
# Indicates which metrics to use. There are two different types of
|
2224
|
+
# metrics for each metric type: one is a load metric and one is a
|
2225
|
+
# scaling metric.
|
2226
|
+
# @return [String]
|
2227
|
+
#
|
2228
|
+
# @!attribute [rw] resource_label
|
2229
|
+
# A label that uniquely identifies a specific target group from which
|
2230
|
+
# to determine the total and average request count.
|
2231
|
+
# @return [String]
|
2232
|
+
#
|
2233
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PredictiveScalingPredefinedMetricPairSpecification AWS API Documentation
|
2234
|
+
#
|
2235
|
+
class PredictiveScalingPredefinedMetricPairSpecification < Struct.new(
|
2236
|
+
:predefined_metric_type,
|
2237
|
+
:resource_label)
|
2238
|
+
SENSITIVE = []
|
2239
|
+
include Aws::Structure
|
2240
|
+
end
|
2241
|
+
|
2242
|
+
# Describes a scaling metric for a predictive scaling policy.
|
2243
|
+
#
|
2244
|
+
# When returned in the output of `DescribePolicies`, it indicates that a
|
2245
|
+
# predictive scaling policy uses individually specified load and scaling
|
2246
|
+
# metrics instead of a metric pair.
|
2247
|
+
#
|
2248
|
+
# @!attribute [rw] predefined_metric_type
|
2249
|
+
# The metric type.
|
2250
|
+
# @return [String]
|
2251
|
+
#
|
2252
|
+
# @!attribute [rw] resource_label
|
2253
|
+
# A label that uniquely identifies a specific target group from which
|
2254
|
+
# to determine the average request count.
|
2255
|
+
# @return [String]
|
2256
|
+
#
|
2257
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PredictiveScalingPredefinedScalingMetricSpecification AWS API Documentation
|
2258
|
+
#
|
2259
|
+
class PredictiveScalingPredefinedScalingMetricSpecification < Struct.new(
|
2260
|
+
:predefined_metric_type,
|
2261
|
+
:resource_label)
|
2262
|
+
SENSITIVE = []
|
2263
|
+
include Aws::Structure
|
2264
|
+
end
|
2265
|
+
|
1804
2266
|
# @!attribute [rw] policy_name
|
1805
2267
|
# The name of the scaling policy.
|
1806
2268
|
#
|
@@ -2013,6 +2475,10 @@ module Aws::ApplicationAutoScaling
|
|
2013
2475
|
# policy type is `TargetTrackingScaling`.
|
2014
2476
|
# @return [Types::TargetTrackingScalingPolicyConfiguration]
|
2015
2477
|
#
|
2478
|
+
# @!attribute [rw] predictive_scaling_policy_configuration
|
2479
|
+
# The configuration of the predictive scaling policy.
|
2480
|
+
# @return [Types::PredictiveScalingPolicyConfiguration]
|
2481
|
+
#
|
2016
2482
|
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScalingPolicyRequest AWS API Documentation
|
2017
2483
|
#
|
2018
2484
|
class PutScalingPolicyRequest < Struct.new(
|
@@ -2022,7 +2488,8 @@ module Aws::ApplicationAutoScaling
|
|
2022
2488
|
:scalable_dimension,
|
2023
2489
|
:policy_type,
|
2024
2490
|
:step_scaling_policy_configuration,
|
2025
|
-
:target_tracking_scaling_policy_configuration
|
2491
|
+
:target_tracking_scaling_policy_configuration,
|
2492
|
+
:predictive_scaling_policy_configuration)
|
2026
2493
|
SENSITIVE = []
|
2027
2494
|
include Aws::Structure
|
2028
2495
|
end
|
@@ -2821,6 +3288,10 @@ module Aws::ApplicationAutoScaling
|
|
2821
3288
|
# The maximum value to scale to in response to a scale-out activity.
|
2822
3289
|
# @return [Integer]
|
2823
3290
|
#
|
3291
|
+
# @!attribute [rw] predicted_capacity
|
3292
|
+
# The predicted capacity of the scalable target.
|
3293
|
+
# @return [Integer]
|
3294
|
+
#
|
2824
3295
|
# @!attribute [rw] role_arn
|
2825
3296
|
# The ARN of an IAM role that allows Application Auto Scaling to
|
2826
3297
|
# modify the scalable target on your behalf.
|
@@ -2847,6 +3318,7 @@ module Aws::ApplicationAutoScaling
|
|
2847
3318
|
:scalable_dimension,
|
2848
3319
|
:min_capacity,
|
2849
3320
|
:max_capacity,
|
3321
|
+
:predicted_capacity,
|
2850
3322
|
:role_arn,
|
2851
3323
|
:creation_time,
|
2852
3324
|
:suspended_state,
|
@@ -3328,6 +3800,10 @@ module Aws::ApplicationAutoScaling
|
|
3328
3800
|
# A target tracking scaling policy.
|
3329
3801
|
# @return [Types::TargetTrackingScalingPolicyConfiguration]
|
3330
3802
|
#
|
3803
|
+
# @!attribute [rw] predictive_scaling_policy_configuration
|
3804
|
+
# The predictive scaling policy configuration.
|
3805
|
+
# @return [Types::PredictiveScalingPolicyConfiguration]
|
3806
|
+
#
|
3331
3807
|
# @!attribute [rw] alarms
|
3332
3808
|
# The CloudWatch alarms associated with the scaling policy.
|
3333
3809
|
# @return [Array<Types::Alarm>]
|
@@ -3347,6 +3823,7 @@ module Aws::ApplicationAutoScaling
|
|
3347
3823
|
:policy_type,
|
3348
3824
|
:step_scaling_policy_configuration,
|
3349
3825
|
:target_tracking_scaling_policy_configuration,
|
3826
|
+
:predictive_scaling_policy_configuration,
|
3350
3827
|
:alarms,
|
3351
3828
|
:creation_time)
|
3352
3829
|
SENSITIVE = []
|