@aws-sdk/client-service-quotas 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/ServiceQuotasServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +241 -1
- package/dist-cjs/protocols/Aws_json1_1.js +269 -1060
- package/dist-es/index.js +1 -0
- package/dist-es/models/ServiceQuotasServiceException.js +12 -0
- package/dist-es/models/models_0.js +223 -1
- package/dist-es/protocols/Aws_json1_1.js +552 -1103
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/ServiceQuotasServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +121 -52
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/ServiceQuotasServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +87 -52
- package/package.json +25 -25
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1RequestServiceQuotaIncreaseCommand = exports.deserializeAws_json1_1PutServiceQuotaIncreaseRequestIntoTemplateCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListServicesCommand = exports.deserializeAws_json1_1ListServiceQuotasCommand = exports.deserializeAws_json1_1ListServiceQuotaIncreaseRequestsInTemplateCommand = exports.deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryByQuotaCommand = exports.deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryCommand = exports.deserializeAws_json1_1ListAWSDefaultServiceQuotasCommand = exports.deserializeAws_json1_1GetServiceQuotaIncreaseRequestFromTemplateCommand = exports.deserializeAws_json1_1GetServiceQuotaCommand = exports.deserializeAws_json1_1GetRequestedServiceQuotaChangeCommand = exports.deserializeAws_json1_1GetAWSDefaultServiceQuotaCommand = exports.deserializeAws_json1_1GetAssociationForServiceQuotaTemplateCommand = exports.deserializeAws_json1_1DisassociateServiceQuotaTemplateCommand = exports.deserializeAws_json1_1DeleteServiceQuotaIncreaseRequestFromTemplateCommand = exports.deserializeAws_json1_1AssociateServiceQuotaTemplateCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1RequestServiceQuotaIncreaseCommand = exports.serializeAws_json1_1PutServiceQuotaIncreaseRequestIntoTemplateCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListServicesCommand = exports.serializeAws_json1_1ListServiceQuotasCommand = exports.serializeAws_json1_1ListServiceQuotaIncreaseRequestsInTemplateCommand = exports.serializeAws_json1_1ListRequestedServiceQuotaChangeHistoryByQuotaCommand = exports.serializeAws_json1_1ListRequestedServiceQuotaChangeHistoryCommand = exports.serializeAws_json1_1ListAWSDefaultServiceQuotasCommand = exports.serializeAws_json1_1GetServiceQuotaIncreaseRequestFromTemplateCommand = exports.serializeAws_json1_1GetServiceQuotaCommand = exports.serializeAws_json1_1GetRequestedServiceQuotaChangeCommand = exports.serializeAws_json1_1GetAWSDefaultServiceQuotaCommand = exports.serializeAws_json1_1GetAssociationForServiceQuotaTemplateCommand = exports.serializeAws_json1_1DisassociateServiceQuotaTemplateCommand = exports.serializeAws_json1_1DeleteServiceQuotaIncreaseRequestFromTemplateCommand = exports.serializeAws_json1_1AssociateServiceQuotaTemplateCommand = 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 models_0_1 = require("../models/models_0");
|
|
7
|
+
const ServiceQuotasServiceException_1 = require("../models/ServiceQuotasServiceException");
|
|
6
8
|
const serializeAws_json1_1AssociateServiceQuotaTemplateCommand = async (input, context) => {
|
|
7
9
|
const headers = {
|
|
8
10
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -218,83 +220,37 @@ const deserializeAws_json1_1AssociateServiceQuotaTemplateCommandError = async (o
|
|
|
218
220
|
switch (errorCode) {
|
|
219
221
|
case "AccessDeniedException":
|
|
220
222
|
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
221
|
-
|
|
222
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
223
|
-
name: errorCode,
|
|
224
|
-
$metadata: deserializeMetadata(output),
|
|
225
|
-
};
|
|
226
|
-
break;
|
|
223
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
227
224
|
case "AWSServiceAccessNotEnabledException":
|
|
228
225
|
case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
|
|
229
|
-
|
|
230
|
-
...(await deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context)),
|
|
231
|
-
name: errorCode,
|
|
232
|
-
$metadata: deserializeMetadata(output),
|
|
233
|
-
};
|
|
234
|
-
break;
|
|
226
|
+
throw await deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context);
|
|
235
227
|
case "DependencyAccessDeniedException":
|
|
236
228
|
case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
|
|
237
|
-
|
|
238
|
-
...(await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context)),
|
|
239
|
-
name: errorCode,
|
|
240
|
-
$metadata: deserializeMetadata(output),
|
|
241
|
-
};
|
|
242
|
-
break;
|
|
229
|
+
throw await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context);
|
|
243
230
|
case "NoAvailableOrganizationException":
|
|
244
231
|
case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
|
|
245
|
-
|
|
246
|
-
...(await deserializeAws_json1_1NoAvailableOrganizationExceptionResponse(parsedOutput, context)),
|
|
247
|
-
name: errorCode,
|
|
248
|
-
$metadata: deserializeMetadata(output),
|
|
249
|
-
};
|
|
250
|
-
break;
|
|
232
|
+
throw await deserializeAws_json1_1NoAvailableOrganizationExceptionResponse(parsedOutput, context);
|
|
251
233
|
case "OrganizationNotInAllFeaturesModeException":
|
|
252
234
|
case "com.amazonaws.servicequotas#OrganizationNotInAllFeaturesModeException":
|
|
253
|
-
|
|
254
|
-
...(await deserializeAws_json1_1OrganizationNotInAllFeaturesModeExceptionResponse(parsedOutput, context)),
|
|
255
|
-
name: errorCode,
|
|
256
|
-
$metadata: deserializeMetadata(output),
|
|
257
|
-
};
|
|
258
|
-
break;
|
|
235
|
+
throw await deserializeAws_json1_1OrganizationNotInAllFeaturesModeExceptionResponse(parsedOutput, context);
|
|
259
236
|
case "ServiceException":
|
|
260
237
|
case "com.amazonaws.servicequotas#ServiceException":
|
|
261
|
-
|
|
262
|
-
...(await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)),
|
|
263
|
-
name: errorCode,
|
|
264
|
-
$metadata: deserializeMetadata(output),
|
|
265
|
-
};
|
|
266
|
-
break;
|
|
238
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
267
239
|
case "TemplatesNotAvailableInRegionException":
|
|
268
240
|
case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
|
|
269
|
-
|
|
270
|
-
...(await deserializeAws_json1_1TemplatesNotAvailableInRegionExceptionResponse(parsedOutput, context)),
|
|
271
|
-
name: errorCode,
|
|
272
|
-
$metadata: deserializeMetadata(output),
|
|
273
|
-
};
|
|
274
|
-
break;
|
|
241
|
+
throw await deserializeAws_json1_1TemplatesNotAvailableInRegionExceptionResponse(parsedOutput, context);
|
|
275
242
|
case "TooManyRequestsException":
|
|
276
243
|
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
277
|
-
|
|
278
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
279
|
-
name: errorCode,
|
|
280
|
-
$metadata: deserializeMetadata(output),
|
|
281
|
-
};
|
|
282
|
-
break;
|
|
244
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
283
245
|
default:
|
|
284
246
|
const parsedBody = parsedOutput.body;
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
...parsedBody,
|
|
288
|
-
name: `${errorCode}`,
|
|
289
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
247
|
+
response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
|
|
248
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
290
249
|
$fault: "client",
|
|
291
250
|
$metadata: deserializeMetadata(output),
|
|
292
|
-
};
|
|
251
|
+
});
|
|
252
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
293
253
|
}
|
|
294
|
-
const message = response.message || response.Message || errorCode;
|
|
295
|
-
response.message = message;
|
|
296
|
-
delete response.Message;
|
|
297
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
298
254
|
};
|
|
299
255
|
const deserializeAws_json1_1DeleteServiceQuotaIncreaseRequestFromTemplateCommand = async (output, context) => {
|
|
300
256
|
if (output.statusCode >= 300) {
|
|
@@ -321,91 +277,40 @@ const deserializeAws_json1_1DeleteServiceQuotaIncreaseRequestFromTemplateCommand
|
|
|
321
277
|
switch (errorCode) {
|
|
322
278
|
case "AccessDeniedException":
|
|
323
279
|
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
324
|
-
|
|
325
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
326
|
-
name: errorCode,
|
|
327
|
-
$metadata: deserializeMetadata(output),
|
|
328
|
-
};
|
|
329
|
-
break;
|
|
280
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
330
281
|
case "AWSServiceAccessNotEnabledException":
|
|
331
282
|
case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
|
|
332
|
-
|
|
333
|
-
...(await deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context)),
|
|
334
|
-
name: errorCode,
|
|
335
|
-
$metadata: deserializeMetadata(output),
|
|
336
|
-
};
|
|
337
|
-
break;
|
|
283
|
+
throw await deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context);
|
|
338
284
|
case "DependencyAccessDeniedException":
|
|
339
285
|
case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
|
|
340
|
-
|
|
341
|
-
...(await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context)),
|
|
342
|
-
name: errorCode,
|
|
343
|
-
$metadata: deserializeMetadata(output),
|
|
344
|
-
};
|
|
345
|
-
break;
|
|
286
|
+
throw await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context);
|
|
346
287
|
case "IllegalArgumentException":
|
|
347
288
|
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
348
|
-
|
|
349
|
-
...(await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context)),
|
|
350
|
-
name: errorCode,
|
|
351
|
-
$metadata: deserializeMetadata(output),
|
|
352
|
-
};
|
|
353
|
-
break;
|
|
289
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
354
290
|
case "NoAvailableOrganizationException":
|
|
355
291
|
case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
|
|
356
|
-
|
|
357
|
-
...(await deserializeAws_json1_1NoAvailableOrganizationExceptionResponse(parsedOutput, context)),
|
|
358
|
-
name: errorCode,
|
|
359
|
-
$metadata: deserializeMetadata(output),
|
|
360
|
-
};
|
|
361
|
-
break;
|
|
292
|
+
throw await deserializeAws_json1_1NoAvailableOrganizationExceptionResponse(parsedOutput, context);
|
|
362
293
|
case "NoSuchResourceException":
|
|
363
294
|
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
364
|
-
|
|
365
|
-
...(await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context)),
|
|
366
|
-
name: errorCode,
|
|
367
|
-
$metadata: deserializeMetadata(output),
|
|
368
|
-
};
|
|
369
|
-
break;
|
|
295
|
+
throw await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context);
|
|
370
296
|
case "ServiceException":
|
|
371
297
|
case "com.amazonaws.servicequotas#ServiceException":
|
|
372
|
-
|
|
373
|
-
...(await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)),
|
|
374
|
-
name: errorCode,
|
|
375
|
-
$metadata: deserializeMetadata(output),
|
|
376
|
-
};
|
|
377
|
-
break;
|
|
298
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
378
299
|
case "TemplatesNotAvailableInRegionException":
|
|
379
300
|
case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
|
|
380
|
-
|
|
381
|
-
...(await deserializeAws_json1_1TemplatesNotAvailableInRegionExceptionResponse(parsedOutput, context)),
|
|
382
|
-
name: errorCode,
|
|
383
|
-
$metadata: deserializeMetadata(output),
|
|
384
|
-
};
|
|
385
|
-
break;
|
|
301
|
+
throw await deserializeAws_json1_1TemplatesNotAvailableInRegionExceptionResponse(parsedOutput, context);
|
|
386
302
|
case "TooManyRequestsException":
|
|
387
303
|
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
388
|
-
|
|
389
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
390
|
-
name: errorCode,
|
|
391
|
-
$metadata: deserializeMetadata(output),
|
|
392
|
-
};
|
|
393
|
-
break;
|
|
304
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
394
305
|
default:
|
|
395
306
|
const parsedBody = parsedOutput.body;
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
...parsedBody,
|
|
399
|
-
name: `${errorCode}`,
|
|
400
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
307
|
+
response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
|
|
308
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
401
309
|
$fault: "client",
|
|
402
310
|
$metadata: deserializeMetadata(output),
|
|
403
|
-
};
|
|
311
|
+
});
|
|
312
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
404
313
|
}
|
|
405
|
-
const message = response.message || response.Message || errorCode;
|
|
406
|
-
response.message = message;
|
|
407
|
-
delete response.Message;
|
|
408
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
409
314
|
};
|
|
410
315
|
const deserializeAws_json1_1DisassociateServiceQuotaTemplateCommand = async (output, context) => {
|
|
411
316
|
if (output.statusCode >= 300) {
|
|
@@ -432,83 +337,37 @@ const deserializeAws_json1_1DisassociateServiceQuotaTemplateCommandError = async
|
|
|
432
337
|
switch (errorCode) {
|
|
433
338
|
case "AccessDeniedException":
|
|
434
339
|
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
435
|
-
|
|
436
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
437
|
-
name: errorCode,
|
|
438
|
-
$metadata: deserializeMetadata(output),
|
|
439
|
-
};
|
|
440
|
-
break;
|
|
340
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
441
341
|
case "AWSServiceAccessNotEnabledException":
|
|
442
342
|
case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
|
|
443
|
-
|
|
444
|
-
...(await deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context)),
|
|
445
|
-
name: errorCode,
|
|
446
|
-
$metadata: deserializeMetadata(output),
|
|
447
|
-
};
|
|
448
|
-
break;
|
|
343
|
+
throw await deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context);
|
|
449
344
|
case "DependencyAccessDeniedException":
|
|
450
345
|
case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
|
|
451
|
-
|
|
452
|
-
...(await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context)),
|
|
453
|
-
name: errorCode,
|
|
454
|
-
$metadata: deserializeMetadata(output),
|
|
455
|
-
};
|
|
456
|
-
break;
|
|
346
|
+
throw await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context);
|
|
457
347
|
case "NoAvailableOrganizationException":
|
|
458
348
|
case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
|
|
459
|
-
|
|
460
|
-
...(await deserializeAws_json1_1NoAvailableOrganizationExceptionResponse(parsedOutput, context)),
|
|
461
|
-
name: errorCode,
|
|
462
|
-
$metadata: deserializeMetadata(output),
|
|
463
|
-
};
|
|
464
|
-
break;
|
|
349
|
+
throw await deserializeAws_json1_1NoAvailableOrganizationExceptionResponse(parsedOutput, context);
|
|
465
350
|
case "ServiceException":
|
|
466
351
|
case "com.amazonaws.servicequotas#ServiceException":
|
|
467
|
-
|
|
468
|
-
...(await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)),
|
|
469
|
-
name: errorCode,
|
|
470
|
-
$metadata: deserializeMetadata(output),
|
|
471
|
-
};
|
|
472
|
-
break;
|
|
352
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
473
353
|
case "ServiceQuotaTemplateNotInUseException":
|
|
474
354
|
case "com.amazonaws.servicequotas#ServiceQuotaTemplateNotInUseException":
|
|
475
|
-
|
|
476
|
-
...(await deserializeAws_json1_1ServiceQuotaTemplateNotInUseExceptionResponse(parsedOutput, context)),
|
|
477
|
-
name: errorCode,
|
|
478
|
-
$metadata: deserializeMetadata(output),
|
|
479
|
-
};
|
|
480
|
-
break;
|
|
355
|
+
throw await deserializeAws_json1_1ServiceQuotaTemplateNotInUseExceptionResponse(parsedOutput, context);
|
|
481
356
|
case "TemplatesNotAvailableInRegionException":
|
|
482
357
|
case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
|
|
483
|
-
|
|
484
|
-
...(await deserializeAws_json1_1TemplatesNotAvailableInRegionExceptionResponse(parsedOutput, context)),
|
|
485
|
-
name: errorCode,
|
|
486
|
-
$metadata: deserializeMetadata(output),
|
|
487
|
-
};
|
|
488
|
-
break;
|
|
358
|
+
throw await deserializeAws_json1_1TemplatesNotAvailableInRegionExceptionResponse(parsedOutput, context);
|
|
489
359
|
case "TooManyRequestsException":
|
|
490
360
|
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
491
|
-
|
|
492
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
493
|
-
name: errorCode,
|
|
494
|
-
$metadata: deserializeMetadata(output),
|
|
495
|
-
};
|
|
496
|
-
break;
|
|
361
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
497
362
|
default:
|
|
498
363
|
const parsedBody = parsedOutput.body;
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
...parsedBody,
|
|
502
|
-
name: `${errorCode}`,
|
|
503
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
364
|
+
response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
|
|
365
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
504
366
|
$fault: "client",
|
|
505
367
|
$metadata: deserializeMetadata(output),
|
|
506
|
-
};
|
|
368
|
+
});
|
|
369
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
507
370
|
}
|
|
508
|
-
const message = response.message || response.Message || errorCode;
|
|
509
|
-
response.message = message;
|
|
510
|
-
delete response.Message;
|
|
511
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
512
371
|
};
|
|
513
372
|
const deserializeAws_json1_1GetAssociationForServiceQuotaTemplateCommand = async (output, context) => {
|
|
514
373
|
if (output.statusCode >= 300) {
|
|
@@ -535,83 +394,37 @@ const deserializeAws_json1_1GetAssociationForServiceQuotaTemplateCommandError =
|
|
|
535
394
|
switch (errorCode) {
|
|
536
395
|
case "AccessDeniedException":
|
|
537
396
|
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
538
|
-
|
|
539
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
540
|
-
name: errorCode,
|
|
541
|
-
$metadata: deserializeMetadata(output),
|
|
542
|
-
};
|
|
543
|
-
break;
|
|
397
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
544
398
|
case "AWSServiceAccessNotEnabledException":
|
|
545
399
|
case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
|
|
546
|
-
|
|
547
|
-
...(await deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context)),
|
|
548
|
-
name: errorCode,
|
|
549
|
-
$metadata: deserializeMetadata(output),
|
|
550
|
-
};
|
|
551
|
-
break;
|
|
400
|
+
throw await deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context);
|
|
552
401
|
case "DependencyAccessDeniedException":
|
|
553
402
|
case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
|
|
554
|
-
|
|
555
|
-
...(await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context)),
|
|
556
|
-
name: errorCode,
|
|
557
|
-
$metadata: deserializeMetadata(output),
|
|
558
|
-
};
|
|
559
|
-
break;
|
|
403
|
+
throw await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context);
|
|
560
404
|
case "NoAvailableOrganizationException":
|
|
561
405
|
case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
|
|
562
|
-
|
|
563
|
-
...(await deserializeAws_json1_1NoAvailableOrganizationExceptionResponse(parsedOutput, context)),
|
|
564
|
-
name: errorCode,
|
|
565
|
-
$metadata: deserializeMetadata(output),
|
|
566
|
-
};
|
|
567
|
-
break;
|
|
406
|
+
throw await deserializeAws_json1_1NoAvailableOrganizationExceptionResponse(parsedOutput, context);
|
|
568
407
|
case "ServiceException":
|
|
569
408
|
case "com.amazonaws.servicequotas#ServiceException":
|
|
570
|
-
|
|
571
|
-
...(await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)),
|
|
572
|
-
name: errorCode,
|
|
573
|
-
$metadata: deserializeMetadata(output),
|
|
574
|
-
};
|
|
575
|
-
break;
|
|
409
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
576
410
|
case "ServiceQuotaTemplateNotInUseException":
|
|
577
411
|
case "com.amazonaws.servicequotas#ServiceQuotaTemplateNotInUseException":
|
|
578
|
-
|
|
579
|
-
...(await deserializeAws_json1_1ServiceQuotaTemplateNotInUseExceptionResponse(parsedOutput, context)),
|
|
580
|
-
name: errorCode,
|
|
581
|
-
$metadata: deserializeMetadata(output),
|
|
582
|
-
};
|
|
583
|
-
break;
|
|
412
|
+
throw await deserializeAws_json1_1ServiceQuotaTemplateNotInUseExceptionResponse(parsedOutput, context);
|
|
584
413
|
case "TemplatesNotAvailableInRegionException":
|
|
585
414
|
case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
|
|
586
|
-
|
|
587
|
-
...(await deserializeAws_json1_1TemplatesNotAvailableInRegionExceptionResponse(parsedOutput, context)),
|
|
588
|
-
name: errorCode,
|
|
589
|
-
$metadata: deserializeMetadata(output),
|
|
590
|
-
};
|
|
591
|
-
break;
|
|
415
|
+
throw await deserializeAws_json1_1TemplatesNotAvailableInRegionExceptionResponse(parsedOutput, context);
|
|
592
416
|
case "TooManyRequestsException":
|
|
593
417
|
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
594
|
-
|
|
595
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
596
|
-
name: errorCode,
|
|
597
|
-
$metadata: deserializeMetadata(output),
|
|
598
|
-
};
|
|
599
|
-
break;
|
|
418
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
600
419
|
default:
|
|
601
420
|
const parsedBody = parsedOutput.body;
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
...parsedBody,
|
|
605
|
-
name: `${errorCode}`,
|
|
606
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
421
|
+
response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
|
|
422
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
607
423
|
$fault: "client",
|
|
608
424
|
$metadata: deserializeMetadata(output),
|
|
609
|
-
};
|
|
425
|
+
});
|
|
426
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
610
427
|
}
|
|
611
|
-
const message = response.message || response.Message || errorCode;
|
|
612
|
-
response.message = message;
|
|
613
|
-
delete response.Message;
|
|
614
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
615
428
|
};
|
|
616
429
|
const deserializeAws_json1_1GetAWSDefaultServiceQuotaCommand = async (output, context) => {
|
|
617
430
|
if (output.statusCode >= 300) {
|
|
@@ -638,59 +451,28 @@ const deserializeAws_json1_1GetAWSDefaultServiceQuotaCommandError = async (outpu
|
|
|
638
451
|
switch (errorCode) {
|
|
639
452
|
case "AccessDeniedException":
|
|
640
453
|
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
641
|
-
|
|
642
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
643
|
-
name: errorCode,
|
|
644
|
-
$metadata: deserializeMetadata(output),
|
|
645
|
-
};
|
|
646
|
-
break;
|
|
454
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
647
455
|
case "IllegalArgumentException":
|
|
648
456
|
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
649
|
-
|
|
650
|
-
...(await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context)),
|
|
651
|
-
name: errorCode,
|
|
652
|
-
$metadata: deserializeMetadata(output),
|
|
653
|
-
};
|
|
654
|
-
break;
|
|
457
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
655
458
|
case "NoSuchResourceException":
|
|
656
459
|
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
657
|
-
|
|
658
|
-
...(await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context)),
|
|
659
|
-
name: errorCode,
|
|
660
|
-
$metadata: deserializeMetadata(output),
|
|
661
|
-
};
|
|
662
|
-
break;
|
|
460
|
+
throw await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context);
|
|
663
461
|
case "ServiceException":
|
|
664
462
|
case "com.amazonaws.servicequotas#ServiceException":
|
|
665
|
-
|
|
666
|
-
...(await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)),
|
|
667
|
-
name: errorCode,
|
|
668
|
-
$metadata: deserializeMetadata(output),
|
|
669
|
-
};
|
|
670
|
-
break;
|
|
463
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
671
464
|
case "TooManyRequestsException":
|
|
672
465
|
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
673
|
-
|
|
674
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
675
|
-
name: errorCode,
|
|
676
|
-
$metadata: deserializeMetadata(output),
|
|
677
|
-
};
|
|
678
|
-
break;
|
|
466
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
679
467
|
default:
|
|
680
468
|
const parsedBody = parsedOutput.body;
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
...parsedBody,
|
|
684
|
-
name: `${errorCode}`,
|
|
685
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
469
|
+
response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
|
|
470
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
686
471
|
$fault: "client",
|
|
687
472
|
$metadata: deserializeMetadata(output),
|
|
688
|
-
};
|
|
473
|
+
});
|
|
474
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
689
475
|
}
|
|
690
|
-
const message = response.message || response.Message || errorCode;
|
|
691
|
-
response.message = message;
|
|
692
|
-
delete response.Message;
|
|
693
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
694
476
|
};
|
|
695
477
|
const deserializeAws_json1_1GetRequestedServiceQuotaChangeCommand = async (output, context) => {
|
|
696
478
|
if (output.statusCode >= 300) {
|
|
@@ -717,59 +499,28 @@ const deserializeAws_json1_1GetRequestedServiceQuotaChangeCommandError = async (
|
|
|
717
499
|
switch (errorCode) {
|
|
718
500
|
case "AccessDeniedException":
|
|
719
501
|
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
720
|
-
|
|
721
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
722
|
-
name: errorCode,
|
|
723
|
-
$metadata: deserializeMetadata(output),
|
|
724
|
-
};
|
|
725
|
-
break;
|
|
502
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
726
503
|
case "IllegalArgumentException":
|
|
727
504
|
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
728
|
-
|
|
729
|
-
...(await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context)),
|
|
730
|
-
name: errorCode,
|
|
731
|
-
$metadata: deserializeMetadata(output),
|
|
732
|
-
};
|
|
733
|
-
break;
|
|
505
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
734
506
|
case "NoSuchResourceException":
|
|
735
507
|
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
736
|
-
|
|
737
|
-
...(await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context)),
|
|
738
|
-
name: errorCode,
|
|
739
|
-
$metadata: deserializeMetadata(output),
|
|
740
|
-
};
|
|
741
|
-
break;
|
|
508
|
+
throw await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context);
|
|
742
509
|
case "ServiceException":
|
|
743
510
|
case "com.amazonaws.servicequotas#ServiceException":
|
|
744
|
-
|
|
745
|
-
...(await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)),
|
|
746
|
-
name: errorCode,
|
|
747
|
-
$metadata: deserializeMetadata(output),
|
|
748
|
-
};
|
|
749
|
-
break;
|
|
511
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
750
512
|
case "TooManyRequestsException":
|
|
751
513
|
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
752
|
-
|
|
753
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
754
|
-
name: errorCode,
|
|
755
|
-
$metadata: deserializeMetadata(output),
|
|
756
|
-
};
|
|
757
|
-
break;
|
|
514
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
758
515
|
default:
|
|
759
516
|
const parsedBody = parsedOutput.body;
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
...parsedBody,
|
|
763
|
-
name: `${errorCode}`,
|
|
764
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
517
|
+
response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
|
|
518
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
765
519
|
$fault: "client",
|
|
766
520
|
$metadata: deserializeMetadata(output),
|
|
767
|
-
};
|
|
521
|
+
});
|
|
522
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
768
523
|
}
|
|
769
|
-
const message = response.message || response.Message || errorCode;
|
|
770
|
-
response.message = message;
|
|
771
|
-
delete response.Message;
|
|
772
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
773
524
|
};
|
|
774
525
|
const deserializeAws_json1_1GetServiceQuotaCommand = async (output, context) => {
|
|
775
526
|
if (output.statusCode >= 300) {
|
|
@@ -796,59 +547,28 @@ const deserializeAws_json1_1GetServiceQuotaCommandError = async (output, context
|
|
|
796
547
|
switch (errorCode) {
|
|
797
548
|
case "AccessDeniedException":
|
|
798
549
|
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
799
|
-
|
|
800
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
801
|
-
name: errorCode,
|
|
802
|
-
$metadata: deserializeMetadata(output),
|
|
803
|
-
};
|
|
804
|
-
break;
|
|
550
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
805
551
|
case "IllegalArgumentException":
|
|
806
552
|
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
807
|
-
|
|
808
|
-
...(await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context)),
|
|
809
|
-
name: errorCode,
|
|
810
|
-
$metadata: deserializeMetadata(output),
|
|
811
|
-
};
|
|
812
|
-
break;
|
|
553
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
813
554
|
case "NoSuchResourceException":
|
|
814
555
|
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
815
|
-
|
|
816
|
-
...(await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context)),
|
|
817
|
-
name: errorCode,
|
|
818
|
-
$metadata: deserializeMetadata(output),
|
|
819
|
-
};
|
|
820
|
-
break;
|
|
556
|
+
throw await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context);
|
|
821
557
|
case "ServiceException":
|
|
822
558
|
case "com.amazonaws.servicequotas#ServiceException":
|
|
823
|
-
|
|
824
|
-
...(await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)),
|
|
825
|
-
name: errorCode,
|
|
826
|
-
$metadata: deserializeMetadata(output),
|
|
827
|
-
};
|
|
828
|
-
break;
|
|
559
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
829
560
|
case "TooManyRequestsException":
|
|
830
561
|
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
831
|
-
|
|
832
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
833
|
-
name: errorCode,
|
|
834
|
-
$metadata: deserializeMetadata(output),
|
|
835
|
-
};
|
|
836
|
-
break;
|
|
562
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
837
563
|
default:
|
|
838
564
|
const parsedBody = parsedOutput.body;
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
...parsedBody,
|
|
842
|
-
name: `${errorCode}`,
|
|
843
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
565
|
+
response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
|
|
566
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
844
567
|
$fault: "client",
|
|
845
568
|
$metadata: deserializeMetadata(output),
|
|
846
|
-
};
|
|
569
|
+
});
|
|
570
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
847
571
|
}
|
|
848
|
-
const message = response.message || response.Message || errorCode;
|
|
849
|
-
response.message = message;
|
|
850
|
-
delete response.Message;
|
|
851
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
852
572
|
};
|
|
853
573
|
const deserializeAws_json1_1GetServiceQuotaIncreaseRequestFromTemplateCommand = async (output, context) => {
|
|
854
574
|
if (output.statusCode >= 300) {
|
|
@@ -875,91 +595,40 @@ const deserializeAws_json1_1GetServiceQuotaIncreaseRequestFromTemplateCommandErr
|
|
|
875
595
|
switch (errorCode) {
|
|
876
596
|
case "AccessDeniedException":
|
|
877
597
|
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
878
|
-
|
|
879
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
880
|
-
name: errorCode,
|
|
881
|
-
$metadata: deserializeMetadata(output),
|
|
882
|
-
};
|
|
883
|
-
break;
|
|
598
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
884
599
|
case "AWSServiceAccessNotEnabledException":
|
|
885
600
|
case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
|
|
886
|
-
|
|
887
|
-
...(await deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context)),
|
|
888
|
-
name: errorCode,
|
|
889
|
-
$metadata: deserializeMetadata(output),
|
|
890
|
-
};
|
|
891
|
-
break;
|
|
601
|
+
throw await deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context);
|
|
892
602
|
case "DependencyAccessDeniedException":
|
|
893
603
|
case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
|
|
894
|
-
|
|
895
|
-
...(await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context)),
|
|
896
|
-
name: errorCode,
|
|
897
|
-
$metadata: deserializeMetadata(output),
|
|
898
|
-
};
|
|
899
|
-
break;
|
|
604
|
+
throw await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context);
|
|
900
605
|
case "IllegalArgumentException":
|
|
901
606
|
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
902
|
-
|
|
903
|
-
...(await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context)),
|
|
904
|
-
name: errorCode,
|
|
905
|
-
$metadata: deserializeMetadata(output),
|
|
906
|
-
};
|
|
907
|
-
break;
|
|
607
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
908
608
|
case "NoAvailableOrganizationException":
|
|
909
609
|
case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
|
|
910
|
-
|
|
911
|
-
...(await deserializeAws_json1_1NoAvailableOrganizationExceptionResponse(parsedOutput, context)),
|
|
912
|
-
name: errorCode,
|
|
913
|
-
$metadata: deserializeMetadata(output),
|
|
914
|
-
};
|
|
915
|
-
break;
|
|
610
|
+
throw await deserializeAws_json1_1NoAvailableOrganizationExceptionResponse(parsedOutput, context);
|
|
916
611
|
case "NoSuchResourceException":
|
|
917
612
|
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
918
|
-
|
|
919
|
-
...(await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context)),
|
|
920
|
-
name: errorCode,
|
|
921
|
-
$metadata: deserializeMetadata(output),
|
|
922
|
-
};
|
|
923
|
-
break;
|
|
613
|
+
throw await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context);
|
|
924
614
|
case "ServiceException":
|
|
925
615
|
case "com.amazonaws.servicequotas#ServiceException":
|
|
926
|
-
|
|
927
|
-
...(await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)),
|
|
928
|
-
name: errorCode,
|
|
929
|
-
$metadata: deserializeMetadata(output),
|
|
930
|
-
};
|
|
931
|
-
break;
|
|
616
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
932
617
|
case "TemplatesNotAvailableInRegionException":
|
|
933
618
|
case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
|
|
934
|
-
|
|
935
|
-
...(await deserializeAws_json1_1TemplatesNotAvailableInRegionExceptionResponse(parsedOutput, context)),
|
|
936
|
-
name: errorCode,
|
|
937
|
-
$metadata: deserializeMetadata(output),
|
|
938
|
-
};
|
|
939
|
-
break;
|
|
619
|
+
throw await deserializeAws_json1_1TemplatesNotAvailableInRegionExceptionResponse(parsedOutput, context);
|
|
940
620
|
case "TooManyRequestsException":
|
|
941
621
|
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
942
|
-
|
|
943
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
944
|
-
name: errorCode,
|
|
945
|
-
$metadata: deserializeMetadata(output),
|
|
946
|
-
};
|
|
947
|
-
break;
|
|
622
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
948
623
|
default:
|
|
949
624
|
const parsedBody = parsedOutput.body;
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
...parsedBody,
|
|
953
|
-
name: `${errorCode}`,
|
|
954
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
625
|
+
response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
|
|
626
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
955
627
|
$fault: "client",
|
|
956
628
|
$metadata: deserializeMetadata(output),
|
|
957
|
-
};
|
|
629
|
+
});
|
|
630
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
958
631
|
}
|
|
959
|
-
const message = response.message || response.Message || errorCode;
|
|
960
|
-
response.message = message;
|
|
961
|
-
delete response.Message;
|
|
962
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
963
632
|
};
|
|
964
633
|
const deserializeAws_json1_1ListAWSDefaultServiceQuotasCommand = async (output, context) => {
|
|
965
634
|
if (output.statusCode >= 300) {
|
|
@@ -986,67 +655,31 @@ const deserializeAws_json1_1ListAWSDefaultServiceQuotasCommandError = async (out
|
|
|
986
655
|
switch (errorCode) {
|
|
987
656
|
case "AccessDeniedException":
|
|
988
657
|
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
989
|
-
|
|
990
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
991
|
-
name: errorCode,
|
|
992
|
-
$metadata: deserializeMetadata(output),
|
|
993
|
-
};
|
|
994
|
-
break;
|
|
658
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
995
659
|
case "IllegalArgumentException":
|
|
996
660
|
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
997
|
-
|
|
998
|
-
...(await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context)),
|
|
999
|
-
name: errorCode,
|
|
1000
|
-
$metadata: deserializeMetadata(output),
|
|
1001
|
-
};
|
|
1002
|
-
break;
|
|
661
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
1003
662
|
case "InvalidPaginationTokenException":
|
|
1004
663
|
case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
|
|
1005
|
-
|
|
1006
|
-
...(await deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context)),
|
|
1007
|
-
name: errorCode,
|
|
1008
|
-
$metadata: deserializeMetadata(output),
|
|
1009
|
-
};
|
|
1010
|
-
break;
|
|
664
|
+
throw await deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context);
|
|
1011
665
|
case "NoSuchResourceException":
|
|
1012
666
|
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
1013
|
-
|
|
1014
|
-
...(await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context)),
|
|
1015
|
-
name: errorCode,
|
|
1016
|
-
$metadata: deserializeMetadata(output),
|
|
1017
|
-
};
|
|
1018
|
-
break;
|
|
667
|
+
throw await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context);
|
|
1019
668
|
case "ServiceException":
|
|
1020
669
|
case "com.amazonaws.servicequotas#ServiceException":
|
|
1021
|
-
|
|
1022
|
-
...(await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)),
|
|
1023
|
-
name: errorCode,
|
|
1024
|
-
$metadata: deserializeMetadata(output),
|
|
1025
|
-
};
|
|
1026
|
-
break;
|
|
670
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
1027
671
|
case "TooManyRequestsException":
|
|
1028
672
|
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
1029
|
-
|
|
1030
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1031
|
-
name: errorCode,
|
|
1032
|
-
$metadata: deserializeMetadata(output),
|
|
1033
|
-
};
|
|
1034
|
-
break;
|
|
673
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1035
674
|
default:
|
|
1036
675
|
const parsedBody = parsedOutput.body;
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
...parsedBody,
|
|
1040
|
-
name: `${errorCode}`,
|
|
1041
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
676
|
+
response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
|
|
677
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1042
678
|
$fault: "client",
|
|
1043
679
|
$metadata: deserializeMetadata(output),
|
|
1044
|
-
};
|
|
680
|
+
});
|
|
681
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1045
682
|
}
|
|
1046
|
-
const message = response.message || response.Message || errorCode;
|
|
1047
|
-
response.message = message;
|
|
1048
|
-
delete response.Message;
|
|
1049
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1050
683
|
};
|
|
1051
684
|
const deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryCommand = async (output, context) => {
|
|
1052
685
|
if (output.statusCode >= 300) {
|
|
@@ -1073,67 +706,31 @@ const deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryCommandError =
|
|
|
1073
706
|
switch (errorCode) {
|
|
1074
707
|
case "AccessDeniedException":
|
|
1075
708
|
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
1076
|
-
|
|
1077
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1078
|
-
name: errorCode,
|
|
1079
|
-
$metadata: deserializeMetadata(output),
|
|
1080
|
-
};
|
|
1081
|
-
break;
|
|
709
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1082
710
|
case "IllegalArgumentException":
|
|
1083
711
|
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
1084
|
-
|
|
1085
|
-
...(await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context)),
|
|
1086
|
-
name: errorCode,
|
|
1087
|
-
$metadata: deserializeMetadata(output),
|
|
1088
|
-
};
|
|
1089
|
-
break;
|
|
712
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
1090
713
|
case "InvalidPaginationTokenException":
|
|
1091
714
|
case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
|
|
1092
|
-
|
|
1093
|
-
...(await deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context)),
|
|
1094
|
-
name: errorCode,
|
|
1095
|
-
$metadata: deserializeMetadata(output),
|
|
1096
|
-
};
|
|
1097
|
-
break;
|
|
715
|
+
throw await deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context);
|
|
1098
716
|
case "NoSuchResourceException":
|
|
1099
717
|
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
1100
|
-
|
|
1101
|
-
...(await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context)),
|
|
1102
|
-
name: errorCode,
|
|
1103
|
-
$metadata: deserializeMetadata(output),
|
|
1104
|
-
};
|
|
1105
|
-
break;
|
|
718
|
+
throw await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context);
|
|
1106
719
|
case "ServiceException":
|
|
1107
720
|
case "com.amazonaws.servicequotas#ServiceException":
|
|
1108
|
-
|
|
1109
|
-
...(await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)),
|
|
1110
|
-
name: errorCode,
|
|
1111
|
-
$metadata: deserializeMetadata(output),
|
|
1112
|
-
};
|
|
1113
|
-
break;
|
|
721
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
1114
722
|
case "TooManyRequestsException":
|
|
1115
723
|
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
1116
|
-
|
|
1117
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1118
|
-
name: errorCode,
|
|
1119
|
-
$metadata: deserializeMetadata(output),
|
|
1120
|
-
};
|
|
1121
|
-
break;
|
|
724
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1122
725
|
default:
|
|
1123
726
|
const parsedBody = parsedOutput.body;
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
...parsedBody,
|
|
1127
|
-
name: `${errorCode}`,
|
|
1128
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
727
|
+
response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
|
|
728
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1129
729
|
$fault: "client",
|
|
1130
730
|
$metadata: deserializeMetadata(output),
|
|
1131
|
-
};
|
|
731
|
+
});
|
|
732
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1132
733
|
}
|
|
1133
|
-
const message = response.message || response.Message || errorCode;
|
|
1134
|
-
response.message = message;
|
|
1135
|
-
delete response.Message;
|
|
1136
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1137
734
|
};
|
|
1138
735
|
const deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryByQuotaCommand = async (output, context) => {
|
|
1139
736
|
if (output.statusCode >= 300) {
|
|
@@ -1160,67 +757,31 @@ const deserializeAws_json1_1ListRequestedServiceQuotaChangeHistoryByQuotaCommand
|
|
|
1160
757
|
switch (errorCode) {
|
|
1161
758
|
case "AccessDeniedException":
|
|
1162
759
|
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
1163
|
-
|
|
1164
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1165
|
-
name: errorCode,
|
|
1166
|
-
$metadata: deserializeMetadata(output),
|
|
1167
|
-
};
|
|
1168
|
-
break;
|
|
760
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1169
761
|
case "IllegalArgumentException":
|
|
1170
762
|
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
1171
|
-
|
|
1172
|
-
...(await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context)),
|
|
1173
|
-
name: errorCode,
|
|
1174
|
-
$metadata: deserializeMetadata(output),
|
|
1175
|
-
};
|
|
1176
|
-
break;
|
|
763
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
1177
764
|
case "InvalidPaginationTokenException":
|
|
1178
765
|
case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
|
|
1179
|
-
|
|
1180
|
-
...(await deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context)),
|
|
1181
|
-
name: errorCode,
|
|
1182
|
-
$metadata: deserializeMetadata(output),
|
|
1183
|
-
};
|
|
1184
|
-
break;
|
|
766
|
+
throw await deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context);
|
|
1185
767
|
case "NoSuchResourceException":
|
|
1186
768
|
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
1187
|
-
|
|
1188
|
-
...(await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context)),
|
|
1189
|
-
name: errorCode,
|
|
1190
|
-
$metadata: deserializeMetadata(output),
|
|
1191
|
-
};
|
|
1192
|
-
break;
|
|
769
|
+
throw await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context);
|
|
1193
770
|
case "ServiceException":
|
|
1194
771
|
case "com.amazonaws.servicequotas#ServiceException":
|
|
1195
|
-
|
|
1196
|
-
...(await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)),
|
|
1197
|
-
name: errorCode,
|
|
1198
|
-
$metadata: deserializeMetadata(output),
|
|
1199
|
-
};
|
|
1200
|
-
break;
|
|
772
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
1201
773
|
case "TooManyRequestsException":
|
|
1202
774
|
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
1203
|
-
|
|
1204
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1205
|
-
name: errorCode,
|
|
1206
|
-
$metadata: deserializeMetadata(output),
|
|
1207
|
-
};
|
|
1208
|
-
break;
|
|
775
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1209
776
|
default:
|
|
1210
777
|
const parsedBody = parsedOutput.body;
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
...parsedBody,
|
|
1214
|
-
name: `${errorCode}`,
|
|
1215
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
778
|
+
response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
|
|
779
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1216
780
|
$fault: "client",
|
|
1217
781
|
$metadata: deserializeMetadata(output),
|
|
1218
|
-
};
|
|
782
|
+
});
|
|
783
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1219
784
|
}
|
|
1220
|
-
const message = response.message || response.Message || errorCode;
|
|
1221
|
-
response.message = message;
|
|
1222
|
-
delete response.Message;
|
|
1223
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1224
785
|
};
|
|
1225
786
|
const deserializeAws_json1_1ListServiceQuotaIncreaseRequestsInTemplateCommand = async (output, context) => {
|
|
1226
787
|
if (output.statusCode >= 300) {
|
|
@@ -1247,83 +808,37 @@ const deserializeAws_json1_1ListServiceQuotaIncreaseRequestsInTemplateCommandErr
|
|
|
1247
808
|
switch (errorCode) {
|
|
1248
809
|
case "AccessDeniedException":
|
|
1249
810
|
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
1250
|
-
|
|
1251
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1252
|
-
name: errorCode,
|
|
1253
|
-
$metadata: deserializeMetadata(output),
|
|
1254
|
-
};
|
|
1255
|
-
break;
|
|
811
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1256
812
|
case "AWSServiceAccessNotEnabledException":
|
|
1257
813
|
case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
|
|
1258
|
-
|
|
1259
|
-
...(await deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context)),
|
|
1260
|
-
name: errorCode,
|
|
1261
|
-
$metadata: deserializeMetadata(output),
|
|
1262
|
-
};
|
|
1263
|
-
break;
|
|
814
|
+
throw await deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context);
|
|
1264
815
|
case "DependencyAccessDeniedException":
|
|
1265
816
|
case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
|
|
1266
|
-
|
|
1267
|
-
...(await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1268
|
-
name: errorCode,
|
|
1269
|
-
$metadata: deserializeMetadata(output),
|
|
1270
|
-
};
|
|
1271
|
-
break;
|
|
817
|
+
throw await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context);
|
|
1272
818
|
case "IllegalArgumentException":
|
|
1273
819
|
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
1274
|
-
|
|
1275
|
-
...(await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context)),
|
|
1276
|
-
name: errorCode,
|
|
1277
|
-
$metadata: deserializeMetadata(output),
|
|
1278
|
-
};
|
|
1279
|
-
break;
|
|
820
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
1280
821
|
case "NoAvailableOrganizationException":
|
|
1281
822
|
case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
|
|
1282
|
-
|
|
1283
|
-
...(await deserializeAws_json1_1NoAvailableOrganizationExceptionResponse(parsedOutput, context)),
|
|
1284
|
-
name: errorCode,
|
|
1285
|
-
$metadata: deserializeMetadata(output),
|
|
1286
|
-
};
|
|
1287
|
-
break;
|
|
823
|
+
throw await deserializeAws_json1_1NoAvailableOrganizationExceptionResponse(parsedOutput, context);
|
|
1288
824
|
case "ServiceException":
|
|
1289
825
|
case "com.amazonaws.servicequotas#ServiceException":
|
|
1290
|
-
|
|
1291
|
-
...(await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)),
|
|
1292
|
-
name: errorCode,
|
|
1293
|
-
$metadata: deserializeMetadata(output),
|
|
1294
|
-
};
|
|
1295
|
-
break;
|
|
826
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
1296
827
|
case "TemplatesNotAvailableInRegionException":
|
|
1297
828
|
case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
|
|
1298
|
-
|
|
1299
|
-
...(await deserializeAws_json1_1TemplatesNotAvailableInRegionExceptionResponse(parsedOutput, context)),
|
|
1300
|
-
name: errorCode,
|
|
1301
|
-
$metadata: deserializeMetadata(output),
|
|
1302
|
-
};
|
|
1303
|
-
break;
|
|
829
|
+
throw await deserializeAws_json1_1TemplatesNotAvailableInRegionExceptionResponse(parsedOutput, context);
|
|
1304
830
|
case "TooManyRequestsException":
|
|
1305
831
|
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
1306
|
-
|
|
1307
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1308
|
-
name: errorCode,
|
|
1309
|
-
$metadata: deserializeMetadata(output),
|
|
1310
|
-
};
|
|
1311
|
-
break;
|
|
832
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1312
833
|
default:
|
|
1313
834
|
const parsedBody = parsedOutput.body;
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
...parsedBody,
|
|
1317
|
-
name: `${errorCode}`,
|
|
1318
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
835
|
+
response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
|
|
836
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1319
837
|
$fault: "client",
|
|
1320
838
|
$metadata: deserializeMetadata(output),
|
|
1321
|
-
};
|
|
839
|
+
});
|
|
840
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1322
841
|
}
|
|
1323
|
-
const message = response.message || response.Message || errorCode;
|
|
1324
|
-
response.message = message;
|
|
1325
|
-
delete response.Message;
|
|
1326
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1327
842
|
};
|
|
1328
843
|
const deserializeAws_json1_1ListServiceQuotasCommand = async (output, context) => {
|
|
1329
844
|
if (output.statusCode >= 300) {
|
|
@@ -1350,67 +865,31 @@ const deserializeAws_json1_1ListServiceQuotasCommandError = async (output, conte
|
|
|
1350
865
|
switch (errorCode) {
|
|
1351
866
|
case "AccessDeniedException":
|
|
1352
867
|
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
1353
|
-
|
|
1354
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1355
|
-
name: errorCode,
|
|
1356
|
-
$metadata: deserializeMetadata(output),
|
|
1357
|
-
};
|
|
1358
|
-
break;
|
|
868
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1359
869
|
case "IllegalArgumentException":
|
|
1360
870
|
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
1361
|
-
|
|
1362
|
-
...(await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context)),
|
|
1363
|
-
name: errorCode,
|
|
1364
|
-
$metadata: deserializeMetadata(output),
|
|
1365
|
-
};
|
|
1366
|
-
break;
|
|
871
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
1367
872
|
case "InvalidPaginationTokenException":
|
|
1368
873
|
case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
|
|
1369
|
-
|
|
1370
|
-
...(await deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context)),
|
|
1371
|
-
name: errorCode,
|
|
1372
|
-
$metadata: deserializeMetadata(output),
|
|
1373
|
-
};
|
|
1374
|
-
break;
|
|
874
|
+
throw await deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context);
|
|
1375
875
|
case "NoSuchResourceException":
|
|
1376
876
|
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
1377
|
-
|
|
1378
|
-
...(await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context)),
|
|
1379
|
-
name: errorCode,
|
|
1380
|
-
$metadata: deserializeMetadata(output),
|
|
1381
|
-
};
|
|
1382
|
-
break;
|
|
877
|
+
throw await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context);
|
|
1383
878
|
case "ServiceException":
|
|
1384
879
|
case "com.amazonaws.servicequotas#ServiceException":
|
|
1385
|
-
|
|
1386
|
-
...(await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)),
|
|
1387
|
-
name: errorCode,
|
|
1388
|
-
$metadata: deserializeMetadata(output),
|
|
1389
|
-
};
|
|
1390
|
-
break;
|
|
880
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
1391
881
|
case "TooManyRequestsException":
|
|
1392
882
|
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
1393
|
-
|
|
1394
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1395
|
-
name: errorCode,
|
|
1396
|
-
$metadata: deserializeMetadata(output),
|
|
1397
|
-
};
|
|
1398
|
-
break;
|
|
883
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1399
884
|
default:
|
|
1400
885
|
const parsedBody = parsedOutput.body;
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
...parsedBody,
|
|
1404
|
-
name: `${errorCode}`,
|
|
1405
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
886
|
+
response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
|
|
887
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1406
888
|
$fault: "client",
|
|
1407
889
|
$metadata: deserializeMetadata(output),
|
|
1408
|
-
};
|
|
890
|
+
});
|
|
891
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1409
892
|
}
|
|
1410
|
-
const message = response.message || response.Message || errorCode;
|
|
1411
|
-
response.message = message;
|
|
1412
|
-
delete response.Message;
|
|
1413
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1414
893
|
};
|
|
1415
894
|
const deserializeAws_json1_1ListServicesCommand = async (output, context) => {
|
|
1416
895
|
if (output.statusCode >= 300) {
|
|
@@ -1437,59 +916,28 @@ const deserializeAws_json1_1ListServicesCommandError = async (output, context) =
|
|
|
1437
916
|
switch (errorCode) {
|
|
1438
917
|
case "AccessDeniedException":
|
|
1439
918
|
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
1440
|
-
|
|
1441
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1442
|
-
name: errorCode,
|
|
1443
|
-
$metadata: deserializeMetadata(output),
|
|
1444
|
-
};
|
|
1445
|
-
break;
|
|
919
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1446
920
|
case "IllegalArgumentException":
|
|
1447
921
|
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
1448
|
-
|
|
1449
|
-
...(await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context)),
|
|
1450
|
-
name: errorCode,
|
|
1451
|
-
$metadata: deserializeMetadata(output),
|
|
1452
|
-
};
|
|
1453
|
-
break;
|
|
922
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
1454
923
|
case "InvalidPaginationTokenException":
|
|
1455
924
|
case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
|
|
1456
|
-
|
|
1457
|
-
...(await deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context)),
|
|
1458
|
-
name: errorCode,
|
|
1459
|
-
$metadata: deserializeMetadata(output),
|
|
1460
|
-
};
|
|
1461
|
-
break;
|
|
925
|
+
throw await deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context);
|
|
1462
926
|
case "ServiceException":
|
|
1463
927
|
case "com.amazonaws.servicequotas#ServiceException":
|
|
1464
|
-
|
|
1465
|
-
...(await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)),
|
|
1466
|
-
name: errorCode,
|
|
1467
|
-
$metadata: deserializeMetadata(output),
|
|
1468
|
-
};
|
|
1469
|
-
break;
|
|
928
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
1470
929
|
case "TooManyRequestsException":
|
|
1471
930
|
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
1472
|
-
|
|
1473
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1474
|
-
name: errorCode,
|
|
1475
|
-
$metadata: deserializeMetadata(output),
|
|
1476
|
-
};
|
|
1477
|
-
break;
|
|
931
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1478
932
|
default:
|
|
1479
933
|
const parsedBody = parsedOutput.body;
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
...parsedBody,
|
|
1483
|
-
name: `${errorCode}`,
|
|
1484
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
934
|
+
response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
|
|
935
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1485
936
|
$fault: "client",
|
|
1486
937
|
$metadata: deserializeMetadata(output),
|
|
1487
|
-
};
|
|
938
|
+
});
|
|
939
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1488
940
|
}
|
|
1489
|
-
const message = response.message || response.Message || errorCode;
|
|
1490
|
-
response.message = message;
|
|
1491
|
-
delete response.Message;
|
|
1492
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1493
941
|
};
|
|
1494
942
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
1495
943
|
if (output.statusCode >= 300) {
|
|
@@ -1516,59 +964,28 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1516
964
|
switch (errorCode) {
|
|
1517
965
|
case "AccessDeniedException":
|
|
1518
966
|
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
1519
|
-
|
|
1520
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1521
|
-
name: errorCode,
|
|
1522
|
-
$metadata: deserializeMetadata(output),
|
|
1523
|
-
};
|
|
1524
|
-
break;
|
|
967
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1525
968
|
case "IllegalArgumentException":
|
|
1526
969
|
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
1527
|
-
|
|
1528
|
-
...(await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context)),
|
|
1529
|
-
name: errorCode,
|
|
1530
|
-
$metadata: deserializeMetadata(output),
|
|
1531
|
-
};
|
|
1532
|
-
break;
|
|
970
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
1533
971
|
case "NoSuchResourceException":
|
|
1534
972
|
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
1535
|
-
|
|
1536
|
-
...(await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context)),
|
|
1537
|
-
name: errorCode,
|
|
1538
|
-
$metadata: deserializeMetadata(output),
|
|
1539
|
-
};
|
|
1540
|
-
break;
|
|
973
|
+
throw await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context);
|
|
1541
974
|
case "ServiceException":
|
|
1542
975
|
case "com.amazonaws.servicequotas#ServiceException":
|
|
1543
|
-
|
|
1544
|
-
...(await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)),
|
|
1545
|
-
name: errorCode,
|
|
1546
|
-
$metadata: deserializeMetadata(output),
|
|
1547
|
-
};
|
|
1548
|
-
break;
|
|
976
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
1549
977
|
case "TooManyRequestsException":
|
|
1550
978
|
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
1551
|
-
|
|
1552
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1553
|
-
name: errorCode,
|
|
1554
|
-
$metadata: deserializeMetadata(output),
|
|
1555
|
-
};
|
|
1556
|
-
break;
|
|
979
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1557
980
|
default:
|
|
1558
981
|
const parsedBody = parsedOutput.body;
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
...parsedBody,
|
|
1562
|
-
name: `${errorCode}`,
|
|
1563
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
982
|
+
response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
|
|
983
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1564
984
|
$fault: "client",
|
|
1565
985
|
$metadata: deserializeMetadata(output),
|
|
1566
|
-
};
|
|
986
|
+
});
|
|
987
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1567
988
|
}
|
|
1568
|
-
const message = response.message || response.Message || errorCode;
|
|
1569
|
-
response.message = message;
|
|
1570
|
-
delete response.Message;
|
|
1571
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1572
989
|
};
|
|
1573
990
|
const deserializeAws_json1_1PutServiceQuotaIncreaseRequestIntoTemplateCommand = async (output, context) => {
|
|
1574
991
|
if (output.statusCode >= 300) {
|
|
@@ -1595,99 +1012,43 @@ const deserializeAws_json1_1PutServiceQuotaIncreaseRequestIntoTemplateCommandErr
|
|
|
1595
1012
|
switch (errorCode) {
|
|
1596
1013
|
case "AccessDeniedException":
|
|
1597
1014
|
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
1598
|
-
|
|
1599
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1600
|
-
name: errorCode,
|
|
1601
|
-
$metadata: deserializeMetadata(output),
|
|
1602
|
-
};
|
|
1603
|
-
break;
|
|
1015
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1604
1016
|
case "AWSServiceAccessNotEnabledException":
|
|
1605
1017
|
case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
|
|
1606
|
-
|
|
1607
|
-
...(await deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context)),
|
|
1608
|
-
name: errorCode,
|
|
1609
|
-
$metadata: deserializeMetadata(output),
|
|
1610
|
-
};
|
|
1611
|
-
break;
|
|
1018
|
+
throw await deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse(parsedOutput, context);
|
|
1612
1019
|
case "DependencyAccessDeniedException":
|
|
1613
1020
|
case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
|
|
1614
|
-
|
|
1615
|
-
...(await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1616
|
-
name: errorCode,
|
|
1617
|
-
$metadata: deserializeMetadata(output),
|
|
1618
|
-
};
|
|
1619
|
-
break;
|
|
1021
|
+
throw await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context);
|
|
1620
1022
|
case "IllegalArgumentException":
|
|
1621
1023
|
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
1622
|
-
|
|
1623
|
-
...(await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context)),
|
|
1624
|
-
name: errorCode,
|
|
1625
|
-
$metadata: deserializeMetadata(output),
|
|
1626
|
-
};
|
|
1627
|
-
break;
|
|
1024
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
1628
1025
|
case "NoAvailableOrganizationException":
|
|
1629
1026
|
case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
|
|
1630
|
-
|
|
1631
|
-
...(await deserializeAws_json1_1NoAvailableOrganizationExceptionResponse(parsedOutput, context)),
|
|
1632
|
-
name: errorCode,
|
|
1633
|
-
$metadata: deserializeMetadata(output),
|
|
1634
|
-
};
|
|
1635
|
-
break;
|
|
1027
|
+
throw await deserializeAws_json1_1NoAvailableOrganizationExceptionResponse(parsedOutput, context);
|
|
1636
1028
|
case "NoSuchResourceException":
|
|
1637
1029
|
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
1638
|
-
|
|
1639
|
-
...(await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context)),
|
|
1640
|
-
name: errorCode,
|
|
1641
|
-
$metadata: deserializeMetadata(output),
|
|
1642
|
-
};
|
|
1643
|
-
break;
|
|
1030
|
+
throw await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context);
|
|
1644
1031
|
case "QuotaExceededException":
|
|
1645
1032
|
case "com.amazonaws.servicequotas#QuotaExceededException":
|
|
1646
|
-
|
|
1647
|
-
...(await deserializeAws_json1_1QuotaExceededExceptionResponse(parsedOutput, context)),
|
|
1648
|
-
name: errorCode,
|
|
1649
|
-
$metadata: deserializeMetadata(output),
|
|
1650
|
-
};
|
|
1651
|
-
break;
|
|
1033
|
+
throw await deserializeAws_json1_1QuotaExceededExceptionResponse(parsedOutput, context);
|
|
1652
1034
|
case "ServiceException":
|
|
1653
1035
|
case "com.amazonaws.servicequotas#ServiceException":
|
|
1654
|
-
|
|
1655
|
-
...(await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)),
|
|
1656
|
-
name: errorCode,
|
|
1657
|
-
$metadata: deserializeMetadata(output),
|
|
1658
|
-
};
|
|
1659
|
-
break;
|
|
1036
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
1660
1037
|
case "TemplatesNotAvailableInRegionException":
|
|
1661
1038
|
case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
|
|
1662
|
-
|
|
1663
|
-
...(await deserializeAws_json1_1TemplatesNotAvailableInRegionExceptionResponse(parsedOutput, context)),
|
|
1664
|
-
name: errorCode,
|
|
1665
|
-
$metadata: deserializeMetadata(output),
|
|
1666
|
-
};
|
|
1667
|
-
break;
|
|
1039
|
+
throw await deserializeAws_json1_1TemplatesNotAvailableInRegionExceptionResponse(parsedOutput, context);
|
|
1668
1040
|
case "TooManyRequestsException":
|
|
1669
1041
|
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
1670
|
-
|
|
1671
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1672
|
-
name: errorCode,
|
|
1673
|
-
$metadata: deserializeMetadata(output),
|
|
1674
|
-
};
|
|
1675
|
-
break;
|
|
1042
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1676
1043
|
default:
|
|
1677
1044
|
const parsedBody = parsedOutput.body;
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
...parsedBody,
|
|
1681
|
-
name: `${errorCode}`,
|
|
1682
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1045
|
+
response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
|
|
1046
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1683
1047
|
$fault: "client",
|
|
1684
1048
|
$metadata: deserializeMetadata(output),
|
|
1685
|
-
};
|
|
1049
|
+
});
|
|
1050
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1686
1051
|
}
|
|
1687
|
-
const message = response.message || response.Message || errorCode;
|
|
1688
|
-
response.message = message;
|
|
1689
|
-
delete response.Message;
|
|
1690
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1691
1052
|
};
|
|
1692
1053
|
const deserializeAws_json1_1RequestServiceQuotaIncreaseCommand = async (output, context) => {
|
|
1693
1054
|
if (output.statusCode >= 300) {
|
|
@@ -1714,91 +1075,40 @@ const deserializeAws_json1_1RequestServiceQuotaIncreaseCommandError = async (out
|
|
|
1714
1075
|
switch (errorCode) {
|
|
1715
1076
|
case "AccessDeniedException":
|
|
1716
1077
|
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
1717
|
-
|
|
1718
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1719
|
-
name: errorCode,
|
|
1720
|
-
$metadata: deserializeMetadata(output),
|
|
1721
|
-
};
|
|
1722
|
-
break;
|
|
1078
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1723
1079
|
case "DependencyAccessDeniedException":
|
|
1724
1080
|
case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
|
|
1725
|
-
|
|
1726
|
-
...(await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1727
|
-
name: errorCode,
|
|
1728
|
-
$metadata: deserializeMetadata(output),
|
|
1729
|
-
};
|
|
1730
|
-
break;
|
|
1081
|
+
throw await deserializeAws_json1_1DependencyAccessDeniedExceptionResponse(parsedOutput, context);
|
|
1731
1082
|
case "IllegalArgumentException":
|
|
1732
1083
|
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
1733
|
-
|
|
1734
|
-
...(await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context)),
|
|
1735
|
-
name: errorCode,
|
|
1736
|
-
$metadata: deserializeMetadata(output),
|
|
1737
|
-
};
|
|
1738
|
-
break;
|
|
1084
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
1739
1085
|
case "InvalidResourceStateException":
|
|
1740
1086
|
case "com.amazonaws.servicequotas#InvalidResourceStateException":
|
|
1741
|
-
|
|
1742
|
-
...(await deserializeAws_json1_1InvalidResourceStateExceptionResponse(parsedOutput, context)),
|
|
1743
|
-
name: errorCode,
|
|
1744
|
-
$metadata: deserializeMetadata(output),
|
|
1745
|
-
};
|
|
1746
|
-
break;
|
|
1087
|
+
throw await deserializeAws_json1_1InvalidResourceStateExceptionResponse(parsedOutput, context);
|
|
1747
1088
|
case "NoSuchResourceException":
|
|
1748
1089
|
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
1749
|
-
|
|
1750
|
-
...(await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context)),
|
|
1751
|
-
name: errorCode,
|
|
1752
|
-
$metadata: deserializeMetadata(output),
|
|
1753
|
-
};
|
|
1754
|
-
break;
|
|
1090
|
+
throw await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context);
|
|
1755
1091
|
case "QuotaExceededException":
|
|
1756
1092
|
case "com.amazonaws.servicequotas#QuotaExceededException":
|
|
1757
|
-
|
|
1758
|
-
...(await deserializeAws_json1_1QuotaExceededExceptionResponse(parsedOutput, context)),
|
|
1759
|
-
name: errorCode,
|
|
1760
|
-
$metadata: deserializeMetadata(output),
|
|
1761
|
-
};
|
|
1762
|
-
break;
|
|
1093
|
+
throw await deserializeAws_json1_1QuotaExceededExceptionResponse(parsedOutput, context);
|
|
1763
1094
|
case "ResourceAlreadyExistsException":
|
|
1764
1095
|
case "com.amazonaws.servicequotas#ResourceAlreadyExistsException":
|
|
1765
|
-
|
|
1766
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1767
|
-
name: errorCode,
|
|
1768
|
-
$metadata: deserializeMetadata(output),
|
|
1769
|
-
};
|
|
1770
|
-
break;
|
|
1096
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1771
1097
|
case "ServiceException":
|
|
1772
1098
|
case "com.amazonaws.servicequotas#ServiceException":
|
|
1773
|
-
|
|
1774
|
-
...(await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)),
|
|
1775
|
-
name: errorCode,
|
|
1776
|
-
$metadata: deserializeMetadata(output),
|
|
1777
|
-
};
|
|
1778
|
-
break;
|
|
1099
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
1779
1100
|
case "TooManyRequestsException":
|
|
1780
1101
|
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
1781
|
-
|
|
1782
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1783
|
-
name: errorCode,
|
|
1784
|
-
$metadata: deserializeMetadata(output),
|
|
1785
|
-
};
|
|
1786
|
-
break;
|
|
1102
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1787
1103
|
default:
|
|
1788
1104
|
const parsedBody = parsedOutput.body;
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
...parsedBody,
|
|
1792
|
-
name: `${errorCode}`,
|
|
1793
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1105
|
+
response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
|
|
1106
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1794
1107
|
$fault: "client",
|
|
1795
1108
|
$metadata: deserializeMetadata(output),
|
|
1796
|
-
};
|
|
1109
|
+
});
|
|
1110
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1797
1111
|
}
|
|
1798
|
-
const message = response.message || response.Message || errorCode;
|
|
1799
|
-
response.message = message;
|
|
1800
|
-
delete response.Message;
|
|
1801
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1802
1112
|
};
|
|
1803
1113
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
1804
1114
|
if (output.statusCode >= 300) {
|
|
@@ -1825,75 +1135,34 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1825
1135
|
switch (errorCode) {
|
|
1826
1136
|
case "AccessDeniedException":
|
|
1827
1137
|
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
1828
|
-
|
|
1829
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1830
|
-
name: errorCode,
|
|
1831
|
-
$metadata: deserializeMetadata(output),
|
|
1832
|
-
};
|
|
1833
|
-
break;
|
|
1138
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1834
1139
|
case "IllegalArgumentException":
|
|
1835
1140
|
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
1836
|
-
|
|
1837
|
-
...(await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context)),
|
|
1838
|
-
name: errorCode,
|
|
1839
|
-
$metadata: deserializeMetadata(output),
|
|
1840
|
-
};
|
|
1841
|
-
break;
|
|
1141
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
1842
1142
|
case "NoSuchResourceException":
|
|
1843
1143
|
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
1844
|
-
|
|
1845
|
-
...(await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context)),
|
|
1846
|
-
name: errorCode,
|
|
1847
|
-
$metadata: deserializeMetadata(output),
|
|
1848
|
-
};
|
|
1849
|
-
break;
|
|
1144
|
+
throw await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context);
|
|
1850
1145
|
case "ServiceException":
|
|
1851
1146
|
case "com.amazonaws.servicequotas#ServiceException":
|
|
1852
|
-
|
|
1853
|
-
...(await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)),
|
|
1854
|
-
name: errorCode,
|
|
1855
|
-
$metadata: deserializeMetadata(output),
|
|
1856
|
-
};
|
|
1857
|
-
break;
|
|
1147
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
1858
1148
|
case "TagPolicyViolationException":
|
|
1859
1149
|
case "com.amazonaws.servicequotas#TagPolicyViolationException":
|
|
1860
|
-
|
|
1861
|
-
...(await deserializeAws_json1_1TagPolicyViolationExceptionResponse(parsedOutput, context)),
|
|
1862
|
-
name: errorCode,
|
|
1863
|
-
$metadata: deserializeMetadata(output),
|
|
1864
|
-
};
|
|
1865
|
-
break;
|
|
1150
|
+
throw await deserializeAws_json1_1TagPolicyViolationExceptionResponse(parsedOutput, context);
|
|
1866
1151
|
case "TooManyRequestsException":
|
|
1867
1152
|
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
1868
|
-
|
|
1869
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1870
|
-
name: errorCode,
|
|
1871
|
-
$metadata: deserializeMetadata(output),
|
|
1872
|
-
};
|
|
1873
|
-
break;
|
|
1153
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1874
1154
|
case "TooManyTagsException":
|
|
1875
1155
|
case "com.amazonaws.servicequotas#TooManyTagsException":
|
|
1876
|
-
|
|
1877
|
-
...(await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)),
|
|
1878
|
-
name: errorCode,
|
|
1879
|
-
$metadata: deserializeMetadata(output),
|
|
1880
|
-
};
|
|
1881
|
-
break;
|
|
1156
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1882
1157
|
default:
|
|
1883
1158
|
const parsedBody = parsedOutput.body;
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
...parsedBody,
|
|
1887
|
-
name: `${errorCode}`,
|
|
1888
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1159
|
+
response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
|
|
1160
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1889
1161
|
$fault: "client",
|
|
1890
1162
|
$metadata: deserializeMetadata(output),
|
|
1891
|
-
};
|
|
1163
|
+
});
|
|
1164
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1892
1165
|
}
|
|
1893
|
-
const message = response.message || response.Message || errorCode;
|
|
1894
|
-
response.message = message;
|
|
1895
|
-
delete response.Message;
|
|
1896
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1897
1166
|
};
|
|
1898
1167
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
1899
1168
|
if (output.statusCode >= 300) {
|
|
@@ -1920,246 +1189,181 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1920
1189
|
switch (errorCode) {
|
|
1921
1190
|
case "AccessDeniedException":
|
|
1922
1191
|
case "com.amazonaws.servicequotas#AccessDeniedException":
|
|
1923
|
-
|
|
1924
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1925
|
-
name: errorCode,
|
|
1926
|
-
$metadata: deserializeMetadata(output),
|
|
1927
|
-
};
|
|
1928
|
-
break;
|
|
1192
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1929
1193
|
case "IllegalArgumentException":
|
|
1930
1194
|
case "com.amazonaws.servicequotas#IllegalArgumentException":
|
|
1931
|
-
|
|
1932
|
-
...(await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context)),
|
|
1933
|
-
name: errorCode,
|
|
1934
|
-
$metadata: deserializeMetadata(output),
|
|
1935
|
-
};
|
|
1936
|
-
break;
|
|
1195
|
+
throw await deserializeAws_json1_1IllegalArgumentExceptionResponse(parsedOutput, context);
|
|
1937
1196
|
case "NoSuchResourceException":
|
|
1938
1197
|
case "com.amazonaws.servicequotas#NoSuchResourceException":
|
|
1939
|
-
|
|
1940
|
-
...(await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context)),
|
|
1941
|
-
name: errorCode,
|
|
1942
|
-
$metadata: deserializeMetadata(output),
|
|
1943
|
-
};
|
|
1944
|
-
break;
|
|
1198
|
+
throw await deserializeAws_json1_1NoSuchResourceExceptionResponse(parsedOutput, context);
|
|
1945
1199
|
case "ServiceException":
|
|
1946
1200
|
case "com.amazonaws.servicequotas#ServiceException":
|
|
1947
|
-
|
|
1948
|
-
...(await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context)),
|
|
1949
|
-
name: errorCode,
|
|
1950
|
-
$metadata: deserializeMetadata(output),
|
|
1951
|
-
};
|
|
1952
|
-
break;
|
|
1201
|
+
throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
|
|
1953
1202
|
case "TooManyRequestsException":
|
|
1954
1203
|
case "com.amazonaws.servicequotas#TooManyRequestsException":
|
|
1955
|
-
|
|
1956
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1957
|
-
name: errorCode,
|
|
1958
|
-
$metadata: deserializeMetadata(output),
|
|
1959
|
-
};
|
|
1960
|
-
break;
|
|
1204
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1961
1205
|
default:
|
|
1962
1206
|
const parsedBody = parsedOutput.body;
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
...parsedBody,
|
|
1966
|
-
name: `${errorCode}`,
|
|
1967
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1207
|
+
response = new ServiceQuotasServiceException_1.ServiceQuotasServiceException({
|
|
1208
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1968
1209
|
$fault: "client",
|
|
1969
1210
|
$metadata: deserializeMetadata(output),
|
|
1970
|
-
};
|
|
1211
|
+
});
|
|
1212
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1971
1213
|
}
|
|
1972
|
-
const message = response.message || response.Message || errorCode;
|
|
1973
|
-
response.message = message;
|
|
1974
|
-
delete response.Message;
|
|
1975
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1976
1214
|
};
|
|
1977
1215
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
1978
1216
|
const body = parsedOutput.body;
|
|
1979
1217
|
const deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
1980
|
-
const
|
|
1981
|
-
name: "AccessDeniedException",
|
|
1982
|
-
$fault: "client",
|
|
1218
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
1983
1219
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1984
1220
|
...deserialized,
|
|
1985
|
-
};
|
|
1986
|
-
return
|
|
1221
|
+
});
|
|
1222
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1987
1223
|
};
|
|
1988
1224
|
const deserializeAws_json1_1AWSServiceAccessNotEnabledExceptionResponse = async (parsedOutput, context) => {
|
|
1989
1225
|
const body = parsedOutput.body;
|
|
1990
1226
|
const deserialized = deserializeAws_json1_1AWSServiceAccessNotEnabledException(body, context);
|
|
1991
|
-
const
|
|
1992
|
-
name: "AWSServiceAccessNotEnabledException",
|
|
1993
|
-
$fault: "client",
|
|
1227
|
+
const exception = new models_0_1.AWSServiceAccessNotEnabledException({
|
|
1994
1228
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1995
1229
|
...deserialized,
|
|
1996
|
-
};
|
|
1997
|
-
return
|
|
1230
|
+
});
|
|
1231
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1998
1232
|
};
|
|
1999
1233
|
const deserializeAws_json1_1DependencyAccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
2000
1234
|
const body = parsedOutput.body;
|
|
2001
1235
|
const deserialized = deserializeAws_json1_1DependencyAccessDeniedException(body, context);
|
|
2002
|
-
const
|
|
2003
|
-
name: "DependencyAccessDeniedException",
|
|
2004
|
-
$fault: "client",
|
|
1236
|
+
const exception = new models_0_1.DependencyAccessDeniedException({
|
|
2005
1237
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2006
1238
|
...deserialized,
|
|
2007
|
-
};
|
|
2008
|
-
return
|
|
1239
|
+
});
|
|
1240
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2009
1241
|
};
|
|
2010
1242
|
const deserializeAws_json1_1IllegalArgumentExceptionResponse = async (parsedOutput, context) => {
|
|
2011
1243
|
const body = parsedOutput.body;
|
|
2012
1244
|
const deserialized = deserializeAws_json1_1IllegalArgumentException(body, context);
|
|
2013
|
-
const
|
|
2014
|
-
name: "IllegalArgumentException",
|
|
2015
|
-
$fault: "client",
|
|
1245
|
+
const exception = new models_0_1.IllegalArgumentException({
|
|
2016
1246
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2017
1247
|
...deserialized,
|
|
2018
|
-
};
|
|
2019
|
-
return
|
|
1248
|
+
});
|
|
1249
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2020
1250
|
};
|
|
2021
1251
|
const deserializeAws_json1_1InvalidPaginationTokenExceptionResponse = async (parsedOutput, context) => {
|
|
2022
1252
|
const body = parsedOutput.body;
|
|
2023
1253
|
const deserialized = deserializeAws_json1_1InvalidPaginationTokenException(body, context);
|
|
2024
|
-
const
|
|
2025
|
-
name: "InvalidPaginationTokenException",
|
|
2026
|
-
$fault: "client",
|
|
1254
|
+
const exception = new models_0_1.InvalidPaginationTokenException({
|
|
2027
1255
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2028
1256
|
...deserialized,
|
|
2029
|
-
};
|
|
2030
|
-
return
|
|
1257
|
+
});
|
|
1258
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2031
1259
|
};
|
|
2032
1260
|
const deserializeAws_json1_1InvalidResourceStateExceptionResponse = async (parsedOutput, context) => {
|
|
2033
1261
|
const body = parsedOutput.body;
|
|
2034
1262
|
const deserialized = deserializeAws_json1_1InvalidResourceStateException(body, context);
|
|
2035
|
-
const
|
|
2036
|
-
name: "InvalidResourceStateException",
|
|
2037
|
-
$fault: "client",
|
|
1263
|
+
const exception = new models_0_1.InvalidResourceStateException({
|
|
2038
1264
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2039
1265
|
...deserialized,
|
|
2040
|
-
};
|
|
2041
|
-
return
|
|
1266
|
+
});
|
|
1267
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2042
1268
|
};
|
|
2043
1269
|
const deserializeAws_json1_1NoAvailableOrganizationExceptionResponse = async (parsedOutput, context) => {
|
|
2044
1270
|
const body = parsedOutput.body;
|
|
2045
1271
|
const deserialized = deserializeAws_json1_1NoAvailableOrganizationException(body, context);
|
|
2046
|
-
const
|
|
2047
|
-
name: "NoAvailableOrganizationException",
|
|
2048
|
-
$fault: "client",
|
|
1272
|
+
const exception = new models_0_1.NoAvailableOrganizationException({
|
|
2049
1273
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2050
1274
|
...deserialized,
|
|
2051
|
-
};
|
|
2052
|
-
return
|
|
1275
|
+
});
|
|
1276
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2053
1277
|
};
|
|
2054
1278
|
const deserializeAws_json1_1NoSuchResourceExceptionResponse = async (parsedOutput, context) => {
|
|
2055
1279
|
const body = parsedOutput.body;
|
|
2056
1280
|
const deserialized = deserializeAws_json1_1NoSuchResourceException(body, context);
|
|
2057
|
-
const
|
|
2058
|
-
name: "NoSuchResourceException",
|
|
2059
|
-
$fault: "client",
|
|
1281
|
+
const exception = new models_0_1.NoSuchResourceException({
|
|
2060
1282
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2061
1283
|
...deserialized,
|
|
2062
|
-
};
|
|
2063
|
-
return
|
|
1284
|
+
});
|
|
1285
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2064
1286
|
};
|
|
2065
1287
|
const deserializeAws_json1_1OrganizationNotInAllFeaturesModeExceptionResponse = async (parsedOutput, context) => {
|
|
2066
1288
|
const body = parsedOutput.body;
|
|
2067
1289
|
const deserialized = deserializeAws_json1_1OrganizationNotInAllFeaturesModeException(body, context);
|
|
2068
|
-
const
|
|
2069
|
-
name: "OrganizationNotInAllFeaturesModeException",
|
|
2070
|
-
$fault: "client",
|
|
1290
|
+
const exception = new models_0_1.OrganizationNotInAllFeaturesModeException({
|
|
2071
1291
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2072
1292
|
...deserialized,
|
|
2073
|
-
};
|
|
2074
|
-
return
|
|
1293
|
+
});
|
|
1294
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2075
1295
|
};
|
|
2076
1296
|
const deserializeAws_json1_1QuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2077
1297
|
const body = parsedOutput.body;
|
|
2078
1298
|
const deserialized = deserializeAws_json1_1QuotaExceededException(body, context);
|
|
2079
|
-
const
|
|
2080
|
-
name: "QuotaExceededException",
|
|
2081
|
-
$fault: "client",
|
|
1299
|
+
const exception = new models_0_1.QuotaExceededException({
|
|
2082
1300
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2083
1301
|
...deserialized,
|
|
2084
|
-
};
|
|
2085
|
-
return
|
|
1302
|
+
});
|
|
1303
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2086
1304
|
};
|
|
2087
1305
|
const deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
2088
1306
|
const body = parsedOutput.body;
|
|
2089
1307
|
const deserialized = deserializeAws_json1_1ResourceAlreadyExistsException(body, context);
|
|
2090
|
-
const
|
|
2091
|
-
name: "ResourceAlreadyExistsException",
|
|
2092
|
-
$fault: "client",
|
|
1308
|
+
const exception = new models_0_1.ResourceAlreadyExistsException({
|
|
2093
1309
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2094
1310
|
...deserialized,
|
|
2095
|
-
};
|
|
2096
|
-
return
|
|
1311
|
+
});
|
|
1312
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2097
1313
|
};
|
|
2098
1314
|
const deserializeAws_json1_1ServiceExceptionResponse = async (parsedOutput, context) => {
|
|
2099
1315
|
const body = parsedOutput.body;
|
|
2100
1316
|
const deserialized = deserializeAws_json1_1ServiceException(body, context);
|
|
2101
|
-
const
|
|
2102
|
-
name: "ServiceException",
|
|
2103
|
-
$fault: "server",
|
|
1317
|
+
const exception = new models_0_1.ServiceException({
|
|
2104
1318
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2105
1319
|
...deserialized,
|
|
2106
|
-
};
|
|
2107
|
-
return
|
|
1320
|
+
});
|
|
1321
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2108
1322
|
};
|
|
2109
1323
|
const deserializeAws_json1_1ServiceQuotaTemplateNotInUseExceptionResponse = async (parsedOutput, context) => {
|
|
2110
1324
|
const body = parsedOutput.body;
|
|
2111
1325
|
const deserialized = deserializeAws_json1_1ServiceQuotaTemplateNotInUseException(body, context);
|
|
2112
|
-
const
|
|
2113
|
-
name: "ServiceQuotaTemplateNotInUseException",
|
|
2114
|
-
$fault: "client",
|
|
1326
|
+
const exception = new models_0_1.ServiceQuotaTemplateNotInUseException({
|
|
2115
1327
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2116
1328
|
...deserialized,
|
|
2117
|
-
};
|
|
2118
|
-
return
|
|
1329
|
+
});
|
|
1330
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2119
1331
|
};
|
|
2120
1332
|
const deserializeAws_json1_1TagPolicyViolationExceptionResponse = async (parsedOutput, context) => {
|
|
2121
1333
|
const body = parsedOutput.body;
|
|
2122
1334
|
const deserialized = deserializeAws_json1_1TagPolicyViolationException(body, context);
|
|
2123
|
-
const
|
|
2124
|
-
name: "TagPolicyViolationException",
|
|
2125
|
-
$fault: "client",
|
|
1335
|
+
const exception = new models_0_1.TagPolicyViolationException({
|
|
2126
1336
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2127
1337
|
...deserialized,
|
|
2128
|
-
};
|
|
2129
|
-
return
|
|
1338
|
+
});
|
|
1339
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2130
1340
|
};
|
|
2131
1341
|
const deserializeAws_json1_1TemplatesNotAvailableInRegionExceptionResponse = async (parsedOutput, context) => {
|
|
2132
1342
|
const body = parsedOutput.body;
|
|
2133
1343
|
const deserialized = deserializeAws_json1_1TemplatesNotAvailableInRegionException(body, context);
|
|
2134
|
-
const
|
|
2135
|
-
name: "TemplatesNotAvailableInRegionException",
|
|
2136
|
-
$fault: "client",
|
|
1344
|
+
const exception = new models_0_1.TemplatesNotAvailableInRegionException({
|
|
2137
1345
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2138
1346
|
...deserialized,
|
|
2139
|
-
};
|
|
2140
|
-
return
|
|
1347
|
+
});
|
|
1348
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2141
1349
|
};
|
|
2142
1350
|
const deserializeAws_json1_1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
|
|
2143
1351
|
const body = parsedOutput.body;
|
|
2144
1352
|
const deserialized = deserializeAws_json1_1TooManyRequestsException(body, context);
|
|
2145
|
-
const
|
|
2146
|
-
name: "TooManyRequestsException",
|
|
2147
|
-
$fault: "client",
|
|
1353
|
+
const exception = new models_0_1.TooManyRequestsException({
|
|
2148
1354
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2149
1355
|
...deserialized,
|
|
2150
|
-
};
|
|
2151
|
-
return
|
|
1356
|
+
});
|
|
1357
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2152
1358
|
};
|
|
2153
1359
|
const deserializeAws_json1_1TooManyTagsExceptionResponse = async (parsedOutput, context) => {
|
|
2154
1360
|
const body = parsedOutput.body;
|
|
2155
1361
|
const deserialized = deserializeAws_json1_1TooManyTagsException(body, context);
|
|
2156
|
-
const
|
|
2157
|
-
name: "TooManyTagsException",
|
|
2158
|
-
$fault: "client",
|
|
1362
|
+
const exception = new models_0_1.TooManyTagsException({
|
|
2159
1363
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2160
1364
|
...deserialized,
|
|
2161
|
-
};
|
|
2162
|
-
return
|
|
1365
|
+
});
|
|
1366
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2163
1367
|
};
|
|
2164
1368
|
const serializeAws_json1_1AssociateServiceQuotaTemplateRequest = (input, context) => {
|
|
2165
1369
|
return {};
|
|
@@ -2480,7 +1684,7 @@ const deserializeAws_json1_1OrganizationNotInAllFeaturesModeException = (output,
|
|
|
2480
1684
|
};
|
|
2481
1685
|
};
|
|
2482
1686
|
const deserializeAws_json1_1OutputTags = (output, context) => {
|
|
2483
|
-
|
|
1687
|
+
const retVal = (output || [])
|
|
2484
1688
|
.filter((e) => e != null)
|
|
2485
1689
|
.map((entry) => {
|
|
2486
1690
|
if (entry === null) {
|
|
@@ -2488,6 +1692,7 @@ const deserializeAws_json1_1OutputTags = (output, context) => {
|
|
|
2488
1692
|
}
|
|
2489
1693
|
return deserializeAws_json1_1Tag(entry, context);
|
|
2490
1694
|
});
|
|
1695
|
+
return retVal;
|
|
2491
1696
|
};
|
|
2492
1697
|
const deserializeAws_json1_1PutServiceQuotaIncreaseRequestIntoTemplateResponse = (output, context) => {
|
|
2493
1698
|
return {
|
|
@@ -2531,7 +1736,7 @@ const deserializeAws_json1_1RequestedServiceQuotaChange = (output, context) => {
|
|
|
2531
1736
|
};
|
|
2532
1737
|
};
|
|
2533
1738
|
const deserializeAws_json1_1RequestedServiceQuotaChangeHistoryListDefinition = (output, context) => {
|
|
2534
|
-
|
|
1739
|
+
const retVal = (output || [])
|
|
2535
1740
|
.filter((e) => e != null)
|
|
2536
1741
|
.map((entry) => {
|
|
2537
1742
|
if (entry === null) {
|
|
@@ -2539,6 +1744,7 @@ const deserializeAws_json1_1RequestedServiceQuotaChangeHistoryListDefinition = (
|
|
|
2539
1744
|
}
|
|
2540
1745
|
return deserializeAws_json1_1RequestedServiceQuotaChange(entry, context);
|
|
2541
1746
|
});
|
|
1747
|
+
return retVal;
|
|
2542
1748
|
};
|
|
2543
1749
|
const deserializeAws_json1_1RequestServiceQuotaIncreaseResponse = (output, context) => {
|
|
2544
1750
|
return {
|
|
@@ -2564,7 +1770,7 @@ const deserializeAws_json1_1ServiceInfo = (output, context) => {
|
|
|
2564
1770
|
};
|
|
2565
1771
|
};
|
|
2566
1772
|
const deserializeAws_json1_1ServiceInfoListDefinition = (output, context) => {
|
|
2567
|
-
|
|
1773
|
+
const retVal = (output || [])
|
|
2568
1774
|
.filter((e) => e != null)
|
|
2569
1775
|
.map((entry) => {
|
|
2570
1776
|
if (entry === null) {
|
|
@@ -2572,6 +1778,7 @@ const deserializeAws_json1_1ServiceInfoListDefinition = (output, context) => {
|
|
|
2572
1778
|
}
|
|
2573
1779
|
return deserializeAws_json1_1ServiceInfo(entry, context);
|
|
2574
1780
|
});
|
|
1781
|
+
return retVal;
|
|
2575
1782
|
};
|
|
2576
1783
|
const deserializeAws_json1_1ServiceQuota = (output, context) => {
|
|
2577
1784
|
return {
|
|
@@ -2608,7 +1815,7 @@ const deserializeAws_json1_1ServiceQuotaIncreaseRequestInTemplate = (output, con
|
|
|
2608
1815
|
};
|
|
2609
1816
|
};
|
|
2610
1817
|
const deserializeAws_json1_1ServiceQuotaIncreaseRequestInTemplateList = (output, context) => {
|
|
2611
|
-
|
|
1818
|
+
const retVal = (output || [])
|
|
2612
1819
|
.filter((e) => e != null)
|
|
2613
1820
|
.map((entry) => {
|
|
2614
1821
|
if (entry === null) {
|
|
@@ -2616,9 +1823,10 @@ const deserializeAws_json1_1ServiceQuotaIncreaseRequestInTemplateList = (output,
|
|
|
2616
1823
|
}
|
|
2617
1824
|
return deserializeAws_json1_1ServiceQuotaIncreaseRequestInTemplate(entry, context);
|
|
2618
1825
|
});
|
|
1826
|
+
return retVal;
|
|
2619
1827
|
};
|
|
2620
1828
|
const deserializeAws_json1_1ServiceQuotaListDefinition = (output, context) => {
|
|
2621
|
-
|
|
1829
|
+
const retVal = (output || [])
|
|
2622
1830
|
.filter((e) => e != null)
|
|
2623
1831
|
.map((entry) => {
|
|
2624
1832
|
if (entry === null) {
|
|
@@ -2626,6 +1834,7 @@ const deserializeAws_json1_1ServiceQuotaListDefinition = (output, context) => {
|
|
|
2626
1834
|
}
|
|
2627
1835
|
return deserializeAws_json1_1ServiceQuota(entry, context);
|
|
2628
1836
|
});
|
|
1837
|
+
return retVal;
|
|
2629
1838
|
};
|
|
2630
1839
|
const deserializeAws_json1_1ServiceQuotaTemplateNotInUseException = (output, context) => {
|
|
2631
1840
|
return {
|