aws-sdk-autoscaling 1.50.0 → 1.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-autoscaling.rb +1 -1
- data/lib/aws-sdk-autoscaling/activity.rb +13 -0
- data/lib/aws-sdk-autoscaling/auto_scaling_group.rb +6 -2
- data/lib/aws-sdk-autoscaling/client.rb +126 -79
- data/lib/aws-sdk-autoscaling/client_api.rb +53 -48
- data/lib/aws-sdk-autoscaling/instance.rb +12 -1
- data/lib/aws-sdk-autoscaling/launch_configuration.rb +8 -4
- data/lib/aws-sdk-autoscaling/lifecycle_hook.rb +1 -1
- data/lib/aws-sdk-autoscaling/resource.rb +28 -24
- data/lib/aws-sdk-autoscaling/scaling_policy.rb +2 -2
- data/lib/aws-sdk-autoscaling/scheduled_action.rb +1 -1
- data/lib/aws-sdk-autoscaling/types.rb +140 -94
- metadata +4 -4
@@ -281,7 +281,7 @@ module Aws::AutoScaling
|
|
281
281
|
# @example Request syntax with placeholder values
|
282
282
|
#
|
283
283
|
# scaling_policy.delete({
|
284
|
-
# auto_scaling_group_name: "
|
284
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
285
285
|
# })
|
286
286
|
# @param [Hash] options ({})
|
287
287
|
# @option options [String] :auto_scaling_group_name
|
@@ -296,7 +296,7 @@ module Aws::AutoScaling
|
|
296
296
|
# @example Request syntax with placeholder values
|
297
297
|
#
|
298
298
|
# scaling_policy.execute({
|
299
|
-
# auto_scaling_group_name: "
|
299
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
300
300
|
# honor_cooldown: false,
|
301
301
|
# metric_value: 1.0,
|
302
302
|
# breach_threshold: 1.0,
|
@@ -233,7 +233,7 @@ module Aws::AutoScaling
|
|
233
233
|
# @example Request syntax with placeholder values
|
234
234
|
#
|
235
235
|
# scheduled_action.delete({
|
236
|
-
# auto_scaling_group_name: "
|
236
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
237
237
|
# })
|
238
238
|
# @param [Hash] options ({})
|
239
239
|
# @option options [required, String] :auto_scaling_group_name
|
@@ -91,6 +91,15 @@ module Aws::AutoScaling
|
|
91
91
|
# The details about the activity.
|
92
92
|
# @return [String]
|
93
93
|
#
|
94
|
+
# @!attribute [rw] auto_scaling_group_state
|
95
|
+
# The state of the Auto Scaling group, which is either `InService` or
|
96
|
+
# `Deleted`.
|
97
|
+
# @return [String]
|
98
|
+
#
|
99
|
+
# @!attribute [rw] auto_scaling_group_arn
|
100
|
+
# The Amazon Resource Name (ARN) of the Auto Scaling group.
|
101
|
+
# @return [String]
|
102
|
+
#
|
94
103
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/Activity AWS API Documentation
|
95
104
|
#
|
96
105
|
class Activity < Struct.new(
|
@@ -103,7 +112,9 @@ module Aws::AutoScaling
|
|
103
112
|
:status_code,
|
104
113
|
:status_message,
|
105
114
|
:progress,
|
106
|
-
:details
|
115
|
+
:details,
|
116
|
+
:auto_scaling_group_state,
|
117
|
+
:auto_scaling_group_arn)
|
107
118
|
SENSITIVE = []
|
108
119
|
include Aws::Structure
|
109
120
|
end
|
@@ -173,7 +184,7 @@ module Aws::AutoScaling
|
|
173
184
|
#
|
174
185
|
# {
|
175
186
|
# instance_ids: ["XmlStringMaxLen19"],
|
176
|
-
# auto_scaling_group_name: "
|
187
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
177
188
|
# }
|
178
189
|
#
|
179
190
|
# @!attribute [rw] instance_ids
|
@@ -201,7 +212,7 @@ module Aws::AutoScaling
|
|
201
212
|
# data as a hash:
|
202
213
|
#
|
203
214
|
# {
|
204
|
-
# auto_scaling_group_name: "
|
215
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
205
216
|
# target_group_arns: ["XmlStringMaxLen511"], # required
|
206
217
|
# }
|
207
218
|
#
|
@@ -211,7 +222,13 @@ module Aws::AutoScaling
|
|
211
222
|
#
|
212
223
|
# @!attribute [rw] target_group_arns
|
213
224
|
# The Amazon Resource Names (ARN) of the target groups. You can
|
214
|
-
# specify up to 10 target groups.
|
225
|
+
# specify up to 10 target groups. To get the ARN of a target group,
|
226
|
+
# use the Elastic Load Balancing [DescribeTargetGroups][1] API
|
227
|
+
# operation.
|
228
|
+
#
|
229
|
+
#
|
230
|
+
#
|
231
|
+
# [1]: https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeTargetGroups.html
|
215
232
|
# @return [Array<String>]
|
216
233
|
#
|
217
234
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancerTargetGroupsType AWS API Documentation
|
@@ -231,7 +248,7 @@ module Aws::AutoScaling
|
|
231
248
|
# data as a hash:
|
232
249
|
#
|
233
250
|
# {
|
234
|
-
# auto_scaling_group_name: "
|
251
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
235
252
|
# load_balancer_names: ["XmlStringMaxLen255"], # required
|
236
253
|
# }
|
237
254
|
#
|
@@ -414,7 +431,7 @@ module Aws::AutoScaling
|
|
414
431
|
# data as a hash:
|
415
432
|
#
|
416
433
|
# {
|
417
|
-
# auto_scaling_group_names: ["
|
434
|
+
# auto_scaling_group_names: ["XmlStringMaxLen255"],
|
418
435
|
# next_token: "XmlString",
|
419
436
|
# max_records: 1,
|
420
437
|
# }
|
@@ -487,7 +504,18 @@ module Aws::AutoScaling
|
|
487
504
|
# @return [String]
|
488
505
|
#
|
489
506
|
# @!attribute [rw] lifecycle_state
|
490
|
-
# The lifecycle state for the instance.
|
507
|
+
# The lifecycle state for the instance. The `Quarantined` state is not
|
508
|
+
# used. For information about lifecycle states, see [Instance
|
509
|
+
# lifecycle][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
510
|
+
#
|
511
|
+
# Valid Values: `Pending` \| `Pending:Wait` \| `Pending:Proceed` \|
|
512
|
+
# `Quarantined` \| `InService` \| `Terminating` \| `Terminating:Wait`
|
513
|
+
# \| `Terminating:Proceed` \| `Terminated` \| `Detaching` \|
|
514
|
+
# `Detached` \| `EnteringStandby` \| `Standby`
|
515
|
+
#
|
516
|
+
#
|
517
|
+
#
|
518
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/AutoScalingGroupLifecycle.html
|
491
519
|
# @return [String]
|
492
520
|
#
|
493
521
|
# @!attribute [rw] health_status
|
@@ -574,8 +602,8 @@ module Aws::AutoScaling
|
|
574
602
|
# data as a hash:
|
575
603
|
#
|
576
604
|
# {
|
577
|
-
# auto_scaling_group_name: "
|
578
|
-
# scheduled_action_names: ["
|
605
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
606
|
+
# scheduled_action_names: ["XmlStringMaxLen255"], # required
|
579
607
|
# }
|
580
608
|
#
|
581
609
|
# @!attribute [rw] auto_scaling_group_name
|
@@ -613,7 +641,7 @@ module Aws::AutoScaling
|
|
613
641
|
# data as a hash:
|
614
642
|
#
|
615
643
|
# {
|
616
|
-
# auto_scaling_group_name: "
|
644
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
617
645
|
# scheduled_update_group_actions: [ # required
|
618
646
|
# {
|
619
647
|
# scheduled_action_name: "XmlStringMaxLen255", # required
|
@@ -795,7 +823,7 @@ module Aws::AutoScaling
|
|
795
823
|
#
|
796
824
|
# {
|
797
825
|
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
798
|
-
# launch_configuration_name: "
|
826
|
+
# launch_configuration_name: "XmlStringMaxLen255",
|
799
827
|
# launch_template: {
|
800
828
|
# launch_template_id: "XmlStringMaxLen255",
|
801
829
|
# launch_template_name: "LaunchTemplateName",
|
@@ -852,7 +880,7 @@ module Aws::AutoScaling
|
|
852
880
|
# heartbeat_timeout: 1,
|
853
881
|
# default_result: "LifecycleActionResult",
|
854
882
|
# notification_target_arn: "NotificationTargetResourceName",
|
855
|
-
# role_arn: "
|
883
|
+
# role_arn: "XmlStringMaxLen255",
|
856
884
|
# },
|
857
885
|
# ],
|
858
886
|
# tags: [
|
@@ -882,8 +910,8 @@ module Aws::AutoScaling
|
|
882
910
|
# @return [String]
|
883
911
|
#
|
884
912
|
# @!attribute [rw] launch_template
|
885
|
-
# Parameters used to specify the
|
886
|
-
#
|
913
|
+
# Parameters used to specify the launch template and version to use to
|
914
|
+
# launch instances.
|
887
915
|
#
|
888
916
|
# Conditional: You must specify either a launch template
|
889
917
|
# (`LaunchTemplate` or `MixedInstancesPolicy`) or a launch
|
@@ -891,15 +919,14 @@ module Aws::AutoScaling
|
|
891
919
|
#
|
892
920
|
# <note markdown="1"> The launch template that is specified must be configured for use
|
893
921
|
# with an Auto Scaling group. For more information, see [Creating a
|
894
|
-
# launch template for an Auto Scaling group][
|
922
|
+
# launch template for an Auto Scaling group][1] in the *Amazon EC2
|
895
923
|
# Auto Scaling User Guide*.
|
896
924
|
#
|
897
925
|
# </note>
|
898
926
|
#
|
899
927
|
#
|
900
928
|
#
|
901
|
-
# [1]: https://docs.aws.amazon.com/
|
902
|
-
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html
|
929
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html
|
903
930
|
# @return [Types::LaunchTemplateSpecification]
|
904
931
|
#
|
905
932
|
# @!attribute [rw] mixed_instances_policy
|
@@ -918,10 +945,6 @@ module Aws::AutoScaling
|
|
918
945
|
# [Auto Scaling groups with multiple instance types and purchase
|
919
946
|
# options][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
920
947
|
#
|
921
|
-
# Conditional: You must specify either a launch template
|
922
|
-
# (`LaunchTemplate` or `MixedInstancesPolicy`) or a launch
|
923
|
-
# configuration (`LaunchConfigurationName` or `InstanceId`).
|
924
|
-
#
|
925
948
|
#
|
926
949
|
#
|
927
950
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
@@ -993,8 +1016,9 @@ module Aws::AutoScaling
|
|
993
1016
|
#
|
994
1017
|
# @!attribute [rw] load_balancer_names
|
995
1018
|
# A list of Classic Load Balancers associated with this Auto Scaling
|
996
|
-
# group. For Application Load Balancers
|
997
|
-
# specify `TargetGroupARNs`
|
1019
|
+
# group. For Application Load Balancers, Network Load Balancers, and
|
1020
|
+
# Gateway Load Balancers, specify the `TargetGroupARNs` property
|
1021
|
+
# instead.
|
998
1022
|
# @return [Array<String>]
|
999
1023
|
#
|
1000
1024
|
# @!attribute [rw] target_group_arns
|
@@ -1301,13 +1325,17 @@ module Aws::AutoScaling
|
|
1301
1325
|
# @return [Array<String>]
|
1302
1326
|
#
|
1303
1327
|
# @!attribute [rw] user_data
|
1304
|
-
# The
|
1305
|
-
#
|
1306
|
-
#
|
1328
|
+
# The user data to make available to the launched EC2 instances. For
|
1329
|
+
# more information, see [Instance metadata and user data][1] (Linux)
|
1330
|
+
# and [Instance metadata and user data][2] (Windows). If you are using
|
1331
|
+
# a command line tool, base64-encoding is performed for you, and you
|
1332
|
+
# can load the text from a file. Otherwise, you must provide
|
1333
|
+
# base64-encoded text. User data is limited to 16 KB.
|
1307
1334
|
#
|
1308
1335
|
#
|
1309
1336
|
#
|
1310
1337
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
|
1338
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html
|
1311
1339
|
# @return [String]
|
1312
1340
|
#
|
1313
1341
|
# @!attribute [rw] instance_id
|
@@ -1335,7 +1363,7 @@ module Aws::AutoScaling
|
|
1335
1363
|
#
|
1336
1364
|
# For information about available instance types, see [Available
|
1337
1365
|
# Instance Types][1] in the *Amazon EC2 User Guide for Linux
|
1338
|
-
# Instances
|
1366
|
+
# Instances*.
|
1339
1367
|
#
|
1340
1368
|
# If you do not specify `InstanceId`, you must specify `InstanceType`.
|
1341
1369
|
#
|
@@ -1475,7 +1503,7 @@ module Aws::AutoScaling
|
|
1475
1503
|
#
|
1476
1504
|
#
|
1477
1505
|
#
|
1478
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/
|
1506
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/auto-scaling-dedicated-instances.html
|
1479
1507
|
# @return [String]
|
1480
1508
|
#
|
1481
1509
|
# @!attribute [rw] metadata_options
|
@@ -1620,7 +1648,7 @@ module Aws::AutoScaling
|
|
1620
1648
|
# data as a hash:
|
1621
1649
|
#
|
1622
1650
|
# {
|
1623
|
-
# auto_scaling_group_name: "
|
1651
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1624
1652
|
# force_delete: false,
|
1625
1653
|
# }
|
1626
1654
|
#
|
@@ -1653,7 +1681,7 @@ module Aws::AutoScaling
|
|
1653
1681
|
#
|
1654
1682
|
# {
|
1655
1683
|
# lifecycle_hook_name: "AsciiStringMaxLen255", # required
|
1656
|
-
# auto_scaling_group_name: "
|
1684
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1657
1685
|
# }
|
1658
1686
|
#
|
1659
1687
|
# @!attribute [rw] lifecycle_hook_name
|
@@ -1677,8 +1705,8 @@ module Aws::AutoScaling
|
|
1677
1705
|
# data as a hash:
|
1678
1706
|
#
|
1679
1707
|
# {
|
1680
|
-
# auto_scaling_group_name: "
|
1681
|
-
# topic_arn: "
|
1708
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1709
|
+
# topic_arn: "XmlStringMaxLen255", # required
|
1682
1710
|
# }
|
1683
1711
|
#
|
1684
1712
|
# @!attribute [rw] auto_scaling_group_name
|
@@ -1703,7 +1731,7 @@ module Aws::AutoScaling
|
|
1703
1731
|
# data as a hash:
|
1704
1732
|
#
|
1705
1733
|
# {
|
1706
|
-
# auto_scaling_group_name: "
|
1734
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
1707
1735
|
# policy_name: "ResourceName", # required
|
1708
1736
|
# }
|
1709
1737
|
#
|
@@ -1728,8 +1756,8 @@ module Aws::AutoScaling
|
|
1728
1756
|
# data as a hash:
|
1729
1757
|
#
|
1730
1758
|
# {
|
1731
|
-
# auto_scaling_group_name: "
|
1732
|
-
# scheduled_action_name: "
|
1759
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1760
|
+
# scheduled_action_name: "XmlStringMaxLen255", # required
|
1733
1761
|
# }
|
1734
1762
|
#
|
1735
1763
|
# @!attribute [rw] auto_scaling_group_name
|
@@ -1953,7 +1981,7 @@ module Aws::AutoScaling
|
|
1953
1981
|
# data as a hash:
|
1954
1982
|
#
|
1955
1983
|
# {
|
1956
|
-
# auto_scaling_group_name: "
|
1984
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1957
1985
|
# lifecycle_hook_names: ["AsciiStringMaxLen255"],
|
1958
1986
|
# }
|
1959
1987
|
#
|
@@ -1979,7 +2007,7 @@ module Aws::AutoScaling
|
|
1979
2007
|
# data as a hash:
|
1980
2008
|
#
|
1981
2009
|
# {
|
1982
|
-
# auto_scaling_group_name: "
|
2010
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1983
2011
|
# next_token: "XmlString",
|
1984
2012
|
# max_records: 1,
|
1985
2013
|
# }
|
@@ -2033,7 +2061,7 @@ module Aws::AutoScaling
|
|
2033
2061
|
# data as a hash:
|
2034
2062
|
#
|
2035
2063
|
# {
|
2036
|
-
# auto_scaling_group_name: "
|
2064
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
2037
2065
|
# next_token: "XmlString",
|
2038
2066
|
# max_records: 1,
|
2039
2067
|
# }
|
@@ -2125,7 +2153,7 @@ module Aws::AutoScaling
|
|
2125
2153
|
# data as a hash:
|
2126
2154
|
#
|
2127
2155
|
# {
|
2128
|
-
# auto_scaling_group_names: ["
|
2156
|
+
# auto_scaling_group_names: ["XmlStringMaxLen255"],
|
2129
2157
|
# next_token: "XmlString",
|
2130
2158
|
# max_records: 1,
|
2131
2159
|
# }
|
@@ -2158,7 +2186,7 @@ module Aws::AutoScaling
|
|
2158
2186
|
# data as a hash:
|
2159
2187
|
#
|
2160
2188
|
# {
|
2161
|
-
# auto_scaling_group_name: "
|
2189
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
2162
2190
|
# policy_names: ["ResourceName"],
|
2163
2191
|
# policy_types: ["XmlStringMaxLen64"],
|
2164
2192
|
# next_token: "XmlString",
|
@@ -2208,7 +2236,8 @@ module Aws::AutoScaling
|
|
2208
2236
|
#
|
2209
2237
|
# {
|
2210
2238
|
# activity_ids: ["XmlString"],
|
2211
|
-
# auto_scaling_group_name: "
|
2239
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
2240
|
+
# include_deleted_groups: false,
|
2212
2241
|
# max_records: 1,
|
2213
2242
|
# next_token: "XmlString",
|
2214
2243
|
# }
|
@@ -2225,6 +2254,11 @@ module Aws::AutoScaling
|
|
2225
2254
|
# The name of the Auto Scaling group.
|
2226
2255
|
# @return [String]
|
2227
2256
|
#
|
2257
|
+
# @!attribute [rw] include_deleted_groups
|
2258
|
+
# Indicates whether to include scaling activity from deleted Auto
|
2259
|
+
# Scaling groups.
|
2260
|
+
# @return [Boolean]
|
2261
|
+
#
|
2228
2262
|
# @!attribute [rw] max_records
|
2229
2263
|
# The maximum number of items to return with this call. The default
|
2230
2264
|
# value is `100` and the maximum value is `100`.
|
@@ -2240,6 +2274,7 @@ module Aws::AutoScaling
|
|
2240
2274
|
class DescribeScalingActivitiesType < Struct.new(
|
2241
2275
|
:activity_ids,
|
2242
2276
|
:auto_scaling_group_name,
|
2277
|
+
:include_deleted_groups,
|
2243
2278
|
:max_records,
|
2244
2279
|
:next_token)
|
2245
2280
|
SENSITIVE = []
|
@@ -2250,8 +2285,8 @@ module Aws::AutoScaling
|
|
2250
2285
|
# data as a hash:
|
2251
2286
|
#
|
2252
2287
|
# {
|
2253
|
-
# auto_scaling_group_name: "
|
2254
|
-
# scheduled_action_names: ["
|
2288
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
2289
|
+
# scheduled_action_names: ["XmlStringMaxLen255"],
|
2255
2290
|
# start_time: Time.now,
|
2256
2291
|
# end_time: Time.now,
|
2257
2292
|
# next_token: "XmlString",
|
@@ -2375,7 +2410,7 @@ module Aws::AutoScaling
|
|
2375
2410
|
#
|
2376
2411
|
# {
|
2377
2412
|
# instance_ids: ["XmlStringMaxLen19"],
|
2378
|
-
# auto_scaling_group_name: "
|
2413
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
2379
2414
|
# should_decrement_desired_capacity: false, # required
|
2380
2415
|
# }
|
2381
2416
|
#
|
@@ -2410,7 +2445,7 @@ module Aws::AutoScaling
|
|
2410
2445
|
# data as a hash:
|
2411
2446
|
#
|
2412
2447
|
# {
|
2413
|
-
# auto_scaling_group_name: "
|
2448
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
2414
2449
|
# target_group_arns: ["XmlStringMaxLen511"], # required
|
2415
2450
|
# }
|
2416
2451
|
#
|
@@ -2440,7 +2475,7 @@ module Aws::AutoScaling
|
|
2440
2475
|
# data as a hash:
|
2441
2476
|
#
|
2442
2477
|
# {
|
2443
|
-
# auto_scaling_group_name: "
|
2478
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
2444
2479
|
# load_balancer_names: ["XmlStringMaxLen255"], # required
|
2445
2480
|
# }
|
2446
2481
|
#
|
@@ -2466,7 +2501,7 @@ module Aws::AutoScaling
|
|
2466
2501
|
# data as a hash:
|
2467
2502
|
#
|
2468
2503
|
# {
|
2469
|
-
# auto_scaling_group_name: "
|
2504
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
2470
2505
|
# metrics: ["XmlStringMaxLen255"],
|
2471
2506
|
# }
|
2472
2507
|
#
|
@@ -2639,7 +2674,7 @@ module Aws::AutoScaling
|
|
2639
2674
|
# data as a hash:
|
2640
2675
|
#
|
2641
2676
|
# {
|
2642
|
-
# auto_scaling_group_name: "
|
2677
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
2643
2678
|
# metrics: ["XmlStringMaxLen255"],
|
2644
2679
|
# granularity: "XmlStringMaxLen255", # required
|
2645
2680
|
# }
|
@@ -2761,7 +2796,7 @@ module Aws::AutoScaling
|
|
2761
2796
|
#
|
2762
2797
|
# {
|
2763
2798
|
# instance_ids: ["XmlStringMaxLen19"],
|
2764
|
-
# auto_scaling_group_name: "
|
2799
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
2765
2800
|
# should_decrement_desired_capacity: false, # required
|
2766
2801
|
# }
|
2767
2802
|
#
|
@@ -2792,7 +2827,7 @@ module Aws::AutoScaling
|
|
2792
2827
|
# data as a hash:
|
2793
2828
|
#
|
2794
2829
|
# {
|
2795
|
-
# auto_scaling_group_name: "
|
2830
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
2796
2831
|
# policy_name: "ResourceName", # required
|
2797
2832
|
# honor_cooldown: false,
|
2798
2833
|
# metric_value: 1.0,
|
@@ -2870,7 +2905,7 @@ module Aws::AutoScaling
|
|
2870
2905
|
#
|
2871
2906
|
# {
|
2872
2907
|
# instance_ids: ["XmlStringMaxLen19"],
|
2873
|
-
# auto_scaling_group_name: "
|
2908
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
2874
2909
|
# }
|
2875
2910
|
#
|
2876
2911
|
# @!attribute [rw] instance_ids
|
@@ -2967,7 +3002,12 @@ module Aws::AutoScaling
|
|
2967
3002
|
#
|
2968
3003
|
# @!attribute [rw] lifecycle_state
|
2969
3004
|
# A description of the current lifecycle state. The `Quarantined`
|
2970
|
-
# state is not used.
|
3005
|
+
# state is not used. For information about lifecycle states, see
|
3006
|
+
# [Instance lifecycle][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
3007
|
+
#
|
3008
|
+
#
|
3009
|
+
#
|
3010
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/AutoScalingGroupLifecycle.html
|
2971
3011
|
# @return [String]
|
2972
3012
|
#
|
2973
3013
|
# @!attribute [rw] health_status
|
@@ -3054,8 +3094,6 @@ module Aws::AutoScaling
|
|
3054
3094
|
# requests can travel.
|
3055
3095
|
#
|
3056
3096
|
# Default: 1
|
3057
|
-
#
|
3058
|
-
# Possible values: Integers from 1 to 64
|
3059
3097
|
# @return [Integer]
|
3060
3098
|
#
|
3061
3099
|
# @!attribute [rw] http_endpoint
|
@@ -3248,30 +3286,29 @@ module Aws::AutoScaling
|
|
3248
3286
|
#
|
3249
3287
|
# @!attribute [rw] spot_allocation_strategy
|
3250
3288
|
# Indicates how to allocate instances across Spot Instance pools. If
|
3251
|
-
# the allocation strategy is `
|
3289
|
+
# the allocation strategy is `capacity-optimized` (recommended), the
|
3290
|
+
# Auto Scaling group launches instances using Spot pools that are
|
3291
|
+
# optimally chosen based on the available Spot capacity. If the
|
3292
|
+
# allocation strategy is `lowest-price`, the Auto Scaling group
|
3252
3293
|
# launches instances using the Spot pools with the lowest price, and
|
3253
3294
|
# evenly allocates your instances across the number of Spot pools that
|
3254
|
-
# you specify.
|
3255
|
-
# Auto Scaling group launches instances using Spot pools that are
|
3256
|
-
# optimally chosen based on the available Spot capacity. Defaults to
|
3257
|
-
# `lowest-price` if not specified.
|
3295
|
+
# you specify. Defaults to `lowest-price` if not specified.
|
3258
3296
|
# @return [String]
|
3259
3297
|
#
|
3260
3298
|
# @!attribute [rw] spot_instance_pools
|
3261
3299
|
# The number of Spot Instance pools across which to allocate your Spot
|
3262
3300
|
# Instances. The Spot pools are determined from the different instance
|
3263
|
-
# types in the overrides.
|
3264
|
-
#
|
3265
|
-
#
|
3266
|
-
# Valid Range: Minimum value of 1. Maximum value of 20.
|
3301
|
+
# types in the overrides. Valid only when the Spot allocation strategy
|
3302
|
+
# is `lowest-price`. Value must be in the range of 1 to 20. Defaults
|
3303
|
+
# to 2 if not specified.
|
3267
3304
|
# @return [Integer]
|
3268
3305
|
#
|
3269
3306
|
# @!attribute [rw] spot_max_price
|
3270
3307
|
# The maximum price per unit hour that you are willing to pay for a
|
3271
|
-
# Spot Instance. If you leave the value
|
3272
|
-
#
|
3273
|
-
#
|
3274
|
-
#
|
3308
|
+
# Spot Instance. If you leave the value at its default (empty), Amazon
|
3309
|
+
# EC2 Auto Scaling uses the On-Demand price as the maximum Spot price.
|
3310
|
+
# To remove a value that you previously set, include the property but
|
3311
|
+
# specify an empty string ("") for the value.
|
3275
3312
|
# @return [String]
|
3276
3313
|
#
|
3277
3314
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/InstancesDistribution AWS API Documentation
|
@@ -3369,13 +3406,17 @@ module Aws::AutoScaling
|
|
3369
3406
|
# @return [Array<String>]
|
3370
3407
|
#
|
3371
3408
|
# @!attribute [rw] user_data
|
3372
|
-
# The
|
3373
|
-
#
|
3374
|
-
#
|
3409
|
+
# The user data to make available to the launched EC2 instances. For
|
3410
|
+
# more information, see [Instance metadata and user data][1] (Linux)
|
3411
|
+
# and [Instance metadata and user data][2] (Windows). If you are using
|
3412
|
+
# a command line tool, base64-encoding is performed for you, and you
|
3413
|
+
# can load the text from a file. Otherwise, you must provide
|
3414
|
+
# base64-encoded text. User data is limited to 16 KB.
|
3375
3415
|
#
|
3376
3416
|
#
|
3377
3417
|
#
|
3378
3418
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
|
3419
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html
|
3379
3420
|
# @return [String]
|
3380
3421
|
#
|
3381
3422
|
# @!attribute [rw] instance_type
|
@@ -3383,7 +3424,7 @@ module Aws::AutoScaling
|
|
3383
3424
|
#
|
3384
3425
|
# For information about available instance types, see [Available
|
3385
3426
|
# Instance Types][1] in the *Amazon EC2 User Guide for Linux
|
3386
|
-
# Instances
|
3427
|
+
# Instances*.
|
3387
3428
|
#
|
3388
3429
|
#
|
3389
3430
|
#
|
@@ -3524,7 +3565,7 @@ module Aws::AutoScaling
|
|
3524
3565
|
# data as a hash:
|
3525
3566
|
#
|
3526
3567
|
# {
|
3527
|
-
# launch_configuration_name: "
|
3568
|
+
# launch_configuration_name: "XmlStringMaxLen255", # required
|
3528
3569
|
# }
|
3529
3570
|
#
|
3530
3571
|
# @!attribute [rw] launch_configuration_name
|
@@ -3543,7 +3584,7 @@ module Aws::AutoScaling
|
|
3543
3584
|
# data as a hash:
|
3544
3585
|
#
|
3545
3586
|
# {
|
3546
|
-
# launch_configuration_names: ["
|
3587
|
+
# launch_configuration_names: ["XmlStringMaxLen255"],
|
3547
3588
|
# next_token: "XmlString",
|
3548
3589
|
# max_records: 1,
|
3549
3590
|
# }
|
@@ -3648,8 +3689,10 @@ module Aws::AutoScaling
|
|
3648
3689
|
|
3649
3690
|
# Describes an override for a launch template. The maximum number of
|
3650
3691
|
# instance types that can be associated with an Auto Scaling group is
|
3651
|
-
#
|
3652
|
-
#
|
3692
|
+
# 40. The maximum number of distinct launch templates you can define for
|
3693
|
+
# an Auto Scaling group is 20. For more information about configuring
|
3694
|
+
# overrides, see [Configuring overrides][1] in the *Amazon EC2 Auto
|
3695
|
+
# Scaling User Guide*.
|
3653
3696
|
#
|
3654
3697
|
#
|
3655
3698
|
#
|
@@ -3691,9 +3734,8 @@ module Aws::AutoScaling
|
|
3691
3734
|
# with a `WeightedCapacity` of 5 units, the instance is provisioned,
|
3692
3735
|
# and the desired capacity is exceeded by 3 units. For more
|
3693
3736
|
# information, see [Instance weighting for Amazon EC2 Auto Scaling][1]
|
3694
|
-
# in the *Amazon EC2 Auto Scaling User Guide*.
|
3695
|
-
#
|
3696
|
-
# Valid Range: Minimum value of 1. Maximum value of 999.
|
3737
|
+
# in the *Amazon EC2 Auto Scaling User Guide*. Value must be in the
|
3738
|
+
# range of 1 to 999.
|
3697
3739
|
#
|
3698
3740
|
#
|
3699
3741
|
#
|
@@ -3750,8 +3792,10 @@ module Aws::AutoScaling
|
|
3750
3792
|
# The ID of the launch template. To get the template ID, use the
|
3751
3793
|
# Amazon EC2 [DescribeLaunchTemplates][1] API operation. New launch
|
3752
3794
|
# templates can be created using the Amazon EC2
|
3753
|
-
# [CreateLaunchTemplate][2] API.
|
3754
|
-
#
|
3795
|
+
# [CreateLaunchTemplate][2] API.
|
3796
|
+
#
|
3797
|
+
# Conditional: You must specify either a `LaunchTemplateId` or a
|
3798
|
+
# `LaunchTemplateName`.
|
3755
3799
|
#
|
3756
3800
|
#
|
3757
3801
|
#
|
@@ -3763,8 +3807,10 @@ module Aws::AutoScaling
|
|
3763
3807
|
# The name of the launch template. To get the template name, use the
|
3764
3808
|
# Amazon EC2 [DescribeLaunchTemplates][1] API operation. New launch
|
3765
3809
|
# templates can be created using the Amazon EC2
|
3766
|
-
# [CreateLaunchTemplate][2] API.
|
3767
|
-
#
|
3810
|
+
# [CreateLaunchTemplate][2] API.
|
3811
|
+
#
|
3812
|
+
# Conditional: You must specify either a `LaunchTemplateId` or a
|
3813
|
+
# `LaunchTemplateName`.
|
3768
3814
|
#
|
3769
3815
|
#
|
3770
3816
|
#
|
@@ -3918,7 +3964,7 @@ module Aws::AutoScaling
|
|
3918
3964
|
# heartbeat_timeout: 1,
|
3919
3965
|
# default_result: "LifecycleActionResult",
|
3920
3966
|
# notification_target_arn: "NotificationTargetResourceName",
|
3921
|
-
# role_arn: "
|
3967
|
+
# role_arn: "XmlStringMaxLen255",
|
3922
3968
|
# }
|
3923
3969
|
#
|
3924
3970
|
# @!attribute [rw] lifecycle_hook_name
|
@@ -4447,9 +4493,9 @@ module Aws::AutoScaling
|
|
4447
4493
|
#
|
4448
4494
|
# {
|
4449
4495
|
# lifecycle_hook_name: "AsciiStringMaxLen255", # required
|
4450
|
-
# auto_scaling_group_name: "
|
4496
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4451
4497
|
# lifecycle_transition: "LifecycleTransition",
|
4452
|
-
# role_arn: "
|
4498
|
+
# role_arn: "XmlStringMaxLen255",
|
4453
4499
|
# notification_target_arn: "NotificationTargetResourceName",
|
4454
4500
|
# notification_metadata: "XmlStringMaxLen1023",
|
4455
4501
|
# heartbeat_timeout: 1,
|
@@ -4545,8 +4591,8 @@ module Aws::AutoScaling
|
|
4545
4591
|
# data as a hash:
|
4546
4592
|
#
|
4547
4593
|
# {
|
4548
|
-
# auto_scaling_group_name: "
|
4549
|
-
# topic_arn: "
|
4594
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4595
|
+
# topic_arn: "XmlStringMaxLen255", # required
|
4550
4596
|
# notification_types: ["XmlStringMaxLen255"], # required
|
4551
4597
|
# }
|
4552
4598
|
#
|
@@ -4579,7 +4625,7 @@ module Aws::AutoScaling
|
|
4579
4625
|
# data as a hash:
|
4580
4626
|
#
|
4581
4627
|
# {
|
4582
|
-
# auto_scaling_group_name: "
|
4628
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4583
4629
|
# policy_name: "XmlStringMaxLen255", # required
|
4584
4630
|
# policy_type: "XmlStringMaxLen64",
|
4585
4631
|
# adjustment_type: "XmlStringMaxLen255",
|
@@ -4793,7 +4839,7 @@ module Aws::AutoScaling
|
|
4793
4839
|
# data as a hash:
|
4794
4840
|
#
|
4795
4841
|
# {
|
4796
|
-
# auto_scaling_group_name: "
|
4842
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4797
4843
|
# scheduled_action_name: "XmlStringMaxLen255", # required
|
4798
4844
|
# time: Time.now,
|
4799
4845
|
# start_time: Time.now,
|
@@ -5114,7 +5160,7 @@ module Aws::AutoScaling
|
|
5114
5160
|
# data as a hash:
|
5115
5161
|
#
|
5116
5162
|
# {
|
5117
|
-
# auto_scaling_group_name: "
|
5163
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
5118
5164
|
# scaling_processes: ["XmlStringMaxLen255"],
|
5119
5165
|
# }
|
5120
5166
|
#
|
@@ -5344,7 +5390,7 @@ module Aws::AutoScaling
|
|
5344
5390
|
# data as a hash:
|
5345
5391
|
#
|
5346
5392
|
# {
|
5347
|
-
# auto_scaling_group_name: "
|
5393
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
5348
5394
|
# desired_capacity: 1, # required
|
5349
5395
|
# honor_cooldown: false,
|
5350
5396
|
# }
|
@@ -5431,7 +5477,7 @@ module Aws::AutoScaling
|
|
5431
5477
|
#
|
5432
5478
|
# {
|
5433
5479
|
# instance_ids: ["XmlStringMaxLen19"], # required
|
5434
|
-
# auto_scaling_group_name: "
|
5480
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
5435
5481
|
# protected_from_scale_in: false, # required
|
5436
5482
|
# }
|
5437
5483
|
#
|
@@ -5825,8 +5871,8 @@ module Aws::AutoScaling
|
|
5825
5871
|
# data as a hash:
|
5826
5872
|
#
|
5827
5873
|
# {
|
5828
|
-
# auto_scaling_group_name: "
|
5829
|
-
# launch_configuration_name: "
|
5874
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
5875
|
+
# launch_configuration_name: "XmlStringMaxLen255",
|
5830
5876
|
# launch_template: {
|
5831
5877
|
# launch_template_id: "XmlStringMaxLen255",
|
5832
5878
|
# launch_template_name: "LaunchTemplateName",
|