aws-sdk-autoscalingplans 1.41.0 → 1.42.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: 348fda9a4aa0a9ac4e6a2c7129b01ab4e301dcd2b442e14c588fd272c56422d6
4
- data.tar.gz: 8b733d399ad597b4151a47dc89e62af7ea68a5095d4681b9c5088def43c3cb88
3
+ metadata.gz: f7c1c317d342e61f61da3ee9e3d2beeab23e7fc3b39412d6bf599e161aab64b9
4
+ data.tar.gz: 6757de81bb6ab44ec21b732d3d9b8898a30df04fade882942b8299ebab846ce6
5
5
  SHA512:
6
- metadata.gz: ef5ca2597c160d212f69d1d562b2a67844ecf51d1983bc61492ca99c2ab7f95a11eb3a5c51d1de16f2f6fb711bfc0e12db43e334f442d620803b8bcd36d35803
7
- data.tar.gz: a1ebe1fa404d735a778da9ab735ff2d24f720401986372c9340d620b6a6c270b93488ef7dd41aa9dae1a4713c9bd7c6e68d839b4f84ea0b12329612976b7ba0e
6
+ metadata.gz: 325780e9c3425247eb28ba61290470b63c61a1f087a753c4314339e3c367f1b9328330a7cc3ed5f2211b312acef3e16676a24501598a7a487dda6f971c1888a2
7
+ data.tar.gz: e2378c8a931b65ce3213e05c31053c9940fb9729908c71bddf13f4c1802bfe479608071122ebd81cde88d4f78be942b9f63fddc29aadb1fbd6b840bbc32a288d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.42.0 (2023-01-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
10
+
4
11
  1.41.0 (2022-10-25)
5
12
  ------------------
6
13
 
@@ -215,4 +222,4 @@ Unreleased Changes
215
222
  1.0.0 (2018-01-17)
216
223
  ------------------
217
224
 
218
- * Feature - Initial release of `aws-sdk-autoscalingplans`.
225
+ * Feature - Initial release of `aws-sdk-autoscalingplans`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.41.0
1
+ 1.42.0
@@ -925,7 +925,7 @@ module Aws::AutoScalingPlans
925
925
  params: params,
926
926
  config: config)
927
927
  context[:gem_name] = 'aws-sdk-autoscalingplans'
928
- context[:gem_version] = '1.41.0'
928
+ context[:gem_version] = '1.42.0'
929
929
  Seahorse::Client::Request.new(handlers, context)
930
930
  end
931
931
 
@@ -9,104 +9,43 @@
9
9
 
10
10
  module Aws::AutoScalingPlans
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
20
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://autoscaling-plans-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ return Aws::Endpoints::Endpoint.new(url: "https://autoscaling-plans-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
+ end
37
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
38
+ end
39
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
+ return Aws::Endpoints::Endpoint.new(url: "https://autoscaling-plans.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
42
+ end
43
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
44
+ end
45
+ return Aws::Endpoints::Endpoint.new(url: "https://autoscaling-plans.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
21
46
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
47
+ raise ArgumentError, 'No endpoint could be resolved'
24
48
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
49
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
- dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRj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W5nLXBsYW5zLntSZWdpb259LntQYXJ0
101
- aXRpb25SZXN1bHQjZHVhbFN0YWNrRG5zU3VmZml4fSIsInByb3BlcnRpZXMi
102
- Ont9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRwb2ludCJ9XX0seyJjb25k
103
- aXRpb25zIjpbXSwiZXJyb3IiOiJEdWFsU3RhY2sgaXMgZW5hYmxlZCBidXQg
104
- dGhpcyBwYXJ0aXRpb24gZG9lcyBub3Qgc3VwcG9ydCBEdWFsU3RhY2siLCJ0
105
- eXBlIjoiZXJyb3IifV19LHsiY29uZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7
106
- InVybCI6Imh0dHBzOi8vYXV0b3NjYWxpbmctcGxhbnMue1JlZ2lvbn0ue1Bh
107
- cnRpdGlvblJlc3VsdCNkbnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30sImhl
108
- YWRlcnMiOnt9fSwidHlwZSI6ImVuZHBvaW50In1dfV19
109
-
110
- JSON
111
50
  end
112
51
  end
@@ -12,19 +12,6 @@ module Aws::AutoScalingPlans
12
12
 
13
13
  # Represents an application source.
14
14
  #
15
- # @note When making an API call, you may pass ApplicationSource
16
- # data as a hash:
17
- #
18
- # {
19
- # cloud_formation_stack_arn: "XmlString",
20
- # tag_filters: [
21
- # {
22
- # key: "XmlStringMaxLen128",
23
- # values: ["XmlStringMaxLen256"],
24
- # },
25
- # ],
26
- # }
27
- #
28
15
  # @!attribute [rw] cloud_formation_stack_arn
29
16
  # The Amazon Resource Name (ARN) of a AWS CloudFormation stack.
30
17
  # @return [String]
@@ -56,78 +43,6 @@ module Aws::AutoScalingPlans
56
43
  include Aws::Structure
57
44
  end
58
45
 
59
- # @note When making an API call, you may pass CreateScalingPlanRequest
60
- # data as a hash:
61
- #
62
- # {
63
- # scaling_plan_name: "ScalingPlanName", # required
64
- # application_source: { # required
65
- # cloud_formation_stack_arn: "XmlString",
66
- # tag_filters: [
67
- # {
68
- # key: "XmlStringMaxLen128",
69
- # values: ["XmlStringMaxLen256"],
70
- # },
71
- # ],
72
- # },
73
- # scaling_instructions: [ # required
74
- # {
75
- # service_namespace: "autoscaling", # required, accepts autoscaling, ecs, ec2, rds, dynamodb
76
- # resource_id: "ResourceIdMaxLen1600", # required
77
- # scalable_dimension: "autoscaling:autoScalingGroup:DesiredCapacity", # required, accepts autoscaling:autoScalingGroup:DesiredCapacity, ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, rds:cluster:ReadReplicaCount, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits
78
- # min_capacity: 1, # required
79
- # max_capacity: 1, # required
80
- # target_tracking_configurations: [ # required
81
- # {
82
- # predefined_scaling_metric_specification: {
83
- # predefined_scaling_metric_type: "ASGAverageCPUUtilization", # required, accepts ASGAverageCPUUtilization, ASGAverageNetworkIn, ASGAverageNetworkOut, DynamoDBReadCapacityUtilization, DynamoDBWriteCapacityUtilization, ECSServiceAverageCPUUtilization, ECSServiceAverageMemoryUtilization, ALBRequestCountPerTarget, RDSReaderAverageCPUUtilization, RDSReaderAverageDatabaseConnections, EC2SpotFleetRequestAverageCPUUtilization, EC2SpotFleetRequestAverageNetworkIn, EC2SpotFleetRequestAverageNetworkOut
84
- # resource_label: "ResourceLabel",
85
- # },
86
- # customized_scaling_metric_specification: {
87
- # metric_name: "MetricName", # required
88
- # namespace: "MetricNamespace", # required
89
- # dimensions: [
90
- # {
91
- # name: "MetricDimensionName", # required
92
- # value: "MetricDimensionValue", # required
93
- # },
94
- # ],
95
- # statistic: "Average", # required, accepts Average, Minimum, Maximum, SampleCount, Sum
96
- # unit: "MetricUnit",
97
- # },
98
- # target_value: 1.0, # required
99
- # disable_scale_in: false,
100
- # scale_out_cooldown: 1,
101
- # scale_in_cooldown: 1,
102
- # estimated_instance_warmup: 1,
103
- # },
104
- # ],
105
- # predefined_load_metric_specification: {
106
- # predefined_load_metric_type: "ASGTotalCPUUtilization", # required, accepts ASGTotalCPUUtilization, ASGTotalNetworkIn, ASGTotalNetworkOut, ALBTargetGroupRequestCount
107
- # resource_label: "ResourceLabel",
108
- # },
109
- # customized_load_metric_specification: {
110
- # metric_name: "MetricName", # required
111
- # namespace: "MetricNamespace", # required
112
- # dimensions: [
113
- # {
114
- # name: "MetricDimensionName", # required
115
- # value: "MetricDimensionValue", # required
116
- # },
117
- # ],
118
- # statistic: "Average", # required, accepts Average, Minimum, Maximum, SampleCount, Sum
119
- # unit: "MetricUnit",
120
- # },
121
- # scheduled_action_buffer_time: 1,
122
- # predictive_scaling_max_capacity_behavior: "SetForecastCapacityToMaxCapacity", # accepts SetForecastCapacityToMaxCapacity, SetMaxCapacityToForecastCapacity, SetMaxCapacityAboveForecastCapacity
123
- # predictive_scaling_max_capacity_buffer: 1,
124
- # predictive_scaling_mode: "ForecastAndScale", # accepts ForecastAndScale, ForecastOnly
125
- # scaling_policy_update_behavior: "KeepExternalPolicies", # accepts KeepExternalPolicies, ReplaceExternalPolicies
126
- # disable_dynamic_scaling: false,
127
- # },
128
- # ],
129
- # }
130
- #
131
46
  # @!attribute [rw] scaling_plan_name
132
47
  # The name of the scaling plan. Names cannot contain vertical bars,
133
48
  # colons, or forward slashes.
@@ -217,22 +132,6 @@ module Aws::AutoScalingPlans
217
132
  # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html
218
133
  # [2]: https://docs.aws.amazon.com/autoscaling/plans/userguide/gs-create-scaling-plan.html#gs-view-resource
219
134
  #
220
- # @note When making an API call, you may pass CustomizedLoadMetricSpecification
221
- # data as a hash:
222
- #
223
- # {
224
- # metric_name: "MetricName", # required
225
- # namespace: "MetricNamespace", # required
226
- # dimensions: [
227
- # {
228
- # name: "MetricDimensionName", # required
229
- # value: "MetricDimensionValue", # required
230
- # },
231
- # ],
232
- # statistic: "Average", # required, accepts Average, Minimum, Maximum, SampleCount, Sum
233
- # unit: "MetricUnit",
234
- # }
235
- #
236
135
  # @!attribute [rw] metric_name
237
136
  # The name of the metric.
238
137
  # @return [String]
@@ -294,22 +193,6 @@ module Aws::AutoScalingPlans
294
193
  # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html
295
194
  # [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html
296
195
  #
297
- # @note When making an API call, you may pass CustomizedScalingMetricSpecification
298
- # data as a hash:
299
- #
300
- # {
301
- # metric_name: "MetricName", # required
302
- # namespace: "MetricNamespace", # required
303
- # dimensions: [
304
- # {
305
- # name: "MetricDimensionName", # required
306
- # value: "MetricDimensionValue", # required
307
- # },
308
- # ],
309
- # statistic: "Average", # required, accepts Average, Minimum, Maximum, SampleCount, Sum
310
- # unit: "MetricUnit",
311
- # }
312
- #
313
196
  # @!attribute [rw] metric_name
314
197
  # The name of the metric.
315
198
  # @return [String]
@@ -366,14 +249,6 @@ module Aws::AutoScalingPlans
366
249
  include Aws::Structure
367
250
  end
368
251
 
369
- # @note When making an API call, you may pass DeleteScalingPlanRequest
370
- # data as a hash:
371
- #
372
- # {
373
- # scaling_plan_name: "ScalingPlanName", # required
374
- # scaling_plan_version: 1, # required
375
- # }
376
- #
377
252
  # @!attribute [rw] scaling_plan_name
378
253
  # The name of the scaling plan.
379
254
  # @return [String]
@@ -396,16 +271,6 @@ module Aws::AutoScalingPlans
396
271
  #
397
272
  class DeleteScalingPlanResponse < Aws::EmptyStructure; end
398
273
 
399
- # @note When making an API call, you may pass DescribeScalingPlanResourcesRequest
400
- # data as a hash:
401
- #
402
- # {
403
- # scaling_plan_name: "ScalingPlanName", # required
404
- # scaling_plan_version: 1, # required
405
- # max_results: 1,
406
- # next_token: "NextToken",
407
- # }
408
- #
409
274
  # @!attribute [rw] scaling_plan_name
410
275
  # The name of the scaling plan.
411
276
  # @return [String]
@@ -453,27 +318,6 @@ module Aws::AutoScalingPlans
453
318
  include Aws::Structure
454
319
  end
455
320
 
456
- # @note When making an API call, you may pass DescribeScalingPlansRequest
457
- # data as a hash:
458
- #
459
- # {
460
- # scaling_plan_names: ["ScalingPlanName"],
461
- # scaling_plan_version: 1,
462
- # application_sources: [
463
- # {
464
- # cloud_formation_stack_arn: "XmlString",
465
- # tag_filters: [
466
- # {
467
- # key: "XmlStringMaxLen128",
468
- # values: ["XmlStringMaxLen256"],
469
- # },
470
- # ],
471
- # },
472
- # ],
473
- # max_results: 1,
474
- # next_token: "NextToken",
475
- # }
476
- #
477
321
  # @!attribute [rw] scaling_plan_names
478
322
  # The names of the scaling plans (up to 10). If you specify
479
323
  # application sources, you cannot specify scaling plan names.
@@ -533,20 +377,6 @@ module Aws::AutoScalingPlans
533
377
  include Aws::Structure
534
378
  end
535
379
 
536
- # @note When making an API call, you may pass GetScalingPlanResourceForecastDataRequest
537
- # data as a hash:
538
- #
539
- # {
540
- # scaling_plan_name: "ScalingPlanName", # required
541
- # scaling_plan_version: 1, # required
542
- # service_namespace: "autoscaling", # required, accepts autoscaling, ecs, ec2, rds, dynamodb
543
- # resource_id: "XmlString", # required
544
- # scalable_dimension: "autoscaling:autoScalingGroup:DesiredCapacity", # required, accepts autoscaling:autoScalingGroup:DesiredCapacity, ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, rds:cluster:ReadReplicaCount, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits
545
- # forecast_data_type: "CapacityForecast", # required, accepts CapacityForecast, LoadForecast, ScheduledActionMinCapacity, ScheduledActionMaxCapacity
546
- # start_time: Time.now, # required
547
- # end_time: Time.now, # required
548
- # }
549
- #
550
380
  # @!attribute [rw] scaling_plan_name
551
381
  # The name of the scaling plan.
552
382
  # @return [String]
@@ -676,14 +506,6 @@ module Aws::AutoScalingPlans
676
506
 
677
507
  # Represents a dimension for a customized metric.
678
508
  #
679
- # @note When making an API call, you may pass MetricDimension
680
- # data as a hash:
681
- #
682
- # {
683
- # name: "MetricDimensionName", # required
684
- # value: "MetricDimensionValue", # required
685
- # }
686
- #
687
509
  # @!attribute [rw] name
688
510
  # The name of the dimension.
689
511
  # @return [String]
@@ -726,14 +548,6 @@ module Aws::AutoScalingPlans
726
548
  #
727
549
  # [1]: https://docs.aws.amazon.com/autoscaling/plans/userguide/gs-create-scaling-plan.html#gs-view-resource
728
550
  #
729
- # @note When making an API call, you may pass PredefinedLoadMetricSpecification
730
- # data as a hash:
731
- #
732
- # {
733
- # predefined_load_metric_type: "ASGTotalCPUUtilization", # required, accepts ASGTotalCPUUtilization, ASGTotalNetworkIn, ASGTotalNetworkOut, ALBTargetGroupRequestCount
734
- # resource_label: "ResourceLabel",
735
- # }
736
- #
737
551
  # @!attribute [rw] predefined_load_metric_type
738
552
  # The metric type.
739
553
  # @return [String]
@@ -781,14 +595,6 @@ module Aws::AutoScalingPlans
781
595
  # Represents a predefined metric that can be used for dynamic scaling as
782
596
  # part of a target tracking scaling policy.
783
597
  #
784
- # @note When making an API call, you may pass PredefinedScalingMetricSpecification
785
- # data as a hash:
786
- #
787
- # {
788
- # predefined_scaling_metric_type: "ASGAverageCPUUtilization", # required, accepts ASGAverageCPUUtilization, ASGAverageNetworkIn, ASGAverageNetworkOut, DynamoDBReadCapacityUtilization, DynamoDBWriteCapacityUtilization, ECSServiceAverageCPUUtilization, ECSServiceAverageMemoryUtilization, ALBRequestCountPerTarget, RDSReaderAverageCPUUtilization, RDSReaderAverageDatabaseConnections, EC2SpotFleetRequestAverageCPUUtilization, EC2SpotFleetRequestAverageNetworkIn, EC2SpotFleetRequestAverageNetworkOut
789
- # resource_label: "ResourceLabel",
790
- # }
791
- #
792
598
  # @!attribute [rw] predefined_scaling_metric_type
793
599
  # The metric type. The `ALBRequestCountPerTarget` metric type applies
794
600
  # only to Auto Scaling groups, Spot Fleet requests, and ECS services.
@@ -863,64 +669,6 @@ module Aws::AutoScalingPlans
863
669
  #
864
670
  # [1]: https://docs.aws.amazon.com/autoscaling/plans/userguide/gs-best-practices.html
865
671
  #
866
- # @note When making an API call, you may pass ScalingInstruction
867
- # data as a hash:
868
- #
869
- # {
870
- # service_namespace: "autoscaling", # required, accepts autoscaling, ecs, ec2, rds, dynamodb
871
- # resource_id: "ResourceIdMaxLen1600", # required
872
- # scalable_dimension: "autoscaling:autoScalingGroup:DesiredCapacity", # required, accepts autoscaling:autoScalingGroup:DesiredCapacity, ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, rds:cluster:ReadReplicaCount, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits
873
- # min_capacity: 1, # required
874
- # max_capacity: 1, # required
875
- # target_tracking_configurations: [ # required
876
- # {
877
- # predefined_scaling_metric_specification: {
878
- # predefined_scaling_metric_type: "ASGAverageCPUUtilization", # required, accepts ASGAverageCPUUtilization, ASGAverageNetworkIn, ASGAverageNetworkOut, DynamoDBReadCapacityUtilization, DynamoDBWriteCapacityUtilization, ECSServiceAverageCPUUtilization, ECSServiceAverageMemoryUtilization, ALBRequestCountPerTarget, RDSReaderAverageCPUUtilization, RDSReaderAverageDatabaseConnections, EC2SpotFleetRequestAverageCPUUtilization, EC2SpotFleetRequestAverageNetworkIn, EC2SpotFleetRequestAverageNetworkOut
879
- # resource_label: "ResourceLabel",
880
- # },
881
- # customized_scaling_metric_specification: {
882
- # metric_name: "MetricName", # required
883
- # namespace: "MetricNamespace", # required
884
- # dimensions: [
885
- # {
886
- # name: "MetricDimensionName", # required
887
- # value: "MetricDimensionValue", # required
888
- # },
889
- # ],
890
- # statistic: "Average", # required, accepts Average, Minimum, Maximum, SampleCount, Sum
891
- # unit: "MetricUnit",
892
- # },
893
- # target_value: 1.0, # required
894
- # disable_scale_in: false,
895
- # scale_out_cooldown: 1,
896
- # scale_in_cooldown: 1,
897
- # estimated_instance_warmup: 1,
898
- # },
899
- # ],
900
- # predefined_load_metric_specification: {
901
- # predefined_load_metric_type: "ASGTotalCPUUtilization", # required, accepts ASGTotalCPUUtilization, ASGTotalNetworkIn, ASGTotalNetworkOut, ALBTargetGroupRequestCount
902
- # resource_label: "ResourceLabel",
903
- # },
904
- # customized_load_metric_specification: {
905
- # metric_name: "MetricName", # required
906
- # namespace: "MetricNamespace", # required
907
- # dimensions: [
908
- # {
909
- # name: "MetricDimensionName", # required
910
- # value: "MetricDimensionValue", # required
911
- # },
912
- # ],
913
- # statistic: "Average", # required, accepts Average, Minimum, Maximum, SampleCount, Sum
914
- # unit: "MetricUnit",
915
- # },
916
- # scheduled_action_buffer_time: 1,
917
- # predictive_scaling_max_capacity_behavior: "SetForecastCapacityToMaxCapacity", # accepts SetForecastCapacityToMaxCapacity, SetMaxCapacityToForecastCapacity, SetMaxCapacityAboveForecastCapacity
918
- # predictive_scaling_max_capacity_buffer: 1,
919
- # predictive_scaling_mode: "ForecastAndScale", # accepts ForecastAndScale, ForecastOnly
920
- # scaling_policy_update_behavior: "KeepExternalPolicies", # accepts KeepExternalPolicies, ReplaceExternalPolicies
921
- # disable_dynamic_scaling: false,
922
- # }
923
- #
924
672
  # @!attribute [rw] service_namespace
925
673
  # The namespace of the AWS service.
926
674
  # @return [String]
@@ -1321,14 +1069,6 @@ module Aws::AutoScalingPlans
1321
1069
 
1322
1070
  # Represents a tag.
1323
1071
  #
1324
- # @note When making an API call, you may pass TagFilter
1325
- # data as a hash:
1326
- #
1327
- # {
1328
- # key: "XmlStringMaxLen128",
1329
- # values: ["XmlStringMaxLen256"],
1330
- # }
1331
- #
1332
1072
  # @!attribute [rw] key
1333
1073
  # The tag key.
1334
1074
  # @return [String]
@@ -1349,33 +1089,6 @@ module Aws::AutoScalingPlans
1349
1089
  # Describes a target tracking configuration to use with AWS Auto
1350
1090
  # Scaling. Used with ScalingInstruction and ScalingPolicy.
1351
1091
  #
1352
- # @note When making an API call, you may pass TargetTrackingConfiguration
1353
- # data as a hash:
1354
- #
1355
- # {
1356
- # predefined_scaling_metric_specification: {
1357
- # predefined_scaling_metric_type: "ASGAverageCPUUtilization", # required, accepts ASGAverageCPUUtilization, ASGAverageNetworkIn, ASGAverageNetworkOut, DynamoDBReadCapacityUtilization, DynamoDBWriteCapacityUtilization, ECSServiceAverageCPUUtilization, ECSServiceAverageMemoryUtilization, ALBRequestCountPerTarget, RDSReaderAverageCPUUtilization, RDSReaderAverageDatabaseConnections, EC2SpotFleetRequestAverageCPUUtilization, EC2SpotFleetRequestAverageNetworkIn, EC2SpotFleetRequestAverageNetworkOut
1358
- # resource_label: "ResourceLabel",
1359
- # },
1360
- # customized_scaling_metric_specification: {
1361
- # metric_name: "MetricName", # required
1362
- # namespace: "MetricNamespace", # required
1363
- # dimensions: [
1364
- # {
1365
- # name: "MetricDimensionName", # required
1366
- # value: "MetricDimensionValue", # required
1367
- # },
1368
- # ],
1369
- # statistic: "Average", # required, accepts Average, Minimum, Maximum, SampleCount, Sum
1370
- # unit: "MetricUnit",
1371
- # },
1372
- # target_value: 1.0, # required
1373
- # disable_scale_in: false,
1374
- # scale_out_cooldown: 1,
1375
- # scale_in_cooldown: 1,
1376
- # estimated_instance_warmup: 1,
1377
- # }
1378
- #
1379
1092
  # @!attribute [rw] predefined_scaling_metric_specification
1380
1093
  # A predefined metric. You can specify either a predefined metric or a
1381
1094
  # customized metric.
@@ -1450,79 +1163,6 @@ module Aws::AutoScalingPlans
1450
1163
  include Aws::Structure
1451
1164
  end
1452
1165
 
1453
- # @note When making an API call, you may pass UpdateScalingPlanRequest
1454
- # data as a hash:
1455
- #
1456
- # {
1457
- # scaling_plan_name: "ScalingPlanName", # required
1458
- # scaling_plan_version: 1, # required
1459
- # application_source: {
1460
- # cloud_formation_stack_arn: "XmlString",
1461
- # tag_filters: [
1462
- # {
1463
- # key: "XmlStringMaxLen128",
1464
- # values: ["XmlStringMaxLen256"],
1465
- # },
1466
- # ],
1467
- # },
1468
- # scaling_instructions: [
1469
- # {
1470
- # service_namespace: "autoscaling", # required, accepts autoscaling, ecs, ec2, rds, dynamodb
1471
- # resource_id: "ResourceIdMaxLen1600", # required
1472
- # scalable_dimension: "autoscaling:autoScalingGroup:DesiredCapacity", # required, accepts autoscaling:autoScalingGroup:DesiredCapacity, ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, rds:cluster:ReadReplicaCount, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits
1473
- # min_capacity: 1, # required
1474
- # max_capacity: 1, # required
1475
- # target_tracking_configurations: [ # required
1476
- # {
1477
- # predefined_scaling_metric_specification: {
1478
- # predefined_scaling_metric_type: "ASGAverageCPUUtilization", # required, accepts ASGAverageCPUUtilization, ASGAverageNetworkIn, ASGAverageNetworkOut, DynamoDBReadCapacityUtilization, DynamoDBWriteCapacityUtilization, ECSServiceAverageCPUUtilization, ECSServiceAverageMemoryUtilization, ALBRequestCountPerTarget, RDSReaderAverageCPUUtilization, RDSReaderAverageDatabaseConnections, EC2SpotFleetRequestAverageCPUUtilization, EC2SpotFleetRequestAverageNetworkIn, EC2SpotFleetRequestAverageNetworkOut
1479
- # resource_label: "ResourceLabel",
1480
- # },
1481
- # customized_scaling_metric_specification: {
1482
- # metric_name: "MetricName", # required
1483
- # namespace: "MetricNamespace", # required
1484
- # dimensions: [
1485
- # {
1486
- # name: "MetricDimensionName", # required
1487
- # value: "MetricDimensionValue", # required
1488
- # },
1489
- # ],
1490
- # statistic: "Average", # required, accepts Average, Minimum, Maximum, SampleCount, Sum
1491
- # unit: "MetricUnit",
1492
- # },
1493
- # target_value: 1.0, # required
1494
- # disable_scale_in: false,
1495
- # scale_out_cooldown: 1,
1496
- # scale_in_cooldown: 1,
1497
- # estimated_instance_warmup: 1,
1498
- # },
1499
- # ],
1500
- # predefined_load_metric_specification: {
1501
- # predefined_load_metric_type: "ASGTotalCPUUtilization", # required, accepts ASGTotalCPUUtilization, ASGTotalNetworkIn, ASGTotalNetworkOut, ALBTargetGroupRequestCount
1502
- # resource_label: "ResourceLabel",
1503
- # },
1504
- # customized_load_metric_specification: {
1505
- # metric_name: "MetricName", # required
1506
- # namespace: "MetricNamespace", # required
1507
- # dimensions: [
1508
- # {
1509
- # name: "MetricDimensionName", # required
1510
- # value: "MetricDimensionValue", # required
1511
- # },
1512
- # ],
1513
- # statistic: "Average", # required, accepts Average, Minimum, Maximum, SampleCount, Sum
1514
- # unit: "MetricUnit",
1515
- # },
1516
- # scheduled_action_buffer_time: 1,
1517
- # predictive_scaling_max_capacity_behavior: "SetForecastCapacityToMaxCapacity", # accepts SetForecastCapacityToMaxCapacity, SetMaxCapacityToForecastCapacity, SetMaxCapacityAboveForecastCapacity
1518
- # predictive_scaling_max_capacity_buffer: 1,
1519
- # predictive_scaling_mode: "ForecastAndScale", # accepts ForecastAndScale, ForecastOnly
1520
- # scaling_policy_update_behavior: "KeepExternalPolicies", # accepts KeepExternalPolicies, ReplaceExternalPolicies
1521
- # disable_dynamic_scaling: false,
1522
- # },
1523
- # ],
1524
- # }
1525
- #
1526
1166
  # @!attribute [rw] scaling_plan_name
1527
1167
  # The name of the scaling plan.
1528
1168
  # @return [String]
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-autoscalingplans/customizations'
52
52
  # @!group service
53
53
  module Aws::AutoScalingPlans
54
54
 
55
- GEM_VERSION = '1.41.0'
55
+ GEM_VERSION = '1.42.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-autoscalingplans
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.41.0
4
+ version: 1.42.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: 2022-10-25 00:00:00.000000000 Z
11
+ date: 2023-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core