aws-sdk-autoscalingplans 1.37.0 → 1.49.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: 041435e261bb9a356b6c97f11cf626d6954eae79acb4950a55506fca287bac8f
4
- data.tar.gz: 7aedcabfdd1c1b2a49cf0792424c0d592f963a938e6ae859c69029cb53852a3b
3
+ metadata.gz: b571f72eab58fda5ab02d57a0c3e89afe54b7d9a7626e630efa39a58fa0dbd0e
4
+ data.tar.gz: f21a5279683e042be509a1bf2db90c859060353437c1a1cb6d2d8c9ee529d6bd
5
5
  SHA512:
6
- metadata.gz: 15c8853f65c4903093cfe650101d7e0f1b9615f86467fb4d3b3c3a7f5128aacb176d1a7b0daf3311318de1b866e9c0064d8f1c8907ea388423197c3efe443be0
7
- data.tar.gz: 1f77eae00ef6fabddc743ae355df2e2014013346b9fa1efe5ca90758573afc3fd3f6f40286182a44b4a8ebb3442124eb7d03276dd01dca3276809e6c9e92fb7c
6
+ metadata.gz: c39015fcbb91adafd1206cd88c11509a2705c30777987450c36b7d576582189cdb5c38621df906a26aeb64db140e65567870a29ad6db4dc701bf3e8c68317ae2
7
+ data.tar.gz: 519c14eb9b7bb893b30689ac76a75c44b2206951ca99ef0e42b5b13465585fb41c4c4febbf878d23d275383fd34bad585320f9d5c489463b95d4a4bcce5e4c4d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,68 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.49.0 (2023-09-27)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.48.0 (2023-09-19)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.47.0 (2023-07-11)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.46.0 (2023-07-06)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
24
+ 1.45.0 (2023-06-28)
25
+ ------------------
26
+
27
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
28
+
29
+ 1.44.0 (2023-06-15)
30
+ ------------------
31
+
32
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
33
+
34
+ 1.43.0 (2023-05-31)
35
+ ------------------
36
+
37
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
38
+
39
+ 1.42.0 (2023-01-18)
40
+ ------------------
41
+
42
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
43
+
44
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
45
+
46
+ 1.41.0 (2022-10-25)
47
+ ------------------
48
+
49
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
50
+
51
+ 1.40.0 (2022-02-24)
52
+ ------------------
53
+
54
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
55
+
56
+ 1.39.0 (2022-02-03)
57
+ ------------------
58
+
59
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
60
+
61
+ 1.38.0 (2021-12-21)
62
+ ------------------
63
+
64
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
65
+
4
66
  1.37.0 (2021-11-30)
5
67
  ------------------
6
68
 
@@ -195,4 +257,4 @@ Unreleased Changes
195
257
  1.0.0 (2018-01-17)
196
258
  ------------------
197
259
 
198
- * Feature - Initial release of `aws-sdk-autoscalingplans`.
260
+ * Feature - Initial release of `aws-sdk-autoscalingplans`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.37.0
1
+ 1.49.0
@@ -27,7 +27,11 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
- require 'aws-sdk-core/plugins/signature_v4.rb'
30
+ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
+ require 'aws-sdk-core/plugins/request_compression.rb'
32
+ require 'aws-sdk-core/plugins/defaults_mode.rb'
33
+ require 'aws-sdk-core/plugins/recursion_detection.rb'
34
+ require 'aws-sdk-core/plugins/sign.rb'
31
35
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
32
36
 
33
37
  Aws::Plugins::GlobalConfiguration.add_identifier(:autoscalingplans)
@@ -73,8 +77,13 @@ module Aws::AutoScalingPlans
73
77
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
74
78
  add_plugin(Aws::Plugins::TransferEncoding)
75
79
  add_plugin(Aws::Plugins::HttpChecksum)
76
- add_plugin(Aws::Plugins::SignatureV4)
80
+ add_plugin(Aws::Plugins::ChecksumAlgorithm)
81
+ add_plugin(Aws::Plugins::RequestCompression)
82
+ add_plugin(Aws::Plugins::DefaultsMode)
83
+ add_plugin(Aws::Plugins::RecursionDetection)
84
+ add_plugin(Aws::Plugins::Sign)
77
85
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
86
+ add_plugin(Aws::AutoScalingPlans::Plugins::Endpoints)
78
87
 
79
88
  # @overload initialize(options)
80
89
  # @param [Hash] options
@@ -175,10 +184,18 @@ module Aws::AutoScalingPlans
175
184
  # Used only in `standard` and adaptive retry modes. Specifies whether to apply
176
185
  # a clock skew correction and retry requests with skewed client clocks.
177
186
  #
187
+ # @option options [String] :defaults_mode ("legacy")
188
+ # See {Aws::DefaultsModeConfiguration} for a list of the
189
+ # accepted modes and the configuration defaults that are included.
190
+ #
178
191
  # @option options [Boolean] :disable_host_prefix_injection (false)
179
192
  # Set to true to disable SDK automatically adding host prefix
180
193
  # to default service endpoint when available.
181
194
  #
195
+ # @option options [Boolean] :disable_request_compression (false)
196
+ # When set to 'true' the request body will not be compressed
197
+ # for supported operations.
198
+ #
182
199
  # @option options [String] :endpoint
183
200
  # The client endpoint is normally constructed from the `:region`
184
201
  # option. You should only configure an `:endpoint` when connecting
@@ -199,6 +216,10 @@ module Aws::AutoScalingPlans
199
216
  # @option options [Boolean] :endpoint_discovery (false)
200
217
  # When set to `true`, endpoint discovery will be enabled for operations when available.
201
218
  #
219
+ # @option options [Boolean] :ignore_configured_endpoint_urls
220
+ # Setting to true disables use of endpoint URLs provided via environment
221
+ # variables and the shared configuration file.
222
+ #
202
223
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
203
224
  # The log formatter.
204
225
  #
@@ -219,6 +240,11 @@ module Aws::AutoScalingPlans
219
240
  # Used when loading credentials from the shared credentials file
220
241
  # at HOME/.aws/credentials. When not specified, 'default' is used.
221
242
  #
243
+ # @option options [Integer] :request_min_compression_size_bytes (10240)
244
+ # The minimum size in bytes that triggers compression for request
245
+ # bodies. The value must be non-negative integer value between 0
246
+ # and 10485780 bytes inclusive.
247
+ #
222
248
  # @option options [Proc] :retry_backoff
223
249
  # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
224
250
  # This option is only used in the `legacy` retry mode.
@@ -264,6 +290,11 @@ module Aws::AutoScalingPlans
264
290
  # in the future.
265
291
  #
266
292
  #
293
+ # @option options [String] :sdk_ua_app_id
294
+ # A unique and opaque application ID that is appended to the
295
+ # User-Agent header as app/<sdk_ua_app_id>. It should have a
296
+ # maximum length of 50.
297
+ #
267
298
  # @option options [String] :secret_access_key
268
299
  #
269
300
  # @option options [String] :session_token
@@ -287,6 +318,19 @@ module Aws::AutoScalingPlans
287
318
  # ** Please note ** When response stubbing is enabled, no HTTP
288
319
  # requests are made, and retries are disabled.
289
320
  #
321
+ # @option options [Aws::TokenProvider] :token_provider
322
+ # A Bearer Token Provider. This can be an instance of any one of the
323
+ # following classes:
324
+ #
325
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
326
+ # tokens.
327
+ #
328
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
329
+ # access token generated from `aws login`.
330
+ #
331
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
332
+ # will be used to search for tokens configured for your profile in shared configuration files.
333
+ #
290
334
  # @option options [Boolean] :use_dualstack_endpoint
291
335
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
292
336
  # will be used if available.
@@ -300,6 +344,9 @@ module Aws::AutoScalingPlans
300
344
  # When `true`, request parameters are validated before
301
345
  # sending the request.
302
346
  #
347
+ # @option options [Aws::AutoScalingPlans::EndpointProvider] :endpoint_provider
348
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::AutoScalingPlans::EndpointParameters`
349
+ #
303
350
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
304
351
  # requests through. Formatted like 'http://proxy.com:123'.
305
352
  #
@@ -307,7 +354,7 @@ module Aws::AutoScalingPlans
307
354
  # seconds to wait when opening a HTTP session before raising a
308
355
  # `Timeout::Error`.
309
356
  #
310
- # @option options [Integer] :http_read_timeout (60) The default
357
+ # @option options [Float] :http_read_timeout (60) The default
311
358
  # number of seconds to wait for response data. This value can
312
359
  # safely be set per-request on the session.
313
360
  #
@@ -323,6 +370,9 @@ module Aws::AutoScalingPlans
323
370
  # disables this behaviour. This value can safely be set per
324
371
  # request on the session.
325
372
  #
373
+ # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
374
+ # in seconds.
375
+ #
326
376
  # @option options [Boolean] :http_wire_trace (false) When `true`,
327
377
  # HTTP debug output will be sent to the `:logger`.
328
378
  #
@@ -706,16 +756,16 @@ module Aws::AutoScalingPlans
706
756
  # @option params [required, String] :forecast_data_type
707
757
  # The type of forecast data to get.
708
758
  #
709
- # * `LoadForecast`\: The load metric forecast.
759
+ # * `LoadForecast`: The load metric forecast.
710
760
  #
711
- # * `CapacityForecast`\: The capacity forecast.
761
+ # * `CapacityForecast`: The capacity forecast.
712
762
  #
713
- # * `ScheduledActionMinCapacity`\: The minimum capacity for each
763
+ # * `ScheduledActionMinCapacity`: The minimum capacity for each
714
764
  # scheduled scaling action. This data is calculated as the larger of
715
765
  # two values: the capacity forecast or the minimum capacity in the
716
766
  # scaling instruction.
717
767
  #
718
- # * `ScheduledActionMaxCapacity`\: The maximum capacity for each
768
+ # * `ScheduledActionMaxCapacity`: The maximum capacity for each
719
769
  # scheduled scaling action. The calculation used is determined by the
720
770
  # predictive scaling maximum capacity behavior setting in the scaling
721
771
  # instruction.
@@ -895,7 +945,7 @@ module Aws::AutoScalingPlans
895
945
  params: params,
896
946
  config: config)
897
947
  context[:gem_name] = 'aws-sdk-autoscalingplans'
898
- context[:gem_version] = '1.37.0'
948
+ context[:gem_version] = '1.49.0'
899
949
  Seahorse::Client::Request.new(handlers, context)
900
950
  end
901
951
 
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::AutoScalingPlans
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,54 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::AutoScalingPlans
11
+ class EndpointProvider
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 Aws::Endpoints::Matchers.set?(endpoint)
18
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
+ end
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ 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"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://autoscaling-plans-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://autoscaling-plans-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://autoscaling-plans.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
+ end
46
+ return Aws::Endpoints::Endpoint.new(url: "https://autoscaling-plans.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
47
+ end
48
+ end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
50
+ raise ArgumentError, 'No endpoint could be resolved'
51
+
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,100 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::AutoScalingPlans
12
+ # @api private
13
+ module Endpoints
14
+
15
+ class CreateScalingPlan
16
+ def self.build(context)
17
+ unless context.config.regional_endpoint
18
+ endpoint = context.config.endpoint.to_s
19
+ end
20
+ Aws::AutoScalingPlans::EndpointParameters.new(
21
+ region: context.config.region,
22
+ use_dual_stack: context.config.use_dualstack_endpoint,
23
+ use_fips: context.config.use_fips_endpoint,
24
+ endpoint: endpoint,
25
+ )
26
+ end
27
+ end
28
+
29
+ class DeleteScalingPlan
30
+ def self.build(context)
31
+ unless context.config.regional_endpoint
32
+ endpoint = context.config.endpoint.to_s
33
+ end
34
+ Aws::AutoScalingPlans::EndpointParameters.new(
35
+ region: context.config.region,
36
+ use_dual_stack: context.config.use_dualstack_endpoint,
37
+ use_fips: context.config.use_fips_endpoint,
38
+ endpoint: endpoint,
39
+ )
40
+ end
41
+ end
42
+
43
+ class DescribeScalingPlanResources
44
+ def self.build(context)
45
+ unless context.config.regional_endpoint
46
+ endpoint = context.config.endpoint.to_s
47
+ end
48
+ Aws::AutoScalingPlans::EndpointParameters.new(
49
+ region: context.config.region,
50
+ use_dual_stack: context.config.use_dualstack_endpoint,
51
+ use_fips: context.config.use_fips_endpoint,
52
+ endpoint: endpoint,
53
+ )
54
+ end
55
+ end
56
+
57
+ class DescribeScalingPlans
58
+ def self.build(context)
59
+ unless context.config.regional_endpoint
60
+ endpoint = context.config.endpoint.to_s
61
+ end
62
+ Aws::AutoScalingPlans::EndpointParameters.new(
63
+ region: context.config.region,
64
+ use_dual_stack: context.config.use_dualstack_endpoint,
65
+ use_fips: context.config.use_fips_endpoint,
66
+ endpoint: endpoint,
67
+ )
68
+ end
69
+ end
70
+
71
+ class GetScalingPlanResourceForecastData
72
+ def self.build(context)
73
+ unless context.config.regional_endpoint
74
+ endpoint = context.config.endpoint.to_s
75
+ end
76
+ Aws::AutoScalingPlans::EndpointParameters.new(
77
+ region: context.config.region,
78
+ use_dual_stack: context.config.use_dualstack_endpoint,
79
+ use_fips: context.config.use_fips_endpoint,
80
+ endpoint: endpoint,
81
+ )
82
+ end
83
+ end
84
+
85
+ class UpdateScalingPlan
86
+ def self.build(context)
87
+ unless context.config.regional_endpoint
88
+ endpoint = context.config.endpoint.to_s
89
+ end
90
+ Aws::AutoScalingPlans::EndpointParameters.new(
91
+ region: context.config.region,
92
+ use_dual_stack: context.config.use_dualstack_endpoint,
93
+ use_fips: context.config.use_fips_endpoint,
94
+ endpoint: endpoint,
95
+ )
96
+ end
97
+ end
98
+
99
+ end
100
+ end
@@ -0,0 +1,80 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::AutoScalingPlans
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::AutoScalingPlans::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::AutoScalingPlans::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::AutoScalingPlans::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :create_scaling_plan
60
+ Aws::AutoScalingPlans::Endpoints::CreateScalingPlan.build(context)
61
+ when :delete_scaling_plan
62
+ Aws::AutoScalingPlans::Endpoints::DeleteScalingPlan.build(context)
63
+ when :describe_scaling_plan_resources
64
+ Aws::AutoScalingPlans::Endpoints::DescribeScalingPlanResources.build(context)
65
+ when :describe_scaling_plans
66
+ Aws::AutoScalingPlans::Endpoints::DescribeScalingPlans.build(context)
67
+ when :get_scaling_plan_resource_forecast_data
68
+ Aws::AutoScalingPlans::Endpoints::GetScalingPlanResourceForecastData.build(context)
69
+ when :update_scaling_plan
70
+ Aws::AutoScalingPlans::Endpoints::UpdateScalingPlan.build(context)
71
+ end
72
+ end
73
+ end
74
+
75
+ def add_handlers(handlers, _config)
76
+ handlers.add(Handler, step: :build, priority: 75)
77
+ end
78
+ end
79
+ end
80
+ 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]
@@ -575,16 +405,16 @@ module Aws::AutoScalingPlans
575
405
  # @!attribute [rw] forecast_data_type
576
406
  # The type of forecast data to get.
577
407
  #
578
- # * `LoadForecast`\: The load metric forecast.
408
+ # * `LoadForecast`: The load metric forecast.
579
409
  #
580
- # * `CapacityForecast`\: The capacity forecast.
410
+ # * `CapacityForecast`: The capacity forecast.
581
411
  #
582
- # * `ScheduledActionMinCapacity`\: The minimum capacity for each
412
+ # * `ScheduledActionMinCapacity`: The minimum capacity for each
583
413
  # scheduled scaling action. This data is calculated as the larger of
584
414
  # two values: the capacity forecast or the minimum capacity in the
585
415
  # scaling instruction.
586
416
  #
587
- # * `ScheduledActionMaxCapacity`\: The maximum capacity for each
417
+ # * `ScheduledActionMaxCapacity`: The maximum capacity for each
588
418
  # scheduled scaling action. The calculation used is determined by
589
419
  # the predictive scaling maximum capacity behavior setting in the
590
420
  # scaling instruction.
@@ -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]
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-autoscalingplans/types'
15
15
  require_relative 'aws-sdk-autoscalingplans/client_api'
16
+ require_relative 'aws-sdk-autoscalingplans/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-autoscalingplans/client'
17
18
  require_relative 'aws-sdk-autoscalingplans/errors'
18
19
  require_relative 'aws-sdk-autoscalingplans/resource'
20
+ require_relative 'aws-sdk-autoscalingplans/endpoint_parameters'
21
+ require_relative 'aws-sdk-autoscalingplans/endpoint_provider'
22
+ require_relative 'aws-sdk-autoscalingplans/endpoints'
19
23
  require_relative 'aws-sdk-autoscalingplans/customizations'
20
24
 
21
25
  # This module provides support for AWS Auto Scaling Plans. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-autoscalingplans/customizations'
48
52
  # @!group service
49
53
  module Aws::AutoScalingPlans
50
54
 
51
- GEM_VERSION = '1.37.0'
55
+ GEM_VERSION = '1.49.0'
52
56
 
53
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.37.0
4
+ version: 1.49.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-30 00:00:00.000000000 Z
11
+ date: 2023-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.122.0
22
+ version: 3.184.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.122.0
32
+ version: 3.184.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,11 @@ files:
59
59
  - lib/aws-sdk-autoscalingplans/client.rb
60
60
  - lib/aws-sdk-autoscalingplans/client_api.rb
61
61
  - lib/aws-sdk-autoscalingplans/customizations.rb
62
+ - lib/aws-sdk-autoscalingplans/endpoint_parameters.rb
63
+ - lib/aws-sdk-autoscalingplans/endpoint_provider.rb
64
+ - lib/aws-sdk-autoscalingplans/endpoints.rb
62
65
  - lib/aws-sdk-autoscalingplans/errors.rb
66
+ - lib/aws-sdk-autoscalingplans/plugins/endpoints.rb
63
67
  - lib/aws-sdk-autoscalingplans/resource.rb
64
68
  - lib/aws-sdk-autoscalingplans/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby