aws-sdk-applicationautoscaling 1.63.0 → 1.65.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 +13 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-applicationautoscaling/client.rb +86 -26
- data/lib/aws-sdk-applicationautoscaling/client_api.rb +13 -0
- data/lib/aws-sdk-applicationautoscaling/endpoint_parameters.rb +3 -0
- data/lib/aws-sdk-applicationautoscaling/endpoint_provider.rb +35 -97
- data/lib/aws-sdk-applicationautoscaling/types.rb +175 -297
- data/lib/aws-sdk-applicationautoscaling.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2284d92fbbfb49bdb925a22e7f088cdd5854bf54c3fa8ddd2065ba0181c041f4
|
4
|
+
data.tar.gz: aba20972140efc0c5b190ad82a1d27071ae72d43fa66486625774e68792ccc6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d15d8b5ab2fd81c44fd47bc88eae7788e2097557dfd8fcfeffe46bd33d68e4a677e99b3010717bbb39b447fbc817a5b79a7d3306e32c4634f2363bcb1ca338a0
|
7
|
+
data.tar.gz: 3d40d79210e7f7421f5214315f79d3b4aee781e14de344cfaa678e90f97a49b60e22f3c662b7c903976fbb31ca5360c4b38777a59cca67b5f443ca168113ce4b
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.65.0 (2023-01-18)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
* Issue - Replace runtime endpoint resolution approach with generated ruby code.
|
10
|
+
|
11
|
+
1.64.0 (2023-01-04)
|
12
|
+
------------------
|
13
|
+
|
14
|
+
* 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.
|
15
|
+
|
4
16
|
1.63.0 (2022-10-25)
|
5
17
|
------------------
|
6
18
|
|
@@ -385,4 +397,4 @@ Unreleased Changes
|
|
385
397
|
1.0.0.rc1 (2016-12-05)
|
386
398
|
------------------
|
387
399
|
|
388
|
-
* Feature - Initial preview release of the `aws-sdk-applicationautoscaling` gem.
|
400
|
+
* Feature - Initial preview release of the `aws-sdk-applicationautoscaling` gem.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.65.0
|
@@ -507,7 +507,7 @@ module Aws::ApplicationAutoScaling
|
|
507
507
|
# Aurora PostgreSQL-compatible edition.
|
508
508
|
#
|
509
509
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
510
|
-
# instances for
|
510
|
+
# instances for a SageMaker model endpoint variant.
|
511
511
|
#
|
512
512
|
# * `custom-resource:ResourceType:Property` - The scalable dimension for
|
513
513
|
# a custom resource provided by your own application or service.
|
@@ -701,7 +701,7 @@ module Aws::ApplicationAutoScaling
|
|
701
701
|
# Aurora PostgreSQL-compatible edition.
|
702
702
|
#
|
703
703
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
704
|
-
# instances for
|
704
|
+
# instances for a SageMaker model endpoint variant.
|
705
705
|
#
|
706
706
|
# * `custom-resource:ResourceType:Property` - The scalable dimension for
|
707
707
|
# a custom resource provided by your own application or service.
|
@@ -879,7 +879,7 @@ module Aws::ApplicationAutoScaling
|
|
879
879
|
# Aurora PostgreSQL-compatible edition.
|
880
880
|
#
|
881
881
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
882
|
-
# instances for
|
882
|
+
# instances for a SageMaker model endpoint variant.
|
883
883
|
#
|
884
884
|
# * `custom-resource:ResourceType:Property` - The scalable dimension for
|
885
885
|
# a custom resource provided by your own application or service.
|
@@ -1066,7 +1066,7 @@ module Aws::ApplicationAutoScaling
|
|
1066
1066
|
# Aurora PostgreSQL-compatible edition.
|
1067
1067
|
#
|
1068
1068
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
1069
|
-
# instances for
|
1069
|
+
# instances for a SageMaker model endpoint variant.
|
1070
1070
|
#
|
1071
1071
|
# * `custom-resource:ResourceType:Property` - The scalable dimension for
|
1072
1072
|
# a custom resource provided by your own application or service.
|
@@ -1188,6 +1188,14 @@ module Aws::ApplicationAutoScaling
|
|
1188
1188
|
#
|
1189
1189
|
# You can filter the results using `ResourceId` and `ScalableDimension`.
|
1190
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
|
+
#
|
1191
1199
|
# @option params [required, String] :service_namespace
|
1192
1200
|
# The namespace of the Amazon Web Services service that provides the
|
1193
1201
|
# resource. For a resource provided by your own application or service,
|
@@ -1299,7 +1307,7 @@ module Aws::ApplicationAutoScaling
|
|
1299
1307
|
# Aurora PostgreSQL-compatible edition.
|
1300
1308
|
#
|
1301
1309
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
1302
|
-
# instances for
|
1310
|
+
# instances for a SageMaker model endpoint variant.
|
1303
1311
|
#
|
1304
1312
|
# * `custom-resource:ResourceType:Property` - The scalable dimension for
|
1305
1313
|
# a custom resource provided by your own application or service.
|
@@ -1346,6 +1354,18 @@ module Aws::ApplicationAutoScaling
|
|
1346
1354
|
# @option params [String] :next_token
|
1347
1355
|
# The token for the next set of results.
|
1348
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
|
+
#
|
1349
1369
|
# @return [Types::DescribeScalingActivitiesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1350
1370
|
#
|
1351
1371
|
# * {Types::DescribeScalingActivitiesResponse#scaling_activities #scaling_activities} => Array<Types::ScalingActivity>
|
@@ -1391,6 +1411,7 @@ module Aws::ApplicationAutoScaling
|
|
1391
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
|
1392
1412
|
# max_results: 1,
|
1393
1413
|
# next_token: "XmlString",
|
1414
|
+
# include_not_scaled_activities: false,
|
1394
1415
|
# })
|
1395
1416
|
#
|
1396
1417
|
# @example Response structure
|
@@ -1407,6 +1428,11 @@ module Aws::ApplicationAutoScaling
|
|
1407
1428
|
# resp.scaling_activities[0].status_code #=> String, one of "Pending", "InProgress", "Successful", "Overridden", "Unfulfilled", "Failed"
|
1408
1429
|
# resp.scaling_activities[0].status_message #=> String
|
1409
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
|
1410
1436
|
# resp.next_token #=> String
|
1411
1437
|
#
|
1412
1438
|
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingActivities AWS API Documentation
|
@@ -1547,7 +1573,7 @@ module Aws::ApplicationAutoScaling
|
|
1547
1573
|
# Aurora PostgreSQL-compatible edition.
|
1548
1574
|
#
|
1549
1575
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
1550
|
-
# instances for
|
1576
|
+
# instances for a SageMaker model endpoint variant.
|
1551
1577
|
#
|
1552
1578
|
# * `custom-resource:ResourceType:Property` - The scalable dimension for
|
1553
1579
|
# a custom resource provided by your own application or service.
|
@@ -1826,7 +1852,7 @@ module Aws::ApplicationAutoScaling
|
|
1826
1852
|
# Aurora PostgreSQL-compatible edition.
|
1827
1853
|
#
|
1828
1854
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
1829
|
-
# instances for
|
1855
|
+
# instances for a SageMaker model endpoint variant.
|
1830
1856
|
#
|
1831
1857
|
# * `custom-resource:ResourceType:Property` - The scalable dimension for
|
1832
1858
|
# a custom resource provided by your own application or service.
|
@@ -1964,6 +1990,10 @@ module Aws::ApplicationAutoScaling
|
|
1964
1990
|
# @option params [required, String] :policy_name
|
1965
1991
|
# The name of the scaling policy.
|
1966
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
|
+
#
|
1967
1997
|
# @option params [required, String] :service_namespace
|
1968
1998
|
# The namespace of the Amazon Web Services service that provides the
|
1969
1999
|
# resource. For a resource provided by your own application or service,
|
@@ -2074,7 +2104,7 @@ module Aws::ApplicationAutoScaling
|
|
2074
2104
|
# Aurora PostgreSQL-compatible edition.
|
2075
2105
|
#
|
2076
2106
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
2077
|
-
# instances for
|
2107
|
+
# instances for a SageMaker model endpoint variant.
|
2078
2108
|
#
|
2079
2109
|
# * `custom-resource:ResourceType:Property` - The scalable dimension for
|
2080
2110
|
# a custom resource provided by your own application or service.
|
@@ -2109,8 +2139,8 @@ module Aws::ApplicationAutoScaling
|
|
2109
2139
|
# an Amazon Neptune DB cluster.
|
2110
2140
|
#
|
2111
2141
|
# @option params [String] :policy_type
|
2112
|
-
# The policy type. This parameter is required if you are
|
2113
|
-
# scaling policy.
|
2142
|
+
# The scaling policy type. This parameter is required if you are
|
2143
|
+
# creating a scaling policy.
|
2114
2144
|
#
|
2115
2145
|
# The following policy types are supported:
|
2116
2146
|
#
|
@@ -2434,7 +2464,7 @@ module Aws::ApplicationAutoScaling
|
|
2434
2464
|
# Aurora PostgreSQL-compatible edition.
|
2435
2465
|
#
|
2436
2466
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
2437
|
-
# instances for
|
2467
|
+
# instances for a SageMaker model endpoint variant.
|
2438
2468
|
#
|
2439
2469
|
# * `custom-resource:ResourceType:Property` - The scalable dimension for
|
2440
2470
|
# a custom resource provided by your own application or service.
|
@@ -2509,17 +2539,23 @@ module Aws::ApplicationAutoScaling
|
|
2509
2539
|
req.send_request(options)
|
2510
2540
|
end
|
2511
2541
|
|
2512
|
-
# Registers or updates a scalable target
|
2542
|
+
# Registers or updates a scalable target, the resource that you want to
|
2543
|
+
# scale.
|
2513
2544
|
#
|
2514
|
-
#
|
2515
|
-
#
|
2516
|
-
#
|
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.
|
2517
2548
|
#
|
2518
2549
|
# When you register a new scalable target, you must specify values for
|
2519
|
-
# minimum and maximum capacity.
|
2520
|
-
# the
|
2521
|
-
#
|
2522
|
-
# 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.
|
2523
2559
|
#
|
2524
2560
|
# After you register a scalable target, you do not need to register it
|
2525
2561
|
# again to use other Application Auto Scaling operations. To see which
|
@@ -2659,7 +2695,7 @@ module Aws::ApplicationAutoScaling
|
|
2659
2695
|
# Aurora PostgreSQL-compatible edition.
|
2660
2696
|
#
|
2661
2697
|
# * `sagemaker:variant:DesiredInstanceCount` - The number of EC2
|
2662
|
-
# instances for
|
2698
|
+
# instances for a SageMaker model endpoint variant.
|
2663
2699
|
#
|
2664
2700
|
# * `custom-resource:ResourceType:Property` - The scalable dimension for
|
2665
2701
|
# a custom resource provided by your own application or service.
|
@@ -2699,10 +2735,34 @@ module Aws::ApplicationAutoScaling
|
|
2699
2735
|
# needed to the minimum capacity limit in response to changing demand.
|
2700
2736
|
# This property is required when registering a new scalable target.
|
2701
2737
|
#
|
2702
|
-
# For
|
2703
|
-
#
|
2704
|
-
#
|
2705
|
-
#
|
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.
|
2706
2766
|
#
|
2707
2767
|
# @option params [Integer] :max_capacity
|
2708
2768
|
# The maximum value that you plan to scale out to. When a scaling policy
|
@@ -2716,7 +2776,7 @@ module Aws::ApplicationAutoScaling
|
|
2716
2776
|
# specify a higher limit, you can request an increase. For more
|
2717
2777
|
# information, consult the documentation for that service. For
|
2718
2778
|
# information about the default quotas for each service, see [Service
|
2719
|
-
#
|
2779
|
+
# endpoints and quotas][1] in the *Amazon Web Services General
|
2720
2780
|
# Reference*.
|
2721
2781
|
#
|
2722
2782
|
#
|
@@ -2818,7 +2878,7 @@ module Aws::ApplicationAutoScaling
|
|
2818
2878
|
params: params,
|
2819
2879
|
config: config)
|
2820
2880
|
context[:gem_name] = 'aws-sdk-applicationautoscaling'
|
2821
|
-
context[:gem_version] = '1.
|
2881
|
+
context[:gem_version] = '1.65.0'
|
2822
2882
|
Seahorse::Client::Request.new(handlers, context)
|
2823
2883
|
end
|
2824
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)
|
@@ -50,6 +50,9 @@ module Aws::ApplicationAutoScaling
|
|
50
50
|
|
51
51
|
def initialize(options = {})
|
52
52
|
self[:region] = options[:region]
|
53
|
+
if self[:region].nil?
|
54
|
+
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
+
end
|
53
56
|
self[:use_dual_stack] = options[:use_dual_stack]
|
54
57
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
58
|
if self[:use_dual_stack].nil?
|
@@ -9,105 +9,43 @@
|
|
9
9
|
|
10
10
|
module Aws::ApplicationAutoScaling
|
11
11
|
class EndpointProvider
|
12
|
-
def
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
15
|
+
use_fips = parameters.use_fips
|
16
|
+
endpoint = parameters.endpoint
|
17
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
18
|
+
if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
|
19
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
+
end
|
22
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
+
end
|
25
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
+
end
|
27
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
29
|
+
return Aws::Endpoints::Endpoint.new(url: "https://application-autoscaling-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
+
end
|
31
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
|
+
end
|
33
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
35
|
+
return Aws::Endpoints::Endpoint.new(url: "https://application-autoscaling-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
+
end
|
37
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
38
|
+
end
|
39
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
41
|
+
return Aws::Endpoints::Endpoint.new(url: "https://application-autoscaling.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
42
|
+
end
|
43
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
44
|
+
end
|
45
|
+
return Aws::Endpoints::Endpoint.new(url: "https://application-autoscaling.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
21
46
|
end
|
22
|
-
|
23
|
-
end
|
47
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
24
48
|
|
25
|
-
def resolve_endpoint(parameters)
|
26
|
-
@provider.resolve_endpoint(parameters)
|
27
49
|
end
|
28
|
-
|
29
|
-
# @api private
|
30
|
-
RULES = <<-JSON
|
31
|
-
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
32
|
-
bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
|
33
|
-
dG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