aws-sdk-autoscaling 1.95.0 → 1.96.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: 8f7101c25795cc4d44eebcd18de78dbf0958d49e159ee41ceafe2b70420cac63
4
- data.tar.gz: 87c91e27553e07ee18b76df846fc514a487d0d205a043987aa940f77008a132d
3
+ metadata.gz: 676b2383ae209c855ce2a5e7d2b87ca9c34e30de771c781a604374fb2258f383
4
+ data.tar.gz: 585d1e8e238c326a6eea9d22d04fef80c05fc4046d007245d44f52d9c41b4bd7
5
5
  SHA512:
6
- metadata.gz: 4b126edf79b138b29a29dcf25f15bbc30613307aed1e98efa3309f942df8d302481f377dae780bf7dce8079dc641ea3cbe72b9f3f6e83457625312ff222917a8
7
- data.tar.gz: 3675ba45cc4c825e86b96fa23347252450c866c744217b107b06051c4664e542212254e1c4fb3d146a7de6083fe1a69f401bb9dbba3d0348ab28221b611bf397
6
+ metadata.gz: 91a658aa26d95f697890c82b51c16c02ca04bfdfbf3243b9366490cf362cc0b8a9ee23ba9979133c152aae02862b0441754d164a3e0a09dc78c11faabae719c6
7
+ data.tar.gz: b3dadc542249cd06b0de3baefb1ce5601171e1786aace132c3068437d251ba947dc6d335a0aef9f48c1da65886c0d7596144b6a0c0c63b5adb959af982b99d55
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.96.0 (2023-07-31)
5
+ ------------------
6
+
7
+ * Feature - You can now configure an instance refresh to set its status to 'failed' when it detects that a specified CloudWatch alarm has gone into the ALARM state. You can also choose to roll back the instance refresh automatically when the alarm threshold is met.
8
+
4
9
  1.95.0 (2023-07-27)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.95.0
1
+ 1.96.0
@@ -1229,84 +1229,6 @@ module Aws::AutoScaling
1229
1229
  #
1230
1230
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1231
1231
  #
1232
- #
1233
- # @example Example: To create an Auto Scaling group
1234
- #
1235
- # # This example creates an Auto Scaling group.
1236
- #
1237
- # resp = client.create_auto_scaling_group({
1238
- # auto_scaling_group_name: "my-auto-scaling-group",
1239
- # launch_template: {
1240
- # launch_template_name: "my-template-for-auto-scaling",
1241
- # version: "$Latest",
1242
- # },
1243
- # max_instance_lifetime: 2592000,
1244
- # max_size: 3,
1245
- # min_size: 1,
1246
- # vpc_zone_identifier: "subnet-057fa0918fEXAMPLE",
1247
- # })
1248
- #
1249
- # @example Example: To create an Auto Scaling group with an attached target group
1250
- #
1251
- # # This example creates an Auto Scaling group and attaches the specified target group.
1252
- #
1253
- # resp = client.create_auto_scaling_group({
1254
- # auto_scaling_group_name: "my-auto-scaling-group",
1255
- # health_check_grace_period: 300,
1256
- # health_check_type: "ELB",
1257
- # launch_template: {
1258
- # launch_template_name: "my-template-for-auto-scaling",
1259
- # version: "$Latest",
1260
- # },
1261
- # max_size: 3,
1262
- # min_size: 1,
1263
- # target_group_arns: [
1264
- # "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
1265
- # ],
1266
- # vpc_zone_identifier: "subnet-057fa0918fEXAMPLE, subnet-610acd08EXAMPLE",
1267
- # })
1268
- #
1269
- # @example Example: To create an Auto Scaling group with a mixed instances policy
1270
- #
1271
- # # This example creates an Auto Scaling group with a mixed instances policy. It specifies the c5.large, c5a.large, and
1272
- # # c6g.large instance types and defines a different launch template for the c6g.large instance type.
1273
- #
1274
- # resp = client.create_auto_scaling_group({
1275
- # auto_scaling_group_name: "my-asg",
1276
- # desired_capacity: 3,
1277
- # max_size: 5,
1278
- # min_size: 1,
1279
- # mixed_instances_policy: {
1280
- # instances_distribution: {
1281
- # on_demand_base_capacity: 1,
1282
- # on_demand_percentage_above_base_capacity: 50,
1283
- # spot_allocation_strategy: "capacity-optimized",
1284
- # },
1285
- # launch_template: {
1286
- # launch_template_specification: {
1287
- # launch_template_name: "my-launch-template-for-x86",
1288
- # version: "$Latest",
1289
- # },
1290
- # overrides: [
1291
- # {
1292
- # instance_type: "c6g.large",
1293
- # launch_template_specification: {
1294
- # launch_template_name: "my-launch-template-for-arm",
1295
- # version: "$Latest",
1296
- # },
1297
- # },
1298
- # {
1299
- # instance_type: "c5.large",
1300
- # },
1301
- # {
1302
- # instance_type: "c5a.large",
1303
- # },
1304
- # ],
1305
- # },
1306
- # },
1307
- # vpc_zone_identifier: "subnet-057fa0918fEXAMPLE, subnet-610acd08EXAMPLE",
1308
- # })
1309
- #
1310
1232
  # @example Request syntax with placeholder values
1311
1233
  #
1312
1234
  # resp = client.create_auto_scaling_group({
@@ -2747,8 +2669,13 @@ module Aws::AutoScaling
2747
2669
  # instances_to_update: 0,
2748
2670
  # percentage_complete: 50,
2749
2671
  # preferences: {
2672
+ # alarm_specification: {
2673
+ # alarms: [
2674
+ # "my-alarm",
2675
+ # ],
2676
+ # },
2750
2677
  # auto_rollback: true,
2751
- # instance_warmup: 60,
2678
+ # instance_warmup: 200,
2752
2679
  # min_healthy_percentage: 90,
2753
2680
  # scale_in_protected_instances: "Ignore",
2754
2681
  # skip_matching: false,
@@ -2765,8 +2692,13 @@ module Aws::AutoScaling
2765
2692
  # instances_to_update: 0,
2766
2693
  # percentage_complete: 100,
2767
2694
  # preferences: {
2695
+ # alarm_specification: {
2696
+ # alarms: [
2697
+ # "my-alarm",
2698
+ # ],
2699
+ # },
2768
2700
  # auto_rollback: true,
2769
- # instance_warmup: 60,
2701
+ # instance_warmup: 200,
2770
2702
  # min_healthy_percentage: 90,
2771
2703
  # scale_in_protected_instances: "Ignore",
2772
2704
  # skip_matching: false,
@@ -2811,6 +2743,8 @@ module Aws::AutoScaling
2811
2743
  # resp.instance_refreshes[0].preferences.auto_rollback #=> Boolean
2812
2744
  # resp.instance_refreshes[0].preferences.scale_in_protected_instances #=> String, one of "Refresh", "Ignore", "Wait"
2813
2745
  # resp.instance_refreshes[0].preferences.standby_instances #=> String, one of "Terminate", "Ignore", "Wait"
2746
+ # resp.instance_refreshes[0].preferences.alarm_specification.alarms #=> Array
2747
+ # resp.instance_refreshes[0].preferences.alarm_specification.alarms[0] #=> String
2814
2748
  # resp.instance_refreshes[0].desired_configuration.launch_template.launch_template_id #=> String
2815
2749
  # resp.instance_refreshes[0].desired_configuration.launch_template.launch_template_name #=> String
2816
2750
  # resp.instance_refreshes[0].desired_configuration.launch_template.version #=> String
@@ -6361,6 +6295,8 @@ module Aws::AutoScaling
6361
6295
  #
6362
6296
  # * Checkpoints
6363
6297
  #
6298
+ # * CloudWatch alarms
6299
+ #
6364
6300
  # * Skip matching
6365
6301
  #
6366
6302
  # @return [Types::StartInstanceRefreshAnswer] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -6381,9 +6317,14 @@ module Aws::AutoScaling
6381
6317
  # },
6382
6318
  # },
6383
6319
  # preferences: {
6384
- # instance_warmup: 400,
6320
+ # alarm_specification: {
6321
+ # alarms: [
6322
+ # "my-alarm",
6323
+ # ],
6324
+ # },
6325
+ # auto_rollback: true,
6326
+ # instance_warmup: 200,
6385
6327
  # min_healthy_percentage: 90,
6386
- # skip_matching: true,
6387
6328
  # },
6388
6329
  # })
6389
6330
  #
@@ -6493,6 +6434,9 @@ module Aws::AutoScaling
6493
6434
  # auto_rollback: false,
6494
6435
  # scale_in_protected_instances: "Refresh", # accepts Refresh, Ignore, Wait
6495
6436
  # standby_instances: "Terminate", # accepts Terminate, Ignore, Wait
6437
+ # alarm_specification: {
6438
+ # alarms: ["XmlStringMaxLen255"],
6439
+ # },
6496
6440
  # },
6497
6441
  # })
6498
6442
  #
@@ -7063,7 +7007,7 @@ module Aws::AutoScaling
7063
7007
  params: params,
7064
7008
  config: config)
7065
7009
  context[:gem_name] = 'aws-sdk-autoscaling'
7066
- context[:gem_version] = '1.95.0'
7010
+ context[:gem_version] = '1.96.0'
7067
7011
  Seahorse::Client::Request.new(handlers, context)
7068
7012
  end
7069
7013
 
@@ -30,6 +30,8 @@ module Aws::AutoScaling
30
30
  AdjustmentType = Shapes::StructureShape.new(name: 'AdjustmentType')
31
31
  AdjustmentTypes = Shapes::ListShape.new(name: 'AdjustmentTypes')
32
32
  Alarm = Shapes::StructureShape.new(name: 'Alarm')
33
+ AlarmList = Shapes::ListShape.new(name: 'AlarmList')
34
+ AlarmSpecification = Shapes::StructureShape.new(name: 'AlarmSpecification')
33
35
  Alarms = Shapes::ListShape.new(name: 'Alarms')
34
36
  AllowedInstanceType = Shapes::StringShape.new(name: 'AllowedInstanceType')
35
37
  AllowedInstanceTypes = Shapes::ListShape.new(name: 'AllowedInstanceTypes')
@@ -438,6 +440,11 @@ module Aws::AutoScaling
438
440
  Alarm.add_member(:alarm_arn, Shapes::ShapeRef.new(shape: ResourceName, location_name: "AlarmARN"))
439
441
  Alarm.struct_class = Types::Alarm
440
442
 
443
+ AlarmList.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen255)
444
+
445
+ AlarmSpecification.add_member(:alarms, Shapes::ShapeRef.new(shape: AlarmList, location_name: "Alarms"))
446
+ AlarmSpecification.struct_class = Types::AlarmSpecification
447
+
441
448
  Alarms.member = Shapes::ShapeRef.new(shape: Alarm)
442
449
 
443
450
  AllowedInstanceTypes.member = Shapes::ShapeRef.new(shape: AllowedInstanceType)
@@ -1312,6 +1319,7 @@ module Aws::AutoScaling
1312
1319
  RefreshPreferences.add_member(:auto_rollback, Shapes::ShapeRef.new(shape: AutoRollback, location_name: "AutoRollback"))
1313
1320
  RefreshPreferences.add_member(:scale_in_protected_instances, Shapes::ShapeRef.new(shape: ScaleInProtectedInstances, location_name: "ScaleInProtectedInstances"))
1314
1321
  RefreshPreferences.add_member(:standby_instances, Shapes::ShapeRef.new(shape: StandbyInstances, location_name: "StandbyInstances"))
1322
+ RefreshPreferences.add_member(:alarm_specification, Shapes::ShapeRef.new(shape: AlarmSpecification, location_name: "AlarmSpecification"))
1315
1323
  RefreshPreferences.struct_class = Types::RefreshPreferences
1316
1324
 
1317
1325
  ResourceContentionFault.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "message"))
@@ -206,6 +206,22 @@ module Aws::AutoScaling
206
206
  include Aws::Structure
207
207
  end
208
208
 
209
+ # Specifies the CloudWatch alarm specification to use in an instance
210
+ # refresh.
211
+ #
212
+ # @!attribute [rw] alarms
213
+ # The names of one or more CloudWatch alarms to monitor for the
214
+ # instance refresh.
215
+ # @return [Array<String>]
216
+ #
217
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AlarmSpecification AWS API Documentation
218
+ #
219
+ class AlarmSpecification < Struct.new(
220
+ :alarms)
221
+ SENSITIVE = []
222
+ include Aws::Structure
223
+ end
224
+
209
225
  # You already have an Auto Scaling group or launch configuration with
210
226
  # this name.
211
227
  #
@@ -6242,8 +6258,8 @@ module Aws::AutoScaling
6242
6258
  #
6243
6259
  # @!attribute [rw] auto_rollback
6244
6260
  # (Optional) Indicates whether to roll back the Auto Scaling group to
6245
- # its previous configuration if the instance refresh fails. The
6246
- # default is `false`.
6261
+ # its previous configuration if the instance refresh fails or a
6262
+ # CloudWatch alarm threshold is met. The default is `false`.
6247
6263
  #
6248
6264
  # A rollback is not supported in the following situations:
6249
6265
  #
@@ -6256,6 +6272,13 @@ module Aws::AutoScaling
6256
6272
  #
6257
6273
  # * The Auto Scaling group uses the launch template's `$Latest` or
6258
6274
  # `$Default` version.
6275
+ #
6276
+ # For more information, see [Undo changes with a rollback][1] in the
6277
+ # *Amazon EC2 Auto Scaling User Guide*.
6278
+ #
6279
+ #
6280
+ #
6281
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/instance-refresh-rollback.html
6259
6282
  # @return [Boolean]
6260
6283
  #
6261
6284
  # @!attribute [rw] scale_in_protected_instances
@@ -6304,6 +6327,12 @@ module Aws::AutoScaling
6304
6327
  # instances to service. Otherwise, the instance refresh will fail.
6305
6328
  # @return [String]
6306
6329
  #
6330
+ # @!attribute [rw] alarm_specification
6331
+ # (Optional) The CloudWatch alarm specification. CloudWatch alarms can
6332
+ # be used to identify any issues and fail the operation if an alarm
6333
+ # threshold is met.
6334
+ # @return [Types::AlarmSpecification]
6335
+ #
6307
6336
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RefreshPreferences AWS API Documentation
6308
6337
  #
6309
6338
  class RefreshPreferences < Struct.new(
@@ -6314,7 +6343,8 @@ module Aws::AutoScaling
6314
6343
  :skip_matching,
6315
6344
  :auto_rollback,
6316
6345
  :scale_in_protected_instances,
6317
- :standby_instances)
6346
+ :standby_instances,
6347
+ :alarm_specification)
6318
6348
  SENSITIVE = []
6319
6349
  include Aws::Structure
6320
6350
  end
@@ -6913,6 +6943,8 @@ module Aws::AutoScaling
6913
6943
  #
6914
6944
  # * Checkpoints
6915
6945
  #
6946
+ # * CloudWatch alarms
6947
+ #
6916
6948
  # * Skip matching
6917
6949
  # @return [Types::RefreshPreferences]
6918
6950
  #
@@ -63,6 +63,6 @@ require_relative 'aws-sdk-autoscaling/customizations'
63
63
  # @!group service
64
64
  module Aws::AutoScaling
65
65
 
66
- GEM_VERSION = '1.95.0'
66
+ GEM_VERSION = '1.96.0'
67
67
 
68
68
  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.95.0
4
+ version: 1.96.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: 2023-07-27 00:00:00.000000000 Z
11
+ date: 2023-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core