aws-sdk-autoscaling 1.85.0 → 1.86.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-autoscaling/auto_scaling_group.rb +21 -16
- data/lib/aws-sdk-autoscaling/client.rb +159 -79
- data/lib/aws-sdk-autoscaling/client_api.rb +39 -0
- data/lib/aws-sdk-autoscaling/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-autoscaling/endpoint_provider.rb +29 -26
- data/lib/aws-sdk-autoscaling/endpoints.rb +14 -0
- data/lib/aws-sdk-autoscaling/errors.rb +16 -0
- data/lib/aws-sdk-autoscaling/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-autoscaling/resource.rb +17 -16
- data/lib/aws-sdk-autoscaling/types.rb +287 -102
- data/lib/aws-sdk-autoscaling.rb +1 -1
- metadata +2 -2
@@ -809,6 +809,20 @@ module Aws::AutoScaling
|
|
809
809
|
end
|
810
810
|
end
|
811
811
|
|
812
|
+
class RollbackInstanceRefresh
|
813
|
+
def self.build(context)
|
814
|
+
unless context.config.regional_endpoint
|
815
|
+
endpoint = context.config.endpoint.to_s
|
816
|
+
end
|
817
|
+
Aws::AutoScaling::EndpointParameters.new(
|
818
|
+
region: context.config.region,
|
819
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
820
|
+
use_fips: context.config.use_fips_endpoint,
|
821
|
+
endpoint: endpoint,
|
822
|
+
)
|
823
|
+
end
|
824
|
+
end
|
825
|
+
|
812
826
|
class SetDesiredCapacity
|
813
827
|
def self.build(context)
|
814
828
|
unless context.config.regional_endpoint
|
@@ -31,6 +31,7 @@ module Aws::AutoScaling
|
|
31
31
|
# * {AlreadyExistsFault}
|
32
32
|
# * {InstanceRefreshInProgressFault}
|
33
33
|
# * {InvalidNextToken}
|
34
|
+
# * {IrreversibleInstanceRefreshFault}
|
34
35
|
# * {LimitExceededFault}
|
35
36
|
# * {ResourceContentionFault}
|
36
37
|
# * {ResourceInUseFault}
|
@@ -103,6 +104,21 @@ module Aws::AutoScaling
|
|
103
104
|
end
|
104
105
|
end
|
105
106
|
|
107
|
+
class IrreversibleInstanceRefreshFault < ServiceError
|
108
|
+
|
109
|
+
# @param [Seahorse::Client::RequestContext] context
|
110
|
+
# @param [String] message
|
111
|
+
# @param [Aws::AutoScaling::Types::IrreversibleInstanceRefreshFault] data
|
112
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
113
|
+
super(context, message, data)
|
114
|
+
end
|
115
|
+
|
116
|
+
# @return [String]
|
117
|
+
def message
|
118
|
+
@message || @data[:message]
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
106
122
|
class LimitExceededFault < ServiceError
|
107
123
|
|
108
124
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -170,6 +170,8 @@ module Aws::AutoScaling
|
|
170
170
|
Aws::AutoScaling::Endpoints::RecordLifecycleActionHeartbeat.build(context)
|
171
171
|
when :resume_processes
|
172
172
|
Aws::AutoScaling::Endpoints::ResumeProcesses.build(context)
|
173
|
+
when :rollback_instance_refresh
|
174
|
+
Aws::AutoScaling::Endpoints::RollbackInstanceRefresh.build(context)
|
173
175
|
when :set_desired_capacity
|
174
176
|
Aws::AutoScaling::Endpoints::SetDesiredCapacity.build(context)
|
175
177
|
when :set_instance_health
|
@@ -421,24 +421,25 @@ module Aws::AutoScaling
|
|
421
421
|
#
|
422
422
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html
|
423
423
|
# @option options [Integer] :default_instance_warmup
|
424
|
-
# The amount of time, in seconds, until a
|
425
|
-
#
|
426
|
-
#
|
427
|
-
#
|
428
|
-
#
|
429
|
-
#
|
430
|
-
#
|
431
|
-
#
|
432
|
-
#
|
433
|
-
#
|
434
|
-
#
|
435
|
-
#
|
436
|
-
#
|
437
|
-
#
|
438
|
-
#
|
424
|
+
# The amount of time, in seconds, until a new instance is considered to
|
425
|
+
# have finished initializing and resource consumption to become stable
|
426
|
+
# after it enters the `InService` state.
|
427
|
+
#
|
428
|
+
# During an instance refresh, Amazon EC2 Auto Scaling waits for the
|
429
|
+
# warm-up period after it replaces an instance before it moves on to
|
430
|
+
# replacing the next instance. Amazon EC2 Auto Scaling also waits for
|
431
|
+
# the warm-up period before aggregating the metrics for new instances
|
432
|
+
# with existing instances in the Amazon CloudWatch metrics that are used
|
433
|
+
# for scaling, resulting in more reliable usage data. For more
|
434
|
+
# information, see [Set the default instance warmup for an Auto Scaling
|
435
|
+
# group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
436
|
+
#
|
437
|
+
# To manage various warm-up settings at the group level, we recommend
|
438
|
+
# that you set the default instance warmup, *even if it is set to 0
|
439
|
+
# seconds*. To remove a value that you previously set, include the
|
439
440
|
# property but specify `-1` for the value. However, we strongly
|
440
441
|
# recommend keeping the default instance warmup enabled by specifying a
|
441
|
-
#
|
442
|
+
# value of `0` or other nominal value.
|
442
443
|
#
|
443
444
|
# Default: None
|
444
445
|
#
|