aws-sdk-applicationautoscaling 1.35.0 → 1.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +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
@@ -6,6 +6,35 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::ApplicationAutoScaling
|
9
|
+
|
10
|
+
# When ApplicationAutoScaling returns an error response, the Ruby SDK constructs and raises an error.
|
11
|
+
# These errors all extend Aws::ApplicationAutoScaling::Errors::ServiceError < {Aws::Errors::ServiceError}
|
12
|
+
#
|
13
|
+
# You can rescue all ApplicationAutoScaling errors using ServiceError:
|
14
|
+
#
|
15
|
+
# begin
|
16
|
+
# # do stuff
|
17
|
+
# rescue Aws::ApplicationAutoScaling::Errors::ServiceError
|
18
|
+
# # rescues all ApplicationAutoScaling API errors
|
19
|
+
# end
|
20
|
+
#
|
21
|
+
#
|
22
|
+
# ## Request Context
|
23
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
24
|
+
# information about the request that generated the error.
|
25
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
26
|
+
#
|
27
|
+
# ## Error Classes
|
28
|
+
# * {ConcurrentUpdateException}
|
29
|
+
# * {FailedResourceAccessException}
|
30
|
+
# * {InternalServiceException}
|
31
|
+
# * {InvalidNextTokenException}
|
32
|
+
# * {LimitExceededException}
|
33
|
+
# * {ObjectNotFoundException}
|
34
|
+
# * {ValidationException}
|
35
|
+
#
|
36
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
37
|
+
# if they are not defined above.
|
9
38
|
module Errors
|
10
39
|
|
11
40
|
extend Aws::Errors::DynamicErrors
|
@@ -23,7 +52,6 @@ module Aws::ApplicationAutoScaling
|
|
23
52
|
def message
|
24
53
|
@message || @data[:message]
|
25
54
|
end
|
26
|
-
|
27
55
|
end
|
28
56
|
|
29
57
|
class FailedResourceAccessException < ServiceError
|
@@ -39,7 +67,6 @@ module Aws::ApplicationAutoScaling
|
|
39
67
|
def message
|
40
68
|
@message || @data[:message]
|
41
69
|
end
|
42
|
-
|
43
70
|
end
|
44
71
|
|
45
72
|
class InternalServiceException < ServiceError
|
@@ -55,7 +82,6 @@ module Aws::ApplicationAutoScaling
|
|
55
82
|
def message
|
56
83
|
@message || @data[:message]
|
57
84
|
end
|
58
|
-
|
59
85
|
end
|
60
86
|
|
61
87
|
class InvalidNextTokenException < ServiceError
|
@@ -71,7 +97,6 @@ module Aws::ApplicationAutoScaling
|
|
71
97
|
def message
|
72
98
|
@message || @data[:message]
|
73
99
|
end
|
74
|
-
|
75
100
|
end
|
76
101
|
|
77
102
|
class LimitExceededException < ServiceError
|
@@ -87,7 +112,6 @@ module Aws::ApplicationAutoScaling
|
|
87
112
|
def message
|
88
113
|
@message || @data[:message]
|
89
114
|
end
|
90
|
-
|
91
115
|
end
|
92
116
|
|
93
117
|
class ObjectNotFoundException < ServiceError
|
@@ -103,7 +127,6 @@ module Aws::ApplicationAutoScaling
|
|
103
127
|
def message
|
104
128
|
@message || @data[:message]
|
105
129
|
end
|
106
|
-
|
107
130
|
end
|
108
131
|
|
109
132
|
class ValidationException < ServiceError
|
@@ -119,7 +142,6 @@ module Aws::ApplicationAutoScaling
|
|
119
142
|
def message
|
120
143
|
@message || @data[:message]
|
121
144
|
end
|
122
|
-
|
123
145
|
end
|
124
146
|
|
125
147
|
end
|
@@ -43,26 +43,32 @@ module Aws::ApplicationAutoScaling
|
|
43
43
|
# Represents a CloudWatch metric of your choosing for a target tracking
|
44
44
|
# scaling policy to use with Application Auto Scaling.
|
45
45
|
#
|
46
|
+
# For information about the available metrics for a service, see [AWS
|
47
|
+
# Services That Publish CloudWatch Metrics][1] in the *Amazon CloudWatch
|
48
|
+
# User Guide*.
|
49
|
+
#
|
46
50
|
# To create your customized metric specification:
|
47
51
|
#
|
48
52
|
# * Add values for each required parameter from CloudWatch. You can use
|
49
53
|
# an existing metric, or a new metric that you create. To use your own
|
50
54
|
# metric, you must first publish the metric to CloudWatch. For more
|
51
|
-
# information, see [Publish Custom Metrics][
|
55
|
+
# information, see [Publish Custom Metrics][2] in the *Amazon
|
52
56
|
# CloudWatch User Guide*.
|
53
57
|
#
|
54
58
|
# * Choose a metric that changes proportionally with capacity. The value
|
55
59
|
# of the metric should increase or decrease in inverse proportion to
|
56
60
|
# the number of capacity units. That is, the value of the metric
|
57
|
-
# should decrease when capacity increases
|
61
|
+
# should decrease when capacity increases, and increase when capacity
|
62
|
+
# decreases.
|
58
63
|
#
|
59
64
|
# For more information about CloudWatch, see [Amazon CloudWatch
|
60
|
-
# Concepts][
|
65
|
+
# Concepts][3].
|
61
66
|
#
|
62
67
|
#
|
63
68
|
#
|
64
|
-
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/
|
65
|
-
# [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/
|
69
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html
|
70
|
+
# [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html
|
71
|
+
# [3]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html
|
66
72
|
#
|
67
73
|
# @note When making an API call, you may pass CustomizedMetricSpecification
|
68
74
|
# data as a hash:
|
@@ -119,9 +125,9 @@ module Aws::ApplicationAutoScaling
|
|
119
125
|
#
|
120
126
|
# {
|
121
127
|
# policy_name: "ResourceIdMaxLen1600", # required
|
122
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda
|
128
|
+
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra
|
123
129
|
# resource_id: "ResourceIdMaxLen1600", # required
|
124
|
-
# 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
|
130
|
+
# 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
|
125
131
|
# }
|
126
132
|
#
|
127
133
|
# @!attribute [rw] policy_name
|
@@ -129,14 +135,9 @@ module Aws::ApplicationAutoScaling
|
|
129
135
|
# @return [String]
|
130
136
|
#
|
131
137
|
# @!attribute [rw] service_namespace
|
132
|
-
# The namespace of the AWS service that provides the resource
|
133
|
-
#
|
134
|
-
#
|
135
|
-
# the *Amazon Web Services General Reference*.
|
136
|
-
#
|
137
|
-
#
|
138
|
-
#
|
139
|
-
# [1]: http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces
|
138
|
+
# The namespace of the AWS service that provides the resource. For a
|
139
|
+
# resource provided by your own application or service, use
|
140
|
+
# `custom-resource` instead.
|
140
141
|
# @return [String]
|
141
142
|
#
|
142
143
|
# @!attribute [rw] resource_id
|
@@ -188,6 +189,10 @@ module Aws::ApplicationAutoScaling
|
|
188
189
|
# version or alias name suffix that is not `$LATEST`. Example:
|
189
190
|
# `function:my-function:prod` or `function:my-function:1`.
|
190
191
|
#
|
192
|
+
# * Amazon Keyspaces table - The resource type is `table` and the
|
193
|
+
# unique identifier is the table name. Example:
|
194
|
+
# `keyspace/mykeyspace/table/mytable`.
|
195
|
+
#
|
191
196
|
#
|
192
197
|
#
|
193
198
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -237,6 +242,12 @@ module Aws::ApplicationAutoScaling
|
|
237
242
|
#
|
238
243
|
# * `lambda:function:ProvisionedConcurrency` - The provisioned
|
239
244
|
# concurrency for a Lambda function.
|
245
|
+
#
|
246
|
+
# * `cassandra:table:ReadCapacityUnits` - The provisioned read
|
247
|
+
# capacity for an Amazon Keyspaces table.
|
248
|
+
#
|
249
|
+
# * `cassandra:table:WriteCapacityUnits` - The provisioned write
|
250
|
+
# capacity for an Amazon Keyspaces table.
|
240
251
|
# @return [String]
|
241
252
|
#
|
242
253
|
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScalingPolicyRequest AWS API Documentation
|
@@ -257,21 +268,16 @@ module Aws::ApplicationAutoScaling
|
|
257
268
|
# data as a hash:
|
258
269
|
#
|
259
270
|
# {
|
260
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda
|
271
|
+
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra
|
261
272
|
# scheduled_action_name: "ResourceIdMaxLen1600", # required
|
262
273
|
# resource_id: "ResourceIdMaxLen1600", # required
|
263
|
-
# 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
|
274
|
+
# 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
|
264
275
|
# }
|
265
276
|
#
|
266
277
|
# @!attribute [rw] service_namespace
|
267
|
-
# The namespace of the AWS service that provides the resource
|
268
|
-
#
|
269
|
-
#
|
270
|
-
# the *Amazon Web Services General Reference*.
|
271
|
-
#
|
272
|
-
#
|
273
|
-
#
|
274
|
-
# [1]: http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces
|
278
|
+
# The namespace of the AWS service that provides the resource. For a
|
279
|
+
# resource provided by your own application or service, use
|
280
|
+
# `custom-resource` instead.
|
275
281
|
# @return [String]
|
276
282
|
#
|
277
283
|
# @!attribute [rw] scheduled_action_name
|
@@ -327,6 +333,10 @@ module Aws::ApplicationAutoScaling
|
|
327
333
|
# version or alias name suffix that is not `$LATEST`. Example:
|
328
334
|
# `function:my-function:prod` or `function:my-function:1`.
|
329
335
|
#
|
336
|
+
# * Amazon Keyspaces table - The resource type is `table` and the
|
337
|
+
# unique identifier is the table name. Example:
|
338
|
+
# `keyspace/mykeyspace/table/mytable`.
|
339
|
+
#
|
330
340
|
#
|
331
341
|
#
|
332
342
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -376,6 +386,12 @@ module Aws::ApplicationAutoScaling
|
|
376
386
|
#
|
377
387
|
# * `lambda:function:ProvisionedConcurrency` - The provisioned
|
378
388
|
# concurrency for a Lambda function.
|
389
|
+
#
|
390
|
+
# * `cassandra:table:ReadCapacityUnits` - The provisioned read
|
391
|
+
# capacity for an Amazon Keyspaces table.
|
392
|
+
#
|
393
|
+
# * `cassandra:table:WriteCapacityUnits` - The provisioned write
|
394
|
+
# capacity for an Amazon Keyspaces table.
|
379
395
|
# @return [String]
|
380
396
|
#
|
381
397
|
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScheduledActionRequest AWS API Documentation
|
@@ -396,20 +412,15 @@ module Aws::ApplicationAutoScaling
|
|
396
412
|
# data as a hash:
|
397
413
|
#
|
398
414
|
# {
|
399
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda
|
415
|
+
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra
|
400
416
|
# resource_id: "ResourceIdMaxLen1600", # required
|
401
|
-
# 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
|
417
|
+
# 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
|
402
418
|
# }
|
403
419
|
#
|
404
420
|
# @!attribute [rw] service_namespace
|
405
|
-
# The namespace of the AWS service that provides the resource
|
406
|
-
#
|
407
|
-
#
|
408
|
-
# the *Amazon Web Services General Reference*.
|
409
|
-
#
|
410
|
-
#
|
411
|
-
#
|
412
|
-
# [1]: http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces
|
421
|
+
# The namespace of the AWS service that provides the resource. For a
|
422
|
+
# resource provided by your own application or service, use
|
423
|
+
# `custom-resource` instead.
|
413
424
|
# @return [String]
|
414
425
|
#
|
415
426
|
# @!attribute [rw] resource_id
|
@@ -461,6 +472,10 @@ module Aws::ApplicationAutoScaling
|
|
461
472
|
# version or alias name suffix that is not `$LATEST`. Example:
|
462
473
|
# `function:my-function:prod` or `function:my-function:1`.
|
463
474
|
#
|
475
|
+
# * Amazon Keyspaces table - The resource type is `table` and the
|
476
|
+
# unique identifier is the table name. Example:
|
477
|
+
# `keyspace/mykeyspace/table/mytable`.
|
478
|
+
#
|
464
479
|
#
|
465
480
|
#
|
466
481
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -511,6 +526,12 @@ module Aws::ApplicationAutoScaling
|
|
511
526
|
#
|
512
527
|
# * `lambda:function:ProvisionedConcurrency` - The provisioned
|
513
528
|
# concurrency for a Lambda function.
|
529
|
+
#
|
530
|
+
# * `cassandra:table:ReadCapacityUnits` - The provisioned read
|
531
|
+
# capacity for an Amazon Keyspaces table.
|
532
|
+
#
|
533
|
+
# * `cassandra:table:WriteCapacityUnits` - The provisioned write
|
534
|
+
# capacity for an Amazon Keyspaces table.
|
514
535
|
# @return [String]
|
515
536
|
#
|
516
537
|
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeregisterScalableTargetRequest AWS API Documentation
|
@@ -530,22 +551,17 @@ module Aws::ApplicationAutoScaling
|
|
530
551
|
# data as a hash:
|
531
552
|
#
|
532
553
|
# {
|
533
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda
|
554
|
+
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra
|
534
555
|
# resource_ids: ["ResourceIdMaxLen1600"],
|
535
|
-
# 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
|
556
|
+
# 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
|
536
557
|
# max_results: 1,
|
537
558
|
# next_token: "XmlString",
|
538
559
|
# }
|
539
560
|
#
|
540
561
|
# @!attribute [rw] service_namespace
|
541
|
-
# The namespace of the AWS service that provides the resource
|
542
|
-
#
|
543
|
-
#
|
544
|
-
# the *Amazon Web Services General Reference*.
|
545
|
-
#
|
546
|
-
#
|
547
|
-
#
|
548
|
-
# [1]: http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces
|
562
|
+
# The namespace of the AWS service that provides the resource. For a
|
563
|
+
# resource provided by your own application or service, use
|
564
|
+
# `custom-resource` instead.
|
549
565
|
# @return [String]
|
550
566
|
#
|
551
567
|
# @!attribute [rw] resource_ids
|
@@ -599,6 +615,10 @@ module Aws::ApplicationAutoScaling
|
|
599
615
|
# version or alias name suffix that is not `$LATEST`. Example:
|
600
616
|
# `function:my-function:prod` or `function:my-function:1`.
|
601
617
|
#
|
618
|
+
# * Amazon Keyspaces table - The resource type is `table` and the
|
619
|
+
# unique identifier is the table name. Example:
|
620
|
+
# `keyspace/mykeyspace/table/mytable`.
|
621
|
+
#
|
602
622
|
#
|
603
623
|
#
|
604
624
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -650,6 +670,12 @@ module Aws::ApplicationAutoScaling
|
|
650
670
|
#
|
651
671
|
# * `lambda:function:ProvisionedConcurrency` - The provisioned
|
652
672
|
# concurrency for a Lambda function.
|
673
|
+
#
|
674
|
+
# * `cassandra:table:ReadCapacityUnits` - The provisioned read
|
675
|
+
# capacity for an Amazon Keyspaces table.
|
676
|
+
#
|
677
|
+
# * `cassandra:table:WriteCapacityUnits` - The provisioned write
|
678
|
+
# capacity for an Amazon Keyspaces table.
|
653
679
|
# @return [String]
|
654
680
|
#
|
655
681
|
# @!attribute [rw] max_results
|
@@ -699,22 +725,17 @@ module Aws::ApplicationAutoScaling
|
|
699
725
|
# data as a hash:
|
700
726
|
#
|
701
727
|
# {
|
702
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda
|
728
|
+
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra
|
703
729
|
# resource_id: "ResourceIdMaxLen1600",
|
704
|
-
# 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
|
730
|
+
# 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
|
705
731
|
# max_results: 1,
|
706
732
|
# next_token: "XmlString",
|
707
733
|
# }
|
708
734
|
#
|
709
735
|
# @!attribute [rw] service_namespace
|
710
|
-
# The namespace of the AWS service that provides the resource
|
711
|
-
#
|
712
|
-
#
|
713
|
-
# the *Amazon Web Services General Reference*.
|
714
|
-
#
|
715
|
-
#
|
716
|
-
#
|
717
|
-
# [1]: http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces
|
736
|
+
# The namespace of the AWS service that provides the resource. For a
|
737
|
+
# resource provided by your own application or service, use
|
738
|
+
# `custom-resource` instead.
|
718
739
|
# @return [String]
|
719
740
|
#
|
720
741
|
# @!attribute [rw] resource_id
|
@@ -768,6 +789,10 @@ module Aws::ApplicationAutoScaling
|
|
768
789
|
# version or alias name suffix that is not `$LATEST`. Example:
|
769
790
|
# `function:my-function:prod` or `function:my-function:1`.
|
770
791
|
#
|
792
|
+
# * Amazon Keyspaces table - The resource type is `table` and the
|
793
|
+
# unique identifier is the table name. Example:
|
794
|
+
# `keyspace/mykeyspace/table/mytable`.
|
795
|
+
#
|
771
796
|
#
|
772
797
|
#
|
773
798
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -818,6 +843,12 @@ module Aws::ApplicationAutoScaling
|
|
818
843
|
#
|
819
844
|
# * `lambda:function:ProvisionedConcurrency` - The provisioned
|
820
845
|
# concurrency for a Lambda function.
|
846
|
+
#
|
847
|
+
# * `cassandra:table:ReadCapacityUnits` - The provisioned read
|
848
|
+
# capacity for an Amazon Keyspaces table.
|
849
|
+
#
|
850
|
+
# * `cassandra:table:WriteCapacityUnits` - The provisioned write
|
851
|
+
# capacity for an Amazon Keyspaces table.
|
821
852
|
# @return [String]
|
822
853
|
#
|
823
854
|
# @!attribute [rw] max_results
|
@@ -868,9 +899,9 @@ module Aws::ApplicationAutoScaling
|
|
868
899
|
#
|
869
900
|
# {
|
870
901
|
# policy_names: ["ResourceIdMaxLen1600"],
|
871
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda
|
902
|
+
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra
|
872
903
|
# resource_id: "ResourceIdMaxLen1600",
|
873
|
-
# 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
|
904
|
+
# 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
|
874
905
|
# max_results: 1,
|
875
906
|
# next_token: "XmlString",
|
876
907
|
# }
|
@@ -880,14 +911,9 @@ module Aws::ApplicationAutoScaling
|
|
880
911
|
# @return [Array<String>]
|
881
912
|
#
|
882
913
|
# @!attribute [rw] service_namespace
|
883
|
-
# The namespace of the AWS service that provides the resource
|
884
|
-
#
|
885
|
-
#
|
886
|
-
# the *Amazon Web Services General Reference*.
|
887
|
-
#
|
888
|
-
#
|
889
|
-
#
|
890
|
-
# [1]: http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces
|
914
|
+
# The namespace of the AWS service that provides the resource. For a
|
915
|
+
# resource provided by your own application or service, use
|
916
|
+
# `custom-resource` instead.
|
891
917
|
# @return [String]
|
892
918
|
#
|
893
919
|
# @!attribute [rw] resource_id
|
@@ -941,6 +967,10 @@ module Aws::ApplicationAutoScaling
|
|
941
967
|
# version or alias name suffix that is not `$LATEST`. Example:
|
942
968
|
# `function:my-function:prod` or `function:my-function:1`.
|
943
969
|
#
|
970
|
+
# * Amazon Keyspaces table - The resource type is `table` and the
|
971
|
+
# unique identifier is the table name. Example:
|
972
|
+
# `keyspace/mykeyspace/table/mytable`.
|
973
|
+
#
|
944
974
|
#
|
945
975
|
#
|
946
976
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -991,6 +1021,12 @@ module Aws::ApplicationAutoScaling
|
|
991
1021
|
#
|
992
1022
|
# * `lambda:function:ProvisionedConcurrency` - The provisioned
|
993
1023
|
# concurrency for a Lambda function.
|
1024
|
+
#
|
1025
|
+
# * `cassandra:table:ReadCapacityUnits` - The provisioned read
|
1026
|
+
# capacity for an Amazon Keyspaces table.
|
1027
|
+
#
|
1028
|
+
# * `cassandra:table:WriteCapacityUnits` - The provisioned write
|
1029
|
+
# capacity for an Amazon Keyspaces table.
|
994
1030
|
# @return [String]
|
995
1031
|
#
|
996
1032
|
# @!attribute [rw] max_results
|
@@ -1042,9 +1078,9 @@ module Aws::ApplicationAutoScaling
|
|
1042
1078
|
#
|
1043
1079
|
# {
|
1044
1080
|
# scheduled_action_names: ["ResourceIdMaxLen1600"],
|
1045
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda
|
1081
|
+
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra
|
1046
1082
|
# resource_id: "ResourceIdMaxLen1600",
|
1047
|
-
# 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
|
1083
|
+
# 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
|
1048
1084
|
# max_results: 1,
|
1049
1085
|
# next_token: "XmlString",
|
1050
1086
|
# }
|
@@ -1054,14 +1090,9 @@ module Aws::ApplicationAutoScaling
|
|
1054
1090
|
# @return [Array<String>]
|
1055
1091
|
#
|
1056
1092
|
# @!attribute [rw] service_namespace
|
1057
|
-
# The namespace of the AWS service that provides the resource
|
1058
|
-
#
|
1059
|
-
#
|
1060
|
-
# the *Amazon Web Services General Reference*.
|
1061
|
-
#
|
1062
|
-
#
|
1063
|
-
#
|
1064
|
-
# [1]: http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces
|
1093
|
+
# The namespace of the AWS service that provides the resource. For a
|
1094
|
+
# resource provided by your own application or service, use
|
1095
|
+
# `custom-resource` instead.
|
1065
1096
|
# @return [String]
|
1066
1097
|
#
|
1067
1098
|
# @!attribute [rw] resource_id
|
@@ -1115,6 +1146,10 @@ module Aws::ApplicationAutoScaling
|
|
1115
1146
|
# version or alias name suffix that is not `$LATEST`. Example:
|
1116
1147
|
# `function:my-function:prod` or `function:my-function:1`.
|
1117
1148
|
#
|
1149
|
+
# * Amazon Keyspaces table - The resource type is `table` and the
|
1150
|
+
# unique identifier is the table name. Example:
|
1151
|
+
# `keyspace/mykeyspace/table/mytable`.
|
1152
|
+
#
|
1118
1153
|
#
|
1119
1154
|
#
|
1120
1155
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -1165,6 +1200,12 @@ module Aws::ApplicationAutoScaling
|
|
1165
1200
|
#
|
1166
1201
|
# * `lambda:function:ProvisionedConcurrency` - The provisioned
|
1167
1202
|
# concurrency for a Lambda function.
|
1203
|
+
#
|
1204
|
+
# * `cassandra:table:ReadCapacityUnits` - The provisioned read
|
1205
|
+
# capacity for an Amazon Keyspaces table.
|
1206
|
+
#
|
1207
|
+
# * `cassandra:table:WriteCapacityUnits` - The provisioned write
|
1208
|
+
# capacity for an Amazon Keyspaces table.
|
1168
1209
|
# @return [String]
|
1169
1210
|
#
|
1170
1211
|
# @!attribute [rw] max_results
|
@@ -1318,11 +1359,21 @@ module Aws::ApplicationAutoScaling
|
|
1318
1359
|
# Represents a predefined metric for a target tracking scaling policy to
|
1319
1360
|
# use with Application Auto Scaling.
|
1320
1361
|
#
|
1362
|
+
# Only the AWS services that you're using send metrics to Amazon
|
1363
|
+
# CloudWatch. To determine whether a desired metric already exists by
|
1364
|
+
# looking up its namespace and dimension using the CloudWatch metrics
|
1365
|
+
# dashboard in the console, follow the procedure in [Building Dashboards
|
1366
|
+
# with CloudWatch][1] in the *Application Auto Scaling User Guide*.
|
1367
|
+
#
|
1368
|
+
#
|
1369
|
+
#
|
1370
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/monitoring-cloudwatch.html
|
1371
|
+
#
|
1321
1372
|
# @note When making an API call, you may pass PredefinedMetricSpecification
|
1322
1373
|
# data as a hash:
|
1323
1374
|
#
|
1324
1375
|
# {
|
1325
|
-
# predefined_metric_type: "DynamoDBReadCapacityUtilization", # required, accepts DynamoDBReadCapacityUtilization, DynamoDBWriteCapacityUtilization, ALBRequestCountPerTarget, RDSReaderAverageCPUUtilization, RDSReaderAverageDatabaseConnections, EC2SpotFleetRequestAverageCPUUtilization, EC2SpotFleetRequestAverageNetworkIn, EC2SpotFleetRequestAverageNetworkOut, SageMakerVariantInvocationsPerInstance, ECSServiceAverageCPUUtilization, ECSServiceAverageMemoryUtilization, AppStreamAverageCapacityUtilization, ComprehendInferenceUtilization, LambdaProvisionedConcurrencyUtilization
|
1376
|
+
# predefined_metric_type: "DynamoDBReadCapacityUtilization", # required, accepts DynamoDBReadCapacityUtilization, DynamoDBWriteCapacityUtilization, ALBRequestCountPerTarget, RDSReaderAverageCPUUtilization, RDSReaderAverageDatabaseConnections, EC2SpotFleetRequestAverageCPUUtilization, EC2SpotFleetRequestAverageNetworkIn, EC2SpotFleetRequestAverageNetworkOut, SageMakerVariantInvocationsPerInstance, ECSServiceAverageCPUUtilization, ECSServiceAverageMemoryUtilization, AppStreamAverageCapacityUtilization, ComprehendInferenceUtilization, LambdaProvisionedConcurrencyUtilization, CassandraReadCapacityUtilization, CassandraWriteCapacityUtilization
|
1326
1377
|
# resource_label: "ResourceLabel",
|
1327
1378
|
# }
|
1328
1379
|
#
|
@@ -1361,9 +1412,9 @@ module Aws::ApplicationAutoScaling
|
|
1361
1412
|
#
|
1362
1413
|
# {
|
1363
1414
|
# policy_name: "PolicyName", # required
|
1364
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda
|
1415
|
+
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra
|
1365
1416
|
# resource_id: "ResourceIdMaxLen1600", # required
|
1366
|
-
# 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
|
1417
|
+
# 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
|
1367
1418
|
# policy_type: "StepScaling", # accepts StepScaling, TargetTrackingScaling
|
1368
1419
|
# step_scaling_policy_configuration: {
|
1369
1420
|
# adjustment_type: "ChangeInCapacity", # accepts ChangeInCapacity, PercentChangeInCapacity, ExactCapacity
|
@@ -1381,7 +1432,7 @@ module Aws::ApplicationAutoScaling
|
|
1381
1432
|
# target_tracking_scaling_policy_configuration: {
|
1382
1433
|
# target_value: 1.0, # required
|
1383
1434
|
# predefined_metric_specification: {
|
1384
|
-
# predefined_metric_type: "DynamoDBReadCapacityUtilization", # required, accepts DynamoDBReadCapacityUtilization, DynamoDBWriteCapacityUtilization, ALBRequestCountPerTarget, RDSReaderAverageCPUUtilization, RDSReaderAverageDatabaseConnections, EC2SpotFleetRequestAverageCPUUtilization, EC2SpotFleetRequestAverageNetworkIn, EC2SpotFleetRequestAverageNetworkOut, SageMakerVariantInvocationsPerInstance, ECSServiceAverageCPUUtilization, ECSServiceAverageMemoryUtilization, AppStreamAverageCapacityUtilization, ComprehendInferenceUtilization, LambdaProvisionedConcurrencyUtilization
|
1435
|
+
# predefined_metric_type: "DynamoDBReadCapacityUtilization", # required, accepts DynamoDBReadCapacityUtilization, DynamoDBWriteCapacityUtilization, ALBRequestCountPerTarget, RDSReaderAverageCPUUtilization, RDSReaderAverageDatabaseConnections, EC2SpotFleetRequestAverageCPUUtilization, EC2SpotFleetRequestAverageNetworkIn, EC2SpotFleetRequestAverageNetworkOut, SageMakerVariantInvocationsPerInstance, ECSServiceAverageCPUUtilization, ECSServiceAverageMemoryUtilization, AppStreamAverageCapacityUtilization, ComprehendInferenceUtilization, LambdaProvisionedConcurrencyUtilization, CassandraReadCapacityUtilization, CassandraWriteCapacityUtilization
|
1385
1436
|
# resource_label: "ResourceLabel",
|
1386
1437
|
# },
|
1387
1438
|
# customized_metric_specification: {
|
@@ -1407,14 +1458,9 @@ module Aws::ApplicationAutoScaling
|
|
1407
1458
|
# @return [String]
|
1408
1459
|
#
|
1409
1460
|
# @!attribute [rw] service_namespace
|
1410
|
-
# The namespace of the AWS service that provides the resource
|
1411
|
-
#
|
1412
|
-
#
|
1413
|
-
# the *Amazon Web Services General Reference*.
|
1414
|
-
#
|
1415
|
-
#
|
1416
|
-
#
|
1417
|
-
# [1]: http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces
|
1461
|
+
# The namespace of the AWS service that provides the resource. For a
|
1462
|
+
# resource provided by your own application or service, use
|
1463
|
+
# `custom-resource` instead.
|
1418
1464
|
# @return [String]
|
1419
1465
|
#
|
1420
1466
|
# @!attribute [rw] resource_id
|
@@ -1466,6 +1512,10 @@ module Aws::ApplicationAutoScaling
|
|
1466
1512
|
# version or alias name suffix that is not `$LATEST`. Example:
|
1467
1513
|
# `function:my-function:prod` or `function:my-function:1`.
|
1468
1514
|
#
|
1515
|
+
# * Amazon Keyspaces table - The resource type is `table` and the
|
1516
|
+
# unique identifier is the table name. Example:
|
1517
|
+
# `keyspace/mykeyspace/table/mytable`.
|
1518
|
+
#
|
1469
1519
|
#
|
1470
1520
|
#
|
1471
1521
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -1515,6 +1565,12 @@ module Aws::ApplicationAutoScaling
|
|
1515
1565
|
#
|
1516
1566
|
# * `lambda:function:ProvisionedConcurrency` - The provisioned
|
1517
1567
|
# concurrency for a Lambda function.
|
1568
|
+
#
|
1569
|
+
# * `cassandra:table:ReadCapacityUnits` - The provisioned read
|
1570
|
+
# capacity for an Amazon Keyspaces table.
|
1571
|
+
#
|
1572
|
+
# * `cassandra:table:WriteCapacityUnits` - The provisioned write
|
1573
|
+
# capacity for an Amazon Keyspaces table.
|
1518
1574
|
# @return [String]
|
1519
1575
|
#
|
1520
1576
|
# @!attribute [rw] policy_type
|
@@ -1525,8 +1581,8 @@ module Aws::ApplicationAutoScaling
|
|
1525
1581
|
#
|
1526
1582
|
# `TargetTrackingScaling`—Not supported for Amazon EMR
|
1527
1583
|
#
|
1528
|
-
# `StepScaling`—Not supported for DynamoDB, Amazon Comprehend,
|
1529
|
-
#
|
1584
|
+
# `StepScaling`—Not supported for DynamoDB, Amazon Comprehend, Lambda,
|
1585
|
+
# or Amazon Keyspaces (for Apache Cassandra).
|
1530
1586
|
#
|
1531
1587
|
# For more information, see [Target Tracking Scaling Policies][1] and
|
1532
1588
|
# [Step Scaling Policies][2] in the *Application Auto Scaling User
|
@@ -1587,11 +1643,11 @@ module Aws::ApplicationAutoScaling
|
|
1587
1643
|
# data as a hash:
|
1588
1644
|
#
|
1589
1645
|
# {
|
1590
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda
|
1646
|
+
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra
|
1591
1647
|
# schedule: "ResourceIdMaxLen1600",
|
1592
1648
|
# scheduled_action_name: "ScheduledActionName", # required
|
1593
1649
|
# resource_id: "ResourceIdMaxLen1600", # required
|
1594
|
-
# 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
|
1650
|
+
# 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
|
1595
1651
|
# start_time: Time.now,
|
1596
1652
|
# end_time: Time.now,
|
1597
1653
|
# scalable_target_action: {
|
@@ -1601,14 +1657,9 @@ module Aws::ApplicationAutoScaling
|
|
1601
1657
|
# }
|
1602
1658
|
#
|
1603
1659
|
# @!attribute [rw] service_namespace
|
1604
|
-
# The namespace of the AWS service that provides the resource
|
1605
|
-
#
|
1606
|
-
#
|
1607
|
-
# the *Amazon Web Services General Reference*.
|
1608
|
-
#
|
1609
|
-
#
|
1610
|
-
#
|
1611
|
-
# [1]: http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces
|
1660
|
+
# The namespace of the AWS service that provides the resource. For a
|
1661
|
+
# resource provided by your own application or service, use
|
1662
|
+
# `custom-resource` instead.
|
1612
1663
|
# @return [String]
|
1613
1664
|
#
|
1614
1665
|
# @!attribute [rw] schedule
|
@@ -1620,7 +1671,7 @@ module Aws::ApplicationAutoScaling
|
|
1620
1671
|
#
|
1621
1672
|
# * Cron expressions - "`cron(fields)`"
|
1622
1673
|
#
|
1623
|
-
# At expressions are useful for one-time schedules. Specify the time
|
1674
|
+
# At expressions are useful for one-time schedules. Specify the time
|
1624
1675
|
# in UTC.
|
1625
1676
|
#
|
1626
1677
|
# For rate expressions, *value* is a positive integer and *unit* is
|
@@ -1629,13 +1680,18 @@ module Aws::ApplicationAutoScaling
|
|
1629
1680
|
# For more information about cron expressions, see [Cron
|
1630
1681
|
# Expressions][1] in the *Amazon CloudWatch Events User Guide*.
|
1631
1682
|
#
|
1683
|
+
# For examples of using these expressions, see [Scheduled Scaling][2]
|
1684
|
+
# in the *Application Auto Scaling User Guide*.
|
1685
|
+
#
|
1632
1686
|
#
|
1633
1687
|
#
|
1634
1688
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
|
1689
|
+
# [2]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scheduled-scaling.html
|
1635
1690
|
# @return [String]
|
1636
1691
|
#
|
1637
1692
|
# @!attribute [rw] scheduled_action_name
|
1638
|
-
# The name of the scheduled action.
|
1693
|
+
# The name of the scheduled action. This name must be unique among all
|
1694
|
+
# other scheduled actions on the specified scalable target.
|
1639
1695
|
# @return [String]
|
1640
1696
|
#
|
1641
1697
|
# @!attribute [rw] resource_id
|
@@ -1687,6 +1743,10 @@ module Aws::ApplicationAutoScaling
|
|
1687
1743
|
# version or alias name suffix that is not `$LATEST`. Example:
|
1688
1744
|
# `function:my-function:prod` or `function:my-function:1`.
|
1689
1745
|
#
|
1746
|
+
# * Amazon Keyspaces table - The resource type is `table` and the
|
1747
|
+
# unique identifier is the table name. Example:
|
1748
|
+
# `keyspace/mykeyspace/table/mytable`.
|
1749
|
+
#
|
1690
1750
|
#
|
1691
1751
|
#
|
1692
1752
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -1736,21 +1796,27 @@ module Aws::ApplicationAutoScaling
|
|
1736
1796
|
#
|
1737
1797
|
# * `lambda:function:ProvisionedConcurrency` - The provisioned
|
1738
1798
|
# concurrency for a Lambda function.
|
1799
|
+
#
|
1800
|
+
# * `cassandra:table:ReadCapacityUnits` - The provisioned read
|
1801
|
+
# capacity for an Amazon Keyspaces table.
|
1802
|
+
#
|
1803
|
+
# * `cassandra:table:WriteCapacityUnits` - The provisioned write
|
1804
|
+
# capacity for an Amazon Keyspaces table.
|
1739
1805
|
# @return [String]
|
1740
1806
|
#
|
1741
1807
|
# @!attribute [rw] start_time
|
1742
|
-
# The date and time for
|
1808
|
+
# The date and time for this scheduled action to start.
|
1743
1809
|
# @return [Time]
|
1744
1810
|
#
|
1745
1811
|
# @!attribute [rw] end_time
|
1746
|
-
# The date and time for the
|
1812
|
+
# The date and time for the recurring schedule to end.
|
1747
1813
|
# @return [Time]
|
1748
1814
|
#
|
1749
1815
|
# @!attribute [rw] scalable_target_action
|
1750
1816
|
# The new minimum and maximum capacity. You can set both values or
|
1751
|
-
# just one.
|
1752
|
-
#
|
1753
|
-
#
|
1817
|
+
# just one. At the scheduled time, if the current capacity is below
|
1818
|
+
# the minimum capacity, Application Auto Scaling scales out to the
|
1819
|
+
# minimum capacity. If the current capacity is above the maximum
|
1754
1820
|
# capacity, Application Auto Scaling scales in to the maximum
|
1755
1821
|
# capacity.
|
1756
1822
|
# @return [Types::ScalableTargetAction]
|
@@ -1777,9 +1843,9 @@ module Aws::ApplicationAutoScaling
|
|
1777
1843
|
# data as a hash:
|
1778
1844
|
#
|
1779
1845
|
# {
|
1780
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda
|
1846
|
+
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra
|
1781
1847
|
# resource_id: "ResourceIdMaxLen1600", # required
|
1782
|
-
# 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
|
1848
|
+
# 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
|
1783
1849
|
# min_capacity: 1,
|
1784
1850
|
# max_capacity: 1,
|
1785
1851
|
# role_arn: "ResourceIdMaxLen1600",
|
@@ -1791,14 +1857,9 @@ module Aws::ApplicationAutoScaling
|
|
1791
1857
|
# }
|
1792
1858
|
#
|
1793
1859
|
# @!attribute [rw] service_namespace
|
1794
|
-
# The namespace of the AWS service that provides the resource
|
1795
|
-
#
|
1796
|
-
#
|
1797
|
-
# the *Amazon Web Services General Reference*.
|
1798
|
-
#
|
1799
|
-
#
|
1800
|
-
#
|
1801
|
-
# [1]: http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces
|
1860
|
+
# The namespace of the AWS service that provides the resource. For a
|
1861
|
+
# resource provided by your own application or service, use
|
1862
|
+
# `custom-resource` instead.
|
1802
1863
|
# @return [String]
|
1803
1864
|
#
|
1804
1865
|
# @!attribute [rw] resource_id
|
@@ -1851,6 +1912,10 @@ module Aws::ApplicationAutoScaling
|
|
1851
1912
|
# version or alias name suffix that is not `$LATEST`. Example:
|
1852
1913
|
# `function:my-function:prod` or `function:my-function:1`.
|
1853
1914
|
#
|
1915
|
+
# * Amazon Keyspaces table - The resource type is `table` and the
|
1916
|
+
# unique identifier is the table name. Example:
|
1917
|
+
# `keyspace/mykeyspace/table/mytable`.
|
1918
|
+
#
|
1854
1919
|
#
|
1855
1920
|
#
|
1856
1921
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -1901,31 +1966,48 @@ module Aws::ApplicationAutoScaling
|
|
1901
1966
|
#
|
1902
1967
|
# * `lambda:function:ProvisionedConcurrency` - The provisioned
|
1903
1968
|
# concurrency for a Lambda function.
|
1969
|
+
#
|
1970
|
+
# * `cassandra:table:ReadCapacityUnits` - The provisioned read
|
1971
|
+
# capacity for an Amazon Keyspaces table.
|
1972
|
+
#
|
1973
|
+
# * `cassandra:table:WriteCapacityUnits` - The provisioned write
|
1974
|
+
# capacity for an Amazon Keyspaces table.
|
1904
1975
|
# @return [String]
|
1905
1976
|
#
|
1906
1977
|
# @!attribute [rw] min_capacity
|
1907
|
-
# The minimum value to scale
|
1908
|
-
#
|
1978
|
+
# The minimum value that you plan to scale in to. When a scaling
|
1979
|
+
# policy is in effect, Application Auto Scaling can scale in
|
1980
|
+
# (contract) as needed to the minimum capacity limit in response to
|
1981
|
+
# changing demand.
|
1982
|
+
#
|
1983
|
+
# This parameter is required if you are registering a scalable target.
|
1984
|
+
# For Lambda provisioned concurrency, the minimum value allowed is 0.
|
1985
|
+
# For all other resources, the minimum value allowed is 1.
|
1909
1986
|
# @return [Integer]
|
1910
1987
|
#
|
1911
1988
|
# @!attribute [rw] max_capacity
|
1912
|
-
# The maximum value
|
1913
|
-
#
|
1989
|
+
# The maximum value that you plan to scale out to. When a scaling
|
1990
|
+
# policy is in effect, Application Auto Scaling can scale out (expand)
|
1991
|
+
# as needed to the maximum capacity limit in response to changing
|
1992
|
+
# demand.
|
1993
|
+
#
|
1994
|
+
# This parameter is required if you are registering a scalable target.
|
1914
1995
|
# @return [Integer]
|
1915
1996
|
#
|
1916
1997
|
# @!attribute [rw] role_arn
|
1917
|
-
#
|
1918
|
-
#
|
1919
|
-
# more information, see [Service-Linked Roles for Application Auto
|
1920
|
-
# Scaling][1].
|
1921
|
-
#
|
1922
|
-
# For Amazon EMR, this parameter is required, and it must specify the
|
1998
|
+
# This parameter is required for services that do not support
|
1999
|
+
# service-linked roles (such as Amazon EMR), and it must specify the
|
1923
2000
|
# ARN of an IAM role that allows Application Auto Scaling to modify
|
1924
2001
|
# the scalable target on your behalf.
|
1925
2002
|
#
|
2003
|
+
# If the service supports service-linked roles, Application Auto
|
2004
|
+
# Scaling uses a service-linked role, which it creates if it does not
|
2005
|
+
# yet exist. For more information, see [Application Auto Scaling IAM
|
2006
|
+
# Roles][1].
|
2007
|
+
#
|
1926
2008
|
#
|
1927
2009
|
#
|
1928
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/
|
2010
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/security_iam_service-with-iam.html#security_iam_service-with-iam-roles
|
1929
2011
|
# @return [String]
|
1930
2012
|
#
|
1931
2013
|
# @!attribute [rw] suspended_state
|
@@ -1977,14 +2059,8 @@ module Aws::ApplicationAutoScaling
|
|
1977
2059
|
# Represents a scalable target.
|
1978
2060
|
#
|
1979
2061
|
# @!attribute [rw] service_namespace
|
1980
|
-
# The namespace of the AWS service that provides the resource or
|
1981
|
-
# `custom-resource
|
1982
|
-
# service. For more information, see [AWS Service Namespaces][1] in
|
1983
|
-
# the *Amazon Web Services General Reference*.
|
1984
|
-
#
|
1985
|
-
#
|
1986
|
-
#
|
1987
|
-
# [1]: http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces
|
2062
|
+
# The namespace of the AWS service that provides the resource, or a
|
2063
|
+
# `custom-resource`.
|
1988
2064
|
# @return [String]
|
1989
2065
|
#
|
1990
2066
|
# @!attribute [rw] resource_id
|
@@ -2036,6 +2112,10 @@ module Aws::ApplicationAutoScaling
|
|
2036
2112
|
# version or alias name suffix that is not `$LATEST`. Example:
|
2037
2113
|
# `function:my-function:prod` or `function:my-function:1`.
|
2038
2114
|
#
|
2115
|
+
# * Amazon Keyspaces table - The resource type is `table` and the
|
2116
|
+
# unique identifier is the table name. Example:
|
2117
|
+
# `keyspace/mykeyspace/table/mytable`.
|
2118
|
+
#
|
2039
2119
|
#
|
2040
2120
|
#
|
2041
2121
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -2086,14 +2166,20 @@ module Aws::ApplicationAutoScaling
|
|
2086
2166
|
#
|
2087
2167
|
# * `lambda:function:ProvisionedConcurrency` - The provisioned
|
2088
2168
|
# concurrency for a Lambda function.
|
2169
|
+
#
|
2170
|
+
# * `cassandra:table:ReadCapacityUnits` - The provisioned read
|
2171
|
+
# capacity for an Amazon Keyspaces table.
|
2172
|
+
#
|
2173
|
+
# * `cassandra:table:WriteCapacityUnits` - The provisioned write
|
2174
|
+
# capacity for an Amazon Keyspaces table.
|
2089
2175
|
# @return [String]
|
2090
2176
|
#
|
2091
2177
|
# @!attribute [rw] min_capacity
|
2092
|
-
# The minimum value to scale to in response to a scale-in
|
2178
|
+
# The minimum value to scale to in response to a scale-in activity.
|
2093
2179
|
# @return [Integer]
|
2094
2180
|
#
|
2095
2181
|
# @!attribute [rw] max_capacity
|
2096
|
-
# The maximum value to scale to in response to a scale-out
|
2182
|
+
# The maximum value to scale to in response to a scale-out activity.
|
2097
2183
|
# @return [Integer]
|
2098
2184
|
#
|
2099
2185
|
# @!attribute [rw] role_arn
|
@@ -2136,6 +2222,9 @@ module Aws::ApplicationAutoScaling
|
|
2136
2222
|
#
|
2137
2223
|
# @!attribute [rw] min_capacity
|
2138
2224
|
# The minimum capacity.
|
2225
|
+
#
|
2226
|
+
# For Lambda provisioned concurrency, the minimum value allowed is 0.
|
2227
|
+
# For all other resources, the minimum value allowed is 1.
|
2139
2228
|
# @return [Integer]
|
2140
2229
|
#
|
2141
2230
|
# @!attribute [rw] max_capacity
|
@@ -2157,14 +2246,8 @@ module Aws::ApplicationAutoScaling
|
|
2157
2246
|
# @return [String]
|
2158
2247
|
#
|
2159
2248
|
# @!attribute [rw] service_namespace
|
2160
|
-
# The namespace of the AWS service that provides the resource or
|
2161
|
-
# `custom-resource
|
2162
|
-
# service. For more information, see [AWS Service Namespaces][1] in
|
2163
|
-
# the *Amazon Web Services General Reference*.
|
2164
|
-
#
|
2165
|
-
#
|
2166
|
-
#
|
2167
|
-
# [1]: http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces
|
2249
|
+
# The namespace of the AWS service that provides the resource, or a
|
2250
|
+
# `custom-resource`.
|
2168
2251
|
# @return [String]
|
2169
2252
|
#
|
2170
2253
|
# @!attribute [rw] resource_id
|
@@ -2216,6 +2299,10 @@ module Aws::ApplicationAutoScaling
|
|
2216
2299
|
# version or alias name suffix that is not `$LATEST`. Example:
|
2217
2300
|
# `function:my-function:prod` or `function:my-function:1`.
|
2218
2301
|
#
|
2302
|
+
# * Amazon Keyspaces table - The resource type is `table` and the
|
2303
|
+
# unique identifier is the table name. Example:
|
2304
|
+
# `keyspace/mykeyspace/table/mytable`.
|
2305
|
+
#
|
2219
2306
|
#
|
2220
2307
|
#
|
2221
2308
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -2265,6 +2352,12 @@ module Aws::ApplicationAutoScaling
|
|
2265
2352
|
#
|
2266
2353
|
# * `lambda:function:ProvisionedConcurrency` - The provisioned
|
2267
2354
|
# concurrency for a Lambda function.
|
2355
|
+
#
|
2356
|
+
# * `cassandra:table:ReadCapacityUnits` - The provisioned read
|
2357
|
+
# capacity for an Amazon Keyspaces table.
|
2358
|
+
#
|
2359
|
+
# * `cassandra:table:WriteCapacityUnits` - The provisioned write
|
2360
|
+
# capacity for an Amazon Keyspaces table.
|
2268
2361
|
# @return [String]
|
2269
2362
|
#
|
2270
2363
|
# @!attribute [rw] description
|
@@ -2324,14 +2417,8 @@ module Aws::ApplicationAutoScaling
|
|
2324
2417
|
# @return [String]
|
2325
2418
|
#
|
2326
2419
|
# @!attribute [rw] service_namespace
|
2327
|
-
# The namespace of the AWS service that provides the resource or
|
2328
|
-
# `custom-resource
|
2329
|
-
# service. For more information, see [AWS Service Namespaces][1] in
|
2330
|
-
# the *Amazon Web Services General Reference*.
|
2331
|
-
#
|
2332
|
-
#
|
2333
|
-
#
|
2334
|
-
# [1]: http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces
|
2420
|
+
# The namespace of the AWS service that provides the resource, or a
|
2421
|
+
# `custom-resource`.
|
2335
2422
|
# @return [String]
|
2336
2423
|
#
|
2337
2424
|
# @!attribute [rw] resource_id
|
@@ -2383,6 +2470,10 @@ module Aws::ApplicationAutoScaling
|
|
2383
2470
|
# version or alias name suffix that is not `$LATEST`. Example:
|
2384
2471
|
# `function:my-function:prod` or `function:my-function:1`.
|
2385
2472
|
#
|
2473
|
+
# * Amazon Keyspaces table - The resource type is `table` and the
|
2474
|
+
# unique identifier is the table name. Example:
|
2475
|
+
# `keyspace/mykeyspace/table/mytable`.
|
2476
|
+
#
|
2386
2477
|
#
|
2387
2478
|
#
|
2388
2479
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -2432,6 +2523,12 @@ module Aws::ApplicationAutoScaling
|
|
2432
2523
|
#
|
2433
2524
|
# * `lambda:function:ProvisionedConcurrency` - The provisioned
|
2434
2525
|
# concurrency for a Lambda function.
|
2526
|
+
#
|
2527
|
+
# * `cassandra:table:ReadCapacityUnits` - The provisioned read
|
2528
|
+
# capacity for an Amazon Keyspaces table.
|
2529
|
+
#
|
2530
|
+
# * `cassandra:table:WriteCapacityUnits` - The provisioned write
|
2531
|
+
# capacity for an Amazon Keyspaces table.
|
2435
2532
|
# @return [String]
|
2436
2533
|
#
|
2437
2534
|
# @!attribute [rw] policy_type
|
@@ -2481,14 +2578,8 @@ module Aws::ApplicationAutoScaling
|
|
2481
2578
|
# @return [String]
|
2482
2579
|
#
|
2483
2580
|
# @!attribute [rw] service_namespace
|
2484
|
-
# The namespace of the AWS service that provides the resource or
|
2485
|
-
# `custom-resource
|
2486
|
-
# service. For more information, see [AWS Service Namespaces][1] in
|
2487
|
-
# the *Amazon Web Services General Reference*.
|
2488
|
-
#
|
2489
|
-
#
|
2490
|
-
#
|
2491
|
-
# [1]: http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces
|
2581
|
+
# The namespace of the AWS service that provides the resource, or a
|
2582
|
+
# `custom-resource`.
|
2492
2583
|
# @return [String]
|
2493
2584
|
#
|
2494
2585
|
# @!attribute [rw] schedule
|
@@ -2500,7 +2591,7 @@ module Aws::ApplicationAutoScaling
|
|
2500
2591
|
#
|
2501
2592
|
# * Cron expressions - "`cron(fields)`"
|
2502
2593
|
#
|
2503
|
-
# At expressions are useful for one-time schedules. Specify the time
|
2594
|
+
# At expressions are useful for one-time schedules. Specify the time
|
2504
2595
|
# in UTC.
|
2505
2596
|
#
|
2506
2597
|
# For rate expressions, *value* is a positive integer and *unit* is
|
@@ -2509,9 +2600,13 @@ module Aws::ApplicationAutoScaling
|
|
2509
2600
|
# For more information about cron expressions, see [Cron
|
2510
2601
|
# Expressions][1] in the *Amazon CloudWatch Events User Guide*.
|
2511
2602
|
#
|
2603
|
+
# For examples of using these expressions, see [Scheduled Scaling][2]
|
2604
|
+
# in the *Application Auto Scaling User Guide*.
|
2605
|
+
#
|
2512
2606
|
#
|
2513
2607
|
#
|
2514
2608
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
|
2609
|
+
# [2]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scheduled-scaling.html
|
2515
2610
|
# @return [String]
|
2516
2611
|
#
|
2517
2612
|
# @!attribute [rw] resource_id
|
@@ -2563,6 +2658,10 @@ module Aws::ApplicationAutoScaling
|
|
2563
2658
|
# version or alias name suffix that is not `$LATEST`. Example:
|
2564
2659
|
# `function:my-function:prod` or `function:my-function:1`.
|
2565
2660
|
#
|
2661
|
+
# * Amazon Keyspaces table - The resource type is `table` and the
|
2662
|
+
# unique identifier is the table name. Example:
|
2663
|
+
# `keyspace/mykeyspace/table/mytable`.
|
2664
|
+
#
|
2566
2665
|
#
|
2567
2666
|
#
|
2568
2667
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -2612,6 +2711,12 @@ module Aws::ApplicationAutoScaling
|
|
2612
2711
|
#
|
2613
2712
|
# * `lambda:function:ProvisionedConcurrency` - The provisioned
|
2614
2713
|
# concurrency for a Lambda function.
|
2714
|
+
#
|
2715
|
+
# * `cassandra:table:ReadCapacityUnits` - The provisioned read
|
2716
|
+
# capacity for an Amazon Keyspaces table.
|
2717
|
+
#
|
2718
|
+
# * `cassandra:table:WriteCapacityUnits` - The provisioned write
|
2719
|
+
# capacity for an Amazon Keyspaces table.
|
2615
2720
|
# @return [String]
|
2616
2721
|
#
|
2617
2722
|
# @!attribute [rw] start_time
|
@@ -2624,9 +2729,9 @@ module Aws::ApplicationAutoScaling
|
|
2624
2729
|
#
|
2625
2730
|
# @!attribute [rw] scalable_target_action
|
2626
2731
|
# The new minimum and maximum capacity. You can set both values or
|
2627
|
-
# just one.
|
2628
|
-
#
|
2629
|
-
#
|
2732
|
+
# just one. At the scheduled time, if the current capacity is below
|
2733
|
+
# the minimum capacity, Application Auto Scaling scales out to the
|
2734
|
+
# minimum capacity. If the current capacity is above the maximum
|
2630
2735
|
# capacity, Application Auto Scaling scales in to the maximum
|
2631
2736
|
# capacity.
|
2632
2737
|
# @return [Types::ScalableTargetAction]
|
@@ -2651,10 +2756,10 @@ module Aws::ApplicationAutoScaling
|
|
2651
2756
|
include Aws::Structure
|
2652
2757
|
end
|
2653
2758
|
|
2654
|
-
# Represents a step adjustment for a
|
2655
|
-
# Describes an adjustment based on
|
2656
|
-
# the
|
2657
|
-
# defined for the alarm.
|
2759
|
+
# Represents a step adjustment for a
|
2760
|
+
# [StepScalingPolicyConfiguration][1]. Describes an adjustment based on
|
2761
|
+
# the difference between the value of the aggregated CloudWatch metric
|
2762
|
+
# and the breach threshold that you've defined for the alarm.
|
2658
2763
|
#
|
2659
2764
|
# For the following examples, suppose that you have an alarm with a
|
2660
2765
|
# breach threshold of 50:
|
@@ -2682,6 +2787,10 @@ module Aws::ApplicationAutoScaling
|
|
2682
2787
|
# * The upper and lower bound can't be null in the same step
|
2683
2788
|
# adjustment.
|
2684
2789
|
#
|
2790
|
+
#
|
2791
|
+
#
|
2792
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/application/APIReference/API_StepScalingPolicyConfiguration.html
|
2793
|
+
#
|
2685
2794
|
# @note When making an API call, you may pass StepAdjustment
|
2686
2795
|
# data as a hash:
|
2687
2796
|
#
|
@@ -2713,8 +2822,8 @@ module Aws::ApplicationAutoScaling
|
|
2713
2822
|
#
|
2714
2823
|
# @!attribute [rw] scaling_adjustment
|
2715
2824
|
# The amount by which to scale, based on the specified adjustment
|
2716
|
-
# type. A positive value adds to the current
|
2717
|
-
#
|
2825
|
+
# type. A positive value adds to the current capacity while a negative
|
2826
|
+
# number removes from the current capacity.
|
2718
2827
|
# @return [Integer]
|
2719
2828
|
#
|
2720
2829
|
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/StepAdjustment AWS API Documentation
|
@@ -2747,53 +2856,91 @@ module Aws::ApplicationAutoScaling
|
|
2747
2856
|
# }
|
2748
2857
|
#
|
2749
2858
|
# @!attribute [rw] adjustment_type
|
2750
|
-
# Specifies whether the `ScalingAdjustment` value in a
|
2751
|
-
# is an absolute number or a percentage of the
|
2859
|
+
# Specifies whether the `ScalingAdjustment` value in a
|
2860
|
+
# [StepAdjustment][1] is an absolute number or a percentage of the
|
2861
|
+
# current capacity.
|
2862
|
+
#
|
2863
|
+
# `AdjustmentType` is required if you are adding a new step scaling
|
2864
|
+
# policy configuration.
|
2865
|
+
#
|
2866
|
+
#
|
2867
|
+
#
|
2868
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/application/APIReference/API_StepAdjustment.html
|
2752
2869
|
# @return [String]
|
2753
2870
|
#
|
2754
2871
|
# @!attribute [rw] step_adjustments
|
2755
2872
|
# A set of adjustments that enable you to scale based on the size of
|
2756
2873
|
# the alarm breach.
|
2874
|
+
#
|
2875
|
+
# At least one step adjustment is required if you are adding a new
|
2876
|
+
# step scaling policy configuration.
|
2757
2877
|
# @return [Array<Types::StepAdjustment>]
|
2758
2878
|
#
|
2759
2879
|
# @!attribute [rw] min_adjustment_magnitude
|
2760
|
-
# The minimum
|
2761
|
-
# a scaling
|
2762
|
-
#
|
2763
|
-
# dimension of the scalable target by this amount.
|
2764
|
-
#
|
2765
|
-
# For example, suppose that you create a step scaling policy to scale
|
2766
|
-
# out an Amazon ECS service by 25 percent and you specify a
|
2880
|
+
# The minimum value to scale by when scaling by percentages. For
|
2881
|
+
# example, suppose that you create a step scaling policy to scale out
|
2882
|
+
# an Amazon ECS service by 25 percent and you specify a
|
2767
2883
|
# `MinAdjustmentMagnitude` of 2. If the service has 4 tasks and the
|
2768
2884
|
# scaling policy is performed, 25 percent of 4 is 1. However, because
|
2769
2885
|
# you specified a `MinAdjustmentMagnitude` of 2, Application Auto
|
2770
2886
|
# Scaling scales out the service by 2 tasks.
|
2887
|
+
#
|
2888
|
+
# Valid only if the adjustment type is `PercentChangeInCapacity`.
|
2771
2889
|
# @return [Integer]
|
2772
2890
|
#
|
2773
2891
|
# @!attribute [rw] cooldown
|
2774
|
-
# The amount of time, in seconds,
|
2775
|
-
#
|
2776
|
-
#
|
2777
|
-
#
|
2778
|
-
#
|
2779
|
-
#
|
2780
|
-
#
|
2781
|
-
#
|
2782
|
-
#
|
2783
|
-
#
|
2784
|
-
# scaling activity completes successfully, and a
|
2785
|
-
#
|
2786
|
-
#
|
2787
|
-
#
|
2788
|
-
#
|
2789
|
-
#
|
2790
|
-
#
|
2791
|
-
#
|
2792
|
-
#
|
2793
|
-
#
|
2794
|
-
#
|
2795
|
-
#
|
2796
|
-
#
|
2892
|
+
# The amount of time, in seconds, to wait for a previous scaling
|
2893
|
+
# activity to take effect.
|
2894
|
+
#
|
2895
|
+
# With scale-out policies, the intention is to continuously (but not
|
2896
|
+
# excessively) scale out. After Application Auto Scaling successfully
|
2897
|
+
# scales out using a step scaling policy, it starts to calculate the
|
2898
|
+
# cooldown time. While the cooldown period is in effect, capacity
|
2899
|
+
# added by the initiating scale-out activity is calculated as part of
|
2900
|
+
# the desired capacity for the next scale-out activity. For example,
|
2901
|
+
# when an alarm triggers a step scaling policy to increase the
|
2902
|
+
# capacity by 2, the scaling activity completes successfully, and a
|
2903
|
+
# cooldown period starts. If the alarm triggers again during the
|
2904
|
+
# cooldown period but at a more aggressive step adjustment of 3, the
|
2905
|
+
# previous increase of 2 is considered part of the current capacity.
|
2906
|
+
# Therefore, only 1 is added to the capacity.
|
2907
|
+
#
|
2908
|
+
# With scale-in policies, the intention is to scale in conservatively
|
2909
|
+
# to protect your application’s availability, so scale-in activities
|
2910
|
+
# are blocked until the cooldown period has expired. However, if
|
2911
|
+
# another alarm triggers a scale-out activity during the cooldown
|
2912
|
+
# period after a scale-in activity, Application Auto Scaling scales
|
2913
|
+
# out the target immediately. In this case, the cooldown period for
|
2914
|
+
# the scale-in activity stops and doesn't complete.
|
2915
|
+
#
|
2916
|
+
# Application Auto Scaling provides a default value of 300 for the
|
2917
|
+
# following scalable targets:
|
2918
|
+
#
|
2919
|
+
# * ECS services
|
2920
|
+
#
|
2921
|
+
# * Spot Fleet requests
|
2922
|
+
#
|
2923
|
+
# * EMR clusters
|
2924
|
+
#
|
2925
|
+
# * AppStream 2.0 fleets
|
2926
|
+
#
|
2927
|
+
# * Aurora DB clusters
|
2928
|
+
#
|
2929
|
+
# * Amazon SageMaker endpoint variants
|
2930
|
+
#
|
2931
|
+
# * Custom resources
|
2932
|
+
#
|
2933
|
+
# For all other scalable targets, the default value is 0:
|
2934
|
+
#
|
2935
|
+
# * DynamoDB tables
|
2936
|
+
#
|
2937
|
+
# * DynamoDB global secondary indexes
|
2938
|
+
#
|
2939
|
+
# * Amazon Comprehend document classification endpoints
|
2940
|
+
#
|
2941
|
+
# * Lambda provisioned concurrency
|
2942
|
+
#
|
2943
|
+
# * Amazon Keyspaces tables
|
2797
2944
|
# @return [Integer]
|
2798
2945
|
#
|
2799
2946
|
# @!attribute [rw] metric_aggregation_type
|
@@ -2863,7 +3010,7 @@ module Aws::ApplicationAutoScaling
|
|
2863
3010
|
# {
|
2864
3011
|
# target_value: 1.0, # required
|
2865
3012
|
# predefined_metric_specification: {
|
2866
|
-
# predefined_metric_type: "DynamoDBReadCapacityUtilization", # required, accepts DynamoDBReadCapacityUtilization, DynamoDBWriteCapacityUtilization, ALBRequestCountPerTarget, RDSReaderAverageCPUUtilization, RDSReaderAverageDatabaseConnections, EC2SpotFleetRequestAverageCPUUtilization, EC2SpotFleetRequestAverageNetworkIn, EC2SpotFleetRequestAverageNetworkOut, SageMakerVariantInvocationsPerInstance, ECSServiceAverageCPUUtilization, ECSServiceAverageMemoryUtilization, AppStreamAverageCapacityUtilization, ComprehendInferenceUtilization, LambdaProvisionedConcurrencyUtilization
|
3013
|
+
# predefined_metric_type: "DynamoDBReadCapacityUtilization", # required, accepts DynamoDBReadCapacityUtilization, DynamoDBWriteCapacityUtilization, ALBRequestCountPerTarget, RDSReaderAverageCPUUtilization, RDSReaderAverageDatabaseConnections, EC2SpotFleetRequestAverageCPUUtilization, EC2SpotFleetRequestAverageNetworkIn, EC2SpotFleetRequestAverageNetworkOut, SageMakerVariantInvocationsPerInstance, ECSServiceAverageCPUUtilization, ECSServiceAverageMemoryUtilization, AppStreamAverageCapacityUtilization, ComprehendInferenceUtilization, LambdaProvisionedConcurrencyUtilization, CassandraReadCapacityUtilization, CassandraWriteCapacityUtilization
|
2867
3014
|
# resource_label: "ResourceLabel",
|
2868
3015
|
# },
|
2869
3016
|
# customized_metric_specification: {
|
@@ -2899,34 +3046,96 @@ module Aws::ApplicationAutoScaling
|
|
2899
3046
|
# @return [Types::CustomizedMetricSpecification]
|
2900
3047
|
#
|
2901
3048
|
# @!attribute [rw] scale_out_cooldown
|
2902
|
-
# The amount of time, in seconds,
|
2903
|
-
#
|
3049
|
+
# The amount of time, in seconds, to wait for a previous scale-out
|
3050
|
+
# activity to take effect.
|
3051
|
+
#
|
3052
|
+
# With the *scale-out cooldown period*, the intention is to
|
3053
|
+
# continuously (but not excessively) scale out. After Application Auto
|
3054
|
+
# Scaling successfully scales out using a target tracking scaling
|
3055
|
+
# policy, it starts to calculate the cooldown time. While the
|
3056
|
+
# scale-out cooldown period is in effect, the capacity added by the
|
3057
|
+
# initiating scale-out activity is calculated as part of the desired
|
3058
|
+
# capacity for the next scale-out activity.
|
3059
|
+
#
|
3060
|
+
# Application Auto Scaling provides a default value of 300 for the
|
3061
|
+
# following scalable targets:
|
3062
|
+
#
|
3063
|
+
# * ECS services
|
3064
|
+
#
|
3065
|
+
# * Spot Fleet requests
|
3066
|
+
#
|
3067
|
+
# * EMR clusters
|
3068
|
+
#
|
3069
|
+
# * AppStream 2.0 fleets
|
3070
|
+
#
|
3071
|
+
# * Aurora DB clusters
|
3072
|
+
#
|
3073
|
+
# * Amazon SageMaker endpoint variants
|
3074
|
+
#
|
3075
|
+
# * Custom resources
|
3076
|
+
#
|
3077
|
+
# For all other scalable targets, the default value is 0:
|
3078
|
+
#
|
3079
|
+
# * DynamoDB tables
|
2904
3080
|
#
|
2905
|
-
#
|
2906
|
-
#
|
2907
|
-
#
|
2908
|
-
#
|
3081
|
+
# * DynamoDB global secondary indexes
|
3082
|
+
#
|
3083
|
+
# * Amazon Comprehend document classification endpoints
|
3084
|
+
#
|
3085
|
+
# * Lambda provisioned concurrency
|
3086
|
+
#
|
3087
|
+
# * Amazon Keyspaces tables
|
2909
3088
|
# @return [Integer]
|
2910
3089
|
#
|
2911
3090
|
# @!attribute [rw] scale_in_cooldown
|
2912
3091
|
# The amount of time, in seconds, after a scale-in activity completes
|
2913
|
-
# before another scale
|
2914
|
-
#
|
2915
|
-
#
|
2916
|
-
#
|
2917
|
-
#
|
2918
|
-
# triggers a scale-out
|
2919
|
-
# scale-in, Application Auto Scaling scales
|
2920
|
-
# immediately.
|
3092
|
+
# before another scale-in activity can start.
|
3093
|
+
#
|
3094
|
+
# With the *scale-in cooldown period*, the intention is to scale in
|
3095
|
+
# conservatively to protect your application’s availability, so
|
3096
|
+
# scale-in activities are blocked until the cooldown period has
|
3097
|
+
# expired. However, if another alarm triggers a scale-out activity
|
3098
|
+
# during the scale-in cooldown period, Application Auto Scaling scales
|
3099
|
+
# out the target immediately. In this case, the scale-in cooldown
|
3100
|
+
# period stops and doesn't complete.
|
3101
|
+
#
|
3102
|
+
# Application Auto Scaling provides a default value of 300 for the
|
3103
|
+
# following scalable targets:
|
3104
|
+
#
|
3105
|
+
# * ECS services
|
3106
|
+
#
|
3107
|
+
# * Spot Fleet requests
|
3108
|
+
#
|
3109
|
+
# * EMR clusters
|
3110
|
+
#
|
3111
|
+
# * AppStream 2.0 fleets
|
3112
|
+
#
|
3113
|
+
# * Aurora DB clusters
|
3114
|
+
#
|
3115
|
+
# * Amazon SageMaker endpoint variants
|
3116
|
+
#
|
3117
|
+
# * Custom resources
|
3118
|
+
#
|
3119
|
+
# For all other scalable targets, the default value is 0:
|
3120
|
+
#
|
3121
|
+
# * DynamoDB tables
|
3122
|
+
#
|
3123
|
+
# * DynamoDB global secondary indexes
|
3124
|
+
#
|
3125
|
+
# * Amazon Comprehend document classification endpoints
|
3126
|
+
#
|
3127
|
+
# * Lambda provisioned concurrency
|
3128
|
+
#
|
3129
|
+
# * Amazon Keyspaces tables
|
2921
3130
|
# @return [Integer]
|
2922
3131
|
#
|
2923
3132
|
# @!attribute [rw] disable_scale_in
|
2924
3133
|
# Indicates whether scale in by the target tracking scaling policy is
|
2925
3134
|
# disabled. If the value is `true`, scale in is disabled and the
|
2926
3135
|
# target tracking scaling policy won't remove capacity from the
|
2927
|
-
# scalable
|
3136
|
+
# scalable target. Otherwise, scale in is enabled and the target
|
2928
3137
|
# tracking scaling policy can remove capacity from the scalable
|
2929
|
-
#
|
3138
|
+
# target. The default value is `false`.
|
2930
3139
|
# @return [Boolean]
|
2931
3140
|
#
|
2932
3141
|
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TargetTrackingScalingPolicyConfiguration AWS API Documentation
|