aws-sdk-autoscaling 1.60.0 → 1.61.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-autoscaling.rb +1 -1
- data/lib/aws-sdk-autoscaling/auto_scaling_group.rb +49 -2
- data/lib/aws-sdk-autoscaling/client.rb +189 -30
- data/lib/aws-sdk-autoscaling/client_api.rb +86 -0
- data/lib/aws-sdk-autoscaling/resource.rb +1 -1
- data/lib/aws-sdk-autoscaling/scaling_policy.rb +8 -0
- data/lib/aws-sdk-autoscaling/types.rb +581 -43
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 040fda71ebde1ef33edab9b33551efd1fdff93e473336cb2083c7fa34607eeda
|
4
|
+
data.tar.gz: 18aa856dca296a5d5b113022b8ccea61d71ffc73fe902bdbecca1c668d46e948
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 023f161ad36c1d5563edd9e76b87d1176991c2c8b7d37a485427d7efba4e5a8d557115c348019a1d2d427eb570857236f724f01017d9ce528c63addcd9c0683a
|
7
|
+
data.tar.gz: 708ed8a25559df2ffbf695df58bb246ef114be95b2b17ede30345fa50195a844327f9c1afb0940dd588594557390483f890db7ff1aaae2b96653a8c802e917e5
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.61.0 (2021-05-19)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - With this release, customers can easily use Predictive Scaling as a policy directly through Amazon EC2 Auto Scaling configurations to proactively scale their applications ahead of predicted demand.
|
8
|
+
|
4
9
|
1.60.0 (2021-04-08)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.61.0
|
data/lib/aws-sdk-autoscaling.rb
CHANGED
@@ -77,6 +77,13 @@ module Aws::AutoScaling
|
|
77
77
|
data[:desired_capacity]
|
78
78
|
end
|
79
79
|
|
80
|
+
# The predicted capacity of the group when it has a predictive scaling
|
81
|
+
# policy.
|
82
|
+
# @return [Integer]
|
83
|
+
def predicted_capacity
|
84
|
+
data[:predicted_capacity]
|
85
|
+
end
|
86
|
+
|
80
87
|
# The duration of the default cooldown period, in seconds.
|
81
88
|
# @return [Integer]
|
82
89
|
def default_cooldown
|
@@ -627,6 +634,29 @@ module Aws::AutoScaling
|
|
627
634
|
# disable_scale_in: false,
|
628
635
|
# },
|
629
636
|
# enabled: false,
|
637
|
+
# predictive_scaling_configuration: {
|
638
|
+
# metric_specifications: [ # required
|
639
|
+
# {
|
640
|
+
# target_value: 1.0, # required
|
641
|
+
# predefined_metric_pair_specification: {
|
642
|
+
# predefined_metric_type: "ASGCPUUtilization", # required, accepts ASGCPUUtilization, ASGNetworkIn, ASGNetworkOut, ALBRequestCount
|
643
|
+
# resource_label: "XmlStringMaxLen1023",
|
644
|
+
# },
|
645
|
+
# predefined_scaling_metric_specification: {
|
646
|
+
# predefined_metric_type: "ASGAverageCPUUtilization", # required, accepts ASGAverageCPUUtilization, ASGAverageNetworkIn, ASGAverageNetworkOut, ALBRequestCountPerTarget
|
647
|
+
# resource_label: "XmlStringMaxLen1023",
|
648
|
+
# },
|
649
|
+
# predefined_load_metric_specification: {
|
650
|
+
# predefined_metric_type: "ASGTotalCPUUtilization", # required, accepts ASGTotalCPUUtilization, ASGTotalNetworkIn, ASGTotalNetworkOut, ALBTargetGroupRequestCount
|
651
|
+
# resource_label: "XmlStringMaxLen1023",
|
652
|
+
# },
|
653
|
+
# },
|
654
|
+
# ],
|
655
|
+
# mode: "ForecastAndScale", # accepts ForecastAndScale, ForecastOnly
|
656
|
+
# scheduling_buffer_time: 1,
|
657
|
+
# max_capacity_breach_behavior: "HonorMaxCapacity", # accepts HonorMaxCapacity, IncreaseMaxCapacity
|
658
|
+
# max_capacity_buffer: 1,
|
659
|
+
# },
|
630
660
|
# })
|
631
661
|
# @param [Hash] options ({})
|
632
662
|
# @option options [required, String] :policy_name
|
@@ -639,6 +669,8 @@ module Aws::AutoScaling
|
|
639
669
|
# * `StepScaling`
|
640
670
|
#
|
641
671
|
# * `SimpleScaling` (default)
|
672
|
+
#
|
673
|
+
# * `PredictiveScaling`
|
642
674
|
# @option options [String] :adjustment_type
|
643
675
|
# Specifies how the scaling adjustment is interpreted (for example, an
|
644
676
|
# absolute number or a percentage). The valid values are
|
@@ -717,7 +749,7 @@ module Aws::AutoScaling
|
|
717
749
|
# Valid only if the policy type is `TargetTrackingScaling` or
|
718
750
|
# `StepScaling`.
|
719
751
|
# @option options [Types::TargetTrackingConfiguration] :target_tracking_configuration
|
720
|
-
# A target tracking scaling policy.
|
752
|
+
# A target tracking scaling policy. Provides support for predefined or
|
721
753
|
# customized metrics.
|
722
754
|
#
|
723
755
|
# The following predefined metrics are available:
|
@@ -751,6 +783,21 @@ module Aws::AutoScaling
|
|
751
783
|
#
|
752
784
|
#
|
753
785
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enable-disable-scaling-policy.html
|
786
|
+
# @option options [Types::PredictiveScalingConfiguration] :predictive_scaling_configuration
|
787
|
+
# A predictive scaling policy. Provides support for only predefined
|
788
|
+
# metrics.
|
789
|
+
#
|
790
|
+
# Predictive scaling works with CPU utilization, network in/out, and the
|
791
|
+
# Application Load Balancer request count.
|
792
|
+
#
|
793
|
+
# For more information, see [PredictiveScalingConfiguration][1] in the
|
794
|
+
# *Amazon EC2 Auto Scaling API Reference*.
|
795
|
+
#
|
796
|
+
# Required if the policy type is `PredictiveScaling`.
|
797
|
+
#
|
798
|
+
#
|
799
|
+
#
|
800
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_PredictiveScalingConfiguration.html
|
754
801
|
# @return [ScalingPolicy]
|
755
802
|
def put_scaling_policy(options = {})
|
756
803
|
options = options.merge(auto_scaling_group_name: @name)
|
@@ -1310,7 +1357,7 @@ module Aws::AutoScaling
|
|
1310
1357
|
# specify an unknown policy name, it is ignored with no error.
|
1311
1358
|
# @option options [Array<String>] :policy_types
|
1312
1359
|
# One or more policy types. The valid values are `SimpleScaling`,
|
1313
|
-
# `StepScaling`, and `
|
1360
|
+
# `StepScaling`, `TargetTrackingScaling`, and `PredictiveScaling`.
|
1314
1361
|
# @return [ScalingPolicy::Collection]
|
1315
1362
|
def policies(options = {})
|
1316
1363
|
batches = Enumerator.new do |y|
|
@@ -1878,8 +1878,8 @@ module Aws::AutoScaling
|
|
1878
1878
|
# The name of the Auto Scaling group.
|
1879
1879
|
#
|
1880
1880
|
# @option params [Boolean] :force_delete
|
1881
|
-
# Specifies that the warm pool is to be deleted along with all
|
1882
|
-
# associated
|
1881
|
+
# Specifies that the warm pool is to be deleted along with all of its
|
1882
|
+
# associated instances, without waiting for all instances to be
|
1883
1883
|
# terminated. This parameter also deletes any outstanding lifecycle
|
1884
1884
|
# actions associated with the warm pool instances.
|
1885
1885
|
#
|
@@ -1922,7 +1922,7 @@ module Aws::AutoScaling
|
|
1922
1922
|
#
|
1923
1923
|
# @example Example: To describe your Auto Scaling account limits
|
1924
1924
|
#
|
1925
|
-
# # This example describes the Auto Scaling
|
1925
|
+
# # This example describes the Amazon EC2 Auto Scaling service quotas for your account.
|
1926
1926
|
#
|
1927
1927
|
# resp = client.describe_account_limits({
|
1928
1928
|
# })
|
@@ -2007,6 +2007,10 @@ module Aws::AutoScaling
|
|
2007
2007
|
|
2008
2008
|
# Describes one or more Auto Scaling groups.
|
2009
2009
|
#
|
2010
|
+
# This operation returns information about instances in Auto Scaling
|
2011
|
+
# groups. To retrieve information about the instances in a warm pool,
|
2012
|
+
# you must call the DescribeWarmPool API.
|
2013
|
+
#
|
2010
2014
|
# @option params [Array<String>] :auto_scaling_group_names
|
2011
2015
|
# The names of the Auto Scaling groups. By default, you can only specify
|
2012
2016
|
# up to 50 names. You can optionally increase this limit using the
|
@@ -2119,6 +2123,7 @@ module Aws::AutoScaling
|
|
2119
2123
|
# resp.auto_scaling_groups[0].min_size #=> Integer
|
2120
2124
|
# resp.auto_scaling_groups[0].max_size #=> Integer
|
2121
2125
|
# resp.auto_scaling_groups[0].desired_capacity #=> Integer
|
2126
|
+
# resp.auto_scaling_groups[0].predicted_capacity #=> Integer
|
2122
2127
|
# resp.auto_scaling_groups[0].default_cooldown #=> Integer
|
2123
2128
|
# resp.auto_scaling_groups[0].availability_zones #=> Array
|
2124
2129
|
# resp.auto_scaling_groups[0].availability_zones[0] #=> String
|
@@ -2923,7 +2928,7 @@ module Aws::AutoScaling
|
|
2923
2928
|
#
|
2924
2929
|
# @option params [Array<String>] :policy_types
|
2925
2930
|
# One or more policy types. The valid values are `SimpleScaling`,
|
2926
|
-
# `StepScaling`, and `
|
2931
|
+
# `StepScaling`, `TargetTrackingScaling`, and `PredictiveScaling`.
|
2927
2932
|
#
|
2928
2933
|
# @option params [String] :next_token
|
2929
2934
|
# The token for the next set of items to return. (You received this
|
@@ -3018,6 +3023,18 @@ module Aws::AutoScaling
|
|
3018
3023
|
# resp.scaling_policies[0].target_tracking_configuration.target_value #=> Float
|
3019
3024
|
# resp.scaling_policies[0].target_tracking_configuration.disable_scale_in #=> Boolean
|
3020
3025
|
# resp.scaling_policies[0].enabled #=> Boolean
|
3026
|
+
# resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications #=> Array
|
3027
|
+
# resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].target_value #=> Float
|
3028
|
+
# resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].predefined_metric_pair_specification.predefined_metric_type #=> String, one of "ASGCPUUtilization", "ASGNetworkIn", "ASGNetworkOut", "ALBRequestCount"
|
3029
|
+
# resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].predefined_metric_pair_specification.resource_label #=> String
|
3030
|
+
# resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].predefined_scaling_metric_specification.predefined_metric_type #=> String, one of "ASGAverageCPUUtilization", "ASGAverageNetworkIn", "ASGAverageNetworkOut", "ALBRequestCountPerTarget"
|
3031
|
+
# resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].predefined_scaling_metric_specification.resource_label #=> String
|
3032
|
+
# resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].predefined_load_metric_specification.predefined_metric_type #=> String, one of "ASGTotalCPUUtilization", "ASGTotalNetworkIn", "ASGTotalNetworkOut", "ALBTargetGroupRequestCount"
|
3033
|
+
# resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].predefined_load_metric_specification.resource_label #=> String
|
3034
|
+
# resp.scaling_policies[0].predictive_scaling_configuration.mode #=> String, one of "ForecastAndScale", "ForecastOnly"
|
3035
|
+
# resp.scaling_policies[0].predictive_scaling_configuration.scheduling_buffer_time #=> Integer
|
3036
|
+
# resp.scaling_policies[0].predictive_scaling_configuration.max_capacity_breach_behavior #=> String, one of "HonorMaxCapacity", "IncreaseMaxCapacity"
|
3037
|
+
# resp.scaling_policies[0].predictive_scaling_configuration.max_capacity_buffer #=> Integer
|
3021
3038
|
# resp.next_token #=> String
|
3022
3039
|
#
|
3023
3040
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePolicies AWS API Documentation
|
@@ -4110,6 +4127,89 @@ module Aws::AutoScaling
|
|
4110
4127
|
req.send_request(options)
|
4111
4128
|
end
|
4112
4129
|
|
4130
|
+
# Retrieves the forecast data for a predictive scaling policy.
|
4131
|
+
#
|
4132
|
+
# Load forecasts are predictions of the hourly load values using
|
4133
|
+
# historical load data from CloudWatch and an analysis of historical
|
4134
|
+
# trends. Capacity forecasts are represented as predicted values for the
|
4135
|
+
# minimum capacity that is needed on an hourly basis, based on the
|
4136
|
+
# hourly load forecast.
|
4137
|
+
#
|
4138
|
+
# A minimum of 24 hours of data is required to create the initial
|
4139
|
+
# forecasts. However, having a full 14 days of historical data results
|
4140
|
+
# in more accurate forecasts.
|
4141
|
+
#
|
4142
|
+
# For more information, see [Predictive scaling for Amazon EC2 Auto
|
4143
|
+
# Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
4144
|
+
#
|
4145
|
+
#
|
4146
|
+
#
|
4147
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-predictive-scaling.html
|
4148
|
+
#
|
4149
|
+
# @option params [required, String] :auto_scaling_group_name
|
4150
|
+
# The name of the Auto Scaling group.
|
4151
|
+
#
|
4152
|
+
# @option params [required, String] :policy_name
|
4153
|
+
# The name of the policy.
|
4154
|
+
#
|
4155
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :start_time
|
4156
|
+
# The inclusive start time of the time range for the forecast data to
|
4157
|
+
# get. At most, the date and time can be one year before the current
|
4158
|
+
# date and time.
|
4159
|
+
#
|
4160
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :end_time
|
4161
|
+
# The exclusive end time of the time range for the forecast data to get.
|
4162
|
+
# The maximum time duration between the start and end time is 30 days.
|
4163
|
+
#
|
4164
|
+
# Although this parameter can accept a date and time that is more than
|
4165
|
+
# two days in the future, the availability of forecast data has limits.
|
4166
|
+
# Amazon EC2 Auto Scaling only issues forecasts for periods of two days
|
4167
|
+
# in advance.
|
4168
|
+
#
|
4169
|
+
# @return [Types::GetPredictiveScalingForecastAnswer] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4170
|
+
#
|
4171
|
+
# * {Types::GetPredictiveScalingForecastAnswer#load_forecast #load_forecast} => Array<Types::LoadForecast>
|
4172
|
+
# * {Types::GetPredictiveScalingForecastAnswer#capacity_forecast #capacity_forecast} => Types::CapacityForecast
|
4173
|
+
# * {Types::GetPredictiveScalingForecastAnswer#update_time #update_time} => Time
|
4174
|
+
#
|
4175
|
+
# @example Request syntax with placeholder values
|
4176
|
+
#
|
4177
|
+
# resp = client.get_predictive_scaling_forecast({
|
4178
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4179
|
+
# policy_name: "XmlStringMaxLen255", # required
|
4180
|
+
# start_time: Time.now, # required
|
4181
|
+
# end_time: Time.now, # required
|
4182
|
+
# })
|
4183
|
+
#
|
4184
|
+
# @example Response structure
|
4185
|
+
#
|
4186
|
+
# resp.load_forecast #=> Array
|
4187
|
+
# resp.load_forecast[0].timestamps #=> Array
|
4188
|
+
# resp.load_forecast[0].timestamps[0] #=> Time
|
4189
|
+
# resp.load_forecast[0].values #=> Array
|
4190
|
+
# resp.load_forecast[0].values[0] #=> Float
|
4191
|
+
# resp.load_forecast[0].metric_specification.target_value #=> Float
|
4192
|
+
# resp.load_forecast[0].metric_specification.predefined_metric_pair_specification.predefined_metric_type #=> String, one of "ASGCPUUtilization", "ASGNetworkIn", "ASGNetworkOut", "ALBRequestCount"
|
4193
|
+
# resp.load_forecast[0].metric_specification.predefined_metric_pair_specification.resource_label #=> String
|
4194
|
+
# resp.load_forecast[0].metric_specification.predefined_scaling_metric_specification.predefined_metric_type #=> String, one of "ASGAverageCPUUtilization", "ASGAverageNetworkIn", "ASGAverageNetworkOut", "ALBRequestCountPerTarget"
|
4195
|
+
# resp.load_forecast[0].metric_specification.predefined_scaling_metric_specification.resource_label #=> String
|
4196
|
+
# resp.load_forecast[0].metric_specification.predefined_load_metric_specification.predefined_metric_type #=> String, one of "ASGTotalCPUUtilization", "ASGTotalNetworkIn", "ASGTotalNetworkOut", "ALBTargetGroupRequestCount"
|
4197
|
+
# resp.load_forecast[0].metric_specification.predefined_load_metric_specification.resource_label #=> String
|
4198
|
+
# resp.capacity_forecast.timestamps #=> Array
|
4199
|
+
# resp.capacity_forecast.timestamps[0] #=> Time
|
4200
|
+
# resp.capacity_forecast.values #=> Array
|
4201
|
+
# resp.capacity_forecast.values[0] #=> Float
|
4202
|
+
# resp.update_time #=> Time
|
4203
|
+
#
|
4204
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/GetPredictiveScalingForecast AWS API Documentation
|
4205
|
+
#
|
4206
|
+
# @overload get_predictive_scaling_forecast(params = {})
|
4207
|
+
# @param [Hash] params ({})
|
4208
|
+
def get_predictive_scaling_forecast(params = {}, options = {})
|
4209
|
+
req = build_request(:get_predictive_scaling_forecast, params)
|
4210
|
+
req.send_request(options)
|
4211
|
+
end
|
4212
|
+
|
4113
4213
|
# Creates or updates a lifecycle hook for the specified Auto Scaling
|
4114
4214
|
# group.
|
4115
4215
|
#
|
@@ -4314,17 +4414,28 @@ module Aws::AutoScaling
|
|
4314
4414
|
req.send_request(options)
|
4315
4415
|
end
|
4316
4416
|
|
4317
|
-
# Creates or updates a scaling policy for an Auto Scaling group.
|
4417
|
+
# Creates or updates a scaling policy for an Auto Scaling group. Scaling
|
4418
|
+
# policies are used to scale an Auto Scaling group based on configurable
|
4419
|
+
# metrics. If no policies are defined, the dynamic scaling and
|
4420
|
+
# predictive scaling features are not used.
|
4318
4421
|
#
|
4319
|
-
# For more information about using scaling
|
4320
|
-
#
|
4321
|
-
#
|
4322
|
-
#
|
4422
|
+
# For more information about using dynamic scaling, see [Target tracking
|
4423
|
+
# scaling policies][1] and [Step and simple scaling policies][2] in the
|
4424
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
4425
|
+
#
|
4426
|
+
# For more information about using predictive scaling, see [Predictive
|
4427
|
+
# scaling for Amazon EC2 Auto Scaling][3] in the *Amazon EC2 Auto
|
4428
|
+
# Scaling User Guide*.
|
4429
|
+
#
|
4430
|
+
# You can view the scaling policies for an Auto Scaling group using the
|
4431
|
+
# DescribePolicies API call. If you are no longer using a scaling
|
4432
|
+
# policy, you can delete it by calling the DeletePolicy API.
|
4323
4433
|
#
|
4324
4434
|
#
|
4325
4435
|
#
|
4326
4436
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-target-tracking.html
|
4327
4437
|
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-simple-step.html
|
4438
|
+
# [3]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-predictive-scaling.html
|
4328
4439
|
#
|
4329
4440
|
# @option params [required, String] :auto_scaling_group_name
|
4330
4441
|
# The name of the Auto Scaling group.
|
@@ -4341,6 +4452,8 @@ module Aws::AutoScaling
|
|
4341
4452
|
#
|
4342
4453
|
# * `SimpleScaling` (default)
|
4343
4454
|
#
|
4455
|
+
# * `PredictiveScaling`
|
4456
|
+
#
|
4344
4457
|
# @option params [String] :adjustment_type
|
4345
4458
|
# Specifies how the scaling adjustment is interpreted (for example, an
|
4346
4459
|
# absolute number or a percentage). The valid values are
|
@@ -4427,7 +4540,7 @@ module Aws::AutoScaling
|
|
4427
4540
|
# `StepScaling`.
|
4428
4541
|
#
|
4429
4542
|
# @option params [Types::TargetTrackingConfiguration] :target_tracking_configuration
|
4430
|
-
# A target tracking scaling policy.
|
4543
|
+
# A target tracking scaling policy. Provides support for predefined or
|
4431
4544
|
# customized metrics.
|
4432
4545
|
#
|
4433
4546
|
# The following predefined metrics are available:
|
@@ -4463,6 +4576,22 @@ module Aws::AutoScaling
|
|
4463
4576
|
#
|
4464
4577
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enable-disable-scaling-policy.html
|
4465
4578
|
#
|
4579
|
+
# @option params [Types::PredictiveScalingConfiguration] :predictive_scaling_configuration
|
4580
|
+
# A predictive scaling policy. Provides support for only predefined
|
4581
|
+
# metrics.
|
4582
|
+
#
|
4583
|
+
# Predictive scaling works with CPU utilization, network in/out, and the
|
4584
|
+
# Application Load Balancer request count.
|
4585
|
+
#
|
4586
|
+
# For more information, see [PredictiveScalingConfiguration][1] in the
|
4587
|
+
# *Amazon EC2 Auto Scaling API Reference*.
|
4588
|
+
#
|
4589
|
+
# Required if the policy type is `PredictiveScaling`.
|
4590
|
+
#
|
4591
|
+
#
|
4592
|
+
#
|
4593
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_PredictiveScalingConfiguration.html
|
4594
|
+
#
|
4466
4595
|
# @return [Types::PolicyARNType] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4467
4596
|
#
|
4468
4597
|
# * {Types::PolicyARNType#policy_arn #policy_arn} => String
|
@@ -4542,6 +4671,29 @@ module Aws::AutoScaling
|
|
4542
4671
|
# disable_scale_in: false,
|
4543
4672
|
# },
|
4544
4673
|
# enabled: false,
|
4674
|
+
# predictive_scaling_configuration: {
|
4675
|
+
# metric_specifications: [ # required
|
4676
|
+
# {
|
4677
|
+
# target_value: 1.0, # required
|
4678
|
+
# predefined_metric_pair_specification: {
|
4679
|
+
# predefined_metric_type: "ASGCPUUtilization", # required, accepts ASGCPUUtilization, ASGNetworkIn, ASGNetworkOut, ALBRequestCount
|
4680
|
+
# resource_label: "XmlStringMaxLen1023",
|
4681
|
+
# },
|
4682
|
+
# predefined_scaling_metric_specification: {
|
4683
|
+
# predefined_metric_type: "ASGAverageCPUUtilization", # required, accepts ASGAverageCPUUtilization, ASGAverageNetworkIn, ASGAverageNetworkOut, ALBRequestCountPerTarget
|
4684
|
+
# resource_label: "XmlStringMaxLen1023",
|
4685
|
+
# },
|
4686
|
+
# predefined_load_metric_specification: {
|
4687
|
+
# predefined_metric_type: "ASGTotalCPUUtilization", # required, accepts ASGTotalCPUUtilization, ASGTotalNetworkIn, ASGTotalNetworkOut, ALBTargetGroupRequestCount
|
4688
|
+
# resource_label: "XmlStringMaxLen1023",
|
4689
|
+
# },
|
4690
|
+
# },
|
4691
|
+
# ],
|
4692
|
+
# mode: "ForecastAndScale", # accepts ForecastAndScale, ForecastOnly
|
4693
|
+
# scheduling_buffer_time: 1,
|
4694
|
+
# max_capacity_breach_behavior: "HonorMaxCapacity", # accepts HonorMaxCapacity, IncreaseMaxCapacity
|
4695
|
+
# max_capacity_buffer: 1,
|
4696
|
+
# },
|
4545
4697
|
# })
|
4546
4698
|
#
|
4547
4699
|
# @example Response structure
|
@@ -4566,6 +4718,11 @@ module Aws::AutoScaling
|
|
4566
4718
|
# For more information, see [Scheduled scaling][1] in the *Amazon EC2
|
4567
4719
|
# Auto Scaling User Guide*.
|
4568
4720
|
#
|
4721
|
+
# You can view the scheduled actions for an Auto Scaling group using the
|
4722
|
+
# DescribeScheduledActions API call. If you are no longer using a
|
4723
|
+
# scheduled action, you can delete it by calling the
|
4724
|
+
# DeleteScheduledAction API.
|
4725
|
+
#
|
4569
4726
|
#
|
4570
4727
|
#
|
4571
4728
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/schedule_time.html
|
@@ -4676,12 +4833,13 @@ module Aws::AutoScaling
|
|
4676
4833
|
req.send_request(options)
|
4677
4834
|
end
|
4678
4835
|
|
4679
|
-
#
|
4680
|
-
# pool of pre-initialized EC2 instances that sits
|
4681
|
-
# Scaling group. Whenever your application needs to
|
4682
|
-
# Scaling group can draw on the warm pool to meet
|
4683
|
-
# capacity. For more information
|
4684
|
-
#
|
4836
|
+
# Creates or updates a warm pool for the specified Auto Scaling group. A
|
4837
|
+
# warm pool is a pool of pre-initialized EC2 instances that sits
|
4838
|
+
# alongside the Auto Scaling group. Whenever your application needs to
|
4839
|
+
# scale out, the Auto Scaling group can draw on the warm pool to meet
|
4840
|
+
# its new desired capacity. For more information and example
|
4841
|
+
# configurations, see [Warm pools for Amazon EC2 Auto Scaling][1] in the
|
4842
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
4685
4843
|
#
|
4686
4844
|
# This operation must be called from the Region in which the Auto
|
4687
4845
|
# Scaling group was created. This operation cannot be called on an Auto
|
@@ -4700,26 +4858,27 @@ module Aws::AutoScaling
|
|
4700
4858
|
# The name of the Auto Scaling group.
|
4701
4859
|
#
|
4702
4860
|
# @option params [Integer] :max_group_prepared_capacity
|
4703
|
-
# Specifies the
|
4704
|
-
#
|
4705
|
-
#
|
4706
|
-
# warm pool size
|
4861
|
+
# Specifies the maximum number of instances that are allowed to be in
|
4862
|
+
# the warm pool or in any state except `Terminated` for the Auto Scaling
|
4863
|
+
# group. This is an optional property. Specify it only if you do not
|
4864
|
+
# want the warm pool size to be determined by the difference between the
|
4707
4865
|
# group's maximum capacity and its desired capacity.
|
4708
4866
|
#
|
4709
|
-
#
|
4710
|
-
#
|
4711
|
-
#
|
4867
|
+
# If a value for `MaxGroupPreparedCapacity` is not specified, Amazon EC2
|
4868
|
+
# Auto Scaling launches and maintains the difference between the
|
4869
|
+
# group's maximum capacity and its desired capacity. If you specify a
|
4870
|
+
# value for `MaxGroupPreparedCapacity`, Amazon EC2 Auto Scaling uses the
|
4712
4871
|
# difference between the `MaxGroupPreparedCapacity` and the desired
|
4713
|
-
# capacity
|
4872
|
+
# capacity instead.
|
4714
4873
|
#
|
4715
4874
|
# The size of the warm pool is dynamic. Only when
|
4716
4875
|
# `MaxGroupPreparedCapacity` and `MinSize` are set to the same value
|
4717
4876
|
# does the warm pool have an absolute size.
|
4718
4877
|
#
|
4719
4878
|
# If the desired capacity of the Auto Scaling group is higher than the
|
4720
|
-
# `MaxGroupPreparedCapacity`, the capacity of the warm pool is 0
|
4721
|
-
#
|
4722
|
-
# specify -1 for the value.
|
4879
|
+
# `MaxGroupPreparedCapacity`, the capacity of the warm pool is 0, unless
|
4880
|
+
# you specify a value for `MinSize`. To remove a value that you
|
4881
|
+
# previously set, include the property but specify -1 for the value.
|
4723
4882
|
#
|
4724
4883
|
# @option params [Integer] :min_size
|
4725
4884
|
# Specifies the minimum number of instances to maintain in the warm
|
@@ -4728,8 +4887,8 @@ module Aws::AutoScaling
|
|
4728
4887
|
# if not specified.
|
4729
4888
|
#
|
4730
4889
|
# @option params [String] :pool_state
|
4731
|
-
# Sets the instance state to transition to after the lifecycle
|
4732
|
-
#
|
4890
|
+
# Sets the instance state to transition to after the lifecycle actions
|
4891
|
+
# are complete. Default is `Stopped`.
|
4733
4892
|
#
|
4734
4893
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
4735
4894
|
#
|
@@ -5645,7 +5804,7 @@ module Aws::AutoScaling
|
|
5645
5804
|
params: params,
|
5646
5805
|
config: config)
|
5647
5806
|
context[:gem_name] = 'aws-sdk-autoscaling'
|
5648
|
-
context[:gem_version] = '1.
|
5807
|
+
context[:gem_version] = '1.61.0'
|
5649
5808
|
Seahorse::Client::Request.new(handlers, context)
|
5650
5809
|
end
|
5651
5810
|
|