aws-sdk-autoscaling 1.58.0 → 1.63.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 +25 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-autoscaling.rb +1 -1
- data/lib/aws-sdk-autoscaling/auto_scaling_group.rb +116 -21
- data/lib/aws-sdk-autoscaling/client.rb +598 -97
- data/lib/aws-sdk-autoscaling/client_api.rb +188 -0
- data/lib/aws-sdk-autoscaling/customizations.rb +1 -1
- data/lib/aws-sdk-autoscaling/instance.rb +5 -1
- data/lib/aws-sdk-autoscaling/load_balancer.rb +5 -5
- data/lib/aws-sdk-autoscaling/resource.rb +30 -20
- data/lib/aws-sdk-autoscaling/scaling_policy.rb +8 -0
- data/lib/aws-sdk-autoscaling/types.rb +1012 -95
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa23b3aa0e790969199b109aea0235abeb79a955ffd8508e4057c9f21a42d0ef
|
4
|
+
data.tar.gz: 7f0f7b1c8b761b32cb5c01e5f62f252de21275b2cdde96dcad41ef30eb099b5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dee637f5d1f37ae0ed7abd16c4f3f0a92f99836a01cb8cbe39c6191e37c2e0a5c112d44d64f11027866ebcab40c62bbe27916520228fca76afc395e9cf4a65c
|
7
|
+
data.tar.gz: 865c5ca821e97bf8f3967d838e195b3db94c9c79593efaa491786964b1c6304c40bf0d307ea46d64b28ab45999b1153eab9c0a1349154cd89707073a7cd65f00
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,31 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.63.0 (2021-06-04)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Documentation updates for Amazon EC2 Auto Scaling
|
8
|
+
|
9
|
+
1.62.0 (2021-06-02)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - You can now launch EC2 instances with GP3 volumes when using Auto Scaling groups with Launch Configurations
|
13
|
+
|
14
|
+
1.61.0 (2021-05-19)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* 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.
|
18
|
+
|
19
|
+
1.60.0 (2021-04-08)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Amazon EC2 Auto Scaling announces Warm Pools that help applications to scale out faster by pre-initializing EC2 instances and save money by requiring fewer continuously running instances
|
23
|
+
|
24
|
+
1.59.0 (2021-03-18)
|
25
|
+
------------------
|
26
|
+
|
27
|
+
* Feature - Amazon EC2 Auto Scaling Instance Refresh now supports phased deployments.
|
28
|
+
|
4
29
|
1.58.0 (2021-03-10)
|
5
30
|
------------------
|
6
31
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.63.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
|
@@ -103,7 +110,7 @@ module Aws::AutoScaling
|
|
103
110
|
end
|
104
111
|
|
105
112
|
# The service to use for the health checks. The valid values are `EC2`
|
106
|
-
# and `ELB`. If you configure an Auto Scaling group to use ELB health
|
113
|
+
# and `ELB`. If you configure an Auto Scaling group to use `ELB` health
|
107
114
|
# checks, it considers the instance unhealthy if it fails either the EC2
|
108
115
|
# status checks or the load balancer health checks.
|
109
116
|
# @return [String]
|
@@ -171,7 +178,8 @@ module Aws::AutoScaling
|
|
171
178
|
end
|
172
179
|
|
173
180
|
# The Amazon Resource Name (ARN) of the service-linked role that the
|
174
|
-
# Auto Scaling group uses to call other
|
181
|
+
# Auto Scaling group uses to call other Amazon Web Services on your
|
182
|
+
# behalf.
|
175
183
|
# @return [String]
|
176
184
|
def service_linked_role_arn
|
177
185
|
data[:service_linked_role_arn]
|
@@ -192,6 +200,18 @@ module Aws::AutoScaling
|
|
192
200
|
data[:capacity_rebalance]
|
193
201
|
end
|
194
202
|
|
203
|
+
# The warm pool for the group.
|
204
|
+
# @return [Types::WarmPoolConfiguration]
|
205
|
+
def warm_pool_configuration
|
206
|
+
data[:warm_pool_configuration]
|
207
|
+
end
|
208
|
+
|
209
|
+
# The current size of the warm pool.
|
210
|
+
# @return [Integer]
|
211
|
+
def warm_pool_size
|
212
|
+
data[:warm_pool_size]
|
213
|
+
end
|
214
|
+
|
195
215
|
# @!endgroup
|
196
216
|
|
197
217
|
# @return [Client]
|
@@ -415,8 +435,8 @@ module Aws::AutoScaling
|
|
415
435
|
# @option options [Boolean] :force_delete
|
416
436
|
# Specifies that the group is to be deleted along with all instances
|
417
437
|
# associated with the group, without waiting for all instances to be
|
418
|
-
# terminated. This parameter also deletes any lifecycle
|
419
|
-
# associated with the group.
|
438
|
+
# terminated. This parameter also deletes any outstanding lifecycle
|
439
|
+
# actions associated with the group.
|
420
440
|
# @return [EmptyStructure]
|
421
441
|
def delete(options = {})
|
422
442
|
options = options.merge(auto_scaling_group_name: @name)
|
@@ -486,6 +506,20 @@ module Aws::AutoScaling
|
|
486
506
|
#
|
487
507
|
# * `GroupTotalCapacity`
|
488
508
|
#
|
509
|
+
# * `WarmPoolDesiredCapacity`
|
510
|
+
#
|
511
|
+
# * `WarmPoolWarmedCapacity`
|
512
|
+
#
|
513
|
+
# * `WarmPoolPendingCapacity`
|
514
|
+
#
|
515
|
+
# * `WarmPoolTerminatingCapacity`
|
516
|
+
#
|
517
|
+
# * `WarmPoolTotalCapacity`
|
518
|
+
#
|
519
|
+
# * `GroupAndWarmPoolDesiredCapacity`
|
520
|
+
#
|
521
|
+
# * `GroupAndWarmPoolTotalCapacity`
|
522
|
+
#
|
489
523
|
# If you omit this parameter, all metrics are disabled.
|
490
524
|
# @return [EmptyStructure]
|
491
525
|
def disable_metrics_collection(options = {})
|
@@ -534,6 +568,22 @@ module Aws::AutoScaling
|
|
534
568
|
#
|
535
569
|
# * `GroupTotalCapacity`
|
536
570
|
#
|
571
|
+
# The warm pools feature supports the following additional metrics:
|
572
|
+
#
|
573
|
+
# * `WarmPoolDesiredCapacity`
|
574
|
+
#
|
575
|
+
# * `WarmPoolWarmedCapacity`
|
576
|
+
#
|
577
|
+
# * `WarmPoolPendingCapacity`
|
578
|
+
#
|
579
|
+
# * `WarmPoolTerminatingCapacity`
|
580
|
+
#
|
581
|
+
# * `WarmPoolTotalCapacity`
|
582
|
+
#
|
583
|
+
# * `GroupAndWarmPoolDesiredCapacity`
|
584
|
+
#
|
585
|
+
# * `GroupAndWarmPoolTotalCapacity`
|
586
|
+
#
|
537
587
|
# If you omit this parameter, all metrics are enabled.
|
538
588
|
# @option options [required, String] :granularity
|
539
589
|
# The granularity to associate with the metrics to collect. The only
|
@@ -585,6 +635,29 @@ module Aws::AutoScaling
|
|
585
635
|
# disable_scale_in: false,
|
586
636
|
# },
|
587
637
|
# enabled: false,
|
638
|
+
# predictive_scaling_configuration: {
|
639
|
+
# metric_specifications: [ # required
|
640
|
+
# {
|
641
|
+
# target_value: 1.0, # required
|
642
|
+
# predefined_metric_pair_specification: {
|
643
|
+
# predefined_metric_type: "ASGCPUUtilization", # required, accepts ASGCPUUtilization, ASGNetworkIn, ASGNetworkOut, ALBRequestCount
|
644
|
+
# resource_label: "XmlStringMaxLen1023",
|
645
|
+
# },
|
646
|
+
# predefined_scaling_metric_specification: {
|
647
|
+
# predefined_metric_type: "ASGAverageCPUUtilization", # required, accepts ASGAverageCPUUtilization, ASGAverageNetworkIn, ASGAverageNetworkOut, ALBRequestCountPerTarget
|
648
|
+
# resource_label: "XmlStringMaxLen1023",
|
649
|
+
# },
|
650
|
+
# predefined_load_metric_specification: {
|
651
|
+
# predefined_metric_type: "ASGTotalCPUUtilization", # required, accepts ASGTotalCPUUtilization, ASGTotalNetworkIn, ASGTotalNetworkOut, ALBTargetGroupRequestCount
|
652
|
+
# resource_label: "XmlStringMaxLen1023",
|
653
|
+
# },
|
654
|
+
# },
|
655
|
+
# ],
|
656
|
+
# mode: "ForecastAndScale", # accepts ForecastAndScale, ForecastOnly
|
657
|
+
# scheduling_buffer_time: 1,
|
658
|
+
# max_capacity_breach_behavior: "HonorMaxCapacity", # accepts HonorMaxCapacity, IncreaseMaxCapacity
|
659
|
+
# max_capacity_buffer: 1,
|
660
|
+
# },
|
588
661
|
# })
|
589
662
|
# @param [Hash] options ({})
|
590
663
|
# @option options [required, String] :policy_name
|
@@ -597,6 +670,8 @@ module Aws::AutoScaling
|
|
597
670
|
# * `StepScaling`
|
598
671
|
#
|
599
672
|
# * `SimpleScaling` (default)
|
673
|
+
#
|
674
|
+
# * `PredictiveScaling`
|
600
675
|
# @option options [String] :adjustment_type
|
601
676
|
# Specifies how the scaling adjustment is interpreted (for example, an
|
602
677
|
# absolute number or a percentage). The valid values are
|
@@ -675,7 +750,7 @@ module Aws::AutoScaling
|
|
675
750
|
# Valid only if the policy type is `TargetTrackingScaling` or
|
676
751
|
# `StepScaling`.
|
677
752
|
# @option options [Types::TargetTrackingConfiguration] :target_tracking_configuration
|
678
|
-
# A target tracking scaling policy.
|
753
|
+
# A target tracking scaling policy. Provides support for predefined or
|
679
754
|
# customized metrics.
|
680
755
|
#
|
681
756
|
# The following predefined metrics are available:
|
@@ -709,6 +784,21 @@ module Aws::AutoScaling
|
|
709
784
|
#
|
710
785
|
#
|
711
786
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enable-disable-scaling-policy.html
|
787
|
+
# @option options [Types::PredictiveScalingConfiguration] :predictive_scaling_configuration
|
788
|
+
# A predictive scaling policy. Provides support for only predefined
|
789
|
+
# metrics.
|
790
|
+
#
|
791
|
+
# Predictive scaling works with CPU utilization, network in/out, and the
|
792
|
+
# Application Load Balancer request count.
|
793
|
+
#
|
794
|
+
# For more information, see [PredictiveScalingConfiguration][1] in the
|
795
|
+
# *Amazon EC2 Auto Scaling API Reference*.
|
796
|
+
#
|
797
|
+
# Required if the policy type is `PredictiveScaling`.
|
798
|
+
#
|
799
|
+
#
|
800
|
+
#
|
801
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_PredictiveScalingConfiguration.html
|
712
802
|
# @return [ScalingPolicy]
|
713
803
|
def put_scaling_policy(options = {})
|
714
804
|
options = options.merge(auto_scaling_group_name: @name)
|
@@ -995,7 +1085,7 @@ module Aws::AutoScaling
|
|
995
1085
|
# One or more Availability Zones for the group.
|
996
1086
|
# @option options [String] :health_check_type
|
997
1087
|
# The service to use for the health checks. The valid values are `EC2`
|
998
|
-
# and `ELB`. If you configure an Auto Scaling group to use ELB health
|
1088
|
+
# and `ELB`. If you configure an Auto Scaling group to use `ELB` health
|
999
1089
|
# checks, it considers the instance unhealthy if it fails either the EC2
|
1000
1090
|
# status checks or the load balancer health checks.
|
1001
1091
|
# @option options [Integer] :health_check_grace_period
|
@@ -1048,9 +1138,9 @@ module Aws::AutoScaling
|
|
1048
1138
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection
|
1049
1139
|
# @option options [String] :service_linked_role_arn
|
1050
1140
|
# The Amazon Resource Name (ARN) of the service-linked role that the
|
1051
|
-
# Auto Scaling group uses to call other
|
1052
|
-
# more information, see [Service-linked roles][1] in the
|
1053
|
-
# Auto Scaling User Guide*.
|
1141
|
+
# Auto Scaling group uses to call other Amazon Web Services on your
|
1142
|
+
# behalf. For more information, see [Service-linked roles][1] in the
|
1143
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
1054
1144
|
#
|
1055
1145
|
#
|
1056
1146
|
#
|
@@ -1094,11 +1184,13 @@ module Aws::AutoScaling
|
|
1094
1184
|
# })
|
1095
1185
|
# @param [Hash] options ({})
|
1096
1186
|
# @option options [Array<String>] :activity_ids
|
1097
|
-
# The activity IDs of the desired scaling activities.
|
1098
|
-
#
|
1099
|
-
#
|
1100
|
-
#
|
1101
|
-
#
|
1187
|
+
# The activity IDs of the desired scaling activities. If you omit this
|
1188
|
+
# parameter, all activities for the past six weeks are described. If
|
1189
|
+
# unknown activities are requested, they are ignored with no error. If
|
1190
|
+
# you specify an Auto Scaling group, the results are limited to that
|
1191
|
+
# group.
|
1192
|
+
#
|
1193
|
+
# Array Members: Maximum number of 50 IDs.
|
1102
1194
|
# @option options [Boolean] :include_deleted_groups
|
1103
1195
|
# Indicates whether to include scaling activity from deleted Auto
|
1104
1196
|
# Scaling groups.
|
@@ -1264,11 +1356,13 @@ module Aws::AutoScaling
|
|
1264
1356
|
# @option options [Array<String>] :policy_names
|
1265
1357
|
# The names of one or more policies. If you omit this parameter, all
|
1266
1358
|
# policies are described. If a group name is provided, the results are
|
1267
|
-
# limited to that group.
|
1268
|
-
#
|
1359
|
+
# limited to that group. If you specify an unknown policy name, it is
|
1360
|
+
# ignored with no error.
|
1361
|
+
#
|
1362
|
+
# Array Members: Maximum number of 50 items.
|
1269
1363
|
# @option options [Array<String>] :policy_types
|
1270
1364
|
# One or more policy types. The valid values are `SimpleScaling`,
|
1271
|
-
# `StepScaling`, and `
|
1365
|
+
# `StepScaling`, `TargetTrackingScaling`, and `PredictiveScaling`.
|
1272
1366
|
# @return [ScalingPolicy::Collection]
|
1273
1367
|
def policies(options = {})
|
1274
1368
|
batches = Enumerator.new do |y|
|
@@ -1298,10 +1392,11 @@ module Aws::AutoScaling
|
|
1298
1392
|
# })
|
1299
1393
|
# @param [Hash] options ({})
|
1300
1394
|
# @option options [Array<String>] :scheduled_action_names
|
1301
|
-
# The names of one or more scheduled actions.
|
1302
|
-
#
|
1303
|
-
#
|
1304
|
-
#
|
1395
|
+
# The names of one or more scheduled actions. If you omit this
|
1396
|
+
# parameter, all scheduled actions are described. If you specify an
|
1397
|
+
# unknown scheduled action, it is ignored with no error.
|
1398
|
+
#
|
1399
|
+
# Array Members: Maximum number of 50 actions.
|
1305
1400
|
# @option options [Time,DateTime,Date,Integer,String] :start_time
|
1306
1401
|
# The earliest scheduled start time to return. If scheduled action names
|
1307
1402
|
# are provided, this parameter is ignored.
|
@@ -596,8 +596,9 @@ module Aws::AutoScaling
|
|
596
596
|
# not roll back any replacements that have already been completed, but
|
597
597
|
# it prevents new replacements from being started.
|
598
598
|
#
|
599
|
-
#
|
600
|
-
#
|
599
|
+
# This operation is part of the [instance refresh feature][1] in Amazon
|
600
|
+
# EC2 Auto Scaling, which helps you update instances in your Auto
|
601
|
+
# Scaling group after you make configuration changes.
|
601
602
|
#
|
602
603
|
#
|
603
604
|
#
|
@@ -986,11 +987,11 @@ module Aws::AutoScaling
|
|
986
987
|
#
|
987
988
|
# @option params [String] :service_linked_role_arn
|
988
989
|
# The Amazon Resource Name (ARN) of the service-linked role that the
|
989
|
-
# Auto Scaling group uses to call other
|
990
|
-
# default, Amazon EC2 Auto Scaling uses a service-linked role
|
991
|
-
# AWSServiceRoleForAutoScaling, which it creates if it does not
|
992
|
-
# For more information, see [Service-linked roles][1] in the
|
993
|
-
# Auto Scaling User Guide*.
|
990
|
+
# Auto Scaling group uses to call other Amazon Web Services on your
|
991
|
+
# behalf. By default, Amazon EC2 Auto Scaling uses a service-linked role
|
992
|
+
# named AWSServiceRoleForAutoScaling, which it creates if it does not
|
993
|
+
# exist. For more information, see [Service-linked roles][1] in the
|
994
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
994
995
|
#
|
995
996
|
#
|
996
997
|
#
|
@@ -1032,9 +1033,12 @@ module Aws::AutoScaling
|
|
1032
1033
|
#
|
1033
1034
|
# resp = client.create_auto_scaling_group({
|
1034
1035
|
# auto_scaling_group_name: "my-auto-scaling-group",
|
1035
|
-
# health_check_grace_period:
|
1036
|
+
# health_check_grace_period: 300,
|
1036
1037
|
# health_check_type: "ELB",
|
1037
|
-
#
|
1038
|
+
# launch_template: {
|
1039
|
+
# launch_template_id: "lt-0a20c965061f64abc",
|
1040
|
+
# version: "$Default",
|
1041
|
+
# },
|
1038
1042
|
# max_size: 3,
|
1039
1043
|
# min_size: 1,
|
1040
1044
|
# target_group_arns: [
|
@@ -1043,23 +1047,45 @@ module Aws::AutoScaling
|
|
1043
1047
|
# vpc_zone_identifier: "subnet-057fa0918fEXAMPLE, subnet-610acd08EXAMPLE",
|
1044
1048
|
# })
|
1045
1049
|
#
|
1046
|
-
# @example Example: To create an Auto Scaling group with
|
1050
|
+
# @example Example: To create an Auto Scaling group with a mixed instances policy
|
1047
1051
|
#
|
1048
|
-
# # This example creates an Auto Scaling group
|
1052
|
+
# # This example creates an Auto Scaling group with a mixed instances policy. It specifies the c5.large, c5a.large, and
|
1053
|
+
# # c6g.large instance types and defines a different launch template for the c6g.large instance type.
|
1049
1054
|
#
|
1050
1055
|
# resp = client.create_auto_scaling_group({
|
1051
|
-
# auto_scaling_group_name: "my-
|
1052
|
-
#
|
1053
|
-
#
|
1054
|
-
# ],
|
1055
|
-
# health_check_grace_period: 120,
|
1056
|
-
# health_check_type: "ELB",
|
1057
|
-
# launch_configuration_name: "my-launch-config",
|
1058
|
-
# load_balancer_names: [
|
1059
|
-
# "my-load-balancer",
|
1060
|
-
# ],
|
1061
|
-
# max_size: 3,
|
1056
|
+
# auto_scaling_group_name: "my-asg",
|
1057
|
+
# desired_capacity: 3,
|
1058
|
+
# max_size: 5,
|
1062
1059
|
# min_size: 1,
|
1060
|
+
# mixed_instances_policy: {
|
1061
|
+
# instances_distribution: {
|
1062
|
+
# on_demand_base_capacity: 1,
|
1063
|
+
# on_demand_percentage_above_base_capacity: 50,
|
1064
|
+
# spot_allocation_strategy: "capacity-optimized",
|
1065
|
+
# },
|
1066
|
+
# launch_template: {
|
1067
|
+
# launch_template_specification: {
|
1068
|
+
# launch_template_name: "my-launch-template-for-x86",
|
1069
|
+
# version: "$Latest",
|
1070
|
+
# },
|
1071
|
+
# overrides: [
|
1072
|
+
# {
|
1073
|
+
# instance_type: "c6g.large",
|
1074
|
+
# launch_template_specification: {
|
1075
|
+
# launch_template_name: "my-launch-template-for-arm",
|
1076
|
+
# version: "$Latest",
|
1077
|
+
# },
|
1078
|
+
# },
|
1079
|
+
# {
|
1080
|
+
# instance_type: "c5.large",
|
1081
|
+
# },
|
1082
|
+
# {
|
1083
|
+
# instance_type: "c5a.large",
|
1084
|
+
# },
|
1085
|
+
# ],
|
1086
|
+
# },
|
1087
|
+
# },
|
1088
|
+
# vpc_zone_identifier: "subnet-057fa0918fEXAMPLE, subnet-610acd08EXAMPLE",
|
1063
1089
|
# })
|
1064
1090
|
#
|
1065
1091
|
# @example Request syntax with placeholder values
|
@@ -1450,6 +1476,7 @@ module Aws::AutoScaling
|
|
1450
1476
|
# delete_on_termination: false,
|
1451
1477
|
# iops: 1,
|
1452
1478
|
# encrypted: false,
|
1479
|
+
# throughput: 1,
|
1453
1480
|
# },
|
1454
1481
|
# no_device: false,
|
1455
1482
|
# },
|
@@ -1567,8 +1594,8 @@ module Aws::AutoScaling
|
|
1567
1594
|
# @option params [Boolean] :force_delete
|
1568
1595
|
# Specifies that the group is to be deleted along with all instances
|
1569
1596
|
# associated with the group, without waiting for all instances to be
|
1570
|
-
# terminated. This parameter also deletes any lifecycle
|
1571
|
-
# associated with the group.
|
1597
|
+
# terminated. This parameter also deletes any outstanding lifecycle
|
1598
|
+
# actions associated with the group.
|
1572
1599
|
#
|
1573
1600
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1574
1601
|
#
|
@@ -1847,8 +1874,44 @@ module Aws::AutoScaling
|
|
1847
1874
|
req.send_request(options)
|
1848
1875
|
end
|
1849
1876
|
|
1877
|
+
# Deletes the warm pool for the specified Auto Scaling group.
|
1878
|
+
#
|
1879
|
+
# For more information, see [Warm pools for Amazon EC2 Auto Scaling][1]
|
1880
|
+
# in the *Amazon EC2 Auto Scaling User Guide*.
|
1881
|
+
#
|
1882
|
+
#
|
1883
|
+
#
|
1884
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-warm-pools.html
|
1885
|
+
#
|
1886
|
+
# @option params [required, String] :auto_scaling_group_name
|
1887
|
+
# The name of the Auto Scaling group.
|
1888
|
+
#
|
1889
|
+
# @option params [Boolean] :force_delete
|
1890
|
+
# Specifies that the warm pool is to be deleted along with all of its
|
1891
|
+
# associated instances, without waiting for all instances to be
|
1892
|
+
# terminated. This parameter also deletes any outstanding lifecycle
|
1893
|
+
# actions associated with the warm pool instances.
|
1894
|
+
#
|
1895
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1896
|
+
#
|
1897
|
+
# @example Request syntax with placeholder values
|
1898
|
+
#
|
1899
|
+
# resp = client.delete_warm_pool({
|
1900
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1901
|
+
# force_delete: false,
|
1902
|
+
# })
|
1903
|
+
#
|
1904
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteWarmPool AWS API Documentation
|
1905
|
+
#
|
1906
|
+
# @overload delete_warm_pool(params = {})
|
1907
|
+
# @param [Hash] params ({})
|
1908
|
+
def delete_warm_pool(params = {}, options = {})
|
1909
|
+
req = build_request(:delete_warm_pool, params)
|
1910
|
+
req.send_request(options)
|
1911
|
+
end
|
1912
|
+
|
1850
1913
|
# Describes the current Amazon EC2 Auto Scaling resource quotas for your
|
1851
|
-
#
|
1914
|
+
# account.
|
1852
1915
|
#
|
1853
1916
|
# For information about requesting an increase, see [Amazon EC2 Auto
|
1854
1917
|
# Scaling service quotas][1] in the *Amazon EC2 Auto Scaling User
|
@@ -1868,7 +1931,7 @@ module Aws::AutoScaling
|
|
1868
1931
|
#
|
1869
1932
|
# @example Example: To describe your Auto Scaling account limits
|
1870
1933
|
#
|
1871
|
-
# # This example describes the Auto Scaling
|
1934
|
+
# # This example describes the Amazon EC2 Auto Scaling service quotas for your account.
|
1872
1935
|
#
|
1873
1936
|
# resp = client.describe_account_limits({
|
1874
1937
|
# })
|
@@ -1897,18 +1960,16 @@ module Aws::AutoScaling
|
|
1897
1960
|
req.send_request(options)
|
1898
1961
|
end
|
1899
1962
|
|
1900
|
-
# Describes the available adjustment types for
|
1901
|
-
# scaling policies.
|
1902
|
-
# simple scaling policies; they do not apply to target tracking scaling
|
1903
|
-
# policies.
|
1963
|
+
# Describes the available adjustment types for step scaling and simple
|
1964
|
+
# scaling policies.
|
1904
1965
|
#
|
1905
1966
|
# The following adjustment types are supported:
|
1906
1967
|
#
|
1907
|
-
# * ChangeInCapacity
|
1968
|
+
# * `ChangeInCapacity`
|
1908
1969
|
#
|
1909
|
-
# * ExactCapacity
|
1970
|
+
# * `ExactCapacity`
|
1910
1971
|
#
|
1911
|
-
# * PercentChangeInCapacity
|
1972
|
+
# * `PercentChangeInCapacity`
|
1912
1973
|
#
|
1913
1974
|
# @return [Types::DescribeAdjustmentTypesAnswer] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1914
1975
|
#
|
@@ -1951,7 +2012,12 @@ module Aws::AutoScaling
|
|
1951
2012
|
req.send_request(options)
|
1952
2013
|
end
|
1953
2014
|
|
1954
|
-
#
|
2015
|
+
# Gets information about the Auto Scaling groups in the account and
|
2016
|
+
# Region.
|
2017
|
+
#
|
2018
|
+
# This operation returns information about instances in Auto Scaling
|
2019
|
+
# groups. To retrieve information about the instances in a warm pool,
|
2020
|
+
# you must call the DescribeWarmPool API.
|
1955
2021
|
#
|
1956
2022
|
# @option params [Array<String>] :auto_scaling_group_names
|
1957
2023
|
# The names of the Auto Scaling groups. By default, you can only specify
|
@@ -2065,6 +2131,7 @@ module Aws::AutoScaling
|
|
2065
2131
|
# resp.auto_scaling_groups[0].min_size #=> Integer
|
2066
2132
|
# resp.auto_scaling_groups[0].max_size #=> Integer
|
2067
2133
|
# resp.auto_scaling_groups[0].desired_capacity #=> Integer
|
2134
|
+
# resp.auto_scaling_groups[0].predicted_capacity #=> Integer
|
2068
2135
|
# resp.auto_scaling_groups[0].default_cooldown #=> Integer
|
2069
2136
|
# resp.auto_scaling_groups[0].availability_zones #=> Array
|
2070
2137
|
# resp.auto_scaling_groups[0].availability_zones[0] #=> String
|
@@ -2078,7 +2145,7 @@ module Aws::AutoScaling
|
|
2078
2145
|
# resp.auto_scaling_groups[0].instances[0].instance_id #=> String
|
2079
2146
|
# resp.auto_scaling_groups[0].instances[0].instance_type #=> String
|
2080
2147
|
# resp.auto_scaling_groups[0].instances[0].availability_zone #=> String
|
2081
|
-
# resp.auto_scaling_groups[0].instances[0].lifecycle_state #=> String, one of "Pending", "Pending:Wait", "Pending:Proceed", "Quarantined", "InService", "Terminating", "Terminating:Wait", "Terminating:Proceed", "Terminated", "Detaching", "Detached", "EnteringStandby", "Standby"
|
2148
|
+
# resp.auto_scaling_groups[0].instances[0].lifecycle_state #=> String, one of "Pending", "Pending:Wait", "Pending:Proceed", "Quarantined", "InService", "Terminating", "Terminating:Wait", "Terminating:Proceed", "Terminated", "Detaching", "Detached", "EnteringStandby", "Standby", "Warmed:Pending", "Warmed:Pending:Wait", "Warmed:Pending:Proceed", "Warmed:Terminating", "Warmed:Terminating:Wait", "Warmed:Terminating:Proceed", "Warmed:Terminated", "Warmed:Stopped", "Warmed:Running"
|
2082
2149
|
# resp.auto_scaling_groups[0].instances[0].health_status #=> String
|
2083
2150
|
# resp.auto_scaling_groups[0].instances[0].launch_configuration_name #=> String
|
2084
2151
|
# resp.auto_scaling_groups[0].instances[0].launch_template.launch_template_id #=> String
|
@@ -2108,6 +2175,11 @@ module Aws::AutoScaling
|
|
2108
2175
|
# resp.auto_scaling_groups[0].service_linked_role_arn #=> String
|
2109
2176
|
# resp.auto_scaling_groups[0].max_instance_lifetime #=> Integer
|
2110
2177
|
# resp.auto_scaling_groups[0].capacity_rebalance #=> Boolean
|
2178
|
+
# resp.auto_scaling_groups[0].warm_pool_configuration.max_group_prepared_capacity #=> Integer
|
2179
|
+
# resp.auto_scaling_groups[0].warm_pool_configuration.min_size #=> Integer
|
2180
|
+
# resp.auto_scaling_groups[0].warm_pool_configuration.pool_state #=> String, one of "Stopped", "Running"
|
2181
|
+
# resp.auto_scaling_groups[0].warm_pool_configuration.status #=> String, one of "PendingDelete"
|
2182
|
+
# resp.auto_scaling_groups[0].warm_pool_size #=> Integer
|
2111
2183
|
# resp.next_token #=> String
|
2112
2184
|
#
|
2113
2185
|
#
|
@@ -2126,12 +2198,15 @@ module Aws::AutoScaling
|
|
2126
2198
|
req.send_request(options)
|
2127
2199
|
end
|
2128
2200
|
|
2129
|
-
#
|
2201
|
+
# Gets information about the Auto Scaling instances in the account and
|
2202
|
+
# Region.
|
2130
2203
|
#
|
2131
2204
|
# @option params [Array<String>] :instance_ids
|
2132
|
-
# The IDs of the instances.
|
2133
|
-
#
|
2134
|
-
#
|
2205
|
+
# The IDs of the instances. If you omit this parameter, all Auto Scaling
|
2206
|
+
# instances are described. If you specify an ID that does not exist, it
|
2207
|
+
# is ignored with no error.
|
2208
|
+
#
|
2209
|
+
# Array Members: Maximum number of 50 items.
|
2135
2210
|
#
|
2136
2211
|
# @option params [Integer] :max_records
|
2137
2212
|
# The maximum number of items to return with this call. The default
|
@@ -2248,10 +2323,20 @@ module Aws::AutoScaling
|
|
2248
2323
|
req.send_request(options)
|
2249
2324
|
end
|
2250
2325
|
|
2251
|
-
#
|
2326
|
+
# Gets information about the instance refreshes for the specified Auto
|
2327
|
+
# Scaling group.
|
2328
|
+
#
|
2329
|
+
# This operation is part of the [instance refresh feature][1] in Amazon
|
2330
|
+
# EC2 Auto Scaling, which helps you update instances in your Auto
|
2331
|
+
# Scaling group after you make configuration changes.
|
2332
|
+
#
|
2333
|
+
# To help you determine the status of an instance refresh, this
|
2334
|
+
# operation returns information about the instance refreshes you
|
2335
|
+
# previously initiated, including their status, end time, the percentage
|
2336
|
+
# of the instance refresh that is complete, and the number of instances
|
2337
|
+
# remaining to update before the instance refresh is complete.
|
2252
2338
|
#
|
2253
|
-
#
|
2254
|
-
# parameter. The following are the possible statuses:
|
2339
|
+
# The following are the possible statuses:
|
2255
2340
|
#
|
2256
2341
|
# * `Pending` - The request was created, but the operation has not
|
2257
2342
|
# started.
|
@@ -2269,9 +2354,6 @@ module Aws::AutoScaling
|
|
2269
2354
|
#
|
2270
2355
|
# * `Cancelled` - The operation is cancelled.
|
2271
2356
|
#
|
2272
|
-
# For more information, see [Replacing Auto Scaling Instances Based on
|
2273
|
-
# an Instance Refresh][1].
|
2274
|
-
#
|
2275
2357
|
#
|
2276
2358
|
#
|
2277
2359
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html
|
@@ -2347,6 +2429,10 @@ module Aws::AutoScaling
|
|
2347
2429
|
# resp.instance_refreshes[0].end_time #=> Time
|
2348
2430
|
# resp.instance_refreshes[0].percentage_complete #=> Integer
|
2349
2431
|
# resp.instance_refreshes[0].instances_to_update #=> Integer
|
2432
|
+
# resp.instance_refreshes[0].progress_details.live_pool_progress.percentage_complete #=> Integer
|
2433
|
+
# resp.instance_refreshes[0].progress_details.live_pool_progress.instances_to_update #=> Integer
|
2434
|
+
# resp.instance_refreshes[0].progress_details.warm_pool_progress.percentage_complete #=> Integer
|
2435
|
+
# resp.instance_refreshes[0].progress_details.warm_pool_progress.instances_to_update #=> Integer
|
2350
2436
|
# resp.next_token #=> String
|
2351
2437
|
#
|
2352
2438
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeInstanceRefreshes AWS API Documentation
|
@@ -2358,12 +2444,15 @@ module Aws::AutoScaling
|
|
2358
2444
|
req.send_request(options)
|
2359
2445
|
end
|
2360
2446
|
|
2361
|
-
#
|
2447
|
+
# Gets information about the launch configurations in the account and
|
2448
|
+
# Region.
|
2362
2449
|
#
|
2363
2450
|
# @option params [Array<String>] :launch_configuration_names
|
2364
2451
|
# The launch configuration names. If you omit this parameter, all launch
|
2365
2452
|
# configurations are described.
|
2366
2453
|
#
|
2454
|
+
# Array Members: Maximum number of 50 items.
|
2455
|
+
#
|
2367
2456
|
# @option params [String] :next_token
|
2368
2457
|
# The token for the next set of items to return. (You received this
|
2369
2458
|
# token from a previous call.)
|
@@ -2446,6 +2535,7 @@ module Aws::AutoScaling
|
|
2446
2535
|
# resp.launch_configurations[0].block_device_mappings[0].ebs.delete_on_termination #=> Boolean
|
2447
2536
|
# resp.launch_configurations[0].block_device_mappings[0].ebs.iops #=> Integer
|
2448
2537
|
# resp.launch_configurations[0].block_device_mappings[0].ebs.encrypted #=> Boolean
|
2538
|
+
# resp.launch_configurations[0].block_device_mappings[0].ebs.throughput #=> Integer
|
2449
2539
|
# resp.launch_configurations[0].block_device_mappings[0].no_device #=> Boolean
|
2450
2540
|
# resp.launch_configurations[0].instance_monitoring.enabled #=> Boolean
|
2451
2541
|
# resp.launch_configurations[0].spot_price #=> String
|
@@ -2472,9 +2562,9 @@ module Aws::AutoScaling
|
|
2472
2562
|
#
|
2473
2563
|
# The following hook types are supported:
|
2474
2564
|
#
|
2475
|
-
# * autoscaling:
|
2565
|
+
# * `autoscaling:EC2_INSTANCE_LAUNCHING`
|
2476
2566
|
#
|
2477
|
-
# * autoscaling:
|
2567
|
+
# * `autoscaling:EC2_INSTANCE_TERMINATING`
|
2478
2568
|
#
|
2479
2569
|
# @return [Types::DescribeLifecycleHookTypesAnswer] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2480
2570
|
#
|
@@ -2510,7 +2600,8 @@ module Aws::AutoScaling
|
|
2510
2600
|
req.send_request(options)
|
2511
2601
|
end
|
2512
2602
|
|
2513
|
-
#
|
2603
|
+
# Gets information about the lifecycle hooks for the specified Auto
|
2604
|
+
# Scaling group.
|
2514
2605
|
#
|
2515
2606
|
# @option params [required, String] :auto_scaling_group_name
|
2516
2607
|
# The name of the Auto Scaling group.
|
@@ -2577,7 +2668,36 @@ module Aws::AutoScaling
|
|
2577
2668
|
req.send_request(options)
|
2578
2669
|
end
|
2579
2670
|
|
2580
|
-
#
|
2671
|
+
# Gets information about the load balancer target groups for the
|
2672
|
+
# specified Auto Scaling group.
|
2673
|
+
#
|
2674
|
+
# To determine the availability of registered instances, use the `State`
|
2675
|
+
# element in the response. When you attach a target group to an Auto
|
2676
|
+
# Scaling group, the initial `State` value is `Adding`. The state
|
2677
|
+
# transitions to `Added` after all Auto Scaling instances are registered
|
2678
|
+
# with the target group. If Elastic Load Balancing health checks are
|
2679
|
+
# enabled for the Auto Scaling group, the state transitions to
|
2680
|
+
# `InService` after at least one Auto Scaling instance passes the health
|
2681
|
+
# check. When the target group is in the `InService` state, Amazon EC2
|
2682
|
+
# Auto Scaling can terminate and replace any instances that are reported
|
2683
|
+
# as unhealthy. If no registered instances pass the health checks, the
|
2684
|
+
# target group doesn't enter the `InService` state.
|
2685
|
+
#
|
2686
|
+
# Target groups also have an `InService` state if you attach them in the
|
2687
|
+
# CreateAutoScalingGroup API call. If your target group state is
|
2688
|
+
# `InService`, but it is not working properly, check the scaling
|
2689
|
+
# activities by calling DescribeScalingActivities and take any
|
2690
|
+
# corrective actions necessary.
|
2691
|
+
#
|
2692
|
+
# For help with failed health checks, see [Troubleshooting Amazon EC2
|
2693
|
+
# Auto Scaling: Health checks][1] in the *Amazon EC2 Auto Scaling User
|
2694
|
+
# Guide*. For more information, see [Elastic Load Balancing and Amazon
|
2695
|
+
# EC2 Auto Scaling][2] in the *Amazon EC2 Auto Scaling User Guide*.
|
2696
|
+
#
|
2697
|
+
#
|
2698
|
+
#
|
2699
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ts-as-healthchecks.html
|
2700
|
+
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html
|
2581
2701
|
#
|
2582
2702
|
# @option params [required, String] :auto_scaling_group_name
|
2583
2703
|
# The name of the Auto Scaling group.
|
@@ -2638,12 +2758,41 @@ module Aws::AutoScaling
|
|
2638
2758
|
req.send_request(options)
|
2639
2759
|
end
|
2640
2760
|
|
2641
|
-
#
|
2761
|
+
# Gets information about the load balancers for the specified Auto
|
2762
|
+
# Scaling group.
|
2642
2763
|
#
|
2643
2764
|
# This operation describes only Classic Load Balancers. If you have
|
2644
2765
|
# Application Load Balancers, Network Load Balancers, or Gateway Load
|
2645
2766
|
# Balancers, use the DescribeLoadBalancerTargetGroups API instead.
|
2646
2767
|
#
|
2768
|
+
# To determine the availability of registered instances, use the `State`
|
2769
|
+
# element in the response. When you attach a load balancer to an Auto
|
2770
|
+
# Scaling group, the initial `State` value is `Adding`. The state
|
2771
|
+
# transitions to `Added` after all Auto Scaling instances are registered
|
2772
|
+
# with the load balancer. If Elastic Load Balancing health checks are
|
2773
|
+
# enabled for the Auto Scaling group, the state transitions to
|
2774
|
+
# `InService` after at least one Auto Scaling instance passes the health
|
2775
|
+
# check. When the load balancer is in the `InService` state, Amazon EC2
|
2776
|
+
# Auto Scaling can terminate and replace any instances that are reported
|
2777
|
+
# as unhealthy. If no registered instances pass the health checks, the
|
2778
|
+
# load balancer doesn't enter the `InService` state.
|
2779
|
+
#
|
2780
|
+
# Load balancers also have an `InService` state if you attach them in
|
2781
|
+
# the CreateAutoScalingGroup API call. If your load balancer state is
|
2782
|
+
# `InService`, but it is not working properly, check the scaling
|
2783
|
+
# activities by calling DescribeScalingActivities and take any
|
2784
|
+
# corrective actions necessary.
|
2785
|
+
#
|
2786
|
+
# For help with failed health checks, see [Troubleshooting Amazon EC2
|
2787
|
+
# Auto Scaling: Health checks][1] in the *Amazon EC2 Auto Scaling User
|
2788
|
+
# Guide*. For more information, see [Elastic Load Balancing and Amazon
|
2789
|
+
# EC2 Auto Scaling][2] in the *Amazon EC2 Auto Scaling User Guide*.
|
2790
|
+
#
|
2791
|
+
#
|
2792
|
+
#
|
2793
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ts-as-healthchecks.html
|
2794
|
+
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html
|
2795
|
+
#
|
2647
2796
|
# @option params [required, String] :auto_scaling_group_name
|
2648
2797
|
# The name of the Auto Scaling group.
|
2649
2798
|
#
|
@@ -2774,8 +2923,8 @@ module Aws::AutoScaling
|
|
2774
2923
|
req.send_request(options)
|
2775
2924
|
end
|
2776
2925
|
|
2777
|
-
#
|
2778
|
-
# Scaling
|
2926
|
+
# Gets information about the Amazon SNS notifications that are
|
2927
|
+
# configured for one or more Auto Scaling groups.
|
2779
2928
|
#
|
2780
2929
|
# @option params [Array<String>] :auto_scaling_group_names
|
2781
2930
|
# The name of the Auto Scaling group.
|
@@ -2847,7 +2996,7 @@ module Aws::AutoScaling
|
|
2847
2996
|
req.send_request(options)
|
2848
2997
|
end
|
2849
2998
|
|
2850
|
-
#
|
2999
|
+
# Gets information about the scaling policies in the account and Region.
|
2851
3000
|
#
|
2852
3001
|
# @option params [String] :auto_scaling_group_name
|
2853
3002
|
# The name of the Auto Scaling group.
|
@@ -2855,12 +3004,14 @@ module Aws::AutoScaling
|
|
2855
3004
|
# @option params [Array<String>] :policy_names
|
2856
3005
|
# The names of one or more policies. If you omit this parameter, all
|
2857
3006
|
# policies are described. If a group name is provided, the results are
|
2858
|
-
# limited to that group.
|
2859
|
-
#
|
3007
|
+
# limited to that group. If you specify an unknown policy name, it is
|
3008
|
+
# ignored with no error.
|
3009
|
+
#
|
3010
|
+
# Array Members: Maximum number of 50 items.
|
2860
3011
|
#
|
2861
3012
|
# @option params [Array<String>] :policy_types
|
2862
3013
|
# One or more policy types. The valid values are `SimpleScaling`,
|
2863
|
-
# `StepScaling`, and `
|
3014
|
+
# `StepScaling`, `TargetTrackingScaling`, and `PredictiveScaling`.
|
2864
3015
|
#
|
2865
3016
|
# @option params [String] :next_token
|
2866
3017
|
# The token for the next set of items to return. (You received this
|
@@ -2955,6 +3106,18 @@ module Aws::AutoScaling
|
|
2955
3106
|
# resp.scaling_policies[0].target_tracking_configuration.target_value #=> Float
|
2956
3107
|
# resp.scaling_policies[0].target_tracking_configuration.disable_scale_in #=> Boolean
|
2957
3108
|
# resp.scaling_policies[0].enabled #=> Boolean
|
3109
|
+
# resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications #=> Array
|
3110
|
+
# resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].target_value #=> Float
|
3111
|
+
# resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].predefined_metric_pair_specification.predefined_metric_type #=> String, one of "ASGCPUUtilization", "ASGNetworkIn", "ASGNetworkOut", "ALBRequestCount"
|
3112
|
+
# resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].predefined_metric_pair_specification.resource_label #=> String
|
3113
|
+
# resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].predefined_scaling_metric_specification.predefined_metric_type #=> String, one of "ASGAverageCPUUtilization", "ASGAverageNetworkIn", "ASGAverageNetworkOut", "ALBRequestCountPerTarget"
|
3114
|
+
# resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].predefined_scaling_metric_specification.resource_label #=> String
|
3115
|
+
# resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].predefined_load_metric_specification.predefined_metric_type #=> String, one of "ASGTotalCPUUtilization", "ASGTotalNetworkIn", "ASGTotalNetworkOut", "ALBTargetGroupRequestCount"
|
3116
|
+
# resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].predefined_load_metric_specification.resource_label #=> String
|
3117
|
+
# resp.scaling_policies[0].predictive_scaling_configuration.mode #=> String, one of "ForecastAndScale", "ForecastOnly"
|
3118
|
+
# resp.scaling_policies[0].predictive_scaling_configuration.scheduling_buffer_time #=> Integer
|
3119
|
+
# resp.scaling_policies[0].predictive_scaling_configuration.max_capacity_breach_behavior #=> String, one of "HonorMaxCapacity", "IncreaseMaxCapacity"
|
3120
|
+
# resp.scaling_policies[0].predictive_scaling_configuration.max_capacity_buffer #=> Integer
|
2958
3121
|
# resp.next_token #=> String
|
2959
3122
|
#
|
2960
3123
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePolicies AWS API Documentation
|
@@ -2966,26 +3129,35 @@ module Aws::AutoScaling
|
|
2966
3129
|
req.send_request(options)
|
2967
3130
|
end
|
2968
3131
|
|
2969
|
-
#
|
2970
|
-
#
|
3132
|
+
# Gets information about the scaling activities in the account and
|
3133
|
+
# Region.
|
2971
3134
|
#
|
2972
|
-
#
|
2973
|
-
#
|
2974
|
-
# scaling events occur, you see scaling activity messages in the
|
2975
|
-
# **Activity history**. For more information, see [Verifying a scaling
|
3135
|
+
# When scaling events occur, you see a record of the scaling activity in
|
3136
|
+
# the scaling activities. For more information, see [Verifying a scaling
|
2976
3137
|
# activity for an Auto Scaling group][1] in the *Amazon EC2 Auto Scaling
|
2977
3138
|
# User Guide*.
|
2978
3139
|
#
|
3140
|
+
# If the scaling event succeeds, the value of the `StatusCode` element
|
3141
|
+
# in the response is `Successful`. If an attempt to launch instances
|
3142
|
+
# failed, the `StatusCode` value is `Failed` or `Cancelled` and the
|
3143
|
+
# `StatusMessage` element in the response indicates the cause of the
|
3144
|
+
# failure. For help interpreting the `StatusMessage`, see
|
3145
|
+
# [Troubleshooting Amazon EC2 Auto Scaling][2] in the *Amazon EC2 Auto
|
3146
|
+
# Scaling User Guide*.
|
3147
|
+
#
|
2979
3148
|
#
|
2980
3149
|
#
|
2981
3150
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-verify-scaling-activity.html
|
3151
|
+
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/CHAP_Troubleshooting.html
|
2982
3152
|
#
|
2983
3153
|
# @option params [Array<String>] :activity_ids
|
2984
|
-
# The activity IDs of the desired scaling activities.
|
2985
|
-
#
|
2986
|
-
#
|
2987
|
-
#
|
2988
|
-
#
|
3154
|
+
# The activity IDs of the desired scaling activities. If you omit this
|
3155
|
+
# parameter, all activities for the past six weeks are described. If
|
3156
|
+
# unknown activities are requested, they are ignored with no error. If
|
3157
|
+
# you specify an Auto Scaling group, the results are limited to that
|
3158
|
+
# group.
|
3159
|
+
#
|
3160
|
+
# Array Members: Maximum number of 50 IDs.
|
2989
3161
|
#
|
2990
3162
|
# @option params [String] :auto_scaling_group_name
|
2991
3163
|
# The name of the Auto Scaling group.
|
@@ -3130,18 +3302,21 @@ module Aws::AutoScaling
|
|
3130
3302
|
req.send_request(options)
|
3131
3303
|
end
|
3132
3304
|
|
3133
|
-
#
|
3134
|
-
#
|
3135
|
-
#
|
3305
|
+
# Gets information about the scheduled actions that haven't run or that
|
3306
|
+
# have not reached their end time.
|
3307
|
+
#
|
3308
|
+
# To describe the scaling activities for scheduled actions that have
|
3309
|
+
# already run, call the DescribeScalingActivities API.
|
3136
3310
|
#
|
3137
3311
|
# @option params [String] :auto_scaling_group_name
|
3138
3312
|
# The name of the Auto Scaling group.
|
3139
3313
|
#
|
3140
3314
|
# @option params [Array<String>] :scheduled_action_names
|
3141
|
-
# The names of one or more scheduled actions.
|
3142
|
-
#
|
3143
|
-
#
|
3144
|
-
#
|
3315
|
+
# The names of one or more scheduled actions. If you omit this
|
3316
|
+
# parameter, all scheduled actions are described. If you specify an
|
3317
|
+
# unknown scheduled action, it is ignored with no error.
|
3318
|
+
#
|
3319
|
+
# Array Members: Maximum number of 50 actions.
|
3145
3320
|
#
|
3146
3321
|
# @option params [Time,DateTime,Date,Integer,String] :start_time
|
3147
3322
|
# The earliest scheduled start time to return. If scheduled action names
|
@@ -3381,6 +3556,69 @@ module Aws::AutoScaling
|
|
3381
3556
|
req.send_request(options)
|
3382
3557
|
end
|
3383
3558
|
|
3559
|
+
# Gets information about a warm pool and its instances.
|
3560
|
+
#
|
3561
|
+
# For more information, see [Warm pools for Amazon EC2 Auto Scaling][1]
|
3562
|
+
# in the *Amazon EC2 Auto Scaling User Guide*.
|
3563
|
+
#
|
3564
|
+
#
|
3565
|
+
#
|
3566
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-warm-pools.html
|
3567
|
+
#
|
3568
|
+
# @option params [required, String] :auto_scaling_group_name
|
3569
|
+
# The name of the Auto Scaling group.
|
3570
|
+
#
|
3571
|
+
# @option params [Integer] :max_records
|
3572
|
+
# The maximum number of instances to return with this call. The maximum
|
3573
|
+
# value is `50`.
|
3574
|
+
#
|
3575
|
+
# @option params [String] :next_token
|
3576
|
+
# The token for the next set of instances to return. (You received this
|
3577
|
+
# token from a previous call.)
|
3578
|
+
#
|
3579
|
+
# @return [Types::DescribeWarmPoolAnswer] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3580
|
+
#
|
3581
|
+
# * {Types::DescribeWarmPoolAnswer#warm_pool_configuration #warm_pool_configuration} => Types::WarmPoolConfiguration
|
3582
|
+
# * {Types::DescribeWarmPoolAnswer#instances #instances} => Array<Types::Instance>
|
3583
|
+
# * {Types::DescribeWarmPoolAnswer#next_token #next_token} => String
|
3584
|
+
#
|
3585
|
+
# @example Request syntax with placeholder values
|
3586
|
+
#
|
3587
|
+
# resp = client.describe_warm_pool({
|
3588
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3589
|
+
# max_records: 1,
|
3590
|
+
# next_token: "XmlString",
|
3591
|
+
# })
|
3592
|
+
#
|
3593
|
+
# @example Response structure
|
3594
|
+
#
|
3595
|
+
# resp.warm_pool_configuration.max_group_prepared_capacity #=> Integer
|
3596
|
+
# resp.warm_pool_configuration.min_size #=> Integer
|
3597
|
+
# resp.warm_pool_configuration.pool_state #=> String, one of "Stopped", "Running"
|
3598
|
+
# resp.warm_pool_configuration.status #=> String, one of "PendingDelete"
|
3599
|
+
# resp.instances #=> Array
|
3600
|
+
# resp.instances[0].instance_id #=> String
|
3601
|
+
# resp.instances[0].instance_type #=> String
|
3602
|
+
# resp.instances[0].availability_zone #=> String
|
3603
|
+
# resp.instances[0].lifecycle_state #=> String, one of "Pending", "Pending:Wait", "Pending:Proceed", "Quarantined", "InService", "Terminating", "Terminating:Wait", "Terminating:Proceed", "Terminated", "Detaching", "Detached", "EnteringStandby", "Standby", "Warmed:Pending", "Warmed:Pending:Wait", "Warmed:Pending:Proceed", "Warmed:Terminating", "Warmed:Terminating:Wait", "Warmed:Terminating:Proceed", "Warmed:Terminated", "Warmed:Stopped", "Warmed:Running"
|
3604
|
+
# resp.instances[0].health_status #=> String
|
3605
|
+
# resp.instances[0].launch_configuration_name #=> String
|
3606
|
+
# resp.instances[0].launch_template.launch_template_id #=> String
|
3607
|
+
# resp.instances[0].launch_template.launch_template_name #=> String
|
3608
|
+
# resp.instances[0].launch_template.version #=> String
|
3609
|
+
# resp.instances[0].protected_from_scale_in #=> Boolean
|
3610
|
+
# resp.instances[0].weighted_capacity #=> String
|
3611
|
+
# resp.next_token #=> String
|
3612
|
+
#
|
3613
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeWarmPool AWS API Documentation
|
3614
|
+
#
|
3615
|
+
# @overload describe_warm_pool(params = {})
|
3616
|
+
# @param [Hash] params ({})
|
3617
|
+
def describe_warm_pool(params = {}, options = {})
|
3618
|
+
req = build_request(:describe_warm_pool, params)
|
3619
|
+
req.send_request(options)
|
3620
|
+
end
|
3621
|
+
|
3384
3622
|
# Removes one or more instances from the specified Auto Scaling group.
|
3385
3623
|
#
|
3386
3624
|
# After the instances are detached, you can manage them independent of
|
@@ -3601,6 +3839,20 @@ module Aws::AutoScaling
|
|
3601
3839
|
#
|
3602
3840
|
# * `GroupTotalCapacity`
|
3603
3841
|
#
|
3842
|
+
# * `WarmPoolDesiredCapacity`
|
3843
|
+
#
|
3844
|
+
# * `WarmPoolWarmedCapacity`
|
3845
|
+
#
|
3846
|
+
# * `WarmPoolPendingCapacity`
|
3847
|
+
#
|
3848
|
+
# * `WarmPoolTerminatingCapacity`
|
3849
|
+
#
|
3850
|
+
# * `WarmPoolTotalCapacity`
|
3851
|
+
#
|
3852
|
+
# * `GroupAndWarmPoolDesiredCapacity`
|
3853
|
+
#
|
3854
|
+
# * `GroupAndWarmPoolTotalCapacity`
|
3855
|
+
#
|
3604
3856
|
# If you omit this parameter, all metrics are disabled.
|
3605
3857
|
#
|
3606
3858
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
@@ -3677,6 +3929,22 @@ module Aws::AutoScaling
|
|
3677
3929
|
#
|
3678
3930
|
# * `GroupTotalCapacity`
|
3679
3931
|
#
|
3932
|
+
# The warm pools feature supports the following additional metrics:
|
3933
|
+
#
|
3934
|
+
# * `WarmPoolDesiredCapacity`
|
3935
|
+
#
|
3936
|
+
# * `WarmPoolWarmedCapacity`
|
3937
|
+
#
|
3938
|
+
# * `WarmPoolPendingCapacity`
|
3939
|
+
#
|
3940
|
+
# * `WarmPoolTerminatingCapacity`
|
3941
|
+
#
|
3942
|
+
# * `WarmPoolTotalCapacity`
|
3943
|
+
#
|
3944
|
+
# * `GroupAndWarmPoolDesiredCapacity`
|
3945
|
+
#
|
3946
|
+
# * `GroupAndWarmPoolTotalCapacity`
|
3947
|
+
#
|
3680
3948
|
# If you omit this parameter, all metrics are enabled.
|
3681
3949
|
#
|
3682
3950
|
# @option params [required, String] :granularity
|
@@ -3961,6 +4229,89 @@ module Aws::AutoScaling
|
|
3961
4229
|
req.send_request(options)
|
3962
4230
|
end
|
3963
4231
|
|
4232
|
+
# Retrieves the forecast data for a predictive scaling policy.
|
4233
|
+
#
|
4234
|
+
# Load forecasts are predictions of the hourly load values using
|
4235
|
+
# historical load data from CloudWatch and an analysis of historical
|
4236
|
+
# trends. Capacity forecasts are represented as predicted values for the
|
4237
|
+
# minimum capacity that is needed on an hourly basis, based on the
|
4238
|
+
# hourly load forecast.
|
4239
|
+
#
|
4240
|
+
# A minimum of 24 hours of data is required to create the initial
|
4241
|
+
# forecasts. However, having a full 14 days of historical data results
|
4242
|
+
# in more accurate forecasts.
|
4243
|
+
#
|
4244
|
+
# For more information, see [Predictive scaling for Amazon EC2 Auto
|
4245
|
+
# Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
4246
|
+
#
|
4247
|
+
#
|
4248
|
+
#
|
4249
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-predictive-scaling.html
|
4250
|
+
#
|
4251
|
+
# @option params [required, String] :auto_scaling_group_name
|
4252
|
+
# The name of the Auto Scaling group.
|
4253
|
+
#
|
4254
|
+
# @option params [required, String] :policy_name
|
4255
|
+
# The name of the policy.
|
4256
|
+
#
|
4257
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :start_time
|
4258
|
+
# The inclusive start time of the time range for the forecast data to
|
4259
|
+
# get. At most, the date and time can be one year before the current
|
4260
|
+
# date and time.
|
4261
|
+
#
|
4262
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :end_time
|
4263
|
+
# The exclusive end time of the time range for the forecast data to get.
|
4264
|
+
# The maximum time duration between the start and end time is 30 days.
|
4265
|
+
#
|
4266
|
+
# Although this parameter can accept a date and time that is more than
|
4267
|
+
# two days in the future, the availability of forecast data has limits.
|
4268
|
+
# Amazon EC2 Auto Scaling only issues forecasts for periods of two days
|
4269
|
+
# in advance.
|
4270
|
+
#
|
4271
|
+
# @return [Types::GetPredictiveScalingForecastAnswer] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4272
|
+
#
|
4273
|
+
# * {Types::GetPredictiveScalingForecastAnswer#load_forecast #load_forecast} => Array<Types::LoadForecast>
|
4274
|
+
# * {Types::GetPredictiveScalingForecastAnswer#capacity_forecast #capacity_forecast} => Types::CapacityForecast
|
4275
|
+
# * {Types::GetPredictiveScalingForecastAnswer#update_time #update_time} => Time
|
4276
|
+
#
|
4277
|
+
# @example Request syntax with placeholder values
|
4278
|
+
#
|
4279
|
+
# resp = client.get_predictive_scaling_forecast({
|
4280
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4281
|
+
# policy_name: "XmlStringMaxLen255", # required
|
4282
|
+
# start_time: Time.now, # required
|
4283
|
+
# end_time: Time.now, # required
|
4284
|
+
# })
|
4285
|
+
#
|
4286
|
+
# @example Response structure
|
4287
|
+
#
|
4288
|
+
# resp.load_forecast #=> Array
|
4289
|
+
# resp.load_forecast[0].timestamps #=> Array
|
4290
|
+
# resp.load_forecast[0].timestamps[0] #=> Time
|
4291
|
+
# resp.load_forecast[0].values #=> Array
|
4292
|
+
# resp.load_forecast[0].values[0] #=> Float
|
4293
|
+
# resp.load_forecast[0].metric_specification.target_value #=> Float
|
4294
|
+
# resp.load_forecast[0].metric_specification.predefined_metric_pair_specification.predefined_metric_type #=> String, one of "ASGCPUUtilization", "ASGNetworkIn", "ASGNetworkOut", "ALBRequestCount"
|
4295
|
+
# resp.load_forecast[0].metric_specification.predefined_metric_pair_specification.resource_label #=> String
|
4296
|
+
# resp.load_forecast[0].metric_specification.predefined_scaling_metric_specification.predefined_metric_type #=> String, one of "ASGAverageCPUUtilization", "ASGAverageNetworkIn", "ASGAverageNetworkOut", "ALBRequestCountPerTarget"
|
4297
|
+
# resp.load_forecast[0].metric_specification.predefined_scaling_metric_specification.resource_label #=> String
|
4298
|
+
# resp.load_forecast[0].metric_specification.predefined_load_metric_specification.predefined_metric_type #=> String, one of "ASGTotalCPUUtilization", "ASGTotalNetworkIn", "ASGTotalNetworkOut", "ALBTargetGroupRequestCount"
|
4299
|
+
# resp.load_forecast[0].metric_specification.predefined_load_metric_specification.resource_label #=> String
|
4300
|
+
# resp.capacity_forecast.timestamps #=> Array
|
4301
|
+
# resp.capacity_forecast.timestamps[0] #=> Time
|
4302
|
+
# resp.capacity_forecast.values #=> Array
|
4303
|
+
# resp.capacity_forecast.values[0] #=> Float
|
4304
|
+
# resp.update_time #=> Time
|
4305
|
+
#
|
4306
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/GetPredictiveScalingForecast AWS API Documentation
|
4307
|
+
#
|
4308
|
+
# @overload get_predictive_scaling_forecast(params = {})
|
4309
|
+
# @param [Hash] params ({})
|
4310
|
+
def get_predictive_scaling_forecast(params = {}, options = {})
|
4311
|
+
req = build_request(:get_predictive_scaling_forecast, params)
|
4312
|
+
req.send_request(options)
|
4313
|
+
end
|
4314
|
+
|
3964
4315
|
# Creates or updates a lifecycle hook for the specified Auto Scaling
|
3965
4316
|
# group.
|
3966
4317
|
#
|
@@ -4165,17 +4516,28 @@ module Aws::AutoScaling
|
|
4165
4516
|
req.send_request(options)
|
4166
4517
|
end
|
4167
4518
|
|
4168
|
-
# Creates or updates a scaling policy for an Auto Scaling group.
|
4519
|
+
# Creates or updates a scaling policy for an Auto Scaling group. Scaling
|
4520
|
+
# policies are used to scale an Auto Scaling group based on configurable
|
4521
|
+
# metrics. If no policies are defined, the dynamic scaling and
|
4522
|
+
# predictive scaling features are not used.
|
4169
4523
|
#
|
4170
|
-
# For more information about using scaling
|
4171
|
-
#
|
4172
|
-
#
|
4173
|
-
#
|
4524
|
+
# For more information about using dynamic scaling, see [Target tracking
|
4525
|
+
# scaling policies][1] and [Step and simple scaling policies][2] in the
|
4526
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
4527
|
+
#
|
4528
|
+
# For more information about using predictive scaling, see [Predictive
|
4529
|
+
# scaling for Amazon EC2 Auto Scaling][3] in the *Amazon EC2 Auto
|
4530
|
+
# Scaling User Guide*.
|
4531
|
+
#
|
4532
|
+
# You can view the scaling policies for an Auto Scaling group using the
|
4533
|
+
# DescribePolicies API call. If you are no longer using a scaling
|
4534
|
+
# policy, you can delete it by calling the DeletePolicy API.
|
4174
4535
|
#
|
4175
4536
|
#
|
4176
4537
|
#
|
4177
4538
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-target-tracking.html
|
4178
4539
|
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-simple-step.html
|
4540
|
+
# [3]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-predictive-scaling.html
|
4179
4541
|
#
|
4180
4542
|
# @option params [required, String] :auto_scaling_group_name
|
4181
4543
|
# The name of the Auto Scaling group.
|
@@ -4192,6 +4554,8 @@ module Aws::AutoScaling
|
|
4192
4554
|
#
|
4193
4555
|
# * `SimpleScaling` (default)
|
4194
4556
|
#
|
4557
|
+
# * `PredictiveScaling`
|
4558
|
+
#
|
4195
4559
|
# @option params [String] :adjustment_type
|
4196
4560
|
# Specifies how the scaling adjustment is interpreted (for example, an
|
4197
4561
|
# absolute number or a percentage). The valid values are
|
@@ -4278,7 +4642,7 @@ module Aws::AutoScaling
|
|
4278
4642
|
# `StepScaling`.
|
4279
4643
|
#
|
4280
4644
|
# @option params [Types::TargetTrackingConfiguration] :target_tracking_configuration
|
4281
|
-
# A target tracking scaling policy.
|
4645
|
+
# A target tracking scaling policy. Provides support for predefined or
|
4282
4646
|
# customized metrics.
|
4283
4647
|
#
|
4284
4648
|
# The following predefined metrics are available:
|
@@ -4314,6 +4678,22 @@ module Aws::AutoScaling
|
|
4314
4678
|
#
|
4315
4679
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enable-disable-scaling-policy.html
|
4316
4680
|
#
|
4681
|
+
# @option params [Types::PredictiveScalingConfiguration] :predictive_scaling_configuration
|
4682
|
+
# A predictive scaling policy. Provides support for only predefined
|
4683
|
+
# metrics.
|
4684
|
+
#
|
4685
|
+
# Predictive scaling works with CPU utilization, network in/out, and the
|
4686
|
+
# Application Load Balancer request count.
|
4687
|
+
#
|
4688
|
+
# For more information, see [PredictiveScalingConfiguration][1] in the
|
4689
|
+
# *Amazon EC2 Auto Scaling API Reference*.
|
4690
|
+
#
|
4691
|
+
# Required if the policy type is `PredictiveScaling`.
|
4692
|
+
#
|
4693
|
+
#
|
4694
|
+
#
|
4695
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_PredictiveScalingConfiguration.html
|
4696
|
+
#
|
4317
4697
|
# @return [Types::PolicyARNType] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4318
4698
|
#
|
4319
4699
|
# * {Types::PolicyARNType#policy_arn #policy_arn} => String
|
@@ -4331,7 +4711,7 @@ module Aws::AutoScaling
|
|
4331
4711
|
# target_tracking_configuration: {
|
4332
4712
|
# predefined_metric_specification: {
|
4333
4713
|
# predefined_metric_type: "ALBRequestCountPerTarget",
|
4334
|
-
# resource_label: "app/
|
4714
|
+
# resource_label: "app/my-alb/778d41231b141a0f/targetgroup/my-alb-target-group/943f017f100becff",
|
4335
4715
|
# },
|
4336
4716
|
# target_value: 1000.0,
|
4337
4717
|
# },
|
@@ -4393,6 +4773,29 @@ module Aws::AutoScaling
|
|
4393
4773
|
# disable_scale_in: false,
|
4394
4774
|
# },
|
4395
4775
|
# enabled: false,
|
4776
|
+
# predictive_scaling_configuration: {
|
4777
|
+
# metric_specifications: [ # required
|
4778
|
+
# {
|
4779
|
+
# target_value: 1.0, # required
|
4780
|
+
# predefined_metric_pair_specification: {
|
4781
|
+
# predefined_metric_type: "ASGCPUUtilization", # required, accepts ASGCPUUtilization, ASGNetworkIn, ASGNetworkOut, ALBRequestCount
|
4782
|
+
# resource_label: "XmlStringMaxLen1023",
|
4783
|
+
# },
|
4784
|
+
# predefined_scaling_metric_specification: {
|
4785
|
+
# predefined_metric_type: "ASGAverageCPUUtilization", # required, accepts ASGAverageCPUUtilization, ASGAverageNetworkIn, ASGAverageNetworkOut, ALBRequestCountPerTarget
|
4786
|
+
# resource_label: "XmlStringMaxLen1023",
|
4787
|
+
# },
|
4788
|
+
# predefined_load_metric_specification: {
|
4789
|
+
# predefined_metric_type: "ASGTotalCPUUtilization", # required, accepts ASGTotalCPUUtilization, ASGTotalNetworkIn, ASGTotalNetworkOut, ALBTargetGroupRequestCount
|
4790
|
+
# resource_label: "XmlStringMaxLen1023",
|
4791
|
+
# },
|
4792
|
+
# },
|
4793
|
+
# ],
|
4794
|
+
# mode: "ForecastAndScale", # accepts ForecastAndScale, ForecastOnly
|
4795
|
+
# scheduling_buffer_time: 1,
|
4796
|
+
# max_capacity_breach_behavior: "HonorMaxCapacity", # accepts HonorMaxCapacity, IncreaseMaxCapacity
|
4797
|
+
# max_capacity_buffer: 1,
|
4798
|
+
# },
|
4396
4799
|
# })
|
4397
4800
|
#
|
4398
4801
|
# @example Response structure
|
@@ -4417,6 +4820,11 @@ module Aws::AutoScaling
|
|
4417
4820
|
# For more information, see [Scheduled scaling][1] in the *Amazon EC2
|
4418
4821
|
# Auto Scaling User Guide*.
|
4419
4822
|
#
|
4823
|
+
# You can view the scheduled actions for an Auto Scaling group using the
|
4824
|
+
# DescribeScheduledActions API call. If you are no longer using a
|
4825
|
+
# scheduled action, you can delete it by calling the
|
4826
|
+
# DeleteScheduledAction API.
|
4827
|
+
#
|
4420
4828
|
#
|
4421
4829
|
#
|
4422
4830
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/schedule_time.html
|
@@ -4527,6 +4935,94 @@ module Aws::AutoScaling
|
|
4527
4935
|
req.send_request(options)
|
4528
4936
|
end
|
4529
4937
|
|
4938
|
+
# Creates or updates a warm pool for the specified Auto Scaling group. A
|
4939
|
+
# warm pool is a pool of pre-initialized EC2 instances that sits
|
4940
|
+
# alongside the Auto Scaling group. Whenever your application needs to
|
4941
|
+
# scale out, the Auto Scaling group can draw on the warm pool to meet
|
4942
|
+
# its new desired capacity. For more information and example
|
4943
|
+
# configurations, see [Warm pools for Amazon EC2 Auto Scaling][1] in the
|
4944
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
4945
|
+
#
|
4946
|
+
# This operation must be called from the Region in which the Auto
|
4947
|
+
# Scaling group was created. This operation cannot be called on an Auto
|
4948
|
+
# Scaling group that has a mixed instances policy or a launch template
|
4949
|
+
# or launch configuration that requests Spot Instances.
|
4950
|
+
#
|
4951
|
+
# You can view the instances in the warm pool using the DescribeWarmPool
|
4952
|
+
# API call. If you are no longer using a warm pool, you can delete it by
|
4953
|
+
# calling the DeleteWarmPool API.
|
4954
|
+
#
|
4955
|
+
#
|
4956
|
+
#
|
4957
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-warm-pools.html
|
4958
|
+
#
|
4959
|
+
# @option params [required, String] :auto_scaling_group_name
|
4960
|
+
# The name of the Auto Scaling group.
|
4961
|
+
#
|
4962
|
+
# @option params [Integer] :max_group_prepared_capacity
|
4963
|
+
# Specifies the maximum number of instances that are allowed to be in
|
4964
|
+
# the warm pool or in any state except `Terminated` for the Auto Scaling
|
4965
|
+
# group. This is an optional property. Specify it only if you do not
|
4966
|
+
# want the warm pool size to be determined by the difference between the
|
4967
|
+
# group's maximum capacity and its desired capacity.
|
4968
|
+
#
|
4969
|
+
# If a value for `MaxGroupPreparedCapacity` is not specified, Amazon EC2
|
4970
|
+
# Auto Scaling launches and maintains the difference between the
|
4971
|
+
# group's maximum capacity and its desired capacity. If you specify a
|
4972
|
+
# value for `MaxGroupPreparedCapacity`, Amazon EC2 Auto Scaling uses the
|
4973
|
+
# difference between the `MaxGroupPreparedCapacity` and the desired
|
4974
|
+
# capacity instead.
|
4975
|
+
#
|
4976
|
+
# The size of the warm pool is dynamic. Only when
|
4977
|
+
# `MaxGroupPreparedCapacity` and `MinSize` are set to the same value
|
4978
|
+
# does the warm pool have an absolute size.
|
4979
|
+
#
|
4980
|
+
# If the desired capacity of the Auto Scaling group is higher than the
|
4981
|
+
# `MaxGroupPreparedCapacity`, the capacity of the warm pool is 0, unless
|
4982
|
+
# you specify a value for `MinSize`. To remove a value that you
|
4983
|
+
# previously set, include the property but specify -1 for the value.
|
4984
|
+
#
|
4985
|
+
# @option params [Integer] :min_size
|
4986
|
+
# Specifies the minimum number of instances to maintain in the warm
|
4987
|
+
# pool. This helps you to ensure that there is always a certain number
|
4988
|
+
# of warmed instances available to handle traffic spikes. Defaults to 0
|
4989
|
+
# if not specified.
|
4990
|
+
#
|
4991
|
+
# @option params [String] :pool_state
|
4992
|
+
# Sets the instance state to transition to after the lifecycle actions
|
4993
|
+
# are complete. Default is `Stopped`.
|
4994
|
+
#
|
4995
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
4996
|
+
#
|
4997
|
+
#
|
4998
|
+
# @example Example: To add a warm pool to an Auto Scaling group
|
4999
|
+
#
|
5000
|
+
# # This example adds a warm pool to the specified Auto Scaling group.
|
5001
|
+
#
|
5002
|
+
# resp = client.put_warm_pool({
|
5003
|
+
# auto_scaling_group_name: "my-auto-scaling-group",
|
5004
|
+
# min_size: 30,
|
5005
|
+
# pool_state: "Stopped",
|
5006
|
+
# })
|
5007
|
+
#
|
5008
|
+
# @example Request syntax with placeholder values
|
5009
|
+
#
|
5010
|
+
# resp = client.put_warm_pool({
|
5011
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
5012
|
+
# max_group_prepared_capacity: 1,
|
5013
|
+
# min_size: 1,
|
5014
|
+
# pool_state: "Stopped", # accepts Stopped, Running
|
5015
|
+
# })
|
5016
|
+
#
|
5017
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutWarmPool AWS API Documentation
|
5018
|
+
#
|
5019
|
+
# @overload put_warm_pool(params = {})
|
5020
|
+
# @param [Hash] params ({})
|
5021
|
+
def put_warm_pool(params = {}, options = {})
|
5022
|
+
req = build_request(:put_warm_pool, params)
|
5023
|
+
req.send_request(options)
|
5024
|
+
end
|
5025
|
+
|
4530
5026
|
# Records a heartbeat for the lifecycle action associated with the
|
4531
5027
|
# specified token or instance. This extends the timeout by the length of
|
4532
5028
|
# time defined using the PutLifecycleHook API call.
|
@@ -4552,12 +5048,12 @@ module Aws::AutoScaling
|
|
4552
5048
|
# 5. If you finish before the timeout period ends, complete the
|
4553
5049
|
# lifecycle action.
|
4554
5050
|
#
|
4555
|
-
# For more information, see [Auto Scaling lifecycle][1]
|
4556
|
-
# EC2 Auto Scaling User Guide*.
|
5051
|
+
# For more information, see [Amazon EC2 Auto Scaling lifecycle hooks][1]
|
5052
|
+
# in the *Amazon EC2 Auto Scaling User Guide*.
|
4557
5053
|
#
|
4558
5054
|
#
|
4559
5055
|
#
|
4560
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/
|
5056
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html
|
4561
5057
|
#
|
4562
5058
|
# @option params [required, String] :lifecycle_hook_name
|
4563
5059
|
# The name of the lifecycle hook.
|
@@ -4792,6 +5288,7 @@ module Aws::AutoScaling
|
|
4792
5288
|
end
|
4793
5289
|
|
4794
5290
|
# Updates the instance protection settings of the specified instances.
|
5291
|
+
# This operation cannot be called on instances in a warm pool.
|
4795
5292
|
#
|
4796
5293
|
# For more information about preventing instances that are part of an
|
4797
5294
|
# Auto Scaling group from terminating on scale in, see [Instance
|
@@ -4859,19 +5356,20 @@ module Aws::AutoScaling
|
|
4859
5356
|
end
|
4860
5357
|
|
4861
5358
|
# Starts a new instance refresh operation, which triggers a rolling
|
4862
|
-
# replacement of
|
4863
|
-
#
|
5359
|
+
# replacement of previously launched instances in the Auto Scaling group
|
5360
|
+
# with a new group of instances.
|
5361
|
+
#
|
5362
|
+
# This operation is part of the [instance refresh feature][1] in Amazon
|
5363
|
+
# EC2 Auto Scaling, which helps you update instances in your Auto
|
5364
|
+
# Scaling group after you make configuration changes.
|
4864
5365
|
#
|
4865
|
-
# If
|
5366
|
+
# If the call succeeds, it creates a new instance refresh request with a
|
4866
5367
|
# unique ID that you can use to track its progress. To query its status,
|
4867
5368
|
# call the DescribeInstanceRefreshes API. To describe the instance
|
4868
5369
|
# refreshes that have already run, call the DescribeInstanceRefreshes
|
4869
5370
|
# API. To cancel an instance refresh operation in progress, use the
|
4870
5371
|
# CancelInstanceRefresh API.
|
4871
5372
|
#
|
4872
|
-
# For more information, see [Replacing Auto Scaling Instances Based on
|
4873
|
-
# an Instance Refresh][1].
|
4874
|
-
#
|
4875
5373
|
#
|
4876
5374
|
#
|
4877
5375
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html
|
@@ -4935,6 +5433,8 @@ module Aws::AutoScaling
|
|
4935
5433
|
# preferences: {
|
4936
5434
|
# min_healthy_percentage: 1,
|
4937
5435
|
# instance_warmup: 1,
|
5436
|
+
# checkpoint_percentages: [1],
|
5437
|
+
# checkpoint_delay: 1,
|
4938
5438
|
# },
|
4939
5439
|
# })
|
4940
5440
|
#
|
@@ -5023,7 +5523,8 @@ module Aws::AutoScaling
|
|
5023
5523
|
end
|
5024
5524
|
|
5025
5525
|
# Terminates the specified instance and optionally adjusts the desired
|
5026
|
-
# group size.
|
5526
|
+
# group size. This operation cannot be called on instances in a warm
|
5527
|
+
# pool.
|
5027
5528
|
#
|
5028
5529
|
# This call simply makes a termination request. The instance is not
|
5029
5530
|
# terminated immediately. When an instance is terminated, the instance
|
@@ -5211,7 +5712,7 @@ module Aws::AutoScaling
|
|
5211
5712
|
#
|
5212
5713
|
# @option params [String] :health_check_type
|
5213
5714
|
# The service to use for the health checks. The valid values are `EC2`
|
5214
|
-
# and `ELB`. If you configure an Auto Scaling group to use ELB health
|
5715
|
+
# and `ELB`. If you configure an Auto Scaling group to use `ELB` health
|
5215
5716
|
# checks, it considers the instance unhealthy if it fails either the EC2
|
5216
5717
|
# status checks or the load balancer health checks.
|
5217
5718
|
#
|
@@ -5270,9 +5771,9 @@ module Aws::AutoScaling
|
|
5270
5771
|
#
|
5271
5772
|
# @option params [String] :service_linked_role_arn
|
5272
5773
|
# The Amazon Resource Name (ARN) of the service-linked role that the
|
5273
|
-
# Auto Scaling group uses to call other
|
5274
|
-
# more information, see [Service-linked roles][1] in the
|
5275
|
-
# Auto Scaling User Guide*.
|
5774
|
+
# Auto Scaling group uses to call other Amazon Web Services on your
|
5775
|
+
# behalf. For more information, see [Service-linked roles][1] in the
|
5776
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
5276
5777
|
#
|
5277
5778
|
#
|
5278
5779
|
#
|
@@ -5406,7 +5907,7 @@ module Aws::AutoScaling
|
|
5406
5907
|
params: params,
|
5407
5908
|
config: config)
|
5408
5909
|
context[:gem_name] = 'aws-sdk-autoscaling'
|
5409
|
-
context[:gem_version] = '1.
|
5910
|
+
context[:gem_version] = '1.63.0'
|
5410
5911
|
Seahorse::Client::Request.new(handlers, context)
|
5411
5912
|
end
|
5412
5913
|
|