aws-sdk-autoscaling 1.49.0 → 1.54.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.
@@ -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: "ResourceName",
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: "ResourceName",
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: "ResourceName", # required
236
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
237
237
  # })
238
238
  # @param [Hash] options ({})
239
239
  # @option options [required, String] :auto_scaling_group_name
@@ -173,7 +173,7 @@ module Aws::AutoScaling
173
173
  #
174
174
  # {
175
175
  # instance_ids: ["XmlStringMaxLen19"],
176
- # auto_scaling_group_name: "ResourceName", # required
176
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
177
177
  # }
178
178
  #
179
179
  # @!attribute [rw] instance_ids
@@ -201,7 +201,7 @@ module Aws::AutoScaling
201
201
  # data as a hash:
202
202
  #
203
203
  # {
204
- # auto_scaling_group_name: "ResourceName", # required
204
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
205
205
  # target_group_arns: ["XmlStringMaxLen511"], # required
206
206
  # }
207
207
  #
@@ -211,7 +211,13 @@ module Aws::AutoScaling
211
211
  #
212
212
  # @!attribute [rw] target_group_arns
213
213
  # The Amazon Resource Names (ARN) of the target groups. You can
214
- # specify up to 10 target groups.
214
+ # specify up to 10 target groups. To get the ARN of a target group,
215
+ # use the Elastic Load Balancing [DescribeTargetGroups][1] API
216
+ # operation.
217
+ #
218
+ #
219
+ #
220
+ # [1]: https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeTargetGroups.html
215
221
  # @return [Array<String>]
216
222
  #
217
223
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancerTargetGroupsType AWS API Documentation
@@ -231,7 +237,7 @@ module Aws::AutoScaling
231
237
  # data as a hash:
232
238
  #
233
239
  # {
234
- # auto_scaling_group_name: "ResourceName", # required
240
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
235
241
  # load_balancer_names: ["XmlStringMaxLen255"], # required
236
242
  # }
237
243
  #
@@ -414,7 +420,7 @@ module Aws::AutoScaling
414
420
  # data as a hash:
415
421
  #
416
422
  # {
417
- # auto_scaling_group_names: ["ResourceName"],
423
+ # auto_scaling_group_names: ["XmlStringMaxLen255"],
418
424
  # next_token: "XmlString",
419
425
  # max_records: 1,
420
426
  # }
@@ -487,7 +493,18 @@ module Aws::AutoScaling
487
493
  # @return [String]
488
494
  #
489
495
  # @!attribute [rw] lifecycle_state
490
- # The lifecycle state for the instance.
496
+ # The lifecycle state for the instance. The `Quarantined` state is not
497
+ # used. For information about lifecycle states, see [Instance
498
+ # lifecycle][1] in the *Amazon EC2 Auto Scaling User Guide*.
499
+ #
500
+ # Valid Values: `Pending` \| `Pending:Wait` \| `Pending:Proceed` \|
501
+ # `Quarantined` \| `InService` \| `Terminating` \| `Terminating:Wait`
502
+ # \| `Terminating:Proceed` \| `Terminated` \| `Detaching` \|
503
+ # `Detached` \| `EnteringStandby` \| `Standby`
504
+ #
505
+ #
506
+ #
507
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/AutoScalingGroupLifecycle.html
491
508
  # @return [String]
492
509
  #
493
510
  # @!attribute [rw] health_status
@@ -574,8 +591,8 @@ module Aws::AutoScaling
574
591
  # data as a hash:
575
592
  #
576
593
  # {
577
- # auto_scaling_group_name: "ResourceName", # required
578
- # scheduled_action_names: ["ResourceName"], # required
594
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
595
+ # scheduled_action_names: ["XmlStringMaxLen255"], # required
579
596
  # }
580
597
  #
581
598
  # @!attribute [rw] auto_scaling_group_name
@@ -613,7 +630,7 @@ module Aws::AutoScaling
613
630
  # data as a hash:
614
631
  #
615
632
  # {
616
- # auto_scaling_group_name: "ResourceName", # required
633
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
617
634
  # scheduled_update_group_actions: [ # required
618
635
  # {
619
636
  # scheduled_action_name: "XmlStringMaxLen255", # required
@@ -795,7 +812,7 @@ module Aws::AutoScaling
795
812
  #
796
813
  # {
797
814
  # auto_scaling_group_name: "XmlStringMaxLen255", # required
798
- # launch_configuration_name: "ResourceName",
815
+ # launch_configuration_name: "XmlStringMaxLen255",
799
816
  # launch_template: {
800
817
  # launch_template_id: "XmlStringMaxLen255",
801
818
  # launch_template_name: "LaunchTemplateName",
@@ -812,6 +829,11 @@ module Aws::AutoScaling
812
829
  # {
813
830
  # instance_type: "XmlStringMaxLen255",
814
831
  # weighted_capacity: "XmlStringMaxLen32",
832
+ # launch_template_specification: {
833
+ # launch_template_id: "XmlStringMaxLen255",
834
+ # launch_template_name: "LaunchTemplateName",
835
+ # version: "XmlStringMaxLen255",
836
+ # },
815
837
  # },
816
838
  # ],
817
839
  # },
@@ -847,7 +869,7 @@ module Aws::AutoScaling
847
869
  # heartbeat_timeout: 1,
848
870
  # default_result: "LifecycleActionResult",
849
871
  # notification_target_arn: "NotificationTargetResourceName",
850
- # role_arn: "ResourceName",
872
+ # role_arn: "XmlStringMaxLen255",
851
873
  # },
852
874
  # ],
853
875
  # tags: [
@@ -877,8 +899,8 @@ module Aws::AutoScaling
877
899
  # @return [String]
878
900
  #
879
901
  # @!attribute [rw] launch_template
880
- # Parameters used to specify the [launch template][1] and version to
881
- # use to launch instances.
902
+ # Parameters used to specify the launch template and version to use to
903
+ # launch instances.
882
904
  #
883
905
  # Conditional: You must specify either a launch template
884
906
  # (`LaunchTemplate` or `MixedInstancesPolicy`) or a launch
@@ -886,15 +908,14 @@ module Aws::AutoScaling
886
908
  #
887
909
  # <note markdown="1"> The launch template that is specified must be configured for use
888
910
  # with an Auto Scaling group. For more information, see [Creating a
889
- # launch template for an Auto Scaling group][2] in the *Amazon EC2
911
+ # launch template for an Auto Scaling group][1] in the *Amazon EC2
890
912
  # Auto Scaling User Guide*.
891
913
  #
892
914
  # </note>
893
915
  #
894
916
  #
895
917
  #
896
- # [1]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html
897
- # [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html
918
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html
898
919
  # @return [Types::LaunchTemplateSpecification]
899
920
  #
900
921
  # @!attribute [rw] mixed_instances_policy
@@ -908,14 +929,11 @@ module Aws::AutoScaling
908
929
  # instance types to fulfill On-Demand and Spot capacities, but also
909
930
  # the parameters that specify the instance configuration
910
931
  # information—the launch template and instance types. The policy can
911
- # also include a weight for each instance type. For more information,
912
- # see [Auto Scaling groups with multiple instance types and purchase
932
+ # also include a weight for each instance type and different launch
933
+ # templates for individual instance types. For more information, see
934
+ # [Auto Scaling groups with multiple instance types and purchase
913
935
  # options][1] in the *Amazon EC2 Auto Scaling User Guide*.
914
936
  #
915
- # Conditional: You must specify either a launch template
916
- # (`LaunchTemplate` or `MixedInstancesPolicy`) or a launch
917
- # configuration (`LaunchConfigurationName` or `InstanceId`).
918
- #
919
937
  #
920
938
  #
921
939
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
@@ -987,8 +1005,9 @@ module Aws::AutoScaling
987
1005
  #
988
1006
  # @!attribute [rw] load_balancer_names
989
1007
  # A list of Classic Load Balancers associated with this Auto Scaling
990
- # group. For Application Load Balancers and Network Load Balancers,
991
- # specify `TargetGroupARNs` instead.
1008
+ # group. For Application Load Balancers, Network Load Balancers, and
1009
+ # Gateway Load Balancers, specify the `TargetGroupARNs` property
1010
+ # instead.
992
1011
  # @return [Array<String>]
993
1012
  #
994
1013
  # @!attribute [rw] target_group_arns
@@ -1295,13 +1314,17 @@ module Aws::AutoScaling
1295
1314
  # @return [Array<String>]
1296
1315
  #
1297
1316
  # @!attribute [rw] user_data
1298
- # The Base64-encoded user data to make available to the launched EC2
1299
- # instances. For more information, see [Instance metadata and user
1300
- # data][1] in the *Amazon EC2 User Guide for Linux Instances*.
1317
+ # The user data to make available to the launched EC2 instances. For
1318
+ # more information, see [Instance metadata and user data][1] (Linux)
1319
+ # and [Instance metadata and user data][2] (Windows). If you are using
1320
+ # a command line tool, base64-encoding is performed for you, and you
1321
+ # can load the text from a file. Otherwise, you must provide
1322
+ # base64-encoded text. User data is limited to 16 KB.
1301
1323
  #
1302
1324
  #
1303
1325
  #
1304
1326
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
1327
+ # [2]: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html
1305
1328
  # @return [String]
1306
1329
  #
1307
1330
  # @!attribute [rw] instance_id
@@ -1329,7 +1352,7 @@ module Aws::AutoScaling
1329
1352
  #
1330
1353
  # For information about available instance types, see [Available
1331
1354
  # Instance Types][1] in the *Amazon EC2 User Guide for Linux
1332
- # Instances.*
1355
+ # Instances*.
1333
1356
  #
1334
1357
  # If you do not specify `InstanceId`, you must specify `InstanceType`.
1335
1358
  #
@@ -1469,7 +1492,7 @@ module Aws::AutoScaling
1469
1492
  #
1470
1493
  #
1471
1494
  #
1472
- # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling/ec2/userguide/auto-scaling-dedicated-instances.html
1495
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/auto-scaling-dedicated-instances.html
1473
1496
  # @return [String]
1474
1497
  #
1475
1498
  # @!attribute [rw] metadata_options
@@ -1614,7 +1637,7 @@ module Aws::AutoScaling
1614
1637
  # data as a hash:
1615
1638
  #
1616
1639
  # {
1617
- # auto_scaling_group_name: "ResourceName", # required
1640
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
1618
1641
  # force_delete: false,
1619
1642
  # }
1620
1643
  #
@@ -1647,7 +1670,7 @@ module Aws::AutoScaling
1647
1670
  #
1648
1671
  # {
1649
1672
  # lifecycle_hook_name: "AsciiStringMaxLen255", # required
1650
- # auto_scaling_group_name: "ResourceName", # required
1673
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
1651
1674
  # }
1652
1675
  #
1653
1676
  # @!attribute [rw] lifecycle_hook_name
@@ -1671,8 +1694,8 @@ module Aws::AutoScaling
1671
1694
  # data as a hash:
1672
1695
  #
1673
1696
  # {
1674
- # auto_scaling_group_name: "ResourceName", # required
1675
- # topic_arn: "ResourceName", # required
1697
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
1698
+ # topic_arn: "XmlStringMaxLen255", # required
1676
1699
  # }
1677
1700
  #
1678
1701
  # @!attribute [rw] auto_scaling_group_name
@@ -1697,7 +1720,7 @@ module Aws::AutoScaling
1697
1720
  # data as a hash:
1698
1721
  #
1699
1722
  # {
1700
- # auto_scaling_group_name: "ResourceName",
1723
+ # auto_scaling_group_name: "XmlStringMaxLen255",
1701
1724
  # policy_name: "ResourceName", # required
1702
1725
  # }
1703
1726
  #
@@ -1722,8 +1745,8 @@ module Aws::AutoScaling
1722
1745
  # data as a hash:
1723
1746
  #
1724
1747
  # {
1725
- # auto_scaling_group_name: "ResourceName", # required
1726
- # scheduled_action_name: "ResourceName", # required
1748
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
1749
+ # scheduled_action_name: "XmlStringMaxLen255", # required
1727
1750
  # }
1728
1751
  #
1729
1752
  # @!attribute [rw] auto_scaling_group_name
@@ -1947,7 +1970,7 @@ module Aws::AutoScaling
1947
1970
  # data as a hash:
1948
1971
  #
1949
1972
  # {
1950
- # auto_scaling_group_name: "ResourceName", # required
1973
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
1951
1974
  # lifecycle_hook_names: ["AsciiStringMaxLen255"],
1952
1975
  # }
1953
1976
  #
@@ -1973,7 +1996,7 @@ module Aws::AutoScaling
1973
1996
  # data as a hash:
1974
1997
  #
1975
1998
  # {
1976
- # auto_scaling_group_name: "ResourceName", # required
1999
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
1977
2000
  # next_token: "XmlString",
1978
2001
  # max_records: 1,
1979
2002
  # }
@@ -2027,7 +2050,7 @@ module Aws::AutoScaling
2027
2050
  # data as a hash:
2028
2051
  #
2029
2052
  # {
2030
- # auto_scaling_group_name: "ResourceName", # required
2053
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
2031
2054
  # next_token: "XmlString",
2032
2055
  # max_records: 1,
2033
2056
  # }
@@ -2119,7 +2142,7 @@ module Aws::AutoScaling
2119
2142
  # data as a hash:
2120
2143
  #
2121
2144
  # {
2122
- # auto_scaling_group_names: ["ResourceName"],
2145
+ # auto_scaling_group_names: ["XmlStringMaxLen255"],
2123
2146
  # next_token: "XmlString",
2124
2147
  # max_records: 1,
2125
2148
  # }
@@ -2152,7 +2175,7 @@ module Aws::AutoScaling
2152
2175
  # data as a hash:
2153
2176
  #
2154
2177
  # {
2155
- # auto_scaling_group_name: "ResourceName",
2178
+ # auto_scaling_group_name: "XmlStringMaxLen255",
2156
2179
  # policy_names: ["ResourceName"],
2157
2180
  # policy_types: ["XmlStringMaxLen64"],
2158
2181
  # next_token: "XmlString",
@@ -2202,7 +2225,7 @@ module Aws::AutoScaling
2202
2225
  #
2203
2226
  # {
2204
2227
  # activity_ids: ["XmlString"],
2205
- # auto_scaling_group_name: "ResourceName",
2228
+ # auto_scaling_group_name: "XmlStringMaxLen255",
2206
2229
  # max_records: 1,
2207
2230
  # next_token: "XmlString",
2208
2231
  # }
@@ -2244,8 +2267,8 @@ module Aws::AutoScaling
2244
2267
  # data as a hash:
2245
2268
  #
2246
2269
  # {
2247
- # auto_scaling_group_name: "ResourceName",
2248
- # scheduled_action_names: ["ResourceName"],
2270
+ # auto_scaling_group_name: "XmlStringMaxLen255",
2271
+ # scheduled_action_names: ["XmlStringMaxLen255"],
2249
2272
  # start_time: Time.now,
2250
2273
  # end_time: Time.now,
2251
2274
  # next_token: "XmlString",
@@ -2369,7 +2392,7 @@ module Aws::AutoScaling
2369
2392
  #
2370
2393
  # {
2371
2394
  # instance_ids: ["XmlStringMaxLen19"],
2372
- # auto_scaling_group_name: "ResourceName", # required
2395
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
2373
2396
  # should_decrement_desired_capacity: false, # required
2374
2397
  # }
2375
2398
  #
@@ -2404,7 +2427,7 @@ module Aws::AutoScaling
2404
2427
  # data as a hash:
2405
2428
  #
2406
2429
  # {
2407
- # auto_scaling_group_name: "ResourceName", # required
2430
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
2408
2431
  # target_group_arns: ["XmlStringMaxLen511"], # required
2409
2432
  # }
2410
2433
  #
@@ -2434,7 +2457,7 @@ module Aws::AutoScaling
2434
2457
  # data as a hash:
2435
2458
  #
2436
2459
  # {
2437
- # auto_scaling_group_name: "ResourceName", # required
2460
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
2438
2461
  # load_balancer_names: ["XmlStringMaxLen255"], # required
2439
2462
  # }
2440
2463
  #
@@ -2460,7 +2483,7 @@ module Aws::AutoScaling
2460
2483
  # data as a hash:
2461
2484
  #
2462
2485
  # {
2463
- # auto_scaling_group_name: "ResourceName", # required
2486
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
2464
2487
  # metrics: ["XmlStringMaxLen255"],
2465
2488
  # }
2466
2489
  #
@@ -2633,7 +2656,7 @@ module Aws::AutoScaling
2633
2656
  # data as a hash:
2634
2657
  #
2635
2658
  # {
2636
- # auto_scaling_group_name: "ResourceName", # required
2659
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
2637
2660
  # metrics: ["XmlStringMaxLen255"],
2638
2661
  # granularity: "XmlStringMaxLen255", # required
2639
2662
  # }
@@ -2755,7 +2778,7 @@ module Aws::AutoScaling
2755
2778
  #
2756
2779
  # {
2757
2780
  # instance_ids: ["XmlStringMaxLen19"],
2758
- # auto_scaling_group_name: "ResourceName", # required
2781
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
2759
2782
  # should_decrement_desired_capacity: false, # required
2760
2783
  # }
2761
2784
  #
@@ -2786,7 +2809,7 @@ module Aws::AutoScaling
2786
2809
  # data as a hash:
2787
2810
  #
2788
2811
  # {
2789
- # auto_scaling_group_name: "ResourceName",
2812
+ # auto_scaling_group_name: "XmlStringMaxLen255",
2790
2813
  # policy_name: "ResourceName", # required
2791
2814
  # honor_cooldown: false,
2792
2815
  # metric_value: 1.0,
@@ -2864,7 +2887,7 @@ module Aws::AutoScaling
2864
2887
  #
2865
2888
  # {
2866
2889
  # instance_ids: ["XmlStringMaxLen19"],
2867
- # auto_scaling_group_name: "ResourceName", # required
2890
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
2868
2891
  # }
2869
2892
  #
2870
2893
  # @!attribute [rw] instance_ids
@@ -2961,7 +2984,12 @@ module Aws::AutoScaling
2961
2984
  #
2962
2985
  # @!attribute [rw] lifecycle_state
2963
2986
  # A description of the current lifecycle state. The `Quarantined`
2964
- # state is not used.
2987
+ # state is not used. For information about lifecycle states, see
2988
+ # [Instance lifecycle][1] in the *Amazon EC2 Auto Scaling User Guide*.
2989
+ #
2990
+ #
2991
+ #
2992
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/AutoScalingGroupLifecycle.html
2965
2993
  # @return [String]
2966
2994
  #
2967
2995
  # @!attribute [rw] health_status
@@ -3048,8 +3076,6 @@ module Aws::AutoScaling
3048
3076
  # requests can travel.
3049
3077
  #
3050
3078
  # Default: 1
3051
- #
3052
- # Possible values: Integers from 1 to 64
3053
3079
  # @return [Integer]
3054
3080
  #
3055
3081
  # @!attribute [rw] http_endpoint
@@ -3242,30 +3268,29 @@ module Aws::AutoScaling
3242
3268
  #
3243
3269
  # @!attribute [rw] spot_allocation_strategy
3244
3270
  # Indicates how to allocate instances across Spot Instance pools. If
3245
- # the allocation strategy is `lowest-price`, the Auto Scaling group
3271
+ # the allocation strategy is `capacity-optimized` (recommended), the
3272
+ # Auto Scaling group launches instances using Spot pools that are
3273
+ # optimally chosen based on the available Spot capacity. If the
3274
+ # allocation strategy is `lowest-price`, the Auto Scaling group
3246
3275
  # launches instances using the Spot pools with the lowest price, and
3247
3276
  # evenly allocates your instances across the number of Spot pools that
3248
- # you specify. If the allocation strategy is `capacity-optimized`, the
3249
- # Auto Scaling group launches instances using Spot pools that are
3250
- # optimally chosen based on the available Spot capacity. Defaults to
3251
- # `lowest-price` if not specified.
3277
+ # you specify. Defaults to `lowest-price` if not specified.
3252
3278
  # @return [String]
3253
3279
  #
3254
3280
  # @!attribute [rw] spot_instance_pools
3255
3281
  # The number of Spot Instance pools across which to allocate your Spot
3256
3282
  # Instances. The Spot pools are determined from the different instance
3257
- # types in the overrides. Defaults to 2 if not specified. Valid only
3258
- # when the Spot allocation strategy is `lowest-price`.
3259
- #
3260
- # Valid Range: Minimum value of 1. Maximum value of 20.
3283
+ # types in the overrides. Valid only when the Spot allocation strategy
3284
+ # is `lowest-price`. Value must be in the range of 1 to 20. Defaults
3285
+ # to 2 if not specified.
3261
3286
  # @return [Integer]
3262
3287
  #
3263
3288
  # @!attribute [rw] spot_max_price
3264
3289
  # The maximum price per unit hour that you are willing to pay for a
3265
- # Spot Instance. If you leave the value of this parameter blank (which
3266
- # is the default), the maximum Spot price is set at the On-Demand
3267
- # price. To remove a value that you previously set, include the
3268
- # parameter but leave the value blank.
3290
+ # Spot Instance. If you leave the value at its default (empty), Amazon
3291
+ # EC2 Auto Scaling uses the On-Demand price as the maximum Spot price.
3292
+ # To remove a value that you previously set, include the property but
3293
+ # specify an empty string ("") for the value.
3269
3294
  # @return [String]
3270
3295
  #
3271
3296
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/InstancesDistribution AWS API Documentation
@@ -3363,13 +3388,17 @@ module Aws::AutoScaling
3363
3388
  # @return [Array<String>]
3364
3389
  #
3365
3390
  # @!attribute [rw] user_data
3366
- # The Base64-encoded user data to make available to the launched EC2
3367
- # instances. For more information, see [Instance metadata and user
3368
- # data][1] in the *Amazon EC2 User Guide for Linux Instances*.
3391
+ # The user data to make available to the launched EC2 instances. For
3392
+ # more information, see [Instance metadata and user data][1] (Linux)
3393
+ # and [Instance metadata and user data][2] (Windows). If you are using
3394
+ # a command line tool, base64-encoding is performed for you, and you
3395
+ # can load the text from a file. Otherwise, you must provide
3396
+ # base64-encoded text. User data is limited to 16 KB.
3369
3397
  #
3370
3398
  #
3371
3399
  #
3372
3400
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
3401
+ # [2]: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html
3373
3402
  # @return [String]
3374
3403
  #
3375
3404
  # @!attribute [rw] instance_type
@@ -3377,7 +3406,7 @@ module Aws::AutoScaling
3377
3406
  #
3378
3407
  # For information about available instance types, see [Available
3379
3408
  # Instance Types][1] in the *Amazon EC2 User Guide for Linux
3380
- # Instances.*
3409
+ # Instances*.
3381
3410
  #
3382
3411
  #
3383
3412
  #
@@ -3518,7 +3547,7 @@ module Aws::AutoScaling
3518
3547
  # data as a hash:
3519
3548
  #
3520
3549
  # {
3521
- # launch_configuration_name: "ResourceName", # required
3550
+ # launch_configuration_name: "XmlStringMaxLen255", # required
3522
3551
  # }
3523
3552
  #
3524
3553
  # @!attribute [rw] launch_configuration_name
@@ -3537,7 +3566,7 @@ module Aws::AutoScaling
3537
3566
  # data as a hash:
3538
3567
  #
3539
3568
  # {
3540
- # launch_configuration_names: ["ResourceName"],
3569
+ # launch_configuration_names: ["XmlStringMaxLen255"],
3541
3570
  # next_token: "XmlString",
3542
3571
  # max_records: 1,
3543
3572
  # }
@@ -3590,9 +3619,7 @@ module Aws::AutoScaling
3590
3619
 
3591
3620
  # Describes a launch template and overrides.
3592
3621
  #
3593
- # The overrides are used to override the instance type specified by the
3594
- # launch template with multiple instance types that can be used to
3595
- # launch On-Demand Instances and Spot Instances.
3622
+ # You specify these parameters as part of a mixed instances policy.
3596
3623
  #
3597
3624
  # When you update the launch template or overrides, existing Amazon EC2
3598
3625
  # instances continue to run. When scale out occurs, Amazon EC2 Auto
@@ -3613,6 +3640,11 @@ module Aws::AutoScaling
3613
3640
  # {
3614
3641
  # instance_type: "XmlStringMaxLen255",
3615
3642
  # weighted_capacity: "XmlStringMaxLen32",
3643
+ # launch_template_specification: {
3644
+ # launch_template_id: "XmlStringMaxLen255",
3645
+ # launch_template_name: "LaunchTemplateName",
3646
+ # version: "XmlStringMaxLen255",
3647
+ # },
3616
3648
  # },
3617
3649
  # ],
3618
3650
  # }
@@ -3623,10 +3655,9 @@ module Aws::AutoScaling
3623
3655
  #
3624
3656
  # @!attribute [rw] overrides
3625
3657
  # Any parameters that you specify override the same parameters in the
3626
- # launch template. Currently, the only supported override is instance
3627
- # type. You can specify between 1 and 20 instance types. If not
3628
- # provided, Amazon EC2 Auto Scaling will use the instance type
3629
- # specified in the launch template when it launches an instance.
3658
+ # launch template. If not provided, Amazon EC2 Auto Scaling uses the
3659
+ # instance type specified in the launch template when it launches an
3660
+ # instance.
3630
3661
  # @return [Array<Types::LaunchTemplateOverrides>]
3631
3662
  #
3632
3663
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchTemplate AWS API Documentation
@@ -3638,11 +3669,16 @@ module Aws::AutoScaling
3638
3669
  include Aws::Structure
3639
3670
  end
3640
3671
 
3641
- # Describes an override for a launch template. Currently, the only
3642
- # supported override is instance type.
3672
+ # Describes an override for a launch template. The maximum number of
3673
+ # instance types that can be associated with an Auto Scaling group is
3674
+ # 40. The maximum number of distinct launch templates you can define for
3675
+ # an Auto Scaling group is 20. For more information about configuring
3676
+ # overrides, see [Configuring overrides][1] in the *Amazon EC2 Auto
3677
+ # Scaling User Guide*.
3678
+ #
3643
3679
  #
3644
- # The maximum number of instance type overrides that can be associated
3645
- # with an Auto Scaling group is 20.
3680
+ #
3681
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-override-options.html
3646
3682
  #
3647
3683
  # @note When making an API call, you may pass LaunchTemplateOverrides
3648
3684
  # data as a hash:
@@ -3650,18 +3686,22 @@ module Aws::AutoScaling
3650
3686
  # {
3651
3687
  # instance_type: "XmlStringMaxLen255",
3652
3688
  # weighted_capacity: "XmlStringMaxLen32",
3689
+ # launch_template_specification: {
3690
+ # launch_template_id: "XmlStringMaxLen255",
3691
+ # launch_template_name: "LaunchTemplateName",
3692
+ # version: "XmlStringMaxLen255",
3693
+ # },
3653
3694
  # }
3654
3695
  #
3655
3696
  # @!attribute [rw] instance_type
3656
3697
  # The instance type, such as `m3.xlarge`. You must use an instance
3657
3698
  # type that is supported in your requested Region and Availability
3658
- # Zones. For information about available instance types, see
3659
- # [Available instance types][1] in the *Amazon Elastic Compute Cloud
3660
- # User Guide.*
3699
+ # Zones. For more information, see [Instance types][1] in the *Amazon
3700
+ # Elastic Compute Cloud User Guide*.
3661
3701
  #
3662
3702
  #
3663
3703
  #
3664
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#AvailableInstanceTypes
3704
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html
3665
3705
  # @return [String]
3666
3706
  #
3667
3707
  # @!attribute [rw] weighted_capacity
@@ -3676,20 +3716,34 @@ module Aws::AutoScaling
3676
3716
  # with a `WeightedCapacity` of 5 units, the instance is provisioned,
3677
3717
  # and the desired capacity is exceeded by 3 units. For more
3678
3718
  # information, see [Instance weighting for Amazon EC2 Auto Scaling][1]
3679
- # in the *Amazon EC2 Auto Scaling User Guide*.
3680
- #
3681
- # Valid Range: Minimum value of 1. Maximum value of 999.
3719
+ # in the *Amazon EC2 Auto Scaling User Guide*. Value must be in the
3720
+ # range of 1 to 999.
3682
3721
  #
3683
3722
  #
3684
3723
  #
3685
3724
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-weighting.html
3686
3725
  # @return [String]
3687
3726
  #
3727
+ # @!attribute [rw] launch_template_specification
3728
+ # Provides the launch template to be used when launching the instance
3729
+ # type. For example, some instance types might require a launch
3730
+ # template with a different AMI. If not provided, Amazon EC2 Auto
3731
+ # Scaling uses the launch template that's defined for your mixed
3732
+ # instances policy. For more information, see [Specifying a different
3733
+ # launch template for an instance type][1] in the *Amazon EC2 Auto
3734
+ # Scaling User Guide*.
3735
+ #
3736
+ #
3737
+ #
3738
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-launch-template-overrides.html
3739
+ # @return [Types::LaunchTemplateSpecification]
3740
+ #
3688
3741
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchTemplateOverrides AWS API Documentation
3689
3742
  #
3690
3743
  class LaunchTemplateOverrides < Struct.new(
3691
3744
  :instance_type,
3692
- :weighted_capacity)
3745
+ :weighted_capacity,
3746
+ :launch_template_specification)
3693
3747
  SENSITIVE = []
3694
3748
  include Aws::Structure
3695
3749
  end
@@ -3720,8 +3774,10 @@ module Aws::AutoScaling
3720
3774
  # The ID of the launch template. To get the template ID, use the
3721
3775
  # Amazon EC2 [DescribeLaunchTemplates][1] API operation. New launch
3722
3776
  # templates can be created using the Amazon EC2
3723
- # [CreateLaunchTemplate][2] API. You must specify either a
3724
- # `LaunchTemplateId` or a `LaunchTemplateName`.
3777
+ # [CreateLaunchTemplate][2] API.
3778
+ #
3779
+ # Conditional: You must specify either a `LaunchTemplateId` or a
3780
+ # `LaunchTemplateName`.
3725
3781
  #
3726
3782
  #
3727
3783
  #
@@ -3733,8 +3789,10 @@ module Aws::AutoScaling
3733
3789
  # The name of the launch template. To get the template name, use the
3734
3790
  # Amazon EC2 [DescribeLaunchTemplates][1] API operation. New launch
3735
3791
  # templates can be created using the Amazon EC2
3736
- # [CreateLaunchTemplate][2] API. You must specify either a
3737
- # `LaunchTemplateId` or a `LaunchTemplateName`.
3792
+ # [CreateLaunchTemplate][2] API.
3793
+ #
3794
+ # Conditional: You must specify either a `LaunchTemplateId` or a
3795
+ # `LaunchTemplateName`.
3738
3796
  #
3739
3797
  #
3740
3798
  #
@@ -3888,7 +3946,7 @@ module Aws::AutoScaling
3888
3946
  # heartbeat_timeout: 1,
3889
3947
  # default_result: "LifecycleActionResult",
3890
3948
  # notification_target_arn: "NotificationTargetResourceName",
3891
- # role_arn: "ResourceName",
3949
+ # role_arn: "XmlStringMaxLen255",
3892
3950
  # }
3893
3951
  #
3894
3952
  # @!attribute [rw] lifecycle_hook_name
@@ -4148,8 +4206,8 @@ module Aws::AutoScaling
4148
4206
  # Describes a mixed instances policy for an Auto Scaling group. With
4149
4207
  # mixed instances, your Auto Scaling group can provision a combination
4150
4208
  # of On-Demand Instances and Spot Instances across multiple instance
4151
- # types. For more information, see [Auto Scaling Groups with Multiple
4152
- # Instance Types and Purchase Options][1] in the *Amazon EC2 Auto
4209
+ # types. For more information, see [Auto Scaling groups with multiple
4210
+ # instance types and purchase options][1] in the *Amazon EC2 Auto
4153
4211
  # Scaling User Guide*.
4154
4212
  #
4155
4213
  # You can create a mixed instances policy for a new Auto Scaling group,
@@ -4175,6 +4233,11 @@ module Aws::AutoScaling
4175
4233
  # {
4176
4234
  # instance_type: "XmlStringMaxLen255",
4177
4235
  # weighted_capacity: "XmlStringMaxLen32",
4236
+ # launch_template_specification: {
4237
+ # launch_template_id: "XmlStringMaxLen255",
4238
+ # launch_template_name: "LaunchTemplateName",
4239
+ # version: "XmlStringMaxLen255",
4240
+ # },
4178
4241
  # },
4179
4242
  # ],
4180
4243
  # },
@@ -4412,9 +4475,9 @@ module Aws::AutoScaling
4412
4475
  #
4413
4476
  # {
4414
4477
  # lifecycle_hook_name: "AsciiStringMaxLen255", # required
4415
- # auto_scaling_group_name: "ResourceName", # required
4478
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
4416
4479
  # lifecycle_transition: "LifecycleTransition",
4417
- # role_arn: "ResourceName",
4480
+ # role_arn: "XmlStringMaxLen255",
4418
4481
  # notification_target_arn: "NotificationTargetResourceName",
4419
4482
  # notification_metadata: "XmlStringMaxLen1023",
4420
4483
  # heartbeat_timeout: 1,
@@ -4510,8 +4573,8 @@ module Aws::AutoScaling
4510
4573
  # data as a hash:
4511
4574
  #
4512
4575
  # {
4513
- # auto_scaling_group_name: "ResourceName", # required
4514
- # topic_arn: "ResourceName", # required
4576
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
4577
+ # topic_arn: "XmlStringMaxLen255", # required
4515
4578
  # notification_types: ["XmlStringMaxLen255"], # required
4516
4579
  # }
4517
4580
  #
@@ -4544,7 +4607,7 @@ module Aws::AutoScaling
4544
4607
  # data as a hash:
4545
4608
  #
4546
4609
  # {
4547
- # auto_scaling_group_name: "ResourceName", # required
4610
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
4548
4611
  # policy_name: "XmlStringMaxLen255", # required
4549
4612
  # policy_type: "XmlStringMaxLen64",
4550
4613
  # adjustment_type: "XmlStringMaxLen255",
@@ -4758,7 +4821,7 @@ module Aws::AutoScaling
4758
4821
  # data as a hash:
4759
4822
  #
4760
4823
  # {
4761
- # auto_scaling_group_name: "ResourceName", # required
4824
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
4762
4825
  # scheduled_action_name: "XmlStringMaxLen255", # required
4763
4826
  # time: Time.now,
4764
4827
  # start_time: Time.now,
@@ -5079,7 +5142,7 @@ module Aws::AutoScaling
5079
5142
  # data as a hash:
5080
5143
  #
5081
5144
  # {
5082
- # auto_scaling_group_name: "ResourceName", # required
5145
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
5083
5146
  # scaling_processes: ["XmlStringMaxLen255"],
5084
5147
  # }
5085
5148
  #
@@ -5309,7 +5372,7 @@ module Aws::AutoScaling
5309
5372
  # data as a hash:
5310
5373
  #
5311
5374
  # {
5312
- # auto_scaling_group_name: "ResourceName", # required
5375
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
5313
5376
  # desired_capacity: 1, # required
5314
5377
  # honor_cooldown: false,
5315
5378
  # }
@@ -5396,7 +5459,7 @@ module Aws::AutoScaling
5396
5459
  #
5397
5460
  # {
5398
5461
  # instance_ids: ["XmlStringMaxLen19"], # required
5399
- # auto_scaling_group_name: "ResourceName", # required
5462
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
5400
5463
  # protected_from_scale_in: false, # required
5401
5464
  # }
5402
5465
  #
@@ -5790,8 +5853,8 @@ module Aws::AutoScaling
5790
5853
  # data as a hash:
5791
5854
  #
5792
5855
  # {
5793
- # auto_scaling_group_name: "ResourceName", # required
5794
- # launch_configuration_name: "ResourceName",
5856
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
5857
+ # launch_configuration_name: "XmlStringMaxLen255",
5795
5858
  # launch_template: {
5796
5859
  # launch_template_id: "XmlStringMaxLen255",
5797
5860
  # launch_template_name: "LaunchTemplateName",
@@ -5808,6 +5871,11 @@ module Aws::AutoScaling
5808
5871
  # {
5809
5872
  # instance_type: "XmlStringMaxLen255",
5810
5873
  # weighted_capacity: "XmlStringMaxLen32",
5874
+ # launch_template_specification: {
5875
+ # launch_template_id: "XmlStringMaxLen255",
5876
+ # launch_template_name: "LaunchTemplateName",
5877
+ # version: "XmlStringMaxLen255",
5878
+ # },
5811
5879
  # },
5812
5880
  # ],
5813
5881
  # },
@@ -5856,7 +5924,7 @@ module Aws::AutoScaling
5856
5924
  # An embedded object that specifies a mixed instances policy. When you
5857
5925
  # make changes to an existing policy, all optional parameters are left
5858
5926
  # unchanged if not specified. For more information, see [Auto Scaling
5859
- # Groups with Multiple Instance Types and Purchase Options][1] in the
5927
+ # groups with multiple instance types and purchase options][1] in the
5860
5928
  # *Amazon EC2 Auto Scaling User Guide*.
5861
5929
  #
5862
5930
  #