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.
- checksums.yaml +4 -4
- data/lib/aws-sdk-autoscaling.rb +1 -1
- data/lib/aws-sdk-autoscaling/auto_scaling_group.rb +8 -3
- data/lib/aws-sdk-autoscaling/client.rb +116 -81
- data/lib/aws-sdk-autoscaling/client_api.rb +49 -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 +31 -25
- 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 +180 -112
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35dc1582f02299dec2b0e6afd204ac015234f6d68bb371d27156e397bfe5c714
|
4
|
+
data.tar.gz: 48558fc7e07622dcb617b09365f6bedfb90688535fd6dda246d891689c7f0e82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c93ffcd12ad3839f85e7500055442a611491823b647edf6b8c70665c728315463be71f0d619bcd3bbafc9aae48da76494737056245a66d5eb46cdfaeaca3c20
|
7
|
+
data.tar.gz: 8601c029719dcdeb52a3cb45d24797b3a92e5d874f08617b5af6266d06f9b036e41a0de7c27580ac1903120c31b1b717dadafd0e53819635613f8b9125cf9076
|
data/lib/aws-sdk-autoscaling.rb
CHANGED
@@ -879,7 +879,7 @@ module Aws::AutoScaling
|
|
879
879
|
# @example Request syntax with placeholder values
|
880
880
|
#
|
881
881
|
# autoscalinggroup = auto_scaling_group.update({
|
882
|
-
# launch_configuration_name: "
|
882
|
+
# launch_configuration_name: "XmlStringMaxLen255",
|
883
883
|
# launch_template: {
|
884
884
|
# launch_template_id: "XmlStringMaxLen255",
|
885
885
|
# launch_template_name: "LaunchTemplateName",
|
@@ -896,6 +896,11 @@ module Aws::AutoScaling
|
|
896
896
|
# {
|
897
897
|
# instance_type: "XmlStringMaxLen255",
|
898
898
|
# weighted_capacity: "XmlStringMaxLen32",
|
899
|
+
# launch_template_specification: {
|
900
|
+
# launch_template_id: "XmlStringMaxLen255",
|
901
|
+
# launch_template_name: "LaunchTemplateName",
|
902
|
+
# version: "XmlStringMaxLen255",
|
903
|
+
# },
|
899
904
|
# },
|
900
905
|
# ],
|
901
906
|
# },
|
@@ -936,7 +941,7 @@ module Aws::AutoScaling
|
|
936
941
|
# An embedded object that specifies a mixed instances policy. When you
|
937
942
|
# make changes to an existing policy, all optional parameters are left
|
938
943
|
# unchanged if not specified. For more information, see [Auto Scaling
|
939
|
-
#
|
944
|
+
# groups with multiple instance types and purchase options][1] in the
|
940
945
|
# *Amazon EC2 Auto Scaling User Guide*.
|
941
946
|
#
|
942
947
|
#
|
@@ -1269,7 +1274,7 @@ module Aws::AutoScaling
|
|
1269
1274
|
# @example Request syntax with placeholder values
|
1270
1275
|
#
|
1271
1276
|
# scheduled_actions = auto_scaling_group.scheduled_actions({
|
1272
|
-
# scheduled_action_names: ["
|
1277
|
+
# scheduled_action_names: ["XmlStringMaxLen255"],
|
1273
1278
|
# start_time: Time.now,
|
1274
1279
|
# end_time: Time.now,
|
1275
1280
|
# })
|
@@ -372,7 +372,7 @@ module Aws::AutoScaling
|
|
372
372
|
#
|
373
373
|
# resp = client.attach_instances({
|
374
374
|
# instance_ids: ["XmlStringMaxLen19"],
|
375
|
-
# auto_scaling_group_name: "
|
375
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
376
376
|
# })
|
377
377
|
#
|
378
378
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachInstances AWS API Documentation
|
@@ -387,26 +387,38 @@ module Aws::AutoScaling
|
|
387
387
|
# Attaches one or more target groups to the specified Auto Scaling
|
388
388
|
# group.
|
389
389
|
#
|
390
|
+
# This operation is used with the following load balancer types:
|
391
|
+
#
|
392
|
+
# * Application Load Balancer - Operates at the application layer (layer
|
393
|
+
# 7) and supports HTTP and HTTPS.
|
394
|
+
#
|
395
|
+
# * Network Load Balancer - Operates at the transport layer (layer 4)
|
396
|
+
# and supports TCP, TLS, and UDP.
|
397
|
+
#
|
398
|
+
# * Gateway Load Balancer - Operates at the network layer (layer 3).
|
399
|
+
#
|
390
400
|
# To describe the target groups for an Auto Scaling group, call the
|
391
401
|
# DescribeLoadBalancerTargetGroups API. To detach the target group from
|
392
402
|
# the Auto Scaling group, call the DetachLoadBalancerTargetGroups API.
|
393
403
|
#
|
394
|
-
#
|
395
|
-
#
|
396
|
-
# Balancers, instances are registered with the load balancer. For more
|
397
|
-
# information, see [Attaching a load balancer to your Auto Scaling
|
398
|
-
# group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
404
|
+
# For more information, see [Elastic Load Balancing and Amazon EC2 Auto
|
405
|
+
# Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
399
406
|
#
|
400
407
|
#
|
401
408
|
#
|
402
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/
|
409
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html
|
403
410
|
#
|
404
411
|
# @option params [required, String] :auto_scaling_group_name
|
405
412
|
# The name of the Auto Scaling group.
|
406
413
|
#
|
407
414
|
# @option params [required, Array<String>] :target_group_arns
|
408
415
|
# The Amazon Resource Names (ARN) of the target groups. You can specify
|
409
|
-
# up to 10 target groups.
|
416
|
+
# up to 10 target groups. To get the ARN of a target group, use the
|
417
|
+
# Elastic Load Balancing [DescribeTargetGroups][1] API operation.
|
418
|
+
#
|
419
|
+
#
|
420
|
+
#
|
421
|
+
# [1]: https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeTargetGroups.html
|
410
422
|
#
|
411
423
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
412
424
|
#
|
@@ -425,7 +437,7 @@ module Aws::AutoScaling
|
|
425
437
|
# @example Request syntax with placeholder values
|
426
438
|
#
|
427
439
|
# resp = client.attach_load_balancer_target_groups({
|
428
|
-
# auto_scaling_group_name: "
|
440
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
429
441
|
# target_group_arns: ["XmlStringMaxLen511"], # required
|
430
442
|
# })
|
431
443
|
#
|
@@ -438,8 +450,9 @@ module Aws::AutoScaling
|
|
438
450
|
req.send_request(options)
|
439
451
|
end
|
440
452
|
|
441
|
-
# <note markdown="1"> To attach an Application Load Balancer
|
442
|
-
# the AttachLoadBalancerTargetGroups API
|
453
|
+
# <note markdown="1"> To attach an Application Load Balancer, Network Load Balancer, or
|
454
|
+
# Gateway Load Balancer, use the AttachLoadBalancerTargetGroups API
|
455
|
+
# operation instead.
|
443
456
|
#
|
444
457
|
# </note>
|
445
458
|
#
|
@@ -451,12 +464,12 @@ module Aws::AutoScaling
|
|
451
464
|
# DescribeLoadBalancers API. To detach the load balancer from the Auto
|
452
465
|
# Scaling group, call the DetachLoadBalancers API.
|
453
466
|
#
|
454
|
-
# For more information, see [
|
455
|
-
# Scaling
|
467
|
+
# For more information, see [Elastic Load Balancing and Amazon EC2 Auto
|
468
|
+
# Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
456
469
|
#
|
457
470
|
#
|
458
471
|
#
|
459
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/
|
472
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html
|
460
473
|
#
|
461
474
|
# @option params [required, String] :auto_scaling_group_name
|
462
475
|
# The name of the Auto Scaling group.
|
@@ -482,7 +495,7 @@ module Aws::AutoScaling
|
|
482
495
|
# @example Request syntax with placeholder values
|
483
496
|
#
|
484
497
|
# resp = client.attach_load_balancers({
|
485
|
-
# auto_scaling_group_name: "
|
498
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
486
499
|
# load_balancer_names: ["XmlStringMaxLen255"], # required
|
487
500
|
# })
|
488
501
|
#
|
@@ -512,8 +525,8 @@ module Aws::AutoScaling
|
|
512
525
|
# @example Request syntax with placeholder values
|
513
526
|
#
|
514
527
|
# resp = client.batch_delete_scheduled_action({
|
515
|
-
# auto_scaling_group_name: "
|
516
|
-
# scheduled_action_names: ["
|
528
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
529
|
+
# scheduled_action_names: ["XmlStringMaxLen255"], # required
|
517
530
|
# })
|
518
531
|
#
|
519
532
|
# @example Response structure
|
@@ -549,7 +562,7 @@ module Aws::AutoScaling
|
|
549
562
|
# @example Request syntax with placeholder values
|
550
563
|
#
|
551
564
|
# resp = client.batch_put_scheduled_update_group_action({
|
552
|
-
# auto_scaling_group_name: "
|
565
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
553
566
|
# scheduled_update_group_actions: [ # required
|
554
567
|
# {
|
555
568
|
# scheduled_action_name: "XmlStringMaxLen255", # required
|
@@ -714,6 +727,10 @@ module Aws::AutoScaling
|
|
714
727
|
req.send_request(options)
|
715
728
|
end
|
716
729
|
|
730
|
+
# **We strongly recommend using a launch template when calling this
|
731
|
+
# operation to ensure full functionality for Amazon EC2 Auto Scaling and
|
732
|
+
# Amazon EC2.**
|
733
|
+
#
|
717
734
|
# Creates an Auto Scaling group with the specified name and attributes.
|
718
735
|
#
|
719
736
|
# If you exceed your maximum limit of Auto Scaling groups, the call
|
@@ -753,8 +770,8 @@ module Aws::AutoScaling
|
|
753
770
|
# (`LaunchConfigurationName` or `InstanceId`).
|
754
771
|
#
|
755
772
|
# @option params [Types::LaunchTemplateSpecification] :launch_template
|
756
|
-
# Parameters used to specify the
|
757
|
-
#
|
773
|
+
# Parameters used to specify the launch template and version to use to
|
774
|
+
# launch instances.
|
758
775
|
#
|
759
776
|
# Conditional: You must specify either a launch template
|
760
777
|
# (`LaunchTemplate` or `MixedInstancesPolicy`) or a launch configuration
|
@@ -762,15 +779,14 @@ module Aws::AutoScaling
|
|
762
779
|
#
|
763
780
|
# <note markdown="1"> The launch template that is specified must be configured for use with
|
764
781
|
# an Auto Scaling group. For more information, see [Creating a launch
|
765
|
-
# template for an Auto Scaling group][
|
782
|
+
# template for an Auto Scaling group][1] in the *Amazon EC2 Auto Scaling
|
766
783
|
# User Guide*.
|
767
784
|
#
|
768
785
|
# </note>
|
769
786
|
#
|
770
787
|
#
|
771
788
|
#
|
772
|
-
# [1]: https://docs.aws.amazon.com/
|
773
|
-
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html
|
789
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html
|
774
790
|
#
|
775
791
|
# @option params [Types::MixedInstancesPolicy] :mixed_instances_policy
|
776
792
|
# An embedded object that specifies a mixed instances policy. The
|
@@ -783,14 +799,11 @@ module Aws::AutoScaling
|
|
783
799
|
# types to fulfill On-Demand and Spot capacities, but also the
|
784
800
|
# parameters that specify the instance configuration information—the
|
785
801
|
# launch template and instance types. The policy can also include a
|
786
|
-
# weight for each instance type
|
802
|
+
# weight for each instance type and different launch templates for
|
803
|
+
# individual instance types. For more information, see [Auto Scaling
|
787
804
|
# groups with multiple instance types and purchase options][1] in the
|
788
805
|
# *Amazon EC2 Auto Scaling User Guide*.
|
789
806
|
#
|
790
|
-
# Conditional: You must specify either a launch template
|
791
|
-
# (`LaunchTemplate` or `MixedInstancesPolicy`) or a launch configuration
|
792
|
-
# (`LaunchConfigurationName` or `InstanceId`).
|
793
|
-
#
|
794
807
|
#
|
795
808
|
#
|
796
809
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
@@ -854,8 +867,9 @@ module Aws::AutoScaling
|
|
854
867
|
#
|
855
868
|
# @option params [Array<String>] :load_balancer_names
|
856
869
|
# A list of Classic Load Balancers associated with this Auto Scaling
|
857
|
-
# group. For Application Load Balancers
|
858
|
-
# specify `TargetGroupARNs`
|
870
|
+
# group. For Application Load Balancers, Network Load Balancers, and
|
871
|
+
# Gateway Load Balancers, specify the `TargetGroupARNs` property
|
872
|
+
# instead.
|
859
873
|
#
|
860
874
|
# @option params [Array<String>] :target_group_arns
|
861
875
|
# The Amazon Resource Names (ARN) of the target groups to associate with
|
@@ -1052,7 +1066,7 @@ module Aws::AutoScaling
|
|
1052
1066
|
#
|
1053
1067
|
# resp = client.create_auto_scaling_group({
|
1054
1068
|
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1055
|
-
# launch_configuration_name: "
|
1069
|
+
# launch_configuration_name: "XmlStringMaxLen255",
|
1056
1070
|
# launch_template: {
|
1057
1071
|
# launch_template_id: "XmlStringMaxLen255",
|
1058
1072
|
# launch_template_name: "LaunchTemplateName",
|
@@ -1069,6 +1083,11 @@ module Aws::AutoScaling
|
|
1069
1083
|
# {
|
1070
1084
|
# instance_type: "XmlStringMaxLen255",
|
1071
1085
|
# weighted_capacity: "XmlStringMaxLen32",
|
1086
|
+
# launch_template_specification: {
|
1087
|
+
# launch_template_id: "XmlStringMaxLen255",
|
1088
|
+
# launch_template_name: "LaunchTemplateName",
|
1089
|
+
# version: "XmlStringMaxLen255",
|
1090
|
+
# },
|
1072
1091
|
# },
|
1073
1092
|
# ],
|
1074
1093
|
# },
|
@@ -1104,7 +1123,7 @@ module Aws::AutoScaling
|
|
1104
1123
|
# heartbeat_timeout: 1,
|
1105
1124
|
# default_result: "LifecycleActionResult",
|
1106
1125
|
# notification_target_arn: "NotificationTargetResourceName",
|
1107
|
-
# role_arn: "
|
1126
|
+
# role_arn: "XmlStringMaxLen255",
|
1108
1127
|
# },
|
1109
1128
|
# ],
|
1110
1129
|
# tags: [
|
@@ -1214,13 +1233,17 @@ module Aws::AutoScaling
|
|
1214
1233
|
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-ClassicLink
|
1215
1234
|
#
|
1216
1235
|
# @option params [String] :user_data
|
1217
|
-
# The
|
1218
|
-
#
|
1219
|
-
# data][
|
1236
|
+
# The user data to make available to the launched EC2 instances. For
|
1237
|
+
# more information, see [Instance metadata and user data][1] (Linux) and
|
1238
|
+
# [Instance metadata and user data][2] (Windows). If you are using a
|
1239
|
+
# command line tool, base64-encoding is performed for you, and you can
|
1240
|
+
# load the text from a file. Otherwise, you must provide base64-encoded
|
1241
|
+
# text. User data is limited to 16 KB.
|
1220
1242
|
#
|
1221
1243
|
#
|
1222
1244
|
#
|
1223
1245
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
|
1246
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html
|
1224
1247
|
#
|
1225
1248
|
# @option params [String] :instance_id
|
1226
1249
|
# The ID of the instance to use to create the launch configuration. The
|
@@ -1245,7 +1268,7 @@ module Aws::AutoScaling
|
|
1245
1268
|
# Specifies the instance type of the EC2 instance.
|
1246
1269
|
#
|
1247
1270
|
# For information about available instance types, see [Available
|
1248
|
-
# Instance Types][1] in the *Amazon EC2 User Guide for Linux Instances
|
1271
|
+
# Instance Types][1] in the *Amazon EC2 User Guide for Linux Instances*.
|
1249
1272
|
#
|
1250
1273
|
# If you do not specify `InstanceId`, you must specify `InstanceType`.
|
1251
1274
|
#
|
@@ -1374,7 +1397,7 @@ module Aws::AutoScaling
|
|
1374
1397
|
#
|
1375
1398
|
#
|
1376
1399
|
#
|
1377
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/
|
1400
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/auto-scaling-dedicated-instances.html
|
1378
1401
|
#
|
1379
1402
|
# @option params [Types::InstanceMetadataOptions] :metadata_options
|
1380
1403
|
# The metadata options for the instances. For more information, see
|
@@ -1570,7 +1593,7 @@ module Aws::AutoScaling
|
|
1570
1593
|
# @example Request syntax with placeholder values
|
1571
1594
|
#
|
1572
1595
|
# resp = client.delete_auto_scaling_group({
|
1573
|
-
# auto_scaling_group_name: "
|
1596
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1574
1597
|
# force_delete: false,
|
1575
1598
|
# })
|
1576
1599
|
#
|
@@ -1606,7 +1629,7 @@ module Aws::AutoScaling
|
|
1606
1629
|
# @example Request syntax with placeholder values
|
1607
1630
|
#
|
1608
1631
|
# resp = client.delete_launch_configuration({
|
1609
|
-
# launch_configuration_name: "
|
1632
|
+
# launch_configuration_name: "XmlStringMaxLen255", # required
|
1610
1633
|
# })
|
1611
1634
|
#
|
1612
1635
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLaunchConfiguration AWS API Documentation
|
@@ -1646,7 +1669,7 @@ module Aws::AutoScaling
|
|
1646
1669
|
#
|
1647
1670
|
# resp = client.delete_lifecycle_hook({
|
1648
1671
|
# lifecycle_hook_name: "AsciiStringMaxLen255", # required
|
1649
|
-
# auto_scaling_group_name: "
|
1672
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1650
1673
|
# })
|
1651
1674
|
#
|
1652
1675
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHook AWS API Documentation
|
@@ -1682,8 +1705,8 @@ module Aws::AutoScaling
|
|
1682
1705
|
# @example Request syntax with placeholder values
|
1683
1706
|
#
|
1684
1707
|
# resp = client.delete_notification_configuration({
|
1685
|
-
# auto_scaling_group_name: "
|
1686
|
-
# topic_arn: "
|
1708
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1709
|
+
# topic_arn: "XmlStringMaxLen255", # required
|
1687
1710
|
# })
|
1688
1711
|
#
|
1689
1712
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteNotificationConfiguration AWS API Documentation
|
@@ -1729,7 +1752,7 @@ module Aws::AutoScaling
|
|
1729
1752
|
# @example Request syntax with placeholder values
|
1730
1753
|
#
|
1731
1754
|
# resp = client.delete_policy({
|
1732
|
-
# auto_scaling_group_name: "
|
1755
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
1733
1756
|
# policy_name: "ResourceName", # required
|
1734
1757
|
# })
|
1735
1758
|
#
|
@@ -1765,8 +1788,8 @@ module Aws::AutoScaling
|
|
1765
1788
|
# @example Request syntax with placeholder values
|
1766
1789
|
#
|
1767
1790
|
# resp = client.delete_scheduled_action({
|
1768
|
-
# auto_scaling_group_name: "
|
1769
|
-
# scheduled_action_name: "
|
1791
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1792
|
+
# scheduled_action_name: "XmlStringMaxLen255", # required
|
1770
1793
|
# })
|
1771
1794
|
#
|
1772
1795
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteScheduledAction AWS API Documentation
|
@@ -2010,7 +2033,7 @@ module Aws::AutoScaling
|
|
2010
2033
|
# @example Request syntax with placeholder values
|
2011
2034
|
#
|
2012
2035
|
# resp = client.describe_auto_scaling_groups({
|
2013
|
-
# auto_scaling_group_names: ["
|
2036
|
+
# auto_scaling_group_names: ["XmlStringMaxLen255"],
|
2014
2037
|
# next_token: "XmlString",
|
2015
2038
|
# max_records: 1,
|
2016
2039
|
# })
|
@@ -2030,6 +2053,9 @@ module Aws::AutoScaling
|
|
2030
2053
|
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides #=> Array
|
2031
2054
|
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].instance_type #=> String
|
2032
2055
|
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].weighted_capacity #=> String
|
2056
|
+
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].launch_template_specification.launch_template_id #=> String
|
2057
|
+
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].launch_template_specification.launch_template_name #=> String
|
2058
|
+
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].launch_template_specification.version #=> String
|
2033
2059
|
# resp.auto_scaling_groups[0].mixed_instances_policy.instances_distribution.on_demand_allocation_strategy #=> String
|
2034
2060
|
# resp.auto_scaling_groups[0].mixed_instances_policy.instances_distribution.on_demand_base_capacity #=> Integer
|
2035
2061
|
# resp.auto_scaling_groups[0].mixed_instances_policy.instances_distribution.on_demand_percentage_above_base_capacity #=> Integer
|
@@ -2390,7 +2416,7 @@ module Aws::AutoScaling
|
|
2390
2416
|
# @example Request syntax with placeholder values
|
2391
2417
|
#
|
2392
2418
|
# resp = client.describe_launch_configurations({
|
2393
|
-
# launch_configuration_names: ["
|
2419
|
+
# launch_configuration_names: ["XmlStringMaxLen255"],
|
2394
2420
|
# next_token: "XmlString",
|
2395
2421
|
# max_records: 1,
|
2396
2422
|
# })
|
@@ -2525,7 +2551,7 @@ module Aws::AutoScaling
|
|
2525
2551
|
# @example Request syntax with placeholder values
|
2526
2552
|
#
|
2527
2553
|
# resp = client.describe_lifecycle_hooks({
|
2528
|
-
# auto_scaling_group_name: "
|
2554
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
2529
2555
|
# lifecycle_hook_names: ["AsciiStringMaxLen255"],
|
2530
2556
|
# })
|
2531
2557
|
#
|
@@ -2591,7 +2617,7 @@ module Aws::AutoScaling
|
|
2591
2617
|
# @example Request syntax with placeholder values
|
2592
2618
|
#
|
2593
2619
|
# resp = client.describe_load_balancer_target_groups({
|
2594
|
-
# auto_scaling_group_name: "
|
2620
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
2595
2621
|
# next_token: "XmlString",
|
2596
2622
|
# max_records: 1,
|
2597
2623
|
# })
|
@@ -2615,8 +2641,8 @@ module Aws::AutoScaling
|
|
2615
2641
|
# Describes the load balancers for the specified Auto Scaling group.
|
2616
2642
|
#
|
2617
2643
|
# This operation describes only Classic Load Balancers. If you have
|
2618
|
-
# Application Load Balancers
|
2619
|
-
# DescribeLoadBalancerTargetGroups API instead.
|
2644
|
+
# Application Load Balancers, Network Load Balancers, or Gateway Load
|
2645
|
+
# Balancers, use the DescribeLoadBalancerTargetGroups API instead.
|
2620
2646
|
#
|
2621
2647
|
# @option params [required, String] :auto_scaling_group_name
|
2622
2648
|
# The name of the Auto Scaling group.
|
@@ -2656,7 +2682,7 @@ module Aws::AutoScaling
|
|
2656
2682
|
# @example Request syntax with placeholder values
|
2657
2683
|
#
|
2658
2684
|
# resp = client.describe_load_balancers({
|
2659
|
-
# auto_scaling_group_name: "
|
2685
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
2660
2686
|
# next_token: "XmlString",
|
2661
2687
|
# max_records: 1,
|
2662
2688
|
# })
|
@@ -2799,7 +2825,7 @@ module Aws::AutoScaling
|
|
2799
2825
|
# @example Request syntax with placeholder values
|
2800
2826
|
#
|
2801
2827
|
# resp = client.describe_notification_configurations({
|
2802
|
-
# auto_scaling_group_names: ["
|
2828
|
+
# auto_scaling_group_names: ["XmlStringMaxLen255"],
|
2803
2829
|
# next_token: "XmlString",
|
2804
2830
|
# max_records: 1,
|
2805
2831
|
# })
|
@@ -2889,7 +2915,7 @@ module Aws::AutoScaling
|
|
2889
2915
|
# @example Request syntax with placeholder values
|
2890
2916
|
#
|
2891
2917
|
# resp = client.describe_policies({
|
2892
|
-
# auto_scaling_group_name: "
|
2918
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
2893
2919
|
# policy_names: ["ResourceName"],
|
2894
2920
|
# policy_types: ["XmlStringMaxLen64"],
|
2895
2921
|
# next_token: "XmlString",
|
@@ -2998,7 +3024,7 @@ module Aws::AutoScaling
|
|
2998
3024
|
#
|
2999
3025
|
# resp = client.describe_scaling_activities({
|
3000
3026
|
# activity_ids: ["XmlString"],
|
3001
|
-
# auto_scaling_group_name: "
|
3027
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
3002
3028
|
# max_records: 1,
|
3003
3029
|
# next_token: "XmlString",
|
3004
3030
|
# })
|
@@ -3151,8 +3177,8 @@ module Aws::AutoScaling
|
|
3151
3177
|
# @example Request syntax with placeholder values
|
3152
3178
|
#
|
3153
3179
|
# resp = client.describe_scheduled_actions({
|
3154
|
-
# auto_scaling_group_name: "
|
3155
|
-
# scheduled_action_names: ["
|
3180
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
3181
|
+
# scheduled_action_names: ["XmlStringMaxLen255"],
|
3156
3182
|
# start_time: Time.now,
|
3157
3183
|
# end_time: Time.now,
|
3158
3184
|
# next_token: "XmlString",
|
@@ -3404,7 +3430,7 @@ module Aws::AutoScaling
|
|
3404
3430
|
#
|
3405
3431
|
# resp = client.detach_instances({
|
3406
3432
|
# instance_ids: ["XmlStringMaxLen19"],
|
3407
|
-
# auto_scaling_group_name: "
|
3433
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3408
3434
|
# should_decrement_desired_capacity: false, # required
|
3409
3435
|
# })
|
3410
3436
|
#
|
@@ -3458,7 +3484,7 @@ module Aws::AutoScaling
|
|
3458
3484
|
# @example Request syntax with placeholder values
|
3459
3485
|
#
|
3460
3486
|
# resp = client.detach_load_balancer_target_groups({
|
3461
|
-
# auto_scaling_group_name: "
|
3487
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3462
3488
|
# target_group_arns: ["XmlStringMaxLen511"], # required
|
3463
3489
|
# })
|
3464
3490
|
#
|
@@ -3475,8 +3501,8 @@ module Aws::AutoScaling
|
|
3475
3501
|
# Scaling group.
|
3476
3502
|
#
|
3477
3503
|
# This operation detaches only Classic Load Balancers. If you have
|
3478
|
-
# Application Load Balancers
|
3479
|
-
# DetachLoadBalancerTargetGroups API instead.
|
3504
|
+
# Application Load Balancers, Network Load Balancers, or Gateway Load
|
3505
|
+
# Balancers, use the DetachLoadBalancerTargetGroups API instead.
|
3480
3506
|
#
|
3481
3507
|
# When you detach a load balancer, it enters the `Removing` state while
|
3482
3508
|
# deregistering the instances in the group. When all instances are
|
@@ -3507,7 +3533,7 @@ module Aws::AutoScaling
|
|
3507
3533
|
# @example Request syntax with placeholder values
|
3508
3534
|
#
|
3509
3535
|
# resp = client.detach_load_balancers({
|
3510
|
-
# auto_scaling_group_name: "
|
3536
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3511
3537
|
# load_balancer_names: ["XmlStringMaxLen255"], # required
|
3512
3538
|
# })
|
3513
3539
|
#
|
@@ -3573,7 +3599,7 @@ module Aws::AutoScaling
|
|
3573
3599
|
# @example Request syntax with placeholder values
|
3574
3600
|
#
|
3575
3601
|
# resp = client.disable_metrics_collection({
|
3576
|
-
# auto_scaling_group_name: "
|
3602
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3577
3603
|
# metrics: ["XmlStringMaxLen255"],
|
3578
3604
|
# })
|
3579
3605
|
#
|
@@ -3651,7 +3677,7 @@ module Aws::AutoScaling
|
|
3651
3677
|
# @example Request syntax with placeholder values
|
3652
3678
|
#
|
3653
3679
|
# resp = client.enable_metrics_collection({
|
3654
|
-
# auto_scaling_group_name: "
|
3680
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3655
3681
|
# metrics: ["XmlStringMaxLen255"],
|
3656
3682
|
# granularity: "XmlStringMaxLen255", # required
|
3657
3683
|
# })
|
@@ -3730,7 +3756,7 @@ module Aws::AutoScaling
|
|
3730
3756
|
#
|
3731
3757
|
# resp = client.enter_standby({
|
3732
3758
|
# instance_ids: ["XmlStringMaxLen19"],
|
3733
|
-
# auto_scaling_group_name: "
|
3759
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3734
3760
|
# should_decrement_desired_capacity: false, # required
|
3735
3761
|
# })
|
3736
3762
|
#
|
@@ -3814,7 +3840,7 @@ module Aws::AutoScaling
|
|
3814
3840
|
# @example Request syntax with placeholder values
|
3815
3841
|
#
|
3816
3842
|
# resp = client.execute_policy({
|
3817
|
-
# auto_scaling_group_name: "
|
3843
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
3818
3844
|
# policy_name: "ResourceName", # required
|
3819
3845
|
# honor_cooldown: false,
|
3820
3846
|
# metric_value: 1.0,
|
@@ -3884,7 +3910,7 @@ module Aws::AutoScaling
|
|
3884
3910
|
#
|
3885
3911
|
# resp = client.exit_standby({
|
3886
3912
|
# instance_ids: ["XmlStringMaxLen19"],
|
3887
|
-
# auto_scaling_group_name: "
|
3913
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3888
3914
|
# })
|
3889
3915
|
#
|
3890
3916
|
# @example Response structure
|
@@ -4034,9 +4060,9 @@ module Aws::AutoScaling
|
|
4034
4060
|
#
|
4035
4061
|
# resp = client.put_lifecycle_hook({
|
4036
4062
|
# lifecycle_hook_name: "AsciiStringMaxLen255", # required
|
4037
|
-
# auto_scaling_group_name: "
|
4063
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4038
4064
|
# lifecycle_transition: "LifecycleTransition",
|
4039
|
-
# role_arn: "
|
4065
|
+
# role_arn: "XmlStringMaxLen255",
|
4040
4066
|
# notification_target_arn: "NotificationTargetResourceName",
|
4041
4067
|
# notification_metadata: "XmlStringMaxLen1023",
|
4042
4068
|
# heartbeat_timeout: 1,
|
@@ -4100,8 +4126,8 @@ module Aws::AutoScaling
|
|
4100
4126
|
# @example Request syntax with placeholder values
|
4101
4127
|
#
|
4102
4128
|
# resp = client.put_notification_configuration({
|
4103
|
-
# auto_scaling_group_name: "
|
4104
|
-
# topic_arn: "
|
4129
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4130
|
+
# topic_arn: "XmlStringMaxLen255", # required
|
4105
4131
|
# notification_types: ["XmlStringMaxLen255"], # required
|
4106
4132
|
# })
|
4107
4133
|
#
|
@@ -4304,7 +4330,7 @@ module Aws::AutoScaling
|
|
4304
4330
|
# @example Request syntax with placeholder values
|
4305
4331
|
#
|
4306
4332
|
# resp = client.put_scaling_policy({
|
4307
|
-
# auto_scaling_group_name: "
|
4333
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4308
4334
|
# policy_name: "XmlStringMaxLen255", # required
|
4309
4335
|
# policy_type: "XmlStringMaxLen64",
|
4310
4336
|
# adjustment_type: "XmlStringMaxLen255",
|
@@ -4442,7 +4468,7 @@ module Aws::AutoScaling
|
|
4442
4468
|
# @example Request syntax with placeholder values
|
4443
4469
|
#
|
4444
4470
|
# resp = client.put_scheduled_update_group_action({
|
4445
|
-
# auto_scaling_group_name: "
|
4471
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4446
4472
|
# scheduled_action_name: "XmlStringMaxLen255", # required
|
4447
4473
|
# time: Time.now,
|
4448
4474
|
# start_time: Time.now,
|
@@ -4593,7 +4619,7 @@ module Aws::AutoScaling
|
|
4593
4619
|
# @example Request syntax with placeholder values
|
4594
4620
|
#
|
4595
4621
|
# resp = client.resume_processes({
|
4596
|
-
# auto_scaling_group_name: "
|
4622
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4597
4623
|
# scaling_processes: ["XmlStringMaxLen255"],
|
4598
4624
|
# })
|
4599
4625
|
#
|
@@ -4651,7 +4677,7 @@ module Aws::AutoScaling
|
|
4651
4677
|
# @example Request syntax with placeholder values
|
4652
4678
|
#
|
4653
4679
|
# resp = client.set_desired_capacity({
|
4654
|
-
# auto_scaling_group_name: "
|
4680
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4655
4681
|
# desired_capacity: 1, # required
|
4656
4682
|
# honor_cooldown: false,
|
4657
4683
|
# })
|
@@ -4780,7 +4806,7 @@ module Aws::AutoScaling
|
|
4780
4806
|
#
|
4781
4807
|
# resp = client.set_instance_protection({
|
4782
4808
|
# instance_ids: ["XmlStringMaxLen19"], # required
|
4783
|
-
# auto_scaling_group_name: "
|
4809
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4784
4810
|
# protected_from_scale_in: false, # required
|
4785
4811
|
# })
|
4786
4812
|
#
|
@@ -4944,7 +4970,7 @@ module Aws::AutoScaling
|
|
4944
4970
|
# @example Request syntax with placeholder values
|
4945
4971
|
#
|
4946
4972
|
# resp = client.suspend_processes({
|
4947
|
-
# auto_scaling_group_name: "
|
4973
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4948
4974
|
# scaling_processes: ["XmlStringMaxLen255"],
|
4949
4975
|
# })
|
4950
4976
|
#
|
@@ -5032,6 +5058,10 @@ module Aws::AutoScaling
|
|
5032
5058
|
req.send_request(options)
|
5033
5059
|
end
|
5034
5060
|
|
5061
|
+
# **We strongly recommend that all Auto Scaling groups use launch
|
5062
|
+
# templates to ensure full functionality for Amazon EC2 Auto Scaling and
|
5063
|
+
# Amazon EC2.**
|
5064
|
+
#
|
5035
5065
|
# Updates the configuration for the specified Auto Scaling group.
|
5036
5066
|
#
|
5037
5067
|
# To update an Auto Scaling group, specify the name of the group and the
|
@@ -5094,7 +5124,7 @@ module Aws::AutoScaling
|
|
5094
5124
|
# An embedded object that specifies a mixed instances policy. When you
|
5095
5125
|
# make changes to an existing policy, all optional parameters are left
|
5096
5126
|
# unchanged if not specified. For more information, see [Auto Scaling
|
5097
|
-
#
|
5127
|
+
# groups with multiple instance types and purchase options][1] in the
|
5098
5128
|
# *Amazon EC2 Auto Scaling User Guide*.
|
5099
5129
|
#
|
5100
5130
|
#
|
@@ -5262,8 +5292,8 @@ module Aws::AutoScaling
|
|
5262
5292
|
# @example Request syntax with placeholder values
|
5263
5293
|
#
|
5264
5294
|
# resp = client.update_auto_scaling_group({
|
5265
|
-
# auto_scaling_group_name: "
|
5266
|
-
# launch_configuration_name: "
|
5295
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
5296
|
+
# launch_configuration_name: "XmlStringMaxLen255",
|
5267
5297
|
# launch_template: {
|
5268
5298
|
# launch_template_id: "XmlStringMaxLen255",
|
5269
5299
|
# launch_template_name: "LaunchTemplateName",
|
@@ -5280,6 +5310,11 @@ module Aws::AutoScaling
|
|
5280
5310
|
# {
|
5281
5311
|
# instance_type: "XmlStringMaxLen255",
|
5282
5312
|
# weighted_capacity: "XmlStringMaxLen32",
|
5313
|
+
# launch_template_specification: {
|
5314
|
+
# launch_template_id: "XmlStringMaxLen255",
|
5315
|
+
# launch_template_name: "LaunchTemplateName",
|
5316
|
+
# version: "XmlStringMaxLen255",
|
5317
|
+
# },
|
5283
5318
|
# },
|
5284
5319
|
# ],
|
5285
5320
|
# },
|
@@ -5330,7 +5365,7 @@ module Aws::AutoScaling
|
|
5330
5365
|
params: params,
|
5331
5366
|
config: config)
|
5332
5367
|
context[:gem_name] = 'aws-sdk-autoscaling'
|
5333
|
-
context[:gem_version] = '1.
|
5368
|
+
context[:gem_version] = '1.54.0'
|
5334
5369
|
Seahorse::Client::Request.new(handlers, context)
|
5335
5370
|
end
|
5336
5371
|
|