aws-sdk-autoscaling 1.51.0 → 1.56.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/CHANGELOG.md +360 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- 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 +7 -3
- data/lib/aws-sdk-autoscaling/client.rb +97 -60
- 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 +27 -20
- 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 +133 -85
- metadata +8 -5
@@ -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
|
#
|
@@ -237,7 +248,7 @@ module Aws::AutoScaling
|
|
237
248
|
# data as a hash:
|
238
249
|
#
|
239
250
|
# {
|
240
|
-
# auto_scaling_group_name: "
|
251
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
241
252
|
# load_balancer_names: ["XmlStringMaxLen255"], # required
|
242
253
|
# }
|
243
254
|
#
|
@@ -420,7 +431,7 @@ module Aws::AutoScaling
|
|
420
431
|
# data as a hash:
|
421
432
|
#
|
422
433
|
# {
|
423
|
-
# auto_scaling_group_names: ["
|
434
|
+
# auto_scaling_group_names: ["XmlStringMaxLen255"],
|
424
435
|
# next_token: "XmlString",
|
425
436
|
# max_records: 1,
|
426
437
|
# }
|
@@ -493,7 +504,18 @@ module Aws::AutoScaling
|
|
493
504
|
# @return [String]
|
494
505
|
#
|
495
506
|
# @!attribute [rw] lifecycle_state
|
496
|
-
# 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
|
497
519
|
# @return [String]
|
498
520
|
#
|
499
521
|
# @!attribute [rw] health_status
|
@@ -580,8 +602,8 @@ module Aws::AutoScaling
|
|
580
602
|
# data as a hash:
|
581
603
|
#
|
582
604
|
# {
|
583
|
-
# auto_scaling_group_name: "
|
584
|
-
# scheduled_action_names: ["
|
605
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
606
|
+
# scheduled_action_names: ["XmlStringMaxLen255"], # required
|
585
607
|
# }
|
586
608
|
#
|
587
609
|
# @!attribute [rw] auto_scaling_group_name
|
@@ -619,7 +641,7 @@ module Aws::AutoScaling
|
|
619
641
|
# data as a hash:
|
620
642
|
#
|
621
643
|
# {
|
622
|
-
# auto_scaling_group_name: "
|
644
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
623
645
|
# scheduled_update_group_actions: [ # required
|
624
646
|
# {
|
625
647
|
# scheduled_action_name: "XmlStringMaxLen255", # required
|
@@ -801,7 +823,7 @@ module Aws::AutoScaling
|
|
801
823
|
#
|
802
824
|
# {
|
803
825
|
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
804
|
-
# launch_configuration_name: "
|
826
|
+
# launch_configuration_name: "XmlStringMaxLen255",
|
805
827
|
# launch_template: {
|
806
828
|
# launch_template_id: "XmlStringMaxLen255",
|
807
829
|
# launch_template_name: "LaunchTemplateName",
|
@@ -858,7 +880,7 @@ module Aws::AutoScaling
|
|
858
880
|
# heartbeat_timeout: 1,
|
859
881
|
# default_result: "LifecycleActionResult",
|
860
882
|
# notification_target_arn: "NotificationTargetResourceName",
|
861
|
-
# role_arn: "
|
883
|
+
# role_arn: "XmlStringMaxLen255",
|
862
884
|
# },
|
863
885
|
# ],
|
864
886
|
# tags: [
|
@@ -888,8 +910,8 @@ module Aws::AutoScaling
|
|
888
910
|
# @return [String]
|
889
911
|
#
|
890
912
|
# @!attribute [rw] launch_template
|
891
|
-
# Parameters used to specify the
|
892
|
-
#
|
913
|
+
# Parameters used to specify the launch template and version to use to
|
914
|
+
# launch instances.
|
893
915
|
#
|
894
916
|
# Conditional: You must specify either a launch template
|
895
917
|
# (`LaunchTemplate` or `MixedInstancesPolicy`) or a launch
|
@@ -897,27 +919,26 @@ module Aws::AutoScaling
|
|
897
919
|
#
|
898
920
|
# <note markdown="1"> The launch template that is specified must be configured for use
|
899
921
|
# with an Auto Scaling group. For more information, see [Creating a
|
900
|
-
# launch template for an Auto Scaling group][
|
922
|
+
# launch template for an Auto Scaling group][1] in the *Amazon EC2
|
901
923
|
# Auto Scaling User Guide*.
|
902
924
|
#
|
903
925
|
# </note>
|
904
926
|
#
|
905
927
|
#
|
906
928
|
#
|
907
|
-
# [1]: https://docs.aws.amazon.com/
|
908
|
-
# [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
|
909
930
|
# @return [Types::LaunchTemplateSpecification]
|
910
931
|
#
|
911
932
|
# @!attribute [rw] mixed_instances_policy
|
912
933
|
# An embedded object that specifies a mixed instances policy. The
|
913
|
-
# required
|
934
|
+
# required properties must be specified. If optional properties are
|
914
935
|
# unspecified, their default values are used.
|
915
936
|
#
|
916
|
-
# The policy includes
|
937
|
+
# The policy includes properties that not only define the distribution
|
917
938
|
# of On-Demand Instances and Spot Instances, the maximum price to pay
|
918
939
|
# for Spot Instances, and how the Auto Scaling group allocates
|
919
940
|
# instance types to fulfill On-Demand and Spot capacities, but also
|
920
|
-
# the
|
941
|
+
# the properties that specify the instance configuration
|
921
942
|
# information—the launch template and instance types. The policy can
|
922
943
|
# also include a weight for each instance type and different launch
|
923
944
|
# templates for individual instance types. For more information, see
|
@@ -1304,13 +1325,17 @@ module Aws::AutoScaling
|
|
1304
1325
|
# @return [Array<String>]
|
1305
1326
|
#
|
1306
1327
|
# @!attribute [rw] user_data
|
1307
|
-
# The
|
1308
|
-
#
|
1309
|
-
#
|
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.
|
1310
1334
|
#
|
1311
1335
|
#
|
1312
1336
|
#
|
1313
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
|
1314
1339
|
# @return [String]
|
1315
1340
|
#
|
1316
1341
|
# @!attribute [rw] instance_id
|
@@ -1338,7 +1363,7 @@ module Aws::AutoScaling
|
|
1338
1363
|
#
|
1339
1364
|
# For information about available instance types, see [Available
|
1340
1365
|
# Instance Types][1] in the *Amazon EC2 User Guide for Linux
|
1341
|
-
# Instances
|
1366
|
+
# Instances*.
|
1342
1367
|
#
|
1343
1368
|
# If you do not specify `InstanceId`, you must specify `InstanceType`.
|
1344
1369
|
#
|
@@ -1623,7 +1648,7 @@ module Aws::AutoScaling
|
|
1623
1648
|
# data as a hash:
|
1624
1649
|
#
|
1625
1650
|
# {
|
1626
|
-
# auto_scaling_group_name: "
|
1651
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1627
1652
|
# force_delete: false,
|
1628
1653
|
# }
|
1629
1654
|
#
|
@@ -1656,7 +1681,7 @@ module Aws::AutoScaling
|
|
1656
1681
|
#
|
1657
1682
|
# {
|
1658
1683
|
# lifecycle_hook_name: "AsciiStringMaxLen255", # required
|
1659
|
-
# auto_scaling_group_name: "
|
1684
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1660
1685
|
# }
|
1661
1686
|
#
|
1662
1687
|
# @!attribute [rw] lifecycle_hook_name
|
@@ -1680,8 +1705,8 @@ module Aws::AutoScaling
|
|
1680
1705
|
# data as a hash:
|
1681
1706
|
#
|
1682
1707
|
# {
|
1683
|
-
# auto_scaling_group_name: "
|
1684
|
-
# topic_arn: "
|
1708
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1709
|
+
# topic_arn: "XmlStringMaxLen255", # required
|
1685
1710
|
# }
|
1686
1711
|
#
|
1687
1712
|
# @!attribute [rw] auto_scaling_group_name
|
@@ -1706,7 +1731,7 @@ module Aws::AutoScaling
|
|
1706
1731
|
# data as a hash:
|
1707
1732
|
#
|
1708
1733
|
# {
|
1709
|
-
# auto_scaling_group_name: "
|
1734
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
1710
1735
|
# policy_name: "ResourceName", # required
|
1711
1736
|
# }
|
1712
1737
|
#
|
@@ -1731,8 +1756,8 @@ module Aws::AutoScaling
|
|
1731
1756
|
# data as a hash:
|
1732
1757
|
#
|
1733
1758
|
# {
|
1734
|
-
# auto_scaling_group_name: "
|
1735
|
-
# scheduled_action_name: "
|
1759
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1760
|
+
# scheduled_action_name: "XmlStringMaxLen255", # required
|
1736
1761
|
# }
|
1737
1762
|
#
|
1738
1763
|
# @!attribute [rw] auto_scaling_group_name
|
@@ -1956,7 +1981,7 @@ module Aws::AutoScaling
|
|
1956
1981
|
# data as a hash:
|
1957
1982
|
#
|
1958
1983
|
# {
|
1959
|
-
# auto_scaling_group_name: "
|
1984
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1960
1985
|
# lifecycle_hook_names: ["AsciiStringMaxLen255"],
|
1961
1986
|
# }
|
1962
1987
|
#
|
@@ -1982,7 +2007,7 @@ module Aws::AutoScaling
|
|
1982
2007
|
# data as a hash:
|
1983
2008
|
#
|
1984
2009
|
# {
|
1985
|
-
# auto_scaling_group_name: "
|
2010
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1986
2011
|
# next_token: "XmlString",
|
1987
2012
|
# max_records: 1,
|
1988
2013
|
# }
|
@@ -2036,7 +2061,7 @@ module Aws::AutoScaling
|
|
2036
2061
|
# data as a hash:
|
2037
2062
|
#
|
2038
2063
|
# {
|
2039
|
-
# auto_scaling_group_name: "
|
2064
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
2040
2065
|
# next_token: "XmlString",
|
2041
2066
|
# max_records: 1,
|
2042
2067
|
# }
|
@@ -2128,7 +2153,7 @@ module Aws::AutoScaling
|
|
2128
2153
|
# data as a hash:
|
2129
2154
|
#
|
2130
2155
|
# {
|
2131
|
-
# auto_scaling_group_names: ["
|
2156
|
+
# auto_scaling_group_names: ["XmlStringMaxLen255"],
|
2132
2157
|
# next_token: "XmlString",
|
2133
2158
|
# max_records: 1,
|
2134
2159
|
# }
|
@@ -2161,7 +2186,7 @@ module Aws::AutoScaling
|
|
2161
2186
|
# data as a hash:
|
2162
2187
|
#
|
2163
2188
|
# {
|
2164
|
-
# auto_scaling_group_name: "
|
2189
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
2165
2190
|
# policy_names: ["ResourceName"],
|
2166
2191
|
# policy_types: ["XmlStringMaxLen64"],
|
2167
2192
|
# next_token: "XmlString",
|
@@ -2211,7 +2236,8 @@ module Aws::AutoScaling
|
|
2211
2236
|
#
|
2212
2237
|
# {
|
2213
2238
|
# activity_ids: ["XmlString"],
|
2214
|
-
# auto_scaling_group_name: "
|
2239
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
2240
|
+
# include_deleted_groups: false,
|
2215
2241
|
# max_records: 1,
|
2216
2242
|
# next_token: "XmlString",
|
2217
2243
|
# }
|
@@ -2228,6 +2254,11 @@ module Aws::AutoScaling
|
|
2228
2254
|
# The name of the Auto Scaling group.
|
2229
2255
|
# @return [String]
|
2230
2256
|
#
|
2257
|
+
# @!attribute [rw] include_deleted_groups
|
2258
|
+
# Indicates whether to include scaling activity from deleted Auto
|
2259
|
+
# Scaling groups.
|
2260
|
+
# @return [Boolean]
|
2261
|
+
#
|
2231
2262
|
# @!attribute [rw] max_records
|
2232
2263
|
# The maximum number of items to return with this call. The default
|
2233
2264
|
# value is `100` and the maximum value is `100`.
|
@@ -2243,6 +2274,7 @@ module Aws::AutoScaling
|
|
2243
2274
|
class DescribeScalingActivitiesType < Struct.new(
|
2244
2275
|
:activity_ids,
|
2245
2276
|
:auto_scaling_group_name,
|
2277
|
+
:include_deleted_groups,
|
2246
2278
|
:max_records,
|
2247
2279
|
:next_token)
|
2248
2280
|
SENSITIVE = []
|
@@ -2253,8 +2285,8 @@ module Aws::AutoScaling
|
|
2253
2285
|
# data as a hash:
|
2254
2286
|
#
|
2255
2287
|
# {
|
2256
|
-
# auto_scaling_group_name: "
|
2257
|
-
# scheduled_action_names: ["
|
2288
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
2289
|
+
# scheduled_action_names: ["XmlStringMaxLen255"],
|
2258
2290
|
# start_time: Time.now,
|
2259
2291
|
# end_time: Time.now,
|
2260
2292
|
# next_token: "XmlString",
|
@@ -2378,7 +2410,7 @@ module Aws::AutoScaling
|
|
2378
2410
|
#
|
2379
2411
|
# {
|
2380
2412
|
# instance_ids: ["XmlStringMaxLen19"],
|
2381
|
-
# auto_scaling_group_name: "
|
2413
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
2382
2414
|
# should_decrement_desired_capacity: false, # required
|
2383
2415
|
# }
|
2384
2416
|
#
|
@@ -2413,7 +2445,7 @@ module Aws::AutoScaling
|
|
2413
2445
|
# data as a hash:
|
2414
2446
|
#
|
2415
2447
|
# {
|
2416
|
-
# auto_scaling_group_name: "
|
2448
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
2417
2449
|
# target_group_arns: ["XmlStringMaxLen511"], # required
|
2418
2450
|
# }
|
2419
2451
|
#
|
@@ -2443,7 +2475,7 @@ module Aws::AutoScaling
|
|
2443
2475
|
# data as a hash:
|
2444
2476
|
#
|
2445
2477
|
# {
|
2446
|
-
# auto_scaling_group_name: "
|
2478
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
2447
2479
|
# load_balancer_names: ["XmlStringMaxLen255"], # required
|
2448
2480
|
# }
|
2449
2481
|
#
|
@@ -2469,7 +2501,7 @@ module Aws::AutoScaling
|
|
2469
2501
|
# data as a hash:
|
2470
2502
|
#
|
2471
2503
|
# {
|
2472
|
-
# auto_scaling_group_name: "
|
2504
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
2473
2505
|
# metrics: ["XmlStringMaxLen255"],
|
2474
2506
|
# }
|
2475
2507
|
#
|
@@ -2642,7 +2674,7 @@ module Aws::AutoScaling
|
|
2642
2674
|
# data as a hash:
|
2643
2675
|
#
|
2644
2676
|
# {
|
2645
|
-
# auto_scaling_group_name: "
|
2677
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
2646
2678
|
# metrics: ["XmlStringMaxLen255"],
|
2647
2679
|
# granularity: "XmlStringMaxLen255", # required
|
2648
2680
|
# }
|
@@ -2764,7 +2796,7 @@ module Aws::AutoScaling
|
|
2764
2796
|
#
|
2765
2797
|
# {
|
2766
2798
|
# instance_ids: ["XmlStringMaxLen19"],
|
2767
|
-
# auto_scaling_group_name: "
|
2799
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
2768
2800
|
# should_decrement_desired_capacity: false, # required
|
2769
2801
|
# }
|
2770
2802
|
#
|
@@ -2795,7 +2827,7 @@ module Aws::AutoScaling
|
|
2795
2827
|
# data as a hash:
|
2796
2828
|
#
|
2797
2829
|
# {
|
2798
|
-
# auto_scaling_group_name: "
|
2830
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
2799
2831
|
# policy_name: "ResourceName", # required
|
2800
2832
|
# honor_cooldown: false,
|
2801
2833
|
# metric_value: 1.0,
|
@@ -2873,7 +2905,7 @@ module Aws::AutoScaling
|
|
2873
2905
|
#
|
2874
2906
|
# {
|
2875
2907
|
# instance_ids: ["XmlStringMaxLen19"],
|
2876
|
-
# auto_scaling_group_name: "
|
2908
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
2877
2909
|
# }
|
2878
2910
|
#
|
2879
2911
|
# @!attribute [rw] instance_ids
|
@@ -2970,7 +3002,12 @@ module Aws::AutoScaling
|
|
2970
3002
|
#
|
2971
3003
|
# @!attribute [rw] lifecycle_state
|
2972
3004
|
# A description of the current lifecycle state. The `Quarantined`
|
2973
|
-
# 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
|
2974
3011
|
# @return [String]
|
2975
3012
|
#
|
2976
3013
|
# @!attribute [rw] health_status
|
@@ -3057,8 +3094,6 @@ module Aws::AutoScaling
|
|
3057
3094
|
# requests can travel.
|
3058
3095
|
#
|
3059
3096
|
# Default: 1
|
3060
|
-
#
|
3061
|
-
# Possible values: Integers from 1 to 64
|
3062
3097
|
# @return [Integer]
|
3063
3098
|
#
|
3064
3099
|
# @!attribute [rw] http_endpoint
|
@@ -3224,12 +3259,12 @@ module Aws::AutoScaling
|
|
3224
3259
|
# Indicates how to allocate instance types to fulfill On-Demand
|
3225
3260
|
# capacity. The only valid value is `prioritized`, which is also the
|
3226
3261
|
# default value. This strategy uses the order of instance types in the
|
3227
|
-
#
|
3228
|
-
# first instance type in the array is prioritized
|
3229
|
-
# last. If all your On-Demand capacity cannot be
|
3230
|
-
# highest priority instance, then the Auto
|
3231
|
-
# remaining capacity using the second
|
3232
|
-
# on.
|
3262
|
+
# `LaunchTemplateOverrides` to define the launch priority of each
|
3263
|
+
# instance type. The first instance type in the array is prioritized
|
3264
|
+
# higher than the last. If all your On-Demand capacity cannot be
|
3265
|
+
# fulfilled using your highest priority instance, then the Auto
|
3266
|
+
# Scaling groups launches the remaining capacity using the second
|
3267
|
+
# priority instance type, and so on.
|
3233
3268
|
# @return [String]
|
3234
3269
|
#
|
3235
3270
|
# @!attribute [rw] on_demand_base_capacity
|
@@ -3250,14 +3285,21 @@ module Aws::AutoScaling
|
|
3250
3285
|
# @return [Integer]
|
3251
3286
|
#
|
3252
3287
|
# @!attribute [rw] spot_allocation_strategy
|
3253
|
-
# Indicates how to allocate instances across Spot Instance pools.
|
3254
|
-
#
|
3255
|
-
#
|
3256
|
-
# optimally chosen based on the available Spot capacity. If the
|
3257
|
-
# allocation strategy is `lowest-price`, the Auto Scaling group
|
3288
|
+
# Indicates how to allocate instances across Spot Instance pools.
|
3289
|
+
#
|
3290
|
+
# If the allocation strategy is `lowest-price`, the Auto Scaling group
|
3258
3291
|
# launches instances using the Spot pools with the lowest price, and
|
3259
3292
|
# evenly allocates your instances across the number of Spot pools that
|
3260
3293
|
# you specify. Defaults to `lowest-price` if not specified.
|
3294
|
+
#
|
3295
|
+
# If the allocation strategy is `capacity-optimized` (recommended),
|
3296
|
+
# the Auto Scaling group launches instances using Spot pools that are
|
3297
|
+
# optimally chosen based on the available Spot capacity.
|
3298
|
+
# Alternatively, you can use `capacity-optimized-prioritized` and set
|
3299
|
+
# the order of instance types in the list of launch template overrides
|
3300
|
+
# from highest to lowest priority (from first to last in the list).
|
3301
|
+
# Amazon EC2 Auto Scaling honors the instance type priorities on a
|
3302
|
+
# best-effort basis but optimizes for capacity first.
|
3261
3303
|
# @return [String]
|
3262
3304
|
#
|
3263
3305
|
# @!attribute [rw] spot_instance_pools
|
@@ -3371,13 +3413,17 @@ module Aws::AutoScaling
|
|
3371
3413
|
# @return [Array<String>]
|
3372
3414
|
#
|
3373
3415
|
# @!attribute [rw] user_data
|
3374
|
-
# The
|
3375
|
-
#
|
3376
|
-
#
|
3416
|
+
# The user data to make available to the launched EC2 instances. For
|
3417
|
+
# more information, see [Instance metadata and user data][1] (Linux)
|
3418
|
+
# and [Instance metadata and user data][2] (Windows). If you are using
|
3419
|
+
# a command line tool, base64-encoding is performed for you, and you
|
3420
|
+
# can load the text from a file. Otherwise, you must provide
|
3421
|
+
# base64-encoded text. User data is limited to 16 KB.
|
3377
3422
|
#
|
3378
3423
|
#
|
3379
3424
|
#
|
3380
3425
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
|
3426
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html
|
3381
3427
|
# @return [String]
|
3382
3428
|
#
|
3383
3429
|
# @!attribute [rw] instance_type
|
@@ -3385,7 +3431,7 @@ module Aws::AutoScaling
|
|
3385
3431
|
#
|
3386
3432
|
# For information about available instance types, see [Available
|
3387
3433
|
# Instance Types][1] in the *Amazon EC2 User Guide for Linux
|
3388
|
-
# Instances
|
3434
|
+
# Instances*.
|
3389
3435
|
#
|
3390
3436
|
#
|
3391
3437
|
#
|
@@ -3526,7 +3572,7 @@ module Aws::AutoScaling
|
|
3526
3572
|
# data as a hash:
|
3527
3573
|
#
|
3528
3574
|
# {
|
3529
|
-
# launch_configuration_name: "
|
3575
|
+
# launch_configuration_name: "XmlStringMaxLen255", # required
|
3530
3576
|
# }
|
3531
3577
|
#
|
3532
3578
|
# @!attribute [rw] launch_configuration_name
|
@@ -3545,7 +3591,7 @@ module Aws::AutoScaling
|
|
3545
3591
|
# data as a hash:
|
3546
3592
|
#
|
3547
3593
|
# {
|
3548
|
-
# launch_configuration_names: ["
|
3594
|
+
# launch_configuration_names: ["XmlStringMaxLen255"],
|
3549
3595
|
# next_token: "XmlString",
|
3550
3596
|
# max_records: 1,
|
3551
3597
|
# }
|
@@ -3598,7 +3644,7 @@ module Aws::AutoScaling
|
|
3598
3644
|
|
3599
3645
|
# Describes a launch template and overrides.
|
3600
3646
|
#
|
3601
|
-
# You specify these
|
3647
|
+
# You specify these properties as part of a mixed instances policy.
|
3602
3648
|
#
|
3603
3649
|
# When you update the launch template or overrides, existing Amazon EC2
|
3604
3650
|
# instances continue to run. When scale out occurs, Amazon EC2 Auto
|
@@ -3633,7 +3679,7 @@ module Aws::AutoScaling
|
|
3633
3679
|
# @return [Types::LaunchTemplateSpecification]
|
3634
3680
|
#
|
3635
3681
|
# @!attribute [rw] overrides
|
3636
|
-
# Any
|
3682
|
+
# Any properties that you specify override the same properties in the
|
3637
3683
|
# launch template. If not provided, Amazon EC2 Auto Scaling uses the
|
3638
3684
|
# instance type specified in the launch template when it launches an
|
3639
3685
|
# instance.
|
@@ -3650,8 +3696,10 @@ module Aws::AutoScaling
|
|
3650
3696
|
|
3651
3697
|
# Describes an override for a launch template. The maximum number of
|
3652
3698
|
# instance types that can be associated with an Auto Scaling group is
|
3653
|
-
#
|
3654
|
-
#
|
3699
|
+
# 40. The maximum number of distinct launch templates you can define for
|
3700
|
+
# an Auto Scaling group is 20. For more information about configuring
|
3701
|
+
# overrides, see [Configuring overrides][1] in the *Amazon EC2 Auto
|
3702
|
+
# Scaling User Guide*.
|
3655
3703
|
#
|
3656
3704
|
#
|
3657
3705
|
#
|
@@ -3923,7 +3971,7 @@ module Aws::AutoScaling
|
|
3923
3971
|
# heartbeat_timeout: 1,
|
3924
3972
|
# default_result: "LifecycleActionResult",
|
3925
3973
|
# notification_target_arn: "NotificationTargetResourceName",
|
3926
|
-
# role_arn: "
|
3974
|
+
# role_arn: "XmlStringMaxLen255",
|
3927
3975
|
# }
|
3928
3976
|
#
|
3929
3977
|
# @!attribute [rw] lifecycle_hook_name
|
@@ -4189,7 +4237,7 @@ module Aws::AutoScaling
|
|
4189
4237
|
#
|
4190
4238
|
# You can create a mixed instances policy for a new Auto Scaling group,
|
4191
4239
|
# or you can create it for an existing group by updating the group to
|
4192
|
-
# specify `MixedInstancesPolicy` as the top-level
|
4240
|
+
# specify `MixedInstancesPolicy` as the top-level property instead of a
|
4193
4241
|
# launch configuration or launch template.
|
4194
4242
|
#
|
4195
4243
|
#
|
@@ -4237,7 +4285,7 @@ module Aws::AutoScaling
|
|
4237
4285
|
#
|
4238
4286
|
# @!attribute [rw] instances_distribution
|
4239
4287
|
# Specifies the instances distribution. If not provided, the value for
|
4240
|
-
# each
|
4288
|
+
# each property in `InstancesDistribution` uses a default value.
|
4241
4289
|
# @return [Types::InstancesDistribution]
|
4242
4290
|
#
|
4243
4291
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/MixedInstancesPolicy AWS API Documentation
|
@@ -4452,9 +4500,9 @@ module Aws::AutoScaling
|
|
4452
4500
|
#
|
4453
4501
|
# {
|
4454
4502
|
# lifecycle_hook_name: "AsciiStringMaxLen255", # required
|
4455
|
-
# auto_scaling_group_name: "
|
4503
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4456
4504
|
# lifecycle_transition: "LifecycleTransition",
|
4457
|
-
# role_arn: "
|
4505
|
+
# role_arn: "XmlStringMaxLen255",
|
4458
4506
|
# notification_target_arn: "NotificationTargetResourceName",
|
4459
4507
|
# notification_metadata: "XmlStringMaxLen1023",
|
4460
4508
|
# heartbeat_timeout: 1,
|
@@ -4550,8 +4598,8 @@ module Aws::AutoScaling
|
|
4550
4598
|
# data as a hash:
|
4551
4599
|
#
|
4552
4600
|
# {
|
4553
|
-
# auto_scaling_group_name: "
|
4554
|
-
# topic_arn: "
|
4601
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4602
|
+
# topic_arn: "XmlStringMaxLen255", # required
|
4555
4603
|
# notification_types: ["XmlStringMaxLen255"], # required
|
4556
4604
|
# }
|
4557
4605
|
#
|
@@ -4584,7 +4632,7 @@ module Aws::AutoScaling
|
|
4584
4632
|
# data as a hash:
|
4585
4633
|
#
|
4586
4634
|
# {
|
4587
|
-
# auto_scaling_group_name: "
|
4635
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4588
4636
|
# policy_name: "XmlStringMaxLen255", # required
|
4589
4637
|
# policy_type: "XmlStringMaxLen64",
|
4590
4638
|
# adjustment_type: "XmlStringMaxLen255",
|
@@ -4798,7 +4846,7 @@ module Aws::AutoScaling
|
|
4798
4846
|
# data as a hash:
|
4799
4847
|
#
|
4800
4848
|
# {
|
4801
|
-
# auto_scaling_group_name: "
|
4849
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4802
4850
|
# scheduled_action_name: "XmlStringMaxLen255", # required
|
4803
4851
|
# time: Time.now,
|
4804
4852
|
# start_time: Time.now,
|
@@ -5119,7 +5167,7 @@ module Aws::AutoScaling
|
|
5119
5167
|
# data as a hash:
|
5120
5168
|
#
|
5121
5169
|
# {
|
5122
|
-
# auto_scaling_group_name: "
|
5170
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
5123
5171
|
# scaling_processes: ["XmlStringMaxLen255"],
|
5124
5172
|
# }
|
5125
5173
|
#
|
@@ -5349,7 +5397,7 @@ module Aws::AutoScaling
|
|
5349
5397
|
# data as a hash:
|
5350
5398
|
#
|
5351
5399
|
# {
|
5352
|
-
# auto_scaling_group_name: "
|
5400
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
5353
5401
|
# desired_capacity: 1, # required
|
5354
5402
|
# honor_cooldown: false,
|
5355
5403
|
# }
|
@@ -5436,7 +5484,7 @@ module Aws::AutoScaling
|
|
5436
5484
|
#
|
5437
5485
|
# {
|
5438
5486
|
# instance_ids: ["XmlStringMaxLen19"], # required
|
5439
|
-
# auto_scaling_group_name: "
|
5487
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
5440
5488
|
# protected_from_scale_in: false, # required
|
5441
5489
|
# }
|
5442
5490
|
#
|
@@ -5830,8 +5878,8 @@ module Aws::AutoScaling
|
|
5830
5878
|
# data as a hash:
|
5831
5879
|
#
|
5832
5880
|
# {
|
5833
|
-
# auto_scaling_group_name: "
|
5834
|
-
# launch_configuration_name: "
|
5881
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
5882
|
+
# launch_configuration_name: "XmlStringMaxLen255",
|
5835
5883
|
# launch_template: {
|
5836
5884
|
# launch_template_id: "XmlStringMaxLen255",
|
5837
5885
|
# launch_template_name: "LaunchTemplateName",
|
@@ -5899,7 +5947,7 @@ module Aws::AutoScaling
|
|
5899
5947
|
#
|
5900
5948
|
# @!attribute [rw] mixed_instances_policy
|
5901
5949
|
# An embedded object that specifies a mixed instances policy. When you
|
5902
|
-
# make changes to an existing policy, all optional
|
5950
|
+
# make changes to an existing policy, all optional properties are left
|
5903
5951
|
# unchanged if not specified. For more information, see [Auto Scaling
|
5904
5952
|
# groups with multiple instance types and purchase options][1] in the
|
5905
5953
|
# *Amazon EC2 Auto Scaling User Guide*.
|