@aws-sdk/client-compute-optimizer 3.52.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 +11 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/ComputeOptimizerServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +121 -3
- package/dist-cjs/protocols/Aws_json1_0.js +298 -1077
- package/dist-es/index.js +1 -0
- package/dist-es/models/ComputeOptimizerServiceException.js +12 -0
- package/dist-es/models/models_0.js +110 -1
- package/dist-es/protocols/Aws_json1_0.js +580 -1132
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/ComputeOptimizerServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +65 -37
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/ComputeOptimizerServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +47 -37
- package/package.json +25 -25
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_json1_0UpdateEnrollmentStatusCommand = exports.deserializeAws_json1_0PutRecommendationPreferencesCommand = exports.deserializeAws_json1_0GetRecommendationSummariesCommand = exports.deserializeAws_json1_0GetRecommendationPreferencesCommand = exports.deserializeAws_json1_0GetLambdaFunctionRecommendationsCommand = exports.deserializeAws_json1_0GetEnrollmentStatusesForOrganizationCommand = exports.deserializeAws_json1_0GetEnrollmentStatusCommand = exports.deserializeAws_json1_0GetEffectiveRecommendationPreferencesCommand = exports.deserializeAws_json1_0GetEC2RecommendationProjectedMetricsCommand = exports.deserializeAws_json1_0GetEC2InstanceRecommendationsCommand = exports.deserializeAws_json1_0GetEBSVolumeRecommendationsCommand = exports.deserializeAws_json1_0GetAutoScalingGroupRecommendationsCommand = exports.deserializeAws_json1_0ExportLambdaFunctionRecommendationsCommand = exports.deserializeAws_json1_0ExportEC2InstanceRecommendationsCommand = exports.deserializeAws_json1_0ExportEBSVolumeRecommendationsCommand = exports.deserializeAws_json1_0ExportAutoScalingGroupRecommendationsCommand = exports.deserializeAws_json1_0DescribeRecommendationExportJobsCommand = exports.deserializeAws_json1_0DeleteRecommendationPreferencesCommand = exports.serializeAws_json1_0UpdateEnrollmentStatusCommand = exports.serializeAws_json1_0PutRecommendationPreferencesCommand = exports.serializeAws_json1_0GetRecommendationSummariesCommand = exports.serializeAws_json1_0GetRecommendationPreferencesCommand = exports.serializeAws_json1_0GetLambdaFunctionRecommendationsCommand = exports.serializeAws_json1_0GetEnrollmentStatusesForOrganizationCommand = exports.serializeAws_json1_0GetEnrollmentStatusCommand = exports.serializeAws_json1_0GetEffectiveRecommendationPreferencesCommand = exports.serializeAws_json1_0GetEC2RecommendationProjectedMetricsCommand = exports.serializeAws_json1_0GetEC2InstanceRecommendationsCommand = exports.serializeAws_json1_0GetEBSVolumeRecommendationsCommand = exports.serializeAws_json1_0GetAutoScalingGroupRecommendationsCommand = exports.serializeAws_json1_0ExportLambdaFunctionRecommendationsCommand = exports.serializeAws_json1_0ExportEC2InstanceRecommendationsCommand = exports.serializeAws_json1_0ExportEBSVolumeRecommendationsCommand = exports.serializeAws_json1_0ExportAutoScalingGroupRecommendationsCommand = exports.serializeAws_json1_0DescribeRecommendationExportJobsCommand = exports.serializeAws_json1_0DeleteRecommendationPreferencesCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const ComputeOptimizerServiceException_1 = require("../models/ComputeOptimizerServiceException");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
6
8
|
const serializeAws_json1_0DeleteRecommendationPreferencesCommand = async (input, context) => {
|
|
7
9
|
const headers = {
|
|
8
10
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -208,83 +210,37 @@ const deserializeAws_json1_0DeleteRecommendationPreferencesCommandError = async
|
|
|
208
210
|
switch (errorCode) {
|
|
209
211
|
case "AccessDeniedException":
|
|
210
212
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
211
|
-
|
|
212
|
-
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
213
|
-
name: errorCode,
|
|
214
|
-
$metadata: deserializeMetadata(output),
|
|
215
|
-
};
|
|
216
|
-
break;
|
|
213
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
217
214
|
case "InternalServerException":
|
|
218
215
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
219
|
-
|
|
220
|
-
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
221
|
-
name: errorCode,
|
|
222
|
-
$metadata: deserializeMetadata(output),
|
|
223
|
-
};
|
|
224
|
-
break;
|
|
216
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
225
217
|
case "InvalidParameterValueException":
|
|
226
218
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
227
|
-
|
|
228
|
-
...(await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
229
|
-
name: errorCode,
|
|
230
|
-
$metadata: deserializeMetadata(output),
|
|
231
|
-
};
|
|
232
|
-
break;
|
|
219
|
+
throw await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
233
220
|
case "MissingAuthenticationToken":
|
|
234
221
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
235
|
-
|
|
236
|
-
...(await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)),
|
|
237
|
-
name: errorCode,
|
|
238
|
-
$metadata: deserializeMetadata(output),
|
|
239
|
-
};
|
|
240
|
-
break;
|
|
222
|
+
throw await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context);
|
|
241
223
|
case "OptInRequiredException":
|
|
242
224
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
243
|
-
|
|
244
|
-
...(await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context)),
|
|
245
|
-
name: errorCode,
|
|
246
|
-
$metadata: deserializeMetadata(output),
|
|
247
|
-
};
|
|
248
|
-
break;
|
|
225
|
+
throw await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context);
|
|
249
226
|
case "ResourceNotFoundException":
|
|
250
227
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
251
|
-
|
|
252
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
253
|
-
name: errorCode,
|
|
254
|
-
$metadata: deserializeMetadata(output),
|
|
255
|
-
};
|
|
256
|
-
break;
|
|
228
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
257
229
|
case "ServiceUnavailableException":
|
|
258
230
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
259
|
-
|
|
260
|
-
...(await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
261
|
-
name: errorCode,
|
|
262
|
-
$metadata: deserializeMetadata(output),
|
|
263
|
-
};
|
|
264
|
-
break;
|
|
231
|
+
throw await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
265
232
|
case "ThrottlingException":
|
|
266
233
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
267
|
-
|
|
268
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
269
|
-
name: errorCode,
|
|
270
|
-
$metadata: deserializeMetadata(output),
|
|
271
|
-
};
|
|
272
|
-
break;
|
|
234
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
273
235
|
default:
|
|
274
236
|
const parsedBody = parsedOutput.body;
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
...parsedBody,
|
|
278
|
-
name: `${errorCode}`,
|
|
279
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
237
|
+
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
238
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
280
239
|
$fault: "client",
|
|
281
240
|
$metadata: deserializeMetadata(output),
|
|
282
|
-
};
|
|
241
|
+
});
|
|
242
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
283
243
|
}
|
|
284
|
-
const message = response.message || response.Message || errorCode;
|
|
285
|
-
response.message = message;
|
|
286
|
-
delete response.Message;
|
|
287
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
288
244
|
};
|
|
289
245
|
const deserializeAws_json1_0DescribeRecommendationExportJobsCommand = async (output, context) => {
|
|
290
246
|
if (output.statusCode >= 300) {
|
|
@@ -311,83 +267,37 @@ const deserializeAws_json1_0DescribeRecommendationExportJobsCommandError = async
|
|
|
311
267
|
switch (errorCode) {
|
|
312
268
|
case "AccessDeniedException":
|
|
313
269
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
314
|
-
|
|
315
|
-
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
316
|
-
name: errorCode,
|
|
317
|
-
$metadata: deserializeMetadata(output),
|
|
318
|
-
};
|
|
319
|
-
break;
|
|
270
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
320
271
|
case "InternalServerException":
|
|
321
272
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
322
|
-
|
|
323
|
-
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
324
|
-
name: errorCode,
|
|
325
|
-
$metadata: deserializeMetadata(output),
|
|
326
|
-
};
|
|
327
|
-
break;
|
|
273
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
328
274
|
case "InvalidParameterValueException":
|
|
329
275
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
330
|
-
|
|
331
|
-
...(await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
332
|
-
name: errorCode,
|
|
333
|
-
$metadata: deserializeMetadata(output),
|
|
334
|
-
};
|
|
335
|
-
break;
|
|
276
|
+
throw await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
336
277
|
case "MissingAuthenticationToken":
|
|
337
278
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
338
|
-
|
|
339
|
-
...(await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)),
|
|
340
|
-
name: errorCode,
|
|
341
|
-
$metadata: deserializeMetadata(output),
|
|
342
|
-
};
|
|
343
|
-
break;
|
|
279
|
+
throw await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context);
|
|
344
280
|
case "OptInRequiredException":
|
|
345
281
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
346
|
-
|
|
347
|
-
...(await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context)),
|
|
348
|
-
name: errorCode,
|
|
349
|
-
$metadata: deserializeMetadata(output),
|
|
350
|
-
};
|
|
351
|
-
break;
|
|
282
|
+
throw await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context);
|
|
352
283
|
case "ResourceNotFoundException":
|
|
353
284
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
354
|
-
|
|
355
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
356
|
-
name: errorCode,
|
|
357
|
-
$metadata: deserializeMetadata(output),
|
|
358
|
-
};
|
|
359
|
-
break;
|
|
285
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
360
286
|
case "ServiceUnavailableException":
|
|
361
287
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
362
|
-
|
|
363
|
-
...(await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
364
|
-
name: errorCode,
|
|
365
|
-
$metadata: deserializeMetadata(output),
|
|
366
|
-
};
|
|
367
|
-
break;
|
|
288
|
+
throw await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
368
289
|
case "ThrottlingException":
|
|
369
290
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
370
|
-
|
|
371
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
372
|
-
name: errorCode,
|
|
373
|
-
$metadata: deserializeMetadata(output),
|
|
374
|
-
};
|
|
375
|
-
break;
|
|
291
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
376
292
|
default:
|
|
377
293
|
const parsedBody = parsedOutput.body;
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
...parsedBody,
|
|
381
|
-
name: `${errorCode}`,
|
|
382
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
294
|
+
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
295
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
383
296
|
$fault: "client",
|
|
384
297
|
$metadata: deserializeMetadata(output),
|
|
385
|
-
};
|
|
298
|
+
});
|
|
299
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
386
300
|
}
|
|
387
|
-
const message = response.message || response.Message || errorCode;
|
|
388
|
-
response.message = message;
|
|
389
|
-
delete response.Message;
|
|
390
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
391
301
|
};
|
|
392
302
|
const deserializeAws_json1_0ExportAutoScalingGroupRecommendationsCommand = async (output, context) => {
|
|
393
303
|
if (output.statusCode >= 300) {
|
|
@@ -414,83 +324,37 @@ const deserializeAws_json1_0ExportAutoScalingGroupRecommendationsCommandError =
|
|
|
414
324
|
switch (errorCode) {
|
|
415
325
|
case "AccessDeniedException":
|
|
416
326
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
417
|
-
|
|
418
|
-
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
419
|
-
name: errorCode,
|
|
420
|
-
$metadata: deserializeMetadata(output),
|
|
421
|
-
};
|
|
422
|
-
break;
|
|
327
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
423
328
|
case "InternalServerException":
|
|
424
329
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
425
|
-
|
|
426
|
-
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
427
|
-
name: errorCode,
|
|
428
|
-
$metadata: deserializeMetadata(output),
|
|
429
|
-
};
|
|
430
|
-
break;
|
|
330
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
431
331
|
case "InvalidParameterValueException":
|
|
432
332
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
433
|
-
|
|
434
|
-
...(await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
435
|
-
name: errorCode,
|
|
436
|
-
$metadata: deserializeMetadata(output),
|
|
437
|
-
};
|
|
438
|
-
break;
|
|
333
|
+
throw await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
439
334
|
case "LimitExceededException":
|
|
440
335
|
case "com.amazonaws.computeoptimizer#LimitExceededException":
|
|
441
|
-
|
|
442
|
-
...(await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)),
|
|
443
|
-
name: errorCode,
|
|
444
|
-
$metadata: deserializeMetadata(output),
|
|
445
|
-
};
|
|
446
|
-
break;
|
|
336
|
+
throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
|
|
447
337
|
case "MissingAuthenticationToken":
|
|
448
338
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
449
|
-
|
|
450
|
-
...(await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)),
|
|
451
|
-
name: errorCode,
|
|
452
|
-
$metadata: deserializeMetadata(output),
|
|
453
|
-
};
|
|
454
|
-
break;
|
|
339
|
+
throw await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context);
|
|
455
340
|
case "OptInRequiredException":
|
|
456
341
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
457
|
-
|
|
458
|
-
...(await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context)),
|
|
459
|
-
name: errorCode,
|
|
460
|
-
$metadata: deserializeMetadata(output),
|
|
461
|
-
};
|
|
462
|
-
break;
|
|
342
|
+
throw await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context);
|
|
463
343
|
case "ServiceUnavailableException":
|
|
464
344
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
465
|
-
|
|
466
|
-
...(await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
467
|
-
name: errorCode,
|
|
468
|
-
$metadata: deserializeMetadata(output),
|
|
469
|
-
};
|
|
470
|
-
break;
|
|
345
|
+
throw await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
471
346
|
case "ThrottlingException":
|
|
472
347
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
473
|
-
|
|
474
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
475
|
-
name: errorCode,
|
|
476
|
-
$metadata: deserializeMetadata(output),
|
|
477
|
-
};
|
|
478
|
-
break;
|
|
348
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
479
349
|
default:
|
|
480
350
|
const parsedBody = parsedOutput.body;
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
...parsedBody,
|
|
484
|
-
name: `${errorCode}`,
|
|
485
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
351
|
+
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
352
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
486
353
|
$fault: "client",
|
|
487
354
|
$metadata: deserializeMetadata(output),
|
|
488
|
-
};
|
|
355
|
+
});
|
|
356
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
489
357
|
}
|
|
490
|
-
const message = response.message || response.Message || errorCode;
|
|
491
|
-
response.message = message;
|
|
492
|
-
delete response.Message;
|
|
493
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
494
358
|
};
|
|
495
359
|
const deserializeAws_json1_0ExportEBSVolumeRecommendationsCommand = async (output, context) => {
|
|
496
360
|
if (output.statusCode >= 300) {
|
|
@@ -517,83 +381,37 @@ const deserializeAws_json1_0ExportEBSVolumeRecommendationsCommandError = async (
|
|
|
517
381
|
switch (errorCode) {
|
|
518
382
|
case "AccessDeniedException":
|
|
519
383
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
520
|
-
|
|
521
|
-
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
522
|
-
name: errorCode,
|
|
523
|
-
$metadata: deserializeMetadata(output),
|
|
524
|
-
};
|
|
525
|
-
break;
|
|
384
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
526
385
|
case "InternalServerException":
|
|
527
386
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
528
|
-
|
|
529
|
-
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
530
|
-
name: errorCode,
|
|
531
|
-
$metadata: deserializeMetadata(output),
|
|
532
|
-
};
|
|
533
|
-
break;
|
|
387
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
534
388
|
case "InvalidParameterValueException":
|
|
535
389
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
536
|
-
|
|
537
|
-
...(await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
538
|
-
name: errorCode,
|
|
539
|
-
$metadata: deserializeMetadata(output),
|
|
540
|
-
};
|
|
541
|
-
break;
|
|
390
|
+
throw await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
542
391
|
case "LimitExceededException":
|
|
543
392
|
case "com.amazonaws.computeoptimizer#LimitExceededException":
|
|
544
|
-
|
|
545
|
-
...(await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)),
|
|
546
|
-
name: errorCode,
|
|
547
|
-
$metadata: deserializeMetadata(output),
|
|
548
|
-
};
|
|
549
|
-
break;
|
|
393
|
+
throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
|
|
550
394
|
case "MissingAuthenticationToken":
|
|
551
395
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
552
|
-
|
|
553
|
-
...(await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)),
|
|
554
|
-
name: errorCode,
|
|
555
|
-
$metadata: deserializeMetadata(output),
|
|
556
|
-
};
|
|
557
|
-
break;
|
|
396
|
+
throw await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context);
|
|
558
397
|
case "OptInRequiredException":
|
|
559
398
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
560
|
-
|
|
561
|
-
...(await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context)),
|
|
562
|
-
name: errorCode,
|
|
563
|
-
$metadata: deserializeMetadata(output),
|
|
564
|
-
};
|
|
565
|
-
break;
|
|
399
|
+
throw await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context);
|
|
566
400
|
case "ServiceUnavailableException":
|
|
567
401
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
568
|
-
|
|
569
|
-
...(await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
570
|
-
name: errorCode,
|
|
571
|
-
$metadata: deserializeMetadata(output),
|
|
572
|
-
};
|
|
573
|
-
break;
|
|
402
|
+
throw await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
574
403
|
case "ThrottlingException":
|
|
575
404
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
576
|
-
|
|
577
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
578
|
-
name: errorCode,
|
|
579
|
-
$metadata: deserializeMetadata(output),
|
|
580
|
-
};
|
|
581
|
-
break;
|
|
405
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
582
406
|
default:
|
|
583
407
|
const parsedBody = parsedOutput.body;
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
...parsedBody,
|
|
587
|
-
name: `${errorCode}`,
|
|
588
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
408
|
+
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
409
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
589
410
|
$fault: "client",
|
|
590
411
|
$metadata: deserializeMetadata(output),
|
|
591
|
-
};
|
|
412
|
+
});
|
|
413
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
592
414
|
}
|
|
593
|
-
const message = response.message || response.Message || errorCode;
|
|
594
|
-
response.message = message;
|
|
595
|
-
delete response.Message;
|
|
596
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
597
415
|
};
|
|
598
416
|
const deserializeAws_json1_0ExportEC2InstanceRecommendationsCommand = async (output, context) => {
|
|
599
417
|
if (output.statusCode >= 300) {
|
|
@@ -620,83 +438,37 @@ const deserializeAws_json1_0ExportEC2InstanceRecommendationsCommandError = async
|
|
|
620
438
|
switch (errorCode) {
|
|
621
439
|
case "AccessDeniedException":
|
|
622
440
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
623
|
-
|
|
624
|
-
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
625
|
-
name: errorCode,
|
|
626
|
-
$metadata: deserializeMetadata(output),
|
|
627
|
-
};
|
|
628
|
-
break;
|
|
441
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
629
442
|
case "InternalServerException":
|
|
630
443
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
631
|
-
|
|
632
|
-
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
633
|
-
name: errorCode,
|
|
634
|
-
$metadata: deserializeMetadata(output),
|
|
635
|
-
};
|
|
636
|
-
break;
|
|
444
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
637
445
|
case "InvalidParameterValueException":
|
|
638
446
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
639
|
-
|
|
640
|
-
...(await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
641
|
-
name: errorCode,
|
|
642
|
-
$metadata: deserializeMetadata(output),
|
|
643
|
-
};
|
|
644
|
-
break;
|
|
447
|
+
throw await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
645
448
|
case "LimitExceededException":
|
|
646
449
|
case "com.amazonaws.computeoptimizer#LimitExceededException":
|
|
647
|
-
|
|
648
|
-
...(await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)),
|
|
649
|
-
name: errorCode,
|
|
650
|
-
$metadata: deserializeMetadata(output),
|
|
651
|
-
};
|
|
652
|
-
break;
|
|
450
|
+
throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
|
|
653
451
|
case "MissingAuthenticationToken":
|
|
654
452
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
655
|
-
|
|
656
|
-
...(await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)),
|
|
657
|
-
name: errorCode,
|
|
658
|
-
$metadata: deserializeMetadata(output),
|
|
659
|
-
};
|
|
660
|
-
break;
|
|
453
|
+
throw await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context);
|
|
661
454
|
case "OptInRequiredException":
|
|
662
455
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
663
|
-
|
|
664
|
-
...(await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context)),
|
|
665
|
-
name: errorCode,
|
|
666
|
-
$metadata: deserializeMetadata(output),
|
|
667
|
-
};
|
|
668
|
-
break;
|
|
456
|
+
throw await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context);
|
|
669
457
|
case "ServiceUnavailableException":
|
|
670
458
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
671
|
-
|
|
672
|
-
...(await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
673
|
-
name: errorCode,
|
|
674
|
-
$metadata: deserializeMetadata(output),
|
|
675
|
-
};
|
|
676
|
-
break;
|
|
459
|
+
throw await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
677
460
|
case "ThrottlingException":
|
|
678
461
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
679
|
-
|
|
680
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
681
|
-
name: errorCode,
|
|
682
|
-
$metadata: deserializeMetadata(output),
|
|
683
|
-
};
|
|
684
|
-
break;
|
|
462
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
685
463
|
default:
|
|
686
464
|
const parsedBody = parsedOutput.body;
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
...parsedBody,
|
|
690
|
-
name: `${errorCode}`,
|
|
691
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
465
|
+
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
466
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
692
467
|
$fault: "client",
|
|
693
468
|
$metadata: deserializeMetadata(output),
|
|
694
|
-
};
|
|
469
|
+
});
|
|
470
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
695
471
|
}
|
|
696
|
-
const message = response.message || response.Message || errorCode;
|
|
697
|
-
response.message = message;
|
|
698
|
-
delete response.Message;
|
|
699
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
700
472
|
};
|
|
701
473
|
const deserializeAws_json1_0ExportLambdaFunctionRecommendationsCommand = async (output, context) => {
|
|
702
474
|
if (output.statusCode >= 300) {
|
|
@@ -723,83 +495,37 @@ const deserializeAws_json1_0ExportLambdaFunctionRecommendationsCommandError = as
|
|
|
723
495
|
switch (errorCode) {
|
|
724
496
|
case "AccessDeniedException":
|
|
725
497
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
726
|
-
|
|
727
|
-
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
728
|
-
name: errorCode,
|
|
729
|
-
$metadata: deserializeMetadata(output),
|
|
730
|
-
};
|
|
731
|
-
break;
|
|
498
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
732
499
|
case "InternalServerException":
|
|
733
500
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
734
|
-
|
|
735
|
-
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
736
|
-
name: errorCode,
|
|
737
|
-
$metadata: deserializeMetadata(output),
|
|
738
|
-
};
|
|
739
|
-
break;
|
|
501
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
740
502
|
case "InvalidParameterValueException":
|
|
741
503
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
742
|
-
|
|
743
|
-
...(await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
744
|
-
name: errorCode,
|
|
745
|
-
$metadata: deserializeMetadata(output),
|
|
746
|
-
};
|
|
747
|
-
break;
|
|
504
|
+
throw await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
748
505
|
case "LimitExceededException":
|
|
749
506
|
case "com.amazonaws.computeoptimizer#LimitExceededException":
|
|
750
|
-
|
|
751
|
-
...(await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)),
|
|
752
|
-
name: errorCode,
|
|
753
|
-
$metadata: deserializeMetadata(output),
|
|
754
|
-
};
|
|
755
|
-
break;
|
|
507
|
+
throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
|
|
756
508
|
case "MissingAuthenticationToken":
|
|
757
509
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
758
|
-
|
|
759
|
-
...(await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)),
|
|
760
|
-
name: errorCode,
|
|
761
|
-
$metadata: deserializeMetadata(output),
|
|
762
|
-
};
|
|
763
|
-
break;
|
|
510
|
+
throw await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context);
|
|
764
511
|
case "OptInRequiredException":
|
|
765
512
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
766
|
-
|
|
767
|
-
...(await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context)),
|
|
768
|
-
name: errorCode,
|
|
769
|
-
$metadata: deserializeMetadata(output),
|
|
770
|
-
};
|
|
771
|
-
break;
|
|
513
|
+
throw await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context);
|
|
772
514
|
case "ServiceUnavailableException":
|
|
773
515
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
774
|
-
|
|
775
|
-
...(await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
776
|
-
name: errorCode,
|
|
777
|
-
$metadata: deserializeMetadata(output),
|
|
778
|
-
};
|
|
779
|
-
break;
|
|
516
|
+
throw await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
780
517
|
case "ThrottlingException":
|
|
781
518
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
782
|
-
|
|
783
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
784
|
-
name: errorCode,
|
|
785
|
-
$metadata: deserializeMetadata(output),
|
|
786
|
-
};
|
|
787
|
-
break;
|
|
519
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
788
520
|
default:
|
|
789
521
|
const parsedBody = parsedOutput.body;
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
...parsedBody,
|
|
793
|
-
name: `${errorCode}`,
|
|
794
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
522
|
+
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
523
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
795
524
|
$fault: "client",
|
|
796
525
|
$metadata: deserializeMetadata(output),
|
|
797
|
-
};
|
|
526
|
+
});
|
|
527
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
798
528
|
}
|
|
799
|
-
const message = response.message || response.Message || errorCode;
|
|
800
|
-
response.message = message;
|
|
801
|
-
delete response.Message;
|
|
802
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
803
529
|
};
|
|
804
530
|
const deserializeAws_json1_0GetAutoScalingGroupRecommendationsCommand = async (output, context) => {
|
|
805
531
|
if (output.statusCode >= 300) {
|
|
@@ -826,83 +552,37 @@ const deserializeAws_json1_0GetAutoScalingGroupRecommendationsCommandError = asy
|
|
|
826
552
|
switch (errorCode) {
|
|
827
553
|
case "AccessDeniedException":
|
|
828
554
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
829
|
-
|
|
830
|
-
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
831
|
-
name: errorCode,
|
|
832
|
-
$metadata: deserializeMetadata(output),
|
|
833
|
-
};
|
|
834
|
-
break;
|
|
555
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
835
556
|
case "InternalServerException":
|
|
836
557
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
837
|
-
|
|
838
|
-
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
839
|
-
name: errorCode,
|
|
840
|
-
$metadata: deserializeMetadata(output),
|
|
841
|
-
};
|
|
842
|
-
break;
|
|
558
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
843
559
|
case "InvalidParameterValueException":
|
|
844
560
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
845
|
-
|
|
846
|
-
...(await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
847
|
-
name: errorCode,
|
|
848
|
-
$metadata: deserializeMetadata(output),
|
|
849
|
-
};
|
|
850
|
-
break;
|
|
561
|
+
throw await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
851
562
|
case "MissingAuthenticationToken":
|
|
852
563
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
853
|
-
|
|
854
|
-
...(await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)),
|
|
855
|
-
name: errorCode,
|
|
856
|
-
$metadata: deserializeMetadata(output),
|
|
857
|
-
};
|
|
858
|
-
break;
|
|
564
|
+
throw await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context);
|
|
859
565
|
case "OptInRequiredException":
|
|
860
566
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
861
|
-
|
|
862
|
-
...(await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context)),
|
|
863
|
-
name: errorCode,
|
|
864
|
-
$metadata: deserializeMetadata(output),
|
|
865
|
-
};
|
|
866
|
-
break;
|
|
567
|
+
throw await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context);
|
|
867
568
|
case "ResourceNotFoundException":
|
|
868
569
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
869
|
-
|
|
870
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
871
|
-
name: errorCode,
|
|
872
|
-
$metadata: deserializeMetadata(output),
|
|
873
|
-
};
|
|
874
|
-
break;
|
|
570
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
875
571
|
case "ServiceUnavailableException":
|
|
876
572
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
877
|
-
|
|
878
|
-
...(await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
879
|
-
name: errorCode,
|
|
880
|
-
$metadata: deserializeMetadata(output),
|
|
881
|
-
};
|
|
882
|
-
break;
|
|
573
|
+
throw await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
883
574
|
case "ThrottlingException":
|
|
884
575
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
885
|
-
|
|
886
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
887
|
-
name: errorCode,
|
|
888
|
-
$metadata: deserializeMetadata(output),
|
|
889
|
-
};
|
|
890
|
-
break;
|
|
576
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
891
577
|
default:
|
|
892
578
|
const parsedBody = parsedOutput.body;
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
...parsedBody,
|
|
896
|
-
name: `${errorCode}`,
|
|
897
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
579
|
+
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
580
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
898
581
|
$fault: "client",
|
|
899
582
|
$metadata: deserializeMetadata(output),
|
|
900
|
-
};
|
|
583
|
+
});
|
|
584
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
901
585
|
}
|
|
902
|
-
const message = response.message || response.Message || errorCode;
|
|
903
|
-
response.message = message;
|
|
904
|
-
delete response.Message;
|
|
905
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
906
586
|
};
|
|
907
587
|
const deserializeAws_json1_0GetEBSVolumeRecommendationsCommand = async (output, context) => {
|
|
908
588
|
if (output.statusCode >= 300) {
|
|
@@ -929,83 +609,37 @@ const deserializeAws_json1_0GetEBSVolumeRecommendationsCommandError = async (out
|
|
|
929
609
|
switch (errorCode) {
|
|
930
610
|
case "AccessDeniedException":
|
|
931
611
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
932
|
-
|
|
933
|
-
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
934
|
-
name: errorCode,
|
|
935
|
-
$metadata: deserializeMetadata(output),
|
|
936
|
-
};
|
|
937
|
-
break;
|
|
612
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
938
613
|
case "InternalServerException":
|
|
939
614
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
940
|
-
|
|
941
|
-
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
942
|
-
name: errorCode,
|
|
943
|
-
$metadata: deserializeMetadata(output),
|
|
944
|
-
};
|
|
945
|
-
break;
|
|
615
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
946
616
|
case "InvalidParameterValueException":
|
|
947
617
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
948
|
-
|
|
949
|
-
...(await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
950
|
-
name: errorCode,
|
|
951
|
-
$metadata: deserializeMetadata(output),
|
|
952
|
-
};
|
|
953
|
-
break;
|
|
618
|
+
throw await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
954
619
|
case "MissingAuthenticationToken":
|
|
955
620
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
956
|
-
|
|
957
|
-
...(await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)),
|
|
958
|
-
name: errorCode,
|
|
959
|
-
$metadata: deserializeMetadata(output),
|
|
960
|
-
};
|
|
961
|
-
break;
|
|
621
|
+
throw await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context);
|
|
962
622
|
case "OptInRequiredException":
|
|
963
623
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
964
|
-
|
|
965
|
-
...(await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context)),
|
|
966
|
-
name: errorCode,
|
|
967
|
-
$metadata: deserializeMetadata(output),
|
|
968
|
-
};
|
|
969
|
-
break;
|
|
624
|
+
throw await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context);
|
|
970
625
|
case "ResourceNotFoundException":
|
|
971
626
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
972
|
-
|
|
973
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
974
|
-
name: errorCode,
|
|
975
|
-
$metadata: deserializeMetadata(output),
|
|
976
|
-
};
|
|
977
|
-
break;
|
|
627
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
978
628
|
case "ServiceUnavailableException":
|
|
979
629
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
980
|
-
|
|
981
|
-
...(await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
982
|
-
name: errorCode,
|
|
983
|
-
$metadata: deserializeMetadata(output),
|
|
984
|
-
};
|
|
985
|
-
break;
|
|
630
|
+
throw await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
986
631
|
case "ThrottlingException":
|
|
987
632
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
988
|
-
|
|
989
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
990
|
-
name: errorCode,
|
|
991
|
-
$metadata: deserializeMetadata(output),
|
|
992
|
-
};
|
|
993
|
-
break;
|
|
633
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
994
634
|
default:
|
|
995
635
|
const parsedBody = parsedOutput.body;
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
...parsedBody,
|
|
999
|
-
name: `${errorCode}`,
|
|
1000
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
636
|
+
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
637
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1001
638
|
$fault: "client",
|
|
1002
639
|
$metadata: deserializeMetadata(output),
|
|
1003
|
-
};
|
|
640
|
+
});
|
|
641
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1004
642
|
}
|
|
1005
|
-
const message = response.message || response.Message || errorCode;
|
|
1006
|
-
response.message = message;
|
|
1007
|
-
delete response.Message;
|
|
1008
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1009
643
|
};
|
|
1010
644
|
const deserializeAws_json1_0GetEC2InstanceRecommendationsCommand = async (output, context) => {
|
|
1011
645
|
if (output.statusCode >= 300) {
|
|
@@ -1032,83 +666,37 @@ const deserializeAws_json1_0GetEC2InstanceRecommendationsCommandError = async (o
|
|
|
1032
666
|
switch (errorCode) {
|
|
1033
667
|
case "AccessDeniedException":
|
|
1034
668
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1035
|
-
|
|
1036
|
-
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1037
|
-
name: errorCode,
|
|
1038
|
-
$metadata: deserializeMetadata(output),
|
|
1039
|
-
};
|
|
1040
|
-
break;
|
|
669
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1041
670
|
case "InternalServerException":
|
|
1042
671
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1043
|
-
|
|
1044
|
-
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
1045
|
-
name: errorCode,
|
|
1046
|
-
$metadata: deserializeMetadata(output),
|
|
1047
|
-
};
|
|
1048
|
-
break;
|
|
672
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1049
673
|
case "InvalidParameterValueException":
|
|
1050
674
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1051
|
-
|
|
1052
|
-
...(await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1053
|
-
name: errorCode,
|
|
1054
|
-
$metadata: deserializeMetadata(output),
|
|
1055
|
-
};
|
|
1056
|
-
break;
|
|
675
|
+
throw await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1057
676
|
case "MissingAuthenticationToken":
|
|
1058
677
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1059
|
-
|
|
1060
|
-
...(await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)),
|
|
1061
|
-
name: errorCode,
|
|
1062
|
-
$metadata: deserializeMetadata(output),
|
|
1063
|
-
};
|
|
1064
|
-
break;
|
|
678
|
+
throw await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context);
|
|
1065
679
|
case "OptInRequiredException":
|
|
1066
680
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1067
|
-
|
|
1068
|
-
...(await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context)),
|
|
1069
|
-
name: errorCode,
|
|
1070
|
-
$metadata: deserializeMetadata(output),
|
|
1071
|
-
};
|
|
1072
|
-
break;
|
|
681
|
+
throw await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context);
|
|
1073
682
|
case "ResourceNotFoundException":
|
|
1074
683
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
1075
|
-
|
|
1076
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1077
|
-
name: errorCode,
|
|
1078
|
-
$metadata: deserializeMetadata(output),
|
|
1079
|
-
};
|
|
1080
|
-
break;
|
|
684
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1081
685
|
case "ServiceUnavailableException":
|
|
1082
686
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1083
|
-
|
|
1084
|
-
...(await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1085
|
-
name: errorCode,
|
|
1086
|
-
$metadata: deserializeMetadata(output),
|
|
1087
|
-
};
|
|
1088
|
-
break;
|
|
687
|
+
throw await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1089
688
|
case "ThrottlingException":
|
|
1090
689
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1091
|
-
|
|
1092
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1093
|
-
name: errorCode,
|
|
1094
|
-
$metadata: deserializeMetadata(output),
|
|
1095
|
-
};
|
|
1096
|
-
break;
|
|
690
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1097
691
|
default:
|
|
1098
692
|
const parsedBody = parsedOutput.body;
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
...parsedBody,
|
|
1102
|
-
name: `${errorCode}`,
|
|
1103
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
693
|
+
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
694
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1104
695
|
$fault: "client",
|
|
1105
696
|
$metadata: deserializeMetadata(output),
|
|
1106
|
-
};
|
|
697
|
+
});
|
|
698
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1107
699
|
}
|
|
1108
|
-
const message = response.message || response.Message || errorCode;
|
|
1109
|
-
response.message = message;
|
|
1110
|
-
delete response.Message;
|
|
1111
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1112
700
|
};
|
|
1113
701
|
const deserializeAws_json1_0GetEC2RecommendationProjectedMetricsCommand = async (output, context) => {
|
|
1114
702
|
if (output.statusCode >= 300) {
|
|
@@ -1135,83 +723,37 @@ const deserializeAws_json1_0GetEC2RecommendationProjectedMetricsCommandError = a
|
|
|
1135
723
|
switch (errorCode) {
|
|
1136
724
|
case "AccessDeniedException":
|
|
1137
725
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1138
|
-
|
|
1139
|
-
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1140
|
-
name: errorCode,
|
|
1141
|
-
$metadata: deserializeMetadata(output),
|
|
1142
|
-
};
|
|
1143
|
-
break;
|
|
726
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1144
727
|
case "InternalServerException":
|
|
1145
728
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1146
|
-
|
|
1147
|
-
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
1148
|
-
name: errorCode,
|
|
1149
|
-
$metadata: deserializeMetadata(output),
|
|
1150
|
-
};
|
|
1151
|
-
break;
|
|
729
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1152
730
|
case "InvalidParameterValueException":
|
|
1153
731
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1154
|
-
|
|
1155
|
-
...(await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1156
|
-
name: errorCode,
|
|
1157
|
-
$metadata: deserializeMetadata(output),
|
|
1158
|
-
};
|
|
1159
|
-
break;
|
|
732
|
+
throw await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1160
733
|
case "MissingAuthenticationToken":
|
|
1161
734
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1162
|
-
|
|
1163
|
-
...(await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)),
|
|
1164
|
-
name: errorCode,
|
|
1165
|
-
$metadata: deserializeMetadata(output),
|
|
1166
|
-
};
|
|
1167
|
-
break;
|
|
735
|
+
throw await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context);
|
|
1168
736
|
case "OptInRequiredException":
|
|
1169
737
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1170
|
-
|
|
1171
|
-
...(await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context)),
|
|
1172
|
-
name: errorCode,
|
|
1173
|
-
$metadata: deserializeMetadata(output),
|
|
1174
|
-
};
|
|
1175
|
-
break;
|
|
738
|
+
throw await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context);
|
|
1176
739
|
case "ResourceNotFoundException":
|
|
1177
740
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
1178
|
-
|
|
1179
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1180
|
-
name: errorCode,
|
|
1181
|
-
$metadata: deserializeMetadata(output),
|
|
1182
|
-
};
|
|
1183
|
-
break;
|
|
741
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1184
742
|
case "ServiceUnavailableException":
|
|
1185
743
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1186
|
-
|
|
1187
|
-
...(await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1188
|
-
name: errorCode,
|
|
1189
|
-
$metadata: deserializeMetadata(output),
|
|
1190
|
-
};
|
|
1191
|
-
break;
|
|
744
|
+
throw await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1192
745
|
case "ThrottlingException":
|
|
1193
746
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1194
|
-
|
|
1195
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1196
|
-
name: errorCode,
|
|
1197
|
-
$metadata: deserializeMetadata(output),
|
|
1198
|
-
};
|
|
1199
|
-
break;
|
|
747
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1200
748
|
default:
|
|
1201
749
|
const parsedBody = parsedOutput.body;
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
...parsedBody,
|
|
1205
|
-
name: `${errorCode}`,
|
|
1206
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
750
|
+
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
751
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1207
752
|
$fault: "client",
|
|
1208
753
|
$metadata: deserializeMetadata(output),
|
|
1209
|
-
};
|
|
754
|
+
});
|
|
755
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1210
756
|
}
|
|
1211
|
-
const message = response.message || response.Message || errorCode;
|
|
1212
|
-
response.message = message;
|
|
1213
|
-
delete response.Message;
|
|
1214
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1215
757
|
};
|
|
1216
758
|
const deserializeAws_json1_0GetEffectiveRecommendationPreferencesCommand = async (output, context) => {
|
|
1217
759
|
if (output.statusCode >= 300) {
|
|
@@ -1238,83 +780,37 @@ const deserializeAws_json1_0GetEffectiveRecommendationPreferencesCommandError =
|
|
|
1238
780
|
switch (errorCode) {
|
|
1239
781
|
case "AccessDeniedException":
|
|
1240
782
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1241
|
-
|
|
1242
|
-
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1243
|
-
name: errorCode,
|
|
1244
|
-
$metadata: deserializeMetadata(output),
|
|
1245
|
-
};
|
|
1246
|
-
break;
|
|
783
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1247
784
|
case "InternalServerException":
|
|
1248
785
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1249
|
-
|
|
1250
|
-
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
1251
|
-
name: errorCode,
|
|
1252
|
-
$metadata: deserializeMetadata(output),
|
|
1253
|
-
};
|
|
1254
|
-
break;
|
|
786
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1255
787
|
case "InvalidParameterValueException":
|
|
1256
788
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1257
|
-
|
|
1258
|
-
...(await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1259
|
-
name: errorCode,
|
|
1260
|
-
$metadata: deserializeMetadata(output),
|
|
1261
|
-
};
|
|
1262
|
-
break;
|
|
789
|
+
throw await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1263
790
|
case "MissingAuthenticationToken":
|
|
1264
791
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1265
|
-
|
|
1266
|
-
...(await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)),
|
|
1267
|
-
name: errorCode,
|
|
1268
|
-
$metadata: deserializeMetadata(output),
|
|
1269
|
-
};
|
|
1270
|
-
break;
|
|
792
|
+
throw await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context);
|
|
1271
793
|
case "OptInRequiredException":
|
|
1272
794
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1273
|
-
|
|
1274
|
-
...(await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context)),
|
|
1275
|
-
name: errorCode,
|
|
1276
|
-
$metadata: deserializeMetadata(output),
|
|
1277
|
-
};
|
|
1278
|
-
break;
|
|
795
|
+
throw await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context);
|
|
1279
796
|
case "ResourceNotFoundException":
|
|
1280
797
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
1281
|
-
|
|
1282
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1283
|
-
name: errorCode,
|
|
1284
|
-
$metadata: deserializeMetadata(output),
|
|
1285
|
-
};
|
|
1286
|
-
break;
|
|
798
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1287
799
|
case "ServiceUnavailableException":
|
|
1288
800
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1289
|
-
|
|
1290
|
-
...(await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1291
|
-
name: errorCode,
|
|
1292
|
-
$metadata: deserializeMetadata(output),
|
|
1293
|
-
};
|
|
1294
|
-
break;
|
|
801
|
+
throw await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1295
802
|
case "ThrottlingException":
|
|
1296
803
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1297
|
-
|
|
1298
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1299
|
-
name: errorCode,
|
|
1300
|
-
$metadata: deserializeMetadata(output),
|
|
1301
|
-
};
|
|
1302
|
-
break;
|
|
804
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1303
805
|
default:
|
|
1304
806
|
const parsedBody = parsedOutput.body;
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
...parsedBody,
|
|
1308
|
-
name: `${errorCode}`,
|
|
1309
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
807
|
+
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
808
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1310
809
|
$fault: "client",
|
|
1311
810
|
$metadata: deserializeMetadata(output),
|
|
1312
|
-
};
|
|
811
|
+
});
|
|
812
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1313
813
|
}
|
|
1314
|
-
const message = response.message || response.Message || errorCode;
|
|
1315
|
-
response.message = message;
|
|
1316
|
-
delete response.Message;
|
|
1317
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1318
814
|
};
|
|
1319
815
|
const deserializeAws_json1_0GetEnrollmentStatusCommand = async (output, context) => {
|
|
1320
816
|
if (output.statusCode >= 300) {
|
|
@@ -1341,67 +837,31 @@ const deserializeAws_json1_0GetEnrollmentStatusCommandError = async (output, con
|
|
|
1341
837
|
switch (errorCode) {
|
|
1342
838
|
case "AccessDeniedException":
|
|
1343
839
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1344
|
-
|
|
1345
|
-
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1346
|
-
name: errorCode,
|
|
1347
|
-
$metadata: deserializeMetadata(output),
|
|
1348
|
-
};
|
|
1349
|
-
break;
|
|
840
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1350
841
|
case "InternalServerException":
|
|
1351
842
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1352
|
-
|
|
1353
|
-
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
1354
|
-
name: errorCode,
|
|
1355
|
-
$metadata: deserializeMetadata(output),
|
|
1356
|
-
};
|
|
1357
|
-
break;
|
|
843
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1358
844
|
case "InvalidParameterValueException":
|
|
1359
845
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1360
|
-
|
|
1361
|
-
...(await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1362
|
-
name: errorCode,
|
|
1363
|
-
$metadata: deserializeMetadata(output),
|
|
1364
|
-
};
|
|
1365
|
-
break;
|
|
846
|
+
throw await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1366
847
|
case "MissingAuthenticationToken":
|
|
1367
848
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1368
|
-
|
|
1369
|
-
...(await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)),
|
|
1370
|
-
name: errorCode,
|
|
1371
|
-
$metadata: deserializeMetadata(output),
|
|
1372
|
-
};
|
|
1373
|
-
break;
|
|
849
|
+
throw await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context);
|
|
1374
850
|
case "ServiceUnavailableException":
|
|
1375
851
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1376
|
-
|
|
1377
|
-
...(await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1378
|
-
name: errorCode,
|
|
1379
|
-
$metadata: deserializeMetadata(output),
|
|
1380
|
-
};
|
|
1381
|
-
break;
|
|
852
|
+
throw await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1382
853
|
case "ThrottlingException":
|
|
1383
854
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1384
|
-
|
|
1385
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1386
|
-
name: errorCode,
|
|
1387
|
-
$metadata: deserializeMetadata(output),
|
|
1388
|
-
};
|
|
1389
|
-
break;
|
|
855
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1390
856
|
default:
|
|
1391
857
|
const parsedBody = parsedOutput.body;
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
...parsedBody,
|
|
1395
|
-
name: `${errorCode}`,
|
|
1396
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
858
|
+
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
859
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1397
860
|
$fault: "client",
|
|
1398
861
|
$metadata: deserializeMetadata(output),
|
|
1399
|
-
};
|
|
862
|
+
});
|
|
863
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1400
864
|
}
|
|
1401
|
-
const message = response.message || response.Message || errorCode;
|
|
1402
|
-
response.message = message;
|
|
1403
|
-
delete response.Message;
|
|
1404
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1405
865
|
};
|
|
1406
866
|
const deserializeAws_json1_0GetEnrollmentStatusesForOrganizationCommand = async (output, context) => {
|
|
1407
867
|
if (output.statusCode >= 300) {
|
|
@@ -1428,67 +888,31 @@ const deserializeAws_json1_0GetEnrollmentStatusesForOrganizationCommandError = a
|
|
|
1428
888
|
switch (errorCode) {
|
|
1429
889
|
case "AccessDeniedException":
|
|
1430
890
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1431
|
-
|
|
1432
|
-
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1433
|
-
name: errorCode,
|
|
1434
|
-
$metadata: deserializeMetadata(output),
|
|
1435
|
-
};
|
|
1436
|
-
break;
|
|
891
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1437
892
|
case "InternalServerException":
|
|
1438
893
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1439
|
-
|
|
1440
|
-
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
1441
|
-
name: errorCode,
|
|
1442
|
-
$metadata: deserializeMetadata(output),
|
|
1443
|
-
};
|
|
1444
|
-
break;
|
|
894
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1445
895
|
case "InvalidParameterValueException":
|
|
1446
896
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1447
|
-
|
|
1448
|
-
...(await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1449
|
-
name: errorCode,
|
|
1450
|
-
$metadata: deserializeMetadata(output),
|
|
1451
|
-
};
|
|
1452
|
-
break;
|
|
897
|
+
throw await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1453
898
|
case "MissingAuthenticationToken":
|
|
1454
899
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1455
|
-
|
|
1456
|
-
...(await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)),
|
|
1457
|
-
name: errorCode,
|
|
1458
|
-
$metadata: deserializeMetadata(output),
|
|
1459
|
-
};
|
|
1460
|
-
break;
|
|
900
|
+
throw await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context);
|
|
1461
901
|
case "ServiceUnavailableException":
|
|
1462
902
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1463
|
-
|
|
1464
|
-
...(await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1465
|
-
name: errorCode,
|
|
1466
|
-
$metadata: deserializeMetadata(output),
|
|
1467
|
-
};
|
|
1468
|
-
break;
|
|
903
|
+
throw await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1469
904
|
case "ThrottlingException":
|
|
1470
905
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1471
|
-
|
|
1472
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1473
|
-
name: errorCode,
|
|
1474
|
-
$metadata: deserializeMetadata(output),
|
|
1475
|
-
};
|
|
1476
|
-
break;
|
|
906
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1477
907
|
default:
|
|
1478
908
|
const parsedBody = parsedOutput.body;
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
...parsedBody,
|
|
1482
|
-
name: `${errorCode}`,
|
|
1483
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
909
|
+
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
910
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1484
911
|
$fault: "client",
|
|
1485
912
|
$metadata: deserializeMetadata(output),
|
|
1486
|
-
};
|
|
913
|
+
});
|
|
914
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1487
915
|
}
|
|
1488
|
-
const message = response.message || response.Message || errorCode;
|
|
1489
|
-
response.message = message;
|
|
1490
|
-
delete response.Message;
|
|
1491
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1492
916
|
};
|
|
1493
917
|
const deserializeAws_json1_0GetLambdaFunctionRecommendationsCommand = async (output, context) => {
|
|
1494
918
|
if (output.statusCode >= 300) {
|
|
@@ -1515,83 +939,37 @@ const deserializeAws_json1_0GetLambdaFunctionRecommendationsCommandError = async
|
|
|
1515
939
|
switch (errorCode) {
|
|
1516
940
|
case "AccessDeniedException":
|
|
1517
941
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1518
|
-
|
|
1519
|
-
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1520
|
-
name: errorCode,
|
|
1521
|
-
$metadata: deserializeMetadata(output),
|
|
1522
|
-
};
|
|
1523
|
-
break;
|
|
942
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1524
943
|
case "InternalServerException":
|
|
1525
944
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1526
|
-
|
|
1527
|
-
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
1528
|
-
name: errorCode,
|
|
1529
|
-
$metadata: deserializeMetadata(output),
|
|
1530
|
-
};
|
|
1531
|
-
break;
|
|
945
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1532
946
|
case "InvalidParameterValueException":
|
|
1533
947
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1534
|
-
|
|
1535
|
-
...(await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1536
|
-
name: errorCode,
|
|
1537
|
-
$metadata: deserializeMetadata(output),
|
|
1538
|
-
};
|
|
1539
|
-
break;
|
|
948
|
+
throw await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1540
949
|
case "LimitExceededException":
|
|
1541
950
|
case "com.amazonaws.computeoptimizer#LimitExceededException":
|
|
1542
|
-
|
|
1543
|
-
...(await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1544
|
-
name: errorCode,
|
|
1545
|
-
$metadata: deserializeMetadata(output),
|
|
1546
|
-
};
|
|
1547
|
-
break;
|
|
951
|
+
throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
|
|
1548
952
|
case "MissingAuthenticationToken":
|
|
1549
953
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1550
|
-
|
|
1551
|
-
...(await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)),
|
|
1552
|
-
name: errorCode,
|
|
1553
|
-
$metadata: deserializeMetadata(output),
|
|
1554
|
-
};
|
|
1555
|
-
break;
|
|
954
|
+
throw await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context);
|
|
1556
955
|
case "OptInRequiredException":
|
|
1557
956
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1558
|
-
|
|
1559
|
-
...(await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context)),
|
|
1560
|
-
name: errorCode,
|
|
1561
|
-
$metadata: deserializeMetadata(output),
|
|
1562
|
-
};
|
|
1563
|
-
break;
|
|
957
|
+
throw await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context);
|
|
1564
958
|
case "ServiceUnavailableException":
|
|
1565
959
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1566
|
-
|
|
1567
|
-
...(await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1568
|
-
name: errorCode,
|
|
1569
|
-
$metadata: deserializeMetadata(output),
|
|
1570
|
-
};
|
|
1571
|
-
break;
|
|
960
|
+
throw await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1572
961
|
case "ThrottlingException":
|
|
1573
962
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1574
|
-
|
|
1575
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1576
|
-
name: errorCode,
|
|
1577
|
-
$metadata: deserializeMetadata(output),
|
|
1578
|
-
};
|
|
1579
|
-
break;
|
|
963
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1580
964
|
default:
|
|
1581
965
|
const parsedBody = parsedOutput.body;
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
...parsedBody,
|
|
1585
|
-
name: `${errorCode}`,
|
|
1586
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
966
|
+
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
967
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1587
968
|
$fault: "client",
|
|
1588
969
|
$metadata: deserializeMetadata(output),
|
|
1589
|
-
};
|
|
970
|
+
});
|
|
971
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1590
972
|
}
|
|
1591
|
-
const message = response.message || response.Message || errorCode;
|
|
1592
|
-
response.message = message;
|
|
1593
|
-
delete response.Message;
|
|
1594
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1595
973
|
};
|
|
1596
974
|
const deserializeAws_json1_0GetRecommendationPreferencesCommand = async (output, context) => {
|
|
1597
975
|
if (output.statusCode >= 300) {
|
|
@@ -1618,83 +996,37 @@ const deserializeAws_json1_0GetRecommendationPreferencesCommandError = async (ou
|
|
|
1618
996
|
switch (errorCode) {
|
|
1619
997
|
case "AccessDeniedException":
|
|
1620
998
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1621
|
-
|
|
1622
|
-
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1623
|
-
name: errorCode,
|
|
1624
|
-
$metadata: deserializeMetadata(output),
|
|
1625
|
-
};
|
|
1626
|
-
break;
|
|
999
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1627
1000
|
case "InternalServerException":
|
|
1628
1001
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1629
|
-
|
|
1630
|
-
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
1631
|
-
name: errorCode,
|
|
1632
|
-
$metadata: deserializeMetadata(output),
|
|
1633
|
-
};
|
|
1634
|
-
break;
|
|
1002
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1635
1003
|
case "InvalidParameterValueException":
|
|
1636
1004
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1637
|
-
|
|
1638
|
-
...(await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1639
|
-
name: errorCode,
|
|
1640
|
-
$metadata: deserializeMetadata(output),
|
|
1641
|
-
};
|
|
1642
|
-
break;
|
|
1005
|
+
throw await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1643
1006
|
case "MissingAuthenticationToken":
|
|
1644
1007
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1645
|
-
|
|
1646
|
-
...(await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)),
|
|
1647
|
-
name: errorCode,
|
|
1648
|
-
$metadata: deserializeMetadata(output),
|
|
1649
|
-
};
|
|
1650
|
-
break;
|
|
1008
|
+
throw await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context);
|
|
1651
1009
|
case "OptInRequiredException":
|
|
1652
1010
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1653
|
-
|
|
1654
|
-
...(await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context)),
|
|
1655
|
-
name: errorCode,
|
|
1656
|
-
$metadata: deserializeMetadata(output),
|
|
1657
|
-
};
|
|
1658
|
-
break;
|
|
1011
|
+
throw await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context);
|
|
1659
1012
|
case "ResourceNotFoundException":
|
|
1660
1013
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
1661
|
-
|
|
1662
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1663
|
-
name: errorCode,
|
|
1664
|
-
$metadata: deserializeMetadata(output),
|
|
1665
|
-
};
|
|
1666
|
-
break;
|
|
1014
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1667
1015
|
case "ServiceUnavailableException":
|
|
1668
1016
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1669
|
-
|
|
1670
|
-
...(await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1671
|
-
name: errorCode,
|
|
1672
|
-
$metadata: deserializeMetadata(output),
|
|
1673
|
-
};
|
|
1674
|
-
break;
|
|
1017
|
+
throw await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1675
1018
|
case "ThrottlingException":
|
|
1676
1019
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1677
|
-
|
|
1678
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1679
|
-
name: errorCode,
|
|
1680
|
-
$metadata: deserializeMetadata(output),
|
|
1681
|
-
};
|
|
1682
|
-
break;
|
|
1020
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1683
1021
|
default:
|
|
1684
1022
|
const parsedBody = parsedOutput.body;
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
...parsedBody,
|
|
1688
|
-
name: `${errorCode}`,
|
|
1689
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1023
|
+
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
1024
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1690
1025
|
$fault: "client",
|
|
1691
1026
|
$metadata: deserializeMetadata(output),
|
|
1692
|
-
};
|
|
1027
|
+
});
|
|
1028
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1693
1029
|
}
|
|
1694
|
-
const message = response.message || response.Message || errorCode;
|
|
1695
|
-
response.message = message;
|
|
1696
|
-
delete response.Message;
|
|
1697
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1698
1030
|
};
|
|
1699
1031
|
const deserializeAws_json1_0GetRecommendationSummariesCommand = async (output, context) => {
|
|
1700
1032
|
if (output.statusCode >= 300) {
|
|
@@ -1721,75 +1053,34 @@ const deserializeAws_json1_0GetRecommendationSummariesCommandError = async (outp
|
|
|
1721
1053
|
switch (errorCode) {
|
|
1722
1054
|
case "AccessDeniedException":
|
|
1723
1055
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1724
|
-
|
|
1725
|
-
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1726
|
-
name: errorCode,
|
|
1727
|
-
$metadata: deserializeMetadata(output),
|
|
1728
|
-
};
|
|
1729
|
-
break;
|
|
1056
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1730
1057
|
case "InternalServerException":
|
|
1731
1058
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1732
|
-
|
|
1733
|
-
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
1734
|
-
name: errorCode,
|
|
1735
|
-
$metadata: deserializeMetadata(output),
|
|
1736
|
-
};
|
|
1737
|
-
break;
|
|
1059
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1738
1060
|
case "InvalidParameterValueException":
|
|
1739
1061
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1740
|
-
|
|
1741
|
-
...(await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1742
|
-
name: errorCode,
|
|
1743
|
-
$metadata: deserializeMetadata(output),
|
|
1744
|
-
};
|
|
1745
|
-
break;
|
|
1062
|
+
throw await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1746
1063
|
case "MissingAuthenticationToken":
|
|
1747
1064
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1748
|
-
|
|
1749
|
-
...(await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)),
|
|
1750
|
-
name: errorCode,
|
|
1751
|
-
$metadata: deserializeMetadata(output),
|
|
1752
|
-
};
|
|
1753
|
-
break;
|
|
1065
|
+
throw await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context);
|
|
1754
1066
|
case "OptInRequiredException":
|
|
1755
1067
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1756
|
-
|
|
1757
|
-
...(await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context)),
|
|
1758
|
-
name: errorCode,
|
|
1759
|
-
$metadata: deserializeMetadata(output),
|
|
1760
|
-
};
|
|
1761
|
-
break;
|
|
1068
|
+
throw await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context);
|
|
1762
1069
|
case "ServiceUnavailableException":
|
|
1763
1070
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1764
|
-
|
|
1765
|
-
...(await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1766
|
-
name: errorCode,
|
|
1767
|
-
$metadata: deserializeMetadata(output),
|
|
1768
|
-
};
|
|
1769
|
-
break;
|
|
1071
|
+
throw await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1770
1072
|
case "ThrottlingException":
|
|
1771
1073
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1772
|
-
|
|
1773
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1774
|
-
name: errorCode,
|
|
1775
|
-
$metadata: deserializeMetadata(output),
|
|
1776
|
-
};
|
|
1777
|
-
break;
|
|
1074
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1778
1075
|
default:
|
|
1779
1076
|
const parsedBody = parsedOutput.body;
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
...parsedBody,
|
|
1783
|
-
name: `${errorCode}`,
|
|
1784
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1077
|
+
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
1078
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1785
1079
|
$fault: "client",
|
|
1786
1080
|
$metadata: deserializeMetadata(output),
|
|
1787
|
-
};
|
|
1081
|
+
});
|
|
1082
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1788
1083
|
}
|
|
1789
|
-
const message = response.message || response.Message || errorCode;
|
|
1790
|
-
response.message = message;
|
|
1791
|
-
delete response.Message;
|
|
1792
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1793
1084
|
};
|
|
1794
1085
|
const deserializeAws_json1_0PutRecommendationPreferencesCommand = async (output, context) => {
|
|
1795
1086
|
if (output.statusCode >= 300) {
|
|
@@ -1816,83 +1107,37 @@ const deserializeAws_json1_0PutRecommendationPreferencesCommandError = async (ou
|
|
|
1816
1107
|
switch (errorCode) {
|
|
1817
1108
|
case "AccessDeniedException":
|
|
1818
1109
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1819
|
-
|
|
1820
|
-
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1821
|
-
name: errorCode,
|
|
1822
|
-
$metadata: deserializeMetadata(output),
|
|
1823
|
-
};
|
|
1824
|
-
break;
|
|
1110
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1825
1111
|
case "InternalServerException":
|
|
1826
1112
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1827
|
-
|
|
1828
|
-
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
1829
|
-
name: errorCode,
|
|
1830
|
-
$metadata: deserializeMetadata(output),
|
|
1831
|
-
};
|
|
1832
|
-
break;
|
|
1113
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1833
1114
|
case "InvalidParameterValueException":
|
|
1834
1115
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1835
|
-
|
|
1836
|
-
...(await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1837
|
-
name: errorCode,
|
|
1838
|
-
$metadata: deserializeMetadata(output),
|
|
1839
|
-
};
|
|
1840
|
-
break;
|
|
1116
|
+
throw await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1841
1117
|
case "MissingAuthenticationToken":
|
|
1842
1118
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1843
|
-
|
|
1844
|
-
...(await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)),
|
|
1845
|
-
name: errorCode,
|
|
1846
|
-
$metadata: deserializeMetadata(output),
|
|
1847
|
-
};
|
|
1848
|
-
break;
|
|
1119
|
+
throw await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context);
|
|
1849
1120
|
case "OptInRequiredException":
|
|
1850
1121
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1851
|
-
|
|
1852
|
-
...(await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context)),
|
|
1853
|
-
name: errorCode,
|
|
1854
|
-
$metadata: deserializeMetadata(output),
|
|
1855
|
-
};
|
|
1856
|
-
break;
|
|
1122
|
+
throw await deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context);
|
|
1857
1123
|
case "ResourceNotFoundException":
|
|
1858
1124
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
1859
|
-
|
|
1860
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1861
|
-
name: errorCode,
|
|
1862
|
-
$metadata: deserializeMetadata(output),
|
|
1863
|
-
};
|
|
1864
|
-
break;
|
|
1125
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1865
1126
|
case "ServiceUnavailableException":
|
|
1866
1127
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1867
|
-
|
|
1868
|
-
...(await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1869
|
-
name: errorCode,
|
|
1870
|
-
$metadata: deserializeMetadata(output),
|
|
1871
|
-
};
|
|
1872
|
-
break;
|
|
1128
|
+
throw await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1873
1129
|
case "ThrottlingException":
|
|
1874
1130
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1875
|
-
|
|
1876
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1877
|
-
name: errorCode,
|
|
1878
|
-
$metadata: deserializeMetadata(output),
|
|
1879
|
-
};
|
|
1880
|
-
break;
|
|
1131
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1881
1132
|
default:
|
|
1882
1133
|
const parsedBody = parsedOutput.body;
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
...parsedBody,
|
|
1886
|
-
name: `${errorCode}`,
|
|
1887
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1134
|
+
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
1135
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1888
1136
|
$fault: "client",
|
|
1889
1137
|
$metadata: deserializeMetadata(output),
|
|
1890
|
-
};
|
|
1138
|
+
});
|
|
1139
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1891
1140
|
}
|
|
1892
|
-
const message = response.message || response.Message || errorCode;
|
|
1893
|
-
response.message = message;
|
|
1894
|
-
delete response.Message;
|
|
1895
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1896
1141
|
};
|
|
1897
1142
|
const deserializeAws_json1_0UpdateEnrollmentStatusCommand = async (output, context) => {
|
|
1898
1143
|
if (output.statusCode >= 300) {
|
|
@@ -1919,166 +1164,112 @@ const deserializeAws_json1_0UpdateEnrollmentStatusCommandError = async (output,
|
|
|
1919
1164
|
switch (errorCode) {
|
|
1920
1165
|
case "AccessDeniedException":
|
|
1921
1166
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1922
|
-
|
|
1923
|
-
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1924
|
-
name: errorCode,
|
|
1925
|
-
$metadata: deserializeMetadata(output),
|
|
1926
|
-
};
|
|
1927
|
-
break;
|
|
1167
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1928
1168
|
case "InternalServerException":
|
|
1929
1169
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1930
|
-
|
|
1931
|
-
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
1932
|
-
name: errorCode,
|
|
1933
|
-
$metadata: deserializeMetadata(output),
|
|
1934
|
-
};
|
|
1935
|
-
break;
|
|
1170
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1936
1171
|
case "InvalidParameterValueException":
|
|
1937
1172
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1938
|
-
|
|
1939
|
-
...(await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1940
|
-
name: errorCode,
|
|
1941
|
-
$metadata: deserializeMetadata(output),
|
|
1942
|
-
};
|
|
1943
|
-
break;
|
|
1173
|
+
throw await deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1944
1174
|
case "MissingAuthenticationToken":
|
|
1945
1175
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1946
|
-
|
|
1947
|
-
...(await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)),
|
|
1948
|
-
name: errorCode,
|
|
1949
|
-
$metadata: deserializeMetadata(output),
|
|
1950
|
-
};
|
|
1951
|
-
break;
|
|
1176
|
+
throw await deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context);
|
|
1952
1177
|
case "ServiceUnavailableException":
|
|
1953
1178
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1954
|
-
|
|
1955
|
-
...(await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1956
|
-
name: errorCode,
|
|
1957
|
-
$metadata: deserializeMetadata(output),
|
|
1958
|
-
};
|
|
1959
|
-
break;
|
|
1179
|
+
throw await deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1960
1180
|
case "ThrottlingException":
|
|
1961
1181
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1962
|
-
|
|
1963
|
-
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1964
|
-
name: errorCode,
|
|
1965
|
-
$metadata: deserializeMetadata(output),
|
|
1966
|
-
};
|
|
1967
|
-
break;
|
|
1182
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1968
1183
|
default:
|
|
1969
1184
|
const parsedBody = parsedOutput.body;
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
...parsedBody,
|
|
1973
|
-
name: `${errorCode}`,
|
|
1974
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1185
|
+
response = new ComputeOptimizerServiceException_1.ComputeOptimizerServiceException({
|
|
1186
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1975
1187
|
$fault: "client",
|
|
1976
1188
|
$metadata: deserializeMetadata(output),
|
|
1977
|
-
};
|
|
1189
|
+
});
|
|
1190
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1978
1191
|
}
|
|
1979
|
-
const message = response.message || response.Message || errorCode;
|
|
1980
|
-
response.message = message;
|
|
1981
|
-
delete response.Message;
|
|
1982
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1983
1192
|
};
|
|
1984
1193
|
const deserializeAws_json1_0AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
1985
1194
|
const body = parsedOutput.body;
|
|
1986
1195
|
const deserialized = deserializeAws_json1_0AccessDeniedException(body, context);
|
|
1987
|
-
const
|
|
1988
|
-
name: "AccessDeniedException",
|
|
1989
|
-
$fault: "client",
|
|
1196
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
1990
1197
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1991
1198
|
...deserialized,
|
|
1992
|
-
};
|
|
1993
|
-
return
|
|
1199
|
+
});
|
|
1200
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1994
1201
|
};
|
|
1995
1202
|
const deserializeAws_json1_0InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
1996
1203
|
const body = parsedOutput.body;
|
|
1997
1204
|
const deserialized = deserializeAws_json1_0InternalServerException(body, context);
|
|
1998
|
-
const
|
|
1999
|
-
name: "InternalServerException",
|
|
2000
|
-
$fault: "server",
|
|
1205
|
+
const exception = new models_0_1.InternalServerException({
|
|
2001
1206
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2002
1207
|
...deserialized,
|
|
2003
|
-
};
|
|
2004
|
-
return
|
|
1208
|
+
});
|
|
1209
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2005
1210
|
};
|
|
2006
1211
|
const deserializeAws_json1_0InvalidParameterValueExceptionResponse = async (parsedOutput, context) => {
|
|
2007
1212
|
const body = parsedOutput.body;
|
|
2008
1213
|
const deserialized = deserializeAws_json1_0InvalidParameterValueException(body, context);
|
|
2009
|
-
const
|
|
2010
|
-
name: "InvalidParameterValueException",
|
|
2011
|
-
$fault: "client",
|
|
1214
|
+
const exception = new models_0_1.InvalidParameterValueException({
|
|
2012
1215
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2013
1216
|
...deserialized,
|
|
2014
|
-
};
|
|
2015
|
-
return
|
|
1217
|
+
});
|
|
1218
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2016
1219
|
};
|
|
2017
1220
|
const deserializeAws_json1_0LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2018
1221
|
const body = parsedOutput.body;
|
|
2019
1222
|
const deserialized = deserializeAws_json1_0LimitExceededException(body, context);
|
|
2020
|
-
const
|
|
2021
|
-
name: "LimitExceededException",
|
|
2022
|
-
$fault: "client",
|
|
1223
|
+
const exception = new models_0_1.LimitExceededException({
|
|
2023
1224
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2024
1225
|
...deserialized,
|
|
2025
|
-
};
|
|
2026
|
-
return
|
|
1226
|
+
});
|
|
1227
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2027
1228
|
};
|
|
2028
1229
|
const deserializeAws_json1_0MissingAuthenticationTokenResponse = async (parsedOutput, context) => {
|
|
2029
1230
|
const body = parsedOutput.body;
|
|
2030
1231
|
const deserialized = deserializeAws_json1_0MissingAuthenticationToken(body, context);
|
|
2031
|
-
const
|
|
2032
|
-
name: "MissingAuthenticationToken",
|
|
2033
|
-
$fault: "client",
|
|
1232
|
+
const exception = new models_0_1.MissingAuthenticationToken({
|
|
2034
1233
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2035
1234
|
...deserialized,
|
|
2036
|
-
};
|
|
2037
|
-
return
|
|
1235
|
+
});
|
|
1236
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2038
1237
|
};
|
|
2039
1238
|
const deserializeAws_json1_0OptInRequiredExceptionResponse = async (parsedOutput, context) => {
|
|
2040
1239
|
const body = parsedOutput.body;
|
|
2041
1240
|
const deserialized = deserializeAws_json1_0OptInRequiredException(body, context);
|
|
2042
|
-
const
|
|
2043
|
-
name: "OptInRequiredException",
|
|
2044
|
-
$fault: "client",
|
|
1241
|
+
const exception = new models_0_1.OptInRequiredException({
|
|
2045
1242
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2046
1243
|
...deserialized,
|
|
2047
|
-
};
|
|
2048
|
-
return
|
|
1244
|
+
});
|
|
1245
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2049
1246
|
};
|
|
2050
1247
|
const deserializeAws_json1_0ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2051
1248
|
const body = parsedOutput.body;
|
|
2052
1249
|
const deserialized = deserializeAws_json1_0ResourceNotFoundException(body, context);
|
|
2053
|
-
const
|
|
2054
|
-
name: "ResourceNotFoundException",
|
|
2055
|
-
$fault: "client",
|
|
1250
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
2056
1251
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2057
1252
|
...deserialized,
|
|
2058
|
-
};
|
|
2059
|
-
return
|
|
1253
|
+
});
|
|
1254
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2060
1255
|
};
|
|
2061
1256
|
const deserializeAws_json1_0ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
2062
1257
|
const body = parsedOutput.body;
|
|
2063
1258
|
const deserialized = deserializeAws_json1_0ServiceUnavailableException(body, context);
|
|
2064
|
-
const
|
|
2065
|
-
name: "ServiceUnavailableException",
|
|
2066
|
-
$fault: "server",
|
|
1259
|
+
const exception = new models_0_1.ServiceUnavailableException({
|
|
2067
1260
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2068
1261
|
...deserialized,
|
|
2069
|
-
};
|
|
2070
|
-
return
|
|
1262
|
+
});
|
|
1263
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2071
1264
|
};
|
|
2072
1265
|
const deserializeAws_json1_0ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
2073
1266
|
const body = parsedOutput.body;
|
|
2074
1267
|
const deserialized = deserializeAws_json1_0ThrottlingException(body, context);
|
|
2075
|
-
const
|
|
2076
|
-
name: "ThrottlingException",
|
|
2077
|
-
$fault: "client",
|
|
1268
|
+
const exception = new models_0_1.ThrottlingException({
|
|
2078
1269
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2079
1270
|
...deserialized,
|
|
2080
|
-
};
|
|
2081
|
-
return
|
|
1271
|
+
});
|
|
1272
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2082
1273
|
};
|
|
2083
1274
|
const serializeAws_json1_0AccountIds = (input, context) => {
|
|
2084
1275
|
return input
|
|
@@ -2566,7 +1757,7 @@ const deserializeAws_json1_0AccountEnrollmentStatus = (output, context) => {
|
|
|
2566
1757
|
};
|
|
2567
1758
|
};
|
|
2568
1759
|
const deserializeAws_json1_0AccountEnrollmentStatuses = (output, context) => {
|
|
2569
|
-
|
|
1760
|
+
const retVal = (output || [])
|
|
2570
1761
|
.filter((e) => e != null)
|
|
2571
1762
|
.map((entry) => {
|
|
2572
1763
|
if (entry === null) {
|
|
@@ -2574,6 +1765,7 @@ const deserializeAws_json1_0AccountEnrollmentStatuses = (output, context) => {
|
|
|
2574
1765
|
}
|
|
2575
1766
|
return deserializeAws_json1_0AccountEnrollmentStatus(entry, context);
|
|
2576
1767
|
});
|
|
1768
|
+
return retVal;
|
|
2577
1769
|
};
|
|
2578
1770
|
const deserializeAws_json1_0AutoScalingGroupConfiguration = (output, context) => {
|
|
2579
1771
|
return {
|
|
@@ -2628,7 +1820,7 @@ const deserializeAws_json1_0AutoScalingGroupRecommendationOption = (output, cont
|
|
|
2628
1820
|
};
|
|
2629
1821
|
};
|
|
2630
1822
|
const deserializeAws_json1_0AutoScalingGroupRecommendationOptions = (output, context) => {
|
|
2631
|
-
|
|
1823
|
+
const retVal = (output || [])
|
|
2632
1824
|
.filter((e) => e != null)
|
|
2633
1825
|
.map((entry) => {
|
|
2634
1826
|
if (entry === null) {
|
|
@@ -2636,9 +1828,10 @@ const deserializeAws_json1_0AutoScalingGroupRecommendationOptions = (output, con
|
|
|
2636
1828
|
}
|
|
2637
1829
|
return deserializeAws_json1_0AutoScalingGroupRecommendationOption(entry, context);
|
|
2638
1830
|
});
|
|
1831
|
+
return retVal;
|
|
2639
1832
|
};
|
|
2640
1833
|
const deserializeAws_json1_0AutoScalingGroupRecommendations = (output, context) => {
|
|
2641
|
-
|
|
1834
|
+
const retVal = (output || [])
|
|
2642
1835
|
.filter((e) => e != null)
|
|
2643
1836
|
.map((entry) => {
|
|
2644
1837
|
if (entry === null) {
|
|
@@ -2646,9 +1839,10 @@ const deserializeAws_json1_0AutoScalingGroupRecommendations = (output, context)
|
|
|
2646
1839
|
}
|
|
2647
1840
|
return deserializeAws_json1_0AutoScalingGroupRecommendation(entry, context);
|
|
2648
1841
|
});
|
|
1842
|
+
return retVal;
|
|
2649
1843
|
};
|
|
2650
1844
|
const deserializeAws_json1_0CpuVendorArchitectures = (output, context) => {
|
|
2651
|
-
|
|
1845
|
+
const retVal = (output || [])
|
|
2652
1846
|
.filter((e) => e != null)
|
|
2653
1847
|
.map((entry) => {
|
|
2654
1848
|
if (entry === null) {
|
|
@@ -2656,6 +1850,7 @@ const deserializeAws_json1_0CpuVendorArchitectures = (output, context) => {
|
|
|
2656
1850
|
}
|
|
2657
1851
|
return smithy_client_1.expectString(entry);
|
|
2658
1852
|
});
|
|
1853
|
+
return retVal;
|
|
2659
1854
|
};
|
|
2660
1855
|
const deserializeAws_json1_0CurrentPerformanceRiskRatings = (output, context) => {
|
|
2661
1856
|
return {
|
|
@@ -2684,7 +1879,7 @@ const deserializeAws_json1_0EBSUtilizationMetric = (output, context) => {
|
|
|
2684
1879
|
};
|
|
2685
1880
|
};
|
|
2686
1881
|
const deserializeAws_json1_0EBSUtilizationMetrics = (output, context) => {
|
|
2687
|
-
|
|
1882
|
+
const retVal = (output || [])
|
|
2688
1883
|
.filter((e) => e != null)
|
|
2689
1884
|
.map((entry) => {
|
|
2690
1885
|
if (entry === null) {
|
|
@@ -2692,6 +1887,7 @@ const deserializeAws_json1_0EBSUtilizationMetrics = (output, context) => {
|
|
|
2692
1887
|
}
|
|
2693
1888
|
return deserializeAws_json1_0EBSUtilizationMetric(entry, context);
|
|
2694
1889
|
});
|
|
1890
|
+
return retVal;
|
|
2695
1891
|
};
|
|
2696
1892
|
const deserializeAws_json1_0EffectiveRecommendationPreferences = (output, context) => {
|
|
2697
1893
|
return {
|
|
@@ -2827,7 +2023,7 @@ const deserializeAws_json1_0GetRecommendationError = (output, context) => {
|
|
|
2827
2023
|
};
|
|
2828
2024
|
};
|
|
2829
2025
|
const deserializeAws_json1_0GetRecommendationErrors = (output, context) => {
|
|
2830
|
-
|
|
2026
|
+
const retVal = (output || [])
|
|
2831
2027
|
.filter((e) => e != null)
|
|
2832
2028
|
.map((entry) => {
|
|
2833
2029
|
if (entry === null) {
|
|
@@ -2835,6 +2031,7 @@ const deserializeAws_json1_0GetRecommendationErrors = (output, context) => {
|
|
|
2835
2031
|
}
|
|
2836
2032
|
return deserializeAws_json1_0GetRecommendationError(entry, context);
|
|
2837
2033
|
});
|
|
2034
|
+
return retVal;
|
|
2838
2035
|
};
|
|
2839
2036
|
const deserializeAws_json1_0GetRecommendationPreferencesResponse = (output, context) => {
|
|
2840
2037
|
return {
|
|
@@ -2853,7 +2050,7 @@ const deserializeAws_json1_0GetRecommendationSummariesResponse = (output, contex
|
|
|
2853
2050
|
};
|
|
2854
2051
|
};
|
|
2855
2052
|
const deserializeAws_json1_0InferredWorkloadTypes = (output, context) => {
|
|
2856
|
-
|
|
2053
|
+
const retVal = (output || [])
|
|
2857
2054
|
.filter((e) => e != null)
|
|
2858
2055
|
.map((entry) => {
|
|
2859
2056
|
if (entry === null) {
|
|
@@ -2861,6 +2058,7 @@ const deserializeAws_json1_0InferredWorkloadTypes = (output, context) => {
|
|
|
2861
2058
|
}
|
|
2862
2059
|
return smithy_client_1.expectString(entry);
|
|
2863
2060
|
});
|
|
2061
|
+
return retVal;
|
|
2864
2062
|
};
|
|
2865
2063
|
const deserializeAws_json1_0InstanceRecommendation = (output, context) => {
|
|
2866
2064
|
return {
|
|
@@ -2895,7 +2093,7 @@ const deserializeAws_json1_0InstanceRecommendation = (output, context) => {
|
|
|
2895
2093
|
};
|
|
2896
2094
|
};
|
|
2897
2095
|
const deserializeAws_json1_0InstanceRecommendationFindingReasonCodes = (output, context) => {
|
|
2898
|
-
|
|
2096
|
+
const retVal = (output || [])
|
|
2899
2097
|
.filter((e) => e != null)
|
|
2900
2098
|
.map((entry) => {
|
|
2901
2099
|
if (entry === null) {
|
|
@@ -2903,6 +2101,7 @@ const deserializeAws_json1_0InstanceRecommendationFindingReasonCodes = (output,
|
|
|
2903
2101
|
}
|
|
2904
2102
|
return smithy_client_1.expectString(entry);
|
|
2905
2103
|
});
|
|
2104
|
+
return retVal;
|
|
2906
2105
|
};
|
|
2907
2106
|
const deserializeAws_json1_0InstanceRecommendationOption = (output, context) => {
|
|
2908
2107
|
return {
|
|
@@ -2922,7 +2121,7 @@ const deserializeAws_json1_0InstanceRecommendationOption = (output, context) =>
|
|
|
2922
2121
|
};
|
|
2923
2122
|
};
|
|
2924
2123
|
const deserializeAws_json1_0InstanceRecommendations = (output, context) => {
|
|
2925
|
-
|
|
2124
|
+
const retVal = (output || [])
|
|
2926
2125
|
.filter((e) => e != null)
|
|
2927
2126
|
.map((entry) => {
|
|
2928
2127
|
if (entry === null) {
|
|
@@ -2930,6 +2129,7 @@ const deserializeAws_json1_0InstanceRecommendations = (output, context) => {
|
|
|
2930
2129
|
}
|
|
2931
2130
|
return deserializeAws_json1_0InstanceRecommendation(entry, context);
|
|
2932
2131
|
});
|
|
2132
|
+
return retVal;
|
|
2933
2133
|
};
|
|
2934
2134
|
const deserializeAws_json1_0InternalServerException = (output, context) => {
|
|
2935
2135
|
return {
|
|
@@ -2949,7 +2149,7 @@ const deserializeAws_json1_0LambdaFunctionMemoryProjectedMetric = (output, conte
|
|
|
2949
2149
|
};
|
|
2950
2150
|
};
|
|
2951
2151
|
const deserializeAws_json1_0LambdaFunctionMemoryProjectedMetrics = (output, context) => {
|
|
2952
|
-
|
|
2152
|
+
const retVal = (output || [])
|
|
2953
2153
|
.filter((e) => e != null)
|
|
2954
2154
|
.map((entry) => {
|
|
2955
2155
|
if (entry === null) {
|
|
@@ -2957,6 +2157,7 @@ const deserializeAws_json1_0LambdaFunctionMemoryProjectedMetrics = (output, cont
|
|
|
2957
2157
|
}
|
|
2958
2158
|
return deserializeAws_json1_0LambdaFunctionMemoryProjectedMetric(entry, context);
|
|
2959
2159
|
});
|
|
2160
|
+
return retVal;
|
|
2960
2161
|
};
|
|
2961
2162
|
const deserializeAws_json1_0LambdaFunctionMemoryRecommendationOption = (output, context) => {
|
|
2962
2163
|
return {
|
|
@@ -2971,7 +2172,7 @@ const deserializeAws_json1_0LambdaFunctionMemoryRecommendationOption = (output,
|
|
|
2971
2172
|
};
|
|
2972
2173
|
};
|
|
2973
2174
|
const deserializeAws_json1_0LambdaFunctionMemoryRecommendationOptions = (output, context) => {
|
|
2974
|
-
|
|
2175
|
+
const retVal = (output || [])
|
|
2975
2176
|
.filter((e) => e != null)
|
|
2976
2177
|
.map((entry) => {
|
|
2977
2178
|
if (entry === null) {
|
|
@@ -2979,6 +2180,7 @@ const deserializeAws_json1_0LambdaFunctionMemoryRecommendationOptions = (output,
|
|
|
2979
2180
|
}
|
|
2980
2181
|
return deserializeAws_json1_0LambdaFunctionMemoryRecommendationOption(entry, context);
|
|
2981
2182
|
});
|
|
2183
|
+
return retVal;
|
|
2982
2184
|
};
|
|
2983
2185
|
const deserializeAws_json1_0LambdaFunctionRecommendation = (output, context) => {
|
|
2984
2186
|
return {
|
|
@@ -3005,7 +2207,7 @@ const deserializeAws_json1_0LambdaFunctionRecommendation = (output, context) =>
|
|
|
3005
2207
|
};
|
|
3006
2208
|
};
|
|
3007
2209
|
const deserializeAws_json1_0LambdaFunctionRecommendationFindingReasonCodes = (output, context) => {
|
|
3008
|
-
|
|
2210
|
+
const retVal = (output || [])
|
|
3009
2211
|
.filter((e) => e != null)
|
|
3010
2212
|
.map((entry) => {
|
|
3011
2213
|
if (entry === null) {
|
|
@@ -3013,9 +2215,10 @@ const deserializeAws_json1_0LambdaFunctionRecommendationFindingReasonCodes = (ou
|
|
|
3013
2215
|
}
|
|
3014
2216
|
return smithy_client_1.expectString(entry);
|
|
3015
2217
|
});
|
|
2218
|
+
return retVal;
|
|
3016
2219
|
};
|
|
3017
2220
|
const deserializeAws_json1_0LambdaFunctionRecommendations = (output, context) => {
|
|
3018
|
-
|
|
2221
|
+
const retVal = (output || [])
|
|
3019
2222
|
.filter((e) => e != null)
|
|
3020
2223
|
.map((entry) => {
|
|
3021
2224
|
if (entry === null) {
|
|
@@ -3023,6 +2226,7 @@ const deserializeAws_json1_0LambdaFunctionRecommendations = (output, context) =>
|
|
|
3023
2226
|
}
|
|
3024
2227
|
return deserializeAws_json1_0LambdaFunctionRecommendation(entry, context);
|
|
3025
2228
|
});
|
|
2229
|
+
return retVal;
|
|
3026
2230
|
};
|
|
3027
2231
|
const deserializeAws_json1_0LambdaFunctionUtilizationMetric = (output, context) => {
|
|
3028
2232
|
return {
|
|
@@ -3032,7 +2236,7 @@ const deserializeAws_json1_0LambdaFunctionUtilizationMetric = (output, context)
|
|
|
3032
2236
|
};
|
|
3033
2237
|
};
|
|
3034
2238
|
const deserializeAws_json1_0LambdaFunctionUtilizationMetrics = (output, context) => {
|
|
3035
|
-
|
|
2239
|
+
const retVal = (output || [])
|
|
3036
2240
|
.filter((e) => e != null)
|
|
3037
2241
|
.map((entry) => {
|
|
3038
2242
|
if (entry === null) {
|
|
@@ -3040,6 +2244,7 @@ const deserializeAws_json1_0LambdaFunctionUtilizationMetrics = (output, context)
|
|
|
3040
2244
|
}
|
|
3041
2245
|
return deserializeAws_json1_0LambdaFunctionUtilizationMetric(entry, context);
|
|
3042
2246
|
});
|
|
2247
|
+
return retVal;
|
|
3043
2248
|
};
|
|
3044
2249
|
const deserializeAws_json1_0LimitExceededException = (output, context) => {
|
|
3045
2250
|
return {
|
|
@@ -3047,7 +2252,7 @@ const deserializeAws_json1_0LimitExceededException = (output, context) => {
|
|
|
3047
2252
|
};
|
|
3048
2253
|
};
|
|
3049
2254
|
const deserializeAws_json1_0MetricValues = (output, context) => {
|
|
3050
|
-
|
|
2255
|
+
const retVal = (output || [])
|
|
3051
2256
|
.filter((e) => e != null)
|
|
3052
2257
|
.map((entry) => {
|
|
3053
2258
|
if (entry === null) {
|
|
@@ -3055,6 +2260,7 @@ const deserializeAws_json1_0MetricValues = (output, context) => {
|
|
|
3055
2260
|
}
|
|
3056
2261
|
return smithy_client_1.limitedParseDouble(entry);
|
|
3057
2262
|
});
|
|
2263
|
+
return retVal;
|
|
3058
2264
|
};
|
|
3059
2265
|
const deserializeAws_json1_0MissingAuthenticationToken = (output, context) => {
|
|
3060
2266
|
return {
|
|
@@ -3067,7 +2273,7 @@ const deserializeAws_json1_0OptInRequiredException = (output, context) => {
|
|
|
3067
2273
|
};
|
|
3068
2274
|
};
|
|
3069
2275
|
const deserializeAws_json1_0PlatformDifferences = (output, context) => {
|
|
3070
|
-
|
|
2276
|
+
const retVal = (output || [])
|
|
3071
2277
|
.filter((e) => e != null)
|
|
3072
2278
|
.map((entry) => {
|
|
3073
2279
|
if (entry === null) {
|
|
@@ -3075,6 +2281,7 @@ const deserializeAws_json1_0PlatformDifferences = (output, context) => {
|
|
|
3075
2281
|
}
|
|
3076
2282
|
return smithy_client_1.expectString(entry);
|
|
3077
2283
|
});
|
|
2284
|
+
return retVal;
|
|
3078
2285
|
};
|
|
3079
2286
|
const deserializeAws_json1_0ProjectedMetric = (output, context) => {
|
|
3080
2287
|
return {
|
|
@@ -3088,7 +2295,7 @@ const deserializeAws_json1_0ProjectedMetric = (output, context) => {
|
|
|
3088
2295
|
};
|
|
3089
2296
|
};
|
|
3090
2297
|
const deserializeAws_json1_0ProjectedMetrics = (output, context) => {
|
|
3091
|
-
|
|
2298
|
+
const retVal = (output || [])
|
|
3092
2299
|
.filter((e) => e != null)
|
|
3093
2300
|
.map((entry) => {
|
|
3094
2301
|
if (entry === null) {
|
|
@@ -3096,9 +2303,10 @@ const deserializeAws_json1_0ProjectedMetrics = (output, context) => {
|
|
|
3096
2303
|
}
|
|
3097
2304
|
return deserializeAws_json1_0ProjectedMetric(entry, context);
|
|
3098
2305
|
});
|
|
2306
|
+
return retVal;
|
|
3099
2307
|
};
|
|
3100
2308
|
const deserializeAws_json1_0ProjectedUtilizationMetrics = (output, context) => {
|
|
3101
|
-
|
|
2309
|
+
const retVal = (output || [])
|
|
3102
2310
|
.filter((e) => e != null)
|
|
3103
2311
|
.map((entry) => {
|
|
3104
2312
|
if (entry === null) {
|
|
@@ -3106,12 +2314,13 @@ const deserializeAws_json1_0ProjectedUtilizationMetrics = (output, context) => {
|
|
|
3106
2314
|
}
|
|
3107
2315
|
return deserializeAws_json1_0UtilizationMetric(entry, context);
|
|
3108
2316
|
});
|
|
2317
|
+
return retVal;
|
|
3109
2318
|
};
|
|
3110
2319
|
const deserializeAws_json1_0PutRecommendationPreferencesResponse = (output, context) => {
|
|
3111
2320
|
return {};
|
|
3112
2321
|
};
|
|
3113
2322
|
const deserializeAws_json1_0ReasonCodeSummaries = (output, context) => {
|
|
3114
|
-
|
|
2323
|
+
const retVal = (output || [])
|
|
3115
2324
|
.filter((e) => e != null)
|
|
3116
2325
|
.map((entry) => {
|
|
3117
2326
|
if (entry === null) {
|
|
@@ -3119,6 +2328,7 @@ const deserializeAws_json1_0ReasonCodeSummaries = (output, context) => {
|
|
|
3119
2328
|
}
|
|
3120
2329
|
return deserializeAws_json1_0ReasonCodeSummary(entry, context);
|
|
3121
2330
|
});
|
|
2331
|
+
return retVal;
|
|
3122
2332
|
};
|
|
3123
2333
|
const deserializeAws_json1_0ReasonCodeSummary = (output, context) => {
|
|
3124
2334
|
return {
|
|
@@ -3144,7 +2354,7 @@ const deserializeAws_json1_0RecommendationExportJob = (output, context) => {
|
|
|
3144
2354
|
};
|
|
3145
2355
|
};
|
|
3146
2356
|
const deserializeAws_json1_0RecommendationExportJobs = (output, context) => {
|
|
3147
|
-
|
|
2357
|
+
const retVal = (output || [])
|
|
3148
2358
|
.filter((e) => e != null)
|
|
3149
2359
|
.map((entry) => {
|
|
3150
2360
|
if (entry === null) {
|
|
@@ -3152,9 +2362,10 @@ const deserializeAws_json1_0RecommendationExportJobs = (output, context) => {
|
|
|
3152
2362
|
}
|
|
3153
2363
|
return deserializeAws_json1_0RecommendationExportJob(entry, context);
|
|
3154
2364
|
});
|
|
2365
|
+
return retVal;
|
|
3155
2366
|
};
|
|
3156
2367
|
const deserializeAws_json1_0RecommendationOptions = (output, context) => {
|
|
3157
|
-
|
|
2368
|
+
const retVal = (output || [])
|
|
3158
2369
|
.filter((e) => e != null)
|
|
3159
2370
|
.map((entry) => {
|
|
3160
2371
|
if (entry === null) {
|
|
@@ -3162,6 +2373,7 @@ const deserializeAws_json1_0RecommendationOptions = (output, context) => {
|
|
|
3162
2373
|
}
|
|
3163
2374
|
return deserializeAws_json1_0InstanceRecommendationOption(entry, context);
|
|
3164
2375
|
});
|
|
2376
|
+
return retVal;
|
|
3165
2377
|
};
|
|
3166
2378
|
const deserializeAws_json1_0RecommendationPreferencesDetail = (output, context) => {
|
|
3167
2379
|
return {
|
|
@@ -3174,7 +2386,7 @@ const deserializeAws_json1_0RecommendationPreferencesDetail = (output, context)
|
|
|
3174
2386
|
};
|
|
3175
2387
|
};
|
|
3176
2388
|
const deserializeAws_json1_0RecommendationPreferencesDetails = (output, context) => {
|
|
3177
|
-
|
|
2389
|
+
const retVal = (output || [])
|
|
3178
2390
|
.filter((e) => e != null)
|
|
3179
2391
|
.map((entry) => {
|
|
3180
2392
|
if (entry === null) {
|
|
@@ -3182,6 +2394,7 @@ const deserializeAws_json1_0RecommendationPreferencesDetails = (output, context)
|
|
|
3182
2394
|
}
|
|
3183
2395
|
return deserializeAws_json1_0RecommendationPreferencesDetail(entry, context);
|
|
3184
2396
|
});
|
|
2397
|
+
return retVal;
|
|
3185
2398
|
};
|
|
3186
2399
|
const deserializeAws_json1_0RecommendationSource = (output, context) => {
|
|
3187
2400
|
return {
|
|
@@ -3190,7 +2403,7 @@ const deserializeAws_json1_0RecommendationSource = (output, context) => {
|
|
|
3190
2403
|
};
|
|
3191
2404
|
};
|
|
3192
2405
|
const deserializeAws_json1_0RecommendationSources = (output, context) => {
|
|
3193
|
-
|
|
2406
|
+
const retVal = (output || [])
|
|
3194
2407
|
.filter((e) => e != null)
|
|
3195
2408
|
.map((entry) => {
|
|
3196
2409
|
if (entry === null) {
|
|
@@ -3198,9 +2411,10 @@ const deserializeAws_json1_0RecommendationSources = (output, context) => {
|
|
|
3198
2411
|
}
|
|
3199
2412
|
return deserializeAws_json1_0RecommendationSource(entry, context);
|
|
3200
2413
|
});
|
|
2414
|
+
return retVal;
|
|
3201
2415
|
};
|
|
3202
2416
|
const deserializeAws_json1_0RecommendationSummaries = (output, context) => {
|
|
3203
|
-
|
|
2417
|
+
const retVal = (output || [])
|
|
3204
2418
|
.filter((e) => e != null)
|
|
3205
2419
|
.map((entry) => {
|
|
3206
2420
|
if (entry === null) {
|
|
@@ -3208,6 +2422,7 @@ const deserializeAws_json1_0RecommendationSummaries = (output, context) => {
|
|
|
3208
2422
|
}
|
|
3209
2423
|
return deserializeAws_json1_0RecommendationSummary(entry, context);
|
|
3210
2424
|
});
|
|
2425
|
+
return retVal;
|
|
3211
2426
|
};
|
|
3212
2427
|
const deserializeAws_json1_0RecommendationSummary = (output, context) => {
|
|
3213
2428
|
return {
|
|
@@ -3234,7 +2449,7 @@ const deserializeAws_json1_0RecommendedOptionProjectedMetric = (output, context)
|
|
|
3234
2449
|
};
|
|
3235
2450
|
};
|
|
3236
2451
|
const deserializeAws_json1_0RecommendedOptionProjectedMetrics = (output, context) => {
|
|
3237
|
-
|
|
2452
|
+
const retVal = (output || [])
|
|
3238
2453
|
.filter((e) => e != null)
|
|
3239
2454
|
.map((entry) => {
|
|
3240
2455
|
if (entry === null) {
|
|
@@ -3242,6 +2457,7 @@ const deserializeAws_json1_0RecommendedOptionProjectedMetrics = (output, context
|
|
|
3242
2457
|
}
|
|
3243
2458
|
return deserializeAws_json1_0RecommendedOptionProjectedMetric(entry, context);
|
|
3244
2459
|
});
|
|
2460
|
+
return retVal;
|
|
3245
2461
|
};
|
|
3246
2462
|
const deserializeAws_json1_0ResourceNotFoundException = (output, context) => {
|
|
3247
2463
|
return {
|
|
@@ -3275,7 +2491,7 @@ const deserializeAws_json1_0ServiceUnavailableException = (output, context) => {
|
|
|
3275
2491
|
};
|
|
3276
2492
|
};
|
|
3277
2493
|
const deserializeAws_json1_0Summaries = (output, context) => {
|
|
3278
|
-
|
|
2494
|
+
const retVal = (output || [])
|
|
3279
2495
|
.filter((e) => e != null)
|
|
3280
2496
|
.map((entry) => {
|
|
3281
2497
|
if (entry === null) {
|
|
@@ -3283,6 +2499,7 @@ const deserializeAws_json1_0Summaries = (output, context) => {
|
|
|
3283
2499
|
}
|
|
3284
2500
|
return deserializeAws_json1_0Summary(entry, context);
|
|
3285
2501
|
});
|
|
2502
|
+
return retVal;
|
|
3286
2503
|
};
|
|
3287
2504
|
const deserializeAws_json1_0Summary = (output, context) => {
|
|
3288
2505
|
return {
|
|
@@ -3299,7 +2516,7 @@ const deserializeAws_json1_0ThrottlingException = (output, context) => {
|
|
|
3299
2516
|
};
|
|
3300
2517
|
};
|
|
3301
2518
|
const deserializeAws_json1_0Timestamps = (output, context) => {
|
|
3302
|
-
|
|
2519
|
+
const retVal = (output || [])
|
|
3303
2520
|
.filter((e) => e != null)
|
|
3304
2521
|
.map((entry) => {
|
|
3305
2522
|
if (entry === null) {
|
|
@@ -3307,6 +2524,7 @@ const deserializeAws_json1_0Timestamps = (output, context) => {
|
|
|
3307
2524
|
}
|
|
3308
2525
|
return smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(entry)));
|
|
3309
2526
|
});
|
|
2527
|
+
return retVal;
|
|
3310
2528
|
};
|
|
3311
2529
|
const deserializeAws_json1_0UpdateEnrollmentStatusResponse = (output, context) => {
|
|
3312
2530
|
return {
|
|
@@ -3322,7 +2540,7 @@ const deserializeAws_json1_0UtilizationMetric = (output, context) => {
|
|
|
3322
2540
|
};
|
|
3323
2541
|
};
|
|
3324
2542
|
const deserializeAws_json1_0UtilizationMetrics = (output, context) => {
|
|
3325
|
-
|
|
2543
|
+
const retVal = (output || [])
|
|
3326
2544
|
.filter((e) => e != null)
|
|
3327
2545
|
.map((entry) => {
|
|
3328
2546
|
if (entry === null) {
|
|
@@ -3330,6 +2548,7 @@ const deserializeAws_json1_0UtilizationMetrics = (output, context) => {
|
|
|
3330
2548
|
}
|
|
3331
2549
|
return deserializeAws_json1_0UtilizationMetric(entry, context);
|
|
3332
2550
|
});
|
|
2551
|
+
return retVal;
|
|
3333
2552
|
};
|
|
3334
2553
|
const deserializeAws_json1_0VolumeConfiguration = (output, context) => {
|
|
3335
2554
|
return {
|
|
@@ -3375,7 +2594,7 @@ const deserializeAws_json1_0VolumeRecommendationOption = (output, context) => {
|
|
|
3375
2594
|
};
|
|
3376
2595
|
};
|
|
3377
2596
|
const deserializeAws_json1_0VolumeRecommendationOptions = (output, context) => {
|
|
3378
|
-
|
|
2597
|
+
const retVal = (output || [])
|
|
3379
2598
|
.filter((e) => e != null)
|
|
3380
2599
|
.map((entry) => {
|
|
3381
2600
|
if (entry === null) {
|
|
@@ -3383,9 +2602,10 @@ const deserializeAws_json1_0VolumeRecommendationOptions = (output, context) => {
|
|
|
3383
2602
|
}
|
|
3384
2603
|
return deserializeAws_json1_0VolumeRecommendationOption(entry, context);
|
|
3385
2604
|
});
|
|
2605
|
+
return retVal;
|
|
3386
2606
|
};
|
|
3387
2607
|
const deserializeAws_json1_0VolumeRecommendations = (output, context) => {
|
|
3388
|
-
|
|
2608
|
+
const retVal = (output || [])
|
|
3389
2609
|
.filter((e) => e != null)
|
|
3390
2610
|
.map((entry) => {
|
|
3391
2611
|
if (entry === null) {
|
|
@@ -3393,6 +2613,7 @@ const deserializeAws_json1_0VolumeRecommendations = (output, context) => {
|
|
|
3393
2613
|
}
|
|
3394
2614
|
return deserializeAws_json1_0VolumeRecommendation(entry, context);
|
|
3395
2615
|
});
|
|
2616
|
+
return retVal;
|
|
3396
2617
|
};
|
|
3397
2618
|
const deserializeMetadata = (output) => {
|
|
3398
2619
|
var _a;
|