aws-sdk-applicationautoscaling 1.0.0.rc1 → 1.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-applicationautoscaling/client.rb +832 -701
- data/lib/aws-sdk-applicationautoscaling/client_api.rb +309 -311
- data/lib/aws-sdk-applicationautoscaling/errors.rb +4 -13
- data/lib/aws-sdk-applicationautoscaling/resource.rb +12 -14
- data/lib/aws-sdk-applicationautoscaling/types.rb +1092 -962
- data/lib/aws-sdk-applicationautoscaling.rb +2 -2
- metadata +2 -2
@@ -1,321 +1,319 @@
|
|
1
1
|
# WARNING ABOUT GENERATED CODE
|
2
2
|
#
|
3
|
-
# This file is generated. See the contributing for
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
4
|
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
5
|
#
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
|
-
module Aws
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
# @api private
|
200
|
-
API = Seahorse::Model::Api.new.tap do |api|
|
201
|
-
|
202
|
-
api.version = "2016-02-06"
|
203
|
-
|
204
|
-
api.metadata = {
|
205
|
-
"endpointPrefix" => "autoscaling",
|
206
|
-
"jsonVersion" => "1.1",
|
207
|
-
"protocol" => "json",
|
208
|
-
"serviceFullName" => "Application Auto Scaling",
|
209
|
-
"signatureVersion" => "v4",
|
210
|
-
"signingName" => "application-autoscaling",
|
211
|
-
"targetPrefix" => "AnyScaleFrontendService",
|
212
|
-
}
|
213
|
-
|
214
|
-
api.add_operation(:delete_scaling_policy, Seahorse::Model::Operation.new.tap do |o|
|
215
|
-
o.name = "DeleteScalingPolicy"
|
216
|
-
o.http_method = "POST"
|
217
|
-
o.http_request_uri = "/"
|
218
|
-
o.input = Shapes::ShapeRef.new(shape: DeleteScalingPolicyRequest)
|
219
|
-
o.output = Shapes::ShapeRef.new(shape: DeleteScalingPolicyResponse)
|
220
|
-
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
221
|
-
o.errors << Shapes::ShapeRef.new(shape: ObjectNotFoundException)
|
222
|
-
o.errors << Shapes::ShapeRef.new(shape: ConcurrentUpdateException)
|
223
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
|
224
|
-
end)
|
225
|
-
|
226
|
-
api.add_operation(:deregister_scalable_target, Seahorse::Model::Operation.new.tap do |o|
|
227
|
-
o.name = "DeregisterScalableTarget"
|
228
|
-
o.http_method = "POST"
|
229
|
-
o.http_request_uri = "/"
|
230
|
-
o.input = Shapes::ShapeRef.new(shape: DeregisterScalableTargetRequest)
|
231
|
-
o.output = Shapes::ShapeRef.new(shape: DeregisterScalableTargetResponse)
|
232
|
-
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
233
|
-
o.errors << Shapes::ShapeRef.new(shape: ObjectNotFoundException)
|
234
|
-
o.errors << Shapes::ShapeRef.new(shape: ConcurrentUpdateException)
|
235
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
|
236
|
-
end)
|
237
|
-
|
238
|
-
api.add_operation(:describe_scalable_targets, Seahorse::Model::Operation.new.tap do |o|
|
239
|
-
o.name = "DescribeScalableTargets"
|
240
|
-
o.http_method = "POST"
|
241
|
-
o.http_request_uri = "/"
|
242
|
-
o.input = Shapes::ShapeRef.new(shape: DescribeScalableTargetsRequest)
|
243
|
-
o.output = Shapes::ShapeRef.new(shape: DescribeScalableTargetsResponse)
|
244
|
-
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
245
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
246
|
-
o.errors << Shapes::ShapeRef.new(shape: ConcurrentUpdateException)
|
247
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
|
248
|
-
o[:pager] = Aws::Pager.new(
|
249
|
-
limit_key: "max_results",
|
250
|
-
tokens: {
|
251
|
-
"next_token" => "next_token"
|
252
|
-
}
|
253
|
-
)
|
254
|
-
end)
|
255
|
-
|
256
|
-
api.add_operation(:describe_scaling_activities, Seahorse::Model::Operation.new.tap do |o|
|
257
|
-
o.name = "DescribeScalingActivities"
|
258
|
-
o.http_method = "POST"
|
259
|
-
o.http_request_uri = "/"
|
260
|
-
o.input = Shapes::ShapeRef.new(shape: DescribeScalingActivitiesRequest)
|
261
|
-
o.output = Shapes::ShapeRef.new(shape: DescribeScalingActivitiesResponse)
|
262
|
-
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
263
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
264
|
-
o.errors << Shapes::ShapeRef.new(shape: ConcurrentUpdateException)
|
265
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
|
266
|
-
o[:pager] = Aws::Pager.new(
|
267
|
-
limit_key: "max_results",
|
268
|
-
tokens: {
|
269
|
-
"next_token" => "next_token"
|
270
|
-
}
|
271
|
-
)
|
272
|
-
end)
|
273
|
-
|
274
|
-
api.add_operation(:describe_scaling_policies, Seahorse::Model::Operation.new.tap do |o|
|
275
|
-
o.name = "DescribeScalingPolicies"
|
276
|
-
o.http_method = "POST"
|
277
|
-
o.http_request_uri = "/"
|
278
|
-
o.input = Shapes::ShapeRef.new(shape: DescribeScalingPoliciesRequest)
|
279
|
-
o.output = Shapes::ShapeRef.new(shape: DescribeScalingPoliciesResponse)
|
280
|
-
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
281
|
-
o.errors << Shapes::ShapeRef.new(shape: FailedResourceAccessException)
|
282
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
283
|
-
o.errors << Shapes::ShapeRef.new(shape: ConcurrentUpdateException)
|
284
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
|
285
|
-
o[:pager] = Aws::Pager.new(
|
286
|
-
limit_key: "max_results",
|
287
|
-
tokens: {
|
288
|
-
"next_token" => "next_token"
|
289
|
-
}
|
290
|
-
)
|
291
|
-
end)
|
292
|
-
|
293
|
-
api.add_operation(:put_scaling_policy, Seahorse::Model::Operation.new.tap do |o|
|
294
|
-
o.name = "PutScalingPolicy"
|
295
|
-
o.http_method = "POST"
|
296
|
-
o.http_request_uri = "/"
|
297
|
-
o.input = Shapes::ShapeRef.new(shape: PutScalingPolicyRequest)
|
298
|
-
o.output = Shapes::ShapeRef.new(shape: PutScalingPolicyResponse)
|
299
|
-
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
300
|
-
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
301
|
-
o.errors << Shapes::ShapeRef.new(shape: ObjectNotFoundException)
|
302
|
-
o.errors << Shapes::ShapeRef.new(shape: ConcurrentUpdateException)
|
303
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
|
304
|
-
end)
|
305
|
-
|
306
|
-
api.add_operation(:register_scalable_target, Seahorse::Model::Operation.new.tap do |o|
|
307
|
-
o.name = "RegisterScalableTarget"
|
308
|
-
o.http_method = "POST"
|
309
|
-
o.http_request_uri = "/"
|
310
|
-
o.input = Shapes::ShapeRef.new(shape: RegisterScalableTargetRequest)
|
311
|
-
o.output = Shapes::ShapeRef.new(shape: RegisterScalableTargetResponse)
|
312
|
-
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
313
|
-
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
314
|
-
o.errors << Shapes::ShapeRef.new(shape: ConcurrentUpdateException)
|
315
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
|
316
|
-
end)
|
317
|
-
end
|
8
|
+
module Aws::ApplicationAutoScaling
|
9
|
+
# @api private
|
10
|
+
module ClientApi
|
11
|
+
|
12
|
+
include Seahorse::Model
|
13
|
+
|
14
|
+
AdjustmentType = Shapes::StringShape.new(name: 'AdjustmentType')
|
15
|
+
Alarm = Shapes::StructureShape.new(name: 'Alarm')
|
16
|
+
Alarms = Shapes::ListShape.new(name: 'Alarms')
|
17
|
+
ConcurrentUpdateException = Shapes::StructureShape.new(name: 'ConcurrentUpdateException')
|
18
|
+
Cooldown = Shapes::IntegerShape.new(name: 'Cooldown')
|
19
|
+
DeleteScalingPolicyRequest = Shapes::StructureShape.new(name: 'DeleteScalingPolicyRequest')
|
20
|
+
DeleteScalingPolicyResponse = Shapes::StructureShape.new(name: 'DeleteScalingPolicyResponse')
|
21
|
+
DeregisterScalableTargetRequest = Shapes::StructureShape.new(name: 'DeregisterScalableTargetRequest')
|
22
|
+
DeregisterScalableTargetResponse = Shapes::StructureShape.new(name: 'DeregisterScalableTargetResponse')
|
23
|
+
DescribeScalableTargetsRequest = Shapes::StructureShape.new(name: 'DescribeScalableTargetsRequest')
|
24
|
+
DescribeScalableTargetsResponse = Shapes::StructureShape.new(name: 'DescribeScalableTargetsResponse')
|
25
|
+
DescribeScalingActivitiesRequest = Shapes::StructureShape.new(name: 'DescribeScalingActivitiesRequest')
|
26
|
+
DescribeScalingActivitiesResponse = Shapes::StructureShape.new(name: 'DescribeScalingActivitiesResponse')
|
27
|
+
DescribeScalingPoliciesRequest = Shapes::StructureShape.new(name: 'DescribeScalingPoliciesRequest')
|
28
|
+
DescribeScalingPoliciesResponse = Shapes::StructureShape.new(name: 'DescribeScalingPoliciesResponse')
|
29
|
+
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
30
|
+
FailedResourceAccessException = Shapes::StructureShape.new(name: 'FailedResourceAccessException')
|
31
|
+
InternalServiceException = Shapes::StructureShape.new(name: 'InternalServiceException')
|
32
|
+
InvalidNextTokenException = Shapes::StructureShape.new(name: 'InvalidNextTokenException')
|
33
|
+
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
34
|
+
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
35
|
+
MetricAggregationType = Shapes::StringShape.new(name: 'MetricAggregationType')
|
36
|
+
MetricScale = Shapes::FloatShape.new(name: 'MetricScale')
|
37
|
+
MinAdjustmentMagnitude = Shapes::IntegerShape.new(name: 'MinAdjustmentMagnitude')
|
38
|
+
ObjectNotFoundException = Shapes::StructureShape.new(name: 'ObjectNotFoundException')
|
39
|
+
PolicyName = Shapes::StringShape.new(name: 'PolicyName')
|
40
|
+
PolicyType = Shapes::StringShape.new(name: 'PolicyType')
|
41
|
+
PutScalingPolicyRequest = Shapes::StructureShape.new(name: 'PutScalingPolicyRequest')
|
42
|
+
PutScalingPolicyResponse = Shapes::StructureShape.new(name: 'PutScalingPolicyResponse')
|
43
|
+
RegisterScalableTargetRequest = Shapes::StructureShape.new(name: 'RegisterScalableTargetRequest')
|
44
|
+
RegisterScalableTargetResponse = Shapes::StructureShape.new(name: 'RegisterScalableTargetResponse')
|
45
|
+
ResourceCapacity = Shapes::IntegerShape.new(name: 'ResourceCapacity')
|
46
|
+
ResourceId = Shapes::StringShape.new(name: 'ResourceId')
|
47
|
+
ResourceIdMaxLen1600 = Shapes::StringShape.new(name: 'ResourceIdMaxLen1600')
|
48
|
+
ResourceIdsMaxLen1600 = Shapes::ListShape.new(name: 'ResourceIdsMaxLen1600')
|
49
|
+
ScalableDimension = Shapes::StringShape.new(name: 'ScalableDimension')
|
50
|
+
ScalableTarget = Shapes::StructureShape.new(name: 'ScalableTarget')
|
51
|
+
ScalableTargets = Shapes::ListShape.new(name: 'ScalableTargets')
|
52
|
+
ScalingActivities = Shapes::ListShape.new(name: 'ScalingActivities')
|
53
|
+
ScalingActivity = Shapes::StructureShape.new(name: 'ScalingActivity')
|
54
|
+
ScalingActivityStatusCode = Shapes::StringShape.new(name: 'ScalingActivityStatusCode')
|
55
|
+
ScalingAdjustment = Shapes::IntegerShape.new(name: 'ScalingAdjustment')
|
56
|
+
ScalingPolicies = Shapes::ListShape.new(name: 'ScalingPolicies')
|
57
|
+
ScalingPolicy = Shapes::StructureShape.new(name: 'ScalingPolicy')
|
58
|
+
ServiceNamespace = Shapes::StringShape.new(name: 'ServiceNamespace')
|
59
|
+
StepAdjustment = Shapes::StructureShape.new(name: 'StepAdjustment')
|
60
|
+
StepAdjustments = Shapes::ListShape.new(name: 'StepAdjustments')
|
61
|
+
StepScalingPolicyConfiguration = Shapes::StructureShape.new(name: 'StepScalingPolicyConfiguration')
|
62
|
+
TimestampType = Shapes::TimestampShape.new(name: 'TimestampType')
|
63
|
+
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
64
|
+
XmlString = Shapes::StringShape.new(name: 'XmlString')
|
65
|
+
|
66
|
+
Alarm.add_member(:alarm_name, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "AlarmName"))
|
67
|
+
Alarm.add_member(:alarm_arn, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "AlarmARN"))
|
68
|
+
Alarm.struct_class = Types::Alarm
|
69
|
+
|
70
|
+
Alarms.member = Shapes::ShapeRef.new(shape: Alarm)
|
71
|
+
|
72
|
+
DeleteScalingPolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "PolicyName"))
|
73
|
+
DeleteScalingPolicyRequest.add_member(:service_namespace, Shapes::ShapeRef.new(shape: ServiceNamespace, required: true, location_name: "ServiceNamespace"))
|
74
|
+
DeleteScalingPolicyRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "ResourceId"))
|
75
|
+
DeleteScalingPolicyRequest.add_member(:scalable_dimension, Shapes::ShapeRef.new(shape: ScalableDimension, required: true, location_name: "ScalableDimension"))
|
76
|
+
DeleteScalingPolicyRequest.struct_class = Types::DeleteScalingPolicyRequest
|
77
|
+
|
78
|
+
DeleteScalingPolicyResponse.struct_class = Types::DeleteScalingPolicyResponse
|
79
|
+
|
80
|
+
DeregisterScalableTargetRequest.add_member(:service_namespace, Shapes::ShapeRef.new(shape: ServiceNamespace, required: true, location_name: "ServiceNamespace"))
|
81
|
+
DeregisterScalableTargetRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "ResourceId"))
|
82
|
+
DeregisterScalableTargetRequest.add_member(:scalable_dimension, Shapes::ShapeRef.new(shape: ScalableDimension, required: true, location_name: "ScalableDimension"))
|
83
|
+
DeregisterScalableTargetRequest.struct_class = Types::DeregisterScalableTargetRequest
|
84
|
+
|
85
|
+
DeregisterScalableTargetResponse.struct_class = Types::DeregisterScalableTargetResponse
|
86
|
+
|
87
|
+
DescribeScalableTargetsRequest.add_member(:service_namespace, Shapes::ShapeRef.new(shape: ServiceNamespace, required: true, location_name: "ServiceNamespace"))
|
88
|
+
DescribeScalableTargetsRequest.add_member(:resource_ids, Shapes::ShapeRef.new(shape: ResourceIdsMaxLen1600, location_name: "ResourceIds"))
|
89
|
+
DescribeScalableTargetsRequest.add_member(:scalable_dimension, Shapes::ShapeRef.new(shape: ScalableDimension, location_name: "ScalableDimension"))
|
90
|
+
DescribeScalableTargetsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
91
|
+
DescribeScalableTargetsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: XmlString, location_name: "NextToken"))
|
92
|
+
DescribeScalableTargetsRequest.struct_class = Types::DescribeScalableTargetsRequest
|
93
|
+
|
94
|
+
DescribeScalableTargetsResponse.add_member(:scalable_targets, Shapes::ShapeRef.new(shape: ScalableTargets, location_name: "ScalableTargets"))
|
95
|
+
DescribeScalableTargetsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: XmlString, location_name: "NextToken"))
|
96
|
+
DescribeScalableTargetsResponse.struct_class = Types::DescribeScalableTargetsResponse
|
97
|
+
|
98
|
+
DescribeScalingActivitiesRequest.add_member(:service_namespace, Shapes::ShapeRef.new(shape: ServiceNamespace, required: true, location_name: "ServiceNamespace"))
|
99
|
+
DescribeScalingActivitiesRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, location_name: "ResourceId"))
|
100
|
+
DescribeScalingActivitiesRequest.add_member(:scalable_dimension, Shapes::ShapeRef.new(shape: ScalableDimension, location_name: "ScalableDimension"))
|
101
|
+
DescribeScalingActivitiesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
102
|
+
DescribeScalingActivitiesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: XmlString, location_name: "NextToken"))
|
103
|
+
DescribeScalingActivitiesRequest.struct_class = Types::DescribeScalingActivitiesRequest
|
104
|
+
|
105
|
+
DescribeScalingActivitiesResponse.add_member(:scaling_activities, Shapes::ShapeRef.new(shape: ScalingActivities, location_name: "ScalingActivities"))
|
106
|
+
DescribeScalingActivitiesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: XmlString, location_name: "NextToken"))
|
107
|
+
DescribeScalingActivitiesResponse.struct_class = Types::DescribeScalingActivitiesResponse
|
108
|
+
|
109
|
+
DescribeScalingPoliciesRequest.add_member(:policy_names, Shapes::ShapeRef.new(shape: ResourceIdsMaxLen1600, location_name: "PolicyNames"))
|
110
|
+
DescribeScalingPoliciesRequest.add_member(:service_namespace, Shapes::ShapeRef.new(shape: ServiceNamespace, required: true, location_name: "ServiceNamespace"))
|
111
|
+
DescribeScalingPoliciesRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, location_name: "ResourceId"))
|
112
|
+
DescribeScalingPoliciesRequest.add_member(:scalable_dimension, Shapes::ShapeRef.new(shape: ScalableDimension, location_name: "ScalableDimension"))
|
113
|
+
DescribeScalingPoliciesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
114
|
+
DescribeScalingPoliciesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: XmlString, location_name: "NextToken"))
|
115
|
+
DescribeScalingPoliciesRequest.struct_class = Types::DescribeScalingPoliciesRequest
|
116
|
+
|
117
|
+
DescribeScalingPoliciesResponse.add_member(:scaling_policies, Shapes::ShapeRef.new(shape: ScalingPolicies, location_name: "ScalingPolicies"))
|
118
|
+
DescribeScalingPoliciesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: XmlString, location_name: "NextToken"))
|
119
|
+
DescribeScalingPoliciesResponse.struct_class = Types::DescribeScalingPoliciesResponse
|
120
|
+
|
121
|
+
PutScalingPolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyName, required: true, location_name: "PolicyName"))
|
122
|
+
PutScalingPolicyRequest.add_member(:service_namespace, Shapes::ShapeRef.new(shape: ServiceNamespace, required: true, location_name: "ServiceNamespace"))
|
123
|
+
PutScalingPolicyRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "ResourceId"))
|
124
|
+
PutScalingPolicyRequest.add_member(:scalable_dimension, Shapes::ShapeRef.new(shape: ScalableDimension, required: true, location_name: "ScalableDimension"))
|
125
|
+
PutScalingPolicyRequest.add_member(:policy_type, Shapes::ShapeRef.new(shape: PolicyType, location_name: "PolicyType"))
|
126
|
+
PutScalingPolicyRequest.add_member(:step_scaling_policy_configuration, Shapes::ShapeRef.new(shape: StepScalingPolicyConfiguration, location_name: "StepScalingPolicyConfiguration"))
|
127
|
+
PutScalingPolicyRequest.struct_class = Types::PutScalingPolicyRequest
|
128
|
+
|
129
|
+
PutScalingPolicyResponse.add_member(:policy_arn, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "PolicyARN"))
|
130
|
+
PutScalingPolicyResponse.struct_class = Types::PutScalingPolicyResponse
|
131
|
+
|
132
|
+
RegisterScalableTargetRequest.add_member(:service_namespace, Shapes::ShapeRef.new(shape: ServiceNamespace, required: true, location_name: "ServiceNamespace"))
|
133
|
+
RegisterScalableTargetRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "ResourceId"))
|
134
|
+
RegisterScalableTargetRequest.add_member(:scalable_dimension, Shapes::ShapeRef.new(shape: ScalableDimension, required: true, location_name: "ScalableDimension"))
|
135
|
+
RegisterScalableTargetRequest.add_member(:min_capacity, Shapes::ShapeRef.new(shape: ResourceCapacity, location_name: "MinCapacity"))
|
136
|
+
RegisterScalableTargetRequest.add_member(:max_capacity, Shapes::ShapeRef.new(shape: ResourceCapacity, location_name: "MaxCapacity"))
|
137
|
+
RegisterScalableTargetRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, location_name: "RoleARN"))
|
138
|
+
RegisterScalableTargetRequest.struct_class = Types::RegisterScalableTargetRequest
|
139
|
+
|
140
|
+
RegisterScalableTargetResponse.struct_class = Types::RegisterScalableTargetResponse
|
141
|
+
|
142
|
+
ResourceIdsMaxLen1600.member = Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600)
|
143
|
+
|
144
|
+
ScalableTarget.add_member(:service_namespace, Shapes::ShapeRef.new(shape: ServiceNamespace, required: true, location_name: "ServiceNamespace"))
|
145
|
+
ScalableTarget.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "ResourceId"))
|
146
|
+
ScalableTarget.add_member(:scalable_dimension, Shapes::ShapeRef.new(shape: ScalableDimension, required: true, location_name: "ScalableDimension"))
|
147
|
+
ScalableTarget.add_member(:min_capacity, Shapes::ShapeRef.new(shape: ResourceCapacity, required: true, location_name: "MinCapacity"))
|
148
|
+
ScalableTarget.add_member(:max_capacity, Shapes::ShapeRef.new(shape: ResourceCapacity, required: true, location_name: "MaxCapacity"))
|
149
|
+
ScalableTarget.add_member(:role_arn, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "RoleARN"))
|
150
|
+
ScalableTarget.add_member(:creation_time, Shapes::ShapeRef.new(shape: TimestampType, required: true, location_name: "CreationTime"))
|
151
|
+
ScalableTarget.struct_class = Types::ScalableTarget
|
152
|
+
|
153
|
+
ScalableTargets.member = Shapes::ShapeRef.new(shape: ScalableTarget)
|
154
|
+
|
155
|
+
ScalingActivities.member = Shapes::ShapeRef.new(shape: ScalingActivity)
|
156
|
+
|
157
|
+
ScalingActivity.add_member(:activity_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "ActivityId"))
|
158
|
+
ScalingActivity.add_member(:service_namespace, Shapes::ShapeRef.new(shape: ServiceNamespace, required: true, location_name: "ServiceNamespace"))
|
159
|
+
ScalingActivity.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "ResourceId"))
|
160
|
+
ScalingActivity.add_member(:scalable_dimension, Shapes::ShapeRef.new(shape: ScalableDimension, required: true, location_name: "ScalableDimension"))
|
161
|
+
ScalingActivity.add_member(:description, Shapes::ShapeRef.new(shape: XmlString, required: true, location_name: "Description"))
|
162
|
+
ScalingActivity.add_member(:cause, Shapes::ShapeRef.new(shape: XmlString, required: true, location_name: "Cause"))
|
163
|
+
ScalingActivity.add_member(:start_time, Shapes::ShapeRef.new(shape: TimestampType, required: true, location_name: "StartTime"))
|
164
|
+
ScalingActivity.add_member(:end_time, Shapes::ShapeRef.new(shape: TimestampType, location_name: "EndTime"))
|
165
|
+
ScalingActivity.add_member(:status_code, Shapes::ShapeRef.new(shape: ScalingActivityStatusCode, required: true, location_name: "StatusCode"))
|
166
|
+
ScalingActivity.add_member(:status_message, Shapes::ShapeRef.new(shape: XmlString, location_name: "StatusMessage"))
|
167
|
+
ScalingActivity.add_member(:details, Shapes::ShapeRef.new(shape: XmlString, location_name: "Details"))
|
168
|
+
ScalingActivity.struct_class = Types::ScalingActivity
|
169
|
+
|
170
|
+
ScalingPolicies.member = Shapes::ShapeRef.new(shape: ScalingPolicy)
|
171
|
+
|
172
|
+
ScalingPolicy.add_member(:policy_arn, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "PolicyARN"))
|
173
|
+
ScalingPolicy.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyName, required: true, location_name: "PolicyName"))
|
174
|
+
ScalingPolicy.add_member(:service_namespace, Shapes::ShapeRef.new(shape: ServiceNamespace, required: true, location_name: "ServiceNamespace"))
|
175
|
+
ScalingPolicy.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "ResourceId"))
|
176
|
+
ScalingPolicy.add_member(:scalable_dimension, Shapes::ShapeRef.new(shape: ScalableDimension, required: true, location_name: "ScalableDimension"))
|
177
|
+
ScalingPolicy.add_member(:policy_type, Shapes::ShapeRef.new(shape: PolicyType, required: true, location_name: "PolicyType"))
|
178
|
+
ScalingPolicy.add_member(:step_scaling_policy_configuration, Shapes::ShapeRef.new(shape: StepScalingPolicyConfiguration, location_name: "StepScalingPolicyConfiguration"))
|
179
|
+
ScalingPolicy.add_member(:alarms, Shapes::ShapeRef.new(shape: Alarms, location_name: "Alarms"))
|
180
|
+
ScalingPolicy.add_member(:creation_time, Shapes::ShapeRef.new(shape: TimestampType, required: true, location_name: "CreationTime"))
|
181
|
+
ScalingPolicy.struct_class = Types::ScalingPolicy
|
182
|
+
|
183
|
+
StepAdjustment.add_member(:metric_interval_lower_bound, Shapes::ShapeRef.new(shape: MetricScale, location_name: "MetricIntervalLowerBound"))
|
184
|
+
StepAdjustment.add_member(:metric_interval_upper_bound, Shapes::ShapeRef.new(shape: MetricScale, location_name: "MetricIntervalUpperBound"))
|
185
|
+
StepAdjustment.add_member(:scaling_adjustment, Shapes::ShapeRef.new(shape: ScalingAdjustment, required: true, location_name: "ScalingAdjustment"))
|
186
|
+
StepAdjustment.struct_class = Types::StepAdjustment
|
187
|
+
|
188
|
+
StepAdjustments.member = Shapes::ShapeRef.new(shape: StepAdjustment)
|
189
|
+
|
190
|
+
StepScalingPolicyConfiguration.add_member(:adjustment_type, Shapes::ShapeRef.new(shape: AdjustmentType, location_name: "AdjustmentType"))
|
191
|
+
StepScalingPolicyConfiguration.add_member(:step_adjustments, Shapes::ShapeRef.new(shape: StepAdjustments, location_name: "StepAdjustments"))
|
192
|
+
StepScalingPolicyConfiguration.add_member(:min_adjustment_magnitude, Shapes::ShapeRef.new(shape: MinAdjustmentMagnitude, location_name: "MinAdjustmentMagnitude"))
|
193
|
+
StepScalingPolicyConfiguration.add_member(:cooldown, Shapes::ShapeRef.new(shape: Cooldown, location_name: "Cooldown"))
|
194
|
+
StepScalingPolicyConfiguration.add_member(:metric_aggregation_type, Shapes::ShapeRef.new(shape: MetricAggregationType, location_name: "MetricAggregationType"))
|
195
|
+
StepScalingPolicyConfiguration.struct_class = Types::StepScalingPolicyConfiguration
|
196
|
+
|
318
197
|
|
198
|
+
# @api private
|
199
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
200
|
+
|
201
|
+
api.version = "2016-02-06"
|
202
|
+
|
203
|
+
api.metadata = {
|
204
|
+
"endpointPrefix" => "autoscaling",
|
205
|
+
"jsonVersion" => "1.1",
|
206
|
+
"protocol" => "json",
|
207
|
+
"serviceFullName" => "Application Auto Scaling",
|
208
|
+
"signatureVersion" => "v4",
|
209
|
+
"signingName" => "application-autoscaling",
|
210
|
+
"targetPrefix" => "AnyScaleFrontendService",
|
211
|
+
}
|
212
|
+
|
213
|
+
api.add_operation(:delete_scaling_policy, Seahorse::Model::Operation.new.tap do |o|
|
214
|
+
o.name = "DeleteScalingPolicy"
|
215
|
+
o.http_method = "POST"
|
216
|
+
o.http_request_uri = "/"
|
217
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteScalingPolicyRequest)
|
218
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteScalingPolicyResponse)
|
219
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
220
|
+
o.errors << Shapes::ShapeRef.new(shape: ObjectNotFoundException)
|
221
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentUpdateException)
|
222
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
|
223
|
+
end)
|
224
|
+
|
225
|
+
api.add_operation(:deregister_scalable_target, Seahorse::Model::Operation.new.tap do |o|
|
226
|
+
o.name = "DeregisterScalableTarget"
|
227
|
+
o.http_method = "POST"
|
228
|
+
o.http_request_uri = "/"
|
229
|
+
o.input = Shapes::ShapeRef.new(shape: DeregisterScalableTargetRequest)
|
230
|
+
o.output = Shapes::ShapeRef.new(shape: DeregisterScalableTargetResponse)
|
231
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
232
|
+
o.errors << Shapes::ShapeRef.new(shape: ObjectNotFoundException)
|
233
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentUpdateException)
|
234
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
|
235
|
+
end)
|
236
|
+
|
237
|
+
api.add_operation(:describe_scalable_targets, Seahorse::Model::Operation.new.tap do |o|
|
238
|
+
o.name = "DescribeScalableTargets"
|
239
|
+
o.http_method = "POST"
|
240
|
+
o.http_request_uri = "/"
|
241
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeScalableTargetsRequest)
|
242
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeScalableTargetsResponse)
|
243
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
244
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
245
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentUpdateException)
|
246
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
|
247
|
+
o[:pager] = Aws::Pager.new(
|
248
|
+
limit_key: "max_results",
|
249
|
+
tokens: {
|
250
|
+
"next_token" => "next_token"
|
251
|
+
}
|
252
|
+
)
|
253
|
+
end)
|
254
|
+
|
255
|
+
api.add_operation(:describe_scaling_activities, Seahorse::Model::Operation.new.tap do |o|
|
256
|
+
o.name = "DescribeScalingActivities"
|
257
|
+
o.http_method = "POST"
|
258
|
+
o.http_request_uri = "/"
|
259
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeScalingActivitiesRequest)
|
260
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeScalingActivitiesResponse)
|
261
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
262
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
263
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentUpdateException)
|
264
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
|
265
|
+
o[:pager] = Aws::Pager.new(
|
266
|
+
limit_key: "max_results",
|
267
|
+
tokens: {
|
268
|
+
"next_token" => "next_token"
|
269
|
+
}
|
270
|
+
)
|
271
|
+
end)
|
272
|
+
|
273
|
+
api.add_operation(:describe_scaling_policies, Seahorse::Model::Operation.new.tap do |o|
|
274
|
+
o.name = "DescribeScalingPolicies"
|
275
|
+
o.http_method = "POST"
|
276
|
+
o.http_request_uri = "/"
|
277
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeScalingPoliciesRequest)
|
278
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeScalingPoliciesResponse)
|
279
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
280
|
+
o.errors << Shapes::ShapeRef.new(shape: FailedResourceAccessException)
|
281
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
282
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentUpdateException)
|
283
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
|
284
|
+
o[:pager] = Aws::Pager.new(
|
285
|
+
limit_key: "max_results",
|
286
|
+
tokens: {
|
287
|
+
"next_token" => "next_token"
|
288
|
+
}
|
289
|
+
)
|
290
|
+
end)
|
291
|
+
|
292
|
+
api.add_operation(:put_scaling_policy, Seahorse::Model::Operation.new.tap do |o|
|
293
|
+
o.name = "PutScalingPolicy"
|
294
|
+
o.http_method = "POST"
|
295
|
+
o.http_request_uri = "/"
|
296
|
+
o.input = Shapes::ShapeRef.new(shape: PutScalingPolicyRequest)
|
297
|
+
o.output = Shapes::ShapeRef.new(shape: PutScalingPolicyResponse)
|
298
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
299
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
300
|
+
o.errors << Shapes::ShapeRef.new(shape: ObjectNotFoundException)
|
301
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentUpdateException)
|
302
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
|
303
|
+
end)
|
304
|
+
|
305
|
+
api.add_operation(:register_scalable_target, Seahorse::Model::Operation.new.tap do |o|
|
306
|
+
o.name = "RegisterScalableTarget"
|
307
|
+
o.http_method = "POST"
|
308
|
+
o.http_request_uri = "/"
|
309
|
+
o.input = Shapes::ShapeRef.new(shape: RegisterScalableTargetRequest)
|
310
|
+
o.output = Shapes::ShapeRef.new(shape: RegisterScalableTargetResponse)
|
311
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
312
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
313
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentUpdateException)
|
314
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
|
315
|
+
end)
|
319
316
|
end
|
317
|
+
|
320
318
|
end
|
321
319
|
end
|