aws-sdk-autoscaling 1.70.0 → 1.74.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 +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-autoscaling/auto_scaling_group.rb +170 -18
- data/lib/aws-sdk-autoscaling/client.rb +458 -65
- data/lib/aws-sdk-autoscaling/client_api.rb +143 -0
- data/lib/aws-sdk-autoscaling/resource.rb +76 -23
- data/lib/aws-sdk-autoscaling/types.rb +1748 -212
- data/lib/aws-sdk-autoscaling.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 492b595b0e3a3c515f8efb34e5576aa0a2d004a67d14ccd84f5ed6cb95e439fb
|
4
|
+
data.tar.gz: d1b4d04f77cd08c3aae04afd6933ed6c8feec98873ef9d70a263cfebadc3b70c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ea16d1b766027175bdd25877c185696707a435dee87a51dd2b61ec3aaf5579f27e10bb2020bce070256a57cb7ffdc7b4c15002427ad05dd669c7826a053831b
|
7
|
+
data.tar.gz: 56d984d38027e14654cde2f66ba7289f8c902850b82e31e8a4182bc85ce3401024ee81a2f724b1c9c204b14fba26dc6b611f4c2ea8241e5c0ce6e3c4f6dc00e3
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.74.0 (2021-11-26)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Documentation updates for Amazon EC2 Auto Scaling.
|
8
|
+
|
9
|
+
1.73.0 (2021-11-24)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Customers can now configure predictive scaling policies to proactively scale EC2 Auto Scaling groups based on any CloudWatch metrics that more accurately represent the load on the group than the four predefined metrics. They can also use math expressions to further customize the metrics.
|
13
|
+
|
14
|
+
1.72.0 (2021-11-04)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
19
|
+
1.71.0 (2021-10-27)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - This release adds support for attribute-based instance type selection, a new EC2 Auto Scaling feature that lets customers express their instance requirements as a set of attributes, such as vCPU, memory, and storage.
|
23
|
+
|
4
24
|
1.70.0 (2021-10-18)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.74.0
|
@@ -120,7 +120,7 @@ module Aws::AutoScaling
|
|
120
120
|
|
121
121
|
# The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
|
122
122
|
# before checking the health status of an EC2 instance that has come
|
123
|
-
# into service.
|
123
|
+
# into service and marking it unhealthy due to a failed health check.
|
124
124
|
# @return [Integer]
|
125
125
|
def health_check_grace_period
|
126
126
|
data[:health_check_grace_period]
|
@@ -218,6 +218,25 @@ module Aws::AutoScaling
|
|
218
218
|
data[:context]
|
219
219
|
end
|
220
220
|
|
221
|
+
# The unit of measurement for the value specified for desired capacity.
|
222
|
+
# Amazon EC2 Auto Scaling supports `DesiredCapacityType` for
|
223
|
+
# attribute-based instance type selection only. For more information,
|
224
|
+
# see [Creating an Auto Scaling group using attribute-based instance
|
225
|
+
# type selection][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
226
|
+
#
|
227
|
+
# By default, Amazon EC2 Auto Scaling specifies `units`, which
|
228
|
+
# translates into number of instances.
|
229
|
+
#
|
230
|
+
# Valid values: `units` \| `vcpu` \| `memory-mib`
|
231
|
+
#
|
232
|
+
#
|
233
|
+
#
|
234
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html
|
235
|
+
# @return [String]
|
236
|
+
def desired_capacity_type
|
237
|
+
data[:desired_capacity_type]
|
238
|
+
end
|
239
|
+
|
221
240
|
# @!endgroup
|
222
241
|
|
223
242
|
# @return [Client]
|
@@ -657,6 +676,78 @@ module Aws::AutoScaling
|
|
657
676
|
# predefined_metric_type: "ASGTotalCPUUtilization", # required, accepts ASGTotalCPUUtilization, ASGTotalNetworkIn, ASGTotalNetworkOut, ALBTargetGroupRequestCount
|
658
677
|
# resource_label: "XmlStringMaxLen1023",
|
659
678
|
# },
|
679
|
+
# customized_scaling_metric_specification: {
|
680
|
+
# metric_data_queries: [ # required
|
681
|
+
# {
|
682
|
+
# id: "XmlStringMaxLen255", # required
|
683
|
+
# expression: "XmlStringMaxLen1023",
|
684
|
+
# metric_stat: {
|
685
|
+
# metric: { # required
|
686
|
+
# namespace: "MetricNamespace", # required
|
687
|
+
# metric_name: "MetricName", # required
|
688
|
+
# dimensions: [
|
689
|
+
# {
|
690
|
+
# name: "MetricDimensionName", # required
|
691
|
+
# value: "MetricDimensionValue", # required
|
692
|
+
# },
|
693
|
+
# ],
|
694
|
+
# },
|
695
|
+
# stat: "XmlStringMetricStat", # required
|
696
|
+
# unit: "MetricUnit",
|
697
|
+
# },
|
698
|
+
# label: "XmlStringMetricLabel",
|
699
|
+
# return_data: false,
|
700
|
+
# },
|
701
|
+
# ],
|
702
|
+
# },
|
703
|
+
# customized_load_metric_specification: {
|
704
|
+
# metric_data_queries: [ # required
|
705
|
+
# {
|
706
|
+
# id: "XmlStringMaxLen255", # required
|
707
|
+
# expression: "XmlStringMaxLen1023",
|
708
|
+
# metric_stat: {
|
709
|
+
# metric: { # required
|
710
|
+
# namespace: "MetricNamespace", # required
|
711
|
+
# metric_name: "MetricName", # required
|
712
|
+
# dimensions: [
|
713
|
+
# {
|
714
|
+
# name: "MetricDimensionName", # required
|
715
|
+
# value: "MetricDimensionValue", # required
|
716
|
+
# },
|
717
|
+
# ],
|
718
|
+
# },
|
719
|
+
# stat: "XmlStringMetricStat", # required
|
720
|
+
# unit: "MetricUnit",
|
721
|
+
# },
|
722
|
+
# label: "XmlStringMetricLabel",
|
723
|
+
# return_data: false,
|
724
|
+
# },
|
725
|
+
# ],
|
726
|
+
# },
|
727
|
+
# customized_capacity_metric_specification: {
|
728
|
+
# metric_data_queries: [ # required
|
729
|
+
# {
|
730
|
+
# id: "XmlStringMaxLen255", # required
|
731
|
+
# expression: "XmlStringMaxLen1023",
|
732
|
+
# metric_stat: {
|
733
|
+
# metric: { # required
|
734
|
+
# namespace: "MetricNamespace", # required
|
735
|
+
# metric_name: "MetricName", # required
|
736
|
+
# dimensions: [
|
737
|
+
# {
|
738
|
+
# name: "MetricDimensionName", # required
|
739
|
+
# value: "MetricDimensionValue", # required
|
740
|
+
# },
|
741
|
+
# ],
|
742
|
+
# },
|
743
|
+
# stat: "XmlStringMetricStat", # required
|
744
|
+
# unit: "MetricUnit",
|
745
|
+
# },
|
746
|
+
# label: "XmlStringMetricLabel",
|
747
|
+
# return_data: false,
|
748
|
+
# },
|
749
|
+
# ],
|
750
|
+
# },
|
660
751
|
# },
|
661
752
|
# ],
|
662
753
|
# mode: "ForecastAndScale", # accepts ForecastAndScale, ForecastOnly
|
@@ -757,7 +848,7 @@ module Aws::AutoScaling
|
|
757
848
|
# `StepScaling`.
|
758
849
|
# @option options [Types::TargetTrackingConfiguration] :target_tracking_configuration
|
759
850
|
# A target tracking scaling policy. Provides support for predefined or
|
760
|
-
#
|
851
|
+
# custom metrics.
|
761
852
|
#
|
762
853
|
# The following predefined metrics are available:
|
763
854
|
#
|
@@ -791,10 +882,10 @@ module Aws::AutoScaling
|
|
791
882
|
#
|
792
883
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enable-disable-scaling-policy.html
|
793
884
|
# @option options [Types::PredictiveScalingConfiguration] :predictive_scaling_configuration
|
794
|
-
# A predictive scaling policy. Provides support for
|
795
|
-
# metrics.
|
885
|
+
# A predictive scaling policy. Provides support for predefined and
|
886
|
+
# custom metrics.
|
796
887
|
#
|
797
|
-
#
|
888
|
+
# Predefined metrics include CPU utilization, network in/out, and the
|
798
889
|
# Application Load Balancer request count.
|
799
890
|
#
|
800
891
|
# For more information, see [PredictiveScalingConfiguration][1] in the
|
@@ -1011,6 +1102,53 @@ module Aws::AutoScaling
|
|
1011
1102
|
# launch_template_name: "LaunchTemplateName",
|
1012
1103
|
# version: "XmlStringMaxLen255",
|
1013
1104
|
# },
|
1105
|
+
# instance_requirements: {
|
1106
|
+
# v_cpu_count: { # required
|
1107
|
+
# min: 1, # required
|
1108
|
+
# max: 1,
|
1109
|
+
# },
|
1110
|
+
# memory_mi_b: { # required
|
1111
|
+
# min: 1, # required
|
1112
|
+
# max: 1,
|
1113
|
+
# },
|
1114
|
+
# cpu_manufacturers: ["intel"], # accepts intel, amd, amazon-web-services
|
1115
|
+
# memory_gi_b_per_v_cpu: {
|
1116
|
+
# min: 1.0,
|
1117
|
+
# max: 1.0,
|
1118
|
+
# },
|
1119
|
+
# excluded_instance_types: ["ExcludedInstance"],
|
1120
|
+
# instance_generations: ["current"], # accepts current, previous
|
1121
|
+
# spot_max_price_percentage_over_lowest_price: 1,
|
1122
|
+
# on_demand_max_price_percentage_over_lowest_price: 1,
|
1123
|
+
# bare_metal: "included", # accepts included, excluded, required
|
1124
|
+
# burstable_performance: "included", # accepts included, excluded, required
|
1125
|
+
# require_hibernate_support: false,
|
1126
|
+
# network_interface_count: {
|
1127
|
+
# min: 1,
|
1128
|
+
# max: 1,
|
1129
|
+
# },
|
1130
|
+
# local_storage: "included", # accepts included, excluded, required
|
1131
|
+
# local_storage_types: ["hdd"], # accepts hdd, ssd
|
1132
|
+
# total_local_storage_gb: {
|
1133
|
+
# min: 1.0,
|
1134
|
+
# max: 1.0,
|
1135
|
+
# },
|
1136
|
+
# baseline_ebs_bandwidth_mbps: {
|
1137
|
+
# min: 1,
|
1138
|
+
# max: 1,
|
1139
|
+
# },
|
1140
|
+
# accelerator_types: ["gpu"], # accepts gpu, fpga, inference
|
1141
|
+
# accelerator_count: {
|
1142
|
+
# min: 1,
|
1143
|
+
# max: 1,
|
1144
|
+
# },
|
1145
|
+
# accelerator_manufacturers: ["nvidia"], # accepts nvidia, amd, amazon-web-services, xilinx
|
1146
|
+
# accelerator_names: ["a100"], # accepts a100, v100, k80, t4, m60, radeon-pro-v520, vu9p
|
1147
|
+
# accelerator_total_memory_mi_b: {
|
1148
|
+
# min: 1,
|
1149
|
+
# max: 1,
|
1150
|
+
# },
|
1151
|
+
# },
|
1014
1152
|
# },
|
1015
1153
|
# ],
|
1016
1154
|
# },
|
@@ -1038,6 +1176,7 @@ module Aws::AutoScaling
|
|
1038
1176
|
# max_instance_lifetime: 1,
|
1039
1177
|
# capacity_rebalance: false,
|
1040
1178
|
# context: "Context",
|
1179
|
+
# desired_capacity_type: "XmlStringMaxLen255",
|
1041
1180
|
# })
|
1042
1181
|
# @param [Hash] options ({})
|
1043
1182
|
# @option options [String] :launch_configuration_name
|
@@ -1049,15 +1188,13 @@ module Aws::AutoScaling
|
|
1049
1188
|
# specify `LaunchTemplate` in your update request, you can't specify
|
1050
1189
|
# `LaunchConfigurationName` or `MixedInstancesPolicy`.
|
1051
1190
|
# @option options [Types::MixedInstancesPolicy] :mixed_instances_policy
|
1052
|
-
# An embedded object that specifies a mixed instances policy.
|
1053
|
-
#
|
1054
|
-
#
|
1055
|
-
# groups with multiple instance types and purchase options][1] in the
|
1056
|
-
# *Amazon EC2 Auto Scaling User Guide*.
|
1191
|
+
# An embedded object that specifies a mixed instances policy. For more
|
1192
|
+
# information, see [Auto Scaling groups with multiple instance types and
|
1193
|
+
# purchase options][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1057
1194
|
#
|
1058
1195
|
#
|
1059
1196
|
#
|
1060
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/
|
1197
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html
|
1061
1198
|
# @option options [Integer] :min_size
|
1062
1199
|
# The minimum size of the Auto Scaling group.
|
1063
1200
|
# @option options [Integer] :max_size
|
@@ -1098,9 +1235,9 @@ module Aws::AutoScaling
|
|
1098
1235
|
# @option options [Integer] :health_check_grace_period
|
1099
1236
|
# The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
|
1100
1237
|
# before checking the health status of an EC2 instance that has come
|
1101
|
-
# into service
|
1102
|
-
#
|
1103
|
-
# Guide*.
|
1238
|
+
# into service and marking it unhealthy due to a failed health check.
|
1239
|
+
# The default value is `0`. For more information, see [Health check
|
1240
|
+
# grace period][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1104
1241
|
#
|
1105
1242
|
# Conditional: Required if you are adding an `ELB` health check.
|
1106
1243
|
#
|
@@ -1137,12 +1274,12 @@ module Aws::AutoScaling
|
|
1137
1274
|
# Indicates whether newly launched instances are protected from
|
1138
1275
|
# termination by Amazon EC2 Auto Scaling when scaling in. For more
|
1139
1276
|
# information about preventing instances from terminating on scale in,
|
1140
|
-
# see [
|
1141
|
-
# User Guide*.
|
1277
|
+
# see [Using instance scale-in protection][1] in the *Amazon EC2 Auto
|
1278
|
+
# Scaling User Guide*.
|
1142
1279
|
#
|
1143
1280
|
#
|
1144
1281
|
#
|
1145
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/
|
1282
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-protection.html
|
1146
1283
|
# @option options [String] :service_linked_role_arn
|
1147
1284
|
# The Amazon Resource Name (ARN) of the service-linked role that the
|
1148
1285
|
# Auto Scaling group uses to call other Amazon Web Services on your
|
@@ -1170,9 +1307,24 @@ module Aws::AutoScaling
|
|
1170
1307
|
#
|
1171
1308
|
#
|
1172
1309
|
#
|
1173
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-
|
1310
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-capacity-rebalancing.html
|
1174
1311
|
# @option options [String] :context
|
1175
1312
|
# Reserved.
|
1313
|
+
# @option options [String] :desired_capacity_type
|
1314
|
+
# The unit of measurement for the value specified for desired capacity.
|
1315
|
+
# Amazon EC2 Auto Scaling supports `DesiredCapacityType` for
|
1316
|
+
# attribute-based instance type selection only. For more information,
|
1317
|
+
# see [Creating an Auto Scaling group using attribute-based instance
|
1318
|
+
# type selection][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1319
|
+
#
|
1320
|
+
# By default, Amazon EC2 Auto Scaling specifies `units`, which
|
1321
|
+
# translates into number of instances.
|
1322
|
+
#
|
1323
|
+
# Valid values: `units` \| `vcpu` \| `memory-mib`
|
1324
|
+
#
|
1325
|
+
#
|
1326
|
+
#
|
1327
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html
|
1176
1328
|
# @return [AutoScalingGroup]
|
1177
1329
|
def update(options = {})
|
1178
1330
|
options = options.merge(auto_scaling_group_name: @name)
|