aws-sdk-autoscaling 1.0.0.rc6 → 1.0.0.rc7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e656259d05f07e35a797a08cb73b1de0aef675a4
4
- data.tar.gz: 0ad3abb0f9e89c614693b603d04798c5e4097486
3
+ metadata.gz: 7e4b960cdeecdcca71996aad2313951d5ef2f7cb
4
+ data.tar.gz: d1b5c6ad6b2b847f1ab7c8812952d47b5e24844e
5
5
  SHA512:
6
- metadata.gz: 8bd1fbbcef48d497aa9c35b7e86722d7ff0192ba50e5692fa171e736972eb3845fb8fc0d167d6e39070e3499e0062c2e0127a64812aa0973b9389ca3214ef26b
7
- data.tar.gz: 604eaebc2f31cd35233d22060a2a21937d624010589d9630de31838c5e88c29697e4e75c3e665e9fb908f66b96ce9ada51b3a4b27dcba0049626f90c391c24f6
6
+ metadata.gz: 83968235f6539a85a2e79e5ecdd7a1899115dbe6acaf223fa1a6ab42b93e5270bab5aa85de0d196d78d50fc518db93d5fbd206179a8c348e41a271b7cff657c4
7
+ data.tar.gz: 8f1f2ade5eab7429b95fac17c6909cd4aeb6efabd35c32b50d8779b72182de21ea79fda7b0addc0b3ed09eec55eeffab8a6f7e170a9196fed02fb6d48166f107
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-autoscaling/customizations'
53
53
  # @service
54
54
  module Aws::AutoScaling
55
55
 
56
- GEM_VERSION = '1.0.0.rc6'
56
+ GEM_VERSION = '1.0.0.rc7'
57
57
 
58
58
  end
@@ -173,6 +173,18 @@ module Aws::AutoScaling
173
173
  #
174
174
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
175
175
  #
176
+ #
177
+ # @example Example: To attach an instance to an Auto Scaling group
178
+ #
179
+ # # This example attaches the specified instance to the specified Auto Scaling group.
180
+ #
181
+ # resp = client.attach_instances({
182
+ # auto_scaling_group_name: "my-auto-scaling-group",
183
+ # instance_ids: [
184
+ # "i-93633f9b",
185
+ # ],
186
+ # })
187
+ #
176
188
  # @example Request syntax with placeholder values
177
189
  #
178
190
  # resp = client.attach_instances({
@@ -211,6 +223,18 @@ module Aws::AutoScaling
211
223
  #
212
224
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
213
225
  #
226
+ #
227
+ # @example Example: To attach a target group to an Auto Scaling group
228
+ #
229
+ # # This example attaches the specified target group to the specified Auto Scaling group.
230
+ #
231
+ # resp = client.attach_load_balancer_target_groups({
232
+ # auto_scaling_group_name: "my-auto-scaling-group",
233
+ # target_group_arns: [
234
+ # "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
235
+ # ],
236
+ # })
237
+ #
214
238
  # @example Request syntax with placeholder values
215
239
  #
216
240
  # resp = client.attach_load_balancer_target_groups({
@@ -252,6 +276,18 @@ module Aws::AutoScaling
252
276
  #
253
277
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
254
278
  #
279
+ #
280
+ # @example Example: To attach a load balancer to an Auto Scaling group
281
+ #
282
+ # # This example attaches the specified load balancer to the specified Auto Scaling group.
283
+ #
284
+ # resp = client.attach_load_balancers({
285
+ # auto_scaling_group_name: "my-auto-scaling-group",
286
+ # load_balancer_names: [
287
+ # "my-load-balancer",
288
+ # ],
289
+ # })
290
+ #
255
291
  # @example Request syntax with placeholder values
256
292
  #
257
293
  # resp = client.attach_load_balancers({
@@ -320,6 +356,18 @@ module Aws::AutoScaling
320
356
  #
321
357
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
322
358
  #
359
+ #
360
+ # @example Example: To complete the lifecycle action
361
+ #
362
+ # # This example notifies Auto Scaling that the specified lifecycle action is complete so that it can finish launching or terminating the instance.
363
+ #
364
+ # resp = client.complete_lifecycle_action({
365
+ # auto_scaling_group_name: "my-auto-scaling-group",
366
+ # lifecycle_action_result: "CONTINUE",
367
+ # lifecycle_action_token: "bcd2f1b8-9a78-44d3-8a7a-4dd07d7cf635",
368
+ # lifecycle_hook_name: "my-lifecycle-hook",
369
+ # })
370
+ #
323
371
  # @example Request syntax with placeholder values
324
372
  #
325
373
  # resp = client.complete_lifecycle_action({
@@ -498,6 +546,55 @@ module Aws::AutoScaling
498
546
  #
499
547
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
500
548
  #
549
+ #
550
+ # @example Example: To create an Auto Scaling group
551
+ #
552
+ # # This example creates an Auto Scaling group.
553
+ #
554
+ # resp = client.create_auto_scaling_group({
555
+ # auto_scaling_group_name: "my-auto-scaling-group",
556
+ # launch_configuration_name: "my-launch-config",
557
+ # max_size: 3,
558
+ # min_size: 1,
559
+ # vpc_zone_identifier: "subnet-4176792c",
560
+ # })
561
+ #
562
+ # @example Example: To create an Auto Scaling group with an attached load balancer
563
+ #
564
+ # # This example creates an Auto Scaling group and attaches the specified Classic Load Balancer.
565
+ #
566
+ # resp = client.create_auto_scaling_group({
567
+ # auto_scaling_group_name: "my-auto-scaling-group",
568
+ # availability_zones: [
569
+ # "us-west-2c",
570
+ # ],
571
+ # health_check_grace_period: 120,
572
+ # health_check_type: "ELB",
573
+ # launch_configuration_name: "my-launch-config",
574
+ # load_balancer_names: [
575
+ # "my-load-balancer",
576
+ # ],
577
+ # max_size: 3,
578
+ # min_size: 1,
579
+ # })
580
+ #
581
+ # @example Example: To create an Auto Scaling group with an attached target group
582
+ #
583
+ # # This example creates an Auto Scaling group and attaches the specified target group.
584
+ #
585
+ # resp = client.create_auto_scaling_group({
586
+ # auto_scaling_group_name: "my-auto-scaling-group",
587
+ # health_check_grace_period: 120,
588
+ # health_check_type: "ELB",
589
+ # launch_configuration_name: "my-launch-config",
590
+ # max_size: 3,
591
+ # min_size: 1,
592
+ # target_group_arns: [
593
+ # "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
594
+ # ],
595
+ # vpc_zone_identifier: "subnet-4176792c, subnet-65ea5f08",
596
+ # })
597
+ #
501
598
  # @example Request syntax with placeholder values
502
599
  #
503
600
  # resp = client.create_auto_scaling_group({
@@ -752,6 +849,21 @@ module Aws::AutoScaling
752
849
  #
753
850
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
754
851
  #
852
+ #
853
+ # @example Example: To create a launch configuration
854
+ #
855
+ # # This example creates a launch configuration.
856
+ #
857
+ # resp = client.create_launch_configuration({
858
+ # iam_instance_profile: "my-iam-role",
859
+ # image_id: "ami-12345678",
860
+ # instance_type: "m3.medium",
861
+ # launch_configuration_name: "my-launch-config",
862
+ # security_groups: [
863
+ # "sg-eb2af88e",
864
+ # ],
865
+ # })
866
+ #
755
867
  # @example Request syntax with placeholder values
756
868
  #
757
869
  # resp = client.create_launch_configuration({
@@ -818,6 +930,30 @@ module Aws::AutoScaling
818
930
  #
819
931
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
820
932
  #
933
+ #
934
+ # @example Example: To create or update tags for an Auto Scaling group
935
+ #
936
+ # # This example adds two tags to the specified Auto Scaling group.
937
+ #
938
+ # resp = client.create_or_update_tags({
939
+ # tags: [
940
+ # {
941
+ # key: "Role",
942
+ # propagate_at_launch: true,
943
+ # resource_id: "my-auto-scaling-group",
944
+ # resource_type: "auto-scaling-group",
945
+ # value: "WebServer",
946
+ # },
947
+ # {
948
+ # key: "Dept",
949
+ # propagate_at_launch: true,
950
+ # resource_id: "my-auto-scaling-group",
951
+ # resource_type: "auto-scaling-group",
952
+ # value: "Research",
953
+ # },
954
+ # ],
955
+ # })
956
+ #
821
957
  # @example Request syntax with placeholder values
822
958
  #
823
959
  # resp = client.create_or_update_tags({
@@ -870,6 +1006,24 @@ module Aws::AutoScaling
870
1006
  #
871
1007
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
872
1008
  #
1009
+ #
1010
+ # @example Example: To delete an Auto Scaling group
1011
+ #
1012
+ # # This example deletes the specified Auto Scaling group.
1013
+ #
1014
+ # resp = client.delete_auto_scaling_group({
1015
+ # auto_scaling_group_name: "my-auto-scaling-group",
1016
+ # })
1017
+ #
1018
+ # @example Example: To delete an Auto Scaling group and all its instances
1019
+ #
1020
+ # # This example deletes the specified Auto Scaling group and all its instances.
1021
+ #
1022
+ # resp = client.delete_auto_scaling_group({
1023
+ # auto_scaling_group_name: "my-auto-scaling-group",
1024
+ # force_delete: true,
1025
+ # })
1026
+ #
873
1027
  # @example Request syntax with placeholder values
874
1028
  #
875
1029
  # resp = client.delete_auto_scaling_group({
@@ -897,6 +1051,15 @@ module Aws::AutoScaling
897
1051
  #
898
1052
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
899
1053
  #
1054
+ #
1055
+ # @example Example: To delete a launch configuration
1056
+ #
1057
+ # # This example deletes the specified launch configuration.
1058
+ #
1059
+ # resp = client.delete_launch_configuration({
1060
+ # launch_configuration_name: "my-launch-config",
1061
+ # })
1062
+ #
900
1063
  # @example Request syntax with placeholder values
901
1064
  #
902
1065
  # resp = client.delete_launch_configuration({
@@ -926,6 +1089,16 @@ module Aws::AutoScaling
926
1089
  #
927
1090
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
928
1091
  #
1092
+ #
1093
+ # @example Example: To delete a lifecycle hook
1094
+ #
1095
+ # # This example deletes the specified lifecycle hook.
1096
+ #
1097
+ # resp = client.delete_lifecycle_hook({
1098
+ # auto_scaling_group_name: "my-auto-scaling-group",
1099
+ # lifecycle_hook_name: "my-lifecycle-hook",
1100
+ # })
1101
+ #
929
1102
  # @example Request syntax with placeholder values
930
1103
  #
931
1104
  # resp = client.delete_lifecycle_hook({
@@ -953,6 +1126,16 @@ module Aws::AutoScaling
953
1126
  #
954
1127
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
955
1128
  #
1129
+ #
1130
+ # @example Example: To delete an Auto Scaling notification
1131
+ #
1132
+ # # This example deletes the specified notification from the specified Auto Scaling group.
1133
+ #
1134
+ # resp = client.delete_notification_configuration({
1135
+ # auto_scaling_group_name: "my-auto-scaling-group",
1136
+ # topic_arn: "arn:aws:sns:us-west-2:123456789012:my-sns-topic",
1137
+ # })
1138
+ #
956
1139
  # @example Request syntax with placeholder values
957
1140
  #
958
1141
  # resp = client.delete_notification_configuration({
@@ -982,6 +1165,16 @@ module Aws::AutoScaling
982
1165
  #
983
1166
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
984
1167
  #
1168
+ #
1169
+ # @example Example: To delete an Auto Scaling policy
1170
+ #
1171
+ # # This example deletes the specified Auto Scaling policy.
1172
+ #
1173
+ # resp = client.delete_policy({
1174
+ # auto_scaling_group_name: "my-auto-scaling-group",
1175
+ # policy_name: "ScaleIn",
1176
+ # })
1177
+ #
985
1178
  # @example Request syntax with placeholder values
986
1179
  #
987
1180
  # resp = client.delete_policy({
@@ -1008,6 +1201,16 @@ module Aws::AutoScaling
1008
1201
  #
1009
1202
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1010
1203
  #
1204
+ #
1205
+ # @example Example: To delete a scheduled action from an Auto Scaling group
1206
+ #
1207
+ # # This example deletes the specified scheduled action from the specified Auto Scaling group.
1208
+ #
1209
+ # resp = client.delete_scheduled_action({
1210
+ # auto_scaling_group_name: "my-auto-scaling-group",
1211
+ # scheduled_action_name: "my-scheduled-action",
1212
+ # })
1213
+ #
1011
1214
  # @example Request syntax with placeholder values
1012
1215
  #
1013
1216
  # resp = client.delete_scheduled_action({
@@ -1031,6 +1234,22 @@ module Aws::AutoScaling
1031
1234
  #
1032
1235
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1033
1236
  #
1237
+ #
1238
+ # @example Example: To delete a tag from an Auto Scaling group
1239
+ #
1240
+ # # This example deletes the specified tag from the specified Auto Scaling group.
1241
+ #
1242
+ # resp = client.delete_tags({
1243
+ # tags: [
1244
+ # {
1245
+ # key: "Dept",
1246
+ # resource_id: "my-auto-scaling-group",
1247
+ # resource_type: "auto-scaling-group",
1248
+ # value: "Research",
1249
+ # },
1250
+ # ],
1251
+ # })
1252
+ #
1034
1253
  # @example Request syntax with placeholder values
1035
1254
  #
1036
1255
  # resp = client.delete_tags({
@@ -1071,6 +1290,22 @@ module Aws::AutoScaling
1071
1290
  # * {Types::DescribeAccountLimitsAnswer#number_of_auto_scaling_groups #number_of_auto_scaling_groups} => Integer
1072
1291
  # * {Types::DescribeAccountLimitsAnswer#number_of_launch_configurations #number_of_launch_configurations} => Integer
1073
1292
  #
1293
+ #
1294
+ # @example Example: To describe your Auto Scaling account limits
1295
+ #
1296
+ # # This example describes the Auto Scaling limits for your AWS account.
1297
+ #
1298
+ # resp = client.describe_account_limits({
1299
+ # })
1300
+ #
1301
+ # resp.to_h outputs the following:
1302
+ # {
1303
+ # max_number_of_auto_scaling_groups: 20,
1304
+ # max_number_of_launch_configurations: 100,
1305
+ # number_of_auto_scaling_groups: 3,
1306
+ # number_of_launch_configurations: 5,
1307
+ # }
1308
+ #
1074
1309
  # @example Response structure
1075
1310
  #
1076
1311
  # resp.max_number_of_auto_scaling_groups #=> Integer
@@ -1093,6 +1328,29 @@ module Aws::AutoScaling
1093
1328
  #
1094
1329
  # * {Types::DescribeAdjustmentTypesAnswer#adjustment_types #adjustment_types} => Array<Types::AdjustmentType>
1095
1330
  #
1331
+ #
1332
+ # @example Example: To describe the Auto Scaling adjustment types
1333
+ #
1334
+ # # This example describes the available adjustment types.
1335
+ #
1336
+ # resp = client.describe_adjustment_types({
1337
+ # })
1338
+ #
1339
+ # resp.to_h outputs the following:
1340
+ # {
1341
+ # adjustment_types: [
1342
+ # {
1343
+ # adjustment_type: "ChangeInCapacity",
1344
+ # },
1345
+ # {
1346
+ # adjustment_type: "ExactCapcity",
1347
+ # },
1348
+ # {
1349
+ # adjustment_type: "PercentChangeInCapacity",
1350
+ # },
1351
+ # ],
1352
+ # }
1353
+ #
1096
1354
  # @example Response structure
1097
1355
  #
1098
1356
  # resp.adjustment_types #=> Array
@@ -1126,6 +1384,61 @@ module Aws::AutoScaling
1126
1384
  # * {Types::AutoScalingGroupsType#auto_scaling_groups #auto_scaling_groups} => Array<Types::AutoScalingGroup>
1127
1385
  # * {Types::AutoScalingGroupsType#next_token #next_token} => String
1128
1386
  #
1387
+ #
1388
+ # @example Example: To describe an Auto Scaling group
1389
+ #
1390
+ # # This example describes the specified Auto Scaling group.
1391
+ #
1392
+ # resp = client.describe_auto_scaling_groups({
1393
+ # auto_scaling_group_names: [
1394
+ # "my-auto-scaling-group",
1395
+ # ],
1396
+ # })
1397
+ #
1398
+ # resp.to_h outputs the following:
1399
+ # {
1400
+ # auto_scaling_groups: [
1401
+ # {
1402
+ # auto_scaling_group_arn: "arn:aws:autoscaling:us-west-2:123456789012:autoScalingGroup:930d940e-891e-4781-a11a-7b0acd480f03:autoScalingGroupName/my-auto-scaling-group",
1403
+ # auto_scaling_group_name: "my-auto-scaling-group",
1404
+ # availability_zones: [
1405
+ # "us-west-2c",
1406
+ # ],
1407
+ # created_time: Time.parse("2013-08-19T20:53:25.584Z"),
1408
+ # default_cooldown: 300,
1409
+ # desired_capacity: 1,
1410
+ # enabled_metrics: [
1411
+ # ],
1412
+ # health_check_grace_period: 300,
1413
+ # health_check_type: "EC2",
1414
+ # instances: [
1415
+ # {
1416
+ # availability_zone: "us-west-2c",
1417
+ # health_status: "Healthy",
1418
+ # instance_id: "i-4ba0837f",
1419
+ # launch_configuration_name: "my-launch-config",
1420
+ # lifecycle_state: "InService",
1421
+ # protected_from_scale_in: false,
1422
+ # },
1423
+ # ],
1424
+ # launch_configuration_name: "my-launch-config",
1425
+ # load_balancer_names: [
1426
+ # ],
1427
+ # max_size: 1,
1428
+ # min_size: 0,
1429
+ # new_instances_protected_from_scale_in: false,
1430
+ # suspended_processes: [
1431
+ # ],
1432
+ # tags: [
1433
+ # ],
1434
+ # termination_policies: [
1435
+ # "Default",
1436
+ # ],
1437
+ # vpc_zone_identifier: "subnet-12345678",
1438
+ # },
1439
+ # ],
1440
+ # }
1441
+ #
1129
1442
  # @example Request syntax with placeholder values
1130
1443
  #
1131
1444
  # resp = client.describe_auto_scaling_groups({
@@ -1209,6 +1522,32 @@ module Aws::AutoScaling
1209
1522
  # * {Types::AutoScalingInstancesType#auto_scaling_instances #auto_scaling_instances} => Array<Types::AutoScalingInstanceDetails>
1210
1523
  # * {Types::AutoScalingInstancesType#next_token #next_token} => String
1211
1524
  #
1525
+ #
1526
+ # @example Example: To describe one or more Auto Scaling instances
1527
+ #
1528
+ # # This example describes the specified Auto Scaling instance.
1529
+ #
1530
+ # resp = client.describe_auto_scaling_instances({
1531
+ # instance_ids: [
1532
+ # "i-4ba0837f",
1533
+ # ],
1534
+ # })
1535
+ #
1536
+ # resp.to_h outputs the following:
1537
+ # {
1538
+ # auto_scaling_instances: [
1539
+ # {
1540
+ # auto_scaling_group_name: "my-auto-scaling-group",
1541
+ # availability_zone: "us-west-2c",
1542
+ # health_status: "HEALTHY",
1543
+ # instance_id: "i-4ba0837f",
1544
+ # launch_configuration_name: "my-launch-config",
1545
+ # lifecycle_state: "InService",
1546
+ # protected_from_scale_in: false,
1547
+ # },
1548
+ # ],
1549
+ # }
1550
+ #
1212
1551
  # @example Request syntax with placeholder values
1213
1552
  #
1214
1553
  # resp = client.describe_auto_scaling_instances({
@@ -1244,6 +1583,25 @@ module Aws::AutoScaling
1244
1583
  #
1245
1584
  # * {Types::DescribeAutoScalingNotificationTypesAnswer#auto_scaling_notification_types #auto_scaling_notification_types} => Array<String>
1246
1585
  #
1586
+ #
1587
+ # @example Example: To describe the Auto Scaling notification types
1588
+ #
1589
+ # # This example describes the available notification types.
1590
+ #
1591
+ # resp = client.describe_auto_scaling_notification_types({
1592
+ # })
1593
+ #
1594
+ # resp.to_h outputs the following:
1595
+ # {
1596
+ # auto_scaling_notification_types: [
1597
+ # "autoscaling:EC2_INSTANCE_LAUNCH",
1598
+ # "autoscaling:EC2_INSTANCE_LAUNCH_ERROR",
1599
+ # "autoscaling:EC2_INSTANCE_TERMINATE",
1600
+ # "autoscaling:EC2_INSTANCE_TERMINATE_ERROR",
1601
+ # "autoscaling:TEST_NOTIFICATION",
1602
+ # ],
1603
+ # }
1604
+ #
1247
1605
  # @example Response structure
1248
1606
  #
1249
1607
  # resp.auto_scaling_notification_types #=> Array
@@ -1277,6 +1635,40 @@ module Aws::AutoScaling
1277
1635
  # * {Types::LaunchConfigurationsType#launch_configurations #launch_configurations} => Array<Types::LaunchConfiguration>
1278
1636
  # * {Types::LaunchConfigurationsType#next_token #next_token} => String
1279
1637
  #
1638
+ #
1639
+ # @example Example: To describe Auto Scaling launch configurations
1640
+ #
1641
+ # # This example describes the specified launch configuration.
1642
+ #
1643
+ # resp = client.describe_launch_configurations({
1644
+ # launch_configuration_names: [
1645
+ # "my-launch-config",
1646
+ # ],
1647
+ # })
1648
+ #
1649
+ # resp.to_h outputs the following:
1650
+ # {
1651
+ # launch_configurations: [
1652
+ # {
1653
+ # associate_public_ip_address: true,
1654
+ # block_device_mappings: [
1655
+ # ],
1656
+ # created_time: Time.parse("2014-05-07T17:39:28.599Z"),
1657
+ # ebs_optimized: false,
1658
+ # image_id: "ami-043a5034",
1659
+ # instance_monitoring: {
1660
+ # enabled: true,
1661
+ # },
1662
+ # instance_type: "t1.micro",
1663
+ # launch_configuration_arn: "arn:aws:autoscaling:us-west-2:123456789012:launchConfiguration:98d3b196-4cf9-4e88-8ca1-8547c24ced8b:launchConfigurationName/my-launch-config",
1664
+ # launch_configuration_name: "my-launch-config",
1665
+ # security_groups: [
1666
+ # "sg-67ef0308",
1667
+ # ],
1668
+ # },
1669
+ # ],
1670
+ # }
1671
+ #
1280
1672
  # @example Request syntax with placeholder values
1281
1673
  #
1282
1674
  # resp = client.describe_launch_configurations({
@@ -1335,6 +1727,22 @@ module Aws::AutoScaling
1335
1727
  #
1336
1728
  # * {Types::DescribeLifecycleHookTypesAnswer#lifecycle_hook_types #lifecycle_hook_types} => Array<String>
1337
1729
  #
1730
+ #
1731
+ # @example Example: To describe the available types of lifecycle hooks
1732
+ #
1733
+ # # This example describes the available lifecycle hook types.
1734
+ #
1735
+ # resp = client.describe_lifecycle_hook_types({
1736
+ # })
1737
+ #
1738
+ # resp.to_h outputs the following:
1739
+ # {
1740
+ # lifecycle_hook_types: [
1741
+ # "autoscaling:EC2_INSTANCE_LAUNCHING",
1742
+ # "autoscaling:EC2_INSTANCE_TERMINATING",
1743
+ # ],
1744
+ # }
1745
+ #
1338
1746
  # @example Response structure
1339
1747
  #
1340
1748
  # resp.lifecycle_hook_types #=> Array
@@ -1362,6 +1770,31 @@ module Aws::AutoScaling
1362
1770
  #
1363
1771
  # * {Types::DescribeLifecycleHooksAnswer#lifecycle_hooks #lifecycle_hooks} => Array<Types::LifecycleHook>
1364
1772
  #
1773
+ #
1774
+ # @example Example: To describe your lifecycle hooks
1775
+ #
1776
+ # # This example describes the lifecycle hooks for the specified Auto Scaling group.
1777
+ #
1778
+ # resp = client.describe_lifecycle_hooks({
1779
+ # auto_scaling_group_name: "my-auto-scaling-group",
1780
+ # })
1781
+ #
1782
+ # resp.to_h outputs the following:
1783
+ # {
1784
+ # lifecycle_hooks: [
1785
+ # {
1786
+ # auto_scaling_group_name: "my-auto-scaling-group",
1787
+ # default_result: "ABANDON",
1788
+ # global_timeout: 172800,
1789
+ # heartbeat_timeout: 3600,
1790
+ # lifecycle_hook_name: "my-lifecycle-hook",
1791
+ # lifecycle_transition: "autoscaling:EC2_INSTANCE_LAUNCHING",
1792
+ # notification_target_arn: "arn:aws:sns:us-west-2:123456789012:my-sns-topic",
1793
+ # role_arn: "arn:aws:iam::123456789012:role/my-auto-scaling-role",
1794
+ # },
1795
+ # ],
1796
+ # }
1797
+ #
1365
1798
  # @example Request syntax with placeholder values
1366
1799
  #
1367
1800
  # resp = client.describe_lifecycle_hooks({
@@ -1409,6 +1842,25 @@ module Aws::AutoScaling
1409
1842
  # * {Types::DescribeLoadBalancerTargetGroupsResponse#load_balancer_target_groups #load_balancer_target_groups} => Array<Types::LoadBalancerTargetGroupState>
1410
1843
  # * {Types::DescribeLoadBalancerTargetGroupsResponse#next_token #next_token} => String
1411
1844
  #
1845
+ #
1846
+ # @example Example: To describe the target groups for an Auto Scaling group
1847
+ #
1848
+ # # This example describes the target groups attached to the specified Auto Scaling group.
1849
+ #
1850
+ # resp = client.describe_load_balancer_target_groups({
1851
+ # auto_scaling_group_name: "my-auto-scaling-group",
1852
+ # })
1853
+ #
1854
+ # resp.to_h outputs the following:
1855
+ # {
1856
+ # load_balancer_target_groups: [
1857
+ # {
1858
+ # load_balancer_target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
1859
+ # state: "Added",
1860
+ # },
1861
+ # ],
1862
+ # }
1863
+ #
1412
1864
  # @example Request syntax with placeholder values
1413
1865
  #
1414
1866
  # resp = client.describe_load_balancer_target_groups({
@@ -1455,6 +1907,25 @@ module Aws::AutoScaling
1455
1907
  # * {Types::DescribeLoadBalancersResponse#load_balancers #load_balancers} => Array<Types::LoadBalancerState>
1456
1908
  # * {Types::DescribeLoadBalancersResponse#next_token #next_token} => String
1457
1909
  #
1910
+ #
1911
+ # @example Example: To describe the load balancers for an Auto Scaling group
1912
+ #
1913
+ # # This example describes the load balancers attached to the specified Auto Scaling group.
1914
+ #
1915
+ # resp = client.describe_load_balancers({
1916
+ # auto_scaling_group_name: "my-auto-scaling-group",
1917
+ # })
1918
+ #
1919
+ # resp.to_h outputs the following:
1920
+ # {
1921
+ # load_balancers: [
1922
+ # {
1923
+ # load_balancer_name: "my-load-balancer",
1924
+ # state: "Added",
1925
+ # },
1926
+ # ],
1927
+ # }
1928
+ #
1458
1929
  # @example Request syntax with placeholder values
1459
1930
  #
1460
1931
  # resp = client.describe_load_balancers({
@@ -1490,6 +1961,49 @@ module Aws::AutoScaling
1490
1961
  # * {Types::DescribeMetricCollectionTypesAnswer#metrics #metrics} => Array<Types::MetricCollectionType>
1491
1962
  # * {Types::DescribeMetricCollectionTypesAnswer#granularities #granularities} => Array<Types::MetricGranularityType>
1492
1963
  #
1964
+ #
1965
+ # @example Example: To describe the Auto Scaling metric collection types
1966
+ #
1967
+ # # This example describes the available metric collection types.
1968
+ #
1969
+ # resp = client.describe_metric_collection_types({
1970
+ # })
1971
+ #
1972
+ # resp.to_h outputs the following:
1973
+ # {
1974
+ # granularities: [
1975
+ # {
1976
+ # granularity: "1Minute",
1977
+ # },
1978
+ # ],
1979
+ # metrics: [
1980
+ # {
1981
+ # metric: "GroupMinSize",
1982
+ # },
1983
+ # {
1984
+ # metric: "GroupMaxSize",
1985
+ # },
1986
+ # {
1987
+ # metric: "GroupDesiredCapacity",
1988
+ # },
1989
+ # {
1990
+ # metric: "GroupInServiceInstances",
1991
+ # },
1992
+ # {
1993
+ # metric: "GroupPendingInstances",
1994
+ # },
1995
+ # {
1996
+ # metric: "GroupTerminatingInstances",
1997
+ # },
1998
+ # {
1999
+ # metric: "GroupStandbyInstances",
2000
+ # },
2001
+ # {
2002
+ # metric: "GroupTotalInstances",
2003
+ # },
2004
+ # ],
2005
+ # }
2006
+ #
1493
2007
  # @example Response structure
1494
2008
  #
1495
2009
  # resp.metrics #=> Array
@@ -1525,6 +2039,33 @@ module Aws::AutoScaling
1525
2039
  # * {Types::DescribeNotificationConfigurationsAnswer#notification_configurations #notification_configurations} => Array<Types::NotificationConfiguration>
1526
2040
  # * {Types::DescribeNotificationConfigurationsAnswer#next_token #next_token} => String
1527
2041
  #
2042
+ #
2043
+ # @example Example: To describe Auto Scaling notification configurations
2044
+ #
2045
+ # # This example describes the notification configurations for the specified Auto Scaling group.
2046
+ #
2047
+ # resp = client.describe_notification_configurations({
2048
+ # auto_scaling_group_names: [
2049
+ # "my-auto-scaling-group",
2050
+ # ],
2051
+ # })
2052
+ #
2053
+ # resp.to_h outputs the following:
2054
+ # {
2055
+ # notification_configurations: [
2056
+ # {
2057
+ # auto_scaling_group_name: "my-auto-scaling-group",
2058
+ # notification_type: "autoscaling:TEST_NOTIFICATION",
2059
+ # topic_arn: "arn:aws:sns:us-west-2:123456789012:my-sns-topic-2",
2060
+ # },
2061
+ # {
2062
+ # auto_scaling_group_name: "my-auto-scaling-group",
2063
+ # notification_type: "autoscaling:TEST_NOTIFICATION",
2064
+ # topic_arn: "arn:aws:sns:us-west-2:123456789012:my-sns-topic",
2065
+ # },
2066
+ # ],
2067
+ # }
2068
+ #
1528
2069
  # @example Request syntax with placeholder values
1529
2070
  #
1530
2071
  # resp = client.describe_notification_configurations({
@@ -1579,6 +2120,41 @@ module Aws::AutoScaling
1579
2120
  # * {Types::PoliciesType#scaling_policies #scaling_policies} => Array<Types::ScalingPolicy>
1580
2121
  # * {Types::PoliciesType#next_token #next_token} => String
1581
2122
  #
2123
+ #
2124
+ # @example Example: To describe Auto Scaling policies
2125
+ #
2126
+ # # This example describes the policies for the specified Auto Scaling group.
2127
+ #
2128
+ # resp = client.describe_policies({
2129
+ # auto_scaling_group_name: "my-auto-scaling-group",
2130
+ # })
2131
+ #
2132
+ # resp.to_h outputs the following:
2133
+ # {
2134
+ # scaling_policies: [
2135
+ # {
2136
+ # adjustment_type: "ChangeInCapacity",
2137
+ # alarms: [
2138
+ # ],
2139
+ # auto_scaling_group_name: "my-auto-scaling-group",
2140
+ # policy_arn: "arn:aws:autoscaling:us-west-2:123456789012:scalingPolicy:2233f3d7-6290-403b-b632-93c553560106:autoScalingGroupName/my-auto-scaling-group:policyName/ScaleIn",
2141
+ # policy_name: "ScaleIn",
2142
+ # scaling_adjustment: -1,
2143
+ # },
2144
+ # {
2145
+ # adjustment_type: "PercentChangeInCapacity",
2146
+ # alarms: [
2147
+ # ],
2148
+ # auto_scaling_group_name: "my-auto-scaling-group",
2149
+ # cooldown: 60,
2150
+ # min_adjustment_step: 2,
2151
+ # policy_arn: "arn:aws:autoscaling:us-west-2:123456789012:scalingPolicy:2b435159-cf77-4e89-8c0e-d63b497baad7:autoScalingGroupName/my-auto-scaling-group:policyName/ScalePercentChange",
2152
+ # policy_name: "ScalePercentChange",
2153
+ # scaling_adjustment: 25,
2154
+ # },
2155
+ # ],
2156
+ # }
2157
+ #
1582
2158
  # @example Request syntax with placeholder values
1583
2159
  #
1584
2160
  # resp = client.describe_policies({
@@ -1647,6 +2223,32 @@ module Aws::AutoScaling
1647
2223
  # * {Types::ActivitiesType#activities #activities} => Array<Types::Activity>
1648
2224
  # * {Types::ActivitiesType#next_token #next_token} => String
1649
2225
  #
2226
+ #
2227
+ # @example Example: To describe the scaling activities for an Auto Scaling group
2228
+ #
2229
+ # # This example describes the scaling activities for the specified Auto Scaling group.
2230
+ #
2231
+ # resp = client.describe_scaling_activities({
2232
+ # auto_scaling_group_name: "my-auto-scaling-group",
2233
+ # })
2234
+ #
2235
+ # resp.to_h outputs the following:
2236
+ # {
2237
+ # activities: [
2238
+ # {
2239
+ # activity_id: "f9f2d65b-f1f2-43e7-b46d-d86756459699",
2240
+ # auto_scaling_group_name: "my-auto-scaling-group",
2241
+ # cause: "At 2013-08-19T20:53:25Z a user request created an AutoScalingGroup changing the desired capacity from 0 to 1. At 2013-08-19T20:53:29Z an instance was started in response to a difference between desired and actual capacity, increasing the capacity from 0 to 1.",
2242
+ # description: "Launching a new EC2 instance: i-4ba0837f",
2243
+ # details: "details",
2244
+ # end_time: Time.parse("2013-08-19T20:54:02Z"),
2245
+ # progress: 100,
2246
+ # start_time: Time.parse("2013-08-19T20:53:29.930Z"),
2247
+ # status_code: "Successful",
2248
+ # },
2249
+ # ],
2250
+ # }
2251
+ #
1650
2252
  # @example Request syntax with placeholder values
1651
2253
  #
1652
2254
  # resp = client.describe_scaling_activities({
@@ -1687,6 +2289,44 @@ module Aws::AutoScaling
1687
2289
  #
1688
2290
  # * {Types::ProcessesType#processes #processes} => Array<Types::ProcessType>
1689
2291
  #
2292
+ #
2293
+ # @example Example: To describe the Auto Scaling process types
2294
+ #
2295
+ # # This example describes the Auto Scaling process types.
2296
+ #
2297
+ # resp = client.describe_scaling_process_types({
2298
+ # })
2299
+ #
2300
+ # resp.to_h outputs the following:
2301
+ # {
2302
+ # processes: [
2303
+ # {
2304
+ # process_name: "AZRebalance",
2305
+ # },
2306
+ # {
2307
+ # process_name: "AddToLoadBalancer",
2308
+ # },
2309
+ # {
2310
+ # process_name: "AlarmNotification",
2311
+ # },
2312
+ # {
2313
+ # process_name: "HealthCheck",
2314
+ # },
2315
+ # {
2316
+ # process_name: "Launch",
2317
+ # },
2318
+ # {
2319
+ # process_name: "ReplaceUnhealthy",
2320
+ # },
2321
+ # {
2322
+ # process_name: "ScheduledActions",
2323
+ # },
2324
+ # {
2325
+ # process_name: "Terminate",
2326
+ # },
2327
+ # ],
2328
+ # }
2329
+ #
1690
2330
  # @example Response structure
1691
2331
  #
1692
2332
  # resp.processes #=> Array
@@ -1738,6 +2378,32 @@ module Aws::AutoScaling
1738
2378
  # * {Types::ScheduledActionsType#scheduled_update_group_actions #scheduled_update_group_actions} => Array<Types::ScheduledUpdateGroupAction>
1739
2379
  # * {Types::ScheduledActionsType#next_token #next_token} => String
1740
2380
  #
2381
+ #
2382
+ # @example Example: To describe scheduled actions
2383
+ #
2384
+ # # This example describes the scheduled actions for the specified Auto Scaling group.
2385
+ #
2386
+ # resp = client.describe_scheduled_actions({
2387
+ # auto_scaling_group_name: "my-auto-scaling-group",
2388
+ # })
2389
+ #
2390
+ # resp.to_h outputs the following:
2391
+ # {
2392
+ # scheduled_update_group_actions: [
2393
+ # {
2394
+ # auto_scaling_group_name: "my-auto-scaling-group",
2395
+ # desired_capacity: 4,
2396
+ # max_size: 6,
2397
+ # min_size: 2,
2398
+ # recurrence: "30 0 1 12 0",
2399
+ # scheduled_action_arn: "arn:aws:autoscaling:us-west-2:123456789012:scheduledUpdateGroupAction:8e86b655-b2e6-4410-8f29-b4f094d6871c:autoScalingGroupName/my-auto-scaling-group:scheduledActionName/my-scheduled-action",
2400
+ # scheduled_action_name: "my-scheduled-action",
2401
+ # start_time: Time.parse("2016-12-01T00:30:00Z"),
2402
+ # time: Time.parse("2016-12-01T00:30:00Z"),
2403
+ # },
2404
+ # ],
2405
+ # }
2406
+ #
1741
2407
  # @example Request syntax with placeholder values
1742
2408
  #
1743
2409
  # resp = client.describe_scheduled_actions({
@@ -1800,6 +2466,42 @@ module Aws::AutoScaling
1800
2466
  # * {Types::TagsType#tags #tags} => Array<Types::TagDescription>
1801
2467
  # * {Types::TagsType#next_token #next_token} => String
1802
2468
  #
2469
+ #
2470
+ # @example Example: To describe tags
2471
+ #
2472
+ # # This example describes the tags for the specified Auto Scaling group.
2473
+ #
2474
+ # resp = client.describe_tags({
2475
+ # filters: [
2476
+ # {
2477
+ # name: "auto-scaling-group",
2478
+ # values: [
2479
+ # "my-auto-scaling-group",
2480
+ # ],
2481
+ # },
2482
+ # ],
2483
+ # })
2484
+ #
2485
+ # resp.to_h outputs the following:
2486
+ # {
2487
+ # tags: [
2488
+ # {
2489
+ # key: "Dept",
2490
+ # propagate_at_launch: true,
2491
+ # resource_id: "my-auto-scaling-group",
2492
+ # resource_type: "auto-scaling-group",
2493
+ # value: "Research",
2494
+ # },
2495
+ # {
2496
+ # key: "Role",
2497
+ # propagate_at_launch: true,
2498
+ # resource_id: "my-auto-scaling-group",
2499
+ # resource_type: "auto-scaling-group",
2500
+ # value: "WebServer",
2501
+ # },
2502
+ # ],
2503
+ # }
2504
+ #
1803
2505
  # @example Request syntax with placeholder values
1804
2506
  #
1805
2507
  # resp = client.describe_tags({
@@ -1838,6 +2540,25 @@ module Aws::AutoScaling
1838
2540
  #
1839
2541
  # * {Types::DescribeTerminationPolicyTypesAnswer#termination_policy_types #termination_policy_types} => Array<String>
1840
2542
  #
2543
+ #
2544
+ # @example Example: To describe termination policy types
2545
+ #
2546
+ # # This example describes the available termination policy types.
2547
+ #
2548
+ # resp = client.describe_termination_policy_types({
2549
+ # })
2550
+ #
2551
+ # resp.to_h outputs the following:
2552
+ # {
2553
+ # termination_policy_types: [
2554
+ # "ClosestToNextInstanceHour",
2555
+ # "Default",
2556
+ # "NewestInstance",
2557
+ # "OldestInstance",
2558
+ # "OldestLaunchConfiguration",
2559
+ # ],
2560
+ # }
2561
+ #
1841
2562
  # @example Response structure
1842
2563
  #
1843
2564
  # resp.termination_policy_types #=> Array
@@ -1886,6 +2607,35 @@ module Aws::AutoScaling
1886
2607
  #
1887
2608
  # * {Types::DetachInstancesAnswer#activities #activities} => Array<Types::Activity>
1888
2609
  #
2610
+ #
2611
+ # @example Example: To detach an instance from an Auto Scaling group
2612
+ #
2613
+ # # This example detaches the specified instance from the specified Auto Scaling group.
2614
+ #
2615
+ # resp = client.detach_instances({
2616
+ # auto_scaling_group_name: "my-auto-scaling-group",
2617
+ # instance_ids: [
2618
+ # "i-93633f9b",
2619
+ # ],
2620
+ # should_decrement_desired_capacity: true,
2621
+ # })
2622
+ #
2623
+ # resp.to_h outputs the following:
2624
+ # {
2625
+ # activities: [
2626
+ # {
2627
+ # activity_id: "5091cb52-547a-47ce-a236-c9ccbc2cb2c9",
2628
+ # auto_scaling_group_name: "my-auto-scaling-group",
2629
+ # cause: "At 2015-04-12T15:02:16Z instance i-93633f9b was detached in response to a user request, shrinking the capacity from 2 to 1.",
2630
+ # description: "Detaching EC2 instance: i-93633f9b",
2631
+ # details: "details",
2632
+ # progress: 50,
2633
+ # start_time: Time.parse("2015-04-12T15:02:16.179Z"),
2634
+ # status_code: "InProgress",
2635
+ # },
2636
+ # ],
2637
+ # }
2638
+ #
1889
2639
  # @example Request syntax with placeholder values
1890
2640
  #
1891
2641
  # resp = client.detach_instances({
@@ -1928,6 +2678,18 @@ module Aws::AutoScaling
1928
2678
  #
1929
2679
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1930
2680
  #
2681
+ #
2682
+ # @example Example: To detach a target group from an Auto Scaling group
2683
+ #
2684
+ # # This example detaches the specified target group from the specified Auto Scaling group
2685
+ #
2686
+ # resp = client.detach_load_balancer_target_groups({
2687
+ # auto_scaling_group_name: "my-auto-scaling-group",
2688
+ # target_group_arns: [
2689
+ # "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
2690
+ # ],
2691
+ # })
2692
+ #
1931
2693
  # @example Request syntax with placeholder values
1932
2694
  #
1933
2695
  # resp = client.detach_load_balancer_target_groups({
@@ -1964,6 +2726,18 @@ module Aws::AutoScaling
1964
2726
  #
1965
2727
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1966
2728
  #
2729
+ #
2730
+ # @example Example: To detach a load balancer from an Auto Scaling group
2731
+ #
2732
+ # # This example detaches the specified load balancer from the specified Auto Scaling group.
2733
+ #
2734
+ # resp = client.detach_load_balancers({
2735
+ # auto_scaling_group_name: "my-auto-scaling-group",
2736
+ # load_balancer_names: [
2737
+ # "my-load-balancer",
2738
+ # ],
2739
+ # })
2740
+ #
1967
2741
  # @example Request syntax with placeholder values
1968
2742
  #
1969
2743
  # resp = client.detach_load_balancers({
@@ -2007,6 +2781,18 @@ module Aws::AutoScaling
2007
2781
  #
2008
2782
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2009
2783
  #
2784
+ #
2785
+ # @example Example: To disable metrics collection for an Auto Scaling group
2786
+ #
2787
+ # # This example disables collecting data for the GroupDesiredCapacity metric for the specified Auto Scaling group.
2788
+ #
2789
+ # resp = client.disable_metrics_collection({
2790
+ # auto_scaling_group_name: "my-auto-scaling-group",
2791
+ # metrics: [
2792
+ # "GroupDesiredCapacity",
2793
+ # ],
2794
+ # })
2795
+ #
2010
2796
  # @example Request syntax with placeholder values
2011
2797
  #
2012
2798
  # resp = client.disable_metrics_collection({
@@ -2060,6 +2846,16 @@ module Aws::AutoScaling
2060
2846
  #
2061
2847
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2062
2848
  #
2849
+ #
2850
+ # @example Example: To enable metrics collection for an Auto Scaling group
2851
+ #
2852
+ # # This example enables data collection for the specified Auto Scaling group.
2853
+ #
2854
+ # resp = client.enable_metrics_collection({
2855
+ # auto_scaling_group_name: "my-auto-scaling-group",
2856
+ # granularity: "1Minute",
2857
+ # })
2858
+ #
2063
2859
  # @example Request syntax with placeholder values
2064
2860
  #
2065
2861
  # resp = client.enable_metrics_collection({
@@ -2103,6 +2899,35 @@ module Aws::AutoScaling
2103
2899
  #
2104
2900
  # * {Types::EnterStandbyAnswer#activities #activities} => Array<Types::Activity>
2105
2901
  #
2902
+ #
2903
+ # @example Example: To move instances into standby mode
2904
+ #
2905
+ # # This example puts the specified instance into standby mode.
2906
+ #
2907
+ # resp = client.enter_standby({
2908
+ # auto_scaling_group_name: "my-auto-scaling-group",
2909
+ # instance_ids: [
2910
+ # "i-93633f9b",
2911
+ # ],
2912
+ # should_decrement_desired_capacity: true,
2913
+ # })
2914
+ #
2915
+ # resp.to_h outputs the following:
2916
+ # {
2917
+ # activities: [
2918
+ # {
2919
+ # activity_id: "ffa056b4-6ed3-41ba-ae7c-249dfae6eba1",
2920
+ # auto_scaling_group_name: "my-auto-scaling-group",
2921
+ # cause: "At 2015-04-12T15:10:23Z instance i-93633f9b was moved to standby in response to a user request, shrinking the capacity from 2 to 1.",
2922
+ # description: "Moving EC2 instance to Standby: i-93633f9b",
2923
+ # details: "details",
2924
+ # progress: 50,
2925
+ # start_time: Time.parse("2015-04-12T15:10:23.640Z"),
2926
+ # status_code: "InProgress",
2927
+ # },
2928
+ # ],
2929
+ # }
2930
+ #
2106
2931
  # @example Request syntax with placeholder values
2107
2932
  #
2108
2933
  # resp = client.enter_standby({
@@ -2178,6 +3003,17 @@ module Aws::AutoScaling
2178
3003
  #
2179
3004
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2180
3005
  #
3006
+ #
3007
+ # @example Example: To execute an Auto Scaling policy
3008
+ #
3009
+ # # This example executes the specified Auto Scaling policy for the specified Auto Scaling group.
3010
+ #
3011
+ # resp = client.execute_policy({
3012
+ # auto_scaling_group_name: "my-auto-scaling-group",
3013
+ # honor_cooldown: true,
3014
+ # policy_name: "ScaleIn",
3015
+ # })
3016
+ #
2181
3017
  # @example Request syntax with placeholder values
2182
3018
  #
2183
3019
  # resp = client.execute_policy({
@@ -2216,6 +3052,34 @@ module Aws::AutoScaling
2216
3052
  #
2217
3053
  # * {Types::ExitStandbyAnswer#activities #activities} => Array<Types::Activity>
2218
3054
  #
3055
+ #
3056
+ # @example Example: To move instances out of standby mode
3057
+ #
3058
+ # # This example moves the specified instance out of standby mode.
3059
+ #
3060
+ # resp = client.exit_standby({
3061
+ # auto_scaling_group_name: "my-auto-scaling-group",
3062
+ # instance_ids: [
3063
+ # "i-93633f9b",
3064
+ # ],
3065
+ # })
3066
+ #
3067
+ # resp.to_h outputs the following:
3068
+ # {
3069
+ # activities: [
3070
+ # {
3071
+ # activity_id: "142928e1-a2dc-453a-9b24-b85ad6735928",
3072
+ # auto_scaling_group_name: "my-auto-scaling-group",
3073
+ # cause: "At 2015-04-12T15:14:29Z instance i-93633f9b was moved out of standby in response to a user request, increasing the capacity from 1 to 2.",
3074
+ # description: "Moving EC2 instance out of Standby: i-93633f9b",
3075
+ # details: "details",
3076
+ # progress: 30,
3077
+ # start_time: Time.parse("2015-04-12T15:14:29.886Z"),
3078
+ # status_code: "PreInService",
3079
+ # },
3080
+ # ],
3081
+ # }
3082
+ #
2219
3083
  # @example Request syntax with placeholder values
2220
3084
  #
2221
3085
  # resp = client.exit_standby({
@@ -2341,6 +3205,19 @@ module Aws::AutoScaling
2341
3205
  #
2342
3206
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2343
3207
  #
3208
+ #
3209
+ # @example Example: To create a lifecycle hook
3210
+ #
3211
+ # # This example creates a lifecycle hook.
3212
+ #
3213
+ # resp = client.put_lifecycle_hook({
3214
+ # auto_scaling_group_name: "my-auto-scaling-group",
3215
+ # lifecycle_hook_name: "my-lifecycle-hook",
3216
+ # lifecycle_transition: "autoscaling:EC2_INSTANCE_LAUNCHING",
3217
+ # notification_target_arn: "arn:aws:sns:us-west-2:123456789012:my-sns-topic --role-arn",
3218
+ # role_arn: "arn:aws:iam::123456789012:role/my-auto-scaling-role",
3219
+ # })
3220
+ #
2344
3221
  # @example Request syntax with placeholder values
2345
3222
  #
2346
3223
  # resp = client.put_lifecycle_hook({
@@ -2391,6 +3268,19 @@ module Aws::AutoScaling
2391
3268
  #
2392
3269
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2393
3270
  #
3271
+ #
3272
+ # @example Example: To add an Auto Scaling notification
3273
+ #
3274
+ # # This example adds the specified notification to the specified Auto Scaling group.
3275
+ #
3276
+ # resp = client.put_notification_configuration({
3277
+ # auto_scaling_group_name: "my-auto-scaling-group",
3278
+ # notification_types: [
3279
+ # "autoscaling:TEST_NOTIFICATION",
3280
+ # ],
3281
+ # topic_arn: "arn:aws:sns:us-west-2:123456789012:my-sns-topic",
3282
+ # })
3283
+ #
2394
3284
  # @example Request syntax with placeholder values
2395
3285
  #
2396
3286
  # resp = client.put_notification_configuration({
@@ -2501,6 +3391,23 @@ module Aws::AutoScaling
2501
3391
  #
2502
3392
  # * {Types::PolicyARNType#policy_arn #policy_arn} => String
2503
3393
  #
3394
+ #
3395
+ # @example Example: To add a scaling policy to an Auto Scaling group
3396
+ #
3397
+ # # This example adds the specified policy to the specified Auto Scaling group.
3398
+ #
3399
+ # resp = client.put_scaling_policy({
3400
+ # adjustment_type: "ChangeInCapacity",
3401
+ # auto_scaling_group_name: "my-auto-scaling-group",
3402
+ # policy_name: "ScaleIn",
3403
+ # scaling_adjustment: -1,
3404
+ # })
3405
+ #
3406
+ # resp.to_h outputs the following:
3407
+ # {
3408
+ # policy_arn: "arn:aws:autoscaling:us-west-2:123456789012:scalingPolicy:2233f3d7-6290-403b-b632-93c553560106:autoScalingGroupName/my-auto-scaling-group:policyName/ScaleIn",
3409
+ # }
3410
+ #
2504
3411
  # @example Request syntax with placeholder values
2505
3412
  #
2506
3413
  # resp = client.put_scaling_policy({
@@ -2590,6 +3497,21 @@ module Aws::AutoScaling
2590
3497
  #
2591
3498
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2592
3499
  #
3500
+ #
3501
+ # @example Example: To add a scheduled action to an Auto Scaling group
3502
+ #
3503
+ # # This example adds the specified scheduled action to the specified Auto Scaling group.
3504
+ #
3505
+ # resp = client.put_scheduled_update_group_action({
3506
+ # auto_scaling_group_name: "my-auto-scaling-group",
3507
+ # desired_capacity: 4,
3508
+ # end_time: Time.parse("2014-05-12T08:00:00Z"),
3509
+ # max_size: 6,
3510
+ # min_size: 2,
3511
+ # scheduled_action_name: "my-scheduled-action",
3512
+ # start_time: Time.parse("2014-05-12T08:00:00Z"),
3513
+ # })
3514
+ #
2593
3515
  # @example Request syntax with placeholder values
2594
3516
  #
2595
3517
  # resp = client.put_scheduled_update_group_action({
@@ -2661,6 +3583,17 @@ module Aws::AutoScaling
2661
3583
  #
2662
3584
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2663
3585
  #
3586
+ #
3587
+ # @example Example: To record a lifecycle action heartbeat
3588
+ #
3589
+ # # This example records a lifecycle action heartbeat to keep the instance in a pending state.
3590
+ #
3591
+ # resp = client.record_lifecycle_action_heartbeat({
3592
+ # auto_scaling_group_name: "my-auto-scaling-group",
3593
+ # lifecycle_action_token: "bcd2f1b8-9a78-44d3-8a7a-4dd07d7cf635",
3594
+ # lifecycle_hook_name: "my-lifecycle-hook",
3595
+ # })
3596
+ #
2664
3597
  # @example Request syntax with placeholder values
2665
3598
  #
2666
3599
  # resp = client.record_lifecycle_action_heartbeat({
@@ -2714,6 +3647,18 @@ module Aws::AutoScaling
2714
3647
  #
2715
3648
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2716
3649
  #
3650
+ #
3651
+ # @example Example: To resume Auto Scaling processes
3652
+ #
3653
+ # # This example resumes the specified suspended scaling process for the specified Auto Scaling group.
3654
+ #
3655
+ # resp = client.resume_processes({
3656
+ # auto_scaling_group_name: "my-auto-scaling-group",
3657
+ # scaling_processes: [
3658
+ # "AlarmNotification",
3659
+ # ],
3660
+ # })
3661
+ #
2717
3662
  # @example Request syntax with placeholder values
2718
3663
  #
2719
3664
  # resp = client.resume_processes({
@@ -2755,6 +3700,17 @@ module Aws::AutoScaling
2755
3700
  #
2756
3701
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2757
3702
  #
3703
+ #
3704
+ # @example Example: To set the desired capacity for an Auto Scaling group
3705
+ #
3706
+ # # This example sets the desired capacity for the specified Auto Scaling group.
3707
+ #
3708
+ # resp = client.set_desired_capacity({
3709
+ # auto_scaling_group_name: "my-auto-scaling-group",
3710
+ # desired_capacity: 2,
3711
+ # honor_cooldown: true,
3712
+ # })
3713
+ #
2758
3714
  # @example Request syntax with placeholder values
2759
3715
  #
2760
3716
  # resp = client.set_desired_capacity({
@@ -2801,6 +3757,16 @@ module Aws::AutoScaling
2801
3757
  #
2802
3758
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2803
3759
  #
3760
+ #
3761
+ # @example Example: To set the health status of an instance
3762
+ #
3763
+ # # This example sets the health status of the specified instance to Unhealthy.
3764
+ #
3765
+ # resp = client.set_instance_health({
3766
+ # health_status: "Unhealthy",
3767
+ # instance_id: "i-93633f9b",
3768
+ # })
3769
+ #
2804
3770
  # @example Request syntax with placeholder values
2805
3771
  #
2806
3772
  # resp = client.set_instance_health({
@@ -2839,6 +3805,31 @@ module Aws::AutoScaling
2839
3805
  #
2840
3806
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2841
3807
  #
3808
+ #
3809
+ # @example Example: To enable instance protection for an instance
3810
+ #
3811
+ # # This example enables instance protection for the specified instance.
3812
+ #
3813
+ # resp = client.set_instance_protection({
3814
+ # auto_scaling_group_name: "my-auto-scaling-group",
3815
+ # instance_ids: [
3816
+ # "i-93633f9b",
3817
+ # ],
3818
+ # protected_from_scale_in: true,
3819
+ # })
3820
+ #
3821
+ # @example Example: To disable instance protection for an instance
3822
+ #
3823
+ # # This example disables instance protection for the specified instance.
3824
+ #
3825
+ # resp = client.set_instance_protection({
3826
+ # auto_scaling_group_name: "my-auto-scaling-group",
3827
+ # instance_ids: [
3828
+ # "i-93633f9b",
3829
+ # ],
3830
+ # protected_from_scale_in: false,
3831
+ # })
3832
+ #
2842
3833
  # @example Request syntax with placeholder values
2843
3834
  #
2844
3835
  # resp = client.set_instance_protection({
@@ -2896,6 +3887,18 @@ module Aws::AutoScaling
2896
3887
  #
2897
3888
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2898
3889
  #
3890
+ #
3891
+ # @example Example: To suspend Auto Scaling processes
3892
+ #
3893
+ # # This example suspends the specified scaling process for the specified Auto Scaling group.
3894
+ #
3895
+ # resp = client.suspend_processes({
3896
+ # auto_scaling_group_name: "my-auto-scaling-group",
3897
+ # scaling_processes: [
3898
+ # "AlarmNotification",
3899
+ # ],
3900
+ # })
3901
+ #
2899
3902
  # @example Request syntax with placeholder values
2900
3903
  #
2901
3904
  # resp = client.suspend_processes({
@@ -2929,6 +3932,16 @@ module Aws::AutoScaling
2929
3932
  #
2930
3933
  # * {Types::ActivityType#activity #activity} => Types::Activity
2931
3934
  #
3935
+ #
3936
+ # @example Example: To terminate an instance in an Auto Scaling group
3937
+ #
3938
+ # # This example terminates the specified instance from the specified Auto Scaling group without updating the size of the group. Auto Scaling launches a replacement instance after the specified instance terminates.
3939
+ #
3940
+ # resp = client.terminate_instance_in_auto_scaling_group({
3941
+ # instance_id: "i-93633f9b",
3942
+ # should_decrement_desired_capacity: false,
3943
+ # })
3944
+ #
2932
3945
  # @example Request syntax with placeholder values
2933
3946
  #
2934
3947
  # resp = client.terminate_instance_in_auto_scaling_group({
@@ -3073,6 +4086,35 @@ module Aws::AutoScaling
3073
4086
  #
3074
4087
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
3075
4088
  #
4089
+ #
4090
+ # @example Example: To update the launch configuration
4091
+ #
4092
+ # # This example updates the launch configuration of the specified Auto Scaling group.
4093
+ #
4094
+ # resp = client.update_auto_scaling_group({
4095
+ # auto_scaling_group_name: "my-auto-scaling-group",
4096
+ # launch_configuration_name: "new-launch-config",
4097
+ # })
4098
+ #
4099
+ # @example Example: To update the minimum and maximum size
4100
+ #
4101
+ # # This example updates the minimum size and maximum size of the specified Auto Scaling group.
4102
+ #
4103
+ # resp = client.update_auto_scaling_group({
4104
+ # auto_scaling_group_name: "my-auto-scaling-group",
4105
+ # max_size: 3,
4106
+ # min_size: 1,
4107
+ # })
4108
+ #
4109
+ # @example Example: To enable instance protection
4110
+ #
4111
+ # # This example enables instance protection for the specified Auto Scaling group.
4112
+ #
4113
+ # resp = client.update_auto_scaling_group({
4114
+ # auto_scaling_group_name: "my-auto-scaling-group",
4115
+ # new_instances_protected_from_scale_in: true,
4116
+ # })
4117
+ #
3076
4118
  # @example Request syntax with placeholder values
3077
4119
  #
3078
4120
  # resp = client.update_auto_scaling_group({
@@ -3113,7 +4155,7 @@ module Aws::AutoScaling
3113
4155
  params: params,
3114
4156
  config: config)
3115
4157
  context[:gem_name] = 'aws-sdk-autoscaling'
3116
- context[:gem_version] = '1.0.0.rc6'
4158
+ context[:gem_version] = '1.0.0.rc7'
3117
4159
  Seahorse::Client::Request.new(handlers, context)
3118
4160
  end
3119
4161