@aws-sdk/client-license-manager 3.504.0 → 3.507.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/dist-cjs/index.js +137 -1854
- package/dist-es/protocols/Aws_json1_1.js +209 -1926
- package/package.json +3 -3
|
@@ -304,7 +304,7 @@ export const se_UpdateServiceSettingsCommand = async (input, context) => {
|
|
|
304
304
|
};
|
|
305
305
|
export const de_AcceptGrantCommand = async (output, context) => {
|
|
306
306
|
if (output.statusCode >= 300) {
|
|
307
|
-
return
|
|
307
|
+
return de_CommandError(output, context);
|
|
308
308
|
}
|
|
309
309
|
const data = await parseBody(output.body, context);
|
|
310
310
|
let contents = {};
|
|
@@ -315,46 +315,9 @@ export const de_AcceptGrantCommand = async (output, context) => {
|
|
|
315
315
|
};
|
|
316
316
|
return response;
|
|
317
317
|
};
|
|
318
|
-
const de_AcceptGrantCommandError = async (output, context) => {
|
|
319
|
-
const parsedOutput = {
|
|
320
|
-
...output,
|
|
321
|
-
body: await parseErrorBody(output.body, context),
|
|
322
|
-
};
|
|
323
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
324
|
-
switch (errorCode) {
|
|
325
|
-
case "AccessDeniedException":
|
|
326
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
327
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
328
|
-
case "AuthorizationException":
|
|
329
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
330
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
331
|
-
case "InvalidParameterValueException":
|
|
332
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
333
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
334
|
-
case "RateLimitExceededException":
|
|
335
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
336
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
337
|
-
case "ResourceLimitExceededException":
|
|
338
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
339
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
340
|
-
case "ServerInternalException":
|
|
341
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
342
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
343
|
-
case "ValidationException":
|
|
344
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
345
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
346
|
-
default:
|
|
347
|
-
const parsedBody = parsedOutput.body;
|
|
348
|
-
return throwDefaultError({
|
|
349
|
-
output,
|
|
350
|
-
parsedBody,
|
|
351
|
-
errorCode,
|
|
352
|
-
});
|
|
353
|
-
}
|
|
354
|
-
};
|
|
355
318
|
export const de_CheckInLicenseCommand = async (output, context) => {
|
|
356
319
|
if (output.statusCode >= 300) {
|
|
357
|
-
return
|
|
320
|
+
return de_CommandError(output, context);
|
|
358
321
|
}
|
|
359
322
|
const data = await parseBody(output.body, context);
|
|
360
323
|
let contents = {};
|
|
@@ -365,49 +328,9 @@ export const de_CheckInLicenseCommand = async (output, context) => {
|
|
|
365
328
|
};
|
|
366
329
|
return response;
|
|
367
330
|
};
|
|
368
|
-
const de_CheckInLicenseCommandError = async (output, context) => {
|
|
369
|
-
const parsedOutput = {
|
|
370
|
-
...output,
|
|
371
|
-
body: await parseErrorBody(output.body, context),
|
|
372
|
-
};
|
|
373
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
374
|
-
switch (errorCode) {
|
|
375
|
-
case "AccessDeniedException":
|
|
376
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
377
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
378
|
-
case "AuthorizationException":
|
|
379
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
380
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
381
|
-
case "ConflictException":
|
|
382
|
-
case "com.amazonaws.licensemanager#ConflictException":
|
|
383
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
384
|
-
case "InvalidParameterValueException":
|
|
385
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
386
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
387
|
-
case "RateLimitExceededException":
|
|
388
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
389
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
390
|
-
case "ResourceNotFoundException":
|
|
391
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
392
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
393
|
-
case "ServerInternalException":
|
|
394
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
395
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
396
|
-
case "ValidationException":
|
|
397
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
398
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
399
|
-
default:
|
|
400
|
-
const parsedBody = parsedOutput.body;
|
|
401
|
-
return throwDefaultError({
|
|
402
|
-
output,
|
|
403
|
-
parsedBody,
|
|
404
|
-
errorCode,
|
|
405
|
-
});
|
|
406
|
-
}
|
|
407
|
-
};
|
|
408
331
|
export const de_CheckoutBorrowLicenseCommand = async (output, context) => {
|
|
409
332
|
if (output.statusCode >= 300) {
|
|
410
|
-
return
|
|
333
|
+
return de_CommandError(output, context);
|
|
411
334
|
}
|
|
412
335
|
const data = await parseBody(output.body, context);
|
|
413
336
|
let contents = {};
|
|
@@ -418,58 +341,9 @@ export const de_CheckoutBorrowLicenseCommand = async (output, context) => {
|
|
|
418
341
|
};
|
|
419
342
|
return response;
|
|
420
343
|
};
|
|
421
|
-
const de_CheckoutBorrowLicenseCommandError = async (output, context) => {
|
|
422
|
-
const parsedOutput = {
|
|
423
|
-
...output,
|
|
424
|
-
body: await parseErrorBody(output.body, context),
|
|
425
|
-
};
|
|
426
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
427
|
-
switch (errorCode) {
|
|
428
|
-
case "AccessDeniedException":
|
|
429
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
430
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
431
|
-
case "AuthorizationException":
|
|
432
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
433
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
434
|
-
case "EntitlementNotAllowedException":
|
|
435
|
-
case "com.amazonaws.licensemanager#EntitlementNotAllowedException":
|
|
436
|
-
throw await de_EntitlementNotAllowedExceptionRes(parsedOutput, context);
|
|
437
|
-
case "InvalidParameterValueException":
|
|
438
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
439
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
440
|
-
case "NoEntitlementsAllowedException":
|
|
441
|
-
case "com.amazonaws.licensemanager#NoEntitlementsAllowedException":
|
|
442
|
-
throw await de_NoEntitlementsAllowedExceptionRes(parsedOutput, context);
|
|
443
|
-
case "RateLimitExceededException":
|
|
444
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
445
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
446
|
-
case "RedirectException":
|
|
447
|
-
case "com.amazonaws.licensemanager#RedirectException":
|
|
448
|
-
throw await de_RedirectExceptionRes(parsedOutput, context);
|
|
449
|
-
case "ResourceNotFoundException":
|
|
450
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
451
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
452
|
-
case "ServerInternalException":
|
|
453
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
454
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
455
|
-
case "UnsupportedDigitalSignatureMethodException":
|
|
456
|
-
case "com.amazonaws.licensemanager#UnsupportedDigitalSignatureMethodException":
|
|
457
|
-
throw await de_UnsupportedDigitalSignatureMethodExceptionRes(parsedOutput, context);
|
|
458
|
-
case "ValidationException":
|
|
459
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
460
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
461
|
-
default:
|
|
462
|
-
const parsedBody = parsedOutput.body;
|
|
463
|
-
return throwDefaultError({
|
|
464
|
-
output,
|
|
465
|
-
parsedBody,
|
|
466
|
-
errorCode,
|
|
467
|
-
});
|
|
468
|
-
}
|
|
469
|
-
};
|
|
470
344
|
export const de_CheckoutLicenseCommand = async (output, context) => {
|
|
471
345
|
if (output.statusCode >= 300) {
|
|
472
|
-
return
|
|
346
|
+
return de_CommandError(output, context);
|
|
473
347
|
}
|
|
474
348
|
const data = await parseBody(output.body, context);
|
|
475
349
|
let contents = {};
|
|
@@ -480,55 +354,9 @@ export const de_CheckoutLicenseCommand = async (output, context) => {
|
|
|
480
354
|
};
|
|
481
355
|
return response;
|
|
482
356
|
};
|
|
483
|
-
const de_CheckoutLicenseCommandError = async (output, context) => {
|
|
484
|
-
const parsedOutput = {
|
|
485
|
-
...output,
|
|
486
|
-
body: await parseErrorBody(output.body, context),
|
|
487
|
-
};
|
|
488
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
489
|
-
switch (errorCode) {
|
|
490
|
-
case "AccessDeniedException":
|
|
491
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
492
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
493
|
-
case "AuthorizationException":
|
|
494
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
495
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
496
|
-
case "InvalidParameterValueException":
|
|
497
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
498
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
499
|
-
case "NoEntitlementsAllowedException":
|
|
500
|
-
case "com.amazonaws.licensemanager#NoEntitlementsAllowedException":
|
|
501
|
-
throw await de_NoEntitlementsAllowedExceptionRes(parsedOutput, context);
|
|
502
|
-
case "RateLimitExceededException":
|
|
503
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
504
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
505
|
-
case "RedirectException":
|
|
506
|
-
case "com.amazonaws.licensemanager#RedirectException":
|
|
507
|
-
throw await de_RedirectExceptionRes(parsedOutput, context);
|
|
508
|
-
case "ResourceNotFoundException":
|
|
509
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
510
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
511
|
-
case "ServerInternalException":
|
|
512
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
513
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
514
|
-
case "UnsupportedDigitalSignatureMethodException":
|
|
515
|
-
case "com.amazonaws.licensemanager#UnsupportedDigitalSignatureMethodException":
|
|
516
|
-
throw await de_UnsupportedDigitalSignatureMethodExceptionRes(parsedOutput, context);
|
|
517
|
-
case "ValidationException":
|
|
518
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
519
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
520
|
-
default:
|
|
521
|
-
const parsedBody = parsedOutput.body;
|
|
522
|
-
return throwDefaultError({
|
|
523
|
-
output,
|
|
524
|
-
parsedBody,
|
|
525
|
-
errorCode,
|
|
526
|
-
});
|
|
527
|
-
}
|
|
528
|
-
};
|
|
529
357
|
export const de_CreateGrantCommand = async (output, context) => {
|
|
530
358
|
if (output.statusCode >= 300) {
|
|
531
|
-
return
|
|
359
|
+
return de_CommandError(output, context);
|
|
532
360
|
}
|
|
533
361
|
const data = await parseBody(output.body, context);
|
|
534
362
|
let contents = {};
|
|
@@ -539,46 +367,9 @@ export const de_CreateGrantCommand = async (output, context) => {
|
|
|
539
367
|
};
|
|
540
368
|
return response;
|
|
541
369
|
};
|
|
542
|
-
const de_CreateGrantCommandError = async (output, context) => {
|
|
543
|
-
const parsedOutput = {
|
|
544
|
-
...output,
|
|
545
|
-
body: await parseErrorBody(output.body, context),
|
|
546
|
-
};
|
|
547
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
548
|
-
switch (errorCode) {
|
|
549
|
-
case "AccessDeniedException":
|
|
550
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
551
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
552
|
-
case "AuthorizationException":
|
|
553
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
554
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
555
|
-
case "InvalidParameterValueException":
|
|
556
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
557
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
558
|
-
case "RateLimitExceededException":
|
|
559
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
560
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
561
|
-
case "ResourceLimitExceededException":
|
|
562
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
563
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
564
|
-
case "ServerInternalException":
|
|
565
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
566
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
567
|
-
case "ValidationException":
|
|
568
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
569
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
570
|
-
default:
|
|
571
|
-
const parsedBody = parsedOutput.body;
|
|
572
|
-
return throwDefaultError({
|
|
573
|
-
output,
|
|
574
|
-
parsedBody,
|
|
575
|
-
errorCode,
|
|
576
|
-
});
|
|
577
|
-
}
|
|
578
|
-
};
|
|
579
370
|
export const de_CreateGrantVersionCommand = async (output, context) => {
|
|
580
371
|
if (output.statusCode >= 300) {
|
|
581
|
-
return
|
|
372
|
+
return de_CommandError(output, context);
|
|
582
373
|
}
|
|
583
374
|
const data = await parseBody(output.body, context);
|
|
584
375
|
let contents = {};
|
|
@@ -589,46 +380,9 @@ export const de_CreateGrantVersionCommand = async (output, context) => {
|
|
|
589
380
|
};
|
|
590
381
|
return response;
|
|
591
382
|
};
|
|
592
|
-
const de_CreateGrantVersionCommandError = async (output, context) => {
|
|
593
|
-
const parsedOutput = {
|
|
594
|
-
...output,
|
|
595
|
-
body: await parseErrorBody(output.body, context),
|
|
596
|
-
};
|
|
597
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
598
|
-
switch (errorCode) {
|
|
599
|
-
case "AccessDeniedException":
|
|
600
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
601
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
602
|
-
case "AuthorizationException":
|
|
603
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
604
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
605
|
-
case "InvalidParameterValueException":
|
|
606
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
607
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
608
|
-
case "RateLimitExceededException":
|
|
609
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
610
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
611
|
-
case "ResourceLimitExceededException":
|
|
612
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
613
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
614
|
-
case "ServerInternalException":
|
|
615
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
616
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
617
|
-
case "ValidationException":
|
|
618
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
619
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
620
|
-
default:
|
|
621
|
-
const parsedBody = parsedOutput.body;
|
|
622
|
-
return throwDefaultError({
|
|
623
|
-
output,
|
|
624
|
-
parsedBody,
|
|
625
|
-
errorCode,
|
|
626
|
-
});
|
|
627
|
-
}
|
|
628
|
-
};
|
|
629
383
|
export const de_CreateLicenseCommand = async (output, context) => {
|
|
630
384
|
if (output.statusCode >= 300) {
|
|
631
|
-
return
|
|
385
|
+
return de_CommandError(output, context);
|
|
632
386
|
}
|
|
633
387
|
const data = await parseBody(output.body, context);
|
|
634
388
|
let contents = {};
|
|
@@ -639,499 +393,22 @@ export const de_CreateLicenseCommand = async (output, context) => {
|
|
|
639
393
|
};
|
|
640
394
|
return response;
|
|
641
395
|
};
|
|
642
|
-
const de_CreateLicenseCommandError = async (output, context) => {
|
|
643
|
-
const parsedOutput = {
|
|
644
|
-
...output,
|
|
645
|
-
body: await parseErrorBody(output.body, context),
|
|
646
|
-
};
|
|
647
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
648
|
-
switch (errorCode) {
|
|
649
|
-
case "AccessDeniedException":
|
|
650
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
651
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
652
|
-
case "AuthorizationException":
|
|
653
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
654
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
655
|
-
case "InvalidParameterValueException":
|
|
656
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
657
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
658
|
-
case "RateLimitExceededException":
|
|
659
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
660
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
661
|
-
case "RedirectException":
|
|
662
|
-
case "com.amazonaws.licensemanager#RedirectException":
|
|
663
|
-
throw await de_RedirectExceptionRes(parsedOutput, context);
|
|
664
|
-
case "ServerInternalException":
|
|
665
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
666
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
667
|
-
case "ValidationException":
|
|
668
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
669
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
670
|
-
default:
|
|
671
|
-
const parsedBody = parsedOutput.body;
|
|
672
|
-
return throwDefaultError({
|
|
673
|
-
output,
|
|
674
|
-
parsedBody,
|
|
675
|
-
errorCode,
|
|
676
|
-
});
|
|
677
|
-
}
|
|
678
|
-
};
|
|
679
396
|
export const de_CreateLicenseConfigurationCommand = async (output, context) => {
|
|
680
397
|
if (output.statusCode >= 300) {
|
|
681
|
-
return
|
|
682
|
-
}
|
|
683
|
-
const data = await parseBody(output.body, context);
|
|
684
|
-
let contents = {};
|
|
685
|
-
contents = _json(data);
|
|
686
|
-
const response = {
|
|
687
|
-
$metadata: deserializeMetadata(output),
|
|
688
|
-
...contents,
|
|
689
|
-
};
|
|
690
|
-
return response;
|
|
691
|
-
};
|
|
692
|
-
const de_CreateLicenseConfigurationCommandError = async (output, context) => {
|
|
693
|
-
const parsedOutput = {
|
|
694
|
-
...output,
|
|
695
|
-
body: await parseErrorBody(output.body, context),
|
|
696
|
-
};
|
|
697
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
698
|
-
switch (errorCode) {
|
|
699
|
-
case "AccessDeniedException":
|
|
700
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
701
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
702
|
-
case "AuthorizationException":
|
|
703
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
704
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
705
|
-
case "InvalidParameterValueException":
|
|
706
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
707
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
708
|
-
case "RateLimitExceededException":
|
|
709
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
710
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
711
|
-
case "ResourceLimitExceededException":
|
|
712
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
713
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
714
|
-
case "ServerInternalException":
|
|
715
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
716
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
717
|
-
default:
|
|
718
|
-
const parsedBody = parsedOutput.body;
|
|
719
|
-
return throwDefaultError({
|
|
720
|
-
output,
|
|
721
|
-
parsedBody,
|
|
722
|
-
errorCode,
|
|
723
|
-
});
|
|
724
|
-
}
|
|
725
|
-
};
|
|
726
|
-
export const de_CreateLicenseConversionTaskForResourceCommand = async (output, context) => {
|
|
727
|
-
if (output.statusCode >= 300) {
|
|
728
|
-
return de_CreateLicenseConversionTaskForResourceCommandError(output, context);
|
|
729
|
-
}
|
|
730
|
-
const data = await parseBody(output.body, context);
|
|
731
|
-
let contents = {};
|
|
732
|
-
contents = _json(data);
|
|
733
|
-
const response = {
|
|
734
|
-
$metadata: deserializeMetadata(output),
|
|
735
|
-
...contents,
|
|
736
|
-
};
|
|
737
|
-
return response;
|
|
738
|
-
};
|
|
739
|
-
const de_CreateLicenseConversionTaskForResourceCommandError = async (output, context) => {
|
|
740
|
-
const parsedOutput = {
|
|
741
|
-
...output,
|
|
742
|
-
body: await parseErrorBody(output.body, context),
|
|
743
|
-
};
|
|
744
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
745
|
-
switch (errorCode) {
|
|
746
|
-
case "AccessDeniedException":
|
|
747
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
748
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
749
|
-
case "AuthorizationException":
|
|
750
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
751
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
752
|
-
case "InvalidParameterValueException":
|
|
753
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
754
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
755
|
-
case "RateLimitExceededException":
|
|
756
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
757
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
758
|
-
case "ServerInternalException":
|
|
759
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
760
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
761
|
-
case "ValidationException":
|
|
762
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
763
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
764
|
-
default:
|
|
765
|
-
const parsedBody = parsedOutput.body;
|
|
766
|
-
return throwDefaultError({
|
|
767
|
-
output,
|
|
768
|
-
parsedBody,
|
|
769
|
-
errorCode,
|
|
770
|
-
});
|
|
771
|
-
}
|
|
772
|
-
};
|
|
773
|
-
export const de_CreateLicenseManagerReportGeneratorCommand = async (output, context) => {
|
|
774
|
-
if (output.statusCode >= 300) {
|
|
775
|
-
return de_CreateLicenseManagerReportGeneratorCommandError(output, context);
|
|
776
|
-
}
|
|
777
|
-
const data = await parseBody(output.body, context);
|
|
778
|
-
let contents = {};
|
|
779
|
-
contents = _json(data);
|
|
780
|
-
const response = {
|
|
781
|
-
$metadata: deserializeMetadata(output),
|
|
782
|
-
...contents,
|
|
783
|
-
};
|
|
784
|
-
return response;
|
|
785
|
-
};
|
|
786
|
-
const de_CreateLicenseManagerReportGeneratorCommandError = async (output, context) => {
|
|
787
|
-
const parsedOutput = {
|
|
788
|
-
...output,
|
|
789
|
-
body: await parseErrorBody(output.body, context),
|
|
790
|
-
};
|
|
791
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
792
|
-
switch (errorCode) {
|
|
793
|
-
case "AccessDeniedException":
|
|
794
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
795
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
796
|
-
case "AuthorizationException":
|
|
797
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
798
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
799
|
-
case "InvalidParameterValueException":
|
|
800
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
801
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
802
|
-
case "RateLimitExceededException":
|
|
803
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
804
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
805
|
-
case "ResourceLimitExceededException":
|
|
806
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
807
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
808
|
-
case "ResourceNotFoundException":
|
|
809
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
810
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
811
|
-
case "ServerInternalException":
|
|
812
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
813
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
814
|
-
case "ValidationException":
|
|
815
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
816
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
817
|
-
default:
|
|
818
|
-
const parsedBody = parsedOutput.body;
|
|
819
|
-
return throwDefaultError({
|
|
820
|
-
output,
|
|
821
|
-
parsedBody,
|
|
822
|
-
errorCode,
|
|
823
|
-
});
|
|
824
|
-
}
|
|
825
|
-
};
|
|
826
|
-
export const de_CreateLicenseVersionCommand = async (output, context) => {
|
|
827
|
-
if (output.statusCode >= 300) {
|
|
828
|
-
return de_CreateLicenseVersionCommandError(output, context);
|
|
829
|
-
}
|
|
830
|
-
const data = await parseBody(output.body, context);
|
|
831
|
-
let contents = {};
|
|
832
|
-
contents = _json(data);
|
|
833
|
-
const response = {
|
|
834
|
-
$metadata: deserializeMetadata(output),
|
|
835
|
-
...contents,
|
|
836
|
-
};
|
|
837
|
-
return response;
|
|
838
|
-
};
|
|
839
|
-
const de_CreateLicenseVersionCommandError = async (output, context) => {
|
|
840
|
-
const parsedOutput = {
|
|
841
|
-
...output,
|
|
842
|
-
body: await parseErrorBody(output.body, context),
|
|
843
|
-
};
|
|
844
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
845
|
-
switch (errorCode) {
|
|
846
|
-
case "AccessDeniedException":
|
|
847
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
848
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
849
|
-
case "AuthorizationException":
|
|
850
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
851
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
852
|
-
case "ConflictException":
|
|
853
|
-
case "com.amazonaws.licensemanager#ConflictException":
|
|
854
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
855
|
-
case "RateLimitExceededException":
|
|
856
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
857
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
858
|
-
case "RedirectException":
|
|
859
|
-
case "com.amazonaws.licensemanager#RedirectException":
|
|
860
|
-
throw await de_RedirectExceptionRes(parsedOutput, context);
|
|
861
|
-
case "ResourceNotFoundException":
|
|
862
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
863
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
864
|
-
case "ServerInternalException":
|
|
865
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
866
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
867
|
-
case "ValidationException":
|
|
868
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
869
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
870
|
-
default:
|
|
871
|
-
const parsedBody = parsedOutput.body;
|
|
872
|
-
return throwDefaultError({
|
|
873
|
-
output,
|
|
874
|
-
parsedBody,
|
|
875
|
-
errorCode,
|
|
876
|
-
});
|
|
877
|
-
}
|
|
878
|
-
};
|
|
879
|
-
export const de_CreateTokenCommand = async (output, context) => {
|
|
880
|
-
if (output.statusCode >= 300) {
|
|
881
|
-
return de_CreateTokenCommandError(output, context);
|
|
882
|
-
}
|
|
883
|
-
const data = await parseBody(output.body, context);
|
|
884
|
-
let contents = {};
|
|
885
|
-
contents = _json(data);
|
|
886
|
-
const response = {
|
|
887
|
-
$metadata: deserializeMetadata(output),
|
|
888
|
-
...contents,
|
|
889
|
-
};
|
|
890
|
-
return response;
|
|
891
|
-
};
|
|
892
|
-
const de_CreateTokenCommandError = async (output, context) => {
|
|
893
|
-
const parsedOutput = {
|
|
894
|
-
...output,
|
|
895
|
-
body: await parseErrorBody(output.body, context),
|
|
896
|
-
};
|
|
897
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
898
|
-
switch (errorCode) {
|
|
899
|
-
case "AccessDeniedException":
|
|
900
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
901
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
902
|
-
case "AuthorizationException":
|
|
903
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
904
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
905
|
-
case "RateLimitExceededException":
|
|
906
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
907
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
908
|
-
case "RedirectException":
|
|
909
|
-
case "com.amazonaws.licensemanager#RedirectException":
|
|
910
|
-
throw await de_RedirectExceptionRes(parsedOutput, context);
|
|
911
|
-
case "ResourceLimitExceededException":
|
|
912
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
913
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
914
|
-
case "ResourceNotFoundException":
|
|
915
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
916
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
917
|
-
case "ServerInternalException":
|
|
918
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
919
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
920
|
-
case "ValidationException":
|
|
921
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
922
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
923
|
-
default:
|
|
924
|
-
const parsedBody = parsedOutput.body;
|
|
925
|
-
return throwDefaultError({
|
|
926
|
-
output,
|
|
927
|
-
parsedBody,
|
|
928
|
-
errorCode,
|
|
929
|
-
});
|
|
930
|
-
}
|
|
931
|
-
};
|
|
932
|
-
export const de_DeleteGrantCommand = async (output, context) => {
|
|
933
|
-
if (output.statusCode >= 300) {
|
|
934
|
-
return de_DeleteGrantCommandError(output, context);
|
|
935
|
-
}
|
|
936
|
-
const data = await parseBody(output.body, context);
|
|
937
|
-
let contents = {};
|
|
938
|
-
contents = _json(data);
|
|
939
|
-
const response = {
|
|
940
|
-
$metadata: deserializeMetadata(output),
|
|
941
|
-
...contents,
|
|
942
|
-
};
|
|
943
|
-
return response;
|
|
944
|
-
};
|
|
945
|
-
const de_DeleteGrantCommandError = async (output, context) => {
|
|
946
|
-
const parsedOutput = {
|
|
947
|
-
...output,
|
|
948
|
-
body: await parseErrorBody(output.body, context),
|
|
949
|
-
};
|
|
950
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
951
|
-
switch (errorCode) {
|
|
952
|
-
case "AccessDeniedException":
|
|
953
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
954
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
955
|
-
case "AuthorizationException":
|
|
956
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
957
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
958
|
-
case "InvalidParameterValueException":
|
|
959
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
960
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
961
|
-
case "RateLimitExceededException":
|
|
962
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
963
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
964
|
-
case "ResourceLimitExceededException":
|
|
965
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
966
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
967
|
-
case "ServerInternalException":
|
|
968
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
969
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
970
|
-
case "ValidationException":
|
|
971
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
972
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
973
|
-
default:
|
|
974
|
-
const parsedBody = parsedOutput.body;
|
|
975
|
-
return throwDefaultError({
|
|
976
|
-
output,
|
|
977
|
-
parsedBody,
|
|
978
|
-
errorCode,
|
|
979
|
-
});
|
|
980
|
-
}
|
|
981
|
-
};
|
|
982
|
-
export const de_DeleteLicenseCommand = async (output, context) => {
|
|
983
|
-
if (output.statusCode >= 300) {
|
|
984
|
-
return de_DeleteLicenseCommandError(output, context);
|
|
985
|
-
}
|
|
986
|
-
const data = await parseBody(output.body, context);
|
|
987
|
-
let contents = {};
|
|
988
|
-
contents = _json(data);
|
|
989
|
-
const response = {
|
|
990
|
-
$metadata: deserializeMetadata(output),
|
|
991
|
-
...contents,
|
|
992
|
-
};
|
|
993
|
-
return response;
|
|
994
|
-
};
|
|
995
|
-
const de_DeleteLicenseCommandError = async (output, context) => {
|
|
996
|
-
const parsedOutput = {
|
|
997
|
-
...output,
|
|
998
|
-
body: await parseErrorBody(output.body, context),
|
|
999
|
-
};
|
|
1000
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1001
|
-
switch (errorCode) {
|
|
1002
|
-
case "AccessDeniedException":
|
|
1003
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1004
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1005
|
-
case "AuthorizationException":
|
|
1006
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1007
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1008
|
-
case "ConflictException":
|
|
1009
|
-
case "com.amazonaws.licensemanager#ConflictException":
|
|
1010
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1011
|
-
case "InvalidParameterValueException":
|
|
1012
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1013
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1014
|
-
case "RateLimitExceededException":
|
|
1015
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1016
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1017
|
-
case "RedirectException":
|
|
1018
|
-
case "com.amazonaws.licensemanager#RedirectException":
|
|
1019
|
-
throw await de_RedirectExceptionRes(parsedOutput, context);
|
|
1020
|
-
case "ServerInternalException":
|
|
1021
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1022
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1023
|
-
case "ValidationException":
|
|
1024
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1025
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1026
|
-
default:
|
|
1027
|
-
const parsedBody = parsedOutput.body;
|
|
1028
|
-
return throwDefaultError({
|
|
1029
|
-
output,
|
|
1030
|
-
parsedBody,
|
|
1031
|
-
errorCode,
|
|
1032
|
-
});
|
|
1033
|
-
}
|
|
1034
|
-
};
|
|
1035
|
-
export const de_DeleteLicenseConfigurationCommand = async (output, context) => {
|
|
1036
|
-
if (output.statusCode >= 300) {
|
|
1037
|
-
return de_DeleteLicenseConfigurationCommandError(output, context);
|
|
1038
|
-
}
|
|
1039
|
-
const data = await parseBody(output.body, context);
|
|
1040
|
-
let contents = {};
|
|
1041
|
-
contents = _json(data);
|
|
1042
|
-
const response = {
|
|
1043
|
-
$metadata: deserializeMetadata(output),
|
|
1044
|
-
...contents,
|
|
1045
|
-
};
|
|
1046
|
-
return response;
|
|
1047
|
-
};
|
|
1048
|
-
const de_DeleteLicenseConfigurationCommandError = async (output, context) => {
|
|
1049
|
-
const parsedOutput = {
|
|
1050
|
-
...output,
|
|
1051
|
-
body: await parseErrorBody(output.body, context),
|
|
1052
|
-
};
|
|
1053
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1054
|
-
switch (errorCode) {
|
|
1055
|
-
case "AccessDeniedException":
|
|
1056
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1057
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1058
|
-
case "AuthorizationException":
|
|
1059
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1060
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1061
|
-
case "InvalidParameterValueException":
|
|
1062
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1063
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1064
|
-
case "RateLimitExceededException":
|
|
1065
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1066
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1067
|
-
case "ServerInternalException":
|
|
1068
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1069
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1070
|
-
default:
|
|
1071
|
-
const parsedBody = parsedOutput.body;
|
|
1072
|
-
return throwDefaultError({
|
|
1073
|
-
output,
|
|
1074
|
-
parsedBody,
|
|
1075
|
-
errorCode,
|
|
1076
|
-
});
|
|
1077
|
-
}
|
|
1078
|
-
};
|
|
1079
|
-
export const de_DeleteLicenseManagerReportGeneratorCommand = async (output, context) => {
|
|
1080
|
-
if (output.statusCode >= 300) {
|
|
1081
|
-
return de_DeleteLicenseManagerReportGeneratorCommandError(output, context);
|
|
398
|
+
return de_CommandError(output, context);
|
|
1082
399
|
}
|
|
1083
400
|
const data = await parseBody(output.body, context);
|
|
1084
401
|
let contents = {};
|
|
1085
402
|
contents = _json(data);
|
|
1086
|
-
const response = {
|
|
1087
|
-
$metadata: deserializeMetadata(output),
|
|
1088
|
-
...contents,
|
|
1089
|
-
};
|
|
1090
|
-
return response;
|
|
1091
|
-
};
|
|
1092
|
-
const de_DeleteLicenseManagerReportGeneratorCommandError = async (output, context) => {
|
|
1093
|
-
const parsedOutput = {
|
|
1094
|
-
...output,
|
|
1095
|
-
body: await parseErrorBody(output.body, context),
|
|
1096
|
-
};
|
|
1097
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1098
|
-
switch (errorCode) {
|
|
1099
|
-
case "AccessDeniedException":
|
|
1100
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1101
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1102
|
-
case "AuthorizationException":
|
|
1103
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1104
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1105
|
-
case "InvalidParameterValueException":
|
|
1106
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1107
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1108
|
-
case "RateLimitExceededException":
|
|
1109
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1110
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1111
|
-
case "ResourceLimitExceededException":
|
|
1112
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
1113
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "ResourceNotFoundException":
|
|
1115
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
1116
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1117
|
-
case "ServerInternalException":
|
|
1118
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1119
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1120
|
-
case "ValidationException":
|
|
1121
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1122
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1123
|
-
default:
|
|
1124
|
-
const parsedBody = parsedOutput.body;
|
|
1125
|
-
return throwDefaultError({
|
|
1126
|
-
output,
|
|
1127
|
-
parsedBody,
|
|
1128
|
-
errorCode,
|
|
1129
|
-
});
|
|
1130
|
-
}
|
|
403
|
+
const response = {
|
|
404
|
+
$metadata: deserializeMetadata(output),
|
|
405
|
+
...contents,
|
|
406
|
+
};
|
|
407
|
+
return response;
|
|
1131
408
|
};
|
|
1132
|
-
export const
|
|
409
|
+
export const de_CreateLicenseConversionTaskForResourceCommand = async (output, context) => {
|
|
1133
410
|
if (output.statusCode >= 300) {
|
|
1134
|
-
return
|
|
411
|
+
return de_CommandError(output, context);
|
|
1135
412
|
}
|
|
1136
413
|
const data = await parseBody(output.body, context);
|
|
1137
414
|
let contents = {};
|
|
@@ -1142,46 +419,9 @@ export const de_DeleteTokenCommand = async (output, context) => {
|
|
|
1142
419
|
};
|
|
1143
420
|
return response;
|
|
1144
421
|
};
|
|
1145
|
-
const
|
|
1146
|
-
const parsedOutput = {
|
|
1147
|
-
...output,
|
|
1148
|
-
body: await parseErrorBody(output.body, context),
|
|
1149
|
-
};
|
|
1150
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1151
|
-
switch (errorCode) {
|
|
1152
|
-
case "AccessDeniedException":
|
|
1153
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1154
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1155
|
-
case "AuthorizationException":
|
|
1156
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1157
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1158
|
-
case "RateLimitExceededException":
|
|
1159
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1160
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1161
|
-
case "RedirectException":
|
|
1162
|
-
case "com.amazonaws.licensemanager#RedirectException":
|
|
1163
|
-
throw await de_RedirectExceptionRes(parsedOutput, context);
|
|
1164
|
-
case "ResourceNotFoundException":
|
|
1165
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
1166
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1167
|
-
case "ServerInternalException":
|
|
1168
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1169
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1170
|
-
case "ValidationException":
|
|
1171
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1172
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1173
|
-
default:
|
|
1174
|
-
const parsedBody = parsedOutput.body;
|
|
1175
|
-
return throwDefaultError({
|
|
1176
|
-
output,
|
|
1177
|
-
parsedBody,
|
|
1178
|
-
errorCode,
|
|
1179
|
-
});
|
|
1180
|
-
}
|
|
1181
|
-
};
|
|
1182
|
-
export const de_ExtendLicenseConsumptionCommand = async (output, context) => {
|
|
422
|
+
export const de_CreateLicenseManagerReportGeneratorCommand = async (output, context) => {
|
|
1183
423
|
if (output.statusCode >= 300) {
|
|
1184
|
-
return
|
|
424
|
+
return de_CommandError(output, context);
|
|
1185
425
|
}
|
|
1186
426
|
const data = await parseBody(output.body, context);
|
|
1187
427
|
let contents = {};
|
|
@@ -1192,46 +432,9 @@ export const de_ExtendLicenseConsumptionCommand = async (output, context) => {
|
|
|
1192
432
|
};
|
|
1193
433
|
return response;
|
|
1194
434
|
};
|
|
1195
|
-
const
|
|
1196
|
-
const parsedOutput = {
|
|
1197
|
-
...output,
|
|
1198
|
-
body: await parseErrorBody(output.body, context),
|
|
1199
|
-
};
|
|
1200
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1201
|
-
switch (errorCode) {
|
|
1202
|
-
case "AccessDeniedException":
|
|
1203
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1204
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1205
|
-
case "AuthorizationException":
|
|
1206
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1207
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1208
|
-
case "InvalidParameterValueException":
|
|
1209
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1210
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1211
|
-
case "RateLimitExceededException":
|
|
1212
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1213
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1214
|
-
case "ResourceNotFoundException":
|
|
1215
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
1216
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1217
|
-
case "ServerInternalException":
|
|
1218
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1219
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1220
|
-
case "ValidationException":
|
|
1221
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1222
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1223
|
-
default:
|
|
1224
|
-
const parsedBody = parsedOutput.body;
|
|
1225
|
-
return throwDefaultError({
|
|
1226
|
-
output,
|
|
1227
|
-
parsedBody,
|
|
1228
|
-
errorCode,
|
|
1229
|
-
});
|
|
1230
|
-
}
|
|
1231
|
-
};
|
|
1232
|
-
export const de_GetAccessTokenCommand = async (output, context) => {
|
|
435
|
+
export const de_CreateLicenseVersionCommand = async (output, context) => {
|
|
1233
436
|
if (output.statusCode >= 300) {
|
|
1234
|
-
return
|
|
437
|
+
return de_CommandError(output, context);
|
|
1235
438
|
}
|
|
1236
439
|
const data = await parseBody(output.body, context);
|
|
1237
440
|
let contents = {};
|
|
@@ -1242,40 +445,9 @@ export const de_GetAccessTokenCommand = async (output, context) => {
|
|
|
1242
445
|
};
|
|
1243
446
|
return response;
|
|
1244
447
|
};
|
|
1245
|
-
const
|
|
1246
|
-
const parsedOutput = {
|
|
1247
|
-
...output,
|
|
1248
|
-
body: await parseErrorBody(output.body, context),
|
|
1249
|
-
};
|
|
1250
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1251
|
-
switch (errorCode) {
|
|
1252
|
-
case "AccessDeniedException":
|
|
1253
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1254
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1255
|
-
case "AuthorizationException":
|
|
1256
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1257
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1258
|
-
case "RateLimitExceededException":
|
|
1259
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1260
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1261
|
-
case "ServerInternalException":
|
|
1262
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1263
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1264
|
-
case "ValidationException":
|
|
1265
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1266
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1267
|
-
default:
|
|
1268
|
-
const parsedBody = parsedOutput.body;
|
|
1269
|
-
return throwDefaultError({
|
|
1270
|
-
output,
|
|
1271
|
-
parsedBody,
|
|
1272
|
-
errorCode,
|
|
1273
|
-
});
|
|
1274
|
-
}
|
|
1275
|
-
};
|
|
1276
|
-
export const de_GetGrantCommand = async (output, context) => {
|
|
448
|
+
export const de_CreateTokenCommand = async (output, context) => {
|
|
1277
449
|
if (output.statusCode >= 300) {
|
|
1278
|
-
return
|
|
450
|
+
return de_CommandError(output, context);
|
|
1279
451
|
}
|
|
1280
452
|
const data = await parseBody(output.body, context);
|
|
1281
453
|
let contents = {};
|
|
@@ -1286,46 +458,9 @@ export const de_GetGrantCommand = async (output, context) => {
|
|
|
1286
458
|
};
|
|
1287
459
|
return response;
|
|
1288
460
|
};
|
|
1289
|
-
const
|
|
1290
|
-
const parsedOutput = {
|
|
1291
|
-
...output,
|
|
1292
|
-
body: await parseErrorBody(output.body, context),
|
|
1293
|
-
};
|
|
1294
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1295
|
-
switch (errorCode) {
|
|
1296
|
-
case "AccessDeniedException":
|
|
1297
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1298
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1299
|
-
case "AuthorizationException":
|
|
1300
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1301
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1302
|
-
case "InvalidParameterValueException":
|
|
1303
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1304
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1305
|
-
case "RateLimitExceededException":
|
|
1306
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1307
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1308
|
-
case "ResourceLimitExceededException":
|
|
1309
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
1310
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1311
|
-
case "ServerInternalException":
|
|
1312
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1313
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1314
|
-
case "ValidationException":
|
|
1315
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1316
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1317
|
-
default:
|
|
1318
|
-
const parsedBody = parsedOutput.body;
|
|
1319
|
-
return throwDefaultError({
|
|
1320
|
-
output,
|
|
1321
|
-
parsedBody,
|
|
1322
|
-
errorCode,
|
|
1323
|
-
});
|
|
1324
|
-
}
|
|
1325
|
-
};
|
|
1326
|
-
export const de_GetLicenseCommand = async (output, context) => {
|
|
461
|
+
export const de_DeleteGrantCommand = async (output, context) => {
|
|
1327
462
|
if (output.statusCode >= 300) {
|
|
1328
|
-
return
|
|
463
|
+
return de_CommandError(output, context);
|
|
1329
464
|
}
|
|
1330
465
|
const data = await parseBody(output.body, context);
|
|
1331
466
|
let contents = {};
|
|
@@ -1336,131 +471,35 @@ export const de_GetLicenseCommand = async (output, context) => {
|
|
|
1336
471
|
};
|
|
1337
472
|
return response;
|
|
1338
473
|
};
|
|
1339
|
-
const
|
|
1340
|
-
const parsedOutput = {
|
|
1341
|
-
...output,
|
|
1342
|
-
body: await parseErrorBody(output.body, context),
|
|
1343
|
-
};
|
|
1344
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1345
|
-
switch (errorCode) {
|
|
1346
|
-
case "AccessDeniedException":
|
|
1347
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1348
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1349
|
-
case "AuthorizationException":
|
|
1350
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1351
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1352
|
-
case "InvalidParameterValueException":
|
|
1353
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1354
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1355
|
-
case "RateLimitExceededException":
|
|
1356
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1357
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1358
|
-
case "ServerInternalException":
|
|
1359
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1360
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1361
|
-
case "ValidationException":
|
|
1362
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1363
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1364
|
-
default:
|
|
1365
|
-
const parsedBody = parsedOutput.body;
|
|
1366
|
-
return throwDefaultError({
|
|
1367
|
-
output,
|
|
1368
|
-
parsedBody,
|
|
1369
|
-
errorCode,
|
|
1370
|
-
});
|
|
1371
|
-
}
|
|
1372
|
-
};
|
|
1373
|
-
export const de_GetLicenseConfigurationCommand = async (output, context) => {
|
|
474
|
+
export const de_DeleteLicenseCommand = async (output, context) => {
|
|
1374
475
|
if (output.statusCode >= 300) {
|
|
1375
|
-
return
|
|
476
|
+
return de_CommandError(output, context);
|
|
1376
477
|
}
|
|
1377
478
|
const data = await parseBody(output.body, context);
|
|
1378
479
|
let contents = {};
|
|
1379
|
-
contents =
|
|
480
|
+
contents = _json(data);
|
|
1380
481
|
const response = {
|
|
1381
482
|
$metadata: deserializeMetadata(output),
|
|
1382
483
|
...contents,
|
|
1383
484
|
};
|
|
1384
485
|
return response;
|
|
1385
486
|
};
|
|
1386
|
-
const
|
|
1387
|
-
const parsedOutput = {
|
|
1388
|
-
...output,
|
|
1389
|
-
body: await parseErrorBody(output.body, context),
|
|
1390
|
-
};
|
|
1391
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1392
|
-
switch (errorCode) {
|
|
1393
|
-
case "AccessDeniedException":
|
|
1394
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1395
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1396
|
-
case "AuthorizationException":
|
|
1397
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1398
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1399
|
-
case "InvalidParameterValueException":
|
|
1400
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1401
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1402
|
-
case "RateLimitExceededException":
|
|
1403
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1404
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1405
|
-
case "ServerInternalException":
|
|
1406
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1407
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1408
|
-
default:
|
|
1409
|
-
const parsedBody = parsedOutput.body;
|
|
1410
|
-
return throwDefaultError({
|
|
1411
|
-
output,
|
|
1412
|
-
parsedBody,
|
|
1413
|
-
errorCode,
|
|
1414
|
-
});
|
|
1415
|
-
}
|
|
1416
|
-
};
|
|
1417
|
-
export const de_GetLicenseConversionTaskCommand = async (output, context) => {
|
|
487
|
+
export const de_DeleteLicenseConfigurationCommand = async (output, context) => {
|
|
1418
488
|
if (output.statusCode >= 300) {
|
|
1419
|
-
return
|
|
489
|
+
return de_CommandError(output, context);
|
|
1420
490
|
}
|
|
1421
491
|
const data = await parseBody(output.body, context);
|
|
1422
492
|
let contents = {};
|
|
1423
|
-
contents =
|
|
493
|
+
contents = _json(data);
|
|
1424
494
|
const response = {
|
|
1425
495
|
$metadata: deserializeMetadata(output),
|
|
1426
496
|
...contents,
|
|
1427
497
|
};
|
|
1428
498
|
return response;
|
|
1429
499
|
};
|
|
1430
|
-
const
|
|
1431
|
-
const parsedOutput = {
|
|
1432
|
-
...output,
|
|
1433
|
-
body: await parseErrorBody(output.body, context),
|
|
1434
|
-
};
|
|
1435
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1436
|
-
switch (errorCode) {
|
|
1437
|
-
case "AccessDeniedException":
|
|
1438
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1439
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1440
|
-
case "AuthorizationException":
|
|
1441
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1442
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1443
|
-
case "InvalidParameterValueException":
|
|
1444
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1445
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1446
|
-
case "RateLimitExceededException":
|
|
1447
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1448
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1449
|
-
case "ServerInternalException":
|
|
1450
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1451
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1452
|
-
default:
|
|
1453
|
-
const parsedBody = parsedOutput.body;
|
|
1454
|
-
return throwDefaultError({
|
|
1455
|
-
output,
|
|
1456
|
-
parsedBody,
|
|
1457
|
-
errorCode,
|
|
1458
|
-
});
|
|
1459
|
-
}
|
|
1460
|
-
};
|
|
1461
|
-
export const de_GetLicenseManagerReportGeneratorCommand = async (output, context) => {
|
|
500
|
+
export const de_DeleteLicenseManagerReportGeneratorCommand = async (output, context) => {
|
|
1462
501
|
if (output.statusCode >= 300) {
|
|
1463
|
-
return
|
|
502
|
+
return de_CommandError(output, context);
|
|
1464
503
|
}
|
|
1465
504
|
const data = await parseBody(output.body, context);
|
|
1466
505
|
let contents = {};
|
|
@@ -1471,49 +510,9 @@ export const de_GetLicenseManagerReportGeneratorCommand = async (output, context
|
|
|
1471
510
|
};
|
|
1472
511
|
return response;
|
|
1473
512
|
};
|
|
1474
|
-
const
|
|
1475
|
-
const parsedOutput = {
|
|
1476
|
-
...output,
|
|
1477
|
-
body: await parseErrorBody(output.body, context),
|
|
1478
|
-
};
|
|
1479
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1480
|
-
switch (errorCode) {
|
|
1481
|
-
case "AccessDeniedException":
|
|
1482
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1483
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1484
|
-
case "AuthorizationException":
|
|
1485
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1486
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1487
|
-
case "InvalidParameterValueException":
|
|
1488
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1489
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1490
|
-
case "RateLimitExceededException":
|
|
1491
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1492
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1493
|
-
case "ResourceLimitExceededException":
|
|
1494
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
1495
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1496
|
-
case "ResourceNotFoundException":
|
|
1497
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
1498
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1499
|
-
case "ServerInternalException":
|
|
1500
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1501
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1502
|
-
case "ValidationException":
|
|
1503
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1504
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1505
|
-
default:
|
|
1506
|
-
const parsedBody = parsedOutput.body;
|
|
1507
|
-
return throwDefaultError({
|
|
1508
|
-
output,
|
|
1509
|
-
parsedBody,
|
|
1510
|
-
errorCode,
|
|
1511
|
-
});
|
|
1512
|
-
}
|
|
1513
|
-
};
|
|
1514
|
-
export const de_GetLicenseUsageCommand = async (output, context) => {
|
|
513
|
+
export const de_DeleteTokenCommand = async (output, context) => {
|
|
1515
514
|
if (output.statusCode >= 300) {
|
|
1516
|
-
return
|
|
515
|
+
return de_CommandError(output, context);
|
|
1517
516
|
}
|
|
1518
517
|
const data = await parseBody(output.body, context);
|
|
1519
518
|
let contents = {};
|
|
@@ -1524,43 +523,9 @@ export const de_GetLicenseUsageCommand = async (output, context) => {
|
|
|
1524
523
|
};
|
|
1525
524
|
return response;
|
|
1526
525
|
};
|
|
1527
|
-
const
|
|
1528
|
-
const parsedOutput = {
|
|
1529
|
-
...output,
|
|
1530
|
-
body: await parseErrorBody(output.body, context),
|
|
1531
|
-
};
|
|
1532
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1533
|
-
switch (errorCode) {
|
|
1534
|
-
case "AccessDeniedException":
|
|
1535
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1536
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1537
|
-
case "AuthorizationException":
|
|
1538
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1539
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1540
|
-
case "InvalidParameterValueException":
|
|
1541
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1542
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1543
|
-
case "RateLimitExceededException":
|
|
1544
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1545
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1546
|
-
case "ServerInternalException":
|
|
1547
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1548
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1549
|
-
case "ValidationException":
|
|
1550
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1551
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1552
|
-
default:
|
|
1553
|
-
const parsedBody = parsedOutput.body;
|
|
1554
|
-
return throwDefaultError({
|
|
1555
|
-
output,
|
|
1556
|
-
parsedBody,
|
|
1557
|
-
errorCode,
|
|
1558
|
-
});
|
|
1559
|
-
}
|
|
1560
|
-
};
|
|
1561
|
-
export const de_GetServiceSettingsCommand = async (output, context) => {
|
|
526
|
+
export const de_ExtendLicenseConsumptionCommand = async (output, context) => {
|
|
1562
527
|
if (output.statusCode >= 300) {
|
|
1563
|
-
return
|
|
528
|
+
return de_CommandError(output, context);
|
|
1564
529
|
}
|
|
1565
530
|
const data = await parseBody(output.body, context);
|
|
1566
531
|
let contents = {};
|
|
@@ -1571,84 +536,22 @@ export const de_GetServiceSettingsCommand = async (output, context) => {
|
|
|
1571
536
|
};
|
|
1572
537
|
return response;
|
|
1573
538
|
};
|
|
1574
|
-
const
|
|
1575
|
-
const parsedOutput = {
|
|
1576
|
-
...output,
|
|
1577
|
-
body: await parseErrorBody(output.body, context),
|
|
1578
|
-
};
|
|
1579
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1580
|
-
switch (errorCode) {
|
|
1581
|
-
case "AccessDeniedException":
|
|
1582
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1583
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1584
|
-
case "AuthorizationException":
|
|
1585
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1586
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1587
|
-
case "RateLimitExceededException":
|
|
1588
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1589
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1590
|
-
case "ServerInternalException":
|
|
1591
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1592
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1593
|
-
default:
|
|
1594
|
-
const parsedBody = parsedOutput.body;
|
|
1595
|
-
return throwDefaultError({
|
|
1596
|
-
output,
|
|
1597
|
-
parsedBody,
|
|
1598
|
-
errorCode,
|
|
1599
|
-
});
|
|
1600
|
-
}
|
|
1601
|
-
};
|
|
1602
|
-
export const de_ListAssociationsForLicenseConfigurationCommand = async (output, context) => {
|
|
539
|
+
export const de_GetAccessTokenCommand = async (output, context) => {
|
|
1603
540
|
if (output.statusCode >= 300) {
|
|
1604
|
-
return
|
|
541
|
+
return de_CommandError(output, context);
|
|
1605
542
|
}
|
|
1606
543
|
const data = await parseBody(output.body, context);
|
|
1607
544
|
let contents = {};
|
|
1608
|
-
contents =
|
|
545
|
+
contents = _json(data);
|
|
1609
546
|
const response = {
|
|
1610
547
|
$metadata: deserializeMetadata(output),
|
|
1611
548
|
...contents,
|
|
1612
549
|
};
|
|
1613
550
|
return response;
|
|
1614
551
|
};
|
|
1615
|
-
const
|
|
1616
|
-
const parsedOutput = {
|
|
1617
|
-
...output,
|
|
1618
|
-
body: await parseErrorBody(output.body, context),
|
|
1619
|
-
};
|
|
1620
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1621
|
-
switch (errorCode) {
|
|
1622
|
-
case "AccessDeniedException":
|
|
1623
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1624
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1625
|
-
case "AuthorizationException":
|
|
1626
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1627
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1628
|
-
case "FilterLimitExceededException":
|
|
1629
|
-
case "com.amazonaws.licensemanager#FilterLimitExceededException":
|
|
1630
|
-
throw await de_FilterLimitExceededExceptionRes(parsedOutput, context);
|
|
1631
|
-
case "InvalidParameterValueException":
|
|
1632
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1633
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1634
|
-
case "RateLimitExceededException":
|
|
1635
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1636
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1637
|
-
case "ServerInternalException":
|
|
1638
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1639
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1640
|
-
default:
|
|
1641
|
-
const parsedBody = parsedOutput.body;
|
|
1642
|
-
return throwDefaultError({
|
|
1643
|
-
output,
|
|
1644
|
-
parsedBody,
|
|
1645
|
-
errorCode,
|
|
1646
|
-
});
|
|
1647
|
-
}
|
|
1648
|
-
};
|
|
1649
|
-
export const de_ListDistributedGrantsCommand = async (output, context) => {
|
|
552
|
+
export const de_GetGrantCommand = async (output, context) => {
|
|
1650
553
|
if (output.statusCode >= 300) {
|
|
1651
|
-
return
|
|
554
|
+
return de_CommandError(output, context);
|
|
1652
555
|
}
|
|
1653
556
|
const data = await parseBody(output.body, context);
|
|
1654
557
|
let contents = {};
|
|
@@ -1659,181 +562,74 @@ export const de_ListDistributedGrantsCommand = async (output, context) => {
|
|
|
1659
562
|
};
|
|
1660
563
|
return response;
|
|
1661
564
|
};
|
|
1662
|
-
const
|
|
1663
|
-
const parsedOutput = {
|
|
1664
|
-
...output,
|
|
1665
|
-
body: await parseErrorBody(output.body, context),
|
|
1666
|
-
};
|
|
1667
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1668
|
-
switch (errorCode) {
|
|
1669
|
-
case "AccessDeniedException":
|
|
1670
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1671
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1672
|
-
case "AuthorizationException":
|
|
1673
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1674
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1675
|
-
case "InvalidParameterValueException":
|
|
1676
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1677
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1678
|
-
case "RateLimitExceededException":
|
|
1679
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1680
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1681
|
-
case "ResourceLimitExceededException":
|
|
1682
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
1683
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1684
|
-
case "ServerInternalException":
|
|
1685
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1686
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1687
|
-
case "ValidationException":
|
|
1688
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1689
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1690
|
-
default:
|
|
1691
|
-
const parsedBody = parsedOutput.body;
|
|
1692
|
-
return throwDefaultError({
|
|
1693
|
-
output,
|
|
1694
|
-
parsedBody,
|
|
1695
|
-
errorCode,
|
|
1696
|
-
});
|
|
1697
|
-
}
|
|
1698
|
-
};
|
|
1699
|
-
export const de_ListFailuresForLicenseConfigurationOperationsCommand = async (output, context) => {
|
|
565
|
+
export const de_GetLicenseCommand = async (output, context) => {
|
|
1700
566
|
if (output.statusCode >= 300) {
|
|
1701
|
-
return
|
|
567
|
+
return de_CommandError(output, context);
|
|
1702
568
|
}
|
|
1703
569
|
const data = await parseBody(output.body, context);
|
|
1704
570
|
let contents = {};
|
|
1705
|
-
contents =
|
|
571
|
+
contents = _json(data);
|
|
1706
572
|
const response = {
|
|
1707
573
|
$metadata: deserializeMetadata(output),
|
|
1708
574
|
...contents,
|
|
1709
575
|
};
|
|
1710
576
|
return response;
|
|
1711
577
|
};
|
|
1712
|
-
const
|
|
1713
|
-
const parsedOutput = {
|
|
1714
|
-
...output,
|
|
1715
|
-
body: await parseErrorBody(output.body, context),
|
|
1716
|
-
};
|
|
1717
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1718
|
-
switch (errorCode) {
|
|
1719
|
-
case "AccessDeniedException":
|
|
1720
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1721
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1722
|
-
case "AuthorizationException":
|
|
1723
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1724
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1725
|
-
case "InvalidParameterValueException":
|
|
1726
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1727
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1728
|
-
case "RateLimitExceededException":
|
|
1729
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1730
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1731
|
-
case "ServerInternalException":
|
|
1732
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1733
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1734
|
-
default:
|
|
1735
|
-
const parsedBody = parsedOutput.body;
|
|
1736
|
-
return throwDefaultError({
|
|
1737
|
-
output,
|
|
1738
|
-
parsedBody,
|
|
1739
|
-
errorCode,
|
|
1740
|
-
});
|
|
1741
|
-
}
|
|
1742
|
-
};
|
|
1743
|
-
export const de_ListLicenseConfigurationsCommand = async (output, context) => {
|
|
578
|
+
export const de_GetLicenseConfigurationCommand = async (output, context) => {
|
|
1744
579
|
if (output.statusCode >= 300) {
|
|
1745
|
-
return
|
|
580
|
+
return de_CommandError(output, context);
|
|
1746
581
|
}
|
|
1747
582
|
const data = await parseBody(output.body, context);
|
|
1748
583
|
let contents = {};
|
|
1749
|
-
contents =
|
|
584
|
+
contents = de_GetLicenseConfigurationResponse(data, context);
|
|
1750
585
|
const response = {
|
|
1751
586
|
$metadata: deserializeMetadata(output),
|
|
1752
587
|
...contents,
|
|
1753
588
|
};
|
|
1754
589
|
return response;
|
|
1755
590
|
};
|
|
1756
|
-
const
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
body: await parseErrorBody(output.body, context),
|
|
1760
|
-
};
|
|
1761
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1762
|
-
switch (errorCode) {
|
|
1763
|
-
case "AccessDeniedException":
|
|
1764
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1765
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1766
|
-
case "AuthorizationException":
|
|
1767
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1768
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1769
|
-
case "FilterLimitExceededException":
|
|
1770
|
-
case "com.amazonaws.licensemanager#FilterLimitExceededException":
|
|
1771
|
-
throw await de_FilterLimitExceededExceptionRes(parsedOutput, context);
|
|
1772
|
-
case "InvalidParameterValueException":
|
|
1773
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1774
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1775
|
-
case "RateLimitExceededException":
|
|
1776
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1777
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1778
|
-
case "ServerInternalException":
|
|
1779
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1780
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1781
|
-
default:
|
|
1782
|
-
const parsedBody = parsedOutput.body;
|
|
1783
|
-
return throwDefaultError({
|
|
1784
|
-
output,
|
|
1785
|
-
parsedBody,
|
|
1786
|
-
errorCode,
|
|
1787
|
-
});
|
|
591
|
+
export const de_GetLicenseConversionTaskCommand = async (output, context) => {
|
|
592
|
+
if (output.statusCode >= 300) {
|
|
593
|
+
return de_CommandError(output, context);
|
|
1788
594
|
}
|
|
595
|
+
const data = await parseBody(output.body, context);
|
|
596
|
+
let contents = {};
|
|
597
|
+
contents = de_GetLicenseConversionTaskResponse(data, context);
|
|
598
|
+
const response = {
|
|
599
|
+
$metadata: deserializeMetadata(output),
|
|
600
|
+
...contents,
|
|
601
|
+
};
|
|
602
|
+
return response;
|
|
1789
603
|
};
|
|
1790
|
-
export const
|
|
604
|
+
export const de_GetLicenseManagerReportGeneratorCommand = async (output, context) => {
|
|
1791
605
|
if (output.statusCode >= 300) {
|
|
1792
|
-
return
|
|
606
|
+
return de_CommandError(output, context);
|
|
1793
607
|
}
|
|
1794
608
|
const data = await parseBody(output.body, context);
|
|
1795
609
|
let contents = {};
|
|
1796
|
-
contents =
|
|
610
|
+
contents = _json(data);
|
|
1797
611
|
const response = {
|
|
1798
612
|
$metadata: deserializeMetadata(output),
|
|
1799
613
|
...contents,
|
|
1800
614
|
};
|
|
1801
615
|
return response;
|
|
1802
616
|
};
|
|
1803
|
-
const
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
body: await parseErrorBody(output.body, context),
|
|
1807
|
-
};
|
|
1808
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1809
|
-
switch (errorCode) {
|
|
1810
|
-
case "AccessDeniedException":
|
|
1811
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1812
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1813
|
-
case "AuthorizationException":
|
|
1814
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1815
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1816
|
-
case "InvalidParameterValueException":
|
|
1817
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1818
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1819
|
-
case "RateLimitExceededException":
|
|
1820
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1821
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1822
|
-
case "ServerInternalException":
|
|
1823
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1824
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1825
|
-
default:
|
|
1826
|
-
const parsedBody = parsedOutput.body;
|
|
1827
|
-
return throwDefaultError({
|
|
1828
|
-
output,
|
|
1829
|
-
parsedBody,
|
|
1830
|
-
errorCode,
|
|
1831
|
-
});
|
|
617
|
+
export const de_GetLicenseUsageCommand = async (output, context) => {
|
|
618
|
+
if (output.statusCode >= 300) {
|
|
619
|
+
return de_CommandError(output, context);
|
|
1832
620
|
}
|
|
621
|
+
const data = await parseBody(output.body, context);
|
|
622
|
+
let contents = {};
|
|
623
|
+
contents = _json(data);
|
|
624
|
+
const response = {
|
|
625
|
+
$metadata: deserializeMetadata(output),
|
|
626
|
+
...contents,
|
|
627
|
+
};
|
|
628
|
+
return response;
|
|
1833
629
|
};
|
|
1834
|
-
export const
|
|
630
|
+
export const de_GetServiceSettingsCommand = async (output, context) => {
|
|
1835
631
|
if (output.statusCode >= 300) {
|
|
1836
|
-
return
|
|
632
|
+
return de_CommandError(output, context);
|
|
1837
633
|
}
|
|
1838
634
|
const data = await parseBody(output.body, context);
|
|
1839
635
|
let contents = {};
|
|
@@ -1844,49 +640,22 @@ export const de_ListLicenseManagerReportGeneratorsCommand = async (output, conte
|
|
|
1844
640
|
};
|
|
1845
641
|
return response;
|
|
1846
642
|
};
|
|
1847
|
-
const
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
body: await parseErrorBody(output.body, context),
|
|
1851
|
-
};
|
|
1852
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1853
|
-
switch (errorCode) {
|
|
1854
|
-
case "AccessDeniedException":
|
|
1855
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1856
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1857
|
-
case "AuthorizationException":
|
|
1858
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1859
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1860
|
-
case "InvalidParameterValueException":
|
|
1861
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1862
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1863
|
-
case "RateLimitExceededException":
|
|
1864
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1865
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1866
|
-
case "ResourceLimitExceededException":
|
|
1867
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
1868
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1869
|
-
case "ResourceNotFoundException":
|
|
1870
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
1871
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1872
|
-
case "ServerInternalException":
|
|
1873
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1874
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1875
|
-
case "ValidationException":
|
|
1876
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1877
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1878
|
-
default:
|
|
1879
|
-
const parsedBody = parsedOutput.body;
|
|
1880
|
-
return throwDefaultError({
|
|
1881
|
-
output,
|
|
1882
|
-
parsedBody,
|
|
1883
|
-
errorCode,
|
|
1884
|
-
});
|
|
643
|
+
export const de_ListAssociationsForLicenseConfigurationCommand = async (output, context) => {
|
|
644
|
+
if (output.statusCode >= 300) {
|
|
645
|
+
return de_CommandError(output, context);
|
|
1885
646
|
}
|
|
647
|
+
const data = await parseBody(output.body, context);
|
|
648
|
+
let contents = {};
|
|
649
|
+
contents = de_ListAssociationsForLicenseConfigurationResponse(data, context);
|
|
650
|
+
const response = {
|
|
651
|
+
$metadata: deserializeMetadata(output),
|
|
652
|
+
...contents,
|
|
653
|
+
};
|
|
654
|
+
return response;
|
|
1886
655
|
};
|
|
1887
|
-
export const
|
|
656
|
+
export const de_ListDistributedGrantsCommand = async (output, context) => {
|
|
1888
657
|
if (output.statusCode >= 300) {
|
|
1889
|
-
return
|
|
658
|
+
return de_CommandError(output, context);
|
|
1890
659
|
}
|
|
1891
660
|
const data = await parseBody(output.body, context);
|
|
1892
661
|
let contents = {};
|
|
@@ -1897,87 +666,48 @@ export const de_ListLicensesCommand = async (output, context) => {
|
|
|
1897
666
|
};
|
|
1898
667
|
return response;
|
|
1899
668
|
};
|
|
1900
|
-
const
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
body: await parseErrorBody(output.body, context),
|
|
1904
|
-
};
|
|
1905
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1906
|
-
switch (errorCode) {
|
|
1907
|
-
case "AccessDeniedException":
|
|
1908
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1909
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1910
|
-
case "AuthorizationException":
|
|
1911
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1912
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1913
|
-
case "InvalidParameterValueException":
|
|
1914
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1915
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1916
|
-
case "RateLimitExceededException":
|
|
1917
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1918
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1919
|
-
case "ServerInternalException":
|
|
1920
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1921
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1922
|
-
case "ValidationException":
|
|
1923
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1924
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1925
|
-
default:
|
|
1926
|
-
const parsedBody = parsedOutput.body;
|
|
1927
|
-
return throwDefaultError({
|
|
1928
|
-
output,
|
|
1929
|
-
parsedBody,
|
|
1930
|
-
errorCode,
|
|
1931
|
-
});
|
|
669
|
+
export const de_ListFailuresForLicenseConfigurationOperationsCommand = async (output, context) => {
|
|
670
|
+
if (output.statusCode >= 300) {
|
|
671
|
+
return de_CommandError(output, context);
|
|
1932
672
|
}
|
|
673
|
+
const data = await parseBody(output.body, context);
|
|
674
|
+
let contents = {};
|
|
675
|
+
contents = de_ListFailuresForLicenseConfigurationOperationsResponse(data, context);
|
|
676
|
+
const response = {
|
|
677
|
+
$metadata: deserializeMetadata(output),
|
|
678
|
+
...contents,
|
|
679
|
+
};
|
|
680
|
+
return response;
|
|
1933
681
|
};
|
|
1934
|
-
export const
|
|
682
|
+
export const de_ListLicenseConfigurationsCommand = async (output, context) => {
|
|
1935
683
|
if (output.statusCode >= 300) {
|
|
1936
|
-
return
|
|
684
|
+
return de_CommandError(output, context);
|
|
1937
685
|
}
|
|
1938
686
|
const data = await parseBody(output.body, context);
|
|
1939
687
|
let contents = {};
|
|
1940
|
-
contents =
|
|
688
|
+
contents = de_ListLicenseConfigurationsResponse(data, context);
|
|
1941
689
|
const response = {
|
|
1942
690
|
$metadata: deserializeMetadata(output),
|
|
1943
691
|
...contents,
|
|
1944
692
|
};
|
|
1945
693
|
return response;
|
|
1946
694
|
};
|
|
1947
|
-
const
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
body: await parseErrorBody(output.body, context),
|
|
1951
|
-
};
|
|
1952
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1953
|
-
switch (errorCode) {
|
|
1954
|
-
case "AccessDeniedException":
|
|
1955
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1956
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1957
|
-
case "AuthorizationException":
|
|
1958
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1959
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1960
|
-
case "InvalidParameterValueException":
|
|
1961
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1962
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1963
|
-
case "RateLimitExceededException":
|
|
1964
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1965
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1966
|
-
case "ServerInternalException":
|
|
1967
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1968
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1969
|
-
default:
|
|
1970
|
-
const parsedBody = parsedOutput.body;
|
|
1971
|
-
return throwDefaultError({
|
|
1972
|
-
output,
|
|
1973
|
-
parsedBody,
|
|
1974
|
-
errorCode,
|
|
1975
|
-
});
|
|
695
|
+
export const de_ListLicenseConversionTasksCommand = async (output, context) => {
|
|
696
|
+
if (output.statusCode >= 300) {
|
|
697
|
+
return de_CommandError(output, context);
|
|
1976
698
|
}
|
|
699
|
+
const data = await parseBody(output.body, context);
|
|
700
|
+
let contents = {};
|
|
701
|
+
contents = de_ListLicenseConversionTasksResponse(data, context);
|
|
702
|
+
const response = {
|
|
703
|
+
$metadata: deserializeMetadata(output),
|
|
704
|
+
...contents,
|
|
705
|
+
};
|
|
706
|
+
return response;
|
|
1977
707
|
};
|
|
1978
|
-
export const
|
|
708
|
+
export const de_ListLicenseManagerReportGeneratorsCommand = async (output, context) => {
|
|
1979
709
|
if (output.statusCode >= 300) {
|
|
1980
|
-
return
|
|
710
|
+
return de_CommandError(output, context);
|
|
1981
711
|
}
|
|
1982
712
|
const data = await parseBody(output.body, context);
|
|
1983
713
|
let contents = {};
|
|
@@ -1988,40 +718,9 @@ export const de_ListLicenseVersionsCommand = async (output, context) => {
|
|
|
1988
718
|
};
|
|
1989
719
|
return response;
|
|
1990
720
|
};
|
|
1991
|
-
const
|
|
1992
|
-
const parsedOutput = {
|
|
1993
|
-
...output,
|
|
1994
|
-
body: await parseErrorBody(output.body, context),
|
|
1995
|
-
};
|
|
1996
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1997
|
-
switch (errorCode) {
|
|
1998
|
-
case "AccessDeniedException":
|
|
1999
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2000
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2001
|
-
case "AuthorizationException":
|
|
2002
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2003
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2004
|
-
case "InvalidParameterValueException":
|
|
2005
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2006
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2007
|
-
case "RateLimitExceededException":
|
|
2008
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2009
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2010
|
-
case "ServerInternalException":
|
|
2011
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2012
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2013
|
-
default:
|
|
2014
|
-
const parsedBody = parsedOutput.body;
|
|
2015
|
-
return throwDefaultError({
|
|
2016
|
-
output,
|
|
2017
|
-
parsedBody,
|
|
2018
|
-
errorCode,
|
|
2019
|
-
});
|
|
2020
|
-
}
|
|
2021
|
-
};
|
|
2022
|
-
export const de_ListReceivedGrantsCommand = async (output, context) => {
|
|
721
|
+
export const de_ListLicensesCommand = async (output, context) => {
|
|
2023
722
|
if (output.statusCode >= 300) {
|
|
2024
|
-
return
|
|
723
|
+
return de_CommandError(output, context);
|
|
2025
724
|
}
|
|
2026
725
|
const data = await parseBody(output.body, context);
|
|
2027
726
|
let contents = {};
|
|
@@ -2032,46 +731,22 @@ export const de_ListReceivedGrantsCommand = async (output, context) => {
|
|
|
2032
731
|
};
|
|
2033
732
|
return response;
|
|
2034
733
|
};
|
|
2035
|
-
const
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
body: await parseErrorBody(output.body, context),
|
|
2039
|
-
};
|
|
2040
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2041
|
-
switch (errorCode) {
|
|
2042
|
-
case "AccessDeniedException":
|
|
2043
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2044
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2045
|
-
case "AuthorizationException":
|
|
2046
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2047
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2048
|
-
case "InvalidParameterValueException":
|
|
2049
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2050
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2051
|
-
case "RateLimitExceededException":
|
|
2052
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2053
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2054
|
-
case "ResourceLimitExceededException":
|
|
2055
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
2056
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2057
|
-
case "ServerInternalException":
|
|
2058
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2059
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2060
|
-
case "ValidationException":
|
|
2061
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
2062
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2063
|
-
default:
|
|
2064
|
-
const parsedBody = parsedOutput.body;
|
|
2065
|
-
return throwDefaultError({
|
|
2066
|
-
output,
|
|
2067
|
-
parsedBody,
|
|
2068
|
-
errorCode,
|
|
2069
|
-
});
|
|
734
|
+
export const de_ListLicenseSpecificationsForResourceCommand = async (output, context) => {
|
|
735
|
+
if (output.statusCode >= 300) {
|
|
736
|
+
return de_CommandError(output, context);
|
|
2070
737
|
}
|
|
738
|
+
const data = await parseBody(output.body, context);
|
|
739
|
+
let contents = {};
|
|
740
|
+
contents = _json(data);
|
|
741
|
+
const response = {
|
|
742
|
+
$metadata: deserializeMetadata(output),
|
|
743
|
+
...contents,
|
|
744
|
+
};
|
|
745
|
+
return response;
|
|
2071
746
|
};
|
|
2072
|
-
export const
|
|
747
|
+
export const de_ListLicenseVersionsCommand = async (output, context) => {
|
|
2073
748
|
if (output.statusCode >= 300) {
|
|
2074
|
-
return
|
|
749
|
+
return de_CommandError(output, context);
|
|
2075
750
|
}
|
|
2076
751
|
const data = await parseBody(output.body, context);
|
|
2077
752
|
let contents = {};
|
|
@@ -2082,46 +757,9 @@ export const de_ListReceivedGrantsForOrganizationCommand = async (output, contex
|
|
|
2082
757
|
};
|
|
2083
758
|
return response;
|
|
2084
759
|
};
|
|
2085
|
-
const
|
|
2086
|
-
const parsedOutput = {
|
|
2087
|
-
...output,
|
|
2088
|
-
body: await parseErrorBody(output.body, context),
|
|
2089
|
-
};
|
|
2090
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2091
|
-
switch (errorCode) {
|
|
2092
|
-
case "AccessDeniedException":
|
|
2093
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2094
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2095
|
-
case "AuthorizationException":
|
|
2096
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2097
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2098
|
-
case "InvalidParameterValueException":
|
|
2099
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2100
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2101
|
-
case "RateLimitExceededException":
|
|
2102
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2103
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2104
|
-
case "ResourceLimitExceededException":
|
|
2105
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
2106
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2107
|
-
case "ServerInternalException":
|
|
2108
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2109
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2110
|
-
case "ValidationException":
|
|
2111
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
2112
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2113
|
-
default:
|
|
2114
|
-
const parsedBody = parsedOutput.body;
|
|
2115
|
-
return throwDefaultError({
|
|
2116
|
-
output,
|
|
2117
|
-
parsedBody,
|
|
2118
|
-
errorCode,
|
|
2119
|
-
});
|
|
2120
|
-
}
|
|
2121
|
-
};
|
|
2122
|
-
export const de_ListReceivedLicensesCommand = async (output, context) => {
|
|
760
|
+
export const de_ListReceivedGrantsCommand = async (output, context) => {
|
|
2123
761
|
if (output.statusCode >= 300) {
|
|
2124
|
-
return
|
|
762
|
+
return de_CommandError(output, context);
|
|
2125
763
|
}
|
|
2126
764
|
const data = await parseBody(output.body, context);
|
|
2127
765
|
let contents = {};
|
|
@@ -2132,46 +770,9 @@ export const de_ListReceivedLicensesCommand = async (output, context) => {
|
|
|
2132
770
|
};
|
|
2133
771
|
return response;
|
|
2134
772
|
};
|
|
2135
|
-
const
|
|
2136
|
-
const parsedOutput = {
|
|
2137
|
-
...output,
|
|
2138
|
-
body: await parseErrorBody(output.body, context),
|
|
2139
|
-
};
|
|
2140
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2141
|
-
switch (errorCode) {
|
|
2142
|
-
case "AccessDeniedException":
|
|
2143
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2144
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2145
|
-
case "AuthorizationException":
|
|
2146
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2147
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2148
|
-
case "InvalidParameterValueException":
|
|
2149
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2150
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2151
|
-
case "RateLimitExceededException":
|
|
2152
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2153
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2154
|
-
case "ResourceLimitExceededException":
|
|
2155
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
2156
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2157
|
-
case "ServerInternalException":
|
|
2158
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2159
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2160
|
-
case "ValidationException":
|
|
2161
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
2162
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2163
|
-
default:
|
|
2164
|
-
const parsedBody = parsedOutput.body;
|
|
2165
|
-
return throwDefaultError({
|
|
2166
|
-
output,
|
|
2167
|
-
parsedBody,
|
|
2168
|
-
errorCode,
|
|
2169
|
-
});
|
|
2170
|
-
}
|
|
2171
|
-
};
|
|
2172
|
-
export const de_ListReceivedLicensesForOrganizationCommand = async (output, context) => {
|
|
773
|
+
export const de_ListReceivedGrantsForOrganizationCommand = async (output, context) => {
|
|
2173
774
|
if (output.statusCode >= 300) {
|
|
2174
|
-
return
|
|
775
|
+
return de_CommandError(output, context);
|
|
2175
776
|
}
|
|
2176
777
|
const data = await parseBody(output.body, context);
|
|
2177
778
|
let contents = {};
|
|
@@ -2182,46 +783,9 @@ export const de_ListReceivedLicensesForOrganizationCommand = async (output, cont
|
|
|
2182
783
|
};
|
|
2183
784
|
return response;
|
|
2184
785
|
};
|
|
2185
|
-
const
|
|
2186
|
-
const parsedOutput = {
|
|
2187
|
-
...output,
|
|
2188
|
-
body: await parseErrorBody(output.body, context),
|
|
2189
|
-
};
|
|
2190
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2191
|
-
switch (errorCode) {
|
|
2192
|
-
case "AccessDeniedException":
|
|
2193
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2194
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2195
|
-
case "AuthorizationException":
|
|
2196
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2197
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2198
|
-
case "InvalidParameterValueException":
|
|
2199
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2200
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2201
|
-
case "RateLimitExceededException":
|
|
2202
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2203
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2204
|
-
case "ResourceLimitExceededException":
|
|
2205
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
2206
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2207
|
-
case "ServerInternalException":
|
|
2208
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2209
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2210
|
-
case "ValidationException":
|
|
2211
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
2212
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2213
|
-
default:
|
|
2214
|
-
const parsedBody = parsedOutput.body;
|
|
2215
|
-
return throwDefaultError({
|
|
2216
|
-
output,
|
|
2217
|
-
parsedBody,
|
|
2218
|
-
errorCode,
|
|
2219
|
-
});
|
|
2220
|
-
}
|
|
2221
|
-
};
|
|
2222
|
-
export const de_ListResourceInventoryCommand = async (output, context) => {
|
|
786
|
+
export const de_ListReceivedLicensesCommand = async (output, context) => {
|
|
2223
787
|
if (output.statusCode >= 300) {
|
|
2224
|
-
return
|
|
788
|
+
return de_CommandError(output, context);
|
|
2225
789
|
}
|
|
2226
790
|
const data = await parseBody(output.body, context);
|
|
2227
791
|
let contents = {};
|
|
@@ -2232,46 +796,9 @@ export const de_ListResourceInventoryCommand = async (output, context) => {
|
|
|
2232
796
|
};
|
|
2233
797
|
return response;
|
|
2234
798
|
};
|
|
2235
|
-
const
|
|
2236
|
-
const parsedOutput = {
|
|
2237
|
-
...output,
|
|
2238
|
-
body: await parseErrorBody(output.body, context),
|
|
2239
|
-
};
|
|
2240
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2241
|
-
switch (errorCode) {
|
|
2242
|
-
case "AccessDeniedException":
|
|
2243
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2244
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2245
|
-
case "AuthorizationException":
|
|
2246
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2247
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2248
|
-
case "FailedDependencyException":
|
|
2249
|
-
case "com.amazonaws.licensemanager#FailedDependencyException":
|
|
2250
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
2251
|
-
case "FilterLimitExceededException":
|
|
2252
|
-
case "com.amazonaws.licensemanager#FilterLimitExceededException":
|
|
2253
|
-
throw await de_FilterLimitExceededExceptionRes(parsedOutput, context);
|
|
2254
|
-
case "InvalidParameterValueException":
|
|
2255
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2256
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2257
|
-
case "RateLimitExceededException":
|
|
2258
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2259
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2260
|
-
case "ServerInternalException":
|
|
2261
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2262
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2263
|
-
default:
|
|
2264
|
-
const parsedBody = parsedOutput.body;
|
|
2265
|
-
return throwDefaultError({
|
|
2266
|
-
output,
|
|
2267
|
-
parsedBody,
|
|
2268
|
-
errorCode,
|
|
2269
|
-
});
|
|
2270
|
-
}
|
|
2271
|
-
};
|
|
2272
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
799
|
+
export const de_ListReceivedLicensesForOrganizationCommand = async (output, context) => {
|
|
2273
800
|
if (output.statusCode >= 300) {
|
|
2274
|
-
return
|
|
801
|
+
return de_CommandError(output, context);
|
|
2275
802
|
}
|
|
2276
803
|
const data = await parseBody(output.body, context);
|
|
2277
804
|
let contents = {};
|
|
@@ -2282,40 +809,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2282
809
|
};
|
|
2283
810
|
return response;
|
|
2284
811
|
};
|
|
2285
|
-
const
|
|
2286
|
-
const parsedOutput = {
|
|
2287
|
-
...output,
|
|
2288
|
-
body: await parseErrorBody(output.body, context),
|
|
2289
|
-
};
|
|
2290
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2291
|
-
switch (errorCode) {
|
|
2292
|
-
case "AccessDeniedException":
|
|
2293
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2294
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2295
|
-
case "AuthorizationException":
|
|
2296
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2297
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2298
|
-
case "InvalidParameterValueException":
|
|
2299
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2300
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2301
|
-
case "RateLimitExceededException":
|
|
2302
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2303
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2304
|
-
case "ServerInternalException":
|
|
2305
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2306
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2307
|
-
default:
|
|
2308
|
-
const parsedBody = parsedOutput.body;
|
|
2309
|
-
return throwDefaultError({
|
|
2310
|
-
output,
|
|
2311
|
-
parsedBody,
|
|
2312
|
-
errorCode,
|
|
2313
|
-
});
|
|
2314
|
-
}
|
|
2315
|
-
};
|
|
2316
|
-
export const de_ListTokensCommand = async (output, context) => {
|
|
812
|
+
export const de_ListResourceInventoryCommand = async (output, context) => {
|
|
2317
813
|
if (output.statusCode >= 300) {
|
|
2318
|
-
return
|
|
814
|
+
return de_CommandError(output, context);
|
|
2319
815
|
}
|
|
2320
816
|
const data = await parseBody(output.body, context);
|
|
2321
817
|
let contents = {};
|
|
@@ -2326,87 +822,48 @@ export const de_ListTokensCommand = async (output, context) => {
|
|
|
2326
822
|
};
|
|
2327
823
|
return response;
|
|
2328
824
|
};
|
|
2329
|
-
const
|
|
2330
|
-
const parsedOutput = {
|
|
2331
|
-
...output,
|
|
2332
|
-
body: await parseErrorBody(output.body, context),
|
|
2333
|
-
};
|
|
2334
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2335
|
-
switch (errorCode) {
|
|
2336
|
-
case "AccessDeniedException":
|
|
2337
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2338
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2339
|
-
case "AuthorizationException":
|
|
2340
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2341
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2342
|
-
case "RateLimitExceededException":
|
|
2343
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2344
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2345
|
-
case "ServerInternalException":
|
|
2346
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2347
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2348
|
-
case "ValidationException":
|
|
2349
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
2350
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2351
|
-
default:
|
|
2352
|
-
const parsedBody = parsedOutput.body;
|
|
2353
|
-
return throwDefaultError({
|
|
2354
|
-
output,
|
|
2355
|
-
parsedBody,
|
|
2356
|
-
errorCode,
|
|
2357
|
-
});
|
|
2358
|
-
}
|
|
2359
|
-
};
|
|
2360
|
-
export const de_ListUsageForLicenseConfigurationCommand = async (output, context) => {
|
|
825
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2361
826
|
if (output.statusCode >= 300) {
|
|
2362
|
-
return
|
|
827
|
+
return de_CommandError(output, context);
|
|
2363
828
|
}
|
|
2364
829
|
const data = await parseBody(output.body, context);
|
|
2365
830
|
let contents = {};
|
|
2366
|
-
contents =
|
|
831
|
+
contents = _json(data);
|
|
2367
832
|
const response = {
|
|
2368
833
|
$metadata: deserializeMetadata(output),
|
|
2369
834
|
...contents,
|
|
2370
835
|
};
|
|
2371
836
|
return response;
|
|
2372
837
|
};
|
|
2373
|
-
const
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
case "InvalidParameterValueException":
|
|
2390
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2391
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2392
|
-
case "RateLimitExceededException":
|
|
2393
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2394
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2395
|
-
case "ServerInternalException":
|
|
2396
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2397
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2398
|
-
default:
|
|
2399
|
-
const parsedBody = parsedOutput.body;
|
|
2400
|
-
return throwDefaultError({
|
|
2401
|
-
output,
|
|
2402
|
-
parsedBody,
|
|
2403
|
-
errorCode,
|
|
2404
|
-
});
|
|
838
|
+
export const de_ListTokensCommand = async (output, context) => {
|
|
839
|
+
if (output.statusCode >= 300) {
|
|
840
|
+
return de_CommandError(output, context);
|
|
841
|
+
}
|
|
842
|
+
const data = await parseBody(output.body, context);
|
|
843
|
+
let contents = {};
|
|
844
|
+
contents = _json(data);
|
|
845
|
+
const response = {
|
|
846
|
+
$metadata: deserializeMetadata(output),
|
|
847
|
+
...contents,
|
|
848
|
+
};
|
|
849
|
+
return response;
|
|
850
|
+
};
|
|
851
|
+
export const de_ListUsageForLicenseConfigurationCommand = async (output, context) => {
|
|
852
|
+
if (output.statusCode >= 300) {
|
|
853
|
+
return de_CommandError(output, context);
|
|
2405
854
|
}
|
|
855
|
+
const data = await parseBody(output.body, context);
|
|
856
|
+
let contents = {};
|
|
857
|
+
contents = de_ListUsageForLicenseConfigurationResponse(data, context);
|
|
858
|
+
const response = {
|
|
859
|
+
$metadata: deserializeMetadata(output),
|
|
860
|
+
...contents,
|
|
861
|
+
};
|
|
862
|
+
return response;
|
|
2406
863
|
};
|
|
2407
864
|
export const de_RejectGrantCommand = async (output, context) => {
|
|
2408
865
|
if (output.statusCode >= 300) {
|
|
2409
|
-
return
|
|
866
|
+
return de_CommandError(output, context);
|
|
2410
867
|
}
|
|
2411
868
|
const data = await parseBody(output.body, context);
|
|
2412
869
|
let contents = {};
|
|
@@ -2417,46 +874,9 @@ export const de_RejectGrantCommand = async (output, context) => {
|
|
|
2417
874
|
};
|
|
2418
875
|
return response;
|
|
2419
876
|
};
|
|
2420
|
-
const de_RejectGrantCommandError = async (output, context) => {
|
|
2421
|
-
const parsedOutput = {
|
|
2422
|
-
...output,
|
|
2423
|
-
body: await parseErrorBody(output.body, context),
|
|
2424
|
-
};
|
|
2425
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2426
|
-
switch (errorCode) {
|
|
2427
|
-
case "AccessDeniedException":
|
|
2428
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2429
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2430
|
-
case "AuthorizationException":
|
|
2431
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2432
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2433
|
-
case "InvalidParameterValueException":
|
|
2434
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2435
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2436
|
-
case "RateLimitExceededException":
|
|
2437
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2438
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2439
|
-
case "ResourceLimitExceededException":
|
|
2440
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
2441
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2442
|
-
case "ServerInternalException":
|
|
2443
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2444
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2445
|
-
case "ValidationException":
|
|
2446
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
2447
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2448
|
-
default:
|
|
2449
|
-
const parsedBody = parsedOutput.body;
|
|
2450
|
-
return throwDefaultError({
|
|
2451
|
-
output,
|
|
2452
|
-
parsedBody,
|
|
2453
|
-
errorCode,
|
|
2454
|
-
});
|
|
2455
|
-
}
|
|
2456
|
-
};
|
|
2457
877
|
export const de_TagResourceCommand = async (output, context) => {
|
|
2458
878
|
if (output.statusCode >= 300) {
|
|
2459
|
-
return
|
|
879
|
+
return de_CommandError(output, context);
|
|
2460
880
|
}
|
|
2461
881
|
const data = await parseBody(output.body, context);
|
|
2462
882
|
let contents = {};
|
|
@@ -2467,40 +887,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
2467
887
|
};
|
|
2468
888
|
return response;
|
|
2469
889
|
};
|
|
2470
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
2471
|
-
const parsedOutput = {
|
|
2472
|
-
...output,
|
|
2473
|
-
body: await parseErrorBody(output.body, context),
|
|
2474
|
-
};
|
|
2475
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2476
|
-
switch (errorCode) {
|
|
2477
|
-
case "AccessDeniedException":
|
|
2478
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2479
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2480
|
-
case "AuthorizationException":
|
|
2481
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2482
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2483
|
-
case "InvalidParameterValueException":
|
|
2484
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2485
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2486
|
-
case "RateLimitExceededException":
|
|
2487
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2488
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2489
|
-
case "ServerInternalException":
|
|
2490
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2491
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2492
|
-
default:
|
|
2493
|
-
const parsedBody = parsedOutput.body;
|
|
2494
|
-
return throwDefaultError({
|
|
2495
|
-
output,
|
|
2496
|
-
parsedBody,
|
|
2497
|
-
errorCode,
|
|
2498
|
-
});
|
|
2499
|
-
}
|
|
2500
|
-
};
|
|
2501
890
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
2502
891
|
if (output.statusCode >= 300) {
|
|
2503
|
-
return
|
|
892
|
+
return de_CommandError(output, context);
|
|
2504
893
|
}
|
|
2505
894
|
const data = await parseBody(output.body, context);
|
|
2506
895
|
let contents = {};
|
|
@@ -2511,40 +900,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
2511
900
|
};
|
|
2512
901
|
return response;
|
|
2513
902
|
};
|
|
2514
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
2515
|
-
const parsedOutput = {
|
|
2516
|
-
...output,
|
|
2517
|
-
body: await parseErrorBody(output.body, context),
|
|
2518
|
-
};
|
|
2519
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2520
|
-
switch (errorCode) {
|
|
2521
|
-
case "AccessDeniedException":
|
|
2522
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2523
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2524
|
-
case "AuthorizationException":
|
|
2525
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2526
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2527
|
-
case "InvalidParameterValueException":
|
|
2528
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2529
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2530
|
-
case "RateLimitExceededException":
|
|
2531
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2532
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2533
|
-
case "ServerInternalException":
|
|
2534
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2535
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2536
|
-
default:
|
|
2537
|
-
const parsedBody = parsedOutput.body;
|
|
2538
|
-
return throwDefaultError({
|
|
2539
|
-
output,
|
|
2540
|
-
parsedBody,
|
|
2541
|
-
errorCode,
|
|
2542
|
-
});
|
|
2543
|
-
}
|
|
2544
|
-
};
|
|
2545
903
|
export const de_UpdateLicenseConfigurationCommand = async (output, context) => {
|
|
2546
904
|
if (output.statusCode >= 300) {
|
|
2547
|
-
return
|
|
905
|
+
return de_CommandError(output, context);
|
|
2548
906
|
}
|
|
2549
907
|
const data = await parseBody(output.body, context);
|
|
2550
908
|
let contents = {};
|
|
@@ -2555,43 +913,9 @@ export const de_UpdateLicenseConfigurationCommand = async (output, context) => {
|
|
|
2555
913
|
};
|
|
2556
914
|
return response;
|
|
2557
915
|
};
|
|
2558
|
-
const de_UpdateLicenseConfigurationCommandError = async (output, context) => {
|
|
2559
|
-
const parsedOutput = {
|
|
2560
|
-
...output,
|
|
2561
|
-
body: await parseErrorBody(output.body, context),
|
|
2562
|
-
};
|
|
2563
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2564
|
-
switch (errorCode) {
|
|
2565
|
-
case "AccessDeniedException":
|
|
2566
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2567
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2568
|
-
case "AuthorizationException":
|
|
2569
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2570
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2571
|
-
case "InvalidParameterValueException":
|
|
2572
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2573
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2574
|
-
case "RateLimitExceededException":
|
|
2575
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2576
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2577
|
-
case "ResourceLimitExceededException":
|
|
2578
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
2579
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2580
|
-
case "ServerInternalException":
|
|
2581
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2582
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2583
|
-
default:
|
|
2584
|
-
const parsedBody = parsedOutput.body;
|
|
2585
|
-
return throwDefaultError({
|
|
2586
|
-
output,
|
|
2587
|
-
parsedBody,
|
|
2588
|
-
errorCode,
|
|
2589
|
-
});
|
|
2590
|
-
}
|
|
2591
|
-
};
|
|
2592
916
|
export const de_UpdateLicenseManagerReportGeneratorCommand = async (output, context) => {
|
|
2593
917
|
if (output.statusCode >= 300) {
|
|
2594
|
-
return
|
|
918
|
+
return de_CommandError(output, context);
|
|
2595
919
|
}
|
|
2596
920
|
const data = await parseBody(output.body, context);
|
|
2597
921
|
let contents = {};
|
|
@@ -2602,49 +926,9 @@ export const de_UpdateLicenseManagerReportGeneratorCommand = async (output, cont
|
|
|
2602
926
|
};
|
|
2603
927
|
return response;
|
|
2604
928
|
};
|
|
2605
|
-
const de_UpdateLicenseManagerReportGeneratorCommandError = async (output, context) => {
|
|
2606
|
-
const parsedOutput = {
|
|
2607
|
-
...output,
|
|
2608
|
-
body: await parseErrorBody(output.body, context),
|
|
2609
|
-
};
|
|
2610
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2611
|
-
switch (errorCode) {
|
|
2612
|
-
case "AccessDeniedException":
|
|
2613
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2614
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2615
|
-
case "AuthorizationException":
|
|
2616
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2617
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2618
|
-
case "InvalidParameterValueException":
|
|
2619
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2620
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2621
|
-
case "RateLimitExceededException":
|
|
2622
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2623
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2624
|
-
case "ResourceLimitExceededException":
|
|
2625
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
2626
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2627
|
-
case "ResourceNotFoundException":
|
|
2628
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
2629
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2630
|
-
case "ServerInternalException":
|
|
2631
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2632
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2633
|
-
case "ValidationException":
|
|
2634
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
2635
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2636
|
-
default:
|
|
2637
|
-
const parsedBody = parsedOutput.body;
|
|
2638
|
-
return throwDefaultError({
|
|
2639
|
-
output,
|
|
2640
|
-
parsedBody,
|
|
2641
|
-
errorCode,
|
|
2642
|
-
});
|
|
2643
|
-
}
|
|
2644
|
-
};
|
|
2645
929
|
export const de_UpdateLicenseSpecificationsForResourceCommand = async (output, context) => {
|
|
2646
930
|
if (output.statusCode >= 300) {
|
|
2647
|
-
return
|
|
931
|
+
return de_CommandError(output, context);
|
|
2648
932
|
}
|
|
2649
933
|
const data = await parseBody(output.body, context);
|
|
2650
934
|
let contents = {};
|
|
@@ -2655,46 +939,9 @@ export const de_UpdateLicenseSpecificationsForResourceCommand = async (output, c
|
|
|
2655
939
|
};
|
|
2656
940
|
return response;
|
|
2657
941
|
};
|
|
2658
|
-
const de_UpdateLicenseSpecificationsForResourceCommandError = async (output, context) => {
|
|
2659
|
-
const parsedOutput = {
|
|
2660
|
-
...output,
|
|
2661
|
-
body: await parseErrorBody(output.body, context),
|
|
2662
|
-
};
|
|
2663
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2664
|
-
switch (errorCode) {
|
|
2665
|
-
case "AccessDeniedException":
|
|
2666
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2667
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2668
|
-
case "AuthorizationException":
|
|
2669
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2670
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2671
|
-
case "InvalidParameterValueException":
|
|
2672
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2673
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2674
|
-
case "InvalidResourceStateException":
|
|
2675
|
-
case "com.amazonaws.licensemanager#InvalidResourceStateException":
|
|
2676
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
2677
|
-
case "LicenseUsageException":
|
|
2678
|
-
case "com.amazonaws.licensemanager#LicenseUsageException":
|
|
2679
|
-
throw await de_LicenseUsageExceptionRes(parsedOutput, context);
|
|
2680
|
-
case "RateLimitExceededException":
|
|
2681
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2682
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2683
|
-
case "ServerInternalException":
|
|
2684
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2685
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2686
|
-
default:
|
|
2687
|
-
const parsedBody = parsedOutput.body;
|
|
2688
|
-
return throwDefaultError({
|
|
2689
|
-
output,
|
|
2690
|
-
parsedBody,
|
|
2691
|
-
errorCode,
|
|
2692
|
-
});
|
|
2693
|
-
}
|
|
2694
|
-
};
|
|
2695
942
|
export const de_UpdateServiceSettingsCommand = async (output, context) => {
|
|
2696
943
|
if (output.statusCode >= 300) {
|
|
2697
|
-
return
|
|
944
|
+
return de_CommandError(output, context);
|
|
2698
945
|
}
|
|
2699
946
|
const data = await parseBody(output.body, context);
|
|
2700
947
|
let contents = {};
|
|
@@ -2705,7 +952,7 @@ export const de_UpdateServiceSettingsCommand = async (output, context) => {
|
|
|
2705
952
|
};
|
|
2706
953
|
return response;
|
|
2707
954
|
};
|
|
2708
|
-
const
|
|
955
|
+
const de_CommandError = async (output, context) => {
|
|
2709
956
|
const parsedOutput = {
|
|
2710
957
|
...output,
|
|
2711
958
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2724,9 +971,45 @@ const de_UpdateServiceSettingsCommandError = async (output, context) => {
|
|
|
2724
971
|
case "RateLimitExceededException":
|
|
2725
972
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2726
973
|
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
974
|
+
case "ResourceLimitExceededException":
|
|
975
|
+
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
976
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2727
977
|
case "ServerInternalException":
|
|
2728
978
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2729
979
|
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
980
|
+
case "ValidationException":
|
|
981
|
+
case "com.amazonaws.licensemanager#ValidationException":
|
|
982
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
983
|
+
case "ConflictException":
|
|
984
|
+
case "com.amazonaws.licensemanager#ConflictException":
|
|
985
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
986
|
+
case "ResourceNotFoundException":
|
|
987
|
+
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
988
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
989
|
+
case "EntitlementNotAllowedException":
|
|
990
|
+
case "com.amazonaws.licensemanager#EntitlementNotAllowedException":
|
|
991
|
+
throw await de_EntitlementNotAllowedExceptionRes(parsedOutput, context);
|
|
992
|
+
case "NoEntitlementsAllowedException":
|
|
993
|
+
case "com.amazonaws.licensemanager#NoEntitlementsAllowedException":
|
|
994
|
+
throw await de_NoEntitlementsAllowedExceptionRes(parsedOutput, context);
|
|
995
|
+
case "RedirectException":
|
|
996
|
+
case "com.amazonaws.licensemanager#RedirectException":
|
|
997
|
+
throw await de_RedirectExceptionRes(parsedOutput, context);
|
|
998
|
+
case "UnsupportedDigitalSignatureMethodException":
|
|
999
|
+
case "com.amazonaws.licensemanager#UnsupportedDigitalSignatureMethodException":
|
|
1000
|
+
throw await de_UnsupportedDigitalSignatureMethodExceptionRes(parsedOutput, context);
|
|
1001
|
+
case "FilterLimitExceededException":
|
|
1002
|
+
case "com.amazonaws.licensemanager#FilterLimitExceededException":
|
|
1003
|
+
throw await de_FilterLimitExceededExceptionRes(parsedOutput, context);
|
|
1004
|
+
case "FailedDependencyException":
|
|
1005
|
+
case "com.amazonaws.licensemanager#FailedDependencyException":
|
|
1006
|
+
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
1007
|
+
case "InvalidResourceStateException":
|
|
1008
|
+
case "com.amazonaws.licensemanager#InvalidResourceStateException":
|
|
1009
|
+
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
1010
|
+
case "LicenseUsageException":
|
|
1011
|
+
case "com.amazonaws.licensemanager#LicenseUsageException":
|
|
1012
|
+
throw await de_LicenseUsageExceptionRes(parsedOutput, context);
|
|
2730
1013
|
default:
|
|
2731
1014
|
const parsedBody = parsedOutput.body;
|
|
2732
1015
|
return throwDefaultError({
|