aws-sdk-autoscalingplans 1.40.0 → 1.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 04c0993a0345020e0f050733ca322ce7827c33f35c30dde28bbe280c7dea21e1
4
- data.tar.gz: d213bcbf14ebaca3e1b4f8e3c9769c689d309573ca46f65cc8c33e89f50d3728
3
+ metadata.gz: f7c1c317d342e61f61da3ee9e3d2beeab23e7fc3b39412d6bf599e161aab64b9
4
+ data.tar.gz: 6757de81bb6ab44ec21b732d3d9b8898a30df04fade882942b8299ebab846ce6
5
5
  SHA512:
6
- metadata.gz: 33ac0298693988762716f3a05227c31681e1d250d1c4660588e44de54ca0159d4ec5937c1909ca2a4778332bf4a9df6e79ba5f1c121e0658a9df06cfb5f77706
7
- data.tar.gz: 934fd64b5a1cca08f94629d5c3163e204cdb3fc427c964714396e242b72241b1fb4fa78632d3751b46ad7cb51905222adcc3a64428ff54e46b48148b27b81c9a
6
+ metadata.gz: 325780e9c3425247eb28ba61290470b63c61a1f087a753c4314339e3c367f1b9328330a7cc3ed5f2211b312acef3e16676a24501598a7a487dda6f971c1888a2
7
+ data.tar.gz: e2378c8a931b65ce3213e05c31053c9940fb9729908c71bddf13f4c1802bfe479608071122ebd81cde88d4f78be942b9f63fddc29aadb1fbd6b840bbc32a288d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
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
+
11
+ 1.41.0 (2022-10-25)
12
+ ------------------
13
+
14
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
15
+
4
16
  1.40.0 (2022-02-24)
5
17
  ------------------
6
18
 
@@ -210,4 +222,4 @@ Unreleased Changes
210
222
  1.0.0 (2018-01-17)
211
223
  ------------------
212
224
 
213
- * Feature - Initial release of `aws-sdk-autoscalingplans`.
225
+ * Feature - Initial release of `aws-sdk-autoscalingplans`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.40.0
1
+ 1.42.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:autoscalingplans)
@@ -79,8 +79,9 @@ module Aws::AutoScalingPlans
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
84
+ add_plugin(Aws::AutoScalingPlans::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -297,6 +298,19 @@ module Aws::AutoScalingPlans
297
298
  # ** Please note ** When response stubbing is enabled, no HTTP
298
299
  # requests are made, and retries are disabled.
299
300
  #
301
+ # @option options [Aws::TokenProvider] :token_provider
302
+ # A Bearer Token Provider. This can be an instance of any one of the
303
+ # following classes:
304
+ #
305
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
306
+ # tokens.
307
+ #
308
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
309
+ # access token generated from `aws login`.
310
+ #
311
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
312
+ # will be used to search for tokens configured for your profile in shared configuration files.
313
+ #
300
314
  # @option options [Boolean] :use_dualstack_endpoint
301
315
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
302
316
  # will be used if available.
@@ -310,6 +324,9 @@ module Aws::AutoScalingPlans
310
324
  # When `true`, request parameters are validated before
311
325
  # sending the request.
312
326
  #
327
+ # @option options [Aws::AutoScalingPlans::EndpointProvider] :endpoint_provider
328
+ # 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`
329
+ #
313
330
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
314
331
  # requests through. Formatted like 'http://proxy.com:123'.
315
332
  #
@@ -908,7 +925,7 @@ module Aws::AutoScalingPlans
908
925
  params: params,
909
926
  config: config)
910
927
  context[:gem_name] = 'aws-sdk-autoscalingplans'
911
- context[:gem_version] = '1.40.0'
928
+ context[:gem_version] = '1.42.0'
912
929
  Seahorse::Client::Request.new(handlers, context)
913
930
  end
914
931
 
@@ -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,51 @@
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 (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: {})
46
+ end
47
+ raise ArgumentError, 'No endpoint could be resolved'
48
+
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,99 @@
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 Endpoints
13
+
14
+ class CreateScalingPlan
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::AutoScalingPlans::EndpointParameters.new(
20
+ region: context.config.region,
21
+ use_dual_stack: context.config.use_dualstack_endpoint,
22
+ use_fips: context.config.use_fips_endpoint,
23
+ endpoint: endpoint,
24
+ )
25
+ end
26
+ end
27
+
28
+ class DeleteScalingPlan
29
+ def self.build(context)
30
+ unless context.config.regional_endpoint
31
+ endpoint = context.config.endpoint.to_s
32
+ end
33
+ Aws::AutoScalingPlans::EndpointParameters.new(
34
+ region: context.config.region,
35
+ use_dual_stack: context.config.use_dualstack_endpoint,
36
+ use_fips: context.config.use_fips_endpoint,
37
+ endpoint: endpoint,
38
+ )
39
+ end
40
+ end
41
+
42
+ class DescribeScalingPlanResources
43
+ def self.build(context)
44
+ unless context.config.regional_endpoint
45
+ endpoint = context.config.endpoint.to_s
46
+ end
47
+ Aws::AutoScalingPlans::EndpointParameters.new(
48
+ region: context.config.region,
49
+ use_dual_stack: context.config.use_dualstack_endpoint,
50
+ use_fips: context.config.use_fips_endpoint,
51
+ endpoint: endpoint,
52
+ )
53
+ end
54
+ end
55
+
56
+ class DescribeScalingPlans
57
+ def self.build(context)
58
+ unless context.config.regional_endpoint
59
+ endpoint = context.config.endpoint.to_s
60
+ end
61
+ Aws::AutoScalingPlans::EndpointParameters.new(
62
+ region: context.config.region,
63
+ use_dual_stack: context.config.use_dualstack_endpoint,
64
+ use_fips: context.config.use_fips_endpoint,
65
+ endpoint: endpoint,
66
+ )
67
+ end
68
+ end
69
+
70
+ class GetScalingPlanResourceForecastData
71
+ def self.build(context)
72
+ unless context.config.regional_endpoint
73
+ endpoint = context.config.endpoint.to_s
74
+ end
75
+ Aws::AutoScalingPlans::EndpointParameters.new(
76
+ region: context.config.region,
77
+ use_dual_stack: context.config.use_dualstack_endpoint,
78
+ use_fips: context.config.use_fips_endpoint,
79
+ endpoint: endpoint,
80
+ )
81
+ end
82
+ end
83
+
84
+ class UpdateScalingPlan
85
+ def self.build(context)
86
+ unless context.config.regional_endpoint
87
+ endpoint = context.config.endpoint.to_s
88
+ end
89
+ Aws::AutoScalingPlans::EndpointParameters.new(
90
+ region: context.config.region,
91
+ use_dual_stack: context.config.use_dualstack_endpoint,
92
+ use_fips: context.config.use_fips_endpoint,
93
+ endpoint: endpoint,
94
+ )
95
+ end
96
+ end
97
+
98
+ end
99
+ 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]
@@ -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.40.0'
55
+ GEM_VERSION = '1.42.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.40.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-02-24 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
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.127.0
22
+ version: 3.165.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.127.0
32
+ version: 3.165.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