aws-sdk-autoscaling 1.69.0 → 1.73.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 +157 -5
- data/lib/aws-sdk-autoscaling/client.rb +410 -20
- data/lib/aws-sdk-autoscaling/client_api.rb +143 -0
- data/lib/aws-sdk-autoscaling/resource.rb +68 -14
- data/lib/aws-sdk-autoscaling/types.rb +1702 -154
- 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: ea5c6e471f9b2b1e7e8654d91f691dbd20060f347e85f184a3c8c5f18de43a0e
|
4
|
+
data.tar.gz: 643c5741c7d570b3ede7c7e60ce380a6e313aaee5f1b19103d73b15ce0e52307
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40267e4ee600aea5377dfef40b6ba09dca72fae611c533d286ee77cc9c7cbcc23d74f6e460d48caad92b0d7adf4e3e49b14898c4f3fb32f82405896b1870f38f
|
7
|
+
data.tar.gz: d7b2e98718c3915cbdaf049b53765a4d20b0f9bef74113809a993af12832010c1c2def5296f06c8fb1e1a237eae0ec5b72539253263560630b3a8af862098bf9
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.73.0 (2021-11-24)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* 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.
|
8
|
+
|
9
|
+
1.72.0 (2021-11-04)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.71.0 (2021-10-27)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* 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.
|
18
|
+
|
19
|
+
1.70.0 (2021-10-18)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
23
|
+
|
4
24
|
1.69.0 (2021-10-14)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.73.0
|
@@ -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
|
@@ -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,11 +1188,9 @@ 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
|
#
|
@@ -1173,6 +1310,21 @@ module Aws::AutoScaling
|
|
1173
1310
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.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)
|