aws-sdk-autoscaling 1.63.0 → 1.67.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: fa23b3aa0e790969199b109aea0235abeb79a955ffd8508e4057c9f21a42d0ef
4
- data.tar.gz: 7f0f7b1c8b761b32cb5c01e5f62f252de21275b2cdde96dcad41ef30eb099b5a
3
+ metadata.gz: 5104fda5773433b27e04ae91b9ceddf4e220efcb7049c30b2a71c3955cb93c71
4
+ data.tar.gz: 6f5ecad26fcc25e403bc01c38dd7a24bb271dc074af15ff60622cd9aae2a6937
5
5
  SHA512:
6
- metadata.gz: 5dee637f5d1f37ae0ed7abd16c4f3f0a92f99836a01cb8cbe39c6191e37c2e0a5c112d44d64f11027866ebcab40c62bbe27916520228fca76afc395e9cf4a65c
7
- data.tar.gz: 865c5ca821e97bf8f3967d838e195b3db94c9c79593efaa491786964b1c6304c40bf0d307ea46d64b28ab45999b1153eab9c0a1349154cd89707073a7cd65f00
6
+ metadata.gz: 1bdbfe065908ce73e36edb1be45019b45e12a0d1f687003cb7baea5590438095e7eca7463e8aec8b95823e4be226b2dba13237b33d2b00d578cf617e63f68d1c
7
+ data.tar.gz: f2a8d0f56fcf3da5572279dc4220123c1d55c6169e42f6db0b9b1c1d0f2c33446028418daaabf4b8b93af34cdffb67b98ee1a05b4b73133637325c094399f031
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.67.0 (2021-08-05)
5
+ ------------------
6
+
7
+ * Feature - EC2 Auto Scaling adds configuration checks and Launch Template validation to Instance Refresh.
8
+
9
+ 1.66.0 (2021-07-30)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.65.0 (2021-07-28)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.64.0 (2021-06-30)
20
+ ------------------
21
+
22
+ * Feature - Amazon EC2 Auto Scaling infrastructure improvements and optimizations.
23
+
4
24
  1.63.0 (2021-06-04)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.63.0
1
+ 1.67.0
@@ -59,6 +59,6 @@ require_relative 'aws-sdk-autoscaling/customizations'
59
59
  # @!group service
60
60
  module Aws::AutoScaling
61
61
 
62
- GEM_VERSION = '1.63.0'
62
+ GEM_VERSION = '1.67.0'
63
63
 
64
64
  end
@@ -212,6 +212,12 @@ module Aws::AutoScaling
212
212
  data[:warm_pool_size]
213
213
  end
214
214
 
215
+ # Reserved.
216
+ # @return [String]
217
+ def context
218
+ data[:context]
219
+ end
220
+
215
221
  # @!endgroup
216
222
 
217
223
  # @return [Client]
@@ -1031,6 +1037,7 @@ module Aws::AutoScaling
1031
1037
  # service_linked_role_arn: "ResourceName",
1032
1038
  # max_instance_lifetime: 1,
1033
1039
  # capacity_rebalance: false,
1040
+ # context: "Context",
1034
1041
  # })
1035
1042
  # @param [Hash] options ({})
1036
1043
  # @option options [String] :launch_configuration_name
@@ -1164,6 +1171,8 @@ module Aws::AutoScaling
1164
1171
  #
1165
1172
  #
1166
1173
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html
1174
+ # @option options [String] :context
1175
+ # Reserved.
1167
1176
  # @return [AutoScalingGroup]
1168
1177
  def update(options = {})
1169
1178
  options = options.merge(auto_scaling_group_name: @name)
@@ -989,7 +989,7 @@ module Aws::AutoScaling
989
989
  # The Amazon Resource Name (ARN) of the service-linked role that the
990
990
  # Auto Scaling group uses to call other Amazon Web Services on your
991
991
  # behalf. By default, Amazon EC2 Auto Scaling uses a service-linked role
992
- # named AWSServiceRoleForAutoScaling, which it creates if it does not
992
+ # named `AWSServiceRoleForAutoScaling`, which it creates if it does not
993
993
  # exist. For more information, see [Service-linked roles][1] in the
994
994
  # *Amazon EC2 Auto Scaling User Guide*.
995
995
  #
@@ -1008,6 +1008,9 @@ module Aws::AutoScaling
1008
1008
  #
1009
1009
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-max-instance-lifetime.html
1010
1010
  #
1011
+ # @option params [String] :context
1012
+ # Reserved.
1013
+ #
1011
1014
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1012
1015
  #
1013
1016
  #
@@ -1163,6 +1166,7 @@ module Aws::AutoScaling
1163
1166
  # ],
1164
1167
  # service_linked_role_arn: "ResourceName",
1165
1168
  # max_instance_lifetime: 1,
1169
+ # context: "Context",
1166
1170
  # })
1167
1171
  #
1168
1172
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroup AWS API Documentation
@@ -1913,9 +1917,11 @@ module Aws::AutoScaling
1913
1917
  # Describes the current Amazon EC2 Auto Scaling resource quotas for your
1914
1918
  # account.
1915
1919
  #
1916
- # For information about requesting an increase, see [Amazon EC2 Auto
1917
- # Scaling service quotas][1] in the *Amazon EC2 Auto Scaling User
1918
- # Guide*.
1920
+ # When you establish an account, the account has initial quotas on the
1921
+ # maximum number of Auto Scaling groups and launch configurations that
1922
+ # you can create in a given Region. For more information, see [Amazon
1923
+ # EC2 Auto Scaling service quotas][1] in the *Amazon EC2 Auto Scaling
1924
+ # User Guide*.
1919
1925
  #
1920
1926
  #
1921
1927
  #
@@ -2180,6 +2186,7 @@ module Aws::AutoScaling
2180
2186
  # resp.auto_scaling_groups[0].warm_pool_configuration.pool_state #=> String, one of "Stopped", "Running"
2181
2187
  # resp.auto_scaling_groups[0].warm_pool_configuration.status #=> String, one of "PendingDelete"
2182
2188
  # resp.auto_scaling_groups[0].warm_pool_size #=> Integer
2189
+ # resp.auto_scaling_groups[0].context #=> String
2183
2190
  # resp.next_token #=> String
2184
2191
  #
2185
2192
  #
@@ -2433,6 +2440,30 @@ module Aws::AutoScaling
2433
2440
  # resp.instance_refreshes[0].progress_details.live_pool_progress.instances_to_update #=> Integer
2434
2441
  # resp.instance_refreshes[0].progress_details.warm_pool_progress.percentage_complete #=> Integer
2435
2442
  # resp.instance_refreshes[0].progress_details.warm_pool_progress.instances_to_update #=> Integer
2443
+ # resp.instance_refreshes[0].preferences.min_healthy_percentage #=> Integer
2444
+ # resp.instance_refreshes[0].preferences.instance_warmup #=> Integer
2445
+ # resp.instance_refreshes[0].preferences.checkpoint_percentages #=> Array
2446
+ # resp.instance_refreshes[0].preferences.checkpoint_percentages[0] #=> Integer
2447
+ # resp.instance_refreshes[0].preferences.checkpoint_delay #=> Integer
2448
+ # resp.instance_refreshes[0].preferences.skip_matching #=> Boolean
2449
+ # resp.instance_refreshes[0].desired_configuration.launch_template.launch_template_id #=> String
2450
+ # resp.instance_refreshes[0].desired_configuration.launch_template.launch_template_name #=> String
2451
+ # resp.instance_refreshes[0].desired_configuration.launch_template.version #=> String
2452
+ # resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.launch_template.launch_template_specification.launch_template_id #=> String
2453
+ # resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.launch_template.launch_template_specification.launch_template_name #=> String
2454
+ # resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.launch_template.launch_template_specification.version #=> String
2455
+ # resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.launch_template.overrides #=> Array
2456
+ # resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.launch_template.overrides[0].instance_type #=> String
2457
+ # resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.launch_template.overrides[0].weighted_capacity #=> String
2458
+ # resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.launch_template.overrides[0].launch_template_specification.launch_template_id #=> String
2459
+ # resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.launch_template.overrides[0].launch_template_specification.launch_template_name #=> String
2460
+ # resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.launch_template.overrides[0].launch_template_specification.version #=> String
2461
+ # resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.instances_distribution.on_demand_allocation_strategy #=> String
2462
+ # resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.instances_distribution.on_demand_base_capacity #=> Integer
2463
+ # resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.instances_distribution.on_demand_percentage_above_base_capacity #=> Integer
2464
+ # resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.instances_distribution.spot_allocation_strategy #=> String
2465
+ # resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.instances_distribution.spot_instance_pools #=> Integer
2466
+ # resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.instances_distribution.spot_max_price #=> String
2436
2467
  # resp.next_token #=> String
2437
2468
  #
2438
2469
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeInstanceRefreshes AWS API Documentation
@@ -5355,13 +5386,19 @@ module Aws::AutoScaling
5355
5386
  req.send_request(options)
5356
5387
  end
5357
5388
 
5358
- # Starts a new instance refresh operation, which triggers a rolling
5359
- # replacement of previously launched instances in the Auto Scaling group
5360
- # with a new group of instances.
5389
+ # Starts a new instance refresh operation. An instance refresh performs
5390
+ # a rolling replacement of all or some instances in an Auto Scaling
5391
+ # group. Each instance is terminated first and then replaced, which
5392
+ # temporarily reduces the capacity available within your Auto Scaling
5393
+ # group.
5361
5394
  #
5362
5395
  # This operation is part of the [instance refresh feature][1] in Amazon
5363
5396
  # EC2 Auto Scaling, which helps you update instances in your Auto
5364
- # Scaling group after you make configuration changes.
5397
+ # Scaling group. This feature is helpful, for example, when you have a
5398
+ # new AMI or a new user data script. You just need to create a new
5399
+ # launch template that specifies the new AMI or user data script. Then
5400
+ # start an instance refresh to immediately begin the process of updating
5401
+ # instances in the group.
5365
5402
  #
5366
5403
  # If the call succeeds, it creates a new instance refresh request with a
5367
5404
  # unique ID that you can use to track its progress. To query its status,
@@ -5381,27 +5418,33 @@ module Aws::AutoScaling
5381
5418
  # The strategy to use for the instance refresh. The only valid value is
5382
5419
  # `Rolling`.
5383
5420
  #
5384
- # A rolling update is an update that is applied to all instances in an
5385
- # Auto Scaling group until all instances have been updated. A rolling
5421
+ # A rolling update helps you update your instances gradually. A rolling
5386
5422
  # update can fail due to failed health checks or if instances are on
5387
5423
  # standby or are protected from scale in. If the rolling update process
5388
- # fails, any instances that were already replaced are not rolled back to
5389
- # their previous configuration.
5424
+ # fails, any instances that are replaced are not rolled back to their
5425
+ # previous configuration.
5390
5426
  #
5391
- # @option params [Types::RefreshPreferences] :preferences
5392
- # Set of preferences associated with the instance refresh request.
5393
- #
5394
- # If not provided, the default values are used. For
5395
- # `MinHealthyPercentage`, the default value is `90`. For
5396
- # `InstanceWarmup`, the default is to use the value specified for the
5397
- # health check grace period for the Auto Scaling group.
5427
+ # @option params [Types::DesiredConfiguration] :desired_configuration
5428
+ # The desired configuration. For example, the desired configuration can
5429
+ # specify a new launch template or a new version of the current launch
5430
+ # template.
5398
5431
  #
5399
- # For more information, see [RefreshPreferences][1] in the *Amazon EC2
5400
- # Auto Scaling API Reference*.
5432
+ # Once the instance refresh succeeds, Amazon EC2 Auto Scaling updates
5433
+ # the settings of the Auto Scaling group to reflect the new desired
5434
+ # configuration.
5401
5435
  #
5436
+ # <note markdown="1"> When you specify a new launch template or a new version of the current
5437
+ # launch template for your desired configuration, consider enabling the
5438
+ # `SkipMatching` property in preferences. If it's enabled, Amazon EC2
5439
+ # Auto Scaling skips replacing instances that already use the specified
5440
+ # launch template and version. This can help you reduce the number of
5441
+ # replacements that are required to apply updates.
5402
5442
  #
5443
+ # </note>
5403
5444
  #
5404
- # [1]: https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_RefreshPreferences.html
5445
+ # @option params [Types::RefreshPreferences] :preferences
5446
+ # Set of preferences associated with the instance refresh request. If
5447
+ # not provided, the default values are used.
5405
5448
  #
5406
5449
  # @return [Types::StartInstanceRefreshAnswer] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5407
5450
  #
@@ -5430,11 +5473,47 @@ module Aws::AutoScaling
5430
5473
  # resp = client.start_instance_refresh({
5431
5474
  # auto_scaling_group_name: "XmlStringMaxLen255", # required
5432
5475
  # strategy: "Rolling", # accepts Rolling
5476
+ # desired_configuration: {
5477
+ # launch_template: {
5478
+ # launch_template_id: "XmlStringMaxLen255",
5479
+ # launch_template_name: "LaunchTemplateName",
5480
+ # version: "XmlStringMaxLen255",
5481
+ # },
5482
+ # mixed_instances_policy: {
5483
+ # launch_template: {
5484
+ # launch_template_specification: {
5485
+ # launch_template_id: "XmlStringMaxLen255",
5486
+ # launch_template_name: "LaunchTemplateName",
5487
+ # version: "XmlStringMaxLen255",
5488
+ # },
5489
+ # overrides: [
5490
+ # {
5491
+ # instance_type: "XmlStringMaxLen255",
5492
+ # weighted_capacity: "XmlStringMaxLen32",
5493
+ # launch_template_specification: {
5494
+ # launch_template_id: "XmlStringMaxLen255",
5495
+ # launch_template_name: "LaunchTemplateName",
5496
+ # version: "XmlStringMaxLen255",
5497
+ # },
5498
+ # },
5499
+ # ],
5500
+ # },
5501
+ # instances_distribution: {
5502
+ # on_demand_allocation_strategy: "XmlString",
5503
+ # on_demand_base_capacity: 1,
5504
+ # on_demand_percentage_above_base_capacity: 1,
5505
+ # spot_allocation_strategy: "XmlString",
5506
+ # spot_instance_pools: 1,
5507
+ # spot_max_price: "MixedInstanceSpotPrice",
5508
+ # },
5509
+ # },
5510
+ # },
5433
5511
  # preferences: {
5434
5512
  # min_healthy_percentage: 1,
5435
5513
  # instance_warmup: 1,
5436
5514
  # checkpoint_percentages: [1],
5437
5515
  # checkpoint_delay: 1,
5516
+ # skip_matching: false,
5438
5517
  # },
5439
5518
  # })
5440
5519
  #
@@ -5800,6 +5879,9 @@ module Aws::AutoScaling
5800
5879
  #
5801
5880
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html
5802
5881
  #
5882
+ # @option params [String] :context
5883
+ # Reserved.
5884
+ #
5803
5885
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
5804
5886
  #
5805
5887
  #
@@ -5883,6 +5965,7 @@ module Aws::AutoScaling
5883
5965
  # service_linked_role_arn: "ResourceName",
5884
5966
  # max_instance_lifetime: 1,
5885
5967
  # capacity_rebalance: false,
5968
+ # context: "Context",
5886
5969
  # })
5887
5970
  #
5888
5971
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroup AWS API Documentation
@@ -5907,7 +5990,7 @@ module Aws::AutoScaling
5907
5990
  params: params,
5908
5991
  config: config)
5909
5992
  context[:gem_name] = 'aws-sdk-autoscaling'
5910
- context[:gem_version] = '1.63.0'
5993
+ context[:gem_version] = '1.67.0'
5911
5994
  Seahorse::Client::Request.new(handlers, context)
5912
5995
  end
5913
5996
 
@@ -67,6 +67,7 @@ module Aws::AutoScaling
67
67
  ClassicLinkVPCSecurityGroups = Shapes::ListShape.new(name: 'ClassicLinkVPCSecurityGroups')
68
68
  CompleteLifecycleActionAnswer = Shapes::StructureShape.new(name: 'CompleteLifecycleActionAnswer')
69
69
  CompleteLifecycleActionType = Shapes::StructureShape.new(name: 'CompleteLifecycleActionType')
70
+ Context = Shapes::StringShape.new(name: 'Context')
70
71
  Cooldown = Shapes::IntegerShape.new(name: 'Cooldown')
71
72
  CreateAutoScalingGroupType = Shapes::StructureShape.new(name: 'CreateAutoScalingGroupType')
72
73
  CreateLaunchConfigurationType = Shapes::StructureShape.new(name: 'CreateLaunchConfigurationType')
@@ -104,6 +105,7 @@ module Aws::AutoScaling
104
105
  DescribeTerminationPolicyTypesAnswer = Shapes::StructureShape.new(name: 'DescribeTerminationPolicyTypesAnswer')
105
106
  DescribeWarmPoolAnswer = Shapes::StructureShape.new(name: 'DescribeWarmPoolAnswer')
106
107
  DescribeWarmPoolType = Shapes::StructureShape.new(name: 'DescribeWarmPoolType')
108
+ DesiredConfiguration = Shapes::StructureShape.new(name: 'DesiredConfiguration')
107
109
  DetachInstancesAnswer = Shapes::StructureShape.new(name: 'DetachInstancesAnswer')
108
110
  DetachInstancesQuery = Shapes::StructureShape.new(name: 'DetachInstancesQuery')
109
111
  DetachLoadBalancerTargetGroupsResultType = Shapes::StructureShape.new(name: 'DetachLoadBalancerTargetGroupsResultType')
@@ -281,6 +283,7 @@ module Aws::AutoScaling
281
283
  SetInstanceProtectionQuery = Shapes::StructureShape.new(name: 'SetInstanceProtectionQuery')
282
284
  ShouldDecrementDesiredCapacity = Shapes::BooleanShape.new(name: 'ShouldDecrementDesiredCapacity')
283
285
  ShouldRespectGracePeriod = Shapes::BooleanShape.new(name: 'ShouldRespectGracePeriod')
286
+ SkipMatching = Shapes::BooleanShape.new(name: 'SkipMatching')
284
287
  SpotInstancePools = Shapes::IntegerShape.new(name: 'SpotInstancePools')
285
288
  SpotPrice = Shapes::StringShape.new(name: 'SpotPrice')
286
289
  StartInstanceRefreshAnswer = Shapes::StructureShape.new(name: 'StartInstanceRefreshAnswer')
@@ -407,6 +410,7 @@ module Aws::AutoScaling
407
410
  AutoScalingGroup.add_member(:capacity_rebalance, Shapes::ShapeRef.new(shape: CapacityRebalanceEnabled, location_name: "CapacityRebalance"))
408
411
  AutoScalingGroup.add_member(:warm_pool_configuration, Shapes::ShapeRef.new(shape: WarmPoolConfiguration, location_name: "WarmPoolConfiguration"))
409
412
  AutoScalingGroup.add_member(:warm_pool_size, Shapes::ShapeRef.new(shape: WarmPoolSize, location_name: "WarmPoolSize"))
413
+ AutoScalingGroup.add_member(:context, Shapes::ShapeRef.new(shape: Context, location_name: "Context"))
410
414
  AutoScalingGroup.struct_class = Types::AutoScalingGroup
411
415
 
412
416
  AutoScalingGroupNames.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen255)
@@ -512,6 +516,7 @@ module Aws::AutoScaling
512
516
  CreateAutoScalingGroupType.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
513
517
  CreateAutoScalingGroupType.add_member(:service_linked_role_arn, Shapes::ShapeRef.new(shape: ResourceName, location_name: "ServiceLinkedRoleARN"))
514
518
  CreateAutoScalingGroupType.add_member(:max_instance_lifetime, Shapes::ShapeRef.new(shape: MaxInstanceLifetime, location_name: "MaxInstanceLifetime"))
519
+ CreateAutoScalingGroupType.add_member(:context, Shapes::ShapeRef.new(shape: Context, location_name: "Context"))
515
520
  CreateAutoScalingGroupType.struct_class = Types::CreateAutoScalingGroupType
516
521
 
517
522
  CreateLaunchConfigurationType.add_member(:launch_configuration_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "LaunchConfigurationName"))
@@ -684,6 +689,10 @@ module Aws::AutoScaling
684
689
  DescribeWarmPoolType.add_member(:next_token, Shapes::ShapeRef.new(shape: XmlString, location_name: "NextToken"))
685
690
  DescribeWarmPoolType.struct_class = Types::DescribeWarmPoolType
686
691
 
692
+ DesiredConfiguration.add_member(:launch_template, Shapes::ShapeRef.new(shape: LaunchTemplateSpecification, location_name: "LaunchTemplate"))
693
+ DesiredConfiguration.add_member(:mixed_instances_policy, Shapes::ShapeRef.new(shape: MixedInstancesPolicy, location_name: "MixedInstancesPolicy"))
694
+ DesiredConfiguration.struct_class = Types::DesiredConfiguration
695
+
687
696
  DetachInstancesAnswer.add_member(:activities, Shapes::ShapeRef.new(shape: Activities, location_name: "Activities"))
688
697
  DetachInstancesAnswer.struct_class = Types::DetachInstancesAnswer
689
698
 
@@ -804,6 +813,8 @@ module Aws::AutoScaling
804
813
  InstanceRefresh.add_member(:percentage_complete, Shapes::ShapeRef.new(shape: IntPercent, location_name: "PercentageComplete"))
805
814
  InstanceRefresh.add_member(:instances_to_update, Shapes::ShapeRef.new(shape: InstancesToUpdate, location_name: "InstancesToUpdate"))
806
815
  InstanceRefresh.add_member(:progress_details, Shapes::ShapeRef.new(shape: InstanceRefreshProgressDetails, location_name: "ProgressDetails"))
816
+ InstanceRefresh.add_member(:preferences, Shapes::ShapeRef.new(shape: RefreshPreferences, location_name: "Preferences"))
817
+ InstanceRefresh.add_member(:desired_configuration, Shapes::ShapeRef.new(shape: DesiredConfiguration, location_name: "DesiredConfiguration"))
807
818
  InstanceRefresh.struct_class = Types::InstanceRefresh
808
819
 
809
820
  InstanceRefreshIds.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen255)
@@ -1093,6 +1104,7 @@ module Aws::AutoScaling
1093
1104
  RefreshPreferences.add_member(:instance_warmup, Shapes::ShapeRef.new(shape: RefreshInstanceWarmup, location_name: "InstanceWarmup"))
1094
1105
  RefreshPreferences.add_member(:checkpoint_percentages, Shapes::ShapeRef.new(shape: CheckpointPercentages, location_name: "CheckpointPercentages"))
1095
1106
  RefreshPreferences.add_member(:checkpoint_delay, Shapes::ShapeRef.new(shape: CheckpointDelay, location_name: "CheckpointDelay"))
1107
+ RefreshPreferences.add_member(:skip_matching, Shapes::ShapeRef.new(shape: SkipMatching, location_name: "SkipMatching"))
1096
1108
  RefreshPreferences.struct_class = Types::RefreshPreferences
1097
1109
 
1098
1110
  ResourceContentionFault.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "message"))
@@ -1188,6 +1200,7 @@ module Aws::AutoScaling
1188
1200
 
1189
1201
  StartInstanceRefreshType.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
1190
1202
  StartInstanceRefreshType.add_member(:strategy, Shapes::ShapeRef.new(shape: RefreshStrategy, location_name: "Strategy"))
1203
+ StartInstanceRefreshType.add_member(:desired_configuration, Shapes::ShapeRef.new(shape: DesiredConfiguration, location_name: "DesiredConfiguration"))
1191
1204
  StartInstanceRefreshType.add_member(:preferences, Shapes::ShapeRef.new(shape: RefreshPreferences, location_name: "Preferences"))
1192
1205
  StartInstanceRefreshType.struct_class = Types::StartInstanceRefreshType
1193
1206
 
@@ -1258,6 +1271,7 @@ module Aws::AutoScaling
1258
1271
  UpdateAutoScalingGroupType.add_member(:service_linked_role_arn, Shapes::ShapeRef.new(shape: ResourceName, location_name: "ServiceLinkedRoleARN"))
1259
1272
  UpdateAutoScalingGroupType.add_member(:max_instance_lifetime, Shapes::ShapeRef.new(shape: MaxInstanceLifetime, location_name: "MaxInstanceLifetime"))
1260
1273
  UpdateAutoScalingGroupType.add_member(:capacity_rebalance, Shapes::ShapeRef.new(shape: CapacityRebalanceEnabled, location_name: "CapacityRebalance"))
1274
+ UpdateAutoScalingGroupType.add_member(:context, Shapes::ShapeRef.new(shape: Context, location_name: "Context"))
1261
1275
  UpdateAutoScalingGroupType.struct_class = Types::UpdateAutoScalingGroupType
1262
1276
 
1263
1277
  Values.member = Shapes::ShapeRef.new(shape: XmlString)
@@ -110,6 +110,7 @@ module Aws::AutoScaling
110
110
  # ],
111
111
  # service_linked_role_arn: "ResourceName",
112
112
  # max_instance_lifetime: 1,
113
+ # context: "Context",
113
114
  # })
114
115
  # @param [Hash] options ({})
115
116
  # @option options [required, String] :auto_scaling_group_name
@@ -321,7 +322,7 @@ module Aws::AutoScaling
321
322
  # The Amazon Resource Name (ARN) of the service-linked role that the
322
323
  # Auto Scaling group uses to call other Amazon Web Services on your
323
324
  # behalf. By default, Amazon EC2 Auto Scaling uses a service-linked role
324
- # named AWSServiceRoleForAutoScaling, which it creates if it does not
325
+ # named `AWSServiceRoleForAutoScaling`, which it creates if it does not
325
326
  # exist. For more information, see [Service-linked roles][1] in the
326
327
  # *Amazon EC2 Auto Scaling User Guide*.
327
328
  #
@@ -338,6 +339,8 @@ module Aws::AutoScaling
338
339
  #
339
340
  #
340
341
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-max-instance-lifetime.html
342
+ # @option options [String] :context
343
+ # Reserved.
341
344
  # @return [AutoScalingGroup]
342
345
  def create_group(options = {})
343
346
  @client.create_auto_scaling_group(options)
@@ -407,6 +407,10 @@ module Aws::AutoScaling
407
407
  # The current size of the warm pool.
408
408
  # @return [Integer]
409
409
  #
410
+ # @!attribute [rw] context
411
+ # Reserved.
412
+ # @return [String]
413
+ #
410
414
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AutoScalingGroup AWS API Documentation
411
415
  #
412
416
  class AutoScalingGroup < Struct.new(
@@ -439,7 +443,8 @@ module Aws::AutoScaling
439
443
  :max_instance_lifetime,
440
444
  :capacity_rebalance,
441
445
  :warm_pool_configuration,
442
- :warm_pool_size)
446
+ :warm_pool_size,
447
+ :context)
443
448
  SENSITIVE = []
444
449
  include Aws::Structure
445
450
  end
@@ -939,6 +944,7 @@ module Aws::AutoScaling
939
944
  # ],
940
945
  # service_linked_role_arn: "ResourceName",
941
946
  # max_instance_lifetime: 1,
947
+ # context: "Context",
942
948
  # }
943
949
  #
944
950
  # @!attribute [rw] auto_scaling_group_name
@@ -1197,9 +1203,9 @@ module Aws::AutoScaling
1197
1203
  # The Amazon Resource Name (ARN) of the service-linked role that the
1198
1204
  # Auto Scaling group uses to call other Amazon Web Services on your
1199
1205
  # behalf. By default, Amazon EC2 Auto Scaling uses a service-linked
1200
- # role named AWSServiceRoleForAutoScaling, which it creates if it does
1201
- # not exist. For more information, see [Service-linked roles][1] in
1202
- # the *Amazon EC2 Auto Scaling User Guide*.
1206
+ # role named `AWSServiceRoleForAutoScaling`, which it creates if it
1207
+ # does not exist. For more information, see [Service-linked roles][1]
1208
+ # in the *Amazon EC2 Auto Scaling User Guide*.
1203
1209
  #
1204
1210
  #
1205
1211
  #
@@ -1219,6 +1225,10 @@ module Aws::AutoScaling
1219
1225
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-max-instance-lifetime.html
1220
1226
  # @return [Integer]
1221
1227
  #
1228
+ # @!attribute [rw] context
1229
+ # Reserved.
1230
+ # @return [String]
1231
+ #
1222
1232
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroupType AWS API Documentation
1223
1233
  #
1224
1234
  class CreateAutoScalingGroupType < Struct.new(
@@ -1244,7 +1254,8 @@ module Aws::AutoScaling
1244
1254
  :lifecycle_hook_specification_list,
1245
1255
  :tags,
1246
1256
  :service_linked_role_arn,
1247
- :max_instance_lifetime)
1257
+ :max_instance_lifetime,
1258
+ :context)
1248
1259
  SENSITIVE = []
1249
1260
  include Aws::Structure
1250
1261
  end
@@ -2532,6 +2543,83 @@ module Aws::AutoScaling
2532
2543
  include Aws::Structure
2533
2544
  end
2534
2545
 
2546
+ # Describes the desired configuration for an instance refresh.
2547
+ #
2548
+ # If you specify a desired configuration, you must specify either a
2549
+ # `LaunchTemplate` or a `MixedInstancesPolicy`.
2550
+ #
2551
+ # @note When making an API call, you may pass DesiredConfiguration
2552
+ # data as a hash:
2553
+ #
2554
+ # {
2555
+ # launch_template: {
2556
+ # launch_template_id: "XmlStringMaxLen255",
2557
+ # launch_template_name: "LaunchTemplateName",
2558
+ # version: "XmlStringMaxLen255",
2559
+ # },
2560
+ # mixed_instances_policy: {
2561
+ # launch_template: {
2562
+ # launch_template_specification: {
2563
+ # launch_template_id: "XmlStringMaxLen255",
2564
+ # launch_template_name: "LaunchTemplateName",
2565
+ # version: "XmlStringMaxLen255",
2566
+ # },
2567
+ # overrides: [
2568
+ # {
2569
+ # instance_type: "XmlStringMaxLen255",
2570
+ # weighted_capacity: "XmlStringMaxLen32",
2571
+ # launch_template_specification: {
2572
+ # launch_template_id: "XmlStringMaxLen255",
2573
+ # launch_template_name: "LaunchTemplateName",
2574
+ # version: "XmlStringMaxLen255",
2575
+ # },
2576
+ # },
2577
+ # ],
2578
+ # },
2579
+ # instances_distribution: {
2580
+ # on_demand_allocation_strategy: "XmlString",
2581
+ # on_demand_base_capacity: 1,
2582
+ # on_demand_percentage_above_base_capacity: 1,
2583
+ # spot_allocation_strategy: "XmlString",
2584
+ # spot_instance_pools: 1,
2585
+ # spot_max_price: "MixedInstanceSpotPrice",
2586
+ # },
2587
+ # },
2588
+ # }
2589
+ #
2590
+ # @!attribute [rw] launch_template
2591
+ # Describes the launch template and the version of the launch template
2592
+ # that Amazon EC2 Auto Scaling uses to launch Amazon EC2 instances.
2593
+ # For more information about launch templates, see [Launch
2594
+ # templates][1] in the *Amazon EC2 Auto Scaling User Guide*.
2595
+ #
2596
+ #
2597
+ #
2598
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/LaunchTemplates.html
2599
+ # @return [Types::LaunchTemplateSpecification]
2600
+ #
2601
+ # @!attribute [rw] mixed_instances_policy
2602
+ # Describes a mixed instances policy. A mixed instances policy
2603
+ # contains the instance types Amazon EC2 Auto Scaling can launch, and
2604
+ # other information Amazon EC2 Auto Scaling can use to launch
2605
+ # instances to help you optimize your costs. For more information, see
2606
+ # [Auto Scaling groups with multiple instance types and purchase
2607
+ # options][1] in the *Amazon EC2 Auto Scaling User Guide*.
2608
+ #
2609
+ #
2610
+ #
2611
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
2612
+ # @return [Types::MixedInstancesPolicy]
2613
+ #
2614
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DesiredConfiguration AWS API Documentation
2615
+ #
2616
+ class DesiredConfiguration < Struct.new(
2617
+ :launch_template,
2618
+ :mixed_instances_policy)
2619
+ SENSITIVE = []
2620
+ include Aws::Structure
2621
+ end
2622
+
2535
2623
  # @!attribute [rw] activities
2536
2624
  # The activities related to detaching the instances from the Auto
2537
2625
  # Scaling group.
@@ -2798,16 +2886,16 @@ module Aws::AutoScaling
2798
2886
  # encryption value. Volumes that are created from encrypted snapshots
2799
2887
  # are automatically encrypted, and volumes that are created from
2800
2888
  # unencrypted snapshots are automatically unencrypted. By default,
2801
- # encrypted snapshots use the AWS managed CMK that is used for EBS
2802
- # encryption, but you can specify a custom CMK when you create the
2803
- # snapshot. The ability to encrypt a snapshot during copying also
2804
- # allows you to apply a new CMK to an already-encrypted snapshot.
2805
- # Volumes restored from the resulting copy are only accessible using
2806
- # the new CMK.
2889
+ # encrypted snapshots use the Amazon Web Services managed CMK that is
2890
+ # used for EBS encryption, but you can specify a custom CMK when you
2891
+ # create the snapshot. The ability to encrypt a snapshot during
2892
+ # copying also allows you to apply a new CMK to an already-encrypted
2893
+ # snapshot. Volumes restored from the resulting copy are only
2894
+ # accessible using the new CMK.
2807
2895
  #
2808
2896
  # Enabling [encryption by default][2] results in all EBS volumes being
2809
- # encrypted with the AWS managed CMK or a customer managed CMK,
2810
- # whether or not the snapshot was encrypted.
2897
+ # encrypted with the Amazon Web Services managed CMK or a customer
2898
+ # managed CMK, whether or not the snapshot was encrypted.
2811
2899
  #
2812
2900
  # </note>
2813
2901
  #
@@ -3473,6 +3561,14 @@ module Aws::AutoScaling
3473
3561
  # warm pool.
3474
3562
  # @return [Types::InstanceRefreshProgressDetails]
3475
3563
  #
3564
+ # @!attribute [rw] preferences
3565
+ # Describes the preferences for an instance refresh.
3566
+ # @return [Types::RefreshPreferences]
3567
+ #
3568
+ # @!attribute [rw] desired_configuration
3569
+ # Describes the specific update you want to deploy.
3570
+ # @return [Types::DesiredConfiguration]
3571
+ #
3476
3572
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/InstanceRefresh AWS API Documentation
3477
3573
  #
3478
3574
  class InstanceRefresh < Struct.new(
@@ -3484,7 +3580,9 @@ module Aws::AutoScaling
3484
3580
  :end_time,
3485
3581
  :percentage_complete,
3486
3582
  :instances_to_update,
3487
- :progress_details)
3583
+ :progress_details,
3584
+ :preferences,
3585
+ :desired_configuration)
3488
3586
  SENSITIVE = []
3489
3587
  include Aws::Structure
3490
3588
  end
@@ -3584,14 +3682,15 @@ module Aws::AutoScaling
3584
3682
  # Instances, and how the Auto Scaling group allocates instance types to
3585
3683
  # fulfill On-Demand and Spot capacities.
3586
3684
  #
3587
- # When you update `SpotAllocationStrategy`, `SpotInstancePools`, or
3588
- # `SpotMaxPrice`, this update action does not deploy any changes across
3589
- # the running Amazon EC2 instances in the group. Your existing Spot
3590
- # Instances continue to run as long as the maximum price for those
3591
- # instances is higher than the current Spot price. When scale out
3592
- # occurs, Amazon EC2 Auto Scaling launches instances based on the new
3593
- # settings. When scale in occurs, Amazon EC2 Auto Scaling terminates
3594
- # instances according to the group's termination policies.
3685
+ # When you modify `SpotAllocationStrategy`, `SpotInstancePools`, or
3686
+ # `SpotMaxPrice` in the UpdateAutoScalingGroup API call, this update
3687
+ # action does not deploy any changes across the running Amazon EC2
3688
+ # instances in the group. Your existing Spot Instances continue to run
3689
+ # as long as the maximum price for those instances is higher than the
3690
+ # current Spot price. When scale out occurs, Amazon EC2 Auto Scaling
3691
+ # launches instances based on the new settings. When scale in occurs,
3692
+ # Amazon EC2 Auto Scaling terminates instances according to the group's
3693
+ # termination policies.
3595
3694
  #
3596
3695
  # @note When making an API call, you may pass InstancesDistribution
3597
3696
  # data as a hash:
@@ -3998,11 +4097,12 @@ module Aws::AutoScaling
3998
4097
  #
3999
4098
  # You specify these properties as part of a mixed instances policy.
4000
4099
  #
4001
- # When you update the launch template or overrides, existing Amazon EC2
4002
- # instances continue to run. When scale out occurs, Amazon EC2 Auto
4003
- # Scaling launches instances to match the new settings. When scale in
4004
- # occurs, Amazon EC2 Auto Scaling terminates instances according to the
4005
- # group's termination policies.
4100
+ # When you update the launch template or overrides in the
4101
+ # UpdateAutoScalingGroup API call, existing Amazon EC2 instances
4102
+ # continue to run. When scale out occurs, Amazon EC2 Auto Scaling
4103
+ # launches instances to match the new settings. When scale in occurs,
4104
+ # Amazon EC2 Auto Scaling terminates instances according to the group's
4105
+ # termination policies.
4006
4106
  #
4007
4107
  # @note When making an API call, you may pass LaunchTemplate
4008
4108
  # data as a hash:
@@ -4125,18 +4225,14 @@ module Aws::AutoScaling
4125
4225
  include Aws::Structure
4126
4226
  end
4127
4227
 
4128
- # Describes the Amazon EC2 launch template and the launch template
4129
- # version that can be used by an Auto Scaling group to configure Amazon
4130
- # EC2 instances.
4131
- #
4132
- # The launch template that is specified must be configured for use with
4133
- # an Auto Scaling group. For more information, see [Creating a launch
4134
- # template for an Auto Scaling group][1] in the *Amazon EC2 Auto Scaling
4135
- # User Guide*.
4228
+ # Describes the launch template and the version of the launch template
4229
+ # that Amazon EC2 Auto Scaling uses to launch Amazon EC2 instances. For
4230
+ # more information about launch templates, see [Launch templates][1] in
4231
+ # the *Amazon EC2 Auto Scaling User Guide*.
4136
4232
  #
4137
4233
  #
4138
4234
  #
4139
- # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html
4235
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/LaunchTemplates.html
4140
4236
  #
4141
4237
  # @note When making an API call, you may pass LaunchTemplateSpecification
4142
4238
  # data as a hash:
@@ -4602,17 +4698,12 @@ module Aws::AutoScaling
4602
4698
  include Aws::Structure
4603
4699
  end
4604
4700
 
4605
- # Describes a mixed instances policy for an Auto Scaling group. With
4606
- # mixed instances, your Auto Scaling group can provision a combination
4607
- # of On-Demand Instances and Spot Instances across multiple instance
4608
- # types. For more information, see [Auto Scaling groups with multiple
4609
- # instance types and purchase options][1] in the *Amazon EC2 Auto
4610
- # Scaling User Guide*.
4611
- #
4612
- # You can create a mixed instances policy for a new Auto Scaling group,
4613
- # or you can create it for an existing group by updating the group to
4614
- # specify `MixedInstancesPolicy` as the top-level property instead of a
4615
- # launch configuration or launch template.
4701
+ # Describes a mixed instances policy. A mixed instances policy contains
4702
+ # the instance types Amazon EC2 Auto Scaling can launch, and other
4703
+ # information Amazon EC2 Auto Scaling can use to launch instances to
4704
+ # help you optimize your costs. For more information, see [Auto Scaling
4705
+ # groups with multiple instance types and purchase options][1] in the
4706
+ # *Amazon EC2 Auto Scaling User Guide*.
4616
4707
  #
4617
4708
  #
4618
4709
  #
@@ -4651,10 +4742,10 @@ module Aws::AutoScaling
4651
4742
  # }
4652
4743
  #
4653
4744
  # @!attribute [rw] launch_template
4654
- # Specifies the launch template to use and optionally the instance
4655
- # types (overrides) that are used to provision EC2 instances to
4656
- # fulfill On-Demand and Spot capacities. Required when creating a
4657
- # mixed instances policy.
4745
+ # Specifies the launch template to use and the instance types
4746
+ # (overrides) that are used to provision EC2 instances to fulfill
4747
+ # On-Demand and Spot capacities. Required when creating a mixed
4748
+ # instances policy.
4658
4749
  # @return [Types::LaunchTemplate]
4659
4750
  #
4660
4751
  # @!attribute [rw] instances_distribution
@@ -4775,16 +4866,20 @@ module Aws::AutoScaling
4775
4866
  # @return [String]
4776
4867
  #
4777
4868
  # @!attribute [rw] resource_label
4778
- # Identifies the resource associated with the metric type. You can't
4779
- # specify a resource label unless the metric type is
4780
- # `ALBRequestCountPerTarget` and there is a target group attached to
4781
- # the Auto Scaling group.
4869
+ # A label that uniquely identifies a specific Application Load
4870
+ # Balancer target group from which to determine the average request
4871
+ # count served by your Auto Scaling group. You can't specify a
4872
+ # resource label unless the target group is attached to the Auto
4873
+ # Scaling group.
4782
4874
  #
4783
4875
  # You create the resource label by appending the final portion of the
4784
4876
  # load balancer ARN and the final portion of the target group ARN into
4785
- # a single value, separated by a forward slash (/). The format is
4786
- # app/&lt;load-balancer-name&gt;/&lt;load-balancer-id&gt;/targetgroup/&lt;target-group-name&gt;/&lt;target-group-id&gt;,
4787
- # where:
4877
+ # a single value, separated by a forward slash (/). The format of the
4878
+ # resource label is:
4879
+ #
4880
+ # `app/my-alb/778d41231b141a0f/targetgroup/my-alb-target-group/943f017f100becff`.
4881
+ #
4882
+ # Where:
4788
4883
  #
4789
4884
  # * app/&lt;load-balancer-name&gt;/&lt;load-balancer-id&gt; is the
4790
4885
  # final portion of the load balancer ARN
@@ -4792,9 +4887,6 @@ module Aws::AutoScaling
4792
4887
  # * targetgroup/&lt;target-group-name&gt;/&lt;target-group-id&gt; is
4793
4888
  # the final portion of the target group ARN.
4794
4889
  #
4795
- # This is an example:
4796
- # app/EC2Co-EcsEl-1TKLTMITMM0EO/f37c06a68c1748aa/targetgroup/EC2Co-Defau-LDNM7Q3ZH1ZN/6d4ea56ca2d6a18d.
4797
- #
4798
4890
  # To find the ARN for an Application Load Balancer, use the
4799
4891
  # [DescribeLoadBalancers][1] API operation. To find the ARN for the
4800
4892
  # target group, use the [DescribeTargetGroups][2] API operation.
@@ -5034,7 +5126,7 @@ module Aws::AutoScaling
5034
5126
  # a single value, separated by a forward slash (/). The format of the
5035
5127
  # resource label is:
5036
5128
  #
5037
- # `app/EC2Co-EcsEl-1TKLTMITMM0EO/f37c06a68c1748aa/targetgroup/EC2Co-Defau-LDNM7Q3ZH1ZN/6d4ea56ca2d6a18d`.
5129
+ # `app/my-alb/778d41231b141a0f/targetgroup/my-alb-target-group/943f017f100becff`.
5038
5130
  #
5039
5131
  # Where:
5040
5132
  #
@@ -5084,16 +5176,17 @@ module Aws::AutoScaling
5084
5176
  #
5085
5177
  # @!attribute [rw] resource_label
5086
5178
  # A label that uniquely identifies a specific Application Load
5087
- # Balancer target group from which to determine the request count
5088
- # served by your Auto Scaling group. You can't specify a resource
5089
- # label unless the target group is attached to the Auto Scaling group.
5179
+ # Balancer target group from which to determine the total and average
5180
+ # request count served by your Auto Scaling group. You can't specify
5181
+ # a resource label unless the target group is attached to the Auto
5182
+ # Scaling group.
5090
5183
  #
5091
5184
  # You create the resource label by appending the final portion of the
5092
5185
  # load balancer ARN and the final portion of the target group ARN into
5093
5186
  # a single value, separated by a forward slash (/). The format of the
5094
5187
  # resource label is:
5095
5188
  #
5096
- # `app/EC2Co-EcsEl-1TKLTMITMM0EO/f37c06a68c1748aa/targetgroup/EC2Co-Defau-LDNM7Q3ZH1ZN/6d4ea56ca2d6a18d`.
5189
+ # `app/my-alb/778d41231b141a0f/targetgroup/my-alb-target-group/943f017f100becff`.
5097
5190
  #
5098
5191
  # Where:
5099
5192
  #
@@ -5142,16 +5235,17 @@ module Aws::AutoScaling
5142
5235
  #
5143
5236
  # @!attribute [rw] resource_label
5144
5237
  # A label that uniquely identifies a specific Application Load
5145
- # Balancer target group from which to determine the request count
5146
- # served by your Auto Scaling group. You can't specify a resource
5147
- # label unless the target group is attached to the Auto Scaling group.
5238
+ # Balancer target group from which to determine the average request
5239
+ # count served by your Auto Scaling group. You can't specify a
5240
+ # resource label unless the target group is attached to the Auto
5241
+ # Scaling group.
5148
5242
  #
5149
5243
  # You create the resource label by appending the final portion of the
5150
5244
  # load balancer ARN and the final portion of the target group ARN into
5151
5245
  # a single value, separated by a forward slash (/). The format of the
5152
5246
  # resource label is:
5153
5247
  #
5154
- # `app/EC2Co-EcsEl-1TKLTMITMM0EO/f37c06a68c1748aa/targetgroup/EC2Co-Defau-LDNM7Q3ZH1ZN/6d4ea56ca2d6a18d`.
5248
+ # `app/my-alb/778d41231b141a0f/targetgroup/my-alb-target-group/943f017f100becff`.
5155
5249
  #
5156
5250
  # Where:
5157
5251
  #
@@ -5842,11 +5936,7 @@ module Aws::AutoScaling
5842
5936
  include Aws::Structure
5843
5937
  end
5844
5938
 
5845
- # Describes information used to start an instance refresh.
5846
- #
5847
- # All properties are optional. However, if you specify a value for
5848
- # `CheckpointDelay`, you must also provide a value for
5849
- # `CheckpointPercentages`.
5939
+ # Describes the preferences for an instance refresh.
5850
5940
  #
5851
5941
  # @note When making an API call, you may pass RefreshPreferences
5852
5942
  # data as a hash:
@@ -5856,14 +5946,20 @@ module Aws::AutoScaling
5856
5946
  # instance_warmup: 1,
5857
5947
  # checkpoint_percentages: [1],
5858
5948
  # checkpoint_delay: 1,
5949
+ # skip_matching: false,
5859
5950
  # }
5860
5951
  #
5861
5952
  # @!attribute [rw] min_healthy_percentage
5862
5953
  # The amount of capacity in the Auto Scaling group that must remain
5863
5954
  # healthy during an instance refresh to allow the operation to
5864
- # continue, as a percentage of the desired capacity of the Auto
5865
- # Scaling group (rounded up to the nearest integer). The default is
5866
- # `90`.
5955
+ # continue. The value is expressed as a percentage of the desired
5956
+ # capacity of the Auto Scaling group (rounded up to the nearest
5957
+ # integer). The default is `90`.
5958
+ #
5959
+ # Setting the minimum healthy percentage to 100 percent limits the
5960
+ # rate of replacement to one instance at a time. In contrast, setting
5961
+ # it to 0 percent has the effect of replacing all instances at the
5962
+ # same time.
5867
5963
  # @return [Integer]
5868
5964
  #
5869
5965
  # @!attribute [rw] instance_warmup
@@ -5895,13 +5991,23 @@ module Aws::AutoScaling
5895
5991
  # hour).
5896
5992
  # @return [Integer]
5897
5993
  #
5994
+ # @!attribute [rw] skip_matching
5995
+ # A boolean value that indicates whether skip matching is enabled. If
5996
+ # true, then Amazon EC2 Auto Scaling skips replacing instances that
5997
+ # match the desired configuration. If no desired configuration is
5998
+ # specified, then it skips replacing instances that have the same
5999
+ # configuration that is already set on the group. The default is
6000
+ # `false`.
6001
+ # @return [Boolean]
6002
+ #
5898
6003
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RefreshPreferences AWS API Documentation
5899
6004
  #
5900
6005
  class RefreshPreferences < Struct.new(
5901
6006
  :min_healthy_percentage,
5902
6007
  :instance_warmup,
5903
6008
  :checkpoint_percentages,
5904
- :checkpoint_delay)
6009
+ :checkpoint_delay,
6010
+ :skip_matching)
5905
6011
  SENSITIVE = []
5906
6012
  include Aws::Structure
5907
6013
  end
@@ -6449,11 +6555,47 @@ module Aws::AutoScaling
6449
6555
  # {
6450
6556
  # auto_scaling_group_name: "XmlStringMaxLen255", # required
6451
6557
  # strategy: "Rolling", # accepts Rolling
6558
+ # desired_configuration: {
6559
+ # launch_template: {
6560
+ # launch_template_id: "XmlStringMaxLen255",
6561
+ # launch_template_name: "LaunchTemplateName",
6562
+ # version: "XmlStringMaxLen255",
6563
+ # },
6564
+ # mixed_instances_policy: {
6565
+ # launch_template: {
6566
+ # launch_template_specification: {
6567
+ # launch_template_id: "XmlStringMaxLen255",
6568
+ # launch_template_name: "LaunchTemplateName",
6569
+ # version: "XmlStringMaxLen255",
6570
+ # },
6571
+ # overrides: [
6572
+ # {
6573
+ # instance_type: "XmlStringMaxLen255",
6574
+ # weighted_capacity: "XmlStringMaxLen32",
6575
+ # launch_template_specification: {
6576
+ # launch_template_id: "XmlStringMaxLen255",
6577
+ # launch_template_name: "LaunchTemplateName",
6578
+ # version: "XmlStringMaxLen255",
6579
+ # },
6580
+ # },
6581
+ # ],
6582
+ # },
6583
+ # instances_distribution: {
6584
+ # on_demand_allocation_strategy: "XmlString",
6585
+ # on_demand_base_capacity: 1,
6586
+ # on_demand_percentage_above_base_capacity: 1,
6587
+ # spot_allocation_strategy: "XmlString",
6588
+ # spot_instance_pools: 1,
6589
+ # spot_max_price: "MixedInstanceSpotPrice",
6590
+ # },
6591
+ # },
6592
+ # },
6452
6593
  # preferences: {
6453
6594
  # min_healthy_percentage: 1,
6454
6595
  # instance_warmup: 1,
6455
6596
  # checkpoint_percentages: [1],
6456
6597
  # checkpoint_delay: 1,
6598
+ # skip_matching: false,
6457
6599
  # },
6458
6600
  # }
6459
6601
  #
@@ -6465,28 +6607,36 @@ module Aws::AutoScaling
6465
6607
  # The strategy to use for the instance refresh. The only valid value
6466
6608
  # is `Rolling`.
6467
6609
  #
6468
- # A rolling update is an update that is applied to all instances in an
6469
- # Auto Scaling group until all instances have been updated. A rolling
6470
- # update can fail due to failed health checks or if instances are on
6471
- # standby or are protected from scale in. If the rolling update
6472
- # process fails, any instances that were already replaced are not
6473
- # rolled back to their previous configuration.
6610
+ # A rolling update helps you update your instances gradually. A
6611
+ # rolling update can fail due to failed health checks or if instances
6612
+ # are on standby or are protected from scale in. If the rolling update
6613
+ # process fails, any instances that are replaced are not rolled back
6614
+ # to their previous configuration.
6474
6615
  # @return [String]
6475
6616
  #
6476
- # @!attribute [rw] preferences
6477
- # Set of preferences associated with the instance refresh request.
6478
- #
6479
- # If not provided, the default values are used. For
6480
- # `MinHealthyPercentage`, the default value is `90`. For
6481
- # `InstanceWarmup`, the default is to use the value specified for the
6482
- # health check grace period for the Auto Scaling group.
6617
+ # @!attribute [rw] desired_configuration
6618
+ # The desired configuration. For example, the desired configuration
6619
+ # can specify a new launch template or a new version of the current
6620
+ # launch template.
6483
6621
  #
6484
- # For more information, see [RefreshPreferences][1] in the *Amazon EC2
6485
- # Auto Scaling API Reference*.
6622
+ # Once the instance refresh succeeds, Amazon EC2 Auto Scaling updates
6623
+ # the settings of the Auto Scaling group to reflect the new desired
6624
+ # configuration.
6486
6625
  #
6626
+ # <note markdown="1"> When you specify a new launch template or a new version of the
6627
+ # current launch template for your desired configuration, consider
6628
+ # enabling the `SkipMatching` property in preferences. If it's
6629
+ # enabled, Amazon EC2 Auto Scaling skips replacing instances that
6630
+ # already use the specified launch template and version. This can help
6631
+ # you reduce the number of replacements that are required to apply
6632
+ # updates.
6487
6633
  #
6634
+ # </note>
6635
+ # @return [Types::DesiredConfiguration]
6488
6636
  #
6489
- # [1]: https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_RefreshPreferences.html
6637
+ # @!attribute [rw] preferences
6638
+ # Set of preferences associated with the instance refresh request. If
6639
+ # not provided, the default values are used.
6490
6640
  # @return [Types::RefreshPreferences]
6491
6641
  #
6492
6642
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/StartInstanceRefreshType AWS API Documentation
@@ -6494,6 +6644,7 @@ module Aws::AutoScaling
6494
6644
  class StartInstanceRefreshType < Struct.new(
6495
6645
  :auto_scaling_group_name,
6496
6646
  :strategy,
6647
+ :desired_configuration,
6497
6648
  :preferences)
6498
6649
  SENSITIVE = []
6499
6650
  include Aws::Structure
@@ -6849,6 +7000,7 @@ module Aws::AutoScaling
6849
7000
  # service_linked_role_arn: "ResourceName",
6850
7001
  # max_instance_lifetime: 1,
6851
7002
  # capacity_rebalance: false,
7003
+ # context: "Context",
6852
7004
  # }
6853
7005
  #
6854
7006
  # @!attribute [rw] auto_scaling_group_name
@@ -7020,6 +7172,10 @@ module Aws::AutoScaling
7020
7172
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html
7021
7173
  # @return [Boolean]
7022
7174
  #
7175
+ # @!attribute [rw] context
7176
+ # Reserved.
7177
+ # @return [String]
7178
+ #
7023
7179
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroupType AWS API Documentation
7024
7180
  #
7025
7181
  class UpdateAutoScalingGroupType < Struct.new(
@@ -7040,7 +7196,8 @@ module Aws::AutoScaling
7040
7196
  :new_instances_protected_from_scale_in,
7041
7197
  :service_linked_role_arn,
7042
7198
  :max_instance_lifetime,
7043
- :capacity_rebalance)
7199
+ :capacity_rebalance,
7200
+ :context)
7044
7201
  SENSITIVE = []
7045
7202
  include Aws::Structure
7046
7203
  end
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.63.0
4
+ version: 1.67.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: 2021-06-04 00:00:00.000000000 Z
11
+ date: 2021-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.112.0
22
+ version: 3.119.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.112.0
32
+ version: 3.119.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement