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
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.56.0
|
data/lib/aws-sdk-autoscaling.rb
CHANGED
@@ -89,6 +89,19 @@ module Aws::AutoScaling
|
|
89
89
|
data[:details]
|
90
90
|
end
|
91
91
|
|
92
|
+
# The state of the Auto Scaling group, which is either `InService` or
|
93
|
+
# `Deleted`.
|
94
|
+
# @return [String]
|
95
|
+
def auto_scaling_group_state
|
96
|
+
data[:auto_scaling_group_state]
|
97
|
+
end
|
98
|
+
|
99
|
+
# The Amazon Resource Name (ARN) of the Auto Scaling group.
|
100
|
+
# @return [String]
|
101
|
+
def auto_scaling_group_arn
|
102
|
+
data[:auto_scaling_group_arn]
|
103
|
+
end
|
104
|
+
|
92
105
|
# @!endgroup
|
93
106
|
|
94
107
|
# @return [Client]
|
@@ -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",
|
@@ -939,7 +939,7 @@ module Aws::AutoScaling
|
|
939
939
|
# `LaunchConfigurationName` or `MixedInstancesPolicy`.
|
940
940
|
# @option options [Types::MixedInstancesPolicy] :mixed_instances_policy
|
941
941
|
# An embedded object that specifies a mixed instances policy. When you
|
942
|
-
# make changes to an existing policy, all optional
|
942
|
+
# make changes to an existing policy, all optional properties are left
|
943
943
|
# unchanged if not specified. For more information, see [Auto Scaling
|
944
944
|
# groups with multiple instance types and purchase options][1] in the
|
945
945
|
# *Amazon EC2 Auto Scaling User Guide*.
|
@@ -1076,6 +1076,7 @@ module Aws::AutoScaling
|
|
1076
1076
|
#
|
1077
1077
|
# activities = auto_scaling_group.activities({
|
1078
1078
|
# activity_ids: ["XmlString"],
|
1079
|
+
# include_deleted_groups: false,
|
1079
1080
|
# })
|
1080
1081
|
# @param [Hash] options ({})
|
1081
1082
|
# @option options [Array<String>] :activity_ids
|
@@ -1084,6 +1085,9 @@ module Aws::AutoScaling
|
|
1084
1085
|
# weeks are described. If unknown activities are requested, they are
|
1085
1086
|
# ignored with no error. If you specify an Auto Scaling group, the
|
1086
1087
|
# results are limited to that group.
|
1088
|
+
# @option options [Boolean] :include_deleted_groups
|
1089
|
+
# Indicates whether to include scaling activity from deleted Auto
|
1090
|
+
# Scaling groups.
|
1087
1091
|
# @return [Activity::Collection]
|
1088
1092
|
def activities(options = {})
|
1089
1093
|
batches = Enumerator.new do |y|
|
@@ -1274,7 +1278,7 @@ module Aws::AutoScaling
|
|
1274
1278
|
# @example Request syntax with placeholder values
|
1275
1279
|
#
|
1276
1280
|
# scheduled_actions = auto_scaling_group.scheduled_actions({
|
1277
|
-
# scheduled_action_names: ["
|
1281
|
+
# scheduled_action_names: ["XmlStringMaxLen255"],
|
1278
1282
|
# start_time: Time.now,
|
1279
1283
|
# end_time: Time.now,
|
1280
1284
|
# })
|
@@ -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
|
@@ -437,7 +437,7 @@ module Aws::AutoScaling
|
|
437
437
|
# @example Request syntax with placeholder values
|
438
438
|
#
|
439
439
|
# resp = client.attach_load_balancer_target_groups({
|
440
|
-
# auto_scaling_group_name: "
|
440
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
441
441
|
# target_group_arns: ["XmlStringMaxLen511"], # required
|
442
442
|
# })
|
443
443
|
#
|
@@ -495,7 +495,7 @@ module Aws::AutoScaling
|
|
495
495
|
# @example Request syntax with placeholder values
|
496
496
|
#
|
497
497
|
# resp = client.attach_load_balancers({
|
498
|
-
# auto_scaling_group_name: "
|
498
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
499
499
|
# load_balancer_names: ["XmlStringMaxLen255"], # required
|
500
500
|
# })
|
501
501
|
#
|
@@ -525,8 +525,8 @@ module Aws::AutoScaling
|
|
525
525
|
# @example Request syntax with placeholder values
|
526
526
|
#
|
527
527
|
# resp = client.batch_delete_scheduled_action({
|
528
|
-
# auto_scaling_group_name: "
|
529
|
-
# scheduled_action_names: ["
|
528
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
529
|
+
# scheduled_action_names: ["XmlStringMaxLen255"], # required
|
530
530
|
# })
|
531
531
|
#
|
532
532
|
# @example Response structure
|
@@ -562,7 +562,7 @@ module Aws::AutoScaling
|
|
562
562
|
# @example Request syntax with placeholder values
|
563
563
|
#
|
564
564
|
# resp = client.batch_put_scheduled_update_group_action({
|
565
|
-
# auto_scaling_group_name: "
|
565
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
566
566
|
# scheduled_update_group_actions: [ # required
|
567
567
|
# {
|
568
568
|
# scheduled_action_name: "XmlStringMaxLen255", # required
|
@@ -727,6 +727,10 @@ module Aws::AutoScaling
|
|
727
727
|
req.send_request(options)
|
728
728
|
end
|
729
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
|
+
#
|
730
734
|
# Creates an Auto Scaling group with the specified name and attributes.
|
731
735
|
#
|
732
736
|
# If you exceed your maximum limit of Auto Scaling groups, the call
|
@@ -766,8 +770,8 @@ module Aws::AutoScaling
|
|
766
770
|
# (`LaunchConfigurationName` or `InstanceId`).
|
767
771
|
#
|
768
772
|
# @option params [Types::LaunchTemplateSpecification] :launch_template
|
769
|
-
# Parameters used to specify the
|
770
|
-
#
|
773
|
+
# Parameters used to specify the launch template and version to use to
|
774
|
+
# launch instances.
|
771
775
|
#
|
772
776
|
# Conditional: You must specify either a launch template
|
773
777
|
# (`LaunchTemplate` or `MixedInstancesPolicy`) or a launch configuration
|
@@ -775,26 +779,25 @@ module Aws::AutoScaling
|
|
775
779
|
#
|
776
780
|
# <note markdown="1"> The launch template that is specified must be configured for use with
|
777
781
|
# an Auto Scaling group. For more information, see [Creating a launch
|
778
|
-
# template for an Auto Scaling group][
|
782
|
+
# template for an Auto Scaling group][1] in the *Amazon EC2 Auto Scaling
|
779
783
|
# User Guide*.
|
780
784
|
#
|
781
785
|
# </note>
|
782
786
|
#
|
783
787
|
#
|
784
788
|
#
|
785
|
-
# [1]: https://docs.aws.amazon.com/
|
786
|
-
# [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
|
787
790
|
#
|
788
791
|
# @option params [Types::MixedInstancesPolicy] :mixed_instances_policy
|
789
792
|
# An embedded object that specifies a mixed instances policy. The
|
790
|
-
# required
|
793
|
+
# required properties must be specified. If optional properties are
|
791
794
|
# unspecified, their default values are used.
|
792
795
|
#
|
793
|
-
# The policy includes
|
796
|
+
# The policy includes properties that not only define the distribution
|
794
797
|
# of On-Demand Instances and Spot Instances, the maximum price to pay
|
795
798
|
# for Spot Instances, and how the Auto Scaling group allocates instance
|
796
799
|
# types to fulfill On-Demand and Spot capacities, but also the
|
797
|
-
#
|
800
|
+
# properties that specify the instance configuration information—the
|
798
801
|
# launch template and instance types. The policy can also include a
|
799
802
|
# weight for each instance type and different launch templates for
|
800
803
|
# individual instance types. For more information, see [Auto Scaling
|
@@ -1063,7 +1066,7 @@ module Aws::AutoScaling
|
|
1063
1066
|
#
|
1064
1067
|
# resp = client.create_auto_scaling_group({
|
1065
1068
|
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1066
|
-
# launch_configuration_name: "
|
1069
|
+
# launch_configuration_name: "XmlStringMaxLen255",
|
1067
1070
|
# launch_template: {
|
1068
1071
|
# launch_template_id: "XmlStringMaxLen255",
|
1069
1072
|
# launch_template_name: "LaunchTemplateName",
|
@@ -1120,7 +1123,7 @@ module Aws::AutoScaling
|
|
1120
1123
|
# heartbeat_timeout: 1,
|
1121
1124
|
# default_result: "LifecycleActionResult",
|
1122
1125
|
# notification_target_arn: "NotificationTargetResourceName",
|
1123
|
-
# role_arn: "
|
1126
|
+
# role_arn: "XmlStringMaxLen255",
|
1124
1127
|
# },
|
1125
1128
|
# ],
|
1126
1129
|
# tags: [
|
@@ -1230,13 +1233,17 @@ module Aws::AutoScaling
|
|
1230
1233
|
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-ClassicLink
|
1231
1234
|
#
|
1232
1235
|
# @option params [String] :user_data
|
1233
|
-
# The
|
1234
|
-
#
|
1235
|
-
# 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.
|
1236
1242
|
#
|
1237
1243
|
#
|
1238
1244
|
#
|
1239
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
|
1240
1247
|
#
|
1241
1248
|
# @option params [String] :instance_id
|
1242
1249
|
# The ID of the instance to use to create the launch configuration. The
|
@@ -1261,7 +1268,7 @@ module Aws::AutoScaling
|
|
1261
1268
|
# Specifies the instance type of the EC2 instance.
|
1262
1269
|
#
|
1263
1270
|
# For information about available instance types, see [Available
|
1264
|
-
# 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*.
|
1265
1272
|
#
|
1266
1273
|
# If you do not specify `InstanceId`, you must specify `InstanceType`.
|
1267
1274
|
#
|
@@ -1586,7 +1593,7 @@ module Aws::AutoScaling
|
|
1586
1593
|
# @example Request syntax with placeholder values
|
1587
1594
|
#
|
1588
1595
|
# resp = client.delete_auto_scaling_group({
|
1589
|
-
# auto_scaling_group_name: "
|
1596
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1590
1597
|
# force_delete: false,
|
1591
1598
|
# })
|
1592
1599
|
#
|
@@ -1622,7 +1629,7 @@ module Aws::AutoScaling
|
|
1622
1629
|
# @example Request syntax with placeholder values
|
1623
1630
|
#
|
1624
1631
|
# resp = client.delete_launch_configuration({
|
1625
|
-
# launch_configuration_name: "
|
1632
|
+
# launch_configuration_name: "XmlStringMaxLen255", # required
|
1626
1633
|
# })
|
1627
1634
|
#
|
1628
1635
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLaunchConfiguration AWS API Documentation
|
@@ -1662,7 +1669,7 @@ module Aws::AutoScaling
|
|
1662
1669
|
#
|
1663
1670
|
# resp = client.delete_lifecycle_hook({
|
1664
1671
|
# lifecycle_hook_name: "AsciiStringMaxLen255", # required
|
1665
|
-
# auto_scaling_group_name: "
|
1672
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1666
1673
|
# })
|
1667
1674
|
#
|
1668
1675
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHook AWS API Documentation
|
@@ -1698,8 +1705,8 @@ module Aws::AutoScaling
|
|
1698
1705
|
# @example Request syntax with placeholder values
|
1699
1706
|
#
|
1700
1707
|
# resp = client.delete_notification_configuration({
|
1701
|
-
# auto_scaling_group_name: "
|
1702
|
-
# topic_arn: "
|
1708
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1709
|
+
# topic_arn: "XmlStringMaxLen255", # required
|
1703
1710
|
# })
|
1704
1711
|
#
|
1705
1712
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteNotificationConfiguration AWS API Documentation
|
@@ -1745,7 +1752,7 @@ module Aws::AutoScaling
|
|
1745
1752
|
# @example Request syntax with placeholder values
|
1746
1753
|
#
|
1747
1754
|
# resp = client.delete_policy({
|
1748
|
-
# auto_scaling_group_name: "
|
1755
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
1749
1756
|
# policy_name: "ResourceName", # required
|
1750
1757
|
# })
|
1751
1758
|
#
|
@@ -1781,8 +1788,8 @@ module Aws::AutoScaling
|
|
1781
1788
|
# @example Request syntax with placeholder values
|
1782
1789
|
#
|
1783
1790
|
# resp = client.delete_scheduled_action({
|
1784
|
-
# auto_scaling_group_name: "
|
1785
|
-
# scheduled_action_name: "
|
1791
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1792
|
+
# scheduled_action_name: "XmlStringMaxLen255", # required
|
1786
1793
|
# })
|
1787
1794
|
#
|
1788
1795
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteScheduledAction AWS API Documentation
|
@@ -2026,7 +2033,7 @@ module Aws::AutoScaling
|
|
2026
2033
|
# @example Request syntax with placeholder values
|
2027
2034
|
#
|
2028
2035
|
# resp = client.describe_auto_scaling_groups({
|
2029
|
-
# auto_scaling_group_names: ["
|
2036
|
+
# auto_scaling_group_names: ["XmlStringMaxLen255"],
|
2030
2037
|
# next_token: "XmlString",
|
2031
2038
|
# max_records: 1,
|
2032
2039
|
# })
|
@@ -2409,7 +2416,7 @@ module Aws::AutoScaling
|
|
2409
2416
|
# @example Request syntax with placeholder values
|
2410
2417
|
#
|
2411
2418
|
# resp = client.describe_launch_configurations({
|
2412
|
-
# launch_configuration_names: ["
|
2419
|
+
# launch_configuration_names: ["XmlStringMaxLen255"],
|
2413
2420
|
# next_token: "XmlString",
|
2414
2421
|
# max_records: 1,
|
2415
2422
|
# })
|
@@ -2544,7 +2551,7 @@ module Aws::AutoScaling
|
|
2544
2551
|
# @example Request syntax with placeholder values
|
2545
2552
|
#
|
2546
2553
|
# resp = client.describe_lifecycle_hooks({
|
2547
|
-
# auto_scaling_group_name: "
|
2554
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
2548
2555
|
# lifecycle_hook_names: ["AsciiStringMaxLen255"],
|
2549
2556
|
# })
|
2550
2557
|
#
|
@@ -2610,7 +2617,7 @@ module Aws::AutoScaling
|
|
2610
2617
|
# @example Request syntax with placeholder values
|
2611
2618
|
#
|
2612
2619
|
# resp = client.describe_load_balancer_target_groups({
|
2613
|
-
# auto_scaling_group_name: "
|
2620
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
2614
2621
|
# next_token: "XmlString",
|
2615
2622
|
# max_records: 1,
|
2616
2623
|
# })
|
@@ -2675,7 +2682,7 @@ module Aws::AutoScaling
|
|
2675
2682
|
# @example Request syntax with placeholder values
|
2676
2683
|
#
|
2677
2684
|
# resp = client.describe_load_balancers({
|
2678
|
-
# auto_scaling_group_name: "
|
2685
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
2679
2686
|
# next_token: "XmlString",
|
2680
2687
|
# max_records: 1,
|
2681
2688
|
# })
|
@@ -2818,7 +2825,7 @@ module Aws::AutoScaling
|
|
2818
2825
|
# @example Request syntax with placeholder values
|
2819
2826
|
#
|
2820
2827
|
# resp = client.describe_notification_configurations({
|
2821
|
-
# auto_scaling_group_names: ["
|
2828
|
+
# auto_scaling_group_names: ["XmlStringMaxLen255"],
|
2822
2829
|
# next_token: "XmlString",
|
2823
2830
|
# max_records: 1,
|
2824
2831
|
# })
|
@@ -2908,7 +2915,7 @@ module Aws::AutoScaling
|
|
2908
2915
|
# @example Request syntax with placeholder values
|
2909
2916
|
#
|
2910
2917
|
# resp = client.describe_policies({
|
2911
|
-
# auto_scaling_group_name: "
|
2918
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
2912
2919
|
# policy_names: ["ResourceName"],
|
2913
2920
|
# policy_types: ["XmlStringMaxLen64"],
|
2914
2921
|
# next_token: "XmlString",
|
@@ -2962,6 +2969,17 @@ module Aws::AutoScaling
|
|
2962
2969
|
# Describes one or more scaling activities for the specified Auto
|
2963
2970
|
# Scaling group.
|
2964
2971
|
#
|
2972
|
+
# To view the scaling activities from the Amazon EC2 Auto Scaling
|
2973
|
+
# console, choose the **Activity** tab of the Auto Scaling group. When
|
2974
|
+
# scaling events occur, you see scaling activity messages in the
|
2975
|
+
# **Activity history**. For more information, see [Verifying a scaling
|
2976
|
+
# activity for an Auto Scaling group][1] in the *Amazon EC2 Auto Scaling
|
2977
|
+
# User Guide*.
|
2978
|
+
#
|
2979
|
+
#
|
2980
|
+
#
|
2981
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-verify-scaling-activity.html
|
2982
|
+
#
|
2965
2983
|
# @option params [Array<String>] :activity_ids
|
2966
2984
|
# The activity IDs of the desired scaling activities. You can specify up
|
2967
2985
|
# to 50 IDs. If you omit this parameter, all activities for the past six
|
@@ -2972,6 +2990,10 @@ module Aws::AutoScaling
|
|
2972
2990
|
# @option params [String] :auto_scaling_group_name
|
2973
2991
|
# The name of the Auto Scaling group.
|
2974
2992
|
#
|
2993
|
+
# @option params [Boolean] :include_deleted_groups
|
2994
|
+
# Indicates whether to include scaling activity from deleted Auto
|
2995
|
+
# Scaling groups.
|
2996
|
+
#
|
2975
2997
|
# @option params [Integer] :max_records
|
2976
2998
|
# The maximum number of items to return with this call. The default
|
2977
2999
|
# value is `100` and the maximum value is `100`.
|
@@ -3017,7 +3039,8 @@ module Aws::AutoScaling
|
|
3017
3039
|
#
|
3018
3040
|
# resp = client.describe_scaling_activities({
|
3019
3041
|
# activity_ids: ["XmlString"],
|
3020
|
-
# auto_scaling_group_name: "
|
3042
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
3043
|
+
# include_deleted_groups: false,
|
3021
3044
|
# max_records: 1,
|
3022
3045
|
# next_token: "XmlString",
|
3023
3046
|
# })
|
@@ -3035,6 +3058,8 @@ module Aws::AutoScaling
|
|
3035
3058
|
# resp.activities[0].status_message #=> String
|
3036
3059
|
# resp.activities[0].progress #=> Integer
|
3037
3060
|
# resp.activities[0].details #=> String
|
3061
|
+
# resp.activities[0].auto_scaling_group_state #=> String
|
3062
|
+
# resp.activities[0].auto_scaling_group_arn #=> String
|
3038
3063
|
# resp.next_token #=> String
|
3039
3064
|
#
|
3040
3065
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivities AWS API Documentation
|
@@ -3170,8 +3195,8 @@ module Aws::AutoScaling
|
|
3170
3195
|
# @example Request syntax with placeholder values
|
3171
3196
|
#
|
3172
3197
|
# resp = client.describe_scheduled_actions({
|
3173
|
-
# auto_scaling_group_name: "
|
3174
|
-
# scheduled_action_names: ["
|
3198
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
3199
|
+
# scheduled_action_names: ["XmlStringMaxLen255"],
|
3175
3200
|
# start_time: Time.now,
|
3176
3201
|
# end_time: Time.now,
|
3177
3202
|
# next_token: "XmlString",
|
@@ -3423,7 +3448,7 @@ module Aws::AutoScaling
|
|
3423
3448
|
#
|
3424
3449
|
# resp = client.detach_instances({
|
3425
3450
|
# instance_ids: ["XmlStringMaxLen19"],
|
3426
|
-
# auto_scaling_group_name: "
|
3451
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3427
3452
|
# should_decrement_desired_capacity: false, # required
|
3428
3453
|
# })
|
3429
3454
|
#
|
@@ -3440,6 +3465,8 @@ module Aws::AutoScaling
|
|
3440
3465
|
# resp.activities[0].status_message #=> String
|
3441
3466
|
# resp.activities[0].progress #=> Integer
|
3442
3467
|
# resp.activities[0].details #=> String
|
3468
|
+
# resp.activities[0].auto_scaling_group_state #=> String
|
3469
|
+
# resp.activities[0].auto_scaling_group_arn #=> String
|
3443
3470
|
#
|
3444
3471
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachInstances AWS API Documentation
|
3445
3472
|
#
|
@@ -3477,7 +3504,7 @@ module Aws::AutoScaling
|
|
3477
3504
|
# @example Request syntax with placeholder values
|
3478
3505
|
#
|
3479
3506
|
# resp = client.detach_load_balancer_target_groups({
|
3480
|
-
# auto_scaling_group_name: "
|
3507
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3481
3508
|
# target_group_arns: ["XmlStringMaxLen511"], # required
|
3482
3509
|
# })
|
3483
3510
|
#
|
@@ -3526,7 +3553,7 @@ module Aws::AutoScaling
|
|
3526
3553
|
# @example Request syntax with placeholder values
|
3527
3554
|
#
|
3528
3555
|
# resp = client.detach_load_balancers({
|
3529
|
-
# auto_scaling_group_name: "
|
3556
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3530
3557
|
# load_balancer_names: ["XmlStringMaxLen255"], # required
|
3531
3558
|
# })
|
3532
3559
|
#
|
@@ -3592,7 +3619,7 @@ module Aws::AutoScaling
|
|
3592
3619
|
# @example Request syntax with placeholder values
|
3593
3620
|
#
|
3594
3621
|
# resp = client.disable_metrics_collection({
|
3595
|
-
# auto_scaling_group_name: "
|
3622
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3596
3623
|
# metrics: ["XmlStringMaxLen255"],
|
3597
3624
|
# })
|
3598
3625
|
#
|
@@ -3670,7 +3697,7 @@ module Aws::AutoScaling
|
|
3670
3697
|
# @example Request syntax with placeholder values
|
3671
3698
|
#
|
3672
3699
|
# resp = client.enable_metrics_collection({
|
3673
|
-
# auto_scaling_group_name: "
|
3700
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3674
3701
|
# metrics: ["XmlStringMaxLen255"],
|
3675
3702
|
# granularity: "XmlStringMaxLen255", # required
|
3676
3703
|
# })
|
@@ -3749,7 +3776,7 @@ module Aws::AutoScaling
|
|
3749
3776
|
#
|
3750
3777
|
# resp = client.enter_standby({
|
3751
3778
|
# instance_ids: ["XmlStringMaxLen19"],
|
3752
|
-
# auto_scaling_group_name: "
|
3779
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3753
3780
|
# should_decrement_desired_capacity: false, # required
|
3754
3781
|
# })
|
3755
3782
|
#
|
@@ -3766,6 +3793,8 @@ module Aws::AutoScaling
|
|
3766
3793
|
# resp.activities[0].status_message #=> String
|
3767
3794
|
# resp.activities[0].progress #=> Integer
|
3768
3795
|
# resp.activities[0].details #=> String
|
3796
|
+
# resp.activities[0].auto_scaling_group_state #=> String
|
3797
|
+
# resp.activities[0].auto_scaling_group_arn #=> String
|
3769
3798
|
#
|
3770
3799
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnterStandby AWS API Documentation
|
3771
3800
|
#
|
@@ -3833,7 +3862,7 @@ module Aws::AutoScaling
|
|
3833
3862
|
# @example Request syntax with placeholder values
|
3834
3863
|
#
|
3835
3864
|
# resp = client.execute_policy({
|
3836
|
-
# auto_scaling_group_name: "
|
3865
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
3837
3866
|
# policy_name: "ResourceName", # required
|
3838
3867
|
# honor_cooldown: false,
|
3839
3868
|
# metric_value: 1.0,
|
@@ -3903,7 +3932,7 @@ module Aws::AutoScaling
|
|
3903
3932
|
#
|
3904
3933
|
# resp = client.exit_standby({
|
3905
3934
|
# instance_ids: ["XmlStringMaxLen19"],
|
3906
|
-
# auto_scaling_group_name: "
|
3935
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3907
3936
|
# })
|
3908
3937
|
#
|
3909
3938
|
# @example Response structure
|
@@ -3919,6 +3948,8 @@ module Aws::AutoScaling
|
|
3919
3948
|
# resp.activities[0].status_message #=> String
|
3920
3949
|
# resp.activities[0].progress #=> Integer
|
3921
3950
|
# resp.activities[0].details #=> String
|
3951
|
+
# resp.activities[0].auto_scaling_group_state #=> String
|
3952
|
+
# resp.activities[0].auto_scaling_group_arn #=> String
|
3922
3953
|
#
|
3923
3954
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExitStandby AWS API Documentation
|
3924
3955
|
#
|
@@ -4053,9 +4084,9 @@ module Aws::AutoScaling
|
|
4053
4084
|
#
|
4054
4085
|
# resp = client.put_lifecycle_hook({
|
4055
4086
|
# lifecycle_hook_name: "AsciiStringMaxLen255", # required
|
4056
|
-
# auto_scaling_group_name: "
|
4087
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4057
4088
|
# lifecycle_transition: "LifecycleTransition",
|
4058
|
-
# role_arn: "
|
4089
|
+
# role_arn: "XmlStringMaxLen255",
|
4059
4090
|
# notification_target_arn: "NotificationTargetResourceName",
|
4060
4091
|
# notification_metadata: "XmlStringMaxLen1023",
|
4061
4092
|
# heartbeat_timeout: 1,
|
@@ -4119,8 +4150,8 @@ module Aws::AutoScaling
|
|
4119
4150
|
# @example Request syntax with placeholder values
|
4120
4151
|
#
|
4121
4152
|
# resp = client.put_notification_configuration({
|
4122
|
-
# auto_scaling_group_name: "
|
4123
|
-
# topic_arn: "
|
4153
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4154
|
+
# topic_arn: "XmlStringMaxLen255", # required
|
4124
4155
|
# notification_types: ["XmlStringMaxLen255"], # required
|
4125
4156
|
# })
|
4126
4157
|
#
|
@@ -4323,7 +4354,7 @@ module Aws::AutoScaling
|
|
4323
4354
|
# @example Request syntax with placeholder values
|
4324
4355
|
#
|
4325
4356
|
# resp = client.put_scaling_policy({
|
4326
|
-
# auto_scaling_group_name: "
|
4357
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4327
4358
|
# policy_name: "XmlStringMaxLen255", # required
|
4328
4359
|
# policy_type: "XmlStringMaxLen64",
|
4329
4360
|
# adjustment_type: "XmlStringMaxLen255",
|
@@ -4461,7 +4492,7 @@ module Aws::AutoScaling
|
|
4461
4492
|
# @example Request syntax with placeholder values
|
4462
4493
|
#
|
4463
4494
|
# resp = client.put_scheduled_update_group_action({
|
4464
|
-
# auto_scaling_group_name: "
|
4495
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4465
4496
|
# scheduled_action_name: "XmlStringMaxLen255", # required
|
4466
4497
|
# time: Time.now,
|
4467
4498
|
# start_time: Time.now,
|
@@ -4612,7 +4643,7 @@ module Aws::AutoScaling
|
|
4612
4643
|
# @example Request syntax with placeholder values
|
4613
4644
|
#
|
4614
4645
|
# resp = client.resume_processes({
|
4615
|
-
# auto_scaling_group_name: "
|
4646
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4616
4647
|
# scaling_processes: ["XmlStringMaxLen255"],
|
4617
4648
|
# })
|
4618
4649
|
#
|
@@ -4670,7 +4701,7 @@ module Aws::AutoScaling
|
|
4670
4701
|
# @example Request syntax with placeholder values
|
4671
4702
|
#
|
4672
4703
|
# resp = client.set_desired_capacity({
|
4673
|
-
# auto_scaling_group_name: "
|
4704
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4674
4705
|
# desired_capacity: 1, # required
|
4675
4706
|
# honor_cooldown: false,
|
4676
4707
|
# })
|
@@ -4799,7 +4830,7 @@ module Aws::AutoScaling
|
|
4799
4830
|
#
|
4800
4831
|
# resp = client.set_instance_protection({
|
4801
4832
|
# instance_ids: ["XmlStringMaxLen19"], # required
|
4802
|
-
# auto_scaling_group_name: "
|
4833
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4803
4834
|
# protected_from_scale_in: false, # required
|
4804
4835
|
# })
|
4805
4836
|
#
|
@@ -4963,7 +4994,7 @@ module Aws::AutoScaling
|
|
4963
4994
|
# @example Request syntax with placeholder values
|
4964
4995
|
#
|
4965
4996
|
# resp = client.suspend_processes({
|
4966
|
-
# auto_scaling_group_name: "
|
4997
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4967
4998
|
# scaling_processes: ["XmlStringMaxLen255"],
|
4968
4999
|
# })
|
4969
5000
|
#
|
@@ -5041,6 +5072,8 @@ module Aws::AutoScaling
|
|
5041
5072
|
# resp.activity.status_message #=> String
|
5042
5073
|
# resp.activity.progress #=> Integer
|
5043
5074
|
# resp.activity.details #=> String
|
5075
|
+
# resp.activity.auto_scaling_group_state #=> String
|
5076
|
+
# resp.activity.auto_scaling_group_arn #=> String
|
5044
5077
|
#
|
5045
5078
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TerminateInstanceInAutoScalingGroup AWS API Documentation
|
5046
5079
|
#
|
@@ -5051,6 +5084,10 @@ module Aws::AutoScaling
|
|
5051
5084
|
req.send_request(options)
|
5052
5085
|
end
|
5053
5086
|
|
5087
|
+
# **We strongly recommend that all Auto Scaling groups use launch
|
5088
|
+
# templates to ensure full functionality for Amazon EC2 Auto Scaling and
|
5089
|
+
# Amazon EC2.**
|
5090
|
+
#
|
5054
5091
|
# Updates the configuration for the specified Auto Scaling group.
|
5055
5092
|
#
|
5056
5093
|
# To update an Auto Scaling group, specify the name of the group and the
|
@@ -5111,7 +5148,7 @@ module Aws::AutoScaling
|
|
5111
5148
|
#
|
5112
5149
|
# @option params [Types::MixedInstancesPolicy] :mixed_instances_policy
|
5113
5150
|
# An embedded object that specifies a mixed instances policy. When you
|
5114
|
-
# make changes to an existing policy, all optional
|
5151
|
+
# make changes to an existing policy, all optional properties are left
|
5115
5152
|
# unchanged if not specified. For more information, see [Auto Scaling
|
5116
5153
|
# groups with multiple instance types and purchase options][1] in the
|
5117
5154
|
# *Amazon EC2 Auto Scaling User Guide*.
|
@@ -5281,8 +5318,8 @@ module Aws::AutoScaling
|
|
5281
5318
|
# @example Request syntax with placeholder values
|
5282
5319
|
#
|
5283
5320
|
# resp = client.update_auto_scaling_group({
|
5284
|
-
# auto_scaling_group_name: "
|
5285
|
-
# launch_configuration_name: "
|
5321
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
5322
|
+
# launch_configuration_name: "XmlStringMaxLen255",
|
5286
5323
|
# launch_template: {
|
5287
5324
|
# launch_template_id: "XmlStringMaxLen255",
|
5288
5325
|
# launch_template_name: "LaunchTemplateName",
|
@@ -5354,7 +5391,7 @@ module Aws::AutoScaling
|
|
5354
5391
|
params: params,
|
5355
5392
|
config: config)
|
5356
5393
|
context[:gem_name] = 'aws-sdk-autoscaling'
|
5357
|
-
context[:gem_version] = '1.
|
5394
|
+
context[:gem_version] = '1.56.0'
|
5358
5395
|
Seahorse::Client::Request.new(handlers, context)
|
5359
5396
|
end
|
5360
5397
|
|