aws-sdk-autoscalingplans 1.51.0 → 1.53.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: 3d8ab304cfc095485d6149b750e3077c40903566a6964970e065874efeabbbaf
4
- data.tar.gz: 404ce907a3062a1c1bcb971195dbd9af945a970caca99b9eda617be54dd990d1
3
+ metadata.gz: bd54d255c0cef2ebe2c078dac0ad74b2fef1756c1c986af679c5dc46ecd348c5
4
+ data.tar.gz: '08d63b6e0e5dbc01d714148108ac008fdcb553a57d352416bf7393bd5b6cd688'
5
5
  SHA512:
6
- metadata.gz: 5d543c7b5b2f4cb326bf251f0985b3b090500a7bd718b4031019bb9534118186484a2c7a25a5fbac65a26debe4b5af7679b2313d7d5313dbf896476ab289961e
7
- data.tar.gz: e5f52f712f3b70b5585aa936b29a0645f608c81e0addeb6295ccd3cd021535d960ead085706f72acec5e94cb802d1588961e2ff52d06338bdead861b4825c14f
6
+ metadata.gz: f8e463ae64c91a566b245793456e09628d128032b627fe5a0885c7da6d1d95537c7cebb222bdcac301a00a7bf902446cda99f405a181dbd6d55ec12d3ab69488
7
+ data.tar.gz: af8099928fdae3ffba8516e262ece832b632b77d0619c72c60ae8a960a4cbf3643f60256ba2bd1c424896727e176cd72de0e554cf6efd32acd5cb8ed3aec42ce
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.53.0 (2024-04-25)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.52.0 (2024-01-26)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.51.0 (2023-11-28)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.51.0
1
+ 1.53.0
@@ -22,6 +22,7 @@ require 'aws-sdk-core/plugins/endpoint_pattern.rb'
22
22
  require 'aws-sdk-core/plugins/response_paging.rb'
23
23
  require 'aws-sdk-core/plugins/stub_responses.rb'
24
24
  require 'aws-sdk-core/plugins/idempotency_token.rb'
25
+ require 'aws-sdk-core/plugins/invocation_id.rb'
25
26
  require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
26
27
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
28
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
@@ -72,6 +73,7 @@ module Aws::AutoScalingPlans
72
73
  add_plugin(Aws::Plugins::ResponsePaging)
73
74
  add_plugin(Aws::Plugins::StubResponses)
74
75
  add_plugin(Aws::Plugins::IdempotencyToken)
76
+ add_plugin(Aws::Plugins::InvocationId)
75
77
  add_plugin(Aws::Plugins::JsonvalueConverter)
76
78
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
77
79
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
@@ -196,10 +198,17 @@ module Aws::AutoScalingPlans
196
198
  # When set to 'true' the request body will not be compressed
197
199
  # for supported operations.
198
200
  #
199
- # @option options [String] :endpoint
200
- # The client endpoint is normally constructed from the `:region`
201
- # option. You should only configure an `:endpoint` when connecting
202
- # to test or custom endpoints. This should be a valid HTTP(S) URI.
201
+ # @option options [String, URI::HTTPS, URI::HTTP] :endpoint
202
+ # Normally you should not configure the `:endpoint` option
203
+ # directly. This is normally constructed from the `:region`
204
+ # option. Configuring `:endpoint` is normally reserved for
205
+ # connecting to test or custom endpoints. The endpoint should
206
+ # be a URI formatted like:
207
+ #
208
+ # 'http://example.com'
209
+ # 'https://example.com'
210
+ # 'http://example.com:123'
211
+ #
203
212
  #
204
213
  # @option options [Integer] :endpoint_cache_max_entries (1000)
205
214
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -347,50 +356,65 @@ module Aws::AutoScalingPlans
347
356
  # @option options [Aws::AutoScalingPlans::EndpointProvider] :endpoint_provider
348
357
  # 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
358
  #
350
- # @option options [URI::HTTP,String] :http_proxy A proxy to send
351
- # requests through. Formatted like 'http://proxy.com:123'.
352
- #
353
- # @option options [Float] :http_open_timeout (15) The number of
354
- # seconds to wait when opening a HTTP session before raising a
355
- # `Timeout::Error`.
356
- #
357
- # @option options [Float] :http_read_timeout (60) The default
358
- # number of seconds to wait for response data. This value can
359
- # safely be set per-request on the session.
360
- #
361
- # @option options [Float] :http_idle_timeout (5) The number of
362
- # seconds a connection is allowed to sit idle before it is
363
- # considered stale. Stale connections are closed and removed
364
- # from the pool before making a request.
365
- #
366
- # @option options [Float] :http_continue_timeout (1) The number of
367
- # seconds to wait for a 100-continue response before sending the
368
- # request body. This option has no effect unless the request has
369
- # "Expect" header set to "100-continue". Defaults to `nil` which
370
- # disables this behaviour. This value can safely be set per
371
- # request on the session.
372
- #
373
- # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
374
- # in seconds.
359
+ # @option options [Float] :http_continue_timeout (1)
360
+ # The number of seconds to wait for a 100-continue response before sending the
361
+ # request body. This option has no effect unless the request has "Expect"
362
+ # header set to "100-continue". Defaults to `nil` which disables this
363
+ # behaviour. This value can safely be set per request on the session.
364
+ #
365
+ # @option options [Float] :http_idle_timeout (5)
366
+ # The number of seconds a connection is allowed to sit idle before it
367
+ # is considered stale. Stale connections are closed and removed from the
368
+ # pool before making a request.
369
+ #
370
+ # @option options [Float] :http_open_timeout (15)
371
+ # The default number of seconds to wait for response data.
372
+ # This value can safely be set per-request on the session.
373
+ #
374
+ # @option options [URI::HTTP,String] :http_proxy
375
+ # A proxy to send requests through. Formatted like 'http://proxy.com:123'.
376
+ #
377
+ # @option options [Float] :http_read_timeout (60)
378
+ # The default number of seconds to wait for response data.
379
+ # This value can safely be set per-request on the session.
380
+ #
381
+ # @option options [Boolean] :http_wire_trace (false)
382
+ # When `true`, HTTP debug output will be sent to the `:logger`.
383
+ #
384
+ # @option options [Proc] :on_chunk_received
385
+ # When a Proc object is provided, it will be used as callback when each chunk
386
+ # of the response body is received. It provides three arguments: the chunk,
387
+ # the number of bytes received, and the total number of
388
+ # bytes in the response (or nil if the server did not send a `content-length`).
389
+ #
390
+ # @option options [Proc] :on_chunk_sent
391
+ # When a Proc object is provided, it will be used as callback when each chunk
392
+ # of the request body is sent. It provides three arguments: the chunk,
393
+ # the number of bytes read from the body, and the total number of
394
+ # bytes in the body.
395
+ #
396
+ # @option options [Boolean] :raise_response_errors (true)
397
+ # When `true`, response errors are raised.
398
+ #
399
+ # @option options [String] :ssl_ca_bundle
400
+ # Full path to the SSL certificate authority bundle file that should be used when
401
+ # verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
402
+ # `:ssl_ca_directory` the the system default will be used if available.
403
+ #
404
+ # @option options [String] :ssl_ca_directory
405
+ # Full path of the directory that contains the unbundled SSL certificate
406
+ # authority files for verifying peer certificates. If you do
407
+ # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
408
+ # default will be used if available.
375
409
  #
376
- # @option options [Boolean] :http_wire_trace (false) When `true`,
377
- # HTTP debug output will be sent to the `:logger`.
410
+ # @option options [String] :ssl_ca_store
411
+ # Sets the X509::Store to verify peer certificate.
378
412
  #
379
- # @option options [Boolean] :ssl_verify_peer (true) When `true`,
380
- # SSL peer certificates are verified when establishing a
381
- # connection.
413
+ # @option options [Float] :ssl_timeout
414
+ # Sets the SSL timeout in seconds
382
415
  #
383
- # @option options [String] :ssl_ca_bundle Full path to the SSL
384
- # certificate authority bundle file that should be used when
385
- # verifying peer certificates. If you do not pass
386
- # `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
387
- # will be used if available.
388
- #
389
- # @option options [String] :ssl_ca_directory Full path of the
390
- # directory that contains the unbundled SSL certificate
391
- # authority files for verifying peer certificates. If you do
392
- # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
393
- # system default will be used if available.
416
+ # @option options [Boolean] :ssl_verify_peer (true)
417
+ # When `true`, SSL peer certificates are verified when establishing a connection.
394
418
  #
395
419
  def initialize(*args)
396
420
  super
@@ -945,7 +969,7 @@ module Aws::AutoScalingPlans
945
969
  params: params,
946
970
  config: config)
947
971
  context[:gem_name] = 'aws-sdk-autoscalingplans'
948
- context[:gem_version] = '1.51.0'
972
+ context[:gem_version] = '1.53.0'
949
973
  Seahorse::Client::Request.new(handlers, context)
950
974
  end
951
975
 
@@ -14,6 +14,7 @@ module Aws::AutoScalingPlans
14
14
  option(
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::AutoScalingPlans::EndpointProvider',
17
+ rbs_type: 'untyped',
17
18
  docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
19
  'object that responds to `#resolve_endpoint(parameters)` '\
19
20
  'where `parameters` is a Struct similar to '\
@@ -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.51.0'
55
+ GEM_VERSION = '1.53.0'
56
56
 
57
57
  end
data/sig/client.rbs ADDED
@@ -0,0 +1,294 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module AutoScalingPlans
10
+ class Client < ::Seahorse::Client::Base
11
+ include ::Aws::ClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AutoScalingPlans/Client.html#initialize-instance_method
14
+ def self.new: (
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?active_endpoint_cache: bool,
19
+ ?adaptive_retry_wait_to_fill: bool,
20
+ ?client_side_monitoring: bool,
21
+ ?client_side_monitoring_client_id: String,
22
+ ?client_side_monitoring_host: String,
23
+ ?client_side_monitoring_port: Integer,
24
+ ?client_side_monitoring_publisher: untyped,
25
+ ?convert_params: bool,
26
+ ?correct_clock_skew: bool,
27
+ ?defaults_mode: String,
28
+ ?disable_host_prefix_injection: bool,
29
+ ?disable_request_compression: bool,
30
+ ?endpoint: String,
31
+ ?endpoint_cache_max_entries: Integer,
32
+ ?endpoint_cache_max_threads: Integer,
33
+ ?endpoint_cache_poll_interval: Integer,
34
+ ?endpoint_discovery: bool,
35
+ ?ignore_configured_endpoint_urls: bool,
36
+ ?log_formatter: untyped,
37
+ ?log_level: Symbol,
38
+ ?logger: untyped,
39
+ ?max_attempts: Integer,
40
+ ?profile: String,
41
+ ?request_min_compression_size_bytes: Integer,
42
+ ?retry_backoff: Proc,
43
+ ?retry_base_delay: Float,
44
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
45
+ ?retry_limit: Integer,
46
+ ?retry_max_delay: Integer,
47
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
48
+ ?sdk_ua_app_id: String,
49
+ ?secret_access_key: String,
50
+ ?session_token: String,
51
+ ?simple_json: bool,
52
+ ?stub_responses: untyped,
53
+ ?token_provider: untyped,
54
+ ?use_dualstack_endpoint: bool,
55
+ ?use_fips_endpoint: bool,
56
+ ?validate_params: bool,
57
+ ?endpoint_provider: untyped,
58
+ ?http_proxy: String,
59
+ ?http_open_timeout: (Float | Integer),
60
+ ?http_read_timeout: (Float | Integer),
61
+ ?http_idle_timeout: (Float | Integer),
62
+ ?http_continue_timeout: (Float | Integer),
63
+ ?ssl_timeout: (Float | Integer | nil),
64
+ ?http_wire_trace: bool,
65
+ ?ssl_verify_peer: bool,
66
+ ?ssl_ca_bundle: String,
67
+ ?ssl_ca_directory: String,
68
+ ?ssl_ca_store: String,
69
+ ?on_chunk_received: Proc,
70
+ ?on_chunk_sent: Proc,
71
+ ?raise_response_errors: bool
72
+ ) -> instance
73
+ | (?Hash[Symbol, untyped]) -> instance
74
+
75
+
76
+ interface _CreateScalingPlanResponseSuccess
77
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateScalingPlanResponse]
78
+ def scaling_plan_version: () -> ::Integer
79
+ end
80
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AutoScalingPlans/Client.html#create_scaling_plan-instance_method
81
+ def create_scaling_plan: (
82
+ scaling_plan_name: ::String,
83
+ application_source: {
84
+ cloud_formation_stack_arn: ::String?,
85
+ tag_filters: Array[
86
+ {
87
+ key: ::String?,
88
+ values: Array[::String]?
89
+ },
90
+ ]?
91
+ },
92
+ scaling_instructions: Array[
93
+ {
94
+ service_namespace: ("autoscaling" | "ecs" | "ec2" | "rds" | "dynamodb"),
95
+ resource_id: ::String,
96
+ scalable_dimension: ("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"),
97
+ min_capacity: ::Integer,
98
+ max_capacity: ::Integer,
99
+ target_tracking_configurations: Array[
100
+ {
101
+ predefined_scaling_metric_specification: {
102
+ predefined_scaling_metric_type: ("ASGAverageCPUUtilization" | "ASGAverageNetworkIn" | "ASGAverageNetworkOut" | "DynamoDBReadCapacityUtilization" | "DynamoDBWriteCapacityUtilization" | "ECSServiceAverageCPUUtilization" | "ECSServiceAverageMemoryUtilization" | "ALBRequestCountPerTarget" | "RDSReaderAverageCPUUtilization" | "RDSReaderAverageDatabaseConnections" | "EC2SpotFleetRequestAverageCPUUtilization" | "EC2SpotFleetRequestAverageNetworkIn" | "EC2SpotFleetRequestAverageNetworkOut"),
103
+ resource_label: ::String?
104
+ }?,
105
+ customized_scaling_metric_specification: {
106
+ metric_name: ::String,
107
+ namespace: ::String,
108
+ dimensions: Array[
109
+ {
110
+ name: ::String,
111
+ value: ::String
112
+ },
113
+ ]?,
114
+ statistic: ("Average" | "Minimum" | "Maximum" | "SampleCount" | "Sum"),
115
+ unit: ::String?
116
+ }?,
117
+ target_value: ::Float,
118
+ disable_scale_in: bool?,
119
+ scale_out_cooldown: ::Integer?,
120
+ scale_in_cooldown: ::Integer?,
121
+ estimated_instance_warmup: ::Integer?
122
+ },
123
+ ],
124
+ predefined_load_metric_specification: {
125
+ predefined_load_metric_type: ("ASGTotalCPUUtilization" | "ASGTotalNetworkIn" | "ASGTotalNetworkOut" | "ALBTargetGroupRequestCount"),
126
+ resource_label: ::String?
127
+ }?,
128
+ customized_load_metric_specification: {
129
+ metric_name: ::String,
130
+ namespace: ::String,
131
+ dimensions: Array[
132
+ {
133
+ name: ::String,
134
+ value: ::String
135
+ },
136
+ ]?,
137
+ statistic: ("Average" | "Minimum" | "Maximum" | "SampleCount" | "Sum"),
138
+ unit: ::String?
139
+ }?,
140
+ scheduled_action_buffer_time: ::Integer?,
141
+ predictive_scaling_max_capacity_behavior: ("SetForecastCapacityToMaxCapacity" | "SetMaxCapacityToForecastCapacity" | "SetMaxCapacityAboveForecastCapacity")?,
142
+ predictive_scaling_max_capacity_buffer: ::Integer?,
143
+ predictive_scaling_mode: ("ForecastAndScale" | "ForecastOnly")?,
144
+ scaling_policy_update_behavior: ("KeepExternalPolicies" | "ReplaceExternalPolicies")?,
145
+ disable_dynamic_scaling: bool?
146
+ },
147
+ ]
148
+ ) -> _CreateScalingPlanResponseSuccess
149
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateScalingPlanResponseSuccess
150
+
151
+ interface _DeleteScalingPlanResponseSuccess
152
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteScalingPlanResponse]
153
+ end
154
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AutoScalingPlans/Client.html#delete_scaling_plan-instance_method
155
+ def delete_scaling_plan: (
156
+ scaling_plan_name: ::String,
157
+ scaling_plan_version: ::Integer
158
+ ) -> _DeleteScalingPlanResponseSuccess
159
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteScalingPlanResponseSuccess
160
+
161
+ interface _DescribeScalingPlanResourcesResponseSuccess
162
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeScalingPlanResourcesResponse]
163
+ def scaling_plan_resources: () -> ::Array[Types::ScalingPlanResource]
164
+ def next_token: () -> ::String
165
+ end
166
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AutoScalingPlans/Client.html#describe_scaling_plan_resources-instance_method
167
+ def describe_scaling_plan_resources: (
168
+ scaling_plan_name: ::String,
169
+ scaling_plan_version: ::Integer,
170
+ ?max_results: ::Integer,
171
+ ?next_token: ::String
172
+ ) -> _DescribeScalingPlanResourcesResponseSuccess
173
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeScalingPlanResourcesResponseSuccess
174
+
175
+ interface _DescribeScalingPlansResponseSuccess
176
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeScalingPlansResponse]
177
+ def scaling_plans: () -> ::Array[Types::ScalingPlan]
178
+ def next_token: () -> ::String
179
+ end
180
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AutoScalingPlans/Client.html#describe_scaling_plans-instance_method
181
+ def describe_scaling_plans: (
182
+ ?scaling_plan_names: Array[::String],
183
+ ?scaling_plan_version: ::Integer,
184
+ ?application_sources: Array[
185
+ {
186
+ cloud_formation_stack_arn: ::String?,
187
+ tag_filters: Array[
188
+ {
189
+ key: ::String?,
190
+ values: Array[::String]?
191
+ },
192
+ ]?
193
+ },
194
+ ],
195
+ ?max_results: ::Integer,
196
+ ?next_token: ::String
197
+ ) -> _DescribeScalingPlansResponseSuccess
198
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeScalingPlansResponseSuccess
199
+
200
+ interface _GetScalingPlanResourceForecastDataResponseSuccess
201
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetScalingPlanResourceForecastDataResponse]
202
+ def datapoints: () -> ::Array[Types::Datapoint]
203
+ end
204
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AutoScalingPlans/Client.html#get_scaling_plan_resource_forecast_data-instance_method
205
+ def get_scaling_plan_resource_forecast_data: (
206
+ scaling_plan_name: ::String,
207
+ scaling_plan_version: ::Integer,
208
+ service_namespace: ("autoscaling" | "ecs" | "ec2" | "rds" | "dynamodb"),
209
+ resource_id: ::String,
210
+ scalable_dimension: ("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"),
211
+ forecast_data_type: ("CapacityForecast" | "LoadForecast" | "ScheduledActionMinCapacity" | "ScheduledActionMaxCapacity"),
212
+ start_time: ::Time,
213
+ end_time: ::Time
214
+ ) -> _GetScalingPlanResourceForecastDataResponseSuccess
215
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetScalingPlanResourceForecastDataResponseSuccess
216
+
217
+ interface _UpdateScalingPlanResponseSuccess
218
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateScalingPlanResponse]
219
+ end
220
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AutoScalingPlans/Client.html#update_scaling_plan-instance_method
221
+ def update_scaling_plan: (
222
+ scaling_plan_name: ::String,
223
+ scaling_plan_version: ::Integer,
224
+ ?application_source: {
225
+ cloud_formation_stack_arn: ::String?,
226
+ tag_filters: Array[
227
+ {
228
+ key: ::String?,
229
+ values: Array[::String]?
230
+ },
231
+ ]?
232
+ },
233
+ ?scaling_instructions: Array[
234
+ {
235
+ service_namespace: ("autoscaling" | "ecs" | "ec2" | "rds" | "dynamodb"),
236
+ resource_id: ::String,
237
+ scalable_dimension: ("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"),
238
+ min_capacity: ::Integer,
239
+ max_capacity: ::Integer,
240
+ target_tracking_configurations: Array[
241
+ {
242
+ predefined_scaling_metric_specification: {
243
+ predefined_scaling_metric_type: ("ASGAverageCPUUtilization" | "ASGAverageNetworkIn" | "ASGAverageNetworkOut" | "DynamoDBReadCapacityUtilization" | "DynamoDBWriteCapacityUtilization" | "ECSServiceAverageCPUUtilization" | "ECSServiceAverageMemoryUtilization" | "ALBRequestCountPerTarget" | "RDSReaderAverageCPUUtilization" | "RDSReaderAverageDatabaseConnections" | "EC2SpotFleetRequestAverageCPUUtilization" | "EC2SpotFleetRequestAverageNetworkIn" | "EC2SpotFleetRequestAverageNetworkOut"),
244
+ resource_label: ::String?
245
+ }?,
246
+ customized_scaling_metric_specification: {
247
+ metric_name: ::String,
248
+ namespace: ::String,
249
+ dimensions: Array[
250
+ {
251
+ name: ::String,
252
+ value: ::String
253
+ },
254
+ ]?,
255
+ statistic: ("Average" | "Minimum" | "Maximum" | "SampleCount" | "Sum"),
256
+ unit: ::String?
257
+ }?,
258
+ target_value: ::Float,
259
+ disable_scale_in: bool?,
260
+ scale_out_cooldown: ::Integer?,
261
+ scale_in_cooldown: ::Integer?,
262
+ estimated_instance_warmup: ::Integer?
263
+ },
264
+ ],
265
+ predefined_load_metric_specification: {
266
+ predefined_load_metric_type: ("ASGTotalCPUUtilization" | "ASGTotalNetworkIn" | "ASGTotalNetworkOut" | "ALBTargetGroupRequestCount"),
267
+ resource_label: ::String?
268
+ }?,
269
+ customized_load_metric_specification: {
270
+ metric_name: ::String,
271
+ namespace: ::String,
272
+ dimensions: Array[
273
+ {
274
+ name: ::String,
275
+ value: ::String
276
+ },
277
+ ]?,
278
+ statistic: ("Average" | "Minimum" | "Maximum" | "SampleCount" | "Sum"),
279
+ unit: ::String?
280
+ }?,
281
+ scheduled_action_buffer_time: ::Integer?,
282
+ predictive_scaling_max_capacity_behavior: ("SetForecastCapacityToMaxCapacity" | "SetMaxCapacityToForecastCapacity" | "SetMaxCapacityAboveForecastCapacity")?,
283
+ predictive_scaling_max_capacity_buffer: ::Integer?,
284
+ predictive_scaling_mode: ("ForecastAndScale" | "ForecastOnly")?,
285
+ scaling_policy_update_behavior: ("KeepExternalPolicies" | "ReplaceExternalPolicies")?,
286
+ disable_dynamic_scaling: bool?
287
+ },
288
+ ]
289
+ ) -> _UpdateScalingPlanResponseSuccess
290
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateScalingPlanResponseSuccess
291
+ end
292
+ end
293
+ end
294
+
data/sig/errors.rbs ADDED
@@ -0,0 +1,34 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module AutoScalingPlans
10
+ module Errors
11
+ class ServiceError < ::Aws::Errors::ServiceError
12
+ end
13
+
14
+ class ConcurrentUpdateException < ::Aws::Errors::ServiceError
15
+ def message: () -> ::String
16
+ end
17
+ class InternalServiceException < ::Aws::Errors::ServiceError
18
+ def message: () -> ::String
19
+ end
20
+ class InvalidNextTokenException < ::Aws::Errors::ServiceError
21
+ def message: () -> ::String
22
+ end
23
+ class LimitExceededException < ::Aws::Errors::ServiceError
24
+ def message: () -> ::String
25
+ end
26
+ class ObjectNotFoundException < ::Aws::Errors::ServiceError
27
+ def message: () -> ::String
28
+ end
29
+ class ValidationException < ::Aws::Errors::ServiceError
30
+ def message: () -> ::String
31
+ end
32
+ end
33
+ end
34
+ end
data/sig/resource.rbs ADDED
@@ -0,0 +1,80 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module AutoScalingPlans
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AutoScalingPlans/Resource.html
11
+ class Resource
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AutoScalingPlans/Resource.html#initialize-instance_method
13
+ def initialize: (
14
+ ?client: Client,
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?active_endpoint_cache: bool,
19
+ ?adaptive_retry_wait_to_fill: bool,
20
+ ?client_side_monitoring: bool,
21
+ ?client_side_monitoring_client_id: String,
22
+ ?client_side_monitoring_host: String,
23
+ ?client_side_monitoring_port: Integer,
24
+ ?client_side_monitoring_publisher: untyped,
25
+ ?convert_params: bool,
26
+ ?correct_clock_skew: bool,
27
+ ?defaults_mode: String,
28
+ ?disable_host_prefix_injection: bool,
29
+ ?disable_request_compression: bool,
30
+ ?endpoint: String,
31
+ ?endpoint_cache_max_entries: Integer,
32
+ ?endpoint_cache_max_threads: Integer,
33
+ ?endpoint_cache_poll_interval: Integer,
34
+ ?endpoint_discovery: bool,
35
+ ?ignore_configured_endpoint_urls: bool,
36
+ ?log_formatter: untyped,
37
+ ?log_level: Symbol,
38
+ ?logger: untyped,
39
+ ?max_attempts: Integer,
40
+ ?profile: String,
41
+ ?request_min_compression_size_bytes: Integer,
42
+ ?retry_backoff: Proc,
43
+ ?retry_base_delay: Float,
44
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
45
+ ?retry_limit: Integer,
46
+ ?retry_max_delay: Integer,
47
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
48
+ ?sdk_ua_app_id: String,
49
+ ?secret_access_key: String,
50
+ ?session_token: String,
51
+ ?simple_json: bool,
52
+ ?stub_responses: untyped,
53
+ ?token_provider: untyped,
54
+ ?use_dualstack_endpoint: bool,
55
+ ?use_fips_endpoint: bool,
56
+ ?validate_params: bool,
57
+ ?endpoint_provider: untyped,
58
+ ?http_proxy: String,
59
+ ?http_open_timeout: (Float | Integer),
60
+ ?http_read_timeout: (Float | Integer),
61
+ ?http_idle_timeout: (Float | Integer),
62
+ ?http_continue_timeout: (Float | Integer),
63
+ ?ssl_timeout: (Float | Integer | nil),
64
+ ?http_wire_trace: bool,
65
+ ?ssl_verify_peer: bool,
66
+ ?ssl_ca_bundle: String,
67
+ ?ssl_ca_directory: String,
68
+ ?ssl_ca_store: String,
69
+ ?on_chunk_received: Proc,
70
+ ?on_chunk_sent: Proc,
71
+ ?raise_response_errors: bool
72
+ ) -> void
73
+ | (?Hash[Symbol, untyped]) -> void
74
+
75
+ def client: () -> Client
76
+
77
+
78
+ end
79
+ end
80
+ end
data/sig/types.rbs ADDED
@@ -0,0 +1,233 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::AutoScalingPlans
9
+ module Types
10
+
11
+ class ApplicationSource
12
+ attr_accessor cloud_formation_stack_arn: ::String
13
+ attr_accessor tag_filters: ::Array[Types::TagFilter]
14
+ SENSITIVE: []
15
+ end
16
+
17
+ class ConcurrentUpdateException
18
+ attr_accessor message: ::String
19
+ SENSITIVE: []
20
+ end
21
+
22
+ class CreateScalingPlanRequest
23
+ attr_accessor scaling_plan_name: ::String
24
+ attr_accessor application_source: Types::ApplicationSource
25
+ attr_accessor scaling_instructions: ::Array[Types::ScalingInstruction]
26
+ SENSITIVE: []
27
+ end
28
+
29
+ class CreateScalingPlanResponse
30
+ attr_accessor scaling_plan_version: ::Integer
31
+ SENSITIVE: []
32
+ end
33
+
34
+ class CustomizedLoadMetricSpecification
35
+ attr_accessor metric_name: ::String
36
+ attr_accessor namespace: ::String
37
+ attr_accessor dimensions: ::Array[Types::MetricDimension]
38
+ attr_accessor statistic: ("Average" | "Minimum" | "Maximum" | "SampleCount" | "Sum")
39
+ attr_accessor unit: ::String
40
+ SENSITIVE: []
41
+ end
42
+
43
+ class CustomizedScalingMetricSpecification
44
+ attr_accessor metric_name: ::String
45
+ attr_accessor namespace: ::String
46
+ attr_accessor dimensions: ::Array[Types::MetricDimension]
47
+ attr_accessor statistic: ("Average" | "Minimum" | "Maximum" | "SampleCount" | "Sum")
48
+ attr_accessor unit: ::String
49
+ SENSITIVE: []
50
+ end
51
+
52
+ class Datapoint
53
+ attr_accessor timestamp: ::Time
54
+ attr_accessor value: ::Float
55
+ SENSITIVE: []
56
+ end
57
+
58
+ class DeleteScalingPlanRequest
59
+ attr_accessor scaling_plan_name: ::String
60
+ attr_accessor scaling_plan_version: ::Integer
61
+ SENSITIVE: []
62
+ end
63
+
64
+ class DeleteScalingPlanResponse < Aws::EmptyStructure
65
+ end
66
+
67
+ class DescribeScalingPlanResourcesRequest
68
+ attr_accessor scaling_plan_name: ::String
69
+ attr_accessor scaling_plan_version: ::Integer
70
+ attr_accessor max_results: ::Integer
71
+ attr_accessor next_token: ::String
72
+ SENSITIVE: []
73
+ end
74
+
75
+ class DescribeScalingPlanResourcesResponse
76
+ attr_accessor scaling_plan_resources: ::Array[Types::ScalingPlanResource]
77
+ attr_accessor next_token: ::String
78
+ SENSITIVE: []
79
+ end
80
+
81
+ class DescribeScalingPlansRequest
82
+ attr_accessor scaling_plan_names: ::Array[::String]
83
+ attr_accessor scaling_plan_version: ::Integer
84
+ attr_accessor application_sources: ::Array[Types::ApplicationSource]
85
+ attr_accessor max_results: ::Integer
86
+ attr_accessor next_token: ::String
87
+ SENSITIVE: []
88
+ end
89
+
90
+ class DescribeScalingPlansResponse
91
+ attr_accessor scaling_plans: ::Array[Types::ScalingPlan]
92
+ attr_accessor next_token: ::String
93
+ SENSITIVE: []
94
+ end
95
+
96
+ class GetScalingPlanResourceForecastDataRequest
97
+ attr_accessor scaling_plan_name: ::String
98
+ attr_accessor scaling_plan_version: ::Integer
99
+ attr_accessor service_namespace: ("autoscaling" | "ecs" | "ec2" | "rds" | "dynamodb")
100
+ attr_accessor resource_id: ::String
101
+ attr_accessor scalable_dimension: ("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")
102
+ attr_accessor forecast_data_type: ("CapacityForecast" | "LoadForecast" | "ScheduledActionMinCapacity" | "ScheduledActionMaxCapacity")
103
+ attr_accessor start_time: ::Time
104
+ attr_accessor end_time: ::Time
105
+ SENSITIVE: []
106
+ end
107
+
108
+ class GetScalingPlanResourceForecastDataResponse
109
+ attr_accessor datapoints: ::Array[Types::Datapoint]
110
+ SENSITIVE: []
111
+ end
112
+
113
+ class InternalServiceException
114
+ attr_accessor message: ::String
115
+ SENSITIVE: []
116
+ end
117
+
118
+ class InvalidNextTokenException
119
+ attr_accessor message: ::String
120
+ SENSITIVE: []
121
+ end
122
+
123
+ class LimitExceededException
124
+ attr_accessor message: ::String
125
+ SENSITIVE: []
126
+ end
127
+
128
+ class MetricDimension
129
+ attr_accessor name: ::String
130
+ attr_accessor value: ::String
131
+ SENSITIVE: []
132
+ end
133
+
134
+ class ObjectNotFoundException
135
+ attr_accessor message: ::String
136
+ SENSITIVE: []
137
+ end
138
+
139
+ class PredefinedLoadMetricSpecification
140
+ attr_accessor predefined_load_metric_type: ("ASGTotalCPUUtilization" | "ASGTotalNetworkIn" | "ASGTotalNetworkOut" | "ALBTargetGroupRequestCount")
141
+ attr_accessor resource_label: ::String
142
+ SENSITIVE: []
143
+ end
144
+
145
+ class PredefinedScalingMetricSpecification
146
+ attr_accessor predefined_scaling_metric_type: ("ASGAverageCPUUtilization" | "ASGAverageNetworkIn" | "ASGAverageNetworkOut" | "DynamoDBReadCapacityUtilization" | "DynamoDBWriteCapacityUtilization" | "ECSServiceAverageCPUUtilization" | "ECSServiceAverageMemoryUtilization" | "ALBRequestCountPerTarget" | "RDSReaderAverageCPUUtilization" | "RDSReaderAverageDatabaseConnections" | "EC2SpotFleetRequestAverageCPUUtilization" | "EC2SpotFleetRequestAverageNetworkIn" | "EC2SpotFleetRequestAverageNetworkOut")
147
+ attr_accessor resource_label: ::String
148
+ SENSITIVE: []
149
+ end
150
+
151
+ class ScalingInstruction
152
+ attr_accessor service_namespace: ("autoscaling" | "ecs" | "ec2" | "rds" | "dynamodb")
153
+ attr_accessor resource_id: ::String
154
+ attr_accessor scalable_dimension: ("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")
155
+ attr_accessor min_capacity: ::Integer
156
+ attr_accessor max_capacity: ::Integer
157
+ attr_accessor target_tracking_configurations: ::Array[Types::TargetTrackingConfiguration]
158
+ attr_accessor predefined_load_metric_specification: Types::PredefinedLoadMetricSpecification
159
+ attr_accessor customized_load_metric_specification: Types::CustomizedLoadMetricSpecification
160
+ attr_accessor scheduled_action_buffer_time: ::Integer
161
+ attr_accessor predictive_scaling_max_capacity_behavior: ("SetForecastCapacityToMaxCapacity" | "SetMaxCapacityToForecastCapacity" | "SetMaxCapacityAboveForecastCapacity")
162
+ attr_accessor predictive_scaling_max_capacity_buffer: ::Integer
163
+ attr_accessor predictive_scaling_mode: ("ForecastAndScale" | "ForecastOnly")
164
+ attr_accessor scaling_policy_update_behavior: ("KeepExternalPolicies" | "ReplaceExternalPolicies")
165
+ attr_accessor disable_dynamic_scaling: bool
166
+ SENSITIVE: []
167
+ end
168
+
169
+ class ScalingPlan
170
+ attr_accessor scaling_plan_name: ::String
171
+ attr_accessor scaling_plan_version: ::Integer
172
+ attr_accessor application_source: Types::ApplicationSource
173
+ attr_accessor scaling_instructions: ::Array[Types::ScalingInstruction]
174
+ attr_accessor status_code: ("Active" | "ActiveWithProblems" | "CreationInProgress" | "CreationFailed" | "DeletionInProgress" | "DeletionFailed" | "UpdateInProgress" | "UpdateFailed")
175
+ attr_accessor status_message: ::String
176
+ attr_accessor status_start_time: ::Time
177
+ attr_accessor creation_time: ::Time
178
+ SENSITIVE: []
179
+ end
180
+
181
+ class ScalingPlanResource
182
+ attr_accessor scaling_plan_name: ::String
183
+ attr_accessor scaling_plan_version: ::Integer
184
+ attr_accessor service_namespace: ("autoscaling" | "ecs" | "ec2" | "rds" | "dynamodb")
185
+ attr_accessor resource_id: ::String
186
+ attr_accessor scalable_dimension: ("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")
187
+ attr_accessor scaling_policies: ::Array[Types::ScalingPolicy]
188
+ attr_accessor scaling_status_code: ("Inactive" | "PartiallyActive" | "Active")
189
+ attr_accessor scaling_status_message: ::String
190
+ SENSITIVE: []
191
+ end
192
+
193
+ class ScalingPolicy
194
+ attr_accessor policy_name: ::String
195
+ attr_accessor policy_type: ("TargetTrackingScaling")
196
+ attr_accessor target_tracking_configuration: Types::TargetTrackingConfiguration
197
+ SENSITIVE: []
198
+ end
199
+
200
+ class TagFilter
201
+ attr_accessor key: ::String
202
+ attr_accessor values: ::Array[::String]
203
+ SENSITIVE: []
204
+ end
205
+
206
+ class TargetTrackingConfiguration
207
+ attr_accessor predefined_scaling_metric_specification: Types::PredefinedScalingMetricSpecification
208
+ attr_accessor customized_scaling_metric_specification: Types::CustomizedScalingMetricSpecification
209
+ attr_accessor target_value: ::Float
210
+ attr_accessor disable_scale_in: bool
211
+ attr_accessor scale_out_cooldown: ::Integer
212
+ attr_accessor scale_in_cooldown: ::Integer
213
+ attr_accessor estimated_instance_warmup: ::Integer
214
+ SENSITIVE: []
215
+ end
216
+
217
+ class UpdateScalingPlanRequest
218
+ attr_accessor scaling_plan_name: ::String
219
+ attr_accessor scaling_plan_version: ::Integer
220
+ attr_accessor application_source: Types::ApplicationSource
221
+ attr_accessor scaling_instructions: ::Array[Types::ScalingInstruction]
222
+ SENSITIVE: []
223
+ end
224
+
225
+ class UpdateScalingPlanResponse < Aws::EmptyStructure
226
+ end
227
+
228
+ class ValidationException
229
+ attr_accessor message: ::String
230
+ SENSITIVE: []
231
+ end
232
+ end
233
+ end
data/sig/waiters.rbs ADDED
@@ -0,0 +1,13 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module AutoScalingPlans
10
+ module Waiters
11
+ end
12
+ end
13
+ 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.51.0
4
+ version: 1.53.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-28 00:00:00.000000000 Z
11
+ date: 2024-04-25 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.188.0
22
+ version: 3.193.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.188.0
32
+ version: 3.193.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -66,13 +66,18 @@ files:
66
66
  - lib/aws-sdk-autoscalingplans/plugins/endpoints.rb
67
67
  - lib/aws-sdk-autoscalingplans/resource.rb
68
68
  - lib/aws-sdk-autoscalingplans/types.rb
69
+ - sig/client.rbs
70
+ - sig/errors.rbs
71
+ - sig/resource.rbs
72
+ - sig/types.rbs
73
+ - sig/waiters.rbs
69
74
  homepage: https://github.com/aws/aws-sdk-ruby
70
75
  licenses:
71
76
  - Apache-2.0
72
77
  metadata:
73
78
  source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-autoscalingplans
74
79
  changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-autoscalingplans/CHANGELOG.md
75
- post_install_message:
80
+ post_install_message:
76
81
  rdoc_options: []
77
82
  require_paths:
78
83
  - lib
@@ -87,8 +92,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
92
  - !ruby/object:Gem::Version
88
93
  version: '0'
89
94
  requirements: []
90
- rubygems_version: 3.1.6
91
- signing_key:
95
+ rubygems_version: 3.4.10
96
+ signing_key:
92
97
  specification_version: 4
93
98
  summary: AWS SDK for Ruby - AWS Auto Scaling Plans
94
99
  test_files: []