aws-sdk-applicationautoscaling 1.59.0 → 1.76.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +88 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-applicationautoscaling/client.rb +594 -59
- data/lib/aws-sdk-applicationautoscaling/client_api.rb +134 -3
- data/lib/aws-sdk-applicationautoscaling/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-applicationautoscaling/endpoint_provider.rb +57 -0
- data/lib/aws-sdk-applicationautoscaling/endpoints.rb +198 -0
- data/lib/aws-sdk-applicationautoscaling/errors.rb +42 -0
- data/lib/aws-sdk-applicationautoscaling/plugins/endpoints.rb +94 -0
- data/lib/aws-sdk-applicationautoscaling/types.rb +671 -443
- data/lib/aws-sdk-applicationautoscaling.rb +5 -1
- metadata +8 -4
@@ -48,7 +48,7 @@ module Aws::ApplicationAutoScaling
|
|
48
48
|
# scaling policy to use with Application Auto Scaling.
|
49
49
|
#
|
50
50
|
# For information about the available metrics for a service, see [Amazon
|
51
|
-
# Web Services
|
51
|
+
# Web Services services that publish CloudWatch metrics][1] in the
|
52
52
|
# *Amazon CloudWatch User Guide*.
|
53
53
|
#
|
54
54
|
# To create your customized metric specification:
|
@@ -56,7 +56,7 @@ module Aws::ApplicationAutoScaling
|
|
56
56
|
# * Add values for each required parameter from CloudWatch. You can use
|
57
57
|
# an existing metric, or a new metric that you create. To use your own
|
58
58
|
# metric, you must first publish the metric to CloudWatch. For more
|
59
|
-
# information, see [Publish
|
59
|
+
# information, see [Publish custom metrics][2] in the *Amazon
|
60
60
|
# CloudWatch User Guide*.
|
61
61
|
#
|
62
62
|
# * Choose a metric that changes proportionally with capacity. The value
|
@@ -65,8 +65,8 @@ module Aws::ApplicationAutoScaling
|
|
65
65
|
# should decrease when capacity increases, and increase when capacity
|
66
66
|
# decreases.
|
67
67
|
#
|
68
|
-
# For more information about CloudWatch, see
|
69
|
-
#
|
68
|
+
# For more information about the CloudWatch terminology below, see
|
69
|
+
# [Amazon CloudWatch concepts][3] in the *Amazon CloudWatch User Guide*.
|
70
70
|
#
|
71
71
|
#
|
72
72
|
#
|
@@ -74,24 +74,15 @@ module Aws::ApplicationAutoScaling
|
|
74
74
|
# [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html
|
75
75
|
# [3]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html
|
76
76
|
#
|
77
|
-
# @note When making an API call, you may pass CustomizedMetricSpecification
|
78
|
-
# data as a hash:
|
79
|
-
#
|
80
|
-
# {
|
81
|
-
# metric_name: "MetricName", # required
|
82
|
-
# namespace: "MetricNamespace", # required
|
83
|
-
# dimensions: [
|
84
|
-
# {
|
85
|
-
# name: "MetricDimensionName", # required
|
86
|
-
# value: "MetricDimensionValue", # required
|
87
|
-
# },
|
88
|
-
# ],
|
89
|
-
# statistic: "Average", # required, accepts Average, Minimum, Maximum, SampleCount, Sum
|
90
|
-
# unit: "MetricUnit",
|
91
|
-
# }
|
92
|
-
#
|
93
77
|
# @!attribute [rw] metric_name
|
94
|
-
# The name of the metric.
|
78
|
+
# The name of the metric. To get the exact metric name, namespace, and
|
79
|
+
# dimensions, inspect the [Metric][1] object that's returned by a
|
80
|
+
# call to [ListMetrics][2].
|
81
|
+
#
|
82
|
+
#
|
83
|
+
#
|
84
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_Metric.html
|
85
|
+
# [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html
|
95
86
|
# @return [String]
|
96
87
|
#
|
97
88
|
# @!attribute [rw] namespace
|
@@ -110,9 +101,21 @@ module Aws::ApplicationAutoScaling
|
|
110
101
|
# @return [String]
|
111
102
|
#
|
112
103
|
# @!attribute [rw] unit
|
113
|
-
# The unit of the metric.
|
104
|
+
# The unit of the metric. For a complete list of the units that
|
105
|
+
# CloudWatch supports, see the [MetricDatum][1] data type in the
|
106
|
+
# *Amazon CloudWatch API Reference*.
|
107
|
+
#
|
108
|
+
#
|
109
|
+
#
|
110
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html
|
114
111
|
# @return [String]
|
115
112
|
#
|
113
|
+
# @!attribute [rw] metrics
|
114
|
+
# The metrics to include in the target tracking scaling policy, as a
|
115
|
+
# metric data query. This can include both raw metric and metric math
|
116
|
+
# expressions.
|
117
|
+
# @return [Array<Types::TargetTrackingMetricDataQuery>]
|
118
|
+
#
|
116
119
|
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/CustomizedMetricSpecification AWS API Documentation
|
117
120
|
#
|
118
121
|
class CustomizedMetricSpecification < Struct.new(
|
@@ -120,21 +123,12 @@ module Aws::ApplicationAutoScaling
|
|
120
123
|
:namespace,
|
121
124
|
:dimensions,
|
122
125
|
:statistic,
|
123
|
-
:unit
|
126
|
+
:unit,
|
127
|
+
:metrics)
|
124
128
|
SENSITIVE = []
|
125
129
|
include Aws::Structure
|
126
130
|
end
|
127
131
|
|
128
|
-
# @note When making an API call, you may pass DeleteScalingPolicyRequest
|
129
|
-
# data as a hash:
|
130
|
-
#
|
131
|
-
# {
|
132
|
-
# policy_name: "ResourceIdMaxLen1600", # required
|
133
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra, kafka, elasticache, neptune
|
134
|
-
# resource_id: "ResourceIdMaxLen1600", # required
|
135
|
-
# 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, comprehend:entity-recognizer-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency, cassandra:table:ReadCapacityUnits, cassandra:table:WriteCapacityUnits, kafka:broker-storage:VolumeSize, elasticache:replication-group:NodeGroups, elasticache:replication-group:Replicas, neptune:cluster:ReadReplicaCount
|
136
|
-
# }
|
137
|
-
#
|
138
132
|
# @!attribute [rw] policy_name
|
139
133
|
# The name of the scaling policy.
|
140
134
|
# @return [String]
|
@@ -214,6 +208,10 @@ module Aws::ApplicationAutoScaling
|
|
214
208
|
# * Neptune cluster - The resource type is `cluster` and the unique
|
215
209
|
# identifier is the cluster name. Example: `cluster:mycluster`.
|
216
210
|
#
|
211
|
+
# * SageMaker Serverless endpoint - The resource type is `variant` and
|
212
|
+
# the unique identifier is the resource ID. Example:
|
213
|
+
# `endpoint/my-end-point/variant/KMeansClustering`.
|
214
|
+
#
|
217
215
|
#
|
218
216
|
#
|
219
217
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -252,7 +250,7 @@ module Aws::ApplicationAutoScaling
|
|
252
250
|
# edition and Aurora PostgreSQL-compatible edition.
|
253
251
|
#
|
254
252
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
255
|
-
# instances for
|
253
|
+
# instances for a SageMaker model endpoint variant.
|
256
254
|
#
|
257
255
|
# * `custom-resource:ResourceType:Property` - The scalable dimension
|
258
256
|
# for a custom resource provided by your own application or service.
|
@@ -285,6 +283,9 @@ module Aws::ApplicationAutoScaling
|
|
285
283
|
#
|
286
284
|
# * `neptune:cluster:ReadReplicaCount` - The count of read replicas in
|
287
285
|
# an Amazon Neptune DB cluster.
|
286
|
+
#
|
287
|
+
# * `sagemaker:variant:DesiredProvisionedConcurrency` - The
|
288
|
+
# provisioned concurrency for a SageMaker Serverless endpoint.
|
288
289
|
# @return [String]
|
289
290
|
#
|
290
291
|
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScalingPolicyRequest AWS API Documentation
|
@@ -302,16 +303,6 @@ module Aws::ApplicationAutoScaling
|
|
302
303
|
#
|
303
304
|
class DeleteScalingPolicyResponse < Aws::EmptyStructure; end
|
304
305
|
|
305
|
-
# @note When making an API call, you may pass DeleteScheduledActionRequest
|
306
|
-
# data as a hash:
|
307
|
-
#
|
308
|
-
# {
|
309
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra, kafka, elasticache, neptune
|
310
|
-
# scheduled_action_name: "ResourceIdMaxLen1600", # required
|
311
|
-
# resource_id: "ResourceIdMaxLen1600", # required
|
312
|
-
# 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, comprehend:entity-recognizer-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency, cassandra:table:ReadCapacityUnits, cassandra:table:WriteCapacityUnits, kafka:broker-storage:VolumeSize, elasticache:replication-group:NodeGroups, elasticache:replication-group:Replicas, neptune:cluster:ReadReplicaCount
|
313
|
-
# }
|
314
|
-
#
|
315
306
|
# @!attribute [rw] service_namespace
|
316
307
|
# The namespace of the Amazon Web Services service that provides the
|
317
308
|
# resource. For a resource provided by your own application or
|
@@ -391,6 +382,10 @@ module Aws::ApplicationAutoScaling
|
|
391
382
|
# * Neptune cluster - The resource type is `cluster` and the unique
|
392
383
|
# identifier is the cluster name. Example: `cluster:mycluster`.
|
393
384
|
#
|
385
|
+
# * SageMaker Serverless endpoint - The resource type is `variant` and
|
386
|
+
# the unique identifier is the resource ID. Example:
|
387
|
+
# `endpoint/my-end-point/variant/KMeansClustering`.
|
388
|
+
#
|
394
389
|
#
|
395
390
|
#
|
396
391
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -429,7 +424,7 @@ module Aws::ApplicationAutoScaling
|
|
429
424
|
# edition and Aurora PostgreSQL-compatible edition.
|
430
425
|
#
|
431
426
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
432
|
-
# instances for
|
427
|
+
# instances for a SageMaker model endpoint variant.
|
433
428
|
#
|
434
429
|
# * `custom-resource:ResourceType:Property` - The scalable dimension
|
435
430
|
# for a custom resource provided by your own application or service.
|
@@ -462,6 +457,9 @@ module Aws::ApplicationAutoScaling
|
|
462
457
|
#
|
463
458
|
# * `neptune:cluster:ReadReplicaCount` - The count of read replicas in
|
464
459
|
# an Amazon Neptune DB cluster.
|
460
|
+
#
|
461
|
+
# * `sagemaker:variant:DesiredProvisionedConcurrency` - The
|
462
|
+
# provisioned concurrency for a SageMaker Serverless endpoint.
|
465
463
|
# @return [String]
|
466
464
|
#
|
467
465
|
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScheduledActionRequest AWS API Documentation
|
@@ -479,15 +477,6 @@ module Aws::ApplicationAutoScaling
|
|
479
477
|
#
|
480
478
|
class DeleteScheduledActionResponse < Aws::EmptyStructure; end
|
481
479
|
|
482
|
-
# @note When making an API call, you may pass DeregisterScalableTargetRequest
|
483
|
-
# data as a hash:
|
484
|
-
#
|
485
|
-
# {
|
486
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra, kafka, elasticache, neptune
|
487
|
-
# resource_id: "ResourceIdMaxLen1600", # required
|
488
|
-
# 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, comprehend:entity-recognizer-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency, cassandra:table:ReadCapacityUnits, cassandra:table:WriteCapacityUnits, kafka:broker-storage:VolumeSize, elasticache:replication-group:NodeGroups, elasticache:replication-group:Replicas, neptune:cluster:ReadReplicaCount
|
489
|
-
# }
|
490
|
-
#
|
491
480
|
# @!attribute [rw] service_namespace
|
492
481
|
# The namespace of the Amazon Web Services service that provides the
|
493
482
|
# resource. For a resource provided by your own application or
|
@@ -563,6 +552,10 @@ module Aws::ApplicationAutoScaling
|
|
563
552
|
# * Neptune cluster - The resource type is `cluster` and the unique
|
564
553
|
# identifier is the cluster name. Example: `cluster:mycluster`.
|
565
554
|
#
|
555
|
+
# * SageMaker Serverless endpoint - The resource type is `variant` and
|
556
|
+
# the unique identifier is the resource ID. Example:
|
557
|
+
# `endpoint/my-end-point/variant/KMeansClustering`.
|
558
|
+
#
|
566
559
|
#
|
567
560
|
#
|
568
561
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -602,7 +595,7 @@ module Aws::ApplicationAutoScaling
|
|
602
595
|
# edition and Aurora PostgreSQL-compatible edition.
|
603
596
|
#
|
604
597
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
605
|
-
# instances for
|
598
|
+
# instances for a SageMaker model endpoint variant.
|
606
599
|
#
|
607
600
|
# * `custom-resource:ResourceType:Property` - The scalable dimension
|
608
601
|
# for a custom resource provided by your own application or service.
|
@@ -635,6 +628,9 @@ module Aws::ApplicationAutoScaling
|
|
635
628
|
#
|
636
629
|
# * `neptune:cluster:ReadReplicaCount` - The count of read replicas in
|
637
630
|
# an Amazon Neptune DB cluster.
|
631
|
+
#
|
632
|
+
# * `sagemaker:variant:DesiredProvisionedConcurrency` - The
|
633
|
+
# provisioned concurrency for a SageMaker Serverless endpoint.
|
638
634
|
# @return [String]
|
639
635
|
#
|
640
636
|
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeregisterScalableTargetRequest AWS API Documentation
|
@@ -651,17 +647,6 @@ module Aws::ApplicationAutoScaling
|
|
651
647
|
#
|
652
648
|
class DeregisterScalableTargetResponse < Aws::EmptyStructure; end
|
653
649
|
|
654
|
-
# @note When making an API call, you may pass DescribeScalableTargetsRequest
|
655
|
-
# data as a hash:
|
656
|
-
#
|
657
|
-
# {
|
658
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra, kafka, elasticache, neptune
|
659
|
-
# resource_ids: ["ResourceIdMaxLen1600"],
|
660
|
-
# 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, comprehend:entity-recognizer-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency, cassandra:table:ReadCapacityUnits, cassandra:table:WriteCapacityUnits, kafka:broker-storage:VolumeSize, elasticache:replication-group:NodeGroups, elasticache:replication-group:Replicas, neptune:cluster:ReadReplicaCount
|
661
|
-
# max_results: 1,
|
662
|
-
# next_token: "XmlString",
|
663
|
-
# }
|
664
|
-
#
|
665
650
|
# @!attribute [rw] service_namespace
|
666
651
|
# The namespace of the Amazon Web Services service that provides the
|
667
652
|
# resource. For a resource provided by your own application or
|
@@ -737,6 +722,10 @@ module Aws::ApplicationAutoScaling
|
|
737
722
|
# * Neptune cluster - The resource type is `cluster` and the unique
|
738
723
|
# identifier is the cluster name. Example: `cluster:mycluster`.
|
739
724
|
#
|
725
|
+
# * SageMaker Serverless endpoint - The resource type is `variant` and
|
726
|
+
# the unique identifier is the resource ID. Example:
|
727
|
+
# `endpoint/my-end-point/variant/KMeansClustering`.
|
728
|
+
#
|
740
729
|
#
|
741
730
|
#
|
742
731
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -777,7 +766,7 @@ module Aws::ApplicationAutoScaling
|
|
777
766
|
# edition and Aurora PostgreSQL-compatible edition.
|
778
767
|
#
|
779
768
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
780
|
-
# instances for
|
769
|
+
# instances for a SageMaker model endpoint variant.
|
781
770
|
#
|
782
771
|
# * `custom-resource:ResourceType:Property` - The scalable dimension
|
783
772
|
# for a custom resource provided by your own application or service.
|
@@ -810,6 +799,9 @@ module Aws::ApplicationAutoScaling
|
|
810
799
|
#
|
811
800
|
# * `neptune:cluster:ReadReplicaCount` - The count of read replicas in
|
812
801
|
# an Amazon Neptune DB cluster.
|
802
|
+
#
|
803
|
+
# * `sagemaker:variant:DesiredProvisionedConcurrency` - The
|
804
|
+
# provisioned concurrency for a SageMaker Serverless endpoint.
|
813
805
|
# @return [String]
|
814
806
|
#
|
815
807
|
# @!attribute [rw] max_results
|
@@ -857,17 +849,6 @@ module Aws::ApplicationAutoScaling
|
|
857
849
|
include Aws::Structure
|
858
850
|
end
|
859
851
|
|
860
|
-
# @note When making an API call, you may pass DescribeScalingActivitiesRequest
|
861
|
-
# data as a hash:
|
862
|
-
#
|
863
|
-
# {
|
864
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra, kafka, elasticache, neptune
|
865
|
-
# resource_id: "ResourceIdMaxLen1600",
|
866
|
-
# 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, comprehend:entity-recognizer-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency, cassandra:table:ReadCapacityUnits, cassandra:table:WriteCapacityUnits, kafka:broker-storage:VolumeSize, elasticache:replication-group:NodeGroups, elasticache:replication-group:Replicas, neptune:cluster:ReadReplicaCount
|
867
|
-
# max_results: 1,
|
868
|
-
# next_token: "XmlString",
|
869
|
-
# }
|
870
|
-
#
|
871
852
|
# @!attribute [rw] service_namespace
|
872
853
|
# The namespace of the Amazon Web Services service that provides the
|
873
854
|
# resource. For a resource provided by your own application or
|
@@ -943,6 +924,10 @@ module Aws::ApplicationAutoScaling
|
|
943
924
|
# * Neptune cluster - The resource type is `cluster` and the unique
|
944
925
|
# identifier is the cluster name. Example: `cluster:mycluster`.
|
945
926
|
#
|
927
|
+
# * SageMaker Serverless endpoint - The resource type is `variant` and
|
928
|
+
# the unique identifier is the resource ID. Example:
|
929
|
+
# `endpoint/my-end-point/variant/KMeansClustering`.
|
930
|
+
#
|
946
931
|
#
|
947
932
|
#
|
948
933
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -982,7 +967,7 @@ module Aws::ApplicationAutoScaling
|
|
982
967
|
# edition and Aurora PostgreSQL-compatible edition.
|
983
968
|
#
|
984
969
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
985
|
-
# instances for
|
970
|
+
# instances for a SageMaker model endpoint variant.
|
986
971
|
#
|
987
972
|
# * `custom-resource:ResourceType:Property` - The scalable dimension
|
988
973
|
# for a custom resource provided by your own application or service.
|
@@ -1015,6 +1000,9 @@ module Aws::ApplicationAutoScaling
|
|
1015
1000
|
#
|
1016
1001
|
# * `neptune:cluster:ReadReplicaCount` - The count of read replicas in
|
1017
1002
|
# an Amazon Neptune DB cluster.
|
1003
|
+
#
|
1004
|
+
# * `sagemaker:variant:DesiredProvisionedConcurrency` - The
|
1005
|
+
# provisioned concurrency for a SageMaker Serverless endpoint.
|
1018
1006
|
# @return [String]
|
1019
1007
|
#
|
1020
1008
|
# @!attribute [rw] max_results
|
@@ -1032,6 +1020,19 @@ module Aws::ApplicationAutoScaling
|
|
1032
1020
|
# The token for the next set of results.
|
1033
1021
|
# @return [String]
|
1034
1022
|
#
|
1023
|
+
# @!attribute [rw] include_not_scaled_activities
|
1024
|
+
# Specifies whether to include activities that aren't scaled (*not
|
1025
|
+
# scaled activities*) in the response. Not scaled activities are
|
1026
|
+
# activities that aren't completed or started for various reasons,
|
1027
|
+
# such as preventing infinite scaling loops. For help interpreting the
|
1028
|
+
# not scaled reason details in the response, see [Scaling activities
|
1029
|
+
# for Application Auto Scaling][1].
|
1030
|
+
#
|
1031
|
+
#
|
1032
|
+
#
|
1033
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scaling-activities.html
|
1034
|
+
# @return [Boolean]
|
1035
|
+
#
|
1035
1036
|
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingActivitiesRequest AWS API Documentation
|
1036
1037
|
#
|
1037
1038
|
class DescribeScalingActivitiesRequest < Struct.new(
|
@@ -1039,7 +1040,8 @@ module Aws::ApplicationAutoScaling
|
|
1039
1040
|
:resource_id,
|
1040
1041
|
:scalable_dimension,
|
1041
1042
|
:max_results,
|
1042
|
-
:next_token
|
1043
|
+
:next_token,
|
1044
|
+
:include_not_scaled_activities)
|
1043
1045
|
SENSITIVE = []
|
1044
1046
|
include Aws::Structure
|
1045
1047
|
end
|
@@ -1062,18 +1064,6 @@ module Aws::ApplicationAutoScaling
|
|
1062
1064
|
include Aws::Structure
|
1063
1065
|
end
|
1064
1066
|
|
1065
|
-
# @note When making an API call, you may pass DescribeScalingPoliciesRequest
|
1066
|
-
# data as a hash:
|
1067
|
-
#
|
1068
|
-
# {
|
1069
|
-
# policy_names: ["ResourceIdMaxLen1600"],
|
1070
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra, kafka, elasticache, neptune
|
1071
|
-
# resource_id: "ResourceIdMaxLen1600",
|
1072
|
-
# 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, comprehend:entity-recognizer-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency, cassandra:table:ReadCapacityUnits, cassandra:table:WriteCapacityUnits, kafka:broker-storage:VolumeSize, elasticache:replication-group:NodeGroups, elasticache:replication-group:Replicas, neptune:cluster:ReadReplicaCount
|
1073
|
-
# max_results: 1,
|
1074
|
-
# next_token: "XmlString",
|
1075
|
-
# }
|
1076
|
-
#
|
1077
1067
|
# @!attribute [rw] policy_names
|
1078
1068
|
# The names of the scaling policies to describe.
|
1079
1069
|
# @return [Array<String>]
|
@@ -1153,6 +1143,10 @@ module Aws::ApplicationAutoScaling
|
|
1153
1143
|
# * Neptune cluster - The resource type is `cluster` and the unique
|
1154
1144
|
# identifier is the cluster name. Example: `cluster:mycluster`.
|
1155
1145
|
#
|
1146
|
+
# * SageMaker Serverless endpoint - The resource type is `variant` and
|
1147
|
+
# the unique identifier is the resource ID. Example:
|
1148
|
+
# `endpoint/my-end-point/variant/KMeansClustering`.
|
1149
|
+
#
|
1156
1150
|
#
|
1157
1151
|
#
|
1158
1152
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -1192,7 +1186,7 @@ module Aws::ApplicationAutoScaling
|
|
1192
1186
|
# edition and Aurora PostgreSQL-compatible edition.
|
1193
1187
|
#
|
1194
1188
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
1195
|
-
# instances for
|
1189
|
+
# instances for a SageMaker model endpoint variant.
|
1196
1190
|
#
|
1197
1191
|
# * `custom-resource:ResourceType:Property` - The scalable dimension
|
1198
1192
|
# for a custom resource provided by your own application or service.
|
@@ -1225,6 +1219,9 @@ module Aws::ApplicationAutoScaling
|
|
1225
1219
|
#
|
1226
1220
|
# * `neptune:cluster:ReadReplicaCount` - The count of read replicas in
|
1227
1221
|
# an Amazon Neptune DB cluster.
|
1222
|
+
#
|
1223
|
+
# * `sagemaker:variant:DesiredProvisionedConcurrency` - The
|
1224
|
+
# provisioned concurrency for a SageMaker Serverless endpoint.
|
1228
1225
|
# @return [String]
|
1229
1226
|
#
|
1230
1227
|
# @!attribute [rw] max_results
|
@@ -1273,18 +1270,6 @@ module Aws::ApplicationAutoScaling
|
|
1273
1270
|
include Aws::Structure
|
1274
1271
|
end
|
1275
1272
|
|
1276
|
-
# @note When making an API call, you may pass DescribeScheduledActionsRequest
|
1277
|
-
# data as a hash:
|
1278
|
-
#
|
1279
|
-
# {
|
1280
|
-
# scheduled_action_names: ["ResourceIdMaxLen1600"],
|
1281
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra, kafka, elasticache, neptune
|
1282
|
-
# resource_id: "ResourceIdMaxLen1600",
|
1283
|
-
# 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, comprehend:entity-recognizer-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency, cassandra:table:ReadCapacityUnits, cassandra:table:WriteCapacityUnits, kafka:broker-storage:VolumeSize, elasticache:replication-group:NodeGroups, elasticache:replication-group:Replicas, neptune:cluster:ReadReplicaCount
|
1284
|
-
# max_results: 1,
|
1285
|
-
# next_token: "XmlString",
|
1286
|
-
# }
|
1287
|
-
#
|
1288
1273
|
# @!attribute [rw] scheduled_action_names
|
1289
1274
|
# The names of the scheduled actions to describe.
|
1290
1275
|
# @return [Array<String>]
|
@@ -1364,6 +1349,10 @@ module Aws::ApplicationAutoScaling
|
|
1364
1349
|
# * Neptune cluster - The resource type is `cluster` and the unique
|
1365
1350
|
# identifier is the cluster name. Example: `cluster:mycluster`.
|
1366
1351
|
#
|
1352
|
+
# * SageMaker Serverless endpoint - The resource type is `variant` and
|
1353
|
+
# the unique identifier is the resource ID. Example:
|
1354
|
+
# `endpoint/my-end-point/variant/KMeansClustering`.
|
1355
|
+
#
|
1367
1356
|
#
|
1368
1357
|
#
|
1369
1358
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -1403,7 +1392,7 @@ module Aws::ApplicationAutoScaling
|
|
1403
1392
|
# edition and Aurora PostgreSQL-compatible edition.
|
1404
1393
|
#
|
1405
1394
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
1406
|
-
# instances for
|
1395
|
+
# instances for a SageMaker model endpoint variant.
|
1407
1396
|
#
|
1408
1397
|
# * `custom-resource:ResourceType:Property` - The scalable dimension
|
1409
1398
|
# for a custom resource provided by your own application or service.
|
@@ -1436,6 +1425,9 @@ module Aws::ApplicationAutoScaling
|
|
1436
1425
|
#
|
1437
1426
|
# * `neptune:cluster:ReadReplicaCount` - The count of read replicas in
|
1438
1427
|
# an Amazon Neptune DB cluster.
|
1428
|
+
#
|
1429
|
+
# * `sagemaker:variant:DesiredProvisionedConcurrency` - The
|
1430
|
+
# provisioned concurrency for a SageMaker Serverless endpoint.
|
1439
1431
|
# @return [String]
|
1440
1432
|
#
|
1441
1433
|
# @!attribute [rw] max_results
|
@@ -1549,15 +1541,36 @@ module Aws::ApplicationAutoScaling
|
|
1549
1541
|
include Aws::Structure
|
1550
1542
|
end
|
1551
1543
|
|
1552
|
-
#
|
1544
|
+
# @!attribute [rw] resource_arn
|
1545
|
+
# Specify the ARN of the scalable target.
|
1553
1546
|
#
|
1554
|
-
#
|
1555
|
-
#
|
1547
|
+
# For example:
|
1548
|
+
# `arn:aws:application-autoscaling:us-east-1:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123`
|
1556
1549
|
#
|
1557
|
-
#
|
1558
|
-
#
|
1559
|
-
#
|
1560
|
-
#
|
1550
|
+
# To get the ARN for a scalable target, use DescribeScalableTargets.
|
1551
|
+
# @return [String]
|
1552
|
+
#
|
1553
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/ListTagsForResourceRequest AWS API Documentation
|
1554
|
+
#
|
1555
|
+
class ListTagsForResourceRequest < Struct.new(
|
1556
|
+
:resource_arn)
|
1557
|
+
SENSITIVE = []
|
1558
|
+
include Aws::Structure
|
1559
|
+
end
|
1560
|
+
|
1561
|
+
# @!attribute [rw] tags
|
1562
|
+
# A list of tags. Each tag consists of a tag key and a tag value.
|
1563
|
+
# @return [Hash<String,String>]
|
1564
|
+
#
|
1565
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/ListTagsForResourceResponse AWS API Documentation
|
1566
|
+
#
|
1567
|
+
class ListTagsForResourceResponse < Struct.new(
|
1568
|
+
:tags)
|
1569
|
+
SENSITIVE = []
|
1570
|
+
include Aws::Structure
|
1571
|
+
end
|
1572
|
+
|
1573
|
+
# Describes the dimension names and values associated with a metric.
|
1561
1574
|
#
|
1562
1575
|
# @!attribute [rw] name
|
1563
1576
|
# The name of the dimension.
|
@@ -1576,6 +1589,54 @@ module Aws::ApplicationAutoScaling
|
|
1576
1589
|
include Aws::Structure
|
1577
1590
|
end
|
1578
1591
|
|
1592
|
+
# Describes the reason for an activity that isn't scaled (*not scaled
|
1593
|
+
# activity*), in machine-readable format. For help interpreting the not
|
1594
|
+
# scaled reason details, see [Scaling activities for Application Auto
|
1595
|
+
# Scaling][1].
|
1596
|
+
#
|
1597
|
+
#
|
1598
|
+
#
|
1599
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scaling-activities.html
|
1600
|
+
#
|
1601
|
+
# @!attribute [rw] code
|
1602
|
+
# A code that represents the reason for not scaling.
|
1603
|
+
#
|
1604
|
+
# Valid values:
|
1605
|
+
#
|
1606
|
+
# * AutoScalingAnticipatedFlapping
|
1607
|
+
#
|
1608
|
+
# * TargetServicePutResourceAsUnscalable
|
1609
|
+
#
|
1610
|
+
# * AlreadyAtMaxCapacity
|
1611
|
+
#
|
1612
|
+
# * AlreadyAtMinCapacity
|
1613
|
+
#
|
1614
|
+
# * AlreadyAtDesiredCapacity
|
1615
|
+
# @return [String]
|
1616
|
+
#
|
1617
|
+
# @!attribute [rw] max_capacity
|
1618
|
+
# The maximum capacity.
|
1619
|
+
# @return [Integer]
|
1620
|
+
#
|
1621
|
+
# @!attribute [rw] min_capacity
|
1622
|
+
# The minimum capacity.
|
1623
|
+
# @return [Integer]
|
1624
|
+
#
|
1625
|
+
# @!attribute [rw] current_capacity
|
1626
|
+
# The current capacity.
|
1627
|
+
# @return [Integer]
|
1628
|
+
#
|
1629
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/NotScaledReason AWS API Documentation
|
1630
|
+
#
|
1631
|
+
class NotScaledReason < Struct.new(
|
1632
|
+
:code,
|
1633
|
+
:max_capacity,
|
1634
|
+
:min_capacity,
|
1635
|
+
:current_capacity)
|
1636
|
+
SENSITIVE = []
|
1637
|
+
include Aws::Structure
|
1638
|
+
end
|
1639
|
+
|
1579
1640
|
# The specified object could not be found. For any operation that
|
1580
1641
|
# depends on the existence of a scalable target, this exception is
|
1581
1642
|
# thrown if the scalable target with the specified service namespace,
|
@@ -1607,24 +1668,16 @@ module Aws::ApplicationAutoScaling
|
|
1607
1668
|
#
|
1608
1669
|
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/monitoring-cloudwatch.html
|
1609
1670
|
#
|
1610
|
-
# @note When making an API call, you may pass PredefinedMetricSpecification
|
1611
|
-
# data as a hash:
|
1612
|
-
#
|
1613
|
-
# {
|
1614
|
-
# predefined_metric_type: "DynamoDBReadCapacityUtilization", # required, accepts DynamoDBReadCapacityUtilization, DynamoDBWriteCapacityUtilization, ALBRequestCountPerTarget, RDSReaderAverageCPUUtilization, RDSReaderAverageDatabaseConnections, EC2SpotFleetRequestAverageCPUUtilization, EC2SpotFleetRequestAverageNetworkIn, EC2SpotFleetRequestAverageNetworkOut, SageMakerVariantInvocationsPerInstance, ECSServiceAverageCPUUtilization, ECSServiceAverageMemoryUtilization, AppStreamAverageCapacityUtilization, ComprehendInferenceUtilization, LambdaProvisionedConcurrencyUtilization, CassandraReadCapacityUtilization, CassandraWriteCapacityUtilization, KafkaBrokerStorageUtilization, ElastiCachePrimaryEngineCPUUtilization, ElastiCacheReplicaEngineCPUUtilization, ElastiCacheDatabaseMemoryUsageCountedForEvictPercentage, NeptuneReaderAverageCPUUtilization
|
1615
|
-
# resource_label: "ResourceLabel",
|
1616
|
-
# }
|
1617
|
-
#
|
1618
1671
|
# @!attribute [rw] predefined_metric_type
|
1619
1672
|
# The metric type. The `ALBRequestCountPerTarget` metric type applies
|
1620
|
-
# only to Spot
|
1673
|
+
# only to Spot Fleets and ECS services.
|
1621
1674
|
# @return [String]
|
1622
1675
|
#
|
1623
1676
|
# @!attribute [rw] resource_label
|
1624
1677
|
# Identifies the resource associated with the metric type. You can't
|
1625
1678
|
# specify a resource label unless the metric type is
|
1626
1679
|
# `ALBRequestCountPerTarget` and there is a target group attached to
|
1627
|
-
# the Spot Fleet
|
1680
|
+
# the Spot Fleet or ECS service.
|
1628
1681
|
#
|
1629
1682
|
# You create the resource label by appending the final portion of the
|
1630
1683
|
# load balancer ARN and the final portion of the target group ARN into
|
@@ -1660,54 +1713,12 @@ module Aws::ApplicationAutoScaling
|
|
1660
1713
|
include Aws::Structure
|
1661
1714
|
end
|
1662
1715
|
|
1663
|
-
# @note When making an API call, you may pass PutScalingPolicyRequest
|
1664
|
-
# data as a hash:
|
1665
|
-
#
|
1666
|
-
# {
|
1667
|
-
# policy_name: "PolicyName", # required
|
1668
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra, kafka, elasticache, neptune
|
1669
|
-
# resource_id: "ResourceIdMaxLen1600", # required
|
1670
|
-
# 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, comprehend:entity-recognizer-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency, cassandra:table:ReadCapacityUnits, cassandra:table:WriteCapacityUnits, kafka:broker-storage:VolumeSize, elasticache:replication-group:NodeGroups, elasticache:replication-group:Replicas, neptune:cluster:ReadReplicaCount
|
1671
|
-
# policy_type: "StepScaling", # accepts StepScaling, TargetTrackingScaling
|
1672
|
-
# step_scaling_policy_configuration: {
|
1673
|
-
# adjustment_type: "ChangeInCapacity", # accepts ChangeInCapacity, PercentChangeInCapacity, ExactCapacity
|
1674
|
-
# step_adjustments: [
|
1675
|
-
# {
|
1676
|
-
# metric_interval_lower_bound: 1.0,
|
1677
|
-
# metric_interval_upper_bound: 1.0,
|
1678
|
-
# scaling_adjustment: 1, # required
|
1679
|
-
# },
|
1680
|
-
# ],
|
1681
|
-
# min_adjustment_magnitude: 1,
|
1682
|
-
# cooldown: 1,
|
1683
|
-
# metric_aggregation_type: "Average", # accepts Average, Minimum, Maximum
|
1684
|
-
# },
|
1685
|
-
# target_tracking_scaling_policy_configuration: {
|
1686
|
-
# target_value: 1.0, # required
|
1687
|
-
# predefined_metric_specification: {
|
1688
|
-
# predefined_metric_type: "DynamoDBReadCapacityUtilization", # required, accepts DynamoDBReadCapacityUtilization, DynamoDBWriteCapacityUtilization, ALBRequestCountPerTarget, RDSReaderAverageCPUUtilization, RDSReaderAverageDatabaseConnections, EC2SpotFleetRequestAverageCPUUtilization, EC2SpotFleetRequestAverageNetworkIn, EC2SpotFleetRequestAverageNetworkOut, SageMakerVariantInvocationsPerInstance, ECSServiceAverageCPUUtilization, ECSServiceAverageMemoryUtilization, AppStreamAverageCapacityUtilization, ComprehendInferenceUtilization, LambdaProvisionedConcurrencyUtilization, CassandraReadCapacityUtilization, CassandraWriteCapacityUtilization, KafkaBrokerStorageUtilization, ElastiCachePrimaryEngineCPUUtilization, ElastiCacheReplicaEngineCPUUtilization, ElastiCacheDatabaseMemoryUsageCountedForEvictPercentage, NeptuneReaderAverageCPUUtilization
|
1689
|
-
# resource_label: "ResourceLabel",
|
1690
|
-
# },
|
1691
|
-
# customized_metric_specification: {
|
1692
|
-
# metric_name: "MetricName", # required
|
1693
|
-
# namespace: "MetricNamespace", # required
|
1694
|
-
# dimensions: [
|
1695
|
-
# {
|
1696
|
-
# name: "MetricDimensionName", # required
|
1697
|
-
# value: "MetricDimensionValue", # required
|
1698
|
-
# },
|
1699
|
-
# ],
|
1700
|
-
# statistic: "Average", # required, accepts Average, Minimum, Maximum, SampleCount, Sum
|
1701
|
-
# unit: "MetricUnit",
|
1702
|
-
# },
|
1703
|
-
# scale_out_cooldown: 1,
|
1704
|
-
# scale_in_cooldown: 1,
|
1705
|
-
# disable_scale_in: false,
|
1706
|
-
# },
|
1707
|
-
# }
|
1708
|
-
#
|
1709
1716
|
# @!attribute [rw] policy_name
|
1710
1717
|
# The name of the scaling policy.
|
1718
|
+
#
|
1719
|
+
# You cannot change the name of a scaling policy, but you can delete
|
1720
|
+
# the original scaling policy and create a new scaling policy with the
|
1721
|
+
# same settings and a different name.
|
1711
1722
|
# @return [String]
|
1712
1723
|
#
|
1713
1724
|
# @!attribute [rw] service_namespace
|
@@ -1785,6 +1796,10 @@ module Aws::ApplicationAutoScaling
|
|
1785
1796
|
# * Neptune cluster - The resource type is `cluster` and the unique
|
1786
1797
|
# identifier is the cluster name. Example: `cluster:mycluster`.
|
1787
1798
|
#
|
1799
|
+
# * SageMaker Serverless endpoint - The resource type is `variant` and
|
1800
|
+
# the unique identifier is the resource ID. Example:
|
1801
|
+
# `endpoint/my-end-point/variant/KMeansClustering`.
|
1802
|
+
#
|
1788
1803
|
#
|
1789
1804
|
#
|
1790
1805
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -1823,7 +1838,7 @@ module Aws::ApplicationAutoScaling
|
|
1823
1838
|
# edition and Aurora PostgreSQL-compatible edition.
|
1824
1839
|
#
|
1825
1840
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
1826
|
-
# instances for
|
1841
|
+
# instances for a SageMaker model endpoint variant.
|
1827
1842
|
#
|
1828
1843
|
# * `custom-resource:ResourceType:Property` - The scalable dimension
|
1829
1844
|
# for a custom resource provided by your own application or service.
|
@@ -1856,11 +1871,14 @@ module Aws::ApplicationAutoScaling
|
|
1856
1871
|
#
|
1857
1872
|
# * `neptune:cluster:ReadReplicaCount` - The count of read replicas in
|
1858
1873
|
# an Amazon Neptune DB cluster.
|
1874
|
+
#
|
1875
|
+
# * `sagemaker:variant:DesiredProvisionedConcurrency` - The
|
1876
|
+
# provisioned concurrency for a SageMaker Serverless endpoint.
|
1859
1877
|
# @return [String]
|
1860
1878
|
#
|
1861
1879
|
# @!attribute [rw] policy_type
|
1862
|
-
# The policy type. This parameter is required if you are
|
1863
|
-
# scaling policy.
|
1880
|
+
# The scaling policy type. This parameter is required if you are
|
1881
|
+
# creating a scaling policy.
|
1864
1882
|
#
|
1865
1883
|
# The following policy types are supported:
|
1866
1884
|
#
|
@@ -1926,24 +1944,6 @@ module Aws::ApplicationAutoScaling
|
|
1926
1944
|
include Aws::Structure
|
1927
1945
|
end
|
1928
1946
|
|
1929
|
-
# @note When making an API call, you may pass PutScheduledActionRequest
|
1930
|
-
# data as a hash:
|
1931
|
-
#
|
1932
|
-
# {
|
1933
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra, kafka, elasticache, neptune
|
1934
|
-
# schedule: "ResourceIdMaxLen1600",
|
1935
|
-
# timezone: "ResourceIdMaxLen1600",
|
1936
|
-
# scheduled_action_name: "ScheduledActionName", # required
|
1937
|
-
# resource_id: "ResourceIdMaxLen1600", # required
|
1938
|
-
# 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, comprehend:entity-recognizer-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency, cassandra:table:ReadCapacityUnits, cassandra:table:WriteCapacityUnits, kafka:broker-storage:VolumeSize, elasticache:replication-group:NodeGroups, elasticache:replication-group:Replicas, neptune:cluster:ReadReplicaCount
|
1939
|
-
# start_time: Time.now,
|
1940
|
-
# end_time: Time.now,
|
1941
|
-
# scalable_target_action: {
|
1942
|
-
# min_capacity: 1,
|
1943
|
-
# max_capacity: 1,
|
1944
|
-
# },
|
1945
|
-
# }
|
1946
|
-
#
|
1947
1947
|
# @!attribute [rw] service_namespace
|
1948
1948
|
# The namespace of the Amazon Web Services service that provides the
|
1949
1949
|
# resource. For a resource provided by your own application or
|
@@ -2072,6 +2072,10 @@ module Aws::ApplicationAutoScaling
|
|
2072
2072
|
# * Neptune cluster - The resource type is `cluster` and the unique
|
2073
2073
|
# identifier is the cluster name. Example: `cluster:mycluster`.
|
2074
2074
|
#
|
2075
|
+
# * SageMaker Serverless endpoint - The resource type is `variant` and
|
2076
|
+
# the unique identifier is the resource ID. Example:
|
2077
|
+
# `endpoint/my-end-point/variant/KMeansClustering`.
|
2078
|
+
#
|
2075
2079
|
#
|
2076
2080
|
#
|
2077
2081
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -2110,7 +2114,7 @@ module Aws::ApplicationAutoScaling
|
|
2110
2114
|
# edition and Aurora PostgreSQL-compatible edition.
|
2111
2115
|
#
|
2112
2116
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
2113
|
-
# instances for
|
2117
|
+
# instances for a SageMaker model endpoint variant.
|
2114
2118
|
#
|
2115
2119
|
# * `custom-resource:ResourceType:Property` - The scalable dimension
|
2116
2120
|
# for a custom resource provided by your own application or service.
|
@@ -2143,6 +2147,9 @@ module Aws::ApplicationAutoScaling
|
|
2143
2147
|
#
|
2144
2148
|
# * `neptune:cluster:ReadReplicaCount` - The count of read replicas in
|
2145
2149
|
# an Amazon Neptune DB cluster.
|
2150
|
+
#
|
2151
|
+
# * `sagemaker:variant:DesiredProvisionedConcurrency` - The
|
2152
|
+
# provisioned concurrency for a SageMaker Serverless endpoint.
|
2146
2153
|
# @return [String]
|
2147
2154
|
#
|
2148
2155
|
# @!attribute [rw] start_time
|
@@ -2182,23 +2189,6 @@ module Aws::ApplicationAutoScaling
|
|
2182
2189
|
#
|
2183
2190
|
class PutScheduledActionResponse < Aws::EmptyStructure; end
|
2184
2191
|
|
2185
|
-
# @note When making an API call, you may pass RegisterScalableTargetRequest
|
2186
|
-
# data as a hash:
|
2187
|
-
#
|
2188
|
-
# {
|
2189
|
-
# service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds, sagemaker, custom-resource, comprehend, lambda, cassandra, kafka, elasticache, neptune
|
2190
|
-
# resource_id: "ResourceIdMaxLen1600", # required
|
2191
|
-
# 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, comprehend:entity-recognizer-endpoint:DesiredInferenceUnits, lambda:function:ProvisionedConcurrency, cassandra:table:ReadCapacityUnits, cassandra:table:WriteCapacityUnits, kafka:broker-storage:VolumeSize, elasticache:replication-group:NodeGroups, elasticache:replication-group:Replicas, neptune:cluster:ReadReplicaCount
|
2192
|
-
# min_capacity: 1,
|
2193
|
-
# max_capacity: 1,
|
2194
|
-
# role_arn: "ResourceIdMaxLen1600",
|
2195
|
-
# suspended_state: {
|
2196
|
-
# dynamic_scaling_in_suspended: false,
|
2197
|
-
# dynamic_scaling_out_suspended: false,
|
2198
|
-
# scheduled_scaling_suspended: false,
|
2199
|
-
# },
|
2200
|
-
# }
|
2201
|
-
#
|
2202
2192
|
# @!attribute [rw] service_namespace
|
2203
2193
|
# The namespace of the Amazon Web Services service that provides the
|
2204
2194
|
# resource. For a resource provided by your own application or
|
@@ -2275,6 +2265,10 @@ module Aws::ApplicationAutoScaling
|
|
2275
2265
|
# * Neptune cluster - The resource type is `cluster` and the unique
|
2276
2266
|
# identifier is the cluster name. Example: `cluster:mycluster`.
|
2277
2267
|
#
|
2268
|
+
# * SageMaker Serverless endpoint - The resource type is `variant` and
|
2269
|
+
# the unique identifier is the resource ID. Example:
|
2270
|
+
# `endpoint/my-end-point/variant/KMeansClustering`.
|
2271
|
+
#
|
2278
2272
|
#
|
2279
2273
|
#
|
2280
2274
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -2314,7 +2308,7 @@ module Aws::ApplicationAutoScaling
|
|
2314
2308
|
# edition and Aurora PostgreSQL-compatible edition.
|
2315
2309
|
#
|
2316
2310
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
2317
|
-
# instances for
|
2311
|
+
# instances for a SageMaker model endpoint variant.
|
2318
2312
|
#
|
2319
2313
|
# * `custom-resource:ResourceType:Property` - The scalable dimension
|
2320
2314
|
# for a custom resource provided by your own application or service.
|
@@ -2347,6 +2341,9 @@ module Aws::ApplicationAutoScaling
|
|
2347
2341
|
#
|
2348
2342
|
# * `neptune:cluster:ReadReplicaCount` - The count of read replicas in
|
2349
2343
|
# an Amazon Neptune DB cluster.
|
2344
|
+
#
|
2345
|
+
# * `sagemaker:variant:DesiredProvisionedConcurrency` - The
|
2346
|
+
# provisioned concurrency for a SageMaker Serverless endpoint.
|
2350
2347
|
# @return [String]
|
2351
2348
|
#
|
2352
2349
|
# @!attribute [rw] min_capacity
|
@@ -2356,10 +2353,36 @@ module Aws::ApplicationAutoScaling
|
|
2356
2353
|
# changing demand. This property is required when registering a new
|
2357
2354
|
# scalable target.
|
2358
2355
|
#
|
2359
|
-
# For
|
2360
|
-
#
|
2361
|
-
#
|
2362
|
-
#
|
2356
|
+
# For the following resources, the minimum value allowed is 0.
|
2357
|
+
#
|
2358
|
+
# * AppStream 2.0 fleets
|
2359
|
+
#
|
2360
|
+
# * Aurora DB clusters
|
2361
|
+
#
|
2362
|
+
# * ECS services
|
2363
|
+
#
|
2364
|
+
# * EMR clusters
|
2365
|
+
#
|
2366
|
+
# * Lambda provisioned concurrency
|
2367
|
+
#
|
2368
|
+
# * SageMaker endpoint variants
|
2369
|
+
#
|
2370
|
+
# * SageMaker Serverless endpoint provisioned concurrency
|
2371
|
+
#
|
2372
|
+
# * Spot Fleets
|
2373
|
+
#
|
2374
|
+
# * custom resources
|
2375
|
+
#
|
2376
|
+
# It's strongly recommended that you specify a value greater than 0.
|
2377
|
+
# A value greater than 0 means that data points are continuously
|
2378
|
+
# reported to CloudWatch that scaling policies can use to scale on a
|
2379
|
+
# metric like average CPU utilization.
|
2380
|
+
#
|
2381
|
+
# For all other resources, the minimum allowed value depends on the
|
2382
|
+
# type of resource that you are using. If you provide a value that is
|
2383
|
+
# lower than what a resource can accept, an error occurs. In which
|
2384
|
+
# case, the error message will provide the minimum value that the
|
2385
|
+
# resource can accept.
|
2363
2386
|
# @return [Integer]
|
2364
2387
|
#
|
2365
2388
|
# @!attribute [rw] max_capacity
|
@@ -2370,12 +2393,12 @@ module Aws::ApplicationAutoScaling
|
|
2370
2393
|
# target.
|
2371
2394
|
#
|
2372
2395
|
# Although you can specify a large maximum capacity, note that service
|
2373
|
-
# quotas
|
2396
|
+
# quotas might impose lower limits. Each service has its own default
|
2374
2397
|
# quotas for the maximum capacity of the resource. If you want to
|
2375
2398
|
# specify a higher limit, you can request an increase. For more
|
2376
2399
|
# information, consult the documentation for that service. For
|
2377
2400
|
# information about the default quotas for each service, see [Service
|
2378
|
-
#
|
2401
|
+
# endpoints and quotas][1] in the *Amazon Web Services General
|
2379
2402
|
# Reference*.
|
2380
2403
|
#
|
2381
2404
|
#
|
@@ -2428,6 +2451,24 @@ module Aws::ApplicationAutoScaling
|
|
2428
2451
|
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-suspend-resume-scaling.html
|
2429
2452
|
# @return [Types::SuspendedState]
|
2430
2453
|
#
|
2454
|
+
# @!attribute [rw] tags
|
2455
|
+
# Assigns one or more tags to the scalable target. Use this parameter
|
2456
|
+
# to tag the scalable target when it is created. To tag an existing
|
2457
|
+
# scalable target, use the TagResource operation.
|
2458
|
+
#
|
2459
|
+
# Each tag consists of a tag key and a tag value. Both the tag key and
|
2460
|
+
# the tag value are required. You cannot have more than one tag on a
|
2461
|
+
# scalable target with the same tag key.
|
2462
|
+
#
|
2463
|
+
# Use tags to control access to a scalable target. For more
|
2464
|
+
# information, see [Tagging support for Application Auto Scaling][1]
|
2465
|
+
# in the *Application Auto Scaling User Guide*.
|
2466
|
+
#
|
2467
|
+
#
|
2468
|
+
#
|
2469
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/resource-tagging-support.html
|
2470
|
+
# @return [Hash<String,String>]
|
2471
|
+
#
|
2431
2472
|
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/RegisterScalableTargetRequest AWS API Documentation
|
2432
2473
|
#
|
2433
2474
|
class RegisterScalableTargetRequest < Struct.new(
|
@@ -2437,14 +2478,42 @@ module Aws::ApplicationAutoScaling
|
|
2437
2478
|
:min_capacity,
|
2438
2479
|
:max_capacity,
|
2439
2480
|
:role_arn,
|
2440
|
-
:suspended_state
|
2481
|
+
:suspended_state,
|
2482
|
+
:tags)
|
2441
2483
|
SENSITIVE = []
|
2442
2484
|
include Aws::Structure
|
2443
2485
|
end
|
2444
2486
|
|
2487
|
+
# @!attribute [rw] scalable_target_arn
|
2488
|
+
# The ARN of the scalable target.
|
2489
|
+
# @return [String]
|
2490
|
+
#
|
2445
2491
|
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/RegisterScalableTargetResponse AWS API Documentation
|
2446
2492
|
#
|
2447
|
-
class RegisterScalableTargetResponse <
|
2493
|
+
class RegisterScalableTargetResponse < Struct.new(
|
2494
|
+
:scalable_target_arn)
|
2495
|
+
SENSITIVE = []
|
2496
|
+
include Aws::Structure
|
2497
|
+
end
|
2498
|
+
|
2499
|
+
# The specified resource doesn't exist.
|
2500
|
+
#
|
2501
|
+
# @!attribute [rw] message
|
2502
|
+
# @return [String]
|
2503
|
+
#
|
2504
|
+
# @!attribute [rw] resource_name
|
2505
|
+
# The name of the Application Auto Scaling resource. This value is an
|
2506
|
+
# Amazon Resource Name (ARN).
|
2507
|
+
# @return [String]
|
2508
|
+
#
|
2509
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/ResourceNotFoundException AWS API Documentation
|
2510
|
+
#
|
2511
|
+
class ResourceNotFoundException < Struct.new(
|
2512
|
+
:message,
|
2513
|
+
:resource_name)
|
2514
|
+
SENSITIVE = []
|
2515
|
+
include Aws::Structure
|
2516
|
+
end
|
2448
2517
|
|
2449
2518
|
# Represents a scalable target.
|
2450
2519
|
#
|
@@ -2522,6 +2591,10 @@ module Aws::ApplicationAutoScaling
|
|
2522
2591
|
# * Neptune cluster - The resource type is `cluster` and the unique
|
2523
2592
|
# identifier is the cluster name. Example: `cluster:mycluster`.
|
2524
2593
|
#
|
2594
|
+
# * SageMaker Serverless endpoint - The resource type is `variant` and
|
2595
|
+
# the unique identifier is the resource ID. Example:
|
2596
|
+
# `endpoint/my-end-point/variant/KMeansClustering`.
|
2597
|
+
#
|
2525
2598
|
#
|
2526
2599
|
#
|
2527
2600
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -2561,7 +2634,7 @@ module Aws::ApplicationAutoScaling
|
|
2561
2634
|
# edition and Aurora PostgreSQL-compatible edition.
|
2562
2635
|
#
|
2563
2636
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
2564
|
-
# instances for
|
2637
|
+
# instances for a SageMaker model endpoint variant.
|
2565
2638
|
#
|
2566
2639
|
# * `custom-resource:ResourceType:Property` - The scalable dimension
|
2567
2640
|
# for a custom resource provided by your own application or service.
|
@@ -2594,6 +2667,9 @@ module Aws::ApplicationAutoScaling
|
|
2594
2667
|
#
|
2595
2668
|
# * `neptune:cluster:ReadReplicaCount` - The count of read replicas in
|
2596
2669
|
# an Amazon Neptune DB cluster.
|
2670
|
+
#
|
2671
|
+
# * `sagemaker:variant:DesiredProvisionedConcurrency` - The
|
2672
|
+
# provisioned concurrency for a SageMaker Serverless endpoint.
|
2597
2673
|
# @return [String]
|
2598
2674
|
#
|
2599
2675
|
# @!attribute [rw] min_capacity
|
@@ -2618,6 +2694,10 @@ module Aws::ApplicationAutoScaling
|
|
2618
2694
|
# in a suspended state.
|
2619
2695
|
# @return [Types::SuspendedState]
|
2620
2696
|
#
|
2697
|
+
# @!attribute [rw] scalable_target_arn
|
2698
|
+
# The ARN of the scalable target.
|
2699
|
+
# @return [String]
|
2700
|
+
#
|
2621
2701
|
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/ScalableTarget AWS API Documentation
|
2622
2702
|
#
|
2623
2703
|
class ScalableTarget < Struct.new(
|
@@ -2628,28 +2708,21 @@ module Aws::ApplicationAutoScaling
|
|
2628
2708
|
:max_capacity,
|
2629
2709
|
:role_arn,
|
2630
2710
|
:creation_time,
|
2631
|
-
:suspended_state
|
2711
|
+
:suspended_state,
|
2712
|
+
:scalable_target_arn)
|
2632
2713
|
SENSITIVE = []
|
2633
2714
|
include Aws::Structure
|
2634
2715
|
end
|
2635
2716
|
|
2636
2717
|
# Represents the minimum and maximum capacity for a scheduled action.
|
2637
2718
|
#
|
2638
|
-
# @note When making an API call, you may pass ScalableTargetAction
|
2639
|
-
# data as a hash:
|
2640
|
-
#
|
2641
|
-
# {
|
2642
|
-
# min_capacity: 1,
|
2643
|
-
# max_capacity: 1,
|
2644
|
-
# }
|
2645
|
-
#
|
2646
2719
|
# @!attribute [rw] min_capacity
|
2647
2720
|
# The minimum capacity.
|
2648
2721
|
#
|
2649
|
-
#
|
2650
|
-
#
|
2651
|
-
#
|
2652
|
-
#
|
2722
|
+
# When the scheduled action runs, the resource will have at least this
|
2723
|
+
# much capacity, but it might have more depending on other settings,
|
2724
|
+
# such as the target utilization level of a target tracking scaling
|
2725
|
+
# policy.
|
2653
2726
|
# @return [Integer]
|
2654
2727
|
#
|
2655
2728
|
# @!attribute [rw] max_capacity
|
@@ -2661,7 +2734,7 @@ module Aws::ApplicationAutoScaling
|
|
2661
2734
|
# specify a higher limit, you can request an increase. For more
|
2662
2735
|
# information, consult the documentation for that service. For
|
2663
2736
|
# information about the default quotas for each service, see [Service
|
2664
|
-
#
|
2737
|
+
# endpoints and quotas][1] in the *Amazon Web Services General
|
2665
2738
|
# Reference*.
|
2666
2739
|
#
|
2667
2740
|
#
|
@@ -2758,6 +2831,10 @@ module Aws::ApplicationAutoScaling
|
|
2758
2831
|
# * Neptune cluster - The resource type is `cluster` and the unique
|
2759
2832
|
# identifier is the cluster name. Example: `cluster:mycluster`.
|
2760
2833
|
#
|
2834
|
+
# * SageMaker Serverless endpoint - The resource type is `variant` and
|
2835
|
+
# the unique identifier is the resource ID. Example:
|
2836
|
+
# `endpoint/my-end-point/variant/KMeansClustering`.
|
2837
|
+
#
|
2761
2838
|
#
|
2762
2839
|
#
|
2763
2840
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -2796,7 +2873,7 @@ module Aws::ApplicationAutoScaling
|
|
2796
2873
|
# edition and Aurora PostgreSQL-compatible edition.
|
2797
2874
|
#
|
2798
2875
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
2799
|
-
# instances for
|
2876
|
+
# instances for a SageMaker model endpoint variant.
|
2800
2877
|
#
|
2801
2878
|
# * `custom-resource:ResourceType:Property` - The scalable dimension
|
2802
2879
|
# for a custom resource provided by your own application or service.
|
@@ -2829,6 +2906,9 @@ module Aws::ApplicationAutoScaling
|
|
2829
2906
|
#
|
2830
2907
|
# * `neptune:cluster:ReadReplicaCount` - The count of read replicas in
|
2831
2908
|
# an Amazon Neptune DB cluster.
|
2909
|
+
#
|
2910
|
+
# * `sagemaker:variant:DesiredProvisionedConcurrency` - The
|
2911
|
+
# provisioned concurrency for a SageMaker Serverless endpoint.
|
2832
2912
|
# @return [String]
|
2833
2913
|
#
|
2834
2914
|
# @!attribute [rw] description
|
@@ -2860,6 +2940,16 @@ module Aws::ApplicationAutoScaling
|
|
2860
2940
|
# The details about the scaling activity.
|
2861
2941
|
# @return [String]
|
2862
2942
|
#
|
2943
|
+
# @!attribute [rw] not_scaled_reasons
|
2944
|
+
# Machine-readable data that describes the reason for a not scaled
|
2945
|
+
# activity. Only available when [DescribeScalingActivities][1]
|
2946
|
+
# includes not scaled activities.
|
2947
|
+
#
|
2948
|
+
#
|
2949
|
+
#
|
2950
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DescribeScalingActivities.html
|
2951
|
+
# @return [Array<Types::NotScaledReason>]
|
2952
|
+
#
|
2863
2953
|
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/ScalingActivity AWS API Documentation
|
2864
2954
|
#
|
2865
2955
|
class ScalingActivity < Struct.new(
|
@@ -2873,7 +2963,8 @@ module Aws::ApplicationAutoScaling
|
|
2873
2963
|
:end_time,
|
2874
2964
|
:status_code,
|
2875
2965
|
:status_message,
|
2876
|
-
:details
|
2966
|
+
:details,
|
2967
|
+
:not_scaled_reasons)
|
2877
2968
|
SENSITIVE = []
|
2878
2969
|
include Aws::Structure
|
2879
2970
|
end
|
@@ -2881,12 +2972,13 @@ module Aws::ApplicationAutoScaling
|
|
2881
2972
|
# Represents a scaling policy to use with Application Auto Scaling.
|
2882
2973
|
#
|
2883
2974
|
# For more information about configuring scaling policies for a specific
|
2884
|
-
# service, see [
|
2885
|
-
# *Application Auto Scaling User
|
2975
|
+
# service, see [Amazon Web Services services that you can use with
|
2976
|
+
# Application Auto Scaling][1] in the *Application Auto Scaling User
|
2977
|
+
# Guide*.
|
2886
2978
|
#
|
2887
2979
|
#
|
2888
2980
|
#
|
2889
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/
|
2981
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/integrated-services-list.html
|
2890
2982
|
#
|
2891
2983
|
# @!attribute [rw] policy_arn
|
2892
2984
|
# The Amazon Resource Name (ARN) of the scaling policy.
|
@@ -2970,6 +3062,10 @@ module Aws::ApplicationAutoScaling
|
|
2970
3062
|
# * Neptune cluster - The resource type is `cluster` and the unique
|
2971
3063
|
# identifier is the cluster name. Example: `cluster:mycluster`.
|
2972
3064
|
#
|
3065
|
+
# * SageMaker Serverless endpoint - The resource type is `variant` and
|
3066
|
+
# the unique identifier is the resource ID. Example:
|
3067
|
+
# `endpoint/my-end-point/variant/KMeansClustering`.
|
3068
|
+
#
|
2973
3069
|
#
|
2974
3070
|
#
|
2975
3071
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -3008,7 +3104,7 @@ module Aws::ApplicationAutoScaling
|
|
3008
3104
|
# edition and Aurora PostgreSQL-compatible edition.
|
3009
3105
|
#
|
3010
3106
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
3011
|
-
# instances for
|
3107
|
+
# instances for a SageMaker model endpoint variant.
|
3012
3108
|
#
|
3013
3109
|
# * `custom-resource:ResourceType:Property` - The scalable dimension
|
3014
3110
|
# for a custom resource provided by your own application or service.
|
@@ -3041,10 +3137,20 @@ module Aws::ApplicationAutoScaling
|
|
3041
3137
|
#
|
3042
3138
|
# * `neptune:cluster:ReadReplicaCount` - The count of read replicas in
|
3043
3139
|
# an Amazon Neptune DB cluster.
|
3140
|
+
#
|
3141
|
+
# * `sagemaker:variant:DesiredProvisionedConcurrency` - The
|
3142
|
+
# provisioned concurrency for a SageMaker Serverless endpoint.
|
3044
3143
|
# @return [String]
|
3045
3144
|
#
|
3046
3145
|
# @!attribute [rw] policy_type
|
3047
3146
|
# The scaling policy type.
|
3147
|
+
#
|
3148
|
+
# The following policy types are supported:
|
3149
|
+
#
|
3150
|
+
# `TargetTrackingScaling`—Not supported for Amazon EMR
|
3151
|
+
#
|
3152
|
+
# `StepScaling`—Not supported for DynamoDB, Amazon Comprehend, Lambda,
|
3153
|
+
# Amazon Keyspaces, Amazon MSK, Amazon ElastiCache, or Neptune.
|
3048
3154
|
# @return [String]
|
3049
3155
|
#
|
3050
3156
|
# @!attribute [rw] step_scaling_policy_configuration
|
@@ -3203,6 +3309,10 @@ module Aws::ApplicationAutoScaling
|
|
3203
3309
|
# * Neptune cluster - The resource type is `cluster` and the unique
|
3204
3310
|
# identifier is the cluster name. Example: `cluster:mycluster`.
|
3205
3311
|
#
|
3312
|
+
# * SageMaker Serverless endpoint - The resource type is `variant` and
|
3313
|
+
# the unique identifier is the resource ID. Example:
|
3314
|
+
# `endpoint/my-end-point/variant/KMeansClustering`.
|
3315
|
+
#
|
3206
3316
|
#
|
3207
3317
|
#
|
3208
3318
|
# [1]: https://github.com/aws/aws-auto-scaling-custom-resource
|
@@ -3241,7 +3351,7 @@ module Aws::ApplicationAutoScaling
|
|
3241
3351
|
# edition and Aurora PostgreSQL-compatible edition.
|
3242
3352
|
#
|
3243
3353
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
3244
|
-
# instances for
|
3354
|
+
# instances for a SageMaker model endpoint variant.
|
3245
3355
|
#
|
3246
3356
|
# * `custom-resource:ResourceType:Property` - The scalable dimension
|
3247
3357
|
# for a custom resource provided by your own application or service.
|
@@ -3274,6 +3384,9 @@ module Aws::ApplicationAutoScaling
|
|
3274
3384
|
#
|
3275
3385
|
# * `neptune:cluster:ReadReplicaCount` - The count of read replicas in
|
3276
3386
|
# an Amazon Neptune DB cluster.
|
3387
|
+
#
|
3388
|
+
# * `sagemaker:variant:DesiredProvisionedConcurrency` - The
|
3389
|
+
# provisioned concurrency for a SageMaker Serverless endpoint.
|
3277
3390
|
# @return [String]
|
3278
3391
|
#
|
3279
3392
|
# @!attribute [rw] start_time
|
@@ -3323,13 +3436,13 @@ module Aws::ApplicationAutoScaling
|
|
3323
3436
|
# For the following examples, suppose that you have an alarm with a
|
3324
3437
|
# breach threshold of 50:
|
3325
3438
|
#
|
3326
|
-
# * To
|
3327
|
-
# to 50 and less than 60, specify a lower bound of 0 and an upper
|
3328
|
-
# bound of 10
|
3439
|
+
# * To initiate the adjustment when the metric is greater than or equal
|
3440
|
+
# to 50 and less than 60, specify a lower bound of `0` and an upper
|
3441
|
+
# bound of `10`.
|
3329
3442
|
#
|
3330
|
-
# * To
|
3331
|
-
# less than or equal to 50, specify a lower bound of
|
3332
|
-
# bound of 0
|
3443
|
+
# * To initiate the adjustment when the metric is greater than 40 and
|
3444
|
+
# less than or equal to 50, specify a lower bound of `-10` and an
|
3445
|
+
# upper bound of `0`.
|
3333
3446
|
#
|
3334
3447
|
# There are a few rules for the step adjustments for your step policy:
|
3335
3448
|
#
|
@@ -3350,29 +3463,20 @@ module Aws::ApplicationAutoScaling
|
|
3350
3463
|
#
|
3351
3464
|
# [1]: https://docs.aws.amazon.com/autoscaling/application/APIReference/API_StepScalingPolicyConfiguration.html
|
3352
3465
|
#
|
3353
|
-
# @note When making an API call, you may pass StepAdjustment
|
3354
|
-
# data as a hash:
|
3355
|
-
#
|
3356
|
-
# {
|
3357
|
-
# metric_interval_lower_bound: 1.0,
|
3358
|
-
# metric_interval_upper_bound: 1.0,
|
3359
|
-
# scaling_adjustment: 1, # required
|
3360
|
-
# }
|
3361
|
-
#
|
3362
3466
|
# @!attribute [rw] metric_interval_lower_bound
|
3363
3467
|
# The lower bound for the difference between the alarm threshold and
|
3364
3468
|
# the CloudWatch metric. If the metric value is above the breach
|
3365
3469
|
# threshold, the lower bound is inclusive (the metric must be greater
|
3366
|
-
# than or equal to the threshold plus the lower bound). Otherwise,
|
3367
|
-
#
|
3368
|
-
# lower bound). A null value indicates negative infinity.
|
3470
|
+
# than or equal to the threshold plus the lower bound). Otherwise,
|
3471
|
+
# it's exclusive (the metric must be greater than the threshold plus
|
3472
|
+
# the lower bound). A null value indicates negative infinity.
|
3369
3473
|
# @return [Float]
|
3370
3474
|
#
|
3371
3475
|
# @!attribute [rw] metric_interval_upper_bound
|
3372
3476
|
# The upper bound for the difference between the alarm threshold and
|
3373
3477
|
# the CloudWatch metric. If the metric value is above the breach
|
3374
3478
|
# threshold, the upper bound is exclusive (the metric must be less
|
3375
|
-
# than the threshold plus the upper bound). Otherwise, it
|
3479
|
+
# than the threshold plus the upper bound). Otherwise, it's inclusive
|
3376
3480
|
# (the metric must be less than or equal to the threshold plus the
|
3377
3481
|
# upper bound). A null value indicates positive infinity.
|
3378
3482
|
#
|
@@ -3383,7 +3487,7 @@ module Aws::ApplicationAutoScaling
|
|
3383
3487
|
# The amount by which to scale, based on the specified adjustment
|
3384
3488
|
# type. A positive value adds to the current capacity while a negative
|
3385
3489
|
# number removes from the current capacity. For exact capacity, you
|
3386
|
-
# must specify a
|
3490
|
+
# must specify a non-negative value.
|
3387
3491
|
# @return [Integer]
|
3388
3492
|
#
|
3389
3493
|
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/StepAdjustment AWS API Documentation
|
@@ -3399,22 +3503,12 @@ module Aws::ApplicationAutoScaling
|
|
3399
3503
|
# Represents a step scaling policy configuration to use with Application
|
3400
3504
|
# Auto Scaling.
|
3401
3505
|
#
|
3402
|
-
#
|
3403
|
-
#
|
3404
|
-
#
|
3405
|
-
#
|
3406
|
-
#
|
3407
|
-
#
|
3408
|
-
# {
|
3409
|
-
# metric_interval_lower_bound: 1.0,
|
3410
|
-
# metric_interval_upper_bound: 1.0,
|
3411
|
-
# scaling_adjustment: 1, # required
|
3412
|
-
# },
|
3413
|
-
# ],
|
3414
|
-
# min_adjustment_magnitude: 1,
|
3415
|
-
# cooldown: 1,
|
3416
|
-
# metric_aggregation_type: "Average", # accepts Average, Minimum, Maximum
|
3417
|
-
# }
|
3506
|
+
# For more information, see [Step scaling policies][1] in the
|
3507
|
+
# *Application Auto Scaling User Guide*.
|
3508
|
+
#
|
3509
|
+
#
|
3510
|
+
#
|
3511
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html
|
3418
3512
|
#
|
3419
3513
|
# @!attribute [rw] adjustment_type
|
3420
3514
|
# Specifies how the `ScalingAdjustment` value in a [StepAdjustment][1]
|
@@ -3450,63 +3544,13 @@ module Aws::ApplicationAutoScaling
|
|
3450
3544
|
#
|
3451
3545
|
# @!attribute [rw] cooldown
|
3452
3546
|
# The amount of time, in seconds, to wait for a previous scaling
|
3453
|
-
# activity to take effect.
|
3454
|
-
#
|
3455
|
-
#
|
3456
|
-
# excessively) scale out. After Application Auto Scaling successfully
|
3457
|
-
# scales out using a step scaling policy, it starts to calculate the
|
3458
|
-
# cooldown time. The scaling policy won't increase the desired
|
3459
|
-
# capacity again unless either a larger scale out is triggered or the
|
3460
|
-
# cooldown period ends. While the cooldown period is in effect,
|
3461
|
-
# capacity added by the initiating scale-out activity is calculated as
|
3462
|
-
# part of the desired capacity for the next scale-out activity. For
|
3463
|
-
# example, when an alarm triggers a step scaling policy to increase
|
3464
|
-
# the capacity by 2, the scaling activity completes successfully, and
|
3465
|
-
# a cooldown period starts. If the alarm triggers again during the
|
3466
|
-
# cooldown period but at a more aggressive step adjustment of 3, the
|
3467
|
-
# previous increase of 2 is considered part of the current capacity.
|
3468
|
-
# Therefore, only 1 is added to the capacity.
|
3469
|
-
#
|
3470
|
-
# With scale-in policies, the intention is to scale in conservatively
|
3471
|
-
# to protect your application’s availability, so scale-in activities
|
3472
|
-
# are blocked until the cooldown period has expired. However, if
|
3473
|
-
# another alarm triggers a scale-out activity during the cooldown
|
3474
|
-
# period after a scale-in activity, Application Auto Scaling scales
|
3475
|
-
# out the target immediately. In this case, the cooldown period for
|
3476
|
-
# the scale-in activity stops and doesn't complete.
|
3477
|
-
#
|
3478
|
-
# Application Auto Scaling provides a default value of 600 for Amazon
|
3479
|
-
# ElastiCache replication groups and a default value of 300 for the
|
3480
|
-
# following scalable targets:
|
3547
|
+
# activity to take effect. If not specified, the default value is 300.
|
3548
|
+
# For more information, see [Cooldown period][1] in the *Application
|
3549
|
+
# Auto Scaling User Guide*.
|
3481
3550
|
#
|
3482
|
-
# * AppStream 2.0 fleets
|
3483
3551
|
#
|
3484
|
-
# * Aurora DB clusters
|
3485
|
-
#
|
3486
|
-
# * ECS services
|
3487
|
-
#
|
3488
|
-
# * EMR clusters
|
3489
|
-
#
|
3490
|
-
# * Neptune clusters
|
3491
|
-
#
|
3492
|
-
# * SageMaker endpoint variants
|
3493
|
-
#
|
3494
|
-
# * Spot Fleets
|
3495
|
-
#
|
3496
|
-
# * Custom resources
|
3497
|
-
#
|
3498
|
-
# For all other scalable targets, the default value is 0:
|
3499
|
-
#
|
3500
|
-
# * Amazon Comprehend document classification and entity recognizer
|
3501
|
-
# endpoints
|
3502
3552
|
#
|
3503
|
-
#
|
3504
|
-
#
|
3505
|
-
# * Amazon Keyspaces tables
|
3506
|
-
#
|
3507
|
-
# * Lambda provisioned concurrency
|
3508
|
-
#
|
3509
|
-
# * Amazon MSK broker storage
|
3553
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html#step-scaling-cooldown
|
3510
3554
|
# @return [Integer]
|
3511
3555
|
#
|
3512
3556
|
# @!attribute [rw] metric_aggregation_type
|
@@ -3530,15 +3574,6 @@ module Aws::ApplicationAutoScaling
|
|
3530
3574
|
# Specifies whether the scaling activities for a scalable target are in
|
3531
3575
|
# a suspended state.
|
3532
3576
|
#
|
3533
|
-
# @note When making an API call, you may pass SuspendedState
|
3534
|
-
# data as a hash:
|
3535
|
-
#
|
3536
|
-
# {
|
3537
|
-
# dynamic_scaling_in_suspended: false,
|
3538
|
-
# dynamic_scaling_out_suspended: false,
|
3539
|
-
# scheduled_scaling_suspended: false,
|
3540
|
-
# }
|
3541
|
-
#
|
3542
3577
|
# @!attribute [rw] dynamic_scaling_in_suspended
|
3543
3578
|
# Whether scale in by a target tracking scaling policy or a step
|
3544
3579
|
# scaling policy is suspended. Set the value to `true` if you don't
|
@@ -3569,147 +3604,293 @@ module Aws::ApplicationAutoScaling
|
|
3569
3604
|
include Aws::Structure
|
3570
3605
|
end
|
3571
3606
|
|
3572
|
-
#
|
3573
|
-
# Application Auto Scaling
|
3607
|
+
# @!attribute [rw] resource_arn
|
3608
|
+
# Identifies the Application Auto Scaling scalable target that you
|
3609
|
+
# want to apply tags to.
|
3574
3610
|
#
|
3575
|
-
#
|
3576
|
-
#
|
3577
|
-
#
|
3578
|
-
# {
|
3579
|
-
# target_value: 1.0, # required
|
3580
|
-
# predefined_metric_specification: {
|
3581
|
-
# predefined_metric_type: "DynamoDBReadCapacityUtilization", # required, accepts DynamoDBReadCapacityUtilization, DynamoDBWriteCapacityUtilization, ALBRequestCountPerTarget, RDSReaderAverageCPUUtilization, RDSReaderAverageDatabaseConnections, EC2SpotFleetRequestAverageCPUUtilization, EC2SpotFleetRequestAverageNetworkIn, EC2SpotFleetRequestAverageNetworkOut, SageMakerVariantInvocationsPerInstance, ECSServiceAverageCPUUtilization, ECSServiceAverageMemoryUtilization, AppStreamAverageCapacityUtilization, ComprehendInferenceUtilization, LambdaProvisionedConcurrencyUtilization, CassandraReadCapacityUtilization, CassandraWriteCapacityUtilization, KafkaBrokerStorageUtilization, ElastiCachePrimaryEngineCPUUtilization, ElastiCacheReplicaEngineCPUUtilization, ElastiCacheDatabaseMemoryUsageCountedForEvictPercentage, NeptuneReaderAverageCPUUtilization
|
3582
|
-
# resource_label: "ResourceLabel",
|
3583
|
-
# },
|
3584
|
-
# customized_metric_specification: {
|
3585
|
-
# metric_name: "MetricName", # required
|
3586
|
-
# namespace: "MetricNamespace", # required
|
3587
|
-
# dimensions: [
|
3588
|
-
# {
|
3589
|
-
# name: "MetricDimensionName", # required
|
3590
|
-
# value: "MetricDimensionValue", # required
|
3591
|
-
# },
|
3592
|
-
# ],
|
3593
|
-
# statistic: "Average", # required, accepts Average, Minimum, Maximum, SampleCount, Sum
|
3594
|
-
# unit: "MetricUnit",
|
3595
|
-
# },
|
3596
|
-
# scale_out_cooldown: 1,
|
3597
|
-
# scale_in_cooldown: 1,
|
3598
|
-
# disable_scale_in: false,
|
3599
|
-
# }
|
3611
|
+
# For example:
|
3612
|
+
# `arn:aws:application-autoscaling:us-east-1:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123`
|
3600
3613
|
#
|
3601
|
-
#
|
3602
|
-
#
|
3603
|
-
# numbers of type Double, it won't accept values that are either too
|
3604
|
-
# small or too large. Values must be in the range of -2^360 to 2^360.
|
3605
|
-
# The value must be a valid number based on the choice of metric. For
|
3606
|
-
# example, if the metric is CPU utilization, then the target value is
|
3607
|
-
# a percent value that represents how much of the CPU can be used
|
3608
|
-
# before scaling out.
|
3609
|
-
# @return [Float]
|
3614
|
+
# To get the ARN for a scalable target, use DescribeScalableTargets.
|
3615
|
+
# @return [String]
|
3610
3616
|
#
|
3611
|
-
# @!attribute [rw]
|
3612
|
-
#
|
3613
|
-
#
|
3614
|
-
# @return [Types::PredefinedMetricSpecification]
|
3617
|
+
# @!attribute [rw] tags
|
3618
|
+
# The tags assigned to the resource. A tag is a label that you assign
|
3619
|
+
# to an Amazon Web Services resource.
|
3615
3620
|
#
|
3616
|
-
#
|
3617
|
-
# A customized metric. You can specify either a predefined metric or a
|
3618
|
-
# customized metric.
|
3619
|
-
# @return [Types::CustomizedMetricSpecification]
|
3621
|
+
# Each tag consists of a tag key and a tag value.
|
3620
3622
|
#
|
3621
|
-
#
|
3622
|
-
#
|
3623
|
-
#
|
3624
|
-
#
|
3625
|
-
# With the *scale-out cooldown period*, the intention is to
|
3626
|
-
# continuously (but not excessively) scale out. After Application Auto
|
3627
|
-
# Scaling successfully scales out using a target tracking scaling
|
3628
|
-
# policy, it starts to calculate the cooldown time. The scaling policy
|
3629
|
-
# won't increase the desired capacity again unless either a larger
|
3630
|
-
# scale out is triggered or the cooldown period ends. While the
|
3631
|
-
# cooldown period is in effect, the capacity added by the initiating
|
3632
|
-
# scale-out activity is calculated as part of the desired capacity for
|
3633
|
-
# the next scale-out activity.
|
3634
|
-
#
|
3635
|
-
# Application Auto Scaling provides a default value of 600 for Amazon
|
3636
|
-
# ElastiCache replication groups and a default value of 300 for the
|
3637
|
-
# following scalable targets:
|
3623
|
+
# You cannot have more than one tag on an Application Auto Scaling
|
3624
|
+
# scalable target with the same tag key. If you specify an existing
|
3625
|
+
# tag key with a different tag value, Application Auto Scaling
|
3626
|
+
# replaces the current tag value with the specified one.
|
3638
3627
|
#
|
3639
|
-
#
|
3628
|
+
# For information about the rules that apply to tag keys and tag
|
3629
|
+
# values, see [User-defined tag restrictions][1] in the *Amazon Web
|
3630
|
+
# Services Billing and Cost Management User Guide*.
|
3640
3631
|
#
|
3641
|
-
# * Aurora DB clusters
|
3642
3632
|
#
|
3643
|
-
# * ECS services
|
3644
3633
|
#
|
3645
|
-
#
|
3634
|
+
# [1]: https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/allocation-tag-restrictions.html
|
3635
|
+
# @return [Hash<String,String>]
|
3646
3636
|
#
|
3647
|
-
#
|
3637
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TagResourceRequest AWS API Documentation
|
3648
3638
|
#
|
3649
|
-
|
3639
|
+
class TagResourceRequest < Struct.new(
|
3640
|
+
:resource_arn,
|
3641
|
+
:tags)
|
3642
|
+
SENSITIVE = []
|
3643
|
+
include Aws::Structure
|
3644
|
+
end
|
3645
|
+
|
3646
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TagResourceResponse AWS API Documentation
|
3650
3647
|
#
|
3651
|
-
|
3648
|
+
class TagResourceResponse < Aws::EmptyStructure; end
|
3649
|
+
|
3650
|
+
# Represents a specific metric.
|
3652
3651
|
#
|
3653
|
-
#
|
3652
|
+
# Metric is a property of the TargetTrackingMetricStat object.
|
3654
3653
|
#
|
3655
|
-
#
|
3654
|
+
# @!attribute [rw] dimensions
|
3655
|
+
# The dimensions for the metric. For the list of available dimensions,
|
3656
|
+
# see the Amazon Web Services documentation available from the table
|
3657
|
+
# in [Amazon Web Services services that publish CloudWatch metrics
|
3658
|
+
# ][1] in the *Amazon CloudWatch User Guide*.
|
3656
3659
|
#
|
3657
|
-
#
|
3658
|
-
#
|
3660
|
+
# Conditional: If you published your metric with dimensions, you must
|
3661
|
+
# specify the same dimensions in your scaling policy.
|
3659
3662
|
#
|
3660
|
-
# * DynamoDB tables and global secondary indexes
|
3661
3663
|
#
|
3662
|
-
# * Amazon Keyspaces tables
|
3663
3664
|
#
|
3664
|
-
#
|
3665
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html
|
3666
|
+
# @return [Array<Types::TargetTrackingMetricDimension>]
|
3665
3667
|
#
|
3666
|
-
#
|
3667
|
-
#
|
3668
|
+
# @!attribute [rw] metric_name
|
3669
|
+
# The name of the metric.
|
3670
|
+
# @return [String]
|
3668
3671
|
#
|
3669
|
-
# @!attribute [rw]
|
3670
|
-
# The
|
3671
|
-
#
|
3672
|
+
# @!attribute [rw] namespace
|
3673
|
+
# The namespace of the metric. For more information, see the table in
|
3674
|
+
# [Amazon Web Services services that publish CloudWatch metrics ][1]
|
3675
|
+
# in the *Amazon CloudWatch User Guide*.
|
3672
3676
|
#
|
3673
|
-
# With the *scale-in cooldown period*, the intention is to scale in
|
3674
|
-
# conservatively to protect your application’s availability, so
|
3675
|
-
# scale-in activities are blocked until the cooldown period has
|
3676
|
-
# expired. However, if another alarm triggers a scale-out activity
|
3677
|
-
# during the scale-in cooldown period, Application Auto Scaling scales
|
3678
|
-
# out the target immediately. In this case, the scale-in cooldown
|
3679
|
-
# period stops and doesn't complete.
|
3680
3677
|
#
|
3681
|
-
# Application Auto Scaling provides a default value of 600 for Amazon
|
3682
|
-
# ElastiCache replication groups and a default value of 300 for the
|
3683
|
-
# following scalable targets:
|
3684
3678
|
#
|
3685
|
-
#
|
3679
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html
|
3680
|
+
# @return [String]
|
3686
3681
|
#
|
3687
|
-
#
|
3682
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TargetTrackingMetric AWS API Documentation
|
3688
3683
|
#
|
3689
|
-
|
3684
|
+
class TargetTrackingMetric < Struct.new(
|
3685
|
+
:dimensions,
|
3686
|
+
:metric_name,
|
3687
|
+
:namespace)
|
3688
|
+
SENSITIVE = []
|
3689
|
+
include Aws::Structure
|
3690
|
+
end
|
3691
|
+
|
3692
|
+
# The metric data to return. Also defines whether this call is returning
|
3693
|
+
# data for one metric only, or whether it is performing a math
|
3694
|
+
# expression on the values of returned metric statistics to create a new
|
3695
|
+
# time series. A time series is a series of data points, each of which
|
3696
|
+
# is associated with a timestamp.
|
3690
3697
|
#
|
3691
|
-
#
|
3698
|
+
# For more information and examples, see [Create a target tracking
|
3699
|
+
# scaling policy for Application Auto Scaling using metric math][1] in
|
3700
|
+
# the *Application Auto Scaling User Guide*.
|
3692
3701
|
#
|
3693
|
-
# * Neptune clusters
|
3694
3702
|
#
|
3695
|
-
# * SageMaker endpoint variants
|
3696
3703
|
#
|
3697
|
-
#
|
3704
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking-metric-math.html
|
3705
|
+
#
|
3706
|
+
# @!attribute [rw] expression
|
3707
|
+
# The math expression to perform on the returned data, if this object
|
3708
|
+
# is performing a math expression. This expression can use the `Id` of
|
3709
|
+
# the other metrics to refer to those metrics, and can also use the
|
3710
|
+
# `Id` of other expressions to use the result of those expressions.
|
3698
3711
|
#
|
3699
|
-
#
|
3712
|
+
# Conditional: Within each `TargetTrackingMetricDataQuery` object, you
|
3713
|
+
# must specify either `Expression` or `MetricStat`, but not both.
|
3714
|
+
# @return [String]
|
3700
3715
|
#
|
3701
|
-
#
|
3716
|
+
# @!attribute [rw] id
|
3717
|
+
# A short name that identifies the object's results in the response.
|
3718
|
+
# This name must be unique among all `MetricDataQuery` objects
|
3719
|
+
# specified for a single scaling policy. If you are performing math
|
3720
|
+
# expressions on this set of data, this name represents that data and
|
3721
|
+
# can serve as a variable in the mathematical expression. The valid
|
3722
|
+
# characters are letters, numbers, and underscores. The first
|
3723
|
+
# character must be a lowercase letter.
|
3724
|
+
# @return [String]
|
3702
3725
|
#
|
3703
|
-
#
|
3704
|
-
#
|
3726
|
+
# @!attribute [rw] label
|
3727
|
+
# A human-readable label for this metric or expression. This is
|
3728
|
+
# especially useful if this is a math expression, so that you know
|
3729
|
+
# what the value represents.
|
3730
|
+
# @return [String]
|
3705
3731
|
#
|
3706
|
-
#
|
3732
|
+
# @!attribute [rw] metric_stat
|
3733
|
+
# Information about the metric data to return.
|
3707
3734
|
#
|
3708
|
-
#
|
3735
|
+
# Conditional: Within each `MetricDataQuery` object, you must specify
|
3736
|
+
# either `Expression` or `MetricStat`, but not both.
|
3737
|
+
# @return [Types::TargetTrackingMetricStat]
|
3709
3738
|
#
|
3710
|
-
#
|
3739
|
+
# @!attribute [rw] return_data
|
3740
|
+
# Indicates whether to return the timestamps and raw data values of
|
3741
|
+
# this metric.
|
3742
|
+
#
|
3743
|
+
# If you use any math expressions, specify `true` for this value for
|
3744
|
+
# only the final math expression that the metric specification is
|
3745
|
+
# based on. You must specify `false` for `ReturnData` for all the
|
3746
|
+
# other metrics and expressions used in the metric specification.
|
3747
|
+
#
|
3748
|
+
# If you are only retrieving metrics and not performing any math
|
3749
|
+
# expressions, do not specify anything for `ReturnData`. This sets it
|
3750
|
+
# to its default (`true`).
|
3751
|
+
# @return [Boolean]
|
3752
|
+
#
|
3753
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TargetTrackingMetricDataQuery AWS API Documentation
|
3754
|
+
#
|
3755
|
+
class TargetTrackingMetricDataQuery < Struct.new(
|
3756
|
+
:expression,
|
3757
|
+
:id,
|
3758
|
+
:label,
|
3759
|
+
:metric_stat,
|
3760
|
+
:return_data)
|
3761
|
+
SENSITIVE = []
|
3762
|
+
include Aws::Structure
|
3763
|
+
end
|
3764
|
+
|
3765
|
+
# Describes the dimension of a metric.
|
3766
|
+
#
|
3767
|
+
# @!attribute [rw] name
|
3768
|
+
# The name of the dimension.
|
3769
|
+
# @return [String]
|
3770
|
+
#
|
3771
|
+
# @!attribute [rw] value
|
3772
|
+
# The value of the dimension.
|
3773
|
+
# @return [String]
|
3774
|
+
#
|
3775
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TargetTrackingMetricDimension AWS API Documentation
|
3711
3776
|
#
|
3712
|
-
|
3777
|
+
class TargetTrackingMetricDimension < Struct.new(
|
3778
|
+
:name,
|
3779
|
+
:value)
|
3780
|
+
SENSITIVE = []
|
3781
|
+
include Aws::Structure
|
3782
|
+
end
|
3783
|
+
|
3784
|
+
# This structure defines the CloudWatch metric to return, along with the
|
3785
|
+
# statistic, period, and unit.
|
3786
|
+
#
|
3787
|
+
# For more information about the CloudWatch terminology below, see
|
3788
|
+
# [Amazon CloudWatch concepts][1] in the *Amazon CloudWatch User Guide*.
|
3789
|
+
#
|
3790
|
+
#
|
3791
|
+
#
|
3792
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html
|
3793
|
+
#
|
3794
|
+
# @!attribute [rw] metric
|
3795
|
+
# The CloudWatch metric to return, including the metric name,
|
3796
|
+
# namespace, and dimensions. To get the exact metric name, namespace,
|
3797
|
+
# and dimensions, inspect the [Metric][1] object that is returned by a
|
3798
|
+
# call to [ListMetrics][2].
|
3799
|
+
#
|
3800
|
+
#
|
3801
|
+
#
|
3802
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_Metric.html
|
3803
|
+
# [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html
|
3804
|
+
# @return [Types::TargetTrackingMetric]
|
3805
|
+
#
|
3806
|
+
# @!attribute [rw] stat
|
3807
|
+
# The statistic to return. It can include any CloudWatch statistic or
|
3808
|
+
# extended statistic. For a list of valid values, see the table in
|
3809
|
+
# [Statistics][1] in the *Amazon CloudWatch User Guide*.
|
3810
|
+
#
|
3811
|
+
# The most commonly used metric for scaling is `Average`.
|
3812
|
+
#
|
3813
|
+
#
|
3814
|
+
#
|
3815
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Statistic
|
3816
|
+
# @return [String]
|
3817
|
+
#
|
3818
|
+
# @!attribute [rw] unit
|
3819
|
+
# The unit to use for the returned data points. For a complete list of
|
3820
|
+
# the units that CloudWatch supports, see the [MetricDatum][1] data
|
3821
|
+
# type in the *Amazon CloudWatch API Reference*.
|
3822
|
+
#
|
3823
|
+
#
|
3824
|
+
#
|
3825
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html
|
3826
|
+
# @return [String]
|
3827
|
+
#
|
3828
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TargetTrackingMetricStat AWS API Documentation
|
3829
|
+
#
|
3830
|
+
class TargetTrackingMetricStat < Struct.new(
|
3831
|
+
:metric,
|
3832
|
+
:stat,
|
3833
|
+
:unit)
|
3834
|
+
SENSITIVE = []
|
3835
|
+
include Aws::Structure
|
3836
|
+
end
|
3837
|
+
|
3838
|
+
# Represents a target tracking scaling policy configuration to use with
|
3839
|
+
# Application Auto Scaling.
|
3840
|
+
#
|
3841
|
+
# For more information, see [Target tracking scaling policies][1] in the
|
3842
|
+
# *Application Auto Scaling User Guide*.
|
3843
|
+
#
|
3844
|
+
#
|
3845
|
+
#
|
3846
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html
|
3847
|
+
#
|
3848
|
+
# @!attribute [rw] target_value
|
3849
|
+
# The target value for the metric. Although this property accepts
|
3850
|
+
# numbers of type Double, it won't accept values that are either too
|
3851
|
+
# small or too large. Values must be in the range of -2^360 to 2^360.
|
3852
|
+
# The value must be a valid number based on the choice of metric. For
|
3853
|
+
# example, if the metric is CPU utilization, then the target value is
|
3854
|
+
# a percent value that represents how much of the CPU can be used
|
3855
|
+
# before scaling out.
|
3856
|
+
#
|
3857
|
+
# <note markdown="1"> If the scaling policy specifies the `ALBRequestCountPerTarget`
|
3858
|
+
# predefined metric, specify the target utilization as the optimal
|
3859
|
+
# average request count per target during any one-minute interval.
|
3860
|
+
#
|
3861
|
+
# </note>
|
3862
|
+
# @return [Float]
|
3863
|
+
#
|
3864
|
+
# @!attribute [rw] predefined_metric_specification
|
3865
|
+
# A predefined metric. You can specify either a predefined metric or a
|
3866
|
+
# customized metric.
|
3867
|
+
# @return [Types::PredefinedMetricSpecification]
|
3868
|
+
#
|
3869
|
+
# @!attribute [rw] customized_metric_specification
|
3870
|
+
# A customized metric. You can specify either a predefined metric or a
|
3871
|
+
# customized metric.
|
3872
|
+
# @return [Types::CustomizedMetricSpecification]
|
3873
|
+
#
|
3874
|
+
# @!attribute [rw] scale_out_cooldown
|
3875
|
+
# The amount of time, in seconds, to wait for a previous scale-out
|
3876
|
+
# activity to take effect. For more information and for default
|
3877
|
+
# values, see [Define cooldown periods][1] in the *Application Auto
|
3878
|
+
# Scaling User Guide*.
|
3879
|
+
#
|
3880
|
+
#
|
3881
|
+
#
|
3882
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html#target-tracking-cooldown
|
3883
|
+
# @return [Integer]
|
3884
|
+
#
|
3885
|
+
# @!attribute [rw] scale_in_cooldown
|
3886
|
+
# The amount of time, in seconds, after a scale-in activity completes
|
3887
|
+
# before another scale-in activity can start. For more information and
|
3888
|
+
# for default values, see [Define cooldown periods][1] in the
|
3889
|
+
# *Application Auto Scaling User Guide*.
|
3890
|
+
#
|
3891
|
+
#
|
3892
|
+
#
|
3893
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html#target-tracking-cooldown
|
3713
3894
|
# @return [Integer]
|
3714
3895
|
#
|
3715
3896
|
# @!attribute [rw] disable_scale_in
|
@@ -3734,6 +3915,53 @@ module Aws::ApplicationAutoScaling
|
|
3734
3915
|
include Aws::Structure
|
3735
3916
|
end
|
3736
3917
|
|
3918
|
+
# The request contains too many tags. Try the request again with fewer
|
3919
|
+
# tags.
|
3920
|
+
#
|
3921
|
+
# @!attribute [rw] message
|
3922
|
+
# @return [String]
|
3923
|
+
#
|
3924
|
+
# @!attribute [rw] resource_name
|
3925
|
+
# The name of the Application Auto Scaling resource. This value is an
|
3926
|
+
# Amazon Resource Name (ARN).
|
3927
|
+
# @return [String]
|
3928
|
+
#
|
3929
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TooManyTagsException AWS API Documentation
|
3930
|
+
#
|
3931
|
+
class TooManyTagsException < Struct.new(
|
3932
|
+
:message,
|
3933
|
+
:resource_name)
|
3934
|
+
SENSITIVE = []
|
3935
|
+
include Aws::Structure
|
3936
|
+
end
|
3937
|
+
|
3938
|
+
# @!attribute [rw] resource_arn
|
3939
|
+
# Identifies the Application Auto Scaling scalable target from which
|
3940
|
+
# to remove tags.
|
3941
|
+
#
|
3942
|
+
# For example:
|
3943
|
+
# `arn:aws:application-autoscaling:us-east-1:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123`
|
3944
|
+
#
|
3945
|
+
# To get the ARN for a scalable target, use DescribeScalableTargets.
|
3946
|
+
# @return [String]
|
3947
|
+
#
|
3948
|
+
# @!attribute [rw] tag_keys
|
3949
|
+
# One or more tag keys. Specify only the tag keys, not the tag values.
|
3950
|
+
# @return [Array<String>]
|
3951
|
+
#
|
3952
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/UntagResourceRequest AWS API Documentation
|
3953
|
+
#
|
3954
|
+
class UntagResourceRequest < Struct.new(
|
3955
|
+
:resource_arn,
|
3956
|
+
:tag_keys)
|
3957
|
+
SENSITIVE = []
|
3958
|
+
include Aws::Structure
|
3959
|
+
end
|
3960
|
+
|
3961
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/UntagResourceResponse AWS API Documentation
|
3962
|
+
#
|
3963
|
+
class UntagResourceResponse < Aws::EmptyStructure; end
|
3964
|
+
|
3737
3965
|
# An exception was thrown for a validation issue. Review the available
|
3738
3966
|
# parameters for the API request.
|
3739
3967
|
#
|