aws-sdk-autoscaling 1.75.0 → 1.78.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: 1c1bf59e29d6c72cdb7a74820c0fa65e7bb478f3180a0a10bc29d7207d078d60
4
- data.tar.gz: 7ecad1c25faa0c2bdff6a021d66e9b01d5e117bf2d9a17085137eebd51ca2ce5
3
+ metadata.gz: 1297d3ab96d99067b36582bccd3fc98b407006a10892b0e8a7480666e02d1ec8
4
+ data.tar.gz: 8c43e827ad2ca1a5ec99bec764a5631c939528dce67dd9db8418d64c9b02ec4c
5
5
  SHA512:
6
- metadata.gz: d6fcf1208a1b9f50100cc5809e5792d782ecc9f168080d59de5a706dc76c4671fcc5e947729826de5ec188aa948394293d832b6ed922b834dc6bf1741d3a8eb0
7
- data.tar.gz: e6de604f408caa06806359bd71aeb5a434f370cc022fd5d49c30f97768d87fabbe4adcfd3ceeeee05c9e1d6c0bd462e1645cd7d55bc1e1dfc8c609a032968fc3
6
+ metadata.gz: 852f0d4766c849e434778eb7b965800de831c059c8e9a83db11aa30774db9a68bfb8ace9e9e89ded658249486b40a050a9f8af139a0346d454be1705bbac28c1
7
+ data.tar.gz: 2e65494c870d2e6b1deb1f97f7745bac6dc602a026eb040fdaffe74d7d848b2577b16a05bdaff66cceda7fa39249f6eadd3fb475fdcfc86e9310169e229e02d5
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.78.0 (2022-02-24)
5
+ ------------------
6
+
7
+ * Feature - You can now hibernate instances in a warm pool to stop instances without deleting their RAM contents. You can now also return instances to the warm pool on scale in, instead of always terminating capacity that you will need later.
8
+
9
+ 1.77.0 (2022-02-03)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.76.0 (2021-12-21)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
4
19
  1.75.0 (2021-11-30)
5
20
  ------------------
6
21
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.75.0
1
+ 1.78.0
@@ -1239,7 +1239,7 @@ module Aws::AutoScaling
1239
1239
  # The default value is `0`. For more information, see [Health check
1240
1240
  # grace period][1] in the *Amazon EC2 Auto Scaling User Guide*.
1241
1241
  #
1242
- # Conditional: Required if you are adding an `ELB` health check.
1242
+ # Required if you are adding an `ELB` health check.
1243
1243
  #
1244
1244
  #
1245
1245
  #
@@ -27,6 +27,9 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
+ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
+ require 'aws-sdk-core/plugins/defaults_mode.rb'
32
+ require 'aws-sdk-core/plugins/recursion_detection.rb'
30
33
  require 'aws-sdk-core/plugins/signature_v4.rb'
31
34
  require 'aws-sdk-core/plugins/protocols/query.rb'
32
35
 
@@ -73,6 +76,9 @@ module Aws::AutoScaling
73
76
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
74
77
  add_plugin(Aws::Plugins::TransferEncoding)
75
78
  add_plugin(Aws::Plugins::HttpChecksum)
79
+ add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
+ add_plugin(Aws::Plugins::DefaultsMode)
81
+ add_plugin(Aws::Plugins::RecursionDetection)
76
82
  add_plugin(Aws::Plugins::SignatureV4)
77
83
  add_plugin(Aws::Plugins::Protocols::Query)
78
84
 
@@ -175,6 +181,10 @@ module Aws::AutoScaling
175
181
  # Used only in `standard` and adaptive retry modes. Specifies whether to apply
176
182
  # a clock skew correction and retry requests with skewed client clocks.
177
183
  #
184
+ # @option options [String] :defaults_mode ("legacy")
185
+ # See {Aws::DefaultsModeConfiguration} for a list of the
186
+ # accepted modes and the configuration defaults that are included.
187
+ #
178
188
  # @option options [Boolean] :disable_host_prefix_injection (false)
179
189
  # Set to true to disable SDK automatically adding host prefix
180
190
  # to default service endpoint when available.
@@ -297,7 +307,7 @@ module Aws::AutoScaling
297
307
  # seconds to wait when opening a HTTP session before raising a
298
308
  # `Timeout::Error`.
299
309
  #
300
- # @option options [Integer] :http_read_timeout (60) The default
310
+ # @option options [Float] :http_read_timeout (60) The default
301
311
  # number of seconds to wait for response data. This value can
302
312
  # safely be set per-request on the session.
303
313
  #
@@ -313,6 +323,9 @@ module Aws::AutoScaling
313
323
  # disables this behaviour. This value can safely be set per
314
324
  # request on the session.
315
325
  #
326
+ # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
327
+ # in seconds.
328
+ #
316
329
  # @option options [Boolean] :http_wire_trace (false) When `true`,
317
330
  # HTTP debug output will be sent to the `:logger`.
318
331
  #
@@ -667,22 +680,26 @@ module Aws::AutoScaling
667
680
  # This step is a part of the procedure for adding a lifecycle hook to an
668
681
  # Auto Scaling group:
669
682
  #
670
- # 1. (Optional) Create a Lambda function and a rule that allows Amazon
671
- # EventBridge to invoke your Lambda function when Amazon EC2 Auto
672
- # Scaling launches or terminates instances.
683
+ # 1. (Optional) Create a launch template or launch configuration with a
684
+ # user data script that runs while an instance is in a wait state
685
+ # due to a lifecycle hook.
673
686
  #
674
- # 2. (Optional) Create a notification target and an IAM role. The
687
+ # 2. (Optional) Create a Lambda function and a rule that allows Amazon
688
+ # EventBridge to invoke your Lambda function when an instance is put
689
+ # into a wait state due to a lifecycle hook.
690
+ #
691
+ # 3. (Optional) Create a notification target and an IAM role. The
675
692
  # target can be either an Amazon SQS queue or an Amazon SNS topic.
676
693
  # The role allows Amazon EC2 Auto Scaling to publish lifecycle
677
694
  # notifications to the target.
678
695
  #
679
- # 3. Create the lifecycle hook. Specify whether the hook is used when
696
+ # 4. Create the lifecycle hook. Specify whether the hook is used when
680
697
  # the instances launch or terminate.
681
698
  #
682
- # 4. If you need more time, record the lifecycle action heartbeat to
683
- # keep the instance in a pending state.
699
+ # 5. If you need more time, record the lifecycle action heartbeat to
700
+ # keep the instance in a wait state.
684
701
  #
685
- # 5. **If you finish before the timeout period ends, send a callback by
702
+ # 6. **If you finish before the timeout period ends, send a callback by
686
703
  # using the CompleteLifecycleAction API call.**
687
704
  #
688
705
  # For more information, see [Amazon EC2 Auto Scaling lifecycle hooks][1]
@@ -910,7 +927,7 @@ module Aws::AutoScaling
910
927
  # The default value is `0`. For more information, see [Health check
911
928
  # grace period][1] in the *Amazon EC2 Auto Scaling User Guide*.
912
929
  #
913
- # Conditional: Required if you are adding an `ELB` health check.
930
+ # Required if you are adding an `ELB` health check.
914
931
  #
915
932
  #
916
933
  #
@@ -1044,7 +1061,7 @@ module Aws::AutoScaling
1044
1061
  # resp = client.create_auto_scaling_group({
1045
1062
  # auto_scaling_group_name: "my-auto-scaling-group",
1046
1063
  # launch_template: {
1047
- # launch_template_id: "lt-0a20c965061f64abc",
1064
+ # launch_template_name: "my-template-for-auto-scaling",
1048
1065
  # version: "$Latest",
1049
1066
  # },
1050
1067
  # max_instance_lifetime: 2592000,
@@ -1062,8 +1079,8 @@ module Aws::AutoScaling
1062
1079
  # health_check_grace_period: 300,
1063
1080
  # health_check_type: "ELB",
1064
1081
  # launch_template: {
1065
- # launch_template_id: "lt-0a20c965061f64abc",
1066
- # version: "$Default",
1082
+ # launch_template_name: "my-template-for-auto-scaling",
1083
+ # version: "$Latest",
1067
1084
  # },
1068
1085
  # max_size: 3,
1069
1086
  # min_size: 1,
@@ -2273,7 +2290,7 @@ module Aws::AutoScaling
2273
2290
  # resp.auto_scaling_groups[0].instances[0].instance_id #=> String
2274
2291
  # resp.auto_scaling_groups[0].instances[0].instance_type #=> String
2275
2292
  # resp.auto_scaling_groups[0].instances[0].availability_zone #=> String
2276
- # resp.auto_scaling_groups[0].instances[0].lifecycle_state #=> String, one of "Pending", "Pending:Wait", "Pending:Proceed", "Quarantined", "InService", "Terminating", "Terminating:Wait", "Terminating:Proceed", "Terminated", "Detaching", "Detached", "EnteringStandby", "Standby", "Warmed:Pending", "Warmed:Pending:Wait", "Warmed:Pending:Proceed", "Warmed:Terminating", "Warmed:Terminating:Wait", "Warmed:Terminating:Proceed", "Warmed:Terminated", "Warmed:Stopped", "Warmed:Running"
2293
+ # resp.auto_scaling_groups[0].instances[0].lifecycle_state #=> String, one of "Pending", "Pending:Wait", "Pending:Proceed", "Quarantined", "InService", "Terminating", "Terminating:Wait", "Terminating:Proceed", "Terminated", "Detaching", "Detached", "EnteringStandby", "Standby", "Warmed:Pending", "Warmed:Pending:Wait", "Warmed:Pending:Proceed", "Warmed:Terminating", "Warmed:Terminating:Wait", "Warmed:Terminating:Proceed", "Warmed:Terminated", "Warmed:Stopped", "Warmed:Running", "Warmed:Hibernated"
2277
2294
  # resp.auto_scaling_groups[0].instances[0].health_status #=> String
2278
2295
  # resp.auto_scaling_groups[0].instances[0].launch_configuration_name #=> String
2279
2296
  # resp.auto_scaling_groups[0].instances[0].launch_template.launch_template_id #=> String
@@ -2305,8 +2322,9 @@ module Aws::AutoScaling
2305
2322
  # resp.auto_scaling_groups[0].capacity_rebalance #=> Boolean
2306
2323
  # resp.auto_scaling_groups[0].warm_pool_configuration.max_group_prepared_capacity #=> Integer
2307
2324
  # resp.auto_scaling_groups[0].warm_pool_configuration.min_size #=> Integer
2308
- # resp.auto_scaling_groups[0].warm_pool_configuration.pool_state #=> String, one of "Stopped", "Running"
2325
+ # resp.auto_scaling_groups[0].warm_pool_configuration.pool_state #=> String, one of "Stopped", "Running", "Hibernated"
2309
2326
  # resp.auto_scaling_groups[0].warm_pool_configuration.status #=> String, one of "PendingDelete"
2327
+ # resp.auto_scaling_groups[0].warm_pool_configuration.instance_reuse_policy.reuse_on_scale_in #=> Boolean
2310
2328
  # resp.auto_scaling_groups[0].warm_pool_size #=> Integer
2311
2329
  # resp.auto_scaling_groups[0].context #=> String
2312
2330
  # resp.auto_scaling_groups[0].desired_capacity_type #=> String
@@ -3820,13 +3838,14 @@ module Aws::AutoScaling
3820
3838
  #
3821
3839
  # resp.warm_pool_configuration.max_group_prepared_capacity #=> Integer
3822
3840
  # resp.warm_pool_configuration.min_size #=> Integer
3823
- # resp.warm_pool_configuration.pool_state #=> String, one of "Stopped", "Running"
3841
+ # resp.warm_pool_configuration.pool_state #=> String, one of "Stopped", "Running", "Hibernated"
3824
3842
  # resp.warm_pool_configuration.status #=> String, one of "PendingDelete"
3843
+ # resp.warm_pool_configuration.instance_reuse_policy.reuse_on_scale_in #=> Boolean
3825
3844
  # resp.instances #=> Array
3826
3845
  # resp.instances[0].instance_id #=> String
3827
3846
  # resp.instances[0].instance_type #=> String
3828
3847
  # resp.instances[0].availability_zone #=> String
3829
- # resp.instances[0].lifecycle_state #=> String, one of "Pending", "Pending:Wait", "Pending:Proceed", "Quarantined", "InService", "Terminating", "Terminating:Wait", "Terminating:Proceed", "Terminated", "Detaching", "Detached", "EnteringStandby", "Standby", "Warmed:Pending", "Warmed:Pending:Wait", "Warmed:Pending:Proceed", "Warmed:Terminating", "Warmed:Terminating:Wait", "Warmed:Terminating:Proceed", "Warmed:Terminated", "Warmed:Stopped", "Warmed:Running"
3848
+ # resp.instances[0].lifecycle_state #=> String, one of "Pending", "Pending:Wait", "Pending:Proceed", "Quarantined", "InService", "Terminating", "Terminating:Wait", "Terminating:Proceed", "Terminated", "Detaching", "Detached", "EnteringStandby", "Standby", "Warmed:Pending", "Warmed:Pending:Wait", "Warmed:Pending:Proceed", "Warmed:Terminating", "Warmed:Terminating:Wait", "Warmed:Terminating:Proceed", "Warmed:Terminated", "Warmed:Stopped", "Warmed:Running", "Warmed:Hibernated"
3830
3849
  # resp.instances[0].health_status #=> String
3831
3850
  # resp.instances[0].launch_configuration_name #=> String
3832
3851
  # resp.instances[0].launch_template.launch_template_id #=> String
@@ -4577,30 +4596,34 @@ module Aws::AutoScaling
4577
4596
  # Creates or updates a lifecycle hook for the specified Auto Scaling
4578
4597
  # group.
4579
4598
  #
4580
- # A lifecycle hook enables an Auto Scaling group to be aware of events
4581
- # in the Auto Scaling instance lifecycle, and then perform a custom
4582
- # action when the corresponding lifecycle event occurs.
4599
+ # Lifecycle hooks let you create solutions that are aware of events in
4600
+ # the Auto Scaling instance lifecycle, and then perform a custom action
4601
+ # on instances when the corresponding lifecycle event occurs.
4583
4602
  #
4584
4603
  # This step is a part of the procedure for adding a lifecycle hook to an
4585
4604
  # Auto Scaling group:
4586
4605
  #
4587
- # 1. (Optional) Create a Lambda function and a rule that allows Amazon
4588
- # EventBridge to invoke your Lambda function when Amazon EC2 Auto
4589
- # Scaling launches or terminates instances.
4606
+ # 1. (Optional) Create a launch template or launch configuration with a
4607
+ # user data script that runs while an instance is in a wait state
4608
+ # due to a lifecycle hook.
4590
4609
  #
4591
- # 2. (Optional) Create a notification target and an IAM role. The
4610
+ # 2. (Optional) Create a Lambda function and a rule that allows Amazon
4611
+ # EventBridge to invoke your Lambda function when an instance is put
4612
+ # into a wait state due to a lifecycle hook.
4613
+ #
4614
+ # 3. (Optional) Create a notification target and an IAM role. The
4592
4615
  # target can be either an Amazon SQS queue or an Amazon SNS topic.
4593
4616
  # The role allows Amazon EC2 Auto Scaling to publish lifecycle
4594
4617
  # notifications to the target.
4595
4618
  #
4596
- # 3. **Create the lifecycle hook. Specify whether the hook is used when
4619
+ # 4. **Create the lifecycle hook. Specify whether the hook is used when
4597
4620
  # the instances launch or terminate.**
4598
4621
  #
4599
- # 4. If you need more time, record the lifecycle action heartbeat to
4600
- # keep the instance in a pending state using the
4622
+ # 5. If you need more time, record the lifecycle action heartbeat to
4623
+ # keep the instance in a wait state using the
4601
4624
  # RecordLifecycleActionHeartbeat API call.
4602
4625
  #
4603
- # 5. If you finish before the timeout period ends, send a callback by
4626
+ # 6. If you finish before the timeout period ends, send a callback by
4604
4627
  # using the CompleteLifecycleAction API call.
4605
4628
  #
4606
4629
  # For more information, see [Amazon EC2 Auto Scaling lifecycle hooks][1]
@@ -4637,11 +4660,11 @@ module Aws::AutoScaling
4637
4660
  #
4638
4661
  # @option params [String] :role_arn
4639
4662
  # The ARN of the IAM role that allows the Auto Scaling group to publish
4640
- # to the specified notification target, for example, an Amazon SNS topic
4641
- # or an Amazon SQS queue.
4663
+ # to the specified notification target.
4642
4664
  #
4643
- # Required for new lifecycle hooks, but optional when updating existing
4644
- # hooks.
4665
+ # Valid only if the notification target is an Amazon SNS topic or an
4666
+ # Amazon SQS queue. Required for new lifecycle hooks, but optional when
4667
+ # updating existing hooks.
4645
4668
  #
4646
4669
  # @option params [String] :notification_target_arn
4647
4670
  # The ARN of the notification target that Amazon EC2 Auto Scaling uses
@@ -4682,16 +4705,16 @@ module Aws::AutoScaling
4682
4705
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
4683
4706
  #
4684
4707
  #
4685
- # @example Example: To create a lifecycle hook
4708
+ # @example Example: To create a launch lifecycle hook
4686
4709
  #
4687
- # # This example creates a lifecycle hook.
4710
+ # # This example creates a lifecycle hook for instance launch.
4688
4711
  #
4689
4712
  # resp = client.put_lifecycle_hook({
4690
4713
  # auto_scaling_group_name: "my-auto-scaling-group",
4691
- # lifecycle_hook_name: "my-lifecycle-hook",
4714
+ # default_result: "CONTINUE",
4715
+ # heartbeat_timeout: 300,
4716
+ # lifecycle_hook_name: "my-launch-lifecycle-hook",
4692
4717
  # lifecycle_transition: "autoscaling:EC2_INSTANCE_LAUNCHING",
4693
- # notification_target_arn: "arn:aws:sns:us-west-2:123456789012:my-sns-topic --role-arn",
4694
- # role_arn: "arn:aws:iam::123456789012:role/my-auto-scaling-role",
4695
4718
  # })
4696
4719
  #
4697
4720
  # @example Request syntax with placeholder values
@@ -5325,17 +5348,25 @@ module Aws::AutoScaling
5325
5348
  # Sets the instance state to transition to after the lifecycle actions
5326
5349
  # are complete. Default is `Stopped`.
5327
5350
  #
5351
+ # @option params [Types::InstanceReusePolicy] :instance_reuse_policy
5352
+ # Indicates whether instances in the Auto Scaling group can be returned
5353
+ # to the warm pool on scale in. The default is to terminate instances in
5354
+ # the Auto Scaling group when the group scales in.
5355
+ #
5328
5356
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
5329
5357
  #
5330
5358
  #
5331
- # @example Example: To add a warm pool to an Auto Scaling group
5359
+ # @example Example: To create a warm pool for an Auto Scaling group
5332
5360
  #
5333
- # # This example adds a warm pool to the specified Auto Scaling group.
5361
+ # # This example creates a warm pool for the specified Auto Scaling group.
5334
5362
  #
5335
5363
  # resp = client.put_warm_pool({
5336
5364
  # auto_scaling_group_name: "my-auto-scaling-group",
5365
+ # instance_reuse_policy: {
5366
+ # reuse_on_scale_in: true,
5367
+ # },
5337
5368
  # min_size: 30,
5338
- # pool_state: "Stopped",
5369
+ # pool_state: "Hibernated",
5339
5370
  # })
5340
5371
  #
5341
5372
  # @example Request syntax with placeholder values
@@ -5344,7 +5375,10 @@ module Aws::AutoScaling
5344
5375
  # auto_scaling_group_name: "XmlStringMaxLen255", # required
5345
5376
  # max_group_prepared_capacity: 1,
5346
5377
  # min_size: 1,
5347
- # pool_state: "Stopped", # accepts Stopped, Running
5378
+ # pool_state: "Stopped", # accepts Stopped, Running, Hibernated
5379
+ # instance_reuse_policy: {
5380
+ # reuse_on_scale_in: false,
5381
+ # },
5348
5382
  # })
5349
5383
  #
5350
5384
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutWarmPool AWS API Documentation
@@ -5363,22 +5397,26 @@ module Aws::AutoScaling
5363
5397
  # This step is a part of the procedure for adding a lifecycle hook to an
5364
5398
  # Auto Scaling group:
5365
5399
  #
5366
- # 1. (Optional) Create a Lambda function and a rule that allows Amazon
5367
- # EventBridge to invoke your Lambda function when Amazon EC2 Auto
5368
- # Scaling launches or terminates instances.
5400
+ # 1. (Optional) Create a launch template or launch configuration with a
5401
+ # user data script that runs while an instance is in a wait state
5402
+ # due to a lifecycle hook.
5403
+ #
5404
+ # 2. (Optional) Create a Lambda function and a rule that allows Amazon
5405
+ # EventBridge to invoke your Lambda function when an instance is put
5406
+ # into a wait state due to a lifecycle hook.
5369
5407
  #
5370
- # 2. (Optional) Create a notification target and an IAM role. The
5408
+ # 3. (Optional) Create a notification target and an IAM role. The
5371
5409
  # target can be either an Amazon SQS queue or an Amazon SNS topic.
5372
5410
  # The role allows Amazon EC2 Auto Scaling to publish lifecycle
5373
5411
  # notifications to the target.
5374
5412
  #
5375
- # 3. Create the lifecycle hook. Specify whether the hook is used when
5413
+ # 4. Create the lifecycle hook. Specify whether the hook is used when
5376
5414
  # the instances launch or terminate.
5377
5415
  #
5378
- # 4. **If you need more time, record the lifecycle action heartbeat to
5379
- # keep the instance in a pending state.**
5416
+ # 5. **If you need more time, record the lifecycle action heartbeat to
5417
+ # keep the instance in a wait state.**
5380
5418
  #
5381
- # 5. If you finish before the timeout period ends, send a callback by
5419
+ # 6. If you finish before the timeout period ends, send a callback by
5382
5420
  # using the CompleteLifecycleAction API call.
5383
5421
  #
5384
5422
  # For more information, see [Amazon EC2 Auto Scaling lifecycle hooks][1]
@@ -5759,9 +5797,16 @@ module Aws::AutoScaling
5759
5797
  #
5760
5798
  # resp = client.start_instance_refresh({
5761
5799
  # auto_scaling_group_name: "my-auto-scaling-group",
5800
+ # desired_configuration: {
5801
+ # launch_template: {
5802
+ # launch_template_name: "my-template-for-auto-scaling",
5803
+ # version: "$Latest",
5804
+ # },
5805
+ # },
5762
5806
  # preferences: {
5763
5807
  # instance_warmup: 400,
5764
- # min_healthy_percentage: 50,
5808
+ # min_healthy_percentage: 90,
5809
+ # skip_matching: true,
5765
5810
  # },
5766
5811
  # })
5767
5812
  #
@@ -6149,7 +6194,7 @@ module Aws::AutoScaling
6149
6194
  # The default value is `0`. For more information, see [Health check
6150
6195
  # grace period][1] in the *Amazon EC2 Auto Scaling User Guide*.
6151
6196
  #
6152
- # Conditional: Required if you are adding an `ELB` health check.
6197
+ # Required if you are adding an `ELB` health check.
6153
6198
  #
6154
6199
  #
6155
6200
  #
@@ -6248,31 +6293,18 @@ module Aws::AutoScaling
6248
6293
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
6249
6294
  #
6250
6295
  #
6251
- # @example Example: To update the launch configuration
6296
+ # @example Example: To update an Auto Scaling group
6252
6297
  #
6253
- # # This example updates the launch configuration of the specified Auto Scaling group.
6298
+ # # This example updates multiple properties at the same time.
6254
6299
  #
6255
6300
  # resp = client.update_auto_scaling_group({
6256
6301
  # auto_scaling_group_name: "my-auto-scaling-group",
6257
- # launch_configuration_name: "new-launch-config",
6258
- # })
6259
- #
6260
- # @example Example: To update the minimum and maximum size
6261
- #
6262
- # # This example updates the minimum size and maximum size of the specified Auto Scaling group.
6263
- #
6264
- # resp = client.update_auto_scaling_group({
6265
- # auto_scaling_group_name: "my-auto-scaling-group",
6266
- # max_size: 3,
6302
+ # launch_template: {
6303
+ # launch_template_name: "my-template-for-auto-scaling",
6304
+ # version: "2",
6305
+ # },
6306
+ # max_size: 5,
6267
6307
  # min_size: 1,
6268
- # })
6269
- #
6270
- # @example Example: To enable instance protection
6271
- #
6272
- # # This example enables instance protection for the specified Auto Scaling group.
6273
- #
6274
- # resp = client.update_auto_scaling_group({
6275
- # auto_scaling_group_name: "my-auto-scaling-group",
6276
6308
  # new_instances_protected_from_scale_in: true,
6277
6309
  # })
6278
6310
  #
@@ -6401,7 +6433,7 @@ module Aws::AutoScaling
6401
6433
  params: params,
6402
6434
  config: config)
6403
6435
  context[:gem_name] = 'aws-sdk-autoscaling'
6404
- context[:gem_version] = '1.75.0'
6436
+ context[:gem_version] = '1.78.0'
6405
6437
  Seahorse::Client::Request.new(handlers, context)
6406
6438
  end
6407
6439
 
@@ -171,6 +171,7 @@ module Aws::AutoScaling
171
171
  InstanceRefreshWarmPoolProgress = Shapes::StructureShape.new(name: 'InstanceRefreshWarmPoolProgress')
172
172
  InstanceRefreshes = Shapes::ListShape.new(name: 'InstanceRefreshes')
173
173
  InstanceRequirements = Shapes::StructureShape.new(name: 'InstanceRequirements')
174
+ InstanceReusePolicy = Shapes::StructureShape.new(name: 'InstanceReusePolicy')
174
175
  Instances = Shapes::ListShape.new(name: 'Instances')
175
176
  InstancesDistribution = Shapes::StructureShape.new(name: 'InstancesDistribution')
176
177
  InstancesToUpdate = Shapes::IntegerShape.new(name: 'InstancesToUpdate')
@@ -298,6 +299,7 @@ module Aws::AutoScaling
298
299
  ResourceInUseFault = Shapes::StructureShape.new(name: 'ResourceInUseFault')
299
300
  ResourceName = Shapes::StringShape.new(name: 'ResourceName')
300
301
  ReturnData = Shapes::BooleanShape.new(name: 'ReturnData')
302
+ ReuseOnScaleIn = Shapes::BooleanShape.new(name: 'ReuseOnScaleIn')
301
303
  ScalingActivityInProgressFault = Shapes::StructureShape.new(name: 'ScalingActivityInProgressFault')
302
304
  ScalingActivityStatusCode = Shapes::StringShape.new(name: 'ScalingActivityStatusCode')
303
305
  ScalingPolicies = Shapes::ListShape.new(name: 'ScalingPolicies')
@@ -925,6 +927,9 @@ module Aws::AutoScaling
925
927
  InstanceRequirements.add_member(:accelerator_total_memory_mi_b, Shapes::ShapeRef.new(shape: AcceleratorTotalMemoryMiBRequest, location_name: "AcceleratorTotalMemoryMiB"))
926
928
  InstanceRequirements.struct_class = Types::InstanceRequirements
927
929
 
930
+ InstanceReusePolicy.add_member(:reuse_on_scale_in, Shapes::ShapeRef.new(shape: ReuseOnScaleIn, location_name: "ReuseOnScaleIn"))
931
+ InstanceReusePolicy.struct_class = Types::InstanceReusePolicy
932
+
928
933
  Instances.member = Shapes::ShapeRef.new(shape: Instance)
929
934
 
930
935
  InstancesDistribution.add_member(:on_demand_allocation_strategy, Shapes::ShapeRef.new(shape: XmlString, location_name: "OnDemandAllocationStrategy"))
@@ -1225,6 +1230,7 @@ module Aws::AutoScaling
1225
1230
  PutWarmPoolType.add_member(:max_group_prepared_capacity, Shapes::ShapeRef.new(shape: MaxGroupPreparedCapacity, location_name: "MaxGroupPreparedCapacity"))
1226
1231
  PutWarmPoolType.add_member(:min_size, Shapes::ShapeRef.new(shape: WarmPoolMinSize, location_name: "MinSize"))
1227
1232
  PutWarmPoolType.add_member(:pool_state, Shapes::ShapeRef.new(shape: WarmPoolState, location_name: "PoolState"))
1233
+ PutWarmPoolType.add_member(:instance_reuse_policy, Shapes::ShapeRef.new(shape: InstanceReusePolicy, location_name: "InstanceReusePolicy"))
1228
1234
  PutWarmPoolType.struct_class = Types::PutWarmPoolType
1229
1235
 
1230
1236
  RecordLifecycleActionHeartbeatAnswer.struct_class = Types::RecordLifecycleActionHeartbeatAnswer
@@ -1424,6 +1430,7 @@ module Aws::AutoScaling
1424
1430
  WarmPoolConfiguration.add_member(:min_size, Shapes::ShapeRef.new(shape: WarmPoolMinSize, location_name: "MinSize"))
1425
1431
  WarmPoolConfiguration.add_member(:pool_state, Shapes::ShapeRef.new(shape: WarmPoolState, location_name: "PoolState"))
1426
1432
  WarmPoolConfiguration.add_member(:status, Shapes::ShapeRef.new(shape: WarmPoolStatus, location_name: "Status"))
1433
+ WarmPoolConfiguration.add_member(:instance_reuse_policy, Shapes::ShapeRef.new(shape: InstanceReusePolicy, location_name: "InstanceReusePolicy"))
1427
1434
  WarmPoolConfiguration.struct_class = Types::WarmPoolConfiguration
1428
1435
 
1429
1436
 
@@ -64,7 +64,8 @@ module Aws::AutoScaling
64
64
  end
65
65
 
66
66
  # The ARN of the IAM role that allows the Auto Scaling group to publish
67
- # to the specified notification target.
67
+ # to the specified notification target (an Amazon SNS topic or an Amazon
68
+ # SQS queue).
68
69
  # @return [String]
69
70
  def role_arn
70
71
  data[:role_arn]
@@ -305,11 +306,11 @@ module Aws::AutoScaling
305
306
  # hooks.
306
307
  # @option options [String] :role_arn
307
308
  # The ARN of the IAM role that allows the Auto Scaling group to publish
308
- # to the specified notification target, for example, an Amazon SNS topic
309
- # or an Amazon SQS queue.
309
+ # to the specified notification target.
310
310
  #
311
- # Required for new lifecycle hooks, but optional when updating existing
312
- # hooks.
311
+ # Valid only if the notification target is an Amazon SNS topic or an
312
+ # Amazon SQS queue. Required for new lifecycle hooks, but optional when
313
+ # updating existing hooks.
313
314
  # @option options [String] :notification_target_arn
314
315
  # The ARN of the notification target that Amazon EC2 Auto Scaling uses
315
316
  # to notify you when an instance is in the transition state for the
@@ -282,7 +282,7 @@ module Aws::AutoScaling
282
282
  # The default value is `0`. For more information, see [Health check
283
283
  # grace period][1] in the *Amazon EC2 Auto Scaling User Guide*.
284
284
  #
285
- # Conditional: Required if you are adding an `ELB` health check.
285
+ # Required if you are adding an `ELB` health check.
286
286
  #
287
287
  #
288
288
  #
@@ -1259,7 +1259,7 @@ module Aws::AutoScaling
1259
1259
  # The default value is `0`. For more information, see [Health check
1260
1260
  # grace period][1] in the *Amazon EC2 Auto Scaling User Guide*.
1261
1261
  #
1262
- # Conditional: Required if you are adding an `ELB` health check.
1262
+ # Required if you are adding an `ELB` health check.
1263
1263
  #
1264
1264
  #
1265
1265
  #
@@ -4098,6 +4098,10 @@ module Aws::AutoScaling
4098
4098
  # To turn off price protection, specify a high value, such as
4099
4099
  # `999999`.
4100
4100
  #
4101
+ # If you set `DesiredCapacityType` to `vcpu` or `memory-mib`, the
4102
+ # price protection threshold is applied based on the per vCPU or per
4103
+ # memory price instead of the per instance price.
4104
+ #
4101
4105
  # Default: `100`
4102
4106
  # @return [Integer]
4103
4107
  #
@@ -4112,6 +4116,10 @@ module Aws::AutoScaling
4112
4116
  # To turn off price protection, specify a high value, such as
4113
4117
  # `999999`.
4114
4118
  #
4119
+ # If you set `DesiredCapacityType` to `vcpu` or `memory-mib`, the
4120
+ # price protection threshold is applied based on the per vCPU or per
4121
+ # memory price instead of the per instance price.
4122
+ #
4115
4123
  # Default: `20`
4116
4124
  # @return [Integer]
4117
4125
  #
@@ -4288,6 +4296,35 @@ module Aws::AutoScaling
4288
4296
  include Aws::Structure
4289
4297
  end
4290
4298
 
4299
+ # Describes an instance reuse policy for a warm pool.
4300
+ #
4301
+ # For more information, see [Warm pools for Amazon EC2 Auto Scaling][1]
4302
+ # in the *Amazon EC2 Auto Scaling User Guide*.
4303
+ #
4304
+ #
4305
+ #
4306
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-warm-pools.html
4307
+ #
4308
+ # @note When making an API call, you may pass InstanceReusePolicy
4309
+ # data as a hash:
4310
+ #
4311
+ # {
4312
+ # reuse_on_scale_in: false,
4313
+ # }
4314
+ #
4315
+ # @!attribute [rw] reuse_on_scale_in
4316
+ # Specifies whether instances in the Auto Scaling group can be
4317
+ # returned to the warm pool on scale in.
4318
+ # @return [Boolean]
4319
+ #
4320
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/InstanceReusePolicy AWS API Documentation
4321
+ #
4322
+ class InstanceReusePolicy < Struct.new(
4323
+ :reuse_on_scale_in)
4324
+ SENSITIVE = []
4325
+ include Aws::Structure
4326
+ end
4327
+
4291
4328
  # Describes an instances distribution for an Auto Scaling group.
4292
4329
  #
4293
4330
  # @note When making an API call, you may pass InstancesDistribution
@@ -4893,23 +4930,23 @@ module Aws::AutoScaling
4893
4930
  # remaining to fulfill capacity, and Amazon EC2 Auto Scaling can only
4894
4931
  # launch an instance with a `WeightedCapacity` of five units, the
4895
4932
  # instance is launched, and the desired capacity is exceeded by three
4896
- # units. For more information, see [Instance weighting for Amazon EC2
4897
- # Auto Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*. Value
4898
- # must be in the range of 1–999.
4933
+ # units. For more information, see [Configuring instance weighting for
4934
+ # Amazon EC2 Auto Scaling][1] in the *Amazon EC2 Auto Scaling User
4935
+ # Guide*. Value must be in the range of 1–999.
4899
4936
  #
4900
4937
  #
4901
4938
  #
4902
- # [1]: https://docs.aws.amazon.com/ec2-auto-scaling-mixed-instances-groups-instance-weighting.html
4939
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups-instance-weighting.html
4903
4940
  # @return [String]
4904
4941
  #
4905
4942
  # @!attribute [rw] launch_template_specification
4906
- # Provides the launch template to be used when launching the instance
4907
- # type specified in `InstanceType`. For example, some instance types
4908
- # might require a launch template with a different AMI. If not
4909
- # provided, Amazon EC2 Auto Scaling uses the launch template that's
4910
- # defined for your mixed instances policy. For more information, see
4911
- # [Specifying a different launch template for an instance type][1] in
4912
- # the *Amazon EC2 Auto Scaling User Guide*.
4943
+ # Provides a launch template for the specified instance type or
4944
+ # instance requirements. For example, some instance types might
4945
+ # require a launch template with a different AMI. If not provided,
4946
+ # Amazon EC2 Auto Scaling uses the launch template that's defined for
4947
+ # your mixed instances policy. For more information, see [Specifying a
4948
+ # different launch template for an instance type][1] in the *Amazon
4949
+ # EC2 Auto Scaling User Guide*.
4913
4950
  #
4914
4951
  #
4915
4952
  #
@@ -5010,9 +5047,10 @@ module Aws::AutoScaling
5010
5047
  include Aws::Structure
5011
5048
  end
5012
5049
 
5013
- # Describes a lifecycle hook, which enables an Auto Scaling group to be
5014
- # aware of events in the Auto Scaling instance lifecycle, and then
5015
- # perform a custom action when the corresponding lifecycle event occurs.
5050
+ # Describes a lifecycle hook. A lifecycle hook lets you create solutions
5051
+ # that are aware of events in the Auto Scaling instance lifecycle, and
5052
+ # then perform a custom action on instances when the corresponding
5053
+ # lifecycle event occurs.
5016
5054
  #
5017
5055
  # @!attribute [rw] lifecycle_hook_name
5018
5056
  # The name of the lifecycle hook.
@@ -5040,7 +5078,8 @@ module Aws::AutoScaling
5040
5078
  #
5041
5079
  # @!attribute [rw] role_arn
5042
5080
  # The ARN of the IAM role that allows the Auto Scaling group to
5043
- # publish to the specified notification target.
5081
+ # publish to the specified notification target (an Amazon SNS topic or
5082
+ # an Amazon SQS queue).
5044
5083
  # @return [String]
5045
5084
  #
5046
5085
  # @!attribute [rw] notification_metadata
@@ -5151,8 +5190,11 @@ module Aws::AutoScaling
5151
5190
  #
5152
5191
  # @!attribute [rw] role_arn
5153
5192
  # The ARN of the IAM role that allows the Auto Scaling group to
5154
- # publish to the specified notification target, for example, an Amazon
5155
- # SNS topic or an Amazon SQS queue.
5193
+ # publish to the specified notification target.
5194
+ #
5195
+ # Valid only if the notification target is an Amazon SNS topic or an
5196
+ # Amazon SQS queue. Required for new lifecycle hooks, but optional
5197
+ # when updating existing hooks.
5156
5198
  # @return [String]
5157
5199
  #
5158
5200
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LifecycleHookSpecification AWS API Documentation
@@ -5894,14 +5936,14 @@ module Aws::AutoScaling
5894
5936
  # * `ASGAverageCPUUtilization` - Average CPU utilization of the Auto
5895
5937
  # Scaling group.
5896
5938
  #
5897
- # * `ASGAverageNetworkIn` - Average number of bytes received on all
5898
- # network interfaces by the Auto Scaling group.
5939
+ # * `ASGAverageNetworkIn` - Average number of bytes received (per
5940
+ # instance per minute) for the Auto Scaling group.
5899
5941
  #
5900
- # * `ASGAverageNetworkOut` - Average number of bytes sent out on all
5901
- # network interfaces by the Auto Scaling group.
5942
+ # * `ASGAverageNetworkOut` - Average number of bytes sent out (per
5943
+ # instance per minute) for the Auto Scaling group.
5902
5944
  #
5903
- # * `ALBRequestCountPerTarget` - Number of requests completed per
5904
- # target in an Application Load Balancer target group.
5945
+ # * `ALBRequestCountPerTarget` - Average Application Load Balancer
5946
+ # request count (per target per minute) for your Auto Scaling group.
5905
5947
  # @return [String]
5906
5948
  #
5907
5949
  # @!attribute [rw] resource_label
@@ -6714,11 +6756,11 @@ module Aws::AutoScaling
6714
6756
  #
6715
6757
  # @!attribute [rw] role_arn
6716
6758
  # The ARN of the IAM role that allows the Auto Scaling group to
6717
- # publish to the specified notification target, for example, an Amazon
6718
- # SNS topic or an Amazon SQS queue.
6759
+ # publish to the specified notification target.
6719
6760
  #
6720
- # Required for new lifecycle hooks, but optional when updating
6721
- # existing hooks.
6761
+ # Valid only if the notification target is an Amazon SNS topic or an
6762
+ # Amazon SQS queue. Required for new lifecycle hooks, but optional
6763
+ # when updating existing hooks.
6722
6764
  # @return [String]
6723
6765
  #
6724
6766
  # @!attribute [rw] notification_target_arn
@@ -7258,7 +7300,10 @@ module Aws::AutoScaling
7258
7300
  # auto_scaling_group_name: "XmlStringMaxLen255", # required
7259
7301
  # max_group_prepared_capacity: 1,
7260
7302
  # min_size: 1,
7261
- # pool_state: "Stopped", # accepts Stopped, Running
7303
+ # pool_state: "Stopped", # accepts Stopped, Running, Hibernated
7304
+ # instance_reuse_policy: {
7305
+ # reuse_on_scale_in: false,
7306
+ # },
7262
7307
  # }
7263
7308
  #
7264
7309
  # @!attribute [rw] auto_scaling_group_name
@@ -7301,13 +7346,20 @@ module Aws::AutoScaling
7301
7346
  # are complete. Default is `Stopped`.
7302
7347
  # @return [String]
7303
7348
  #
7349
+ # @!attribute [rw] instance_reuse_policy
7350
+ # Indicates whether instances in the Auto Scaling group can be
7351
+ # returned to the warm pool on scale in. The default is to terminate
7352
+ # instances in the Auto Scaling group when the group scales in.
7353
+ # @return [Types::InstanceReusePolicy]
7354
+ #
7304
7355
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutWarmPoolType AWS API Documentation
7305
7356
  #
7306
7357
  class PutWarmPoolType < Struct.new(
7307
7358
  :auto_scaling_group_name,
7308
7359
  :max_group_prepared_capacity,
7309
7360
  :min_size,
7310
- :pool_state)
7361
+ :pool_state,
7362
+ :instance_reuse_policy)
7311
7363
  SENSITIVE = []
7312
7364
  include Aws::Structure
7313
7365
  end
@@ -8367,6 +8419,15 @@ module Aws::AutoScaling
8367
8419
  #
8368
8420
  # @!attribute [rw] target_value
8369
8421
  # The target value for the metric.
8422
+ #
8423
+ # <note markdown="1"> Some metrics are based on a count instead of a percentage, such as
8424
+ # the request count for an Application Load Balancer or the number of
8425
+ # messages in an SQS queue. If the scaling policy specifies one of
8426
+ # these metrics, specify the target utilization as the optimal average
8427
+ # request or message count per instance during any one-minute
8428
+ # interval.
8429
+ #
8430
+ # </note>
8370
8431
  # @return [Float]
8371
8432
  #
8372
8433
  # @!attribute [rw] disable_scale_in
@@ -8629,7 +8690,7 @@ module Aws::AutoScaling
8629
8690
  # The default value is `0`. For more information, see [Health check
8630
8691
  # grace period][1] in the *Amazon EC2 Auto Scaling User Guide*.
8631
8692
  #
8632
- # Conditional: Required if you are adding an `ELB` health check.
8693
+ # Required if you are adding an `ELB` health check.
8633
8694
  #
8634
8695
  #
8635
8696
  #
@@ -8810,13 +8871,18 @@ module Aws::AutoScaling
8810
8871
  # The status of a warm pool that is marked for deletion.
8811
8872
  # @return [String]
8812
8873
  #
8874
+ # @!attribute [rw] instance_reuse_policy
8875
+ # The instance reuse policy.
8876
+ # @return [Types::InstanceReusePolicy]
8877
+ #
8813
8878
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/WarmPoolConfiguration AWS API Documentation
8814
8879
  #
8815
8880
  class WarmPoolConfiguration < Struct.new(
8816
8881
  :max_group_prepared_capacity,
8817
8882
  :min_size,
8818
8883
  :pool_state,
8819
- :status)
8884
+ :status,
8885
+ :instance_reuse_policy)
8820
8886
  SENSITIVE = []
8821
8887
  include Aws::Structure
8822
8888
  end
@@ -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.75.0'
62
+ GEM_VERSION = '1.78.0'
63
63
 
64
64
  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.75.0
4
+ version: 1.78.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-11-30 00:00:00.000000000 Z
11
+ date: 2022-02-24 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.122.0
22
+ version: 3.127.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.122.0
32
+ version: 3.127.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement