aws-sdk-autoscaling 1.85.0 → 1.87.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.
@@ -43,6 +43,7 @@ module Aws::AutoScaling
43
43
  AttachLoadBalancersType = Shapes::StructureShape.new(name: 'AttachLoadBalancersType')
44
44
  AttachTrafficSourcesResultType = Shapes::StructureShape.new(name: 'AttachTrafficSourcesResultType')
45
45
  AttachTrafficSourcesType = Shapes::StructureShape.new(name: 'AttachTrafficSourcesType')
46
+ AutoRollback = Shapes::BooleanShape.new(name: 'AutoRollback')
46
47
  AutoScalingGroup = Shapes::StructureShape.new(name: 'AutoScalingGroup')
47
48
  AutoScalingGroupDesiredCapacity = Shapes::IntegerShape.new(name: 'AutoScalingGroupDesiredCapacity')
48
49
  AutoScalingGroupMaxSize = Shapes::IntegerShape.new(name: 'AutoScalingGroupMaxSize')
@@ -186,6 +187,7 @@ module Aws::AutoScaling
186
187
  InstancesToUpdate = Shapes::IntegerShape.new(name: 'InstancesToUpdate')
187
188
  IntPercent = Shapes::IntegerShape.new(name: 'IntPercent')
188
189
  InvalidNextToken = Shapes::StructureShape.new(name: 'InvalidNextToken')
190
+ IrreversibleInstanceRefreshFault = Shapes::StructureShape.new(name: 'IrreversibleInstanceRefreshFault')
189
191
  LaunchConfiguration = Shapes::StructureShape.new(name: 'LaunchConfiguration')
190
192
  LaunchConfigurationNameType = Shapes::StructureShape.new(name: 'LaunchConfigurationNameType')
191
193
  LaunchConfigurationNames = Shapes::ListShape.new(name: 'LaunchConfigurationNames')
@@ -310,6 +312,10 @@ module Aws::AutoScaling
310
312
  ResourceName = Shapes::StringShape.new(name: 'ResourceName')
311
313
  ReturnData = Shapes::BooleanShape.new(name: 'ReturnData')
312
314
  ReuseOnScaleIn = Shapes::BooleanShape.new(name: 'ReuseOnScaleIn')
315
+ RollbackDetails = Shapes::StructureShape.new(name: 'RollbackDetails')
316
+ RollbackInstanceRefreshAnswer = Shapes::StructureShape.new(name: 'RollbackInstanceRefreshAnswer')
317
+ RollbackInstanceRefreshType = Shapes::StructureShape.new(name: 'RollbackInstanceRefreshType')
318
+ ScaleInProtectedInstances = Shapes::StringShape.new(name: 'ScaleInProtectedInstances')
313
319
  ScalingActivityInProgressFault = Shapes::StructureShape.new(name: 'ScalingActivityInProgressFault')
314
320
  ScalingActivityStatusCode = Shapes::StringShape.new(name: 'ScalingActivityStatusCode')
315
321
  ScalingPolicies = Shapes::ListShape.new(name: 'ScalingPolicies')
@@ -333,6 +339,7 @@ module Aws::AutoScaling
333
339
  SkipMatching = Shapes::BooleanShape.new(name: 'SkipMatching')
334
340
  SpotInstancePools = Shapes::IntegerShape.new(name: 'SpotInstancePools')
335
341
  SpotPrice = Shapes::StringShape.new(name: 'SpotPrice')
342
+ StandbyInstances = Shapes::StringShape.new(name: 'StandbyInstances')
336
343
  StartInstanceRefreshAnswer = Shapes::StructureShape.new(name: 'StartInstanceRefreshAnswer')
337
344
  StartInstanceRefreshType = Shapes::StructureShape.new(name: 'StartInstanceRefreshType')
338
345
  StepAdjustment = Shapes::StructureShape.new(name: 'StepAdjustment')
@@ -774,7 +781,7 @@ module Aws::AutoScaling
774
781
  DescribeTerminationPolicyTypesAnswer.struct_class = Types::DescribeTerminationPolicyTypesAnswer
775
782
 
776
783
  DescribeTrafficSourcesRequest.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
777
- DescribeTrafficSourcesRequest.add_member(:traffic_source_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "TrafficSourceType"))
784
+ DescribeTrafficSourcesRequest.add_member(:traffic_source_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "TrafficSourceType"))
778
785
  DescribeTrafficSourcesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: XmlString, location_name: "NextToken"))
779
786
  DescribeTrafficSourcesRequest.add_member(:max_records, Shapes::ShapeRef.new(shape: MaxRecords, location_name: "MaxRecords"))
780
787
  DescribeTrafficSourcesRequest.struct_class = Types::DescribeTrafficSourcesRequest
@@ -929,6 +936,7 @@ module Aws::AutoScaling
929
936
  InstanceRefresh.add_member(:progress_details, Shapes::ShapeRef.new(shape: InstanceRefreshProgressDetails, location_name: "ProgressDetails"))
930
937
  InstanceRefresh.add_member(:preferences, Shapes::ShapeRef.new(shape: RefreshPreferences, location_name: "Preferences"))
931
938
  InstanceRefresh.add_member(:desired_configuration, Shapes::ShapeRef.new(shape: DesiredConfiguration, location_name: "DesiredConfiguration"))
939
+ InstanceRefresh.add_member(:rollback_details, Shapes::ShapeRef.new(shape: RollbackDetails, location_name: "RollbackDetails"))
932
940
  InstanceRefresh.struct_class = Types::InstanceRefresh
933
941
 
934
942
  InstanceRefreshIds.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen255)
@@ -991,6 +999,9 @@ module Aws::AutoScaling
991
999
  InvalidNextToken.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "message"))
992
1000
  InvalidNextToken.struct_class = Types::InvalidNextToken
993
1001
 
1002
+ IrreversibleInstanceRefreshFault.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "message"))
1003
+ IrreversibleInstanceRefreshFault.struct_class = Types::IrreversibleInstanceRefreshFault
1004
+
994
1005
  LaunchConfiguration.add_member(:launch_configuration_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "LaunchConfigurationName"))
995
1006
  LaunchConfiguration.add_member(:launch_configuration_arn, Shapes::ShapeRef.new(shape: ResourceName, location_name: "LaunchConfigurationARN"))
996
1007
  LaunchConfiguration.add_member(:image_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "ImageId"))
@@ -1298,6 +1309,9 @@ module Aws::AutoScaling
1298
1309
  RefreshPreferences.add_member(:checkpoint_percentages, Shapes::ShapeRef.new(shape: CheckpointPercentages, location_name: "CheckpointPercentages"))
1299
1310
  RefreshPreferences.add_member(:checkpoint_delay, Shapes::ShapeRef.new(shape: CheckpointDelay, location_name: "CheckpointDelay"))
1300
1311
  RefreshPreferences.add_member(:skip_matching, Shapes::ShapeRef.new(shape: SkipMatching, location_name: "SkipMatching"))
1312
+ RefreshPreferences.add_member(:auto_rollback, Shapes::ShapeRef.new(shape: AutoRollback, location_name: "AutoRollback"))
1313
+ RefreshPreferences.add_member(:scale_in_protected_instances, Shapes::ShapeRef.new(shape: ScaleInProtectedInstances, location_name: "ScaleInProtectedInstances"))
1314
+ RefreshPreferences.add_member(:standby_instances, Shapes::ShapeRef.new(shape: StandbyInstances, location_name: "StandbyInstances"))
1301
1315
  RefreshPreferences.struct_class = Types::RefreshPreferences
1302
1316
 
1303
1317
  ResourceContentionFault.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "message"))
@@ -1306,6 +1320,19 @@ module Aws::AutoScaling
1306
1320
  ResourceInUseFault.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "message"))
1307
1321
  ResourceInUseFault.struct_class = Types::ResourceInUseFault
1308
1322
 
1323
+ RollbackDetails.add_member(:rollback_reason, Shapes::ShapeRef.new(shape: XmlStringMaxLen1023, location_name: "RollbackReason"))
1324
+ RollbackDetails.add_member(:rollback_start_time, Shapes::ShapeRef.new(shape: TimestampType, location_name: "RollbackStartTime"))
1325
+ RollbackDetails.add_member(:percentage_complete_on_rollback, Shapes::ShapeRef.new(shape: IntPercent, location_name: "PercentageCompleteOnRollback"))
1326
+ RollbackDetails.add_member(:instances_to_update_on_rollback, Shapes::ShapeRef.new(shape: InstancesToUpdate, location_name: "InstancesToUpdateOnRollback"))
1327
+ RollbackDetails.add_member(:progress_details_on_rollback, Shapes::ShapeRef.new(shape: InstanceRefreshProgressDetails, location_name: "ProgressDetailsOnRollback"))
1328
+ RollbackDetails.struct_class = Types::RollbackDetails
1329
+
1330
+ RollbackInstanceRefreshAnswer.add_member(:instance_refresh_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "InstanceRefreshId"))
1331
+ RollbackInstanceRefreshAnswer.struct_class = Types::RollbackInstanceRefreshAnswer
1332
+
1333
+ RollbackInstanceRefreshType.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "AutoScalingGroupName"))
1334
+ RollbackInstanceRefreshType.struct_class = Types::RollbackInstanceRefreshType
1335
+
1309
1336
  ScalingActivityInProgressFault.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "message"))
1310
1337
  ScalingActivityInProgressFault.struct_class = Types::ScalingActivityInProgressFault
1311
1338
 
@@ -1464,11 +1491,14 @@ module Aws::AutoScaling
1464
1491
  TotalLocalStorageGBRequest.add_member(:max, Shapes::ShapeRef.new(shape: NullablePositiveDouble, location_name: "Max"))
1465
1492
  TotalLocalStorageGBRequest.struct_class = Types::TotalLocalStorageGBRequest
1466
1493
 
1467
- TrafficSourceIdentifier.add_member(:identifier, Shapes::ShapeRef.new(shape: XmlStringMaxLen511, location_name: "Identifier"))
1494
+ TrafficSourceIdentifier.add_member(:identifier, Shapes::ShapeRef.new(shape: XmlStringMaxLen511, required: true, location_name: "Identifier"))
1495
+ TrafficSourceIdentifier.add_member(:type, Shapes::ShapeRef.new(shape: XmlStringMaxLen511, location_name: "Type"))
1468
1496
  TrafficSourceIdentifier.struct_class = Types::TrafficSourceIdentifier
1469
1497
 
1470
- TrafficSourceState.add_member(:traffic_source, Shapes::ShapeRef.new(shape: XmlStringMaxLen511, location_name: "TrafficSource"))
1498
+ TrafficSourceState.add_member(:traffic_source, Shapes::ShapeRef.new(shape: XmlStringMaxLen511, deprecated: true, location_name: "TrafficSource", metadata: {"deprecatedMessage"=>"TrafficSource has been replaced by Identifier"}))
1471
1499
  TrafficSourceState.add_member(:state, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "State"))
1500
+ TrafficSourceState.add_member(:identifier, Shapes::ShapeRef.new(shape: XmlStringMaxLen511, location_name: "Identifier"))
1501
+ TrafficSourceState.add_member(:type, Shapes::ShapeRef.new(shape: XmlStringMaxLen511, location_name: "Type"))
1472
1502
  TrafficSourceState.struct_class = Types::TrafficSourceState
1473
1503
 
1474
1504
  TrafficSourceStates.member = Shapes::ShapeRef.new(shape: TrafficSourceState)
@@ -1962,6 +1992,12 @@ module Aws::AutoScaling
1962
1992
  o.output = Shapes::ShapeRef.new(shape: DescribeTrafficSourcesResponse)
1963
1993
  o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
1964
1994
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
1995
+ o[:pager] = Aws::Pager.new(
1996
+ limit_key: "max_records",
1997
+ tokens: {
1998
+ "next_token" => "next_token"
1999
+ }
2000
+ )
1965
2001
  end)
1966
2002
 
1967
2003
  api.add_operation(:describe_warm_pool, Seahorse::Model::Operation.new.tap do |o|
@@ -2138,6 +2174,18 @@ module Aws::AutoScaling
2138
2174
  o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
2139
2175
  end)
2140
2176
 
2177
+ api.add_operation(:rollback_instance_refresh, Seahorse::Model::Operation.new.tap do |o|
2178
+ o.name = "RollbackInstanceRefresh"
2179
+ o.http_method = "POST"
2180
+ o.http_request_uri = "/"
2181
+ o.input = Shapes::ShapeRef.new(shape: RollbackInstanceRefreshType)
2182
+ o.output = Shapes::ShapeRef.new(shape: RollbackInstanceRefreshAnswer)
2183
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededFault)
2184
+ o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
2185
+ o.errors << Shapes::ShapeRef.new(shape: ActiveInstanceRefreshNotFoundFault)
2186
+ o.errors << Shapes::ShapeRef.new(shape: IrreversibleInstanceRefreshFault)
2187
+ end)
2188
+
2141
2189
  api.add_operation(:set_desired_capacity, Seahorse::Model::Operation.new.tap do |o|
2142
2190
  o.name = "SetDesiredCapacity"
2143
2191
  o.http_method = "POST"
@@ -50,9 +50,6 @@ module Aws::AutoScaling
50
50
 
51
51
  def initialize(options = {})
52
52
  self[:region] = options[:region]
53
- if self[:region].nil?
54
- raise ArgumentError, "Missing required EndpointParameter: :region"
55
- end
56
53
  self[:use_dual_stack] = options[:use_dual_stack]
57
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
55
  if self[:use_dual_stack].nil?
@@ -14,39 +14,42 @@ module Aws::AutoScaling
14
14
  use_dual_stack = parameters.use_dual_stack
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint)
19
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
- raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
- end
22
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
- raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
- end
25
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
18
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
26
20
  end
27
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
- return Aws::Endpoints::Endpoint.new(url: "https://autoscaling-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
- end
31
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
32
23
  end
33
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
- if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
36
- return Aws::Endpoints::Endpoint.new(url: "https://autoscaling.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://autoscaling-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
37
31
  end
38
- return Aws::Endpoints::Endpoint.new(url: "https://autoscaling-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
39
33
  end
40
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
41
- end
42
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
43
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
44
- return Aws::Endpoints::Endpoint.new(url: "https://autoscaling.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
37
+ return Aws::Endpoints::Endpoint.new(url: "https://autoscaling.#{region}.amazonaws.com", headers: {}, properties: {})
38
+ end
39
+ return Aws::Endpoints::Endpoint.new(url: "https://autoscaling-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
40
+ end
41
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
42
+ end
43
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
44
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
45
+ return Aws::Endpoints::Endpoint.new(url: "https://autoscaling.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
46
+ end
47
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
48
  end
46
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
49
+ return Aws::Endpoints::Endpoint.new(url: "https://autoscaling.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
47
50
  end
48
- return Aws::Endpoints::Endpoint.new(url: "https://autoscaling.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
49
51
  end
52
+ raise ArgumentError, "Invalid Configuration: Missing Region"
50
53
  raise ArgumentError, 'No endpoint could be resolved'
51
54
 
52
55
  end
@@ -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
@@ -77,10 +77,10 @@ module Aws::AutoScaling
77
77
  data[:lifecycle_state]
78
78
  end
79
79
 
80
- # The last reported health status of this instance. "Healthy" means
81
- # that the instance is healthy and should remain in service.
82
- # "Unhealthy" means that the instance is unhealthy and Amazon EC2 Auto
83
- # Scaling should terminate and replace it.
80
+ # The last reported health status of this instance. `Healthy` means that
81
+ # the instance is healthy and should remain in service. `Unhealthy`
82
+ # means that the instance is unhealthy and Amazon EC2 Auto Scaling
83
+ # should terminate and replace it.
84
84
  # @return [String]
85
85
  def health_status
86
86
  data[:health_status]
@@ -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
@@ -167,7 +167,8 @@ module Aws::AutoScaling
167
167
  # default_instance_warmup: 1,
168
168
  # traffic_sources: [
169
169
  # {
170
- # identifier: "XmlStringMaxLen511",
170
+ # identifier: "XmlStringMaxLen511", # required
171
+ # type: "XmlStringMaxLen511",
171
172
  # },
172
173
  # ],
173
174
  # })
@@ -269,7 +270,8 @@ module Aws::AutoScaling
269
270
  # @option options [Array<String>] :load_balancer_names
270
271
  # A list of Classic Load Balancers associated with this Auto Scaling
271
272
  # group. For Application Load Balancers, Network Load Balancers, and
272
- # Gateway Load Balancer, specify the `TargetGroupARNs` property instead.
273
+ # Gateway Load Balancers, specify the `TargetGroupARNs` property
274
+ # instead.
273
275
  # @option options [Array<String>] :target_group_arns
274
276
  # The Amazon Resource Names (ARN) of the Elastic Load Balancing target
275
277
  # groups to associate with the Auto Scaling group. Instances are
@@ -283,14 +285,12 @@ module Aws::AutoScaling
283
285
  #
284
286
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html
285
287
  # @option options [String] :health_check_type
286
- # Determines whether any additional health checks are performed on the
287
- # instances in this group. Amazon EC2 health checks are always on. For
288
- # more information, see [Health checks for Auto Scaling instances][1] in
289
- # the *Amazon EC2 Auto Scaling User Guide*.
288
+ # A comma-separated list of one or more health check types.
290
289
  #
291
- # The valid values are `EC2` (default), `ELB`, and `VPC_LATTICE`. The
292
- # `VPC_LATTICE` health check type is reserved for use with VPC Lattice,
293
- # which is in preview release and is subject to change.
290
+ # The valid values are `EC2`, `ELB`, and `VPC_LATTICE`. `EC2` is the
291
+ # default health check and cannot be disabled. For more information, see
292
+ # [Health checks for Auto Scaling instances][1] in the *Amazon EC2 Auto
293
+ # Scaling User Guide*.
294
294
  #
295
295
  #
296
296
  #
@@ -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 newly launched instance can
425
- # contribute to the Amazon CloudWatch metrics. This delay lets an
426
- # instance finish initializing before Amazon EC2 Auto Scaling aggregates
427
- # instance metrics, resulting in more reliable usage data. Set this
428
- # value equal to the amount of time that it takes for resource
429
- # consumption to become stable after an instance reaches the `InService`
430
- # state. For more information, see [Set the default instance warmup for
431
- # an Auto Scaling group][1] in the *Amazon EC2 Auto Scaling User Guide*.
432
- #
433
- # To manage your warm-up settings at the group level, we recommend that
434
- # you set the default instance warmup, *even if its value is set to 0
435
- # seconds*. This also optimizes the performance of scaling policies that
436
- # scale continuously, such as target tracking and step scaling policies.
437
- #
438
- # If you need to remove a value that you previously set, include the
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
- # minimum value of `0`.
442
+ # value of `0` or other nominal value.
442
443
  #
443
444
  # Default: None
444
445
  #
@@ -446,17 +447,10 @@ module Aws::AutoScaling
446
447
  #
447
448
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-default-instance-warmup.html
448
449
  # @option options [Array<Types::TrafficSourceIdentifier>] :traffic_sources
449
- # **Reserved for use with Amazon VPC Lattice, which is in preview
450
- # release and is subject to change. Do not use this parameter for
451
- # production workloads. It is also subject to change.**
452
- #
453
- # The unique identifiers of one or more traffic sources.
454
- #
455
- # Currently, you must specify an Amazon Resource Name (ARN) for an
456
- # existing VPC Lattice target group. Amazon EC2 Auto Scaling registers
457
- # the running instances with the attached target groups. The target
458
- # groups receive incoming traffic and route requests to one or more
459
- # registered targets.
450
+ # The list of traffic sources to attach to this Auto Scaling group. You
451
+ # can use any of the following as traffic sources for an Auto Scaling
452
+ # group: Classic Load Balancer, Application Load Balancer, Gateway Load
453
+ # Balancer, Network Load Balancer, and VPC Lattice.
460
454
  # @return [AutoScalingGroup]
461
455
  def create_group(options = {})
462
456
  @client.create_auto_scaling_group(options)