aws-sdk-autoscaling 1.86.0 → 1.87.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-autoscaling/auto_scaling_group.rb +11 -16
- data/lib/aws-sdk-autoscaling/client.rb +196 -71
- data/lib/aws-sdk-autoscaling/client_api.rb +12 -3
- data/lib/aws-sdk-autoscaling/instance.rb +4 -4
- data/lib/aws-sdk-autoscaling/resource.rb +13 -20
- data/lib/aws-sdk-autoscaling/types.rb +137 -84
- data/lib/aws-sdk-autoscaling.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1000e84dda6419aa03ab8ed7fbd4680f8bd59bdc9c7fc7eb928ec4be1f7bb66
|
4
|
+
data.tar.gz: 675ebf4cc61d5e187aa8b7ef80a2d084dd108f4412798651b03cb5f304e876d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1d1b95443dce120be08a1905aa1ade3cf7887030e775a3180f29dfdb96f3c79c133c262d93f3efc2c20fc063c23ebff1eeaba1b628675a3800c269bbf5ba0d9
|
7
|
+
data.tar.gz: 157f9292019fdf07cb17ee59963ddb6500bdb21d21fd9937c1689cf34d7fe4582d72148026c859bd3a60abed8a54502d78f00bcd2f576dd76e7c2aa789ba5dba
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.87.0 (2023-03-30)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Amazon EC2 Auto Scaling now supports Elastic Load Balancing traffic sources with the AttachTrafficSources, DetachTrafficSources, and DescribeTrafficSources APIs. This release also introduces a new activity status, "WaitingForConnectionDraining", for VPC Lattice to the DescribeScalingActivities API.
|
8
|
+
|
4
9
|
1.86.0 (2023-02-10)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.87.0
|
@@ -109,12 +109,7 @@ module Aws::AutoScaling
|
|
109
109
|
data[:target_group_arns]
|
110
110
|
end
|
111
111
|
|
112
|
-
#
|
113
|
-
# instances in this group. Amazon EC2 health checks are always on.
|
114
|
-
#
|
115
|
-
# The valid values are `EC2` (default), `ELB`, and `VPC_LATTICE`. The
|
116
|
-
# `VPC_LATTICE` health check type is reserved for use with VPC Lattice,
|
117
|
-
# which is in preview release and is subject to change.
|
112
|
+
# A comma-separated list of one or more health check types.
|
118
113
|
# @return [String]
|
119
114
|
def health_check_type
|
120
115
|
data[:health_check_type]
|
@@ -232,11 +227,7 @@ module Aws::AutoScaling
|
|
232
227
|
data[:default_instance_warmup]
|
233
228
|
end
|
234
229
|
|
235
|
-
#
|
236
|
-
# release and is subject to change. Do not use this parameter for
|
237
|
-
# production workloads. It is also subject to change.**
|
238
|
-
#
|
239
|
-
# The unique identifiers of the traffic sources.
|
230
|
+
# The traffic sources associated with this Auto Scaling group.
|
240
231
|
# @return [Array<Types::TrafficSourceIdentifier>]
|
241
232
|
def traffic_sources
|
242
233
|
data[:traffic_sources]
|
@@ -1288,12 +1279,16 @@ module Aws::AutoScaling
|
|
1288
1279
|
# @option options [Array<String>] :availability_zones
|
1289
1280
|
# One or more Availability Zones for the group.
|
1290
1281
|
# @option options [String] :health_check_type
|
1291
|
-
#
|
1292
|
-
#
|
1282
|
+
# A comma-separated list of one or more health check types.
|
1283
|
+
#
|
1284
|
+
# The valid values are `EC2`, `ELB`, and `VPC_LATTICE`. `EC2` is the
|
1285
|
+
# default health check and cannot be disabled. For more information, see
|
1286
|
+
# [Health checks for Auto Scaling instances][1] in the *Amazon EC2 Auto
|
1287
|
+
# Scaling User Guide*.
|
1288
|
+
#
|
1289
|
+
#
|
1293
1290
|
#
|
1294
|
-
#
|
1295
|
-
# `VPC_LATTICE` health check type is reserved for use with VPC Lattice,
|
1296
|
-
# which is in preview release and is subject to change.
|
1291
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html
|
1297
1292
|
# @option options [Integer] :health_check_grace_period
|
1298
1293
|
# The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
|
1299
1294
|
# before checking the health status of an EC2 instance that has come
|
@@ -425,6 +425,16 @@ module Aws::AutoScaling
|
|
425
425
|
req.send_request(options)
|
426
426
|
end
|
427
427
|
|
428
|
+
# <note markdown="1"> This API call has been replaced with a new "traffic sources" API
|
429
|
+
# call (`AttachTrafficSources`) that can attach multiple traffic sources
|
430
|
+
# types. While we continue to support `AttachLoadBalancerTargetGroups`,
|
431
|
+
# and you can use both the original `AttachLoadBalancerTargetGroups` API
|
432
|
+
# call and the new `AttachTrafficSources` API call on the same Auto
|
433
|
+
# Scaling group, we recommend using the new "traffic sources" API call
|
434
|
+
# to simplify how you manage traffic sources.
|
435
|
+
#
|
436
|
+
# </note>
|
437
|
+
#
|
428
438
|
# Attaches one or more target groups to the specified Auto Scaling
|
429
439
|
# group.
|
430
440
|
#
|
@@ -495,9 +505,13 @@ module Aws::AutoScaling
|
|
495
505
|
req.send_request(options)
|
496
506
|
end
|
497
507
|
|
498
|
-
# <note markdown="1">
|
499
|
-
#
|
500
|
-
#
|
508
|
+
# <note markdown="1"> This API call has been replaced with a new "traffic sources" API
|
509
|
+
# call (`AttachTrafficSources`) that can attach multiple traffic sources
|
510
|
+
# types. While we continue to support `AttachLoadBalancers`, and you can
|
511
|
+
# use both the original `AttachLoadBalancers` API call and the new
|
512
|
+
# `AttachTrafficSources` API call on the same Auto Scaling group, we
|
513
|
+
# recommend using the new "traffic sources" API call to simplify how
|
514
|
+
# you manage traffic sources.
|
501
515
|
#
|
502
516
|
# </note>
|
503
517
|
#
|
@@ -557,20 +571,30 @@ module Aws::AutoScaling
|
|
557
571
|
req.send_request(options)
|
558
572
|
end
|
559
573
|
|
560
|
-
# **Reserved for use with Amazon VPC Lattice, which is in preview and
|
561
|
-
# subject to change. Do not use this API for production workloads. This
|
562
|
-
# API is also subject to change.**
|
563
|
-
#
|
564
574
|
# Attaches one or more traffic sources to the specified Auto Scaling
|
565
575
|
# group.
|
566
576
|
#
|
567
|
-
#
|
568
|
-
#
|
569
|
-
#
|
577
|
+
# You can use any of the following as traffic sources for an Auto
|
578
|
+
# Scaling group:
|
579
|
+
#
|
580
|
+
# * Application Load Balancer
|
581
|
+
#
|
582
|
+
# * Classic Load Balancer
|
583
|
+
#
|
584
|
+
# * Network Load Balancer
|
585
|
+
#
|
586
|
+
# * Gateway Load Balancer
|
587
|
+
#
|
588
|
+
# * VPC Lattice
|
570
589
|
#
|
571
590
|
# This operation is additive and does not detach existing traffic
|
572
591
|
# sources from the Auto Scaling group.
|
573
592
|
#
|
593
|
+
# After the operation completes, use the DescribeTrafficSources API to
|
594
|
+
# return details about the state of the attachments between traffic
|
595
|
+
# sources and your Auto Scaling group. To detach a traffic source from
|
596
|
+
# the Auto Scaling group, call the DetachTrafficSources API.
|
597
|
+
#
|
574
598
|
# @option params [required, String] :auto_scaling_group_name
|
575
599
|
# The name of the Auto Scaling group.
|
576
600
|
#
|
@@ -578,21 +602,34 @@ module Aws::AutoScaling
|
|
578
602
|
# The unique identifiers of one or more traffic sources. You can specify
|
579
603
|
# up to 10 traffic sources.
|
580
604
|
#
|
581
|
-
# Currently, you must specify an Amazon Resource Name (ARN) for an
|
582
|
-
# existing VPC Lattice target group. Amazon EC2 Auto Scaling registers
|
583
|
-
# the running instances with the attached target groups. The target
|
584
|
-
# groups receive incoming traffic and route requests to one or more
|
585
|
-
# registered targets.
|
586
|
-
#
|
587
605
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
588
606
|
#
|
607
|
+
#
|
608
|
+
# @example Example: To attach a target group to an Auto Scaling group
|
609
|
+
#
|
610
|
+
# # This example attaches the specified target group to the specified Auto Scaling group.
|
611
|
+
#
|
612
|
+
# resp = client.attach_traffic_sources({
|
613
|
+
# auto_scaling_group_name: "my-auto-scaling-group",
|
614
|
+
# traffic_sources: [
|
615
|
+
# {
|
616
|
+
# identifier: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
|
617
|
+
# },
|
618
|
+
# ],
|
619
|
+
# })
|
620
|
+
#
|
621
|
+
# resp.to_h outputs the following:
|
622
|
+
# {
|
623
|
+
# }
|
624
|
+
#
|
589
625
|
# @example Request syntax with placeholder values
|
590
626
|
#
|
591
627
|
# resp = client.attach_traffic_sources({
|
592
628
|
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
593
629
|
# traffic_sources: [ # required
|
594
630
|
# {
|
595
|
-
# identifier: "XmlStringMaxLen511",
|
631
|
+
# identifier: "XmlStringMaxLen511", # required
|
632
|
+
# type: "XmlStringMaxLen511",
|
596
633
|
# },
|
597
634
|
# ],
|
598
635
|
# })
|
@@ -972,7 +1009,8 @@ module Aws::AutoScaling
|
|
972
1009
|
# @option params [Array<String>] :load_balancer_names
|
973
1010
|
# A list of Classic Load Balancers associated with this Auto Scaling
|
974
1011
|
# group. For Application Load Balancers, Network Load Balancers, and
|
975
|
-
# Gateway Load
|
1012
|
+
# Gateway Load Balancers, specify the `TargetGroupARNs` property
|
1013
|
+
# instead.
|
976
1014
|
#
|
977
1015
|
# @option params [Array<String>] :target_group_arns
|
978
1016
|
# The Amazon Resource Names (ARN) of the Elastic Load Balancing target
|
@@ -988,14 +1026,12 @@ module Aws::AutoScaling
|
|
988
1026
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html
|
989
1027
|
#
|
990
1028
|
# @option params [String] :health_check_type
|
991
|
-
#
|
992
|
-
# instances in this group. Amazon EC2 health checks are always on. For
|
993
|
-
# more information, see [Health checks for Auto Scaling instances][1] in
|
994
|
-
# the *Amazon EC2 Auto Scaling User Guide*.
|
1029
|
+
# A comma-separated list of one or more health check types.
|
995
1030
|
#
|
996
|
-
# The valid values are `EC2
|
997
|
-
#
|
998
|
-
#
|
1031
|
+
# The valid values are `EC2`, `ELB`, and `VPC_LATTICE`. `EC2` is the
|
1032
|
+
# default health check and cannot be disabled. For more information, see
|
1033
|
+
# [Health checks for Auto Scaling instances][1] in the *Amazon EC2 Auto
|
1034
|
+
# Scaling User Guide*.
|
999
1035
|
#
|
1000
1036
|
#
|
1001
1037
|
#
|
@@ -1166,17 +1202,10 @@ module Aws::AutoScaling
|
|
1166
1202
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-default-instance-warmup.html
|
1167
1203
|
#
|
1168
1204
|
# @option params [Array<Types::TrafficSourceIdentifier>] :traffic_sources
|
1169
|
-
#
|
1170
|
-
#
|
1171
|
-
#
|
1172
|
-
#
|
1173
|
-
# The unique identifiers of one or more traffic sources.
|
1174
|
-
#
|
1175
|
-
# Currently, you must specify an Amazon Resource Name (ARN) for an
|
1176
|
-
# existing VPC Lattice target group. Amazon EC2 Auto Scaling registers
|
1177
|
-
# the running instances with the attached target groups. The target
|
1178
|
-
# groups receive incoming traffic and route requests to one or more
|
1179
|
-
# registered targets.
|
1205
|
+
# The list of traffic sources to attach to this Auto Scaling group. You
|
1206
|
+
# can use any of the following as traffic sources for an Auto Scaling
|
1207
|
+
# group: Classic Load Balancer, Application Load Balancer, Gateway Load
|
1208
|
+
# Balancer, Network Load Balancer, and VPC Lattice.
|
1180
1209
|
#
|
1181
1210
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1182
1211
|
#
|
@@ -1390,7 +1419,8 @@ module Aws::AutoScaling
|
|
1390
1419
|
# default_instance_warmup: 1,
|
1391
1420
|
# traffic_sources: [
|
1392
1421
|
# {
|
1393
|
-
# identifier: "XmlStringMaxLen511",
|
1422
|
+
# identifier: "XmlStringMaxLen511", # required
|
1423
|
+
# type: "XmlStringMaxLen511",
|
1394
1424
|
# },
|
1395
1425
|
# ],
|
1396
1426
|
# })
|
@@ -2478,6 +2508,7 @@ module Aws::AutoScaling
|
|
2478
2508
|
# resp.auto_scaling_groups[0].default_instance_warmup #=> Integer
|
2479
2509
|
# resp.auto_scaling_groups[0].traffic_sources #=> Array
|
2480
2510
|
# resp.auto_scaling_groups[0].traffic_sources[0].identifier #=> String
|
2511
|
+
# resp.auto_scaling_groups[0].traffic_sources[0].type #=> String
|
2481
2512
|
# resp.next_token #=> String
|
2482
2513
|
#
|
2483
2514
|
#
|
@@ -3026,6 +3057,17 @@ module Aws::AutoScaling
|
|
3026
3057
|
req.send_request(options)
|
3027
3058
|
end
|
3028
3059
|
|
3060
|
+
# <note markdown="1"> This API call has been replaced with a new "traffic sources" API
|
3061
|
+
# call (`DescribeTrafficSources`) that can describe multiple traffic
|
3062
|
+
# sources types. While we continue to support
|
3063
|
+
# `DescribeLoadBalancerTargetGroups`, and you can use both the original
|
3064
|
+
# `DescribeLoadBalancerTargetGroups` API call and the new
|
3065
|
+
# `DescribeTrafficSources` API call on the same Auto Scaling group, we
|
3066
|
+
# recommend using the new "traffic sources" API call to simplify how
|
3067
|
+
# you manage traffic sources.
|
3068
|
+
#
|
3069
|
+
# </note>
|
3070
|
+
#
|
3029
3071
|
# Gets information about the Elastic Load Balancing target groups for
|
3030
3072
|
# the specified Auto Scaling group.
|
3031
3073
|
#
|
@@ -3123,12 +3165,22 @@ module Aws::AutoScaling
|
|
3123
3165
|
req.send_request(options)
|
3124
3166
|
end
|
3125
3167
|
|
3168
|
+
# <note markdown="1"> This API call has been replaced with a new "traffic sources" API
|
3169
|
+
# call (`DescribeTrafficSources`) that can describe multiple traffic
|
3170
|
+
# sources types. While we continue to support `DescribeLoadBalancers`,
|
3171
|
+
# and you can use both the original `DescribeLoadBalancers` API call and
|
3172
|
+
# the new `DescribeTrafficSources` API call on the same Auto Scaling
|
3173
|
+
# group, we recommend using the new "traffic sources" API call to
|
3174
|
+
# simplify how you manage traffic sources.
|
3175
|
+
#
|
3176
|
+
# </note>
|
3177
|
+
#
|
3126
3178
|
# Gets information about the load balancers for the specified Auto
|
3127
3179
|
# Scaling group.
|
3128
3180
|
#
|
3129
3181
|
# This operation describes only Classic Load Balancers. If you have
|
3130
3182
|
# Application Load Balancers, Network Load Balancers, or Gateway Load
|
3131
|
-
#
|
3183
|
+
# Balancers, use the DescribeLoadBalancerTargetGroups API instead.
|
3132
3184
|
#
|
3133
3185
|
# To determine the attachment status of the load balancer, use the
|
3134
3186
|
# `State` element in the response. When you attach a load balancer to an
|
@@ -3636,7 +3688,7 @@ module Aws::AutoScaling
|
|
3636
3688
|
# resp.activities[0].cause #=> String
|
3637
3689
|
# resp.activities[0].start_time #=> Time
|
3638
3690
|
# resp.activities[0].end_time #=> Time
|
3639
|
-
# resp.activities[0].status_code #=> String, one of "PendingSpotBidPlacement", "WaitingForSpotInstanceRequestId", "WaitingForSpotInstanceId", "WaitingForInstanceId", "PreInService", "InProgress", "WaitingForELBConnectionDraining", "MidLifecycleAction", "WaitingForInstanceWarmup", "Successful", "Failed", "Cancelled"
|
3691
|
+
# resp.activities[0].status_code #=> String, one of "PendingSpotBidPlacement", "WaitingForSpotInstanceRequestId", "WaitingForSpotInstanceId", "WaitingForInstanceId", "PreInService", "InProgress", "WaitingForELBConnectionDraining", "MidLifecycleAction", "WaitingForInstanceWarmup", "Successful", "Failed", "Cancelled", "WaitingForConnectionDraining"
|
3640
3692
|
# resp.activities[0].status_message #=> String
|
3641
3693
|
# resp.activities[0].progress #=> Integer
|
3642
3694
|
# resp.activities[0].details #=> String
|
@@ -3965,19 +4017,30 @@ module Aws::AutoScaling
|
|
3965
4017
|
req.send_request(options)
|
3966
4018
|
end
|
3967
4019
|
|
3968
|
-
# **Reserved for use with Amazon VPC Lattice, which is in preview and
|
3969
|
-
# subject to change. Do not use this API for production workloads. This
|
3970
|
-
# API is also subject to change.**
|
3971
|
-
#
|
3972
4020
|
# Gets information about the traffic sources for the specified Auto
|
3973
4021
|
# Scaling group.
|
3974
4022
|
#
|
4023
|
+
# You can optionally provide a traffic source type. If you provide a
|
4024
|
+
# traffic source type, then the results only include that traffic source
|
4025
|
+
# type.
|
4026
|
+
#
|
4027
|
+
# If you do not provide a traffic source type, then the results include
|
4028
|
+
# all the traffic sources for the specified Auto Scaling group.
|
4029
|
+
#
|
3975
4030
|
# @option params [required, String] :auto_scaling_group_name
|
3976
4031
|
# The name of the Auto Scaling group.
|
3977
4032
|
#
|
3978
|
-
# @option params [
|
3979
|
-
# The
|
3980
|
-
#
|
4033
|
+
# @option params [String] :traffic_source_type
|
4034
|
+
# The traffic source type that you want to describe.
|
4035
|
+
#
|
4036
|
+
# The following lists the valid values:
|
4037
|
+
#
|
4038
|
+
# * `elb` if the traffic source is a Classic Load Balancer.
|
4039
|
+
#
|
4040
|
+
# * `elbv2` if the traffic source is a Application Load Balancer,
|
4041
|
+
# Gateway Load Balancer, or Network Load Balancer.
|
4042
|
+
#
|
4043
|
+
# * `vpc-lattice` if the traffic source is VPC Lattice.
|
3981
4044
|
#
|
3982
4045
|
# @option params [String] :next_token
|
3983
4046
|
# The token for the next set of items to return. (You received this
|
@@ -3992,11 +4055,34 @@ module Aws::AutoScaling
|
|
3992
4055
|
# * {Types::DescribeTrafficSourcesResponse#traffic_sources #traffic_sources} => Array<Types::TrafficSourceState>
|
3993
4056
|
# * {Types::DescribeTrafficSourcesResponse#next_token #next_token} => String
|
3994
4057
|
#
|
4058
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
4059
|
+
#
|
4060
|
+
#
|
4061
|
+
# @example Example: To describe the target groups for an Auto Scaling group
|
4062
|
+
#
|
4063
|
+
# # This example describes the target groups attached to the specified Auto Scaling group.
|
4064
|
+
#
|
4065
|
+
# resp = client.describe_traffic_sources({
|
4066
|
+
# auto_scaling_group_name: "my-auto-scaling-group",
|
4067
|
+
# })
|
4068
|
+
#
|
4069
|
+
# resp.to_h outputs the following:
|
4070
|
+
# {
|
4071
|
+
# next_token: "",
|
4072
|
+
# traffic_sources: [
|
4073
|
+
# {
|
4074
|
+
# identifier: "arn:aws:vpc-lattice:us-west-2:123456789012:targetgroup/tg-0e2f2665eEXAMPLE",
|
4075
|
+
# state: "InService",
|
4076
|
+
# type: "vpc-lattice",
|
4077
|
+
# },
|
4078
|
+
# ],
|
4079
|
+
# }
|
4080
|
+
#
|
3995
4081
|
# @example Request syntax with placeholder values
|
3996
4082
|
#
|
3997
4083
|
# resp = client.describe_traffic_sources({
|
3998
4084
|
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3999
|
-
# traffic_source_type: "XmlStringMaxLen255",
|
4085
|
+
# traffic_source_type: "XmlStringMaxLen255",
|
4000
4086
|
# next_token: "XmlString",
|
4001
4087
|
# max_records: 1,
|
4002
4088
|
# })
|
@@ -4006,6 +4092,8 @@ module Aws::AutoScaling
|
|
4006
4092
|
# resp.traffic_sources #=> Array
|
4007
4093
|
# resp.traffic_sources[0].traffic_source #=> String
|
4008
4094
|
# resp.traffic_sources[0].state #=> String
|
4095
|
+
# resp.traffic_sources[0].identifier #=> String
|
4096
|
+
# resp.traffic_sources[0].type #=> String
|
4009
4097
|
# resp.next_token #=> String
|
4010
4098
|
#
|
4011
4099
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTrafficSources AWS API Documentation
|
@@ -4162,7 +4250,7 @@ module Aws::AutoScaling
|
|
4162
4250
|
# resp.activities[0].cause #=> String
|
4163
4251
|
# resp.activities[0].start_time #=> Time
|
4164
4252
|
# resp.activities[0].end_time #=> Time
|
4165
|
-
# resp.activities[0].status_code #=> String, one of "PendingSpotBidPlacement", "WaitingForSpotInstanceRequestId", "WaitingForSpotInstanceId", "WaitingForInstanceId", "PreInService", "InProgress", "WaitingForELBConnectionDraining", "MidLifecycleAction", "WaitingForInstanceWarmup", "Successful", "Failed", "Cancelled"
|
4253
|
+
# resp.activities[0].status_code #=> String, one of "PendingSpotBidPlacement", "WaitingForSpotInstanceRequestId", "WaitingForSpotInstanceId", "WaitingForInstanceId", "PreInService", "InProgress", "WaitingForELBConnectionDraining", "MidLifecycleAction", "WaitingForInstanceWarmup", "Successful", "Failed", "Cancelled", "WaitingForConnectionDraining"
|
4166
4254
|
# resp.activities[0].status_message #=> String
|
4167
4255
|
# resp.activities[0].progress #=> Integer
|
4168
4256
|
# resp.activities[0].details #=> String
|
@@ -4178,6 +4266,16 @@ module Aws::AutoScaling
|
|
4178
4266
|
req.send_request(options)
|
4179
4267
|
end
|
4180
4268
|
|
4269
|
+
# <note markdown="1"> This API call has been replaced with a new "traffic sources" API
|
4270
|
+
# call (`DetachTrafficSources`) that can detach multiple traffic sources
|
4271
|
+
# types. While we continue to support `DetachLoadBalancerTargetGroups`,
|
4272
|
+
# and you can use both the original `DetachLoadBalancerTargetGroups` API
|
4273
|
+
# call and the new `DetachTrafficSources` API call on the same Auto
|
4274
|
+
# Scaling group, we recommend using the new "traffic sources" API call
|
4275
|
+
# to simplify how you manage traffic sources.
|
4276
|
+
#
|
4277
|
+
# </note>
|
4278
|
+
#
|
4181
4279
|
# Detaches one or more target groups from the specified Auto Scaling
|
4182
4280
|
# group.
|
4183
4281
|
#
|
@@ -4230,12 +4328,22 @@ module Aws::AutoScaling
|
|
4230
4328
|
req.send_request(options)
|
4231
4329
|
end
|
4232
4330
|
|
4331
|
+
# <note markdown="1"> This API call has been replaced with a new "traffic sources" API
|
4332
|
+
# call (`DetachTrafficSources`) that can detach multiple traffic sources
|
4333
|
+
# types. While we continue to support `DetachLoadBalancers`, and you can
|
4334
|
+
# use both the original `DetachLoadBalancers` API call and the new
|
4335
|
+
# `DetachTrafficSources` API call on the same Auto Scaling group, we
|
4336
|
+
# recommend using the new "traffic sources" API call to simplify how
|
4337
|
+
# you manage traffic sources.
|
4338
|
+
#
|
4339
|
+
# </note>
|
4340
|
+
#
|
4233
4341
|
# Detaches one or more Classic Load Balancers from the specified Auto
|
4234
4342
|
# Scaling group.
|
4235
4343
|
#
|
4236
4344
|
# This operation detaches only Classic Load Balancers. If you have
|
4237
4345
|
# Application Load Balancers, Network Load Balancers, or Gateway Load
|
4238
|
-
#
|
4346
|
+
# Balancers, use the DetachLoadBalancerTargetGroups API instead.
|
4239
4347
|
#
|
4240
4348
|
# When you detach a load balancer, it enters the `Removing` state while
|
4241
4349
|
# deregistering the instances in the group. When all instances are
|
@@ -4279,13 +4387,14 @@ module Aws::AutoScaling
|
|
4279
4387
|
req.send_request(options)
|
4280
4388
|
end
|
4281
4389
|
|
4282
|
-
# **Reserved for use with Amazon VPC Lattice, which is in preview and
|
4283
|
-
# subject to change. Do not use this API for production workloads. This
|
4284
|
-
# API is also subject to change.**
|
4285
|
-
#
|
4286
4390
|
# Detaches one or more traffic sources from the specified Auto Scaling
|
4287
4391
|
# group.
|
4288
4392
|
#
|
4393
|
+
# When you detach a taffic, it enters the `Removing` state while
|
4394
|
+
# deregistering the instances in the group. When all instances are
|
4395
|
+
# deregistered, then you can no longer describe the traffic source using
|
4396
|
+
# the DescribeTrafficSources API call. The instances continue to run.
|
4397
|
+
#
|
4289
4398
|
# @option params [required, String] :auto_scaling_group_name
|
4290
4399
|
# The name of the Auto Scaling group.
|
4291
4400
|
#
|
@@ -4293,22 +4402,34 @@ module Aws::AutoScaling
|
|
4293
4402
|
# The unique identifiers of one or more traffic sources you are
|
4294
4403
|
# detaching. You can specify up to 10 traffic sources.
|
4295
4404
|
#
|
4296
|
-
# Currently, you must specify an Amazon Resource Name (ARN) for an
|
4297
|
-
# existing VPC Lattice target group. When you detach a target group, it
|
4298
|
-
# enters the `Removing` state while deregistering the instances in the
|
4299
|
-
# group. When all instances are deregistered, then you can no longer
|
4300
|
-
# describe the target group using the DescribeTrafficSources API call.
|
4301
|
-
# The instances continue to run.
|
4302
|
-
#
|
4303
4405
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
4304
4406
|
#
|
4407
|
+
#
|
4408
|
+
# @example Example: To detach a target group from an Auto Scaling group
|
4409
|
+
#
|
4410
|
+
# # This example detaches the specified target group from the specified Auto Scaling group.
|
4411
|
+
#
|
4412
|
+
# resp = client.detach_traffic_sources({
|
4413
|
+
# auto_scaling_group_name: "my-auto-scaling-group",
|
4414
|
+
# traffic_sources: [
|
4415
|
+
# {
|
4416
|
+
# identifier: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
|
4417
|
+
# },
|
4418
|
+
# ],
|
4419
|
+
# })
|
4420
|
+
#
|
4421
|
+
# resp.to_h outputs the following:
|
4422
|
+
# {
|
4423
|
+
# }
|
4424
|
+
#
|
4305
4425
|
# @example Request syntax with placeholder values
|
4306
4426
|
#
|
4307
4427
|
# resp = client.detach_traffic_sources({
|
4308
4428
|
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4309
4429
|
# traffic_sources: [ # required
|
4310
4430
|
# {
|
4311
|
-
# identifier: "XmlStringMaxLen511",
|
4431
|
+
# identifier: "XmlStringMaxLen511", # required
|
4432
|
+
# type: "XmlStringMaxLen511",
|
4312
4433
|
# },
|
4313
4434
|
# ],
|
4314
4435
|
# })
|
@@ -4594,7 +4715,7 @@ module Aws::AutoScaling
|
|
4594
4715
|
# resp.activities[0].cause #=> String
|
4595
4716
|
# resp.activities[0].start_time #=> Time
|
4596
4717
|
# resp.activities[0].end_time #=> Time
|
4597
|
-
# resp.activities[0].status_code #=> String, one of "PendingSpotBidPlacement", "WaitingForSpotInstanceRequestId", "WaitingForSpotInstanceId", "WaitingForInstanceId", "PreInService", "InProgress", "WaitingForELBConnectionDraining", "MidLifecycleAction", "WaitingForInstanceWarmup", "Successful", "Failed", "Cancelled"
|
4718
|
+
# resp.activities[0].status_code #=> String, one of "PendingSpotBidPlacement", "WaitingForSpotInstanceRequestId", "WaitingForSpotInstanceId", "WaitingForInstanceId", "PreInService", "InProgress", "WaitingForELBConnectionDraining", "MidLifecycleAction", "WaitingForInstanceWarmup", "Successful", "Failed", "Cancelled", "WaitingForConnectionDraining"
|
4598
4719
|
# resp.activities[0].status_message #=> String
|
4599
4720
|
# resp.activities[0].progress #=> Integer
|
4600
4721
|
# resp.activities[0].details #=> String
|
@@ -4749,7 +4870,7 @@ module Aws::AutoScaling
|
|
4749
4870
|
# resp.activities[0].cause #=> String
|
4750
4871
|
# resp.activities[0].start_time #=> Time
|
4751
4872
|
# resp.activities[0].end_time #=> Time
|
4752
|
-
# resp.activities[0].status_code #=> String, one of "PendingSpotBidPlacement", "WaitingForSpotInstanceRequestId", "WaitingForSpotInstanceId", "WaitingForInstanceId", "PreInService", "InProgress", "WaitingForELBConnectionDraining", "MidLifecycleAction", "WaitingForInstanceWarmup", "Successful", "Failed", "Cancelled"
|
4873
|
+
# resp.activities[0].status_code #=> String, one of "PendingSpotBidPlacement", "WaitingForSpotInstanceRequestId", "WaitingForSpotInstanceId", "WaitingForInstanceId", "PreInService", "InProgress", "WaitingForELBConnectionDraining", "MidLifecycleAction", "WaitingForInstanceWarmup", "Successful", "Failed", "Cancelled", "WaitingForConnectionDraining"
|
4753
4874
|
# resp.activities[0].status_message #=> String
|
4754
4875
|
# resp.activities[0].progress #=> Integer
|
4755
4876
|
# resp.activities[0].details #=> String
|
@@ -6468,7 +6589,7 @@ module Aws::AutoScaling
|
|
6468
6589
|
# resp.activity.cause #=> String
|
6469
6590
|
# resp.activity.start_time #=> Time
|
6470
6591
|
# resp.activity.end_time #=> Time
|
6471
|
-
# resp.activity.status_code #=> String, one of "PendingSpotBidPlacement", "WaitingForSpotInstanceRequestId", "WaitingForSpotInstanceId", "WaitingForInstanceId", "PreInService", "InProgress", "WaitingForELBConnectionDraining", "MidLifecycleAction", "WaitingForInstanceWarmup", "Successful", "Failed", "Cancelled"
|
6592
|
+
# resp.activity.status_code #=> String, one of "PendingSpotBidPlacement", "WaitingForSpotInstanceRequestId", "WaitingForSpotInstanceId", "WaitingForInstanceId", "PreInService", "InProgress", "WaitingForELBConnectionDraining", "MidLifecycleAction", "WaitingForInstanceWarmup", "Successful", "Failed", "Cancelled", "WaitingForConnectionDraining"
|
6472
6593
|
# resp.activity.status_message #=> String
|
6473
6594
|
# resp.activity.progress #=> Integer
|
6474
6595
|
# resp.activity.details #=> String
|
@@ -6510,7 +6631,7 @@ module Aws::AutoScaling
|
|
6510
6631
|
# performance or availability of your application.
|
6511
6632
|
#
|
6512
6633
|
# Note the following about changing `DesiredCapacity`, `MaxSize`, or
|
6513
|
-
# `MinSize
|
6634
|
+
# `MinSize`:
|
6514
6635
|
#
|
6515
6636
|
# * If a scale-in activity occurs as a result of a new `DesiredCapacity`
|
6516
6637
|
# value that is lower than the current size of the group, the Auto
|
@@ -6593,12 +6714,16 @@ module Aws::AutoScaling
|
|
6593
6714
|
# One or more Availability Zones for the group.
|
6594
6715
|
#
|
6595
6716
|
# @option params [String] :health_check_type
|
6596
|
-
#
|
6597
|
-
#
|
6717
|
+
# A comma-separated list of one or more health check types.
|
6718
|
+
#
|
6719
|
+
# The valid values are `EC2`, `ELB`, and `VPC_LATTICE`. `EC2` is the
|
6720
|
+
# default health check and cannot be disabled. For more information, see
|
6721
|
+
# [Health checks for Auto Scaling instances][1] in the *Amazon EC2 Auto
|
6722
|
+
# Scaling User Guide*.
|
6598
6723
|
#
|
6599
|
-
#
|
6600
|
-
#
|
6601
|
-
#
|
6724
|
+
#
|
6725
|
+
#
|
6726
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html
|
6602
6727
|
#
|
6603
6728
|
# @option params [Integer] :health_check_grace_period
|
6604
6729
|
# The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
|
@@ -6883,7 +7008,7 @@ module Aws::AutoScaling
|
|
6883
7008
|
params: params,
|
6884
7009
|
config: config)
|
6885
7010
|
context[:gem_name] = 'aws-sdk-autoscaling'
|
6886
|
-
context[:gem_version] = '1.
|
7011
|
+
context[:gem_version] = '1.87.0'
|
6887
7012
|
Seahorse::Client::Request.new(handlers, context)
|
6888
7013
|
end
|
6889
7014
|
|
@@ -781,7 +781,7 @@ module Aws::AutoScaling
|
|
781
781
|
DescribeTerminationPolicyTypesAnswer.struct_class = Types::DescribeTerminationPolicyTypesAnswer
|
782
782
|
|
783
783
|
DescribeTrafficSourcesRequest.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
|
784
|
-
DescribeTrafficSourcesRequest.add_member(:traffic_source_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen255,
|
784
|
+
DescribeTrafficSourcesRequest.add_member(:traffic_source_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "TrafficSourceType"))
|
785
785
|
DescribeTrafficSourcesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: XmlString, location_name: "NextToken"))
|
786
786
|
DescribeTrafficSourcesRequest.add_member(:max_records, Shapes::ShapeRef.new(shape: MaxRecords, location_name: "MaxRecords"))
|
787
787
|
DescribeTrafficSourcesRequest.struct_class = Types::DescribeTrafficSourcesRequest
|
@@ -1491,11 +1491,14 @@ module Aws::AutoScaling
|
|
1491
1491
|
TotalLocalStorageGBRequest.add_member(:max, Shapes::ShapeRef.new(shape: NullablePositiveDouble, location_name: "Max"))
|
1492
1492
|
TotalLocalStorageGBRequest.struct_class = Types::TotalLocalStorageGBRequest
|
1493
1493
|
|
1494
|
-
TrafficSourceIdentifier.add_member(:identifier, Shapes::ShapeRef.new(shape: XmlStringMaxLen511, location_name: "Identifier"))
|
1494
|
+
TrafficSourceIdentifier.add_member(:identifier, Shapes::ShapeRef.new(shape: XmlStringMaxLen511, required: true, location_name: "Identifier"))
|
1495
|
+
TrafficSourceIdentifier.add_member(:type, Shapes::ShapeRef.new(shape: XmlStringMaxLen511, location_name: "Type"))
|
1495
1496
|
TrafficSourceIdentifier.struct_class = Types::TrafficSourceIdentifier
|
1496
1497
|
|
1497
|
-
TrafficSourceState.add_member(:traffic_source, Shapes::ShapeRef.new(shape: XmlStringMaxLen511, location_name: "TrafficSource"))
|
1498
|
+
TrafficSourceState.add_member(:traffic_source, Shapes::ShapeRef.new(shape: XmlStringMaxLen511, deprecated: true, location_name: "TrafficSource", metadata: {"deprecatedMessage"=>"TrafficSource has been replaced by Identifier"}))
|
1498
1499
|
TrafficSourceState.add_member(:state, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "State"))
|
1500
|
+
TrafficSourceState.add_member(:identifier, Shapes::ShapeRef.new(shape: XmlStringMaxLen511, location_name: "Identifier"))
|
1501
|
+
TrafficSourceState.add_member(:type, Shapes::ShapeRef.new(shape: XmlStringMaxLen511, location_name: "Type"))
|
1499
1502
|
TrafficSourceState.struct_class = Types::TrafficSourceState
|
1500
1503
|
|
1501
1504
|
TrafficSourceStates.member = Shapes::ShapeRef.new(shape: TrafficSourceState)
|
@@ -1989,6 +1992,12 @@ module Aws::AutoScaling
|
|
1989
1992
|
o.output = Shapes::ShapeRef.new(shape: DescribeTrafficSourcesResponse)
|
1990
1993
|
o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
|
1991
1994
|
o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
|
1995
|
+
o[:pager] = Aws::Pager.new(
|
1996
|
+
limit_key: "max_records",
|
1997
|
+
tokens: {
|
1998
|
+
"next_token" => "next_token"
|
1999
|
+
}
|
2000
|
+
)
|
1992
2001
|
end)
|
1993
2002
|
|
1994
2003
|
api.add_operation(:describe_warm_pool, Seahorse::Model::Operation.new.tap do |o|
|
@@ -77,10 +77,10 @@ module Aws::AutoScaling
|
|
77
77
|
data[:lifecycle_state]
|
78
78
|
end
|
79
79
|
|
80
|
-
# The last reported health status of this instance.
|
81
|
-
#
|
82
|
-
#
|
83
|
-
#
|
80
|
+
# The last reported health status of this instance. `Healthy` means that
|
81
|
+
# the instance is healthy and should remain in service. `Unhealthy`
|
82
|
+
# means that the instance is unhealthy and Amazon EC2 Auto Scaling
|
83
|
+
# should terminate and replace it.
|
84
84
|
# @return [String]
|
85
85
|
def health_status
|
86
86
|
data[:health_status]
|
@@ -167,7 +167,8 @@ module Aws::AutoScaling
|
|
167
167
|
# default_instance_warmup: 1,
|
168
168
|
# traffic_sources: [
|
169
169
|
# {
|
170
|
-
# identifier: "XmlStringMaxLen511",
|
170
|
+
# identifier: "XmlStringMaxLen511", # required
|
171
|
+
# type: "XmlStringMaxLen511",
|
171
172
|
# },
|
172
173
|
# ],
|
173
174
|
# })
|
@@ -269,7 +270,8 @@ module Aws::AutoScaling
|
|
269
270
|
# @option options [Array<String>] :load_balancer_names
|
270
271
|
# A list of Classic Load Balancers associated with this Auto Scaling
|
271
272
|
# group. For Application Load Balancers, Network Load Balancers, and
|
272
|
-
# Gateway Load
|
273
|
+
# Gateway Load Balancers, specify the `TargetGroupARNs` property
|
274
|
+
# instead.
|
273
275
|
# @option options [Array<String>] :target_group_arns
|
274
276
|
# The Amazon Resource Names (ARN) of the Elastic Load Balancing target
|
275
277
|
# groups to associate with the Auto Scaling group. Instances are
|
@@ -283,14 +285,12 @@ module Aws::AutoScaling
|
|
283
285
|
#
|
284
286
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html
|
285
287
|
# @option options [String] :health_check_type
|
286
|
-
#
|
287
|
-
# instances in this group. Amazon EC2 health checks are always on. For
|
288
|
-
# more information, see [Health checks for Auto Scaling instances][1] in
|
289
|
-
# the *Amazon EC2 Auto Scaling User Guide*.
|
288
|
+
# A comma-separated list of one or more health check types.
|
290
289
|
#
|
291
|
-
# The valid values are `EC2
|
292
|
-
#
|
293
|
-
#
|
290
|
+
# The valid values are `EC2`, `ELB`, and `VPC_LATTICE`. `EC2` is the
|
291
|
+
# default health check and cannot be disabled. For more information, see
|
292
|
+
# [Health checks for Auto Scaling instances][1] in the *Amazon EC2 Auto
|
293
|
+
# Scaling User Guide*.
|
294
294
|
#
|
295
295
|
#
|
296
296
|
#
|
@@ -447,17 +447,10 @@ module Aws::AutoScaling
|
|
447
447
|
#
|
448
448
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-default-instance-warmup.html
|
449
449
|
# @option options [Array<Types::TrafficSourceIdentifier>] :traffic_sources
|
450
|
-
#
|
451
|
-
#
|
452
|
-
#
|
453
|
-
#
|
454
|
-
# The unique identifiers of one or more traffic sources.
|
455
|
-
#
|
456
|
-
# Currently, you must specify an Amazon Resource Name (ARN) for an
|
457
|
-
# existing VPC Lattice target group. Amazon EC2 Auto Scaling registers
|
458
|
-
# the running instances with the attached target groups. The target
|
459
|
-
# groups receive incoming traffic and route requests to one or more
|
460
|
-
# registered targets.
|
450
|
+
# The list of traffic sources to attach to this Auto Scaling group. You
|
451
|
+
# can use any of the following as traffic sources for an Auto Scaling
|
452
|
+
# group: Classic Load Balancer, Application Load Balancer, Gateway Load
|
453
|
+
# Balancer, Network Load Balancer, and VPC Lattice.
|
461
454
|
# @return [AutoScalingGroup]
|
462
455
|
def create_group(options = {})
|
463
456
|
@client.create_auto_scaling_group(options)
|
@@ -298,12 +298,6 @@ module Aws::AutoScaling
|
|
298
298
|
# @!attribute [rw] traffic_sources
|
299
299
|
# The unique identifiers of one or more traffic sources. You can
|
300
300
|
# specify up to 10 traffic sources.
|
301
|
-
#
|
302
|
-
# Currently, you must specify an Amazon Resource Name (ARN) for an
|
303
|
-
# existing VPC Lattice target group. Amazon EC2 Auto Scaling registers
|
304
|
-
# the running instances with the attached target groups. The target
|
305
|
-
# groups receive incoming traffic and route requests to one or more
|
306
|
-
# registered targets.
|
307
301
|
# @return [Array<Types::TrafficSourceIdentifier>]
|
308
302
|
#
|
309
303
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachTrafficSourcesType AWS API Documentation
|
@@ -372,12 +366,7 @@ module Aws::AutoScaling
|
|
372
366
|
# @return [Array<String>]
|
373
367
|
#
|
374
368
|
# @!attribute [rw] health_check_type
|
375
|
-
#
|
376
|
-
# instances in this group. Amazon EC2 health checks are always on.
|
377
|
-
#
|
378
|
-
# The valid values are `EC2` (default), `ELB`, and `VPC_LATTICE`. The
|
379
|
-
# `VPC_LATTICE` health check type is reserved for use with VPC
|
380
|
-
# Lattice, which is in preview release and is subject to change.
|
369
|
+
# A comma-separated list of one or more health check types.
|
381
370
|
# @return [String]
|
382
371
|
#
|
383
372
|
# @!attribute [rw] health_check_grace_period
|
@@ -467,11 +456,7 @@ module Aws::AutoScaling
|
|
467
456
|
# @return [Integer]
|
468
457
|
#
|
469
458
|
# @!attribute [rw] traffic_sources
|
470
|
-
#
|
471
|
-
# release and is subject to change. Do not use this parameter for
|
472
|
-
# production workloads. It is also subject to change.**
|
473
|
-
#
|
474
|
-
# The unique identifiers of the traffic sources.
|
459
|
+
# The traffic sources associated with this Auto Scaling group.
|
475
460
|
# @return [Array<Types::TrafficSourceIdentifier>]
|
476
461
|
#
|
477
462
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AutoScalingGroup AWS API Documentation
|
@@ -607,10 +592,10 @@ module Aws::AutoScaling
|
|
607
592
|
# @return [String]
|
608
593
|
#
|
609
594
|
# @!attribute [rw] health_status
|
610
|
-
# The last reported health status of this instance.
|
595
|
+
# The last reported health status of this instance. `Healthy` means
|
611
596
|
# that the instance is healthy and should remain in service.
|
612
|
-
#
|
613
|
-
#
|
597
|
+
# `Unhealthy` means that the instance is unhealthy and Amazon EC2 Auto
|
598
|
+
# Scaling should terminate and replace it.
|
614
599
|
# @return [String]
|
615
600
|
#
|
616
601
|
# @!attribute [rw] launch_configuration_name
|
@@ -1010,7 +995,7 @@ module Aws::AutoScaling
|
|
1010
995
|
# @!attribute [rw] load_balancer_names
|
1011
996
|
# A list of Classic Load Balancers associated with this Auto Scaling
|
1012
997
|
# group. For Application Load Balancers, Network Load Balancers, and
|
1013
|
-
# Gateway Load
|
998
|
+
# Gateway Load Balancers, specify the `TargetGroupARNs` property
|
1014
999
|
# instead.
|
1015
1000
|
# @return [Array<String>]
|
1016
1001
|
#
|
@@ -1029,14 +1014,12 @@ module Aws::AutoScaling
|
|
1029
1014
|
# @return [Array<String>]
|
1030
1015
|
#
|
1031
1016
|
# @!attribute [rw] health_check_type
|
1032
|
-
#
|
1033
|
-
# instances in this group. Amazon EC2 health checks are always on. For
|
1034
|
-
# more information, see [Health checks for Auto Scaling instances][1]
|
1035
|
-
# in the *Amazon EC2 Auto Scaling User Guide*.
|
1017
|
+
# A comma-separated list of one or more health check types.
|
1036
1018
|
#
|
1037
|
-
# The valid values are `EC2
|
1038
|
-
#
|
1039
|
-
#
|
1019
|
+
# The valid values are `EC2`, `ELB`, and `VPC_LATTICE`. `EC2` is the
|
1020
|
+
# default health check and cannot be disabled. For more information,
|
1021
|
+
# see [Health checks for Auto Scaling instances][1] in the *Amazon EC2
|
1022
|
+
# Auto Scaling User Guide*.
|
1040
1023
|
#
|
1041
1024
|
#
|
1042
1025
|
#
|
@@ -1224,17 +1207,10 @@ module Aws::AutoScaling
|
|
1224
1207
|
# @return [Integer]
|
1225
1208
|
#
|
1226
1209
|
# @!attribute [rw] traffic_sources
|
1227
|
-
#
|
1228
|
-
#
|
1229
|
-
#
|
1230
|
-
#
|
1231
|
-
# The unique identifiers of one or more traffic sources.
|
1232
|
-
#
|
1233
|
-
# Currently, you must specify an Amazon Resource Name (ARN) for an
|
1234
|
-
# existing VPC Lattice target group. Amazon EC2 Auto Scaling registers
|
1235
|
-
# the running instances with the attached target groups. The target
|
1236
|
-
# groups receive incoming traffic and route requests to one or more
|
1237
|
-
# registered targets.
|
1210
|
+
# The list of traffic sources to attach to this Auto Scaling group.
|
1211
|
+
# You can use any of the following as traffic sources for an Auto
|
1212
|
+
# Scaling group: Classic Load Balancer, Application Load Balancer,
|
1213
|
+
# Gateway Load Balancer, Network Load Balancer, and VPC Lattice.
|
1238
1214
|
# @return [Array<Types::TrafficSourceIdentifier>]
|
1239
1215
|
#
|
1240
1216
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroupType AWS API Documentation
|
@@ -2271,8 +2247,16 @@ module Aws::AutoScaling
|
|
2271
2247
|
# @return [String]
|
2272
2248
|
#
|
2273
2249
|
# @!attribute [rw] traffic_source_type
|
2274
|
-
# The
|
2275
|
-
#
|
2250
|
+
# The traffic source type that you want to describe.
|
2251
|
+
#
|
2252
|
+
# The following lists the valid values:
|
2253
|
+
#
|
2254
|
+
# * `elb` if the traffic source is a Classic Load Balancer.
|
2255
|
+
#
|
2256
|
+
# * `elbv2` if the traffic source is a Application Load Balancer,
|
2257
|
+
# Gateway Load Balancer, or Network Load Balancer.
|
2258
|
+
#
|
2259
|
+
# * `vpc-lattice` if the traffic source is VPC Lattice.
|
2276
2260
|
# @return [String]
|
2277
2261
|
#
|
2278
2262
|
# @!attribute [rw] next_token
|
@@ -2498,13 +2482,6 @@ module Aws::AutoScaling
|
|
2498
2482
|
# @!attribute [rw] traffic_sources
|
2499
2483
|
# The unique identifiers of one or more traffic sources you are
|
2500
2484
|
# detaching. You can specify up to 10 traffic sources.
|
2501
|
-
#
|
2502
|
-
# Currently, you must specify an Amazon Resource Name (ARN) for an
|
2503
|
-
# existing VPC Lattice target group. When you detach a target group,
|
2504
|
-
# it enters the `Removing` state while deregistering the instances in
|
2505
|
-
# the group. When all instances are deregistered, then you can no
|
2506
|
-
# longer describe the target group using the DescribeTrafficSources
|
2507
|
-
# API call. The instances continue to run.
|
2508
2485
|
# @return [Array<Types::TrafficSourceIdentifier>]
|
2509
2486
|
#
|
2510
2487
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachTrafficSourcesType AWS API Documentation
|
@@ -2597,13 +2574,13 @@ module Aws::AutoScaling
|
|
2597
2574
|
# The volume size, in GiBs. The following are the supported volumes
|
2598
2575
|
# sizes for each volume type:
|
2599
2576
|
#
|
2600
|
-
# * `gp2` and `gp3
|
2577
|
+
# * `gp2` and `gp3`: 1-16,384
|
2601
2578
|
#
|
2602
|
-
# * `io1
|
2579
|
+
# * `io1`: 4-16,384
|
2603
2580
|
#
|
2604
|
-
# * `st1` and `sc1
|
2581
|
+
# * `st1` and `sc1`: 125-16,384
|
2605
2582
|
#
|
2606
|
-
# * `standard
|
2583
|
+
# * `standard`: 1-1,024
|
2607
2584
|
#
|
2608
2585
|
# You must specify either a `SnapshotId` or a `VolumeSize`. If you
|
2609
2586
|
# specify both `SnapshotId` and `VolumeSize`, the volume size must be
|
@@ -2637,9 +2614,9 @@ module Aws::AutoScaling
|
|
2637
2614
|
#
|
2638
2615
|
# The following are the supported values for each volume type:
|
2639
2616
|
#
|
2640
|
-
# * `gp3
|
2617
|
+
# * `gp3`: 3,000-16,000 IOPS
|
2641
2618
|
#
|
2642
|
-
# * `io1
|
2619
|
+
# * `io1`: 100-64,000 IOPS
|
2643
2620
|
#
|
2644
2621
|
# For `io1` volumes, we guarantee 64,000 IOPS only for [Instances
|
2645
2622
|
# built on the Nitro System][1]. Other instance families guarantee
|
@@ -3144,10 +3121,10 @@ module Aws::AutoScaling
|
|
3144
3121
|
# @return [String]
|
3145
3122
|
#
|
3146
3123
|
# @!attribute [rw] health_status
|
3147
|
-
# The last reported health status of the instance.
|
3124
|
+
# The last reported health status of the instance. `Healthy` means
|
3148
3125
|
# that the instance is healthy and should remain in service.
|
3149
|
-
#
|
3150
|
-
#
|
3126
|
+
# `Unhealthy` means that the instance is unhealthy and that Amazon EC2
|
3127
|
+
# Auto Scaling should terminate and replace it.
|
3151
3128
|
# @return [String]
|
3152
3129
|
#
|
3153
3130
|
# @!attribute [rw] launch_configuration_name
|
@@ -3337,7 +3314,7 @@ module Aws::AutoScaling
|
|
3337
3314
|
# @return [Types::InstanceRefreshProgressDetails]
|
3338
3315
|
#
|
3339
3316
|
# @!attribute [rw] preferences
|
3340
|
-
#
|
3317
|
+
# The preferences for an instance refresh.
|
3341
3318
|
# @return [Types::RefreshPreferences]
|
3342
3319
|
#
|
3343
3320
|
# @!attribute [rw] desired_configuration
|
@@ -7255,7 +7232,7 @@ module Aws::AutoScaling
|
|
7255
7232
|
end
|
7256
7233
|
|
7257
7234
|
# This structure defines the CloudWatch metric to return, along with the
|
7258
|
-
# statistic
|
7235
|
+
# statistic and unit.
|
7259
7236
|
#
|
7260
7237
|
# For more information about the CloudWatch terminology below, see
|
7261
7238
|
# [Amazon CloudWatch concepts][1] in the *Amazon CloudWatch User Guide*.
|
@@ -7265,7 +7242,7 @@ module Aws::AutoScaling
|
|
7265
7242
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html
|
7266
7243
|
#
|
7267
7244
|
# @!attribute [rw] metric
|
7268
|
-
#
|
7245
|
+
# The metric to use.
|
7269
7246
|
# @return [Types::Metric]
|
7270
7247
|
#
|
7271
7248
|
# @!attribute [rw] stat
|
@@ -7273,7 +7250,7 @@ module Aws::AutoScaling
|
|
7273
7250
|
# extended statistic. For a list of valid values, see the table in
|
7274
7251
|
# [Statistics][1] in the *Amazon CloudWatch User Guide*.
|
7275
7252
|
#
|
7276
|
-
# The most commonly used
|
7253
|
+
# The most commonly used metric for scaling is `Average`.
|
7277
7254
|
#
|
7278
7255
|
#
|
7279
7256
|
#
|
@@ -7338,19 +7315,65 @@ module Aws::AutoScaling
|
|
7338
7315
|
include Aws::Structure
|
7339
7316
|
end
|
7340
7317
|
|
7341
|
-
#
|
7342
|
-
#
|
7343
|
-
# Currently, you must specify an Amazon Resource Name (ARN) for an
|
7344
|
-
# existing VPC Lattice target group.
|
7318
|
+
# Identifying information for a traffic source.
|
7345
7319
|
#
|
7346
7320
|
# @!attribute [rw] identifier
|
7347
|
-
#
|
7321
|
+
# Identifies the traffic source.
|
7322
|
+
#
|
7323
|
+
# For Application Load Balancers, Gateway Load Balancers, Network Load
|
7324
|
+
# Balancers, and VPC Lattice, this will be the Amazon Resource Name
|
7325
|
+
# (ARN) for a target group in this account and Region. For Classic
|
7326
|
+
# Load Balancers, this will be the name of the Classic Load Balancer
|
7327
|
+
# in this account and Region.
|
7328
|
+
#
|
7329
|
+
# For example:
|
7330
|
+
#
|
7331
|
+
# * Application Load Balancer ARN:
|
7332
|
+
# `arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/1234567890123456`
|
7333
|
+
#
|
7334
|
+
# * Classic Load Balancer name: `my-classic-load-balancer`
|
7335
|
+
#
|
7336
|
+
# * VPC Lattice ARN:
|
7337
|
+
# `arn:aws:vpc-lattice:us-west-2:123456789012:targetgroup/tg-1234567890123456`
|
7338
|
+
#
|
7339
|
+
# To get the ARN of a target group for a Application Load Balancer,
|
7340
|
+
# Gateway Load Balancer, or Network Load Balancer, or the name of a
|
7341
|
+
# Classic Load Balancer, use the Elastic Load Balancing
|
7342
|
+
# [DescribeTargetGroups][1] and [DescribeLoadBalancers][2] API
|
7343
|
+
# operations.
|
7344
|
+
#
|
7345
|
+
# To get the ARN of a target group for VPC Lattice, use the VPC
|
7346
|
+
# Lattice [GetTargetGroup][3] API operation.
|
7347
|
+
#
|
7348
|
+
#
|
7349
|
+
#
|
7350
|
+
# [1]: https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeTargetGroups.html
|
7351
|
+
# [2]: https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html
|
7352
|
+
# [3]: https://docs.aws.amazon.com/vpc-lattice/latest/APIReference/API_GetTargetGroup.html
|
7353
|
+
# @return [String]
|
7354
|
+
#
|
7355
|
+
# @!attribute [rw] type
|
7356
|
+
# Provides additional context for the value of `Identifier`.
|
7357
|
+
#
|
7358
|
+
# The following lists the valid values:
|
7359
|
+
#
|
7360
|
+
# * `elb` if `Identifier` is the name of a Classic Load Balancer.
|
7361
|
+
#
|
7362
|
+
# * `elbv2` if `Identifier` is the ARN of an Application Load
|
7363
|
+
# Balancer, Gateway Load Balancer, or Network Load Balancer target
|
7364
|
+
# group.
|
7365
|
+
#
|
7366
|
+
# * `vpc-lattice` if `Identifier` is the ARN of a VPC Lattice target
|
7367
|
+
# group.
|
7368
|
+
#
|
7369
|
+
# Required if the identifier is the name of a Classic Load Balancer.
|
7348
7370
|
# @return [String]
|
7349
7371
|
#
|
7350
7372
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TrafficSourceIdentifier AWS API Documentation
|
7351
7373
|
#
|
7352
7374
|
class TrafficSourceIdentifier < Struct.new(
|
7353
|
-
:identifier
|
7375
|
+
:identifier,
|
7376
|
+
:type)
|
7354
7377
|
SENSITIVE = []
|
7355
7378
|
include Aws::Structure
|
7356
7379
|
end
|
@@ -7358,37 +7381,63 @@ module Aws::AutoScaling
|
|
7358
7381
|
# Describes the state of a traffic source.
|
7359
7382
|
#
|
7360
7383
|
# @!attribute [rw] traffic_source
|
7361
|
-
#
|
7362
|
-
# Amazon Resource Name (ARN) for a VPC Lattice target group.
|
7384
|
+
# This is replaced by `Identifier`.
|
7363
7385
|
# @return [String]
|
7364
7386
|
#
|
7365
7387
|
# @!attribute [rw] state
|
7366
|
-
#
|
7367
|
-
#
|
7388
|
+
# Describes the current state of a traffic source.
|
7389
|
+
#
|
7390
|
+
# The state values are as follows:
|
7368
7391
|
#
|
7369
7392
|
# * `Adding` - The Auto Scaling instances are being registered with
|
7370
|
-
# the target group.
|
7393
|
+
# the load balancer or target group.
|
7371
7394
|
#
|
7372
|
-
# * `Added` - All Auto Scaling instances are registered with the
|
7373
|
-
# target group.
|
7395
|
+
# * `Added` - All Auto Scaling instances are registered with the load
|
7396
|
+
# balancer or target group.
|
7374
7397
|
#
|
7375
|
-
# * `InService` -
|
7376
|
-
# `
|
7398
|
+
# * `InService` - For an Elastic Load Balancing load balancer or
|
7399
|
+
# target group, at least one Auto Scaling instance passed an `ELB`
|
7400
|
+
# health check. For VPC Lattice, at least one Auto Scaling instance
|
7401
|
+
# passed an `VPC_LATTICE` health check.
|
7377
7402
|
#
|
7378
7403
|
# * `Removing` - The Auto Scaling instances are being deregistered
|
7379
|
-
# from the target group. If connection draining
|
7404
|
+
# from the load balancer or target group. If connection draining
|
7405
|
+
# (deregistration delay) is enabled, Elastic Load Balancing or VPC
|
7380
7406
|
# Lattice waits for in-flight requests to complete before
|
7381
7407
|
# deregistering the instances.
|
7382
7408
|
#
|
7383
7409
|
# * `Removed` - All Auto Scaling instances are deregistered from the
|
7384
|
-
# target group.
|
7410
|
+
# load balancer or target group.
|
7411
|
+
# @return [String]
|
7412
|
+
#
|
7413
|
+
# @!attribute [rw] identifier
|
7414
|
+
# The unique identifier of the traffic source.
|
7415
|
+
# @return [String]
|
7416
|
+
#
|
7417
|
+
# @!attribute [rw] type
|
7418
|
+
# Provides additional context for the value of `Identifier`.
|
7419
|
+
#
|
7420
|
+
# The following lists the valid values:
|
7421
|
+
#
|
7422
|
+
# * `elb` if `Identifier` is the name of a Classic Load Balancer.
|
7423
|
+
#
|
7424
|
+
# * `elbv2` if `Identifier` is the ARN of an Application Load
|
7425
|
+
# Balancer, Gateway Load Balancer, or Network Load Balancer target
|
7426
|
+
# group.
|
7427
|
+
#
|
7428
|
+
# * `vpc-lattice` if `Identifier` is the ARN of a VPC Lattice target
|
7429
|
+
# group.
|
7430
|
+
#
|
7431
|
+
# Required if the identifier is the name of a Classic Load Balancer.
|
7385
7432
|
# @return [String]
|
7386
7433
|
#
|
7387
7434
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TrafficSourceState AWS API Documentation
|
7388
7435
|
#
|
7389
7436
|
class TrafficSourceState < Struct.new(
|
7390
7437
|
:traffic_source,
|
7391
|
-
:state
|
7438
|
+
:state,
|
7439
|
+
:identifier,
|
7440
|
+
:type)
|
7392
7441
|
SENSITIVE = []
|
7393
7442
|
include Aws::Structure
|
7394
7443
|
end
|
@@ -7462,12 +7511,16 @@ module Aws::AutoScaling
|
|
7462
7511
|
# @return [Array<String>]
|
7463
7512
|
#
|
7464
7513
|
# @!attribute [rw] health_check_type
|
7465
|
-
#
|
7466
|
-
#
|
7514
|
+
# A comma-separated list of one or more health check types.
|
7515
|
+
#
|
7516
|
+
# The valid values are `EC2`, `ELB`, and `VPC_LATTICE`. `EC2` is the
|
7517
|
+
# default health check and cannot be disabled. For more information,
|
7518
|
+
# see [Health checks for Auto Scaling instances][1] in the *Amazon EC2
|
7519
|
+
# Auto Scaling User Guide*.
|
7467
7520
|
#
|
7468
|
-
#
|
7469
|
-
#
|
7470
|
-
#
|
7521
|
+
#
|
7522
|
+
#
|
7523
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html
|
7471
7524
|
# @return [String]
|
7472
7525
|
#
|
7473
7526
|
# @!attribute [rw] health_check_grace_period
|
data/lib/aws-sdk-autoscaling.rb
CHANGED
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.
|
4
|
+
version: 1.87.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-
|
11
|
+
date: 2023-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|