aws-sdk-autoscaling 1.38.1 → 1.39.0

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
  SHA256:
3
- metadata.gz: b7d9b1c93029c64b83d30c6944636ab2f2f56e8f0b699fcc3e2e78eae68e9e04
4
- data.tar.gz: 1057ebd629a55d49ad47097a34dcd26dea073daf829027e9a0ea0b7be3e2a0e0
3
+ metadata.gz: e5404e2eb252f0a163fb5a8cea3469cbabcaf0157f7738ddd49359e33b143be9
4
+ data.tar.gz: d5c9927c514ec92b68c5a0de74df7c6735dc2d81e78cdbe6ab99dd2486803b96
5
5
  SHA512:
6
- metadata.gz: 70326812f5eab793cf8b61102ac24c6f44adea620226f3217f63ca853e084845f486ef881f1b6d60b71cbab691187f71f3036b8ff1f80c4dddbe38fc0a5e84fe
7
- data.tar.gz: 31f0072da91a0af36a99dfd617d3d58a207004f755d266a6249eab903ee291915b1b59f525e0bbbd80df48854cfc141da570df482309b45a85d030ea9e008202
6
+ metadata.gz: c5c654365fe64a802102c863e32b49252333caf20c4f54060617a449118c4785d900263c314563122920f87e90cf741b4188ba5cb4aaf906c79dc8f6653b356d
7
+ data.tar.gz: 7b457015127c2fe627e4896dc36246fad672409992b8a7fc664536442cb3e7ecb8115b1e47e8fcb32896687ec90099316eeb8ac73595064ba401b9cba5e3dbe0
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -56,6 +58,6 @@ require_relative 'aws-sdk-autoscaling/customizations'
56
58
  # @service
57
59
  module Aws::AutoScaling
58
60
 
59
- GEM_VERSION = '1.38.1'
61
+ GEM_VERSION = '1.39.0'
60
62
 
61
63
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -763,24 +765,27 @@ module Aws::AutoScaling
763
765
  # })
764
766
  # @param [Hash] options ({})
765
767
  # @option options [Array<String>] :scaling_processes
766
- # One or more of the following processes. If you omit this parameter,
767
- # all processes are specified.
768
+ # One or more of the following processes:
768
769
  #
769
770
  # * `Launch`
770
771
  #
771
772
  # * `Terminate`
772
773
  #
773
- # * `HealthCheck`
774
+ # * `AddToLoadBalancer`
774
775
  #
775
- # * `ReplaceUnhealthy`
776
+ # * `AlarmNotification`
776
777
  #
777
778
  # * `AZRebalance`
778
779
  #
779
- # * `AlarmNotification`
780
+ # * `HealthCheck`
781
+ #
782
+ # * `InstanceRefresh`
783
+ #
784
+ # * `ReplaceUnhealthy`
780
785
  #
781
786
  # * `ScheduledActions`
782
787
  #
783
- # * `AddToLoadBalancer`
788
+ # If you omit this parameter, all processes are specified.
784
789
  # @return [EmptyStructure]
785
790
  def resume_processes(options = {})
786
791
  options = options.merge(auto_scaling_group_name: @name)
@@ -819,24 +824,27 @@ module Aws::AutoScaling
819
824
  # })
820
825
  # @param [Hash] options ({})
821
826
  # @option options [Array<String>] :scaling_processes
822
- # One or more of the following processes. If you omit this parameter,
823
- # all processes are specified.
827
+ # One or more of the following processes:
824
828
  #
825
829
  # * `Launch`
826
830
  #
827
831
  # * `Terminate`
828
832
  #
829
- # * `HealthCheck`
833
+ # * `AddToLoadBalancer`
830
834
  #
831
- # * `ReplaceUnhealthy`
835
+ # * `AlarmNotification`
832
836
  #
833
837
  # * `AZRebalance`
834
838
  #
835
- # * `AlarmNotification`
839
+ # * `HealthCheck`
840
+ #
841
+ # * `InstanceRefresh`
842
+ #
843
+ # * `ReplaceUnhealthy`
836
844
  #
837
845
  # * `ScheduledActions`
838
846
  #
839
- # * `AddToLoadBalancer`
847
+ # If you omit this parameter, all processes are specified.
840
848
  # @return [EmptyStructure]
841
849
  def suspend_processes(options = {})
842
850
  options = options.merge(auto_scaling_group_name: @name)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -562,6 +564,43 @@ module Aws::AutoScaling
562
564
  req.send_request(options)
563
565
  end
564
566
 
567
+ # Cancels an instance refresh operation in progress. Cancellation does
568
+ # not roll back any replacements that have already been completed, but
569
+ # it prevents new replacements from being started.
570
+ #
571
+ # For more information, see [Replacing Auto Scaling Instances Based on
572
+ # an Instance Refresh][1].
573
+ #
574
+ #
575
+ #
576
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html
577
+ #
578
+ # @option params [required, String] :auto_scaling_group_name
579
+ # The name of the Auto Scaling group.
580
+ #
581
+ # @return [Types::CancelInstanceRefreshAnswer] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
582
+ #
583
+ # * {Types::CancelInstanceRefreshAnswer#instance_refresh_id #instance_refresh_id} => String
584
+ #
585
+ # @example Request syntax with placeholder values
586
+ #
587
+ # resp = client.cancel_instance_refresh({
588
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
589
+ # })
590
+ #
591
+ # @example Response structure
592
+ #
593
+ # resp.instance_refresh_id #=> String
594
+ #
595
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CancelInstanceRefresh AWS API Documentation
596
+ #
597
+ # @overload cancel_instance_refresh(params = {})
598
+ # @param [Hash] params ({})
599
+ def cancel_instance_refresh(params = {}, options = {})
600
+ req = build_request(:cancel_instance_refresh, params)
601
+ req.send_request(options)
602
+ end
603
+
565
604
  # Completes the lifecycle action for the specified token or instance
566
605
  # with the specified result.
567
606
  #
@@ -2147,6 +2186,77 @@ module Aws::AutoScaling
2147
2186
  req.send_request(options)
2148
2187
  end
2149
2188
 
2189
+ # Describes one or more instance refreshes.
2190
+ #
2191
+ # You can determine the status of a request by looking at the `Status`
2192
+ # parameter. The following are the possible statuses:
2193
+ #
2194
+ # * `Pending` - The request was created, but the operation has not
2195
+ # started.
2196
+ #
2197
+ # * `InProgress` - The operation is in progress.
2198
+ #
2199
+ # * `Successful` - The operation completed successfully.
2200
+ #
2201
+ # * `Failed` - The operation failed to complete. You can troubleshoot
2202
+ # using the status reason and the scaling activities.
2203
+ #
2204
+ # * `Cancelling` - An ongoing operation is being cancelled. Cancellation
2205
+ # does not roll back any replacements that have already been
2206
+ # completed, but it prevents new replacements from being started.
2207
+ #
2208
+ # * `Cancelled` - The operation is cancelled.
2209
+ #
2210
+ # @option params [required, String] :auto_scaling_group_name
2211
+ # The name of the Auto Scaling group.
2212
+ #
2213
+ # @option params [Array<String>] :instance_refresh_ids
2214
+ # One or more instance refresh IDs.
2215
+ #
2216
+ # @option params [String] :next_token
2217
+ # The token for the next set of items to return. (You received this
2218
+ # token from a previous call.)
2219
+ #
2220
+ # @option params [Integer] :max_records
2221
+ # The maximum number of items to return with this call. The default
2222
+ # value is `50` and the maximum value is `100`.
2223
+ #
2224
+ # @return [Types::DescribeInstanceRefreshesAnswer] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2225
+ #
2226
+ # * {Types::DescribeInstanceRefreshesAnswer#instance_refreshes #instance_refreshes} => Array&lt;Types::InstanceRefresh&gt;
2227
+ # * {Types::DescribeInstanceRefreshesAnswer#next_token #next_token} => String
2228
+ #
2229
+ # @example Request syntax with placeholder values
2230
+ #
2231
+ # resp = client.describe_instance_refreshes({
2232
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
2233
+ # instance_refresh_ids: ["XmlStringMaxLen255"],
2234
+ # next_token: "XmlString",
2235
+ # max_records: 1,
2236
+ # })
2237
+ #
2238
+ # @example Response structure
2239
+ #
2240
+ # resp.instance_refreshes #=> Array
2241
+ # resp.instance_refreshes[0].instance_refresh_id #=> String
2242
+ # resp.instance_refreshes[0].auto_scaling_group_name #=> String
2243
+ # resp.instance_refreshes[0].status #=> String, one of "Pending", "InProgress", "Successful", "Failed", "Cancelling", "Cancelled"
2244
+ # resp.instance_refreshes[0].status_reason #=> String
2245
+ # resp.instance_refreshes[0].start_time #=> Time
2246
+ # resp.instance_refreshes[0].end_time #=> Time
2247
+ # resp.instance_refreshes[0].percentage_complete #=> Integer
2248
+ # resp.instance_refreshes[0].instances_to_update #=> Integer
2249
+ # resp.next_token #=> String
2250
+ #
2251
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeInstanceRefreshes AWS API Documentation
2252
+ #
2253
+ # @overload describe_instance_refreshes(params = {})
2254
+ # @param [Hash] params ({})
2255
+ def describe_instance_refreshes(params = {}, options = {})
2256
+ req = build_request(:describe_instance_refreshes, params)
2257
+ req.send_request(options)
2258
+ end
2259
+
2150
2260
  # Describes one or more launch configurations.
2151
2261
  #
2152
2262
  # @option params [Array<String>] :launch_configuration_names
@@ -4328,24 +4438,27 @@ module Aws::AutoScaling
4328
4438
  # The name of the Auto Scaling group.
4329
4439
  #
4330
4440
  # @option params [Array<String>] :scaling_processes
4331
- # One or more of the following processes. If you omit this parameter,
4332
- # all processes are specified.
4441
+ # One or more of the following processes:
4333
4442
  #
4334
4443
  # * `Launch`
4335
4444
  #
4336
4445
  # * `Terminate`
4337
4446
  #
4338
- # * `HealthCheck`
4447
+ # * `AddToLoadBalancer`
4339
4448
  #
4340
- # * `ReplaceUnhealthy`
4449
+ # * `AlarmNotification`
4341
4450
  #
4342
4451
  # * `AZRebalance`
4343
4452
  #
4344
- # * `AlarmNotification`
4453
+ # * `HealthCheck`
4454
+ #
4455
+ # * `InstanceRefresh`
4456
+ #
4457
+ # * `ReplaceUnhealthy`
4345
4458
  #
4346
4459
  # * `ScheduledActions`
4347
4460
  #
4348
- # * `AddToLoadBalancer`
4461
+ # If you omit this parameter, all processes are specified.
4349
4462
  #
4350
4463
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
4351
4464
  #
@@ -4561,6 +4674,69 @@ module Aws::AutoScaling
4561
4674
  req.send_request(options)
4562
4675
  end
4563
4676
 
4677
+ # Starts a new instance refresh operation, which triggers a rolling
4678
+ # replacement of all previously launched instances in the Auto Scaling
4679
+ # group with a new group of instances.
4680
+ #
4681
+ # If successful, this call creates a new instance refresh request with a
4682
+ # unique ID that you can use to track its progress. To query its status,
4683
+ # call the DescribeInstanceRefreshes API. To describe the instance
4684
+ # refreshes that have already run, call the DescribeInstanceRefreshes
4685
+ # API. To cancel an active instance refresh operation, use the
4686
+ # CancelInstanceRefresh API.
4687
+ #
4688
+ # For more information, see [Replacing Auto Scaling Instances Based on
4689
+ # an Instance Refresh][1].
4690
+ #
4691
+ #
4692
+ #
4693
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html
4694
+ #
4695
+ # @option params [required, String] :auto_scaling_group_name
4696
+ # The name of the Auto Scaling group.
4697
+ #
4698
+ # @option params [String] :strategy
4699
+ # The strategy to use for the instance refresh. The only valid value is
4700
+ # `Rolling`.
4701
+ #
4702
+ # A rolling update is an update that is applied to all instances in an
4703
+ # Auto Scaling group until all instances have been updated. A rolling
4704
+ # update can fail due to failed health checks or if instances are on
4705
+ # standby or are protected from scale-in. If the rolling update process
4706
+ # fails, any instances that were already replaced are not rolled back to
4707
+ # their previous configuration.
4708
+ #
4709
+ # @option params [Types::RefreshPreferences] :preferences
4710
+ # Set of preferences associated with the instance refresh request.
4711
+ #
4712
+ # @return [Types::StartInstanceRefreshAnswer] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4713
+ #
4714
+ # * {Types::StartInstanceRefreshAnswer#instance_refresh_id #instance_refresh_id} => String
4715
+ #
4716
+ # @example Request syntax with placeholder values
4717
+ #
4718
+ # resp = client.start_instance_refresh({
4719
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
4720
+ # strategy: "Rolling", # accepts Rolling
4721
+ # preferences: {
4722
+ # min_healthy_percentage: 1,
4723
+ # instance_warmup: 1,
4724
+ # },
4725
+ # })
4726
+ #
4727
+ # @example Response structure
4728
+ #
4729
+ # resp.instance_refresh_id #=> String
4730
+ #
4731
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/StartInstanceRefresh AWS API Documentation
4732
+ #
4733
+ # @overload start_instance_refresh(params = {})
4734
+ # @param [Hash] params ({})
4735
+ def start_instance_refresh(params = {}, options = {})
4736
+ req = build_request(:start_instance_refresh, params)
4737
+ req.send_request(options)
4738
+ end
4739
+
4564
4740
  # Suspends the specified automatic scaling processes, or all processes,
4565
4741
  # for the specified Auto Scaling group.
4566
4742
  #
@@ -4580,24 +4756,27 @@ module Aws::AutoScaling
4580
4756
  # The name of the Auto Scaling group.
4581
4757
  #
4582
4758
  # @option params [Array<String>] :scaling_processes
4583
- # One or more of the following processes. If you omit this parameter,
4584
- # all processes are specified.
4759
+ # One or more of the following processes:
4585
4760
  #
4586
4761
  # * `Launch`
4587
4762
  #
4588
4763
  # * `Terminate`
4589
4764
  #
4590
- # * `HealthCheck`
4765
+ # * `AddToLoadBalancer`
4591
4766
  #
4592
- # * `ReplaceUnhealthy`
4767
+ # * `AlarmNotification`
4593
4768
  #
4594
4769
  # * `AZRebalance`
4595
4770
  #
4596
- # * `AlarmNotification`
4771
+ # * `HealthCheck`
4772
+ #
4773
+ # * `InstanceRefresh`
4774
+ #
4775
+ # * `ReplaceUnhealthy`
4597
4776
  #
4598
4777
  # * `ScheduledActions`
4599
4778
  #
4600
- # * `AddToLoadBalancer`
4779
+ # If you omit this parameter, all processes are specified.
4601
4780
  #
4602
4781
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
4603
4782
  #
@@ -5020,7 +5199,7 @@ module Aws::AutoScaling
5020
5199
  params: params,
5021
5200
  config: config)
5022
5201
  context[:gem_name] = 'aws-sdk-autoscaling'
5023
- context[:gem_version] = '1.38.1'
5202
+ context[:gem_version] = '1.39.0'
5024
5203
  Seahorse::Client::Request.new(handlers, context)
5025
5204
  end
5026
5205
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -11,6 +13,7 @@ module Aws::AutoScaling
11
13
 
12
14
  include Seahorse::Model
13
15
 
16
+ ActiveInstanceRefreshNotFoundFault = Shapes::StructureShape.new(name: 'ActiveInstanceRefreshNotFoundFault')
14
17
  Activities = Shapes::ListShape.new(name: 'Activities')
15
18
  ActivitiesType = Shapes::StructureShape.new(name: 'ActivitiesType')
16
19
  Activity = Shapes::StructureShape.new(name: 'Activity')
@@ -52,6 +55,8 @@ module Aws::AutoScaling
52
55
  BlockDeviceEbsVolumeType = Shapes::StringShape.new(name: 'BlockDeviceEbsVolumeType')
53
56
  BlockDeviceMapping = Shapes::StructureShape.new(name: 'BlockDeviceMapping')
54
57
  BlockDeviceMappings = Shapes::ListShape.new(name: 'BlockDeviceMappings')
58
+ CancelInstanceRefreshAnswer = Shapes::StructureShape.new(name: 'CancelInstanceRefreshAnswer')
59
+ CancelInstanceRefreshType = Shapes::StructureShape.new(name: 'CancelInstanceRefreshType')
55
60
  ClassicLinkVPCSecurityGroups = Shapes::ListShape.new(name: 'ClassicLinkVPCSecurityGroups')
56
61
  CompleteLifecycleActionAnswer = Shapes::StructureShape.new(name: 'CompleteLifecycleActionAnswer')
57
62
  CompleteLifecycleActionType = Shapes::StructureShape.new(name: 'CompleteLifecycleActionType')
@@ -71,6 +76,8 @@ module Aws::AutoScaling
71
76
  DescribeAdjustmentTypesAnswer = Shapes::StructureShape.new(name: 'DescribeAdjustmentTypesAnswer')
72
77
  DescribeAutoScalingInstancesType = Shapes::StructureShape.new(name: 'DescribeAutoScalingInstancesType')
73
78
  DescribeAutoScalingNotificationTypesAnswer = Shapes::StructureShape.new(name: 'DescribeAutoScalingNotificationTypesAnswer')
79
+ DescribeInstanceRefreshesAnswer = Shapes::StructureShape.new(name: 'DescribeInstanceRefreshesAnswer')
80
+ DescribeInstanceRefreshesType = Shapes::StructureShape.new(name: 'DescribeInstanceRefreshesType')
74
81
  DescribeLifecycleHookTypesAnswer = Shapes::StructureShape.new(name: 'DescribeLifecycleHookTypesAnswer')
75
82
  DescribeLifecycleHooksAnswer = Shapes::StructureShape.new(name: 'DescribeLifecycleHooksAnswer')
76
83
  DescribeLifecycleHooksType = Shapes::StructureShape.new(name: 'DescribeLifecycleHooksType')
@@ -118,8 +125,15 @@ module Aws::AutoScaling
118
125
  InstanceIds = Shapes::ListShape.new(name: 'InstanceIds')
119
126
  InstanceMonitoring = Shapes::StructureShape.new(name: 'InstanceMonitoring')
120
127
  InstanceProtected = Shapes::BooleanShape.new(name: 'InstanceProtected')
128
+ InstanceRefresh = Shapes::StructureShape.new(name: 'InstanceRefresh')
129
+ InstanceRefreshIds = Shapes::ListShape.new(name: 'InstanceRefreshIds')
130
+ InstanceRefreshInProgressFault = Shapes::StructureShape.new(name: 'InstanceRefreshInProgressFault')
131
+ InstanceRefreshStatus = Shapes::StringShape.new(name: 'InstanceRefreshStatus')
132
+ InstanceRefreshes = Shapes::ListShape.new(name: 'InstanceRefreshes')
121
133
  Instances = Shapes::ListShape.new(name: 'Instances')
122
134
  InstancesDistribution = Shapes::StructureShape.new(name: 'InstancesDistribution')
135
+ InstancesToUpdate = Shapes::IntegerShape.new(name: 'InstancesToUpdate')
136
+ IntPercent = Shapes::IntegerShape.new(name: 'IntPercent')
123
137
  InvalidNextToken = Shapes::StructureShape.new(name: 'InvalidNextToken')
124
138
  LaunchConfiguration = Shapes::StructureShape.new(name: 'LaunchConfiguration')
125
139
  LaunchConfigurationNameType = Shapes::StructureShape.new(name: 'LaunchConfigurationNameType')
@@ -199,6 +213,9 @@ module Aws::AutoScaling
199
213
  PutScheduledUpdateGroupActionType = Shapes::StructureShape.new(name: 'PutScheduledUpdateGroupActionType')
200
214
  RecordLifecycleActionHeartbeatAnswer = Shapes::StructureShape.new(name: 'RecordLifecycleActionHeartbeatAnswer')
201
215
  RecordLifecycleActionHeartbeatType = Shapes::StructureShape.new(name: 'RecordLifecycleActionHeartbeatType')
216
+ RefreshInstanceWarmup = Shapes::IntegerShape.new(name: 'RefreshInstanceWarmup')
217
+ RefreshPreferences = Shapes::StructureShape.new(name: 'RefreshPreferences')
218
+ RefreshStrategy = Shapes::StringShape.new(name: 'RefreshStrategy')
202
219
  ResourceContentionFault = Shapes::StructureShape.new(name: 'ResourceContentionFault')
203
220
  ResourceInUseFault = Shapes::StructureShape.new(name: 'ResourceInUseFault')
204
221
  ResourceName = Shapes::StringShape.new(name: 'ResourceName')
@@ -224,6 +241,8 @@ module Aws::AutoScaling
224
241
  ShouldRespectGracePeriod = Shapes::BooleanShape.new(name: 'ShouldRespectGracePeriod')
225
242
  SpotInstancePools = Shapes::IntegerShape.new(name: 'SpotInstancePools')
226
243
  SpotPrice = Shapes::StringShape.new(name: 'SpotPrice')
244
+ StartInstanceRefreshAnswer = Shapes::StructureShape.new(name: 'StartInstanceRefreshAnswer')
245
+ StartInstanceRefreshType = Shapes::StructureShape.new(name: 'StartInstanceRefreshType')
227
246
  StepAdjustment = Shapes::StructureShape.new(name: 'StepAdjustment')
228
247
  StepAdjustments = Shapes::ListShape.new(name: 'StepAdjustments')
229
248
  SuspendedProcess = Shapes::StructureShape.new(name: 'SuspendedProcess')
@@ -253,6 +272,9 @@ module Aws::AutoScaling
253
272
  XmlStringMaxLen64 = Shapes::StringShape.new(name: 'XmlStringMaxLen64')
254
273
  XmlStringUserData = Shapes::StringShape.new(name: 'XmlStringUserData')
255
274
 
275
+ ActiveInstanceRefreshNotFoundFault.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "message"))
276
+ ActiveInstanceRefreshNotFoundFault.struct_class = Types::ActiveInstanceRefreshNotFoundFault
277
+
256
278
  Activities.member = Shapes::ShapeRef.new(shape: Activity)
257
279
 
258
280
  ActivitiesType.add_member(:activities, Shapes::ShapeRef.new(shape: Activities, required: true, location_name: "Activities"))
@@ -391,6 +413,12 @@ module Aws::AutoScaling
391
413
 
392
414
  BlockDeviceMappings.member = Shapes::ShapeRef.new(shape: BlockDeviceMapping)
393
415
 
416
+ CancelInstanceRefreshAnswer.add_member(:instance_refresh_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "InstanceRefreshId"))
417
+ CancelInstanceRefreshAnswer.struct_class = Types::CancelInstanceRefreshAnswer
418
+
419
+ CancelInstanceRefreshType.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
420
+ CancelInstanceRefreshType.struct_class = Types::CancelInstanceRefreshType
421
+
394
422
  ClassicLinkVPCSecurityGroups.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen255)
395
423
 
396
424
  CompleteLifecycleActionAnswer.struct_class = Types::CompleteLifecycleActionAnswer
@@ -498,6 +526,16 @@ module Aws::AutoScaling
498
526
  DescribeAutoScalingNotificationTypesAnswer.add_member(:auto_scaling_notification_types, Shapes::ShapeRef.new(shape: AutoScalingNotificationTypes, location_name: "AutoScalingNotificationTypes"))
499
527
  DescribeAutoScalingNotificationTypesAnswer.struct_class = Types::DescribeAutoScalingNotificationTypesAnswer
500
528
 
529
+ DescribeInstanceRefreshesAnswer.add_member(:instance_refreshes, Shapes::ShapeRef.new(shape: InstanceRefreshes, location_name: "InstanceRefreshes"))
530
+ DescribeInstanceRefreshesAnswer.add_member(:next_token, Shapes::ShapeRef.new(shape: XmlString, location_name: "NextToken"))
531
+ DescribeInstanceRefreshesAnswer.struct_class = Types::DescribeInstanceRefreshesAnswer
532
+
533
+ DescribeInstanceRefreshesType.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
534
+ DescribeInstanceRefreshesType.add_member(:instance_refresh_ids, Shapes::ShapeRef.new(shape: InstanceRefreshIds, location_name: "InstanceRefreshIds"))
535
+ DescribeInstanceRefreshesType.add_member(:next_token, Shapes::ShapeRef.new(shape: XmlString, location_name: "NextToken"))
536
+ DescribeInstanceRefreshesType.add_member(:max_records, Shapes::ShapeRef.new(shape: MaxRecords, location_name: "MaxRecords"))
537
+ DescribeInstanceRefreshesType.struct_class = Types::DescribeInstanceRefreshesType
538
+
501
539
  DescribeLifecycleHookTypesAnswer.add_member(:lifecycle_hook_types, Shapes::ShapeRef.new(shape: AutoScalingNotificationTypes, location_name: "LifecycleHookTypes"))
502
540
  DescribeLifecycleHookTypesAnswer.struct_class = Types::DescribeLifecycleHookTypesAnswer
503
541
 
@@ -662,6 +700,23 @@ module Aws::AutoScaling
662
700
  InstanceMonitoring.add_member(:enabled, Shapes::ShapeRef.new(shape: MonitoringEnabled, location_name: "Enabled"))
663
701
  InstanceMonitoring.struct_class = Types::InstanceMonitoring
664
702
 
703
+ InstanceRefresh.add_member(:instance_refresh_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "InstanceRefreshId"))
704
+ InstanceRefresh.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "AutoScalingGroupName"))
705
+ InstanceRefresh.add_member(:status, Shapes::ShapeRef.new(shape: InstanceRefreshStatus, location_name: "Status"))
706
+ InstanceRefresh.add_member(:status_reason, Shapes::ShapeRef.new(shape: XmlStringMaxLen1023, location_name: "StatusReason"))
707
+ InstanceRefresh.add_member(:start_time, Shapes::ShapeRef.new(shape: TimestampType, location_name: "StartTime"))
708
+ InstanceRefresh.add_member(:end_time, Shapes::ShapeRef.new(shape: TimestampType, location_name: "EndTime"))
709
+ InstanceRefresh.add_member(:percentage_complete, Shapes::ShapeRef.new(shape: IntPercent, location_name: "PercentageComplete"))
710
+ InstanceRefresh.add_member(:instances_to_update, Shapes::ShapeRef.new(shape: InstancesToUpdate, location_name: "InstancesToUpdate"))
711
+ InstanceRefresh.struct_class = Types::InstanceRefresh
712
+
713
+ InstanceRefreshIds.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen255)
714
+
715
+ InstanceRefreshInProgressFault.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "message"))
716
+ InstanceRefreshInProgressFault.struct_class = Types::InstanceRefreshInProgressFault
717
+
718
+ InstanceRefreshes.member = Shapes::ShapeRef.new(shape: InstanceRefresh)
719
+
665
720
  Instances.member = Shapes::ShapeRef.new(shape: Instance)
666
721
 
667
722
  InstancesDistribution.add_member(:on_demand_allocation_strategy, Shapes::ShapeRef.new(shape: XmlString, location_name: "OnDemandAllocationStrategy"))
@@ -876,6 +931,10 @@ module Aws::AutoScaling
876
931
  RecordLifecycleActionHeartbeatType.add_member(:instance_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen19, location_name: "InstanceId"))
877
932
  RecordLifecycleActionHeartbeatType.struct_class = Types::RecordLifecycleActionHeartbeatType
878
933
 
934
+ RefreshPreferences.add_member(:min_healthy_percentage, Shapes::ShapeRef.new(shape: IntPercent, location_name: "MinHealthyPercentage"))
935
+ RefreshPreferences.add_member(:instance_warmup, Shapes::ShapeRef.new(shape: RefreshInstanceWarmup, location_name: "InstanceWarmup"))
936
+ RefreshPreferences.struct_class = Types::RefreshPreferences
937
+
879
938
  ResourceContentionFault.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "message"))
880
939
  ResourceContentionFault.struct_class = Types::ResourceContentionFault
881
940
 
@@ -961,6 +1020,14 @@ module Aws::AutoScaling
961
1020
  SetInstanceProtectionQuery.add_member(:protected_from_scale_in, Shapes::ShapeRef.new(shape: ProtectedFromScaleIn, required: true, location_name: "ProtectedFromScaleIn"))
962
1021
  SetInstanceProtectionQuery.struct_class = Types::SetInstanceProtectionQuery
963
1022
 
1023
+ StartInstanceRefreshAnswer.add_member(:instance_refresh_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "InstanceRefreshId"))
1024
+ StartInstanceRefreshAnswer.struct_class = Types::StartInstanceRefreshAnswer
1025
+
1026
+ StartInstanceRefreshType.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
1027
+ StartInstanceRefreshType.add_member(:strategy, Shapes::ShapeRef.new(shape: RefreshStrategy, location_name: "Strategy"))
1028
+ StartInstanceRefreshType.add_member(:preferences, Shapes::ShapeRef.new(shape: RefreshPreferences, location_name: "Preferences"))
1029
+ StartInstanceRefreshType.struct_class = Types::StartInstanceRefreshType
1030
+
964
1031
  StepAdjustment.add_member(:metric_interval_lower_bound, Shapes::ShapeRef.new(shape: MetricScale, location_name: "MetricIntervalLowerBound"))
965
1032
  StepAdjustment.add_member(:metric_interval_upper_bound, Shapes::ShapeRef.new(shape: MetricScale, location_name: "MetricIntervalUpperBound"))
966
1033
  StepAdjustment.add_member(:scaling_adjustment, Shapes::ShapeRef.new(shape: PolicyIncrement, required: true, location_name: "ScalingAdjustment"))
@@ -1098,6 +1165,17 @@ module Aws::AutoScaling
1098
1165
  o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
1099
1166
  end)
1100
1167
 
1168
+ api.add_operation(:cancel_instance_refresh, Seahorse::Model::Operation.new.tap do |o|
1169
+ o.name = "CancelInstanceRefresh"
1170
+ o.http_method = "POST"
1171
+ o.http_request_uri = "/"
1172
+ o.input = Shapes::ShapeRef.new(shape: CancelInstanceRefreshType)
1173
+ o.output = Shapes::ShapeRef.new(shape: CancelInstanceRefreshAnswer)
1174
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededFault)
1175
+ o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
1176
+ o.errors << Shapes::ShapeRef.new(shape: ActiveInstanceRefreshNotFoundFault)
1177
+ end)
1178
+
1101
1179
  api.add_operation(:complete_lifecycle_action, Seahorse::Model::Operation.new.tap do |o|
1102
1180
  o.name = "CompleteLifecycleAction"
1103
1181
  o.http_method = "POST"
@@ -1269,6 +1347,16 @@ module Aws::AutoScaling
1269
1347
  o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
1270
1348
  end)
1271
1349
 
1350
+ api.add_operation(:describe_instance_refreshes, Seahorse::Model::Operation.new.tap do |o|
1351
+ o.name = "DescribeInstanceRefreshes"
1352
+ o.http_method = "POST"
1353
+ o.http_request_uri = "/"
1354
+ o.input = Shapes::ShapeRef.new(shape: DescribeInstanceRefreshesType)
1355
+ o.output = Shapes::ShapeRef.new(shape: DescribeInstanceRefreshesAnswer)
1356
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
1357
+ o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
1358
+ end)
1359
+
1272
1360
  api.add_operation(:describe_launch_configurations, Seahorse::Model::Operation.new.tap do |o|
1273
1361
  o.name = "DescribeLaunchConfigurations"
1274
1362
  o.http_method = "POST"
@@ -1593,6 +1681,17 @@ module Aws::AutoScaling
1593
1681
  o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
1594
1682
  end)
1595
1683
 
1684
+ api.add_operation(:start_instance_refresh, Seahorse::Model::Operation.new.tap do |o|
1685
+ o.name = "StartInstanceRefresh"
1686
+ o.http_method = "POST"
1687
+ o.http_request_uri = "/"
1688
+ o.input = Shapes::ShapeRef.new(shape: StartInstanceRefreshType)
1689
+ o.output = Shapes::ShapeRef.new(shape: StartInstanceRefreshAnswer)
1690
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededFault)
1691
+ o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
1692
+ o.errors << Shapes::ShapeRef.new(shape: InstanceRefreshInProgressFault)
1693
+ end)
1694
+
1596
1695
  api.add_operation(:suspend_processes, Seahorse::Model::Operation.new.tap do |o|
1597
1696
  o.name = "SuspendProcesses"
1598
1697
  o.http_method = "POST"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -25,7 +27,9 @@ module Aws::AutoScaling
25
27
  # See {Seahorse::Client::RequestContext} for more information.
26
28
  #
27
29
  # ## Error Classes
30
+ # * {ActiveInstanceRefreshNotFoundFault}
28
31
  # * {AlreadyExistsFault}
32
+ # * {InstanceRefreshInProgressFault}
29
33
  # * {InvalidNextToken}
30
34
  # * {LimitExceededFault}
31
35
  # * {ResourceContentionFault}
@@ -39,6 +43,21 @@ module Aws::AutoScaling
39
43
 
40
44
  extend Aws::Errors::DynamicErrors
41
45
 
46
+ class ActiveInstanceRefreshNotFoundFault < ServiceError
47
+
48
+ # @param [Seahorse::Client::RequestContext] context
49
+ # @param [String] message
50
+ # @param [Aws::AutoScaling::Types::ActiveInstanceRefreshNotFoundFault] data
51
+ def initialize(context, message, data = Aws::EmptyStructure.new)
52
+ super(context, message, data)
53
+ end
54
+
55
+ # @return [String]
56
+ def message
57
+ @message || @data[:message]
58
+ end
59
+ end
60
+
42
61
  class AlreadyExistsFault < ServiceError
43
62
 
44
63
  # @param [Seahorse::Client::RequestContext] context
@@ -54,6 +73,21 @@ module Aws::AutoScaling
54
73
  end
55
74
  end
56
75
 
76
+ class InstanceRefreshInProgressFault < ServiceError
77
+
78
+ # @param [Seahorse::Client::RequestContext] context
79
+ # @param [String] message
80
+ # @param [Aws::AutoScaling::Types::InstanceRefreshInProgressFault] data
81
+ def initialize(context, message, data = Aws::EmptyStructure.new)
82
+ super(context, message, data)
83
+ end
84
+
85
+ # @return [String]
86
+ def message
87
+ @message || @data[:message]
88
+ end
89
+ end
90
+
57
91
  class InvalidNextToken < ServiceError
58
92
 
59
93
  # @param [Seahorse::Client::RequestContext] context
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -8,6 +10,19 @@
8
10
  module Aws::AutoScaling
9
11
  module Types
10
12
 
13
+ # The request failed because an active instance refresh for the
14
+ # specified Auto Scaling group was not found.
15
+ #
16
+ # @!attribute [rw] message
17
+ # @return [String]
18
+ #
19
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ActiveInstanceRefreshNotFoundFault AWS API Documentation
20
+ #
21
+ class ActiveInstanceRefreshNotFoundFault < Struct.new(
22
+ :message)
23
+ include Aws::Structure
24
+ end
25
+
11
26
  # @!attribute [rw] activities
12
27
  # The scaling activities. Activities are sorted by start time.
13
28
  # Activities still in progress are described first.
@@ -670,6 +685,35 @@ module Aws::AutoScaling
670
685
  include Aws::Structure
671
686
  end
672
687
 
688
+ # @!attribute [rw] instance_refresh_id
689
+ # The instance refresh ID.
690
+ # @return [String]
691
+ #
692
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CancelInstanceRefreshAnswer AWS API Documentation
693
+ #
694
+ class CancelInstanceRefreshAnswer < Struct.new(
695
+ :instance_refresh_id)
696
+ include Aws::Structure
697
+ end
698
+
699
+ # @note When making an API call, you may pass CancelInstanceRefreshType
700
+ # data as a hash:
701
+ #
702
+ # {
703
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
704
+ # }
705
+ #
706
+ # @!attribute [rw] auto_scaling_group_name
707
+ # The name of the Auto Scaling group.
708
+ # @return [String]
709
+ #
710
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CancelInstanceRefreshType AWS API Documentation
711
+ #
712
+ class CancelInstanceRefreshType < Struct.new(
713
+ :auto_scaling_group_name)
714
+ include Aws::Structure
715
+ end
716
+
673
717
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CompleteLifecycleActionAnswer AWS API Documentation
674
718
  #
675
719
  class CompleteLifecycleActionAnswer < Aws::EmptyStructure; end
@@ -1773,6 +1817,71 @@ module Aws::AutoScaling
1773
1817
  include Aws::Structure
1774
1818
  end
1775
1819
 
1820
+ # @!attribute [rw] instance_refreshes
1821
+ # The instance refreshes for the specified group.
1822
+ #
1823
+ # For more information, see [Replacing Auto Scaling Instances Based on
1824
+ # an Instance Refresh][1].
1825
+ #
1826
+ #
1827
+ #
1828
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html
1829
+ # @return [Array<Types::InstanceRefresh>]
1830
+ #
1831
+ # @!attribute [rw] next_token
1832
+ # A string that indicates that the response contains more items than
1833
+ # can be returned in a single response. To receive additional items,
1834
+ # specify this string for the `NextToken` value when requesting the
1835
+ # next set of items. This value is null when there are no more items
1836
+ # to return.
1837
+ # @return [String]
1838
+ #
1839
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeInstanceRefreshesAnswer AWS API Documentation
1840
+ #
1841
+ class DescribeInstanceRefreshesAnswer < Struct.new(
1842
+ :instance_refreshes,
1843
+ :next_token)
1844
+ include Aws::Structure
1845
+ end
1846
+
1847
+ # @note When making an API call, you may pass DescribeInstanceRefreshesType
1848
+ # data as a hash:
1849
+ #
1850
+ # {
1851
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
1852
+ # instance_refresh_ids: ["XmlStringMaxLen255"],
1853
+ # next_token: "XmlString",
1854
+ # max_records: 1,
1855
+ # }
1856
+ #
1857
+ # @!attribute [rw] auto_scaling_group_name
1858
+ # The name of the Auto Scaling group.
1859
+ # @return [String]
1860
+ #
1861
+ # @!attribute [rw] instance_refresh_ids
1862
+ # One or more instance refresh IDs.
1863
+ # @return [Array<String>]
1864
+ #
1865
+ # @!attribute [rw] next_token
1866
+ # The token for the next set of items to return. (You received this
1867
+ # token from a previous call.)
1868
+ # @return [String]
1869
+ #
1870
+ # @!attribute [rw] max_records
1871
+ # The maximum number of items to return with this call. The default
1872
+ # value is `50` and the maximum value is `100`.
1873
+ # @return [Integer]
1874
+ #
1875
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeInstanceRefreshesType AWS API Documentation
1876
+ #
1877
+ class DescribeInstanceRefreshesType < Struct.new(
1878
+ :auto_scaling_group_name,
1879
+ :instance_refresh_ids,
1880
+ :next_token,
1881
+ :max_records)
1882
+ include Aws::Structure
1883
+ end
1884
+
1776
1885
  # @!attribute [rw] lifecycle_hook_types
1777
1886
  # The lifecycle hook types.
1778
1887
  # @return [Array<String>]
@@ -2856,7 +2965,91 @@ module Aws::AutoScaling
2856
2965
  include Aws::Structure
2857
2966
  end
2858
2967
 
2859
- # Describes an instances distribution for an Auto Scaling group with
2968
+ # Describes an instance refresh for an Auto Scaling group.
2969
+ #
2970
+ # @!attribute [rw] instance_refresh_id
2971
+ # The instance refresh ID.
2972
+ # @return [String]
2973
+ #
2974
+ # @!attribute [rw] auto_scaling_group_name
2975
+ # The name of the Auto Scaling group.
2976
+ # @return [String]
2977
+ #
2978
+ # @!attribute [rw] status
2979
+ # The current status for the instance refresh operation:
2980
+ #
2981
+ # * `Pending` - The request was created, but the operation has not
2982
+ # started.
2983
+ #
2984
+ # * `InProgress` - The operation is in progress.
2985
+ #
2986
+ # * `Successful` - The operation completed successfully.
2987
+ #
2988
+ # * `Failed` - The operation failed to complete. You can troubleshoot
2989
+ # using the status reason and the scaling activities.
2990
+ #
2991
+ # * `Cancelling` - An ongoing operation is being cancelled.
2992
+ # Cancellation does not roll back any replacements that have already
2993
+ # been completed, but it prevents new replacements from being
2994
+ # started.
2995
+ #
2996
+ # * `Cancelled` - The operation is cancelled.
2997
+ # @return [String]
2998
+ #
2999
+ # @!attribute [rw] status_reason
3000
+ # Provides more details about the current status of the instance
3001
+ # refresh.
3002
+ # @return [String]
3003
+ #
3004
+ # @!attribute [rw] start_time
3005
+ # The date and time at which the instance refresh began.
3006
+ # @return [Time]
3007
+ #
3008
+ # @!attribute [rw] end_time
3009
+ # The date and time at which the instance refresh ended.
3010
+ # @return [Time]
3011
+ #
3012
+ # @!attribute [rw] percentage_complete
3013
+ # The percentage of the instance refresh that is complete. For each
3014
+ # instance replacement, Amazon EC2 Auto Scaling tracks the instance's
3015
+ # health status and warm-up time. When the instance's health status
3016
+ # changes to healthy and the specified warm-up time passes, the
3017
+ # instance is considered updated and added to the percentage complete.
3018
+ # @return [Integer]
3019
+ #
3020
+ # @!attribute [rw] instances_to_update
3021
+ # The number of instances remaining to update before the instance
3022
+ # refresh is complete.
3023
+ # @return [Integer]
3024
+ #
3025
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/InstanceRefresh AWS API Documentation
3026
+ #
3027
+ class InstanceRefresh < Struct.new(
3028
+ :instance_refresh_id,
3029
+ :auto_scaling_group_name,
3030
+ :status,
3031
+ :status_reason,
3032
+ :start_time,
3033
+ :end_time,
3034
+ :percentage_complete,
3035
+ :instances_to_update)
3036
+ include Aws::Structure
3037
+ end
3038
+
3039
+ # The request failed because an active instance refresh operation
3040
+ # already exists for the specified Auto Scaling group.
3041
+ #
3042
+ # @!attribute [rw] message
3043
+ # @return [String]
3044
+ #
3045
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/InstanceRefreshInProgressFault AWS API Documentation
3046
+ #
3047
+ class InstanceRefreshInProgressFault < Struct.new(
3048
+ :message)
3049
+ include Aws::Structure
3050
+ end
3051
+
3052
+ # Describes an instances distribution for an Auto Scaling group with a
2860
3053
  # MixedInstancesPolicy.
2861
3054
  #
2862
3055
  # The instances distribution specifies the distribution of On-Demand
@@ -4002,7 +4195,9 @@ module Aws::AutoScaling
4002
4195
  # `ALBRequestCountPerTarget` and there is a target group attached to
4003
4196
  # the Auto Scaling group.
4004
4197
  #
4005
- # The format is
4198
+ # Elastic Load Balancing sends data about your load balancers to
4199
+ # Amazon CloudWatch. CloudWatch collects the data and specifies the
4200
+ # format to use to access the data. The format is
4006
4201
  # `app/load-balancer-name/load-balancer-id/targetgroup/target-group-name/target-group-id
4007
4202
  # `, where
4008
4203
  #
@@ -4011,6 +4206,15 @@ module Aws::AutoScaling
4011
4206
  #
4012
4207
  # * `targetgroup/target-group-name/target-group-id ` is the final
4013
4208
  # portion of the target group ARN.
4209
+ #
4210
+ # To find the ARN for an Application Load Balancer, use the
4211
+ # [DescribeLoadBalancers][1] API operation. To find the ARN for the
4212
+ # target group, use the [DescribeTargetGroups][2] API operation.
4213
+ #
4214
+ #
4215
+ #
4216
+ # [1]: https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html
4217
+ # [2]: https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeTargetGroups.html
4014
4218
  # @return [String]
4015
4219
  #
4016
4220
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PredefinedMetricSpecification AWS API Documentation
@@ -4045,6 +4249,8 @@ module Aws::AutoScaling
4045
4249
  #
4046
4250
  # * `HealthCheck`
4047
4251
  #
4252
+ # * `InstanceRefresh`
4253
+ #
4048
4254
  # * `ReplaceUnhealthy`
4049
4255
  #
4050
4256
  # * `ScheduledActions`
@@ -4531,6 +4737,42 @@ module Aws::AutoScaling
4531
4737
  include Aws::Structure
4532
4738
  end
4533
4739
 
4740
+ # Describes information used to start an instance refresh.
4741
+ #
4742
+ # @note When making an API call, you may pass RefreshPreferences
4743
+ # data as a hash:
4744
+ #
4745
+ # {
4746
+ # min_healthy_percentage: 1,
4747
+ # instance_warmup: 1,
4748
+ # }
4749
+ #
4750
+ # @!attribute [rw] min_healthy_percentage
4751
+ # The amount of capacity in the Auto Scaling group that must remain
4752
+ # healthy during an instance refresh to allow the operation to
4753
+ # continue, as a percentage of the desired capacity of the Auto
4754
+ # Scaling group (rounded up to the nearest integer). The default is
4755
+ # `90`.
4756
+ # @return [Integer]
4757
+ #
4758
+ # @!attribute [rw] instance_warmup
4759
+ # The number of seconds until a newly launched instance is configured
4760
+ # and ready to use. During this time, Amazon EC2 Auto Scaling does not
4761
+ # immediately move on to the next replacement. The default is to use
4762
+ # the value specified for the health check grace period for the group.
4763
+ #
4764
+ # Note: While warming up, a newly launched instance is not counted
4765
+ # toward the aggregated metrics of the Auto Scaling group.
4766
+ # @return [Integer]
4767
+ #
4768
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RefreshPreferences AWS API Documentation
4769
+ #
4770
+ class RefreshPreferences < Struct.new(
4771
+ :min_healthy_percentage,
4772
+ :instance_warmup)
4773
+ include Aws::Structure
4774
+ end
4775
+
4534
4776
  # You already have a pending update to an Amazon EC2 Auto Scaling
4535
4777
  # resource (for example, an Auto Scaling group, instance, or load
4536
4778
  # balancer).
@@ -4680,24 +4922,27 @@ module Aws::AutoScaling
4680
4922
  # @return [String]
4681
4923
  #
4682
4924
  # @!attribute [rw] scaling_processes
4683
- # One or more of the following processes. If you omit this parameter,
4684
- # all processes are specified.
4925
+ # One or more of the following processes:
4685
4926
  #
4686
4927
  # * `Launch`
4687
4928
  #
4688
4929
  # * `Terminate`
4689
4930
  #
4690
- # * `HealthCheck`
4931
+ # * `AddToLoadBalancer`
4691
4932
  #
4692
- # * `ReplaceUnhealthy`
4933
+ # * `AlarmNotification`
4693
4934
  #
4694
4935
  # * `AZRebalance`
4695
4936
  #
4696
- # * `AlarmNotification`
4937
+ # * `HealthCheck`
4938
+ #
4939
+ # * `InstanceRefresh`
4940
+ #
4941
+ # * `ReplaceUnhealthy`
4697
4942
  #
4698
4943
  # * `ScheduledActions`
4699
4944
  #
4700
- # * `AddToLoadBalancer`
4945
+ # If you omit this parameter, all processes are specified.
4701
4946
  # @return [Array<String>]
4702
4947
  #
4703
4948
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ScalingProcessQuery AWS API Documentation
@@ -5004,6 +5249,58 @@ module Aws::AutoScaling
5004
5249
  include Aws::Structure
5005
5250
  end
5006
5251
 
5252
+ # @!attribute [rw] instance_refresh_id
5253
+ # A unique ID for tracking the progress of the request.
5254
+ # @return [String]
5255
+ #
5256
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/StartInstanceRefreshAnswer AWS API Documentation
5257
+ #
5258
+ class StartInstanceRefreshAnswer < Struct.new(
5259
+ :instance_refresh_id)
5260
+ include Aws::Structure
5261
+ end
5262
+
5263
+ # @note When making an API call, you may pass StartInstanceRefreshType
5264
+ # data as a hash:
5265
+ #
5266
+ # {
5267
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
5268
+ # strategy: "Rolling", # accepts Rolling
5269
+ # preferences: {
5270
+ # min_healthy_percentage: 1,
5271
+ # instance_warmup: 1,
5272
+ # },
5273
+ # }
5274
+ #
5275
+ # @!attribute [rw] auto_scaling_group_name
5276
+ # The name of the Auto Scaling group.
5277
+ # @return [String]
5278
+ #
5279
+ # @!attribute [rw] strategy
5280
+ # The strategy to use for the instance refresh. The only valid value
5281
+ # is `Rolling`.
5282
+ #
5283
+ # A rolling update is an update that is applied to all instances in an
5284
+ # Auto Scaling group until all instances have been updated. A rolling
5285
+ # update can fail due to failed health checks or if instances are on
5286
+ # standby or are protected from scale-in. If the rolling update
5287
+ # process fails, any instances that were already replaced are not
5288
+ # rolled back to their previous configuration.
5289
+ # @return [String]
5290
+ #
5291
+ # @!attribute [rw] preferences
5292
+ # Set of preferences associated with the instance refresh request.
5293
+ # @return [Types::RefreshPreferences]
5294
+ #
5295
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/StartInstanceRefreshType AWS API Documentation
5296
+ #
5297
+ class StartInstanceRefreshType < Struct.new(
5298
+ :auto_scaling_group_name,
5299
+ :strategy,
5300
+ :preferences)
5301
+ include Aws::Structure
5302
+ end
5303
+
5007
5304
  # Describes information used to create a step adjustment for a step
5008
5305
  # scaling policy.
5009
5306
  #
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-autoscaling
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.38.1
4
+ version: 1.39.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-11 00:00:00.000000000 Z
11
+ date: 2020-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core