@aws-sdk/client-license-manager 3.50.0 → 3.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/LicenseManagerServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +245 -4
- package/dist-cjs/protocols/Aws_json1_1.js +611 -2475
- package/dist-es/index.js +1 -0
- package/dist-es/models/LicenseManagerServiceException.js +12 -0
- package/dist-es/models/models_0.js +225 -1
- package/dist-es/protocols/Aws_json1_1.js +1310 -2634
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/LicenseManagerServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +121 -52
- package/dist-types/ts3.4/LicenseManager.d.ts +245 -0
- package/dist-types/ts3.4/LicenseManagerClient.d.ts +121 -0
- package/dist-types/ts3.4/commands/AcceptGrantCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CheckInLicenseCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CheckoutBorrowLicenseCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CheckoutLicenseCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateGrantCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateGrantVersionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateLicenseCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateLicenseConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateLicenseConversionTaskForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateLicenseManagerReportGeneratorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateLicenseVersionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateTokenCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteGrantCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteLicenseCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteLicenseConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteLicenseManagerReportGeneratorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteTokenCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ExtendLicenseConsumptionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetAccessTokenCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetGrantCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetLicenseCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetLicenseConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetLicenseConversionTaskCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetLicenseManagerReportGeneratorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetLicenseUsageCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetServiceSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAssociationsForLicenseConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListDistributedGrantsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListFailuresForLicenseConfigurationOperationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListLicenseConfigurationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListLicenseConversionTasksCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListLicenseManagerReportGeneratorsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListLicenseSpecificationsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListLicenseVersionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListLicensesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListReceivedGrantsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListReceivedLicensesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListResourceInventoryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTokensCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListUsageForLicenseConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/RejectGrantCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateLicenseConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateLicenseManagerReportGeneratorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateLicenseSpecificationsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateServiceSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +48 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +5 -0
- package/dist-types/ts3.4/models/LicenseManagerServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +2034 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +146 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
|
@@ -4,6 +4,8 @@ exports.deserializeAws_json1_1CheckInLicenseCommand = exports.deserializeAws_jso
|
|
|
4
4
|
exports.deserializeAws_json1_1UpdateServiceSettingsCommand = exports.deserializeAws_json1_1UpdateLicenseSpecificationsForResourceCommand = exports.deserializeAws_json1_1UpdateLicenseManagerReportGeneratorCommand = exports.deserializeAws_json1_1UpdateLicenseConfigurationCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1RejectGrantCommand = exports.deserializeAws_json1_1ListUsageForLicenseConfigurationCommand = exports.deserializeAws_json1_1ListTokensCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListResourceInventoryCommand = exports.deserializeAws_json1_1ListReceivedLicensesCommand = exports.deserializeAws_json1_1ListReceivedGrantsCommand = exports.deserializeAws_json1_1ListLicenseVersionsCommand = exports.deserializeAws_json1_1ListLicenseSpecificationsForResourceCommand = exports.deserializeAws_json1_1ListLicensesCommand = exports.deserializeAws_json1_1ListLicenseManagerReportGeneratorsCommand = exports.deserializeAws_json1_1ListLicenseConversionTasksCommand = exports.deserializeAws_json1_1ListLicenseConfigurationsCommand = exports.deserializeAws_json1_1ListFailuresForLicenseConfigurationOperationsCommand = exports.deserializeAws_json1_1ListDistributedGrantsCommand = exports.deserializeAws_json1_1ListAssociationsForLicenseConfigurationCommand = exports.deserializeAws_json1_1GetServiceSettingsCommand = exports.deserializeAws_json1_1GetLicenseUsageCommand = exports.deserializeAws_json1_1GetLicenseManagerReportGeneratorCommand = exports.deserializeAws_json1_1GetLicenseConversionTaskCommand = exports.deserializeAws_json1_1GetLicenseConfigurationCommand = exports.deserializeAws_json1_1GetLicenseCommand = exports.deserializeAws_json1_1GetGrantCommand = exports.deserializeAws_json1_1GetAccessTokenCommand = exports.deserializeAws_json1_1ExtendLicenseConsumptionCommand = exports.deserializeAws_json1_1DeleteTokenCommand = exports.deserializeAws_json1_1DeleteLicenseManagerReportGeneratorCommand = exports.deserializeAws_json1_1DeleteLicenseConfigurationCommand = exports.deserializeAws_json1_1DeleteLicenseCommand = exports.deserializeAws_json1_1DeleteGrantCommand = exports.deserializeAws_json1_1CreateTokenCommand = exports.deserializeAws_json1_1CreateLicenseVersionCommand = exports.deserializeAws_json1_1CreateLicenseManagerReportGeneratorCommand = exports.deserializeAws_json1_1CreateLicenseConversionTaskForResourceCommand = exports.deserializeAws_json1_1CreateLicenseConfigurationCommand = exports.deserializeAws_json1_1CreateLicenseCommand = exports.deserializeAws_json1_1CreateGrantVersionCommand = exports.deserializeAws_json1_1CreateGrantCommand = exports.deserializeAws_json1_1CheckoutLicenseCommand = exports.deserializeAws_json1_1CheckoutBorrowLicenseCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const LicenseManagerServiceException_1 = require("../models/LicenseManagerServiceException");
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
7
9
|
const serializeAws_json1_1AcceptGrantCommand = async (input, context) => {
|
|
8
10
|
const headers = {
|
|
9
11
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -509,75 +511,34 @@ const deserializeAws_json1_1AcceptGrantCommandError = async (output, context) =>
|
|
|
509
511
|
switch (errorCode) {
|
|
510
512
|
case "AccessDeniedException":
|
|
511
513
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
512
|
-
|
|
513
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
514
|
-
name: errorCode,
|
|
515
|
-
$metadata: deserializeMetadata(output),
|
|
516
|
-
};
|
|
517
|
-
break;
|
|
514
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
518
515
|
case "AuthorizationException":
|
|
519
516
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
520
|
-
|
|
521
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
522
|
-
name: errorCode,
|
|
523
|
-
$metadata: deserializeMetadata(output),
|
|
524
|
-
};
|
|
525
|
-
break;
|
|
517
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
526
518
|
case "InvalidParameterValueException":
|
|
527
519
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
528
|
-
|
|
529
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
530
|
-
name: errorCode,
|
|
531
|
-
$metadata: deserializeMetadata(output),
|
|
532
|
-
};
|
|
533
|
-
break;
|
|
520
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
534
521
|
case "RateLimitExceededException":
|
|
535
522
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
536
|
-
|
|
537
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
538
|
-
name: errorCode,
|
|
539
|
-
$metadata: deserializeMetadata(output),
|
|
540
|
-
};
|
|
541
|
-
break;
|
|
523
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
542
524
|
case "ResourceLimitExceededException":
|
|
543
525
|
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
544
|
-
|
|
545
|
-
...(await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
546
|
-
name: errorCode,
|
|
547
|
-
$metadata: deserializeMetadata(output),
|
|
548
|
-
};
|
|
549
|
-
break;
|
|
526
|
+
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
550
527
|
case "ServerInternalException":
|
|
551
528
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
552
|
-
|
|
553
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
554
|
-
name: errorCode,
|
|
555
|
-
$metadata: deserializeMetadata(output),
|
|
556
|
-
};
|
|
557
|
-
break;
|
|
529
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
558
530
|
case "ValidationException":
|
|
559
531
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
560
|
-
|
|
561
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
562
|
-
name: errorCode,
|
|
563
|
-
$metadata: deserializeMetadata(output),
|
|
564
|
-
};
|
|
565
|
-
break;
|
|
532
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
566
533
|
default:
|
|
567
534
|
const parsedBody = parsedOutput.body;
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
...parsedBody,
|
|
571
|
-
name: `${errorCode}`,
|
|
572
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
535
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
536
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
573
537
|
$fault: "client",
|
|
574
538
|
$metadata: deserializeMetadata(output),
|
|
575
|
-
};
|
|
539
|
+
});
|
|
540
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
576
541
|
}
|
|
577
|
-
const message = response.message || response.Message || errorCode;
|
|
578
|
-
response.message = message;
|
|
579
|
-
delete response.Message;
|
|
580
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
581
542
|
};
|
|
582
543
|
const deserializeAws_json1_1CheckInLicenseCommand = async (output, context) => {
|
|
583
544
|
if (output.statusCode >= 300) {
|
|
@@ -604,83 +565,37 @@ const deserializeAws_json1_1CheckInLicenseCommandError = async (output, context)
|
|
|
604
565
|
switch (errorCode) {
|
|
605
566
|
case "AccessDeniedException":
|
|
606
567
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
607
|
-
|
|
608
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
609
|
-
name: errorCode,
|
|
610
|
-
$metadata: deserializeMetadata(output),
|
|
611
|
-
};
|
|
612
|
-
break;
|
|
568
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
613
569
|
case "AuthorizationException":
|
|
614
570
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
615
|
-
|
|
616
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
617
|
-
name: errorCode,
|
|
618
|
-
$metadata: deserializeMetadata(output),
|
|
619
|
-
};
|
|
620
|
-
break;
|
|
571
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
621
572
|
case "ConflictException":
|
|
622
573
|
case "com.amazonaws.licensemanager#ConflictException":
|
|
623
|
-
|
|
624
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
625
|
-
name: errorCode,
|
|
626
|
-
$metadata: deserializeMetadata(output),
|
|
627
|
-
};
|
|
628
|
-
break;
|
|
574
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
629
575
|
case "InvalidParameterValueException":
|
|
630
576
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
631
|
-
|
|
632
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
633
|
-
name: errorCode,
|
|
634
|
-
$metadata: deserializeMetadata(output),
|
|
635
|
-
};
|
|
636
|
-
break;
|
|
577
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
637
578
|
case "RateLimitExceededException":
|
|
638
579
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
639
|
-
|
|
640
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
641
|
-
name: errorCode,
|
|
642
|
-
$metadata: deserializeMetadata(output),
|
|
643
|
-
};
|
|
644
|
-
break;
|
|
580
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
645
581
|
case "ResourceNotFoundException":
|
|
646
582
|
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
647
|
-
|
|
648
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
649
|
-
name: errorCode,
|
|
650
|
-
$metadata: deserializeMetadata(output),
|
|
651
|
-
};
|
|
652
|
-
break;
|
|
583
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
653
584
|
case "ServerInternalException":
|
|
654
585
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
655
|
-
|
|
656
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
657
|
-
name: errorCode,
|
|
658
|
-
$metadata: deserializeMetadata(output),
|
|
659
|
-
};
|
|
660
|
-
break;
|
|
586
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
661
587
|
case "ValidationException":
|
|
662
588
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
663
|
-
|
|
664
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
665
|
-
name: errorCode,
|
|
666
|
-
$metadata: deserializeMetadata(output),
|
|
667
|
-
};
|
|
668
|
-
break;
|
|
589
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
669
590
|
default:
|
|
670
591
|
const parsedBody = parsedOutput.body;
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
...parsedBody,
|
|
674
|
-
name: `${errorCode}`,
|
|
675
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
592
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
593
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
676
594
|
$fault: "client",
|
|
677
595
|
$metadata: deserializeMetadata(output),
|
|
678
|
-
};
|
|
596
|
+
});
|
|
597
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
679
598
|
}
|
|
680
|
-
const message = response.message || response.Message || errorCode;
|
|
681
|
-
response.message = message;
|
|
682
|
-
delete response.Message;
|
|
683
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
684
599
|
};
|
|
685
600
|
const deserializeAws_json1_1CheckoutBorrowLicenseCommand = async (output, context) => {
|
|
686
601
|
if (output.statusCode >= 300) {
|
|
@@ -707,107 +622,46 @@ const deserializeAws_json1_1CheckoutBorrowLicenseCommandError = async (output, c
|
|
|
707
622
|
switch (errorCode) {
|
|
708
623
|
case "AccessDeniedException":
|
|
709
624
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
710
|
-
|
|
711
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
712
|
-
name: errorCode,
|
|
713
|
-
$metadata: deserializeMetadata(output),
|
|
714
|
-
};
|
|
715
|
-
break;
|
|
625
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
716
626
|
case "AuthorizationException":
|
|
717
627
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
718
|
-
|
|
719
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
720
|
-
name: errorCode,
|
|
721
|
-
$metadata: deserializeMetadata(output),
|
|
722
|
-
};
|
|
723
|
-
break;
|
|
628
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
724
629
|
case "EntitlementNotAllowedException":
|
|
725
630
|
case "com.amazonaws.licensemanager#EntitlementNotAllowedException":
|
|
726
|
-
|
|
727
|
-
...(await deserializeAws_json1_1EntitlementNotAllowedExceptionResponse(parsedOutput, context)),
|
|
728
|
-
name: errorCode,
|
|
729
|
-
$metadata: deserializeMetadata(output),
|
|
730
|
-
};
|
|
731
|
-
break;
|
|
631
|
+
throw await deserializeAws_json1_1EntitlementNotAllowedExceptionResponse(parsedOutput, context);
|
|
732
632
|
case "InvalidParameterValueException":
|
|
733
633
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
734
|
-
|
|
735
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
736
|
-
name: errorCode,
|
|
737
|
-
$metadata: deserializeMetadata(output),
|
|
738
|
-
};
|
|
739
|
-
break;
|
|
634
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
740
635
|
case "NoEntitlementsAllowedException":
|
|
741
636
|
case "com.amazonaws.licensemanager#NoEntitlementsAllowedException":
|
|
742
|
-
|
|
743
|
-
...(await deserializeAws_json1_1NoEntitlementsAllowedExceptionResponse(parsedOutput, context)),
|
|
744
|
-
name: errorCode,
|
|
745
|
-
$metadata: deserializeMetadata(output),
|
|
746
|
-
};
|
|
747
|
-
break;
|
|
637
|
+
throw await deserializeAws_json1_1NoEntitlementsAllowedExceptionResponse(parsedOutput, context);
|
|
748
638
|
case "RateLimitExceededException":
|
|
749
639
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
750
|
-
|
|
751
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
752
|
-
name: errorCode,
|
|
753
|
-
$metadata: deserializeMetadata(output),
|
|
754
|
-
};
|
|
755
|
-
break;
|
|
640
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
756
641
|
case "RedirectException":
|
|
757
642
|
case "com.amazonaws.licensemanager#RedirectException":
|
|
758
|
-
|
|
759
|
-
...(await deserializeAws_json1_1RedirectExceptionResponse(parsedOutput, context)),
|
|
760
|
-
name: errorCode,
|
|
761
|
-
$metadata: deserializeMetadata(output),
|
|
762
|
-
};
|
|
763
|
-
break;
|
|
643
|
+
throw await deserializeAws_json1_1RedirectExceptionResponse(parsedOutput, context);
|
|
764
644
|
case "ResourceNotFoundException":
|
|
765
645
|
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
766
|
-
|
|
767
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
768
|
-
name: errorCode,
|
|
769
|
-
$metadata: deserializeMetadata(output),
|
|
770
|
-
};
|
|
771
|
-
break;
|
|
646
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
772
647
|
case "ServerInternalException":
|
|
773
648
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
774
|
-
|
|
775
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
776
|
-
name: errorCode,
|
|
777
|
-
$metadata: deserializeMetadata(output),
|
|
778
|
-
};
|
|
779
|
-
break;
|
|
649
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
780
650
|
case "UnsupportedDigitalSignatureMethodException":
|
|
781
651
|
case "com.amazonaws.licensemanager#UnsupportedDigitalSignatureMethodException":
|
|
782
|
-
|
|
783
|
-
...(await deserializeAws_json1_1UnsupportedDigitalSignatureMethodExceptionResponse(parsedOutput, context)),
|
|
784
|
-
name: errorCode,
|
|
785
|
-
$metadata: deserializeMetadata(output),
|
|
786
|
-
};
|
|
787
|
-
break;
|
|
652
|
+
throw await deserializeAws_json1_1UnsupportedDigitalSignatureMethodExceptionResponse(parsedOutput, context);
|
|
788
653
|
case "ValidationException":
|
|
789
654
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
790
|
-
|
|
791
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
792
|
-
name: errorCode,
|
|
793
|
-
$metadata: deserializeMetadata(output),
|
|
794
|
-
};
|
|
795
|
-
break;
|
|
655
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
796
656
|
default:
|
|
797
657
|
const parsedBody = parsedOutput.body;
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
...parsedBody,
|
|
801
|
-
name: `${errorCode}`,
|
|
802
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
658
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
659
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
803
660
|
$fault: "client",
|
|
804
661
|
$metadata: deserializeMetadata(output),
|
|
805
|
-
};
|
|
662
|
+
});
|
|
663
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
806
664
|
}
|
|
807
|
-
const message = response.message || response.Message || errorCode;
|
|
808
|
-
response.message = message;
|
|
809
|
-
delete response.Message;
|
|
810
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
811
665
|
};
|
|
812
666
|
const deserializeAws_json1_1CheckoutLicenseCommand = async (output, context) => {
|
|
813
667
|
if (output.statusCode >= 300) {
|
|
@@ -834,99 +688,43 @@ const deserializeAws_json1_1CheckoutLicenseCommandError = async (output, context
|
|
|
834
688
|
switch (errorCode) {
|
|
835
689
|
case "AccessDeniedException":
|
|
836
690
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
837
|
-
|
|
838
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
839
|
-
name: errorCode,
|
|
840
|
-
$metadata: deserializeMetadata(output),
|
|
841
|
-
};
|
|
842
|
-
break;
|
|
691
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
843
692
|
case "AuthorizationException":
|
|
844
693
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
845
|
-
|
|
846
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
847
|
-
name: errorCode,
|
|
848
|
-
$metadata: deserializeMetadata(output),
|
|
849
|
-
};
|
|
850
|
-
break;
|
|
694
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
851
695
|
case "InvalidParameterValueException":
|
|
852
696
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
853
|
-
|
|
854
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
855
|
-
name: errorCode,
|
|
856
|
-
$metadata: deserializeMetadata(output),
|
|
857
|
-
};
|
|
858
|
-
break;
|
|
697
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
859
698
|
case "NoEntitlementsAllowedException":
|
|
860
699
|
case "com.amazonaws.licensemanager#NoEntitlementsAllowedException":
|
|
861
|
-
|
|
862
|
-
...(await deserializeAws_json1_1NoEntitlementsAllowedExceptionResponse(parsedOutput, context)),
|
|
863
|
-
name: errorCode,
|
|
864
|
-
$metadata: deserializeMetadata(output),
|
|
865
|
-
};
|
|
866
|
-
break;
|
|
700
|
+
throw await deserializeAws_json1_1NoEntitlementsAllowedExceptionResponse(parsedOutput, context);
|
|
867
701
|
case "RateLimitExceededException":
|
|
868
702
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
869
|
-
|
|
870
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
871
|
-
name: errorCode,
|
|
872
|
-
$metadata: deserializeMetadata(output),
|
|
873
|
-
};
|
|
874
|
-
break;
|
|
703
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
875
704
|
case "RedirectException":
|
|
876
705
|
case "com.amazonaws.licensemanager#RedirectException":
|
|
877
|
-
|
|
878
|
-
...(await deserializeAws_json1_1RedirectExceptionResponse(parsedOutput, context)),
|
|
879
|
-
name: errorCode,
|
|
880
|
-
$metadata: deserializeMetadata(output),
|
|
881
|
-
};
|
|
882
|
-
break;
|
|
706
|
+
throw await deserializeAws_json1_1RedirectExceptionResponse(parsedOutput, context);
|
|
883
707
|
case "ResourceNotFoundException":
|
|
884
708
|
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
885
|
-
|
|
886
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
887
|
-
name: errorCode,
|
|
888
|
-
$metadata: deserializeMetadata(output),
|
|
889
|
-
};
|
|
890
|
-
break;
|
|
709
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
891
710
|
case "ServerInternalException":
|
|
892
711
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
893
|
-
|
|
894
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
895
|
-
name: errorCode,
|
|
896
|
-
$metadata: deserializeMetadata(output),
|
|
897
|
-
};
|
|
898
|
-
break;
|
|
712
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
899
713
|
case "UnsupportedDigitalSignatureMethodException":
|
|
900
714
|
case "com.amazonaws.licensemanager#UnsupportedDigitalSignatureMethodException":
|
|
901
|
-
|
|
902
|
-
...(await deserializeAws_json1_1UnsupportedDigitalSignatureMethodExceptionResponse(parsedOutput, context)),
|
|
903
|
-
name: errorCode,
|
|
904
|
-
$metadata: deserializeMetadata(output),
|
|
905
|
-
};
|
|
906
|
-
break;
|
|
715
|
+
throw await deserializeAws_json1_1UnsupportedDigitalSignatureMethodExceptionResponse(parsedOutput, context);
|
|
907
716
|
case "ValidationException":
|
|
908
717
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
909
|
-
|
|
910
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
911
|
-
name: errorCode,
|
|
912
|
-
$metadata: deserializeMetadata(output),
|
|
913
|
-
};
|
|
914
|
-
break;
|
|
718
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
915
719
|
default:
|
|
916
720
|
const parsedBody = parsedOutput.body;
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
...parsedBody,
|
|
920
|
-
name: `${errorCode}`,
|
|
921
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
721
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
722
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
922
723
|
$fault: "client",
|
|
923
724
|
$metadata: deserializeMetadata(output),
|
|
924
|
-
};
|
|
725
|
+
});
|
|
726
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
925
727
|
}
|
|
926
|
-
const message = response.message || response.Message || errorCode;
|
|
927
|
-
response.message = message;
|
|
928
|
-
delete response.Message;
|
|
929
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
930
728
|
};
|
|
931
729
|
const deserializeAws_json1_1CreateGrantCommand = async (output, context) => {
|
|
932
730
|
if (output.statusCode >= 300) {
|
|
@@ -953,75 +751,34 @@ const deserializeAws_json1_1CreateGrantCommandError = async (output, context) =>
|
|
|
953
751
|
switch (errorCode) {
|
|
954
752
|
case "AccessDeniedException":
|
|
955
753
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
956
|
-
|
|
957
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
958
|
-
name: errorCode,
|
|
959
|
-
$metadata: deserializeMetadata(output),
|
|
960
|
-
};
|
|
961
|
-
break;
|
|
754
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
962
755
|
case "AuthorizationException":
|
|
963
756
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
964
|
-
|
|
965
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
966
|
-
name: errorCode,
|
|
967
|
-
$metadata: deserializeMetadata(output),
|
|
968
|
-
};
|
|
969
|
-
break;
|
|
757
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
970
758
|
case "InvalidParameterValueException":
|
|
971
759
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
972
|
-
|
|
973
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
974
|
-
name: errorCode,
|
|
975
|
-
$metadata: deserializeMetadata(output),
|
|
976
|
-
};
|
|
977
|
-
break;
|
|
760
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
978
761
|
case "RateLimitExceededException":
|
|
979
762
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
980
|
-
|
|
981
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
982
|
-
name: errorCode,
|
|
983
|
-
$metadata: deserializeMetadata(output),
|
|
984
|
-
};
|
|
985
|
-
break;
|
|
763
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
986
764
|
case "ResourceLimitExceededException":
|
|
987
765
|
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
988
|
-
|
|
989
|
-
...(await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
990
|
-
name: errorCode,
|
|
991
|
-
$metadata: deserializeMetadata(output),
|
|
992
|
-
};
|
|
993
|
-
break;
|
|
766
|
+
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
994
767
|
case "ServerInternalException":
|
|
995
768
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
996
|
-
|
|
997
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
998
|
-
name: errorCode,
|
|
999
|
-
$metadata: deserializeMetadata(output),
|
|
1000
|
-
};
|
|
1001
|
-
break;
|
|
769
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
1002
770
|
case "ValidationException":
|
|
1003
771
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
1004
|
-
|
|
1005
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1006
|
-
name: errorCode,
|
|
1007
|
-
$metadata: deserializeMetadata(output),
|
|
1008
|
-
};
|
|
1009
|
-
break;
|
|
772
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1010
773
|
default:
|
|
1011
774
|
const parsedBody = parsedOutput.body;
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
...parsedBody,
|
|
1015
|
-
name: `${errorCode}`,
|
|
1016
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
775
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
776
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1017
777
|
$fault: "client",
|
|
1018
778
|
$metadata: deserializeMetadata(output),
|
|
1019
|
-
};
|
|
779
|
+
});
|
|
780
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1020
781
|
}
|
|
1021
|
-
const message = response.message || response.Message || errorCode;
|
|
1022
|
-
response.message = message;
|
|
1023
|
-
delete response.Message;
|
|
1024
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1025
782
|
};
|
|
1026
783
|
const deserializeAws_json1_1CreateGrantVersionCommand = async (output, context) => {
|
|
1027
784
|
if (output.statusCode >= 300) {
|
|
@@ -1048,75 +805,34 @@ const deserializeAws_json1_1CreateGrantVersionCommandError = async (output, cont
|
|
|
1048
805
|
switch (errorCode) {
|
|
1049
806
|
case "AccessDeniedException":
|
|
1050
807
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1051
|
-
|
|
1052
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1053
|
-
name: errorCode,
|
|
1054
|
-
$metadata: deserializeMetadata(output),
|
|
1055
|
-
};
|
|
1056
|
-
break;
|
|
808
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1057
809
|
case "AuthorizationException":
|
|
1058
810
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1059
|
-
|
|
1060
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
1061
|
-
name: errorCode,
|
|
1062
|
-
$metadata: deserializeMetadata(output),
|
|
1063
|
-
};
|
|
1064
|
-
break;
|
|
811
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
1065
812
|
case "InvalidParameterValueException":
|
|
1066
813
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1067
|
-
|
|
1068
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1069
|
-
name: errorCode,
|
|
1070
|
-
$metadata: deserializeMetadata(output),
|
|
1071
|
-
};
|
|
1072
|
-
break;
|
|
814
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1073
815
|
case "RateLimitExceededException":
|
|
1074
816
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1075
|
-
|
|
1076
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1077
|
-
name: errorCode,
|
|
1078
|
-
$metadata: deserializeMetadata(output),
|
|
1079
|
-
};
|
|
1080
|
-
break;
|
|
817
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
1081
818
|
case "ResourceLimitExceededException":
|
|
1082
819
|
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
1083
|
-
|
|
1084
|
-
...(await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1085
|
-
name: errorCode,
|
|
1086
|
-
$metadata: deserializeMetadata(output),
|
|
1087
|
-
};
|
|
1088
|
-
break;
|
|
820
|
+
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
1089
821
|
case "ServerInternalException":
|
|
1090
822
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1091
|
-
|
|
1092
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
1093
|
-
name: errorCode,
|
|
1094
|
-
$metadata: deserializeMetadata(output),
|
|
1095
|
-
};
|
|
1096
|
-
break;
|
|
823
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
1097
824
|
case "ValidationException":
|
|
1098
825
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
1099
|
-
|
|
1100
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1101
|
-
name: errorCode,
|
|
1102
|
-
$metadata: deserializeMetadata(output),
|
|
1103
|
-
};
|
|
1104
|
-
break;
|
|
826
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1105
827
|
default:
|
|
1106
828
|
const parsedBody = parsedOutput.body;
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
...parsedBody,
|
|
1110
|
-
name: `${errorCode}`,
|
|
1111
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
829
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
830
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1112
831
|
$fault: "client",
|
|
1113
832
|
$metadata: deserializeMetadata(output),
|
|
1114
|
-
};
|
|
833
|
+
});
|
|
834
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1115
835
|
}
|
|
1116
|
-
const message = response.message || response.Message || errorCode;
|
|
1117
|
-
response.message = message;
|
|
1118
|
-
delete response.Message;
|
|
1119
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1120
836
|
};
|
|
1121
837
|
const deserializeAws_json1_1CreateLicenseCommand = async (output, context) => {
|
|
1122
838
|
if (output.statusCode >= 300) {
|
|
@@ -1143,75 +859,34 @@ const deserializeAws_json1_1CreateLicenseCommandError = async (output, context)
|
|
|
1143
859
|
switch (errorCode) {
|
|
1144
860
|
case "AccessDeniedException":
|
|
1145
861
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1146
|
-
|
|
1147
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1148
|
-
name: errorCode,
|
|
1149
|
-
$metadata: deserializeMetadata(output),
|
|
1150
|
-
};
|
|
1151
|
-
break;
|
|
862
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1152
863
|
case "AuthorizationException":
|
|
1153
864
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1154
|
-
|
|
1155
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
1156
|
-
name: errorCode,
|
|
1157
|
-
$metadata: deserializeMetadata(output),
|
|
1158
|
-
};
|
|
1159
|
-
break;
|
|
865
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
1160
866
|
case "InvalidParameterValueException":
|
|
1161
867
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1162
|
-
|
|
1163
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1164
|
-
name: errorCode,
|
|
1165
|
-
$metadata: deserializeMetadata(output),
|
|
1166
|
-
};
|
|
1167
|
-
break;
|
|
868
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1168
869
|
case "RateLimitExceededException":
|
|
1169
870
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1170
|
-
|
|
1171
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1172
|
-
name: errorCode,
|
|
1173
|
-
$metadata: deserializeMetadata(output),
|
|
1174
|
-
};
|
|
1175
|
-
break;
|
|
871
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
1176
872
|
case "RedirectException":
|
|
1177
873
|
case "com.amazonaws.licensemanager#RedirectException":
|
|
1178
|
-
|
|
1179
|
-
...(await deserializeAws_json1_1RedirectExceptionResponse(parsedOutput, context)),
|
|
1180
|
-
name: errorCode,
|
|
1181
|
-
$metadata: deserializeMetadata(output),
|
|
1182
|
-
};
|
|
1183
|
-
break;
|
|
874
|
+
throw await deserializeAws_json1_1RedirectExceptionResponse(parsedOutput, context);
|
|
1184
875
|
case "ServerInternalException":
|
|
1185
876
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1186
|
-
|
|
1187
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
1188
|
-
name: errorCode,
|
|
1189
|
-
$metadata: deserializeMetadata(output),
|
|
1190
|
-
};
|
|
1191
|
-
break;
|
|
877
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
1192
878
|
case "ValidationException":
|
|
1193
879
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
1194
|
-
|
|
1195
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1196
|
-
name: errorCode,
|
|
1197
|
-
$metadata: deserializeMetadata(output),
|
|
1198
|
-
};
|
|
1199
|
-
break;
|
|
880
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1200
881
|
default:
|
|
1201
882
|
const parsedBody = parsedOutput.body;
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
...parsedBody,
|
|
1205
|
-
name: `${errorCode}`,
|
|
1206
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
883
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
884
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1207
885
|
$fault: "client",
|
|
1208
886
|
$metadata: deserializeMetadata(output),
|
|
1209
|
-
};
|
|
887
|
+
});
|
|
888
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1210
889
|
}
|
|
1211
|
-
const message = response.message || response.Message || errorCode;
|
|
1212
|
-
response.message = message;
|
|
1213
|
-
delete response.Message;
|
|
1214
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1215
890
|
};
|
|
1216
891
|
const deserializeAws_json1_1CreateLicenseConfigurationCommand = async (output, context) => {
|
|
1217
892
|
if (output.statusCode >= 300) {
|
|
@@ -1238,67 +913,31 @@ const deserializeAws_json1_1CreateLicenseConfigurationCommandError = async (outp
|
|
|
1238
913
|
switch (errorCode) {
|
|
1239
914
|
case "AccessDeniedException":
|
|
1240
915
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1241
|
-
|
|
1242
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1243
|
-
name: errorCode,
|
|
1244
|
-
$metadata: deserializeMetadata(output),
|
|
1245
|
-
};
|
|
1246
|
-
break;
|
|
916
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1247
917
|
case "AuthorizationException":
|
|
1248
918
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1249
|
-
|
|
1250
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
1251
|
-
name: errorCode,
|
|
1252
|
-
$metadata: deserializeMetadata(output),
|
|
1253
|
-
};
|
|
1254
|
-
break;
|
|
919
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
1255
920
|
case "InvalidParameterValueException":
|
|
1256
921
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1257
|
-
|
|
1258
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1259
|
-
name: errorCode,
|
|
1260
|
-
$metadata: deserializeMetadata(output),
|
|
1261
|
-
};
|
|
1262
|
-
break;
|
|
922
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1263
923
|
case "RateLimitExceededException":
|
|
1264
924
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1265
|
-
|
|
1266
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1267
|
-
name: errorCode,
|
|
1268
|
-
$metadata: deserializeMetadata(output),
|
|
1269
|
-
};
|
|
1270
|
-
break;
|
|
925
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
1271
926
|
case "ResourceLimitExceededException":
|
|
1272
927
|
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
1273
|
-
|
|
1274
|
-
...(await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1275
|
-
name: errorCode,
|
|
1276
|
-
$metadata: deserializeMetadata(output),
|
|
1277
|
-
};
|
|
1278
|
-
break;
|
|
928
|
+
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
1279
929
|
case "ServerInternalException":
|
|
1280
930
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1281
|
-
|
|
1282
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
1283
|
-
name: errorCode,
|
|
1284
|
-
$metadata: deserializeMetadata(output),
|
|
1285
|
-
};
|
|
1286
|
-
break;
|
|
931
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
1287
932
|
default:
|
|
1288
933
|
const parsedBody = parsedOutput.body;
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
...parsedBody,
|
|
1292
|
-
name: `${errorCode}`,
|
|
1293
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
934
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
935
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1294
936
|
$fault: "client",
|
|
1295
937
|
$metadata: deserializeMetadata(output),
|
|
1296
|
-
};
|
|
938
|
+
});
|
|
939
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1297
940
|
}
|
|
1298
|
-
const message = response.message || response.Message || errorCode;
|
|
1299
|
-
response.message = message;
|
|
1300
|
-
delete response.Message;
|
|
1301
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1302
941
|
};
|
|
1303
942
|
const deserializeAws_json1_1CreateLicenseConversionTaskForResourceCommand = async (output, context) => {
|
|
1304
943
|
if (output.statusCode >= 300) {
|
|
@@ -1325,67 +964,31 @@ const deserializeAws_json1_1CreateLicenseConversionTaskForResourceCommandError =
|
|
|
1325
964
|
switch (errorCode) {
|
|
1326
965
|
case "AccessDeniedException":
|
|
1327
966
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1328
|
-
|
|
1329
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1330
|
-
name: errorCode,
|
|
1331
|
-
$metadata: deserializeMetadata(output),
|
|
1332
|
-
};
|
|
1333
|
-
break;
|
|
967
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1334
968
|
case "AuthorizationException":
|
|
1335
969
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1336
|
-
|
|
1337
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
1338
|
-
name: errorCode,
|
|
1339
|
-
$metadata: deserializeMetadata(output),
|
|
1340
|
-
};
|
|
1341
|
-
break;
|
|
970
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
1342
971
|
case "InvalidParameterValueException":
|
|
1343
972
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1344
|
-
|
|
1345
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1346
|
-
name: errorCode,
|
|
1347
|
-
$metadata: deserializeMetadata(output),
|
|
1348
|
-
};
|
|
1349
|
-
break;
|
|
973
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1350
974
|
case "RateLimitExceededException":
|
|
1351
975
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1352
|
-
|
|
1353
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1354
|
-
name: errorCode,
|
|
1355
|
-
$metadata: deserializeMetadata(output),
|
|
1356
|
-
};
|
|
1357
|
-
break;
|
|
976
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
1358
977
|
case "ServerInternalException":
|
|
1359
978
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1360
|
-
|
|
1361
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
1362
|
-
name: errorCode,
|
|
1363
|
-
$metadata: deserializeMetadata(output),
|
|
1364
|
-
};
|
|
1365
|
-
break;
|
|
979
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
1366
980
|
case "ValidationException":
|
|
1367
981
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
1368
|
-
|
|
1369
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1370
|
-
name: errorCode,
|
|
1371
|
-
$metadata: deserializeMetadata(output),
|
|
1372
|
-
};
|
|
1373
|
-
break;
|
|
982
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1374
983
|
default:
|
|
1375
984
|
const parsedBody = parsedOutput.body;
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
...parsedBody,
|
|
1379
|
-
name: `${errorCode}`,
|
|
1380
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
985
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
986
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1381
987
|
$fault: "client",
|
|
1382
988
|
$metadata: deserializeMetadata(output),
|
|
1383
|
-
};
|
|
989
|
+
});
|
|
990
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1384
991
|
}
|
|
1385
|
-
const message = response.message || response.Message || errorCode;
|
|
1386
|
-
response.message = message;
|
|
1387
|
-
delete response.Message;
|
|
1388
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1389
992
|
};
|
|
1390
993
|
const deserializeAws_json1_1CreateLicenseManagerReportGeneratorCommand = async (output, context) => {
|
|
1391
994
|
if (output.statusCode >= 300) {
|
|
@@ -1412,83 +1015,37 @@ const deserializeAws_json1_1CreateLicenseManagerReportGeneratorCommandError = as
|
|
|
1412
1015
|
switch (errorCode) {
|
|
1413
1016
|
case "AccessDeniedException":
|
|
1414
1017
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1415
|
-
|
|
1416
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1417
|
-
name: errorCode,
|
|
1418
|
-
$metadata: deserializeMetadata(output),
|
|
1419
|
-
};
|
|
1420
|
-
break;
|
|
1018
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1421
1019
|
case "AuthorizationException":
|
|
1422
1020
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1423
|
-
|
|
1424
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
1425
|
-
name: errorCode,
|
|
1426
|
-
$metadata: deserializeMetadata(output),
|
|
1427
|
-
};
|
|
1428
|
-
break;
|
|
1021
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
1429
1022
|
case "InvalidParameterValueException":
|
|
1430
1023
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1431
|
-
|
|
1432
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1433
|
-
name: errorCode,
|
|
1434
|
-
$metadata: deserializeMetadata(output),
|
|
1435
|
-
};
|
|
1436
|
-
break;
|
|
1024
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1437
1025
|
case "RateLimitExceededException":
|
|
1438
1026
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1439
|
-
|
|
1440
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1441
|
-
name: errorCode,
|
|
1442
|
-
$metadata: deserializeMetadata(output),
|
|
1443
|
-
};
|
|
1444
|
-
break;
|
|
1027
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
1445
1028
|
case "ResourceLimitExceededException":
|
|
1446
1029
|
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
1447
|
-
|
|
1448
|
-
...(await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1449
|
-
name: errorCode,
|
|
1450
|
-
$metadata: deserializeMetadata(output),
|
|
1451
|
-
};
|
|
1452
|
-
break;
|
|
1030
|
+
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
1453
1031
|
case "ResourceNotFoundException":
|
|
1454
1032
|
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
1455
|
-
|
|
1456
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1457
|
-
name: errorCode,
|
|
1458
|
-
$metadata: deserializeMetadata(output),
|
|
1459
|
-
};
|
|
1460
|
-
break;
|
|
1033
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1461
1034
|
case "ServerInternalException":
|
|
1462
1035
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1463
|
-
|
|
1464
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
1465
|
-
name: errorCode,
|
|
1466
|
-
$metadata: deserializeMetadata(output),
|
|
1467
|
-
};
|
|
1468
|
-
break;
|
|
1036
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
1469
1037
|
case "ValidationException":
|
|
1470
1038
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
1471
|
-
|
|
1472
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1473
|
-
name: errorCode,
|
|
1474
|
-
$metadata: deserializeMetadata(output),
|
|
1475
|
-
};
|
|
1476
|
-
break;
|
|
1039
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1477
1040
|
default:
|
|
1478
1041
|
const parsedBody = parsedOutput.body;
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
...parsedBody,
|
|
1482
|
-
name: `${errorCode}`,
|
|
1483
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1042
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1043
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1484
1044
|
$fault: "client",
|
|
1485
1045
|
$metadata: deserializeMetadata(output),
|
|
1486
|
-
};
|
|
1046
|
+
});
|
|
1047
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1487
1048
|
}
|
|
1488
|
-
const message = response.message || response.Message || errorCode;
|
|
1489
|
-
response.message = message;
|
|
1490
|
-
delete response.Message;
|
|
1491
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1492
1049
|
};
|
|
1493
1050
|
const deserializeAws_json1_1CreateLicenseVersionCommand = async (output, context) => {
|
|
1494
1051
|
if (output.statusCode >= 300) {
|
|
@@ -1515,83 +1072,37 @@ const deserializeAws_json1_1CreateLicenseVersionCommandError = async (output, co
|
|
|
1515
1072
|
switch (errorCode) {
|
|
1516
1073
|
case "AccessDeniedException":
|
|
1517
1074
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1518
|
-
|
|
1519
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1520
|
-
name: errorCode,
|
|
1521
|
-
$metadata: deserializeMetadata(output),
|
|
1522
|
-
};
|
|
1523
|
-
break;
|
|
1075
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1524
1076
|
case "AuthorizationException":
|
|
1525
1077
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1526
|
-
|
|
1527
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
1528
|
-
name: errorCode,
|
|
1529
|
-
$metadata: deserializeMetadata(output),
|
|
1530
|
-
};
|
|
1531
|
-
break;
|
|
1078
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
1532
1079
|
case "ConflictException":
|
|
1533
1080
|
case "com.amazonaws.licensemanager#ConflictException":
|
|
1534
|
-
|
|
1535
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
1536
|
-
name: errorCode,
|
|
1537
|
-
$metadata: deserializeMetadata(output),
|
|
1538
|
-
};
|
|
1539
|
-
break;
|
|
1081
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
1540
1082
|
case "RateLimitExceededException":
|
|
1541
1083
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1542
|
-
|
|
1543
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1544
|
-
name: errorCode,
|
|
1545
|
-
$metadata: deserializeMetadata(output),
|
|
1546
|
-
};
|
|
1547
|
-
break;
|
|
1084
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
1548
1085
|
case "RedirectException":
|
|
1549
1086
|
case "com.amazonaws.licensemanager#RedirectException":
|
|
1550
|
-
|
|
1551
|
-
...(await deserializeAws_json1_1RedirectExceptionResponse(parsedOutput, context)),
|
|
1552
|
-
name: errorCode,
|
|
1553
|
-
$metadata: deserializeMetadata(output),
|
|
1554
|
-
};
|
|
1555
|
-
break;
|
|
1087
|
+
throw await deserializeAws_json1_1RedirectExceptionResponse(parsedOutput, context);
|
|
1556
1088
|
case "ResourceNotFoundException":
|
|
1557
1089
|
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
1558
|
-
|
|
1559
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1560
|
-
name: errorCode,
|
|
1561
|
-
$metadata: deserializeMetadata(output),
|
|
1562
|
-
};
|
|
1563
|
-
break;
|
|
1090
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1564
1091
|
case "ServerInternalException":
|
|
1565
1092
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1566
|
-
|
|
1567
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
1568
|
-
name: errorCode,
|
|
1569
|
-
$metadata: deserializeMetadata(output),
|
|
1570
|
-
};
|
|
1571
|
-
break;
|
|
1093
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
1572
1094
|
case "ValidationException":
|
|
1573
1095
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
1574
|
-
|
|
1575
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1576
|
-
name: errorCode,
|
|
1577
|
-
$metadata: deserializeMetadata(output),
|
|
1578
|
-
};
|
|
1579
|
-
break;
|
|
1096
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1580
1097
|
default:
|
|
1581
1098
|
const parsedBody = parsedOutput.body;
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
...parsedBody,
|
|
1585
|
-
name: `${errorCode}`,
|
|
1586
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1099
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1100
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1587
1101
|
$fault: "client",
|
|
1588
1102
|
$metadata: deserializeMetadata(output),
|
|
1589
|
-
};
|
|
1103
|
+
});
|
|
1104
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1590
1105
|
}
|
|
1591
|
-
const message = response.message || response.Message || errorCode;
|
|
1592
|
-
response.message = message;
|
|
1593
|
-
delete response.Message;
|
|
1594
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1595
1106
|
};
|
|
1596
1107
|
const deserializeAws_json1_1CreateTokenCommand = async (output, context) => {
|
|
1597
1108
|
if (output.statusCode >= 300) {
|
|
@@ -1618,83 +1129,37 @@ const deserializeAws_json1_1CreateTokenCommandError = async (output, context) =>
|
|
|
1618
1129
|
switch (errorCode) {
|
|
1619
1130
|
case "AccessDeniedException":
|
|
1620
1131
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1621
|
-
|
|
1622
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1623
|
-
name: errorCode,
|
|
1624
|
-
$metadata: deserializeMetadata(output),
|
|
1625
|
-
};
|
|
1626
|
-
break;
|
|
1132
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1627
1133
|
case "AuthorizationException":
|
|
1628
1134
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1629
|
-
|
|
1630
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
1631
|
-
name: errorCode,
|
|
1632
|
-
$metadata: deserializeMetadata(output),
|
|
1633
|
-
};
|
|
1634
|
-
break;
|
|
1135
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
1635
1136
|
case "RateLimitExceededException":
|
|
1636
1137
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1637
|
-
|
|
1638
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1639
|
-
name: errorCode,
|
|
1640
|
-
$metadata: deserializeMetadata(output),
|
|
1641
|
-
};
|
|
1642
|
-
break;
|
|
1138
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
1643
1139
|
case "RedirectException":
|
|
1644
1140
|
case "com.amazonaws.licensemanager#RedirectException":
|
|
1645
|
-
|
|
1646
|
-
...(await deserializeAws_json1_1RedirectExceptionResponse(parsedOutput, context)),
|
|
1647
|
-
name: errorCode,
|
|
1648
|
-
$metadata: deserializeMetadata(output),
|
|
1649
|
-
};
|
|
1650
|
-
break;
|
|
1141
|
+
throw await deserializeAws_json1_1RedirectExceptionResponse(parsedOutput, context);
|
|
1651
1142
|
case "ResourceLimitExceededException":
|
|
1652
1143
|
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
1653
|
-
|
|
1654
|
-
...(await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1655
|
-
name: errorCode,
|
|
1656
|
-
$metadata: deserializeMetadata(output),
|
|
1657
|
-
};
|
|
1658
|
-
break;
|
|
1144
|
+
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
1659
1145
|
case "ResourceNotFoundException":
|
|
1660
1146
|
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
1661
|
-
|
|
1662
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1663
|
-
name: errorCode,
|
|
1664
|
-
$metadata: deserializeMetadata(output),
|
|
1665
|
-
};
|
|
1666
|
-
break;
|
|
1147
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1667
1148
|
case "ServerInternalException":
|
|
1668
1149
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1669
|
-
|
|
1670
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
1671
|
-
name: errorCode,
|
|
1672
|
-
$metadata: deserializeMetadata(output),
|
|
1673
|
-
};
|
|
1674
|
-
break;
|
|
1150
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
1675
1151
|
case "ValidationException":
|
|
1676
1152
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
1677
|
-
|
|
1678
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1679
|
-
name: errorCode,
|
|
1680
|
-
$metadata: deserializeMetadata(output),
|
|
1681
|
-
};
|
|
1682
|
-
break;
|
|
1153
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1683
1154
|
default:
|
|
1684
1155
|
const parsedBody = parsedOutput.body;
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
...parsedBody,
|
|
1688
|
-
name: `${errorCode}`,
|
|
1689
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1156
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1157
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1690
1158
|
$fault: "client",
|
|
1691
1159
|
$metadata: deserializeMetadata(output),
|
|
1692
|
-
};
|
|
1160
|
+
});
|
|
1161
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1693
1162
|
}
|
|
1694
|
-
const message = response.message || response.Message || errorCode;
|
|
1695
|
-
response.message = message;
|
|
1696
|
-
delete response.Message;
|
|
1697
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1698
1163
|
};
|
|
1699
1164
|
const deserializeAws_json1_1DeleteGrantCommand = async (output, context) => {
|
|
1700
1165
|
if (output.statusCode >= 300) {
|
|
@@ -1721,75 +1186,34 @@ const deserializeAws_json1_1DeleteGrantCommandError = async (output, context) =>
|
|
|
1721
1186
|
switch (errorCode) {
|
|
1722
1187
|
case "AccessDeniedException":
|
|
1723
1188
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1724
|
-
|
|
1725
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1726
|
-
name: errorCode,
|
|
1727
|
-
$metadata: deserializeMetadata(output),
|
|
1728
|
-
};
|
|
1729
|
-
break;
|
|
1189
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1730
1190
|
case "AuthorizationException":
|
|
1731
1191
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1732
|
-
|
|
1733
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
1734
|
-
name: errorCode,
|
|
1735
|
-
$metadata: deserializeMetadata(output),
|
|
1736
|
-
};
|
|
1737
|
-
break;
|
|
1192
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
1738
1193
|
case "InvalidParameterValueException":
|
|
1739
1194
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1740
|
-
|
|
1741
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1742
|
-
name: errorCode,
|
|
1743
|
-
$metadata: deserializeMetadata(output),
|
|
1744
|
-
};
|
|
1745
|
-
break;
|
|
1195
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1746
1196
|
case "RateLimitExceededException":
|
|
1747
1197
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1748
|
-
|
|
1749
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1750
|
-
name: errorCode,
|
|
1751
|
-
$metadata: deserializeMetadata(output),
|
|
1752
|
-
};
|
|
1753
|
-
break;
|
|
1198
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
1754
1199
|
case "ResourceLimitExceededException":
|
|
1755
1200
|
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
1756
|
-
|
|
1757
|
-
...(await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1758
|
-
name: errorCode,
|
|
1759
|
-
$metadata: deserializeMetadata(output),
|
|
1760
|
-
};
|
|
1761
|
-
break;
|
|
1201
|
+
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
1762
1202
|
case "ServerInternalException":
|
|
1763
1203
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1764
|
-
|
|
1765
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
1766
|
-
name: errorCode,
|
|
1767
|
-
$metadata: deserializeMetadata(output),
|
|
1768
|
-
};
|
|
1769
|
-
break;
|
|
1204
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
1770
1205
|
case "ValidationException":
|
|
1771
1206
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
1772
|
-
|
|
1773
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1774
|
-
name: errorCode,
|
|
1775
|
-
$metadata: deserializeMetadata(output),
|
|
1776
|
-
};
|
|
1777
|
-
break;
|
|
1207
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1778
1208
|
default:
|
|
1779
1209
|
const parsedBody = parsedOutput.body;
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
...parsedBody,
|
|
1783
|
-
name: `${errorCode}`,
|
|
1784
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1210
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1211
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1785
1212
|
$fault: "client",
|
|
1786
1213
|
$metadata: deserializeMetadata(output),
|
|
1787
|
-
};
|
|
1214
|
+
});
|
|
1215
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1788
1216
|
}
|
|
1789
|
-
const message = response.message || response.Message || errorCode;
|
|
1790
|
-
response.message = message;
|
|
1791
|
-
delete response.Message;
|
|
1792
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1793
1217
|
};
|
|
1794
1218
|
const deserializeAws_json1_1DeleteLicenseCommand = async (output, context) => {
|
|
1795
1219
|
if (output.statusCode >= 300) {
|
|
@@ -1816,83 +1240,37 @@ const deserializeAws_json1_1DeleteLicenseCommandError = async (output, context)
|
|
|
1816
1240
|
switch (errorCode) {
|
|
1817
1241
|
case "AccessDeniedException":
|
|
1818
1242
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1819
|
-
|
|
1820
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1821
|
-
name: errorCode,
|
|
1822
|
-
$metadata: deserializeMetadata(output),
|
|
1823
|
-
};
|
|
1824
|
-
break;
|
|
1243
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1825
1244
|
case "AuthorizationException":
|
|
1826
1245
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1827
|
-
|
|
1828
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
1829
|
-
name: errorCode,
|
|
1830
|
-
$metadata: deserializeMetadata(output),
|
|
1831
|
-
};
|
|
1832
|
-
break;
|
|
1246
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
1833
1247
|
case "ConflictException":
|
|
1834
1248
|
case "com.amazonaws.licensemanager#ConflictException":
|
|
1835
|
-
|
|
1836
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
1837
|
-
name: errorCode,
|
|
1838
|
-
$metadata: deserializeMetadata(output),
|
|
1839
|
-
};
|
|
1840
|
-
break;
|
|
1249
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
1841
1250
|
case "InvalidParameterValueException":
|
|
1842
1251
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1843
|
-
|
|
1844
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1845
|
-
name: errorCode,
|
|
1846
|
-
$metadata: deserializeMetadata(output),
|
|
1847
|
-
};
|
|
1848
|
-
break;
|
|
1252
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1849
1253
|
case "RateLimitExceededException":
|
|
1850
1254
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1851
|
-
|
|
1852
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1853
|
-
name: errorCode,
|
|
1854
|
-
$metadata: deserializeMetadata(output),
|
|
1855
|
-
};
|
|
1856
|
-
break;
|
|
1255
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
1857
1256
|
case "RedirectException":
|
|
1858
1257
|
case "com.amazonaws.licensemanager#RedirectException":
|
|
1859
|
-
|
|
1860
|
-
...(await deserializeAws_json1_1RedirectExceptionResponse(parsedOutput, context)),
|
|
1861
|
-
name: errorCode,
|
|
1862
|
-
$metadata: deserializeMetadata(output),
|
|
1863
|
-
};
|
|
1864
|
-
break;
|
|
1258
|
+
throw await deserializeAws_json1_1RedirectExceptionResponse(parsedOutput, context);
|
|
1865
1259
|
case "ServerInternalException":
|
|
1866
1260
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1867
|
-
|
|
1868
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
1869
|
-
name: errorCode,
|
|
1870
|
-
$metadata: deserializeMetadata(output),
|
|
1871
|
-
};
|
|
1872
|
-
break;
|
|
1261
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
1873
1262
|
case "ValidationException":
|
|
1874
1263
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
1875
|
-
|
|
1876
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1877
|
-
name: errorCode,
|
|
1878
|
-
$metadata: deserializeMetadata(output),
|
|
1879
|
-
};
|
|
1880
|
-
break;
|
|
1264
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1881
1265
|
default:
|
|
1882
1266
|
const parsedBody = parsedOutput.body;
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
...parsedBody,
|
|
1886
|
-
name: `${errorCode}`,
|
|
1887
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1267
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1268
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1888
1269
|
$fault: "client",
|
|
1889
1270
|
$metadata: deserializeMetadata(output),
|
|
1890
|
-
};
|
|
1271
|
+
});
|
|
1272
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1891
1273
|
}
|
|
1892
|
-
const message = response.message || response.Message || errorCode;
|
|
1893
|
-
response.message = message;
|
|
1894
|
-
delete response.Message;
|
|
1895
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1896
1274
|
};
|
|
1897
1275
|
const deserializeAws_json1_1DeleteLicenseConfigurationCommand = async (output, context) => {
|
|
1898
1276
|
if (output.statusCode >= 300) {
|
|
@@ -1919,59 +1297,28 @@ const deserializeAws_json1_1DeleteLicenseConfigurationCommandError = async (outp
|
|
|
1919
1297
|
switch (errorCode) {
|
|
1920
1298
|
case "AccessDeniedException":
|
|
1921
1299
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1922
|
-
|
|
1923
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1924
|
-
name: errorCode,
|
|
1925
|
-
$metadata: deserializeMetadata(output),
|
|
1926
|
-
};
|
|
1927
|
-
break;
|
|
1300
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1928
1301
|
case "AuthorizationException":
|
|
1929
1302
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1930
|
-
|
|
1931
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
1932
|
-
name: errorCode,
|
|
1933
|
-
$metadata: deserializeMetadata(output),
|
|
1934
|
-
};
|
|
1935
|
-
break;
|
|
1303
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
1936
1304
|
case "InvalidParameterValueException":
|
|
1937
1305
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1938
|
-
|
|
1939
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
1940
|
-
name: errorCode,
|
|
1941
|
-
$metadata: deserializeMetadata(output),
|
|
1942
|
-
};
|
|
1943
|
-
break;
|
|
1306
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1944
1307
|
case "RateLimitExceededException":
|
|
1945
1308
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1946
|
-
|
|
1947
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1948
|
-
name: errorCode,
|
|
1949
|
-
$metadata: deserializeMetadata(output),
|
|
1950
|
-
};
|
|
1951
|
-
break;
|
|
1309
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
1952
1310
|
case "ServerInternalException":
|
|
1953
1311
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1954
|
-
|
|
1955
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
1956
|
-
name: errorCode,
|
|
1957
|
-
$metadata: deserializeMetadata(output),
|
|
1958
|
-
};
|
|
1959
|
-
break;
|
|
1312
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
1960
1313
|
default:
|
|
1961
1314
|
const parsedBody = parsedOutput.body;
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
...parsedBody,
|
|
1965
|
-
name: `${errorCode}`,
|
|
1966
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1315
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1316
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1967
1317
|
$fault: "client",
|
|
1968
1318
|
$metadata: deserializeMetadata(output),
|
|
1969
|
-
};
|
|
1319
|
+
});
|
|
1320
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1970
1321
|
}
|
|
1971
|
-
const message = response.message || response.Message || errorCode;
|
|
1972
|
-
response.message = message;
|
|
1973
|
-
delete response.Message;
|
|
1974
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1975
1322
|
};
|
|
1976
1323
|
const deserializeAws_json1_1DeleteLicenseManagerReportGeneratorCommand = async (output, context) => {
|
|
1977
1324
|
if (output.statusCode >= 300) {
|
|
@@ -1998,83 +1345,37 @@ const deserializeAws_json1_1DeleteLicenseManagerReportGeneratorCommandError = as
|
|
|
1998
1345
|
switch (errorCode) {
|
|
1999
1346
|
case "AccessDeniedException":
|
|
2000
1347
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2001
|
-
|
|
2002
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2003
|
-
name: errorCode,
|
|
2004
|
-
$metadata: deserializeMetadata(output),
|
|
2005
|
-
};
|
|
2006
|
-
break;
|
|
1348
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2007
1349
|
case "AuthorizationException":
|
|
2008
1350
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2009
|
-
|
|
2010
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
2011
|
-
name: errorCode,
|
|
2012
|
-
$metadata: deserializeMetadata(output),
|
|
2013
|
-
};
|
|
2014
|
-
break;
|
|
1351
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
2015
1352
|
case "InvalidParameterValueException":
|
|
2016
1353
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2017
|
-
|
|
2018
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2019
|
-
name: errorCode,
|
|
2020
|
-
$metadata: deserializeMetadata(output),
|
|
2021
|
-
};
|
|
2022
|
-
break;
|
|
1354
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
2023
1355
|
case "RateLimitExceededException":
|
|
2024
1356
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2025
|
-
|
|
2026
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2027
|
-
name: errorCode,
|
|
2028
|
-
$metadata: deserializeMetadata(output),
|
|
2029
|
-
};
|
|
2030
|
-
break;
|
|
1357
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
2031
1358
|
case "ResourceLimitExceededException":
|
|
2032
1359
|
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
2033
|
-
|
|
2034
|
-
...(await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2035
|
-
name: errorCode,
|
|
2036
|
-
$metadata: deserializeMetadata(output),
|
|
2037
|
-
};
|
|
2038
|
-
break;
|
|
1360
|
+
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
2039
1361
|
case "ResourceNotFoundException":
|
|
2040
1362
|
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
2041
|
-
|
|
2042
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2043
|
-
name: errorCode,
|
|
2044
|
-
$metadata: deserializeMetadata(output),
|
|
2045
|
-
};
|
|
2046
|
-
break;
|
|
1363
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2047
1364
|
case "ServerInternalException":
|
|
2048
1365
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2049
|
-
|
|
2050
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
2051
|
-
name: errorCode,
|
|
2052
|
-
$metadata: deserializeMetadata(output),
|
|
2053
|
-
};
|
|
2054
|
-
break;
|
|
1366
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2055
1367
|
case "ValidationException":
|
|
2056
1368
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
2057
|
-
|
|
2058
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2059
|
-
name: errorCode,
|
|
2060
|
-
$metadata: deserializeMetadata(output),
|
|
2061
|
-
};
|
|
2062
|
-
break;
|
|
1369
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2063
1370
|
default:
|
|
2064
1371
|
const parsedBody = parsedOutput.body;
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
...parsedBody,
|
|
2068
|
-
name: `${errorCode}`,
|
|
2069
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1372
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1373
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2070
1374
|
$fault: "client",
|
|
2071
1375
|
$metadata: deserializeMetadata(output),
|
|
2072
|
-
};
|
|
1376
|
+
});
|
|
1377
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2073
1378
|
}
|
|
2074
|
-
const message = response.message || response.Message || errorCode;
|
|
2075
|
-
response.message = message;
|
|
2076
|
-
delete response.Message;
|
|
2077
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2078
1379
|
};
|
|
2079
1380
|
const deserializeAws_json1_1DeleteTokenCommand = async (output, context) => {
|
|
2080
1381
|
if (output.statusCode >= 300) {
|
|
@@ -2101,75 +1402,34 @@ const deserializeAws_json1_1DeleteTokenCommandError = async (output, context) =>
|
|
|
2101
1402
|
switch (errorCode) {
|
|
2102
1403
|
case "AccessDeniedException":
|
|
2103
1404
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2104
|
-
|
|
2105
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2106
|
-
name: errorCode,
|
|
2107
|
-
$metadata: deserializeMetadata(output),
|
|
2108
|
-
};
|
|
2109
|
-
break;
|
|
1405
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2110
1406
|
case "AuthorizationException":
|
|
2111
1407
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2112
|
-
|
|
2113
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
2114
|
-
name: errorCode,
|
|
2115
|
-
$metadata: deserializeMetadata(output),
|
|
2116
|
-
};
|
|
2117
|
-
break;
|
|
1408
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
2118
1409
|
case "RateLimitExceededException":
|
|
2119
1410
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2120
|
-
|
|
2121
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2122
|
-
name: errorCode,
|
|
2123
|
-
$metadata: deserializeMetadata(output),
|
|
2124
|
-
};
|
|
2125
|
-
break;
|
|
1411
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
2126
1412
|
case "RedirectException":
|
|
2127
1413
|
case "com.amazonaws.licensemanager#RedirectException":
|
|
2128
|
-
|
|
2129
|
-
...(await deserializeAws_json1_1RedirectExceptionResponse(parsedOutput, context)),
|
|
2130
|
-
name: errorCode,
|
|
2131
|
-
$metadata: deserializeMetadata(output),
|
|
2132
|
-
};
|
|
2133
|
-
break;
|
|
1414
|
+
throw await deserializeAws_json1_1RedirectExceptionResponse(parsedOutput, context);
|
|
2134
1415
|
case "ResourceNotFoundException":
|
|
2135
1416
|
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
2136
|
-
|
|
2137
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2138
|
-
name: errorCode,
|
|
2139
|
-
$metadata: deserializeMetadata(output),
|
|
2140
|
-
};
|
|
2141
|
-
break;
|
|
1417
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2142
1418
|
case "ServerInternalException":
|
|
2143
1419
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2144
|
-
|
|
2145
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
2146
|
-
name: errorCode,
|
|
2147
|
-
$metadata: deserializeMetadata(output),
|
|
2148
|
-
};
|
|
2149
|
-
break;
|
|
1420
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2150
1421
|
case "ValidationException":
|
|
2151
1422
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
2152
|
-
|
|
2153
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2154
|
-
name: errorCode,
|
|
2155
|
-
$metadata: deserializeMetadata(output),
|
|
2156
|
-
};
|
|
2157
|
-
break;
|
|
1423
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2158
1424
|
default:
|
|
2159
1425
|
const parsedBody = parsedOutput.body;
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
...parsedBody,
|
|
2163
|
-
name: `${errorCode}`,
|
|
2164
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1426
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1427
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2165
1428
|
$fault: "client",
|
|
2166
1429
|
$metadata: deserializeMetadata(output),
|
|
2167
|
-
};
|
|
1430
|
+
});
|
|
1431
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2168
1432
|
}
|
|
2169
|
-
const message = response.message || response.Message || errorCode;
|
|
2170
|
-
response.message = message;
|
|
2171
|
-
delete response.Message;
|
|
2172
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2173
1433
|
};
|
|
2174
1434
|
const deserializeAws_json1_1ExtendLicenseConsumptionCommand = async (output, context) => {
|
|
2175
1435
|
if (output.statusCode >= 300) {
|
|
@@ -2196,75 +1456,34 @@ const deserializeAws_json1_1ExtendLicenseConsumptionCommandError = async (output
|
|
|
2196
1456
|
switch (errorCode) {
|
|
2197
1457
|
case "AccessDeniedException":
|
|
2198
1458
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2199
|
-
|
|
2200
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2201
|
-
name: errorCode,
|
|
2202
|
-
$metadata: deserializeMetadata(output),
|
|
2203
|
-
};
|
|
2204
|
-
break;
|
|
1459
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2205
1460
|
case "AuthorizationException":
|
|
2206
1461
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2207
|
-
|
|
2208
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
2209
|
-
name: errorCode,
|
|
2210
|
-
$metadata: deserializeMetadata(output),
|
|
2211
|
-
};
|
|
2212
|
-
break;
|
|
1462
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
2213
1463
|
case "InvalidParameterValueException":
|
|
2214
1464
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2215
|
-
|
|
2216
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2217
|
-
name: errorCode,
|
|
2218
|
-
$metadata: deserializeMetadata(output),
|
|
2219
|
-
};
|
|
2220
|
-
break;
|
|
1465
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
2221
1466
|
case "RateLimitExceededException":
|
|
2222
1467
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2223
|
-
|
|
2224
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2225
|
-
name: errorCode,
|
|
2226
|
-
$metadata: deserializeMetadata(output),
|
|
2227
|
-
};
|
|
2228
|
-
break;
|
|
1468
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
2229
1469
|
case "ResourceNotFoundException":
|
|
2230
1470
|
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
2231
|
-
|
|
2232
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2233
|
-
name: errorCode,
|
|
2234
|
-
$metadata: deserializeMetadata(output),
|
|
2235
|
-
};
|
|
2236
|
-
break;
|
|
1471
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2237
1472
|
case "ServerInternalException":
|
|
2238
1473
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2239
|
-
|
|
2240
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
2241
|
-
name: errorCode,
|
|
2242
|
-
$metadata: deserializeMetadata(output),
|
|
2243
|
-
};
|
|
2244
|
-
break;
|
|
1474
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2245
1475
|
case "ValidationException":
|
|
2246
1476
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
2247
|
-
|
|
2248
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2249
|
-
name: errorCode,
|
|
2250
|
-
$metadata: deserializeMetadata(output),
|
|
2251
|
-
};
|
|
2252
|
-
break;
|
|
1477
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2253
1478
|
default:
|
|
2254
1479
|
const parsedBody = parsedOutput.body;
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
...parsedBody,
|
|
2258
|
-
name: `${errorCode}`,
|
|
2259
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1480
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1481
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2260
1482
|
$fault: "client",
|
|
2261
1483
|
$metadata: deserializeMetadata(output),
|
|
2262
|
-
};
|
|
1484
|
+
});
|
|
1485
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2263
1486
|
}
|
|
2264
|
-
const message = response.message || response.Message || errorCode;
|
|
2265
|
-
response.message = message;
|
|
2266
|
-
delete response.Message;
|
|
2267
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2268
1487
|
};
|
|
2269
1488
|
const deserializeAws_json1_1GetAccessTokenCommand = async (output, context) => {
|
|
2270
1489
|
if (output.statusCode >= 300) {
|
|
@@ -2291,59 +1510,28 @@ const deserializeAws_json1_1GetAccessTokenCommandError = async (output, context)
|
|
|
2291
1510
|
switch (errorCode) {
|
|
2292
1511
|
case "AccessDeniedException":
|
|
2293
1512
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2294
|
-
|
|
2295
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2296
|
-
name: errorCode,
|
|
2297
|
-
$metadata: deserializeMetadata(output),
|
|
2298
|
-
};
|
|
2299
|
-
break;
|
|
1513
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2300
1514
|
case "AuthorizationException":
|
|
2301
1515
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2302
|
-
|
|
2303
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
2304
|
-
name: errorCode,
|
|
2305
|
-
$metadata: deserializeMetadata(output),
|
|
2306
|
-
};
|
|
2307
|
-
break;
|
|
1516
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
2308
1517
|
case "RateLimitExceededException":
|
|
2309
1518
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2310
|
-
|
|
2311
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2312
|
-
name: errorCode,
|
|
2313
|
-
$metadata: deserializeMetadata(output),
|
|
2314
|
-
};
|
|
2315
|
-
break;
|
|
1519
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
2316
1520
|
case "ServerInternalException":
|
|
2317
1521
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2318
|
-
|
|
2319
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
2320
|
-
name: errorCode,
|
|
2321
|
-
$metadata: deserializeMetadata(output),
|
|
2322
|
-
};
|
|
2323
|
-
break;
|
|
1522
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2324
1523
|
case "ValidationException":
|
|
2325
1524
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
2326
|
-
|
|
2327
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2328
|
-
name: errorCode,
|
|
2329
|
-
$metadata: deserializeMetadata(output),
|
|
2330
|
-
};
|
|
2331
|
-
break;
|
|
1525
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2332
1526
|
default:
|
|
2333
1527
|
const parsedBody = parsedOutput.body;
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
...parsedBody,
|
|
2337
|
-
name: `${errorCode}`,
|
|
2338
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1528
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1529
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2339
1530
|
$fault: "client",
|
|
2340
1531
|
$metadata: deserializeMetadata(output),
|
|
2341
|
-
};
|
|
1532
|
+
});
|
|
1533
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2342
1534
|
}
|
|
2343
|
-
const message = response.message || response.Message || errorCode;
|
|
2344
|
-
response.message = message;
|
|
2345
|
-
delete response.Message;
|
|
2346
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2347
1535
|
};
|
|
2348
1536
|
const deserializeAws_json1_1GetGrantCommand = async (output, context) => {
|
|
2349
1537
|
if (output.statusCode >= 300) {
|
|
@@ -2370,75 +1558,34 @@ const deserializeAws_json1_1GetGrantCommandError = async (output, context) => {
|
|
|
2370
1558
|
switch (errorCode) {
|
|
2371
1559
|
case "AccessDeniedException":
|
|
2372
1560
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2373
|
-
|
|
2374
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2375
|
-
name: errorCode,
|
|
2376
|
-
$metadata: deserializeMetadata(output),
|
|
2377
|
-
};
|
|
2378
|
-
break;
|
|
1561
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2379
1562
|
case "AuthorizationException":
|
|
2380
1563
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2381
|
-
|
|
2382
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
2383
|
-
name: errorCode,
|
|
2384
|
-
$metadata: deserializeMetadata(output),
|
|
2385
|
-
};
|
|
2386
|
-
break;
|
|
1564
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
2387
1565
|
case "InvalidParameterValueException":
|
|
2388
1566
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2389
|
-
|
|
2390
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2391
|
-
name: errorCode,
|
|
2392
|
-
$metadata: deserializeMetadata(output),
|
|
2393
|
-
};
|
|
2394
|
-
break;
|
|
1567
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
2395
1568
|
case "RateLimitExceededException":
|
|
2396
1569
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2397
|
-
|
|
2398
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2399
|
-
name: errorCode,
|
|
2400
|
-
$metadata: deserializeMetadata(output),
|
|
2401
|
-
};
|
|
2402
|
-
break;
|
|
1570
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
2403
1571
|
case "ResourceLimitExceededException":
|
|
2404
1572
|
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
2405
|
-
|
|
2406
|
-
...(await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2407
|
-
name: errorCode,
|
|
2408
|
-
$metadata: deserializeMetadata(output),
|
|
2409
|
-
};
|
|
2410
|
-
break;
|
|
1573
|
+
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
2411
1574
|
case "ServerInternalException":
|
|
2412
1575
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2413
|
-
|
|
2414
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
2415
|
-
name: errorCode,
|
|
2416
|
-
$metadata: deserializeMetadata(output),
|
|
2417
|
-
};
|
|
2418
|
-
break;
|
|
1576
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2419
1577
|
case "ValidationException":
|
|
2420
1578
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
2421
|
-
|
|
2422
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2423
|
-
name: errorCode,
|
|
2424
|
-
$metadata: deserializeMetadata(output),
|
|
2425
|
-
};
|
|
2426
|
-
break;
|
|
1579
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2427
1580
|
default:
|
|
2428
1581
|
const parsedBody = parsedOutput.body;
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
...parsedBody,
|
|
2432
|
-
name: `${errorCode}`,
|
|
2433
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1582
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1583
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2434
1584
|
$fault: "client",
|
|
2435
1585
|
$metadata: deserializeMetadata(output),
|
|
2436
|
-
};
|
|
1586
|
+
});
|
|
1587
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2437
1588
|
}
|
|
2438
|
-
const message = response.message || response.Message || errorCode;
|
|
2439
|
-
response.message = message;
|
|
2440
|
-
delete response.Message;
|
|
2441
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2442
1589
|
};
|
|
2443
1590
|
const deserializeAws_json1_1GetLicenseCommand = async (output, context) => {
|
|
2444
1591
|
if (output.statusCode >= 300) {
|
|
@@ -2465,67 +1612,31 @@ const deserializeAws_json1_1GetLicenseCommandError = async (output, context) =>
|
|
|
2465
1612
|
switch (errorCode) {
|
|
2466
1613
|
case "AccessDeniedException":
|
|
2467
1614
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2468
|
-
|
|
2469
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2470
|
-
name: errorCode,
|
|
2471
|
-
$metadata: deserializeMetadata(output),
|
|
2472
|
-
};
|
|
2473
|
-
break;
|
|
1615
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2474
1616
|
case "AuthorizationException":
|
|
2475
1617
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2476
|
-
|
|
2477
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
2478
|
-
name: errorCode,
|
|
2479
|
-
$metadata: deserializeMetadata(output),
|
|
2480
|
-
};
|
|
2481
|
-
break;
|
|
1618
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
2482
1619
|
case "InvalidParameterValueException":
|
|
2483
1620
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2484
|
-
|
|
2485
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2486
|
-
name: errorCode,
|
|
2487
|
-
$metadata: deserializeMetadata(output),
|
|
2488
|
-
};
|
|
2489
|
-
break;
|
|
1621
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
2490
1622
|
case "RateLimitExceededException":
|
|
2491
1623
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2492
|
-
|
|
2493
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2494
|
-
name: errorCode,
|
|
2495
|
-
$metadata: deserializeMetadata(output),
|
|
2496
|
-
};
|
|
2497
|
-
break;
|
|
1624
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
2498
1625
|
case "ServerInternalException":
|
|
2499
1626
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2500
|
-
|
|
2501
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
2502
|
-
name: errorCode,
|
|
2503
|
-
$metadata: deserializeMetadata(output),
|
|
2504
|
-
};
|
|
2505
|
-
break;
|
|
1627
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2506
1628
|
case "ValidationException":
|
|
2507
1629
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
2508
|
-
|
|
2509
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2510
|
-
name: errorCode,
|
|
2511
|
-
$metadata: deserializeMetadata(output),
|
|
2512
|
-
};
|
|
2513
|
-
break;
|
|
1630
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2514
1631
|
default:
|
|
2515
1632
|
const parsedBody = parsedOutput.body;
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
...parsedBody,
|
|
2519
|
-
name: `${errorCode}`,
|
|
2520
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1633
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1634
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2521
1635
|
$fault: "client",
|
|
2522
1636
|
$metadata: deserializeMetadata(output),
|
|
2523
|
-
};
|
|
1637
|
+
});
|
|
1638
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2524
1639
|
}
|
|
2525
|
-
const message = response.message || response.Message || errorCode;
|
|
2526
|
-
response.message = message;
|
|
2527
|
-
delete response.Message;
|
|
2528
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2529
1640
|
};
|
|
2530
1641
|
const deserializeAws_json1_1GetLicenseConfigurationCommand = async (output, context) => {
|
|
2531
1642
|
if (output.statusCode >= 300) {
|
|
@@ -2552,59 +1663,28 @@ const deserializeAws_json1_1GetLicenseConfigurationCommandError = async (output,
|
|
|
2552
1663
|
switch (errorCode) {
|
|
2553
1664
|
case "AccessDeniedException":
|
|
2554
1665
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2555
|
-
|
|
2556
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2557
|
-
name: errorCode,
|
|
2558
|
-
$metadata: deserializeMetadata(output),
|
|
2559
|
-
};
|
|
2560
|
-
break;
|
|
1666
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2561
1667
|
case "AuthorizationException":
|
|
2562
1668
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2563
|
-
|
|
2564
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
2565
|
-
name: errorCode,
|
|
2566
|
-
$metadata: deserializeMetadata(output),
|
|
2567
|
-
};
|
|
2568
|
-
break;
|
|
1669
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
2569
1670
|
case "InvalidParameterValueException":
|
|
2570
1671
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2571
|
-
|
|
2572
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2573
|
-
name: errorCode,
|
|
2574
|
-
$metadata: deserializeMetadata(output),
|
|
2575
|
-
};
|
|
2576
|
-
break;
|
|
1672
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
2577
1673
|
case "RateLimitExceededException":
|
|
2578
1674
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2579
|
-
|
|
2580
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2581
|
-
name: errorCode,
|
|
2582
|
-
$metadata: deserializeMetadata(output),
|
|
2583
|
-
};
|
|
2584
|
-
break;
|
|
1675
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
2585
1676
|
case "ServerInternalException":
|
|
2586
1677
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2587
|
-
|
|
2588
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
2589
|
-
name: errorCode,
|
|
2590
|
-
$metadata: deserializeMetadata(output),
|
|
2591
|
-
};
|
|
2592
|
-
break;
|
|
1678
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2593
1679
|
default:
|
|
2594
1680
|
const parsedBody = parsedOutput.body;
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
...parsedBody,
|
|
2598
|
-
name: `${errorCode}`,
|
|
2599
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1681
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1682
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2600
1683
|
$fault: "client",
|
|
2601
1684
|
$metadata: deserializeMetadata(output),
|
|
2602
|
-
};
|
|
1685
|
+
});
|
|
1686
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2603
1687
|
}
|
|
2604
|
-
const message = response.message || response.Message || errorCode;
|
|
2605
|
-
response.message = message;
|
|
2606
|
-
delete response.Message;
|
|
2607
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2608
1688
|
};
|
|
2609
1689
|
const deserializeAws_json1_1GetLicenseConversionTaskCommand = async (output, context) => {
|
|
2610
1690
|
if (output.statusCode >= 300) {
|
|
@@ -2631,59 +1711,28 @@ const deserializeAws_json1_1GetLicenseConversionTaskCommandError = async (output
|
|
|
2631
1711
|
switch (errorCode) {
|
|
2632
1712
|
case "AccessDeniedException":
|
|
2633
1713
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2634
|
-
|
|
2635
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2636
|
-
name: errorCode,
|
|
2637
|
-
$metadata: deserializeMetadata(output),
|
|
2638
|
-
};
|
|
2639
|
-
break;
|
|
1714
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2640
1715
|
case "AuthorizationException":
|
|
2641
1716
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2642
|
-
|
|
2643
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
2644
|
-
name: errorCode,
|
|
2645
|
-
$metadata: deserializeMetadata(output),
|
|
2646
|
-
};
|
|
2647
|
-
break;
|
|
1717
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
2648
1718
|
case "InvalidParameterValueException":
|
|
2649
1719
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2650
|
-
|
|
2651
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2652
|
-
name: errorCode,
|
|
2653
|
-
$metadata: deserializeMetadata(output),
|
|
2654
|
-
};
|
|
2655
|
-
break;
|
|
1720
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
2656
1721
|
case "RateLimitExceededException":
|
|
2657
1722
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2658
|
-
|
|
2659
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2660
|
-
name: errorCode,
|
|
2661
|
-
$metadata: deserializeMetadata(output),
|
|
2662
|
-
};
|
|
2663
|
-
break;
|
|
1723
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
2664
1724
|
case "ServerInternalException":
|
|
2665
1725
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2666
|
-
|
|
2667
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
2668
|
-
name: errorCode,
|
|
2669
|
-
$metadata: deserializeMetadata(output),
|
|
2670
|
-
};
|
|
2671
|
-
break;
|
|
1726
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2672
1727
|
default:
|
|
2673
1728
|
const parsedBody = parsedOutput.body;
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
...parsedBody,
|
|
2677
|
-
name: `${errorCode}`,
|
|
2678
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1729
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1730
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2679
1731
|
$fault: "client",
|
|
2680
1732
|
$metadata: deserializeMetadata(output),
|
|
2681
|
-
};
|
|
1733
|
+
});
|
|
1734
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2682
1735
|
}
|
|
2683
|
-
const message = response.message || response.Message || errorCode;
|
|
2684
|
-
response.message = message;
|
|
2685
|
-
delete response.Message;
|
|
2686
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2687
1736
|
};
|
|
2688
1737
|
const deserializeAws_json1_1GetLicenseManagerReportGeneratorCommand = async (output, context) => {
|
|
2689
1738
|
if (output.statusCode >= 300) {
|
|
@@ -2710,83 +1759,37 @@ const deserializeAws_json1_1GetLicenseManagerReportGeneratorCommandError = async
|
|
|
2710
1759
|
switch (errorCode) {
|
|
2711
1760
|
case "AccessDeniedException":
|
|
2712
1761
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2713
|
-
|
|
2714
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2715
|
-
name: errorCode,
|
|
2716
|
-
$metadata: deserializeMetadata(output),
|
|
2717
|
-
};
|
|
2718
|
-
break;
|
|
1762
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2719
1763
|
case "AuthorizationException":
|
|
2720
1764
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2721
|
-
|
|
2722
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
2723
|
-
name: errorCode,
|
|
2724
|
-
$metadata: deserializeMetadata(output),
|
|
2725
|
-
};
|
|
2726
|
-
break;
|
|
1765
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
2727
1766
|
case "InvalidParameterValueException":
|
|
2728
1767
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2729
|
-
|
|
2730
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2731
|
-
name: errorCode,
|
|
2732
|
-
$metadata: deserializeMetadata(output),
|
|
2733
|
-
};
|
|
2734
|
-
break;
|
|
1768
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
2735
1769
|
case "RateLimitExceededException":
|
|
2736
1770
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2737
|
-
|
|
2738
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2739
|
-
name: errorCode,
|
|
2740
|
-
$metadata: deserializeMetadata(output),
|
|
2741
|
-
};
|
|
2742
|
-
break;
|
|
1771
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
2743
1772
|
case "ResourceLimitExceededException":
|
|
2744
1773
|
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
2745
|
-
|
|
2746
|
-
...(await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2747
|
-
name: errorCode,
|
|
2748
|
-
$metadata: deserializeMetadata(output),
|
|
2749
|
-
};
|
|
2750
|
-
break;
|
|
1774
|
+
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
2751
1775
|
case "ResourceNotFoundException":
|
|
2752
1776
|
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
2753
|
-
|
|
2754
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2755
|
-
name: errorCode,
|
|
2756
|
-
$metadata: deserializeMetadata(output),
|
|
2757
|
-
};
|
|
2758
|
-
break;
|
|
1777
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2759
1778
|
case "ServerInternalException":
|
|
2760
1779
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2761
|
-
|
|
2762
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
2763
|
-
name: errorCode,
|
|
2764
|
-
$metadata: deserializeMetadata(output),
|
|
2765
|
-
};
|
|
2766
|
-
break;
|
|
1780
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2767
1781
|
case "ValidationException":
|
|
2768
1782
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
2769
|
-
|
|
2770
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2771
|
-
name: errorCode,
|
|
2772
|
-
$metadata: deserializeMetadata(output),
|
|
2773
|
-
};
|
|
2774
|
-
break;
|
|
1783
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2775
1784
|
default:
|
|
2776
1785
|
const parsedBody = parsedOutput.body;
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
...parsedBody,
|
|
2780
|
-
name: `${errorCode}`,
|
|
2781
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1786
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1787
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2782
1788
|
$fault: "client",
|
|
2783
1789
|
$metadata: deserializeMetadata(output),
|
|
2784
|
-
};
|
|
1790
|
+
});
|
|
1791
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2785
1792
|
}
|
|
2786
|
-
const message = response.message || response.Message || errorCode;
|
|
2787
|
-
response.message = message;
|
|
2788
|
-
delete response.Message;
|
|
2789
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2790
1793
|
};
|
|
2791
1794
|
const deserializeAws_json1_1GetLicenseUsageCommand = async (output, context) => {
|
|
2792
1795
|
if (output.statusCode >= 300) {
|
|
@@ -2813,67 +1816,31 @@ const deserializeAws_json1_1GetLicenseUsageCommandError = async (output, context
|
|
|
2813
1816
|
switch (errorCode) {
|
|
2814
1817
|
case "AccessDeniedException":
|
|
2815
1818
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2816
|
-
|
|
2817
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2818
|
-
name: errorCode,
|
|
2819
|
-
$metadata: deserializeMetadata(output),
|
|
2820
|
-
};
|
|
2821
|
-
break;
|
|
1819
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2822
1820
|
case "AuthorizationException":
|
|
2823
1821
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2824
|
-
|
|
2825
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
2826
|
-
name: errorCode,
|
|
2827
|
-
$metadata: deserializeMetadata(output),
|
|
2828
|
-
};
|
|
2829
|
-
break;
|
|
1822
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
2830
1823
|
case "InvalidParameterValueException":
|
|
2831
1824
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2832
|
-
|
|
2833
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2834
|
-
name: errorCode,
|
|
2835
|
-
$metadata: deserializeMetadata(output),
|
|
2836
|
-
};
|
|
2837
|
-
break;
|
|
1825
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
2838
1826
|
case "RateLimitExceededException":
|
|
2839
1827
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2840
|
-
|
|
2841
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2842
|
-
name: errorCode,
|
|
2843
|
-
$metadata: deserializeMetadata(output),
|
|
2844
|
-
};
|
|
2845
|
-
break;
|
|
1828
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
2846
1829
|
case "ServerInternalException":
|
|
2847
1830
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2848
|
-
|
|
2849
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
2850
|
-
name: errorCode,
|
|
2851
|
-
$metadata: deserializeMetadata(output),
|
|
2852
|
-
};
|
|
2853
|
-
break;
|
|
1831
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2854
1832
|
case "ValidationException":
|
|
2855
1833
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
2856
|
-
|
|
2857
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2858
|
-
name: errorCode,
|
|
2859
|
-
$metadata: deserializeMetadata(output),
|
|
2860
|
-
};
|
|
2861
|
-
break;
|
|
1834
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2862
1835
|
default:
|
|
2863
1836
|
const parsedBody = parsedOutput.body;
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
...parsedBody,
|
|
2867
|
-
name: `${errorCode}`,
|
|
2868
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1837
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1838
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2869
1839
|
$fault: "client",
|
|
2870
1840
|
$metadata: deserializeMetadata(output),
|
|
2871
|
-
};
|
|
1841
|
+
});
|
|
1842
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2872
1843
|
}
|
|
2873
|
-
const message = response.message || response.Message || errorCode;
|
|
2874
|
-
response.message = message;
|
|
2875
|
-
delete response.Message;
|
|
2876
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2877
1844
|
};
|
|
2878
1845
|
const deserializeAws_json1_1GetServiceSettingsCommand = async (output, context) => {
|
|
2879
1846
|
if (output.statusCode >= 300) {
|
|
@@ -2900,51 +1867,25 @@ const deserializeAws_json1_1GetServiceSettingsCommandError = async (output, cont
|
|
|
2900
1867
|
switch (errorCode) {
|
|
2901
1868
|
case "AccessDeniedException":
|
|
2902
1869
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2903
|
-
|
|
2904
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2905
|
-
name: errorCode,
|
|
2906
|
-
$metadata: deserializeMetadata(output),
|
|
2907
|
-
};
|
|
2908
|
-
break;
|
|
1870
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2909
1871
|
case "AuthorizationException":
|
|
2910
1872
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2911
|
-
|
|
2912
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
2913
|
-
name: errorCode,
|
|
2914
|
-
$metadata: deserializeMetadata(output),
|
|
2915
|
-
};
|
|
2916
|
-
break;
|
|
1873
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
2917
1874
|
case "RateLimitExceededException":
|
|
2918
1875
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2919
|
-
|
|
2920
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2921
|
-
name: errorCode,
|
|
2922
|
-
$metadata: deserializeMetadata(output),
|
|
2923
|
-
};
|
|
2924
|
-
break;
|
|
1876
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
2925
1877
|
case "ServerInternalException":
|
|
2926
1878
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2927
|
-
|
|
2928
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
2929
|
-
name: errorCode,
|
|
2930
|
-
$metadata: deserializeMetadata(output),
|
|
2931
|
-
};
|
|
2932
|
-
break;
|
|
1879
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
2933
1880
|
default:
|
|
2934
1881
|
const parsedBody = parsedOutput.body;
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
...parsedBody,
|
|
2938
|
-
name: `${errorCode}`,
|
|
2939
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1882
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1883
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2940
1884
|
$fault: "client",
|
|
2941
1885
|
$metadata: deserializeMetadata(output),
|
|
2942
|
-
};
|
|
1886
|
+
});
|
|
1887
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2943
1888
|
}
|
|
2944
|
-
const message = response.message || response.Message || errorCode;
|
|
2945
|
-
response.message = message;
|
|
2946
|
-
delete response.Message;
|
|
2947
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2948
1889
|
};
|
|
2949
1890
|
const deserializeAws_json1_1ListAssociationsForLicenseConfigurationCommand = async (output, context) => {
|
|
2950
1891
|
if (output.statusCode >= 300) {
|
|
@@ -2971,67 +1912,31 @@ const deserializeAws_json1_1ListAssociationsForLicenseConfigurationCommandError
|
|
|
2971
1912
|
switch (errorCode) {
|
|
2972
1913
|
case "AccessDeniedException":
|
|
2973
1914
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2974
|
-
|
|
2975
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2976
|
-
name: errorCode,
|
|
2977
|
-
$metadata: deserializeMetadata(output),
|
|
2978
|
-
};
|
|
2979
|
-
break;
|
|
1915
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2980
1916
|
case "AuthorizationException":
|
|
2981
1917
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2982
|
-
|
|
2983
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
2984
|
-
name: errorCode,
|
|
2985
|
-
$metadata: deserializeMetadata(output),
|
|
2986
|
-
};
|
|
2987
|
-
break;
|
|
1918
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
2988
1919
|
case "FilterLimitExceededException":
|
|
2989
1920
|
case "com.amazonaws.licensemanager#FilterLimitExceededException":
|
|
2990
|
-
|
|
2991
|
-
...(await deserializeAws_json1_1FilterLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2992
|
-
name: errorCode,
|
|
2993
|
-
$metadata: deserializeMetadata(output),
|
|
2994
|
-
};
|
|
2995
|
-
break;
|
|
1921
|
+
throw await deserializeAws_json1_1FilterLimitExceededExceptionResponse(parsedOutput, context);
|
|
2996
1922
|
case "InvalidParameterValueException":
|
|
2997
1923
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2998
|
-
|
|
2999
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
3000
|
-
name: errorCode,
|
|
3001
|
-
$metadata: deserializeMetadata(output),
|
|
3002
|
-
};
|
|
3003
|
-
break;
|
|
1924
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
3004
1925
|
case "RateLimitExceededException":
|
|
3005
1926
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
3006
|
-
|
|
3007
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
3008
|
-
name: errorCode,
|
|
3009
|
-
$metadata: deserializeMetadata(output),
|
|
3010
|
-
};
|
|
3011
|
-
break;
|
|
1927
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
3012
1928
|
case "ServerInternalException":
|
|
3013
1929
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
3014
|
-
|
|
3015
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
3016
|
-
name: errorCode,
|
|
3017
|
-
$metadata: deserializeMetadata(output),
|
|
3018
|
-
};
|
|
3019
|
-
break;
|
|
1930
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
3020
1931
|
default:
|
|
3021
1932
|
const parsedBody = parsedOutput.body;
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
...parsedBody,
|
|
3025
|
-
name: `${errorCode}`,
|
|
3026
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1933
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1934
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3027
1935
|
$fault: "client",
|
|
3028
1936
|
$metadata: deserializeMetadata(output),
|
|
3029
|
-
};
|
|
1937
|
+
});
|
|
1938
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3030
1939
|
}
|
|
3031
|
-
const message = response.message || response.Message || errorCode;
|
|
3032
|
-
response.message = message;
|
|
3033
|
-
delete response.Message;
|
|
3034
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3035
1940
|
};
|
|
3036
1941
|
const deserializeAws_json1_1ListDistributedGrantsCommand = async (output, context) => {
|
|
3037
1942
|
if (output.statusCode >= 300) {
|
|
@@ -3058,75 +1963,34 @@ const deserializeAws_json1_1ListDistributedGrantsCommandError = async (output, c
|
|
|
3058
1963
|
switch (errorCode) {
|
|
3059
1964
|
case "AccessDeniedException":
|
|
3060
1965
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
3061
|
-
|
|
3062
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3063
|
-
name: errorCode,
|
|
3064
|
-
$metadata: deserializeMetadata(output),
|
|
3065
|
-
};
|
|
3066
|
-
break;
|
|
1966
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3067
1967
|
case "AuthorizationException":
|
|
3068
1968
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
3069
|
-
|
|
3070
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
3071
|
-
name: errorCode,
|
|
3072
|
-
$metadata: deserializeMetadata(output),
|
|
3073
|
-
};
|
|
3074
|
-
break;
|
|
1969
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
3075
1970
|
case "InvalidParameterValueException":
|
|
3076
1971
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
3077
|
-
|
|
3078
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
3079
|
-
name: errorCode,
|
|
3080
|
-
$metadata: deserializeMetadata(output),
|
|
3081
|
-
};
|
|
3082
|
-
break;
|
|
1972
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
3083
1973
|
case "RateLimitExceededException":
|
|
3084
1974
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
3085
|
-
|
|
3086
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
3087
|
-
name: errorCode,
|
|
3088
|
-
$metadata: deserializeMetadata(output),
|
|
3089
|
-
};
|
|
3090
|
-
break;
|
|
1975
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
3091
1976
|
case "ResourceLimitExceededException":
|
|
3092
1977
|
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
3093
|
-
|
|
3094
|
-
...(await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
3095
|
-
name: errorCode,
|
|
3096
|
-
$metadata: deserializeMetadata(output),
|
|
3097
|
-
};
|
|
3098
|
-
break;
|
|
1978
|
+
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
3099
1979
|
case "ServerInternalException":
|
|
3100
1980
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
3101
|
-
|
|
3102
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
3103
|
-
name: errorCode,
|
|
3104
|
-
$metadata: deserializeMetadata(output),
|
|
3105
|
-
};
|
|
3106
|
-
break;
|
|
1981
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
3107
1982
|
case "ValidationException":
|
|
3108
1983
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
3109
|
-
|
|
3110
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
3111
|
-
name: errorCode,
|
|
3112
|
-
$metadata: deserializeMetadata(output),
|
|
3113
|
-
};
|
|
3114
|
-
break;
|
|
1984
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3115
1985
|
default:
|
|
3116
1986
|
const parsedBody = parsedOutput.body;
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
...parsedBody,
|
|
3120
|
-
name: `${errorCode}`,
|
|
3121
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1987
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
1988
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3122
1989
|
$fault: "client",
|
|
3123
1990
|
$metadata: deserializeMetadata(output),
|
|
3124
|
-
};
|
|
1991
|
+
});
|
|
1992
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3125
1993
|
}
|
|
3126
|
-
const message = response.message || response.Message || errorCode;
|
|
3127
|
-
response.message = message;
|
|
3128
|
-
delete response.Message;
|
|
3129
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3130
1994
|
};
|
|
3131
1995
|
const deserializeAws_json1_1ListFailuresForLicenseConfigurationOperationsCommand = async (output, context) => {
|
|
3132
1996
|
if (output.statusCode >= 300) {
|
|
@@ -3153,59 +2017,28 @@ const deserializeAws_json1_1ListFailuresForLicenseConfigurationOperationsCommand
|
|
|
3153
2017
|
switch (errorCode) {
|
|
3154
2018
|
case "AccessDeniedException":
|
|
3155
2019
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
3156
|
-
|
|
3157
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3158
|
-
name: errorCode,
|
|
3159
|
-
$metadata: deserializeMetadata(output),
|
|
3160
|
-
};
|
|
3161
|
-
break;
|
|
2020
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3162
2021
|
case "AuthorizationException":
|
|
3163
2022
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
3164
|
-
|
|
3165
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
3166
|
-
name: errorCode,
|
|
3167
|
-
$metadata: deserializeMetadata(output),
|
|
3168
|
-
};
|
|
3169
|
-
break;
|
|
2023
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
3170
2024
|
case "InvalidParameterValueException":
|
|
3171
2025
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
3172
|
-
|
|
3173
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
3174
|
-
name: errorCode,
|
|
3175
|
-
$metadata: deserializeMetadata(output),
|
|
3176
|
-
};
|
|
3177
|
-
break;
|
|
2026
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
3178
2027
|
case "RateLimitExceededException":
|
|
3179
2028
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
3180
|
-
|
|
3181
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
3182
|
-
name: errorCode,
|
|
3183
|
-
$metadata: deserializeMetadata(output),
|
|
3184
|
-
};
|
|
3185
|
-
break;
|
|
2029
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
3186
2030
|
case "ServerInternalException":
|
|
3187
2031
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
3188
|
-
|
|
3189
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
3190
|
-
name: errorCode,
|
|
3191
|
-
$metadata: deserializeMetadata(output),
|
|
3192
|
-
};
|
|
3193
|
-
break;
|
|
2032
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
3194
2033
|
default:
|
|
3195
2034
|
const parsedBody = parsedOutput.body;
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
...parsedBody,
|
|
3199
|
-
name: `${errorCode}`,
|
|
3200
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2035
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2036
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3201
2037
|
$fault: "client",
|
|
3202
2038
|
$metadata: deserializeMetadata(output),
|
|
3203
|
-
};
|
|
2039
|
+
});
|
|
2040
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3204
2041
|
}
|
|
3205
|
-
const message = response.message || response.Message || errorCode;
|
|
3206
|
-
response.message = message;
|
|
3207
|
-
delete response.Message;
|
|
3208
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3209
2042
|
};
|
|
3210
2043
|
const deserializeAws_json1_1ListLicenseConfigurationsCommand = async (output, context) => {
|
|
3211
2044
|
if (output.statusCode >= 300) {
|
|
@@ -3232,67 +2065,31 @@ const deserializeAws_json1_1ListLicenseConfigurationsCommandError = async (outpu
|
|
|
3232
2065
|
switch (errorCode) {
|
|
3233
2066
|
case "AccessDeniedException":
|
|
3234
2067
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
3235
|
-
|
|
3236
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3237
|
-
name: errorCode,
|
|
3238
|
-
$metadata: deserializeMetadata(output),
|
|
3239
|
-
};
|
|
3240
|
-
break;
|
|
2068
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3241
2069
|
case "AuthorizationException":
|
|
3242
2070
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
3243
|
-
|
|
3244
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
3245
|
-
name: errorCode,
|
|
3246
|
-
$metadata: deserializeMetadata(output),
|
|
3247
|
-
};
|
|
3248
|
-
break;
|
|
2071
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
3249
2072
|
case "FilterLimitExceededException":
|
|
3250
2073
|
case "com.amazonaws.licensemanager#FilterLimitExceededException":
|
|
3251
|
-
|
|
3252
|
-
...(await deserializeAws_json1_1FilterLimitExceededExceptionResponse(parsedOutput, context)),
|
|
3253
|
-
name: errorCode,
|
|
3254
|
-
$metadata: deserializeMetadata(output),
|
|
3255
|
-
};
|
|
3256
|
-
break;
|
|
2074
|
+
throw await deserializeAws_json1_1FilterLimitExceededExceptionResponse(parsedOutput, context);
|
|
3257
2075
|
case "InvalidParameterValueException":
|
|
3258
2076
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
3259
|
-
|
|
3260
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
3261
|
-
name: errorCode,
|
|
3262
|
-
$metadata: deserializeMetadata(output),
|
|
3263
|
-
};
|
|
3264
|
-
break;
|
|
2077
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
3265
2078
|
case "RateLimitExceededException":
|
|
3266
2079
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
3267
|
-
|
|
3268
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
3269
|
-
name: errorCode,
|
|
3270
|
-
$metadata: deserializeMetadata(output),
|
|
3271
|
-
};
|
|
3272
|
-
break;
|
|
2080
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
3273
2081
|
case "ServerInternalException":
|
|
3274
2082
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
3275
|
-
|
|
3276
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
3277
|
-
name: errorCode,
|
|
3278
|
-
$metadata: deserializeMetadata(output),
|
|
3279
|
-
};
|
|
3280
|
-
break;
|
|
2083
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
3281
2084
|
default:
|
|
3282
2085
|
const parsedBody = parsedOutput.body;
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
...parsedBody,
|
|
3286
|
-
name: `${errorCode}`,
|
|
3287
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2086
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2087
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3288
2088
|
$fault: "client",
|
|
3289
2089
|
$metadata: deserializeMetadata(output),
|
|
3290
|
-
};
|
|
2090
|
+
});
|
|
2091
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3291
2092
|
}
|
|
3292
|
-
const message = response.message || response.Message || errorCode;
|
|
3293
|
-
response.message = message;
|
|
3294
|
-
delete response.Message;
|
|
3295
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3296
2093
|
};
|
|
3297
2094
|
const deserializeAws_json1_1ListLicenseConversionTasksCommand = async (output, context) => {
|
|
3298
2095
|
if (output.statusCode >= 300) {
|
|
@@ -3319,59 +2116,28 @@ const deserializeAws_json1_1ListLicenseConversionTasksCommandError = async (outp
|
|
|
3319
2116
|
switch (errorCode) {
|
|
3320
2117
|
case "AccessDeniedException":
|
|
3321
2118
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
3322
|
-
|
|
3323
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3324
|
-
name: errorCode,
|
|
3325
|
-
$metadata: deserializeMetadata(output),
|
|
3326
|
-
};
|
|
3327
|
-
break;
|
|
2119
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3328
2120
|
case "AuthorizationException":
|
|
3329
2121
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
3330
|
-
|
|
3331
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
3332
|
-
name: errorCode,
|
|
3333
|
-
$metadata: deserializeMetadata(output),
|
|
3334
|
-
};
|
|
3335
|
-
break;
|
|
2122
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
3336
2123
|
case "InvalidParameterValueException":
|
|
3337
2124
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
3338
|
-
|
|
3339
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
3340
|
-
name: errorCode,
|
|
3341
|
-
$metadata: deserializeMetadata(output),
|
|
3342
|
-
};
|
|
3343
|
-
break;
|
|
2125
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
3344
2126
|
case "RateLimitExceededException":
|
|
3345
2127
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
3346
|
-
|
|
3347
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
3348
|
-
name: errorCode,
|
|
3349
|
-
$metadata: deserializeMetadata(output),
|
|
3350
|
-
};
|
|
3351
|
-
break;
|
|
2128
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
3352
2129
|
case "ServerInternalException":
|
|
3353
2130
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
3354
|
-
|
|
3355
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
3356
|
-
name: errorCode,
|
|
3357
|
-
$metadata: deserializeMetadata(output),
|
|
3358
|
-
};
|
|
3359
|
-
break;
|
|
2131
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
3360
2132
|
default:
|
|
3361
2133
|
const parsedBody = parsedOutput.body;
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
...parsedBody,
|
|
3365
|
-
name: `${errorCode}`,
|
|
3366
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2134
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2135
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3367
2136
|
$fault: "client",
|
|
3368
2137
|
$metadata: deserializeMetadata(output),
|
|
3369
|
-
};
|
|
2138
|
+
});
|
|
2139
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3370
2140
|
}
|
|
3371
|
-
const message = response.message || response.Message || errorCode;
|
|
3372
|
-
response.message = message;
|
|
3373
|
-
delete response.Message;
|
|
3374
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3375
2141
|
};
|
|
3376
2142
|
const deserializeAws_json1_1ListLicenseManagerReportGeneratorsCommand = async (output, context) => {
|
|
3377
2143
|
if (output.statusCode >= 300) {
|
|
@@ -3398,83 +2164,37 @@ const deserializeAws_json1_1ListLicenseManagerReportGeneratorsCommandError = asy
|
|
|
3398
2164
|
switch (errorCode) {
|
|
3399
2165
|
case "AccessDeniedException":
|
|
3400
2166
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
3401
|
-
|
|
3402
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3403
|
-
name: errorCode,
|
|
3404
|
-
$metadata: deserializeMetadata(output),
|
|
3405
|
-
};
|
|
3406
|
-
break;
|
|
2167
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3407
2168
|
case "AuthorizationException":
|
|
3408
2169
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
3409
|
-
|
|
3410
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
3411
|
-
name: errorCode,
|
|
3412
|
-
$metadata: deserializeMetadata(output),
|
|
3413
|
-
};
|
|
3414
|
-
break;
|
|
2170
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
3415
2171
|
case "InvalidParameterValueException":
|
|
3416
2172
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
3417
|
-
|
|
3418
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
3419
|
-
name: errorCode,
|
|
3420
|
-
$metadata: deserializeMetadata(output),
|
|
3421
|
-
};
|
|
3422
|
-
break;
|
|
2173
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
3423
2174
|
case "RateLimitExceededException":
|
|
3424
2175
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
3425
|
-
|
|
3426
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
3427
|
-
name: errorCode,
|
|
3428
|
-
$metadata: deserializeMetadata(output),
|
|
3429
|
-
};
|
|
3430
|
-
break;
|
|
2176
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
3431
2177
|
case "ResourceLimitExceededException":
|
|
3432
2178
|
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
3433
|
-
|
|
3434
|
-
...(await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
3435
|
-
name: errorCode,
|
|
3436
|
-
$metadata: deserializeMetadata(output),
|
|
3437
|
-
};
|
|
3438
|
-
break;
|
|
2179
|
+
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
3439
2180
|
case "ResourceNotFoundException":
|
|
3440
2181
|
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
3441
|
-
|
|
3442
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3443
|
-
name: errorCode,
|
|
3444
|
-
$metadata: deserializeMetadata(output),
|
|
3445
|
-
};
|
|
3446
|
-
break;
|
|
2182
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3447
2183
|
case "ServerInternalException":
|
|
3448
2184
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
3449
|
-
|
|
3450
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
3451
|
-
name: errorCode,
|
|
3452
|
-
$metadata: deserializeMetadata(output),
|
|
3453
|
-
};
|
|
3454
|
-
break;
|
|
2185
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
3455
2186
|
case "ValidationException":
|
|
3456
2187
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
3457
|
-
|
|
3458
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
3459
|
-
name: errorCode,
|
|
3460
|
-
$metadata: deserializeMetadata(output),
|
|
3461
|
-
};
|
|
3462
|
-
break;
|
|
2188
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3463
2189
|
default:
|
|
3464
2190
|
const parsedBody = parsedOutput.body;
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
...parsedBody,
|
|
3468
|
-
name: `${errorCode}`,
|
|
3469
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2191
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2192
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3470
2193
|
$fault: "client",
|
|
3471
2194
|
$metadata: deserializeMetadata(output),
|
|
3472
|
-
};
|
|
2195
|
+
});
|
|
2196
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3473
2197
|
}
|
|
3474
|
-
const message = response.message || response.Message || errorCode;
|
|
3475
|
-
response.message = message;
|
|
3476
|
-
delete response.Message;
|
|
3477
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3478
2198
|
};
|
|
3479
2199
|
const deserializeAws_json1_1ListLicensesCommand = async (output, context) => {
|
|
3480
2200
|
if (output.statusCode >= 300) {
|
|
@@ -3501,67 +2221,31 @@ const deserializeAws_json1_1ListLicensesCommandError = async (output, context) =
|
|
|
3501
2221
|
switch (errorCode) {
|
|
3502
2222
|
case "AccessDeniedException":
|
|
3503
2223
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
3504
|
-
|
|
3505
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3506
|
-
name: errorCode,
|
|
3507
|
-
$metadata: deserializeMetadata(output),
|
|
3508
|
-
};
|
|
3509
|
-
break;
|
|
2224
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3510
2225
|
case "AuthorizationException":
|
|
3511
2226
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
3512
|
-
|
|
3513
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
3514
|
-
name: errorCode,
|
|
3515
|
-
$metadata: deserializeMetadata(output),
|
|
3516
|
-
};
|
|
3517
|
-
break;
|
|
2227
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
3518
2228
|
case "InvalidParameterValueException":
|
|
3519
2229
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
3520
|
-
|
|
3521
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
3522
|
-
name: errorCode,
|
|
3523
|
-
$metadata: deserializeMetadata(output),
|
|
3524
|
-
};
|
|
3525
|
-
break;
|
|
2230
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
3526
2231
|
case "RateLimitExceededException":
|
|
3527
2232
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
3528
|
-
|
|
3529
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
3530
|
-
name: errorCode,
|
|
3531
|
-
$metadata: deserializeMetadata(output),
|
|
3532
|
-
};
|
|
3533
|
-
break;
|
|
2233
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
3534
2234
|
case "ServerInternalException":
|
|
3535
2235
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
3536
|
-
|
|
3537
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
3538
|
-
name: errorCode,
|
|
3539
|
-
$metadata: deserializeMetadata(output),
|
|
3540
|
-
};
|
|
3541
|
-
break;
|
|
2236
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
3542
2237
|
case "ValidationException":
|
|
3543
2238
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
3544
|
-
|
|
3545
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
3546
|
-
name: errorCode,
|
|
3547
|
-
$metadata: deserializeMetadata(output),
|
|
3548
|
-
};
|
|
3549
|
-
break;
|
|
2239
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3550
2240
|
default:
|
|
3551
2241
|
const parsedBody = parsedOutput.body;
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
...parsedBody,
|
|
3555
|
-
name: `${errorCode}`,
|
|
3556
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2242
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2243
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3557
2244
|
$fault: "client",
|
|
3558
2245
|
$metadata: deserializeMetadata(output),
|
|
3559
|
-
};
|
|
2246
|
+
});
|
|
2247
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3560
2248
|
}
|
|
3561
|
-
const message = response.message || response.Message || errorCode;
|
|
3562
|
-
response.message = message;
|
|
3563
|
-
delete response.Message;
|
|
3564
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3565
2249
|
};
|
|
3566
2250
|
const deserializeAws_json1_1ListLicenseSpecificationsForResourceCommand = async (output, context) => {
|
|
3567
2251
|
if (output.statusCode >= 300) {
|
|
@@ -3588,59 +2272,28 @@ const deserializeAws_json1_1ListLicenseSpecificationsForResourceCommandError = a
|
|
|
3588
2272
|
switch (errorCode) {
|
|
3589
2273
|
case "AccessDeniedException":
|
|
3590
2274
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
3591
|
-
|
|
3592
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3593
|
-
name: errorCode,
|
|
3594
|
-
$metadata: deserializeMetadata(output),
|
|
3595
|
-
};
|
|
3596
|
-
break;
|
|
2275
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3597
2276
|
case "AuthorizationException":
|
|
3598
2277
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
3599
|
-
|
|
3600
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
3601
|
-
name: errorCode,
|
|
3602
|
-
$metadata: deserializeMetadata(output),
|
|
3603
|
-
};
|
|
3604
|
-
break;
|
|
2278
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
3605
2279
|
case "InvalidParameterValueException":
|
|
3606
2280
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
3607
|
-
|
|
3608
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
3609
|
-
name: errorCode,
|
|
3610
|
-
$metadata: deserializeMetadata(output),
|
|
3611
|
-
};
|
|
3612
|
-
break;
|
|
2281
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
3613
2282
|
case "RateLimitExceededException":
|
|
3614
2283
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
3615
|
-
|
|
3616
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
3617
|
-
name: errorCode,
|
|
3618
|
-
$metadata: deserializeMetadata(output),
|
|
3619
|
-
};
|
|
3620
|
-
break;
|
|
2284
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
3621
2285
|
case "ServerInternalException":
|
|
3622
2286
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
3623
|
-
|
|
3624
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
3625
|
-
name: errorCode,
|
|
3626
|
-
$metadata: deserializeMetadata(output),
|
|
3627
|
-
};
|
|
3628
|
-
break;
|
|
2287
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
3629
2288
|
default:
|
|
3630
2289
|
const parsedBody = parsedOutput.body;
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
...parsedBody,
|
|
3634
|
-
name: `${errorCode}`,
|
|
3635
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2290
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2291
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3636
2292
|
$fault: "client",
|
|
3637
2293
|
$metadata: deserializeMetadata(output),
|
|
3638
|
-
};
|
|
2294
|
+
});
|
|
2295
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3639
2296
|
}
|
|
3640
|
-
const message = response.message || response.Message || errorCode;
|
|
3641
|
-
response.message = message;
|
|
3642
|
-
delete response.Message;
|
|
3643
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3644
2297
|
};
|
|
3645
2298
|
const deserializeAws_json1_1ListLicenseVersionsCommand = async (output, context) => {
|
|
3646
2299
|
if (output.statusCode >= 300) {
|
|
@@ -3667,59 +2320,28 @@ const deserializeAws_json1_1ListLicenseVersionsCommandError = async (output, con
|
|
|
3667
2320
|
switch (errorCode) {
|
|
3668
2321
|
case "AccessDeniedException":
|
|
3669
2322
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
3670
|
-
|
|
3671
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3672
|
-
name: errorCode,
|
|
3673
|
-
$metadata: deserializeMetadata(output),
|
|
3674
|
-
};
|
|
3675
|
-
break;
|
|
2323
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3676
2324
|
case "AuthorizationException":
|
|
3677
2325
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
3678
|
-
|
|
3679
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
3680
|
-
name: errorCode,
|
|
3681
|
-
$metadata: deserializeMetadata(output),
|
|
3682
|
-
};
|
|
3683
|
-
break;
|
|
2326
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
3684
2327
|
case "InvalidParameterValueException":
|
|
3685
2328
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
3686
|
-
|
|
3687
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
3688
|
-
name: errorCode,
|
|
3689
|
-
$metadata: deserializeMetadata(output),
|
|
3690
|
-
};
|
|
3691
|
-
break;
|
|
2329
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
3692
2330
|
case "RateLimitExceededException":
|
|
3693
2331
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
3694
|
-
|
|
3695
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
3696
|
-
name: errorCode,
|
|
3697
|
-
$metadata: deserializeMetadata(output),
|
|
3698
|
-
};
|
|
3699
|
-
break;
|
|
2332
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
3700
2333
|
case "ServerInternalException":
|
|
3701
2334
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
3702
|
-
|
|
3703
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
3704
|
-
name: errorCode,
|
|
3705
|
-
$metadata: deserializeMetadata(output),
|
|
3706
|
-
};
|
|
3707
|
-
break;
|
|
2335
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
3708
2336
|
default:
|
|
3709
2337
|
const parsedBody = parsedOutput.body;
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
...parsedBody,
|
|
3713
|
-
name: `${errorCode}`,
|
|
3714
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2338
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2339
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3715
2340
|
$fault: "client",
|
|
3716
2341
|
$metadata: deserializeMetadata(output),
|
|
3717
|
-
};
|
|
2342
|
+
});
|
|
2343
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3718
2344
|
}
|
|
3719
|
-
const message = response.message || response.Message || errorCode;
|
|
3720
|
-
response.message = message;
|
|
3721
|
-
delete response.Message;
|
|
3722
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3723
2345
|
};
|
|
3724
2346
|
const deserializeAws_json1_1ListReceivedGrantsCommand = async (output, context) => {
|
|
3725
2347
|
if (output.statusCode >= 300) {
|
|
@@ -3746,75 +2368,34 @@ const deserializeAws_json1_1ListReceivedGrantsCommandError = async (output, cont
|
|
|
3746
2368
|
switch (errorCode) {
|
|
3747
2369
|
case "AccessDeniedException":
|
|
3748
2370
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
3749
|
-
|
|
3750
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3751
|
-
name: errorCode,
|
|
3752
|
-
$metadata: deserializeMetadata(output),
|
|
3753
|
-
};
|
|
3754
|
-
break;
|
|
2371
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3755
2372
|
case "AuthorizationException":
|
|
3756
2373
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
3757
|
-
|
|
3758
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
3759
|
-
name: errorCode,
|
|
3760
|
-
$metadata: deserializeMetadata(output),
|
|
3761
|
-
};
|
|
3762
|
-
break;
|
|
2374
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
3763
2375
|
case "InvalidParameterValueException":
|
|
3764
2376
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
3765
|
-
|
|
3766
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
3767
|
-
name: errorCode,
|
|
3768
|
-
$metadata: deserializeMetadata(output),
|
|
3769
|
-
};
|
|
3770
|
-
break;
|
|
2377
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
3771
2378
|
case "RateLimitExceededException":
|
|
3772
2379
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
3773
|
-
|
|
3774
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
3775
|
-
name: errorCode,
|
|
3776
|
-
$metadata: deserializeMetadata(output),
|
|
3777
|
-
};
|
|
3778
|
-
break;
|
|
2380
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
3779
2381
|
case "ResourceLimitExceededException":
|
|
3780
2382
|
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
3781
|
-
|
|
3782
|
-
...(await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
3783
|
-
name: errorCode,
|
|
3784
|
-
$metadata: deserializeMetadata(output),
|
|
3785
|
-
};
|
|
3786
|
-
break;
|
|
2383
|
+
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
3787
2384
|
case "ServerInternalException":
|
|
3788
2385
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
3789
|
-
|
|
3790
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
3791
|
-
name: errorCode,
|
|
3792
|
-
$metadata: deserializeMetadata(output),
|
|
3793
|
-
};
|
|
3794
|
-
break;
|
|
2386
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
3795
2387
|
case "ValidationException":
|
|
3796
2388
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
3797
|
-
|
|
3798
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
3799
|
-
name: errorCode,
|
|
3800
|
-
$metadata: deserializeMetadata(output),
|
|
3801
|
-
};
|
|
3802
|
-
break;
|
|
2389
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3803
2390
|
default:
|
|
3804
2391
|
const parsedBody = parsedOutput.body;
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
...parsedBody,
|
|
3808
|
-
name: `${errorCode}`,
|
|
3809
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2392
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2393
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3810
2394
|
$fault: "client",
|
|
3811
2395
|
$metadata: deserializeMetadata(output),
|
|
3812
|
-
};
|
|
2396
|
+
});
|
|
2397
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3813
2398
|
}
|
|
3814
|
-
const message = response.message || response.Message || errorCode;
|
|
3815
|
-
response.message = message;
|
|
3816
|
-
delete response.Message;
|
|
3817
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3818
2399
|
};
|
|
3819
2400
|
const deserializeAws_json1_1ListReceivedLicensesCommand = async (output, context) => {
|
|
3820
2401
|
if (output.statusCode >= 300) {
|
|
@@ -3841,75 +2422,34 @@ const deserializeAws_json1_1ListReceivedLicensesCommandError = async (output, co
|
|
|
3841
2422
|
switch (errorCode) {
|
|
3842
2423
|
case "AccessDeniedException":
|
|
3843
2424
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
3844
|
-
|
|
3845
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3846
|
-
name: errorCode,
|
|
3847
|
-
$metadata: deserializeMetadata(output),
|
|
3848
|
-
};
|
|
3849
|
-
break;
|
|
2425
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3850
2426
|
case "AuthorizationException":
|
|
3851
2427
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
3852
|
-
|
|
3853
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
3854
|
-
name: errorCode,
|
|
3855
|
-
$metadata: deserializeMetadata(output),
|
|
3856
|
-
};
|
|
3857
|
-
break;
|
|
2428
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
3858
2429
|
case "InvalidParameterValueException":
|
|
3859
2430
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
3860
|
-
|
|
3861
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
3862
|
-
name: errorCode,
|
|
3863
|
-
$metadata: deserializeMetadata(output),
|
|
3864
|
-
};
|
|
3865
|
-
break;
|
|
2431
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
3866
2432
|
case "RateLimitExceededException":
|
|
3867
2433
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
3868
|
-
|
|
3869
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
3870
|
-
name: errorCode,
|
|
3871
|
-
$metadata: deserializeMetadata(output),
|
|
3872
|
-
};
|
|
3873
|
-
break;
|
|
2434
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
3874
2435
|
case "ResourceLimitExceededException":
|
|
3875
2436
|
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
3876
|
-
|
|
3877
|
-
...(await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
3878
|
-
name: errorCode,
|
|
3879
|
-
$metadata: deserializeMetadata(output),
|
|
3880
|
-
};
|
|
3881
|
-
break;
|
|
2437
|
+
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
3882
2438
|
case "ServerInternalException":
|
|
3883
2439
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
3884
|
-
|
|
3885
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
3886
|
-
name: errorCode,
|
|
3887
|
-
$metadata: deserializeMetadata(output),
|
|
3888
|
-
};
|
|
3889
|
-
break;
|
|
2440
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
3890
2441
|
case "ValidationException":
|
|
3891
2442
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
3892
|
-
|
|
3893
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
3894
|
-
name: errorCode,
|
|
3895
|
-
$metadata: deserializeMetadata(output),
|
|
3896
|
-
};
|
|
3897
|
-
break;
|
|
2443
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3898
2444
|
default:
|
|
3899
2445
|
const parsedBody = parsedOutput.body;
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
...parsedBody,
|
|
3903
|
-
name: `${errorCode}`,
|
|
3904
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2446
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2447
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3905
2448
|
$fault: "client",
|
|
3906
2449
|
$metadata: deserializeMetadata(output),
|
|
3907
|
-
};
|
|
2450
|
+
});
|
|
2451
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3908
2452
|
}
|
|
3909
|
-
const message = response.message || response.Message || errorCode;
|
|
3910
|
-
response.message = message;
|
|
3911
|
-
delete response.Message;
|
|
3912
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3913
2453
|
};
|
|
3914
2454
|
const deserializeAws_json1_1ListResourceInventoryCommand = async (output, context) => {
|
|
3915
2455
|
if (output.statusCode >= 300) {
|
|
@@ -3936,75 +2476,34 @@ const deserializeAws_json1_1ListResourceInventoryCommandError = async (output, c
|
|
|
3936
2476
|
switch (errorCode) {
|
|
3937
2477
|
case "AccessDeniedException":
|
|
3938
2478
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
3939
|
-
|
|
3940
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3941
|
-
name: errorCode,
|
|
3942
|
-
$metadata: deserializeMetadata(output),
|
|
3943
|
-
};
|
|
3944
|
-
break;
|
|
2479
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3945
2480
|
case "AuthorizationException":
|
|
3946
2481
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
3947
|
-
|
|
3948
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
3949
|
-
name: errorCode,
|
|
3950
|
-
$metadata: deserializeMetadata(output),
|
|
3951
|
-
};
|
|
3952
|
-
break;
|
|
2482
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
3953
2483
|
case "FailedDependencyException":
|
|
3954
2484
|
case "com.amazonaws.licensemanager#FailedDependencyException":
|
|
3955
|
-
|
|
3956
|
-
...(await deserializeAws_json1_1FailedDependencyExceptionResponse(parsedOutput, context)),
|
|
3957
|
-
name: errorCode,
|
|
3958
|
-
$metadata: deserializeMetadata(output),
|
|
3959
|
-
};
|
|
3960
|
-
break;
|
|
2485
|
+
throw await deserializeAws_json1_1FailedDependencyExceptionResponse(parsedOutput, context);
|
|
3961
2486
|
case "FilterLimitExceededException":
|
|
3962
2487
|
case "com.amazonaws.licensemanager#FilterLimitExceededException":
|
|
3963
|
-
|
|
3964
|
-
...(await deserializeAws_json1_1FilterLimitExceededExceptionResponse(parsedOutput, context)),
|
|
3965
|
-
name: errorCode,
|
|
3966
|
-
$metadata: deserializeMetadata(output),
|
|
3967
|
-
};
|
|
3968
|
-
break;
|
|
2488
|
+
throw await deserializeAws_json1_1FilterLimitExceededExceptionResponse(parsedOutput, context);
|
|
3969
2489
|
case "InvalidParameterValueException":
|
|
3970
2490
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
3971
|
-
|
|
3972
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
3973
|
-
name: errorCode,
|
|
3974
|
-
$metadata: deserializeMetadata(output),
|
|
3975
|
-
};
|
|
3976
|
-
break;
|
|
2491
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
3977
2492
|
case "RateLimitExceededException":
|
|
3978
2493
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
3979
|
-
|
|
3980
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
3981
|
-
name: errorCode,
|
|
3982
|
-
$metadata: deserializeMetadata(output),
|
|
3983
|
-
};
|
|
3984
|
-
break;
|
|
2494
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
3985
2495
|
case "ServerInternalException":
|
|
3986
2496
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
3987
|
-
|
|
3988
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
3989
|
-
name: errorCode,
|
|
3990
|
-
$metadata: deserializeMetadata(output),
|
|
3991
|
-
};
|
|
3992
|
-
break;
|
|
2497
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
3993
2498
|
default:
|
|
3994
2499
|
const parsedBody = parsedOutput.body;
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
...parsedBody,
|
|
3998
|
-
name: `${errorCode}`,
|
|
3999
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2500
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2501
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4000
2502
|
$fault: "client",
|
|
4001
2503
|
$metadata: deserializeMetadata(output),
|
|
4002
|
-
};
|
|
2504
|
+
});
|
|
2505
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4003
2506
|
}
|
|
4004
|
-
const message = response.message || response.Message || errorCode;
|
|
4005
|
-
response.message = message;
|
|
4006
|
-
delete response.Message;
|
|
4007
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4008
2507
|
};
|
|
4009
2508
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
4010
2509
|
if (output.statusCode >= 300) {
|
|
@@ -4031,59 +2530,28 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
4031
2530
|
switch (errorCode) {
|
|
4032
2531
|
case "AccessDeniedException":
|
|
4033
2532
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
4034
|
-
|
|
4035
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4036
|
-
name: errorCode,
|
|
4037
|
-
$metadata: deserializeMetadata(output),
|
|
4038
|
-
};
|
|
4039
|
-
break;
|
|
2533
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4040
2534
|
case "AuthorizationException":
|
|
4041
2535
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
4042
|
-
|
|
4043
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
4044
|
-
name: errorCode,
|
|
4045
|
-
$metadata: deserializeMetadata(output),
|
|
4046
|
-
};
|
|
4047
|
-
break;
|
|
2536
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
4048
2537
|
case "InvalidParameterValueException":
|
|
4049
2538
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
4050
|
-
|
|
4051
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
4052
|
-
name: errorCode,
|
|
4053
|
-
$metadata: deserializeMetadata(output),
|
|
4054
|
-
};
|
|
4055
|
-
break;
|
|
2539
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
4056
2540
|
case "RateLimitExceededException":
|
|
4057
2541
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
4058
|
-
|
|
4059
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
4060
|
-
name: errorCode,
|
|
4061
|
-
$metadata: deserializeMetadata(output),
|
|
4062
|
-
};
|
|
4063
|
-
break;
|
|
2542
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
4064
2543
|
case "ServerInternalException":
|
|
4065
2544
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
4066
|
-
|
|
4067
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
4068
|
-
name: errorCode,
|
|
4069
|
-
$metadata: deserializeMetadata(output),
|
|
4070
|
-
};
|
|
4071
|
-
break;
|
|
2545
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
4072
2546
|
default:
|
|
4073
2547
|
const parsedBody = parsedOutput.body;
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
...parsedBody,
|
|
4077
|
-
name: `${errorCode}`,
|
|
4078
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2548
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2549
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4079
2550
|
$fault: "client",
|
|
4080
2551
|
$metadata: deserializeMetadata(output),
|
|
4081
|
-
};
|
|
2552
|
+
});
|
|
2553
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4082
2554
|
}
|
|
4083
|
-
const message = response.message || response.Message || errorCode;
|
|
4084
|
-
response.message = message;
|
|
4085
|
-
delete response.Message;
|
|
4086
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4087
2555
|
};
|
|
4088
2556
|
const deserializeAws_json1_1ListTokensCommand = async (output, context) => {
|
|
4089
2557
|
if (output.statusCode >= 300) {
|
|
@@ -4110,59 +2578,28 @@ const deserializeAws_json1_1ListTokensCommandError = async (output, context) =>
|
|
|
4110
2578
|
switch (errorCode) {
|
|
4111
2579
|
case "AccessDeniedException":
|
|
4112
2580
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
4113
|
-
|
|
4114
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4115
|
-
name: errorCode,
|
|
4116
|
-
$metadata: deserializeMetadata(output),
|
|
4117
|
-
};
|
|
4118
|
-
break;
|
|
2581
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4119
2582
|
case "AuthorizationException":
|
|
4120
2583
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
4121
|
-
|
|
4122
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
4123
|
-
name: errorCode,
|
|
4124
|
-
$metadata: deserializeMetadata(output),
|
|
4125
|
-
};
|
|
4126
|
-
break;
|
|
2584
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
4127
2585
|
case "RateLimitExceededException":
|
|
4128
2586
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
4129
|
-
|
|
4130
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
4131
|
-
name: errorCode,
|
|
4132
|
-
$metadata: deserializeMetadata(output),
|
|
4133
|
-
};
|
|
4134
|
-
break;
|
|
2587
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
4135
2588
|
case "ServerInternalException":
|
|
4136
2589
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
4137
|
-
|
|
4138
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
4139
|
-
name: errorCode,
|
|
4140
|
-
$metadata: deserializeMetadata(output),
|
|
4141
|
-
};
|
|
4142
|
-
break;
|
|
2590
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
4143
2591
|
case "ValidationException":
|
|
4144
2592
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
4145
|
-
|
|
4146
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
4147
|
-
name: errorCode,
|
|
4148
|
-
$metadata: deserializeMetadata(output),
|
|
4149
|
-
};
|
|
4150
|
-
break;
|
|
2593
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
4151
2594
|
default:
|
|
4152
2595
|
const parsedBody = parsedOutput.body;
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
...parsedBody,
|
|
4156
|
-
name: `${errorCode}`,
|
|
4157
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2596
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2597
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4158
2598
|
$fault: "client",
|
|
4159
2599
|
$metadata: deserializeMetadata(output),
|
|
4160
|
-
};
|
|
2600
|
+
});
|
|
2601
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4161
2602
|
}
|
|
4162
|
-
const message = response.message || response.Message || errorCode;
|
|
4163
|
-
response.message = message;
|
|
4164
|
-
delete response.Message;
|
|
4165
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4166
2603
|
};
|
|
4167
2604
|
const deserializeAws_json1_1ListUsageForLicenseConfigurationCommand = async (output, context) => {
|
|
4168
2605
|
if (output.statusCode >= 300) {
|
|
@@ -4189,67 +2626,31 @@ const deserializeAws_json1_1ListUsageForLicenseConfigurationCommandError = async
|
|
|
4189
2626
|
switch (errorCode) {
|
|
4190
2627
|
case "AccessDeniedException":
|
|
4191
2628
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
4192
|
-
|
|
4193
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4194
|
-
name: errorCode,
|
|
4195
|
-
$metadata: deserializeMetadata(output),
|
|
4196
|
-
};
|
|
4197
|
-
break;
|
|
2629
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4198
2630
|
case "AuthorizationException":
|
|
4199
2631
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
4200
|
-
|
|
4201
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
4202
|
-
name: errorCode,
|
|
4203
|
-
$metadata: deserializeMetadata(output),
|
|
4204
|
-
};
|
|
4205
|
-
break;
|
|
2632
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
4206
2633
|
case "FilterLimitExceededException":
|
|
4207
2634
|
case "com.amazonaws.licensemanager#FilterLimitExceededException":
|
|
4208
|
-
|
|
4209
|
-
...(await deserializeAws_json1_1FilterLimitExceededExceptionResponse(parsedOutput, context)),
|
|
4210
|
-
name: errorCode,
|
|
4211
|
-
$metadata: deserializeMetadata(output),
|
|
4212
|
-
};
|
|
4213
|
-
break;
|
|
2635
|
+
throw await deserializeAws_json1_1FilterLimitExceededExceptionResponse(parsedOutput, context);
|
|
4214
2636
|
case "InvalidParameterValueException":
|
|
4215
2637
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
4216
|
-
|
|
4217
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
4218
|
-
name: errorCode,
|
|
4219
|
-
$metadata: deserializeMetadata(output),
|
|
4220
|
-
};
|
|
4221
|
-
break;
|
|
2638
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
4222
2639
|
case "RateLimitExceededException":
|
|
4223
2640
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
4224
|
-
|
|
4225
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
4226
|
-
name: errorCode,
|
|
4227
|
-
$metadata: deserializeMetadata(output),
|
|
4228
|
-
};
|
|
4229
|
-
break;
|
|
2641
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
4230
2642
|
case "ServerInternalException":
|
|
4231
2643
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
4232
|
-
|
|
4233
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
4234
|
-
name: errorCode,
|
|
4235
|
-
$metadata: deserializeMetadata(output),
|
|
4236
|
-
};
|
|
4237
|
-
break;
|
|
2644
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
4238
2645
|
default:
|
|
4239
2646
|
const parsedBody = parsedOutput.body;
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
...parsedBody,
|
|
4243
|
-
name: `${errorCode}`,
|
|
4244
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2647
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2648
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4245
2649
|
$fault: "client",
|
|
4246
2650
|
$metadata: deserializeMetadata(output),
|
|
4247
|
-
};
|
|
2651
|
+
});
|
|
2652
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4248
2653
|
}
|
|
4249
|
-
const message = response.message || response.Message || errorCode;
|
|
4250
|
-
response.message = message;
|
|
4251
|
-
delete response.Message;
|
|
4252
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4253
2654
|
};
|
|
4254
2655
|
const deserializeAws_json1_1RejectGrantCommand = async (output, context) => {
|
|
4255
2656
|
if (output.statusCode >= 300) {
|
|
@@ -4276,75 +2677,34 @@ const deserializeAws_json1_1RejectGrantCommandError = async (output, context) =>
|
|
|
4276
2677
|
switch (errorCode) {
|
|
4277
2678
|
case "AccessDeniedException":
|
|
4278
2679
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
4279
|
-
|
|
4280
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4281
|
-
name: errorCode,
|
|
4282
|
-
$metadata: deserializeMetadata(output),
|
|
4283
|
-
};
|
|
4284
|
-
break;
|
|
2680
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4285
2681
|
case "AuthorizationException":
|
|
4286
2682
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
4287
|
-
|
|
4288
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
4289
|
-
name: errorCode,
|
|
4290
|
-
$metadata: deserializeMetadata(output),
|
|
4291
|
-
};
|
|
4292
|
-
break;
|
|
2683
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
4293
2684
|
case "InvalidParameterValueException":
|
|
4294
2685
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
4295
|
-
|
|
4296
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
4297
|
-
name: errorCode,
|
|
4298
|
-
$metadata: deserializeMetadata(output),
|
|
4299
|
-
};
|
|
4300
|
-
break;
|
|
2686
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
4301
2687
|
case "RateLimitExceededException":
|
|
4302
2688
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
4303
|
-
|
|
4304
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
4305
|
-
name: errorCode,
|
|
4306
|
-
$metadata: deserializeMetadata(output),
|
|
4307
|
-
};
|
|
4308
|
-
break;
|
|
2689
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
4309
2690
|
case "ResourceLimitExceededException":
|
|
4310
2691
|
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
4311
|
-
|
|
4312
|
-
...(await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
4313
|
-
name: errorCode,
|
|
4314
|
-
$metadata: deserializeMetadata(output),
|
|
4315
|
-
};
|
|
4316
|
-
break;
|
|
2692
|
+
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
4317
2693
|
case "ServerInternalException":
|
|
4318
2694
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
4319
|
-
|
|
4320
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
4321
|
-
name: errorCode,
|
|
4322
|
-
$metadata: deserializeMetadata(output),
|
|
4323
|
-
};
|
|
4324
|
-
break;
|
|
2695
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
4325
2696
|
case "ValidationException":
|
|
4326
2697
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
4327
|
-
|
|
4328
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
4329
|
-
name: errorCode,
|
|
4330
|
-
$metadata: deserializeMetadata(output),
|
|
4331
|
-
};
|
|
4332
|
-
break;
|
|
2698
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
4333
2699
|
default:
|
|
4334
2700
|
const parsedBody = parsedOutput.body;
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
...parsedBody,
|
|
4338
|
-
name: `${errorCode}`,
|
|
4339
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2701
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2702
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4340
2703
|
$fault: "client",
|
|
4341
2704
|
$metadata: deserializeMetadata(output),
|
|
4342
|
-
};
|
|
2705
|
+
});
|
|
2706
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4343
2707
|
}
|
|
4344
|
-
const message = response.message || response.Message || errorCode;
|
|
4345
|
-
response.message = message;
|
|
4346
|
-
delete response.Message;
|
|
4347
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4348
2708
|
};
|
|
4349
2709
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
4350
2710
|
if (output.statusCode >= 300) {
|
|
@@ -4371,59 +2731,28 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
4371
2731
|
switch (errorCode) {
|
|
4372
2732
|
case "AccessDeniedException":
|
|
4373
2733
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
4374
|
-
|
|
4375
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4376
|
-
name: errorCode,
|
|
4377
|
-
$metadata: deserializeMetadata(output),
|
|
4378
|
-
};
|
|
4379
|
-
break;
|
|
2734
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4380
2735
|
case "AuthorizationException":
|
|
4381
2736
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
4382
|
-
|
|
4383
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
4384
|
-
name: errorCode,
|
|
4385
|
-
$metadata: deserializeMetadata(output),
|
|
4386
|
-
};
|
|
4387
|
-
break;
|
|
2737
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
4388
2738
|
case "InvalidParameterValueException":
|
|
4389
2739
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
4390
|
-
|
|
4391
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
4392
|
-
name: errorCode,
|
|
4393
|
-
$metadata: deserializeMetadata(output),
|
|
4394
|
-
};
|
|
4395
|
-
break;
|
|
2740
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
4396
2741
|
case "RateLimitExceededException":
|
|
4397
2742
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
4398
|
-
|
|
4399
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
4400
|
-
name: errorCode,
|
|
4401
|
-
$metadata: deserializeMetadata(output),
|
|
4402
|
-
};
|
|
4403
|
-
break;
|
|
2743
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
4404
2744
|
case "ServerInternalException":
|
|
4405
2745
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
4406
|
-
|
|
4407
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
4408
|
-
name: errorCode,
|
|
4409
|
-
$metadata: deserializeMetadata(output),
|
|
4410
|
-
};
|
|
4411
|
-
break;
|
|
2746
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
4412
2747
|
default:
|
|
4413
2748
|
const parsedBody = parsedOutput.body;
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
...parsedBody,
|
|
4417
|
-
name: `${errorCode}`,
|
|
4418
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2749
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2750
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4419
2751
|
$fault: "client",
|
|
4420
2752
|
$metadata: deserializeMetadata(output),
|
|
4421
|
-
};
|
|
2753
|
+
});
|
|
2754
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4422
2755
|
}
|
|
4423
|
-
const message = response.message || response.Message || errorCode;
|
|
4424
|
-
response.message = message;
|
|
4425
|
-
delete response.Message;
|
|
4426
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4427
2756
|
};
|
|
4428
2757
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
4429
2758
|
if (output.statusCode >= 300) {
|
|
@@ -4450,59 +2779,28 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
4450
2779
|
switch (errorCode) {
|
|
4451
2780
|
case "AccessDeniedException":
|
|
4452
2781
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
4453
|
-
|
|
4454
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4455
|
-
name: errorCode,
|
|
4456
|
-
$metadata: deserializeMetadata(output),
|
|
4457
|
-
};
|
|
4458
|
-
break;
|
|
2782
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4459
2783
|
case "AuthorizationException":
|
|
4460
2784
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
4461
|
-
|
|
4462
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
4463
|
-
name: errorCode,
|
|
4464
|
-
$metadata: deserializeMetadata(output),
|
|
4465
|
-
};
|
|
4466
|
-
break;
|
|
2785
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
4467
2786
|
case "InvalidParameterValueException":
|
|
4468
2787
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
4469
|
-
|
|
4470
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
4471
|
-
name: errorCode,
|
|
4472
|
-
$metadata: deserializeMetadata(output),
|
|
4473
|
-
};
|
|
4474
|
-
break;
|
|
2788
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
4475
2789
|
case "RateLimitExceededException":
|
|
4476
2790
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
4477
|
-
|
|
4478
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
4479
|
-
name: errorCode,
|
|
4480
|
-
$metadata: deserializeMetadata(output),
|
|
4481
|
-
};
|
|
4482
|
-
break;
|
|
2791
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
4483
2792
|
case "ServerInternalException":
|
|
4484
2793
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
4485
|
-
|
|
4486
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
4487
|
-
name: errorCode,
|
|
4488
|
-
$metadata: deserializeMetadata(output),
|
|
4489
|
-
};
|
|
4490
|
-
break;
|
|
2794
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
4491
2795
|
default:
|
|
4492
2796
|
const parsedBody = parsedOutput.body;
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
...parsedBody,
|
|
4496
|
-
name: `${errorCode}`,
|
|
4497
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2797
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2798
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4498
2799
|
$fault: "client",
|
|
4499
2800
|
$metadata: deserializeMetadata(output),
|
|
4500
|
-
};
|
|
2801
|
+
});
|
|
2802
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4501
2803
|
}
|
|
4502
|
-
const message = response.message || response.Message || errorCode;
|
|
4503
|
-
response.message = message;
|
|
4504
|
-
delete response.Message;
|
|
4505
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4506
2804
|
};
|
|
4507
2805
|
const deserializeAws_json1_1UpdateLicenseConfigurationCommand = async (output, context) => {
|
|
4508
2806
|
if (output.statusCode >= 300) {
|
|
@@ -4529,67 +2827,31 @@ const deserializeAws_json1_1UpdateLicenseConfigurationCommandError = async (outp
|
|
|
4529
2827
|
switch (errorCode) {
|
|
4530
2828
|
case "AccessDeniedException":
|
|
4531
2829
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
4532
|
-
|
|
4533
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4534
|
-
name: errorCode,
|
|
4535
|
-
$metadata: deserializeMetadata(output),
|
|
4536
|
-
};
|
|
4537
|
-
break;
|
|
2830
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4538
2831
|
case "AuthorizationException":
|
|
4539
2832
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
4540
|
-
|
|
4541
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
4542
|
-
name: errorCode,
|
|
4543
|
-
$metadata: deserializeMetadata(output),
|
|
4544
|
-
};
|
|
4545
|
-
break;
|
|
2833
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
4546
2834
|
case "InvalidParameterValueException":
|
|
4547
2835
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
4548
|
-
|
|
4549
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
4550
|
-
name: errorCode,
|
|
4551
|
-
$metadata: deserializeMetadata(output),
|
|
4552
|
-
};
|
|
4553
|
-
break;
|
|
2836
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
4554
2837
|
case "RateLimitExceededException":
|
|
4555
2838
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
4556
|
-
|
|
4557
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
4558
|
-
name: errorCode,
|
|
4559
|
-
$metadata: deserializeMetadata(output),
|
|
4560
|
-
};
|
|
4561
|
-
break;
|
|
2839
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
4562
2840
|
case "ResourceLimitExceededException":
|
|
4563
2841
|
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
4564
|
-
|
|
4565
|
-
...(await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
4566
|
-
name: errorCode,
|
|
4567
|
-
$metadata: deserializeMetadata(output),
|
|
4568
|
-
};
|
|
4569
|
-
break;
|
|
2842
|
+
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
4570
2843
|
case "ServerInternalException":
|
|
4571
2844
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
4572
|
-
|
|
4573
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
4574
|
-
name: errorCode,
|
|
4575
|
-
$metadata: deserializeMetadata(output),
|
|
4576
|
-
};
|
|
4577
|
-
break;
|
|
2845
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
4578
2846
|
default:
|
|
4579
2847
|
const parsedBody = parsedOutput.body;
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
...parsedBody,
|
|
4583
|
-
name: `${errorCode}`,
|
|
4584
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2848
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2849
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4585
2850
|
$fault: "client",
|
|
4586
2851
|
$metadata: deserializeMetadata(output),
|
|
4587
|
-
};
|
|
2852
|
+
});
|
|
2853
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4588
2854
|
}
|
|
4589
|
-
const message = response.message || response.Message || errorCode;
|
|
4590
|
-
response.message = message;
|
|
4591
|
-
delete response.Message;
|
|
4592
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4593
2855
|
};
|
|
4594
2856
|
const deserializeAws_json1_1UpdateLicenseManagerReportGeneratorCommand = async (output, context) => {
|
|
4595
2857
|
if (output.statusCode >= 300) {
|
|
@@ -4616,83 +2878,37 @@ const deserializeAws_json1_1UpdateLicenseManagerReportGeneratorCommandError = as
|
|
|
4616
2878
|
switch (errorCode) {
|
|
4617
2879
|
case "AccessDeniedException":
|
|
4618
2880
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
4619
|
-
|
|
4620
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4621
|
-
name: errorCode,
|
|
4622
|
-
$metadata: deserializeMetadata(output),
|
|
4623
|
-
};
|
|
4624
|
-
break;
|
|
2881
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4625
2882
|
case "AuthorizationException":
|
|
4626
2883
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
4627
|
-
|
|
4628
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
4629
|
-
name: errorCode,
|
|
4630
|
-
$metadata: deserializeMetadata(output),
|
|
4631
|
-
};
|
|
4632
|
-
break;
|
|
2884
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
4633
2885
|
case "InvalidParameterValueException":
|
|
4634
2886
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
4635
|
-
|
|
4636
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
4637
|
-
name: errorCode,
|
|
4638
|
-
$metadata: deserializeMetadata(output),
|
|
4639
|
-
};
|
|
4640
|
-
break;
|
|
2887
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
4641
2888
|
case "RateLimitExceededException":
|
|
4642
2889
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
4643
|
-
|
|
4644
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
4645
|
-
name: errorCode,
|
|
4646
|
-
$metadata: deserializeMetadata(output),
|
|
4647
|
-
};
|
|
4648
|
-
break;
|
|
2890
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
4649
2891
|
case "ResourceLimitExceededException":
|
|
4650
2892
|
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
4651
|
-
|
|
4652
|
-
...(await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
4653
|
-
name: errorCode,
|
|
4654
|
-
$metadata: deserializeMetadata(output),
|
|
4655
|
-
};
|
|
4656
|
-
break;
|
|
2893
|
+
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
4657
2894
|
case "ResourceNotFoundException":
|
|
4658
2895
|
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
4659
|
-
|
|
4660
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4661
|
-
name: errorCode,
|
|
4662
|
-
$metadata: deserializeMetadata(output),
|
|
4663
|
-
};
|
|
4664
|
-
break;
|
|
2896
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4665
2897
|
case "ServerInternalException":
|
|
4666
2898
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
4667
|
-
|
|
4668
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
4669
|
-
name: errorCode,
|
|
4670
|
-
$metadata: deserializeMetadata(output),
|
|
4671
|
-
};
|
|
4672
|
-
break;
|
|
2899
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
4673
2900
|
case "ValidationException":
|
|
4674
2901
|
case "com.amazonaws.licensemanager#ValidationException":
|
|
4675
|
-
|
|
4676
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
4677
|
-
name: errorCode,
|
|
4678
|
-
$metadata: deserializeMetadata(output),
|
|
4679
|
-
};
|
|
4680
|
-
break;
|
|
2902
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
4681
2903
|
default:
|
|
4682
2904
|
const parsedBody = parsedOutput.body;
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
...parsedBody,
|
|
4686
|
-
name: `${errorCode}`,
|
|
4687
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2905
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2906
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4688
2907
|
$fault: "client",
|
|
4689
2908
|
$metadata: deserializeMetadata(output),
|
|
4690
|
-
};
|
|
2909
|
+
});
|
|
2910
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4691
2911
|
}
|
|
4692
|
-
const message = response.message || response.Message || errorCode;
|
|
4693
|
-
response.message = message;
|
|
4694
|
-
delete response.Message;
|
|
4695
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4696
2912
|
};
|
|
4697
2913
|
const deserializeAws_json1_1UpdateLicenseSpecificationsForResourceCommand = async (output, context) => {
|
|
4698
2914
|
if (output.statusCode >= 300) {
|
|
@@ -4719,75 +2935,34 @@ const deserializeAws_json1_1UpdateLicenseSpecificationsForResourceCommandError =
|
|
|
4719
2935
|
switch (errorCode) {
|
|
4720
2936
|
case "AccessDeniedException":
|
|
4721
2937
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
4722
|
-
|
|
4723
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4724
|
-
name: errorCode,
|
|
4725
|
-
$metadata: deserializeMetadata(output),
|
|
4726
|
-
};
|
|
4727
|
-
break;
|
|
2938
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4728
2939
|
case "AuthorizationException":
|
|
4729
2940
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
4730
|
-
|
|
4731
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
4732
|
-
name: errorCode,
|
|
4733
|
-
$metadata: deserializeMetadata(output),
|
|
4734
|
-
};
|
|
4735
|
-
break;
|
|
2941
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
4736
2942
|
case "InvalidParameterValueException":
|
|
4737
2943
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
4738
|
-
|
|
4739
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
4740
|
-
name: errorCode,
|
|
4741
|
-
$metadata: deserializeMetadata(output),
|
|
4742
|
-
};
|
|
4743
|
-
break;
|
|
2944
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
4744
2945
|
case "InvalidResourceStateException":
|
|
4745
2946
|
case "com.amazonaws.licensemanager#InvalidResourceStateException":
|
|
4746
|
-
|
|
4747
|
-
...(await deserializeAws_json1_1InvalidResourceStateExceptionResponse(parsedOutput, context)),
|
|
4748
|
-
name: errorCode,
|
|
4749
|
-
$metadata: deserializeMetadata(output),
|
|
4750
|
-
};
|
|
4751
|
-
break;
|
|
2947
|
+
throw await deserializeAws_json1_1InvalidResourceStateExceptionResponse(parsedOutput, context);
|
|
4752
2948
|
case "LicenseUsageException":
|
|
4753
2949
|
case "com.amazonaws.licensemanager#LicenseUsageException":
|
|
4754
|
-
|
|
4755
|
-
...(await deserializeAws_json1_1LicenseUsageExceptionResponse(parsedOutput, context)),
|
|
4756
|
-
name: errorCode,
|
|
4757
|
-
$metadata: deserializeMetadata(output),
|
|
4758
|
-
};
|
|
4759
|
-
break;
|
|
2950
|
+
throw await deserializeAws_json1_1LicenseUsageExceptionResponse(parsedOutput, context);
|
|
4760
2951
|
case "RateLimitExceededException":
|
|
4761
2952
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
4762
|
-
|
|
4763
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
4764
|
-
name: errorCode,
|
|
4765
|
-
$metadata: deserializeMetadata(output),
|
|
4766
|
-
};
|
|
4767
|
-
break;
|
|
2953
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
4768
2954
|
case "ServerInternalException":
|
|
4769
2955
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
4770
|
-
|
|
4771
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
4772
|
-
name: errorCode,
|
|
4773
|
-
$metadata: deserializeMetadata(output),
|
|
4774
|
-
};
|
|
4775
|
-
break;
|
|
2956
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
4776
2957
|
default:
|
|
4777
2958
|
const parsedBody = parsedOutput.body;
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
...parsedBody,
|
|
4781
|
-
name: `${errorCode}`,
|
|
4782
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2959
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
2960
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4783
2961
|
$fault: "client",
|
|
4784
2962
|
$metadata: deserializeMetadata(output),
|
|
4785
|
-
};
|
|
2963
|
+
});
|
|
2964
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4786
2965
|
}
|
|
4787
|
-
const message = response.message || response.Message || errorCode;
|
|
4788
|
-
response.message = message;
|
|
4789
|
-
delete response.Message;
|
|
4790
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4791
2966
|
};
|
|
4792
2967
|
const deserializeAws_json1_1UpdateServiceSettingsCommand = async (output, context) => {
|
|
4793
2968
|
if (output.statusCode >= 300) {
|
|
@@ -4814,246 +2989,181 @@ const deserializeAws_json1_1UpdateServiceSettingsCommandError = async (output, c
|
|
|
4814
2989
|
switch (errorCode) {
|
|
4815
2990
|
case "AccessDeniedException":
|
|
4816
2991
|
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
4817
|
-
|
|
4818
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4819
|
-
name: errorCode,
|
|
4820
|
-
$metadata: deserializeMetadata(output),
|
|
4821
|
-
};
|
|
4822
|
-
break;
|
|
2992
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4823
2993
|
case "AuthorizationException":
|
|
4824
2994
|
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
4825
|
-
|
|
4826
|
-
...(await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context)),
|
|
4827
|
-
name: errorCode,
|
|
4828
|
-
$metadata: deserializeMetadata(output),
|
|
4829
|
-
};
|
|
4830
|
-
break;
|
|
2995
|
+
throw await deserializeAws_json1_1AuthorizationExceptionResponse(parsedOutput, context);
|
|
4831
2996
|
case "InvalidParameterValueException":
|
|
4832
2997
|
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
4833
|
-
|
|
4834
|
-
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
4835
|
-
name: errorCode,
|
|
4836
|
-
$metadata: deserializeMetadata(output),
|
|
4837
|
-
};
|
|
4838
|
-
break;
|
|
2998
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
4839
2999
|
case "RateLimitExceededException":
|
|
4840
3000
|
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
4841
|
-
|
|
4842
|
-
...(await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context)),
|
|
4843
|
-
name: errorCode,
|
|
4844
|
-
$metadata: deserializeMetadata(output),
|
|
4845
|
-
};
|
|
4846
|
-
break;
|
|
3001
|
+
throw await deserializeAws_json1_1RateLimitExceededExceptionResponse(parsedOutput, context);
|
|
4847
3002
|
case "ServerInternalException":
|
|
4848
3003
|
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
4849
|
-
|
|
4850
|
-
...(await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context)),
|
|
4851
|
-
name: errorCode,
|
|
4852
|
-
$metadata: deserializeMetadata(output),
|
|
4853
|
-
};
|
|
4854
|
-
break;
|
|
3004
|
+
throw await deserializeAws_json1_1ServerInternalExceptionResponse(parsedOutput, context);
|
|
4855
3005
|
default:
|
|
4856
3006
|
const parsedBody = parsedOutput.body;
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
...parsedBody,
|
|
4860
|
-
name: `${errorCode}`,
|
|
4861
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3007
|
+
response = new LicenseManagerServiceException_1.LicenseManagerServiceException({
|
|
3008
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4862
3009
|
$fault: "client",
|
|
4863
3010
|
$metadata: deserializeMetadata(output),
|
|
4864
|
-
};
|
|
3011
|
+
});
|
|
3012
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4865
3013
|
}
|
|
4866
|
-
const message = response.message || response.Message || errorCode;
|
|
4867
|
-
response.message = message;
|
|
4868
|
-
delete response.Message;
|
|
4869
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4870
3014
|
};
|
|
4871
3015
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
4872
3016
|
const body = parsedOutput.body;
|
|
4873
3017
|
const deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
4874
|
-
const
|
|
4875
|
-
name: "AccessDeniedException",
|
|
4876
|
-
$fault: "client",
|
|
3018
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
4877
3019
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4878
3020
|
...deserialized,
|
|
4879
|
-
};
|
|
4880
|
-
return
|
|
3021
|
+
});
|
|
3022
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4881
3023
|
};
|
|
4882
3024
|
const deserializeAws_json1_1AuthorizationExceptionResponse = async (parsedOutput, context) => {
|
|
4883
3025
|
const body = parsedOutput.body;
|
|
4884
3026
|
const deserialized = deserializeAws_json1_1AuthorizationException(body, context);
|
|
4885
|
-
const
|
|
4886
|
-
name: "AuthorizationException",
|
|
4887
|
-
$fault: "client",
|
|
3027
|
+
const exception = new models_0_1.AuthorizationException({
|
|
4888
3028
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4889
3029
|
...deserialized,
|
|
4890
|
-
};
|
|
4891
|
-
return
|
|
3030
|
+
});
|
|
3031
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4892
3032
|
};
|
|
4893
3033
|
const deserializeAws_json1_1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
4894
3034
|
const body = parsedOutput.body;
|
|
4895
3035
|
const deserialized = deserializeAws_json1_1ConflictException(body, context);
|
|
4896
|
-
const
|
|
4897
|
-
name: "ConflictException",
|
|
4898
|
-
$fault: "client",
|
|
3036
|
+
const exception = new models_0_1.ConflictException({
|
|
4899
3037
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4900
3038
|
...deserialized,
|
|
4901
|
-
};
|
|
4902
|
-
return
|
|
3039
|
+
});
|
|
3040
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4903
3041
|
};
|
|
4904
3042
|
const deserializeAws_json1_1EntitlementNotAllowedExceptionResponse = async (parsedOutput, context) => {
|
|
4905
3043
|
const body = parsedOutput.body;
|
|
4906
3044
|
const deserialized = deserializeAws_json1_1EntitlementNotAllowedException(body, context);
|
|
4907
|
-
const
|
|
4908
|
-
name: "EntitlementNotAllowedException",
|
|
4909
|
-
$fault: "client",
|
|
3045
|
+
const exception = new models_0_1.EntitlementNotAllowedException({
|
|
4910
3046
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4911
3047
|
...deserialized,
|
|
4912
|
-
};
|
|
4913
|
-
return
|
|
3048
|
+
});
|
|
3049
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4914
3050
|
};
|
|
4915
3051
|
const deserializeAws_json1_1FailedDependencyExceptionResponse = async (parsedOutput, context) => {
|
|
4916
3052
|
const body = parsedOutput.body;
|
|
4917
3053
|
const deserialized = deserializeAws_json1_1FailedDependencyException(body, context);
|
|
4918
|
-
const
|
|
4919
|
-
name: "FailedDependencyException",
|
|
4920
|
-
$fault: "client",
|
|
3054
|
+
const exception = new models_0_1.FailedDependencyException({
|
|
4921
3055
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4922
3056
|
...deserialized,
|
|
4923
|
-
};
|
|
4924
|
-
return
|
|
3057
|
+
});
|
|
3058
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4925
3059
|
};
|
|
4926
3060
|
const deserializeAws_json1_1FilterLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
4927
3061
|
const body = parsedOutput.body;
|
|
4928
3062
|
const deserialized = deserializeAws_json1_1FilterLimitExceededException(body, context);
|
|
4929
|
-
const
|
|
4930
|
-
name: "FilterLimitExceededException",
|
|
4931
|
-
$fault: "client",
|
|
3063
|
+
const exception = new models_0_1.FilterLimitExceededException({
|
|
4932
3064
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4933
3065
|
...deserialized,
|
|
4934
|
-
};
|
|
4935
|
-
return
|
|
3066
|
+
});
|
|
3067
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4936
3068
|
};
|
|
4937
3069
|
const deserializeAws_json1_1InvalidParameterValueExceptionResponse = async (parsedOutput, context) => {
|
|
4938
3070
|
const body = parsedOutput.body;
|
|
4939
3071
|
const deserialized = deserializeAws_json1_1InvalidParameterValueException(body, context);
|
|
4940
|
-
const
|
|
4941
|
-
name: "InvalidParameterValueException",
|
|
4942
|
-
$fault: "client",
|
|
3072
|
+
const exception = new models_0_1.InvalidParameterValueException({
|
|
4943
3073
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4944
3074
|
...deserialized,
|
|
4945
|
-
};
|
|
4946
|
-
return
|
|
3075
|
+
});
|
|
3076
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4947
3077
|
};
|
|
4948
3078
|
const deserializeAws_json1_1InvalidResourceStateExceptionResponse = async (parsedOutput, context) => {
|
|
4949
3079
|
const body = parsedOutput.body;
|
|
4950
3080
|
const deserialized = deserializeAws_json1_1InvalidResourceStateException(body, context);
|
|
4951
|
-
const
|
|
4952
|
-
name: "InvalidResourceStateException",
|
|
4953
|
-
$fault: "client",
|
|
3081
|
+
const exception = new models_0_1.InvalidResourceStateException({
|
|
4954
3082
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4955
3083
|
...deserialized,
|
|
4956
|
-
};
|
|
4957
|
-
return
|
|
3084
|
+
});
|
|
3085
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4958
3086
|
};
|
|
4959
3087
|
const deserializeAws_json1_1LicenseUsageExceptionResponse = async (parsedOutput, context) => {
|
|
4960
3088
|
const body = parsedOutput.body;
|
|
4961
3089
|
const deserialized = deserializeAws_json1_1LicenseUsageException(body, context);
|
|
4962
|
-
const
|
|
4963
|
-
name: "LicenseUsageException",
|
|
4964
|
-
$fault: "client",
|
|
3090
|
+
const exception = new models_0_1.LicenseUsageException({
|
|
4965
3091
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4966
3092
|
...deserialized,
|
|
4967
|
-
};
|
|
4968
|
-
return
|
|
3093
|
+
});
|
|
3094
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4969
3095
|
};
|
|
4970
3096
|
const deserializeAws_json1_1NoEntitlementsAllowedExceptionResponse = async (parsedOutput, context) => {
|
|
4971
3097
|
const body = parsedOutput.body;
|
|
4972
3098
|
const deserialized = deserializeAws_json1_1NoEntitlementsAllowedException(body, context);
|
|
4973
|
-
const
|
|
4974
|
-
name: "NoEntitlementsAllowedException",
|
|
4975
|
-
$fault: "client",
|
|
3099
|
+
const exception = new models_0_1.NoEntitlementsAllowedException({
|
|
4976
3100
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4977
3101
|
...deserialized,
|
|
4978
|
-
};
|
|
4979
|
-
return
|
|
3102
|
+
});
|
|
3103
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4980
3104
|
};
|
|
4981
3105
|
const deserializeAws_json1_1RateLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
4982
3106
|
const body = parsedOutput.body;
|
|
4983
3107
|
const deserialized = deserializeAws_json1_1RateLimitExceededException(body, context);
|
|
4984
|
-
const
|
|
4985
|
-
name: "RateLimitExceededException",
|
|
4986
|
-
$fault: "client",
|
|
3108
|
+
const exception = new models_0_1.RateLimitExceededException({
|
|
4987
3109
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4988
3110
|
...deserialized,
|
|
4989
|
-
};
|
|
4990
|
-
return
|
|
3111
|
+
});
|
|
3112
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4991
3113
|
};
|
|
4992
3114
|
const deserializeAws_json1_1RedirectExceptionResponse = async (parsedOutput, context) => {
|
|
4993
3115
|
const body = parsedOutput.body;
|
|
4994
3116
|
const deserialized = deserializeAws_json1_1RedirectException(body, context);
|
|
4995
|
-
const
|
|
4996
|
-
name: "RedirectException",
|
|
4997
|
-
$fault: "client",
|
|
3117
|
+
const exception = new models_0_1.RedirectException({
|
|
4998
3118
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4999
3119
|
...deserialized,
|
|
5000
|
-
};
|
|
5001
|
-
return
|
|
3120
|
+
});
|
|
3121
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
5002
3122
|
};
|
|
5003
3123
|
const deserializeAws_json1_1ResourceLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
5004
3124
|
const body = parsedOutput.body;
|
|
5005
3125
|
const deserialized = deserializeAws_json1_1ResourceLimitExceededException(body, context);
|
|
5006
|
-
const
|
|
5007
|
-
name: "ResourceLimitExceededException",
|
|
5008
|
-
$fault: "client",
|
|
3126
|
+
const exception = new models_0_1.ResourceLimitExceededException({
|
|
5009
3127
|
$metadata: deserializeMetadata(parsedOutput),
|
|
5010
3128
|
...deserialized,
|
|
5011
|
-
};
|
|
5012
|
-
return
|
|
3129
|
+
});
|
|
3130
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
5013
3131
|
};
|
|
5014
3132
|
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
5015
3133
|
const body = parsedOutput.body;
|
|
5016
3134
|
const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
5017
|
-
const
|
|
5018
|
-
name: "ResourceNotFoundException",
|
|
5019
|
-
$fault: "client",
|
|
3135
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
5020
3136
|
$metadata: deserializeMetadata(parsedOutput),
|
|
5021
3137
|
...deserialized,
|
|
5022
|
-
};
|
|
5023
|
-
return
|
|
3138
|
+
});
|
|
3139
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
5024
3140
|
};
|
|
5025
3141
|
const deserializeAws_json1_1ServerInternalExceptionResponse = async (parsedOutput, context) => {
|
|
5026
3142
|
const body = parsedOutput.body;
|
|
5027
3143
|
const deserialized = deserializeAws_json1_1ServerInternalException(body, context);
|
|
5028
|
-
const
|
|
5029
|
-
name: "ServerInternalException",
|
|
5030
|
-
$fault: "server",
|
|
3144
|
+
const exception = new models_0_1.ServerInternalException({
|
|
5031
3145
|
$metadata: deserializeMetadata(parsedOutput),
|
|
5032
3146
|
...deserialized,
|
|
5033
|
-
};
|
|
5034
|
-
return
|
|
3147
|
+
});
|
|
3148
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
5035
3149
|
};
|
|
5036
3150
|
const deserializeAws_json1_1UnsupportedDigitalSignatureMethodExceptionResponse = async (parsedOutput, context) => {
|
|
5037
3151
|
const body = parsedOutput.body;
|
|
5038
3152
|
const deserialized = deserializeAws_json1_1UnsupportedDigitalSignatureMethodException(body, context);
|
|
5039
|
-
const
|
|
5040
|
-
name: "UnsupportedDigitalSignatureMethodException",
|
|
5041
|
-
$fault: "client",
|
|
3153
|
+
const exception = new models_0_1.UnsupportedDigitalSignatureMethodException({
|
|
5042
3154
|
$metadata: deserializeMetadata(parsedOutput),
|
|
5043
3155
|
...deserialized,
|
|
5044
|
-
};
|
|
5045
|
-
return
|
|
3156
|
+
});
|
|
3157
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
5046
3158
|
};
|
|
5047
3159
|
const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
5048
3160
|
const body = parsedOutput.body;
|
|
5049
3161
|
const deserialized = deserializeAws_json1_1ValidationException(body, context);
|
|
5050
|
-
const
|
|
5051
|
-
name: "ValidationException",
|
|
5052
|
-
$fault: "client",
|
|
3162
|
+
const exception = new models_0_1.ValidationException({
|
|
5053
3163
|
$metadata: deserializeMetadata(parsedOutput),
|
|
5054
3164
|
...deserialized,
|
|
5055
|
-
};
|
|
5056
|
-
return
|
|
3165
|
+
});
|
|
3166
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
5057
3167
|
};
|
|
5058
3168
|
const serializeAws_json1_1AcceptGrantRequest = (input, context) => {
|
|
5059
3169
|
return {
|
|
@@ -5887,7 +3997,7 @@ const deserializeAws_json1_1AccessDeniedException = (output, context) => {
|
|
|
5887
3997
|
};
|
|
5888
3998
|
};
|
|
5889
3999
|
const deserializeAws_json1_1AllowedOperationList = (output, context) => {
|
|
5890
|
-
|
|
4000
|
+
const retVal = (output || [])
|
|
5891
4001
|
.filter((e) => e != null)
|
|
5892
4002
|
.map((entry) => {
|
|
5893
4003
|
if (entry === null) {
|
|
@@ -5895,9 +4005,10 @@ const deserializeAws_json1_1AllowedOperationList = (output, context) => {
|
|
|
5895
4005
|
}
|
|
5896
4006
|
return smithy_client_1.expectString(entry);
|
|
5897
4007
|
});
|
|
4008
|
+
return retVal;
|
|
5898
4009
|
};
|
|
5899
4010
|
const deserializeAws_json1_1ArnList = (output, context) => {
|
|
5900
|
-
|
|
4011
|
+
const retVal = (output || [])
|
|
5901
4012
|
.filter((e) => e != null)
|
|
5902
4013
|
.map((entry) => {
|
|
5903
4014
|
if (entry === null) {
|
|
@@ -5905,6 +4016,7 @@ const deserializeAws_json1_1ArnList = (output, context) => {
|
|
|
5905
4016
|
}
|
|
5906
4017
|
return smithy_client_1.expectString(entry);
|
|
5907
4018
|
});
|
|
4019
|
+
return retVal;
|
|
5908
4020
|
};
|
|
5909
4021
|
const deserializeAws_json1_1AuthorizationException = (output, context) => {
|
|
5910
4022
|
return {
|
|
@@ -5969,7 +4081,7 @@ const deserializeAws_json1_1ConsumedLicenseSummary = (output, context) => {
|
|
|
5969
4081
|
};
|
|
5970
4082
|
};
|
|
5971
4083
|
const deserializeAws_json1_1ConsumedLicenseSummaryList = (output, context) => {
|
|
5972
|
-
|
|
4084
|
+
const retVal = (output || [])
|
|
5973
4085
|
.filter((e) => e != null)
|
|
5974
4086
|
.map((entry) => {
|
|
5975
4087
|
if (entry === null) {
|
|
@@ -5977,6 +4089,7 @@ const deserializeAws_json1_1ConsumedLicenseSummaryList = (output, context) => {
|
|
|
5977
4089
|
}
|
|
5978
4090
|
return deserializeAws_json1_1ConsumedLicenseSummary(entry, context);
|
|
5979
4091
|
});
|
|
4092
|
+
return retVal;
|
|
5980
4093
|
};
|
|
5981
4094
|
const deserializeAws_json1_1ConsumptionConfiguration = (output, context) => {
|
|
5982
4095
|
return {
|
|
@@ -6085,7 +4198,7 @@ const deserializeAws_json1_1EntitlementData = (output, context) => {
|
|
|
6085
4198
|
};
|
|
6086
4199
|
};
|
|
6087
4200
|
const deserializeAws_json1_1EntitlementDataList = (output, context) => {
|
|
6088
|
-
|
|
4201
|
+
const retVal = (output || [])
|
|
6089
4202
|
.filter((e) => e != null)
|
|
6090
4203
|
.map((entry) => {
|
|
6091
4204
|
if (entry === null) {
|
|
@@ -6093,9 +4206,10 @@ const deserializeAws_json1_1EntitlementDataList = (output, context) => {
|
|
|
6093
4206
|
}
|
|
6094
4207
|
return deserializeAws_json1_1EntitlementData(entry, context);
|
|
6095
4208
|
});
|
|
4209
|
+
return retVal;
|
|
6096
4210
|
};
|
|
6097
4211
|
const deserializeAws_json1_1EntitlementList = (output, context) => {
|
|
6098
|
-
|
|
4212
|
+
const retVal = (output || [])
|
|
6099
4213
|
.filter((e) => e != null)
|
|
6100
4214
|
.map((entry) => {
|
|
6101
4215
|
if (entry === null) {
|
|
@@ -6103,6 +4217,7 @@ const deserializeAws_json1_1EntitlementList = (output, context) => {
|
|
|
6103
4217
|
}
|
|
6104
4218
|
return deserializeAws_json1_1Entitlement(entry, context);
|
|
6105
4219
|
});
|
|
4220
|
+
return retVal;
|
|
6106
4221
|
};
|
|
6107
4222
|
const deserializeAws_json1_1EntitlementNotAllowedException = (output, context) => {
|
|
6108
4223
|
return {
|
|
@@ -6118,7 +4233,7 @@ const deserializeAws_json1_1EntitlementUsage = (output, context) => {
|
|
|
6118
4233
|
};
|
|
6119
4234
|
};
|
|
6120
4235
|
const deserializeAws_json1_1EntitlementUsageList = (output, context) => {
|
|
6121
|
-
|
|
4236
|
+
const retVal = (output || [])
|
|
6122
4237
|
.filter((e) => e != null)
|
|
6123
4238
|
.map((entry) => {
|
|
6124
4239
|
if (entry === null) {
|
|
@@ -6126,6 +4241,7 @@ const deserializeAws_json1_1EntitlementUsageList = (output, context) => {
|
|
|
6126
4241
|
}
|
|
6127
4242
|
return deserializeAws_json1_1EntitlementUsage(entry, context);
|
|
6128
4243
|
});
|
|
4244
|
+
return retVal;
|
|
6129
4245
|
};
|
|
6130
4246
|
const deserializeAws_json1_1ExtendLicenseConsumptionResponse = (output, context) => {
|
|
6131
4247
|
return {
|
|
@@ -6292,7 +4408,7 @@ const deserializeAws_json1_1GrantedLicense = (output, context) => {
|
|
|
6292
4408
|
};
|
|
6293
4409
|
};
|
|
6294
4410
|
const deserializeAws_json1_1GrantedLicenseList = (output, context) => {
|
|
6295
|
-
|
|
4411
|
+
const retVal = (output || [])
|
|
6296
4412
|
.filter((e) => e != null)
|
|
6297
4413
|
.map((entry) => {
|
|
6298
4414
|
if (entry === null) {
|
|
@@ -6300,9 +4416,10 @@ const deserializeAws_json1_1GrantedLicenseList = (output, context) => {
|
|
|
6300
4416
|
}
|
|
6301
4417
|
return deserializeAws_json1_1GrantedLicense(entry, context);
|
|
6302
4418
|
});
|
|
4419
|
+
return retVal;
|
|
6303
4420
|
};
|
|
6304
4421
|
const deserializeAws_json1_1GrantList = (output, context) => {
|
|
6305
|
-
|
|
4422
|
+
const retVal = (output || [])
|
|
6306
4423
|
.filter((e) => e != null)
|
|
6307
4424
|
.map((entry) => {
|
|
6308
4425
|
if (entry === null) {
|
|
@@ -6310,6 +4427,7 @@ const deserializeAws_json1_1GrantList = (output, context) => {
|
|
|
6310
4427
|
}
|
|
6311
4428
|
return deserializeAws_json1_1Grant(entry, context);
|
|
6312
4429
|
});
|
|
4430
|
+
return retVal;
|
|
6313
4431
|
};
|
|
6314
4432
|
const deserializeAws_json1_1InvalidParameterValueException = (output, context) => {
|
|
6315
4433
|
return {
|
|
@@ -6398,7 +4516,7 @@ const deserializeAws_json1_1LicenseConfigurationAssociation = (output, context)
|
|
|
6398
4516
|
};
|
|
6399
4517
|
};
|
|
6400
4518
|
const deserializeAws_json1_1LicenseConfigurationAssociations = (output, context) => {
|
|
6401
|
-
|
|
4519
|
+
const retVal = (output || [])
|
|
6402
4520
|
.filter((e) => e != null)
|
|
6403
4521
|
.map((entry) => {
|
|
6404
4522
|
if (entry === null) {
|
|
@@ -6406,9 +4524,10 @@ const deserializeAws_json1_1LicenseConfigurationAssociations = (output, context)
|
|
|
6406
4524
|
}
|
|
6407
4525
|
return deserializeAws_json1_1LicenseConfigurationAssociation(entry, context);
|
|
6408
4526
|
});
|
|
4527
|
+
return retVal;
|
|
6409
4528
|
};
|
|
6410
4529
|
const deserializeAws_json1_1LicenseConfigurations = (output, context) => {
|
|
6411
|
-
|
|
4530
|
+
const retVal = (output || [])
|
|
6412
4531
|
.filter((e) => e != null)
|
|
6413
4532
|
.map((entry) => {
|
|
6414
4533
|
if (entry === null) {
|
|
@@ -6416,6 +4535,7 @@ const deserializeAws_json1_1LicenseConfigurations = (output, context) => {
|
|
|
6416
4535
|
}
|
|
6417
4536
|
return deserializeAws_json1_1LicenseConfiguration(entry, context);
|
|
6418
4537
|
});
|
|
4538
|
+
return retVal;
|
|
6419
4539
|
};
|
|
6420
4540
|
const deserializeAws_json1_1LicenseConfigurationUsage = (output, context) => {
|
|
6421
4541
|
return {
|
|
@@ -6430,7 +4550,7 @@ const deserializeAws_json1_1LicenseConfigurationUsage = (output, context) => {
|
|
|
6430
4550
|
};
|
|
6431
4551
|
};
|
|
6432
4552
|
const deserializeAws_json1_1LicenseConfigurationUsageList = (output, context) => {
|
|
6433
|
-
|
|
4553
|
+
const retVal = (output || [])
|
|
6434
4554
|
.filter((e) => e != null)
|
|
6435
4555
|
.map((entry) => {
|
|
6436
4556
|
if (entry === null) {
|
|
@@ -6438,6 +4558,7 @@ const deserializeAws_json1_1LicenseConfigurationUsageList = (output, context) =>
|
|
|
6438
4558
|
}
|
|
6439
4559
|
return deserializeAws_json1_1LicenseConfigurationUsage(entry, context);
|
|
6440
4560
|
});
|
|
4561
|
+
return retVal;
|
|
6441
4562
|
};
|
|
6442
4563
|
const deserializeAws_json1_1LicenseConversionContext = (output, context) => {
|
|
6443
4564
|
return {
|
|
@@ -6468,7 +4589,7 @@ const deserializeAws_json1_1LicenseConversionTask = (output, context) => {
|
|
|
6468
4589
|
};
|
|
6469
4590
|
};
|
|
6470
4591
|
const deserializeAws_json1_1LicenseConversionTasks = (output, context) => {
|
|
6471
|
-
|
|
4592
|
+
const retVal = (output || [])
|
|
6472
4593
|
.filter((e) => e != null)
|
|
6473
4594
|
.map((entry) => {
|
|
6474
4595
|
if (entry === null) {
|
|
@@ -6476,9 +4597,10 @@ const deserializeAws_json1_1LicenseConversionTasks = (output, context) => {
|
|
|
6476
4597
|
}
|
|
6477
4598
|
return deserializeAws_json1_1LicenseConversionTask(entry, context);
|
|
6478
4599
|
});
|
|
4600
|
+
return retVal;
|
|
6479
4601
|
};
|
|
6480
4602
|
const deserializeAws_json1_1LicenseList = (output, context) => {
|
|
6481
|
-
|
|
4603
|
+
const retVal = (output || [])
|
|
6482
4604
|
.filter((e) => e != null)
|
|
6483
4605
|
.map((entry) => {
|
|
6484
4606
|
if (entry === null) {
|
|
@@ -6486,6 +4608,7 @@ const deserializeAws_json1_1LicenseList = (output, context) => {
|
|
|
6486
4608
|
}
|
|
6487
4609
|
return deserializeAws_json1_1License(entry, context);
|
|
6488
4610
|
});
|
|
4611
|
+
return retVal;
|
|
6489
4612
|
};
|
|
6490
4613
|
const deserializeAws_json1_1LicenseOperationFailure = (output, context) => {
|
|
6491
4614
|
return {
|
|
@@ -6504,7 +4627,7 @@ const deserializeAws_json1_1LicenseOperationFailure = (output, context) => {
|
|
|
6504
4627
|
};
|
|
6505
4628
|
};
|
|
6506
4629
|
const deserializeAws_json1_1LicenseOperationFailureList = (output, context) => {
|
|
6507
|
-
|
|
4630
|
+
const retVal = (output || [])
|
|
6508
4631
|
.filter((e) => e != null)
|
|
6509
4632
|
.map((entry) => {
|
|
6510
4633
|
if (entry === null) {
|
|
@@ -6512,6 +4635,7 @@ const deserializeAws_json1_1LicenseOperationFailureList = (output, context) => {
|
|
|
6512
4635
|
}
|
|
6513
4636
|
return deserializeAws_json1_1LicenseOperationFailure(entry, context);
|
|
6514
4637
|
});
|
|
4638
|
+
return retVal;
|
|
6515
4639
|
};
|
|
6516
4640
|
const deserializeAws_json1_1LicenseSpecification = (output, context) => {
|
|
6517
4641
|
return {
|
|
@@ -6520,7 +4644,7 @@ const deserializeAws_json1_1LicenseSpecification = (output, context) => {
|
|
|
6520
4644
|
};
|
|
6521
4645
|
};
|
|
6522
4646
|
const deserializeAws_json1_1LicenseSpecifications = (output, context) => {
|
|
6523
|
-
|
|
4647
|
+
const retVal = (output || [])
|
|
6524
4648
|
.filter((e) => e != null)
|
|
6525
4649
|
.map((entry) => {
|
|
6526
4650
|
if (entry === null) {
|
|
@@ -6528,6 +4652,7 @@ const deserializeAws_json1_1LicenseSpecifications = (output, context) => {
|
|
|
6528
4652
|
}
|
|
6529
4653
|
return deserializeAws_json1_1LicenseSpecification(entry, context);
|
|
6530
4654
|
});
|
|
4655
|
+
return retVal;
|
|
6531
4656
|
};
|
|
6532
4657
|
const deserializeAws_json1_1LicenseUsage = (output, context) => {
|
|
6533
4658
|
return {
|
|
@@ -6667,7 +4792,7 @@ const deserializeAws_json1_1ManagedResourceSummary = (output, context) => {
|
|
|
6667
4792
|
};
|
|
6668
4793
|
};
|
|
6669
4794
|
const deserializeAws_json1_1ManagedResourceSummaryList = (output, context) => {
|
|
6670
|
-
|
|
4795
|
+
const retVal = (output || [])
|
|
6671
4796
|
.filter((e) => e != null)
|
|
6672
4797
|
.map((entry) => {
|
|
6673
4798
|
if (entry === null) {
|
|
@@ -6675,9 +4800,10 @@ const deserializeAws_json1_1ManagedResourceSummaryList = (output, context) => {
|
|
|
6675
4800
|
}
|
|
6676
4801
|
return deserializeAws_json1_1ManagedResourceSummary(entry, context);
|
|
6677
4802
|
});
|
|
4803
|
+
return retVal;
|
|
6678
4804
|
};
|
|
6679
4805
|
const deserializeAws_json1_1MaxSize3StringList = (output, context) => {
|
|
6680
|
-
|
|
4806
|
+
const retVal = (output || [])
|
|
6681
4807
|
.filter((e) => e != null)
|
|
6682
4808
|
.map((entry) => {
|
|
6683
4809
|
if (entry === null) {
|
|
@@ -6685,6 +4811,7 @@ const deserializeAws_json1_1MaxSize3StringList = (output, context) => {
|
|
|
6685
4811
|
}
|
|
6686
4812
|
return smithy_client_1.expectString(entry);
|
|
6687
4813
|
});
|
|
4814
|
+
return retVal;
|
|
6688
4815
|
};
|
|
6689
4816
|
const deserializeAws_json1_1Metadata = (output, context) => {
|
|
6690
4817
|
return {
|
|
@@ -6693,7 +4820,7 @@ const deserializeAws_json1_1Metadata = (output, context) => {
|
|
|
6693
4820
|
};
|
|
6694
4821
|
};
|
|
6695
4822
|
const deserializeAws_json1_1MetadataList = (output, context) => {
|
|
6696
|
-
|
|
4823
|
+
const retVal = (output || [])
|
|
6697
4824
|
.filter((e) => e != null)
|
|
6698
4825
|
.map((entry) => {
|
|
6699
4826
|
if (entry === null) {
|
|
@@ -6701,6 +4828,7 @@ const deserializeAws_json1_1MetadataList = (output, context) => {
|
|
|
6701
4828
|
}
|
|
6702
4829
|
return deserializeAws_json1_1Metadata(entry, context);
|
|
6703
4830
|
});
|
|
4831
|
+
return retVal;
|
|
6704
4832
|
};
|
|
6705
4833
|
const deserializeAws_json1_1NoEntitlementsAllowedException = (output, context) => {
|
|
6706
4834
|
return {
|
|
@@ -6730,7 +4858,7 @@ const deserializeAws_json1_1ProductInformationFilter = (output, context) => {
|
|
|
6730
4858
|
};
|
|
6731
4859
|
};
|
|
6732
4860
|
const deserializeAws_json1_1ProductInformationFilterList = (output, context) => {
|
|
6733
|
-
|
|
4861
|
+
const retVal = (output || [])
|
|
6734
4862
|
.filter((e) => e != null)
|
|
6735
4863
|
.map((entry) => {
|
|
6736
4864
|
if (entry === null) {
|
|
@@ -6738,9 +4866,10 @@ const deserializeAws_json1_1ProductInformationFilterList = (output, context) =>
|
|
|
6738
4866
|
}
|
|
6739
4867
|
return deserializeAws_json1_1ProductInformationFilter(entry, context);
|
|
6740
4868
|
});
|
|
4869
|
+
return retVal;
|
|
6741
4870
|
};
|
|
6742
4871
|
const deserializeAws_json1_1ProductInformationList = (output, context) => {
|
|
6743
|
-
|
|
4872
|
+
const retVal = (output || [])
|
|
6744
4873
|
.filter((e) => e != null)
|
|
6745
4874
|
.map((entry) => {
|
|
6746
4875
|
if (entry === null) {
|
|
@@ -6748,6 +4877,7 @@ const deserializeAws_json1_1ProductInformationList = (output, context) => {
|
|
|
6748
4877
|
}
|
|
6749
4878
|
return deserializeAws_json1_1ProductInformation(entry, context);
|
|
6750
4879
|
});
|
|
4880
|
+
return retVal;
|
|
6751
4881
|
};
|
|
6752
4882
|
const deserializeAws_json1_1ProvisionalConfiguration = (output, context) => {
|
|
6753
4883
|
return {
|
|
@@ -6822,7 +4952,7 @@ const deserializeAws_json1_1ReportGenerator = (output, context) => {
|
|
|
6822
4952
|
};
|
|
6823
4953
|
};
|
|
6824
4954
|
const deserializeAws_json1_1ReportGeneratorList = (output, context) => {
|
|
6825
|
-
|
|
4955
|
+
const retVal = (output || [])
|
|
6826
4956
|
.filter((e) => e != null)
|
|
6827
4957
|
.map((entry) => {
|
|
6828
4958
|
if (entry === null) {
|
|
@@ -6830,9 +4960,10 @@ const deserializeAws_json1_1ReportGeneratorList = (output, context) => {
|
|
|
6830
4960
|
}
|
|
6831
4961
|
return deserializeAws_json1_1ReportGenerator(entry, context);
|
|
6832
4962
|
});
|
|
4963
|
+
return retVal;
|
|
6833
4964
|
};
|
|
6834
4965
|
const deserializeAws_json1_1ReportTypeList = (output, context) => {
|
|
6835
|
-
|
|
4966
|
+
const retVal = (output || [])
|
|
6836
4967
|
.filter((e) => e != null)
|
|
6837
4968
|
.map((entry) => {
|
|
6838
4969
|
if (entry === null) {
|
|
@@ -6840,6 +4971,7 @@ const deserializeAws_json1_1ReportTypeList = (output, context) => {
|
|
|
6840
4971
|
}
|
|
6841
4972
|
return smithy_client_1.expectString(entry);
|
|
6842
4973
|
});
|
|
4974
|
+
return retVal;
|
|
6843
4975
|
};
|
|
6844
4976
|
const deserializeAws_json1_1ResourceInventory = (output, context) => {
|
|
6845
4977
|
return {
|
|
@@ -6852,7 +4984,7 @@ const deserializeAws_json1_1ResourceInventory = (output, context) => {
|
|
|
6852
4984
|
};
|
|
6853
4985
|
};
|
|
6854
4986
|
const deserializeAws_json1_1ResourceInventoryList = (output, context) => {
|
|
6855
|
-
|
|
4987
|
+
const retVal = (output || [])
|
|
6856
4988
|
.filter((e) => e != null)
|
|
6857
4989
|
.map((entry) => {
|
|
6858
4990
|
if (entry === null) {
|
|
@@ -6860,6 +4992,7 @@ const deserializeAws_json1_1ResourceInventoryList = (output, context) => {
|
|
|
6860
4992
|
}
|
|
6861
4993
|
return deserializeAws_json1_1ResourceInventory(entry, context);
|
|
6862
4994
|
});
|
|
4995
|
+
return retVal;
|
|
6863
4996
|
};
|
|
6864
4997
|
const deserializeAws_json1_1ResourceLimitExceededException = (output, context) => {
|
|
6865
4998
|
return {
|
|
@@ -6883,7 +5016,7 @@ const deserializeAws_json1_1ServerInternalException = (output, context) => {
|
|
|
6883
5016
|
};
|
|
6884
5017
|
};
|
|
6885
5018
|
const deserializeAws_json1_1StringList = (output, context) => {
|
|
6886
|
-
|
|
5019
|
+
const retVal = (output || [])
|
|
6887
5020
|
.filter((e) => e != null)
|
|
6888
5021
|
.map((entry) => {
|
|
6889
5022
|
if (entry === null) {
|
|
@@ -6891,6 +5024,7 @@ const deserializeAws_json1_1StringList = (output, context) => {
|
|
|
6891
5024
|
}
|
|
6892
5025
|
return smithy_client_1.expectString(entry);
|
|
6893
5026
|
});
|
|
5027
|
+
return retVal;
|
|
6894
5028
|
};
|
|
6895
5029
|
const deserializeAws_json1_1Tag = (output, context) => {
|
|
6896
5030
|
return {
|
|
@@ -6899,7 +5033,7 @@ const deserializeAws_json1_1Tag = (output, context) => {
|
|
|
6899
5033
|
};
|
|
6900
5034
|
};
|
|
6901
5035
|
const deserializeAws_json1_1TagList = (output, context) => {
|
|
6902
|
-
|
|
5036
|
+
const retVal = (output || [])
|
|
6903
5037
|
.filter((e) => e != null)
|
|
6904
5038
|
.map((entry) => {
|
|
6905
5039
|
if (entry === null) {
|
|
@@ -6907,6 +5041,7 @@ const deserializeAws_json1_1TagList = (output, context) => {
|
|
|
6907
5041
|
}
|
|
6908
5042
|
return deserializeAws_json1_1Tag(entry, context);
|
|
6909
5043
|
});
|
|
5044
|
+
return retVal;
|
|
6910
5045
|
};
|
|
6911
5046
|
const deserializeAws_json1_1TagResourceResponse = (output, context) => {
|
|
6912
5047
|
return {};
|
|
@@ -6927,7 +5062,7 @@ const deserializeAws_json1_1TokenData = (output, context) => {
|
|
|
6927
5062
|
};
|
|
6928
5063
|
};
|
|
6929
5064
|
const deserializeAws_json1_1TokenList = (output, context) => {
|
|
6930
|
-
|
|
5065
|
+
const retVal = (output || [])
|
|
6931
5066
|
.filter((e) => e != null)
|
|
6932
5067
|
.map((entry) => {
|
|
6933
5068
|
if (entry === null) {
|
|
@@ -6935,6 +5070,7 @@ const deserializeAws_json1_1TokenList = (output, context) => {
|
|
|
6935
5070
|
}
|
|
6936
5071
|
return deserializeAws_json1_1TokenData(entry, context);
|
|
6937
5072
|
});
|
|
5073
|
+
return retVal;
|
|
6938
5074
|
};
|
|
6939
5075
|
const deserializeAws_json1_1UnsupportedDigitalSignatureMethodException = (output, context) => {
|
|
6940
5076
|
return {
|