aws-sdk-autoscaling 1.50.0 → 1.55.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-autoscaling.rb +1 -1
- data/lib/aws-sdk-autoscaling/activity.rb +13 -0
- data/lib/aws-sdk-autoscaling/auto_scaling_group.rb +6 -2
- data/lib/aws-sdk-autoscaling/client.rb +126 -79
- data/lib/aws-sdk-autoscaling/client_api.rb +53 -48
- data/lib/aws-sdk-autoscaling/instance.rb +12 -1
- data/lib/aws-sdk-autoscaling/launch_configuration.rb +8 -4
- data/lib/aws-sdk-autoscaling/lifecycle_hook.rb +1 -1
- data/lib/aws-sdk-autoscaling/resource.rb +28 -24
- data/lib/aws-sdk-autoscaling/scaling_policy.rb +2 -2
- data/lib/aws-sdk-autoscaling/scheduled_action.rb +1 -1
- data/lib/aws-sdk-autoscaling/types.rb +140 -94
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac6e88cc576a48750b94147f2b337d17f46fb463dc60f82108bb68b59b36bd43
|
4
|
+
data.tar.gz: b21de679975eafab04e8c9b45b4cdce69deb91a6eb49830d61e6aad818768488
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29fa9589d8a04567abd166483fd9bd19c80678b737f6102bbd3ff17e308e51679845f452483c213142497e3144048c5a5f3cc49588804ed4d6baddedfbc0976a
|
7
|
+
data.tar.gz: 2911f492fec3349637731f49d8acc7fb694361ccb32d35a381f2e9a865cab62a4bb2ae1f9738e743a853b8cb004d1055c7a65592c808e3e593d547123505a029
|
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",
|
@@ -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
|
@@ -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
|
@@ -788,10 +804,6 @@ module Aws::AutoScaling
|
|
788
804
|
# groups with multiple instance types and purchase options][1] in the
|
789
805
|
# *Amazon EC2 Auto Scaling User Guide*.
|
790
806
|
#
|
791
|
-
# Conditional: You must specify either a launch template
|
792
|
-
# (`LaunchTemplate` or `MixedInstancesPolicy`) or a launch configuration
|
793
|
-
# (`LaunchConfigurationName` or `InstanceId`).
|
794
|
-
#
|
795
807
|
#
|
796
808
|
#
|
797
809
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
@@ -855,8 +867,9 @@ module Aws::AutoScaling
|
|
855
867
|
#
|
856
868
|
# @option params [Array<String>] :load_balancer_names
|
857
869
|
# A list of Classic Load Balancers associated with this Auto Scaling
|
858
|
-
# group. For Application Load Balancers
|
859
|
-
# specify `TargetGroupARNs`
|
870
|
+
# group. For Application Load Balancers, Network Load Balancers, and
|
871
|
+
# Gateway Load Balancers, specify the `TargetGroupARNs` property
|
872
|
+
# instead.
|
860
873
|
#
|
861
874
|
# @option params [Array<String>] :target_group_arns
|
862
875
|
# The Amazon Resource Names (ARN) of the target groups to associate with
|
@@ -1053,7 +1066,7 @@ module Aws::AutoScaling
|
|
1053
1066
|
#
|
1054
1067
|
# resp = client.create_auto_scaling_group({
|
1055
1068
|
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1056
|
-
# launch_configuration_name: "
|
1069
|
+
# launch_configuration_name: "XmlStringMaxLen255",
|
1057
1070
|
# launch_template: {
|
1058
1071
|
# launch_template_id: "XmlStringMaxLen255",
|
1059
1072
|
# launch_template_name: "LaunchTemplateName",
|
@@ -1110,7 +1123,7 @@ module Aws::AutoScaling
|
|
1110
1123
|
# heartbeat_timeout: 1,
|
1111
1124
|
# default_result: "LifecycleActionResult",
|
1112
1125
|
# notification_target_arn: "NotificationTargetResourceName",
|
1113
|
-
# role_arn: "
|
1126
|
+
# role_arn: "XmlStringMaxLen255",
|
1114
1127
|
# },
|
1115
1128
|
# ],
|
1116
1129
|
# tags: [
|
@@ -1220,13 +1233,17 @@ module Aws::AutoScaling
|
|
1220
1233
|
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-ClassicLink
|
1221
1234
|
#
|
1222
1235
|
# @option params [String] :user_data
|
1223
|
-
# The
|
1224
|
-
#
|
1225
|
-
# 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.
|
1226
1242
|
#
|
1227
1243
|
#
|
1228
1244
|
#
|
1229
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
|
1230
1247
|
#
|
1231
1248
|
# @option params [String] :instance_id
|
1232
1249
|
# The ID of the instance to use to create the launch configuration. The
|
@@ -1251,7 +1268,7 @@ module Aws::AutoScaling
|
|
1251
1268
|
# Specifies the instance type of the EC2 instance.
|
1252
1269
|
#
|
1253
1270
|
# For information about available instance types, see [Available
|
1254
|
-
# 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*.
|
1255
1272
|
#
|
1256
1273
|
# If you do not specify `InstanceId`, you must specify `InstanceType`.
|
1257
1274
|
#
|
@@ -1380,7 +1397,7 @@ module Aws::AutoScaling
|
|
1380
1397
|
#
|
1381
1398
|
#
|
1382
1399
|
#
|
1383
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/
|
1400
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/auto-scaling-dedicated-instances.html
|
1384
1401
|
#
|
1385
1402
|
# @option params [Types::InstanceMetadataOptions] :metadata_options
|
1386
1403
|
# The metadata options for the instances. For more information, see
|
@@ -1576,7 +1593,7 @@ module Aws::AutoScaling
|
|
1576
1593
|
# @example Request syntax with placeholder values
|
1577
1594
|
#
|
1578
1595
|
# resp = client.delete_auto_scaling_group({
|
1579
|
-
# auto_scaling_group_name: "
|
1596
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1580
1597
|
# force_delete: false,
|
1581
1598
|
# })
|
1582
1599
|
#
|
@@ -1612,7 +1629,7 @@ module Aws::AutoScaling
|
|
1612
1629
|
# @example Request syntax with placeholder values
|
1613
1630
|
#
|
1614
1631
|
# resp = client.delete_launch_configuration({
|
1615
|
-
# launch_configuration_name: "
|
1632
|
+
# launch_configuration_name: "XmlStringMaxLen255", # required
|
1616
1633
|
# })
|
1617
1634
|
#
|
1618
1635
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLaunchConfiguration AWS API Documentation
|
@@ -1652,7 +1669,7 @@ module Aws::AutoScaling
|
|
1652
1669
|
#
|
1653
1670
|
# resp = client.delete_lifecycle_hook({
|
1654
1671
|
# lifecycle_hook_name: "AsciiStringMaxLen255", # required
|
1655
|
-
# auto_scaling_group_name: "
|
1672
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1656
1673
|
# })
|
1657
1674
|
#
|
1658
1675
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHook AWS API Documentation
|
@@ -1688,8 +1705,8 @@ module Aws::AutoScaling
|
|
1688
1705
|
# @example Request syntax with placeholder values
|
1689
1706
|
#
|
1690
1707
|
# resp = client.delete_notification_configuration({
|
1691
|
-
# auto_scaling_group_name: "
|
1692
|
-
# topic_arn: "
|
1708
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1709
|
+
# topic_arn: "XmlStringMaxLen255", # required
|
1693
1710
|
# })
|
1694
1711
|
#
|
1695
1712
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteNotificationConfiguration AWS API Documentation
|
@@ -1735,7 +1752,7 @@ module Aws::AutoScaling
|
|
1735
1752
|
# @example Request syntax with placeholder values
|
1736
1753
|
#
|
1737
1754
|
# resp = client.delete_policy({
|
1738
|
-
# auto_scaling_group_name: "
|
1755
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
1739
1756
|
# policy_name: "ResourceName", # required
|
1740
1757
|
# })
|
1741
1758
|
#
|
@@ -1771,8 +1788,8 @@ module Aws::AutoScaling
|
|
1771
1788
|
# @example Request syntax with placeholder values
|
1772
1789
|
#
|
1773
1790
|
# resp = client.delete_scheduled_action({
|
1774
|
-
# auto_scaling_group_name: "
|
1775
|
-
# scheduled_action_name: "
|
1791
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1792
|
+
# scheduled_action_name: "XmlStringMaxLen255", # required
|
1776
1793
|
# })
|
1777
1794
|
#
|
1778
1795
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteScheduledAction AWS API Documentation
|
@@ -2016,7 +2033,7 @@ module Aws::AutoScaling
|
|
2016
2033
|
# @example Request syntax with placeholder values
|
2017
2034
|
#
|
2018
2035
|
# resp = client.describe_auto_scaling_groups({
|
2019
|
-
# auto_scaling_group_names: ["
|
2036
|
+
# auto_scaling_group_names: ["XmlStringMaxLen255"],
|
2020
2037
|
# next_token: "XmlString",
|
2021
2038
|
# max_records: 1,
|
2022
2039
|
# })
|
@@ -2399,7 +2416,7 @@ module Aws::AutoScaling
|
|
2399
2416
|
# @example Request syntax with placeholder values
|
2400
2417
|
#
|
2401
2418
|
# resp = client.describe_launch_configurations({
|
2402
|
-
# launch_configuration_names: ["
|
2419
|
+
# launch_configuration_names: ["XmlStringMaxLen255"],
|
2403
2420
|
# next_token: "XmlString",
|
2404
2421
|
# max_records: 1,
|
2405
2422
|
# })
|
@@ -2534,7 +2551,7 @@ module Aws::AutoScaling
|
|
2534
2551
|
# @example Request syntax with placeholder values
|
2535
2552
|
#
|
2536
2553
|
# resp = client.describe_lifecycle_hooks({
|
2537
|
-
# auto_scaling_group_name: "
|
2554
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
2538
2555
|
# lifecycle_hook_names: ["AsciiStringMaxLen255"],
|
2539
2556
|
# })
|
2540
2557
|
#
|
@@ -2600,7 +2617,7 @@ module Aws::AutoScaling
|
|
2600
2617
|
# @example Request syntax with placeholder values
|
2601
2618
|
#
|
2602
2619
|
# resp = client.describe_load_balancer_target_groups({
|
2603
|
-
# auto_scaling_group_name: "
|
2620
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
2604
2621
|
# next_token: "XmlString",
|
2605
2622
|
# max_records: 1,
|
2606
2623
|
# })
|
@@ -2624,8 +2641,8 @@ module Aws::AutoScaling
|
|
2624
2641
|
# Describes the load balancers for the specified Auto Scaling group.
|
2625
2642
|
#
|
2626
2643
|
# This operation describes only Classic Load Balancers. If you have
|
2627
|
-
# Application Load Balancers
|
2628
|
-
# DescribeLoadBalancerTargetGroups API instead.
|
2644
|
+
# Application Load Balancers, Network Load Balancers, or Gateway Load
|
2645
|
+
# Balancers, use the DescribeLoadBalancerTargetGroups API instead.
|
2629
2646
|
#
|
2630
2647
|
# @option params [required, String] :auto_scaling_group_name
|
2631
2648
|
# The name of the Auto Scaling group.
|
@@ -2665,7 +2682,7 @@ module Aws::AutoScaling
|
|
2665
2682
|
# @example Request syntax with placeholder values
|
2666
2683
|
#
|
2667
2684
|
# resp = client.describe_load_balancers({
|
2668
|
-
# auto_scaling_group_name: "
|
2685
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
2669
2686
|
# next_token: "XmlString",
|
2670
2687
|
# max_records: 1,
|
2671
2688
|
# })
|
@@ -2808,7 +2825,7 @@ module Aws::AutoScaling
|
|
2808
2825
|
# @example Request syntax with placeholder values
|
2809
2826
|
#
|
2810
2827
|
# resp = client.describe_notification_configurations({
|
2811
|
-
# auto_scaling_group_names: ["
|
2828
|
+
# auto_scaling_group_names: ["XmlStringMaxLen255"],
|
2812
2829
|
# next_token: "XmlString",
|
2813
2830
|
# max_records: 1,
|
2814
2831
|
# })
|
@@ -2898,7 +2915,7 @@ module Aws::AutoScaling
|
|
2898
2915
|
# @example Request syntax with placeholder values
|
2899
2916
|
#
|
2900
2917
|
# resp = client.describe_policies({
|
2901
|
-
# auto_scaling_group_name: "
|
2918
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
2902
2919
|
# policy_names: ["ResourceName"],
|
2903
2920
|
# policy_types: ["XmlStringMaxLen64"],
|
2904
2921
|
# next_token: "XmlString",
|
@@ -2952,6 +2969,17 @@ module Aws::AutoScaling
|
|
2952
2969
|
# Describes one or more scaling activities for the specified Auto
|
2953
2970
|
# Scaling group.
|
2954
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
|
+
#
|
2955
2983
|
# @option params [Array<String>] :activity_ids
|
2956
2984
|
# The activity IDs of the desired scaling activities. You can specify up
|
2957
2985
|
# to 50 IDs. If you omit this parameter, all activities for the past six
|
@@ -2962,6 +2990,10 @@ module Aws::AutoScaling
|
|
2962
2990
|
# @option params [String] :auto_scaling_group_name
|
2963
2991
|
# The name of the Auto Scaling group.
|
2964
2992
|
#
|
2993
|
+
# @option params [Boolean] :include_deleted_groups
|
2994
|
+
# Indicates whether to include scaling activity from deleted Auto
|
2995
|
+
# Scaling groups.
|
2996
|
+
#
|
2965
2997
|
# @option params [Integer] :max_records
|
2966
2998
|
# The maximum number of items to return with this call. The default
|
2967
2999
|
# value is `100` and the maximum value is `100`.
|
@@ -3007,7 +3039,8 @@ module Aws::AutoScaling
|
|
3007
3039
|
#
|
3008
3040
|
# resp = client.describe_scaling_activities({
|
3009
3041
|
# activity_ids: ["XmlString"],
|
3010
|
-
# auto_scaling_group_name: "
|
3042
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
3043
|
+
# include_deleted_groups: false,
|
3011
3044
|
# max_records: 1,
|
3012
3045
|
# next_token: "XmlString",
|
3013
3046
|
# })
|
@@ -3025,6 +3058,8 @@ module Aws::AutoScaling
|
|
3025
3058
|
# resp.activities[0].status_message #=> String
|
3026
3059
|
# resp.activities[0].progress #=> Integer
|
3027
3060
|
# resp.activities[0].details #=> String
|
3061
|
+
# resp.activities[0].auto_scaling_group_state #=> String
|
3062
|
+
# resp.activities[0].auto_scaling_group_arn #=> String
|
3028
3063
|
# resp.next_token #=> String
|
3029
3064
|
#
|
3030
3065
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivities AWS API Documentation
|
@@ -3160,8 +3195,8 @@ module Aws::AutoScaling
|
|
3160
3195
|
# @example Request syntax with placeholder values
|
3161
3196
|
#
|
3162
3197
|
# resp = client.describe_scheduled_actions({
|
3163
|
-
# auto_scaling_group_name: "
|
3164
|
-
# scheduled_action_names: ["
|
3198
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
3199
|
+
# scheduled_action_names: ["XmlStringMaxLen255"],
|
3165
3200
|
# start_time: Time.now,
|
3166
3201
|
# end_time: Time.now,
|
3167
3202
|
# next_token: "XmlString",
|
@@ -3413,7 +3448,7 @@ module Aws::AutoScaling
|
|
3413
3448
|
#
|
3414
3449
|
# resp = client.detach_instances({
|
3415
3450
|
# instance_ids: ["XmlStringMaxLen19"],
|
3416
|
-
# auto_scaling_group_name: "
|
3451
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3417
3452
|
# should_decrement_desired_capacity: false, # required
|
3418
3453
|
# })
|
3419
3454
|
#
|
@@ -3430,6 +3465,8 @@ module Aws::AutoScaling
|
|
3430
3465
|
# resp.activities[0].status_message #=> String
|
3431
3466
|
# resp.activities[0].progress #=> Integer
|
3432
3467
|
# resp.activities[0].details #=> String
|
3468
|
+
# resp.activities[0].auto_scaling_group_state #=> String
|
3469
|
+
# resp.activities[0].auto_scaling_group_arn #=> String
|
3433
3470
|
#
|
3434
3471
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachInstances AWS API Documentation
|
3435
3472
|
#
|
@@ -3467,7 +3504,7 @@ module Aws::AutoScaling
|
|
3467
3504
|
# @example Request syntax with placeholder values
|
3468
3505
|
#
|
3469
3506
|
# resp = client.detach_load_balancer_target_groups({
|
3470
|
-
# auto_scaling_group_name: "
|
3507
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3471
3508
|
# target_group_arns: ["XmlStringMaxLen511"], # required
|
3472
3509
|
# })
|
3473
3510
|
#
|
@@ -3484,8 +3521,8 @@ module Aws::AutoScaling
|
|
3484
3521
|
# Scaling group.
|
3485
3522
|
#
|
3486
3523
|
# This operation detaches only Classic Load Balancers. If you have
|
3487
|
-
# Application Load Balancers
|
3488
|
-
# DetachLoadBalancerTargetGroups API instead.
|
3524
|
+
# Application Load Balancers, Network Load Balancers, or Gateway Load
|
3525
|
+
# Balancers, use the DetachLoadBalancerTargetGroups API instead.
|
3489
3526
|
#
|
3490
3527
|
# When you detach a load balancer, it enters the `Removing` state while
|
3491
3528
|
# deregistering the instances in the group. When all instances are
|
@@ -3516,7 +3553,7 @@ module Aws::AutoScaling
|
|
3516
3553
|
# @example Request syntax with placeholder values
|
3517
3554
|
#
|
3518
3555
|
# resp = client.detach_load_balancers({
|
3519
|
-
# auto_scaling_group_name: "
|
3556
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3520
3557
|
# load_balancer_names: ["XmlStringMaxLen255"], # required
|
3521
3558
|
# })
|
3522
3559
|
#
|
@@ -3582,7 +3619,7 @@ module Aws::AutoScaling
|
|
3582
3619
|
# @example Request syntax with placeholder values
|
3583
3620
|
#
|
3584
3621
|
# resp = client.disable_metrics_collection({
|
3585
|
-
# auto_scaling_group_name: "
|
3622
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3586
3623
|
# metrics: ["XmlStringMaxLen255"],
|
3587
3624
|
# })
|
3588
3625
|
#
|
@@ -3660,7 +3697,7 @@ module Aws::AutoScaling
|
|
3660
3697
|
# @example Request syntax with placeholder values
|
3661
3698
|
#
|
3662
3699
|
# resp = client.enable_metrics_collection({
|
3663
|
-
# auto_scaling_group_name: "
|
3700
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3664
3701
|
# metrics: ["XmlStringMaxLen255"],
|
3665
3702
|
# granularity: "XmlStringMaxLen255", # required
|
3666
3703
|
# })
|
@@ -3739,7 +3776,7 @@ module Aws::AutoScaling
|
|
3739
3776
|
#
|
3740
3777
|
# resp = client.enter_standby({
|
3741
3778
|
# instance_ids: ["XmlStringMaxLen19"],
|
3742
|
-
# auto_scaling_group_name: "
|
3779
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3743
3780
|
# should_decrement_desired_capacity: false, # required
|
3744
3781
|
# })
|
3745
3782
|
#
|
@@ -3756,6 +3793,8 @@ module Aws::AutoScaling
|
|
3756
3793
|
# resp.activities[0].status_message #=> String
|
3757
3794
|
# resp.activities[0].progress #=> Integer
|
3758
3795
|
# resp.activities[0].details #=> String
|
3796
|
+
# resp.activities[0].auto_scaling_group_state #=> String
|
3797
|
+
# resp.activities[0].auto_scaling_group_arn #=> String
|
3759
3798
|
#
|
3760
3799
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnterStandby AWS API Documentation
|
3761
3800
|
#
|
@@ -3823,7 +3862,7 @@ module Aws::AutoScaling
|
|
3823
3862
|
# @example Request syntax with placeholder values
|
3824
3863
|
#
|
3825
3864
|
# resp = client.execute_policy({
|
3826
|
-
# auto_scaling_group_name: "
|
3865
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
3827
3866
|
# policy_name: "ResourceName", # required
|
3828
3867
|
# honor_cooldown: false,
|
3829
3868
|
# metric_value: 1.0,
|
@@ -3893,7 +3932,7 @@ module Aws::AutoScaling
|
|
3893
3932
|
#
|
3894
3933
|
# resp = client.exit_standby({
|
3895
3934
|
# instance_ids: ["XmlStringMaxLen19"],
|
3896
|
-
# auto_scaling_group_name: "
|
3935
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3897
3936
|
# })
|
3898
3937
|
#
|
3899
3938
|
# @example Response structure
|
@@ -3909,6 +3948,8 @@ module Aws::AutoScaling
|
|
3909
3948
|
# resp.activities[0].status_message #=> String
|
3910
3949
|
# resp.activities[0].progress #=> Integer
|
3911
3950
|
# resp.activities[0].details #=> String
|
3951
|
+
# resp.activities[0].auto_scaling_group_state #=> String
|
3952
|
+
# resp.activities[0].auto_scaling_group_arn #=> String
|
3912
3953
|
#
|
3913
3954
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExitStandby AWS API Documentation
|
3914
3955
|
#
|
@@ -4043,9 +4084,9 @@ module Aws::AutoScaling
|
|
4043
4084
|
#
|
4044
4085
|
# resp = client.put_lifecycle_hook({
|
4045
4086
|
# lifecycle_hook_name: "AsciiStringMaxLen255", # required
|
4046
|
-
# auto_scaling_group_name: "
|
4087
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4047
4088
|
# lifecycle_transition: "LifecycleTransition",
|
4048
|
-
# role_arn: "
|
4089
|
+
# role_arn: "XmlStringMaxLen255",
|
4049
4090
|
# notification_target_arn: "NotificationTargetResourceName",
|
4050
4091
|
# notification_metadata: "XmlStringMaxLen1023",
|
4051
4092
|
# heartbeat_timeout: 1,
|
@@ -4109,8 +4150,8 @@ module Aws::AutoScaling
|
|
4109
4150
|
# @example Request syntax with placeholder values
|
4110
4151
|
#
|
4111
4152
|
# resp = client.put_notification_configuration({
|
4112
|
-
# auto_scaling_group_name: "
|
4113
|
-
# topic_arn: "
|
4153
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4154
|
+
# topic_arn: "XmlStringMaxLen255", # required
|
4114
4155
|
# notification_types: ["XmlStringMaxLen255"], # required
|
4115
4156
|
# })
|
4116
4157
|
#
|
@@ -4313,7 +4354,7 @@ module Aws::AutoScaling
|
|
4313
4354
|
# @example Request syntax with placeholder values
|
4314
4355
|
#
|
4315
4356
|
# resp = client.put_scaling_policy({
|
4316
|
-
# auto_scaling_group_name: "
|
4357
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4317
4358
|
# policy_name: "XmlStringMaxLen255", # required
|
4318
4359
|
# policy_type: "XmlStringMaxLen64",
|
4319
4360
|
# adjustment_type: "XmlStringMaxLen255",
|
@@ -4451,7 +4492,7 @@ module Aws::AutoScaling
|
|
4451
4492
|
# @example Request syntax with placeholder values
|
4452
4493
|
#
|
4453
4494
|
# resp = client.put_scheduled_update_group_action({
|
4454
|
-
# auto_scaling_group_name: "
|
4495
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4455
4496
|
# scheduled_action_name: "XmlStringMaxLen255", # required
|
4456
4497
|
# time: Time.now,
|
4457
4498
|
# start_time: Time.now,
|
@@ -4602,7 +4643,7 @@ module Aws::AutoScaling
|
|
4602
4643
|
# @example Request syntax with placeholder values
|
4603
4644
|
#
|
4604
4645
|
# resp = client.resume_processes({
|
4605
|
-
# auto_scaling_group_name: "
|
4646
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4606
4647
|
# scaling_processes: ["XmlStringMaxLen255"],
|
4607
4648
|
# })
|
4608
4649
|
#
|
@@ -4660,7 +4701,7 @@ module Aws::AutoScaling
|
|
4660
4701
|
# @example Request syntax with placeholder values
|
4661
4702
|
#
|
4662
4703
|
# resp = client.set_desired_capacity({
|
4663
|
-
# auto_scaling_group_name: "
|
4704
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4664
4705
|
# desired_capacity: 1, # required
|
4665
4706
|
# honor_cooldown: false,
|
4666
4707
|
# })
|
@@ -4789,7 +4830,7 @@ module Aws::AutoScaling
|
|
4789
4830
|
#
|
4790
4831
|
# resp = client.set_instance_protection({
|
4791
4832
|
# instance_ids: ["XmlStringMaxLen19"], # required
|
4792
|
-
# auto_scaling_group_name: "
|
4833
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4793
4834
|
# protected_from_scale_in: false, # required
|
4794
4835
|
# })
|
4795
4836
|
#
|
@@ -4953,7 +4994,7 @@ module Aws::AutoScaling
|
|
4953
4994
|
# @example Request syntax with placeholder values
|
4954
4995
|
#
|
4955
4996
|
# resp = client.suspend_processes({
|
4956
|
-
# auto_scaling_group_name: "
|
4997
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4957
4998
|
# scaling_processes: ["XmlStringMaxLen255"],
|
4958
4999
|
# })
|
4959
5000
|
#
|
@@ -5031,6 +5072,8 @@ module Aws::AutoScaling
|
|
5031
5072
|
# resp.activity.status_message #=> String
|
5032
5073
|
# resp.activity.progress #=> Integer
|
5033
5074
|
# resp.activity.details #=> String
|
5075
|
+
# resp.activity.auto_scaling_group_state #=> String
|
5076
|
+
# resp.activity.auto_scaling_group_arn #=> String
|
5034
5077
|
#
|
5035
5078
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TerminateInstanceInAutoScalingGroup AWS API Documentation
|
5036
5079
|
#
|
@@ -5041,6 +5084,10 @@ module Aws::AutoScaling
|
|
5041
5084
|
req.send_request(options)
|
5042
5085
|
end
|
5043
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
|
+
#
|
5044
5091
|
# Updates the configuration for the specified Auto Scaling group.
|
5045
5092
|
#
|
5046
5093
|
# To update an Auto Scaling group, specify the name of the group and the
|
@@ -5271,8 +5318,8 @@ module Aws::AutoScaling
|
|
5271
5318
|
# @example Request syntax with placeholder values
|
5272
5319
|
#
|
5273
5320
|
# resp = client.update_auto_scaling_group({
|
5274
|
-
# auto_scaling_group_name: "
|
5275
|
-
# launch_configuration_name: "
|
5321
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
5322
|
+
# launch_configuration_name: "XmlStringMaxLen255",
|
5276
5323
|
# launch_template: {
|
5277
5324
|
# launch_template_id: "XmlStringMaxLen255",
|
5278
5325
|
# launch_template_name: "LaunchTemplateName",
|
@@ -5344,7 +5391,7 @@ module Aws::AutoScaling
|
|
5344
5391
|
params: params,
|
5345
5392
|
config: config)
|
5346
5393
|
context[:gem_name] = 'aws-sdk-autoscaling'
|
5347
|
-
context[:gem_version] = '1.
|
5394
|
+
context[:gem_version] = '1.55.0'
|
5348
5395
|
Seahorse::Client::Request.new(handlers, context)
|
5349
5396
|
end
|
5350
5397
|
|