aws-sdk-autoscaling 1.83.0 → 1.84.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 +48 -17
- data/lib/aws-sdk-autoscaling/client.rb +246 -34
- data/lib/aws-sdk-autoscaling/client_api.rb +95 -3
- data/lib/aws-sdk-autoscaling/endpoint_parameters.rb +3 -0
- data/lib/aws-sdk-autoscaling/endpoint_provider.rb +81 -82
- data/lib/aws-sdk-autoscaling/endpoints.rb +42 -0
- data/lib/aws-sdk-autoscaling/plugins/endpoints.rb +6 -0
- data/lib/aws-sdk-autoscaling/resource.rb +37 -19
- data/lib/aws-sdk-autoscaling/types.rb +345 -2038
- 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: d412856564b1c82dcee7eade2a30a9e04e2c2893535d656fabd8e9f36aab0ebe
|
4
|
+
data.tar.gz: 3a63a2500c9d2a5ab1b916343fa200b30ce1bf5d291ac1edae3e1960de5af59d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55162f8cd0ae8ac51ec68caacf25a368e3606321d6b9ae4c874cd145dc1992fb6bd18f208439df01bb935d7549b021a5c203649c65995a2f212e7de1a774e1b3
|
7
|
+
data.tar.gz: 7725c579d3b6c103e7cc7a3f3755822fbd2b6d789944a8de47549bc2673131c787d9416b4b9381fd95ad94599cbb5502d4ce63b1cbd0fe1bee0fb4e9827c0305
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.84.0 (2022-12-08)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Adds support for metric math for target tracking scaling policies, saving you the cost and effort of publishing a custom metric to CloudWatch. Also adds support for VPC Lattice by adding the Attach/Detach/DescribeTrafficSources APIs and a new health check type to the CreateAutoScalingGroup API.
|
8
|
+
|
4
9
|
1.83.0 (2022-11-10)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.84.0
|
@@ -109,10 +109,12 @@ module Aws::AutoScaling
|
|
109
109
|
data[:target_group_arns]
|
110
110
|
end
|
111
111
|
|
112
|
-
#
|
113
|
-
#
|
114
|
-
#
|
115
|
-
#
|
112
|
+
# Determines whether any additional health checks are performed on the
|
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.
|
116
118
|
# @return [String]
|
117
119
|
def health_check_type
|
118
120
|
data[:health_check_type]
|
@@ -230,6 +232,12 @@ module Aws::AutoScaling
|
|
230
232
|
data[:default_instance_warmup]
|
231
233
|
end
|
232
234
|
|
235
|
+
# The unique identifiers of the traffic sources.
|
236
|
+
# @return [Array<Types::TrafficSourceIdentifier>]
|
237
|
+
def traffic_sources
|
238
|
+
data[:traffic_sources]
|
239
|
+
end
|
240
|
+
|
233
241
|
# @!endgroup
|
234
242
|
|
235
243
|
# @return [Client]
|
@@ -651,16 +659,38 @@ module Aws::AutoScaling
|
|
651
659
|
# resource_label: "XmlStringMaxLen1023",
|
652
660
|
# },
|
653
661
|
# customized_metric_specification: {
|
654
|
-
# metric_name: "MetricName",
|
655
|
-
# namespace: "MetricNamespace",
|
662
|
+
# metric_name: "MetricName",
|
663
|
+
# namespace: "MetricNamespace",
|
656
664
|
# dimensions: [
|
657
665
|
# {
|
658
666
|
# name: "MetricDimensionName", # required
|
659
667
|
# value: "MetricDimensionValue", # required
|
660
668
|
# },
|
661
669
|
# ],
|
662
|
-
# statistic: "Average", #
|
670
|
+
# statistic: "Average", # accepts Average, Minimum, Maximum, SampleCount, Sum
|
663
671
|
# unit: "MetricUnit",
|
672
|
+
# metrics: [
|
673
|
+
# {
|
674
|
+
# id: "XmlStringMaxLen255", # required
|
675
|
+
# expression: "XmlStringMaxLen2047",
|
676
|
+
# metric_stat: {
|
677
|
+
# metric: { # required
|
678
|
+
# namespace: "MetricNamespace", # required
|
679
|
+
# metric_name: "MetricName", # required
|
680
|
+
# dimensions: [
|
681
|
+
# {
|
682
|
+
# name: "MetricDimensionName", # required
|
683
|
+
# value: "MetricDimensionValue", # required
|
684
|
+
# },
|
685
|
+
# ],
|
686
|
+
# },
|
687
|
+
# stat: "XmlStringMetricStat", # required
|
688
|
+
# unit: "MetricUnit",
|
689
|
+
# },
|
690
|
+
# label: "XmlStringMetricLabel",
|
691
|
+
# return_data: false,
|
692
|
+
# },
|
693
|
+
# ],
|
664
694
|
# },
|
665
695
|
# target_value: 1.0, # required
|
666
696
|
# disable_scale_in: false,
|
@@ -1254,19 +1284,20 @@ module Aws::AutoScaling
|
|
1254
1284
|
# @option options [Array<String>] :availability_zones
|
1255
1285
|
# One or more Availability Zones for the group.
|
1256
1286
|
# @option options [String] :health_check_type
|
1257
|
-
#
|
1258
|
-
#
|
1259
|
-
#
|
1260
|
-
#
|
1287
|
+
# Determines whether any additional health checks are performed on the
|
1288
|
+
# instances in this group. Amazon EC2 health checks are always on.
|
1289
|
+
#
|
1290
|
+
# The valid values are `EC2` (default), `ELB`, and `VPC_LATTICE`. The
|
1291
|
+
# `VPC_LATTICE` health check type is reserved for use with VPC Lattice,
|
1292
|
+
# which is in preview release and is subject to change.
|
1261
1293
|
# @option options [Integer] :health_check_grace_period
|
1262
1294
|
# The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
|
1263
1295
|
# before checking the health status of an EC2 instance that has come
|
1264
|
-
# into service and marking it unhealthy due to a failed
|
1265
|
-
#
|
1266
|
-
#
|
1267
|
-
#
|
1268
|
-
#
|
1269
|
-
# Scaling User Guide*.
|
1296
|
+
# into service and marking it unhealthy due to a failed health check.
|
1297
|
+
# This is useful if your instances do not immediately pass their health
|
1298
|
+
# checks after they enter the `InService` state. For more information,
|
1299
|
+
# see [Set the health check grace period for an Auto Scaling group][1]
|
1300
|
+
# in the *Amazon EC2 Auto Scaling User Guide*.
|
1270
1301
|
#
|
1271
1302
|
#
|
1272
1303
|
#
|
@@ -457,7 +457,7 @@ module Aws::AutoScaling
|
|
457
457
|
# The name of the Auto Scaling group.
|
458
458
|
#
|
459
459
|
# @option params [required, Array<String>] :target_group_arns
|
460
|
-
# The Amazon Resource Names (
|
460
|
+
# The Amazon Resource Names (ARNs) of the target groups. You can specify
|
461
461
|
# up to 10 target groups. To get the ARN of a target group, use the
|
462
462
|
# Elastic Load Balancing [DescribeTargetGroups][1] API operation.
|
463
463
|
#
|
@@ -557,6 +557,55 @@ module Aws::AutoScaling
|
|
557
557
|
req.send_request(options)
|
558
558
|
end
|
559
559
|
|
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
|
+
# Attaches one or more traffic sources to the specified Auto Scaling
|
565
|
+
# group.
|
566
|
+
#
|
567
|
+
# To describe the traffic sources for an Auto Scaling group, call the
|
568
|
+
# DescribeTrafficSources API. To detach a traffic source from the Auto
|
569
|
+
# Scaling group, call the DetachTrafficSources API.
|
570
|
+
#
|
571
|
+
# This operation is additive and does not detach existing traffic
|
572
|
+
# sources from the Auto Scaling group.
|
573
|
+
#
|
574
|
+
# @option params [required, String] :auto_scaling_group_name
|
575
|
+
# The name of the Auto Scaling group.
|
576
|
+
#
|
577
|
+
# @option params [required, Array<Types::TrafficSourceIdentifier>] :traffic_sources
|
578
|
+
# The unique identifiers of one or more traffic sources. You can specify
|
579
|
+
# up to 10 traffic sources.
|
580
|
+
#
|
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
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
588
|
+
#
|
589
|
+
# @example Request syntax with placeholder values
|
590
|
+
#
|
591
|
+
# resp = client.attach_traffic_sources({
|
592
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
593
|
+
# traffic_sources: [ # required
|
594
|
+
# {
|
595
|
+
# identifier: "XmlStringMaxLen511",
|
596
|
+
# },
|
597
|
+
# ],
|
598
|
+
# })
|
599
|
+
#
|
600
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachTrafficSources AWS API Documentation
|
601
|
+
#
|
602
|
+
# @overload attach_traffic_sources(params = {})
|
603
|
+
# @param [Hash] params ({})
|
604
|
+
def attach_traffic_sources(params = {}, options = {})
|
605
|
+
req = build_request(:attach_traffic_sources, params)
|
606
|
+
req.send_request(options)
|
607
|
+
end
|
608
|
+
|
560
609
|
# Deletes one or more scheduled actions for the specified Auto Scaling
|
561
610
|
# group.
|
562
611
|
#
|
@@ -922,25 +971,27 @@ module Aws::AutoScaling
|
|
922
971
|
# Gateway Load Balancer, specify the `TargetGroupARNs` property instead.
|
923
972
|
#
|
924
973
|
# @option params [Array<String>] :target_group_arns
|
925
|
-
# The Amazon Resource Names (ARN) of the
|
926
|
-
# the Auto Scaling group. Instances are
|
927
|
-
# target groups. The target groups
|
928
|
-
# requests to one or more registered
|
929
|
-
# [Use Elastic Load Balancing to
|
930
|
-
# in your Auto Scaling group][1]
|
931
|
-
# Guide*.
|
974
|
+
# The Amazon Resource Names (ARN) of the Elastic Load Balancing target
|
975
|
+
# groups to associate with the Auto Scaling group. Instances are
|
976
|
+
# registered as targets with the target groups. The target groups
|
977
|
+
# receive incoming traffic and route requests to one or more registered
|
978
|
+
# targets. For more information, see [Use Elastic Load Balancing to
|
979
|
+
# distribute traffic across the instances in your Auto Scaling group][1]
|
980
|
+
# in the *Amazon EC2 Auto Scaling User Guide*.
|
932
981
|
#
|
933
982
|
#
|
934
983
|
#
|
935
984
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html
|
936
985
|
#
|
937
986
|
# @option params [String] :health_check_type
|
938
|
-
#
|
939
|
-
#
|
940
|
-
#
|
941
|
-
#
|
942
|
-
#
|
943
|
-
#
|
987
|
+
# Determines whether any additional health checks are performed on the
|
988
|
+
# instances in this group. Amazon EC2 health checks are always on. For
|
989
|
+
# more information, see [Health checks for Auto Scaling instances][1] in
|
990
|
+
# the *Amazon EC2 Auto Scaling User Guide*.
|
991
|
+
#
|
992
|
+
# The valid values are `EC2` (default), `ELB`, and `VPC_LATTICE`. The
|
993
|
+
# `VPC_LATTICE` health check type is reserved for use with VPC Lattice,
|
994
|
+
# which is in preview release and is subject to change.
|
944
995
|
#
|
945
996
|
#
|
946
997
|
#
|
@@ -949,12 +1000,11 @@ module Aws::AutoScaling
|
|
949
1000
|
# @option params [Integer] :health_check_grace_period
|
950
1001
|
# The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
|
951
1002
|
# before checking the health status of an EC2 instance that has come
|
952
|
-
# into service and marking it unhealthy due to a failed
|
953
|
-
#
|
954
|
-
#
|
955
|
-
#
|
956
|
-
#
|
957
|
-
# Scaling User Guide*.
|
1003
|
+
# into service and marking it unhealthy due to a failed health check.
|
1004
|
+
# This is useful if your instances do not immediately pass their health
|
1005
|
+
# checks after they enter the `InService` state. For more information,
|
1006
|
+
# see [Set the health check grace period for an Auto Scaling group][1]
|
1007
|
+
# in the *Amazon EC2 Auto Scaling User Guide*.
|
958
1008
|
#
|
959
1009
|
# Default: `0` seconds
|
960
1010
|
#
|
@@ -1110,6 +1160,19 @@ module Aws::AutoScaling
|
|
1110
1160
|
#
|
1111
1161
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-default-instance-warmup.html
|
1112
1162
|
#
|
1163
|
+
# @option params [Array<Types::TrafficSourceIdentifier>] :traffic_sources
|
1164
|
+
# **Reserved for use with Amazon VPC Lattice, which is in preview
|
1165
|
+
# release and is subject to change. Do not use this parameter for
|
1166
|
+
# production workloads. It is also subject to change.**
|
1167
|
+
#
|
1168
|
+
# The unique identifiers of one or more traffic sources.
|
1169
|
+
#
|
1170
|
+
# Currently, you must specify an Amazon Resource Name (ARN) for an
|
1171
|
+
# existing VPC Lattice target group. Amazon EC2 Auto Scaling registers
|
1172
|
+
# the running instances with the attached target groups. The target
|
1173
|
+
# groups receive incoming traffic and route requests to one or more
|
1174
|
+
# registered targets.
|
1175
|
+
#
|
1113
1176
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1114
1177
|
#
|
1115
1178
|
#
|
@@ -1320,6 +1383,11 @@ module Aws::AutoScaling
|
|
1320
1383
|
# context: "Context",
|
1321
1384
|
# desired_capacity_type: "XmlStringMaxLen255",
|
1322
1385
|
# default_instance_warmup: 1,
|
1386
|
+
# traffic_sources: [
|
1387
|
+
# {
|
1388
|
+
# identifier: "XmlStringMaxLen511",
|
1389
|
+
# },
|
1390
|
+
# ],
|
1323
1391
|
# })
|
1324
1392
|
#
|
1325
1393
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroup AWS API Documentation
|
@@ -2403,6 +2471,8 @@ module Aws::AutoScaling
|
|
2403
2471
|
# resp.auto_scaling_groups[0].context #=> String
|
2404
2472
|
# resp.auto_scaling_groups[0].desired_capacity_type #=> String
|
2405
2473
|
# resp.auto_scaling_groups[0].default_instance_warmup #=> Integer
|
2474
|
+
# resp.auto_scaling_groups[0].traffic_sources #=> Array
|
2475
|
+
# resp.auto_scaling_groups[0].traffic_sources[0].identifier #=> String
|
2406
2476
|
# resp.next_token #=> String
|
2407
2477
|
#
|
2408
2478
|
#
|
@@ -2982,6 +3052,12 @@ module Aws::AutoScaling
|
|
2982
3052
|
# distribute traffic across the instances in your Auto Scaling group][2]
|
2983
3053
|
# in the *Amazon EC2 Auto Scaling User Guide*.
|
2984
3054
|
#
|
3055
|
+
# <note markdown="1"> You can use this operation to describe target groups that were
|
3056
|
+
# attached by using AttachLoadBalancerTargetGroups, but not for target
|
3057
|
+
# groups that were attached by using AttachTrafficSources.
|
3058
|
+
#
|
3059
|
+
# </note>
|
3060
|
+
#
|
2985
3061
|
#
|
2986
3062
|
#
|
2987
3063
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ts-as-healthchecks.html
|
@@ -3388,6 +3464,18 @@ module Aws::AutoScaling
|
|
3388
3464
|
# resp.scaling_policies[0].target_tracking_configuration.customized_metric_specification.dimensions[0].value #=> String
|
3389
3465
|
# resp.scaling_policies[0].target_tracking_configuration.customized_metric_specification.statistic #=> String, one of "Average", "Minimum", "Maximum", "SampleCount", "Sum"
|
3390
3466
|
# resp.scaling_policies[0].target_tracking_configuration.customized_metric_specification.unit #=> String
|
3467
|
+
# resp.scaling_policies[0].target_tracking_configuration.customized_metric_specification.metrics #=> Array
|
3468
|
+
# resp.scaling_policies[0].target_tracking_configuration.customized_metric_specification.metrics[0].id #=> String
|
3469
|
+
# resp.scaling_policies[0].target_tracking_configuration.customized_metric_specification.metrics[0].expression #=> String
|
3470
|
+
# resp.scaling_policies[0].target_tracking_configuration.customized_metric_specification.metrics[0].metric_stat.metric.namespace #=> String
|
3471
|
+
# resp.scaling_policies[0].target_tracking_configuration.customized_metric_specification.metrics[0].metric_stat.metric.metric_name #=> String
|
3472
|
+
# resp.scaling_policies[0].target_tracking_configuration.customized_metric_specification.metrics[0].metric_stat.metric.dimensions #=> Array
|
3473
|
+
# resp.scaling_policies[0].target_tracking_configuration.customized_metric_specification.metrics[0].metric_stat.metric.dimensions[0].name #=> String
|
3474
|
+
# resp.scaling_policies[0].target_tracking_configuration.customized_metric_specification.metrics[0].metric_stat.metric.dimensions[0].value #=> String
|
3475
|
+
# resp.scaling_policies[0].target_tracking_configuration.customized_metric_specification.metrics[0].metric_stat.stat #=> String
|
3476
|
+
# resp.scaling_policies[0].target_tracking_configuration.customized_metric_specification.metrics[0].metric_stat.unit #=> String
|
3477
|
+
# resp.scaling_policies[0].target_tracking_configuration.customized_metric_specification.metrics[0].label #=> String
|
3478
|
+
# resp.scaling_policies[0].target_tracking_configuration.customized_metric_specification.metrics[0].return_data #=> Boolean
|
3391
3479
|
# resp.scaling_policies[0].target_tracking_configuration.target_value #=> Float
|
3392
3480
|
# resp.scaling_policies[0].target_tracking_configuration.disable_scale_in #=> Boolean
|
3393
3481
|
# resp.scaling_policies[0].enabled #=> Boolean
|
@@ -3876,6 +3964,58 @@ module Aws::AutoScaling
|
|
3876
3964
|
req.send_request(options)
|
3877
3965
|
end
|
3878
3966
|
|
3967
|
+
# **Reserved for use with Amazon VPC Lattice, which is in preview and
|
3968
|
+
# subject to change. Do not use this API for production workloads. This
|
3969
|
+
# API is also subject to change.**
|
3970
|
+
#
|
3971
|
+
# Gets information about the traffic sources for the specified Auto
|
3972
|
+
# Scaling group.
|
3973
|
+
#
|
3974
|
+
# @option params [required, String] :auto_scaling_group_name
|
3975
|
+
# The name of the Auto Scaling group.
|
3976
|
+
#
|
3977
|
+
# @option params [required, String] :traffic_source_type
|
3978
|
+
# The type of traffic source you are describing. Currently, the only
|
3979
|
+
# valid value is `vpc-lattice`.
|
3980
|
+
#
|
3981
|
+
# @option params [String] :next_token
|
3982
|
+
# The token for the next set of items to return. (You received this
|
3983
|
+
# token from a previous call.)
|
3984
|
+
#
|
3985
|
+
# @option params [Integer] :max_records
|
3986
|
+
# The maximum number of items to return with this call. The maximum
|
3987
|
+
# value is `50`.
|
3988
|
+
#
|
3989
|
+
# @return [Types::DescribeTrafficSourcesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3990
|
+
#
|
3991
|
+
# * {Types::DescribeTrafficSourcesResponse#traffic_sources #traffic_sources} => Array<Types::TrafficSourceState>
|
3992
|
+
# * {Types::DescribeTrafficSourcesResponse#next_token #next_token} => String
|
3993
|
+
#
|
3994
|
+
# @example Request syntax with placeholder values
|
3995
|
+
#
|
3996
|
+
# resp = client.describe_traffic_sources({
|
3997
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3998
|
+
# traffic_source_type: "XmlStringMaxLen255", # required
|
3999
|
+
# next_token: "XmlString",
|
4000
|
+
# max_records: 1,
|
4001
|
+
# })
|
4002
|
+
#
|
4003
|
+
# @example Response structure
|
4004
|
+
#
|
4005
|
+
# resp.traffic_sources #=> Array
|
4006
|
+
# resp.traffic_sources[0].traffic_source #=> String
|
4007
|
+
# resp.traffic_sources[0].state #=> String
|
4008
|
+
# resp.next_token #=> String
|
4009
|
+
#
|
4010
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTrafficSources AWS API Documentation
|
4011
|
+
#
|
4012
|
+
# @overload describe_traffic_sources(params = {})
|
4013
|
+
# @param [Hash] params ({})
|
4014
|
+
def describe_traffic_sources(params = {}, options = {})
|
4015
|
+
req = build_request(:describe_traffic_sources, params)
|
4016
|
+
req.send_request(options)
|
4017
|
+
end
|
4018
|
+
|
3879
4019
|
# Gets information about a warm pool and its instances.
|
3880
4020
|
#
|
3881
4021
|
# For more information, see [Warm pools for Amazon EC2 Auto Scaling][1]
|
@@ -4046,6 +4186,12 @@ module Aws::AutoScaling
|
|
4046
4186
|
# the DescribeLoadBalancerTargetGroups API call. The instances remain
|
4047
4187
|
# running.
|
4048
4188
|
#
|
4189
|
+
# <note markdown="1"> You can use this operation to detach target groups that were attached
|
4190
|
+
# by using AttachLoadBalancerTargetGroups, but not for target groups
|
4191
|
+
# that were attached by using AttachTrafficSources.
|
4192
|
+
#
|
4193
|
+
# </note>
|
4194
|
+
#
|
4049
4195
|
# @option params [required, String] :auto_scaling_group_name
|
4050
4196
|
# The name of the Auto Scaling group.
|
4051
4197
|
#
|
@@ -4132,6 +4278,49 @@ module Aws::AutoScaling
|
|
4132
4278
|
req.send_request(options)
|
4133
4279
|
end
|
4134
4280
|
|
4281
|
+
# **Reserved for use with Amazon VPC Lattice, which is in preview and
|
4282
|
+
# subject to change. Do not use this API for production workloads. This
|
4283
|
+
# API is also subject to change.**
|
4284
|
+
#
|
4285
|
+
# Detaches one or more traffic sources from the specified Auto Scaling
|
4286
|
+
# group.
|
4287
|
+
#
|
4288
|
+
# @option params [required, String] :auto_scaling_group_name
|
4289
|
+
# The name of the Auto Scaling group.
|
4290
|
+
#
|
4291
|
+
# @option params [required, Array<Types::TrafficSourceIdentifier>] :traffic_sources
|
4292
|
+
# The unique identifiers of one or more traffic sources you are
|
4293
|
+
# detaching. You can specify up to 10 traffic sources.
|
4294
|
+
#
|
4295
|
+
# Currently, you must specify an Amazon Resource Name (ARN) for an
|
4296
|
+
# existing VPC Lattice target group. When you detach a target group, it
|
4297
|
+
# enters the `Removing` state while deregistering the instances in the
|
4298
|
+
# group. When all instances are deregistered, then you can no longer
|
4299
|
+
# describe the target group using the DescribeTrafficSources API call.
|
4300
|
+
# The instances continue to run.
|
4301
|
+
#
|
4302
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
4303
|
+
#
|
4304
|
+
# @example Request syntax with placeholder values
|
4305
|
+
#
|
4306
|
+
# resp = client.detach_traffic_sources({
|
4307
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4308
|
+
# traffic_sources: [ # required
|
4309
|
+
# {
|
4310
|
+
# identifier: "XmlStringMaxLen511",
|
4311
|
+
# },
|
4312
|
+
# ],
|
4313
|
+
# })
|
4314
|
+
#
|
4315
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachTrafficSources AWS API Documentation
|
4316
|
+
#
|
4317
|
+
# @overload detach_traffic_sources(params = {})
|
4318
|
+
# @param [Hash] params ({})
|
4319
|
+
def detach_traffic_sources(params = {}, options = {})
|
4320
|
+
req = build_request(:detach_traffic_sources, params)
|
4321
|
+
req.send_request(options)
|
4322
|
+
end
|
4323
|
+
|
4135
4324
|
# Disables group metrics collection for the specified Auto Scaling
|
4136
4325
|
# group.
|
4137
4326
|
#
|
@@ -5152,16 +5341,38 @@ module Aws::AutoScaling
|
|
5152
5341
|
# resource_label: "XmlStringMaxLen1023",
|
5153
5342
|
# },
|
5154
5343
|
# customized_metric_specification: {
|
5155
|
-
# metric_name: "MetricName",
|
5156
|
-
# namespace: "MetricNamespace",
|
5344
|
+
# metric_name: "MetricName",
|
5345
|
+
# namespace: "MetricNamespace",
|
5157
5346
|
# dimensions: [
|
5158
5347
|
# {
|
5159
5348
|
# name: "MetricDimensionName", # required
|
5160
5349
|
# value: "MetricDimensionValue", # required
|
5161
5350
|
# },
|
5162
5351
|
# ],
|
5163
|
-
# statistic: "Average", #
|
5352
|
+
# statistic: "Average", # accepts Average, Minimum, Maximum, SampleCount, Sum
|
5164
5353
|
# unit: "MetricUnit",
|
5354
|
+
# metrics: [
|
5355
|
+
# {
|
5356
|
+
# id: "XmlStringMaxLen255", # required
|
5357
|
+
# expression: "XmlStringMaxLen2047",
|
5358
|
+
# metric_stat: {
|
5359
|
+
# metric: { # required
|
5360
|
+
# namespace: "MetricNamespace", # required
|
5361
|
+
# metric_name: "MetricName", # required
|
5362
|
+
# dimensions: [
|
5363
|
+
# {
|
5364
|
+
# name: "MetricDimensionName", # required
|
5365
|
+
# value: "MetricDimensionValue", # required
|
5366
|
+
# },
|
5367
|
+
# ],
|
5368
|
+
# },
|
5369
|
+
# stat: "XmlStringMetricStat", # required
|
5370
|
+
# unit: "MetricUnit",
|
5371
|
+
# },
|
5372
|
+
# label: "XmlStringMetricLabel",
|
5373
|
+
# return_data: false,
|
5374
|
+
# },
|
5375
|
+
# ],
|
5165
5376
|
# },
|
5166
5377
|
# target_value: 1.0, # required
|
5167
5378
|
# disable_scale_in: false,
|
@@ -6303,20 +6514,21 @@ module Aws::AutoScaling
|
|
6303
6514
|
# One or more Availability Zones for the group.
|
6304
6515
|
#
|
6305
6516
|
# @option params [String] :health_check_type
|
6306
|
-
#
|
6307
|
-
#
|
6308
|
-
#
|
6309
|
-
#
|
6517
|
+
# Determines whether any additional health checks are performed on the
|
6518
|
+
# instances in this group. Amazon EC2 health checks are always on.
|
6519
|
+
#
|
6520
|
+
# The valid values are `EC2` (default), `ELB`, and `VPC_LATTICE`. The
|
6521
|
+
# `VPC_LATTICE` health check type is reserved for use with VPC Lattice,
|
6522
|
+
# which is in preview release and is subject to change.
|
6310
6523
|
#
|
6311
6524
|
# @option params [Integer] :health_check_grace_period
|
6312
6525
|
# The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
|
6313
6526
|
# before checking the health status of an EC2 instance that has come
|
6314
|
-
# into service and marking it unhealthy due to a failed
|
6315
|
-
#
|
6316
|
-
#
|
6317
|
-
#
|
6318
|
-
#
|
6319
|
-
# Scaling User Guide*.
|
6527
|
+
# into service and marking it unhealthy due to a failed health check.
|
6528
|
+
# This is useful if your instances do not immediately pass their health
|
6529
|
+
# checks after they enter the `InService` state. For more information,
|
6530
|
+
# see [Set the health check grace period for an Auto Scaling group][1]
|
6531
|
+
# in the *Amazon EC2 Auto Scaling User Guide*.
|
6320
6532
|
#
|
6321
6533
|
#
|
6322
6534
|
#
|
@@ -6591,7 +6803,7 @@ module Aws::AutoScaling
|
|
6591
6803
|
params: params,
|
6592
6804
|
config: config)
|
6593
6805
|
context[:gem_name] = 'aws-sdk-autoscaling'
|
6594
|
-
context[:gem_version] = '1.
|
6806
|
+
context[:gem_version] = '1.84.0'
|
6595
6807
|
Seahorse::Client::Request.new(handlers, context)
|
6596
6808
|
end
|
6597
6809
|
|