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
|
@@ -523,6 +523,13 @@ module Aws::AutoScaling
|
|
|
523
523
|
# The capacity reservation specification.
|
|
524
524
|
# @return [Types::CapacityReservationSpecification]
|
|
525
525
|
#
|
|
526
|
+
# @!attribute [rw] instance_lifecycle_policy
|
|
527
|
+
# The instance lifecycle policy applied to this Auto Scaling group.
|
|
528
|
+
# This policy determines instance behavior when an instance
|
|
529
|
+
# transitions through its lifecycle states. It provides additional
|
|
530
|
+
# control over graceful instance management processes.
|
|
531
|
+
# @return [Types::InstanceLifecyclePolicy]
|
|
532
|
+
#
|
|
526
533
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AutoScalingGroup AWS API Documentation
|
|
527
534
|
#
|
|
528
535
|
class AutoScalingGroup < Struct.new(
|
|
@@ -563,7 +570,8 @@ module Aws::AutoScaling
|
|
|
563
570
|
:instance_maintenance_policy,
|
|
564
571
|
:availability_zone_distribution,
|
|
565
572
|
:availability_zone_impairment_policy,
|
|
566
|
-
:capacity_reservation_specification
|
|
573
|
+
:capacity_reservation_specification,
|
|
574
|
+
:instance_lifecycle_policy)
|
|
567
575
|
SENSITIVE = []
|
|
568
576
|
include Aws::Structure
|
|
569
577
|
end
|
|
@@ -683,6 +691,27 @@ module Aws::AutoScaling
|
|
|
683
691
|
# The launch template for the instance.
|
|
684
692
|
# @return [Types::LaunchTemplateSpecification]
|
|
685
693
|
#
|
|
694
|
+
# @!attribute [rw] image_id
|
|
695
|
+
# The ID of the Amazon Machine Image (AMI) associated with the
|
|
696
|
+
# instance. This field shows the current AMI ID of the instance's
|
|
697
|
+
# root volume. It may differ from the original AMI used when the
|
|
698
|
+
# instance was first launched.
|
|
699
|
+
#
|
|
700
|
+
# This field appears for:
|
|
701
|
+
#
|
|
702
|
+
# * Instances with root volume replacements through Instance Refresh
|
|
703
|
+
#
|
|
704
|
+
# * Instances launched with AMI overrides
|
|
705
|
+
#
|
|
706
|
+
# This field won't appear for:
|
|
707
|
+
#
|
|
708
|
+
# * Existing instances launched from Launch Templates without
|
|
709
|
+
# overrides
|
|
710
|
+
#
|
|
711
|
+
# * Existing instances that didn’t have their root volume replaced
|
|
712
|
+
# through Instance Refresh
|
|
713
|
+
# @return [String]
|
|
714
|
+
#
|
|
686
715
|
# @!attribute [rw] protected_from_scale_in
|
|
687
716
|
# Indicates whether the instance is protected from termination by
|
|
688
717
|
# Amazon EC2 Auto Scaling when scaling in.
|
|
@@ -706,6 +735,7 @@ module Aws::AutoScaling
|
|
|
706
735
|
:health_status,
|
|
707
736
|
:launch_configuration_name,
|
|
708
737
|
:launch_template,
|
|
738
|
+
:image_id,
|
|
709
739
|
:protected_from_scale_in,
|
|
710
740
|
:weighted_capacity)
|
|
711
741
|
SENSITIVE = []
|
|
@@ -1499,6 +1529,19 @@ module Aws::AutoScaling
|
|
|
1499
1529
|
# The capacity reservation specification for the Auto Scaling group.
|
|
1500
1530
|
# @return [Types::CapacityReservationSpecification]
|
|
1501
1531
|
#
|
|
1532
|
+
# @!attribute [rw] instance_lifecycle_policy
|
|
1533
|
+
# The instance lifecycle policy for the Auto Scaling group. This
|
|
1534
|
+
# policy controls instance behavior when an instance transitions
|
|
1535
|
+
# through its lifecycle states. Configure retention triggers to
|
|
1536
|
+
# specify when instances should move to a `Retained` state for manual
|
|
1537
|
+
# intervention instead of automatic termination.
|
|
1538
|
+
#
|
|
1539
|
+
# <note markdown="1"> Instances in a Retained state will continue to incur standard EC2
|
|
1540
|
+
# charges until terminated.
|
|
1541
|
+
#
|
|
1542
|
+
# </note>
|
|
1543
|
+
# @return [Types::InstanceLifecyclePolicy]
|
|
1544
|
+
#
|
|
1502
1545
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroupType AWS API Documentation
|
|
1503
1546
|
#
|
|
1504
1547
|
class CreateAutoScalingGroupType < Struct.new(
|
|
@@ -1533,7 +1576,8 @@ module Aws::AutoScaling
|
|
|
1533
1576
|
:availability_zone_distribution,
|
|
1534
1577
|
:availability_zone_impairment_policy,
|
|
1535
1578
|
:skip_zonal_shift_validation,
|
|
1536
|
-
:capacity_reservation_specification
|
|
1579
|
+
:capacity_reservation_specification,
|
|
1580
|
+
:instance_lifecycle_policy)
|
|
1537
1581
|
SENSITIVE = []
|
|
1538
1582
|
include Aws::Structure
|
|
1539
1583
|
end
|
|
@@ -3400,6 +3444,21 @@ module Aws::AutoScaling
|
|
|
3400
3444
|
include Aws::Structure
|
|
3401
3445
|
end
|
|
3402
3446
|
|
|
3447
|
+
# Indicates that the parameters in the current request do not match the
|
|
3448
|
+
# parameters from a previous request with the same client token within
|
|
3449
|
+
# the idempotency window.
|
|
3450
|
+
#
|
|
3451
|
+
# @!attribute [rw] message
|
|
3452
|
+
# @return [String]
|
|
3453
|
+
#
|
|
3454
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/IdempotentParameterMismatchError AWS API Documentation
|
|
3455
|
+
#
|
|
3456
|
+
class IdempotentParameterMismatchError < Struct.new(
|
|
3457
|
+
:message)
|
|
3458
|
+
SENSITIVE = []
|
|
3459
|
+
include Aws::Structure
|
|
3460
|
+
end
|
|
3461
|
+
|
|
3403
3462
|
# Describes an EC2 instance.
|
|
3404
3463
|
#
|
|
3405
3464
|
# @!attribute [rw] instance_id
|
|
@@ -3440,6 +3499,27 @@ module Aws::AutoScaling
|
|
|
3440
3499
|
# The launch template for the instance.
|
|
3441
3500
|
# @return [Types::LaunchTemplateSpecification]
|
|
3442
3501
|
#
|
|
3502
|
+
# @!attribute [rw] image_id
|
|
3503
|
+
# The ID of the Amazon Machine Image (AMI) used for the instance's
|
|
3504
|
+
# current root volume. This value reflects the most recent AMI applied
|
|
3505
|
+
# to the instance, including updates made through root volume
|
|
3506
|
+
# replacement operations.
|
|
3507
|
+
#
|
|
3508
|
+
# This field appears for:
|
|
3509
|
+
#
|
|
3510
|
+
# * Instances with root volume replacements through Instance Refresh
|
|
3511
|
+
#
|
|
3512
|
+
# * Instances launched with AMI overrides
|
|
3513
|
+
#
|
|
3514
|
+
# This field won't appear for:
|
|
3515
|
+
#
|
|
3516
|
+
# * Existing instances launched from Launch Templates without
|
|
3517
|
+
# overrides
|
|
3518
|
+
#
|
|
3519
|
+
# * Existing instances that didn’t have their root volume replaced
|
|
3520
|
+
# through Instance Refresh
|
|
3521
|
+
# @return [String]
|
|
3522
|
+
#
|
|
3443
3523
|
# @!attribute [rw] protected_from_scale_in
|
|
3444
3524
|
# Indicates whether the instance is protected from termination by
|
|
3445
3525
|
# Amazon EC2 Auto Scaling when scaling in.
|
|
@@ -3462,12 +3542,75 @@ module Aws::AutoScaling
|
|
|
3462
3542
|
:health_status,
|
|
3463
3543
|
:launch_configuration_name,
|
|
3464
3544
|
:launch_template,
|
|
3545
|
+
:image_id,
|
|
3465
3546
|
:protected_from_scale_in,
|
|
3466
3547
|
:weighted_capacity)
|
|
3467
3548
|
SENSITIVE = []
|
|
3468
3549
|
include Aws::Structure
|
|
3469
3550
|
end
|
|
3470
3551
|
|
|
3552
|
+
# Contains details about a collection of instances launched in the Auto
|
|
3553
|
+
# Scaling group.
|
|
3554
|
+
#
|
|
3555
|
+
# @!attribute [rw] instance_type
|
|
3556
|
+
# The instance type of the launched instances.
|
|
3557
|
+
# @return [String]
|
|
3558
|
+
#
|
|
3559
|
+
# @!attribute [rw] market_type
|
|
3560
|
+
# The market type for the instances (On-Demand or Spot).
|
|
3561
|
+
# @return [String]
|
|
3562
|
+
#
|
|
3563
|
+
# @!attribute [rw] subnet_id
|
|
3564
|
+
# The ID of the subnet where the instances were launched.
|
|
3565
|
+
# @return [String]
|
|
3566
|
+
#
|
|
3567
|
+
# @!attribute [rw] availability_zone
|
|
3568
|
+
# The Availability Zone where the instances were launched.
|
|
3569
|
+
# @return [String]
|
|
3570
|
+
#
|
|
3571
|
+
# @!attribute [rw] availability_zone_id
|
|
3572
|
+
# The Availability Zone ID where the instances in this collection were
|
|
3573
|
+
# launched.
|
|
3574
|
+
# @return [String]
|
|
3575
|
+
#
|
|
3576
|
+
# @!attribute [rw] instance_ids
|
|
3577
|
+
# A list of instance IDs for the successfully launched instances.
|
|
3578
|
+
# @return [Array<String>]
|
|
3579
|
+
#
|
|
3580
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/InstanceCollection AWS API Documentation
|
|
3581
|
+
#
|
|
3582
|
+
class InstanceCollection < Struct.new(
|
|
3583
|
+
:instance_type,
|
|
3584
|
+
:market_type,
|
|
3585
|
+
:subnet_id,
|
|
3586
|
+
:availability_zone,
|
|
3587
|
+
:availability_zone_id,
|
|
3588
|
+
:instance_ids)
|
|
3589
|
+
SENSITIVE = []
|
|
3590
|
+
include Aws::Structure
|
|
3591
|
+
end
|
|
3592
|
+
|
|
3593
|
+
# Defines the lifecycle policy for instances in an Auto Scaling group.
|
|
3594
|
+
# This policy controls instance behavior when lifecycles transition and
|
|
3595
|
+
# operations fail. Use lifecycle policies to ensure graceful shutdown
|
|
3596
|
+
# for stateful workloads or applications requiring extended draining
|
|
3597
|
+
# periods.
|
|
3598
|
+
#
|
|
3599
|
+
# @!attribute [rw] retention_triggers
|
|
3600
|
+
# Specifies the conditions that trigger instance retention behavior.
|
|
3601
|
+
# These triggers determine when instances should move to a Retained
|
|
3602
|
+
# state instead of being terminated. This allows you to maintain
|
|
3603
|
+
# control over instance management when lifecycle operations fail.
|
|
3604
|
+
# @return [Types::RetentionTriggers]
|
|
3605
|
+
#
|
|
3606
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/InstanceLifecyclePolicy AWS API Documentation
|
|
3607
|
+
#
|
|
3608
|
+
class InstanceLifecyclePolicy < Struct.new(
|
|
3609
|
+
:retention_triggers)
|
|
3610
|
+
SENSITIVE = []
|
|
3611
|
+
include Aws::Structure
|
|
3612
|
+
end
|
|
3613
|
+
|
|
3471
3614
|
# Describes an instance maintenance policy.
|
|
3472
3615
|
#
|
|
3473
3616
|
# For more information, see [Set instance maintenance policy][1] in the
|
|
@@ -3674,6 +3817,17 @@ module Aws::AutoScaling
|
|
|
3674
3817
|
# The rollback details.
|
|
3675
3818
|
# @return [Types::RollbackDetails]
|
|
3676
3819
|
#
|
|
3820
|
+
# @!attribute [rw] strategy
|
|
3821
|
+
# The strategy to use for the instance refresh. This determines how
|
|
3822
|
+
# instances in the Auto Scaling group are updated. Default is Rolling.
|
|
3823
|
+
#
|
|
3824
|
+
# * `Rolling` – Terminates instances and launches replacements in
|
|
3825
|
+
# batches
|
|
3826
|
+
#
|
|
3827
|
+
# * `ReplaceRootVolume` – Updates instances by replacing only the root
|
|
3828
|
+
# volume without terminating the instance
|
|
3829
|
+
# @return [String]
|
|
3830
|
+
#
|
|
3677
3831
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/InstanceRefresh AWS API Documentation
|
|
3678
3832
|
#
|
|
3679
3833
|
class InstanceRefresh < Struct.new(
|
|
@@ -3688,7 +3842,8 @@ module Aws::AutoScaling
|
|
|
3688
3842
|
:progress_details,
|
|
3689
3843
|
:preferences,
|
|
3690
3844
|
:desired_configuration,
|
|
3691
|
-
:rollback_details
|
|
3845
|
+
:rollback_details,
|
|
3846
|
+
:strategy)
|
|
3692
3847
|
SENSITIVE = []
|
|
3693
3848
|
include Aws::Structure
|
|
3694
3849
|
end
|
|
@@ -4646,6 +4801,146 @@ module Aws::AutoScaling
|
|
|
4646
4801
|
include Aws::Structure
|
|
4647
4802
|
end
|
|
4648
4803
|
|
|
4804
|
+
# Contains details about errors encountered during instance launch
|
|
4805
|
+
# attempts.
|
|
4806
|
+
#
|
|
4807
|
+
# @!attribute [rw] instance_type
|
|
4808
|
+
# The instance type that failed to launch.
|
|
4809
|
+
# @return [String]
|
|
4810
|
+
#
|
|
4811
|
+
# @!attribute [rw] market_type
|
|
4812
|
+
# The market type (On-Demand or Spot) that encountered the launch
|
|
4813
|
+
# error.
|
|
4814
|
+
# @return [String]
|
|
4815
|
+
#
|
|
4816
|
+
# @!attribute [rw] subnet_id
|
|
4817
|
+
# The subnet ID where the instance launch was attempted.
|
|
4818
|
+
# @return [String]
|
|
4819
|
+
#
|
|
4820
|
+
# @!attribute [rw] availability_zone
|
|
4821
|
+
# The Availability Zone where the instance launch was attempted.
|
|
4822
|
+
# @return [String]
|
|
4823
|
+
#
|
|
4824
|
+
# @!attribute [rw] availability_zone_id
|
|
4825
|
+
# The Availability Zone ID where the launch error occurred.
|
|
4826
|
+
# @return [String]
|
|
4827
|
+
#
|
|
4828
|
+
# @!attribute [rw] error_code
|
|
4829
|
+
# The error code representing the type of error encountered (e.g.,
|
|
4830
|
+
# InsufficientInstanceCapacity).
|
|
4831
|
+
# @return [String]
|
|
4832
|
+
#
|
|
4833
|
+
# @!attribute [rw] error_message
|
|
4834
|
+
# A descriptive message providing details about the error encountered
|
|
4835
|
+
# during the launch attempt.
|
|
4836
|
+
# @return [String]
|
|
4837
|
+
#
|
|
4838
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchInstancesError AWS API Documentation
|
|
4839
|
+
#
|
|
4840
|
+
class LaunchInstancesError < Struct.new(
|
|
4841
|
+
:instance_type,
|
|
4842
|
+
:market_type,
|
|
4843
|
+
:subnet_id,
|
|
4844
|
+
:availability_zone,
|
|
4845
|
+
:availability_zone_id,
|
|
4846
|
+
:error_code,
|
|
4847
|
+
:error_message)
|
|
4848
|
+
SENSITIVE = []
|
|
4849
|
+
include Aws::Structure
|
|
4850
|
+
end
|
|
4851
|
+
|
|
4852
|
+
# @!attribute [rw] auto_scaling_group_name
|
|
4853
|
+
# The name of the Auto Scaling group to launch instances into.
|
|
4854
|
+
# @return [String]
|
|
4855
|
+
#
|
|
4856
|
+
# @!attribute [rw] requested_capacity
|
|
4857
|
+
# The number of instances to launch. Although this value can exceed
|
|
4858
|
+
# 100 for instance weights, the actual instance count is limited to
|
|
4859
|
+
# 100 instances per launch.
|
|
4860
|
+
# @return [Integer]
|
|
4861
|
+
#
|
|
4862
|
+
# @!attribute [rw] client_token
|
|
4863
|
+
# A unique, case-sensitive identifier to ensure idempotency of the
|
|
4864
|
+
# request.
|
|
4865
|
+
#
|
|
4866
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
4867
|
+
# not need to pass this option.
|
|
4868
|
+
# @return [String]
|
|
4869
|
+
#
|
|
4870
|
+
# @!attribute [rw] availability_zones
|
|
4871
|
+
# The Availability Zones for the instance launch. Must match or be
|
|
4872
|
+
# included in the Auto Scaling group's Availability Zone
|
|
4873
|
+
# configuration. Either `AvailabilityZones` or `SubnetIds` must be
|
|
4874
|
+
# specified for groups with multiple Availability Zone configurations.
|
|
4875
|
+
# @return [Array<String>]
|
|
4876
|
+
#
|
|
4877
|
+
# @!attribute [rw] availability_zone_ids
|
|
4878
|
+
# A list of Availability Zone IDs where instances should be launched.
|
|
4879
|
+
# Must match or be included in the group's AZ configuration. You
|
|
4880
|
+
# cannot specify both AvailabilityZones and AvailabilityZoneIds.
|
|
4881
|
+
# Required for multi-AZ groups, optional for single-AZ groups.
|
|
4882
|
+
# @return [Array<String>]
|
|
4883
|
+
#
|
|
4884
|
+
# @!attribute [rw] subnet_ids
|
|
4885
|
+
# The subnet IDs for the instance launch. Either `AvailabilityZones`
|
|
4886
|
+
# or `SubnetIds` must be specified. If both are specified, the subnets
|
|
4887
|
+
# must reside in the specified Availability Zones.
|
|
4888
|
+
# @return [Array<String>]
|
|
4889
|
+
#
|
|
4890
|
+
# @!attribute [rw] retry_strategy
|
|
4891
|
+
# Specifies whether to retry asynchronously if the synchronous launch
|
|
4892
|
+
# fails. Valid values are NONE (default, no async retry) and
|
|
4893
|
+
# RETRY\_WITH\_GROUP\_CONFIGURATION (increase desired capacity and
|
|
4894
|
+
# retry with group configuration).
|
|
4895
|
+
# @return [String]
|
|
4896
|
+
#
|
|
4897
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchInstancesRequest AWS API Documentation
|
|
4898
|
+
#
|
|
4899
|
+
class LaunchInstancesRequest < Struct.new(
|
|
4900
|
+
:auto_scaling_group_name,
|
|
4901
|
+
:requested_capacity,
|
|
4902
|
+
:client_token,
|
|
4903
|
+
:availability_zones,
|
|
4904
|
+
:availability_zone_ids,
|
|
4905
|
+
:subnet_ids,
|
|
4906
|
+
:retry_strategy)
|
|
4907
|
+
SENSITIVE = []
|
|
4908
|
+
include Aws::Structure
|
|
4909
|
+
end
|
|
4910
|
+
|
|
4911
|
+
# @!attribute [rw] auto_scaling_group_name
|
|
4912
|
+
# The name of the Auto Scaling group where the instances were
|
|
4913
|
+
# launched.
|
|
4914
|
+
# @return [String]
|
|
4915
|
+
#
|
|
4916
|
+
# @!attribute [rw] client_token
|
|
4917
|
+
# The idempotency token used for the request, either
|
|
4918
|
+
# customer-specified or auto-generated.
|
|
4919
|
+
# @return [String]
|
|
4920
|
+
#
|
|
4921
|
+
# @!attribute [rw] instances
|
|
4922
|
+
# A list of successfully launched instances including details such as
|
|
4923
|
+
# instance type, Availability Zone, subnet, lifecycle state, and
|
|
4924
|
+
# instance IDs.
|
|
4925
|
+
# @return [Array<Types::InstanceCollection>]
|
|
4926
|
+
#
|
|
4927
|
+
# @!attribute [rw] errors
|
|
4928
|
+
# A list of errors encountered during the launch attempt including
|
|
4929
|
+
# details about failed instance launches with their corresponding
|
|
4930
|
+
# error codes and messages.
|
|
4931
|
+
# @return [Array<Types::LaunchInstancesError>]
|
|
4932
|
+
#
|
|
4933
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchInstancesResult AWS API Documentation
|
|
4934
|
+
#
|
|
4935
|
+
class LaunchInstancesResult < Struct.new(
|
|
4936
|
+
:auto_scaling_group_name,
|
|
4937
|
+
:client_token,
|
|
4938
|
+
:instances,
|
|
4939
|
+
:errors)
|
|
4940
|
+
SENSITIVE = []
|
|
4941
|
+
include Aws::Structure
|
|
4942
|
+
end
|
|
4943
|
+
|
|
4649
4944
|
# Use this structure to specify the launch templates and instance types
|
|
4650
4945
|
# (overrides) for a mixed instances policy.
|
|
4651
4946
|
#
|
|
@@ -4769,13 +5064,30 @@ module Aws::AutoScaling
|
|
|
4769
5064
|
# </note>
|
|
4770
5065
|
# @return [Types::InstanceRequirements]
|
|
4771
5066
|
#
|
|
5067
|
+
# @!attribute [rw] image_id
|
|
5068
|
+
# The ID of the Amazon Machine Image (AMI) to use for instances
|
|
5069
|
+
# launched with this override. When using Instance Refresh with
|
|
5070
|
+
# `ReplaceRootVolume` strategy, this specifies the AMI for root volume
|
|
5071
|
+
# replacement operations.
|
|
5072
|
+
#
|
|
5073
|
+
# For `ReplaceRootVolume` operations:
|
|
5074
|
+
#
|
|
5075
|
+
# * All overrides in the `MixedInstancesPolicy` must specify an
|
|
5076
|
+
# ImageId
|
|
5077
|
+
#
|
|
5078
|
+
# * The AMI must contain only a single root volume
|
|
5079
|
+
#
|
|
5080
|
+
# * Root volume replacement doesn't support multi-volume AMIs
|
|
5081
|
+
# @return [String]
|
|
5082
|
+
#
|
|
4772
5083
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchTemplateOverrides AWS API Documentation
|
|
4773
5084
|
#
|
|
4774
5085
|
class LaunchTemplateOverrides < Struct.new(
|
|
4775
5086
|
:instance_type,
|
|
4776
5087
|
:weighted_capacity,
|
|
4777
5088
|
:launch_template_specification,
|
|
4778
|
-
:instance_requirements
|
|
5089
|
+
:instance_requirements,
|
|
5090
|
+
:image_id)
|
|
4779
5091
|
SENSITIVE = []
|
|
4780
5092
|
include Aws::Structure
|
|
4781
5093
|
end
|
|
@@ -6871,6 +7183,32 @@ module Aws::AutoScaling
|
|
|
6871
7183
|
include Aws::Structure
|
|
6872
7184
|
end
|
|
6873
7185
|
|
|
7186
|
+
# Defines the specific triggers that cause instances to be retained in a
|
|
7187
|
+
# Retained state rather than terminated. Each trigger corresponds to a
|
|
7188
|
+
# different failure scenario during the instance lifecycle. This allows
|
|
7189
|
+
# fine-grained control over when to preserve instances for manual
|
|
7190
|
+
# intervention.
|
|
7191
|
+
#
|
|
7192
|
+
# @!attribute [rw] terminate_hook_abandon
|
|
7193
|
+
# Specifies the action when a termination lifecycle hook is abandoned
|
|
7194
|
+
# due to failure, timeout, or explicit abandonment (calling
|
|
7195
|
+
# CompleteLifecycleAction).
|
|
7196
|
+
#
|
|
7197
|
+
# Set to `Retain` to move instances to a `Retained` state. Set to
|
|
7198
|
+
# `Terminate` for default termination behavior.
|
|
7199
|
+
#
|
|
7200
|
+
# Retained instances don't count toward desired capacity and remain
|
|
7201
|
+
# until you call `TerminateInstanceInAutoScalingGroup`.
|
|
7202
|
+
# @return [String]
|
|
7203
|
+
#
|
|
7204
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RetentionTriggers AWS API Documentation
|
|
7205
|
+
#
|
|
7206
|
+
class RetentionTriggers < Struct.new(
|
|
7207
|
+
:terminate_hook_abandon)
|
|
7208
|
+
SENSITIVE = []
|
|
7209
|
+
include Aws::Structure
|
|
7210
|
+
end
|
|
7211
|
+
|
|
6874
7212
|
# Details about an instance refresh rollback.
|
|
6875
7213
|
#
|
|
6876
7214
|
# @!attribute [rw] rollback_reason
|
|
@@ -8276,6 +8614,14 @@ module Aws::AutoScaling
|
|
|
8276
8614
|
# The capacity reservation specification for the Auto Scaling group.
|
|
8277
8615
|
# @return [Types::CapacityReservationSpecification]
|
|
8278
8616
|
#
|
|
8617
|
+
# @!attribute [rw] instance_lifecycle_policy
|
|
8618
|
+
# The instance lifecycle policy for the Auto Scaling group. Use this
|
|
8619
|
+
# to add, modify, or remove lifecycle policies that control instance
|
|
8620
|
+
# behavior when an instance transitions through its lifecycle states.
|
|
8621
|
+
# Configure retention triggers to specify when to preserve instances
|
|
8622
|
+
# for manual intervention.
|
|
8623
|
+
# @return [Types::InstanceLifecyclePolicy]
|
|
8624
|
+
#
|
|
8279
8625
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroupType AWS API Documentation
|
|
8280
8626
|
#
|
|
8281
8627
|
class UpdateAutoScalingGroupType < Struct.new(
|
|
@@ -8304,7 +8650,8 @@ module Aws::AutoScaling
|
|
|
8304
8650
|
:availability_zone_distribution,
|
|
8305
8651
|
:availability_zone_impairment_policy,
|
|
8306
8652
|
:skip_zonal_shift_validation,
|
|
8307
|
-
:capacity_reservation_specification
|
|
8653
|
+
:capacity_reservation_specification,
|
|
8654
|
+
:instance_lifecycle_policy)
|
|
8308
8655
|
SENSITIVE = []
|
|
8309
8656
|
include Aws::Structure
|
|
8310
8657
|
end
|
data/lib/aws-sdk-autoscaling.rb
CHANGED
data/sig/activity.rbs
CHANGED
|
@@ -34,7 +34,7 @@ module Aws
|
|
|
34
34
|
def end_time: () -> ::Time
|
|
35
35
|
|
|
36
36
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AutoScaling/Activity.html#status_code-instance_method
|
|
37
|
-
def status_code: () -> ("PendingSpotBidPlacement" | "WaitingForSpotInstanceRequestId" | "WaitingForSpotInstanceId" | "WaitingForInstanceId" | "PreInService" | "InProgress" | "WaitingForELBConnectionDraining" | "MidLifecycleAction" | "WaitingForInstanceWarmup" | "Successful" | "Failed" | "Cancelled" | "WaitingForConnectionDraining")
|
|
37
|
+
def status_code: () -> ("PendingSpotBidPlacement" | "WaitingForSpotInstanceRequestId" | "WaitingForSpotInstanceId" | "WaitingForInstanceId" | "PreInService" | "InProgress" | "WaitingForELBConnectionDraining" | "MidLifecycleAction" | "WaitingForInstanceWarmup" | "Successful" | "Failed" | "Cancelled" | "WaitingForConnectionDraining" | "WaitingForInPlaceUpdateToStart" | "WaitingForInPlaceUpdateToFinalize" | "InPlaceUpdateInProgress")
|
|
38
38
|
|
|
39
39
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AutoScaling/Activity.html#status_message-instance_method
|
|
40
40
|
def status_message: () -> ::String
|
data/sig/auto_scaling_group.rbs
CHANGED
|
@@ -123,6 +123,9 @@ module Aws
|
|
|
123
123
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AutoScaling/AutoScalingGroup.html#capacity_reservation_specification-instance_method
|
|
124
124
|
def capacity_reservation_specification: () -> Types::CapacityReservationSpecification
|
|
125
125
|
|
|
126
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AutoScaling/AutoScalingGroup.html#instance_lifecycle_policy-instance_method
|
|
127
|
+
def instance_lifecycle_policy: () -> Types::InstanceLifecyclePolicy
|
|
128
|
+
|
|
126
129
|
def client: () -> Client
|
|
127
130
|
|
|
128
131
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AutoScaling/AutoScalingGroup.html#load-instance_method
|
|
@@ -463,7 +466,8 @@ module Aws
|
|
|
463
466
|
]?
|
|
464
467
|
}?
|
|
465
468
|
}?
|
|
466
|
-
}
|
|
469
|
+
}?,
|
|
470
|
+
image_id: ::String?
|
|
467
471
|
},
|
|
468
472
|
]?
|
|
469
473
|
}?,
|
|
@@ -511,6 +515,11 @@ module Aws
|
|
|
511
515
|
capacity_reservation_ids: Array[::String]?,
|
|
512
516
|
capacity_reservation_resource_group_arns: Array[::String]?
|
|
513
517
|
}?
|
|
518
|
+
},
|
|
519
|
+
?instance_lifecycle_policy: {
|
|
520
|
+
retention_triggers: {
|
|
521
|
+
terminate_hook_abandon: ("retain" | "terminate")?
|
|
522
|
+
}?
|
|
514
523
|
}
|
|
515
524
|
) -> AutoScalingGroup
|
|
516
525
|
| (?Hash[Symbol, untyped]) -> AutoScalingGroup
|
data/sig/client.rbs
CHANGED
|
@@ -264,7 +264,8 @@ module Aws
|
|
|
264
264
|
]?
|
|
265
265
|
}?
|
|
266
266
|
}?
|
|
267
|
-
}
|
|
267
|
+
}?,
|
|
268
|
+
image_id: ::String?
|
|
268
269
|
},
|
|
269
270
|
]?
|
|
270
271
|
}?,
|
|
@@ -341,6 +342,11 @@ module Aws
|
|
|
341
342
|
capacity_reservation_ids: Array[::String]?,
|
|
342
343
|
capacity_reservation_resource_group_arns: Array[::String]?
|
|
343
344
|
}?
|
|
345
|
+
},
|
|
346
|
+
?instance_lifecycle_policy: {
|
|
347
|
+
retention_triggers: {
|
|
348
|
+
terminate_hook_abandon: ("retain" | "terminate")?
|
|
349
|
+
}?
|
|
344
350
|
}
|
|
345
351
|
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
|
346
352
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
|
@@ -844,6 +850,25 @@ module Aws
|
|
|
844
850
|
) -> _GetPredictiveScalingForecastResponseSuccess
|
|
845
851
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetPredictiveScalingForecastResponseSuccess
|
|
846
852
|
|
|
853
|
+
interface _LaunchInstancesResponseSuccess
|
|
854
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::LaunchInstancesResult]
|
|
855
|
+
def auto_scaling_group_name: () -> ::String
|
|
856
|
+
def client_token: () -> ::String
|
|
857
|
+
def instances: () -> ::Array[Types::InstanceCollection]
|
|
858
|
+
def errors: () -> ::Array[Types::LaunchInstancesError]
|
|
859
|
+
end
|
|
860
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AutoScaling/Client.html#launch_instances-instance_method
|
|
861
|
+
def launch_instances: (
|
|
862
|
+
auto_scaling_group_name: ::String,
|
|
863
|
+
requested_capacity: ::Integer,
|
|
864
|
+
client_token: ::String,
|
|
865
|
+
?availability_zones: Array[::String],
|
|
866
|
+
?availability_zone_ids: Array[::String],
|
|
867
|
+
?subnet_ids: Array[::String],
|
|
868
|
+
?retry_strategy: ("retry-with-group-configuration" | "none")
|
|
869
|
+
) -> _LaunchInstancesResponseSuccess
|
|
870
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _LaunchInstancesResponseSuccess
|
|
871
|
+
|
|
847
872
|
interface _PutLifecycleHookResponseSuccess
|
|
848
873
|
include ::Seahorse::Client::_ResponseSuccess[Types::PutLifecycleHookAnswer]
|
|
849
874
|
end
|
|
@@ -1129,7 +1154,7 @@ module Aws
|
|
|
1129
1154
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AutoScaling/Client.html#start_instance_refresh-instance_method
|
|
1130
1155
|
def start_instance_refresh: (
|
|
1131
1156
|
auto_scaling_group_name: ::String,
|
|
1132
|
-
?strategy: ("Rolling"),
|
|
1157
|
+
?strategy: ("Rolling" | "ReplaceRootVolume"),
|
|
1133
1158
|
?desired_configuration: {
|
|
1134
1159
|
launch_template: {
|
|
1135
1160
|
launch_template_id: ::String?,
|
|
@@ -1213,7 +1238,8 @@ module Aws
|
|
|
1213
1238
|
]?
|
|
1214
1239
|
}?
|
|
1215
1240
|
}?
|
|
1216
|
-
}
|
|
1241
|
+
}?,
|
|
1242
|
+
image_id: ::String?
|
|
1217
1243
|
},
|
|
1218
1244
|
]?
|
|
1219
1245
|
}?,
|
|
@@ -1349,7 +1375,8 @@ module Aws
|
|
|
1349
1375
|
]?
|
|
1350
1376
|
}?
|
|
1351
1377
|
}?
|
|
1352
|
-
}
|
|
1378
|
+
}?,
|
|
1379
|
+
image_id: ::String?
|
|
1353
1380
|
},
|
|
1354
1381
|
]?
|
|
1355
1382
|
}?,
|
|
@@ -1397,6 +1424,11 @@ module Aws
|
|
|
1397
1424
|
capacity_reservation_ids: Array[::String]?,
|
|
1398
1425
|
capacity_reservation_resource_group_arns: Array[::String]?
|
|
1399
1426
|
}?
|
|
1427
|
+
},
|
|
1428
|
+
?instance_lifecycle_policy: {
|
|
1429
|
+
retention_triggers: {
|
|
1430
|
+
terminate_hook_abandon: ("retain" | "terminate")?
|
|
1431
|
+
}?
|
|
1400
1432
|
}
|
|
1401
1433
|
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
|
1402
1434
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
data/sig/errors.rbs
CHANGED
|
@@ -17,6 +17,9 @@ module Aws
|
|
|
17
17
|
class AlreadyExistsFault < ::Aws::Errors::ServiceError
|
|
18
18
|
def message: () -> ::String
|
|
19
19
|
end
|
|
20
|
+
class IdempotentParameterMismatchError < ::Aws::Errors::ServiceError
|
|
21
|
+
def message: () -> ::String
|
|
22
|
+
end
|
|
20
23
|
class InstanceRefreshInProgressFault < ::Aws::Errors::ServiceError
|
|
21
24
|
def message: () -> ::String
|
|
22
25
|
end
|
data/sig/instance.rbs
CHANGED
|
@@ -40,6 +40,9 @@ module Aws
|
|
|
40
40
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AutoScaling/Instance.html#launch_template-instance_method
|
|
41
41
|
def launch_template: () -> Types::LaunchTemplateSpecification
|
|
42
42
|
|
|
43
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AutoScaling/Instance.html#image_id-instance_method
|
|
44
|
+
def image_id: () -> ::String
|
|
45
|
+
|
|
43
46
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AutoScaling/Instance.html#protected_from_scale_in-instance_method
|
|
44
47
|
def protected_from_scale_in: () -> bool
|
|
45
48
|
|
data/sig/resource.rbs
CHANGED
|
@@ -166,7 +166,8 @@ module Aws
|
|
|
166
166
|
]?
|
|
167
167
|
}?
|
|
168
168
|
}?
|
|
169
|
-
}
|
|
169
|
+
}?,
|
|
170
|
+
image_id: ::String?
|
|
170
171
|
},
|
|
171
172
|
]?
|
|
172
173
|
}?,
|
|
@@ -243,6 +244,11 @@ module Aws
|
|
|
243
244
|
capacity_reservation_ids: Array[::String]?,
|
|
244
245
|
capacity_reservation_resource_group_arns: Array[::String]?
|
|
245
246
|
}?
|
|
247
|
+
},
|
|
248
|
+
?instance_lifecycle_policy: {
|
|
249
|
+
retention_triggers: {
|
|
250
|
+
terminate_hook_abandon: ("retain" | "terminate")?
|
|
251
|
+
}?
|
|
246
252
|
}
|
|
247
253
|
) -> AutoScalingGroup
|
|
248
254
|
| (?Hash[Symbol, untyped]) -> AutoScalingGroup
|