aws-sdk-autoscaling 1.72.0 → 1.73.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: 1a1b8446d644705c7a68723ba5fa371db873fdef04322f87349b04350507a336
4
- data.tar.gz: 7bd01fccf418fda614337fa135b2ae6ba1a31b684b36e9185187294d82c7f0ae
3
+ metadata.gz: ea5c6e471f9b2b1e7e8654d91f691dbd20060f347e85f184a3c8c5f18de43a0e
4
+ data.tar.gz: 643c5741c7d570b3ede7c7e60ce380a6e313aaee5f1b19103d73b15ce0e52307
5
5
  SHA512:
6
- metadata.gz: 5b5f0d6cb80daa90f140d18d7e5765b20cbe34faccf43b92023777d192c394ef1b1c64aa1ea387eb3a278115dd86d2653d478ed86be25fb20dcd9d65d812ab43
7
- data.tar.gz: d52012a326ea5ca454cc6b0dd5ae702d2ade2cafaaac0c8ac08c71b55a2308a7ef29026b8d9b3802ad72010d8844add3ed0819c10ed05b4ae55a9d65746d1c3a
6
+ metadata.gz: 40267e4ee600aea5377dfef40b6ba09dca72fae611c533d286ee77cc9c7cbcc23d74f6e460d48caad92b0d7adf4e3e49b14898c4f3fb32f82405896b1870f38f
7
+ data.tar.gz: d7b2e98718c3915cbdaf049b53765a4d20b0f9bef74113809a993af12832010c1c2def5296f06c8fb1e1a237eae0ec5b72539253263560630b3a8af862098bf9
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.73.0 (2021-11-24)
5
+ ------------------
6
+
7
+ * Feature - Customers can now configure predictive scaling policies to proactively scale EC2 Auto Scaling groups based on any CloudWatch metrics that more accurately represent the load on the group than the four predefined metrics. They can also use math expressions to further customize the metrics.
8
+
4
9
  1.72.0 (2021-11-04)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.72.0
1
+ 1.73.0
@@ -676,6 +676,78 @@ module Aws::AutoScaling
676
676
  # predefined_metric_type: "ASGTotalCPUUtilization", # required, accepts ASGTotalCPUUtilization, ASGTotalNetworkIn, ASGTotalNetworkOut, ALBTargetGroupRequestCount
677
677
  # resource_label: "XmlStringMaxLen1023",
678
678
  # },
679
+ # customized_scaling_metric_specification: {
680
+ # metric_data_queries: [ # required
681
+ # {
682
+ # id: "XmlStringMaxLen255", # required
683
+ # expression: "XmlStringMaxLen1023",
684
+ # metric_stat: {
685
+ # metric: { # required
686
+ # namespace: "MetricNamespace", # required
687
+ # metric_name: "MetricName", # required
688
+ # dimensions: [
689
+ # {
690
+ # name: "MetricDimensionName", # required
691
+ # value: "MetricDimensionValue", # required
692
+ # },
693
+ # ],
694
+ # },
695
+ # stat: "XmlStringMetricStat", # required
696
+ # unit: "MetricUnit",
697
+ # },
698
+ # label: "XmlStringMetricLabel",
699
+ # return_data: false,
700
+ # },
701
+ # ],
702
+ # },
703
+ # customized_load_metric_specification: {
704
+ # metric_data_queries: [ # required
705
+ # {
706
+ # id: "XmlStringMaxLen255", # required
707
+ # expression: "XmlStringMaxLen1023",
708
+ # metric_stat: {
709
+ # metric: { # required
710
+ # namespace: "MetricNamespace", # required
711
+ # metric_name: "MetricName", # required
712
+ # dimensions: [
713
+ # {
714
+ # name: "MetricDimensionName", # required
715
+ # value: "MetricDimensionValue", # required
716
+ # },
717
+ # ],
718
+ # },
719
+ # stat: "XmlStringMetricStat", # required
720
+ # unit: "MetricUnit",
721
+ # },
722
+ # label: "XmlStringMetricLabel",
723
+ # return_data: false,
724
+ # },
725
+ # ],
726
+ # },
727
+ # customized_capacity_metric_specification: {
728
+ # metric_data_queries: [ # required
729
+ # {
730
+ # id: "XmlStringMaxLen255", # required
731
+ # expression: "XmlStringMaxLen1023",
732
+ # metric_stat: {
733
+ # metric: { # required
734
+ # namespace: "MetricNamespace", # required
735
+ # metric_name: "MetricName", # required
736
+ # dimensions: [
737
+ # {
738
+ # name: "MetricDimensionName", # required
739
+ # value: "MetricDimensionValue", # required
740
+ # },
741
+ # ],
742
+ # },
743
+ # stat: "XmlStringMetricStat", # required
744
+ # unit: "MetricUnit",
745
+ # },
746
+ # label: "XmlStringMetricLabel",
747
+ # return_data: false,
748
+ # },
749
+ # ],
750
+ # },
679
751
  # },
680
752
  # ],
681
753
  # mode: "ForecastAndScale", # accepts ForecastAndScale, ForecastOnly
@@ -3298,6 +3298,42 @@ module Aws::AutoScaling
3298
3298
  # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].predefined_scaling_metric_specification.resource_label #=> String
3299
3299
  # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].predefined_load_metric_specification.predefined_metric_type #=> String, one of "ASGTotalCPUUtilization", "ASGTotalNetworkIn", "ASGTotalNetworkOut", "ALBTargetGroupRequestCount"
3300
3300
  # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].predefined_load_metric_specification.resource_label #=> String
3301
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_scaling_metric_specification.metric_data_queries #=> Array
3302
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_scaling_metric_specification.metric_data_queries[0].id #=> String
3303
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_scaling_metric_specification.metric_data_queries[0].expression #=> String
3304
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_scaling_metric_specification.metric_data_queries[0].metric_stat.metric.namespace #=> String
3305
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_scaling_metric_specification.metric_data_queries[0].metric_stat.metric.metric_name #=> String
3306
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_scaling_metric_specification.metric_data_queries[0].metric_stat.metric.dimensions #=> Array
3307
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_scaling_metric_specification.metric_data_queries[0].metric_stat.metric.dimensions[0].name #=> String
3308
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_scaling_metric_specification.metric_data_queries[0].metric_stat.metric.dimensions[0].value #=> String
3309
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_scaling_metric_specification.metric_data_queries[0].metric_stat.stat #=> String
3310
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_scaling_metric_specification.metric_data_queries[0].metric_stat.unit #=> String
3311
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_scaling_metric_specification.metric_data_queries[0].label #=> String
3312
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_scaling_metric_specification.metric_data_queries[0].return_data #=> Boolean
3313
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_load_metric_specification.metric_data_queries #=> Array
3314
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_load_metric_specification.metric_data_queries[0].id #=> String
3315
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_load_metric_specification.metric_data_queries[0].expression #=> String
3316
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_load_metric_specification.metric_data_queries[0].metric_stat.metric.namespace #=> String
3317
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_load_metric_specification.metric_data_queries[0].metric_stat.metric.metric_name #=> String
3318
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_load_metric_specification.metric_data_queries[0].metric_stat.metric.dimensions #=> Array
3319
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_load_metric_specification.metric_data_queries[0].metric_stat.metric.dimensions[0].name #=> String
3320
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_load_metric_specification.metric_data_queries[0].metric_stat.metric.dimensions[0].value #=> String
3321
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_load_metric_specification.metric_data_queries[0].metric_stat.stat #=> String
3322
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_load_metric_specification.metric_data_queries[0].metric_stat.unit #=> String
3323
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_load_metric_specification.metric_data_queries[0].label #=> String
3324
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_load_metric_specification.metric_data_queries[0].return_data #=> Boolean
3325
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_capacity_metric_specification.metric_data_queries #=> Array
3326
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_capacity_metric_specification.metric_data_queries[0].id #=> String
3327
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_capacity_metric_specification.metric_data_queries[0].expression #=> String
3328
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_capacity_metric_specification.metric_data_queries[0].metric_stat.metric.namespace #=> String
3329
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_capacity_metric_specification.metric_data_queries[0].metric_stat.metric.metric_name #=> String
3330
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_capacity_metric_specification.metric_data_queries[0].metric_stat.metric.dimensions #=> Array
3331
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_capacity_metric_specification.metric_data_queries[0].metric_stat.metric.dimensions[0].name #=> String
3332
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_capacity_metric_specification.metric_data_queries[0].metric_stat.metric.dimensions[0].value #=> String
3333
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_capacity_metric_specification.metric_data_queries[0].metric_stat.stat #=> String
3334
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_capacity_metric_specification.metric_data_queries[0].metric_stat.unit #=> String
3335
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_capacity_metric_specification.metric_data_queries[0].label #=> String
3336
+ # resp.scaling_policies[0].predictive_scaling_configuration.metric_specifications[0].customized_capacity_metric_specification.metric_data_queries[0].return_data #=> Boolean
3301
3337
  # resp.scaling_policies[0].predictive_scaling_configuration.mode #=> String, one of "ForecastAndScale", "ForecastOnly"
3302
3338
  # resp.scaling_policies[0].predictive_scaling_configuration.scheduling_buffer_time #=> Integer
3303
3339
  # resp.scaling_policies[0].predictive_scaling_configuration.max_capacity_breach_behavior #=> String, one of "HonorMaxCapacity", "IncreaseMaxCapacity"
@@ -4481,6 +4517,42 @@ module Aws::AutoScaling
4481
4517
  # resp.load_forecast[0].metric_specification.predefined_scaling_metric_specification.resource_label #=> String
4482
4518
  # resp.load_forecast[0].metric_specification.predefined_load_metric_specification.predefined_metric_type #=> String, one of "ASGTotalCPUUtilization", "ASGTotalNetworkIn", "ASGTotalNetworkOut", "ALBTargetGroupRequestCount"
4483
4519
  # resp.load_forecast[0].metric_specification.predefined_load_metric_specification.resource_label #=> String
4520
+ # resp.load_forecast[0].metric_specification.customized_scaling_metric_specification.metric_data_queries #=> Array
4521
+ # resp.load_forecast[0].metric_specification.customized_scaling_metric_specification.metric_data_queries[0].id #=> String
4522
+ # resp.load_forecast[0].metric_specification.customized_scaling_metric_specification.metric_data_queries[0].expression #=> String
4523
+ # resp.load_forecast[0].metric_specification.customized_scaling_metric_specification.metric_data_queries[0].metric_stat.metric.namespace #=> String
4524
+ # resp.load_forecast[0].metric_specification.customized_scaling_metric_specification.metric_data_queries[0].metric_stat.metric.metric_name #=> String
4525
+ # resp.load_forecast[0].metric_specification.customized_scaling_metric_specification.metric_data_queries[0].metric_stat.metric.dimensions #=> Array
4526
+ # resp.load_forecast[0].metric_specification.customized_scaling_metric_specification.metric_data_queries[0].metric_stat.metric.dimensions[0].name #=> String
4527
+ # resp.load_forecast[0].metric_specification.customized_scaling_metric_specification.metric_data_queries[0].metric_stat.metric.dimensions[0].value #=> String
4528
+ # resp.load_forecast[0].metric_specification.customized_scaling_metric_specification.metric_data_queries[0].metric_stat.stat #=> String
4529
+ # resp.load_forecast[0].metric_specification.customized_scaling_metric_specification.metric_data_queries[0].metric_stat.unit #=> String
4530
+ # resp.load_forecast[0].metric_specification.customized_scaling_metric_specification.metric_data_queries[0].label #=> String
4531
+ # resp.load_forecast[0].metric_specification.customized_scaling_metric_specification.metric_data_queries[0].return_data #=> Boolean
4532
+ # resp.load_forecast[0].metric_specification.customized_load_metric_specification.metric_data_queries #=> Array
4533
+ # resp.load_forecast[0].metric_specification.customized_load_metric_specification.metric_data_queries[0].id #=> String
4534
+ # resp.load_forecast[0].metric_specification.customized_load_metric_specification.metric_data_queries[0].expression #=> String
4535
+ # resp.load_forecast[0].metric_specification.customized_load_metric_specification.metric_data_queries[0].metric_stat.metric.namespace #=> String
4536
+ # resp.load_forecast[0].metric_specification.customized_load_metric_specification.metric_data_queries[0].metric_stat.metric.metric_name #=> String
4537
+ # resp.load_forecast[0].metric_specification.customized_load_metric_specification.metric_data_queries[0].metric_stat.metric.dimensions #=> Array
4538
+ # resp.load_forecast[0].metric_specification.customized_load_metric_specification.metric_data_queries[0].metric_stat.metric.dimensions[0].name #=> String
4539
+ # resp.load_forecast[0].metric_specification.customized_load_metric_specification.metric_data_queries[0].metric_stat.metric.dimensions[0].value #=> String
4540
+ # resp.load_forecast[0].metric_specification.customized_load_metric_specification.metric_data_queries[0].metric_stat.stat #=> String
4541
+ # resp.load_forecast[0].metric_specification.customized_load_metric_specification.metric_data_queries[0].metric_stat.unit #=> String
4542
+ # resp.load_forecast[0].metric_specification.customized_load_metric_specification.metric_data_queries[0].label #=> String
4543
+ # resp.load_forecast[0].metric_specification.customized_load_metric_specification.metric_data_queries[0].return_data #=> Boolean
4544
+ # resp.load_forecast[0].metric_specification.customized_capacity_metric_specification.metric_data_queries #=> Array
4545
+ # resp.load_forecast[0].metric_specification.customized_capacity_metric_specification.metric_data_queries[0].id #=> String
4546
+ # resp.load_forecast[0].metric_specification.customized_capacity_metric_specification.metric_data_queries[0].expression #=> String
4547
+ # resp.load_forecast[0].metric_specification.customized_capacity_metric_specification.metric_data_queries[0].metric_stat.metric.namespace #=> String
4548
+ # resp.load_forecast[0].metric_specification.customized_capacity_metric_specification.metric_data_queries[0].metric_stat.metric.metric_name #=> String
4549
+ # resp.load_forecast[0].metric_specification.customized_capacity_metric_specification.metric_data_queries[0].metric_stat.metric.dimensions #=> Array
4550
+ # resp.load_forecast[0].metric_specification.customized_capacity_metric_specification.metric_data_queries[0].metric_stat.metric.dimensions[0].name #=> String
4551
+ # resp.load_forecast[0].metric_specification.customized_capacity_metric_specification.metric_data_queries[0].metric_stat.metric.dimensions[0].value #=> String
4552
+ # resp.load_forecast[0].metric_specification.customized_capacity_metric_specification.metric_data_queries[0].metric_stat.stat #=> String
4553
+ # resp.load_forecast[0].metric_specification.customized_capacity_metric_specification.metric_data_queries[0].metric_stat.unit #=> String
4554
+ # resp.load_forecast[0].metric_specification.customized_capacity_metric_specification.metric_data_queries[0].label #=> String
4555
+ # resp.load_forecast[0].metric_specification.customized_capacity_metric_specification.metric_data_queries[0].return_data #=> Boolean
4484
4556
  # resp.capacity_forecast.timestamps #=> Array
4485
4557
  # resp.capacity_forecast.timestamps[0] #=> Time
4486
4558
  # resp.capacity_forecast.values #=> Array
@@ -4973,6 +5045,78 @@ module Aws::AutoScaling
4973
5045
  # predefined_metric_type: "ASGTotalCPUUtilization", # required, accepts ASGTotalCPUUtilization, ASGTotalNetworkIn, ASGTotalNetworkOut, ALBTargetGroupRequestCount
4974
5046
  # resource_label: "XmlStringMaxLen1023",
4975
5047
  # },
5048
+ # customized_scaling_metric_specification: {
5049
+ # metric_data_queries: [ # required
5050
+ # {
5051
+ # id: "XmlStringMaxLen255", # required
5052
+ # expression: "XmlStringMaxLen1023",
5053
+ # metric_stat: {
5054
+ # metric: { # required
5055
+ # namespace: "MetricNamespace", # required
5056
+ # metric_name: "MetricName", # required
5057
+ # dimensions: [
5058
+ # {
5059
+ # name: "MetricDimensionName", # required
5060
+ # value: "MetricDimensionValue", # required
5061
+ # },
5062
+ # ],
5063
+ # },
5064
+ # stat: "XmlStringMetricStat", # required
5065
+ # unit: "MetricUnit",
5066
+ # },
5067
+ # label: "XmlStringMetricLabel",
5068
+ # return_data: false,
5069
+ # },
5070
+ # ],
5071
+ # },
5072
+ # customized_load_metric_specification: {
5073
+ # metric_data_queries: [ # required
5074
+ # {
5075
+ # id: "XmlStringMaxLen255", # required
5076
+ # expression: "XmlStringMaxLen1023",
5077
+ # metric_stat: {
5078
+ # metric: { # required
5079
+ # namespace: "MetricNamespace", # required
5080
+ # metric_name: "MetricName", # required
5081
+ # dimensions: [
5082
+ # {
5083
+ # name: "MetricDimensionName", # required
5084
+ # value: "MetricDimensionValue", # required
5085
+ # },
5086
+ # ],
5087
+ # },
5088
+ # stat: "XmlStringMetricStat", # required
5089
+ # unit: "MetricUnit",
5090
+ # },
5091
+ # label: "XmlStringMetricLabel",
5092
+ # return_data: false,
5093
+ # },
5094
+ # ],
5095
+ # },
5096
+ # customized_capacity_metric_specification: {
5097
+ # metric_data_queries: [ # required
5098
+ # {
5099
+ # id: "XmlStringMaxLen255", # required
5100
+ # expression: "XmlStringMaxLen1023",
5101
+ # metric_stat: {
5102
+ # metric: { # required
5103
+ # namespace: "MetricNamespace", # required
5104
+ # metric_name: "MetricName", # required
5105
+ # dimensions: [
5106
+ # {
5107
+ # name: "MetricDimensionName", # required
5108
+ # value: "MetricDimensionValue", # required
5109
+ # },
5110
+ # ],
5111
+ # },
5112
+ # stat: "XmlStringMetricStat", # required
5113
+ # unit: "MetricUnit",
5114
+ # },
5115
+ # label: "XmlStringMetricLabel",
5116
+ # return_data: false,
5117
+ # },
5118
+ # ],
5119
+ # },
4976
5120
  # },
4977
5121
  # ],
4978
5122
  # mode: "ForecastAndScale", # accepts ForecastAndScale, ForecastOnly
@@ -6252,7 +6396,7 @@ module Aws::AutoScaling
6252
6396
  params: params,
6253
6397
  config: config)
6254
6398
  context[:gem_name] = 'aws-sdk-autoscaling'
6255
- context[:gem_version] = '1.72.0'
6399
+ context[:gem_version] = '1.73.0'
6256
6400
  Seahorse::Client::Request.new(handlers, context)
6257
6401
  end
6258
6402
 
@@ -213,8 +213,11 @@ module Aws::AutoScaling
213
213
  MaxRecords = Shapes::IntegerShape.new(name: 'MaxRecords')
214
214
  MemoryGiBPerVCpuRequest = Shapes::StructureShape.new(name: 'MemoryGiBPerVCpuRequest')
215
215
  MemoryMiBRequest = Shapes::StructureShape.new(name: 'MemoryMiBRequest')
216
+ Metric = Shapes::StructureShape.new(name: 'Metric')
216
217
  MetricCollectionType = Shapes::StructureShape.new(name: 'MetricCollectionType')
217
218
  MetricCollectionTypes = Shapes::ListShape.new(name: 'MetricCollectionTypes')
219
+ MetricDataQueries = Shapes::ListShape.new(name: 'MetricDataQueries')
220
+ MetricDataQuery = Shapes::StructureShape.new(name: 'MetricDataQuery')
218
221
  MetricDimension = Shapes::StructureShape.new(name: 'MetricDimension')
219
222
  MetricDimensionName = Shapes::StringShape.new(name: 'MetricDimensionName')
220
223
  MetricDimensionValue = Shapes::StringShape.new(name: 'MetricDimensionValue')
@@ -224,6 +227,7 @@ module Aws::AutoScaling
224
227
  MetricName = Shapes::StringShape.new(name: 'MetricName')
225
228
  MetricNamespace = Shapes::StringShape.new(name: 'MetricNamespace')
226
229
  MetricScale = Shapes::FloatShape.new(name: 'MetricScale')
230
+ MetricStat = Shapes::StructureShape.new(name: 'MetricStat')
227
231
  MetricStatistic = Shapes::StringShape.new(name: 'MetricStatistic')
228
232
  MetricType = Shapes::StringShape.new(name: 'MetricType')
229
233
  MetricUnit = Shapes::StringShape.new(name: 'MetricUnit')
@@ -257,6 +261,9 @@ module Aws::AutoScaling
257
261
  PredefinedMetricSpecification = Shapes::StructureShape.new(name: 'PredefinedMetricSpecification')
258
262
  PredefinedScalingMetricType = Shapes::StringShape.new(name: 'PredefinedScalingMetricType')
259
263
  PredictiveScalingConfiguration = Shapes::StructureShape.new(name: 'PredictiveScalingConfiguration')
264
+ PredictiveScalingCustomizedCapacityMetric = Shapes::StructureShape.new(name: 'PredictiveScalingCustomizedCapacityMetric')
265
+ PredictiveScalingCustomizedLoadMetric = Shapes::StructureShape.new(name: 'PredictiveScalingCustomizedLoadMetric')
266
+ PredictiveScalingCustomizedScalingMetric = Shapes::StructureShape.new(name: 'PredictiveScalingCustomizedScalingMetric')
260
267
  PredictiveScalingForecastTimestamps = Shapes::ListShape.new(name: 'PredictiveScalingForecastTimestamps')
261
268
  PredictiveScalingForecastValues = Shapes::ListShape.new(name: 'PredictiveScalingForecastValues')
262
269
  PredictiveScalingMaxCapacityBreachBehavior = Shapes::StringShape.new(name: 'PredictiveScalingMaxCapacityBreachBehavior')
@@ -290,6 +297,7 @@ module Aws::AutoScaling
290
297
  ResourceContentionFault = Shapes::StructureShape.new(name: 'ResourceContentionFault')
291
298
  ResourceInUseFault = Shapes::StructureShape.new(name: 'ResourceInUseFault')
292
299
  ResourceName = Shapes::StringShape.new(name: 'ResourceName')
300
+ ReturnData = Shapes::BooleanShape.new(name: 'ReturnData')
293
301
  ScalingActivityInProgressFault = Shapes::StructureShape.new(name: 'ScalingActivityInProgressFault')
294
302
  ScalingActivityStatusCode = Shapes::StringShape.new(name: 'ScalingActivityStatusCode')
295
303
  ScalingPolicies = Shapes::ListShape.new(name: 'ScalingPolicies')
@@ -349,6 +357,8 @@ module Aws::AutoScaling
349
357
  XmlStringMaxLen32 = Shapes::StringShape.new(name: 'XmlStringMaxLen32')
350
358
  XmlStringMaxLen511 = Shapes::StringShape.new(name: 'XmlStringMaxLen511')
351
359
  XmlStringMaxLen64 = Shapes::StringShape.new(name: 'XmlStringMaxLen64')
360
+ XmlStringMetricLabel = Shapes::StringShape.new(name: 'XmlStringMetricLabel')
361
+ XmlStringMetricStat = Shapes::StringShape.new(name: 'XmlStringMetricStat')
352
362
  XmlStringUserData = Shapes::StringShape.new(name: 'XmlStringUserData')
353
363
 
354
364
  AcceleratorCountRequest.add_member(:min, Shapes::ShapeRef.new(shape: NullablePositiveInteger, location_name: "Min"))
@@ -1041,11 +1051,25 @@ module Aws::AutoScaling
1041
1051
  MemoryMiBRequest.add_member(:max, Shapes::ShapeRef.new(shape: NullablePositiveInteger, location_name: "Max"))
1042
1052
  MemoryMiBRequest.struct_class = Types::MemoryMiBRequest
1043
1053
 
1054
+ Metric.add_member(:namespace, Shapes::ShapeRef.new(shape: MetricNamespace, required: true, location_name: "Namespace"))
1055
+ Metric.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricName"))
1056
+ Metric.add_member(:dimensions, Shapes::ShapeRef.new(shape: MetricDimensions, location_name: "Dimensions"))
1057
+ Metric.struct_class = Types::Metric
1058
+
1044
1059
  MetricCollectionType.add_member(:metric, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "Metric"))
1045
1060
  MetricCollectionType.struct_class = Types::MetricCollectionType
1046
1061
 
1047
1062
  MetricCollectionTypes.member = Shapes::ShapeRef.new(shape: MetricCollectionType)
1048
1063
 
1064
+ MetricDataQueries.member = Shapes::ShapeRef.new(shape: MetricDataQuery)
1065
+
1066
+ MetricDataQuery.add_member(:id, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "Id"))
1067
+ MetricDataQuery.add_member(:expression, Shapes::ShapeRef.new(shape: XmlStringMaxLen1023, location_name: "Expression"))
1068
+ MetricDataQuery.add_member(:metric_stat, Shapes::ShapeRef.new(shape: MetricStat, location_name: "MetricStat"))
1069
+ MetricDataQuery.add_member(:label, Shapes::ShapeRef.new(shape: XmlStringMetricLabel, location_name: "Label"))
1070
+ MetricDataQuery.add_member(:return_data, Shapes::ShapeRef.new(shape: ReturnData, location_name: "ReturnData"))
1071
+ MetricDataQuery.struct_class = Types::MetricDataQuery
1072
+
1049
1073
  MetricDimension.add_member(:name, Shapes::ShapeRef.new(shape: MetricDimensionName, required: true, location_name: "Name"))
1050
1074
  MetricDimension.add_member(:value, Shapes::ShapeRef.new(shape: MetricDimensionValue, required: true, location_name: "Value"))
1051
1075
  MetricDimension.struct_class = Types::MetricDimension
@@ -1057,6 +1081,11 @@ module Aws::AutoScaling
1057
1081
 
1058
1082
  MetricGranularityTypes.member = Shapes::ShapeRef.new(shape: MetricGranularityType)
1059
1083
 
1084
+ MetricStat.add_member(:metric, Shapes::ShapeRef.new(shape: Metric, required: true, location_name: "Metric"))
1085
+ MetricStat.add_member(:stat, Shapes::ShapeRef.new(shape: XmlStringMetricStat, required: true, location_name: "Stat"))
1086
+ MetricStat.add_member(:unit, Shapes::ShapeRef.new(shape: MetricUnit, location_name: "Unit"))
1087
+ MetricStat.struct_class = Types::MetricStat
1088
+
1060
1089
  Metrics.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen255)
1061
1090
 
1062
1091
  MixedInstancesPolicy.add_member(:launch_template, Shapes::ShapeRef.new(shape: LaunchTemplate, location_name: "LaunchTemplate"))
@@ -1099,6 +1128,15 @@ module Aws::AutoScaling
1099
1128
  PredictiveScalingConfiguration.add_member(:max_capacity_buffer, Shapes::ShapeRef.new(shape: PredictiveScalingMaxCapacityBuffer, location_name: "MaxCapacityBuffer"))
1100
1129
  PredictiveScalingConfiguration.struct_class = Types::PredictiveScalingConfiguration
1101
1130
 
1131
+ PredictiveScalingCustomizedCapacityMetric.add_member(:metric_data_queries, Shapes::ShapeRef.new(shape: MetricDataQueries, required: true, location_name: "MetricDataQueries"))
1132
+ PredictiveScalingCustomizedCapacityMetric.struct_class = Types::PredictiveScalingCustomizedCapacityMetric
1133
+
1134
+ PredictiveScalingCustomizedLoadMetric.add_member(:metric_data_queries, Shapes::ShapeRef.new(shape: MetricDataQueries, required: true, location_name: "MetricDataQueries"))
1135
+ PredictiveScalingCustomizedLoadMetric.struct_class = Types::PredictiveScalingCustomizedLoadMetric
1136
+
1137
+ PredictiveScalingCustomizedScalingMetric.add_member(:metric_data_queries, Shapes::ShapeRef.new(shape: MetricDataQueries, required: true, location_name: "MetricDataQueries"))
1138
+ PredictiveScalingCustomizedScalingMetric.struct_class = Types::PredictiveScalingCustomizedScalingMetric
1139
+
1102
1140
  PredictiveScalingForecastTimestamps.member = Shapes::ShapeRef.new(shape: TimestampType)
1103
1141
 
1104
1142
  PredictiveScalingForecastValues.member = Shapes::ShapeRef.new(shape: MetricScale)
@@ -1107,6 +1145,9 @@ module Aws::AutoScaling
1107
1145
  PredictiveScalingMetricSpecification.add_member(:predefined_metric_pair_specification, Shapes::ShapeRef.new(shape: PredictiveScalingPredefinedMetricPair, location_name: "PredefinedMetricPairSpecification"))
1108
1146
  PredictiveScalingMetricSpecification.add_member(:predefined_scaling_metric_specification, Shapes::ShapeRef.new(shape: PredictiveScalingPredefinedScalingMetric, location_name: "PredefinedScalingMetricSpecification"))
1109
1147
  PredictiveScalingMetricSpecification.add_member(:predefined_load_metric_specification, Shapes::ShapeRef.new(shape: PredictiveScalingPredefinedLoadMetric, location_name: "PredefinedLoadMetricSpecification"))
1148
+ PredictiveScalingMetricSpecification.add_member(:customized_scaling_metric_specification, Shapes::ShapeRef.new(shape: PredictiveScalingCustomizedScalingMetric, location_name: "CustomizedScalingMetricSpecification"))
1149
+ PredictiveScalingMetricSpecification.add_member(:customized_load_metric_specification, Shapes::ShapeRef.new(shape: PredictiveScalingCustomizedLoadMetric, location_name: "CustomizedLoadMetricSpecification"))
1150
+ PredictiveScalingMetricSpecification.add_member(:customized_capacity_metric_specification, Shapes::ShapeRef.new(shape: PredictiveScalingCustomizedCapacityMetric, location_name: "CustomizedCapacityMetricSpecification"))
1110
1151
  PredictiveScalingMetricSpecification.struct_class = Types::PredictiveScalingMetricSpecification
1111
1152
 
1112
1153
  PredictiveScalingMetricSpecifications.member = Shapes::ShapeRef.new(shape: PredictiveScalingMetricSpecification)
@@ -916,7 +916,7 @@ module Aws::AutoScaling
916
916
  # data points.
917
917
  #
918
918
  # @!attribute [rw] timestamps
919
- # The time stamps for the data points, in UTC format.
919
+ # The timestamps for the data points, in UTC format.
920
920
  # @return [Array<Time>]
921
921
  #
922
922
  # @!attribute [rw] values
@@ -5273,7 +5273,7 @@ module Aws::AutoScaling
5273
5273
  # the metric specification.
5274
5274
  #
5275
5275
  # @!attribute [rw] timestamps
5276
- # The time stamps for the data points, in UTC format.
5276
+ # The timestamps for the data points, in UTC format.
5277
5277
  # @return [Array<Time>]
5278
5278
  #
5279
5279
  # @!attribute [rw] values
@@ -5350,6 +5350,60 @@ module Aws::AutoScaling
5350
5350
  include Aws::Structure
5351
5351
  end
5352
5352
 
5353
+ # Represents a specific metric.
5354
+ #
5355
+ # @note When making an API call, you may pass Metric
5356
+ # data as a hash:
5357
+ #
5358
+ # {
5359
+ # namespace: "MetricNamespace", # required
5360
+ # metric_name: "MetricName", # required
5361
+ # dimensions: [
5362
+ # {
5363
+ # name: "MetricDimensionName", # required
5364
+ # value: "MetricDimensionValue", # required
5365
+ # },
5366
+ # ],
5367
+ # }
5368
+ #
5369
+ # @!attribute [rw] namespace
5370
+ # The namespace of the metric. For more information, see the table in
5371
+ # [Amazon Web Services services that publish CloudWatch metrics ][1]
5372
+ # in the *Amazon CloudWatch User Guide*.
5373
+ #
5374
+ #
5375
+ #
5376
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html
5377
+ # @return [String]
5378
+ #
5379
+ # @!attribute [rw] metric_name
5380
+ # The name of the metric.
5381
+ # @return [String]
5382
+ #
5383
+ # @!attribute [rw] dimensions
5384
+ # The dimensions for the metric. For the list of available dimensions,
5385
+ # see the Amazon Web Services documentation available from the table
5386
+ # in [Amazon Web Services services that publish CloudWatch metrics
5387
+ # ][1] in the *Amazon CloudWatch User Guide*.
5388
+ #
5389
+ # Conditional: If you published your metric with dimensions, you must
5390
+ # specify the same dimensions in your scaling policy.
5391
+ #
5392
+ #
5393
+ #
5394
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html
5395
+ # @return [Array<Types::MetricDimension>]
5396
+ #
5397
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/Metric AWS API Documentation
5398
+ #
5399
+ class Metric < Struct.new(
5400
+ :namespace,
5401
+ :metric_name,
5402
+ :dimensions)
5403
+ SENSITIVE = []
5404
+ include Aws::Structure
5405
+ end
5406
+
5353
5407
  # Describes a metric.
5354
5408
  #
5355
5409
  # @!attribute [rw] metric
@@ -5404,6 +5458,107 @@ module Aws::AutoScaling
5404
5458
  include Aws::Structure
5405
5459
  end
5406
5460
 
5461
+ # The metric data to return. Also defines whether this call is returning
5462
+ # data for one metric only, or whether it is performing a math
5463
+ # expression on the values of returned metric statistics to create a new
5464
+ # time series. A time series is a series of data points, each of which
5465
+ # is associated with a timestamp.
5466
+ #
5467
+ # For more information and examples, see [Advanced predictive scaling
5468
+ # policy configurations using customized metrics][1] in the *Amazon EC2
5469
+ # Auto Scaling User Guide*.
5470
+ #
5471
+ #
5472
+ #
5473
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/predictive-scaling-customized-metric-specification.html
5474
+ #
5475
+ # @note When making an API call, you may pass MetricDataQuery
5476
+ # data as a hash:
5477
+ #
5478
+ # {
5479
+ # id: "XmlStringMaxLen255", # required
5480
+ # expression: "XmlStringMaxLen1023",
5481
+ # metric_stat: {
5482
+ # metric: { # required
5483
+ # namespace: "MetricNamespace", # required
5484
+ # metric_name: "MetricName", # required
5485
+ # dimensions: [
5486
+ # {
5487
+ # name: "MetricDimensionName", # required
5488
+ # value: "MetricDimensionValue", # required
5489
+ # },
5490
+ # ],
5491
+ # },
5492
+ # stat: "XmlStringMetricStat", # required
5493
+ # unit: "MetricUnit",
5494
+ # },
5495
+ # label: "XmlStringMetricLabel",
5496
+ # return_data: false,
5497
+ # }
5498
+ #
5499
+ # @!attribute [rw] id
5500
+ # A short name that identifies the object's results in the response.
5501
+ # This name must be unique among all `MetricDataQuery` objects
5502
+ # specified for a single scaling policy. If you are performing math
5503
+ # expressions on this set of data, this name represents that data and
5504
+ # can serve as a variable in the mathematical expression. The valid
5505
+ # characters are letters, numbers, and underscores. The first
5506
+ # character must be a lowercase letter.
5507
+ # @return [String]
5508
+ #
5509
+ # @!attribute [rw] expression
5510
+ # The math expression to perform on the returned data, if this object
5511
+ # is performing a math expression. This expression can use the `Id` of
5512
+ # the other metrics to refer to those metrics, and can also use the
5513
+ # `Id` of other expressions to use the result of those expressions.
5514
+ #
5515
+ # For example, to use search expressions, use the SEARCH() function in
5516
+ # your metric math expression to combine multiple metrics from Auto
5517
+ # Scaling groups that use a specific name prefix.
5518
+ #
5519
+ # Conditional: Within each `MetricDataQuery` object, you must specify
5520
+ # either `Expression` or `MetricStat`, but not both.
5521
+ # @return [String]
5522
+ #
5523
+ # @!attribute [rw] metric_stat
5524
+ # Information about the metric data to return.
5525
+ #
5526
+ # Conditional: Within each `MetricDataQuery` object, you must specify
5527
+ # either `Expression` or `MetricStat`, but not both.
5528
+ # @return [Types::MetricStat]
5529
+ #
5530
+ # @!attribute [rw] label
5531
+ # A human-readable label for this metric or expression. This is
5532
+ # especially useful if this is a math expression, so that you know
5533
+ # what the value represents.
5534
+ # @return [String]
5535
+ #
5536
+ # @!attribute [rw] return_data
5537
+ # Indicates whether to return the timestamps and raw data values of
5538
+ # this metric.
5539
+ #
5540
+ # If you use any math expressions, specify `True` for this value for
5541
+ # only the final math expression that the metric specification is
5542
+ # based on. You must specify `False` for `ReturnData` for all the
5543
+ # other metrics and expressions used in the metric specification.
5544
+ #
5545
+ # If you are only retrieving metrics and not performing any math
5546
+ # expressions, do not specify anything for `ReturnData`. This sets it
5547
+ # to its default (`True`).
5548
+ # @return [Boolean]
5549
+ #
5550
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/MetricDataQuery AWS API Documentation
5551
+ #
5552
+ class MetricDataQuery < Struct.new(
5553
+ :id,
5554
+ :expression,
5555
+ :metric_stat,
5556
+ :label,
5557
+ :return_data)
5558
+ SENSITIVE = []
5559
+ include Aws::Structure
5560
+ end
5561
+
5407
5562
  # Describes the dimension of a metric.
5408
5563
  #
5409
5564
  # @note When making an API call, you may pass MetricDimension
@@ -5445,6 +5600,79 @@ module Aws::AutoScaling
5445
5600
  include Aws::Structure
5446
5601
  end
5447
5602
 
5603
+ # This structure defines the CloudWatch metric to return, along with the
5604
+ # statistic, period, and unit.
5605
+ #
5606
+ # For more information about the CloudWatch terminology below, see
5607
+ # [Amazon CloudWatch concepts][1] in the *Amazon CloudWatch User Guide*.
5608
+ #
5609
+ #
5610
+ #
5611
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html
5612
+ #
5613
+ # @note When making an API call, you may pass MetricStat
5614
+ # data as a hash:
5615
+ #
5616
+ # {
5617
+ # metric: { # required
5618
+ # namespace: "MetricNamespace", # required
5619
+ # metric_name: "MetricName", # required
5620
+ # dimensions: [
5621
+ # {
5622
+ # name: "MetricDimensionName", # required
5623
+ # value: "MetricDimensionValue", # required
5624
+ # },
5625
+ # ],
5626
+ # },
5627
+ # stat: "XmlStringMetricStat", # required
5628
+ # unit: "MetricUnit",
5629
+ # }
5630
+ #
5631
+ # @!attribute [rw] metric
5632
+ # The CloudWatch metric to return, including the metric name,
5633
+ # namespace, and dimensions. To get the exact metric name, namespace,
5634
+ # and dimensions, inspect the [Metric][1] object that is returned by a
5635
+ # call to [ListMetrics][2].
5636
+ #
5637
+ #
5638
+ #
5639
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_Metric.html
5640
+ # [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html
5641
+ # @return [Types::Metric]
5642
+ #
5643
+ # @!attribute [rw] stat
5644
+ # The statistic to return. It can include any CloudWatch statistic or
5645
+ # extended statistic. For a list of valid values, see the table in
5646
+ # [Statistics][1] in the *Amazon CloudWatch User Guide*.
5647
+ #
5648
+ # The most commonly used metrics for predictive scaling are `Average`
5649
+ # and `Sum`.
5650
+ #
5651
+ #
5652
+ #
5653
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Statistic
5654
+ # @return [String]
5655
+ #
5656
+ # @!attribute [rw] unit
5657
+ # The unit to use for the returned data points. For a complete list of
5658
+ # the units that CloudWatch supports, see the [MetricDatum][1] data
5659
+ # type in the *Amazon CloudWatch API Reference*.
5660
+ #
5661
+ #
5662
+ #
5663
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html
5664
+ # @return [String]
5665
+ #
5666
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/MetricStat AWS API Documentation
5667
+ #
5668
+ class MetricStat < Struct.new(
5669
+ :metric,
5670
+ :stat,
5671
+ :unit)
5672
+ SENSITIVE = []
5673
+ include Aws::Structure
5674
+ end
5675
+
5448
5676
  # Describes a mixed instances policy. A mixed instances policy contains
5449
5677
  # the instance types that Amazon EC2 Auto Scaling can launch and other
5450
5678
  # information that Amazon EC2 Auto Scaling can use to launch instances
@@ -5750,6 +5978,78 @@ module Aws::AutoScaling
5750
5978
  # predefined_metric_type: "ASGTotalCPUUtilization", # required, accepts ASGTotalCPUUtilization, ASGTotalNetworkIn, ASGTotalNetworkOut, ALBTargetGroupRequestCount
5751
5979
  # resource_label: "XmlStringMaxLen1023",
5752
5980
  # },
5981
+ # customized_scaling_metric_specification: {
5982
+ # metric_data_queries: [ # required
5983
+ # {
5984
+ # id: "XmlStringMaxLen255", # required
5985
+ # expression: "XmlStringMaxLen1023",
5986
+ # metric_stat: {
5987
+ # metric: { # required
5988
+ # namespace: "MetricNamespace", # required
5989
+ # metric_name: "MetricName", # required
5990
+ # dimensions: [
5991
+ # {
5992
+ # name: "MetricDimensionName", # required
5993
+ # value: "MetricDimensionValue", # required
5994
+ # },
5995
+ # ],
5996
+ # },
5997
+ # stat: "XmlStringMetricStat", # required
5998
+ # unit: "MetricUnit",
5999
+ # },
6000
+ # label: "XmlStringMetricLabel",
6001
+ # return_data: false,
6002
+ # },
6003
+ # ],
6004
+ # },
6005
+ # customized_load_metric_specification: {
6006
+ # metric_data_queries: [ # required
6007
+ # {
6008
+ # id: "XmlStringMaxLen255", # required
6009
+ # expression: "XmlStringMaxLen1023",
6010
+ # metric_stat: {
6011
+ # metric: { # required
6012
+ # namespace: "MetricNamespace", # required
6013
+ # metric_name: "MetricName", # required
6014
+ # dimensions: [
6015
+ # {
6016
+ # name: "MetricDimensionName", # required
6017
+ # value: "MetricDimensionValue", # required
6018
+ # },
6019
+ # ],
6020
+ # },
6021
+ # stat: "XmlStringMetricStat", # required
6022
+ # unit: "MetricUnit",
6023
+ # },
6024
+ # label: "XmlStringMetricLabel",
6025
+ # return_data: false,
6026
+ # },
6027
+ # ],
6028
+ # },
6029
+ # customized_capacity_metric_specification: {
6030
+ # metric_data_queries: [ # required
6031
+ # {
6032
+ # id: "XmlStringMaxLen255", # required
6033
+ # expression: "XmlStringMaxLen1023",
6034
+ # metric_stat: {
6035
+ # metric: { # required
6036
+ # namespace: "MetricNamespace", # required
6037
+ # metric_name: "MetricName", # required
6038
+ # dimensions: [
6039
+ # {
6040
+ # name: "MetricDimensionName", # required
6041
+ # value: "MetricDimensionValue", # required
6042
+ # },
6043
+ # ],
6044
+ # },
6045
+ # stat: "XmlStringMetricStat", # required
6046
+ # unit: "MetricUnit",
6047
+ # },
6048
+ # label: "XmlStringMetricLabel",
6049
+ # return_data: false,
6050
+ # },
6051
+ # ],
6052
+ # },
5753
6053
  # },
5754
6054
  # ],
5755
6055
  # mode: "ForecastAndScale", # accepts ForecastAndScale, ForecastOnly
@@ -5832,6 +6132,139 @@ module Aws::AutoScaling
5832
6132
  include Aws::Structure
5833
6133
  end
5834
6134
 
6135
+ # Describes a customized capacity metric for a predictive scaling
6136
+ # policy.
6137
+ #
6138
+ # @note When making an API call, you may pass PredictiveScalingCustomizedCapacityMetric
6139
+ # data as a hash:
6140
+ #
6141
+ # {
6142
+ # metric_data_queries: [ # required
6143
+ # {
6144
+ # id: "XmlStringMaxLen255", # required
6145
+ # expression: "XmlStringMaxLen1023",
6146
+ # metric_stat: {
6147
+ # metric: { # required
6148
+ # namespace: "MetricNamespace", # required
6149
+ # metric_name: "MetricName", # required
6150
+ # dimensions: [
6151
+ # {
6152
+ # name: "MetricDimensionName", # required
6153
+ # value: "MetricDimensionValue", # required
6154
+ # },
6155
+ # ],
6156
+ # },
6157
+ # stat: "XmlStringMetricStat", # required
6158
+ # unit: "MetricUnit",
6159
+ # },
6160
+ # label: "XmlStringMetricLabel",
6161
+ # return_data: false,
6162
+ # },
6163
+ # ],
6164
+ # }
6165
+ #
6166
+ # @!attribute [rw] metric_data_queries
6167
+ # One or more metric data queries to provide the data points for a
6168
+ # capacity metric. Use multiple metric data queries only if you are
6169
+ # performing a math expression on returned data.
6170
+ # @return [Array<Types::MetricDataQuery>]
6171
+ #
6172
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PredictiveScalingCustomizedCapacityMetric AWS API Documentation
6173
+ #
6174
+ class PredictiveScalingCustomizedCapacityMetric < Struct.new(
6175
+ :metric_data_queries)
6176
+ SENSITIVE = []
6177
+ include Aws::Structure
6178
+ end
6179
+
6180
+ # Describes a customized load metric for a predictive scaling policy.
6181
+ #
6182
+ # @note When making an API call, you may pass PredictiveScalingCustomizedLoadMetric
6183
+ # data as a hash:
6184
+ #
6185
+ # {
6186
+ # metric_data_queries: [ # required
6187
+ # {
6188
+ # id: "XmlStringMaxLen255", # required
6189
+ # expression: "XmlStringMaxLen1023",
6190
+ # metric_stat: {
6191
+ # metric: { # required
6192
+ # namespace: "MetricNamespace", # required
6193
+ # metric_name: "MetricName", # required
6194
+ # dimensions: [
6195
+ # {
6196
+ # name: "MetricDimensionName", # required
6197
+ # value: "MetricDimensionValue", # required
6198
+ # },
6199
+ # ],
6200
+ # },
6201
+ # stat: "XmlStringMetricStat", # required
6202
+ # unit: "MetricUnit",
6203
+ # },
6204
+ # label: "XmlStringMetricLabel",
6205
+ # return_data: false,
6206
+ # },
6207
+ # ],
6208
+ # }
6209
+ #
6210
+ # @!attribute [rw] metric_data_queries
6211
+ # One or more metric data queries to provide the data points for a
6212
+ # load metric. Use multiple metric data queries only if you are
6213
+ # performing a math expression on returned data.
6214
+ # @return [Array<Types::MetricDataQuery>]
6215
+ #
6216
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PredictiveScalingCustomizedLoadMetric AWS API Documentation
6217
+ #
6218
+ class PredictiveScalingCustomizedLoadMetric < Struct.new(
6219
+ :metric_data_queries)
6220
+ SENSITIVE = []
6221
+ include Aws::Structure
6222
+ end
6223
+
6224
+ # Describes a customized scaling metric for a predictive scaling policy.
6225
+ #
6226
+ # @note When making an API call, you may pass PredictiveScalingCustomizedScalingMetric
6227
+ # data as a hash:
6228
+ #
6229
+ # {
6230
+ # metric_data_queries: [ # required
6231
+ # {
6232
+ # id: "XmlStringMaxLen255", # required
6233
+ # expression: "XmlStringMaxLen1023",
6234
+ # metric_stat: {
6235
+ # metric: { # required
6236
+ # namespace: "MetricNamespace", # required
6237
+ # metric_name: "MetricName", # required
6238
+ # dimensions: [
6239
+ # {
6240
+ # name: "MetricDimensionName", # required
6241
+ # value: "MetricDimensionValue", # required
6242
+ # },
6243
+ # ],
6244
+ # },
6245
+ # stat: "XmlStringMetricStat", # required
6246
+ # unit: "MetricUnit",
6247
+ # },
6248
+ # label: "XmlStringMetricLabel",
6249
+ # return_data: false,
6250
+ # },
6251
+ # ],
6252
+ # }
6253
+ #
6254
+ # @!attribute [rw] metric_data_queries
6255
+ # One or more metric data queries to provide the data points for a
6256
+ # scaling metric. Use multiple metric data queries only if you are
6257
+ # performing a math expression on returned data.
6258
+ # @return [Array<Types::MetricDataQuery>]
6259
+ #
6260
+ # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PredictiveScalingCustomizedScalingMetric AWS API Documentation
6261
+ #
6262
+ class PredictiveScalingCustomizedScalingMetric < Struct.new(
6263
+ :metric_data_queries)
6264
+ SENSITIVE = []
6265
+ include Aws::Structure
6266
+ end
6267
+
5835
6268
  # This structure specifies the metrics and target utilization settings
5836
6269
  # for a predictive scaling policy.
5837
6270
  #
@@ -5872,6 +6305,14 @@ module Aws::AutoScaling
5872
6305
  # requests received by each instance is as close to 1000 requests per
5873
6306
  # minute as possible at all times.
5874
6307
  #
6308
+ # For information about using customized metrics with predictive
6309
+ # scaling, see [Advanced predictive scaling policy configurations using
6310
+ # customized metrics][1] in the *Amazon EC2 Auto Scaling User Guide*.
6311
+ #
6312
+ #
6313
+ #
6314
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/predictive-scaling-customized-metric-specification.html
6315
+ #
5875
6316
  # @note When making an API call, you may pass PredictiveScalingMetricSpecification
5876
6317
  # data as a hash:
5877
6318
  #
@@ -5889,32 +6330,129 @@ module Aws::AutoScaling
5889
6330
  # predefined_metric_type: "ASGTotalCPUUtilization", # required, accepts ASGTotalCPUUtilization, ASGTotalNetworkIn, ASGTotalNetworkOut, ALBTargetGroupRequestCount
5890
6331
  # resource_label: "XmlStringMaxLen1023",
5891
6332
  # },
6333
+ # customized_scaling_metric_specification: {
6334
+ # metric_data_queries: [ # required
6335
+ # {
6336
+ # id: "XmlStringMaxLen255", # required
6337
+ # expression: "XmlStringMaxLen1023",
6338
+ # metric_stat: {
6339
+ # metric: { # required
6340
+ # namespace: "MetricNamespace", # required
6341
+ # metric_name: "MetricName", # required
6342
+ # dimensions: [
6343
+ # {
6344
+ # name: "MetricDimensionName", # required
6345
+ # value: "MetricDimensionValue", # required
6346
+ # },
6347
+ # ],
6348
+ # },
6349
+ # stat: "XmlStringMetricStat", # required
6350
+ # unit: "MetricUnit",
6351
+ # },
6352
+ # label: "XmlStringMetricLabel",
6353
+ # return_data: false,
6354
+ # },
6355
+ # ],
6356
+ # },
6357
+ # customized_load_metric_specification: {
6358
+ # metric_data_queries: [ # required
6359
+ # {
6360
+ # id: "XmlStringMaxLen255", # required
6361
+ # expression: "XmlStringMaxLen1023",
6362
+ # metric_stat: {
6363
+ # metric: { # required
6364
+ # namespace: "MetricNamespace", # required
6365
+ # metric_name: "MetricName", # required
6366
+ # dimensions: [
6367
+ # {
6368
+ # name: "MetricDimensionName", # required
6369
+ # value: "MetricDimensionValue", # required
6370
+ # },
6371
+ # ],
6372
+ # },
6373
+ # stat: "XmlStringMetricStat", # required
6374
+ # unit: "MetricUnit",
6375
+ # },
6376
+ # label: "XmlStringMetricLabel",
6377
+ # return_data: false,
6378
+ # },
6379
+ # ],
6380
+ # },
6381
+ # customized_capacity_metric_specification: {
6382
+ # metric_data_queries: [ # required
6383
+ # {
6384
+ # id: "XmlStringMaxLen255", # required
6385
+ # expression: "XmlStringMaxLen1023",
6386
+ # metric_stat: {
6387
+ # metric: { # required
6388
+ # namespace: "MetricNamespace", # required
6389
+ # metric_name: "MetricName", # required
6390
+ # dimensions: [
6391
+ # {
6392
+ # name: "MetricDimensionName", # required
6393
+ # value: "MetricDimensionValue", # required
6394
+ # },
6395
+ # ],
6396
+ # },
6397
+ # stat: "XmlStringMetricStat", # required
6398
+ # unit: "MetricUnit",
6399
+ # },
6400
+ # label: "XmlStringMetricLabel",
6401
+ # return_data: false,
6402
+ # },
6403
+ # ],
6404
+ # },
5892
6405
  # }
5893
6406
  #
5894
6407
  # @!attribute [rw] target_value
5895
6408
  # Specifies the target utilization.
6409
+ #
6410
+ # <note markdown="1"> Some metrics are based on a count instead of a percentage, such as
6411
+ # the request count for an Application Load Balancer or the number of
6412
+ # messages in an SQS queue. If the scaling policy specifies one of
6413
+ # these metrics, specify the target utilization as the optimal average
6414
+ # request or message count per instance during any one-minute
6415
+ # interval.
6416
+ #
6417
+ # </note>
5896
6418
  # @return [Float]
5897
6419
  #
5898
6420
  # @!attribute [rw] predefined_metric_pair_specification
5899
- # The metric pair specification from which Amazon EC2 Auto Scaling
5900
- # determines the appropriate scaling metric and load metric to use.
6421
+ # The predefined metric pair specification from which Amazon EC2 Auto
6422
+ # Scaling determines the appropriate scaling metric and load metric to
6423
+ # use.
5901
6424
  # @return [Types::PredictiveScalingPredefinedMetricPair]
5902
6425
  #
5903
6426
  # @!attribute [rw] predefined_scaling_metric_specification
5904
- # The scaling metric specification.
6427
+ # The predefined scaling metric specification.
5905
6428
  # @return [Types::PredictiveScalingPredefinedScalingMetric]
5906
6429
  #
5907
6430
  # @!attribute [rw] predefined_load_metric_specification
5908
- # The load metric specification.
6431
+ # The predefined load metric specification.
5909
6432
  # @return [Types::PredictiveScalingPredefinedLoadMetric]
5910
6433
  #
6434
+ # @!attribute [rw] customized_scaling_metric_specification
6435
+ # The customized scaling metric specification.
6436
+ # @return [Types::PredictiveScalingCustomizedScalingMetric]
6437
+ #
6438
+ # @!attribute [rw] customized_load_metric_specification
6439
+ # The customized load metric specification.
6440
+ # @return [Types::PredictiveScalingCustomizedLoadMetric]
6441
+ #
6442
+ # @!attribute [rw] customized_capacity_metric_specification
6443
+ # The customized capacity metric specification.
6444
+ # @return [Types::PredictiveScalingCustomizedCapacityMetric]
6445
+ #
5911
6446
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PredictiveScalingMetricSpecification AWS API Documentation
5912
6447
  #
5913
6448
  class PredictiveScalingMetricSpecification < Struct.new(
5914
6449
  :target_value,
5915
6450
  :predefined_metric_pair_specification,
5916
6451
  :predefined_scaling_metric_specification,
5917
- :predefined_load_metric_specification)
6452
+ :predefined_load_metric_specification,
6453
+ :customized_scaling_metric_specification,
6454
+ :customized_load_metric_specification,
6455
+ :customized_capacity_metric_specification)
5918
6456
  SENSITIVE = []
5919
6457
  include Aws::Structure
5920
6458
  end
@@ -6342,6 +6880,78 @@ module Aws::AutoScaling
6342
6880
  # predefined_metric_type: "ASGTotalCPUUtilization", # required, accepts ASGTotalCPUUtilization, ASGTotalNetworkIn, ASGTotalNetworkOut, ALBTargetGroupRequestCount
6343
6881
  # resource_label: "XmlStringMaxLen1023",
6344
6882
  # },
6883
+ # customized_scaling_metric_specification: {
6884
+ # metric_data_queries: [ # required
6885
+ # {
6886
+ # id: "XmlStringMaxLen255", # required
6887
+ # expression: "XmlStringMaxLen1023",
6888
+ # metric_stat: {
6889
+ # metric: { # required
6890
+ # namespace: "MetricNamespace", # required
6891
+ # metric_name: "MetricName", # required
6892
+ # dimensions: [
6893
+ # {
6894
+ # name: "MetricDimensionName", # required
6895
+ # value: "MetricDimensionValue", # required
6896
+ # },
6897
+ # ],
6898
+ # },
6899
+ # stat: "XmlStringMetricStat", # required
6900
+ # unit: "MetricUnit",
6901
+ # },
6902
+ # label: "XmlStringMetricLabel",
6903
+ # return_data: false,
6904
+ # },
6905
+ # ],
6906
+ # },
6907
+ # customized_load_metric_specification: {
6908
+ # metric_data_queries: [ # required
6909
+ # {
6910
+ # id: "XmlStringMaxLen255", # required
6911
+ # expression: "XmlStringMaxLen1023",
6912
+ # metric_stat: {
6913
+ # metric: { # required
6914
+ # namespace: "MetricNamespace", # required
6915
+ # metric_name: "MetricName", # required
6916
+ # dimensions: [
6917
+ # {
6918
+ # name: "MetricDimensionName", # required
6919
+ # value: "MetricDimensionValue", # required
6920
+ # },
6921
+ # ],
6922
+ # },
6923
+ # stat: "XmlStringMetricStat", # required
6924
+ # unit: "MetricUnit",
6925
+ # },
6926
+ # label: "XmlStringMetricLabel",
6927
+ # return_data: false,
6928
+ # },
6929
+ # ],
6930
+ # },
6931
+ # customized_capacity_metric_specification: {
6932
+ # metric_data_queries: [ # required
6933
+ # {
6934
+ # id: "XmlStringMaxLen255", # required
6935
+ # expression: "XmlStringMaxLen1023",
6936
+ # metric_stat: {
6937
+ # metric: { # required
6938
+ # namespace: "MetricNamespace", # required
6939
+ # metric_name: "MetricName", # required
6940
+ # dimensions: [
6941
+ # {
6942
+ # name: "MetricDimensionName", # required
6943
+ # value: "MetricDimensionValue", # required
6944
+ # },
6945
+ # ],
6946
+ # },
6947
+ # stat: "XmlStringMetricStat", # required
6948
+ # unit: "MetricUnit",
6949
+ # },
6950
+ # label: "XmlStringMetricLabel",
6951
+ # return_data: false,
6952
+ # },
6953
+ # ],
6954
+ # },
6345
6955
  # },
6346
6956
  # ],
6347
6957
  # mode: "ForecastAndScale", # accepts ForecastAndScale, ForecastOnly
@@ -59,6 +59,6 @@ require_relative 'aws-sdk-autoscaling/customizations'
59
59
  # @!group service
60
60
  module Aws::AutoScaling
61
61
 
62
- GEM_VERSION = '1.72.0'
62
+ GEM_VERSION = '1.73.0'
63
63
 
64
64
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-autoscaling
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.72.0
4
+ version: 1.73.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-04 00:00:00.000000000 Z
11
+ date: 2021-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core