@aws-sdk/client-application-auto-scaling 3.50.0 → 3.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/ApplicationAutoScalingServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +100 -1
- package/dist-cjs/protocols/Aws_json1_1.js +121 -406
- package/dist-es/index.js +1 -0
- package/dist-es/models/ApplicationAutoScalingServiceException.js +12 -0
- package/dist-es/models/models_0.js +93 -1
- package/dist-es/protocols/Aws_json1_1.js +246 -433
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/ApplicationAutoScalingServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +51 -22
- package/dist-types/ts3.4/ApplicationAutoScaling.d.ts +55 -0
- package/dist-types/ts3.4/ApplicationAutoScalingClient.d.ts +83 -0
- package/dist-types/ts3.4/commands/DeleteScalingPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteScheduledActionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeregisterScalableTargetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeScalableTargetsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeScalingActivitiesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeScalingPoliciesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeScheduledActionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutScalingPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutScheduledActionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/RegisterScalableTargetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +10 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/ApplicationAutoScalingServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +631 -0
- package/dist-types/ts3.4/pagination/DescribeScalableTargetsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/DescribeScalingActivitiesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/DescribeScalingPoliciesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/DescribeScheduledActionsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +32 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ApplicationAutoScalingServiceException as __BaseException } from "../models/ApplicationAutoScalingServiceException";
|
|
5
|
+
import { ConcurrentUpdateException, FailedResourceAccessException, InternalServiceException, InvalidNextTokenException, LimitExceededException, ObjectNotFoundException, ValidationException, } from "../models/models_0";
|
|
4
6
|
export var serializeAws_json1_1DeleteScalingPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var headers, body;
|
|
6
8
|
return __generator(this, function (_a) {
|
|
@@ -130,16 +132,16 @@ export var deserializeAws_json1_1DeleteScalingPolicyCommand = function (output,
|
|
|
130
132
|
});
|
|
131
133
|
}); };
|
|
132
134
|
var deserializeAws_json1_1DeleteScalingPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
133
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
134
|
-
var
|
|
135
|
-
return __generator(this, function (
|
|
136
|
-
switch (
|
|
135
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
136
|
+
var _c;
|
|
137
|
+
return __generator(this, function (_d) {
|
|
138
|
+
switch (_d.label) {
|
|
137
139
|
case 0:
|
|
138
140
|
_a = [__assign({}, output)];
|
|
139
|
-
|
|
141
|
+
_c = {};
|
|
140
142
|
return [4, parseBody(output.body, context)];
|
|
141
143
|
case 1:
|
|
142
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
144
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
143
145
|
errorCode = "UnknownError";
|
|
144
146
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
145
147
|
_b = errorCode;
|
|
@@ -154,40 +156,22 @@ var deserializeAws_json1_1DeleteScalingPolicyCommandError = function (output, co
|
|
|
154
156
|
case "com.amazonaws.applicationautoscaling#ValidationException": return [3, 8];
|
|
155
157
|
}
|
|
156
158
|
return [3, 10];
|
|
157
|
-
case 2:
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
case
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
case 4
|
|
164
|
-
|
|
165
|
-
return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
166
|
-
case 5:
|
|
167
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
168
|
-
return [3, 11];
|
|
169
|
-
case 6:
|
|
170
|
-
_e = [{}];
|
|
171
|
-
return [4, deserializeAws_json1_1ObjectNotFoundExceptionResponse(parsedOutput, context)];
|
|
172
|
-
case 7:
|
|
173
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
174
|
-
return [3, 11];
|
|
175
|
-
case 8:
|
|
176
|
-
_f = [{}];
|
|
177
|
-
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
178
|
-
case 9:
|
|
179
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
180
|
-
return [3, 11];
|
|
159
|
+
case 2: return [4, deserializeAws_json1_1ConcurrentUpdateExceptionResponse(parsedOutput, context)];
|
|
160
|
+
case 3: throw _d.sent();
|
|
161
|
+
case 4: return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
162
|
+
case 5: throw _d.sent();
|
|
163
|
+
case 6: return [4, deserializeAws_json1_1ObjectNotFoundExceptionResponse(parsedOutput, context)];
|
|
164
|
+
case 7: throw _d.sent();
|
|
165
|
+
case 8: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
166
|
+
case 9: throw _d.sent();
|
|
181
167
|
case 10:
|
|
182
168
|
parsedBody = parsedOutput.body;
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
response
|
|
189
|
-
delete response.Message;
|
|
190
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
169
|
+
response = new __BaseException({
|
|
170
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
171
|
+
$fault: "client",
|
|
172
|
+
$metadata: deserializeMetadata(output),
|
|
173
|
+
});
|
|
174
|
+
throw __decorateServiceException(response, parsedBody);
|
|
191
175
|
}
|
|
192
176
|
});
|
|
193
177
|
}); };
|
|
@@ -210,16 +194,16 @@ export var deserializeAws_json1_1DeleteScheduledActionCommand = function (output
|
|
|
210
194
|
});
|
|
211
195
|
}); };
|
|
212
196
|
var deserializeAws_json1_1DeleteScheduledActionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
213
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
214
|
-
var
|
|
215
|
-
return __generator(this, function (
|
|
216
|
-
switch (
|
|
197
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
198
|
+
var _c;
|
|
199
|
+
return __generator(this, function (_d) {
|
|
200
|
+
switch (_d.label) {
|
|
217
201
|
case 0:
|
|
218
202
|
_a = [__assign({}, output)];
|
|
219
|
-
|
|
203
|
+
_c = {};
|
|
220
204
|
return [4, parseBody(output.body, context)];
|
|
221
205
|
case 1:
|
|
222
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
206
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
223
207
|
errorCode = "UnknownError";
|
|
224
208
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
225
209
|
_b = errorCode;
|
|
@@ -234,40 +218,22 @@ var deserializeAws_json1_1DeleteScheduledActionCommandError = function (output,
|
|
|
234
218
|
case "com.amazonaws.applicationautoscaling#ValidationException": return [3, 8];
|
|
235
219
|
}
|
|
236
220
|
return [3, 10];
|
|
237
|
-
case 2:
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
case
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
case 4
|
|
244
|
-
|
|
245
|
-
return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
246
|
-
case 5:
|
|
247
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
248
|
-
return [3, 11];
|
|
249
|
-
case 6:
|
|
250
|
-
_e = [{}];
|
|
251
|
-
return [4, deserializeAws_json1_1ObjectNotFoundExceptionResponse(parsedOutput, context)];
|
|
252
|
-
case 7:
|
|
253
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
254
|
-
return [3, 11];
|
|
255
|
-
case 8:
|
|
256
|
-
_f = [{}];
|
|
257
|
-
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
258
|
-
case 9:
|
|
259
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
260
|
-
return [3, 11];
|
|
221
|
+
case 2: return [4, deserializeAws_json1_1ConcurrentUpdateExceptionResponse(parsedOutput, context)];
|
|
222
|
+
case 3: throw _d.sent();
|
|
223
|
+
case 4: return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
224
|
+
case 5: throw _d.sent();
|
|
225
|
+
case 6: return [4, deserializeAws_json1_1ObjectNotFoundExceptionResponse(parsedOutput, context)];
|
|
226
|
+
case 7: throw _d.sent();
|
|
227
|
+
case 8: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
228
|
+
case 9: throw _d.sent();
|
|
261
229
|
case 10:
|
|
262
230
|
parsedBody = parsedOutput.body;
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
response
|
|
269
|
-
delete response.Message;
|
|
270
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
231
|
+
response = new __BaseException({
|
|
232
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
233
|
+
$fault: "client",
|
|
234
|
+
$metadata: deserializeMetadata(output),
|
|
235
|
+
});
|
|
236
|
+
throw __decorateServiceException(response, parsedBody);
|
|
271
237
|
}
|
|
272
238
|
});
|
|
273
239
|
}); };
|
|
@@ -290,16 +256,16 @@ export var deserializeAws_json1_1DeregisterScalableTargetCommand = function (out
|
|
|
290
256
|
});
|
|
291
257
|
}); };
|
|
292
258
|
var deserializeAws_json1_1DeregisterScalableTargetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
293
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
294
|
-
var
|
|
295
|
-
return __generator(this, function (
|
|
296
|
-
switch (
|
|
259
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
260
|
+
var _c;
|
|
261
|
+
return __generator(this, function (_d) {
|
|
262
|
+
switch (_d.label) {
|
|
297
263
|
case 0:
|
|
298
264
|
_a = [__assign({}, output)];
|
|
299
|
-
|
|
265
|
+
_c = {};
|
|
300
266
|
return [4, parseBody(output.body, context)];
|
|
301
267
|
case 1:
|
|
302
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
268
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
303
269
|
errorCode = "UnknownError";
|
|
304
270
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
305
271
|
_b = errorCode;
|
|
@@ -314,40 +280,22 @@ var deserializeAws_json1_1DeregisterScalableTargetCommandError = function (outpu
|
|
|
314
280
|
case "com.amazonaws.applicationautoscaling#ValidationException": return [3, 8];
|
|
315
281
|
}
|
|
316
282
|
return [3, 10];
|
|
317
|
-
case 2:
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
case
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
case 4
|
|
324
|
-
|
|
325
|
-
return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
326
|
-
case 5:
|
|
327
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
328
|
-
return [3, 11];
|
|
329
|
-
case 6:
|
|
330
|
-
_e = [{}];
|
|
331
|
-
return [4, deserializeAws_json1_1ObjectNotFoundExceptionResponse(parsedOutput, context)];
|
|
332
|
-
case 7:
|
|
333
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
334
|
-
return [3, 11];
|
|
335
|
-
case 8:
|
|
336
|
-
_f = [{}];
|
|
337
|
-
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
338
|
-
case 9:
|
|
339
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
340
|
-
return [3, 11];
|
|
283
|
+
case 2: return [4, deserializeAws_json1_1ConcurrentUpdateExceptionResponse(parsedOutput, context)];
|
|
284
|
+
case 3: throw _d.sent();
|
|
285
|
+
case 4: return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
286
|
+
case 5: throw _d.sent();
|
|
287
|
+
case 6: return [4, deserializeAws_json1_1ObjectNotFoundExceptionResponse(parsedOutput, context)];
|
|
288
|
+
case 7: throw _d.sent();
|
|
289
|
+
case 8: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
290
|
+
case 9: throw _d.sent();
|
|
341
291
|
case 10:
|
|
342
292
|
parsedBody = parsedOutput.body;
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
response
|
|
349
|
-
delete response.Message;
|
|
350
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
293
|
+
response = new __BaseException({
|
|
294
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
295
|
+
$fault: "client",
|
|
296
|
+
$metadata: deserializeMetadata(output),
|
|
297
|
+
});
|
|
298
|
+
throw __decorateServiceException(response, parsedBody);
|
|
351
299
|
}
|
|
352
300
|
});
|
|
353
301
|
}); };
|
|
@@ -370,16 +318,16 @@ export var deserializeAws_json1_1DescribeScalableTargetsCommand = function (outp
|
|
|
370
318
|
});
|
|
371
319
|
}); };
|
|
372
320
|
var deserializeAws_json1_1DescribeScalableTargetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
373
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
374
|
-
var
|
|
375
|
-
return __generator(this, function (
|
|
376
|
-
switch (
|
|
321
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
322
|
+
var _c;
|
|
323
|
+
return __generator(this, function (_d) {
|
|
324
|
+
switch (_d.label) {
|
|
377
325
|
case 0:
|
|
378
326
|
_a = [__assign({}, output)];
|
|
379
|
-
|
|
327
|
+
_c = {};
|
|
380
328
|
return [4, parseBody(output.body, context)];
|
|
381
329
|
case 1:
|
|
382
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
330
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
383
331
|
errorCode = "UnknownError";
|
|
384
332
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
385
333
|
_b = errorCode;
|
|
@@ -394,40 +342,22 @@ var deserializeAws_json1_1DescribeScalableTargetsCommandError = function (output
|
|
|
394
342
|
case "com.amazonaws.applicationautoscaling#ValidationException": return [3, 8];
|
|
395
343
|
}
|
|
396
344
|
return [3, 10];
|
|
397
|
-
case 2:
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
case
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
case 4
|
|
404
|
-
|
|
405
|
-
return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
406
|
-
case 5:
|
|
407
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
408
|
-
return [3, 11];
|
|
409
|
-
case 6:
|
|
410
|
-
_e = [{}];
|
|
411
|
-
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
412
|
-
case 7:
|
|
413
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
414
|
-
return [3, 11];
|
|
415
|
-
case 8:
|
|
416
|
-
_f = [{}];
|
|
417
|
-
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
418
|
-
case 9:
|
|
419
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
420
|
-
return [3, 11];
|
|
345
|
+
case 2: return [4, deserializeAws_json1_1ConcurrentUpdateExceptionResponse(parsedOutput, context)];
|
|
346
|
+
case 3: throw _d.sent();
|
|
347
|
+
case 4: return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
348
|
+
case 5: throw _d.sent();
|
|
349
|
+
case 6: return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
350
|
+
case 7: throw _d.sent();
|
|
351
|
+
case 8: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
352
|
+
case 9: throw _d.sent();
|
|
421
353
|
case 10:
|
|
422
354
|
parsedBody = parsedOutput.body;
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
response
|
|
429
|
-
delete response.Message;
|
|
430
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
355
|
+
response = new __BaseException({
|
|
356
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
357
|
+
$fault: "client",
|
|
358
|
+
$metadata: deserializeMetadata(output),
|
|
359
|
+
});
|
|
360
|
+
throw __decorateServiceException(response, parsedBody);
|
|
431
361
|
}
|
|
432
362
|
});
|
|
433
363
|
}); };
|
|
@@ -450,16 +380,16 @@ export var deserializeAws_json1_1DescribeScalingActivitiesCommand = function (ou
|
|
|
450
380
|
});
|
|
451
381
|
}); };
|
|
452
382
|
var deserializeAws_json1_1DescribeScalingActivitiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
453
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
454
|
-
var
|
|
455
|
-
return __generator(this, function (
|
|
456
|
-
switch (
|
|
383
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
384
|
+
var _c;
|
|
385
|
+
return __generator(this, function (_d) {
|
|
386
|
+
switch (_d.label) {
|
|
457
387
|
case 0:
|
|
458
388
|
_a = [__assign({}, output)];
|
|
459
|
-
|
|
389
|
+
_c = {};
|
|
460
390
|
return [4, parseBody(output.body, context)];
|
|
461
391
|
case 1:
|
|
462
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
392
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
463
393
|
errorCode = "UnknownError";
|
|
464
394
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
465
395
|
_b = errorCode;
|
|
@@ -474,40 +404,22 @@ var deserializeAws_json1_1DescribeScalingActivitiesCommandError = function (outp
|
|
|
474
404
|
case "com.amazonaws.applicationautoscaling#ValidationException": return [3, 8];
|
|
475
405
|
}
|
|
476
406
|
return [3, 10];
|
|
477
|
-
case 2:
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
case
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
case 4
|
|
484
|
-
|
|
485
|
-
return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
486
|
-
case 5:
|
|
487
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
488
|
-
return [3, 11];
|
|
489
|
-
case 6:
|
|
490
|
-
_e = [{}];
|
|
491
|
-
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
492
|
-
case 7:
|
|
493
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
494
|
-
return [3, 11];
|
|
495
|
-
case 8:
|
|
496
|
-
_f = [{}];
|
|
497
|
-
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
498
|
-
case 9:
|
|
499
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
500
|
-
return [3, 11];
|
|
407
|
+
case 2: return [4, deserializeAws_json1_1ConcurrentUpdateExceptionResponse(parsedOutput, context)];
|
|
408
|
+
case 3: throw _d.sent();
|
|
409
|
+
case 4: return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
410
|
+
case 5: throw _d.sent();
|
|
411
|
+
case 6: return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
412
|
+
case 7: throw _d.sent();
|
|
413
|
+
case 8: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
414
|
+
case 9: throw _d.sent();
|
|
501
415
|
case 10:
|
|
502
416
|
parsedBody = parsedOutput.body;
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
response
|
|
509
|
-
delete response.Message;
|
|
510
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
417
|
+
response = new __BaseException({
|
|
418
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
419
|
+
$fault: "client",
|
|
420
|
+
$metadata: deserializeMetadata(output),
|
|
421
|
+
});
|
|
422
|
+
throw __decorateServiceException(response, parsedBody);
|
|
511
423
|
}
|
|
512
424
|
});
|
|
513
425
|
}); };
|
|
@@ -530,16 +442,16 @@ export var deserializeAws_json1_1DescribeScalingPoliciesCommand = function (outp
|
|
|
530
442
|
});
|
|
531
443
|
}); };
|
|
532
444
|
var deserializeAws_json1_1DescribeScalingPoliciesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
533
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
534
|
-
var
|
|
535
|
-
return __generator(this, function (
|
|
536
|
-
switch (
|
|
445
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
446
|
+
var _c;
|
|
447
|
+
return __generator(this, function (_d) {
|
|
448
|
+
switch (_d.label) {
|
|
537
449
|
case 0:
|
|
538
450
|
_a = [__assign({}, output)];
|
|
539
|
-
|
|
451
|
+
_c = {};
|
|
540
452
|
return [4, parseBody(output.body, context)];
|
|
541
453
|
case 1:
|
|
542
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
454
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
543
455
|
errorCode = "UnknownError";
|
|
544
456
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
545
457
|
_b = errorCode;
|
|
@@ -556,46 +468,24 @@ var deserializeAws_json1_1DescribeScalingPoliciesCommandError = function (output
|
|
|
556
468
|
case "com.amazonaws.applicationautoscaling#ValidationException": return [3, 10];
|
|
557
469
|
}
|
|
558
470
|
return [3, 12];
|
|
559
|
-
case 2:
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
case
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
case 4
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
case
|
|
569
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
570
|
-
return [3, 13];
|
|
571
|
-
case 6:
|
|
572
|
-
_e = [{}];
|
|
573
|
-
return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
574
|
-
case 7:
|
|
575
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
576
|
-
return [3, 13];
|
|
577
|
-
case 8:
|
|
578
|
-
_f = [{}];
|
|
579
|
-
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
580
|
-
case 9:
|
|
581
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
582
|
-
return [3, 13];
|
|
583
|
-
case 10:
|
|
584
|
-
_g = [{}];
|
|
585
|
-
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
586
|
-
case 11:
|
|
587
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
588
|
-
return [3, 13];
|
|
471
|
+
case 2: return [4, deserializeAws_json1_1ConcurrentUpdateExceptionResponse(parsedOutput, context)];
|
|
472
|
+
case 3: throw _d.sent();
|
|
473
|
+
case 4: return [4, deserializeAws_json1_1FailedResourceAccessExceptionResponse(parsedOutput, context)];
|
|
474
|
+
case 5: throw _d.sent();
|
|
475
|
+
case 6: return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
476
|
+
case 7: throw _d.sent();
|
|
477
|
+
case 8: return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
478
|
+
case 9: throw _d.sent();
|
|
479
|
+
case 10: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
480
|
+
case 11: throw _d.sent();
|
|
589
481
|
case 12:
|
|
590
482
|
parsedBody = parsedOutput.body;
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
response
|
|
597
|
-
delete response.Message;
|
|
598
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
483
|
+
response = new __BaseException({
|
|
484
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
485
|
+
$fault: "client",
|
|
486
|
+
$metadata: deserializeMetadata(output),
|
|
487
|
+
});
|
|
488
|
+
throw __decorateServiceException(response, parsedBody);
|
|
599
489
|
}
|
|
600
490
|
});
|
|
601
491
|
}); };
|
|
@@ -618,16 +508,16 @@ export var deserializeAws_json1_1DescribeScheduledActionsCommand = function (out
|
|
|
618
508
|
});
|
|
619
509
|
}); };
|
|
620
510
|
var deserializeAws_json1_1DescribeScheduledActionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
621
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
622
|
-
var
|
|
623
|
-
return __generator(this, function (
|
|
624
|
-
switch (
|
|
511
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
512
|
+
var _c;
|
|
513
|
+
return __generator(this, function (_d) {
|
|
514
|
+
switch (_d.label) {
|
|
625
515
|
case 0:
|
|
626
516
|
_a = [__assign({}, output)];
|
|
627
|
-
|
|
517
|
+
_c = {};
|
|
628
518
|
return [4, parseBody(output.body, context)];
|
|
629
519
|
case 1:
|
|
630
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
520
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
631
521
|
errorCode = "UnknownError";
|
|
632
522
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
633
523
|
_b = errorCode;
|
|
@@ -642,40 +532,22 @@ var deserializeAws_json1_1DescribeScheduledActionsCommandError = function (outpu
|
|
|
642
532
|
case "com.amazonaws.applicationautoscaling#ValidationException": return [3, 8];
|
|
643
533
|
}
|
|
644
534
|
return [3, 10];
|
|
645
|
-
case 2:
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
case
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
case 4
|
|
652
|
-
|
|
653
|
-
return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
654
|
-
case 5:
|
|
655
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
656
|
-
return [3, 11];
|
|
657
|
-
case 6:
|
|
658
|
-
_e = [{}];
|
|
659
|
-
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
660
|
-
case 7:
|
|
661
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
662
|
-
return [3, 11];
|
|
663
|
-
case 8:
|
|
664
|
-
_f = [{}];
|
|
665
|
-
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
666
|
-
case 9:
|
|
667
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
668
|
-
return [3, 11];
|
|
535
|
+
case 2: return [4, deserializeAws_json1_1ConcurrentUpdateExceptionResponse(parsedOutput, context)];
|
|
536
|
+
case 3: throw _d.sent();
|
|
537
|
+
case 4: return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
538
|
+
case 5: throw _d.sent();
|
|
539
|
+
case 6: return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
540
|
+
case 7: throw _d.sent();
|
|
541
|
+
case 8: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
542
|
+
case 9: throw _d.sent();
|
|
669
543
|
case 10:
|
|
670
544
|
parsedBody = parsedOutput.body;
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
response
|
|
677
|
-
delete response.Message;
|
|
678
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
545
|
+
response = new __BaseException({
|
|
546
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
547
|
+
$fault: "client",
|
|
548
|
+
$metadata: deserializeMetadata(output),
|
|
549
|
+
});
|
|
550
|
+
throw __decorateServiceException(response, parsedBody);
|
|
679
551
|
}
|
|
680
552
|
});
|
|
681
553
|
}); };
|
|
@@ -698,16 +570,16 @@ export var deserializeAws_json1_1PutScalingPolicyCommand = function (output, con
|
|
|
698
570
|
});
|
|
699
571
|
}); };
|
|
700
572
|
var deserializeAws_json1_1PutScalingPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
701
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
702
|
-
var
|
|
703
|
-
return __generator(this, function (
|
|
704
|
-
switch (
|
|
573
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
574
|
+
var _c;
|
|
575
|
+
return __generator(this, function (_d) {
|
|
576
|
+
switch (_d.label) {
|
|
705
577
|
case 0:
|
|
706
578
|
_a = [__assign({}, output)];
|
|
707
|
-
|
|
579
|
+
_c = {};
|
|
708
580
|
return [4, parseBody(output.body, context)];
|
|
709
581
|
case 1:
|
|
710
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
582
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
711
583
|
errorCode = "UnknownError";
|
|
712
584
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
713
585
|
_b = errorCode;
|
|
@@ -726,52 +598,26 @@ var deserializeAws_json1_1PutScalingPolicyCommandError = function (output, conte
|
|
|
726
598
|
case "com.amazonaws.applicationautoscaling#ValidationException": return [3, 12];
|
|
727
599
|
}
|
|
728
600
|
return [3, 14];
|
|
729
|
-
case 2:
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
case
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
case 4
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
case
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
case 6:
|
|
742
|
-
_e = [{}];
|
|
743
|
-
return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
744
|
-
case 7:
|
|
745
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
746
|
-
return [3, 15];
|
|
747
|
-
case 8:
|
|
748
|
-
_f = [{}];
|
|
749
|
-
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
750
|
-
case 9:
|
|
751
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
752
|
-
return [3, 15];
|
|
753
|
-
case 10:
|
|
754
|
-
_g = [{}];
|
|
755
|
-
return [4, deserializeAws_json1_1ObjectNotFoundExceptionResponse(parsedOutput, context)];
|
|
756
|
-
case 11:
|
|
757
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
758
|
-
return [3, 15];
|
|
759
|
-
case 12:
|
|
760
|
-
_h = [{}];
|
|
761
|
-
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
762
|
-
case 13:
|
|
763
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
764
|
-
return [3, 15];
|
|
601
|
+
case 2: return [4, deserializeAws_json1_1ConcurrentUpdateExceptionResponse(parsedOutput, context)];
|
|
602
|
+
case 3: throw _d.sent();
|
|
603
|
+
case 4: return [4, deserializeAws_json1_1FailedResourceAccessExceptionResponse(parsedOutput, context)];
|
|
604
|
+
case 5: throw _d.sent();
|
|
605
|
+
case 6: return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
606
|
+
case 7: throw _d.sent();
|
|
607
|
+
case 8: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
608
|
+
case 9: throw _d.sent();
|
|
609
|
+
case 10: return [4, deserializeAws_json1_1ObjectNotFoundExceptionResponse(parsedOutput, context)];
|
|
610
|
+
case 11: throw _d.sent();
|
|
611
|
+
case 12: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
612
|
+
case 13: throw _d.sent();
|
|
765
613
|
case 14:
|
|
766
614
|
parsedBody = parsedOutput.body;
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
response
|
|
773
|
-
delete response.Message;
|
|
774
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
615
|
+
response = new __BaseException({
|
|
616
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
617
|
+
$fault: "client",
|
|
618
|
+
$metadata: deserializeMetadata(output),
|
|
619
|
+
});
|
|
620
|
+
throw __decorateServiceException(response, parsedBody);
|
|
775
621
|
}
|
|
776
622
|
});
|
|
777
623
|
}); };
|
|
@@ -794,16 +640,16 @@ export var deserializeAws_json1_1PutScheduledActionCommand = function (output, c
|
|
|
794
640
|
});
|
|
795
641
|
}); };
|
|
796
642
|
var deserializeAws_json1_1PutScheduledActionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
797
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
798
|
-
var
|
|
799
|
-
return __generator(this, function (
|
|
800
|
-
switch (
|
|
643
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
644
|
+
var _c;
|
|
645
|
+
return __generator(this, function (_d) {
|
|
646
|
+
switch (_d.label) {
|
|
801
647
|
case 0:
|
|
802
648
|
_a = [__assign({}, output)];
|
|
803
|
-
|
|
649
|
+
_c = {};
|
|
804
650
|
return [4, parseBody(output.body, context)];
|
|
805
651
|
case 1:
|
|
806
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
652
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
807
653
|
errorCode = "UnknownError";
|
|
808
654
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
809
655
|
_b = errorCode;
|
|
@@ -820,46 +666,24 @@ var deserializeAws_json1_1PutScheduledActionCommandError = function (output, con
|
|
|
820
666
|
case "com.amazonaws.applicationautoscaling#ValidationException": return [3, 10];
|
|
821
667
|
}
|
|
822
668
|
return [3, 12];
|
|
823
|
-
case 2:
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
case
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
case 4
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
case
|
|
833
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
834
|
-
return [3, 13];
|
|
835
|
-
case 6:
|
|
836
|
-
_e = [{}];
|
|
837
|
-
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
838
|
-
case 7:
|
|
839
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
840
|
-
return [3, 13];
|
|
841
|
-
case 8:
|
|
842
|
-
_f = [{}];
|
|
843
|
-
return [4, deserializeAws_json1_1ObjectNotFoundExceptionResponse(parsedOutput, context)];
|
|
844
|
-
case 9:
|
|
845
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
846
|
-
return [3, 13];
|
|
847
|
-
case 10:
|
|
848
|
-
_g = [{}];
|
|
849
|
-
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
850
|
-
case 11:
|
|
851
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
852
|
-
return [3, 13];
|
|
669
|
+
case 2: return [4, deserializeAws_json1_1ConcurrentUpdateExceptionResponse(parsedOutput, context)];
|
|
670
|
+
case 3: throw _d.sent();
|
|
671
|
+
case 4: return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
672
|
+
case 5: throw _d.sent();
|
|
673
|
+
case 6: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
674
|
+
case 7: throw _d.sent();
|
|
675
|
+
case 8: return [4, deserializeAws_json1_1ObjectNotFoundExceptionResponse(parsedOutput, context)];
|
|
676
|
+
case 9: throw _d.sent();
|
|
677
|
+
case 10: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
678
|
+
case 11: throw _d.sent();
|
|
853
679
|
case 12:
|
|
854
680
|
parsedBody = parsedOutput.body;
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
response
|
|
861
|
-
delete response.Message;
|
|
862
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
681
|
+
response = new __BaseException({
|
|
682
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
683
|
+
$fault: "client",
|
|
684
|
+
$metadata: deserializeMetadata(output),
|
|
685
|
+
});
|
|
686
|
+
throw __decorateServiceException(response, parsedBody);
|
|
863
687
|
}
|
|
864
688
|
});
|
|
865
689
|
}); };
|
|
@@ -882,16 +706,16 @@ export var deserializeAws_json1_1RegisterScalableTargetCommand = function (outpu
|
|
|
882
706
|
});
|
|
883
707
|
}); };
|
|
884
708
|
var deserializeAws_json1_1RegisterScalableTargetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
885
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
886
|
-
var
|
|
887
|
-
return __generator(this, function (
|
|
888
|
-
switch (
|
|
709
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
710
|
+
var _c;
|
|
711
|
+
return __generator(this, function (_d) {
|
|
712
|
+
switch (_d.label) {
|
|
889
713
|
case 0:
|
|
890
714
|
_a = [__assign({}, output)];
|
|
891
|
-
|
|
715
|
+
_c = {};
|
|
892
716
|
return [4, parseBody(output.body, context)];
|
|
893
717
|
case 1:
|
|
894
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
718
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
895
719
|
errorCode = "UnknownError";
|
|
896
720
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
897
721
|
_b = errorCode;
|
|
@@ -906,104 +730,86 @@ var deserializeAws_json1_1RegisterScalableTargetCommandError = function (output,
|
|
|
906
730
|
case "com.amazonaws.applicationautoscaling#ValidationException": return [3, 8];
|
|
907
731
|
}
|
|
908
732
|
return [3, 10];
|
|
909
|
-
case 2:
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
case
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
case 4
|
|
916
|
-
|
|
917
|
-
return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
918
|
-
case 5:
|
|
919
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
920
|
-
return [3, 11];
|
|
921
|
-
case 6:
|
|
922
|
-
_e = [{}];
|
|
923
|
-
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
924
|
-
case 7:
|
|
925
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
926
|
-
return [3, 11];
|
|
927
|
-
case 8:
|
|
928
|
-
_f = [{}];
|
|
929
|
-
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
930
|
-
case 9:
|
|
931
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
932
|
-
return [3, 11];
|
|
733
|
+
case 2: return [4, deserializeAws_json1_1ConcurrentUpdateExceptionResponse(parsedOutput, context)];
|
|
734
|
+
case 3: throw _d.sent();
|
|
735
|
+
case 4: return [4, deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
736
|
+
case 5: throw _d.sent();
|
|
737
|
+
case 6: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
738
|
+
case 7: throw _d.sent();
|
|
739
|
+
case 8: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
740
|
+
case 9: throw _d.sent();
|
|
933
741
|
case 10:
|
|
934
742
|
parsedBody = parsedOutput.body;
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
response
|
|
941
|
-
delete response.Message;
|
|
942
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
743
|
+
response = new __BaseException({
|
|
744
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
745
|
+
$fault: "client",
|
|
746
|
+
$metadata: deserializeMetadata(output),
|
|
747
|
+
});
|
|
748
|
+
throw __decorateServiceException(response, parsedBody);
|
|
943
749
|
}
|
|
944
750
|
});
|
|
945
751
|
}); };
|
|
946
752
|
var deserializeAws_json1_1ConcurrentUpdateExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
947
|
-
var body, deserialized,
|
|
753
|
+
var body, deserialized, exception;
|
|
948
754
|
return __generator(this, function (_a) {
|
|
949
755
|
body = parsedOutput.body;
|
|
950
756
|
deserialized = deserializeAws_json1_1ConcurrentUpdateException(body, context);
|
|
951
|
-
|
|
952
|
-
return [2,
|
|
757
|
+
exception = new ConcurrentUpdateException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
758
|
+
return [2, __decorateServiceException(exception, body)];
|
|
953
759
|
});
|
|
954
760
|
}); };
|
|
955
761
|
var deserializeAws_json1_1FailedResourceAccessExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
956
|
-
var body, deserialized,
|
|
762
|
+
var body, deserialized, exception;
|
|
957
763
|
return __generator(this, function (_a) {
|
|
958
764
|
body = parsedOutput.body;
|
|
959
765
|
deserialized = deserializeAws_json1_1FailedResourceAccessException(body, context);
|
|
960
|
-
|
|
961
|
-
return [2,
|
|
766
|
+
exception = new FailedResourceAccessException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
767
|
+
return [2, __decorateServiceException(exception, body)];
|
|
962
768
|
});
|
|
963
769
|
}); };
|
|
964
770
|
var deserializeAws_json1_1InternalServiceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
965
|
-
var body, deserialized,
|
|
771
|
+
var body, deserialized, exception;
|
|
966
772
|
return __generator(this, function (_a) {
|
|
967
773
|
body = parsedOutput.body;
|
|
968
774
|
deserialized = deserializeAws_json1_1InternalServiceException(body, context);
|
|
969
|
-
|
|
970
|
-
return [2,
|
|
775
|
+
exception = new InternalServiceException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
776
|
+
return [2, __decorateServiceException(exception, body)];
|
|
971
777
|
});
|
|
972
778
|
}); };
|
|
973
779
|
var deserializeAws_json1_1InvalidNextTokenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
974
|
-
var body, deserialized,
|
|
780
|
+
var body, deserialized, exception;
|
|
975
781
|
return __generator(this, function (_a) {
|
|
976
782
|
body = parsedOutput.body;
|
|
977
783
|
deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
|
|
978
|
-
|
|
979
|
-
return [2,
|
|
784
|
+
exception = new InvalidNextTokenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
785
|
+
return [2, __decorateServiceException(exception, body)];
|
|
980
786
|
});
|
|
981
787
|
}); };
|
|
982
788
|
var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
983
|
-
var body, deserialized,
|
|
789
|
+
var body, deserialized, exception;
|
|
984
790
|
return __generator(this, function (_a) {
|
|
985
791
|
body = parsedOutput.body;
|
|
986
792
|
deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
987
|
-
|
|
988
|
-
return [2,
|
|
793
|
+
exception = new LimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
794
|
+
return [2, __decorateServiceException(exception, body)];
|
|
989
795
|
});
|
|
990
796
|
}); };
|
|
991
797
|
var deserializeAws_json1_1ObjectNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
992
|
-
var body, deserialized,
|
|
798
|
+
var body, deserialized, exception;
|
|
993
799
|
return __generator(this, function (_a) {
|
|
994
800
|
body = parsedOutput.body;
|
|
995
801
|
deserialized = deserializeAws_json1_1ObjectNotFoundException(body, context);
|
|
996
|
-
|
|
997
|
-
return [2,
|
|
802
|
+
exception = new ObjectNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
803
|
+
return [2, __decorateServiceException(exception, body)];
|
|
998
804
|
});
|
|
999
805
|
}); };
|
|
1000
806
|
var deserializeAws_json1_1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1001
|
-
var body, deserialized,
|
|
807
|
+
var body, deserialized, exception;
|
|
1002
808
|
return __generator(this, function (_a) {
|
|
1003
809
|
body = parsedOutput.body;
|
|
1004
810
|
deserialized = deserializeAws_json1_1ValidationException(body, context);
|
|
1005
|
-
|
|
1006
|
-
return [2,
|
|
811
|
+
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
812
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1007
813
|
});
|
|
1008
814
|
}); };
|
|
1009
815
|
var serializeAws_json1_1CustomizedMetricSpecification = function (input, context) {
|
|
@@ -1170,7 +976,7 @@ var deserializeAws_json1_1Alarm = function (output, context) {
|
|
|
1170
976
|
};
|
|
1171
977
|
};
|
|
1172
978
|
var deserializeAws_json1_1Alarms = function (output, context) {
|
|
1173
|
-
|
|
979
|
+
var retVal = (output || [])
|
|
1174
980
|
.filter(function (e) { return e != null; })
|
|
1175
981
|
.map(function (entry) {
|
|
1176
982
|
if (entry === null) {
|
|
@@ -1178,6 +984,7 @@ var deserializeAws_json1_1Alarms = function (output, context) {
|
|
|
1178
984
|
}
|
|
1179
985
|
return deserializeAws_json1_1Alarm(entry, context);
|
|
1180
986
|
});
|
|
987
|
+
return retVal;
|
|
1181
988
|
};
|
|
1182
989
|
var deserializeAws_json1_1ConcurrentUpdateException = function (output, context) {
|
|
1183
990
|
return {
|
|
@@ -1263,7 +1070,7 @@ var deserializeAws_json1_1MetricDimension = function (output, context) {
|
|
|
1263
1070
|
};
|
|
1264
1071
|
};
|
|
1265
1072
|
var deserializeAws_json1_1MetricDimensions = function (output, context) {
|
|
1266
|
-
|
|
1073
|
+
var retVal = (output || [])
|
|
1267
1074
|
.filter(function (e) { return e != null; })
|
|
1268
1075
|
.map(function (entry) {
|
|
1269
1076
|
if (entry === null) {
|
|
@@ -1271,6 +1078,7 @@ var deserializeAws_json1_1MetricDimensions = function (output, context) {
|
|
|
1271
1078
|
}
|
|
1272
1079
|
return deserializeAws_json1_1MetricDimension(entry, context);
|
|
1273
1080
|
});
|
|
1081
|
+
return retVal;
|
|
1274
1082
|
};
|
|
1275
1083
|
var deserializeAws_json1_1ObjectNotFoundException = function (output, context) {
|
|
1276
1084
|
return {
|
|
@@ -1320,7 +1128,7 @@ var deserializeAws_json1_1ScalableTargetAction = function (output, context) {
|
|
|
1320
1128
|
};
|
|
1321
1129
|
};
|
|
1322
1130
|
var deserializeAws_json1_1ScalableTargets = function (output, context) {
|
|
1323
|
-
|
|
1131
|
+
var retVal = (output || [])
|
|
1324
1132
|
.filter(function (e) { return e != null; })
|
|
1325
1133
|
.map(function (entry) {
|
|
1326
1134
|
if (entry === null) {
|
|
@@ -1328,9 +1136,10 @@ var deserializeAws_json1_1ScalableTargets = function (output, context) {
|
|
|
1328
1136
|
}
|
|
1329
1137
|
return deserializeAws_json1_1ScalableTarget(entry, context);
|
|
1330
1138
|
});
|
|
1139
|
+
return retVal;
|
|
1331
1140
|
};
|
|
1332
1141
|
var deserializeAws_json1_1ScalingActivities = function (output, context) {
|
|
1333
|
-
|
|
1142
|
+
var retVal = (output || [])
|
|
1334
1143
|
.filter(function (e) { return e != null; })
|
|
1335
1144
|
.map(function (entry) {
|
|
1336
1145
|
if (entry === null) {
|
|
@@ -1338,6 +1147,7 @@ var deserializeAws_json1_1ScalingActivities = function (output, context) {
|
|
|
1338
1147
|
}
|
|
1339
1148
|
return deserializeAws_json1_1ScalingActivity(entry, context);
|
|
1340
1149
|
});
|
|
1150
|
+
return retVal;
|
|
1341
1151
|
};
|
|
1342
1152
|
var deserializeAws_json1_1ScalingActivity = function (output, context) {
|
|
1343
1153
|
return {
|
|
@@ -1359,7 +1169,7 @@ var deserializeAws_json1_1ScalingActivity = function (output, context) {
|
|
|
1359
1169
|
};
|
|
1360
1170
|
};
|
|
1361
1171
|
var deserializeAws_json1_1ScalingPolicies = function (output, context) {
|
|
1362
|
-
|
|
1172
|
+
var retVal = (output || [])
|
|
1363
1173
|
.filter(function (e) { return e != null; })
|
|
1364
1174
|
.map(function (entry) {
|
|
1365
1175
|
if (entry === null) {
|
|
@@ -1367,6 +1177,7 @@ var deserializeAws_json1_1ScalingPolicies = function (output, context) {
|
|
|
1367
1177
|
}
|
|
1368
1178
|
return deserializeAws_json1_1ScalingPolicy(entry, context);
|
|
1369
1179
|
});
|
|
1180
|
+
return retVal;
|
|
1370
1181
|
};
|
|
1371
1182
|
var deserializeAws_json1_1ScalingPolicy = function (output, context) {
|
|
1372
1183
|
return {
|
|
@@ -1415,7 +1226,7 @@ var deserializeAws_json1_1ScheduledAction = function (output, context) {
|
|
|
1415
1226
|
};
|
|
1416
1227
|
};
|
|
1417
1228
|
var deserializeAws_json1_1ScheduledActions = function (output, context) {
|
|
1418
|
-
|
|
1229
|
+
var retVal = (output || [])
|
|
1419
1230
|
.filter(function (e) { return e != null; })
|
|
1420
1231
|
.map(function (entry) {
|
|
1421
1232
|
if (entry === null) {
|
|
@@ -1423,6 +1234,7 @@ var deserializeAws_json1_1ScheduledActions = function (output, context) {
|
|
|
1423
1234
|
}
|
|
1424
1235
|
return deserializeAws_json1_1ScheduledAction(entry, context);
|
|
1425
1236
|
});
|
|
1237
|
+
return retVal;
|
|
1426
1238
|
};
|
|
1427
1239
|
var deserializeAws_json1_1StepAdjustment = function (output, context) {
|
|
1428
1240
|
return {
|
|
@@ -1432,7 +1244,7 @@ var deserializeAws_json1_1StepAdjustment = function (output, context) {
|
|
|
1432
1244
|
};
|
|
1433
1245
|
};
|
|
1434
1246
|
var deserializeAws_json1_1StepAdjustments = function (output, context) {
|
|
1435
|
-
|
|
1247
|
+
var retVal = (output || [])
|
|
1436
1248
|
.filter(function (e) { return e != null; })
|
|
1437
1249
|
.map(function (entry) {
|
|
1438
1250
|
if (entry === null) {
|
|
@@ -1440,6 +1252,7 @@ var deserializeAws_json1_1StepAdjustments = function (output, context) {
|
|
|
1440
1252
|
}
|
|
1441
1253
|
return deserializeAws_json1_1StepAdjustment(entry, context);
|
|
1442
1254
|
});
|
|
1255
|
+
return retVal;
|
|
1443
1256
|
};
|
|
1444
1257
|
var deserializeAws_json1_1StepScalingPolicyConfiguration = function (output, context) {
|
|
1445
1258
|
return {
|