aws-sdk-autoscaling 1.85.0 → 1.86.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: b1aa1f0814cef7d569f4baa85ae0267dd6e49836a71d8a2969b5e7664cadc7ef
4
- data.tar.gz: 9f1bfba313dd12c1275643d5ded202ca602b887eb203aa4e03e601e5ec1368f0
3
+ metadata.gz: 1ffa0714ede577150ddcca8fbea38d18ba543b2e4ffcf2945f1fae53213b3532
4
+ data.tar.gz: 15487c48932d3a8c3b57257513e2bd643c46a19261552ebc0ed682d6526ea2ea
5
5
  SHA512:
6
- metadata.gz: faa560ab6a0674d06ac5493b7d9d9b748bfad11df20d4c264a206f17f3ae389c78d9cacfa7511abc8a3811074631a3dfd5051aae76cff042bdecdc9842eebe08
7
- data.tar.gz: abd016837c0a053f2d64e9e6ee57e2256d6c5543a742b17953685db7e3cac31e3034e0cf62b2d0fe0dc7b65e0e91cb1387f8c87e996775d8535c297a4b7a6460
6
+ metadata.gz: 7bf61ce4c0b74e5474d096f0117c28c232cc46006067329548f7baff308e5b4970d94e1aafab21924c3756cf7d9e71048e25f2d0f6c87e1e686c9fd7776afc72
7
+ data.tar.gz: 77049a0e1e26577a9299f664b69548c3d88f7bdb1540e123cd5aede7f5324296e2ade812211b10105d7460b6e5231d011add2389f91d922a5c876bb9d1fccd11
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.86.0 (2023-02-10)
5
+ ------------------
6
+
7
+ * Feature - You can now either terminate/replace, ignore, or wait for EC2 Auto Scaling instances on standby or protected from scale in. Also, you can also roll back changes from a failed instance refresh.
8
+
4
9
  1.85.0 (2023-01-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.85.0
1
+ 1.86.0
@@ -232,6 +232,10 @@ module Aws::AutoScaling
232
232
  data[:default_instance_warmup]
233
233
  end
234
234
 
235
+ # **Reserved for use with Amazon VPC Lattice, which is in preview
236
+ # release and is subject to change. Do not use this parameter for
237
+ # production workloads. It is also subject to change.**
238
+ #
235
239
  # The unique identifiers of the traffic sources.
236
240
  # @return [Array<Types::TrafficSourceIdentifier>]
237
241
  def traffic_sources
@@ -1390,24 +1394,25 @@ module Aws::AutoScaling
1390
1394
  #
1391
1395
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html
1392
1396
  # @option options [Integer] :default_instance_warmup
1393
- # The amount of time, in seconds, until a newly launched instance can
1394
- # contribute to the Amazon CloudWatch metrics. This delay lets an
1395
- # instance finish initializing before Amazon EC2 Auto Scaling aggregates
1396
- # instance metrics, resulting in more reliable usage data. Set this
1397
- # value equal to the amount of time that it takes for resource
1398
- # consumption to become stable after an instance reaches the `InService`
1399
- # state. For more information, see [Set the default instance warmup for
1400
- # an Auto Scaling group][1] in the *Amazon EC2 Auto Scaling User Guide*.
1401
- #
1402
- # To manage your warm-up settings at the group level, we recommend that
1403
- # you set the default instance warmup, *even if its value is set to 0
1404
- # seconds*. This also optimizes the performance of scaling policies that
1405
- # scale continuously, such as target tracking and step scaling policies.
1406
- #
1407
- # If you need to remove a value that you previously set, include the
1397
+ # The amount of time, in seconds, until a new instance is considered to
1398
+ # have finished initializing and resource consumption to become stable
1399
+ # after it enters the `InService` state.
1400
+ #
1401
+ # During an instance refresh, Amazon EC2 Auto Scaling waits for the
1402
+ # warm-up period after it replaces an instance before it moves on to
1403
+ # replacing the next instance. Amazon EC2 Auto Scaling also waits for
1404
+ # the warm-up period before aggregating the metrics for new instances
1405
+ # with existing instances in the Amazon CloudWatch metrics that are used
1406
+ # for scaling, resulting in more reliable usage data. For more
1407
+ # information, see [Set the default instance warmup for an Auto Scaling
1408
+ # group][1] in the *Amazon EC2 Auto Scaling User Guide*.
1409
+ #
1410
+ # To manage various warm-up settings at the group level, we recommend
1411
+ # that you set the default instance warmup, *even if it is set to 0
1412
+ # seconds*. To remove a value that you previously set, include the
1408
1413
  # property but specify `-1` for the value. However, we strongly
1409
1414
  # recommend keeping the default instance warmup enabled by specifying a
1410
- # minimum value of `0`.
1415
+ # value of `0` or other nominal value.
1411
1416
  #
1412
1417
  #
1413
1418
  #
@@ -690,14 +690,18 @@ module Aws::AutoScaling
690
690
  req.send_request(options)
691
691
  end
692
692
 
693
- # Cancels an instance refresh operation in progress. Cancellation does
694
- # not roll back any replacements that have already been completed, but
695
- # it prevents new replacements from being started.
693
+ # Cancels an instance refresh or rollback that is in progress. If an
694
+ # instance refresh or rollback is not in progress, an
695
+ # `ActiveInstanceRefreshNotFound` error occurs.
696
696
  #
697
697
  # This operation is part of the [instance refresh feature][1] in Amazon
698
698
  # EC2 Auto Scaling, which helps you update instances in your Auto
699
699
  # Scaling group after you make configuration changes.
700
700
  #
701
+ # When you cancel an instance refresh, this does not roll back any
702
+ # changes that it made. Use the RollbackInstanceRefresh API to roll back
703
+ # instead.
704
+ #
701
705
  #
702
706
  #
703
707
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html
@@ -1135,24 +1139,25 @@ module Aws::AutoScaling
1135
1139
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html
1136
1140
  #
1137
1141
  # @option params [Integer] :default_instance_warmup
1138
- # The amount of time, in seconds, until a newly launched instance can
1139
- # contribute to the Amazon CloudWatch metrics. This delay lets an
1140
- # instance finish initializing before Amazon EC2 Auto Scaling aggregates
1141
- # instance metrics, resulting in more reliable usage data. Set this
1142
- # value equal to the amount of time that it takes for resource
1143
- # consumption to become stable after an instance reaches the `InService`
1144
- # state. For more information, see [Set the default instance warmup for
1145
- # an Auto Scaling group][1] in the *Amazon EC2 Auto Scaling User Guide*.
1146
- #
1147
- # To manage your warm-up settings at the group level, we recommend that
1148
- # you set the default instance warmup, *even if its value is set to 0
1149
- # seconds*. This also optimizes the performance of scaling policies that
1150
- # scale continuously, such as target tracking and step scaling policies.
1151
- #
1152
- # If you need to remove a value that you previously set, include the
1142
+ # The amount of time, in seconds, until a new instance is considered to
1143
+ # have finished initializing and resource consumption to become stable
1144
+ # after it enters the `InService` state.
1145
+ #
1146
+ # During an instance refresh, Amazon EC2 Auto Scaling waits for the
1147
+ # warm-up period after it replaces an instance before it moves on to
1148
+ # replacing the next instance. Amazon EC2 Auto Scaling also waits for
1149
+ # the warm-up period before aggregating the metrics for new instances
1150
+ # with existing instances in the Amazon CloudWatch metrics that are used
1151
+ # for scaling, resulting in more reliable usage data. For more
1152
+ # information, see [Set the default instance warmup for an Auto Scaling
1153
+ # group][1] in the *Amazon EC2 Auto Scaling User Guide*.
1154
+ #
1155
+ # To manage various warm-up settings at the group level, we recommend
1156
+ # that you set the default instance warmup, *even if it is set to 0
1157
+ # seconds*. To remove a value that you previously set, include the
1153
1158
  # property but specify `-1` for the value. However, we strongly
1154
1159
  # recommend keeping the default instance warmup enabled by specifying a
1155
- # minimum value of `0`.
1160
+ # value of `0` or other nominal value.
1156
1161
  #
1157
1162
  # Default: None
1158
1163
  #
@@ -2623,29 +2628,14 @@ module Aws::AutoScaling
2623
2628
  # EC2 Auto Scaling, which helps you update instances in your Auto
2624
2629
  # Scaling group after you make configuration changes.
2625
2630
  #
2626
- # To help you determine the status of an instance refresh, this
2627
- # operation returns information about the instance refreshes you
2628
- # previously initiated, including their status, end time, the percentage
2629
- # of the instance refresh that is complete, and the number of instances
2630
- # remaining to update before the instance refresh is complete.
2631
- #
2632
- # The following are the possible statuses:
2633
- #
2634
- # * `Pending` - The request was created, but the operation has not
2635
- # started.
2636
- #
2637
- # * `InProgress` - The operation is in progress.
2638
- #
2639
- # * `Successful` - The operation completed successfully.
2640
- #
2641
- # * `Failed` - The operation failed to complete. You can troubleshoot
2642
- # using the status reason and the scaling activities.
2643
- #
2644
- # * `Cancelling` - An ongoing operation is being cancelled. Cancellation
2645
- # does not roll back any replacements that have already been
2646
- # completed, but it prevents new replacements from being started.
2647
- #
2648
- # * `Cancelled` - The operation is cancelled.
2631
+ # To help you determine the status of an instance refresh, Amazon EC2
2632
+ # Auto Scaling returns information about the instance refreshes you
2633
+ # previously initiated, including their status, start time, end time,
2634
+ # the percentage of the instance refresh that is complete, and the
2635
+ # number of instances remaining to update before the instance refresh is
2636
+ # complete. If a rollback is initiated while an instance refresh is in
2637
+ # progress, Amazon EC2 Auto Scaling also returns information about the
2638
+ # rollback of the instance refresh.
2649
2639
  #
2650
2640
  #
2651
2641
  #
@@ -2716,7 +2706,7 @@ module Aws::AutoScaling
2716
2706
  # resp.instance_refreshes #=> Array
2717
2707
  # resp.instance_refreshes[0].instance_refresh_id #=> String
2718
2708
  # resp.instance_refreshes[0].auto_scaling_group_name #=> String
2719
- # resp.instance_refreshes[0].status #=> String, one of "Pending", "InProgress", "Successful", "Failed", "Cancelling", "Cancelled"
2709
+ # resp.instance_refreshes[0].status #=> String, one of "Pending", "InProgress", "Successful", "Failed", "Cancelling", "Cancelled", "RollbackInProgress", "RollbackFailed", "RollbackSuccessful"
2720
2710
  # resp.instance_refreshes[0].status_reason #=> String
2721
2711
  # resp.instance_refreshes[0].start_time #=> Time
2722
2712
  # resp.instance_refreshes[0].end_time #=> Time
@@ -2732,6 +2722,9 @@ module Aws::AutoScaling
2732
2722
  # resp.instance_refreshes[0].preferences.checkpoint_percentages[0] #=> Integer
2733
2723
  # resp.instance_refreshes[0].preferences.checkpoint_delay #=> Integer
2734
2724
  # resp.instance_refreshes[0].preferences.skip_matching #=> Boolean
2725
+ # resp.instance_refreshes[0].preferences.auto_rollback #=> Boolean
2726
+ # resp.instance_refreshes[0].preferences.scale_in_protected_instances #=> String, one of "Refresh", "Ignore", "Wait"
2727
+ # resp.instance_refreshes[0].preferences.standby_instances #=> String, one of "Terminate", "Ignore", "Wait"
2735
2728
  # resp.instance_refreshes[0].desired_configuration.launch_template.launch_template_id #=> String
2736
2729
  # resp.instance_refreshes[0].desired_configuration.launch_template.launch_template_name #=> String
2737
2730
  # resp.instance_refreshes[0].desired_configuration.launch_template.version #=> String
@@ -2790,6 +2783,14 @@ module Aws::AutoScaling
2790
2783
  # resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.instances_distribution.spot_allocation_strategy #=> String
2791
2784
  # resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.instances_distribution.spot_instance_pools #=> Integer
2792
2785
  # resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.instances_distribution.spot_max_price #=> String
2786
+ # resp.instance_refreshes[0].rollback_details.rollback_reason #=> String
2787
+ # resp.instance_refreshes[0].rollback_details.rollback_start_time #=> Time
2788
+ # resp.instance_refreshes[0].rollback_details.percentage_complete_on_rollback #=> Integer
2789
+ # resp.instance_refreshes[0].rollback_details.instances_to_update_on_rollback #=> Integer
2790
+ # resp.instance_refreshes[0].rollback_details.progress_details_on_rollback.live_pool_progress.percentage_complete #=> Integer
2791
+ # resp.instance_refreshes[0].rollback_details.progress_details_on_rollback.live_pool_progress.instances_to_update #=> Integer
2792
+ # resp.instance_refreshes[0].rollback_details.progress_details_on_rollback.warm_pool_progress.percentage_complete #=> Integer
2793
+ # resp.instance_refreshes[0].rollback_details.progress_details_on_rollback.warm_pool_progress.instances_to_update #=> Integer
2793
2794
  # resp.next_token #=> String
2794
2795
  #
2795
2796
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeInstanceRefreshes AWS API Documentation
@@ -5865,6 +5866,63 @@ module Aws::AutoScaling
5865
5866
  req.send_request(options)
5866
5867
  end
5867
5868
 
5869
+ # Cancels an instance refresh that is in progress and rolls back any
5870
+ # changes that it made. Amazon EC2 Auto Scaling replaces any instances
5871
+ # that were replaced during the instance refresh. This restores your
5872
+ # Auto Scaling group to the configuration that it was using before the
5873
+ # start of the instance refresh.
5874
+ #
5875
+ # This operation is part of the [instance refresh feature][1] in Amazon
5876
+ # EC2 Auto Scaling, which helps you update instances in your Auto
5877
+ # Scaling group after you make configuration changes.
5878
+ #
5879
+ # A rollback is not supported in the following situations:
5880
+ #
5881
+ # * There is no desired configuration specified for the instance
5882
+ # refresh.
5883
+ #
5884
+ # * The Auto Scaling group has a launch template that uses an Amazon Web
5885
+ # Services Systems Manager parameter instead of an AMI ID for the
5886
+ # `ImageId` property.
5887
+ #
5888
+ # * The Auto Scaling group uses the launch template's `$Latest` or
5889
+ # `$Default` version.
5890
+ #
5891
+ # When you receive a successful response from this operation, Amazon EC2
5892
+ # Auto Scaling immediately begins replacing instances. You can check the
5893
+ # status of this operation through the DescribeInstanceRefreshes API
5894
+ # operation.
5895
+ #
5896
+ #
5897
+ #
5898
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html
5899
+ #
5900
+ # @option params [String] :auto_scaling_group_name
5901
+ # The name of the Auto Scaling group.
5902
+ #
5903
+ # @return [Types::RollbackInstanceRefreshAnswer] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5904
+ #
5905
+ # * {Types::RollbackInstanceRefreshAnswer#instance_refresh_id #instance_refresh_id} => String
5906
+ #
5907
+ # @example Request syntax with placeholder values
5908
+ #
5909
+ # resp = client.rollback_instance_refresh({
5910
+ # auto_scaling_group_name: "XmlStringMaxLen255",
5911
+ # })
5912
+ #
5913
+ # @example Response structure
5914
+ #
5915
+ # resp.instance_refresh_id #=> String
5916
+ #
5917
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RollbackInstanceRefresh AWS API Documentation
5918
+ #
5919
+ # @overload rollback_instance_refresh(params = {})
5920
+ # @param [Hash] params ({})
5921
+ def rollback_instance_refresh(params = {}, options = {})
5922
+ req = build_request(:rollback_instance_refresh, params)
5923
+ req.send_request(options)
5924
+ end
5925
+
5868
5926
  # Sets the size of the specified Auto Scaling group.
5869
5927
  #
5870
5928
  # If a scale-in activity occurs as a result of a new `DesiredCapacity`
@@ -6053,9 +6111,9 @@ module Aws::AutoScaling
6053
6111
  req.send_request(options)
6054
6112
  end
6055
6113
 
6056
- # Starts a new instance refresh operation. An instance refresh performs
6057
- # a rolling replacement of all or some instances in an Auto Scaling
6058
- # group. Each instance is terminated first and then replaced, which
6114
+ # Starts an instance refresh. During an instance refresh, Amazon EC2
6115
+ # Auto Scaling performs a rolling update of instances in an Auto Scaling
6116
+ # group. Instances are terminated first and then replaced, which
6059
6117
  # temporarily reduces the capacity available within your Auto Scaling
6060
6118
  # group.
6061
6119
  #
@@ -6067,12 +6125,26 @@ module Aws::AutoScaling
6067
6125
  # start an instance refresh to immediately begin the process of updating
6068
6126
  # instances in the group.
6069
6127
  #
6070
- # If the call succeeds, it creates a new instance refresh request with a
6071
- # unique ID that you can use to track its progress. To query its status,
6072
- # call the DescribeInstanceRefreshes API. To describe the instance
6073
- # refreshes that have already run, call the DescribeInstanceRefreshes
6074
- # API. To cancel an instance refresh operation in progress, use the
6075
- # CancelInstanceRefresh API.
6128
+ # If successful, the request's response contains a unique ID that you
6129
+ # can use to track the progress of the instance refresh. To query its
6130
+ # status, call the DescribeInstanceRefreshes API. To describe the
6131
+ # instance refreshes that have already run, call the
6132
+ # DescribeInstanceRefreshes API. To cancel an instance refresh that is
6133
+ # in progress, use the CancelInstanceRefresh API.
6134
+ #
6135
+ # An instance refresh might fail for several reasons, such as EC2 launch
6136
+ # failures, misconfigured health checks, or not ignoring or allowing the
6137
+ # termination of instances that are in `Standby` state or protected from
6138
+ # scale in. You can monitor for failed EC2 launches using the scaling
6139
+ # activities. To find the scaling activities, call the
6140
+ # DescribeScalingActivities API.
6141
+ #
6142
+ # If you enable auto rollback, your Auto Scaling group will be rolled
6143
+ # back automatically when the instance refresh fails. You can enable
6144
+ # this feature before starting an instance refresh by specifying the
6145
+ # `AutoRollback` property in the instance refresh preferences.
6146
+ # Otherwise, to roll back an instance refresh before it finishes, use
6147
+ # the RollbackInstanceRefresh API.
6076
6148
  #
6077
6149
  #
6078
6150
  #
@@ -6085,12 +6157,6 @@ module Aws::AutoScaling
6085
6157
  # The strategy to use for the instance refresh. The only valid value is
6086
6158
  # `Rolling`.
6087
6159
  #
6088
- # A rolling update helps you update your instances gradually. A rolling
6089
- # update can fail due to failed health checks or if instances are on
6090
- # standby or are protected from scale in. If the rolling update process
6091
- # fails, any instances that are replaced are not rolled back to their
6092
- # previous configuration.
6093
- #
6094
6160
  # @option params [Types::DesiredConfiguration] :desired_configuration
6095
6161
  # The desired configuration. For example, the desired configuration can
6096
6162
  # specify a new launch template or a new version of the current launch
@@ -6104,14 +6170,24 @@ module Aws::AutoScaling
6104
6170
  # launch template for your desired configuration, consider enabling the
6105
6171
  # `SkipMatching` property in preferences. If it's enabled, Amazon EC2
6106
6172
  # Auto Scaling skips replacing instances that already use the specified
6107
- # launch template and version. This can help you reduce the number of
6108
- # replacements that are required to apply updates.
6173
+ # launch template and instance types. This can help you reduce the
6174
+ # number of replacements that are required to apply updates.
6109
6175
  #
6110
6176
  # </note>
6111
6177
  #
6112
6178
  # @option params [Types::RefreshPreferences] :preferences
6113
- # Set of preferences associated with the instance refresh request. If
6114
- # not provided, the default values are used.
6179
+ # Sets your preferences for the instance refresh so that it performs as
6180
+ # expected when you start it. Includes the instance warmup time, the
6181
+ # minimum healthy percentage, and the behaviors that you want Amazon EC2
6182
+ # Auto Scaling to use if instances that are in `Standby` state or
6183
+ # protected from scale in are found. You can also choose to enable
6184
+ # additional features, such as the following:
6185
+ #
6186
+ # * Auto rollback
6187
+ #
6188
+ # * Checkpoints
6189
+ #
6190
+ # * Skip matching
6115
6191
  #
6116
6192
  # @return [Types::StartInstanceRefreshAnswer] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6117
6193
  #
@@ -6240,6 +6316,9 @@ module Aws::AutoScaling
6240
6316
  # checkpoint_percentages: [1],
6241
6317
  # checkpoint_delay: 1,
6242
6318
  # skip_matching: false,
6319
+ # auto_rollback: false,
6320
+ # scale_in_protected_instances: "Refresh", # accepts Refresh, Ignore, Wait
6321
+ # standby_instances: "Terminate", # accepts Terminate, Ignore, Wait
6243
6322
  # },
6244
6323
  # })
6245
6324
  #
@@ -6631,24 +6710,25 @@ module Aws::AutoScaling
6631
6710
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html
6632
6711
  #
6633
6712
  # @option params [Integer] :default_instance_warmup
6634
- # The amount of time, in seconds, until a newly launched instance can
6635
- # contribute to the Amazon CloudWatch metrics. This delay lets an
6636
- # instance finish initializing before Amazon EC2 Auto Scaling aggregates
6637
- # instance metrics, resulting in more reliable usage data. Set this
6638
- # value equal to the amount of time that it takes for resource
6639
- # consumption to become stable after an instance reaches the `InService`
6640
- # state. For more information, see [Set the default instance warmup for
6641
- # an Auto Scaling group][1] in the *Amazon EC2 Auto Scaling User Guide*.
6642
- #
6643
- # To manage your warm-up settings at the group level, we recommend that
6644
- # you set the default instance warmup, *even if its value is set to 0
6645
- # seconds*. This also optimizes the performance of scaling policies that
6646
- # scale continuously, such as target tracking and step scaling policies.
6647
- #
6648
- # If you need to remove a value that you previously set, include the
6713
+ # The amount of time, in seconds, until a new instance is considered to
6714
+ # have finished initializing and resource consumption to become stable
6715
+ # after it enters the `InService` state.
6716
+ #
6717
+ # During an instance refresh, Amazon EC2 Auto Scaling waits for the
6718
+ # warm-up period after it replaces an instance before it moves on to
6719
+ # replacing the next instance. Amazon EC2 Auto Scaling also waits for
6720
+ # the warm-up period before aggregating the metrics for new instances
6721
+ # with existing instances in the Amazon CloudWatch metrics that are used
6722
+ # for scaling, resulting in more reliable usage data. For more
6723
+ # information, see [Set the default instance warmup for an Auto Scaling
6724
+ # group][1] in the *Amazon EC2 Auto Scaling User Guide*.
6725
+ #
6726
+ # To manage various warm-up settings at the group level, we recommend
6727
+ # that you set the default instance warmup, *even if it is set to 0
6728
+ # seconds*. To remove a value that you previously set, include the
6649
6729
  # property but specify `-1` for the value. However, we strongly
6650
6730
  # recommend keeping the default instance warmup enabled by specifying a
6651
- # minimum value of `0`.
6731
+ # value of `0` or other nominal value.
6652
6732
  #
6653
6733
  #
6654
6734
  #
@@ -6803,7 +6883,7 @@ module Aws::AutoScaling
6803
6883
  params: params,
6804
6884
  config: config)
6805
6885
  context[:gem_name] = 'aws-sdk-autoscaling'
6806
- context[:gem_version] = '1.85.0'
6886
+ context[:gem_version] = '1.86.0'
6807
6887
  Seahorse::Client::Request.new(handlers, context)
6808
6888
  end
6809
6889
 
@@ -43,6 +43,7 @@ module Aws::AutoScaling
43
43
  AttachLoadBalancersType = Shapes::StructureShape.new(name: 'AttachLoadBalancersType')
44
44
  AttachTrafficSourcesResultType = Shapes::StructureShape.new(name: 'AttachTrafficSourcesResultType')
45
45
  AttachTrafficSourcesType = Shapes::StructureShape.new(name: 'AttachTrafficSourcesType')
46
+ AutoRollback = Shapes::BooleanShape.new(name: 'AutoRollback')
46
47
  AutoScalingGroup = Shapes::StructureShape.new(name: 'AutoScalingGroup')
47
48
  AutoScalingGroupDesiredCapacity = Shapes::IntegerShape.new(name: 'AutoScalingGroupDesiredCapacity')
48
49
  AutoScalingGroupMaxSize = Shapes::IntegerShape.new(name: 'AutoScalingGroupMaxSize')
@@ -186,6 +187,7 @@ module Aws::AutoScaling
186
187
  InstancesToUpdate = Shapes::IntegerShape.new(name: 'InstancesToUpdate')
187
188
  IntPercent = Shapes::IntegerShape.new(name: 'IntPercent')
188
189
  InvalidNextToken = Shapes::StructureShape.new(name: 'InvalidNextToken')
190
+ IrreversibleInstanceRefreshFault = Shapes::StructureShape.new(name: 'IrreversibleInstanceRefreshFault')
189
191
  LaunchConfiguration = Shapes::StructureShape.new(name: 'LaunchConfiguration')
190
192
  LaunchConfigurationNameType = Shapes::StructureShape.new(name: 'LaunchConfigurationNameType')
191
193
  LaunchConfigurationNames = Shapes::ListShape.new(name: 'LaunchConfigurationNames')
@@ -310,6 +312,10 @@ module Aws::AutoScaling
310
312
  ResourceName = Shapes::StringShape.new(name: 'ResourceName')
311
313
  ReturnData = Shapes::BooleanShape.new(name: 'ReturnData')
312
314
  ReuseOnScaleIn = Shapes::BooleanShape.new(name: 'ReuseOnScaleIn')
315
+ RollbackDetails = Shapes::StructureShape.new(name: 'RollbackDetails')
316
+ RollbackInstanceRefreshAnswer = Shapes::StructureShape.new(name: 'RollbackInstanceRefreshAnswer')
317
+ RollbackInstanceRefreshType = Shapes::StructureShape.new(name: 'RollbackInstanceRefreshType')
318
+ ScaleInProtectedInstances = Shapes::StringShape.new(name: 'ScaleInProtectedInstances')
313
319
  ScalingActivityInProgressFault = Shapes::StructureShape.new(name: 'ScalingActivityInProgressFault')
314
320
  ScalingActivityStatusCode = Shapes::StringShape.new(name: 'ScalingActivityStatusCode')
315
321
  ScalingPolicies = Shapes::ListShape.new(name: 'ScalingPolicies')
@@ -333,6 +339,7 @@ module Aws::AutoScaling
333
339
  SkipMatching = Shapes::BooleanShape.new(name: 'SkipMatching')
334
340
  SpotInstancePools = Shapes::IntegerShape.new(name: 'SpotInstancePools')
335
341
  SpotPrice = Shapes::StringShape.new(name: 'SpotPrice')
342
+ StandbyInstances = Shapes::StringShape.new(name: 'StandbyInstances')
336
343
  StartInstanceRefreshAnswer = Shapes::StructureShape.new(name: 'StartInstanceRefreshAnswer')
337
344
  StartInstanceRefreshType = Shapes::StructureShape.new(name: 'StartInstanceRefreshType')
338
345
  StepAdjustment = Shapes::StructureShape.new(name: 'StepAdjustment')
@@ -929,6 +936,7 @@ module Aws::AutoScaling
929
936
  InstanceRefresh.add_member(:progress_details, Shapes::ShapeRef.new(shape: InstanceRefreshProgressDetails, location_name: "ProgressDetails"))
930
937
  InstanceRefresh.add_member(:preferences, Shapes::ShapeRef.new(shape: RefreshPreferences, location_name: "Preferences"))
931
938
  InstanceRefresh.add_member(:desired_configuration, Shapes::ShapeRef.new(shape: DesiredConfiguration, location_name: "DesiredConfiguration"))
939
+ InstanceRefresh.add_member(:rollback_details, Shapes::ShapeRef.new(shape: RollbackDetails, location_name: "RollbackDetails"))
932
940
  InstanceRefresh.struct_class = Types::InstanceRefresh
933
941
 
934
942
  InstanceRefreshIds.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen255)
@@ -991,6 +999,9 @@ module Aws::AutoScaling
991
999
  InvalidNextToken.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "message"))
992
1000
  InvalidNextToken.struct_class = Types::InvalidNextToken
993
1001
 
1002
+ IrreversibleInstanceRefreshFault.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "message"))
1003
+ IrreversibleInstanceRefreshFault.struct_class = Types::IrreversibleInstanceRefreshFault
1004
+
994
1005
  LaunchConfiguration.add_member(:launch_configuration_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "LaunchConfigurationName"))
995
1006
  LaunchConfiguration.add_member(:launch_configuration_arn, Shapes::ShapeRef.new(shape: ResourceName, location_name: "LaunchConfigurationARN"))
996
1007
  LaunchConfiguration.add_member(:image_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "ImageId"))
@@ -1298,6 +1309,9 @@ module Aws::AutoScaling
1298
1309
  RefreshPreferences.add_member(:checkpoint_percentages, Shapes::ShapeRef.new(shape: CheckpointPercentages, location_name: "CheckpointPercentages"))
1299
1310
  RefreshPreferences.add_member(:checkpoint_delay, Shapes::ShapeRef.new(shape: CheckpointDelay, location_name: "CheckpointDelay"))
1300
1311
  RefreshPreferences.add_member(:skip_matching, Shapes::ShapeRef.new(shape: SkipMatching, location_name: "SkipMatching"))
1312
+ RefreshPreferences.add_member(:auto_rollback, Shapes::ShapeRef.new(shape: AutoRollback, location_name: "AutoRollback"))
1313
+ RefreshPreferences.add_member(:scale_in_protected_instances, Shapes::ShapeRef.new(shape: ScaleInProtectedInstances, location_name: "ScaleInProtectedInstances"))
1314
+ RefreshPreferences.add_member(:standby_instances, Shapes::ShapeRef.new(shape: StandbyInstances, location_name: "StandbyInstances"))
1301
1315
  RefreshPreferences.struct_class = Types::RefreshPreferences
1302
1316
 
1303
1317
  ResourceContentionFault.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "message"))
@@ -1306,6 +1320,19 @@ module Aws::AutoScaling
1306
1320
  ResourceInUseFault.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "message"))
1307
1321
  ResourceInUseFault.struct_class = Types::ResourceInUseFault
1308
1322
 
1323
+ RollbackDetails.add_member(:rollback_reason, Shapes::ShapeRef.new(shape: XmlStringMaxLen1023, location_name: "RollbackReason"))
1324
+ RollbackDetails.add_member(:rollback_start_time, Shapes::ShapeRef.new(shape: TimestampType, location_name: "RollbackStartTime"))
1325
+ RollbackDetails.add_member(:percentage_complete_on_rollback, Shapes::ShapeRef.new(shape: IntPercent, location_name: "PercentageCompleteOnRollback"))
1326
+ RollbackDetails.add_member(:instances_to_update_on_rollback, Shapes::ShapeRef.new(shape: InstancesToUpdate, location_name: "InstancesToUpdateOnRollback"))
1327
+ RollbackDetails.add_member(:progress_details_on_rollback, Shapes::ShapeRef.new(shape: InstanceRefreshProgressDetails, location_name: "ProgressDetailsOnRollback"))
1328
+ RollbackDetails.struct_class = Types::RollbackDetails
1329
+
1330
+ RollbackInstanceRefreshAnswer.add_member(:instance_refresh_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "InstanceRefreshId"))
1331
+ RollbackInstanceRefreshAnswer.struct_class = Types::RollbackInstanceRefreshAnswer
1332
+
1333
+ RollbackInstanceRefreshType.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "AutoScalingGroupName"))
1334
+ RollbackInstanceRefreshType.struct_class = Types::RollbackInstanceRefreshType
1335
+
1309
1336
  ScalingActivityInProgressFault.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "message"))
1310
1337
  ScalingActivityInProgressFault.struct_class = Types::ScalingActivityInProgressFault
1311
1338
 
@@ -2138,6 +2165,18 @@ module Aws::AutoScaling
2138
2165
  o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
2139
2166
  end)
2140
2167
 
2168
+ api.add_operation(:rollback_instance_refresh, Seahorse::Model::Operation.new.tap do |o|
2169
+ o.name = "RollbackInstanceRefresh"
2170
+ o.http_method = "POST"
2171
+ o.http_request_uri = "/"
2172
+ o.input = Shapes::ShapeRef.new(shape: RollbackInstanceRefreshType)
2173
+ o.output = Shapes::ShapeRef.new(shape: RollbackInstanceRefreshAnswer)
2174
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededFault)
2175
+ o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
2176
+ o.errors << Shapes::ShapeRef.new(shape: ActiveInstanceRefreshNotFoundFault)
2177
+ o.errors << Shapes::ShapeRef.new(shape: IrreversibleInstanceRefreshFault)
2178
+ end)
2179
+
2141
2180
  api.add_operation(:set_desired_capacity, Seahorse::Model::Operation.new.tap do |o|
2142
2181
  o.name = "SetDesiredCapacity"
2143
2182
  o.http_method = "POST"
@@ -50,9 +50,6 @@ module Aws::AutoScaling
50
50
 
51
51
  def initialize(options = {})
52
52
  self[:region] = options[:region]
53
- if self[:region].nil?
54
- raise ArgumentError, "Missing required EndpointParameter: :region"
55
- end
56
53
  self[:use_dual_stack] = options[:use_dual_stack]
57
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
55
  if self[:use_dual_stack].nil?
@@ -14,39 +14,42 @@ module Aws::AutoScaling
14
14
  use_dual_stack = parameters.use_dual_stack
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint)
19
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
- raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
- end
22
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
- raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
- end
25
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
18
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
26
20
  end
27
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
- return Aws::Endpoints::Endpoint.new(url: "https://autoscaling-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
- end
31
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
32
23
  end
33
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
- if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
36
- return Aws::Endpoints::Endpoint.new(url: "https://autoscaling.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://autoscaling-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
37
31
  end
38
- return Aws::Endpoints::Endpoint.new(url: "https://autoscaling-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
39
33
  end
40
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
41
- end
42
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
43
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
44
- return Aws::Endpoints::Endpoint.new(url: "https://autoscaling.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
37
+ return Aws::Endpoints::Endpoint.new(url: "https://autoscaling.#{region}.amazonaws.com", headers: {}, properties: {})
38
+ end
39
+ return Aws::Endpoints::Endpoint.new(url: "https://autoscaling-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
40
+ end
41
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
42
+ end
43
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
44
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
45
+ return Aws::Endpoints::Endpoint.new(url: "https://autoscaling.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
46
+ end
47
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
48
  end
46
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
49
+ return Aws::Endpoints::Endpoint.new(url: "https://autoscaling.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
47
50
  end
48
- return Aws::Endpoints::Endpoint.new(url: "https://autoscaling.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
49
51
  end
52
+ raise ArgumentError, "Invalid Configuration: Missing Region"
50
53
  raise ArgumentError, 'No endpoint could be resolved'
51
54
 
52
55
  end