aws-sdk-autoscaling 1.82.0 → 1.84.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: 790042ecc234e48a337b58238a9dbac69797666546cd5bdb196e4dfcfaac1bee
4
- data.tar.gz: 854c0d721b133c23dcbd93bc844ba7dc75a3727920146ccf882d8344e19ef07c
3
+ metadata.gz: d412856564b1c82dcee7eade2a30a9e04e2c2893535d656fabd8e9f36aab0ebe
4
+ data.tar.gz: 3a63a2500c9d2a5ab1b916343fa200b30ce1bf5d291ac1edae3e1960de5af59d
5
5
  SHA512:
6
- metadata.gz: db95546b1b14d8ff200f9466563a5ff430da1be04ceb812cbdad47232b7677f2843f0d04e79571e176b8a80f4fc7d839e4d56d8fc504ee6176bcaf92b00e0ad8
7
- data.tar.gz: e6a4b56cefed30d07a9550ef3ae33325747dd1117d7945cccb805d068387a295a6551217ee2c3c42b7da0c1a6ff9092285a5400599237e09de687e5192d9de18
6
+ metadata.gz: 55162f8cd0ae8ac51ec68caacf25a368e3606321d6b9ae4c874cd145dc1992fb6bd18f208439df01bb935d7549b021a5c203649c65995a2f212e7de1a774e1b3
7
+ data.tar.gz: 7725c579d3b6c103e7cc7a3f3755822fbd2b6d789944a8de47549bc2673131c787d9416b4b9381fd95ad94599cbb5502d4ce63b1cbd0fe1bee0fb4e9827c0305
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
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
+
9
+ 1.83.0 (2022-11-10)
10
+ ------------------
11
+
12
+ * Feature - This release adds a new price capacity optimized allocation strategy for Spot Instances to help customers optimize provisioning of Spot Instances via EC2 Auto Scaling, EC2 Fleet, and Spot Fleet. It allocates Spot Instances based on both spare capacity availability and Spot Instance price.
13
+
4
14
  1.82.0 (2022-11-07)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.82.0
1
+ 1.84.0
@@ -109,10 +109,12 @@ module Aws::AutoScaling
109
109
  data[:target_group_arns]
110
110
  end
111
111
 
112
- # The service to use for the health checks. The valid values are `EC2`
113
- # and `ELB`. If you configure an Auto Scaling group to use `ELB` health
114
- # checks, it considers the instance unhealthy if it fails either the EC2
115
- # status checks or the load balancer health checks.
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", # required
655
- # namespace: "MetricNamespace", # required
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", # required, accepts Average, Minimum, Maximum, SampleCount, Sum
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,22 +1284,24 @@ 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
- # The service to use for the health checks. The valid values are `EC2`
1258
- # and `ELB`. If you configure an Auto Scaling group to use `ELB` health
1259
- # checks, it considers the instance unhealthy if it fails either the EC2
1260
- # status checks or the load balancer health checks.
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 Elastic Load
1265
- # Balancing or custom health check. This is useful if your instances do
1266
- # not immediately pass these health checks after they enter the
1267
- # `InService` state. For more information, see [Health check grace
1268
- # period][1] in the *Amazon EC2 Auto 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*.
1269
1301
  #
1270
1302
  #
1271
1303
  #
1272
- # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period
1304
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/health-check-grace-period.html
1273
1305
  # @option options [String] :placement_group
1274
1306
  # The name of an existing placement group into which to launch your
1275
1307
  # instances. For more information, see [Placement groups][1] in the
@@ -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 (ARN) of the target groups. You can specify
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
  #
@@ -816,6 +865,13 @@ module Aws::AutoScaling
816
865
  # The name of the Auto Scaling group. This name must be unique per
817
866
  # Region per account.
818
867
  #
868
+ # The name can contain any ASCII character 33 to 126 including most
869
+ # punctuation characters, digits, and upper and lowercased letters.
870
+ #
871
+ # <note markdown="1"> You cannot use a colon (:) in the name.
872
+ #
873
+ # </note>
874
+ #
819
875
  # @option params [String] :launch_configuration_name
820
876
  # The name of the launch configuration to use to launch instances.
821
877
  #
@@ -915,25 +971,27 @@ module Aws::AutoScaling
915
971
  # Gateway Load Balancer, specify the `TargetGroupARNs` property instead.
916
972
  #
917
973
  # @option params [Array<String>] :target_group_arns
918
- # The Amazon Resource Names (ARN) of the target groups to associate with
919
- # the Auto Scaling group. Instances are registered as targets with the
920
- # target groups. The target groups receive incoming traffic and route
921
- # requests to one or more registered targets. For more information, see
922
- # [Use Elastic Load Balancing to distribute traffic across the instances
923
- # in your Auto Scaling group][1] in the *Amazon EC2 Auto Scaling User
924
- # 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*.
925
981
  #
926
982
  #
927
983
  #
928
984
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html
929
985
  #
930
986
  # @option params [String] :health_check_type
931
- # The service to use for the health checks. The valid values are `EC2`
932
- # (default) and `ELB`. If you configure an Auto Scaling group to use
933
- # load balancer (ELB) health checks, it considers the instance unhealthy
934
- # if it fails either the EC2 status checks or the load balancer health
935
- # checks. For more information, see [Health checks for Auto Scaling
936
- # instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
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.
937
995
  #
938
996
  #
939
997
  #
@@ -942,17 +1000,17 @@ module Aws::AutoScaling
942
1000
  # @option params [Integer] :health_check_grace_period
943
1001
  # The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
944
1002
  # before checking the health status of an EC2 instance that has come
945
- # into service and marking it unhealthy due to a failed Elastic Load
946
- # Balancing or custom health check. This is useful if your instances do
947
- # not immediately pass these health checks after they enter the
948
- # `InService` state. For more information, see [Health check grace
949
- # period][1] in the *Amazon EC2 Auto 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*.
950
1008
  #
951
1009
  # Default: `0` seconds
952
1010
  #
953
1011
  #
954
1012
  #
955
- # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period
1013
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/health-check-grace-period.html
956
1014
  #
957
1015
  # @option params [String] :placement_group
958
1016
  # The name of the placement group into which to launch your instances.
@@ -1102,6 +1160,19 @@ module Aws::AutoScaling
1102
1160
  #
1103
1161
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-default-instance-warmup.html
1104
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
+ #
1105
1176
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1106
1177
  #
1107
1178
  #
@@ -1312,6 +1383,11 @@ module Aws::AutoScaling
1312
1383
  # context: "Context",
1313
1384
  # desired_capacity_type: "XmlStringMaxLen255",
1314
1385
  # default_instance_warmup: 1,
1386
+ # traffic_sources: [
1387
+ # {
1388
+ # identifier: "XmlStringMaxLen511",
1389
+ # },
1390
+ # ],
1315
1391
  # })
1316
1392
  #
1317
1393
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroup AWS API Documentation
@@ -2395,6 +2471,8 @@ module Aws::AutoScaling
2395
2471
  # resp.auto_scaling_groups[0].context #=> String
2396
2472
  # resp.auto_scaling_groups[0].desired_capacity_type #=> String
2397
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
2398
2476
  # resp.next_token #=> String
2399
2477
  #
2400
2478
  #
@@ -2974,6 +3052,12 @@ module Aws::AutoScaling
2974
3052
  # distribute traffic across the instances in your Auto Scaling group][2]
2975
3053
  # in the *Amazon EC2 Auto Scaling User Guide*.
2976
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
+ #
2977
3061
  #
2978
3062
  #
2979
3063
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ts-as-healthchecks.html
@@ -3380,6 +3464,18 @@ module Aws::AutoScaling
3380
3464
  # resp.scaling_policies[0].target_tracking_configuration.customized_metric_specification.dimensions[0].value #=> String
3381
3465
  # resp.scaling_policies[0].target_tracking_configuration.customized_metric_specification.statistic #=> String, one of "Average", "Minimum", "Maximum", "SampleCount", "Sum"
3382
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
3383
3479
  # resp.scaling_policies[0].target_tracking_configuration.target_value #=> Float
3384
3480
  # resp.scaling_policies[0].target_tracking_configuration.disable_scale_in #=> Boolean
3385
3481
  # resp.scaling_policies[0].enabled #=> Boolean
@@ -3868,6 +3964,58 @@ module Aws::AutoScaling
3868
3964
  req.send_request(options)
3869
3965
  end
3870
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&lt;Types::TrafficSourceState&gt;
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
+
3871
4019
  # Gets information about a warm pool and its instances.
3872
4020
  #
3873
4021
  # For more information, see [Warm pools for Amazon EC2 Auto Scaling][1]
@@ -4038,6 +4186,12 @@ module Aws::AutoScaling
4038
4186
  # the DescribeLoadBalancerTargetGroups API call. The instances remain
4039
4187
  # running.
4040
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
+ #
4041
4195
  # @option params [required, String] :auto_scaling_group_name
4042
4196
  # The name of the Auto Scaling group.
4043
4197
  #
@@ -4124,6 +4278,49 @@ module Aws::AutoScaling
4124
4278
  req.send_request(options)
4125
4279
  end
4126
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
+
4127
4324
  # Disables group metrics collection for the specified Auto Scaling
4128
4325
  # group.
4129
4326
  #
@@ -5144,16 +5341,38 @@ module Aws::AutoScaling
5144
5341
  # resource_label: "XmlStringMaxLen1023",
5145
5342
  # },
5146
5343
  # customized_metric_specification: {
5147
- # metric_name: "MetricName", # required
5148
- # namespace: "MetricNamespace", # required
5344
+ # metric_name: "MetricName",
5345
+ # namespace: "MetricNamespace",
5149
5346
  # dimensions: [
5150
5347
  # {
5151
5348
  # name: "MetricDimensionName", # required
5152
5349
  # value: "MetricDimensionValue", # required
5153
5350
  # },
5154
5351
  # ],
5155
- # statistic: "Average", # required, accepts Average, Minimum, Maximum, SampleCount, Sum
5352
+ # statistic: "Average", # accepts Average, Minimum, Maximum, SampleCount, Sum
5156
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
+ # ],
5157
5376
  # },
5158
5377
  # target_value: 1.0, # required
5159
5378
  # disable_scale_in: false,
@@ -6295,23 +6514,25 @@ module Aws::AutoScaling
6295
6514
  # One or more Availability Zones for the group.
6296
6515
  #
6297
6516
  # @option params [String] :health_check_type
6298
- # The service to use for the health checks. The valid values are `EC2`
6299
- # and `ELB`. If you configure an Auto Scaling group to use `ELB` health
6300
- # checks, it considers the instance unhealthy if it fails either the EC2
6301
- # status checks or the load balancer health checks.
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.
6302
6523
  #
6303
6524
  # @option params [Integer] :health_check_grace_period
6304
6525
  # The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
6305
6526
  # before checking the health status of an EC2 instance that has come
6306
- # into service and marking it unhealthy due to a failed Elastic Load
6307
- # Balancing or custom health check. This is useful if your instances do
6308
- # not immediately pass these health checks after they enter the
6309
- # `InService` state. For more information, see [Health check grace
6310
- # period][1] in the *Amazon EC2 Auto 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*.
6311
6532
  #
6312
6533
  #
6313
6534
  #
6314
- # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period
6535
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/health-check-grace-period.html
6315
6536
  #
6316
6537
  # @option params [String] :placement_group
6317
6538
  # The name of an existing placement group into which to launch your
@@ -6582,7 +6803,7 @@ module Aws::AutoScaling
6582
6803
  params: params,
6583
6804
  config: config)
6584
6805
  context[:gem_name] = 'aws-sdk-autoscaling'
6585
- context[:gem_version] = '1.82.0'
6806
+ context[:gem_version] = '1.84.0'
6586
6807
  Seahorse::Client::Request.new(handlers, context)
6587
6808
  end
6588
6809