aws-sdk-applicationautoscaling 1.35.0 → 1.40.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/aws-sdk-applicationautoscaling.rb +7 -4
- data/lib/aws-sdk-applicationautoscaling/client.rb +352 -362
- data/lib/aws-sdk-applicationautoscaling/errors.rb +29 -7
- data/lib/aws-sdk-applicationautoscaling/resource.rb +1 -0
- data/lib/aws-sdk-applicationautoscaling/types.rb +429 -220
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 881ca63b37cfa9af8ca3c1a8ceaaafebf7b32f74eac13be909b0ffe8214bc56a
|
4
|
+
data.tar.gz: f2d6a232041e0c37b38da00a6e0531de39cc1f296b8a4f38131bbb3f4bf623c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c447c258b6d251727fbf223bb2a56d8e2f6a34d355b5ba361b591f30198b0beeb6c9b96c56374cc573943d01921706042133bf5972db955757368646060a99f
|
7
|
+
data.tar.gz: 5edb6ea0ccb53733832e1c3f9ce665958b210d6c0004814998420c1076bbad117c68ce3d81e6e94506be24f8d382f33b0cfa74c00fefa50d88eb3658bb469fce
|
@@ -24,17 +24,20 @@ require_relative 'aws-sdk-applicationautoscaling/customizations'
|
|
24
24
|
# methods each accept a hash of request parameters and return a response
|
25
25
|
# structure.
|
26
26
|
#
|
27
|
+
# application_auto_scaling = Aws::ApplicationAutoScaling::Client.new
|
28
|
+
# resp = application_auto_scaling.delete_scaling_policy(params)
|
29
|
+
#
|
27
30
|
# See {Client} for more information.
|
28
31
|
#
|
29
32
|
# # Errors
|
30
33
|
#
|
31
|
-
# Errors returned from Application Auto Scaling
|
32
|
-
# extend {Errors::ServiceError}.
|
34
|
+
# Errors returned from Application Auto Scaling are defined in the
|
35
|
+
# {Errors} module and all extend {Errors::ServiceError}.
|
33
36
|
#
|
34
37
|
# begin
|
35
38
|
# # do stuff
|
36
39
|
# rescue Aws::ApplicationAutoScaling::Errors::ServiceError
|
37
|
-
# # rescues all
|
40
|
+
# # rescues all Application Auto Scaling API errors
|
38
41
|
# end
|
39
42
|
#
|
40
43
|
# See {Errors} for more information.
|
@@ -42,6 +45,6 @@ require_relative 'aws-sdk-applicationautoscaling/customizations'
|
|
42
45
|
# @service
|
43
46
|
module Aws::ApplicationAutoScaling
|
44
47
|
|
45
|
-
GEM_VERSION = '1.
|
48
|
+
GEM_VERSION = '1.40.0'
|
46
49
|
|
47
50
|
end
|
@@ -30,6 +30,18 @@ require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
|
30
30
|
Aws::Plugins::GlobalConfiguration.add_identifier(:applicationautoscaling)
|
31
31
|
|
32
32
|
module Aws::ApplicationAutoScaling
|
33
|
+
# An API client for ApplicationAutoScaling. To construct a client, you need to configure a `:region` and `:credentials`.
|
34
|
+
#
|
35
|
+
# client = Aws::ApplicationAutoScaling::Client.new(
|
36
|
+
# region: region_name,
|
37
|
+
# credentials: credentials,
|
38
|
+
# # ...
|
39
|
+
# )
|
40
|
+
#
|
41
|
+
# For details on configuring region and credentials see
|
42
|
+
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
43
|
+
#
|
44
|
+
# See {#initialize} for a full list of supported configuration options.
|
33
45
|
class Client < Seahorse::Client::Base
|
34
46
|
|
35
47
|
include Aws::ClientStubs
|
@@ -93,7 +105,7 @@ module Aws::ApplicationAutoScaling
|
|
93
105
|
# @option options [required, String] :region
|
94
106
|
# The AWS region to connect to. The configured `:region` is
|
95
107
|
# used to determine the service `:endpoint`. When not passed,
|
96
|
-
# a default `:region` is
|
108
|
+
# a default `:region` is searched for in the following locations:
|
97
109
|
#
|
98
110
|
# * `Aws.config[:region]`
|
99
111
|
# * `ENV['AWS_REGION']`
|
@@ -108,6 +120,12 @@ module Aws::ApplicationAutoScaling
|
|
108
120
|
# When set to `true`, a thread polling for endpoints will be running in
|
109
121
|
# the background every 60 secs (default). Defaults to `false`.
|
110
122
|
#
|
123
|
+
# @option options [Boolean] :adaptive_retry_wait_to_fill (true)
|
124
|
+
# Used only in `adaptive` retry mode. When true, the request will sleep
|
125
|
+
# until there is sufficent client side capacity to retry the request.
|
126
|
+
# When false, the request will raise a `RetryCapacityNotAvailableError` and will
|
127
|
+
# not retry instead of sleeping.
|
128
|
+
#
|
111
129
|
# @option options [Boolean] :client_side_monitoring (false)
|
112
130
|
# When `true`, client-side metrics will be collected for all API requests from
|
113
131
|
# this client.
|
@@ -132,6 +150,10 @@ module Aws::ApplicationAutoScaling
|
|
132
150
|
# When `true`, an attempt is made to coerce request parameters into
|
133
151
|
# the required types.
|
134
152
|
#
|
153
|
+
# @option options [Boolean] :correct_clock_skew (true)
|
154
|
+
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
155
|
+
# a clock skew correction and retry requests with skewed client clocks.
|
156
|
+
#
|
135
157
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
136
158
|
# Set to true to disable SDK automatically adding host prefix
|
137
159
|
# to default service endpoint when available.
|
@@ -139,7 +161,7 @@ module Aws::ApplicationAutoScaling
|
|
139
161
|
# @option options [String] :endpoint
|
140
162
|
# The client endpoint is normally constructed from the `:region`
|
141
163
|
# option. You should only configure an `:endpoint` when connecting
|
142
|
-
# to test endpoints. This should be
|
164
|
+
# to test endpoints. This should be a valid HTTP(S) URI.
|
143
165
|
#
|
144
166
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
145
167
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -154,7 +176,7 @@ module Aws::ApplicationAutoScaling
|
|
154
176
|
# requests fetching endpoints information. Defaults to 60 sec.
|
155
177
|
#
|
156
178
|
# @option options [Boolean] :endpoint_discovery (false)
|
157
|
-
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
179
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
158
180
|
#
|
159
181
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
160
182
|
# The log formatter.
|
@@ -166,15 +188,29 @@ module Aws::ApplicationAutoScaling
|
|
166
188
|
# The Logger instance to send log messages to. If this option
|
167
189
|
# is not set, logging will be disabled.
|
168
190
|
#
|
191
|
+
# @option options [Integer] :max_attempts (3)
|
192
|
+
# An integer representing the maximum number attempts that will be made for
|
193
|
+
# a single request, including the initial attempt. For example,
|
194
|
+
# setting this value to 5 will result in a request being retried up to
|
195
|
+
# 4 times. Used in `standard` and `adaptive` retry modes.
|
196
|
+
#
|
169
197
|
# @option options [String] :profile ("default")
|
170
198
|
# Used when loading credentials from the shared credentials file
|
171
199
|
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
172
200
|
#
|
201
|
+
# @option options [Proc] :retry_backoff
|
202
|
+
# A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
|
203
|
+
# This option is only used in the `legacy` retry mode.
|
204
|
+
#
|
173
205
|
# @option options [Float] :retry_base_delay (0.3)
|
174
|
-
# The base delay in seconds used by the default backoff function.
|
206
|
+
# The base delay in seconds used by the default backoff function. This option
|
207
|
+
# is only used in the `legacy` retry mode.
|
175
208
|
#
|
176
209
|
# @option options [Symbol] :retry_jitter (:none)
|
177
|
-
# A delay randomiser function used by the default backoff function.
|
210
|
+
# A delay randomiser function used by the default backoff function.
|
211
|
+
# Some predefined functions can be referenced by name - :none, :equal, :full,
|
212
|
+
# otherwise a Proc that takes and returns a number. This option is only used
|
213
|
+
# in the `legacy` retry mode.
|
178
214
|
#
|
179
215
|
# @see https://www.awsarchitectureblog.com/2015/03/backoff.html
|
180
216
|
#
|
@@ -182,11 +218,30 @@ module Aws::ApplicationAutoScaling
|
|
182
218
|
# The maximum number of times to retry failed requests. Only
|
183
219
|
# ~ 500 level server errors and certain ~ 400 level client errors
|
184
220
|
# are retried. Generally, these are throttling errors, data
|
185
|
-
# checksum errors, networking errors, timeout errors
|
186
|
-
# errors from expired credentials.
|
221
|
+
# checksum errors, networking errors, timeout errors, auth errors,
|
222
|
+
# endpoint discovery, and errors from expired credentials.
|
223
|
+
# This option is only used in the `legacy` retry mode.
|
187
224
|
#
|
188
225
|
# @option options [Integer] :retry_max_delay (0)
|
189
|
-
# The maximum number of seconds to delay between retries (0 for no limit)
|
226
|
+
# The maximum number of seconds to delay between retries (0 for no limit)
|
227
|
+
# used by the default backoff function. This option is only used in the
|
228
|
+
# `legacy` retry mode.
|
229
|
+
#
|
230
|
+
# @option options [String] :retry_mode ("legacy")
|
231
|
+
# Specifies which retry algorithm to use. Values are:
|
232
|
+
#
|
233
|
+
# * `legacy` - The pre-existing retry behavior. This is default value if
|
234
|
+
# no retry mode is provided.
|
235
|
+
#
|
236
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
237
|
+
# This includes support for retry quotas, which limit the number of
|
238
|
+
# unsuccessful retries a client can make.
|
239
|
+
#
|
240
|
+
# * `adaptive` - An experimental retry mode that includes all the
|
241
|
+
# functionality of `standard` mode along with automatic client side
|
242
|
+
# throttling. This is a provisional mode that may change behavior
|
243
|
+
# in the future.
|
244
|
+
#
|
190
245
|
#
|
191
246
|
# @option options [String] :secret_access_key
|
192
247
|
#
|
@@ -219,16 +274,15 @@ module Aws::ApplicationAutoScaling
|
|
219
274
|
# requests through. Formatted like 'http://proxy.com:123'.
|
220
275
|
#
|
221
276
|
# @option options [Float] :http_open_timeout (15) The number of
|
222
|
-
# seconds to wait when opening a HTTP session before
|
277
|
+
# seconds to wait when opening a HTTP session before raising a
|
223
278
|
# `Timeout::Error`.
|
224
279
|
#
|
225
280
|
# @option options [Integer] :http_read_timeout (60) The default
|
226
281
|
# number of seconds to wait for response data. This value can
|
227
|
-
# safely be set
|
228
|
-
# per-request on the session yeidled by {#session_for}.
|
282
|
+
# safely be set per-request on the session.
|
229
283
|
#
|
230
284
|
# @option options [Float] :http_idle_timeout (5) The number of
|
231
|
-
# seconds a connection is allowed to sit
|
285
|
+
# seconds a connection is allowed to sit idle before it is
|
232
286
|
# considered stale. Stale connections are closed and removed
|
233
287
|
# from the pool before making a request.
|
234
288
|
#
|
@@ -237,7 +291,7 @@ module Aws::ApplicationAutoScaling
|
|
237
291
|
# request body. This option has no effect unless the request has
|
238
292
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
239
293
|
# disables this behaviour. This value can safely be set per
|
240
|
-
# request on the session
|
294
|
+
# request on the session.
|
241
295
|
#
|
242
296
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
243
297
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -275,9 +329,6 @@ module Aws::ApplicationAutoScaling
|
|
275
329
|
# [Delete a Target Tracking Scaling Policy][2] in the *Application Auto
|
276
330
|
# Scaling User Guide*.
|
277
331
|
#
|
278
|
-
# To create a scaling policy or update an existing one, see
|
279
|
-
# PutScalingPolicy.
|
280
|
-
#
|
281
332
|
#
|
282
333
|
#
|
283
334
|
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html#delete-step-scaling-policy
|
@@ -287,14 +338,9 @@ module Aws::ApplicationAutoScaling
|
|
287
338
|
# The name of the scaling policy.
|
288
339
|
#
|
289
340
|
# @option params [required, String] :service_namespace
|
290
|
-
# The namespace of the AWS service that provides the resource
|
291
|
-
#
|
292
|
-
#
|
293
|
-
# *Amazon Web Services General Reference*.
|
294
|
-
#
|
295
|
-
#
|
296
|
-
#
|
297
|
-
# [1]: http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces
|
341
|
+
# The namespace of the AWS service that provides the resource. For a
|
342
|
+
# resource provided by your own application or service, use
|
343
|
+
# `custom-resource` instead.
|
298
344
|
#
|
299
345
|
# @option params [required, String] :resource_id
|
300
346
|
# The identifier of the resource associated with the scalable target.
|
@@ -345,6 +391,10 @@ module Aws::ApplicationAutoScaling
|
|
345
391
|
# or alias name suffix that is not `$LATEST`. Example:
|
346
392
|
# `function:my-function:prod` or `function:my-function:1`.
|
347
393
|
#
|
394
|
+
# * Amazon Keyspaces table - The resource type is `table` and the unique
|
395
|
+
# identifier is the table name. Example:
|
396
|
+
# `keyspace/mykeyspace/table/mytable`.
|
397
|
+
#
|
348
398
|
#
|
349
399
|
#
|
350
400
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -394,6 +444,12 @@ module Aws::ApplicationAutoScaling
|
|
394
444
|
# * `lambda:function:ProvisionedConcurrency` - The provisioned
|
395
445
|
# concurrency for a Lambda function.
|
396
446
|
#
|
447
|
+
# * `cassandra:table:ReadCapacityUnits` - The provisioned read capacity
|
448
|
+
# for an Amazon Keyspaces table.
|
449
|
+
#
|
450
|
+
# * `cassandra:table:WriteCapacityUnits` - The provisioned write
|
451
|
+
# capacity for an Amazon Keyspaces table.
|
452
|
+
#
|
397
453
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
398
454
|
#
|
399
455
|
#
|
@@ -417,9 +473,9 @@ module Aws::ApplicationAutoScaling
|
|
417
473
|
#
|
418
474
|
# resp = client.delete_scaling_policy({
|
419
475
|
# policy_name: "ResourceIdMaxLen1600", # required
|
420
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda
|
476
|
+
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra
|
421
477
|
# resource_id: "ResourceIdMaxLen1600", # required
|
422
|
-
# scalable_dimension: "ecs:service:DesiredCount", # required, accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits, rds:cluster:ReadReplicaCount, sagemaker:variant:DesiredInstanceCount, custom-resource:ResourceType:Property, comprehend:document-classifier-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency
|
478
|
+
# scalable_dimension: "ecs:service:DesiredCount", # required, accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits, rds:cluster:ReadReplicaCount, sagemaker:variant:DesiredInstanceCount, custom-resource:ResourceType:Property, comprehend:document-classifier-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency, cassandra:table:ReadCapacityUnits, cassandra:table:WriteCapacityUnits
|
423
479
|
# })
|
424
480
|
#
|
425
481
|
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScalingPolicy AWS API Documentation
|
@@ -442,14 +498,9 @@ module Aws::ApplicationAutoScaling
|
|
442
498
|
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scheduled-scaling.html#delete-scheduled-action
|
443
499
|
#
|
444
500
|
# @option params [required, String] :service_namespace
|
445
|
-
# The namespace of the AWS service that provides the resource
|
446
|
-
#
|
447
|
-
#
|
448
|
-
# *Amazon Web Services General Reference*.
|
449
|
-
#
|
450
|
-
#
|
451
|
-
#
|
452
|
-
# [1]: http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces
|
501
|
+
# The namespace of the AWS service that provides the resource. For a
|
502
|
+
# resource provided by your own application or service, use
|
503
|
+
# `custom-resource` instead.
|
453
504
|
#
|
454
505
|
# @option params [required, String] :scheduled_action_name
|
455
506
|
# The name of the scheduled action.
|
@@ -503,6 +554,10 @@ module Aws::ApplicationAutoScaling
|
|
503
554
|
# or alias name suffix that is not `$LATEST`. Example:
|
504
555
|
# `function:my-function:prod` or `function:my-function:1`.
|
505
556
|
#
|
557
|
+
# * Amazon Keyspaces table - The resource type is `table` and the unique
|
558
|
+
# identifier is the table name. Example:
|
559
|
+
# `keyspace/mykeyspace/table/mytable`.
|
560
|
+
#
|
506
561
|
#
|
507
562
|
#
|
508
563
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -552,15 +607,21 @@ module Aws::ApplicationAutoScaling
|
|
552
607
|
# * `lambda:function:ProvisionedConcurrency` - The provisioned
|
553
608
|
# concurrency for a Lambda function.
|
554
609
|
#
|
610
|
+
# * `cassandra:table:ReadCapacityUnits` - The provisioned read capacity
|
611
|
+
# for an Amazon Keyspaces table.
|
612
|
+
#
|
613
|
+
# * `cassandra:table:WriteCapacityUnits` - The provisioned write
|
614
|
+
# capacity for an Amazon Keyspaces table.
|
615
|
+
#
|
555
616
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
556
617
|
#
|
557
618
|
# @example Request syntax with placeholder values
|
558
619
|
#
|
559
620
|
# resp = client.delete_scheduled_action({
|
560
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda
|
621
|
+
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra
|
561
622
|
# scheduled_action_name: "ResourceIdMaxLen1600", # required
|
562
623
|
# resource_id: "ResourceIdMaxLen1600", # required
|
563
|
-
# scalable_dimension: "ecs:service:DesiredCount", # required, accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits, rds:cluster:ReadReplicaCount, sagemaker:variant:DesiredInstanceCount, custom-resource:ResourceType:Property, comprehend:document-classifier-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency
|
624
|
+
# scalable_dimension: "ecs:service:DesiredCount", # required, accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits, rds:cluster:ReadReplicaCount, sagemaker:variant:DesiredInstanceCount, custom-resource:ResourceType:Property, comprehend:document-classifier-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency, cassandra:table:ReadCapacityUnits, cassandra:table:WriteCapacityUnits
|
564
625
|
# })
|
565
626
|
#
|
566
627
|
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScheduledAction AWS API Documentation
|
@@ -572,23 +633,23 @@ module Aws::ApplicationAutoScaling
|
|
572
633
|
req.send_request(options)
|
573
634
|
end
|
574
635
|
|
575
|
-
# Deregisters an Application Auto Scaling scalable target
|
636
|
+
# Deregisters an Application Auto Scaling scalable target when you have
|
637
|
+
# finished using it. To see which resources have been registered, use
|
638
|
+
# [DescribeScalableTargets][1].
|
576
639
|
#
|
577
|
-
# Deregistering a scalable target deletes the scaling policies
|
578
|
-
# associated with it.
|
640
|
+
# <note markdown="1"> Deregistering a scalable target deletes the scaling policies and the
|
641
|
+
# scheduled actions that are associated with it.
|
579
642
|
#
|
580
|
-
#
|
581
|
-
# RegisterScalableTarget.
|
643
|
+
# </note>
|
582
644
|
#
|
583
|
-
# @option params [required, String] :service_namespace
|
584
|
-
# The namespace of the AWS service that provides the resource or
|
585
|
-
# `custom-resource` for a resource provided by your own application or
|
586
|
-
# service. For more information, see [AWS Service Namespaces][1] in the
|
587
|
-
# *Amazon Web Services General Reference*.
|
588
645
|
#
|
589
646
|
#
|
647
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DescribeScalableTargets.html
|
590
648
|
#
|
591
|
-
#
|
649
|
+
# @option params [required, String] :service_namespace
|
650
|
+
# The namespace of the AWS service that provides the resource. For a
|
651
|
+
# resource provided by your own application or service, use
|
652
|
+
# `custom-resource` instead.
|
592
653
|
#
|
593
654
|
# @option params [required, String] :resource_id
|
594
655
|
# The identifier of the resource associated with the scalable target.
|
@@ -639,6 +700,10 @@ module Aws::ApplicationAutoScaling
|
|
639
700
|
# or alias name suffix that is not `$LATEST`. Example:
|
640
701
|
# `function:my-function:prod` or `function:my-function:1`.
|
641
702
|
#
|
703
|
+
# * Amazon Keyspaces table - The resource type is `table` and the unique
|
704
|
+
# identifier is the table name. Example:
|
705
|
+
# `keyspace/mykeyspace/table/mytable`.
|
706
|
+
#
|
642
707
|
#
|
643
708
|
#
|
644
709
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -689,6 +754,12 @@ module Aws::ApplicationAutoScaling
|
|
689
754
|
# * `lambda:function:ProvisionedConcurrency` - The provisioned
|
690
755
|
# concurrency for a Lambda function.
|
691
756
|
#
|
757
|
+
# * `cassandra:table:ReadCapacityUnits` - The provisioned read capacity
|
758
|
+
# for an Amazon Keyspaces table.
|
759
|
+
#
|
760
|
+
# * `cassandra:table:WriteCapacityUnits` - The provisioned write
|
761
|
+
# capacity for an Amazon Keyspaces table.
|
762
|
+
#
|
692
763
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
693
764
|
#
|
694
765
|
#
|
@@ -710,9 +781,9 @@ module Aws::ApplicationAutoScaling
|
|
710
781
|
# @example Request syntax with placeholder values
|
711
782
|
#
|
712
783
|
# resp = client.deregister_scalable_target({
|
713
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda
|
784
|
+
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra
|
714
785
|
# resource_id: "ResourceIdMaxLen1600", # required
|
715
|
-
# scalable_dimension: "ecs:service:DesiredCount", # required, accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits, rds:cluster:ReadReplicaCount, sagemaker:variant:DesiredInstanceCount, custom-resource:ResourceType:Property, comprehend:document-classifier-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency
|
786
|
+
# scalable_dimension: "ecs:service:DesiredCount", # required, accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits, rds:cluster:ReadReplicaCount, sagemaker:variant:DesiredInstanceCount, custom-resource:ResourceType:Property, comprehend:document-classifier-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency, cassandra:table:ReadCapacityUnits, cassandra:table:WriteCapacityUnits
|
716
787
|
# })
|
717
788
|
#
|
718
789
|
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeregisterScalableTarget AWS API Documentation
|
@@ -730,19 +801,10 @@ module Aws::ApplicationAutoScaling
|
|
730
801
|
# You can filter the results using `ResourceIds` and
|
731
802
|
# `ScalableDimension`.
|
732
803
|
#
|
733
|
-
# To create a scalable target or update an existing one, see
|
734
|
-
# RegisterScalableTarget. If you are no longer using a scalable target,
|
735
|
-
# you can deregister it using DeregisterScalableTarget.
|
736
|
-
#
|
737
804
|
# @option params [required, String] :service_namespace
|
738
|
-
# The namespace of the AWS service that provides the resource
|
739
|
-
#
|
740
|
-
#
|
741
|
-
# *Amazon Web Services General Reference*.
|
742
|
-
#
|
743
|
-
#
|
744
|
-
#
|
745
|
-
# [1]: http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces
|
805
|
+
# The namespace of the AWS service that provides the resource. For a
|
806
|
+
# resource provided by your own application or service, use
|
807
|
+
# `custom-resource` instead.
|
746
808
|
#
|
747
809
|
# @option params [Array<String>] :resource_ids
|
748
810
|
# The identifier of the resource associated with the scalable target.
|
@@ -794,6 +856,10 @@ module Aws::ApplicationAutoScaling
|
|
794
856
|
# or alias name suffix that is not `$LATEST`. Example:
|
795
857
|
# `function:my-function:prod` or `function:my-function:1`.
|
796
858
|
#
|
859
|
+
# * Amazon Keyspaces table - The resource type is `table` and the unique
|
860
|
+
# identifier is the table name. Example:
|
861
|
+
# `keyspace/mykeyspace/table/mytable`.
|
862
|
+
#
|
797
863
|
#
|
798
864
|
#
|
799
865
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -845,6 +911,12 @@ module Aws::ApplicationAutoScaling
|
|
845
911
|
# * `lambda:function:ProvisionedConcurrency` - The provisioned
|
846
912
|
# concurrency for a Lambda function.
|
847
913
|
#
|
914
|
+
# * `cassandra:table:ReadCapacityUnits` - The provisioned read capacity
|
915
|
+
# for an Amazon Keyspaces table.
|
916
|
+
#
|
917
|
+
# * `cassandra:table:WriteCapacityUnits` - The provisioned write
|
918
|
+
# capacity for an Amazon Keyspaces table.
|
919
|
+
#
|
848
920
|
# @option params [Integer] :max_results
|
849
921
|
# The maximum number of scalable targets. This value can be between 1
|
850
922
|
# and 50. The default value is 50.
|
@@ -863,10 +935,12 @@ module Aws::ApplicationAutoScaling
|
|
863
935
|
# * {Types::DescribeScalableTargetsResponse#scalable_targets #scalable_targets} => Array<Types::ScalableTarget>
|
864
936
|
# * {Types::DescribeScalableTargetsResponse#next_token #next_token} => String
|
865
937
|
#
|
938
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
939
|
+
#
|
866
940
|
#
|
867
941
|
# @example Example: To describe scalable targets
|
868
942
|
#
|
869
|
-
# # This example describes the scalable targets for the
|
943
|
+
# # This example describes the scalable targets for the ECS service namespace.
|
870
944
|
#
|
871
945
|
# resp = client.describe_scalable_targets({
|
872
946
|
# service_namespace: "ecs",
|
@@ -876,7 +950,7 @@ module Aws::ApplicationAutoScaling
|
|
876
950
|
# {
|
877
951
|
# scalable_targets: [
|
878
952
|
# {
|
879
|
-
# creation_time: Time.parse("
|
953
|
+
# creation_time: Time.parse("2019-05-06T11:21:46.199Z"),
|
880
954
|
# max_capacity: 10,
|
881
955
|
# min_capacity: 1,
|
882
956
|
# resource_id: "service/default/web-app",
|
@@ -895,9 +969,9 @@ module Aws::ApplicationAutoScaling
|
|
895
969
|
# @example Request syntax with placeholder values
|
896
970
|
#
|
897
971
|
# resp = client.describe_scalable_targets({
|
898
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda
|
972
|
+
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra
|
899
973
|
# resource_ids: ["ResourceIdMaxLen1600"],
|
900
|
-
# scalable_dimension: "ecs:service:DesiredCount", # accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits, rds:cluster:ReadReplicaCount, sagemaker:variant:DesiredInstanceCount, custom-resource:ResourceType:Property, comprehend:document-classifier-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency
|
974
|
+
# scalable_dimension: "ecs:service:DesiredCount", # accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits, rds:cluster:ReadReplicaCount, sagemaker:variant:DesiredInstanceCount, custom-resource:ResourceType:Property, comprehend:document-classifier-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency, cassandra:table:ReadCapacityUnits, cassandra:table:WriteCapacityUnits
|
901
975
|
# max_results: 1,
|
902
976
|
# next_token: "XmlString",
|
903
977
|
# })
|
@@ -905,9 +979,9 @@ module Aws::ApplicationAutoScaling
|
|
905
979
|
# @example Response structure
|
906
980
|
#
|
907
981
|
# resp.scalable_targets #=> Array
|
908
|
-
# resp.scalable_targets[0].service_namespace #=> String, one of "ecs", "elasticmapreduce", "ec2", "appstream", "dynamodb", "rds", "sagemaker", "custom-resource", "comprehend", "lambda"
|
982
|
+
# resp.scalable_targets[0].service_namespace #=> String, one of "ecs", "elasticmapreduce", "ec2", "appstream", "dynamodb", "rds", "sagemaker", "custom-resource", "comprehend", "lambda", "cassandra"
|
909
983
|
# resp.scalable_targets[0].resource_id #=> String
|
910
|
-
# resp.scalable_targets[0].scalable_dimension #=> String, one of "ecs:service:DesiredCount", "ec2:spot-fleet-request:TargetCapacity", "elasticmapreduce:instancegroup:InstanceCount", "appstream:fleet:DesiredCapacity", "dynamodb:table:ReadCapacityUnits", "dynamodb:table:WriteCapacityUnits", "dynamodb:index:ReadCapacityUnits", "dynamodb:index:WriteCapacityUnits", "rds:cluster:ReadReplicaCount", "sagemaker:variant:DesiredInstanceCount", "custom-resource:ResourceType:Property", "comprehend:document-classifier-endpoint:DesiredInferenceUnits", "lambda:function:ProvisionedConcurrency"
|
984
|
+
# resp.scalable_targets[0].scalable_dimension #=> String, one of "ecs:service:DesiredCount", "ec2:spot-fleet-request:TargetCapacity", "elasticmapreduce:instancegroup:InstanceCount", "appstream:fleet:DesiredCapacity", "dynamodb:table:ReadCapacityUnits", "dynamodb:table:WriteCapacityUnits", "dynamodb:index:ReadCapacityUnits", "dynamodb:index:WriteCapacityUnits", "rds:cluster:ReadReplicaCount", "sagemaker:variant:DesiredInstanceCount", "custom-resource:ResourceType:Property", "comprehend:document-classifier-endpoint:DesiredInferenceUnits", "lambda:function:ProvisionedConcurrency", "cassandra:table:ReadCapacityUnits", "cassandra:table:WriteCapacityUnits"
|
911
985
|
# resp.scalable_targets[0].min_capacity #=> Integer
|
912
986
|
# resp.scalable_targets[0].max_capacity #=> Integer
|
913
987
|
# resp.scalable_targets[0].role_arn #=> String
|
@@ -931,20 +1005,10 @@ module Aws::ApplicationAutoScaling
|
|
931
1005
|
#
|
932
1006
|
# You can filter the results using `ResourceId` and `ScalableDimension`.
|
933
1007
|
#
|
934
|
-
# Scaling activities are triggered by CloudWatch alarms that are
|
935
|
-
# associated with scaling policies. To view the scaling policies for a
|
936
|
-
# service namespace, see DescribeScalingPolicies. To create a scaling
|
937
|
-
# policy or update an existing one, see PutScalingPolicy.
|
938
|
-
#
|
939
1008
|
# @option params [required, String] :service_namespace
|
940
|
-
# The namespace of the AWS service that provides the resource
|
941
|
-
#
|
942
|
-
#
|
943
|
-
# *Amazon Web Services General Reference*.
|
944
|
-
#
|
945
|
-
#
|
946
|
-
#
|
947
|
-
# [1]: http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces
|
1009
|
+
# The namespace of the AWS service that provides the resource. For a
|
1010
|
+
# resource provided by your own application or service, use
|
1011
|
+
# `custom-resource` instead.
|
948
1012
|
#
|
949
1013
|
# @option params [String] :resource_id
|
950
1014
|
# The identifier of the resource associated with the scaling activity.
|
@@ -996,6 +1060,10 @@ module Aws::ApplicationAutoScaling
|
|
996
1060
|
# or alias name suffix that is not `$LATEST`. Example:
|
997
1061
|
# `function:my-function:prod` or `function:my-function:1`.
|
998
1062
|
#
|
1063
|
+
# * Amazon Keyspaces table - The resource type is `table` and the unique
|
1064
|
+
# identifier is the table name. Example:
|
1065
|
+
# `keyspace/mykeyspace/table/mytable`.
|
1066
|
+
#
|
999
1067
|
#
|
1000
1068
|
#
|
1001
1069
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -1046,6 +1114,12 @@ module Aws::ApplicationAutoScaling
|
|
1046
1114
|
# * `lambda:function:ProvisionedConcurrency` - The provisioned
|
1047
1115
|
# concurrency for a Lambda function.
|
1048
1116
|
#
|
1117
|
+
# * `cassandra:table:ReadCapacityUnits` - The provisioned read capacity
|
1118
|
+
# for an Amazon Keyspaces table.
|
1119
|
+
#
|
1120
|
+
# * `cassandra:table:WriteCapacityUnits` - The provisioned write
|
1121
|
+
# capacity for an Amazon Keyspaces table.
|
1122
|
+
#
|
1049
1123
|
# @option params [Integer] :max_results
|
1050
1124
|
# The maximum number of scalable targets. This value can be between 1
|
1051
1125
|
# and 50. The default value is 50.
|
@@ -1064,6 +1138,8 @@ module Aws::ApplicationAutoScaling
|
|
1064
1138
|
# * {Types::DescribeScalingActivitiesResponse#scaling_activities #scaling_activities} => Array<Types::ScalingActivity>
|
1065
1139
|
# * {Types::DescribeScalingActivitiesResponse#next_token #next_token} => String
|
1066
1140
|
#
|
1141
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1142
|
+
#
|
1067
1143
|
#
|
1068
1144
|
# @example Example: To describe scaling activities for a scalable target
|
1069
1145
|
#
|
@@ -1083,11 +1159,11 @@ module Aws::ApplicationAutoScaling
|
|
1083
1159
|
# activity_id: "e6c5f7d1-dbbb-4a3f-89b2-51f33e766399",
|
1084
1160
|
# cause: "monitor alarm web-app-cpu-lt-25 in state ALARM triggered policy web-app-cpu-lt-25",
|
1085
1161
|
# description: "Setting desired count to 1.",
|
1086
|
-
# end_time: Time.parse("
|
1162
|
+
# end_time: Time.parse("2019-05-06T16:04:32.111Z"),
|
1087
1163
|
# resource_id: "service/default/web-app",
|
1088
1164
|
# scalable_dimension: "ecs:service:DesiredCount",
|
1089
1165
|
# service_namespace: "ecs",
|
1090
|
-
# start_time: Time.parse("
|
1166
|
+
# start_time: Time.parse("2019-05-06T16:03:58.171Z"),
|
1091
1167
|
# status_code: "Successful",
|
1092
1168
|
# status_message: "Successfully set desired count to 1. Change successfully fulfilled by ecs.",
|
1093
1169
|
# },
|
@@ -1097,9 +1173,9 @@ module Aws::ApplicationAutoScaling
|
|
1097
1173
|
# @example Request syntax with placeholder values
|
1098
1174
|
#
|
1099
1175
|
# resp = client.describe_scaling_activities({
|
1100
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda
|
1176
|
+
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra
|
1101
1177
|
# resource_id: "ResourceIdMaxLen1600",
|
1102
|
-
# scalable_dimension: "ecs:service:DesiredCount", # accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits, rds:cluster:ReadReplicaCount, sagemaker:variant:DesiredInstanceCount, custom-resource:ResourceType:Property, comprehend:document-classifier-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency
|
1178
|
+
# scalable_dimension: "ecs:service:DesiredCount", # accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits, rds:cluster:ReadReplicaCount, sagemaker:variant:DesiredInstanceCount, custom-resource:ResourceType:Property, comprehend:document-classifier-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency, cassandra:table:ReadCapacityUnits, cassandra:table:WriteCapacityUnits
|
1103
1179
|
# max_results: 1,
|
1104
1180
|
# next_token: "XmlString",
|
1105
1181
|
# })
|
@@ -1108,9 +1184,9 @@ module Aws::ApplicationAutoScaling
|
|
1108
1184
|
#
|
1109
1185
|
# resp.scaling_activities #=> Array
|
1110
1186
|
# resp.scaling_activities[0].activity_id #=> String
|
1111
|
-
# resp.scaling_activities[0].service_namespace #=> String, one of "ecs", "elasticmapreduce", "ec2", "appstream", "dynamodb", "rds", "sagemaker", "custom-resource", "comprehend", "lambda"
|
1187
|
+
# resp.scaling_activities[0].service_namespace #=> String, one of "ecs", "elasticmapreduce", "ec2", "appstream", "dynamodb", "rds", "sagemaker", "custom-resource", "comprehend", "lambda", "cassandra"
|
1112
1188
|
# resp.scaling_activities[0].resource_id #=> String
|
1113
|
-
# resp.scaling_activities[0].scalable_dimension #=> String, one of "ecs:service:DesiredCount", "ec2:spot-fleet-request:TargetCapacity", "elasticmapreduce:instancegroup:InstanceCount", "appstream:fleet:DesiredCapacity", "dynamodb:table:ReadCapacityUnits", "dynamodb:table:WriteCapacityUnits", "dynamodb:index:ReadCapacityUnits", "dynamodb:index:WriteCapacityUnits", "rds:cluster:ReadReplicaCount", "sagemaker:variant:DesiredInstanceCount", "custom-resource:ResourceType:Property", "comprehend:document-classifier-endpoint:DesiredInferenceUnits", "lambda:function:ProvisionedConcurrency"
|
1189
|
+
# resp.scaling_activities[0].scalable_dimension #=> String, one of "ecs:service:DesiredCount", "ec2:spot-fleet-request:TargetCapacity", "elasticmapreduce:instancegroup:InstanceCount", "appstream:fleet:DesiredCapacity", "dynamodb:table:ReadCapacityUnits", "dynamodb:table:WriteCapacityUnits", "dynamodb:index:ReadCapacityUnits", "dynamodb:index:WriteCapacityUnits", "rds:cluster:ReadReplicaCount", "sagemaker:variant:DesiredInstanceCount", "custom-resource:ResourceType:Property", "comprehend:document-classifier-endpoint:DesiredInferenceUnits", "lambda:function:ProvisionedConcurrency", "cassandra:table:ReadCapacityUnits", "cassandra:table:WriteCapacityUnits"
|
1114
1190
|
# resp.scaling_activities[0].description #=> String
|
1115
1191
|
# resp.scaling_activities[0].cause #=> String
|
1116
1192
|
# resp.scaling_activities[0].start_time #=> Time
|
@@ -1135,22 +1211,22 @@ module Aws::ApplicationAutoScaling
|
|
1135
1211
|
# You can filter the results using `ResourceId`, `ScalableDimension`,
|
1136
1212
|
# and `PolicyNames`.
|
1137
1213
|
#
|
1138
|
-
#
|
1139
|
-
#
|
1140
|
-
#
|
1214
|
+
# For more information, see [Target Tracking Scaling Policies][1] and
|
1215
|
+
# [Step Scaling Policies][2] in the *Application Auto Scaling User
|
1216
|
+
# Guide*.
|
1141
1217
|
#
|
1142
|
-
# @option params [Array<String>] :policy_names
|
1143
|
-
# The names of the scaling policies to describe.
|
1144
1218
|
#
|
1145
|
-
# @option params [required, String] :service_namespace
|
1146
|
-
# The namespace of the AWS service that provides the resource or
|
1147
|
-
# `custom-resource` for a resource provided by your own application or
|
1148
|
-
# service. For more information, see [AWS Service Namespaces][1] in the
|
1149
|
-
# *Amazon Web Services General Reference*.
|
1150
1219
|
#
|
1220
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html
|
1221
|
+
# [2]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html
|
1151
1222
|
#
|
1223
|
+
# @option params [Array<String>] :policy_names
|
1224
|
+
# The names of the scaling policies to describe.
|
1152
1225
|
#
|
1153
|
-
#
|
1226
|
+
# @option params [required, String] :service_namespace
|
1227
|
+
# The namespace of the AWS service that provides the resource. For a
|
1228
|
+
# resource provided by your own application or service, use
|
1229
|
+
# `custom-resource` instead.
|
1154
1230
|
#
|
1155
1231
|
# @option params [String] :resource_id
|
1156
1232
|
# The identifier of the resource associated with the scaling policy.
|
@@ -1202,6 +1278,10 @@ module Aws::ApplicationAutoScaling
|
|
1202
1278
|
# or alias name suffix that is not `$LATEST`. Example:
|
1203
1279
|
# `function:my-function:prod` or `function:my-function:1`.
|
1204
1280
|
#
|
1281
|
+
# * Amazon Keyspaces table - The resource type is `table` and the unique
|
1282
|
+
# identifier is the table name. Example:
|
1283
|
+
# `keyspace/mykeyspace/table/mytable`.
|
1284
|
+
#
|
1205
1285
|
#
|
1206
1286
|
#
|
1207
1287
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -1252,6 +1332,12 @@ module Aws::ApplicationAutoScaling
|
|
1252
1332
|
# * `lambda:function:ProvisionedConcurrency` - The provisioned
|
1253
1333
|
# concurrency for a Lambda function.
|
1254
1334
|
#
|
1335
|
+
# * `cassandra:table:ReadCapacityUnits` - The provisioned read capacity
|
1336
|
+
# for an Amazon Keyspaces table.
|
1337
|
+
#
|
1338
|
+
# * `cassandra:table:WriteCapacityUnits` - The provisioned write
|
1339
|
+
# capacity for an Amazon Keyspaces table.
|
1340
|
+
#
|
1255
1341
|
# @option params [Integer] :max_results
|
1256
1342
|
# The maximum number of scalable targets. This value can be between 1
|
1257
1343
|
# and 50. The default value is 50.
|
@@ -1270,10 +1356,12 @@ module Aws::ApplicationAutoScaling
|
|
1270
1356
|
# * {Types::DescribeScalingPoliciesResponse#scaling_policies #scaling_policies} => Array<Types::ScalingPolicy>
|
1271
1357
|
# * {Types::DescribeScalingPoliciesResponse#next_token #next_token} => String
|
1272
1358
|
#
|
1359
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1360
|
+
#
|
1273
1361
|
#
|
1274
1362
|
# @example Example: To describe scaling policies
|
1275
1363
|
#
|
1276
|
-
# # This example describes the scaling policies for the
|
1364
|
+
# # This example describes the scaling policies for the ECS service namespace.
|
1277
1365
|
#
|
1278
1366
|
# resp = client.describe_scaling_policies({
|
1279
1367
|
# service_namespace: "ecs",
|
@@ -1290,7 +1378,7 @@ module Aws::ApplicationAutoScaling
|
|
1290
1378
|
# alarm_name: "web-app-cpu-gt-75",
|
1291
1379
|
# },
|
1292
1380
|
# ],
|
1293
|
-
# creation_time: Time.parse("
|
1381
|
+
# creation_time: Time.parse("2019-05-06T12:11:39.230Z"),
|
1294
1382
|
# policy_arn: "arn:aws:autoscaling:us-west-2:012345678910:scalingPolicy:6d8972f3-efc8-437c-92d1-6270f29a66e7:resource/ecs/service/default/web-app:policyName/web-app-cpu-gt-75",
|
1295
1383
|
# policy_name: "web-app-cpu-gt-75",
|
1296
1384
|
# policy_type: "StepScaling",
|
@@ -1315,9 +1403,9 @@ module Aws::ApplicationAutoScaling
|
|
1315
1403
|
#
|
1316
1404
|
# resp = client.describe_scaling_policies({
|
1317
1405
|
# policy_names: ["ResourceIdMaxLen1600"],
|
1318
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda
|
1406
|
+
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra
|
1319
1407
|
# resource_id: "ResourceIdMaxLen1600",
|
1320
|
-
# scalable_dimension: "ecs:service:DesiredCount", # accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits, rds:cluster:ReadReplicaCount, sagemaker:variant:DesiredInstanceCount, custom-resource:ResourceType:Property, comprehend:document-classifier-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency
|
1408
|
+
# scalable_dimension: "ecs:service:DesiredCount", # accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits, rds:cluster:ReadReplicaCount, sagemaker:variant:DesiredInstanceCount, custom-resource:ResourceType:Property, comprehend:document-classifier-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency, cassandra:table:ReadCapacityUnits, cassandra:table:WriteCapacityUnits
|
1321
1409
|
# max_results: 1,
|
1322
1410
|
# next_token: "XmlString",
|
1323
1411
|
# })
|
@@ -1327,9 +1415,9 @@ module Aws::ApplicationAutoScaling
|
|
1327
1415
|
# resp.scaling_policies #=> Array
|
1328
1416
|
# resp.scaling_policies[0].policy_arn #=> String
|
1329
1417
|
# resp.scaling_policies[0].policy_name #=> String
|
1330
|
-
# resp.scaling_policies[0].service_namespace #=> String, one of "ecs", "elasticmapreduce", "ec2", "appstream", "dynamodb", "rds", "sagemaker", "custom-resource", "comprehend", "lambda"
|
1418
|
+
# resp.scaling_policies[0].service_namespace #=> String, one of "ecs", "elasticmapreduce", "ec2", "appstream", "dynamodb", "rds", "sagemaker", "custom-resource", "comprehend", "lambda", "cassandra"
|
1331
1419
|
# resp.scaling_policies[0].resource_id #=> String
|
1332
|
-
# resp.scaling_policies[0].scalable_dimension #=> String, one of "ecs:service:DesiredCount", "ec2:spot-fleet-request:TargetCapacity", "elasticmapreduce:instancegroup:InstanceCount", "appstream:fleet:DesiredCapacity", "dynamodb:table:ReadCapacityUnits", "dynamodb:table:WriteCapacityUnits", "dynamodb:index:ReadCapacityUnits", "dynamodb:index:WriteCapacityUnits", "rds:cluster:ReadReplicaCount", "sagemaker:variant:DesiredInstanceCount", "custom-resource:ResourceType:Property", "comprehend:document-classifier-endpoint:DesiredInferenceUnits", "lambda:function:ProvisionedConcurrency"
|
1420
|
+
# resp.scaling_policies[0].scalable_dimension #=> String, one of "ecs:service:DesiredCount", "ec2:spot-fleet-request:TargetCapacity", "elasticmapreduce:instancegroup:InstanceCount", "appstream:fleet:DesiredCapacity", "dynamodb:table:ReadCapacityUnits", "dynamodb:table:WriteCapacityUnits", "dynamodb:index:ReadCapacityUnits", "dynamodb:index:WriteCapacityUnits", "rds:cluster:ReadReplicaCount", "sagemaker:variant:DesiredInstanceCount", "custom-resource:ResourceType:Property", "comprehend:document-classifier-endpoint:DesiredInferenceUnits", "lambda:function:ProvisionedConcurrency", "cassandra:table:ReadCapacityUnits", "cassandra:table:WriteCapacityUnits"
|
1333
1421
|
# resp.scaling_policies[0].policy_type #=> String, one of "StepScaling", "TargetTrackingScaling"
|
1334
1422
|
# resp.scaling_policies[0].step_scaling_policy_configuration.adjustment_type #=> String, one of "ChangeInCapacity", "PercentChangeInCapacity", "ExactCapacity"
|
1335
1423
|
# resp.scaling_policies[0].step_scaling_policy_configuration.step_adjustments #=> Array
|
@@ -1340,7 +1428,7 @@ module Aws::ApplicationAutoScaling
|
|
1340
1428
|
# resp.scaling_policies[0].step_scaling_policy_configuration.cooldown #=> Integer
|
1341
1429
|
# resp.scaling_policies[0].step_scaling_policy_configuration.metric_aggregation_type #=> String, one of "Average", "Minimum", "Maximum"
|
1342
1430
|
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.target_value #=> Float
|
1343
|
-
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.predefined_metric_specification.predefined_metric_type #=> String, one of "DynamoDBReadCapacityUtilization", "DynamoDBWriteCapacityUtilization", "ALBRequestCountPerTarget", "RDSReaderAverageCPUUtilization", "RDSReaderAverageDatabaseConnections", "EC2SpotFleetRequestAverageCPUUtilization", "EC2SpotFleetRequestAverageNetworkIn", "EC2SpotFleetRequestAverageNetworkOut", "SageMakerVariantInvocationsPerInstance", "ECSServiceAverageCPUUtilization", "ECSServiceAverageMemoryUtilization", "AppStreamAverageCapacityUtilization", "ComprehendInferenceUtilization", "LambdaProvisionedConcurrencyUtilization"
|
1431
|
+
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.predefined_metric_specification.predefined_metric_type #=> String, one of "DynamoDBReadCapacityUtilization", "DynamoDBWriteCapacityUtilization", "ALBRequestCountPerTarget", "RDSReaderAverageCPUUtilization", "RDSReaderAverageDatabaseConnections", "EC2SpotFleetRequestAverageCPUUtilization", "EC2SpotFleetRequestAverageNetworkIn", "EC2SpotFleetRequestAverageNetworkOut", "SageMakerVariantInvocationsPerInstance", "ECSServiceAverageCPUUtilization", "ECSServiceAverageMemoryUtilization", "AppStreamAverageCapacityUtilization", "ComprehendInferenceUtilization", "LambdaProvisionedConcurrencyUtilization", "CassandraReadCapacityUtilization", "CassandraWriteCapacityUtilization"
|
1344
1432
|
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.predefined_metric_specification.resource_label #=> String
|
1345
1433
|
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.customized_metric_specification.metric_name #=> String
|
1346
1434
|
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.customized_metric_specification.namespace #=> String
|
@@ -1373,22 +1461,20 @@ module Aws::ApplicationAutoScaling
|
|
1373
1461
|
# You can filter the results using the `ResourceId`,
|
1374
1462
|
# `ScalableDimension`, and `ScheduledActionNames` parameters.
|
1375
1463
|
#
|
1376
|
-
#
|
1377
|
-
#
|
1378
|
-
# can delete it using DeleteScheduledAction.
|
1464
|
+
# For more information, see [Scheduled Scaling][1] in the *Application
|
1465
|
+
# Auto Scaling User Guide*.
|
1379
1466
|
#
|
1380
|
-
# @option params [Array<String>] :scheduled_action_names
|
1381
|
-
# The names of the scheduled actions to describe.
|
1382
1467
|
#
|
1383
|
-
# @option params [required, String] :service_namespace
|
1384
|
-
# The namespace of the AWS service that provides the resource or
|
1385
|
-
# `custom-resource` for a resource provided by your own application or
|
1386
|
-
# service. For more information, see [AWS Service Namespaces][1] in the
|
1387
|
-
# *Amazon Web Services General Reference*.
|
1388
1468
|
#
|
1469
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scheduled-scaling.html
|
1389
1470
|
#
|
1471
|
+
# @option params [Array<String>] :scheduled_action_names
|
1472
|
+
# The names of the scheduled actions to describe.
|
1390
1473
|
#
|
1391
|
-
#
|
1474
|
+
# @option params [required, String] :service_namespace
|
1475
|
+
# The namespace of the AWS service that provides the resource. For a
|
1476
|
+
# resource provided by your own application or service, use
|
1477
|
+
# `custom-resource` instead.
|
1392
1478
|
#
|
1393
1479
|
# @option params [String] :resource_id
|
1394
1480
|
# The identifier of the resource associated with the scheduled action.
|
@@ -1440,6 +1526,10 @@ module Aws::ApplicationAutoScaling
|
|
1440
1526
|
# or alias name suffix that is not `$LATEST`. Example:
|
1441
1527
|
# `function:my-function:prod` or `function:my-function:1`.
|
1442
1528
|
#
|
1529
|
+
# * Amazon Keyspaces table - The resource type is `table` and the unique
|
1530
|
+
# identifier is the table name. Example:
|
1531
|
+
# `keyspace/mykeyspace/table/mytable`.
|
1532
|
+
#
|
1443
1533
|
#
|
1444
1534
|
#
|
1445
1535
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -1490,6 +1580,12 @@ module Aws::ApplicationAutoScaling
|
|
1490
1580
|
# * `lambda:function:ProvisionedConcurrency` - The provisioned
|
1491
1581
|
# concurrency for a Lambda function.
|
1492
1582
|
#
|
1583
|
+
# * `cassandra:table:ReadCapacityUnits` - The provisioned read capacity
|
1584
|
+
# for an Amazon Keyspaces table.
|
1585
|
+
#
|
1586
|
+
# * `cassandra:table:WriteCapacityUnits` - The provisioned write
|
1587
|
+
# capacity for an Amazon Keyspaces table.
|
1588
|
+
#
|
1493
1589
|
# @option params [Integer] :max_results
|
1494
1590
|
# The maximum number of scheduled action results. This value can be
|
1495
1591
|
# between 1 and 50. The default value is 50.
|
@@ -1508,13 +1604,15 @@ module Aws::ApplicationAutoScaling
|
|
1508
1604
|
# * {Types::DescribeScheduledActionsResponse#scheduled_actions #scheduled_actions} => Array<Types::ScheduledAction>
|
1509
1605
|
# * {Types::DescribeScheduledActionsResponse#next_token #next_token} => String
|
1510
1606
|
#
|
1607
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1608
|
+
#
|
1511
1609
|
# @example Request syntax with placeholder values
|
1512
1610
|
#
|
1513
1611
|
# resp = client.describe_scheduled_actions({
|
1514
1612
|
# scheduled_action_names: ["ResourceIdMaxLen1600"],
|
1515
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda
|
1613
|
+
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra
|
1516
1614
|
# resource_id: "ResourceIdMaxLen1600",
|
1517
|
-
# scalable_dimension: "ecs:service:DesiredCount", # accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits, rds:cluster:ReadReplicaCount, sagemaker:variant:DesiredInstanceCount, custom-resource:ResourceType:Property, comprehend:document-classifier-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency
|
1615
|
+
# scalable_dimension: "ecs:service:DesiredCount", # accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits, rds:cluster:ReadReplicaCount, sagemaker:variant:DesiredInstanceCount, custom-resource:ResourceType:Property, comprehend:document-classifier-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency, cassandra:table:ReadCapacityUnits, cassandra:table:WriteCapacityUnits
|
1518
1616
|
# max_results: 1,
|
1519
1617
|
# next_token: "XmlString",
|
1520
1618
|
# })
|
@@ -1524,10 +1622,10 @@ module Aws::ApplicationAutoScaling
|
|
1524
1622
|
# resp.scheduled_actions #=> Array
|
1525
1623
|
# resp.scheduled_actions[0].scheduled_action_name #=> String
|
1526
1624
|
# resp.scheduled_actions[0].scheduled_action_arn #=> String
|
1527
|
-
# resp.scheduled_actions[0].service_namespace #=> String, one of "ecs", "elasticmapreduce", "ec2", "appstream", "dynamodb", "rds", "sagemaker", "custom-resource", "comprehend", "lambda"
|
1625
|
+
# resp.scheduled_actions[0].service_namespace #=> String, one of "ecs", "elasticmapreduce", "ec2", "appstream", "dynamodb", "rds", "sagemaker", "custom-resource", "comprehend", "lambda", "cassandra"
|
1528
1626
|
# resp.scheduled_actions[0].schedule #=> String
|
1529
1627
|
# resp.scheduled_actions[0].resource_id #=> String
|
1530
|
-
# resp.scheduled_actions[0].scalable_dimension #=> String, one of "ecs:service:DesiredCount", "ec2:spot-fleet-request:TargetCapacity", "elasticmapreduce:instancegroup:InstanceCount", "appstream:fleet:DesiredCapacity", "dynamodb:table:ReadCapacityUnits", "dynamodb:table:WriteCapacityUnits", "dynamodb:index:ReadCapacityUnits", "dynamodb:index:WriteCapacityUnits", "rds:cluster:ReadReplicaCount", "sagemaker:variant:DesiredInstanceCount", "custom-resource:ResourceType:Property", "comprehend:document-classifier-endpoint:DesiredInferenceUnits", "lambda:function:ProvisionedConcurrency"
|
1628
|
+
# resp.scheduled_actions[0].scalable_dimension #=> String, one of "ecs:service:DesiredCount", "ec2:spot-fleet-request:TargetCapacity", "elasticmapreduce:instancegroup:InstanceCount", "appstream:fleet:DesiredCapacity", "dynamodb:table:ReadCapacityUnits", "dynamodb:table:WriteCapacityUnits", "dynamodb:index:ReadCapacityUnits", "dynamodb:index:WriteCapacityUnits", "rds:cluster:ReadReplicaCount", "sagemaker:variant:DesiredInstanceCount", "custom-resource:ResourceType:Property", "comprehend:document-classifier-endpoint:DesiredInferenceUnits", "lambda:function:ProvisionedConcurrency", "cassandra:table:ReadCapacityUnits", "cassandra:table:WriteCapacityUnits"
|
1531
1629
|
# resp.scheduled_actions[0].start_time #=> Time
|
1532
1630
|
# resp.scheduled_actions[0].end_time #=> Time
|
1533
1631
|
# resp.scheduled_actions[0].scalable_target_action.min_capacity #=> Integer
|
@@ -1544,22 +1642,14 @@ module Aws::ApplicationAutoScaling
|
|
1544
1642
|
req.send_request(options)
|
1545
1643
|
end
|
1546
1644
|
|
1547
|
-
# Creates or updates a policy for an Application Auto Scaling
|
1548
|
-
# target.
|
1645
|
+
# Creates or updates a scaling policy for an Application Auto Scaling
|
1646
|
+
# scalable target.
|
1549
1647
|
#
|
1550
1648
|
# Each scalable target is identified by a service namespace, resource
|
1551
1649
|
# ID, and scalable dimension. A scaling policy applies to the scalable
|
1552
1650
|
# target identified by those three attributes. You cannot create a
|
1553
1651
|
# scaling policy until you have registered the resource as a scalable
|
1554
|
-
# target
|
1555
|
-
#
|
1556
|
-
# To update a policy, specify its policy name and the parameters that
|
1557
|
-
# you want to change. Any parameters that you don't specify are not
|
1558
|
-
# changed by this update request.
|
1559
|
-
#
|
1560
|
-
# You can view the scaling policies for a service namespace using
|
1561
|
-
# DescribeScalingPolicies. If you are no longer using a scaling policy,
|
1562
|
-
# you can delete it using DeleteScalingPolicy.
|
1652
|
+
# target.
|
1563
1653
|
#
|
1564
1654
|
# Multiple scaling policies can be in force at the same time for the
|
1565
1655
|
# same scalable target. You can have one or more target tracking scaling
|
@@ -1573,25 +1663,36 @@ module Aws::ApplicationAutoScaling
|
|
1573
1663
|
# the policy with the highest calculated capacity (200% of 10 = 20) and
|
1574
1664
|
# scales out to 30.
|
1575
1665
|
#
|
1576
|
-
#
|
1577
|
-
#
|
1666
|
+
# We recommend caution, however, when using target tracking scaling
|
1667
|
+
# policies with step scaling policies because conflicts between these
|
1668
|
+
# policies can cause undesirable behavior. For example, if the step
|
1669
|
+
# scaling policy initiates a scale-in activity before the target
|
1670
|
+
# tracking policy is ready to scale in, the scale-in activity will not
|
1671
|
+
# be blocked. After the scale-in activity completes, the target tracking
|
1672
|
+
# policy could instruct the scalable target to scale out again.
|
1578
1673
|
#
|
1674
|
+
# For more information, see [Target Tracking Scaling Policies][1] and
|
1675
|
+
# [Step Scaling Policies][2] in the *Application Auto Scaling User
|
1676
|
+
# Guide*.
|
1579
1677
|
#
|
1678
|
+
# <note markdown="1"> If a scalable target is deregistered, the scalable target is no longer
|
1679
|
+
# available to execute scaling policies. Any scaling policies that were
|
1680
|
+
# specified for the scalable target are deleted.
|
1580
1681
|
#
|
1581
|
-
#
|
1682
|
+
# </note>
|
1582
1683
|
#
|
1583
|
-
# @option params [required, String] :policy_name
|
1584
|
-
# The name of the scaling policy.
|
1585
1684
|
#
|
1586
|
-
# @option params [required, String] :service_namespace
|
1587
|
-
# The namespace of the AWS service that provides the resource or
|
1588
|
-
# `custom-resource` for a resource provided by your own application or
|
1589
|
-
# service. For more information, see [AWS Service Namespaces][1] in the
|
1590
|
-
# *Amazon Web Services General Reference*.
|
1591
1685
|
#
|
1686
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html
|
1687
|
+
# [2]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html
|
1592
1688
|
#
|
1689
|
+
# @option params [required, String] :policy_name
|
1690
|
+
# The name of the scaling policy.
|
1593
1691
|
#
|
1594
|
-
#
|
1692
|
+
# @option params [required, String] :service_namespace
|
1693
|
+
# The namespace of the AWS service that provides the resource. For a
|
1694
|
+
# resource provided by your own application or service, use
|
1695
|
+
# `custom-resource` instead.
|
1595
1696
|
#
|
1596
1697
|
# @option params [required, String] :resource_id
|
1597
1698
|
# The identifier of the resource associated with the scaling policy.
|
@@ -1642,6 +1743,10 @@ module Aws::ApplicationAutoScaling
|
|
1642
1743
|
# or alias name suffix that is not `$LATEST`. Example:
|
1643
1744
|
# `function:my-function:prod` or `function:my-function:1`.
|
1644
1745
|
#
|
1746
|
+
# * Amazon Keyspaces table - The resource type is `table` and the unique
|
1747
|
+
# identifier is the table name. Example:
|
1748
|
+
# `keyspace/mykeyspace/table/mytable`.
|
1749
|
+
#
|
1645
1750
|
#
|
1646
1751
|
#
|
1647
1752
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -1691,6 +1796,12 @@ module Aws::ApplicationAutoScaling
|
|
1691
1796
|
# * `lambda:function:ProvisionedConcurrency` - The provisioned
|
1692
1797
|
# concurrency for a Lambda function.
|
1693
1798
|
#
|
1799
|
+
# * `cassandra:table:ReadCapacityUnits` - The provisioned read capacity
|
1800
|
+
# for an Amazon Keyspaces table.
|
1801
|
+
#
|
1802
|
+
# * `cassandra:table:WriteCapacityUnits` - The provisioned write
|
1803
|
+
# capacity for an Amazon Keyspaces table.
|
1804
|
+
#
|
1694
1805
|
# @option params [String] :policy_type
|
1695
1806
|
# The policy type. This parameter is required if you are creating a
|
1696
1807
|
# scaling policy.
|
@@ -1699,8 +1810,8 @@ module Aws::ApplicationAutoScaling
|
|
1699
1810
|
#
|
1700
1811
|
# `TargetTrackingScaling`—Not supported for Amazon EMR
|
1701
1812
|
#
|
1702
|
-
# `StepScaling`—Not supported for DynamoDB, Amazon Comprehend,
|
1703
|
-
#
|
1813
|
+
# `StepScaling`—Not supported for DynamoDB, Amazon Comprehend, Lambda,
|
1814
|
+
# or Amazon Keyspaces (for Apache Cassandra).
|
1704
1815
|
#
|
1705
1816
|
# For more information, see [Target Tracking Scaling Policies][1] and
|
1706
1817
|
# [Step Scaling Policies][2] in the *Application Auto Scaling User
|
@@ -1767,150 +1878,13 @@ module Aws::ApplicationAutoScaling
|
|
1767
1878
|
# policy_arn: "arn:aws:autoscaling:us-west-2:012345678910:scalingPolicy:6d8972f3-efc8-437c-92d1-6270f29a66e7:resource/ecs/service/default/web-app:policyName/cpu75-target-tracking-scaling-policy",
|
1768
1879
|
# }
|
1769
1880
|
#
|
1770
|
-
# @example Example: To apply a target tracking scaling policy with a customized metric specification
|
1771
|
-
#
|
1772
|
-
# # The following example applies a target tracking scaling policy with a customized metric specification to an Amazon ECS
|
1773
|
-
# # service called web-app in the default cluster. The policy keeps the average utilization of the service at 75 percent,
|
1774
|
-
# # with scale-out and scale-in cooldown periods of 60 seconds.
|
1775
|
-
#
|
1776
|
-
# resp = client.put_scaling_policy({
|
1777
|
-
# policy_name: "cms75-target-tracking-scaling-policy",
|
1778
|
-
# policy_type: "TargetTrackingScaling",
|
1779
|
-
# resource_id: "service/default/web-app",
|
1780
|
-
# scalable_dimension: "ecs:service:DesiredCount",
|
1781
|
-
# service_namespace: "ecs",
|
1782
|
-
# target_tracking_scaling_policy_configuration: {
|
1783
|
-
# customized_metric_specification: {
|
1784
|
-
# dimensions: [
|
1785
|
-
# {
|
1786
|
-
# name: "MyOptionalMetricDimensionName",
|
1787
|
-
# value: "MyOptionalMetricDimensionValue",
|
1788
|
-
# },
|
1789
|
-
# ],
|
1790
|
-
# metric_name: "MyUtilizationMetric",
|
1791
|
-
# namespace: "MyNamespace",
|
1792
|
-
# statistic: "Average",
|
1793
|
-
# unit: "Percent",
|
1794
|
-
# },
|
1795
|
-
# scale_in_cooldown: 60,
|
1796
|
-
# scale_out_cooldown: 60,
|
1797
|
-
# target_value: 75,
|
1798
|
-
# },
|
1799
|
-
# })
|
1800
|
-
#
|
1801
|
-
# resp.to_h outputs the following:
|
1802
|
-
# {
|
1803
|
-
# alarms: [
|
1804
|
-
# {
|
1805
|
-
# alarm_arn: "arn:aws:cloudwatch:us-west-2:012345678910:alarm:TargetTracking-service/default/web-app-AlarmHigh-9bc77b56-0571-4276-ba0f-d4178882e0a0",
|
1806
|
-
# alarm_name: "TargetTracking-service/default/web-app-AlarmHigh-9bc77b56-0571-4276-ba0f-d4178882e0a0",
|
1807
|
-
# },
|
1808
|
-
# {
|
1809
|
-
# alarm_arn: "arn:aws:cloudwatch:us-west-2:012345678910:alarm:TargetTracking-service/default/web-app-AlarmLow-9b6ad934-6d37-438e-9e05-02836ddcbdc4",
|
1810
|
-
# alarm_name: "TargetTracking-service/default/web-app-AlarmLow-9b6ad934-6d37-438e-9e05-02836ddcbdc4",
|
1811
|
-
# },
|
1812
|
-
# ],
|
1813
|
-
# policy_arn: "arn:aws:autoscaling:us-west-2:012345678910:scalingPolicy: 8784a896-b2ba-47a1-b08c-27301cc499a1:resource/ecs/service/default/web-app:policyName/cms75-target-tracking-scaling-policy",
|
1814
|
-
# }
|
1815
|
-
#
|
1816
|
-
# @example Example: To apply a target tracking scaling policy for scale out only
|
1817
|
-
#
|
1818
|
-
# # The following example applies a target tracking scaling policy to an Amazon ECS service called web-app in the default
|
1819
|
-
# # cluster. The policy is used to scale out the ECS service when the RequestCountPerTarget metric from the Application Load
|
1820
|
-
# # Balancer exceeds the threshold.
|
1821
|
-
#
|
1822
|
-
# resp = client.put_scaling_policy({
|
1823
|
-
# policy_name: "alb-scale-out-target-tracking-scaling-policy",
|
1824
|
-
# policy_type: "TargetTrackingScaling",
|
1825
|
-
# resource_id: "service/default/web-app",
|
1826
|
-
# scalable_dimension: "ecs:service:DesiredCount",
|
1827
|
-
# service_namespace: "ecs",
|
1828
|
-
# target_tracking_scaling_policy_configuration: {
|
1829
|
-
# disable_scale_in: true,
|
1830
|
-
# predefined_metric_specification: {
|
1831
|
-
# predefined_metric_type: "ALBRequestCountPerTarget",
|
1832
|
-
# resource_label: "app/EC2Co-EcsEl-1TKLTMITMM0EO/f37c06a68c1748aa/targetgroup/EC2Co-Defau-LDNM7Q3ZH1ZN/6d4ea56ca2d6a18d",
|
1833
|
-
# },
|
1834
|
-
# scale_in_cooldown: 60,
|
1835
|
-
# scale_out_cooldown: 60,
|
1836
|
-
# target_value: 1000,
|
1837
|
-
# },
|
1838
|
-
# })
|
1839
|
-
#
|
1840
|
-
# resp.to_h outputs the following:
|
1841
|
-
# {
|
1842
|
-
# alarms: [
|
1843
|
-
# {
|
1844
|
-
# alarm_arn: "TargetTracking-service/default/web-app-AlarmHigh-d4f0770c-b46e-434a-a60f-3b36d653feca",
|
1845
|
-
# alarm_name: "arn:aws:cloudwatch:us-west-2:012345678910:alarm:TargetTracking-service/default/web-app-AlarmHigh-d4f0770c-b46e-434a-a60f-3b36d653feca",
|
1846
|
-
# },
|
1847
|
-
# ],
|
1848
|
-
# policy_arn: "arn:aws:autoscaling:us-west-2:012345678910:scalingPolicy:6d8972f3-efc8-437c-92d1-6270f29a66e7:resource/ecs/service/default/web-app:policyName/alb-scale-out-target-tracking-scaling-policy",
|
1849
|
-
# }
|
1850
|
-
#
|
1851
|
-
# @example Example: To apply a step scaling policy to an Amazon ECS service
|
1852
|
-
#
|
1853
|
-
# # This example applies a step scaling policy to an Amazon ECS service called web-app in the default cluster. The policy
|
1854
|
-
# # increases the desired count of the service by 200%, with a cool down period of 60 seconds.
|
1855
|
-
#
|
1856
|
-
# resp = client.put_scaling_policy({
|
1857
|
-
# policy_name: "web-app-cpu-gt-75",
|
1858
|
-
# policy_type: "StepScaling",
|
1859
|
-
# resource_id: "service/default/web-app",
|
1860
|
-
# scalable_dimension: "ecs:service:DesiredCount",
|
1861
|
-
# service_namespace: "ecs",
|
1862
|
-
# step_scaling_policy_configuration: {
|
1863
|
-
# adjustment_type: "PercentChangeInCapacity",
|
1864
|
-
# cooldown: 60,
|
1865
|
-
# step_adjustments: [
|
1866
|
-
# {
|
1867
|
-
# metric_interval_lower_bound: 0,
|
1868
|
-
# scaling_adjustment: 200,
|
1869
|
-
# },
|
1870
|
-
# ],
|
1871
|
-
# },
|
1872
|
-
# })
|
1873
|
-
#
|
1874
|
-
# resp.to_h outputs the following:
|
1875
|
-
# {
|
1876
|
-
# policy_arn: "arn:aws:autoscaling:us-west-2:012345678910:scalingPolicy:6d8972f3-efc8-437c-92d1-6270f29a66e7:resource/ecs/service/default/web-app:policyName/web-app-cpu-gt-75",
|
1877
|
-
# }
|
1878
|
-
#
|
1879
|
-
# @example Example: To apply a step scaling policy to an Amazon EC2 Spot fleet
|
1880
|
-
#
|
1881
|
-
# # This example applies a step scaling policy to an Amazon EC2 Spot fleet. The policy increases the target capacity of the
|
1882
|
-
# # spot fleet by 200%, with a cool down period of 180 seconds.",
|
1883
|
-
#
|
1884
|
-
# resp = client.put_scaling_policy({
|
1885
|
-
# policy_name: "fleet-cpu-gt-75",
|
1886
|
-
# policy_type: "StepScaling",
|
1887
|
-
# resource_id: "spot-fleet-request/sfr-45e69d8a-be48-4539-bbf3-3464e99c50c3",
|
1888
|
-
# scalable_dimension: "ec2:spot-fleet-request:TargetCapacity",
|
1889
|
-
# service_namespace: "ec2",
|
1890
|
-
# step_scaling_policy_configuration: {
|
1891
|
-
# adjustment_type: "PercentChangeInCapacity",
|
1892
|
-
# cooldown: 180,
|
1893
|
-
# step_adjustments: [
|
1894
|
-
# {
|
1895
|
-
# metric_interval_lower_bound: 0,
|
1896
|
-
# scaling_adjustment: 200,
|
1897
|
-
# },
|
1898
|
-
# ],
|
1899
|
-
# },
|
1900
|
-
# })
|
1901
|
-
#
|
1902
|
-
# resp.to_h outputs the following:
|
1903
|
-
# {
|
1904
|
-
# policy_arn: "arn:aws:autoscaling:us-east-1:012345678910:scalingPolicy:89406401-0cb7-4130-b770-d97cca0e446b:resource/ec2/spot-fleet-request/sfr-45e69d8a-be48-4539-bbf3-3464e99c50c3:policyName/fleet-cpu-gt-75",
|
1905
|
-
# }
|
1906
|
-
#
|
1907
1881
|
# @example Request syntax with placeholder values
|
1908
1882
|
#
|
1909
1883
|
# resp = client.put_scaling_policy({
|
1910
1884
|
# policy_name: "PolicyName", # required
|
1911
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda
|
1885
|
+
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra
|
1912
1886
|
# resource_id: "ResourceIdMaxLen1600", # required
|
1913
|
-
# scalable_dimension: "ecs:service:DesiredCount", # required, accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits, rds:cluster:ReadReplicaCount, sagemaker:variant:DesiredInstanceCount, custom-resource:ResourceType:Property, comprehend:document-classifier-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency
|
1887
|
+
# scalable_dimension: "ecs:service:DesiredCount", # required, accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits, rds:cluster:ReadReplicaCount, sagemaker:variant:DesiredInstanceCount, custom-resource:ResourceType:Property, comprehend:document-classifier-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency, cassandra:table:ReadCapacityUnits, cassandra:table:WriteCapacityUnits
|
1914
1888
|
# policy_type: "StepScaling", # accepts StepScaling, TargetTrackingScaling
|
1915
1889
|
# step_scaling_policy_configuration: {
|
1916
1890
|
# adjustment_type: "ChangeInCapacity", # accepts ChangeInCapacity, PercentChangeInCapacity, ExactCapacity
|
@@ -1928,7 +1902,7 @@ module Aws::ApplicationAutoScaling
|
|
1928
1902
|
# target_tracking_scaling_policy_configuration: {
|
1929
1903
|
# target_value: 1.0, # required
|
1930
1904
|
# predefined_metric_specification: {
|
1931
|
-
# predefined_metric_type: "DynamoDBReadCapacityUtilization", # required, accepts DynamoDBReadCapacityUtilization, DynamoDBWriteCapacityUtilization, ALBRequestCountPerTarget, RDSReaderAverageCPUUtilization, RDSReaderAverageDatabaseConnections, EC2SpotFleetRequestAverageCPUUtilization, EC2SpotFleetRequestAverageNetworkIn, EC2SpotFleetRequestAverageNetworkOut, SageMakerVariantInvocationsPerInstance, ECSServiceAverageCPUUtilization, ECSServiceAverageMemoryUtilization, AppStreamAverageCapacityUtilization, ComprehendInferenceUtilization, LambdaProvisionedConcurrencyUtilization
|
1905
|
+
# predefined_metric_type: "DynamoDBReadCapacityUtilization", # required, accepts DynamoDBReadCapacityUtilization, DynamoDBWriteCapacityUtilization, ALBRequestCountPerTarget, RDSReaderAverageCPUUtilization, RDSReaderAverageDatabaseConnections, EC2SpotFleetRequestAverageCPUUtilization, EC2SpotFleetRequestAverageNetworkIn, EC2SpotFleetRequestAverageNetworkOut, SageMakerVariantInvocationsPerInstance, ECSServiceAverageCPUUtilization, ECSServiceAverageMemoryUtilization, AppStreamAverageCapacityUtilization, ComprehendInferenceUtilization, LambdaProvisionedConcurrencyUtilization, CassandraReadCapacityUtilization, CassandraWriteCapacityUtilization
|
1932
1906
|
# resource_label: "ResourceLabel",
|
1933
1907
|
# },
|
1934
1908
|
# customized_metric_specification: {
|
@@ -1972,33 +1946,33 @@ module Aws::ApplicationAutoScaling
|
|
1972
1946
|
# ID, and scalable dimension. A scheduled action applies to the scalable
|
1973
1947
|
# target identified by those three attributes. You cannot create a
|
1974
1948
|
# scheduled action until you have registered the resource as a scalable
|
1975
|
-
# target
|
1976
|
-
#
|
1977
|
-
# To update an action, specify its name and the parameters that you want
|
1978
|
-
# to change. If you don't specify start and end times, the old values
|
1979
|
-
# are deleted. Any other parameters that you don't specify are not
|
1980
|
-
# changed by this update request.
|
1949
|
+
# target.
|
1981
1950
|
#
|
1982
|
-
#
|
1983
|
-
#
|
1984
|
-
#
|
1951
|
+
# When start and end times are specified with a recurring schedule using
|
1952
|
+
# a cron expression or rates, they form the boundaries of when the
|
1953
|
+
# recurring action starts and stops.
|
1985
1954
|
#
|
1986
|
-
#
|
1987
|
-
#
|
1955
|
+
# To update a scheduled action, specify the parameters that you want to
|
1956
|
+
# change. If you don't specify start and end times, the old values are
|
1957
|
+
# deleted.
|
1988
1958
|
#
|
1959
|
+
# For more information, see [Scheduled Scaling][1] in the *Application
|
1960
|
+
# Auto Scaling User Guide*.
|
1989
1961
|
#
|
1962
|
+
# <note markdown="1"> If a scalable target is deregistered, the scalable target is no longer
|
1963
|
+
# available to run scheduled actions. Any scheduled actions that were
|
1964
|
+
# specified for the scalable target are deleted.
|
1990
1965
|
#
|
1991
|
-
#
|
1966
|
+
# </note>
|
1992
1967
|
#
|
1993
|
-
# @option params [required, String] :service_namespace
|
1994
|
-
# The namespace of the AWS service that provides the resource or
|
1995
|
-
# `custom-resource` for a resource provided by your own application or
|
1996
|
-
# service. For more information, see [AWS Service Namespaces][1] in the
|
1997
|
-
# *Amazon Web Services General Reference*.
|
1998
1968
|
#
|
1999
1969
|
#
|
1970
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scheduled-scaling.html
|
2000
1971
|
#
|
2001
|
-
#
|
1972
|
+
# @option params [required, String] :service_namespace
|
1973
|
+
# The namespace of the AWS service that provides the resource. For a
|
1974
|
+
# resource provided by your own application or service, use
|
1975
|
+
# `custom-resource` instead.
|
2002
1976
|
#
|
2003
1977
|
# @option params [String] :schedule
|
2004
1978
|
# The schedule for this action. The following formats are supported:
|
@@ -2009,7 +1983,7 @@ module Aws::ApplicationAutoScaling
|
|
2009
1983
|
#
|
2010
1984
|
# * Cron expressions - "`cron(fields)`"
|
2011
1985
|
#
|
2012
|
-
# At expressions are useful for one-time schedules. Specify the time
|
1986
|
+
# At expressions are useful for one-time schedules. Specify the time in
|
2013
1987
|
# UTC.
|
2014
1988
|
#
|
2015
1989
|
# For rate expressions, *value* is a positive integer and *unit* is
|
@@ -2018,12 +1992,17 @@ module Aws::ApplicationAutoScaling
|
|
2018
1992
|
# For more information about cron expressions, see [Cron Expressions][1]
|
2019
1993
|
# in the *Amazon CloudWatch Events User Guide*.
|
2020
1994
|
#
|
1995
|
+
# For examples of using these expressions, see [Scheduled Scaling][2] in
|
1996
|
+
# the *Application Auto Scaling User Guide*.
|
1997
|
+
#
|
2021
1998
|
#
|
2022
1999
|
#
|
2023
2000
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
|
2001
|
+
# [2]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scheduled-scaling.html
|
2024
2002
|
#
|
2025
2003
|
# @option params [required, String] :scheduled_action_name
|
2026
|
-
# The name of the scheduled action.
|
2004
|
+
# The name of the scheduled action. This name must be unique among all
|
2005
|
+
# other scheduled actions on the specified scalable target.
|
2027
2006
|
#
|
2028
2007
|
# @option params [required, String] :resource_id
|
2029
2008
|
# The identifier of the resource associated with the scheduled action.
|
@@ -2074,6 +2053,10 @@ module Aws::ApplicationAutoScaling
|
|
2074
2053
|
# or alias name suffix that is not `$LATEST`. Example:
|
2075
2054
|
# `function:my-function:prod` or `function:my-function:1`.
|
2076
2055
|
#
|
2056
|
+
# * Amazon Keyspaces table - The resource type is `table` and the unique
|
2057
|
+
# identifier is the table name. Example:
|
2058
|
+
# `keyspace/mykeyspace/table/mytable`.
|
2059
|
+
#
|
2077
2060
|
#
|
2078
2061
|
#
|
2079
2062
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -2123,15 +2106,21 @@ module Aws::ApplicationAutoScaling
|
|
2123
2106
|
# * `lambda:function:ProvisionedConcurrency` - The provisioned
|
2124
2107
|
# concurrency for a Lambda function.
|
2125
2108
|
#
|
2109
|
+
# * `cassandra:table:ReadCapacityUnits` - The provisioned read capacity
|
2110
|
+
# for an Amazon Keyspaces table.
|
2111
|
+
#
|
2112
|
+
# * `cassandra:table:WriteCapacityUnits` - The provisioned write
|
2113
|
+
# capacity for an Amazon Keyspaces table.
|
2114
|
+
#
|
2126
2115
|
# @option params [Time,DateTime,Date,Integer,String] :start_time
|
2127
|
-
# The date and time for
|
2116
|
+
# The date and time for this scheduled action to start.
|
2128
2117
|
#
|
2129
2118
|
# @option params [Time,DateTime,Date,Integer,String] :end_time
|
2130
|
-
# The date and time for the
|
2119
|
+
# The date and time for the recurring schedule to end.
|
2131
2120
|
#
|
2132
2121
|
# @option params [Types::ScalableTargetAction] :scalable_target_action
|
2133
2122
|
# The new minimum and maximum capacity. You can set both values or just
|
2134
|
-
# one.
|
2123
|
+
# one. At the scheduled time, if the current capacity is below the
|
2135
2124
|
# minimum capacity, Application Auto Scaling scales out to the minimum
|
2136
2125
|
# capacity. If the current capacity is above the maximum capacity,
|
2137
2126
|
# Application Auto Scaling scales in to the maximum capacity.
|
@@ -2141,11 +2130,11 @@ module Aws::ApplicationAutoScaling
|
|
2141
2130
|
# @example Request syntax with placeholder values
|
2142
2131
|
#
|
2143
2132
|
# resp = client.put_scheduled_action({
|
2144
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda
|
2133
|
+
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra
|
2145
2134
|
# schedule: "ResourceIdMaxLen1600",
|
2146
2135
|
# scheduled_action_name: "ScheduledActionName", # required
|
2147
2136
|
# resource_id: "ResourceIdMaxLen1600", # required
|
2148
|
-
# scalable_dimension: "ecs:service:DesiredCount", # required, accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits, rds:cluster:ReadReplicaCount, sagemaker:variant:DesiredInstanceCount, custom-resource:ResourceType:Property, comprehend:document-classifier-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency
|
2137
|
+
# scalable_dimension: "ecs:service:DesiredCount", # required, accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits, rds:cluster:ReadReplicaCount, sagemaker:variant:DesiredInstanceCount, custom-resource:ResourceType:Property, comprehend:document-classifier-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency, cassandra:table:ReadCapacityUnits, cassandra:table:WriteCapacityUnits
|
2149
2138
|
# start_time: Time.now,
|
2150
2139
|
# end_time: Time.now,
|
2151
2140
|
# scalable_target_action: {
|
@@ -2163,38 +2152,38 @@ module Aws::ApplicationAutoScaling
|
|
2163
2152
|
req.send_request(options)
|
2164
2153
|
end
|
2165
2154
|
|
2166
|
-
# Registers or updates a scalable target.
|
2167
|
-
# resource that Application Auto Scaling can scale out and scale in.
|
2168
|
-
# Scalable targets are uniquely identified by the combination of
|
2169
|
-
# resource ID, scalable dimension, and namespace.
|
2155
|
+
# Registers or updates a scalable target.
|
2170
2156
|
#
|
2171
|
-
#
|
2172
|
-
#
|
2173
|
-
#
|
2157
|
+
# A scalable target is a resource that Application Auto Scaling can
|
2158
|
+
# scale out and scale in. Scalable targets are uniquely identified by
|
2159
|
+
# the combination of resource ID, scalable dimension, and namespace.
|
2174
2160
|
#
|
2175
|
-
#
|
2176
|
-
#
|
2177
|
-
#
|
2178
|
-
#
|
2161
|
+
# When you register a new scalable target, you must specify values for
|
2162
|
+
# minimum and maximum capacity. Application Auto Scaling scaling
|
2163
|
+
# policies will not scale capacity to values that are outside of this
|
2164
|
+
# range.
|
2179
2165
|
#
|
2180
2166
|
# After you register a scalable target, you do not need to register it
|
2181
2167
|
# again to use other Application Auto Scaling operations. To see which
|
2182
|
-
# resources have been registered, use DescribeScalableTargets. You
|
2183
|
-
# also view the scaling policies for a service namespace by using
|
2184
|
-
# DescribeScalableTargets.
|
2168
|
+
# resources have been registered, use [DescribeScalableTargets][1]. You
|
2169
|
+
# can also view the scaling policies for a service namespace by using
|
2170
|
+
# [DescribeScalableTargets][1]. If you no longer need a scalable target,
|
2171
|
+
# you can deregister it by using [DeregisterScalableTarget][2].
|
2185
2172
|
#
|
2186
|
-
#
|
2187
|
-
#
|
2173
|
+
# To update a scalable target, specify the parameters that you want to
|
2174
|
+
# change. Include the parameters that identify the scalable target:
|
2175
|
+
# resource ID, scalable dimension, and namespace. Any parameters that
|
2176
|
+
# you don't specify are not changed by this update request.
|
2188
2177
|
#
|
2189
|
-
# @option params [required, String] :service_namespace
|
2190
|
-
# The namespace of the AWS service that provides the resource or
|
2191
|
-
# `custom-resource` for a resource provided by your own application or
|
2192
|
-
# service. For more information, see [AWS Service Namespaces][1] in the
|
2193
|
-
# *Amazon Web Services General Reference*.
|
2194
2178
|
#
|
2195
2179
|
#
|
2180
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DescribeScalableTargets.html
|
2181
|
+
# [2]: https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DeregisterScalableTarget.html
|
2196
2182
|
#
|
2197
|
-
#
|
2183
|
+
# @option params [required, String] :service_namespace
|
2184
|
+
# The namespace of the AWS service that provides the resource. For a
|
2185
|
+
# resource provided by your own application or service, use
|
2186
|
+
# `custom-resource` instead.
|
2198
2187
|
#
|
2199
2188
|
# @option params [required, String] :resource_id
|
2200
2189
|
# The identifier of the resource that is associated with the scalable
|
@@ -2246,6 +2235,10 @@ module Aws::ApplicationAutoScaling
|
|
2246
2235
|
# or alias name suffix that is not `$LATEST`. Example:
|
2247
2236
|
# `function:my-function:prod` or `function:my-function:1`.
|
2248
2237
|
#
|
2238
|
+
# * Amazon Keyspaces table - The resource type is `table` and the unique
|
2239
|
+
# identifier is the table name. Example:
|
2240
|
+
# `keyspace/mykeyspace/table/mytable`.
|
2241
|
+
#
|
2249
2242
|
#
|
2250
2243
|
#
|
2251
2244
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -2296,27 +2289,41 @@ module Aws::ApplicationAutoScaling
|
|
2296
2289
|
# * `lambda:function:ProvisionedConcurrency` - The provisioned
|
2297
2290
|
# concurrency for a Lambda function.
|
2298
2291
|
#
|
2292
|
+
# * `cassandra:table:ReadCapacityUnits` - The provisioned read capacity
|
2293
|
+
# for an Amazon Keyspaces table.
|
2294
|
+
#
|
2295
|
+
# * `cassandra:table:WriteCapacityUnits` - The provisioned write
|
2296
|
+
# capacity for an Amazon Keyspaces table.
|
2297
|
+
#
|
2299
2298
|
# @option params [Integer] :min_capacity
|
2300
|
-
# The minimum value to scale
|
2301
|
-
#
|
2299
|
+
# The minimum value that you plan to scale in to. When a scaling policy
|
2300
|
+
# is in effect, Application Auto Scaling can scale in (contract) as
|
2301
|
+
# needed to the minimum capacity limit in response to changing demand.
|
2302
|
+
#
|
2303
|
+
# This parameter is required if you are registering a scalable target.
|
2304
|
+
# For Lambda provisioned concurrency, the minimum value allowed is 0.
|
2305
|
+
# For all other resources, the minimum value allowed is 1.
|
2302
2306
|
#
|
2303
2307
|
# @option params [Integer] :max_capacity
|
2304
|
-
# The maximum value
|
2305
|
-
#
|
2308
|
+
# The maximum value that you plan to scale out to. When a scaling policy
|
2309
|
+
# is in effect, Application Auto Scaling can scale out (expand) as
|
2310
|
+
# needed to the maximum capacity limit in response to changing demand.
|
2306
2311
|
#
|
2307
|
-
#
|
2308
|
-
# Application Auto Scaling creates a service-linked role that grants it
|
2309
|
-
# permissions to modify the scalable target on your behalf. For more
|
2310
|
-
# information, see [Service-Linked Roles for Application Auto
|
2311
|
-
# Scaling][1].
|
2312
|
+
# This parameter is required if you are registering a scalable target.
|
2312
2313
|
#
|
2313
|
-
#
|
2314
|
-
#
|
2314
|
+
# @option params [String] :role_arn
|
2315
|
+
# This parameter is required for services that do not support
|
2316
|
+
# service-linked roles (such as Amazon EMR), and it must specify the ARN
|
2317
|
+
# of an IAM role that allows Application Auto Scaling to modify the
|
2315
2318
|
# scalable target on your behalf.
|
2316
2319
|
#
|
2320
|
+
# If the service supports service-linked roles, Application Auto Scaling
|
2321
|
+
# uses a service-linked role, which it creates if it does not yet exist.
|
2322
|
+
# For more information, see [Application Auto Scaling IAM Roles][1].
|
2317
2323
|
#
|
2318
2324
|
#
|
2319
|
-
#
|
2325
|
+
#
|
2326
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/security_iam_service-with-iam.html#security_iam_service-with-iam-roles
|
2320
2327
|
#
|
2321
2328
|
# @option params [Types::SuspendedState] :suspended_state
|
2322
2329
|
# An embedded object that contains attributes and attribute values that
|
@@ -2361,29 +2368,12 @@ module Aws::ApplicationAutoScaling
|
|
2361
2368
|
# service_namespace: "ecs",
|
2362
2369
|
# })
|
2363
2370
|
#
|
2364
|
-
# @example Example: To register an EC2 Spot fleet as a scalable target
|
2365
|
-
#
|
2366
|
-
# # This example registers a scalable target from an Amazon EC2 Spot fleet with a minimum target capacity of 1 and a maximum
|
2367
|
-
# # of 10.
|
2368
|
-
#
|
2369
|
-
# resp = client.register_scalable_target({
|
2370
|
-
# max_capacity: 10,
|
2371
|
-
# min_capacity: 1,
|
2372
|
-
# resource_id: "spot-fleet-request/sfr-45e69d8a-be48-4539-bbf3-3464e99c50c3",
|
2373
|
-
# scalable_dimension: "ec2:spot-fleet-request:TargetCapacity",
|
2374
|
-
# service_namespace: "ec2",
|
2375
|
-
# })
|
2376
|
-
#
|
2377
|
-
# resp.to_h outputs the following:
|
2378
|
-
# {
|
2379
|
-
# }
|
2380
|
-
#
|
2381
2371
|
# @example Request syntax with placeholder values
|
2382
2372
|
#
|
2383
2373
|
# resp = client.register_scalable_target({
|
2384
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda
|
2374
|
+
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra
|
2385
2375
|
# resource_id: "ResourceIdMaxLen1600", # required
|
2386
|
-
# scalable_dimension: "ecs:service:DesiredCount", # required, accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits, rds:cluster:ReadReplicaCount, sagemaker:variant:DesiredInstanceCount, custom-resource:ResourceType:Property, comprehend:document-classifier-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency
|
2376
|
+
# scalable_dimension: "ecs:service:DesiredCount", # required, accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits, rds:cluster:ReadReplicaCount, sagemaker:variant:DesiredInstanceCount, custom-resource:ResourceType:Property, comprehend:document-classifier-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency, cassandra:table:ReadCapacityUnits, cassandra:table:WriteCapacityUnits
|
2387
2377
|
# min_capacity: 1,
|
2388
2378
|
# max_capacity: 1,
|
2389
2379
|
# role_arn: "ResourceIdMaxLen1600",
|
@@ -2416,7 +2406,7 @@ module Aws::ApplicationAutoScaling
|
|
2416
2406
|
params: params,
|
2417
2407
|
config: config)
|
2418
2408
|
context[:gem_name] = 'aws-sdk-applicationautoscaling'
|
2419
|
-
context[:gem_version] = '1.
|
2409
|
+
context[:gem_version] = '1.40.0'
|
2420
2410
|
Seahorse::Client::Request.new(handlers, context)
|
2421
2411
|
end
|
2422
2412
|
|