aws-sdk-applicationautoscaling 1.62.0 → 1.64.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-applicationautoscaling/client.rb +105 -28
- data/lib/aws-sdk-applicationautoscaling/client_api.rb +13 -0
- data/lib/aws-sdk-applicationautoscaling/endpoint_parameters.rb +69 -0
- data/lib/aws-sdk-applicationautoscaling/endpoint_provider.rb +113 -0
- data/lib/aws-sdk-applicationautoscaling/endpoints.rb +155 -0
- data/lib/aws-sdk-applicationautoscaling/plugins/endpoints.rb +88 -0
- data/lib/aws-sdk-applicationautoscaling/types.rb +175 -297
- data/lib/aws-sdk-applicationautoscaling.rb +5 -1
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b84e055565a9c19315e0cb99d64037314149ab50761b7b832e1621dad83412c5
|
4
|
+
data.tar.gz: dfad208b526faeb4e2c835b01a1af7496e0b1de5279087f7e85286bd01b082c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36a80ef892e8373a73acdcf70d15edaf4528a14a96fdf0475792634c692a8e37f3702cb0e32c885221cca9e38c6b3e3288441ddada415de514bc7f2873d325ef
|
7
|
+
data.tar.gz: e86e4f47069eb6db84c4c8ceedefe0d2482d0c82d0a6929badb85de83e9b67ca3b639837ce01efe1c98aa1e9a15054153f56a4e900302c18d5c57a3ca10e2ede
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.64.0 (2023-01-04)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Customers can now use the existing DescribeScalingActivities API to also see the detailed and machine-readable reasons for Application Auto Scaling not scaling their resources and, if needed, take the necessary corrective actions.
|
8
|
+
|
9
|
+
1.63.0 (2022-10-25)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.62.0 (2022-02-24)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.64.0
|
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
|
|
30
30
|
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
31
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
32
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
33
|
-
require 'aws-sdk-core/plugins/
|
33
|
+
require 'aws-sdk-core/plugins/sign.rb'
|
34
34
|
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
35
35
|
|
36
36
|
Aws::Plugins::GlobalConfiguration.add_identifier(:applicationautoscaling)
|
@@ -79,8 +79,9 @@ module Aws::ApplicationAutoScaling
|
|
79
79
|
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
80
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
81
81
|
add_plugin(Aws::Plugins::RecursionDetection)
|
82
|
-
add_plugin(Aws::Plugins::
|
82
|
+
add_plugin(Aws::Plugins::Sign)
|
83
83
|
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
84
|
+
add_plugin(Aws::ApplicationAutoScaling::Plugins::Endpoints)
|
84
85
|
|
85
86
|
# @overload initialize(options)
|
86
87
|
# @param [Hash] options
|
@@ -297,6 +298,19 @@ module Aws::ApplicationAutoScaling
|
|
297
298
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
298
299
|
# requests are made, and retries are disabled.
|
299
300
|
#
|
301
|
+
# @option options [Aws::TokenProvider] :token_provider
|
302
|
+
# A Bearer Token Provider. This can be an instance of any one of the
|
303
|
+
# following classes:
|
304
|
+
#
|
305
|
+
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
306
|
+
# tokens.
|
307
|
+
#
|
308
|
+
# * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
|
309
|
+
# access token generated from `aws login`.
|
310
|
+
#
|
311
|
+
# When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
|
312
|
+
# will be used to search for tokens configured for your profile in shared configuration files.
|
313
|
+
#
|
300
314
|
# @option options [Boolean] :use_dualstack_endpoint
|
301
315
|
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
302
316
|
# will be used if available.
|
@@ -310,6 +324,9 @@ module Aws::ApplicationAutoScaling
|
|
310
324
|
# When `true`, request parameters are validated before
|
311
325
|
# sending the request.
|
312
326
|
#
|
327
|
+
# @option options [Aws::ApplicationAutoScaling::EndpointProvider] :endpoint_provider
|
328
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::ApplicationAutoScaling::EndpointParameters`
|
329
|
+
#
|
313
330
|
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
314
331
|
# requests through. Formatted like 'http://proxy.com:123'.
|
315
332
|
#
|
@@ -490,7 +507,7 @@ module Aws::ApplicationAutoScaling
|
|
490
507
|
# Aurora PostgreSQL-compatible edition.
|
491
508
|
#
|
492
509
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
493
|
-
# instances for
|
510
|
+
# instances for a SageMaker model endpoint variant.
|
494
511
|
#
|
495
512
|
# * `custom-resource:ResourceType:Property` - The scalable dimension for
|
496
513
|
# a custom resource provided by your own application or service.
|
@@ -684,7 +701,7 @@ module Aws::ApplicationAutoScaling
|
|
684
701
|
# Aurora PostgreSQL-compatible edition.
|
685
702
|
#
|
686
703
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
687
|
-
# instances for
|
704
|
+
# instances for a SageMaker model endpoint variant.
|
688
705
|
#
|
689
706
|
# * `custom-resource:ResourceType:Property` - The scalable dimension for
|
690
707
|
# a custom resource provided by your own application or service.
|
@@ -862,7 +879,7 @@ module Aws::ApplicationAutoScaling
|
|
862
879
|
# Aurora PostgreSQL-compatible edition.
|
863
880
|
#
|
864
881
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
865
|
-
# instances for
|
882
|
+
# instances for a SageMaker model endpoint variant.
|
866
883
|
#
|
867
884
|
# * `custom-resource:ResourceType:Property` - The scalable dimension for
|
868
885
|
# a custom resource provided by your own application or service.
|
@@ -1049,7 +1066,7 @@ module Aws::ApplicationAutoScaling
|
|
1049
1066
|
# Aurora PostgreSQL-compatible edition.
|
1050
1067
|
#
|
1051
1068
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
1052
|
-
# instances for
|
1069
|
+
# instances for a SageMaker model endpoint variant.
|
1053
1070
|
#
|
1054
1071
|
# * `custom-resource:ResourceType:Property` - The scalable dimension for
|
1055
1072
|
# a custom resource provided by your own application or service.
|
@@ -1171,6 +1188,14 @@ module Aws::ApplicationAutoScaling
|
|
1171
1188
|
#
|
1172
1189
|
# You can filter the results using `ResourceId` and `ScalableDimension`.
|
1173
1190
|
#
|
1191
|
+
# For information about viewing scaling activities using the Amazon Web
|
1192
|
+
# Services CLI, see [Scaling activities for Application Auto
|
1193
|
+
# Scaling][1].
|
1194
|
+
#
|
1195
|
+
#
|
1196
|
+
#
|
1197
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scaling-activities.html
|
1198
|
+
#
|
1174
1199
|
# @option params [required, String] :service_namespace
|
1175
1200
|
# The namespace of the Amazon Web Services service that provides the
|
1176
1201
|
# resource. For a resource provided by your own application or service,
|
@@ -1282,7 +1307,7 @@ module Aws::ApplicationAutoScaling
|
|
1282
1307
|
# Aurora PostgreSQL-compatible edition.
|
1283
1308
|
#
|
1284
1309
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
1285
|
-
# instances for
|
1310
|
+
# instances for a SageMaker model endpoint variant.
|
1286
1311
|
#
|
1287
1312
|
# * `custom-resource:ResourceType:Property` - The scalable dimension for
|
1288
1313
|
# a custom resource provided by your own application or service.
|
@@ -1329,6 +1354,18 @@ module Aws::ApplicationAutoScaling
|
|
1329
1354
|
# @option params [String] :next_token
|
1330
1355
|
# The token for the next set of results.
|
1331
1356
|
#
|
1357
|
+
# @option params [Boolean] :include_not_scaled_activities
|
1358
|
+
# Specifies whether to include activities that aren't scaled (*not
|
1359
|
+
# scaled activities*) in the response. Not scaled activities are
|
1360
|
+
# activities that aren't completed or started for various reasons, such
|
1361
|
+
# as preventing infinite scaling loops. For help interpreting the not
|
1362
|
+
# scaled reason details in the response, see [Scaling activities for
|
1363
|
+
# Application Auto Scaling][1].
|
1364
|
+
#
|
1365
|
+
#
|
1366
|
+
#
|
1367
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scaling-activities.html
|
1368
|
+
#
|
1332
1369
|
# @return [Types::DescribeScalingActivitiesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1333
1370
|
#
|
1334
1371
|
# * {Types::DescribeScalingActivitiesResponse#scaling_activities #scaling_activities} => Array<Types::ScalingActivity>
|
@@ -1374,6 +1411,7 @@ module Aws::ApplicationAutoScaling
|
|
1374
1411
|
# 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
|
1375
1412
|
# max_results: 1,
|
1376
1413
|
# next_token: "XmlString",
|
1414
|
+
# include_not_scaled_activities: false,
|
1377
1415
|
# })
|
1378
1416
|
#
|
1379
1417
|
# @example Response structure
|
@@ -1390,6 +1428,11 @@ module Aws::ApplicationAutoScaling
|
|
1390
1428
|
# resp.scaling_activities[0].status_code #=> String, one of "Pending", "InProgress", "Successful", "Overridden", "Unfulfilled", "Failed"
|
1391
1429
|
# resp.scaling_activities[0].status_message #=> String
|
1392
1430
|
# resp.scaling_activities[0].details #=> String
|
1431
|
+
# resp.scaling_activities[0].not_scaled_reasons #=> Array
|
1432
|
+
# resp.scaling_activities[0].not_scaled_reasons[0].code #=> String
|
1433
|
+
# resp.scaling_activities[0].not_scaled_reasons[0].max_capacity #=> Integer
|
1434
|
+
# resp.scaling_activities[0].not_scaled_reasons[0].min_capacity #=> Integer
|
1435
|
+
# resp.scaling_activities[0].not_scaled_reasons[0].current_capacity #=> Integer
|
1393
1436
|
# resp.next_token #=> String
|
1394
1437
|
#
|
1395
1438
|
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingActivities AWS API Documentation
|
@@ -1530,7 +1573,7 @@ module Aws::ApplicationAutoScaling
|
|
1530
1573
|
# Aurora PostgreSQL-compatible edition.
|
1531
1574
|
#
|
1532
1575
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
1533
|
-
# instances for
|
1576
|
+
# instances for a SageMaker model endpoint variant.
|
1534
1577
|
#
|
1535
1578
|
# * `custom-resource:ResourceType:Property` - The scalable dimension for
|
1536
1579
|
# a custom resource provided by your own application or service.
|
@@ -1809,7 +1852,7 @@ module Aws::ApplicationAutoScaling
|
|
1809
1852
|
# Aurora PostgreSQL-compatible edition.
|
1810
1853
|
#
|
1811
1854
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
1812
|
-
# instances for
|
1855
|
+
# instances for a SageMaker model endpoint variant.
|
1813
1856
|
#
|
1814
1857
|
# * `custom-resource:ResourceType:Property` - The scalable dimension for
|
1815
1858
|
# a custom resource provided by your own application or service.
|
@@ -1947,6 +1990,10 @@ module Aws::ApplicationAutoScaling
|
|
1947
1990
|
# @option params [required, String] :policy_name
|
1948
1991
|
# The name of the scaling policy.
|
1949
1992
|
#
|
1993
|
+
# You cannot change the name of a scaling policy, but you can delete the
|
1994
|
+
# original scaling policy and create a new scaling policy with the same
|
1995
|
+
# settings and a different name.
|
1996
|
+
#
|
1950
1997
|
# @option params [required, String] :service_namespace
|
1951
1998
|
# The namespace of the Amazon Web Services service that provides the
|
1952
1999
|
# resource. For a resource provided by your own application or service,
|
@@ -2057,7 +2104,7 @@ module Aws::ApplicationAutoScaling
|
|
2057
2104
|
# Aurora PostgreSQL-compatible edition.
|
2058
2105
|
#
|
2059
2106
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
2060
|
-
# instances for
|
2107
|
+
# instances for a SageMaker model endpoint variant.
|
2061
2108
|
#
|
2062
2109
|
# * `custom-resource:ResourceType:Property` - The scalable dimension for
|
2063
2110
|
# a custom resource provided by your own application or service.
|
@@ -2092,8 +2139,8 @@ module Aws::ApplicationAutoScaling
|
|
2092
2139
|
# an Amazon Neptune DB cluster.
|
2093
2140
|
#
|
2094
2141
|
# @option params [String] :policy_type
|
2095
|
-
# The policy type. This parameter is required if you are
|
2096
|
-
# scaling policy.
|
2142
|
+
# The scaling policy type. This parameter is required if you are
|
2143
|
+
# creating a scaling policy.
|
2097
2144
|
#
|
2098
2145
|
# The following policy types are supported:
|
2099
2146
|
#
|
@@ -2417,7 +2464,7 @@ module Aws::ApplicationAutoScaling
|
|
2417
2464
|
# Aurora PostgreSQL-compatible edition.
|
2418
2465
|
#
|
2419
2466
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
2420
|
-
# instances for
|
2467
|
+
# instances for a SageMaker model endpoint variant.
|
2421
2468
|
#
|
2422
2469
|
# * `custom-resource:ResourceType:Property` - The scalable dimension for
|
2423
2470
|
# a custom resource provided by your own application or service.
|
@@ -2492,17 +2539,23 @@ module Aws::ApplicationAutoScaling
|
|
2492
2539
|
req.send_request(options)
|
2493
2540
|
end
|
2494
2541
|
|
2495
|
-
# Registers or updates a scalable target
|
2542
|
+
# Registers or updates a scalable target, the resource that you want to
|
2543
|
+
# scale.
|
2496
2544
|
#
|
2497
|
-
#
|
2498
|
-
#
|
2499
|
-
#
|
2545
|
+
# Scalable targets are uniquely identified by the combination of
|
2546
|
+
# resource ID, scalable dimension, and namespace, which represents some
|
2547
|
+
# capacity dimension of the underlying service.
|
2500
2548
|
#
|
2501
2549
|
# When you register a new scalable target, you must specify values for
|
2502
|
-
# minimum and maximum capacity.
|
2503
|
-
# the
|
2504
|
-
#
|
2505
|
-
# this range.
|
2550
|
+
# the minimum and maximum capacity. If the specified resource is not
|
2551
|
+
# active in the target service, this operation does not change the
|
2552
|
+
# resource's current capacity. Otherwise, it changes the resource's
|
2553
|
+
# current capacity to a value that is inside of this range.
|
2554
|
+
#
|
2555
|
+
# If you choose to add a scaling policy, current capacity is adjustable
|
2556
|
+
# within the specified range when scaling starts. Application Auto
|
2557
|
+
# Scaling scaling policies will not scale capacity to values that are
|
2558
|
+
# outside of the minimum and maximum range.
|
2506
2559
|
#
|
2507
2560
|
# After you register a scalable target, you do not need to register it
|
2508
2561
|
# again to use other Application Auto Scaling operations. To see which
|
@@ -2642,7 +2695,7 @@ module Aws::ApplicationAutoScaling
|
|
2642
2695
|
# Aurora PostgreSQL-compatible edition.
|
2643
2696
|
#
|
2644
2697
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
2645
|
-
# instances for
|
2698
|
+
# instances for a SageMaker model endpoint variant.
|
2646
2699
|
#
|
2647
2700
|
# * `custom-resource:ResourceType:Property` - The scalable dimension for
|
2648
2701
|
# a custom resource provided by your own application or service.
|
@@ -2682,10 +2735,34 @@ module Aws::ApplicationAutoScaling
|
|
2682
2735
|
# needed to the minimum capacity limit in response to changing demand.
|
2683
2736
|
# This property is required when registering a new scalable target.
|
2684
2737
|
#
|
2685
|
-
# For
|
2686
|
-
#
|
2687
|
-
#
|
2688
|
-
#
|
2738
|
+
# For the following resources, the minimum value allowed is 0.
|
2739
|
+
#
|
2740
|
+
# * AppStream 2.0 fleets
|
2741
|
+
#
|
2742
|
+
# * Aurora DB clusters
|
2743
|
+
#
|
2744
|
+
# * ECS services
|
2745
|
+
#
|
2746
|
+
# * EMR clusters
|
2747
|
+
#
|
2748
|
+
# * Lambda provisioned concurrency
|
2749
|
+
#
|
2750
|
+
# * SageMaker endpoint variants
|
2751
|
+
#
|
2752
|
+
# * Spot Fleets
|
2753
|
+
#
|
2754
|
+
# * custom resources
|
2755
|
+
#
|
2756
|
+
# It's strongly recommended that you specify a value greater than 0. A
|
2757
|
+
# value greater than 0 means that data points are continuously reported
|
2758
|
+
# to CloudWatch that scaling policies can use to scale on a metric like
|
2759
|
+
# average CPU utilization.
|
2760
|
+
#
|
2761
|
+
# For all other resources, the minimum allowed value depends on the type
|
2762
|
+
# of resource that you are using. If you provide a value that is lower
|
2763
|
+
# than what a resource can accept, an error occurs. In which case, the
|
2764
|
+
# error message will provide the minimum value that the resource can
|
2765
|
+
# accept.
|
2689
2766
|
#
|
2690
2767
|
# @option params [Integer] :max_capacity
|
2691
2768
|
# The maximum value that you plan to scale out to. When a scaling policy
|
@@ -2699,7 +2776,7 @@ module Aws::ApplicationAutoScaling
|
|
2699
2776
|
# specify a higher limit, you can request an increase. For more
|
2700
2777
|
# information, consult the documentation for that service. For
|
2701
2778
|
# information about the default quotas for each service, see [Service
|
2702
|
-
#
|
2779
|
+
# endpoints and quotas][1] in the *Amazon Web Services General
|
2703
2780
|
# Reference*.
|
2704
2781
|
#
|
2705
2782
|
#
|
@@ -2801,7 +2878,7 @@ module Aws::ApplicationAutoScaling
|
|
2801
2878
|
params: params,
|
2802
2879
|
config: config)
|
2803
2880
|
context[:gem_name] = 'aws-sdk-applicationautoscaling'
|
2804
|
-
context[:gem_version] = '1.
|
2881
|
+
context[:gem_version] = '1.64.0'
|
2805
2882
|
Seahorse::Client::Request.new(handlers, context)
|
2806
2883
|
end
|
2807
2884
|
|
@@ -36,6 +36,7 @@ module Aws::ApplicationAutoScaling
|
|
36
36
|
DisableScaleIn = Shapes::BooleanShape.new(name: 'DisableScaleIn')
|
37
37
|
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
38
38
|
FailedResourceAccessException = Shapes::StructureShape.new(name: 'FailedResourceAccessException')
|
39
|
+
IncludeNotScaledActivities = Shapes::BooleanShape.new(name: 'IncludeNotScaledActivities')
|
39
40
|
InternalServiceException = Shapes::StructureShape.new(name: 'InternalServiceException')
|
40
41
|
InvalidNextTokenException = Shapes::StructureShape.new(name: 'InvalidNextTokenException')
|
41
42
|
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
@@ -52,6 +53,8 @@ module Aws::ApplicationAutoScaling
|
|
52
53
|
MetricType = Shapes::StringShape.new(name: 'MetricType')
|
53
54
|
MetricUnit = Shapes::StringShape.new(name: 'MetricUnit')
|
54
55
|
MinAdjustmentMagnitude = Shapes::IntegerShape.new(name: 'MinAdjustmentMagnitude')
|
56
|
+
NotScaledReason = Shapes::StructureShape.new(name: 'NotScaledReason')
|
57
|
+
NotScaledReasons = Shapes::ListShape.new(name: 'NotScaledReasons')
|
55
58
|
ObjectNotFoundException = Shapes::StructureShape.new(name: 'ObjectNotFoundException')
|
56
59
|
PolicyName = Shapes::StringShape.new(name: 'PolicyName')
|
57
60
|
PolicyType = Shapes::StringShape.new(name: 'PolicyType')
|
@@ -146,6 +149,7 @@ module Aws::ApplicationAutoScaling
|
|
146
149
|
DescribeScalingActivitiesRequest.add_member(:scalable_dimension, Shapes::ShapeRef.new(shape: ScalableDimension, location_name: "ScalableDimension"))
|
147
150
|
DescribeScalingActivitiesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
148
151
|
DescribeScalingActivitiesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: XmlString, location_name: "NextToken"))
|
152
|
+
DescribeScalingActivitiesRequest.add_member(:include_not_scaled_activities, Shapes::ShapeRef.new(shape: IncludeNotScaledActivities, location_name: "IncludeNotScaledActivities"))
|
149
153
|
DescribeScalingActivitiesRequest.struct_class = Types::DescribeScalingActivitiesRequest
|
150
154
|
|
151
155
|
DescribeScalingActivitiesResponse.add_member(:scaling_activities, Shapes::ShapeRef.new(shape: ScalingActivities, location_name: "ScalingActivities"))
|
@@ -194,6 +198,14 @@ module Aws::ApplicationAutoScaling
|
|
194
198
|
|
195
199
|
MetricDimensions.member = Shapes::ShapeRef.new(shape: MetricDimension)
|
196
200
|
|
201
|
+
NotScaledReason.add_member(:code, Shapes::ShapeRef.new(shape: XmlString, required: true, location_name: "Code"))
|
202
|
+
NotScaledReason.add_member(:max_capacity, Shapes::ShapeRef.new(shape: ResourceCapacity, location_name: "MaxCapacity"))
|
203
|
+
NotScaledReason.add_member(:min_capacity, Shapes::ShapeRef.new(shape: ResourceCapacity, location_name: "MinCapacity"))
|
204
|
+
NotScaledReason.add_member(:current_capacity, Shapes::ShapeRef.new(shape: ResourceCapacity, location_name: "CurrentCapacity"))
|
205
|
+
NotScaledReason.struct_class = Types::NotScaledReason
|
206
|
+
|
207
|
+
NotScaledReasons.member = Shapes::ShapeRef.new(shape: NotScaledReason)
|
208
|
+
|
197
209
|
ObjectNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
198
210
|
ObjectNotFoundException.struct_class = Types::ObjectNotFoundException
|
199
211
|
|
@@ -269,6 +281,7 @@ module Aws::ApplicationAutoScaling
|
|
269
281
|
ScalingActivity.add_member(:status_code, Shapes::ShapeRef.new(shape: ScalingActivityStatusCode, required: true, location_name: "StatusCode"))
|
270
282
|
ScalingActivity.add_member(:status_message, Shapes::ShapeRef.new(shape: XmlString, location_name: "StatusMessage"))
|
271
283
|
ScalingActivity.add_member(:details, Shapes::ShapeRef.new(shape: XmlString, location_name: "Details"))
|
284
|
+
ScalingActivity.add_member(:not_scaled_reasons, Shapes::ShapeRef.new(shape: NotScaledReasons, location_name: "NotScaledReasons"))
|
272
285
|
ScalingActivity.struct_class = Types::ScalingActivity
|
273
286
|
|
274
287
|
ScalingPolicies.member = Shapes::ShapeRef.new(shape: ScalingPolicy)
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::ApplicationAutoScaling
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
12
|
+
#
|
13
|
+
# @!attribute region
|
14
|
+
# The AWS region used to dispatch the request.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @!attribute use_dual_stack
|
19
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute use_fips
|
24
|
+
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
25
|
+
#
|
26
|
+
# @return [Boolean]
|
27
|
+
#
|
28
|
+
# @!attribute endpoint
|
29
|
+
# Override the endpoint used to send this request
|
30
|
+
#
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
|
+
EndpointParameters = Struct.new(
|
34
|
+
:region,
|
35
|
+
:use_dual_stack,
|
36
|
+
:use_fips,
|
37
|
+
:endpoint,
|
38
|
+
) do
|
39
|
+
include Aws::Structure
|
40
|
+
|
41
|
+
# @api private
|
42
|
+
class << self
|
43
|
+
PARAM_MAP = {
|
44
|
+
'Region' => :region,
|
45
|
+
'UseDualStack' => :use_dual_stack,
|
46
|
+
'UseFIPS' => :use_fips,
|
47
|
+
'Endpoint' => :endpoint,
|
48
|
+
}.freeze
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(options = {})
|
52
|
+
self[:region] = options[:region]
|
53
|
+
if self[:region].nil?
|
54
|
+
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
+
end
|
56
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
57
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
58
|
+
if self[:use_dual_stack].nil?
|
59
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
60
|
+
end
|
61
|
+
self[:use_fips] = options[:use_fips]
|
62
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
63
|
+
if self[:use_fips].nil?
|
64
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
65
|
+
end
|
66
|
+
self[:endpoint] = options[:endpoint]
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,113 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::ApplicationAutoScaling
|
11
|
+
class EndpointProvider
|
12
|
+
def initialize(rule_set = nil)
|
13
|
+
@@rule_set ||= begin
|
14
|
+
endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
|
15
|
+
Aws::Endpoints::RuleSet.new(
|
16
|
+
version: endpoint_rules['version'],
|
17
|
+
service_id: endpoint_rules['serviceId'],
|
18
|
+
parameters: endpoint_rules['parameters'],
|
19
|
+
rules: endpoint_rules['rules']
|
20
|
+
)
|
21
|
+
end
|
22
|
+
@provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
|
23
|
+
end
|
24
|
+
|
25
|
+
def resolve_endpoint(parameters)
|
26
|
+
@provider.resolve_endpoint(parameters)
|
27
|
+
end
|
28
|
+
|
29
|
+
# @api private
|
30
|
+
RULES = <<-JSON
|
31
|
+
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
32
|
+
bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
|
33
|
+
YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
|
34
|
+
ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrIjp7ImJ1
|
35
|
+
aWx0SW4iOiJBV1M6OlVzZUR1YWxTdGFjayIsInJlcXVpcmVkIjp0cnVlLCJk
|
36
|
+
ZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRhdGlvbiI6IldoZW4gdHJ1ZSwgdXNl
|
37
|
+
IHRoZSBkdWFsLXN0YWNrIGVuZHBvaW50LiBJZiB0aGUgY29uZmlndXJlZCBl
|
38
|
+
bmRwb2ludCBkb2VzIG5vdCBzdXBwb3J0IGR1YWwtc3RhY2ssIGRpc3BhdGNo
|
39
|
+
aW5nIHRoZSByZXF1ZXN0IE1BWSByZXR1cm4gYW4gZXJyb3IuIiwidHlwZSI6
|
40
|
+
IkJvb2xlYW4ifSwiVXNlRklQUyI6eyJidWlsdEluIjoiQVdTOjpVc2VGSVBT
|
41
|
+
IiwicmVxdWlyZWQiOnRydWUsImRlZmF1bHQiOmZhbHNlLCJkb2N1bWVudGF0
|
42
|
+
aW9uIjoiV2hlbiB0cnVlLCBzZW5kIHRoaXMgcmVxdWVzdCB0byB0aGUgRklQ
|
43
|
+
Uy1jb21wbGlhbnQgcmV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