aws-sdk-autoscaling 1.146.0 → 1.148.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-autoscaling/auto_scaling_group.rb +21 -0
- data/lib/aws-sdk-autoscaling/client.rb +137 -7
- data/lib/aws-sdk-autoscaling/client_api.rb +89 -0
- data/lib/aws-sdk-autoscaling/errors.rb +19 -0
- data/lib/aws-sdk-autoscaling/instance.rb +22 -0
- data/lib/aws-sdk-autoscaling/resource.rb +17 -0
- data/lib/aws-sdk-autoscaling/types.rb +352 -5
- data/lib/aws-sdk-autoscaling.rb +1 -1
- data/sig/activity.rbs +1 -1
- data/sig/auto_scaling_group.rbs +10 -1
- data/sig/client.rbs +36 -4
- data/sig/errors.rbs +3 -0
- data/sig/instance.rbs +3 -0
- data/sig/resource.rbs +7 -1
- data/sig/types.rbs +64 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ee03f0484b35f156be655587e45e22b2d9954418fe2ac796bdb8adf8dcd41419
|
|
4
|
+
data.tar.gz: 9d66954d044c223ba7ff588eeee9875ff8f7caecbc2ad70994ef4868b2308274
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 05df46078c67ec34a9d14ca2d3b889671c198de3ce1bede35caed2f9cb1eb25e6d52bbc1326137ced27e25e9faa2e5159fbae3709cd1ab763634f0b2c1c5c753
|
|
7
|
+
data.tar.gz: 966c2be9ecb726e9c5f572af5e6b39f60f42c5eb69962faf168e96ad4af33acbb6ea3235ec93a22d4ecdbb5defb447f81d209ef493ada33e76d08beea06a6a50
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.148.0 (2025-11-20)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - This release adds support for three new features: 1) Image ID overrides in mixed instances policy, 2) Replace Root Volume - a new strategy for Instance Refresh, and 3) Instance Lifecycle Policy for enhanced instance lifecycle management.
|
|
8
|
+
|
|
9
|
+
1.147.0 (2025-11-18)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - This release adds the new LaunchInstances API, which can launch instances synchronously in an AutoScaling group. The API also returns instances info and launch error back immediately.
|
|
13
|
+
|
|
4
14
|
1.146.0 (2025-10-22)
|
|
5
15
|
------------------
|
|
6
16
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.148.0
|
|
@@ -268,6 +268,15 @@ module Aws::AutoScaling
|
|
|
268
268
|
data[:capacity_reservation_specification]
|
|
269
269
|
end
|
|
270
270
|
|
|
271
|
+
# The instance lifecycle policy applied to this Auto Scaling group. This
|
|
272
|
+
# policy determines instance behavior when an instance transitions
|
|
273
|
+
# through its lifecycle states. It provides additional control over
|
|
274
|
+
# graceful instance management processes.
|
|
275
|
+
# @return [Types::InstanceLifecyclePolicy]
|
|
276
|
+
def instance_lifecycle_policy
|
|
277
|
+
data[:instance_lifecycle_policy]
|
|
278
|
+
end
|
|
279
|
+
|
|
271
280
|
# @!endgroup
|
|
272
281
|
|
|
273
282
|
# @return [Client]
|
|
@@ -1277,6 +1286,7 @@ module Aws::AutoScaling
|
|
|
1277
1286
|
# },
|
|
1278
1287
|
# },
|
|
1279
1288
|
# },
|
|
1289
|
+
# image_id: "ImageId",
|
|
1280
1290
|
# },
|
|
1281
1291
|
# ],
|
|
1282
1292
|
# },
|
|
@@ -1325,6 +1335,11 @@ module Aws::AutoScaling
|
|
|
1325
1335
|
# capacity_reservation_resource_group_arns: ["ResourceName"],
|
|
1326
1336
|
# },
|
|
1327
1337
|
# },
|
|
1338
|
+
# instance_lifecycle_policy: {
|
|
1339
|
+
# retention_triggers: {
|
|
1340
|
+
# terminate_hook_abandon: "retain", # accepts retain, terminate
|
|
1341
|
+
# },
|
|
1342
|
+
# },
|
|
1328
1343
|
# })
|
|
1329
1344
|
# @param [Hash] options ({})
|
|
1330
1345
|
# @option options [String] :launch_configuration_name
|
|
@@ -1545,6 +1560,12 @@ module Aws::AutoScaling
|
|
|
1545
1560
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-zonal-shift.html
|
|
1546
1561
|
# @option options [Types::CapacityReservationSpecification] :capacity_reservation_specification
|
|
1547
1562
|
# The capacity reservation specification for the Auto Scaling group.
|
|
1563
|
+
# @option options [Types::InstanceLifecyclePolicy] :instance_lifecycle_policy
|
|
1564
|
+
# The instance lifecycle policy for the Auto Scaling group. Use this to
|
|
1565
|
+
# add, modify, or remove lifecycle policies that control instance
|
|
1566
|
+
# behavior when an instance transitions through its lifecycle states.
|
|
1567
|
+
# Configure retention triggers to specify when to preserve instances for
|
|
1568
|
+
# manual intervention.
|
|
1548
1569
|
# @return [AutoScalingGroup]
|
|
1549
1570
|
def update(options = {})
|
|
1550
1571
|
options = options.merge(auto_scaling_group_name: @name)
|
|
@@ -1380,6 +1380,18 @@ module Aws::AutoScaling
|
|
|
1380
1380
|
# @option params [Types::CapacityReservationSpecification] :capacity_reservation_specification
|
|
1381
1381
|
# The capacity reservation specification for the Auto Scaling group.
|
|
1382
1382
|
#
|
|
1383
|
+
# @option params [Types::InstanceLifecyclePolicy] :instance_lifecycle_policy
|
|
1384
|
+
# The instance lifecycle policy for the Auto Scaling group. This policy
|
|
1385
|
+
# controls instance behavior when an instance transitions through its
|
|
1386
|
+
# lifecycle states. Configure retention triggers to specify when
|
|
1387
|
+
# instances should move to a `Retained` state for manual intervention
|
|
1388
|
+
# instead of automatic termination.
|
|
1389
|
+
#
|
|
1390
|
+
# <note markdown="1"> Instances in a Retained state will continue to incur standard EC2
|
|
1391
|
+
# charges until terminated.
|
|
1392
|
+
#
|
|
1393
|
+
# </note>
|
|
1394
|
+
#
|
|
1383
1395
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1384
1396
|
#
|
|
1385
1397
|
#
|
|
@@ -1592,6 +1604,7 @@ module Aws::AutoScaling
|
|
|
1592
1604
|
# },
|
|
1593
1605
|
# },
|
|
1594
1606
|
# },
|
|
1607
|
+
# image_id: "ImageId",
|
|
1595
1608
|
# },
|
|
1596
1609
|
# ],
|
|
1597
1610
|
# },
|
|
@@ -1669,6 +1682,11 @@ module Aws::AutoScaling
|
|
|
1669
1682
|
# capacity_reservation_resource_group_arns: ["ResourceName"],
|
|
1670
1683
|
# },
|
|
1671
1684
|
# },
|
|
1685
|
+
# instance_lifecycle_policy: {
|
|
1686
|
+
# retention_triggers: {
|
|
1687
|
+
# terminate_hook_abandon: "retain", # accepts retain, terminate
|
|
1688
|
+
# },
|
|
1689
|
+
# },
|
|
1672
1690
|
# })
|
|
1673
1691
|
#
|
|
1674
1692
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroup AWS API Documentation
|
|
@@ -2716,6 +2734,7 @@ module Aws::AutoScaling
|
|
|
2716
2734
|
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].instance_requirements.allowed_instance_types[0] #=> String
|
|
2717
2735
|
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].instance_requirements.baseline_performance_factors.cpu.references #=> Array
|
|
2718
2736
|
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].instance_requirements.baseline_performance_factors.cpu.references[0].instance_family #=> String
|
|
2737
|
+
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].image_id #=> String
|
|
2719
2738
|
# resp.auto_scaling_groups[0].mixed_instances_policy.instances_distribution.on_demand_allocation_strategy #=> String
|
|
2720
2739
|
# resp.auto_scaling_groups[0].mixed_instances_policy.instances_distribution.on_demand_base_capacity #=> Integer
|
|
2721
2740
|
# resp.auto_scaling_groups[0].mixed_instances_policy.instances_distribution.on_demand_percentage_above_base_capacity #=> Integer
|
|
@@ -2745,6 +2764,7 @@ module Aws::AutoScaling
|
|
|
2745
2764
|
# resp.auto_scaling_groups[0].instances[0].launch_template.launch_template_id #=> String
|
|
2746
2765
|
# resp.auto_scaling_groups[0].instances[0].launch_template.launch_template_name #=> String
|
|
2747
2766
|
# resp.auto_scaling_groups[0].instances[0].launch_template.version #=> String
|
|
2767
|
+
# resp.auto_scaling_groups[0].instances[0].image_id #=> String
|
|
2748
2768
|
# resp.auto_scaling_groups[0].instances[0].protected_from_scale_in #=> Boolean
|
|
2749
2769
|
# resp.auto_scaling_groups[0].instances[0].weighted_capacity #=> String
|
|
2750
2770
|
# resp.auto_scaling_groups[0].created_time #=> Time
|
|
@@ -2791,6 +2811,7 @@ module Aws::AutoScaling
|
|
|
2791
2811
|
# resp.auto_scaling_groups[0].capacity_reservation_specification.capacity_reservation_target.capacity_reservation_ids[0] #=> String
|
|
2792
2812
|
# resp.auto_scaling_groups[0].capacity_reservation_specification.capacity_reservation_target.capacity_reservation_resource_group_arns #=> Array
|
|
2793
2813
|
# resp.auto_scaling_groups[0].capacity_reservation_specification.capacity_reservation_target.capacity_reservation_resource_group_arns[0] #=> String
|
|
2814
|
+
# resp.auto_scaling_groups[0].instance_lifecycle_policy.retention_triggers.terminate_hook_abandon #=> String, one of "retain", "terminate"
|
|
2794
2815
|
# resp.next_token #=> String
|
|
2795
2816
|
#
|
|
2796
2817
|
#
|
|
@@ -2882,6 +2903,7 @@ module Aws::AutoScaling
|
|
|
2882
2903
|
# resp.auto_scaling_instances[0].launch_template.launch_template_id #=> String
|
|
2883
2904
|
# resp.auto_scaling_instances[0].launch_template.launch_template_name #=> String
|
|
2884
2905
|
# resp.auto_scaling_instances[0].launch_template.version #=> String
|
|
2906
|
+
# resp.auto_scaling_instances[0].image_id #=> String
|
|
2885
2907
|
# resp.auto_scaling_instances[0].protected_from_scale_in #=> Boolean
|
|
2886
2908
|
# resp.auto_scaling_instances[0].weighted_capacity #=> String
|
|
2887
2909
|
# resp.next_token #=> String
|
|
@@ -3129,6 +3151,7 @@ module Aws::AutoScaling
|
|
|
3129
3151
|
# resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.launch_template.overrides[0].instance_requirements.allowed_instance_types[0] #=> String
|
|
3130
3152
|
# resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.launch_template.overrides[0].instance_requirements.baseline_performance_factors.cpu.references #=> Array
|
|
3131
3153
|
# resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.launch_template.overrides[0].instance_requirements.baseline_performance_factors.cpu.references[0].instance_family #=> String
|
|
3154
|
+
# resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.launch_template.overrides[0].image_id #=> String
|
|
3132
3155
|
# resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.instances_distribution.on_demand_allocation_strategy #=> String
|
|
3133
3156
|
# resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.instances_distribution.on_demand_base_capacity #=> Integer
|
|
3134
3157
|
# resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.instances_distribution.on_demand_percentage_above_base_capacity #=> Integer
|
|
@@ -3143,6 +3166,7 @@ module Aws::AutoScaling
|
|
|
3143
3166
|
# resp.instance_refreshes[0].rollback_details.progress_details_on_rollback.live_pool_progress.instances_to_update #=> Integer
|
|
3144
3167
|
# resp.instance_refreshes[0].rollback_details.progress_details_on_rollback.warm_pool_progress.percentage_complete #=> Integer
|
|
3145
3168
|
# resp.instance_refreshes[0].rollback_details.progress_details_on_rollback.warm_pool_progress.instances_to_update #=> Integer
|
|
3169
|
+
# resp.instance_refreshes[0].strategy #=> String, one of "Rolling", "ReplaceRootVolume"
|
|
3146
3170
|
# resp.next_token #=> String
|
|
3147
3171
|
#
|
|
3148
3172
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeInstanceRefreshes AWS API Documentation
|
|
@@ -4023,7 +4047,7 @@ module Aws::AutoScaling
|
|
|
4023
4047
|
# resp.activities[0].cause #=> String
|
|
4024
4048
|
# resp.activities[0].start_time #=> Time
|
|
4025
4049
|
# resp.activities[0].end_time #=> Time
|
|
4026
|
-
# resp.activities[0].status_code #=> String, one of "PendingSpotBidPlacement", "WaitingForSpotInstanceRequestId", "WaitingForSpotInstanceId", "WaitingForInstanceId", "PreInService", "InProgress", "WaitingForELBConnectionDraining", "MidLifecycleAction", "WaitingForInstanceWarmup", "Successful", "Failed", "Cancelled", "WaitingForConnectionDraining"
|
|
4050
|
+
# resp.activities[0].status_code #=> String, one of "PendingSpotBidPlacement", "WaitingForSpotInstanceRequestId", "WaitingForSpotInstanceId", "WaitingForInstanceId", "PreInService", "InProgress", "WaitingForELBConnectionDraining", "MidLifecycleAction", "WaitingForInstanceWarmup", "Successful", "Failed", "Cancelled", "WaitingForConnectionDraining", "WaitingForInPlaceUpdateToStart", "WaitingForInPlaceUpdateToFinalize", "InPlaceUpdateInProgress"
|
|
4027
4051
|
# resp.activities[0].status_message #=> String
|
|
4028
4052
|
# resp.activities[0].progress #=> Integer
|
|
4029
4053
|
# resp.activities[0].details #=> String
|
|
@@ -4502,6 +4526,7 @@ module Aws::AutoScaling
|
|
|
4502
4526
|
# resp.instances[0].launch_template.launch_template_id #=> String
|
|
4503
4527
|
# resp.instances[0].launch_template.launch_template_name #=> String
|
|
4504
4528
|
# resp.instances[0].launch_template.version #=> String
|
|
4529
|
+
# resp.instances[0].image_id #=> String
|
|
4505
4530
|
# resp.instances[0].protected_from_scale_in #=> Boolean
|
|
4506
4531
|
# resp.instances[0].weighted_capacity #=> String
|
|
4507
4532
|
# resp.next_token #=> String
|
|
@@ -4596,7 +4621,7 @@ module Aws::AutoScaling
|
|
|
4596
4621
|
# resp.activities[0].cause #=> String
|
|
4597
4622
|
# resp.activities[0].start_time #=> Time
|
|
4598
4623
|
# resp.activities[0].end_time #=> Time
|
|
4599
|
-
# resp.activities[0].status_code #=> String, one of "PendingSpotBidPlacement", "WaitingForSpotInstanceRequestId", "WaitingForSpotInstanceId", "WaitingForInstanceId", "PreInService", "InProgress", "WaitingForELBConnectionDraining", "MidLifecycleAction", "WaitingForInstanceWarmup", "Successful", "Failed", "Cancelled", "WaitingForConnectionDraining"
|
|
4624
|
+
# resp.activities[0].status_code #=> String, one of "PendingSpotBidPlacement", "WaitingForSpotInstanceRequestId", "WaitingForSpotInstanceId", "WaitingForInstanceId", "PreInService", "InProgress", "WaitingForELBConnectionDraining", "MidLifecycleAction", "WaitingForInstanceWarmup", "Successful", "Failed", "Cancelled", "WaitingForConnectionDraining", "WaitingForInPlaceUpdateToStart", "WaitingForInPlaceUpdateToFinalize", "InPlaceUpdateInProgress"
|
|
4600
4625
|
# resp.activities[0].status_message #=> String
|
|
4601
4626
|
# resp.activities[0].progress #=> Integer
|
|
4602
4627
|
# resp.activities[0].details #=> String
|
|
@@ -5077,7 +5102,7 @@ module Aws::AutoScaling
|
|
|
5077
5102
|
# resp.activities[0].cause #=> String
|
|
5078
5103
|
# resp.activities[0].start_time #=> Time
|
|
5079
5104
|
# resp.activities[0].end_time #=> Time
|
|
5080
|
-
# resp.activities[0].status_code #=> String, one of "PendingSpotBidPlacement", "WaitingForSpotInstanceRequestId", "WaitingForSpotInstanceId", "WaitingForInstanceId", "PreInService", "InProgress", "WaitingForELBConnectionDraining", "MidLifecycleAction", "WaitingForInstanceWarmup", "Successful", "Failed", "Cancelled", "WaitingForConnectionDraining"
|
|
5105
|
+
# resp.activities[0].status_code #=> String, one of "PendingSpotBidPlacement", "WaitingForSpotInstanceRequestId", "WaitingForSpotInstanceId", "WaitingForInstanceId", "PreInService", "InProgress", "WaitingForELBConnectionDraining", "MidLifecycleAction", "WaitingForInstanceWarmup", "Successful", "Failed", "Cancelled", "WaitingForConnectionDraining", "WaitingForInPlaceUpdateToStart", "WaitingForInPlaceUpdateToFinalize", "InPlaceUpdateInProgress"
|
|
5081
5106
|
# resp.activities[0].status_message #=> String
|
|
5082
5107
|
# resp.activities[0].progress #=> Integer
|
|
5083
5108
|
# resp.activities[0].details #=> String
|
|
@@ -5232,7 +5257,7 @@ module Aws::AutoScaling
|
|
|
5232
5257
|
# resp.activities[0].cause #=> String
|
|
5233
5258
|
# resp.activities[0].start_time #=> Time
|
|
5234
5259
|
# resp.activities[0].end_time #=> Time
|
|
5235
|
-
# resp.activities[0].status_code #=> String, one of "PendingSpotBidPlacement", "WaitingForSpotInstanceRequestId", "WaitingForSpotInstanceId", "WaitingForInstanceId", "PreInService", "InProgress", "WaitingForELBConnectionDraining", "MidLifecycleAction", "WaitingForInstanceWarmup", "Successful", "Failed", "Cancelled", "WaitingForConnectionDraining"
|
|
5260
|
+
# resp.activities[0].status_code #=> String, one of "PendingSpotBidPlacement", "WaitingForSpotInstanceRequestId", "WaitingForSpotInstanceId", "WaitingForInstanceId", "PreInService", "InProgress", "WaitingForELBConnectionDraining", "MidLifecycleAction", "WaitingForInstanceWarmup", "Successful", "Failed", "Cancelled", "WaitingForConnectionDraining", "WaitingForInPlaceUpdateToStart", "WaitingForInPlaceUpdateToFinalize", "InPlaceUpdateInProgress"
|
|
5236
5261
|
# resp.activities[0].status_message #=> String
|
|
5237
5262
|
# resp.activities[0].progress #=> Integer
|
|
5238
5263
|
# resp.activities[0].details #=> String
|
|
@@ -5367,6 +5392,97 @@ module Aws::AutoScaling
|
|
|
5367
5392
|
req.send_request(options)
|
|
5368
5393
|
end
|
|
5369
5394
|
|
|
5395
|
+
# Launches a specified number of instances in an Auto Scaling group.
|
|
5396
|
+
# Returns instance IDs and other details if launch is successful or
|
|
5397
|
+
# error details if launch is unsuccessful.
|
|
5398
|
+
#
|
|
5399
|
+
# @option params [required, String] :auto_scaling_group_name
|
|
5400
|
+
# The name of the Auto Scaling group to launch instances into.
|
|
5401
|
+
#
|
|
5402
|
+
# @option params [required, Integer] :requested_capacity
|
|
5403
|
+
# The number of instances to launch. Although this value can exceed 100
|
|
5404
|
+
# for instance weights, the actual instance count is limited to 100
|
|
5405
|
+
# instances per launch.
|
|
5406
|
+
#
|
|
5407
|
+
# @option params [required, String] :client_token
|
|
5408
|
+
# A unique, case-sensitive identifier to ensure idempotency of the
|
|
5409
|
+
# request.
|
|
5410
|
+
#
|
|
5411
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
5412
|
+
# not need to pass this option.**
|
|
5413
|
+
#
|
|
5414
|
+
# @option params [Array<String>] :availability_zones
|
|
5415
|
+
# The Availability Zones for the instance launch. Must match or be
|
|
5416
|
+
# included in the Auto Scaling group's Availability Zone configuration.
|
|
5417
|
+
# Either `AvailabilityZones` or `SubnetIds` must be specified for groups
|
|
5418
|
+
# with multiple Availability Zone configurations.
|
|
5419
|
+
#
|
|
5420
|
+
# @option params [Array<String>] :availability_zone_ids
|
|
5421
|
+
# A list of Availability Zone IDs where instances should be launched.
|
|
5422
|
+
# Must match or be included in the group's AZ configuration. You cannot
|
|
5423
|
+
# specify both AvailabilityZones and AvailabilityZoneIds. Required for
|
|
5424
|
+
# multi-AZ groups, optional for single-AZ groups.
|
|
5425
|
+
#
|
|
5426
|
+
# @option params [Array<String>] :subnet_ids
|
|
5427
|
+
# The subnet IDs for the instance launch. Either `AvailabilityZones` or
|
|
5428
|
+
# `SubnetIds` must be specified. If both are specified, the subnets must
|
|
5429
|
+
# reside in the specified Availability Zones.
|
|
5430
|
+
#
|
|
5431
|
+
# @option params [String] :retry_strategy
|
|
5432
|
+
# Specifies whether to retry asynchronously if the synchronous launch
|
|
5433
|
+
# fails. Valid values are NONE (default, no async retry) and
|
|
5434
|
+
# RETRY\_WITH\_GROUP\_CONFIGURATION (increase desired capacity and retry
|
|
5435
|
+
# with group configuration).
|
|
5436
|
+
#
|
|
5437
|
+
# @return [Types::LaunchInstancesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
5438
|
+
#
|
|
5439
|
+
# * {Types::LaunchInstancesResult#auto_scaling_group_name #auto_scaling_group_name} => String
|
|
5440
|
+
# * {Types::LaunchInstancesResult#client_token #client_token} => String
|
|
5441
|
+
# * {Types::LaunchInstancesResult#instances #instances} => Array<Types::InstanceCollection>
|
|
5442
|
+
# * {Types::LaunchInstancesResult#errors #errors} => Array<Types::LaunchInstancesError>
|
|
5443
|
+
#
|
|
5444
|
+
# @example Request syntax with placeholder values
|
|
5445
|
+
#
|
|
5446
|
+
# resp = client.launch_instances({
|
|
5447
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
|
5448
|
+
# requested_capacity: 1, # required
|
|
5449
|
+
# client_token: "ClientToken", # required
|
|
5450
|
+
# availability_zones: ["XmlStringMaxLen255"],
|
|
5451
|
+
# availability_zone_ids: ["XmlStringMaxLen255"],
|
|
5452
|
+
# subnet_ids: ["XmlStringMaxLen255"],
|
|
5453
|
+
# retry_strategy: "retry-with-group-configuration", # accepts retry-with-group-configuration, none
|
|
5454
|
+
# })
|
|
5455
|
+
#
|
|
5456
|
+
# @example Response structure
|
|
5457
|
+
#
|
|
5458
|
+
# resp.auto_scaling_group_name #=> String
|
|
5459
|
+
# resp.client_token #=> String
|
|
5460
|
+
# resp.instances #=> Array
|
|
5461
|
+
# resp.instances[0].instance_type #=> String
|
|
5462
|
+
# resp.instances[0].market_type #=> String
|
|
5463
|
+
# resp.instances[0].subnet_id #=> String
|
|
5464
|
+
# resp.instances[0].availability_zone #=> String
|
|
5465
|
+
# resp.instances[0].availability_zone_id #=> String
|
|
5466
|
+
# resp.instances[0].instance_ids #=> Array
|
|
5467
|
+
# resp.instances[0].instance_ids[0] #=> String
|
|
5468
|
+
# resp.errors #=> Array
|
|
5469
|
+
# resp.errors[0].instance_type #=> String
|
|
5470
|
+
# resp.errors[0].market_type #=> String
|
|
5471
|
+
# resp.errors[0].subnet_id #=> String
|
|
5472
|
+
# resp.errors[0].availability_zone #=> String
|
|
5473
|
+
# resp.errors[0].availability_zone_id #=> String
|
|
5474
|
+
# resp.errors[0].error_code #=> String
|
|
5475
|
+
# resp.errors[0].error_message #=> String
|
|
5476
|
+
#
|
|
5477
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchInstances AWS API Documentation
|
|
5478
|
+
#
|
|
5479
|
+
# @overload launch_instances(params = {})
|
|
5480
|
+
# @param [Hash] params ({})
|
|
5481
|
+
def launch_instances(params = {}, options = {})
|
|
5482
|
+
req = build_request(:launch_instances, params)
|
|
5483
|
+
req.send_request(options)
|
|
5484
|
+
end
|
|
5485
|
+
|
|
5370
5486
|
# Creates or updates a lifecycle hook for the specified Auto Scaling
|
|
5371
5487
|
# group.
|
|
5372
5488
|
#
|
|
@@ -6732,7 +6848,7 @@ module Aws::AutoScaling
|
|
|
6732
6848
|
#
|
|
6733
6849
|
# resp = client.start_instance_refresh({
|
|
6734
6850
|
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
|
6735
|
-
# strategy: "Rolling", # accepts Rolling
|
|
6851
|
+
# strategy: "Rolling", # accepts Rolling, ReplaceRootVolume
|
|
6736
6852
|
# desired_configuration: {
|
|
6737
6853
|
# launch_template: {
|
|
6738
6854
|
# launch_template_id: "XmlStringMaxLen255",
|
|
@@ -6817,6 +6933,7 @@ module Aws::AutoScaling
|
|
|
6817
6933
|
# },
|
|
6818
6934
|
# },
|
|
6819
6935
|
# },
|
|
6936
|
+
# image_id: "ImageId",
|
|
6820
6937
|
# },
|
|
6821
6938
|
# ],
|
|
6822
6939
|
# },
|
|
@@ -6993,7 +7110,7 @@ module Aws::AutoScaling
|
|
|
6993
7110
|
# resp.activity.cause #=> String
|
|
6994
7111
|
# resp.activity.start_time #=> Time
|
|
6995
7112
|
# resp.activity.end_time #=> Time
|
|
6996
|
-
# resp.activity.status_code #=> String, one of "PendingSpotBidPlacement", "WaitingForSpotInstanceRequestId", "WaitingForSpotInstanceId", "WaitingForInstanceId", "PreInService", "InProgress", "WaitingForELBConnectionDraining", "MidLifecycleAction", "WaitingForInstanceWarmup", "Successful", "Failed", "Cancelled", "WaitingForConnectionDraining"
|
|
7113
|
+
# resp.activity.status_code #=> String, one of "PendingSpotBidPlacement", "WaitingForSpotInstanceRequestId", "WaitingForSpotInstanceId", "WaitingForInstanceId", "PreInService", "InProgress", "WaitingForELBConnectionDraining", "MidLifecycleAction", "WaitingForInstanceWarmup", "Successful", "Failed", "Cancelled", "WaitingForConnectionDraining", "WaitingForInPlaceUpdateToStart", "WaitingForInPlaceUpdateToFinalize", "InPlaceUpdateInProgress"
|
|
6997
7114
|
# resp.activity.status_message #=> String
|
|
6998
7115
|
# resp.activity.progress #=> Integer
|
|
6999
7116
|
# resp.activity.details #=> String
|
|
@@ -7310,6 +7427,13 @@ module Aws::AutoScaling
|
|
|
7310
7427
|
# @option params [Types::CapacityReservationSpecification] :capacity_reservation_specification
|
|
7311
7428
|
# The capacity reservation specification for the Auto Scaling group.
|
|
7312
7429
|
#
|
|
7430
|
+
# @option params [Types::InstanceLifecyclePolicy] :instance_lifecycle_policy
|
|
7431
|
+
# The instance lifecycle policy for the Auto Scaling group. Use this to
|
|
7432
|
+
# add, modify, or remove lifecycle policies that control instance
|
|
7433
|
+
# behavior when an instance transitions through its lifecycle states.
|
|
7434
|
+
# Configure retention triggers to specify when to preserve instances for
|
|
7435
|
+
# manual intervention.
|
|
7436
|
+
#
|
|
7313
7437
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
7314
7438
|
#
|
|
7315
7439
|
#
|
|
@@ -7416,6 +7540,7 @@ module Aws::AutoScaling
|
|
|
7416
7540
|
# },
|
|
7417
7541
|
# },
|
|
7418
7542
|
# },
|
|
7543
|
+
# image_id: "ImageId",
|
|
7419
7544
|
# },
|
|
7420
7545
|
# ],
|
|
7421
7546
|
# },
|
|
@@ -7464,6 +7589,11 @@ module Aws::AutoScaling
|
|
|
7464
7589
|
# capacity_reservation_resource_group_arns: ["ResourceName"],
|
|
7465
7590
|
# },
|
|
7466
7591
|
# },
|
|
7592
|
+
# instance_lifecycle_policy: {
|
|
7593
|
+
# retention_triggers: {
|
|
7594
|
+
# terminate_hook_abandon: "retain", # accepts retain, terminate
|
|
7595
|
+
# },
|
|
7596
|
+
# },
|
|
7467
7597
|
# })
|
|
7468
7598
|
#
|
|
7469
7599
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroup AWS API Documentation
|
|
@@ -7493,7 +7623,7 @@ module Aws::AutoScaling
|
|
|
7493
7623
|
tracer: tracer
|
|
7494
7624
|
)
|
|
7495
7625
|
context[:gem_name] = 'aws-sdk-autoscaling'
|
|
7496
|
-
context[:gem_version] = '1.
|
|
7626
|
+
context[:gem_version] = '1.148.0'
|
|
7497
7627
|
Seahorse::Client::Request.new(handlers, context)
|
|
7498
7628
|
end
|
|
7499
7629
|
|