aws-sdk-applicationautoscaling 1.65.0 → 1.67.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 +38 -4
- data/lib/aws-sdk-applicationautoscaling/client_api.rb +43 -3
- data/lib/aws-sdk-applicationautoscaling/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-applicationautoscaling/endpoint_provider.rb +30 -24
- data/lib/aws-sdk-applicationautoscaling/types.rb +198 -10
- 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: ef05499f3718d5c6bbb45329b2f6a403ccd95ab9b4e0819f3d255b539f616f1f
|
4
|
+
data.tar.gz: f4732ddb2cff7231c6813639afaaefe691bab4fe27e607a620edb8f422e3e993
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26b9d1ddca3e0c1b51eaf76f9e65908b82d817ea600566d50d1f0c509e549f231e851173b1d03cdfd49224b02764943cd78a32cf7e1dbd3bea7ffa97c8fcc210
|
7
|
+
data.tar.gz: 682c0a2f62c3def0154e527b11ca4ec198c59fb569eae7b269dff745525dca03666e4aa176434a0e4096bd0804c04afbc4c67a39153dd6d1bf1489d2a4086bec
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.67.0 (2023-03-14)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Application Auto Scaling customers can now use mathematical functions to customize the metric used with Target Tracking policies within the policy configuration itself, saving the cost and effort of publishing the customizations as a separate metric.
|
8
|
+
|
9
|
+
1.66.0 (2023-01-27)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Enabled FIPS endpoints for GovCloud (US) regions in SDK.
|
13
|
+
|
4
14
|
1.65.0 (2023-01-18)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.67.0
|
@@ -1706,6 +1706,18 @@ module Aws::ApplicationAutoScaling
|
|
1706
1706
|
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.customized_metric_specification.dimensions[0].value #=> String
|
1707
1707
|
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.customized_metric_specification.statistic #=> String, one of "Average", "Minimum", "Maximum", "SampleCount", "Sum"
|
1708
1708
|
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.customized_metric_specification.unit #=> String
|
1709
|
+
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.customized_metric_specification.metrics #=> Array
|
1710
|
+
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.customized_metric_specification.metrics[0].expression #=> String
|
1711
|
+
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.customized_metric_specification.metrics[0].id #=> String
|
1712
|
+
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.customized_metric_specification.metrics[0].label #=> String
|
1713
|
+
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.customized_metric_specification.metrics[0].metric_stat.metric.dimensions #=> Array
|
1714
|
+
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.customized_metric_specification.metrics[0].metric_stat.metric.dimensions[0].name #=> String
|
1715
|
+
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.customized_metric_specification.metrics[0].metric_stat.metric.dimensions[0].value #=> String
|
1716
|
+
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.customized_metric_specification.metrics[0].metric_stat.metric.metric_name #=> String
|
1717
|
+
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.customized_metric_specification.metrics[0].metric_stat.metric.namespace #=> String
|
1718
|
+
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.customized_metric_specification.metrics[0].metric_stat.stat #=> String
|
1719
|
+
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.customized_metric_specification.metrics[0].metric_stat.unit #=> String
|
1720
|
+
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.customized_metric_specification.metrics[0].return_data #=> Boolean
|
1709
1721
|
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.scale_out_cooldown #=> Integer
|
1710
1722
|
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.scale_in_cooldown #=> Integer
|
1711
1723
|
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.disable_scale_in #=> Boolean
|
@@ -2242,16 +2254,38 @@ module Aws::ApplicationAutoScaling
|
|
2242
2254
|
# resource_label: "ResourceLabel",
|
2243
2255
|
# },
|
2244
2256
|
# customized_metric_specification: {
|
2245
|
-
# metric_name: "MetricName",
|
2246
|
-
# namespace: "MetricNamespace",
|
2257
|
+
# metric_name: "MetricName",
|
2258
|
+
# namespace: "MetricNamespace",
|
2247
2259
|
# dimensions: [
|
2248
2260
|
# {
|
2249
2261
|
# name: "MetricDimensionName", # required
|
2250
2262
|
# value: "MetricDimensionValue", # required
|
2251
2263
|
# },
|
2252
2264
|
# ],
|
2253
|
-
# statistic: "Average", #
|
2265
|
+
# statistic: "Average", # accepts Average, Minimum, Maximum, SampleCount, Sum
|
2254
2266
|
# unit: "MetricUnit",
|
2267
|
+
# metrics: [
|
2268
|
+
# {
|
2269
|
+
# expression: "Expression",
|
2270
|
+
# id: "Id", # required
|
2271
|
+
# label: "XmlString",
|
2272
|
+
# metric_stat: {
|
2273
|
+
# metric: { # required
|
2274
|
+
# dimensions: [
|
2275
|
+
# {
|
2276
|
+
# name: "TargetTrackingMetricDimensionName", # required
|
2277
|
+
# value: "TargetTrackingMetricDimensionValue", # required
|
2278
|
+
# },
|
2279
|
+
# ],
|
2280
|
+
# metric_name: "TargetTrackingMetricName",
|
2281
|
+
# namespace: "TargetTrackingMetricNamespace",
|
2282
|
+
# },
|
2283
|
+
# stat: "XmlString", # required
|
2284
|
+
# unit: "TargetTrackingMetricUnit",
|
2285
|
+
# },
|
2286
|
+
# return_data: false,
|
2287
|
+
# },
|
2288
|
+
# ],
|
2255
2289
|
# },
|
2256
2290
|
# scale_out_cooldown: 1,
|
2257
2291
|
# scale_in_cooldown: 1,
|
@@ -2878,7 +2912,7 @@ module Aws::ApplicationAutoScaling
|
|
2878
2912
|
params: params,
|
2879
2913
|
config: config)
|
2880
2914
|
context[:gem_name] = 'aws-sdk-applicationautoscaling'
|
2881
|
-
context[:gem_version] = '1.
|
2915
|
+
context[:gem_version] = '1.67.0'
|
2882
2916
|
Seahorse::Client::Request.new(handlers, context)
|
2883
2917
|
end
|
2884
2918
|
|
@@ -35,7 +35,9 @@ module Aws::ApplicationAutoScaling
|
|
35
35
|
DescribeScheduledActionsResponse = Shapes::StructureShape.new(name: 'DescribeScheduledActionsResponse')
|
36
36
|
DisableScaleIn = Shapes::BooleanShape.new(name: 'DisableScaleIn')
|
37
37
|
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
38
|
+
Expression = Shapes::StringShape.new(name: 'Expression')
|
38
39
|
FailedResourceAccessException = Shapes::StructureShape.new(name: 'FailedResourceAccessException')
|
40
|
+
Id = Shapes::StringShape.new(name: 'Id')
|
39
41
|
IncludeNotScaledActivities = Shapes::BooleanShape.new(name: 'IncludeNotScaledActivities')
|
40
42
|
InternalServiceException = Shapes::StructureShape.new(name: 'InternalServiceException')
|
41
43
|
InvalidNextTokenException = Shapes::StructureShape.new(name: 'InvalidNextTokenException')
|
@@ -70,6 +72,7 @@ module Aws::ApplicationAutoScaling
|
|
70
72
|
ResourceIdMaxLen1600 = Shapes::StringShape.new(name: 'ResourceIdMaxLen1600')
|
71
73
|
ResourceIdsMaxLen1600 = Shapes::ListShape.new(name: 'ResourceIdsMaxLen1600')
|
72
74
|
ResourceLabel = Shapes::StringShape.new(name: 'ResourceLabel')
|
75
|
+
ReturnData = Shapes::BooleanShape.new(name: 'ReturnData')
|
73
76
|
ScalableDimension = Shapes::StringShape.new(name: 'ScalableDimension')
|
74
77
|
ScalableTarget = Shapes::StructureShape.new(name: 'ScalableTarget')
|
75
78
|
ScalableTargetAction = Shapes::StructureShape.new(name: 'ScalableTargetAction')
|
@@ -89,6 +92,17 @@ module Aws::ApplicationAutoScaling
|
|
89
92
|
StepAdjustments = Shapes::ListShape.new(name: 'StepAdjustments')
|
90
93
|
StepScalingPolicyConfiguration = Shapes::StructureShape.new(name: 'StepScalingPolicyConfiguration')
|
91
94
|
SuspendedState = Shapes::StructureShape.new(name: 'SuspendedState')
|
95
|
+
TargetTrackingMetric = Shapes::StructureShape.new(name: 'TargetTrackingMetric')
|
96
|
+
TargetTrackingMetricDataQueries = Shapes::ListShape.new(name: 'TargetTrackingMetricDataQueries')
|
97
|
+
TargetTrackingMetricDataQuery = Shapes::StructureShape.new(name: 'TargetTrackingMetricDataQuery')
|
98
|
+
TargetTrackingMetricDimension = Shapes::StructureShape.new(name: 'TargetTrackingMetricDimension')
|
99
|
+
TargetTrackingMetricDimensionName = Shapes::StringShape.new(name: 'TargetTrackingMetricDimensionName')
|
100
|
+
TargetTrackingMetricDimensionValue = Shapes::StringShape.new(name: 'TargetTrackingMetricDimensionValue')
|
101
|
+
TargetTrackingMetricDimensions = Shapes::ListShape.new(name: 'TargetTrackingMetricDimensions')
|
102
|
+
TargetTrackingMetricName = Shapes::StringShape.new(name: 'TargetTrackingMetricName')
|
103
|
+
TargetTrackingMetricNamespace = Shapes::StringShape.new(name: 'TargetTrackingMetricNamespace')
|
104
|
+
TargetTrackingMetricStat = Shapes::StructureShape.new(name: 'TargetTrackingMetricStat')
|
105
|
+
TargetTrackingMetricUnit = Shapes::StringShape.new(name: 'TargetTrackingMetricUnit')
|
92
106
|
TargetTrackingScalingPolicyConfiguration = Shapes::StructureShape.new(name: 'TargetTrackingScalingPolicyConfiguration')
|
93
107
|
TimestampType = Shapes::TimestampShape.new(name: 'TimestampType')
|
94
108
|
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
@@ -103,11 +117,12 @@ module Aws::ApplicationAutoScaling
|
|
103
117
|
ConcurrentUpdateException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
104
118
|
ConcurrentUpdateException.struct_class = Types::ConcurrentUpdateException
|
105
119
|
|
106
|
-
CustomizedMetricSpecification.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName,
|
107
|
-
CustomizedMetricSpecification.add_member(:namespace, Shapes::ShapeRef.new(shape: MetricNamespace,
|
120
|
+
CustomizedMetricSpecification.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, location_name: "MetricName"))
|
121
|
+
CustomizedMetricSpecification.add_member(:namespace, Shapes::ShapeRef.new(shape: MetricNamespace, location_name: "Namespace"))
|
108
122
|
CustomizedMetricSpecification.add_member(:dimensions, Shapes::ShapeRef.new(shape: MetricDimensions, location_name: "Dimensions"))
|
109
|
-
CustomizedMetricSpecification.add_member(:statistic, Shapes::ShapeRef.new(shape: MetricStatistic,
|
123
|
+
CustomizedMetricSpecification.add_member(:statistic, Shapes::ShapeRef.new(shape: MetricStatistic, location_name: "Statistic"))
|
110
124
|
CustomizedMetricSpecification.add_member(:unit, Shapes::ShapeRef.new(shape: MetricUnit, location_name: "Unit"))
|
125
|
+
CustomizedMetricSpecification.add_member(:metrics, Shapes::ShapeRef.new(shape: TargetTrackingMetricDataQueries, location_name: "Metrics"))
|
111
126
|
CustomizedMetricSpecification.struct_class = Types::CustomizedMetricSpecification
|
112
127
|
|
113
128
|
DeleteScalingPolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "PolicyName"))
|
@@ -332,6 +347,31 @@ module Aws::ApplicationAutoScaling
|
|
332
347
|
SuspendedState.add_member(:scheduled_scaling_suspended, Shapes::ShapeRef.new(shape: ScalingSuspended, location_name: "ScheduledScalingSuspended"))
|
333
348
|
SuspendedState.struct_class = Types::SuspendedState
|
334
349
|
|
350
|
+
TargetTrackingMetric.add_member(:dimensions, Shapes::ShapeRef.new(shape: TargetTrackingMetricDimensions, location_name: "Dimensions"))
|
351
|
+
TargetTrackingMetric.add_member(:metric_name, Shapes::ShapeRef.new(shape: TargetTrackingMetricName, location_name: "MetricName"))
|
352
|
+
TargetTrackingMetric.add_member(:namespace, Shapes::ShapeRef.new(shape: TargetTrackingMetricNamespace, location_name: "Namespace"))
|
353
|
+
TargetTrackingMetric.struct_class = Types::TargetTrackingMetric
|
354
|
+
|
355
|
+
TargetTrackingMetricDataQueries.member = Shapes::ShapeRef.new(shape: TargetTrackingMetricDataQuery)
|
356
|
+
|
357
|
+
TargetTrackingMetricDataQuery.add_member(:expression, Shapes::ShapeRef.new(shape: Expression, location_name: "Expression"))
|
358
|
+
TargetTrackingMetricDataQuery.add_member(:id, Shapes::ShapeRef.new(shape: Id, required: true, location_name: "Id"))
|
359
|
+
TargetTrackingMetricDataQuery.add_member(:label, Shapes::ShapeRef.new(shape: XmlString, location_name: "Label"))
|
360
|
+
TargetTrackingMetricDataQuery.add_member(:metric_stat, Shapes::ShapeRef.new(shape: TargetTrackingMetricStat, location_name: "MetricStat"))
|
361
|
+
TargetTrackingMetricDataQuery.add_member(:return_data, Shapes::ShapeRef.new(shape: ReturnData, location_name: "ReturnData"))
|
362
|
+
TargetTrackingMetricDataQuery.struct_class = Types::TargetTrackingMetricDataQuery
|
363
|
+
|
364
|
+
TargetTrackingMetricDimension.add_member(:name, Shapes::ShapeRef.new(shape: TargetTrackingMetricDimensionName, required: true, location_name: "Name"))
|
365
|
+
TargetTrackingMetricDimension.add_member(:value, Shapes::ShapeRef.new(shape: TargetTrackingMetricDimensionValue, required: true, location_name: "Value"))
|
366
|
+
TargetTrackingMetricDimension.struct_class = Types::TargetTrackingMetricDimension
|
367
|
+
|
368
|
+
TargetTrackingMetricDimensions.member = Shapes::ShapeRef.new(shape: TargetTrackingMetricDimension)
|
369
|
+
|
370
|
+
TargetTrackingMetricStat.add_member(:metric, Shapes::ShapeRef.new(shape: TargetTrackingMetric, required: true, location_name: "Metric"))
|
371
|
+
TargetTrackingMetricStat.add_member(:stat, Shapes::ShapeRef.new(shape: XmlString, required: true, location_name: "Stat"))
|
372
|
+
TargetTrackingMetricStat.add_member(:unit, Shapes::ShapeRef.new(shape: TargetTrackingMetricUnit, location_name: "Unit"))
|
373
|
+
TargetTrackingMetricStat.struct_class = Types::TargetTrackingMetricStat
|
374
|
+
|
335
375
|
TargetTrackingScalingPolicyConfiguration.add_member(:target_value, Shapes::ShapeRef.new(shape: MetricScale, required: true, location_name: "TargetValue"))
|
336
376
|
TargetTrackingScalingPolicyConfiguration.add_member(:predefined_metric_specification, Shapes::ShapeRef.new(shape: PredefinedMetricSpecification, location_name: "PredefinedMetricSpecification"))
|
337
377
|
TargetTrackingScalingPolicyConfiguration.add_member(:customized_metric_specification, Shapes::ShapeRef.new(shape: CustomizedMetricSpecification, location_name: "CustomizedMetricSpecification"))
|
@@ -50,9 +50,6 @@ 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
|
56
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
57
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
58
55
|
if self[:use_dual_stack].nil?
|
@@ -14,36 +14,42 @@ module Aws::ApplicationAutoScaling
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
-
if
|
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
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
33
18
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
-
|
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"
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
38
20
|
end
|
39
21
|
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
-
|
41
|
-
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
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"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://application-autoscaling-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
+
end
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
|
37
|
+
return Aws::Endpoints::Endpoint.new(url: "https://application-autoscaling.#{region}.amazonaws.com", headers: {}, properties: {})
|
38
|
+
end
|
39
|
+
return Aws::Endpoints::Endpoint.new(url: "https://application-autoscaling-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
40
|
+
end
|
41
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
42
|
+
end
|
43
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
44
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
45
|
+
return Aws::Endpoints::Endpoint.new(url: "https://application-autoscaling.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
46
|
+
end
|
47
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
42
48
|
end
|
43
|
-
|
49
|
+
return Aws::Endpoints::Endpoint.new(url: "https://application-autoscaling.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
44
50
|
end
|
45
|
-
return Aws::Endpoints::Endpoint.new(url: "https://application-autoscaling.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
46
51
|
end
|
52
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
47
53
|
raise ArgumentError, 'No endpoint could be resolved'
|
48
54
|
|
49
55
|
end
|
@@ -65,21 +65,14 @@ module Aws::ApplicationAutoScaling
|
|
65
65
|
# should decrease when capacity increases, and increase when capacity
|
66
66
|
# decreases.
|
67
67
|
#
|
68
|
-
# For an example of how creating new metrics can be useful, see [Scaling
|
69
|
-
# based on Amazon SQS][3] in the *Amazon EC2 Auto Scaling User Guide*.
|
70
|
-
# This topic mentions Auto Scaling groups, but the same scenario for
|
71
|
-
# Amazon SQS can apply to the target tracking scaling policies that you
|
72
|
-
# create for a Spot Fleet by using the Application Auto Scaling API.
|
73
|
-
#
|
74
68
|
# For more information about the CloudWatch terminology below, see
|
75
|
-
# [Amazon CloudWatch concepts][
|
69
|
+
# [Amazon CloudWatch concepts][3] in the *Amazon CloudWatch User Guide*.
|
76
70
|
#
|
77
71
|
#
|
78
72
|
#
|
79
73
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html
|
80
74
|
# [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html
|
81
|
-
# [3]: https://docs.aws.amazon.com/
|
82
|
-
# [4]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html
|
75
|
+
# [3]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html
|
83
76
|
#
|
84
77
|
# @!attribute [rw] metric_name
|
85
78
|
# The name of the metric. To get the exact metric name, namespace, and
|
@@ -117,6 +110,12 @@ module Aws::ApplicationAutoScaling
|
|
117
110
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html
|
118
111
|
# @return [String]
|
119
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
|
+
#
|
120
119
|
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/CustomizedMetricSpecification AWS API Documentation
|
121
120
|
#
|
122
121
|
class CustomizedMetricSpecification < Struct.new(
|
@@ -124,7 +123,8 @@ module Aws::ApplicationAutoScaling
|
|
124
123
|
:namespace,
|
125
124
|
:dimensions,
|
126
125
|
:statistic,
|
127
|
-
:unit
|
126
|
+
:unit,
|
127
|
+
:metrics)
|
128
128
|
SENSITIVE = []
|
129
129
|
include Aws::Structure
|
130
130
|
end
|
@@ -3467,6 +3467,194 @@ module Aws::ApplicationAutoScaling
|
|
3467
3467
|
include Aws::Structure
|
3468
3468
|
end
|
3469
3469
|
|
3470
|
+
# Represents a specific metric.
|
3471
|
+
#
|
3472
|
+
# Metric is a property of the TargetTrackingMetricStat object.
|
3473
|
+
#
|
3474
|
+
# @!attribute [rw] dimensions
|
3475
|
+
# The dimensions for the metric. For the list of available dimensions,
|
3476
|
+
# see the Amazon Web Services documentation available from the table
|
3477
|
+
# in [Amazon Web Services services that publish CloudWatch metrics
|
3478
|
+
# ][1] in the *Amazon CloudWatch User Guide*.
|
3479
|
+
#
|
3480
|
+
# Conditional: If you published your metric with dimensions, you must
|
3481
|
+
# specify the same dimensions in your scaling policy.
|
3482
|
+
#
|
3483
|
+
#
|
3484
|
+
#
|
3485
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html
|
3486
|
+
# @return [Array<Types::TargetTrackingMetricDimension>]
|
3487
|
+
#
|
3488
|
+
# @!attribute [rw] metric_name
|
3489
|
+
# The name of the metric.
|
3490
|
+
# @return [String]
|
3491
|
+
#
|
3492
|
+
# @!attribute [rw] namespace
|
3493
|
+
# The namespace of the metric. For more information, see the table in
|
3494
|
+
# [Amazon Web Services services that publish CloudWatch metrics ][1]
|
3495
|
+
# in the *Amazon CloudWatch User Guide*.
|
3496
|
+
#
|
3497
|
+
#
|
3498
|
+
#
|
3499
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html
|
3500
|
+
# @return [String]
|
3501
|
+
#
|
3502
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TargetTrackingMetric AWS API Documentation
|
3503
|
+
#
|
3504
|
+
class TargetTrackingMetric < Struct.new(
|
3505
|
+
:dimensions,
|
3506
|
+
:metric_name,
|
3507
|
+
:namespace)
|
3508
|
+
SENSITIVE = []
|
3509
|
+
include Aws::Structure
|
3510
|
+
end
|
3511
|
+
|
3512
|
+
# The metric data to return. Also defines whether this call is returning
|
3513
|
+
# data for one metric only, or whether it is performing a math
|
3514
|
+
# expression on the values of returned metric statistics to create a new
|
3515
|
+
# time series. A time series is a series of data points, each of which
|
3516
|
+
# is associated with a timestamp.
|
3517
|
+
#
|
3518
|
+
# For more information and examples, see [Create a target tracking
|
3519
|
+
# scaling policy for Application Auto Scaling using metric math][1] in
|
3520
|
+
# the *Application Auto Scaling User Guide*.
|
3521
|
+
#
|
3522
|
+
#
|
3523
|
+
#
|
3524
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking-metric-math.html
|
3525
|
+
#
|
3526
|
+
# @!attribute [rw] expression
|
3527
|
+
# The math expression to perform on the returned data, if this object
|
3528
|
+
# is performing a math expression. This expression can use the `Id` of
|
3529
|
+
# the other metrics to refer to those metrics, and can also use the
|
3530
|
+
# `Id` of other expressions to use the result of those expressions.
|
3531
|
+
#
|
3532
|
+
# Conditional: Within each `TargetTrackingMetricDataQuery` object, you
|
3533
|
+
# must specify either `Expression` or `MetricStat`, but not both.
|
3534
|
+
# @return [String]
|
3535
|
+
#
|
3536
|
+
# @!attribute [rw] id
|
3537
|
+
# A short name that identifies the object's results in the response.
|
3538
|
+
# This name must be unique among all `MetricDataQuery` objects
|
3539
|
+
# specified for a single scaling policy. If you are performing math
|
3540
|
+
# expressions on this set of data, this name represents that data and
|
3541
|
+
# can serve as a variable in the mathematical expression. The valid
|
3542
|
+
# characters are letters, numbers, and underscores. The first
|
3543
|
+
# character must be a lowercase letter.
|
3544
|
+
# @return [String]
|
3545
|
+
#
|
3546
|
+
# @!attribute [rw] label
|
3547
|
+
# A human-readable label for this metric or expression. This is
|
3548
|
+
# especially useful if this is a math expression, so that you know
|
3549
|
+
# what the value represents.
|
3550
|
+
# @return [String]
|
3551
|
+
#
|
3552
|
+
# @!attribute [rw] metric_stat
|
3553
|
+
# Information about the metric data to return.
|
3554
|
+
#
|
3555
|
+
# Conditional: Within each `MetricDataQuery` object, you must specify
|
3556
|
+
# either `Expression` or `MetricStat`, but not both.
|
3557
|
+
# @return [Types::TargetTrackingMetricStat]
|
3558
|
+
#
|
3559
|
+
# @!attribute [rw] return_data
|
3560
|
+
# Indicates whether to return the timestamps and raw data values of
|
3561
|
+
# this metric.
|
3562
|
+
#
|
3563
|
+
# If you use any math expressions, specify `true` for this value for
|
3564
|
+
# only the final math expression that the metric specification is
|
3565
|
+
# based on. You must specify `false` for `ReturnData` for all the
|
3566
|
+
# other metrics and expressions used in the metric specification.
|
3567
|
+
#
|
3568
|
+
# If you are only retrieving metrics and not performing any math
|
3569
|
+
# expressions, do not specify anything for `ReturnData`. This sets it
|
3570
|
+
# to its default (`true`).
|
3571
|
+
# @return [Boolean]
|
3572
|
+
#
|
3573
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TargetTrackingMetricDataQuery AWS API Documentation
|
3574
|
+
#
|
3575
|
+
class TargetTrackingMetricDataQuery < Struct.new(
|
3576
|
+
:expression,
|
3577
|
+
:id,
|
3578
|
+
:label,
|
3579
|
+
:metric_stat,
|
3580
|
+
:return_data)
|
3581
|
+
SENSITIVE = []
|
3582
|
+
include Aws::Structure
|
3583
|
+
end
|
3584
|
+
|
3585
|
+
# Describes the dimension of a metric.
|
3586
|
+
#
|
3587
|
+
# @!attribute [rw] name
|
3588
|
+
# The name of the dimension.
|
3589
|
+
# @return [String]
|
3590
|
+
#
|
3591
|
+
# @!attribute [rw] value
|
3592
|
+
# The value of the dimension.
|
3593
|
+
# @return [String]
|
3594
|
+
#
|
3595
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TargetTrackingMetricDimension AWS API Documentation
|
3596
|
+
#
|
3597
|
+
class TargetTrackingMetricDimension < Struct.new(
|
3598
|
+
:name,
|
3599
|
+
:value)
|
3600
|
+
SENSITIVE = []
|
3601
|
+
include Aws::Structure
|
3602
|
+
end
|
3603
|
+
|
3604
|
+
# This structure defines the CloudWatch metric to return, along with the
|
3605
|
+
# statistic, period, and unit.
|
3606
|
+
#
|
3607
|
+
# For more information about the CloudWatch terminology below, see
|
3608
|
+
# [Amazon CloudWatch concepts][1] in the *Amazon CloudWatch User Guide*.
|
3609
|
+
#
|
3610
|
+
#
|
3611
|
+
#
|
3612
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html
|
3613
|
+
#
|
3614
|
+
# @!attribute [rw] metric
|
3615
|
+
# The CloudWatch metric to return, including the metric name,
|
3616
|
+
# namespace, and dimensions. To get the exact metric name, namespace,
|
3617
|
+
# and dimensions, inspect the [Metric][1] object that is returned by a
|
3618
|
+
# call to [ListMetrics][2].
|
3619
|
+
#
|
3620
|
+
#
|
3621
|
+
#
|
3622
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_Metric.html
|
3623
|
+
# [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html
|
3624
|
+
# @return [Types::TargetTrackingMetric]
|
3625
|
+
#
|
3626
|
+
# @!attribute [rw] stat
|
3627
|
+
# The statistic to return. It can include any CloudWatch statistic or
|
3628
|
+
# extended statistic. For a list of valid values, see the table in
|
3629
|
+
# [Statistics][1] in the *Amazon CloudWatch User Guide*.
|
3630
|
+
#
|
3631
|
+
# The most commonly used metrics for scaling is `Average`
|
3632
|
+
#
|
3633
|
+
#
|
3634
|
+
#
|
3635
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Statistic
|
3636
|
+
# @return [String]
|
3637
|
+
#
|
3638
|
+
# @!attribute [rw] unit
|
3639
|
+
# The unit to use for the returned data points. For a complete list of
|
3640
|
+
# the units that CloudWatch supports, see the [MetricDatum][1] data
|
3641
|
+
# type in the *Amazon CloudWatch API Reference*.
|
3642
|
+
#
|
3643
|
+
#
|
3644
|
+
#
|
3645
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html
|
3646
|
+
# @return [String]
|
3647
|
+
#
|
3648
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TargetTrackingMetricStat AWS API Documentation
|
3649
|
+
#
|
3650
|
+
class TargetTrackingMetricStat < Struct.new(
|
3651
|
+
:metric,
|
3652
|
+
:stat,
|
3653
|
+
:unit)
|
3654
|
+
SENSITIVE = []
|
3655
|
+
include Aws::Structure
|
3656
|
+
end
|
3657
|
+
|
3470
3658
|
# Represents a target tracking scaling policy configuration to use with
|
3471
3659
|
# Application Auto Scaling.
|
3472
3660
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-applicationautoscaling
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.67.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|