@aws-sdk/client-ses 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/SESServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +477 -4
- package/dist-cjs/protocols/Aws_query.js +494 -1516
- package/dist-es/index.js +1 -0
- package/dist-es/models/SESServiceException.js +12 -0
- package/dist-es/models/models_0.js +439 -1
- package/dist-es/protocols/Aws_query.js +1037 -1502
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/SESServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +240 -137
- package/dist-types/ts3.4/SES.d.ts +360 -0
- package/dist-types/ts3.4/SESClient.d.ts +144 -0
- package/dist-types/ts3.4/commands/CloneReceiptRuleSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateConfigurationSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateConfigurationSetEventDestinationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateConfigurationSetTrackingOptionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateCustomVerificationEmailTemplateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateReceiptFilterCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateReceiptRuleCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateReceiptRuleSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateTemplateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteConfigurationSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteConfigurationSetEventDestinationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteConfigurationSetTrackingOptionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteCustomVerificationEmailTemplateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteIdentityCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteIdentityPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteReceiptFilterCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteReceiptRuleCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteReceiptRuleSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteTemplateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteVerifiedEmailAddressCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeActiveReceiptRuleSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeConfigurationSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeReceiptRuleCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeReceiptRuleSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetAccountSendingEnabledCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetCustomVerificationEmailTemplateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetIdentityDkimAttributesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetIdentityMailFromDomainAttributesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetIdentityNotificationAttributesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetIdentityPoliciesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetIdentityVerificationAttributesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetSendQuotaCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetSendStatisticsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetTemplateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListConfigurationSetsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListCustomVerificationEmailTemplatesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListIdentitiesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListIdentityPoliciesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListReceiptFiltersCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListReceiptRuleSetsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTemplatesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListVerifiedEmailAddressesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutConfigurationSetDeliveryOptionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutIdentityPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ReorderReceiptRuleSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/SendBounceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/SendBulkTemplatedEmailCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/SendCustomVerificationEmailCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/SendEmailCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/SendRawEmailCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/SendTemplatedEmailCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/SetActiveReceiptRuleSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/SetIdentityDkimEnabledCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/SetIdentityFeedbackForwardingEnabledCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/SetIdentityHeadersInNotificationsEnabledCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/SetIdentityMailFromDomainCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/SetIdentityNotificationTopicCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/SetReceiptRulePositionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TestRenderTemplateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateAccountSendingEnabledCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateConfigurationSetEventDestinationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateConfigurationSetReputationMetricsEnabledCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateConfigurationSetSendingEnabledCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateConfigurationSetTrackingOptionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateCustomVerificationEmailTemplateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateReceiptRuleCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateTemplateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/VerifyDomainDkimCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/VerifyDomainIdentityCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/VerifyEmailAddressCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/VerifyEmailIdentityCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +71 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +7 -0
- package/dist-types/ts3.4/models/SESServiceException.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 +2220 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListCustomVerificationEmailTemplatesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListIdentitiesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +215 -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/dist-types/ts3.4/waiters/index.d.ts +1 -0
- package/dist-types/ts3.4/waiters/waitForIdentityExists.d.ts +7 -0
- package/package.json +34 -34
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read, __values } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTime as __parseRfc3339DateTime, strictParseFloat as __strictParseFloat, strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTime as __parseRfc3339DateTime, strictParseFloat as __strictParseFloat, strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { decodeHTML } from "entities";
|
|
5
5
|
import { parse as xmlParse } from "fast-xml-parser";
|
|
6
|
+
import { AccountSendingPausedException, AlreadyExistsException, CannotDeleteException, ConfigurationSetAlreadyExistsException, ConfigurationSetDoesNotExistException, ConfigurationSetSendingPausedException, CustomVerificationEmailInvalidContentException, CustomVerificationEmailTemplateAlreadyExistsException, CustomVerificationEmailTemplateDoesNotExistException, EventDestinationAlreadyExistsException, EventDestinationDoesNotExistException, FromEmailAddressNotVerifiedException, InvalidCloudWatchDestinationException, InvalidConfigurationSetException, InvalidDeliveryOptionsException, InvalidFirehoseDestinationException, InvalidLambdaFunctionException, InvalidPolicyException, InvalidRenderingParameterException, InvalidS3ConfigurationException, InvalidSNSDestinationException, InvalidSnsTopicException, InvalidTemplateException, InvalidTrackingOptionsException, LimitExceededException, MailFromDomainNotVerifiedException, MessageRejected, MissingRenderingAttributeException, ProductionAccessNotGrantedException, RuleDoesNotExistException, RuleSetDoesNotExistException, TemplateDoesNotExistException, TrackingOptionsAlreadyExistsException, TrackingOptionsDoesNotExistException, } from "../models/models_0";
|
|
7
|
+
import { SESServiceException as __BaseException } from "../models/SESServiceException";
|
|
6
8
|
export var serializeAws_queryCloneReceiptRuleSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
9
|
var headers, body;
|
|
8
10
|
return __generator(this, function (_a) {
|
|
@@ -744,16 +746,16 @@ export var deserializeAws_queryCloneReceiptRuleSetCommand = function (output, co
|
|
|
744
746
|
});
|
|
745
747
|
}); };
|
|
746
748
|
var deserializeAws_queryCloneReceiptRuleSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
747
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
748
|
-
var
|
|
749
|
-
return __generator(this, function (
|
|
750
|
-
switch (
|
|
749
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
750
|
+
var _c;
|
|
751
|
+
return __generator(this, function (_d) {
|
|
752
|
+
switch (_d.label) {
|
|
751
753
|
case 0:
|
|
752
754
|
_a = [__assign({}, output)];
|
|
753
|
-
|
|
755
|
+
_c = {};
|
|
754
756
|
return [4, parseBody(output.body, context)];
|
|
755
757
|
case 1:
|
|
756
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
758
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
757
759
|
errorCode = "UnknownError";
|
|
758
760
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
759
761
|
_b = errorCode;
|
|
@@ -766,34 +768,20 @@ var deserializeAws_queryCloneReceiptRuleSetCommandError = function (output, cont
|
|
|
766
768
|
case "com.amazonaws.ses#RuleSetDoesNotExistException": return [3, 6];
|
|
767
769
|
}
|
|
768
770
|
return [3, 8];
|
|
769
|
-
case 2:
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
case
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
case 4:
|
|
776
|
-
_d = [{}];
|
|
777
|
-
return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
778
|
-
case 5:
|
|
779
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
780
|
-
return [3, 9];
|
|
781
|
-
case 6:
|
|
782
|
-
_e = [{}];
|
|
783
|
-
return [4, deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
784
|
-
case 7:
|
|
785
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
786
|
-
return [3, 9];
|
|
771
|
+
case 2: return [4, deserializeAws_queryAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
772
|
+
case 3: throw _d.sent();
|
|
773
|
+
case 4: return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
774
|
+
case 5: throw _d.sent();
|
|
775
|
+
case 6: return [4, deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
776
|
+
case 7: throw _d.sent();
|
|
787
777
|
case 8:
|
|
788
778
|
parsedBody = parsedOutput.body;
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
response.
|
|
795
|
-
delete response.Message;
|
|
796
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
779
|
+
response = new __BaseException({
|
|
780
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
781
|
+
$fault: "client",
|
|
782
|
+
$metadata: deserializeMetadata(output),
|
|
783
|
+
});
|
|
784
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
797
785
|
}
|
|
798
786
|
});
|
|
799
787
|
}); };
|
|
@@ -816,16 +804,16 @@ export var deserializeAws_queryCreateConfigurationSetCommand = function (output,
|
|
|
816
804
|
});
|
|
817
805
|
}); };
|
|
818
806
|
var deserializeAws_queryCreateConfigurationSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
819
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
820
|
-
var
|
|
821
|
-
return __generator(this, function (
|
|
822
|
-
switch (
|
|
807
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
808
|
+
var _c;
|
|
809
|
+
return __generator(this, function (_d) {
|
|
810
|
+
switch (_d.label) {
|
|
823
811
|
case 0:
|
|
824
812
|
_a = [__assign({}, output)];
|
|
825
|
-
|
|
813
|
+
_c = {};
|
|
826
814
|
return [4, parseBody(output.body, context)];
|
|
827
815
|
case 1:
|
|
828
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
816
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
829
817
|
errorCode = "UnknownError";
|
|
830
818
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
831
819
|
_b = errorCode;
|
|
@@ -838,34 +826,20 @@ var deserializeAws_queryCreateConfigurationSetCommandError = function (output, c
|
|
|
838
826
|
case "com.amazonaws.ses#LimitExceededException": return [3, 6];
|
|
839
827
|
}
|
|
840
828
|
return [3, 8];
|
|
841
|
-
case 2:
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
case
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
case 4:
|
|
848
|
-
_d = [{}];
|
|
849
|
-
return [4, deserializeAws_queryInvalidConfigurationSetExceptionResponse(parsedOutput, context)];
|
|
850
|
-
case 5:
|
|
851
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
852
|
-
return [3, 9];
|
|
853
|
-
case 6:
|
|
854
|
-
_e = [{}];
|
|
855
|
-
return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
856
|
-
case 7:
|
|
857
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
858
|
-
return [3, 9];
|
|
829
|
+
case 2: return [4, deserializeAws_queryConfigurationSetAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
830
|
+
case 3: throw _d.sent();
|
|
831
|
+
case 4: return [4, deserializeAws_queryInvalidConfigurationSetExceptionResponse(parsedOutput, context)];
|
|
832
|
+
case 5: throw _d.sent();
|
|
833
|
+
case 6: return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
834
|
+
case 7: throw _d.sent();
|
|
859
835
|
case 8:
|
|
860
836
|
parsedBody = parsedOutput.body;
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
response.
|
|
867
|
-
delete response.Message;
|
|
868
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
837
|
+
response = new __BaseException({
|
|
838
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
839
|
+
$fault: "client",
|
|
840
|
+
$metadata: deserializeMetadata(output),
|
|
841
|
+
});
|
|
842
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
869
843
|
}
|
|
870
844
|
});
|
|
871
845
|
}); };
|
|
@@ -888,16 +862,16 @@ export var deserializeAws_queryCreateConfigurationSetEventDestinationCommand = f
|
|
|
888
862
|
});
|
|
889
863
|
}); };
|
|
890
864
|
var deserializeAws_queryCreateConfigurationSetEventDestinationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
891
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
892
|
-
var
|
|
893
|
-
return __generator(this, function (
|
|
894
|
-
switch (
|
|
865
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
866
|
+
var _c;
|
|
867
|
+
return __generator(this, function (_d) {
|
|
868
|
+
switch (_d.label) {
|
|
895
869
|
case 0:
|
|
896
870
|
_a = [__assign({}, output)];
|
|
897
|
-
|
|
871
|
+
_c = {};
|
|
898
872
|
return [4, parseBody(output.body, context)];
|
|
899
873
|
case 1:
|
|
900
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
874
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
901
875
|
errorCode = "UnknownError";
|
|
902
876
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
903
877
|
_b = errorCode;
|
|
@@ -916,52 +890,26 @@ var deserializeAws_queryCreateConfigurationSetEventDestinationCommandError = fun
|
|
|
916
890
|
case "com.amazonaws.ses#LimitExceededException": return [3, 12];
|
|
917
891
|
}
|
|
918
892
|
return [3, 14];
|
|
919
|
-
case 2:
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
case
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
case 4
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
case
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
case 6:
|
|
932
|
-
_e = [{}];
|
|
933
|
-
return [4, deserializeAws_queryInvalidCloudWatchDestinationExceptionResponse(parsedOutput, context)];
|
|
934
|
-
case 7:
|
|
935
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
936
|
-
return [3, 15];
|
|
937
|
-
case 8:
|
|
938
|
-
_f = [{}];
|
|
939
|
-
return [4, deserializeAws_queryInvalidFirehoseDestinationExceptionResponse(parsedOutput, context)];
|
|
940
|
-
case 9:
|
|
941
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
942
|
-
return [3, 15];
|
|
943
|
-
case 10:
|
|
944
|
-
_g = [{}];
|
|
945
|
-
return [4, deserializeAws_queryInvalidSNSDestinationExceptionResponse(parsedOutput, context)];
|
|
946
|
-
case 11:
|
|
947
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
948
|
-
return [3, 15];
|
|
949
|
-
case 12:
|
|
950
|
-
_h = [{}];
|
|
951
|
-
return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
952
|
-
case 13:
|
|
953
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
954
|
-
return [3, 15];
|
|
893
|
+
case 2: return [4, deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
894
|
+
case 3: throw _d.sent();
|
|
895
|
+
case 4: return [4, deserializeAws_queryEventDestinationAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
896
|
+
case 5: throw _d.sent();
|
|
897
|
+
case 6: return [4, deserializeAws_queryInvalidCloudWatchDestinationExceptionResponse(parsedOutput, context)];
|
|
898
|
+
case 7: throw _d.sent();
|
|
899
|
+
case 8: return [4, deserializeAws_queryInvalidFirehoseDestinationExceptionResponse(parsedOutput, context)];
|
|
900
|
+
case 9: throw _d.sent();
|
|
901
|
+
case 10: return [4, deserializeAws_queryInvalidSNSDestinationExceptionResponse(parsedOutput, context)];
|
|
902
|
+
case 11: throw _d.sent();
|
|
903
|
+
case 12: return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
904
|
+
case 13: throw _d.sent();
|
|
955
905
|
case 14:
|
|
956
906
|
parsedBody = parsedOutput.body;
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
response.
|
|
963
|
-
delete response.Message;
|
|
964
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
907
|
+
response = new __BaseException({
|
|
908
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
909
|
+
$fault: "client",
|
|
910
|
+
$metadata: deserializeMetadata(output),
|
|
911
|
+
});
|
|
912
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
965
913
|
}
|
|
966
914
|
});
|
|
967
915
|
}); };
|
|
@@ -984,16 +932,16 @@ export var deserializeAws_queryCreateConfigurationSetTrackingOptionsCommand = fu
|
|
|
984
932
|
});
|
|
985
933
|
}); };
|
|
986
934
|
var deserializeAws_queryCreateConfigurationSetTrackingOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
987
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
988
|
-
var
|
|
989
|
-
return __generator(this, function (
|
|
990
|
-
switch (
|
|
935
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
936
|
+
var _c;
|
|
937
|
+
return __generator(this, function (_d) {
|
|
938
|
+
switch (_d.label) {
|
|
991
939
|
case 0:
|
|
992
940
|
_a = [__assign({}, output)];
|
|
993
|
-
|
|
941
|
+
_c = {};
|
|
994
942
|
return [4, parseBody(output.body, context)];
|
|
995
943
|
case 1:
|
|
996
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
944
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
997
945
|
errorCode = "UnknownError";
|
|
998
946
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
999
947
|
_b = errorCode;
|
|
@@ -1006,34 +954,20 @@ var deserializeAws_queryCreateConfigurationSetTrackingOptionsCommandError = func
|
|
|
1006
954
|
case "com.amazonaws.ses#TrackingOptionsAlreadyExistsException": return [3, 6];
|
|
1007
955
|
}
|
|
1008
956
|
return [3, 8];
|
|
1009
|
-
case 2:
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
case
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
case 4:
|
|
1016
|
-
_d = [{}];
|
|
1017
|
-
return [4, deserializeAws_queryInvalidTrackingOptionsExceptionResponse(parsedOutput, context)];
|
|
1018
|
-
case 5:
|
|
1019
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1020
|
-
return [3, 9];
|
|
1021
|
-
case 6:
|
|
1022
|
-
_e = [{}];
|
|
1023
|
-
return [4, deserializeAws_queryTrackingOptionsAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
1024
|
-
case 7:
|
|
1025
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1026
|
-
return [3, 9];
|
|
957
|
+
case 2: return [4, deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
958
|
+
case 3: throw _d.sent();
|
|
959
|
+
case 4: return [4, deserializeAws_queryInvalidTrackingOptionsExceptionResponse(parsedOutput, context)];
|
|
960
|
+
case 5: throw _d.sent();
|
|
961
|
+
case 6: return [4, deserializeAws_queryTrackingOptionsAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
962
|
+
case 7: throw _d.sent();
|
|
1027
963
|
case 8:
|
|
1028
964
|
parsedBody = parsedOutput.body;
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
response.
|
|
1035
|
-
delete response.Message;
|
|
1036
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
965
|
+
response = new __BaseException({
|
|
966
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
967
|
+
$fault: "client",
|
|
968
|
+
$metadata: deserializeMetadata(output),
|
|
969
|
+
});
|
|
970
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1037
971
|
}
|
|
1038
972
|
});
|
|
1039
973
|
}); };
|
|
@@ -1056,16 +990,16 @@ export var deserializeAws_queryCreateCustomVerificationEmailTemplateCommand = fu
|
|
|
1056
990
|
});
|
|
1057
991
|
}); };
|
|
1058
992
|
var deserializeAws_queryCreateCustomVerificationEmailTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1059
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1060
|
-
var
|
|
1061
|
-
return __generator(this, function (
|
|
1062
|
-
switch (
|
|
993
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
994
|
+
var _c;
|
|
995
|
+
return __generator(this, function (_d) {
|
|
996
|
+
switch (_d.label) {
|
|
1063
997
|
case 0:
|
|
1064
998
|
_a = [__assign({}, output)];
|
|
1065
|
-
|
|
999
|
+
_c = {};
|
|
1066
1000
|
return [4, parseBody(output.body, context)];
|
|
1067
1001
|
case 1:
|
|
1068
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1002
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1069
1003
|
errorCode = "UnknownError";
|
|
1070
1004
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1071
1005
|
_b = errorCode;
|
|
@@ -1080,40 +1014,22 @@ var deserializeAws_queryCreateCustomVerificationEmailTemplateCommandError = func
|
|
|
1080
1014
|
case "com.amazonaws.ses#LimitExceededException": return [3, 8];
|
|
1081
1015
|
}
|
|
1082
1016
|
return [3, 10];
|
|
1083
|
-
case 2:
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
case
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
case 4
|
|
1090
|
-
|
|
1091
|
-
return [4, deserializeAws_queryCustomVerificationEmailTemplateAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
1092
|
-
case 5:
|
|
1093
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1094
|
-
return [3, 11];
|
|
1095
|
-
case 6:
|
|
1096
|
-
_e = [{}];
|
|
1097
|
-
return [4, deserializeAws_queryFromEmailAddressNotVerifiedExceptionResponse(parsedOutput, context)];
|
|
1098
|
-
case 7:
|
|
1099
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1100
|
-
return [3, 11];
|
|
1101
|
-
case 8:
|
|
1102
|
-
_f = [{}];
|
|
1103
|
-
return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1104
|
-
case 9:
|
|
1105
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1106
|
-
return [3, 11];
|
|
1017
|
+
case 2: return [4, deserializeAws_queryCustomVerificationEmailInvalidContentExceptionResponse(parsedOutput, context)];
|
|
1018
|
+
case 3: throw _d.sent();
|
|
1019
|
+
case 4: return [4, deserializeAws_queryCustomVerificationEmailTemplateAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
1020
|
+
case 5: throw _d.sent();
|
|
1021
|
+
case 6: return [4, deserializeAws_queryFromEmailAddressNotVerifiedExceptionResponse(parsedOutput, context)];
|
|
1022
|
+
case 7: throw _d.sent();
|
|
1023
|
+
case 8: return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1024
|
+
case 9: throw _d.sent();
|
|
1107
1025
|
case 10:
|
|
1108
1026
|
parsedBody = parsedOutput.body;
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
response.
|
|
1115
|
-
delete response.Message;
|
|
1116
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1027
|
+
response = new __BaseException({
|
|
1028
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1029
|
+
$fault: "client",
|
|
1030
|
+
$metadata: deserializeMetadata(output),
|
|
1031
|
+
});
|
|
1032
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1117
1033
|
}
|
|
1118
1034
|
});
|
|
1119
1035
|
}); };
|
|
@@ -1136,16 +1052,16 @@ export var deserializeAws_queryCreateReceiptFilterCommand = function (output, co
|
|
|
1136
1052
|
});
|
|
1137
1053
|
}); };
|
|
1138
1054
|
var deserializeAws_queryCreateReceiptFilterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1139
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1140
|
-
var
|
|
1141
|
-
return __generator(this, function (
|
|
1142
|
-
switch (
|
|
1055
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1056
|
+
var _c;
|
|
1057
|
+
return __generator(this, function (_d) {
|
|
1058
|
+
switch (_d.label) {
|
|
1143
1059
|
case 0:
|
|
1144
1060
|
_a = [__assign({}, output)];
|
|
1145
|
-
|
|
1061
|
+
_c = {};
|
|
1146
1062
|
return [4, parseBody(output.body, context)];
|
|
1147
1063
|
case 1:
|
|
1148
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1064
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1149
1065
|
errorCode = "UnknownError";
|
|
1150
1066
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1151
1067
|
_b = errorCode;
|
|
@@ -1156,28 +1072,18 @@ var deserializeAws_queryCreateReceiptFilterCommandError = function (output, cont
|
|
|
1156
1072
|
case "com.amazonaws.ses#LimitExceededException": return [3, 4];
|
|
1157
1073
|
}
|
|
1158
1074
|
return [3, 6];
|
|
1159
|
-
case 2:
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
case
|
|
1163
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1164
|
-
return [3, 7];
|
|
1165
|
-
case 4:
|
|
1166
|
-
_d = [{}];
|
|
1167
|
-
return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1168
|
-
case 5:
|
|
1169
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1170
|
-
return [3, 7];
|
|
1075
|
+
case 2: return [4, deserializeAws_queryAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
1076
|
+
case 3: throw _d.sent();
|
|
1077
|
+
case 4: return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1078
|
+
case 5: throw _d.sent();
|
|
1171
1079
|
case 6:
|
|
1172
1080
|
parsedBody = parsedOutput.body;
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
response.
|
|
1179
|
-
delete response.Message;
|
|
1180
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1081
|
+
response = new __BaseException({
|
|
1082
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1083
|
+
$fault: "client",
|
|
1084
|
+
$metadata: deserializeMetadata(output),
|
|
1085
|
+
});
|
|
1086
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1181
1087
|
}
|
|
1182
1088
|
});
|
|
1183
1089
|
}); };
|
|
@@ -1200,16 +1106,16 @@ export var deserializeAws_queryCreateReceiptRuleCommand = function (output, cont
|
|
|
1200
1106
|
});
|
|
1201
1107
|
}); };
|
|
1202
1108
|
var deserializeAws_queryCreateReceiptRuleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1203
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1204
|
-
var
|
|
1205
|
-
return __generator(this, function (
|
|
1206
|
-
switch (
|
|
1109
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1110
|
+
var _c;
|
|
1111
|
+
return __generator(this, function (_d) {
|
|
1112
|
+
switch (_d.label) {
|
|
1207
1113
|
case 0:
|
|
1208
1114
|
_a = [__assign({}, output)];
|
|
1209
|
-
|
|
1115
|
+
_c = {};
|
|
1210
1116
|
return [4, parseBody(output.body, context)];
|
|
1211
1117
|
case 1:
|
|
1212
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1118
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1213
1119
|
errorCode = "UnknownError";
|
|
1214
1120
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1215
1121
|
_b = errorCode;
|
|
@@ -1230,58 +1136,28 @@ var deserializeAws_queryCreateReceiptRuleCommandError = function (output, contex
|
|
|
1230
1136
|
case "com.amazonaws.ses#RuleSetDoesNotExistException": return [3, 14];
|
|
1231
1137
|
}
|
|
1232
1138
|
return [3, 16];
|
|
1233
|
-
case 2:
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
case
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
case 4
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
case
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
case
|
|
1246
|
-
|
|
1247
|
-
return [4, deserializeAws_queryInvalidS3ConfigurationExceptionResponse(parsedOutput, context)];
|
|
1248
|
-
case 7:
|
|
1249
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1250
|
-
return [3, 17];
|
|
1251
|
-
case 8:
|
|
1252
|
-
_f = [{}];
|
|
1253
|
-
return [4, deserializeAws_queryInvalidSnsTopicExceptionResponse(parsedOutput, context)];
|
|
1254
|
-
case 9:
|
|
1255
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1256
|
-
return [3, 17];
|
|
1257
|
-
case 10:
|
|
1258
|
-
_g = [{}];
|
|
1259
|
-
return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1260
|
-
case 11:
|
|
1261
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1262
|
-
return [3, 17];
|
|
1263
|
-
case 12:
|
|
1264
|
-
_h = [{}];
|
|
1265
|
-
return [4, deserializeAws_queryRuleDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
1266
|
-
case 13:
|
|
1267
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1268
|
-
return [3, 17];
|
|
1269
|
-
case 14:
|
|
1270
|
-
_j = [{}];
|
|
1271
|
-
return [4, deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
1272
|
-
case 15:
|
|
1273
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1274
|
-
return [3, 17];
|
|
1139
|
+
case 2: return [4, deserializeAws_queryAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
1140
|
+
case 3: throw _d.sent();
|
|
1141
|
+
case 4: return [4, deserializeAws_queryInvalidLambdaFunctionExceptionResponse(parsedOutput, context)];
|
|
1142
|
+
case 5: throw _d.sent();
|
|
1143
|
+
case 6: return [4, deserializeAws_queryInvalidS3ConfigurationExceptionResponse(parsedOutput, context)];
|
|
1144
|
+
case 7: throw _d.sent();
|
|
1145
|
+
case 8: return [4, deserializeAws_queryInvalidSnsTopicExceptionResponse(parsedOutput, context)];
|
|
1146
|
+
case 9: throw _d.sent();
|
|
1147
|
+
case 10: return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1148
|
+
case 11: throw _d.sent();
|
|
1149
|
+
case 12: return [4, deserializeAws_queryRuleDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
1150
|
+
case 13: throw _d.sent();
|
|
1151
|
+
case 14: return [4, deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
1152
|
+
case 15: throw _d.sent();
|
|
1275
1153
|
case 16:
|
|
1276
1154
|
parsedBody = parsedOutput.body;
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
response.
|
|
1283
|
-
delete response.Message;
|
|
1284
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1155
|
+
response = new __BaseException({
|
|
1156
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1157
|
+
$fault: "client",
|
|
1158
|
+
$metadata: deserializeMetadata(output),
|
|
1159
|
+
});
|
|
1160
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1285
1161
|
}
|
|
1286
1162
|
});
|
|
1287
1163
|
}); };
|
|
@@ -1304,16 +1180,16 @@ export var deserializeAws_queryCreateReceiptRuleSetCommand = function (output, c
|
|
|
1304
1180
|
});
|
|
1305
1181
|
}); };
|
|
1306
1182
|
var deserializeAws_queryCreateReceiptRuleSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1307
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1308
|
-
var
|
|
1309
|
-
return __generator(this, function (
|
|
1310
|
-
switch (
|
|
1183
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1184
|
+
var _c;
|
|
1185
|
+
return __generator(this, function (_d) {
|
|
1186
|
+
switch (_d.label) {
|
|
1311
1187
|
case 0:
|
|
1312
1188
|
_a = [__assign({}, output)];
|
|
1313
|
-
|
|
1189
|
+
_c = {};
|
|
1314
1190
|
return [4, parseBody(output.body, context)];
|
|
1315
1191
|
case 1:
|
|
1316
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1192
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1317
1193
|
errorCode = "UnknownError";
|
|
1318
1194
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1319
1195
|
_b = errorCode;
|
|
@@ -1324,28 +1200,18 @@ var deserializeAws_queryCreateReceiptRuleSetCommandError = function (output, con
|
|
|
1324
1200
|
case "com.amazonaws.ses#LimitExceededException": return [3, 4];
|
|
1325
1201
|
}
|
|
1326
1202
|
return [3, 6];
|
|
1327
|
-
case 2:
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
case
|
|
1331
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1332
|
-
return [3, 7];
|
|
1333
|
-
case 4:
|
|
1334
|
-
_d = [{}];
|
|
1335
|
-
return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1336
|
-
case 5:
|
|
1337
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1338
|
-
return [3, 7];
|
|
1203
|
+
case 2: return [4, deserializeAws_queryAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
1204
|
+
case 3: throw _d.sent();
|
|
1205
|
+
case 4: return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1206
|
+
case 5: throw _d.sent();
|
|
1339
1207
|
case 6:
|
|
1340
1208
|
parsedBody = parsedOutput.body;
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
response.
|
|
1347
|
-
delete response.Message;
|
|
1348
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1209
|
+
response = new __BaseException({
|
|
1210
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1211
|
+
$fault: "client",
|
|
1212
|
+
$metadata: deserializeMetadata(output),
|
|
1213
|
+
});
|
|
1214
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1349
1215
|
}
|
|
1350
1216
|
});
|
|
1351
1217
|
}); };
|
|
@@ -1368,16 +1234,16 @@ export var deserializeAws_queryCreateTemplateCommand = function (output, context
|
|
|
1368
1234
|
});
|
|
1369
1235
|
}); };
|
|
1370
1236
|
var deserializeAws_queryCreateTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1371
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1372
|
-
var
|
|
1373
|
-
return __generator(this, function (
|
|
1374
|
-
switch (
|
|
1237
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1238
|
+
var _c;
|
|
1239
|
+
return __generator(this, function (_d) {
|
|
1240
|
+
switch (_d.label) {
|
|
1375
1241
|
case 0:
|
|
1376
1242
|
_a = [__assign({}, output)];
|
|
1377
|
-
|
|
1243
|
+
_c = {};
|
|
1378
1244
|
return [4, parseBody(output.body, context)];
|
|
1379
1245
|
case 1:
|
|
1380
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1246
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1381
1247
|
errorCode = "UnknownError";
|
|
1382
1248
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1383
1249
|
_b = errorCode;
|
|
@@ -1390,34 +1256,20 @@ var deserializeAws_queryCreateTemplateCommandError = function (output, context)
|
|
|
1390
1256
|
case "com.amazonaws.ses#LimitExceededException": return [3, 6];
|
|
1391
1257
|
}
|
|
1392
1258
|
return [3, 8];
|
|
1393
|
-
case 2:
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
case
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
case 4:
|
|
1400
|
-
_d = [{}];
|
|
1401
|
-
return [4, deserializeAws_queryInvalidTemplateExceptionResponse(parsedOutput, context)];
|
|
1402
|
-
case 5:
|
|
1403
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1404
|
-
return [3, 9];
|
|
1405
|
-
case 6:
|
|
1406
|
-
_e = [{}];
|
|
1407
|
-
return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1408
|
-
case 7:
|
|
1409
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1410
|
-
return [3, 9];
|
|
1259
|
+
case 2: return [4, deserializeAws_queryAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
1260
|
+
case 3: throw _d.sent();
|
|
1261
|
+
case 4: return [4, deserializeAws_queryInvalidTemplateExceptionResponse(parsedOutput, context)];
|
|
1262
|
+
case 5: throw _d.sent();
|
|
1263
|
+
case 6: return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1264
|
+
case 7: throw _d.sent();
|
|
1411
1265
|
case 8:
|
|
1412
1266
|
parsedBody = parsedOutput.body;
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
response.
|
|
1419
|
-
delete response.Message;
|
|
1420
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1267
|
+
response = new __BaseException({
|
|
1268
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1269
|
+
$fault: "client",
|
|
1270
|
+
$metadata: deserializeMetadata(output),
|
|
1271
|
+
});
|
|
1272
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1421
1273
|
}
|
|
1422
1274
|
});
|
|
1423
1275
|
}); };
|
|
@@ -1440,16 +1292,16 @@ export var deserializeAws_queryDeleteConfigurationSetCommand = function (output,
|
|
|
1440
1292
|
});
|
|
1441
1293
|
}); };
|
|
1442
1294
|
var deserializeAws_queryDeleteConfigurationSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1443
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1444
|
-
var
|
|
1445
|
-
return __generator(this, function (
|
|
1446
|
-
switch (
|
|
1295
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1296
|
+
var _c;
|
|
1297
|
+
return __generator(this, function (_d) {
|
|
1298
|
+
switch (_d.label) {
|
|
1447
1299
|
case 0:
|
|
1448
1300
|
_a = [__assign({}, output)];
|
|
1449
|
-
|
|
1301
|
+
_c = {};
|
|
1450
1302
|
return [4, parseBody(output.body, context)];
|
|
1451
1303
|
case 1:
|
|
1452
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1304
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1453
1305
|
errorCode = "UnknownError";
|
|
1454
1306
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1455
1307
|
_b = errorCode;
|
|
@@ -1458,22 +1310,16 @@ var deserializeAws_queryDeleteConfigurationSetCommandError = function (output, c
|
|
|
1458
1310
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException": return [3, 2];
|
|
1459
1311
|
}
|
|
1460
1312
|
return [3, 4];
|
|
1461
|
-
case 2:
|
|
1462
|
-
|
|
1463
|
-
return [4, deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
1464
|
-
case 3:
|
|
1465
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1466
|
-
return [3, 5];
|
|
1313
|
+
case 2: return [4, deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
1314
|
+
case 3: throw _d.sent();
|
|
1467
1315
|
case 4:
|
|
1468
1316
|
parsedBody = parsedOutput.body;
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
response.
|
|
1475
|
-
delete response.Message;
|
|
1476
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1317
|
+
response = new __BaseException({
|
|
1318
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1319
|
+
$fault: "client",
|
|
1320
|
+
$metadata: deserializeMetadata(output),
|
|
1321
|
+
});
|
|
1322
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1477
1323
|
}
|
|
1478
1324
|
});
|
|
1479
1325
|
}); };
|
|
@@ -1496,16 +1342,16 @@ export var deserializeAws_queryDeleteConfigurationSetEventDestinationCommand = f
|
|
|
1496
1342
|
});
|
|
1497
1343
|
}); };
|
|
1498
1344
|
var deserializeAws_queryDeleteConfigurationSetEventDestinationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1499
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1500
|
-
var
|
|
1501
|
-
return __generator(this, function (
|
|
1502
|
-
switch (
|
|
1345
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1346
|
+
var _c;
|
|
1347
|
+
return __generator(this, function (_d) {
|
|
1348
|
+
switch (_d.label) {
|
|
1503
1349
|
case 0:
|
|
1504
1350
|
_a = [__assign({}, output)];
|
|
1505
|
-
|
|
1351
|
+
_c = {};
|
|
1506
1352
|
return [4, parseBody(output.body, context)];
|
|
1507
1353
|
case 1:
|
|
1508
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1354
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1509
1355
|
errorCode = "UnknownError";
|
|
1510
1356
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1511
1357
|
_b = errorCode;
|
|
@@ -1516,28 +1362,18 @@ var deserializeAws_queryDeleteConfigurationSetEventDestinationCommandError = fun
|
|
|
1516
1362
|
case "com.amazonaws.ses#EventDestinationDoesNotExistException": return [3, 4];
|
|
1517
1363
|
}
|
|
1518
1364
|
return [3, 6];
|
|
1519
|
-
case 2:
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
case
|
|
1523
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1524
|
-
return [3, 7];
|
|
1525
|
-
case 4:
|
|
1526
|
-
_d = [{}];
|
|
1527
|
-
return [4, deserializeAws_queryEventDestinationDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
1528
|
-
case 5:
|
|
1529
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1530
|
-
return [3, 7];
|
|
1365
|
+
case 2: return [4, deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
1366
|
+
case 3: throw _d.sent();
|
|
1367
|
+
case 4: return [4, deserializeAws_queryEventDestinationDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
1368
|
+
case 5: throw _d.sent();
|
|
1531
1369
|
case 6:
|
|
1532
1370
|
parsedBody = parsedOutput.body;
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
response.
|
|
1539
|
-
delete response.Message;
|
|
1540
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1371
|
+
response = new __BaseException({
|
|
1372
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1373
|
+
$fault: "client",
|
|
1374
|
+
$metadata: deserializeMetadata(output),
|
|
1375
|
+
});
|
|
1376
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1541
1377
|
}
|
|
1542
1378
|
});
|
|
1543
1379
|
}); };
|
|
@@ -1560,16 +1396,16 @@ export var deserializeAws_queryDeleteConfigurationSetTrackingOptionsCommand = fu
|
|
|
1560
1396
|
});
|
|
1561
1397
|
}); };
|
|
1562
1398
|
var deserializeAws_queryDeleteConfigurationSetTrackingOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1563
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1564
|
-
var
|
|
1565
|
-
return __generator(this, function (
|
|
1566
|
-
switch (
|
|
1399
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1400
|
+
var _c;
|
|
1401
|
+
return __generator(this, function (_d) {
|
|
1402
|
+
switch (_d.label) {
|
|
1567
1403
|
case 0:
|
|
1568
1404
|
_a = [__assign({}, output)];
|
|
1569
|
-
|
|
1405
|
+
_c = {};
|
|
1570
1406
|
return [4, parseBody(output.body, context)];
|
|
1571
1407
|
case 1:
|
|
1572
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1408
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1573
1409
|
errorCode = "UnknownError";
|
|
1574
1410
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1575
1411
|
_b = errorCode;
|
|
@@ -1580,28 +1416,18 @@ var deserializeAws_queryDeleteConfigurationSetTrackingOptionsCommandError = func
|
|
|
1580
1416
|
case "com.amazonaws.ses#TrackingOptionsDoesNotExistException": return [3, 4];
|
|
1581
1417
|
}
|
|
1582
1418
|
return [3, 6];
|
|
1583
|
-
case 2:
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
case
|
|
1587
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1588
|
-
return [3, 7];
|
|
1589
|
-
case 4:
|
|
1590
|
-
_d = [{}];
|
|
1591
|
-
return [4, deserializeAws_queryTrackingOptionsDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
1592
|
-
case 5:
|
|
1593
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1594
|
-
return [3, 7];
|
|
1419
|
+
case 2: return [4, deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
1420
|
+
case 3: throw _d.sent();
|
|
1421
|
+
case 4: return [4, deserializeAws_queryTrackingOptionsDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
1422
|
+
case 5: throw _d.sent();
|
|
1595
1423
|
case 6:
|
|
1596
1424
|
parsedBody = parsedOutput.body;
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
response.
|
|
1603
|
-
delete response.Message;
|
|
1604
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1425
|
+
response = new __BaseException({
|
|
1426
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1427
|
+
$fault: "client",
|
|
1428
|
+
$metadata: deserializeMetadata(output),
|
|
1429
|
+
});
|
|
1430
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1605
1431
|
}
|
|
1606
1432
|
});
|
|
1607
1433
|
}); };
|
|
@@ -1624,7 +1450,7 @@ export var deserializeAws_queryDeleteCustomVerificationEmailTemplateCommand = fu
|
|
|
1624
1450
|
});
|
|
1625
1451
|
}); };
|
|
1626
1452
|
var deserializeAws_queryDeleteCustomVerificationEmailTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1627
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
1453
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
1628
1454
|
var _b;
|
|
1629
1455
|
return __generator(this, function (_c) {
|
|
1630
1456
|
switch (_c.label) {
|
|
@@ -1639,13 +1465,14 @@ var deserializeAws_queryDeleteCustomVerificationEmailTemplateCommandError = func
|
|
|
1639
1465
|
switch (errorCode) {
|
|
1640
1466
|
default:
|
|
1641
1467
|
parsedBody = parsedOutput.body;
|
|
1642
|
-
|
|
1643
|
-
|
|
1468
|
+
response = new __BaseException({
|
|
1469
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1470
|
+
$fault: "client",
|
|
1471
|
+
$metadata: deserializeMetadata(output),
|
|
1472
|
+
});
|
|
1473
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1644
1474
|
}
|
|
1645
|
-
|
|
1646
|
-
response.message = message;
|
|
1647
|
-
delete response.Message;
|
|
1648
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1475
|
+
return [2];
|
|
1649
1476
|
}
|
|
1650
1477
|
});
|
|
1651
1478
|
}); };
|
|
@@ -1668,7 +1495,7 @@ export var deserializeAws_queryDeleteIdentityCommand = function (output, context
|
|
|
1668
1495
|
});
|
|
1669
1496
|
}); };
|
|
1670
1497
|
var deserializeAws_queryDeleteIdentityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1671
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
1498
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
1672
1499
|
var _b;
|
|
1673
1500
|
return __generator(this, function (_c) {
|
|
1674
1501
|
switch (_c.label) {
|
|
@@ -1683,13 +1510,14 @@ var deserializeAws_queryDeleteIdentityCommandError = function (output, context)
|
|
|
1683
1510
|
switch (errorCode) {
|
|
1684
1511
|
default:
|
|
1685
1512
|
parsedBody = parsedOutput.body;
|
|
1686
|
-
|
|
1687
|
-
|
|
1513
|
+
response = new __BaseException({
|
|
1514
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1515
|
+
$fault: "client",
|
|
1516
|
+
$metadata: deserializeMetadata(output),
|
|
1517
|
+
});
|
|
1518
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1688
1519
|
}
|
|
1689
|
-
|
|
1690
|
-
response.message = message;
|
|
1691
|
-
delete response.Message;
|
|
1692
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1520
|
+
return [2];
|
|
1693
1521
|
}
|
|
1694
1522
|
});
|
|
1695
1523
|
}); };
|
|
@@ -1712,7 +1540,7 @@ export var deserializeAws_queryDeleteIdentityPolicyCommand = function (output, c
|
|
|
1712
1540
|
});
|
|
1713
1541
|
}); };
|
|
1714
1542
|
var deserializeAws_queryDeleteIdentityPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1715
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
1543
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
1716
1544
|
var _b;
|
|
1717
1545
|
return __generator(this, function (_c) {
|
|
1718
1546
|
switch (_c.label) {
|
|
@@ -1727,13 +1555,14 @@ var deserializeAws_queryDeleteIdentityPolicyCommandError = function (output, con
|
|
|
1727
1555
|
switch (errorCode) {
|
|
1728
1556
|
default:
|
|
1729
1557
|
parsedBody = parsedOutput.body;
|
|
1730
|
-
|
|
1731
|
-
|
|
1558
|
+
response = new __BaseException({
|
|
1559
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1560
|
+
$fault: "client",
|
|
1561
|
+
$metadata: deserializeMetadata(output),
|
|
1562
|
+
});
|
|
1563
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1732
1564
|
}
|
|
1733
|
-
|
|
1734
|
-
response.message = message;
|
|
1735
|
-
delete response.Message;
|
|
1736
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1565
|
+
return [2];
|
|
1737
1566
|
}
|
|
1738
1567
|
});
|
|
1739
1568
|
}); };
|
|
@@ -1756,7 +1585,7 @@ export var deserializeAws_queryDeleteReceiptFilterCommand = function (output, co
|
|
|
1756
1585
|
});
|
|
1757
1586
|
}); };
|
|
1758
1587
|
var deserializeAws_queryDeleteReceiptFilterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1759
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
1588
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
1760
1589
|
var _b;
|
|
1761
1590
|
return __generator(this, function (_c) {
|
|
1762
1591
|
switch (_c.label) {
|
|
@@ -1771,13 +1600,14 @@ var deserializeAws_queryDeleteReceiptFilterCommandError = function (output, cont
|
|
|
1771
1600
|
switch (errorCode) {
|
|
1772
1601
|
default:
|
|
1773
1602
|
parsedBody = parsedOutput.body;
|
|
1774
|
-
|
|
1775
|
-
|
|
1603
|
+
response = new __BaseException({
|
|
1604
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1605
|
+
$fault: "client",
|
|
1606
|
+
$metadata: deserializeMetadata(output),
|
|
1607
|
+
});
|
|
1608
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1776
1609
|
}
|
|
1777
|
-
|
|
1778
|
-
response.message = message;
|
|
1779
|
-
delete response.Message;
|
|
1780
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1610
|
+
return [2];
|
|
1781
1611
|
}
|
|
1782
1612
|
});
|
|
1783
1613
|
}); };
|
|
@@ -1800,16 +1630,16 @@ export var deserializeAws_queryDeleteReceiptRuleCommand = function (output, cont
|
|
|
1800
1630
|
});
|
|
1801
1631
|
}); };
|
|
1802
1632
|
var deserializeAws_queryDeleteReceiptRuleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1803
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1804
|
-
var
|
|
1805
|
-
return __generator(this, function (
|
|
1806
|
-
switch (
|
|
1633
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1634
|
+
var _c;
|
|
1635
|
+
return __generator(this, function (_d) {
|
|
1636
|
+
switch (_d.label) {
|
|
1807
1637
|
case 0:
|
|
1808
1638
|
_a = [__assign({}, output)];
|
|
1809
|
-
|
|
1639
|
+
_c = {};
|
|
1810
1640
|
return [4, parseBody(output.body, context)];
|
|
1811
1641
|
case 1:
|
|
1812
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1642
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1813
1643
|
errorCode = "UnknownError";
|
|
1814
1644
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1815
1645
|
_b = errorCode;
|
|
@@ -1818,22 +1648,16 @@ var deserializeAws_queryDeleteReceiptRuleCommandError = function (output, contex
|
|
|
1818
1648
|
case "com.amazonaws.ses#RuleSetDoesNotExistException": return [3, 2];
|
|
1819
1649
|
}
|
|
1820
1650
|
return [3, 4];
|
|
1821
|
-
case 2:
|
|
1822
|
-
|
|
1823
|
-
return [4, deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
1824
|
-
case 3:
|
|
1825
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1826
|
-
return [3, 5];
|
|
1651
|
+
case 2: return [4, deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
1652
|
+
case 3: throw _d.sent();
|
|
1827
1653
|
case 4:
|
|
1828
1654
|
parsedBody = parsedOutput.body;
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
response.
|
|
1835
|
-
delete response.Message;
|
|
1836
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1655
|
+
response = new __BaseException({
|
|
1656
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1657
|
+
$fault: "client",
|
|
1658
|
+
$metadata: deserializeMetadata(output),
|
|
1659
|
+
});
|
|
1660
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1837
1661
|
}
|
|
1838
1662
|
});
|
|
1839
1663
|
}); };
|
|
@@ -1856,16 +1680,16 @@ export var deserializeAws_queryDeleteReceiptRuleSetCommand = function (output, c
|
|
|
1856
1680
|
});
|
|
1857
1681
|
}); };
|
|
1858
1682
|
var deserializeAws_queryDeleteReceiptRuleSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1859
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1860
|
-
var
|
|
1861
|
-
return __generator(this, function (
|
|
1862
|
-
switch (
|
|
1683
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1684
|
+
var _c;
|
|
1685
|
+
return __generator(this, function (_d) {
|
|
1686
|
+
switch (_d.label) {
|
|
1863
1687
|
case 0:
|
|
1864
1688
|
_a = [__assign({}, output)];
|
|
1865
|
-
|
|
1689
|
+
_c = {};
|
|
1866
1690
|
return [4, parseBody(output.body, context)];
|
|
1867
1691
|
case 1:
|
|
1868
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1692
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1869
1693
|
errorCode = "UnknownError";
|
|
1870
1694
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1871
1695
|
_b = errorCode;
|
|
@@ -1874,22 +1698,16 @@ var deserializeAws_queryDeleteReceiptRuleSetCommandError = function (output, con
|
|
|
1874
1698
|
case "com.amazonaws.ses#CannotDeleteException": return [3, 2];
|
|
1875
1699
|
}
|
|
1876
1700
|
return [3, 4];
|
|
1877
|
-
case 2:
|
|
1878
|
-
|
|
1879
|
-
return [4, deserializeAws_queryCannotDeleteExceptionResponse(parsedOutput, context)];
|
|
1880
|
-
case 3:
|
|
1881
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1882
|
-
return [3, 5];
|
|
1701
|
+
case 2: return [4, deserializeAws_queryCannotDeleteExceptionResponse(parsedOutput, context)];
|
|
1702
|
+
case 3: throw _d.sent();
|
|
1883
1703
|
case 4:
|
|
1884
1704
|
parsedBody = parsedOutput.body;
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
response.
|
|
1891
|
-
delete response.Message;
|
|
1892
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1705
|
+
response = new __BaseException({
|
|
1706
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1707
|
+
$fault: "client",
|
|
1708
|
+
$metadata: deserializeMetadata(output),
|
|
1709
|
+
});
|
|
1710
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1893
1711
|
}
|
|
1894
1712
|
});
|
|
1895
1713
|
}); };
|
|
@@ -1912,7 +1730,7 @@ export var deserializeAws_queryDeleteTemplateCommand = function (output, context
|
|
|
1912
1730
|
});
|
|
1913
1731
|
}); };
|
|
1914
1732
|
var deserializeAws_queryDeleteTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1915
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
1733
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
1916
1734
|
var _b;
|
|
1917
1735
|
return __generator(this, function (_c) {
|
|
1918
1736
|
switch (_c.label) {
|
|
@@ -1927,13 +1745,14 @@ var deserializeAws_queryDeleteTemplateCommandError = function (output, context)
|
|
|
1927
1745
|
switch (errorCode) {
|
|
1928
1746
|
default:
|
|
1929
1747
|
parsedBody = parsedOutput.body;
|
|
1930
|
-
|
|
1931
|
-
|
|
1748
|
+
response = new __BaseException({
|
|
1749
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1750
|
+
$fault: "client",
|
|
1751
|
+
$metadata: deserializeMetadata(output),
|
|
1752
|
+
});
|
|
1753
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1932
1754
|
}
|
|
1933
|
-
|
|
1934
|
-
response.message = message;
|
|
1935
|
-
delete response.Message;
|
|
1936
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1755
|
+
return [2];
|
|
1937
1756
|
}
|
|
1938
1757
|
});
|
|
1939
1758
|
}); };
|
|
@@ -1956,7 +1775,7 @@ export var deserializeAws_queryDeleteVerifiedEmailAddressCommand = function (out
|
|
|
1956
1775
|
});
|
|
1957
1776
|
}); };
|
|
1958
1777
|
var deserializeAws_queryDeleteVerifiedEmailAddressCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1959
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
1778
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
1960
1779
|
var _b;
|
|
1961
1780
|
return __generator(this, function (_c) {
|
|
1962
1781
|
switch (_c.label) {
|
|
@@ -1971,13 +1790,14 @@ var deserializeAws_queryDeleteVerifiedEmailAddressCommandError = function (outpu
|
|
|
1971
1790
|
switch (errorCode) {
|
|
1972
1791
|
default:
|
|
1973
1792
|
parsedBody = parsedOutput.body;
|
|
1974
|
-
|
|
1975
|
-
|
|
1793
|
+
response = new __BaseException({
|
|
1794
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1795
|
+
$fault: "client",
|
|
1796
|
+
$metadata: deserializeMetadata(output),
|
|
1797
|
+
});
|
|
1798
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1976
1799
|
}
|
|
1977
|
-
|
|
1978
|
-
response.message = message;
|
|
1979
|
-
delete response.Message;
|
|
1980
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1800
|
+
return [2];
|
|
1981
1801
|
}
|
|
1982
1802
|
});
|
|
1983
1803
|
}); };
|
|
@@ -2000,7 +1820,7 @@ export var deserializeAws_queryDescribeActiveReceiptRuleSetCommand = function (o
|
|
|
2000
1820
|
});
|
|
2001
1821
|
}); };
|
|
2002
1822
|
var deserializeAws_queryDescribeActiveReceiptRuleSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2003
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
1823
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2004
1824
|
var _b;
|
|
2005
1825
|
return __generator(this, function (_c) {
|
|
2006
1826
|
switch (_c.label) {
|
|
@@ -2015,13 +1835,14 @@ var deserializeAws_queryDescribeActiveReceiptRuleSetCommandError = function (out
|
|
|
2015
1835
|
switch (errorCode) {
|
|
2016
1836
|
default:
|
|
2017
1837
|
parsedBody = parsedOutput.body;
|
|
2018
|
-
|
|
2019
|
-
|
|
1838
|
+
response = new __BaseException({
|
|
1839
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1840
|
+
$fault: "client",
|
|
1841
|
+
$metadata: deserializeMetadata(output),
|
|
1842
|
+
});
|
|
1843
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2020
1844
|
}
|
|
2021
|
-
|
|
2022
|
-
response.message = message;
|
|
2023
|
-
delete response.Message;
|
|
2024
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1845
|
+
return [2];
|
|
2025
1846
|
}
|
|
2026
1847
|
});
|
|
2027
1848
|
}); };
|
|
@@ -2044,16 +1865,16 @@ export var deserializeAws_queryDescribeConfigurationSetCommand = function (outpu
|
|
|
2044
1865
|
});
|
|
2045
1866
|
}); };
|
|
2046
1867
|
var deserializeAws_queryDescribeConfigurationSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2047
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2048
|
-
var
|
|
2049
|
-
return __generator(this, function (
|
|
2050
|
-
switch (
|
|
1868
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1869
|
+
var _c;
|
|
1870
|
+
return __generator(this, function (_d) {
|
|
1871
|
+
switch (_d.label) {
|
|
2051
1872
|
case 0:
|
|
2052
1873
|
_a = [__assign({}, output)];
|
|
2053
|
-
|
|
1874
|
+
_c = {};
|
|
2054
1875
|
return [4, parseBody(output.body, context)];
|
|
2055
1876
|
case 1:
|
|
2056
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1877
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2057
1878
|
errorCode = "UnknownError";
|
|
2058
1879
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2059
1880
|
_b = errorCode;
|
|
@@ -2062,22 +1883,16 @@ var deserializeAws_queryDescribeConfigurationSetCommandError = function (output,
|
|
|
2062
1883
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException": return [3, 2];
|
|
2063
1884
|
}
|
|
2064
1885
|
return [3, 4];
|
|
2065
|
-
case 2:
|
|
2066
|
-
|
|
2067
|
-
return [4, deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
2068
|
-
case 3:
|
|
2069
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2070
|
-
return [3, 5];
|
|
1886
|
+
case 2: return [4, deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
1887
|
+
case 3: throw _d.sent();
|
|
2071
1888
|
case 4:
|
|
2072
1889
|
parsedBody = parsedOutput.body;
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
response.
|
|
2079
|
-
delete response.Message;
|
|
2080
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1890
|
+
response = new __BaseException({
|
|
1891
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1892
|
+
$fault: "client",
|
|
1893
|
+
$metadata: deserializeMetadata(output),
|
|
1894
|
+
});
|
|
1895
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2081
1896
|
}
|
|
2082
1897
|
});
|
|
2083
1898
|
}); };
|
|
@@ -2100,16 +1915,16 @@ export var deserializeAws_queryDescribeReceiptRuleCommand = function (output, co
|
|
|
2100
1915
|
});
|
|
2101
1916
|
}); };
|
|
2102
1917
|
var deserializeAws_queryDescribeReceiptRuleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2103
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2104
|
-
var
|
|
2105
|
-
return __generator(this, function (
|
|
2106
|
-
switch (
|
|
1918
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1919
|
+
var _c;
|
|
1920
|
+
return __generator(this, function (_d) {
|
|
1921
|
+
switch (_d.label) {
|
|
2107
1922
|
case 0:
|
|
2108
1923
|
_a = [__assign({}, output)];
|
|
2109
|
-
|
|
1924
|
+
_c = {};
|
|
2110
1925
|
return [4, parseBody(output.body, context)];
|
|
2111
1926
|
case 1:
|
|
2112
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1927
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2113
1928
|
errorCode = "UnknownError";
|
|
2114
1929
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2115
1930
|
_b = errorCode;
|
|
@@ -2120,28 +1935,18 @@ var deserializeAws_queryDescribeReceiptRuleCommandError = function (output, cont
|
|
|
2120
1935
|
case "com.amazonaws.ses#RuleSetDoesNotExistException": return [3, 4];
|
|
2121
1936
|
}
|
|
2122
1937
|
return [3, 6];
|
|
2123
|
-
case 2:
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
case
|
|
2127
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2128
|
-
return [3, 7];
|
|
2129
|
-
case 4:
|
|
2130
|
-
_d = [{}];
|
|
2131
|
-
return [4, deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
2132
|
-
case 5:
|
|
2133
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2134
|
-
return [3, 7];
|
|
1938
|
+
case 2: return [4, deserializeAws_queryRuleDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
1939
|
+
case 3: throw _d.sent();
|
|
1940
|
+
case 4: return [4, deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
1941
|
+
case 5: throw _d.sent();
|
|
2135
1942
|
case 6:
|
|
2136
1943
|
parsedBody = parsedOutput.body;
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
response.
|
|
2143
|
-
delete response.Message;
|
|
2144
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1944
|
+
response = new __BaseException({
|
|
1945
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1946
|
+
$fault: "client",
|
|
1947
|
+
$metadata: deserializeMetadata(output),
|
|
1948
|
+
});
|
|
1949
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2145
1950
|
}
|
|
2146
1951
|
});
|
|
2147
1952
|
}); };
|
|
@@ -2164,16 +1969,16 @@ export var deserializeAws_queryDescribeReceiptRuleSetCommand = function (output,
|
|
|
2164
1969
|
});
|
|
2165
1970
|
}); };
|
|
2166
1971
|
var deserializeAws_queryDescribeReceiptRuleSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2167
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2168
|
-
var
|
|
2169
|
-
return __generator(this, function (
|
|
2170
|
-
switch (
|
|
1972
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1973
|
+
var _c;
|
|
1974
|
+
return __generator(this, function (_d) {
|
|
1975
|
+
switch (_d.label) {
|
|
2171
1976
|
case 0:
|
|
2172
1977
|
_a = [__assign({}, output)];
|
|
2173
|
-
|
|
1978
|
+
_c = {};
|
|
2174
1979
|
return [4, parseBody(output.body, context)];
|
|
2175
1980
|
case 1:
|
|
2176
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1981
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2177
1982
|
errorCode = "UnknownError";
|
|
2178
1983
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2179
1984
|
_b = errorCode;
|
|
@@ -2182,22 +1987,16 @@ var deserializeAws_queryDescribeReceiptRuleSetCommandError = function (output, c
|
|
|
2182
1987
|
case "com.amazonaws.ses#RuleSetDoesNotExistException": return [3, 2];
|
|
2183
1988
|
}
|
|
2184
1989
|
return [3, 4];
|
|
2185
|
-
case 2:
|
|
2186
|
-
|
|
2187
|
-
return [4, deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
2188
|
-
case 3:
|
|
2189
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2190
|
-
return [3, 5];
|
|
1990
|
+
case 2: return [4, deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
1991
|
+
case 3: throw _d.sent();
|
|
2191
1992
|
case 4:
|
|
2192
1993
|
parsedBody = parsedOutput.body;
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
response.
|
|
2199
|
-
delete response.Message;
|
|
2200
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1994
|
+
response = new __BaseException({
|
|
1995
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1996
|
+
$fault: "client",
|
|
1997
|
+
$metadata: deserializeMetadata(output),
|
|
1998
|
+
});
|
|
1999
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2201
2000
|
}
|
|
2202
2001
|
});
|
|
2203
2002
|
}); };
|
|
@@ -2220,7 +2019,7 @@ export var deserializeAws_queryGetAccountSendingEnabledCommand = function (outpu
|
|
|
2220
2019
|
});
|
|
2221
2020
|
}); };
|
|
2222
2021
|
var deserializeAws_queryGetAccountSendingEnabledCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2223
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2022
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2224
2023
|
var _b;
|
|
2225
2024
|
return __generator(this, function (_c) {
|
|
2226
2025
|
switch (_c.label) {
|
|
@@ -2235,13 +2034,14 @@ var deserializeAws_queryGetAccountSendingEnabledCommandError = function (output,
|
|
|
2235
2034
|
switch (errorCode) {
|
|
2236
2035
|
default:
|
|
2237
2036
|
parsedBody = parsedOutput.body;
|
|
2238
|
-
|
|
2239
|
-
|
|
2037
|
+
response = new __BaseException({
|
|
2038
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2039
|
+
$fault: "client",
|
|
2040
|
+
$metadata: deserializeMetadata(output),
|
|
2041
|
+
});
|
|
2042
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2240
2043
|
}
|
|
2241
|
-
|
|
2242
|
-
response.message = message;
|
|
2243
|
-
delete response.Message;
|
|
2244
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2044
|
+
return [2];
|
|
2245
2045
|
}
|
|
2246
2046
|
});
|
|
2247
2047
|
}); };
|
|
@@ -2264,16 +2064,16 @@ export var deserializeAws_queryGetCustomVerificationEmailTemplateCommand = funct
|
|
|
2264
2064
|
});
|
|
2265
2065
|
}); };
|
|
2266
2066
|
var deserializeAws_queryGetCustomVerificationEmailTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2267
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2268
|
-
var
|
|
2269
|
-
return __generator(this, function (
|
|
2270
|
-
switch (
|
|
2067
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2068
|
+
var _c;
|
|
2069
|
+
return __generator(this, function (_d) {
|
|
2070
|
+
switch (_d.label) {
|
|
2271
2071
|
case 0:
|
|
2272
2072
|
_a = [__assign({}, output)];
|
|
2273
|
-
|
|
2073
|
+
_c = {};
|
|
2274
2074
|
return [4, parseBody(output.body, context)];
|
|
2275
2075
|
case 1:
|
|
2276
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2076
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2277
2077
|
errorCode = "UnknownError";
|
|
2278
2078
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2279
2079
|
_b = errorCode;
|
|
@@ -2282,22 +2082,16 @@ var deserializeAws_queryGetCustomVerificationEmailTemplateCommandError = functio
|
|
|
2282
2082
|
case "com.amazonaws.ses#CustomVerificationEmailTemplateDoesNotExistException": return [3, 2];
|
|
2283
2083
|
}
|
|
2284
2084
|
return [3, 4];
|
|
2285
|
-
case 2:
|
|
2286
|
-
|
|
2287
|
-
return [4, deserializeAws_queryCustomVerificationEmailTemplateDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
2288
|
-
case 3:
|
|
2289
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2290
|
-
return [3, 5];
|
|
2085
|
+
case 2: return [4, deserializeAws_queryCustomVerificationEmailTemplateDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
2086
|
+
case 3: throw _d.sent();
|
|
2291
2087
|
case 4:
|
|
2292
2088
|
parsedBody = parsedOutput.body;
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
response.
|
|
2299
|
-
delete response.Message;
|
|
2300
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2089
|
+
response = new __BaseException({
|
|
2090
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2091
|
+
$fault: "client",
|
|
2092
|
+
$metadata: deserializeMetadata(output),
|
|
2093
|
+
});
|
|
2094
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2301
2095
|
}
|
|
2302
2096
|
});
|
|
2303
2097
|
}); };
|
|
@@ -2320,7 +2114,7 @@ export var deserializeAws_queryGetIdentityDkimAttributesCommand = function (outp
|
|
|
2320
2114
|
});
|
|
2321
2115
|
}); };
|
|
2322
2116
|
var deserializeAws_queryGetIdentityDkimAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2323
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2117
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2324
2118
|
var _b;
|
|
2325
2119
|
return __generator(this, function (_c) {
|
|
2326
2120
|
switch (_c.label) {
|
|
@@ -2335,13 +2129,14 @@ var deserializeAws_queryGetIdentityDkimAttributesCommandError = function (output
|
|
|
2335
2129
|
switch (errorCode) {
|
|
2336
2130
|
default:
|
|
2337
2131
|
parsedBody = parsedOutput.body;
|
|
2338
|
-
|
|
2339
|
-
|
|
2132
|
+
response = new __BaseException({
|
|
2133
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2134
|
+
$fault: "client",
|
|
2135
|
+
$metadata: deserializeMetadata(output),
|
|
2136
|
+
});
|
|
2137
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2340
2138
|
}
|
|
2341
|
-
|
|
2342
|
-
response.message = message;
|
|
2343
|
-
delete response.Message;
|
|
2344
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2139
|
+
return [2];
|
|
2345
2140
|
}
|
|
2346
2141
|
});
|
|
2347
2142
|
}); };
|
|
@@ -2364,7 +2159,7 @@ export var deserializeAws_queryGetIdentityMailFromDomainAttributesCommand = func
|
|
|
2364
2159
|
});
|
|
2365
2160
|
}); };
|
|
2366
2161
|
var deserializeAws_queryGetIdentityMailFromDomainAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2367
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2162
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2368
2163
|
var _b;
|
|
2369
2164
|
return __generator(this, function (_c) {
|
|
2370
2165
|
switch (_c.label) {
|
|
@@ -2379,13 +2174,14 @@ var deserializeAws_queryGetIdentityMailFromDomainAttributesCommandError = functi
|
|
|
2379
2174
|
switch (errorCode) {
|
|
2380
2175
|
default:
|
|
2381
2176
|
parsedBody = parsedOutput.body;
|
|
2382
|
-
|
|
2383
|
-
|
|
2177
|
+
response = new __BaseException({
|
|
2178
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2179
|
+
$fault: "client",
|
|
2180
|
+
$metadata: deserializeMetadata(output),
|
|
2181
|
+
});
|
|
2182
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2384
2183
|
}
|
|
2385
|
-
|
|
2386
|
-
response.message = message;
|
|
2387
|
-
delete response.Message;
|
|
2388
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2184
|
+
return [2];
|
|
2389
2185
|
}
|
|
2390
2186
|
});
|
|
2391
2187
|
}); };
|
|
@@ -2408,7 +2204,7 @@ export var deserializeAws_queryGetIdentityNotificationAttributesCommand = functi
|
|
|
2408
2204
|
});
|
|
2409
2205
|
}); };
|
|
2410
2206
|
var deserializeAws_queryGetIdentityNotificationAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2411
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2207
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2412
2208
|
var _b;
|
|
2413
2209
|
return __generator(this, function (_c) {
|
|
2414
2210
|
switch (_c.label) {
|
|
@@ -2423,13 +2219,14 @@ var deserializeAws_queryGetIdentityNotificationAttributesCommandError = function
|
|
|
2423
2219
|
switch (errorCode) {
|
|
2424
2220
|
default:
|
|
2425
2221
|
parsedBody = parsedOutput.body;
|
|
2426
|
-
|
|
2427
|
-
|
|
2222
|
+
response = new __BaseException({
|
|
2223
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2224
|
+
$fault: "client",
|
|
2225
|
+
$metadata: deserializeMetadata(output),
|
|
2226
|
+
});
|
|
2227
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2428
2228
|
}
|
|
2429
|
-
|
|
2430
|
-
response.message = message;
|
|
2431
|
-
delete response.Message;
|
|
2432
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2229
|
+
return [2];
|
|
2433
2230
|
}
|
|
2434
2231
|
});
|
|
2435
2232
|
}); };
|
|
@@ -2452,7 +2249,7 @@ export var deserializeAws_queryGetIdentityPoliciesCommand = function (output, co
|
|
|
2452
2249
|
});
|
|
2453
2250
|
}); };
|
|
2454
2251
|
var deserializeAws_queryGetIdentityPoliciesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2455
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2252
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2456
2253
|
var _b;
|
|
2457
2254
|
return __generator(this, function (_c) {
|
|
2458
2255
|
switch (_c.label) {
|
|
@@ -2467,13 +2264,14 @@ var deserializeAws_queryGetIdentityPoliciesCommandError = function (output, cont
|
|
|
2467
2264
|
switch (errorCode) {
|
|
2468
2265
|
default:
|
|
2469
2266
|
parsedBody = parsedOutput.body;
|
|
2470
|
-
|
|
2471
|
-
|
|
2267
|
+
response = new __BaseException({
|
|
2268
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2269
|
+
$fault: "client",
|
|
2270
|
+
$metadata: deserializeMetadata(output),
|
|
2271
|
+
});
|
|
2272
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2472
2273
|
}
|
|
2473
|
-
|
|
2474
|
-
response.message = message;
|
|
2475
|
-
delete response.Message;
|
|
2476
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2274
|
+
return [2];
|
|
2477
2275
|
}
|
|
2478
2276
|
});
|
|
2479
2277
|
}); };
|
|
@@ -2496,7 +2294,7 @@ export var deserializeAws_queryGetIdentityVerificationAttributesCommand = functi
|
|
|
2496
2294
|
});
|
|
2497
2295
|
}); };
|
|
2498
2296
|
var deserializeAws_queryGetIdentityVerificationAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2499
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2297
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2500
2298
|
var _b;
|
|
2501
2299
|
return __generator(this, function (_c) {
|
|
2502
2300
|
switch (_c.label) {
|
|
@@ -2511,13 +2309,14 @@ var deserializeAws_queryGetIdentityVerificationAttributesCommandError = function
|
|
|
2511
2309
|
switch (errorCode) {
|
|
2512
2310
|
default:
|
|
2513
2311
|
parsedBody = parsedOutput.body;
|
|
2514
|
-
|
|
2515
|
-
|
|
2312
|
+
response = new __BaseException({
|
|
2313
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2314
|
+
$fault: "client",
|
|
2315
|
+
$metadata: deserializeMetadata(output),
|
|
2316
|
+
});
|
|
2317
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2516
2318
|
}
|
|
2517
|
-
|
|
2518
|
-
response.message = message;
|
|
2519
|
-
delete response.Message;
|
|
2520
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2319
|
+
return [2];
|
|
2521
2320
|
}
|
|
2522
2321
|
});
|
|
2523
2322
|
}); };
|
|
@@ -2540,7 +2339,7 @@ export var deserializeAws_queryGetSendQuotaCommand = function (output, context)
|
|
|
2540
2339
|
});
|
|
2541
2340
|
}); };
|
|
2542
2341
|
var deserializeAws_queryGetSendQuotaCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2543
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2342
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2544
2343
|
var _b;
|
|
2545
2344
|
return __generator(this, function (_c) {
|
|
2546
2345
|
switch (_c.label) {
|
|
@@ -2555,13 +2354,14 @@ var deserializeAws_queryGetSendQuotaCommandError = function (output, context) {
|
|
|
2555
2354
|
switch (errorCode) {
|
|
2556
2355
|
default:
|
|
2557
2356
|
parsedBody = parsedOutput.body;
|
|
2558
|
-
|
|
2559
|
-
|
|
2357
|
+
response = new __BaseException({
|
|
2358
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2359
|
+
$fault: "client",
|
|
2360
|
+
$metadata: deserializeMetadata(output),
|
|
2361
|
+
});
|
|
2362
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2560
2363
|
}
|
|
2561
|
-
|
|
2562
|
-
response.message = message;
|
|
2563
|
-
delete response.Message;
|
|
2564
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2364
|
+
return [2];
|
|
2565
2365
|
}
|
|
2566
2366
|
});
|
|
2567
2367
|
}); };
|
|
@@ -2584,7 +2384,7 @@ export var deserializeAws_queryGetSendStatisticsCommand = function (output, cont
|
|
|
2584
2384
|
});
|
|
2585
2385
|
}); };
|
|
2586
2386
|
var deserializeAws_queryGetSendStatisticsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2587
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2387
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2588
2388
|
var _b;
|
|
2589
2389
|
return __generator(this, function (_c) {
|
|
2590
2390
|
switch (_c.label) {
|
|
@@ -2599,13 +2399,14 @@ var deserializeAws_queryGetSendStatisticsCommandError = function (output, contex
|
|
|
2599
2399
|
switch (errorCode) {
|
|
2600
2400
|
default:
|
|
2601
2401
|
parsedBody = parsedOutput.body;
|
|
2602
|
-
|
|
2603
|
-
|
|
2402
|
+
response = new __BaseException({
|
|
2403
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2404
|
+
$fault: "client",
|
|
2405
|
+
$metadata: deserializeMetadata(output),
|
|
2406
|
+
});
|
|
2407
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2604
2408
|
}
|
|
2605
|
-
|
|
2606
|
-
response.message = message;
|
|
2607
|
-
delete response.Message;
|
|
2608
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2409
|
+
return [2];
|
|
2609
2410
|
}
|
|
2610
2411
|
});
|
|
2611
2412
|
}); };
|
|
@@ -2628,16 +2429,16 @@ export var deserializeAws_queryGetTemplateCommand = function (output, context) {
|
|
|
2628
2429
|
});
|
|
2629
2430
|
}); };
|
|
2630
2431
|
var deserializeAws_queryGetTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2631
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2632
|
-
var
|
|
2633
|
-
return __generator(this, function (
|
|
2634
|
-
switch (
|
|
2432
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2433
|
+
var _c;
|
|
2434
|
+
return __generator(this, function (_d) {
|
|
2435
|
+
switch (_d.label) {
|
|
2635
2436
|
case 0:
|
|
2636
2437
|
_a = [__assign({}, output)];
|
|
2637
|
-
|
|
2438
|
+
_c = {};
|
|
2638
2439
|
return [4, parseBody(output.body, context)];
|
|
2639
2440
|
case 1:
|
|
2640
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2441
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2641
2442
|
errorCode = "UnknownError";
|
|
2642
2443
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2643
2444
|
_b = errorCode;
|
|
@@ -2646,22 +2447,16 @@ var deserializeAws_queryGetTemplateCommandError = function (output, context) { r
|
|
|
2646
2447
|
case "com.amazonaws.ses#TemplateDoesNotExistException": return [3, 2];
|
|
2647
2448
|
}
|
|
2648
2449
|
return [3, 4];
|
|
2649
|
-
case 2:
|
|
2650
|
-
|
|
2651
|
-
return [4, deserializeAws_queryTemplateDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
2652
|
-
case 3:
|
|
2653
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2654
|
-
return [3, 5];
|
|
2450
|
+
case 2: return [4, deserializeAws_queryTemplateDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
2451
|
+
case 3: throw _d.sent();
|
|
2655
2452
|
case 4:
|
|
2656
2453
|
parsedBody = parsedOutput.body;
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
response.
|
|
2663
|
-
delete response.Message;
|
|
2664
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2454
|
+
response = new __BaseException({
|
|
2455
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2456
|
+
$fault: "client",
|
|
2457
|
+
$metadata: deserializeMetadata(output),
|
|
2458
|
+
});
|
|
2459
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2665
2460
|
}
|
|
2666
2461
|
});
|
|
2667
2462
|
}); };
|
|
@@ -2684,7 +2479,7 @@ export var deserializeAws_queryListConfigurationSetsCommand = function (output,
|
|
|
2684
2479
|
});
|
|
2685
2480
|
}); };
|
|
2686
2481
|
var deserializeAws_queryListConfigurationSetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2687
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2482
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2688
2483
|
var _b;
|
|
2689
2484
|
return __generator(this, function (_c) {
|
|
2690
2485
|
switch (_c.label) {
|
|
@@ -2699,13 +2494,14 @@ var deserializeAws_queryListConfigurationSetsCommandError = function (output, co
|
|
|
2699
2494
|
switch (errorCode) {
|
|
2700
2495
|
default:
|
|
2701
2496
|
parsedBody = parsedOutput.body;
|
|
2702
|
-
|
|
2703
|
-
|
|
2497
|
+
response = new __BaseException({
|
|
2498
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2499
|
+
$fault: "client",
|
|
2500
|
+
$metadata: deserializeMetadata(output),
|
|
2501
|
+
});
|
|
2502
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2704
2503
|
}
|
|
2705
|
-
|
|
2706
|
-
response.message = message;
|
|
2707
|
-
delete response.Message;
|
|
2708
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2504
|
+
return [2];
|
|
2709
2505
|
}
|
|
2710
2506
|
});
|
|
2711
2507
|
}); };
|
|
@@ -2728,7 +2524,7 @@ export var deserializeAws_queryListCustomVerificationEmailTemplatesCommand = fun
|
|
|
2728
2524
|
});
|
|
2729
2525
|
}); };
|
|
2730
2526
|
var deserializeAws_queryListCustomVerificationEmailTemplatesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2731
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2527
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2732
2528
|
var _b;
|
|
2733
2529
|
return __generator(this, function (_c) {
|
|
2734
2530
|
switch (_c.label) {
|
|
@@ -2743,13 +2539,14 @@ var deserializeAws_queryListCustomVerificationEmailTemplatesCommandError = funct
|
|
|
2743
2539
|
switch (errorCode) {
|
|
2744
2540
|
default:
|
|
2745
2541
|
parsedBody = parsedOutput.body;
|
|
2746
|
-
|
|
2747
|
-
|
|
2542
|
+
response = new __BaseException({
|
|
2543
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2544
|
+
$fault: "client",
|
|
2545
|
+
$metadata: deserializeMetadata(output),
|
|
2546
|
+
});
|
|
2547
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2748
2548
|
}
|
|
2749
|
-
|
|
2750
|
-
response.message = message;
|
|
2751
|
-
delete response.Message;
|
|
2752
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2549
|
+
return [2];
|
|
2753
2550
|
}
|
|
2754
2551
|
});
|
|
2755
2552
|
}); };
|
|
@@ -2772,7 +2569,7 @@ export var deserializeAws_queryListIdentitiesCommand = function (output, context
|
|
|
2772
2569
|
});
|
|
2773
2570
|
}); };
|
|
2774
2571
|
var deserializeAws_queryListIdentitiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2775
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2572
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2776
2573
|
var _b;
|
|
2777
2574
|
return __generator(this, function (_c) {
|
|
2778
2575
|
switch (_c.label) {
|
|
@@ -2787,13 +2584,14 @@ var deserializeAws_queryListIdentitiesCommandError = function (output, context)
|
|
|
2787
2584
|
switch (errorCode) {
|
|
2788
2585
|
default:
|
|
2789
2586
|
parsedBody = parsedOutput.body;
|
|
2790
|
-
|
|
2791
|
-
|
|
2587
|
+
response = new __BaseException({
|
|
2588
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2589
|
+
$fault: "client",
|
|
2590
|
+
$metadata: deserializeMetadata(output),
|
|
2591
|
+
});
|
|
2592
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2792
2593
|
}
|
|
2793
|
-
|
|
2794
|
-
response.message = message;
|
|
2795
|
-
delete response.Message;
|
|
2796
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2594
|
+
return [2];
|
|
2797
2595
|
}
|
|
2798
2596
|
});
|
|
2799
2597
|
}); };
|
|
@@ -2816,7 +2614,7 @@ export var deserializeAws_queryListIdentityPoliciesCommand = function (output, c
|
|
|
2816
2614
|
});
|
|
2817
2615
|
}); };
|
|
2818
2616
|
var deserializeAws_queryListIdentityPoliciesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2819
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2617
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2820
2618
|
var _b;
|
|
2821
2619
|
return __generator(this, function (_c) {
|
|
2822
2620
|
switch (_c.label) {
|
|
@@ -2831,13 +2629,14 @@ var deserializeAws_queryListIdentityPoliciesCommandError = function (output, con
|
|
|
2831
2629
|
switch (errorCode) {
|
|
2832
2630
|
default:
|
|
2833
2631
|
parsedBody = parsedOutput.body;
|
|
2834
|
-
|
|
2835
|
-
|
|
2632
|
+
response = new __BaseException({
|
|
2633
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2634
|
+
$fault: "client",
|
|
2635
|
+
$metadata: deserializeMetadata(output),
|
|
2636
|
+
});
|
|
2637
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2836
2638
|
}
|
|
2837
|
-
|
|
2838
|
-
response.message = message;
|
|
2839
|
-
delete response.Message;
|
|
2840
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2639
|
+
return [2];
|
|
2841
2640
|
}
|
|
2842
2641
|
});
|
|
2843
2642
|
}); };
|
|
@@ -2860,7 +2659,7 @@ export var deserializeAws_queryListReceiptFiltersCommand = function (output, con
|
|
|
2860
2659
|
});
|
|
2861
2660
|
}); };
|
|
2862
2661
|
var deserializeAws_queryListReceiptFiltersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2863
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2662
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2864
2663
|
var _b;
|
|
2865
2664
|
return __generator(this, function (_c) {
|
|
2866
2665
|
switch (_c.label) {
|
|
@@ -2875,13 +2674,14 @@ var deserializeAws_queryListReceiptFiltersCommandError = function (output, conte
|
|
|
2875
2674
|
switch (errorCode) {
|
|
2876
2675
|
default:
|
|
2877
2676
|
parsedBody = parsedOutput.body;
|
|
2878
|
-
|
|
2879
|
-
|
|
2677
|
+
response = new __BaseException({
|
|
2678
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2679
|
+
$fault: "client",
|
|
2680
|
+
$metadata: deserializeMetadata(output),
|
|
2681
|
+
});
|
|
2682
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2880
2683
|
}
|
|
2881
|
-
|
|
2882
|
-
response.message = message;
|
|
2883
|
-
delete response.Message;
|
|
2884
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2684
|
+
return [2];
|
|
2885
2685
|
}
|
|
2886
2686
|
});
|
|
2887
2687
|
}); };
|
|
@@ -2904,7 +2704,7 @@ export var deserializeAws_queryListReceiptRuleSetsCommand = function (output, co
|
|
|
2904
2704
|
});
|
|
2905
2705
|
}); };
|
|
2906
2706
|
var deserializeAws_queryListReceiptRuleSetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2907
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2707
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2908
2708
|
var _b;
|
|
2909
2709
|
return __generator(this, function (_c) {
|
|
2910
2710
|
switch (_c.label) {
|
|
@@ -2919,13 +2719,14 @@ var deserializeAws_queryListReceiptRuleSetsCommandError = function (output, cont
|
|
|
2919
2719
|
switch (errorCode) {
|
|
2920
2720
|
default:
|
|
2921
2721
|
parsedBody = parsedOutput.body;
|
|
2922
|
-
|
|
2923
|
-
|
|
2722
|
+
response = new __BaseException({
|
|
2723
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2724
|
+
$fault: "client",
|
|
2725
|
+
$metadata: deserializeMetadata(output),
|
|
2726
|
+
});
|
|
2727
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2924
2728
|
}
|
|
2925
|
-
|
|
2926
|
-
response.message = message;
|
|
2927
|
-
delete response.Message;
|
|
2928
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2729
|
+
return [2];
|
|
2929
2730
|
}
|
|
2930
2731
|
});
|
|
2931
2732
|
}); };
|
|
@@ -2948,7 +2749,7 @@ export var deserializeAws_queryListTemplatesCommand = function (output, context)
|
|
|
2948
2749
|
});
|
|
2949
2750
|
}); };
|
|
2950
2751
|
var deserializeAws_queryListTemplatesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2951
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2752
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2952
2753
|
var _b;
|
|
2953
2754
|
return __generator(this, function (_c) {
|
|
2954
2755
|
switch (_c.label) {
|
|
@@ -2963,13 +2764,14 @@ var deserializeAws_queryListTemplatesCommandError = function (output, context) {
|
|
|
2963
2764
|
switch (errorCode) {
|
|
2964
2765
|
default:
|
|
2965
2766
|
parsedBody = parsedOutput.body;
|
|
2966
|
-
|
|
2967
|
-
|
|
2767
|
+
response = new __BaseException({
|
|
2768
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2769
|
+
$fault: "client",
|
|
2770
|
+
$metadata: deserializeMetadata(output),
|
|
2771
|
+
});
|
|
2772
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2968
2773
|
}
|
|
2969
|
-
|
|
2970
|
-
response.message = message;
|
|
2971
|
-
delete response.Message;
|
|
2972
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2774
|
+
return [2];
|
|
2973
2775
|
}
|
|
2974
2776
|
});
|
|
2975
2777
|
}); };
|
|
@@ -2992,7 +2794,7 @@ export var deserializeAws_queryListVerifiedEmailAddressesCommand = function (out
|
|
|
2992
2794
|
});
|
|
2993
2795
|
}); };
|
|
2994
2796
|
var deserializeAws_queryListVerifiedEmailAddressesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2995
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2797
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2996
2798
|
var _b;
|
|
2997
2799
|
return __generator(this, function (_c) {
|
|
2998
2800
|
switch (_c.label) {
|
|
@@ -3007,13 +2809,14 @@ var deserializeAws_queryListVerifiedEmailAddressesCommandError = function (outpu
|
|
|
3007
2809
|
switch (errorCode) {
|
|
3008
2810
|
default:
|
|
3009
2811
|
parsedBody = parsedOutput.body;
|
|
3010
|
-
|
|
3011
|
-
|
|
2812
|
+
response = new __BaseException({
|
|
2813
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2814
|
+
$fault: "client",
|
|
2815
|
+
$metadata: deserializeMetadata(output),
|
|
2816
|
+
});
|
|
2817
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3012
2818
|
}
|
|
3013
|
-
|
|
3014
|
-
response.message = message;
|
|
3015
|
-
delete response.Message;
|
|
3016
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2819
|
+
return [2];
|
|
3017
2820
|
}
|
|
3018
2821
|
});
|
|
3019
2822
|
}); };
|
|
@@ -3036,16 +2839,16 @@ export var deserializeAws_queryPutConfigurationSetDeliveryOptionsCommand = funct
|
|
|
3036
2839
|
});
|
|
3037
2840
|
}); };
|
|
3038
2841
|
var deserializeAws_queryPutConfigurationSetDeliveryOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3039
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3040
|
-
var
|
|
3041
|
-
return __generator(this, function (
|
|
3042
|
-
switch (
|
|
2842
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2843
|
+
var _c;
|
|
2844
|
+
return __generator(this, function (_d) {
|
|
2845
|
+
switch (_d.label) {
|
|
3043
2846
|
case 0:
|
|
3044
2847
|
_a = [__assign({}, output)];
|
|
3045
|
-
|
|
2848
|
+
_c = {};
|
|
3046
2849
|
return [4, parseBody(output.body, context)];
|
|
3047
2850
|
case 1:
|
|
3048
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2851
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3049
2852
|
errorCode = "UnknownError";
|
|
3050
2853
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3051
2854
|
_b = errorCode;
|
|
@@ -3056,28 +2859,18 @@ var deserializeAws_queryPutConfigurationSetDeliveryOptionsCommandError = functio
|
|
|
3056
2859
|
case "com.amazonaws.ses#InvalidDeliveryOptionsException": return [3, 4];
|
|
3057
2860
|
}
|
|
3058
2861
|
return [3, 6];
|
|
3059
|
-
case 2:
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
case
|
|
3063
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3064
|
-
return [3, 7];
|
|
3065
|
-
case 4:
|
|
3066
|
-
_d = [{}];
|
|
3067
|
-
return [4, deserializeAws_queryInvalidDeliveryOptionsExceptionResponse(parsedOutput, context)];
|
|
3068
|
-
case 5:
|
|
3069
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3070
|
-
return [3, 7];
|
|
2862
|
+
case 2: return [4, deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
2863
|
+
case 3: throw _d.sent();
|
|
2864
|
+
case 4: return [4, deserializeAws_queryInvalidDeliveryOptionsExceptionResponse(parsedOutput, context)];
|
|
2865
|
+
case 5: throw _d.sent();
|
|
3071
2866
|
case 6:
|
|
3072
2867
|
parsedBody = parsedOutput.body;
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
response.
|
|
3079
|
-
delete response.Message;
|
|
3080
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2868
|
+
response = new __BaseException({
|
|
2869
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2870
|
+
$fault: "client",
|
|
2871
|
+
$metadata: deserializeMetadata(output),
|
|
2872
|
+
});
|
|
2873
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3081
2874
|
}
|
|
3082
2875
|
});
|
|
3083
2876
|
}); };
|
|
@@ -3100,16 +2893,16 @@ export var deserializeAws_queryPutIdentityPolicyCommand = function (output, cont
|
|
|
3100
2893
|
});
|
|
3101
2894
|
}); };
|
|
3102
2895
|
var deserializeAws_queryPutIdentityPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3103
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3104
|
-
var
|
|
3105
|
-
return __generator(this, function (
|
|
3106
|
-
switch (
|
|
2896
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2897
|
+
var _c;
|
|
2898
|
+
return __generator(this, function (_d) {
|
|
2899
|
+
switch (_d.label) {
|
|
3107
2900
|
case 0:
|
|
3108
2901
|
_a = [__assign({}, output)];
|
|
3109
|
-
|
|
2902
|
+
_c = {};
|
|
3110
2903
|
return [4, parseBody(output.body, context)];
|
|
3111
2904
|
case 1:
|
|
3112
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2905
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3113
2906
|
errorCode = "UnknownError";
|
|
3114
2907
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3115
2908
|
_b = errorCode;
|
|
@@ -3118,22 +2911,16 @@ var deserializeAws_queryPutIdentityPolicyCommandError = function (output, contex
|
|
|
3118
2911
|
case "com.amazonaws.ses#InvalidPolicyException": return [3, 2];
|
|
3119
2912
|
}
|
|
3120
2913
|
return [3, 4];
|
|
3121
|
-
case 2:
|
|
3122
|
-
|
|
3123
|
-
return [4, deserializeAws_queryInvalidPolicyExceptionResponse(parsedOutput, context)];
|
|
3124
|
-
case 3:
|
|
3125
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3126
|
-
return [3, 5];
|
|
2914
|
+
case 2: return [4, deserializeAws_queryInvalidPolicyExceptionResponse(parsedOutput, context)];
|
|
2915
|
+
case 3: throw _d.sent();
|
|
3127
2916
|
case 4:
|
|
3128
2917
|
parsedBody = parsedOutput.body;
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
response.
|
|
3135
|
-
delete response.Message;
|
|
3136
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2918
|
+
response = new __BaseException({
|
|
2919
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2920
|
+
$fault: "client",
|
|
2921
|
+
$metadata: deserializeMetadata(output),
|
|
2922
|
+
});
|
|
2923
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3137
2924
|
}
|
|
3138
2925
|
});
|
|
3139
2926
|
}); };
|
|
@@ -3156,16 +2943,16 @@ export var deserializeAws_queryReorderReceiptRuleSetCommand = function (output,
|
|
|
3156
2943
|
});
|
|
3157
2944
|
}); };
|
|
3158
2945
|
var deserializeAws_queryReorderReceiptRuleSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3159
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3160
|
-
var
|
|
3161
|
-
return __generator(this, function (
|
|
3162
|
-
switch (
|
|
2946
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2947
|
+
var _c;
|
|
2948
|
+
return __generator(this, function (_d) {
|
|
2949
|
+
switch (_d.label) {
|
|
3163
2950
|
case 0:
|
|
3164
2951
|
_a = [__assign({}, output)];
|
|
3165
|
-
|
|
2952
|
+
_c = {};
|
|
3166
2953
|
return [4, parseBody(output.body, context)];
|
|
3167
2954
|
case 1:
|
|
3168
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2955
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3169
2956
|
errorCode = "UnknownError";
|
|
3170
2957
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3171
2958
|
_b = errorCode;
|
|
@@ -3176,28 +2963,18 @@ var deserializeAws_queryReorderReceiptRuleSetCommandError = function (output, co
|
|
|
3176
2963
|
case "com.amazonaws.ses#RuleSetDoesNotExistException": return [3, 4];
|
|
3177
2964
|
}
|
|
3178
2965
|
return [3, 6];
|
|
3179
|
-
case 2:
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
case
|
|
3183
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3184
|
-
return [3, 7];
|
|
3185
|
-
case 4:
|
|
3186
|
-
_d = [{}];
|
|
3187
|
-
return [4, deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
3188
|
-
case 5:
|
|
3189
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3190
|
-
return [3, 7];
|
|
2966
|
+
case 2: return [4, deserializeAws_queryRuleDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
2967
|
+
case 3: throw _d.sent();
|
|
2968
|
+
case 4: return [4, deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
2969
|
+
case 5: throw _d.sent();
|
|
3191
2970
|
case 6:
|
|
3192
2971
|
parsedBody = parsedOutput.body;
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
response.
|
|
3199
|
-
delete response.Message;
|
|
3200
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2972
|
+
response = new __BaseException({
|
|
2973
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2974
|
+
$fault: "client",
|
|
2975
|
+
$metadata: deserializeMetadata(output),
|
|
2976
|
+
});
|
|
2977
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3201
2978
|
}
|
|
3202
2979
|
});
|
|
3203
2980
|
}); };
|
|
@@ -3220,16 +2997,16 @@ export var deserializeAws_querySendBounceCommand = function (output, context) {
|
|
|
3220
2997
|
});
|
|
3221
2998
|
}); };
|
|
3222
2999
|
var deserializeAws_querySendBounceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3223
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3224
|
-
var
|
|
3225
|
-
return __generator(this, function (
|
|
3226
|
-
switch (
|
|
3000
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3001
|
+
var _c;
|
|
3002
|
+
return __generator(this, function (_d) {
|
|
3003
|
+
switch (_d.label) {
|
|
3227
3004
|
case 0:
|
|
3228
3005
|
_a = [__assign({}, output)];
|
|
3229
|
-
|
|
3006
|
+
_c = {};
|
|
3230
3007
|
return [4, parseBody(output.body, context)];
|
|
3231
3008
|
case 1:
|
|
3232
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3009
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3233
3010
|
errorCode = "UnknownError";
|
|
3234
3011
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3235
3012
|
_b = errorCode;
|
|
@@ -3238,22 +3015,16 @@ var deserializeAws_querySendBounceCommandError = function (output, context) { re
|
|
|
3238
3015
|
case "com.amazonaws.ses#MessageRejected": return [3, 2];
|
|
3239
3016
|
}
|
|
3240
3017
|
return [3, 4];
|
|
3241
|
-
case 2:
|
|
3242
|
-
|
|
3243
|
-
return [4, deserializeAws_queryMessageRejectedResponse(parsedOutput, context)];
|
|
3244
|
-
case 3:
|
|
3245
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3246
|
-
return [3, 5];
|
|
3018
|
+
case 2: return [4, deserializeAws_queryMessageRejectedResponse(parsedOutput, context)];
|
|
3019
|
+
case 3: throw _d.sent();
|
|
3247
3020
|
case 4:
|
|
3248
3021
|
parsedBody = parsedOutput.body;
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
response.
|
|
3255
|
-
delete response.Message;
|
|
3256
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3022
|
+
response = new __BaseException({
|
|
3023
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3024
|
+
$fault: "client",
|
|
3025
|
+
$metadata: deserializeMetadata(output),
|
|
3026
|
+
});
|
|
3027
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3257
3028
|
}
|
|
3258
3029
|
});
|
|
3259
3030
|
}); };
|
|
@@ -3276,16 +3047,16 @@ export var deserializeAws_querySendBulkTemplatedEmailCommand = function (output,
|
|
|
3276
3047
|
});
|
|
3277
3048
|
}); };
|
|
3278
3049
|
var deserializeAws_querySendBulkTemplatedEmailCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3279
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3280
|
-
var
|
|
3281
|
-
return __generator(this, function (
|
|
3282
|
-
switch (
|
|
3050
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3051
|
+
var _c;
|
|
3052
|
+
return __generator(this, function (_d) {
|
|
3053
|
+
switch (_d.label) {
|
|
3283
3054
|
case 0:
|
|
3284
3055
|
_a = [__assign({}, output)];
|
|
3285
|
-
|
|
3056
|
+
_c = {};
|
|
3286
3057
|
return [4, parseBody(output.body, context)];
|
|
3287
3058
|
case 1:
|
|
3288
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3059
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3289
3060
|
errorCode = "UnknownError";
|
|
3290
3061
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3291
3062
|
_b = errorCode;
|
|
@@ -3304,52 +3075,26 @@ var deserializeAws_querySendBulkTemplatedEmailCommandError = function (output, c
|
|
|
3304
3075
|
case "com.amazonaws.ses#TemplateDoesNotExistException": return [3, 12];
|
|
3305
3076
|
}
|
|
3306
3077
|
return [3, 14];
|
|
3307
|
-
case 2:
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
case
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
case 4
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
case
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
case 6:
|
|
3320
|
-
_e = [{}];
|
|
3321
|
-
return [4, deserializeAws_queryConfigurationSetSendingPausedExceptionResponse(parsedOutput, context)];
|
|
3322
|
-
case 7:
|
|
3323
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3324
|
-
return [3, 15];
|
|
3325
|
-
case 8:
|
|
3326
|
-
_f = [{}];
|
|
3327
|
-
return [4, deserializeAws_queryMailFromDomainNotVerifiedExceptionResponse(parsedOutput, context)];
|
|
3328
|
-
case 9:
|
|
3329
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3330
|
-
return [3, 15];
|
|
3331
|
-
case 10:
|
|
3332
|
-
_g = [{}];
|
|
3333
|
-
return [4, deserializeAws_queryMessageRejectedResponse(parsedOutput, context)];
|
|
3334
|
-
case 11:
|
|
3335
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3336
|
-
return [3, 15];
|
|
3337
|
-
case 12:
|
|
3338
|
-
_h = [{}];
|
|
3339
|
-
return [4, deserializeAws_queryTemplateDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
3340
|
-
case 13:
|
|
3341
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3342
|
-
return [3, 15];
|
|
3078
|
+
case 2: return [4, deserializeAws_queryAccountSendingPausedExceptionResponse(parsedOutput, context)];
|
|
3079
|
+
case 3: throw _d.sent();
|
|
3080
|
+
case 4: return [4, deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
3081
|
+
case 5: throw _d.sent();
|
|
3082
|
+
case 6: return [4, deserializeAws_queryConfigurationSetSendingPausedExceptionResponse(parsedOutput, context)];
|
|
3083
|
+
case 7: throw _d.sent();
|
|
3084
|
+
case 8: return [4, deserializeAws_queryMailFromDomainNotVerifiedExceptionResponse(parsedOutput, context)];
|
|
3085
|
+
case 9: throw _d.sent();
|
|
3086
|
+
case 10: return [4, deserializeAws_queryMessageRejectedResponse(parsedOutput, context)];
|
|
3087
|
+
case 11: throw _d.sent();
|
|
3088
|
+
case 12: return [4, deserializeAws_queryTemplateDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
3089
|
+
case 13: throw _d.sent();
|
|
3343
3090
|
case 14:
|
|
3344
3091
|
parsedBody = parsedOutput.body;
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
response.
|
|
3351
|
-
delete response.Message;
|
|
3352
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3092
|
+
response = new __BaseException({
|
|
3093
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3094
|
+
$fault: "client",
|
|
3095
|
+
$metadata: deserializeMetadata(output),
|
|
3096
|
+
});
|
|
3097
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3353
3098
|
}
|
|
3354
3099
|
});
|
|
3355
3100
|
}); };
|
|
@@ -3372,16 +3117,16 @@ export var deserializeAws_querySendCustomVerificationEmailCommand = function (ou
|
|
|
3372
3117
|
});
|
|
3373
3118
|
}); };
|
|
3374
3119
|
var deserializeAws_querySendCustomVerificationEmailCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3375
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3376
|
-
var
|
|
3377
|
-
return __generator(this, function (
|
|
3378
|
-
switch (
|
|
3120
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3121
|
+
var _c;
|
|
3122
|
+
return __generator(this, function (_d) {
|
|
3123
|
+
switch (_d.label) {
|
|
3379
3124
|
case 0:
|
|
3380
3125
|
_a = [__assign({}, output)];
|
|
3381
|
-
|
|
3126
|
+
_c = {};
|
|
3382
3127
|
return [4, parseBody(output.body, context)];
|
|
3383
3128
|
case 1:
|
|
3384
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3129
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3385
3130
|
errorCode = "UnknownError";
|
|
3386
3131
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3387
3132
|
_b = errorCode;
|
|
@@ -3398,46 +3143,24 @@ var deserializeAws_querySendCustomVerificationEmailCommandError = function (outp
|
|
|
3398
3143
|
case "com.amazonaws.ses#ProductionAccessNotGrantedException": return [3, 10];
|
|
3399
3144
|
}
|
|
3400
3145
|
return [3, 12];
|
|
3401
|
-
case 2:
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
case
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
case 4
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
case
|
|
3411
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3412
|
-
return [3, 13];
|
|
3413
|
-
case 6:
|
|
3414
|
-
_e = [{}];
|
|
3415
|
-
return [4, deserializeAws_queryFromEmailAddressNotVerifiedExceptionResponse(parsedOutput, context)];
|
|
3416
|
-
case 7:
|
|
3417
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3418
|
-
return [3, 13];
|
|
3419
|
-
case 8:
|
|
3420
|
-
_f = [{}];
|
|
3421
|
-
return [4, deserializeAws_queryMessageRejectedResponse(parsedOutput, context)];
|
|
3422
|
-
case 9:
|
|
3423
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3424
|
-
return [3, 13];
|
|
3425
|
-
case 10:
|
|
3426
|
-
_g = [{}];
|
|
3427
|
-
return [4, deserializeAws_queryProductionAccessNotGrantedExceptionResponse(parsedOutput, context)];
|
|
3428
|
-
case 11:
|
|
3429
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3430
|
-
return [3, 13];
|
|
3146
|
+
case 2: return [4, deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
3147
|
+
case 3: throw _d.sent();
|
|
3148
|
+
case 4: return [4, deserializeAws_queryCustomVerificationEmailTemplateDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
3149
|
+
case 5: throw _d.sent();
|
|
3150
|
+
case 6: return [4, deserializeAws_queryFromEmailAddressNotVerifiedExceptionResponse(parsedOutput, context)];
|
|
3151
|
+
case 7: throw _d.sent();
|
|
3152
|
+
case 8: return [4, deserializeAws_queryMessageRejectedResponse(parsedOutput, context)];
|
|
3153
|
+
case 9: throw _d.sent();
|
|
3154
|
+
case 10: return [4, deserializeAws_queryProductionAccessNotGrantedExceptionResponse(parsedOutput, context)];
|
|
3155
|
+
case 11: throw _d.sent();
|
|
3431
3156
|
case 12:
|
|
3432
3157
|
parsedBody = parsedOutput.body;
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
response.
|
|
3439
|
-
delete response.Message;
|
|
3440
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3158
|
+
response = new __BaseException({
|
|
3159
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3160
|
+
$fault: "client",
|
|
3161
|
+
$metadata: deserializeMetadata(output),
|
|
3162
|
+
});
|
|
3163
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3441
3164
|
}
|
|
3442
3165
|
});
|
|
3443
3166
|
}); };
|
|
@@ -3460,16 +3183,16 @@ export var deserializeAws_querySendEmailCommand = function (output, context) { r
|
|
|
3460
3183
|
});
|
|
3461
3184
|
}); };
|
|
3462
3185
|
var deserializeAws_querySendEmailCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3463
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3464
|
-
var
|
|
3465
|
-
return __generator(this, function (
|
|
3466
|
-
switch (
|
|
3186
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3187
|
+
var _c;
|
|
3188
|
+
return __generator(this, function (_d) {
|
|
3189
|
+
switch (_d.label) {
|
|
3467
3190
|
case 0:
|
|
3468
3191
|
_a = [__assign({}, output)];
|
|
3469
|
-
|
|
3192
|
+
_c = {};
|
|
3470
3193
|
return [4, parseBody(output.body, context)];
|
|
3471
3194
|
case 1:
|
|
3472
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3195
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3473
3196
|
errorCode = "UnknownError";
|
|
3474
3197
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3475
3198
|
_b = errorCode;
|
|
@@ -3486,46 +3209,24 @@ var deserializeAws_querySendEmailCommandError = function (output, context) { ret
|
|
|
3486
3209
|
case "com.amazonaws.ses#MessageRejected": return [3, 10];
|
|
3487
3210
|
}
|
|
3488
3211
|
return [3, 12];
|
|
3489
|
-
case 2:
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
case
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
case 4
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
case
|
|
3499
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3500
|
-
return [3, 13];
|
|
3501
|
-
case 6:
|
|
3502
|
-
_e = [{}];
|
|
3503
|
-
return [4, deserializeAws_queryConfigurationSetSendingPausedExceptionResponse(parsedOutput, context)];
|
|
3504
|
-
case 7:
|
|
3505
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3506
|
-
return [3, 13];
|
|
3507
|
-
case 8:
|
|
3508
|
-
_f = [{}];
|
|
3509
|
-
return [4, deserializeAws_queryMailFromDomainNotVerifiedExceptionResponse(parsedOutput, context)];
|
|
3510
|
-
case 9:
|
|
3511
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3512
|
-
return [3, 13];
|
|
3513
|
-
case 10:
|
|
3514
|
-
_g = [{}];
|
|
3515
|
-
return [4, deserializeAws_queryMessageRejectedResponse(parsedOutput, context)];
|
|
3516
|
-
case 11:
|
|
3517
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3518
|
-
return [3, 13];
|
|
3212
|
+
case 2: return [4, deserializeAws_queryAccountSendingPausedExceptionResponse(parsedOutput, context)];
|
|
3213
|
+
case 3: throw _d.sent();
|
|
3214
|
+
case 4: return [4, deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
3215
|
+
case 5: throw _d.sent();
|
|
3216
|
+
case 6: return [4, deserializeAws_queryConfigurationSetSendingPausedExceptionResponse(parsedOutput, context)];
|
|
3217
|
+
case 7: throw _d.sent();
|
|
3218
|
+
case 8: return [4, deserializeAws_queryMailFromDomainNotVerifiedExceptionResponse(parsedOutput, context)];
|
|
3219
|
+
case 9: throw _d.sent();
|
|
3220
|
+
case 10: return [4, deserializeAws_queryMessageRejectedResponse(parsedOutput, context)];
|
|
3221
|
+
case 11: throw _d.sent();
|
|
3519
3222
|
case 12:
|
|
3520
3223
|
parsedBody = parsedOutput.body;
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
response.
|
|
3527
|
-
delete response.Message;
|
|
3528
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3224
|
+
response = new __BaseException({
|
|
3225
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3226
|
+
$fault: "client",
|
|
3227
|
+
$metadata: deserializeMetadata(output),
|
|
3228
|
+
});
|
|
3229
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3529
3230
|
}
|
|
3530
3231
|
});
|
|
3531
3232
|
}); };
|
|
@@ -3548,16 +3249,16 @@ export var deserializeAws_querySendRawEmailCommand = function (output, context)
|
|
|
3548
3249
|
});
|
|
3549
3250
|
}); };
|
|
3550
3251
|
var deserializeAws_querySendRawEmailCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3551
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3552
|
-
var
|
|
3553
|
-
return __generator(this, function (
|
|
3554
|
-
switch (
|
|
3252
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3253
|
+
var _c;
|
|
3254
|
+
return __generator(this, function (_d) {
|
|
3255
|
+
switch (_d.label) {
|
|
3555
3256
|
case 0:
|
|
3556
3257
|
_a = [__assign({}, output)];
|
|
3557
|
-
|
|
3258
|
+
_c = {};
|
|
3558
3259
|
return [4, parseBody(output.body, context)];
|
|
3559
3260
|
case 1:
|
|
3560
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3261
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3561
3262
|
errorCode = "UnknownError";
|
|
3562
3263
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3563
3264
|
_b = errorCode;
|
|
@@ -3574,46 +3275,24 @@ var deserializeAws_querySendRawEmailCommandError = function (output, context) {
|
|
|
3574
3275
|
case "com.amazonaws.ses#MessageRejected": return [3, 10];
|
|
3575
3276
|
}
|
|
3576
3277
|
return [3, 12];
|
|
3577
|
-
case 2:
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
case
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
case 4
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
case
|
|
3587
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3588
|
-
return [3, 13];
|
|
3589
|
-
case 6:
|
|
3590
|
-
_e = [{}];
|
|
3591
|
-
return [4, deserializeAws_queryConfigurationSetSendingPausedExceptionResponse(parsedOutput, context)];
|
|
3592
|
-
case 7:
|
|
3593
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3594
|
-
return [3, 13];
|
|
3595
|
-
case 8:
|
|
3596
|
-
_f = [{}];
|
|
3597
|
-
return [4, deserializeAws_queryMailFromDomainNotVerifiedExceptionResponse(parsedOutput, context)];
|
|
3598
|
-
case 9:
|
|
3599
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3600
|
-
return [3, 13];
|
|
3601
|
-
case 10:
|
|
3602
|
-
_g = [{}];
|
|
3603
|
-
return [4, deserializeAws_queryMessageRejectedResponse(parsedOutput, context)];
|
|
3604
|
-
case 11:
|
|
3605
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3606
|
-
return [3, 13];
|
|
3278
|
+
case 2: return [4, deserializeAws_queryAccountSendingPausedExceptionResponse(parsedOutput, context)];
|
|
3279
|
+
case 3: throw _d.sent();
|
|
3280
|
+
case 4: return [4, deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
3281
|
+
case 5: throw _d.sent();
|
|
3282
|
+
case 6: return [4, deserializeAws_queryConfigurationSetSendingPausedExceptionResponse(parsedOutput, context)];
|
|
3283
|
+
case 7: throw _d.sent();
|
|
3284
|
+
case 8: return [4, deserializeAws_queryMailFromDomainNotVerifiedExceptionResponse(parsedOutput, context)];
|
|
3285
|
+
case 9: throw _d.sent();
|
|
3286
|
+
case 10: return [4, deserializeAws_queryMessageRejectedResponse(parsedOutput, context)];
|
|
3287
|
+
case 11: throw _d.sent();
|
|
3607
3288
|
case 12:
|
|
3608
3289
|
parsedBody = parsedOutput.body;
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
response.
|
|
3615
|
-
delete response.Message;
|
|
3616
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3290
|
+
response = new __BaseException({
|
|
3291
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3292
|
+
$fault: "client",
|
|
3293
|
+
$metadata: deserializeMetadata(output),
|
|
3294
|
+
});
|
|
3295
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3617
3296
|
}
|
|
3618
3297
|
});
|
|
3619
3298
|
}); };
|
|
@@ -3636,16 +3315,16 @@ export var deserializeAws_querySendTemplatedEmailCommand = function (output, con
|
|
|
3636
3315
|
});
|
|
3637
3316
|
}); };
|
|
3638
3317
|
var deserializeAws_querySendTemplatedEmailCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3639
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3640
|
-
var
|
|
3641
|
-
return __generator(this, function (
|
|
3642
|
-
switch (
|
|
3318
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3319
|
+
var _c;
|
|
3320
|
+
return __generator(this, function (_d) {
|
|
3321
|
+
switch (_d.label) {
|
|
3643
3322
|
case 0:
|
|
3644
3323
|
_a = [__assign({}, output)];
|
|
3645
|
-
|
|
3324
|
+
_c = {};
|
|
3646
3325
|
return [4, parseBody(output.body, context)];
|
|
3647
3326
|
case 1:
|
|
3648
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3327
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3649
3328
|
errorCode = "UnknownError";
|
|
3650
3329
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3651
3330
|
_b = errorCode;
|
|
@@ -3664,52 +3343,26 @@ var deserializeAws_querySendTemplatedEmailCommandError = function (output, conte
|
|
|
3664
3343
|
case "com.amazonaws.ses#TemplateDoesNotExistException": return [3, 12];
|
|
3665
3344
|
}
|
|
3666
3345
|
return [3, 14];
|
|
3667
|
-
case 2:
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
case
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
case 4
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
case
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
case 6:
|
|
3680
|
-
_e = [{}];
|
|
3681
|
-
return [4, deserializeAws_queryConfigurationSetSendingPausedExceptionResponse(parsedOutput, context)];
|
|
3682
|
-
case 7:
|
|
3683
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3684
|
-
return [3, 15];
|
|
3685
|
-
case 8:
|
|
3686
|
-
_f = [{}];
|
|
3687
|
-
return [4, deserializeAws_queryMailFromDomainNotVerifiedExceptionResponse(parsedOutput, context)];
|
|
3688
|
-
case 9:
|
|
3689
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3690
|
-
return [3, 15];
|
|
3691
|
-
case 10:
|
|
3692
|
-
_g = [{}];
|
|
3693
|
-
return [4, deserializeAws_queryMessageRejectedResponse(parsedOutput, context)];
|
|
3694
|
-
case 11:
|
|
3695
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3696
|
-
return [3, 15];
|
|
3697
|
-
case 12:
|
|
3698
|
-
_h = [{}];
|
|
3699
|
-
return [4, deserializeAws_queryTemplateDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
3700
|
-
case 13:
|
|
3701
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3702
|
-
return [3, 15];
|
|
3346
|
+
case 2: return [4, deserializeAws_queryAccountSendingPausedExceptionResponse(parsedOutput, context)];
|
|
3347
|
+
case 3: throw _d.sent();
|
|
3348
|
+
case 4: return [4, deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
3349
|
+
case 5: throw _d.sent();
|
|
3350
|
+
case 6: return [4, deserializeAws_queryConfigurationSetSendingPausedExceptionResponse(parsedOutput, context)];
|
|
3351
|
+
case 7: throw _d.sent();
|
|
3352
|
+
case 8: return [4, deserializeAws_queryMailFromDomainNotVerifiedExceptionResponse(parsedOutput, context)];
|
|
3353
|
+
case 9: throw _d.sent();
|
|
3354
|
+
case 10: return [4, deserializeAws_queryMessageRejectedResponse(parsedOutput, context)];
|
|
3355
|
+
case 11: throw _d.sent();
|
|
3356
|
+
case 12: return [4, deserializeAws_queryTemplateDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
3357
|
+
case 13: throw _d.sent();
|
|
3703
3358
|
case 14:
|
|
3704
3359
|
parsedBody = parsedOutput.body;
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
response.
|
|
3711
|
-
delete response.Message;
|
|
3712
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3360
|
+
response = new __BaseException({
|
|
3361
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3362
|
+
$fault: "client",
|
|
3363
|
+
$metadata: deserializeMetadata(output),
|
|
3364
|
+
});
|
|
3365
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3713
3366
|
}
|
|
3714
3367
|
});
|
|
3715
3368
|
}); };
|
|
@@ -3732,16 +3385,16 @@ export var deserializeAws_querySetActiveReceiptRuleSetCommand = function (output
|
|
|
3732
3385
|
});
|
|
3733
3386
|
}); };
|
|
3734
3387
|
var deserializeAws_querySetActiveReceiptRuleSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3735
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3736
|
-
var
|
|
3737
|
-
return __generator(this, function (
|
|
3738
|
-
switch (
|
|
3388
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3389
|
+
var _c;
|
|
3390
|
+
return __generator(this, function (_d) {
|
|
3391
|
+
switch (_d.label) {
|
|
3739
3392
|
case 0:
|
|
3740
3393
|
_a = [__assign({}, output)];
|
|
3741
|
-
|
|
3394
|
+
_c = {};
|
|
3742
3395
|
return [4, parseBody(output.body, context)];
|
|
3743
3396
|
case 1:
|
|
3744
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3397
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3745
3398
|
errorCode = "UnknownError";
|
|
3746
3399
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3747
3400
|
_b = errorCode;
|
|
@@ -3750,22 +3403,16 @@ var deserializeAws_querySetActiveReceiptRuleSetCommandError = function (output,
|
|
|
3750
3403
|
case "com.amazonaws.ses#RuleSetDoesNotExistException": return [3, 2];
|
|
3751
3404
|
}
|
|
3752
3405
|
return [3, 4];
|
|
3753
|
-
case 2:
|
|
3754
|
-
|
|
3755
|
-
return [4, deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
3756
|
-
case 3:
|
|
3757
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3758
|
-
return [3, 5];
|
|
3406
|
+
case 2: return [4, deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
3407
|
+
case 3: throw _d.sent();
|
|
3759
3408
|
case 4:
|
|
3760
3409
|
parsedBody = parsedOutput.body;
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
response.
|
|
3767
|
-
delete response.Message;
|
|
3768
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3410
|
+
response = new __BaseException({
|
|
3411
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3412
|
+
$fault: "client",
|
|
3413
|
+
$metadata: deserializeMetadata(output),
|
|
3414
|
+
});
|
|
3415
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3769
3416
|
}
|
|
3770
3417
|
});
|
|
3771
3418
|
}); };
|
|
@@ -3788,7 +3435,7 @@ export var deserializeAws_querySetIdentityDkimEnabledCommand = function (output,
|
|
|
3788
3435
|
});
|
|
3789
3436
|
}); };
|
|
3790
3437
|
var deserializeAws_querySetIdentityDkimEnabledCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3791
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
3438
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3792
3439
|
var _b;
|
|
3793
3440
|
return __generator(this, function (_c) {
|
|
3794
3441
|
switch (_c.label) {
|
|
@@ -3803,13 +3450,14 @@ var deserializeAws_querySetIdentityDkimEnabledCommandError = function (output, c
|
|
|
3803
3450
|
switch (errorCode) {
|
|
3804
3451
|
default:
|
|
3805
3452
|
parsedBody = parsedOutput.body;
|
|
3806
|
-
|
|
3807
|
-
|
|
3453
|
+
response = new __BaseException({
|
|
3454
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3455
|
+
$fault: "client",
|
|
3456
|
+
$metadata: deserializeMetadata(output),
|
|
3457
|
+
});
|
|
3458
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3808
3459
|
}
|
|
3809
|
-
|
|
3810
|
-
response.message = message;
|
|
3811
|
-
delete response.Message;
|
|
3812
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3460
|
+
return [2];
|
|
3813
3461
|
}
|
|
3814
3462
|
});
|
|
3815
3463
|
}); };
|
|
@@ -3832,7 +3480,7 @@ export var deserializeAws_querySetIdentityFeedbackForwardingEnabledCommand = fun
|
|
|
3832
3480
|
});
|
|
3833
3481
|
}); };
|
|
3834
3482
|
var deserializeAws_querySetIdentityFeedbackForwardingEnabledCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3835
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
3483
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3836
3484
|
var _b;
|
|
3837
3485
|
return __generator(this, function (_c) {
|
|
3838
3486
|
switch (_c.label) {
|
|
@@ -3847,13 +3495,14 @@ var deserializeAws_querySetIdentityFeedbackForwardingEnabledCommandError = funct
|
|
|
3847
3495
|
switch (errorCode) {
|
|
3848
3496
|
default:
|
|
3849
3497
|
parsedBody = parsedOutput.body;
|
|
3850
|
-
|
|
3851
|
-
|
|
3498
|
+
response = new __BaseException({
|
|
3499
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3500
|
+
$fault: "client",
|
|
3501
|
+
$metadata: deserializeMetadata(output),
|
|
3502
|
+
});
|
|
3503
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3852
3504
|
}
|
|
3853
|
-
|
|
3854
|
-
response.message = message;
|
|
3855
|
-
delete response.Message;
|
|
3856
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3505
|
+
return [2];
|
|
3857
3506
|
}
|
|
3858
3507
|
});
|
|
3859
3508
|
}); };
|
|
@@ -3876,7 +3525,7 @@ export var deserializeAws_querySetIdentityHeadersInNotificationsEnabledCommand =
|
|
|
3876
3525
|
});
|
|
3877
3526
|
}); };
|
|
3878
3527
|
var deserializeAws_querySetIdentityHeadersInNotificationsEnabledCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3879
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
3528
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3880
3529
|
var _b;
|
|
3881
3530
|
return __generator(this, function (_c) {
|
|
3882
3531
|
switch (_c.label) {
|
|
@@ -3891,13 +3540,14 @@ var deserializeAws_querySetIdentityHeadersInNotificationsEnabledCommandError = f
|
|
|
3891
3540
|
switch (errorCode) {
|
|
3892
3541
|
default:
|
|
3893
3542
|
parsedBody = parsedOutput.body;
|
|
3894
|
-
|
|
3895
|
-
|
|
3543
|
+
response = new __BaseException({
|
|
3544
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3545
|
+
$fault: "client",
|
|
3546
|
+
$metadata: deserializeMetadata(output),
|
|
3547
|
+
});
|
|
3548
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3896
3549
|
}
|
|
3897
|
-
|
|
3898
|
-
response.message = message;
|
|
3899
|
-
delete response.Message;
|
|
3900
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3550
|
+
return [2];
|
|
3901
3551
|
}
|
|
3902
3552
|
});
|
|
3903
3553
|
}); };
|
|
@@ -3920,7 +3570,7 @@ export var deserializeAws_querySetIdentityMailFromDomainCommand = function (outp
|
|
|
3920
3570
|
});
|
|
3921
3571
|
}); };
|
|
3922
3572
|
var deserializeAws_querySetIdentityMailFromDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3923
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
3573
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3924
3574
|
var _b;
|
|
3925
3575
|
return __generator(this, function (_c) {
|
|
3926
3576
|
switch (_c.label) {
|
|
@@ -3935,13 +3585,14 @@ var deserializeAws_querySetIdentityMailFromDomainCommandError = function (output
|
|
|
3935
3585
|
switch (errorCode) {
|
|
3936
3586
|
default:
|
|
3937
3587
|
parsedBody = parsedOutput.body;
|
|
3938
|
-
|
|
3939
|
-
|
|
3588
|
+
response = new __BaseException({
|
|
3589
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3590
|
+
$fault: "client",
|
|
3591
|
+
$metadata: deserializeMetadata(output),
|
|
3592
|
+
});
|
|
3593
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3940
3594
|
}
|
|
3941
|
-
|
|
3942
|
-
response.message = message;
|
|
3943
|
-
delete response.Message;
|
|
3944
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3595
|
+
return [2];
|
|
3945
3596
|
}
|
|
3946
3597
|
});
|
|
3947
3598
|
}); };
|
|
@@ -3964,7 +3615,7 @@ export var deserializeAws_querySetIdentityNotificationTopicCommand = function (o
|
|
|
3964
3615
|
});
|
|
3965
3616
|
}); };
|
|
3966
3617
|
var deserializeAws_querySetIdentityNotificationTopicCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3967
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
3618
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3968
3619
|
var _b;
|
|
3969
3620
|
return __generator(this, function (_c) {
|
|
3970
3621
|
switch (_c.label) {
|
|
@@ -3979,13 +3630,14 @@ var deserializeAws_querySetIdentityNotificationTopicCommandError = function (out
|
|
|
3979
3630
|
switch (errorCode) {
|
|
3980
3631
|
default:
|
|
3981
3632
|
parsedBody = parsedOutput.body;
|
|
3982
|
-
|
|
3983
|
-
|
|
3633
|
+
response = new __BaseException({
|
|
3634
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3635
|
+
$fault: "client",
|
|
3636
|
+
$metadata: deserializeMetadata(output),
|
|
3637
|
+
});
|
|
3638
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3984
3639
|
}
|
|
3985
|
-
|
|
3986
|
-
response.message = message;
|
|
3987
|
-
delete response.Message;
|
|
3988
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3640
|
+
return [2];
|
|
3989
3641
|
}
|
|
3990
3642
|
});
|
|
3991
3643
|
}); };
|
|
@@ -4008,16 +3660,16 @@ export var deserializeAws_querySetReceiptRulePositionCommand = function (output,
|
|
|
4008
3660
|
});
|
|
4009
3661
|
}); };
|
|
4010
3662
|
var deserializeAws_querySetReceiptRulePositionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4011
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4012
|
-
var
|
|
4013
|
-
return __generator(this, function (
|
|
4014
|
-
switch (
|
|
3663
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3664
|
+
var _c;
|
|
3665
|
+
return __generator(this, function (_d) {
|
|
3666
|
+
switch (_d.label) {
|
|
4015
3667
|
case 0:
|
|
4016
3668
|
_a = [__assign({}, output)];
|
|
4017
|
-
|
|
3669
|
+
_c = {};
|
|
4018
3670
|
return [4, parseBody(output.body, context)];
|
|
4019
3671
|
case 1:
|
|
4020
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3672
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4021
3673
|
errorCode = "UnknownError";
|
|
4022
3674
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4023
3675
|
_b = errorCode;
|
|
@@ -4028,28 +3680,18 @@ var deserializeAws_querySetReceiptRulePositionCommandError = function (output, c
|
|
|
4028
3680
|
case "com.amazonaws.ses#RuleSetDoesNotExistException": return [3, 4];
|
|
4029
3681
|
}
|
|
4030
3682
|
return [3, 6];
|
|
4031
|
-
case 2:
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
case
|
|
4035
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4036
|
-
return [3, 7];
|
|
4037
|
-
case 4:
|
|
4038
|
-
_d = [{}];
|
|
4039
|
-
return [4, deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
4040
|
-
case 5:
|
|
4041
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4042
|
-
return [3, 7];
|
|
3683
|
+
case 2: return [4, deserializeAws_queryRuleDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
3684
|
+
case 3: throw _d.sent();
|
|
3685
|
+
case 4: return [4, deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
3686
|
+
case 5: throw _d.sent();
|
|
4043
3687
|
case 6:
|
|
4044
3688
|
parsedBody = parsedOutput.body;
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
response.
|
|
4051
|
-
delete response.Message;
|
|
4052
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3689
|
+
response = new __BaseException({
|
|
3690
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3691
|
+
$fault: "client",
|
|
3692
|
+
$metadata: deserializeMetadata(output),
|
|
3693
|
+
});
|
|
3694
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
4053
3695
|
}
|
|
4054
3696
|
});
|
|
4055
3697
|
}); };
|
|
@@ -4072,16 +3714,16 @@ export var deserializeAws_queryTestRenderTemplateCommand = function (output, con
|
|
|
4072
3714
|
});
|
|
4073
3715
|
}); };
|
|
4074
3716
|
var deserializeAws_queryTestRenderTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4075
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4076
|
-
var
|
|
4077
|
-
return __generator(this, function (
|
|
4078
|
-
switch (
|
|
3717
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3718
|
+
var _c;
|
|
3719
|
+
return __generator(this, function (_d) {
|
|
3720
|
+
switch (_d.label) {
|
|
4079
3721
|
case 0:
|
|
4080
3722
|
_a = [__assign({}, output)];
|
|
4081
|
-
|
|
3723
|
+
_c = {};
|
|
4082
3724
|
return [4, parseBody(output.body, context)];
|
|
4083
3725
|
case 1:
|
|
4084
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3726
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4085
3727
|
errorCode = "UnknownError";
|
|
4086
3728
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4087
3729
|
_b = errorCode;
|
|
@@ -4094,34 +3736,20 @@ var deserializeAws_queryTestRenderTemplateCommandError = function (output, conte
|
|
|
4094
3736
|
case "com.amazonaws.ses#TemplateDoesNotExistException": return [3, 6];
|
|
4095
3737
|
}
|
|
4096
3738
|
return [3, 8];
|
|
4097
|
-
case 2:
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
case
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
case 4:
|
|
4104
|
-
_d = [{}];
|
|
4105
|
-
return [4, deserializeAws_queryMissingRenderingAttributeExceptionResponse(parsedOutput, context)];
|
|
4106
|
-
case 5:
|
|
4107
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4108
|
-
return [3, 9];
|
|
4109
|
-
case 6:
|
|
4110
|
-
_e = [{}];
|
|
4111
|
-
return [4, deserializeAws_queryTemplateDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
4112
|
-
case 7:
|
|
4113
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4114
|
-
return [3, 9];
|
|
3739
|
+
case 2: return [4, deserializeAws_queryInvalidRenderingParameterExceptionResponse(parsedOutput, context)];
|
|
3740
|
+
case 3: throw _d.sent();
|
|
3741
|
+
case 4: return [4, deserializeAws_queryMissingRenderingAttributeExceptionResponse(parsedOutput, context)];
|
|
3742
|
+
case 5: throw _d.sent();
|
|
3743
|
+
case 6: return [4, deserializeAws_queryTemplateDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
3744
|
+
case 7: throw _d.sent();
|
|
4115
3745
|
case 8:
|
|
4116
3746
|
parsedBody = parsedOutput.body;
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
response.
|
|
4123
|
-
delete response.Message;
|
|
4124
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3747
|
+
response = new __BaseException({
|
|
3748
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3749
|
+
$fault: "client",
|
|
3750
|
+
$metadata: deserializeMetadata(output),
|
|
3751
|
+
});
|
|
3752
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
4125
3753
|
}
|
|
4126
3754
|
});
|
|
4127
3755
|
}); };
|
|
@@ -4144,7 +3772,7 @@ export var deserializeAws_queryUpdateAccountSendingEnabledCommand = function (ou
|
|
|
4144
3772
|
});
|
|
4145
3773
|
}); };
|
|
4146
3774
|
var deserializeAws_queryUpdateAccountSendingEnabledCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4147
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
3775
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
4148
3776
|
var _b;
|
|
4149
3777
|
return __generator(this, function (_c) {
|
|
4150
3778
|
switch (_c.label) {
|
|
@@ -4159,13 +3787,14 @@ var deserializeAws_queryUpdateAccountSendingEnabledCommandError = function (outp
|
|
|
4159
3787
|
switch (errorCode) {
|
|
4160
3788
|
default:
|
|
4161
3789
|
parsedBody = parsedOutput.body;
|
|
4162
|
-
|
|
4163
|
-
|
|
3790
|
+
response = new __BaseException({
|
|
3791
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3792
|
+
$fault: "client",
|
|
3793
|
+
$metadata: deserializeMetadata(output),
|
|
3794
|
+
});
|
|
3795
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
4164
3796
|
}
|
|
4165
|
-
|
|
4166
|
-
response.message = message;
|
|
4167
|
-
delete response.Message;
|
|
4168
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3797
|
+
return [2];
|
|
4169
3798
|
}
|
|
4170
3799
|
});
|
|
4171
3800
|
}); };
|
|
@@ -4188,16 +3817,16 @@ export var deserializeAws_queryUpdateConfigurationSetEventDestinationCommand = f
|
|
|
4188
3817
|
});
|
|
4189
3818
|
}); };
|
|
4190
3819
|
var deserializeAws_queryUpdateConfigurationSetEventDestinationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4191
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4192
|
-
var
|
|
4193
|
-
return __generator(this, function (
|
|
4194
|
-
switch (
|
|
3820
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3821
|
+
var _c;
|
|
3822
|
+
return __generator(this, function (_d) {
|
|
3823
|
+
switch (_d.label) {
|
|
4195
3824
|
case 0:
|
|
4196
3825
|
_a = [__assign({}, output)];
|
|
4197
|
-
|
|
3826
|
+
_c = {};
|
|
4198
3827
|
return [4, parseBody(output.body, context)];
|
|
4199
3828
|
case 1:
|
|
4200
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3829
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4201
3830
|
errorCode = "UnknownError";
|
|
4202
3831
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4203
3832
|
_b = errorCode;
|
|
@@ -4214,46 +3843,24 @@ var deserializeAws_queryUpdateConfigurationSetEventDestinationCommandError = fun
|
|
|
4214
3843
|
case "com.amazonaws.ses#InvalidSNSDestinationException": return [3, 10];
|
|
4215
3844
|
}
|
|
4216
3845
|
return [3, 12];
|
|
4217
|
-
case 2:
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
case
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
case 4
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
case
|
|
4227
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4228
|
-
return [3, 13];
|
|
4229
|
-
case 6:
|
|
4230
|
-
_e = [{}];
|
|
4231
|
-
return [4, deserializeAws_queryInvalidCloudWatchDestinationExceptionResponse(parsedOutput, context)];
|
|
4232
|
-
case 7:
|
|
4233
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4234
|
-
return [3, 13];
|
|
4235
|
-
case 8:
|
|
4236
|
-
_f = [{}];
|
|
4237
|
-
return [4, deserializeAws_queryInvalidFirehoseDestinationExceptionResponse(parsedOutput, context)];
|
|
4238
|
-
case 9:
|
|
4239
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4240
|
-
return [3, 13];
|
|
4241
|
-
case 10:
|
|
4242
|
-
_g = [{}];
|
|
4243
|
-
return [4, deserializeAws_queryInvalidSNSDestinationExceptionResponse(parsedOutput, context)];
|
|
4244
|
-
case 11:
|
|
4245
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4246
|
-
return [3, 13];
|
|
3846
|
+
case 2: return [4, deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
3847
|
+
case 3: throw _d.sent();
|
|
3848
|
+
case 4: return [4, deserializeAws_queryEventDestinationDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
3849
|
+
case 5: throw _d.sent();
|
|
3850
|
+
case 6: return [4, deserializeAws_queryInvalidCloudWatchDestinationExceptionResponse(parsedOutput, context)];
|
|
3851
|
+
case 7: throw _d.sent();
|
|
3852
|
+
case 8: return [4, deserializeAws_queryInvalidFirehoseDestinationExceptionResponse(parsedOutput, context)];
|
|
3853
|
+
case 9: throw _d.sent();
|
|
3854
|
+
case 10: return [4, deserializeAws_queryInvalidSNSDestinationExceptionResponse(parsedOutput, context)];
|
|
3855
|
+
case 11: throw _d.sent();
|
|
4247
3856
|
case 12:
|
|
4248
3857
|
parsedBody = parsedOutput.body;
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
response.
|
|
4255
|
-
delete response.Message;
|
|
4256
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3858
|
+
response = new __BaseException({
|
|
3859
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3860
|
+
$fault: "client",
|
|
3861
|
+
$metadata: deserializeMetadata(output),
|
|
3862
|
+
});
|
|
3863
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
4257
3864
|
}
|
|
4258
3865
|
});
|
|
4259
3866
|
}); };
|
|
@@ -4276,16 +3883,16 @@ export var deserializeAws_queryUpdateConfigurationSetReputationMetricsEnabledCom
|
|
|
4276
3883
|
});
|
|
4277
3884
|
}); };
|
|
4278
3885
|
var deserializeAws_queryUpdateConfigurationSetReputationMetricsEnabledCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4279
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4280
|
-
var
|
|
4281
|
-
return __generator(this, function (
|
|
4282
|
-
switch (
|
|
3886
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3887
|
+
var _c;
|
|
3888
|
+
return __generator(this, function (_d) {
|
|
3889
|
+
switch (_d.label) {
|
|
4283
3890
|
case 0:
|
|
4284
3891
|
_a = [__assign({}, output)];
|
|
4285
|
-
|
|
3892
|
+
_c = {};
|
|
4286
3893
|
return [4, parseBody(output.body, context)];
|
|
4287
3894
|
case 1:
|
|
4288
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3895
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4289
3896
|
errorCode = "UnknownError";
|
|
4290
3897
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4291
3898
|
_b = errorCode;
|
|
@@ -4294,22 +3901,16 @@ var deserializeAws_queryUpdateConfigurationSetReputationMetricsEnabledCommandErr
|
|
|
4294
3901
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException": return [3, 2];
|
|
4295
3902
|
}
|
|
4296
3903
|
return [3, 4];
|
|
4297
|
-
case 2:
|
|
4298
|
-
|
|
4299
|
-
return [4, deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
4300
|
-
case 3:
|
|
4301
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4302
|
-
return [3, 5];
|
|
3904
|
+
case 2: return [4, deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
3905
|
+
case 3: throw _d.sent();
|
|
4303
3906
|
case 4:
|
|
4304
3907
|
parsedBody = parsedOutput.body;
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
response.
|
|
4311
|
-
delete response.Message;
|
|
4312
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3908
|
+
response = new __BaseException({
|
|
3909
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3910
|
+
$fault: "client",
|
|
3911
|
+
$metadata: deserializeMetadata(output),
|
|
3912
|
+
});
|
|
3913
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
4313
3914
|
}
|
|
4314
3915
|
});
|
|
4315
3916
|
}); };
|
|
@@ -4332,16 +3933,16 @@ export var deserializeAws_queryUpdateConfigurationSetSendingEnabledCommand = fun
|
|
|
4332
3933
|
});
|
|
4333
3934
|
}); };
|
|
4334
3935
|
var deserializeAws_queryUpdateConfigurationSetSendingEnabledCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4335
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4336
|
-
var
|
|
4337
|
-
return __generator(this, function (
|
|
4338
|
-
switch (
|
|
3936
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3937
|
+
var _c;
|
|
3938
|
+
return __generator(this, function (_d) {
|
|
3939
|
+
switch (_d.label) {
|
|
4339
3940
|
case 0:
|
|
4340
3941
|
_a = [__assign({}, output)];
|
|
4341
|
-
|
|
3942
|
+
_c = {};
|
|
4342
3943
|
return [4, parseBody(output.body, context)];
|
|
4343
3944
|
case 1:
|
|
4344
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3945
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4345
3946
|
errorCode = "UnknownError";
|
|
4346
3947
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4347
3948
|
_b = errorCode;
|
|
@@ -4350,22 +3951,16 @@ var deserializeAws_queryUpdateConfigurationSetSendingEnabledCommandError = funct
|
|
|
4350
3951
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException": return [3, 2];
|
|
4351
3952
|
}
|
|
4352
3953
|
return [3, 4];
|
|
4353
|
-
case 2:
|
|
4354
|
-
|
|
4355
|
-
return [4, deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
4356
|
-
case 3:
|
|
4357
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4358
|
-
return [3, 5];
|
|
3954
|
+
case 2: return [4, deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
3955
|
+
case 3: throw _d.sent();
|
|
4359
3956
|
case 4:
|
|
4360
3957
|
parsedBody = parsedOutput.body;
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
response.
|
|
4367
|
-
delete response.Message;
|
|
4368
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3958
|
+
response = new __BaseException({
|
|
3959
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3960
|
+
$fault: "client",
|
|
3961
|
+
$metadata: deserializeMetadata(output),
|
|
3962
|
+
});
|
|
3963
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
4369
3964
|
}
|
|
4370
3965
|
});
|
|
4371
3966
|
}); };
|
|
@@ -4388,16 +3983,16 @@ export var deserializeAws_queryUpdateConfigurationSetTrackingOptionsCommand = fu
|
|
|
4388
3983
|
});
|
|
4389
3984
|
}); };
|
|
4390
3985
|
var deserializeAws_queryUpdateConfigurationSetTrackingOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4391
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4392
|
-
var
|
|
4393
|
-
return __generator(this, function (
|
|
4394
|
-
switch (
|
|
3986
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3987
|
+
var _c;
|
|
3988
|
+
return __generator(this, function (_d) {
|
|
3989
|
+
switch (_d.label) {
|
|
4395
3990
|
case 0:
|
|
4396
3991
|
_a = [__assign({}, output)];
|
|
4397
|
-
|
|
3992
|
+
_c = {};
|
|
4398
3993
|
return [4, parseBody(output.body, context)];
|
|
4399
3994
|
case 1:
|
|
4400
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3995
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4401
3996
|
errorCode = "UnknownError";
|
|
4402
3997
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4403
3998
|
_b = errorCode;
|
|
@@ -4410,34 +4005,20 @@ var deserializeAws_queryUpdateConfigurationSetTrackingOptionsCommandError = func
|
|
|
4410
4005
|
case "com.amazonaws.ses#TrackingOptionsDoesNotExistException": return [3, 6];
|
|
4411
4006
|
}
|
|
4412
4007
|
return [3, 8];
|
|
4413
|
-
case 2:
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
case
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
case 4:
|
|
4420
|
-
_d = [{}];
|
|
4421
|
-
return [4, deserializeAws_queryInvalidTrackingOptionsExceptionResponse(parsedOutput, context)];
|
|
4422
|
-
case 5:
|
|
4423
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4424
|
-
return [3, 9];
|
|
4425
|
-
case 6:
|
|
4426
|
-
_e = [{}];
|
|
4427
|
-
return [4, deserializeAws_queryTrackingOptionsDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
4428
|
-
case 7:
|
|
4429
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4430
|
-
return [3, 9];
|
|
4008
|
+
case 2: return [4, deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
4009
|
+
case 3: throw _d.sent();
|
|
4010
|
+
case 4: return [4, deserializeAws_queryInvalidTrackingOptionsExceptionResponse(parsedOutput, context)];
|
|
4011
|
+
case 5: throw _d.sent();
|
|
4012
|
+
case 6: return [4, deserializeAws_queryTrackingOptionsDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
4013
|
+
case 7: throw _d.sent();
|
|
4431
4014
|
case 8:
|
|
4432
4015
|
parsedBody = parsedOutput.body;
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
response.
|
|
4439
|
-
delete response.Message;
|
|
4440
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4016
|
+
response = new __BaseException({
|
|
4017
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4018
|
+
$fault: "client",
|
|
4019
|
+
$metadata: deserializeMetadata(output),
|
|
4020
|
+
});
|
|
4021
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
4441
4022
|
}
|
|
4442
4023
|
});
|
|
4443
4024
|
}); };
|
|
@@ -4460,16 +4041,16 @@ export var deserializeAws_queryUpdateCustomVerificationEmailTemplateCommand = fu
|
|
|
4460
4041
|
});
|
|
4461
4042
|
}); };
|
|
4462
4043
|
var deserializeAws_queryUpdateCustomVerificationEmailTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4463
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4464
|
-
var
|
|
4465
|
-
return __generator(this, function (
|
|
4466
|
-
switch (
|
|
4044
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4045
|
+
var _c;
|
|
4046
|
+
return __generator(this, function (_d) {
|
|
4047
|
+
switch (_d.label) {
|
|
4467
4048
|
case 0:
|
|
4468
4049
|
_a = [__assign({}, output)];
|
|
4469
|
-
|
|
4050
|
+
_c = {};
|
|
4470
4051
|
return [4, parseBody(output.body, context)];
|
|
4471
4052
|
case 1:
|
|
4472
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
4053
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4473
4054
|
errorCode = "UnknownError";
|
|
4474
4055
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4475
4056
|
_b = errorCode;
|
|
@@ -4482,34 +4063,20 @@ var deserializeAws_queryUpdateCustomVerificationEmailTemplateCommandError = func
|
|
|
4482
4063
|
case "com.amazonaws.ses#FromEmailAddressNotVerifiedException": return [3, 6];
|
|
4483
4064
|
}
|
|
4484
4065
|
return [3, 8];
|
|
4485
|
-
case 2:
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
case
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
case 4:
|
|
4492
|
-
_d = [{}];
|
|
4493
|
-
return [4, deserializeAws_queryCustomVerificationEmailTemplateDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
4494
|
-
case 5:
|
|
4495
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4496
|
-
return [3, 9];
|
|
4497
|
-
case 6:
|
|
4498
|
-
_e = [{}];
|
|
4499
|
-
return [4, deserializeAws_queryFromEmailAddressNotVerifiedExceptionResponse(parsedOutput, context)];
|
|
4500
|
-
case 7:
|
|
4501
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4502
|
-
return [3, 9];
|
|
4066
|
+
case 2: return [4, deserializeAws_queryCustomVerificationEmailInvalidContentExceptionResponse(parsedOutput, context)];
|
|
4067
|
+
case 3: throw _d.sent();
|
|
4068
|
+
case 4: return [4, deserializeAws_queryCustomVerificationEmailTemplateDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
4069
|
+
case 5: throw _d.sent();
|
|
4070
|
+
case 6: return [4, deserializeAws_queryFromEmailAddressNotVerifiedExceptionResponse(parsedOutput, context)];
|
|
4071
|
+
case 7: throw _d.sent();
|
|
4503
4072
|
case 8:
|
|
4504
4073
|
parsedBody = parsedOutput.body;
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
response.
|
|
4511
|
-
delete response.Message;
|
|
4512
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4074
|
+
response = new __BaseException({
|
|
4075
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4076
|
+
$fault: "client",
|
|
4077
|
+
$metadata: deserializeMetadata(output),
|
|
4078
|
+
});
|
|
4079
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
4513
4080
|
}
|
|
4514
4081
|
});
|
|
4515
4082
|
}); };
|
|
@@ -4532,16 +4099,16 @@ export var deserializeAws_queryUpdateReceiptRuleCommand = function (output, cont
|
|
|
4532
4099
|
});
|
|
4533
4100
|
}); };
|
|
4534
4101
|
var deserializeAws_queryUpdateReceiptRuleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4535
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4536
|
-
var
|
|
4537
|
-
return __generator(this, function (
|
|
4538
|
-
switch (
|
|
4102
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4103
|
+
var _c;
|
|
4104
|
+
return __generator(this, function (_d) {
|
|
4105
|
+
switch (_d.label) {
|
|
4539
4106
|
case 0:
|
|
4540
4107
|
_a = [__assign({}, output)];
|
|
4541
|
-
|
|
4108
|
+
_c = {};
|
|
4542
4109
|
return [4, parseBody(output.body, context)];
|
|
4543
4110
|
case 1:
|
|
4544
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
4111
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4545
4112
|
errorCode = "UnknownError";
|
|
4546
4113
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4547
4114
|
_b = errorCode;
|
|
@@ -4560,52 +4127,26 @@ var deserializeAws_queryUpdateReceiptRuleCommandError = function (output, contex
|
|
|
4560
4127
|
case "com.amazonaws.ses#RuleSetDoesNotExistException": return [3, 12];
|
|
4561
4128
|
}
|
|
4562
4129
|
return [3, 14];
|
|
4563
|
-
case 2:
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
case
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
case 4
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
case
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
case 6:
|
|
4576
|
-
_e = [{}];
|
|
4577
|
-
return [4, deserializeAws_queryInvalidSnsTopicExceptionResponse(parsedOutput, context)];
|
|
4578
|
-
case 7:
|
|
4579
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4580
|
-
return [3, 15];
|
|
4581
|
-
case 8:
|
|
4582
|
-
_f = [{}];
|
|
4583
|
-
return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
4584
|
-
case 9:
|
|
4585
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4586
|
-
return [3, 15];
|
|
4587
|
-
case 10:
|
|
4588
|
-
_g = [{}];
|
|
4589
|
-
return [4, deserializeAws_queryRuleDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
4590
|
-
case 11:
|
|
4591
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4592
|
-
return [3, 15];
|
|
4593
|
-
case 12:
|
|
4594
|
-
_h = [{}];
|
|
4595
|
-
return [4, deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
4596
|
-
case 13:
|
|
4597
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4598
|
-
return [3, 15];
|
|
4130
|
+
case 2: return [4, deserializeAws_queryInvalidLambdaFunctionExceptionResponse(parsedOutput, context)];
|
|
4131
|
+
case 3: throw _d.sent();
|
|
4132
|
+
case 4: return [4, deserializeAws_queryInvalidS3ConfigurationExceptionResponse(parsedOutput, context)];
|
|
4133
|
+
case 5: throw _d.sent();
|
|
4134
|
+
case 6: return [4, deserializeAws_queryInvalidSnsTopicExceptionResponse(parsedOutput, context)];
|
|
4135
|
+
case 7: throw _d.sent();
|
|
4136
|
+
case 8: return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
4137
|
+
case 9: throw _d.sent();
|
|
4138
|
+
case 10: return [4, deserializeAws_queryRuleDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
4139
|
+
case 11: throw _d.sent();
|
|
4140
|
+
case 12: return [4, deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
4141
|
+
case 13: throw _d.sent();
|
|
4599
4142
|
case 14:
|
|
4600
4143
|
parsedBody = parsedOutput.body;
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
response.
|
|
4607
|
-
delete response.Message;
|
|
4608
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4144
|
+
response = new __BaseException({
|
|
4145
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4146
|
+
$fault: "client",
|
|
4147
|
+
$metadata: deserializeMetadata(output),
|
|
4148
|
+
});
|
|
4149
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
4609
4150
|
}
|
|
4610
4151
|
});
|
|
4611
4152
|
}); };
|
|
@@ -4628,16 +4169,16 @@ export var deserializeAws_queryUpdateTemplateCommand = function (output, context
|
|
|
4628
4169
|
});
|
|
4629
4170
|
}); };
|
|
4630
4171
|
var deserializeAws_queryUpdateTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4631
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4632
|
-
var
|
|
4633
|
-
return __generator(this, function (
|
|
4634
|
-
switch (
|
|
4172
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4173
|
+
var _c;
|
|
4174
|
+
return __generator(this, function (_d) {
|
|
4175
|
+
switch (_d.label) {
|
|
4635
4176
|
case 0:
|
|
4636
4177
|
_a = [__assign({}, output)];
|
|
4637
|
-
|
|
4178
|
+
_c = {};
|
|
4638
4179
|
return [4, parseBody(output.body, context)];
|
|
4639
4180
|
case 1:
|
|
4640
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
4181
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4641
4182
|
errorCode = "UnknownError";
|
|
4642
4183
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4643
4184
|
_b = errorCode;
|
|
@@ -4648,28 +4189,18 @@ var deserializeAws_queryUpdateTemplateCommandError = function (output, context)
|
|
|
4648
4189
|
case "com.amazonaws.ses#TemplateDoesNotExistException": return [3, 4];
|
|
4649
4190
|
}
|
|
4650
4191
|
return [3, 6];
|
|
4651
|
-
case 2:
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
case
|
|
4655
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4656
|
-
return [3, 7];
|
|
4657
|
-
case 4:
|
|
4658
|
-
_d = [{}];
|
|
4659
|
-
return [4, deserializeAws_queryTemplateDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
4660
|
-
case 5:
|
|
4661
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4662
|
-
return [3, 7];
|
|
4192
|
+
case 2: return [4, deserializeAws_queryInvalidTemplateExceptionResponse(parsedOutput, context)];
|
|
4193
|
+
case 3: throw _d.sent();
|
|
4194
|
+
case 4: return [4, deserializeAws_queryTemplateDoesNotExistExceptionResponse(parsedOutput, context)];
|
|
4195
|
+
case 5: throw _d.sent();
|
|
4663
4196
|
case 6:
|
|
4664
4197
|
parsedBody = parsedOutput.body;
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
response.
|
|
4671
|
-
delete response.Message;
|
|
4672
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4198
|
+
response = new __BaseException({
|
|
4199
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4200
|
+
$fault: "client",
|
|
4201
|
+
$metadata: deserializeMetadata(output),
|
|
4202
|
+
});
|
|
4203
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
4673
4204
|
}
|
|
4674
4205
|
});
|
|
4675
4206
|
}); };
|
|
@@ -4692,7 +4223,7 @@ export var deserializeAws_queryVerifyDomainDkimCommand = function (output, conte
|
|
|
4692
4223
|
});
|
|
4693
4224
|
}); };
|
|
4694
4225
|
var deserializeAws_queryVerifyDomainDkimCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4695
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
4226
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
4696
4227
|
var _b;
|
|
4697
4228
|
return __generator(this, function (_c) {
|
|
4698
4229
|
switch (_c.label) {
|
|
@@ -4707,13 +4238,14 @@ var deserializeAws_queryVerifyDomainDkimCommandError = function (output, context
|
|
|
4707
4238
|
switch (errorCode) {
|
|
4708
4239
|
default:
|
|
4709
4240
|
parsedBody = parsedOutput.body;
|
|
4710
|
-
|
|
4711
|
-
|
|
4241
|
+
response = new __BaseException({
|
|
4242
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4243
|
+
$fault: "client",
|
|
4244
|
+
$metadata: deserializeMetadata(output),
|
|
4245
|
+
});
|
|
4246
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
4712
4247
|
}
|
|
4713
|
-
|
|
4714
|
-
response.message = message;
|
|
4715
|
-
delete response.Message;
|
|
4716
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4248
|
+
return [2];
|
|
4717
4249
|
}
|
|
4718
4250
|
});
|
|
4719
4251
|
}); };
|
|
@@ -4736,7 +4268,7 @@ export var deserializeAws_queryVerifyDomainIdentityCommand = function (output, c
|
|
|
4736
4268
|
});
|
|
4737
4269
|
}); };
|
|
4738
4270
|
var deserializeAws_queryVerifyDomainIdentityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4739
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
4271
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
4740
4272
|
var _b;
|
|
4741
4273
|
return __generator(this, function (_c) {
|
|
4742
4274
|
switch (_c.label) {
|
|
@@ -4751,13 +4283,14 @@ var deserializeAws_queryVerifyDomainIdentityCommandError = function (output, con
|
|
|
4751
4283
|
switch (errorCode) {
|
|
4752
4284
|
default:
|
|
4753
4285
|
parsedBody = parsedOutput.body;
|
|
4754
|
-
|
|
4755
|
-
|
|
4286
|
+
response = new __BaseException({
|
|
4287
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4288
|
+
$fault: "client",
|
|
4289
|
+
$metadata: deserializeMetadata(output),
|
|
4290
|
+
});
|
|
4291
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
4756
4292
|
}
|
|
4757
|
-
|
|
4758
|
-
response.message = message;
|
|
4759
|
-
delete response.Message;
|
|
4760
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4293
|
+
return [2];
|
|
4761
4294
|
}
|
|
4762
4295
|
});
|
|
4763
4296
|
}); };
|
|
@@ -4780,7 +4313,7 @@ export var deserializeAws_queryVerifyEmailAddressCommand = function (output, con
|
|
|
4780
4313
|
});
|
|
4781
4314
|
}); };
|
|
4782
4315
|
var deserializeAws_queryVerifyEmailAddressCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4783
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
4316
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
4784
4317
|
var _b;
|
|
4785
4318
|
return __generator(this, function (_c) {
|
|
4786
4319
|
switch (_c.label) {
|
|
@@ -4795,13 +4328,14 @@ var deserializeAws_queryVerifyEmailAddressCommandError = function (output, conte
|
|
|
4795
4328
|
switch (errorCode) {
|
|
4796
4329
|
default:
|
|
4797
4330
|
parsedBody = parsedOutput.body;
|
|
4798
|
-
|
|
4799
|
-
|
|
4331
|
+
response = new __BaseException({
|
|
4332
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4333
|
+
$fault: "client",
|
|
4334
|
+
$metadata: deserializeMetadata(output),
|
|
4335
|
+
});
|
|
4336
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
4800
4337
|
}
|
|
4801
|
-
|
|
4802
|
-
response.message = message;
|
|
4803
|
-
delete response.Message;
|
|
4804
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4338
|
+
return [2];
|
|
4805
4339
|
}
|
|
4806
4340
|
});
|
|
4807
4341
|
}); };
|
|
@@ -4824,7 +4358,7 @@ export var deserializeAws_queryVerifyEmailIdentityCommand = function (output, co
|
|
|
4824
4358
|
});
|
|
4825
4359
|
}); };
|
|
4826
4360
|
var deserializeAws_queryVerifyEmailIdentityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4827
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
4361
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
4828
4362
|
var _b;
|
|
4829
4363
|
return __generator(this, function (_c) {
|
|
4830
4364
|
switch (_c.label) {
|
|
@@ -4839,320 +4373,321 @@ var deserializeAws_queryVerifyEmailIdentityCommandError = function (output, cont
|
|
|
4839
4373
|
switch (errorCode) {
|
|
4840
4374
|
default:
|
|
4841
4375
|
parsedBody = parsedOutput.body;
|
|
4842
|
-
|
|
4843
|
-
|
|
4376
|
+
response = new __BaseException({
|
|
4377
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4378
|
+
$fault: "client",
|
|
4379
|
+
$metadata: deserializeMetadata(output),
|
|
4380
|
+
});
|
|
4381
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
4844
4382
|
}
|
|
4845
|
-
|
|
4846
|
-
response.message = message;
|
|
4847
|
-
delete response.Message;
|
|
4848
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4383
|
+
return [2];
|
|
4849
4384
|
}
|
|
4850
4385
|
});
|
|
4851
4386
|
}); };
|
|
4852
4387
|
var deserializeAws_queryAccountSendingPausedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4853
|
-
var body, deserialized,
|
|
4388
|
+
var body, deserialized, exception;
|
|
4854
4389
|
return __generator(this, function (_a) {
|
|
4855
4390
|
body = parsedOutput.body;
|
|
4856
4391
|
deserialized = deserializeAws_queryAccountSendingPausedException(body.Error, context);
|
|
4857
|
-
|
|
4858
|
-
return [2,
|
|
4392
|
+
exception = new AccountSendingPausedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4393
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4859
4394
|
});
|
|
4860
4395
|
}); };
|
|
4861
4396
|
var deserializeAws_queryAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4862
|
-
var body, deserialized,
|
|
4397
|
+
var body, deserialized, exception;
|
|
4863
4398
|
return __generator(this, function (_a) {
|
|
4864
4399
|
body = parsedOutput.body;
|
|
4865
4400
|
deserialized = deserializeAws_queryAlreadyExistsException(body.Error, context);
|
|
4866
|
-
|
|
4867
|
-
return [2,
|
|
4401
|
+
exception = new AlreadyExistsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4402
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4868
4403
|
});
|
|
4869
4404
|
}); };
|
|
4870
4405
|
var deserializeAws_queryCannotDeleteExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4871
|
-
var body, deserialized,
|
|
4406
|
+
var body, deserialized, exception;
|
|
4872
4407
|
return __generator(this, function (_a) {
|
|
4873
4408
|
body = parsedOutput.body;
|
|
4874
4409
|
deserialized = deserializeAws_queryCannotDeleteException(body.Error, context);
|
|
4875
|
-
|
|
4876
|
-
return [2,
|
|
4410
|
+
exception = new CannotDeleteException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4411
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4877
4412
|
});
|
|
4878
4413
|
}); };
|
|
4879
4414
|
var deserializeAws_queryConfigurationSetAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4880
|
-
var body, deserialized,
|
|
4415
|
+
var body, deserialized, exception;
|
|
4881
4416
|
return __generator(this, function (_a) {
|
|
4882
4417
|
body = parsedOutput.body;
|
|
4883
4418
|
deserialized = deserializeAws_queryConfigurationSetAlreadyExistsException(body.Error, context);
|
|
4884
|
-
|
|
4885
|
-
return [2,
|
|
4419
|
+
exception = new ConfigurationSetAlreadyExistsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4420
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4886
4421
|
});
|
|
4887
4422
|
}); };
|
|
4888
4423
|
var deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4889
|
-
var body, deserialized,
|
|
4424
|
+
var body, deserialized, exception;
|
|
4890
4425
|
return __generator(this, function (_a) {
|
|
4891
4426
|
body = parsedOutput.body;
|
|
4892
4427
|
deserialized = deserializeAws_queryConfigurationSetDoesNotExistException(body.Error, context);
|
|
4893
|
-
|
|
4894
|
-
return [2,
|
|
4428
|
+
exception = new ConfigurationSetDoesNotExistException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4429
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4895
4430
|
});
|
|
4896
4431
|
}); };
|
|
4897
4432
|
var deserializeAws_queryConfigurationSetSendingPausedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4898
|
-
var body, deserialized,
|
|
4433
|
+
var body, deserialized, exception;
|
|
4899
4434
|
return __generator(this, function (_a) {
|
|
4900
4435
|
body = parsedOutput.body;
|
|
4901
4436
|
deserialized = deserializeAws_queryConfigurationSetSendingPausedException(body.Error, context);
|
|
4902
|
-
|
|
4903
|
-
return [2,
|
|
4437
|
+
exception = new ConfigurationSetSendingPausedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4438
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4904
4439
|
});
|
|
4905
4440
|
}); };
|
|
4906
4441
|
var deserializeAws_queryCustomVerificationEmailInvalidContentExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4907
|
-
var body, deserialized,
|
|
4442
|
+
var body, deserialized, exception;
|
|
4908
4443
|
return __generator(this, function (_a) {
|
|
4909
4444
|
body = parsedOutput.body;
|
|
4910
4445
|
deserialized = deserializeAws_queryCustomVerificationEmailInvalidContentException(body.Error, context);
|
|
4911
|
-
|
|
4912
|
-
return [2,
|
|
4446
|
+
exception = new CustomVerificationEmailInvalidContentException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4447
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4913
4448
|
});
|
|
4914
4449
|
}); };
|
|
4915
4450
|
var deserializeAws_queryCustomVerificationEmailTemplateAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4916
|
-
var body, deserialized,
|
|
4451
|
+
var body, deserialized, exception;
|
|
4917
4452
|
return __generator(this, function (_a) {
|
|
4918
4453
|
body = parsedOutput.body;
|
|
4919
4454
|
deserialized = deserializeAws_queryCustomVerificationEmailTemplateAlreadyExistsException(body.Error, context);
|
|
4920
|
-
|
|
4921
|
-
return [2,
|
|
4455
|
+
exception = new CustomVerificationEmailTemplateAlreadyExistsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4456
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4922
4457
|
});
|
|
4923
4458
|
}); };
|
|
4924
4459
|
var deserializeAws_queryCustomVerificationEmailTemplateDoesNotExistExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4925
|
-
var body, deserialized,
|
|
4460
|
+
var body, deserialized, exception;
|
|
4926
4461
|
return __generator(this, function (_a) {
|
|
4927
4462
|
body = parsedOutput.body;
|
|
4928
4463
|
deserialized = deserializeAws_queryCustomVerificationEmailTemplateDoesNotExistException(body.Error, context);
|
|
4929
|
-
|
|
4930
|
-
return [2,
|
|
4464
|
+
exception = new CustomVerificationEmailTemplateDoesNotExistException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4465
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4931
4466
|
});
|
|
4932
4467
|
}); };
|
|
4933
4468
|
var deserializeAws_queryEventDestinationAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4934
|
-
var body, deserialized,
|
|
4469
|
+
var body, deserialized, exception;
|
|
4935
4470
|
return __generator(this, function (_a) {
|
|
4936
4471
|
body = parsedOutput.body;
|
|
4937
4472
|
deserialized = deserializeAws_queryEventDestinationAlreadyExistsException(body.Error, context);
|
|
4938
|
-
|
|
4939
|
-
return [2,
|
|
4473
|
+
exception = new EventDestinationAlreadyExistsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4474
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4940
4475
|
});
|
|
4941
4476
|
}); };
|
|
4942
4477
|
var deserializeAws_queryEventDestinationDoesNotExistExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4943
|
-
var body, deserialized,
|
|
4478
|
+
var body, deserialized, exception;
|
|
4944
4479
|
return __generator(this, function (_a) {
|
|
4945
4480
|
body = parsedOutput.body;
|
|
4946
4481
|
deserialized = deserializeAws_queryEventDestinationDoesNotExistException(body.Error, context);
|
|
4947
|
-
|
|
4948
|
-
return [2,
|
|
4482
|
+
exception = new EventDestinationDoesNotExistException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4483
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4949
4484
|
});
|
|
4950
4485
|
}); };
|
|
4951
4486
|
var deserializeAws_queryFromEmailAddressNotVerifiedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4952
|
-
var body, deserialized,
|
|
4487
|
+
var body, deserialized, exception;
|
|
4953
4488
|
return __generator(this, function (_a) {
|
|
4954
4489
|
body = parsedOutput.body;
|
|
4955
4490
|
deserialized = deserializeAws_queryFromEmailAddressNotVerifiedException(body.Error, context);
|
|
4956
|
-
|
|
4957
|
-
return [2,
|
|
4491
|
+
exception = new FromEmailAddressNotVerifiedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4492
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4958
4493
|
});
|
|
4959
4494
|
}); };
|
|
4960
4495
|
var deserializeAws_queryInvalidCloudWatchDestinationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4961
|
-
var body, deserialized,
|
|
4496
|
+
var body, deserialized, exception;
|
|
4962
4497
|
return __generator(this, function (_a) {
|
|
4963
4498
|
body = parsedOutput.body;
|
|
4964
4499
|
deserialized = deserializeAws_queryInvalidCloudWatchDestinationException(body.Error, context);
|
|
4965
|
-
|
|
4966
|
-
return [2,
|
|
4500
|
+
exception = new InvalidCloudWatchDestinationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4501
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4967
4502
|
});
|
|
4968
4503
|
}); };
|
|
4969
4504
|
var deserializeAws_queryInvalidConfigurationSetExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4970
|
-
var body, deserialized,
|
|
4505
|
+
var body, deserialized, exception;
|
|
4971
4506
|
return __generator(this, function (_a) {
|
|
4972
4507
|
body = parsedOutput.body;
|
|
4973
4508
|
deserialized = deserializeAws_queryInvalidConfigurationSetException(body.Error, context);
|
|
4974
|
-
|
|
4975
|
-
return [2,
|
|
4509
|
+
exception = new InvalidConfigurationSetException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4510
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4976
4511
|
});
|
|
4977
4512
|
}); };
|
|
4978
4513
|
var deserializeAws_queryInvalidDeliveryOptionsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4979
|
-
var body, deserialized,
|
|
4514
|
+
var body, deserialized, exception;
|
|
4980
4515
|
return __generator(this, function (_a) {
|
|
4981
4516
|
body = parsedOutput.body;
|
|
4982
4517
|
deserialized = deserializeAws_queryInvalidDeliveryOptionsException(body.Error, context);
|
|
4983
|
-
|
|
4984
|
-
return [2,
|
|
4518
|
+
exception = new InvalidDeliveryOptionsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4519
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4985
4520
|
});
|
|
4986
4521
|
}); };
|
|
4987
4522
|
var deserializeAws_queryInvalidFirehoseDestinationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4988
|
-
var body, deserialized,
|
|
4523
|
+
var body, deserialized, exception;
|
|
4989
4524
|
return __generator(this, function (_a) {
|
|
4990
4525
|
body = parsedOutput.body;
|
|
4991
4526
|
deserialized = deserializeAws_queryInvalidFirehoseDestinationException(body.Error, context);
|
|
4992
|
-
|
|
4993
|
-
return [2,
|
|
4527
|
+
exception = new InvalidFirehoseDestinationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4528
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4994
4529
|
});
|
|
4995
4530
|
}); };
|
|
4996
4531
|
var deserializeAws_queryInvalidLambdaFunctionExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4997
|
-
var body, deserialized,
|
|
4532
|
+
var body, deserialized, exception;
|
|
4998
4533
|
return __generator(this, function (_a) {
|
|
4999
4534
|
body = parsedOutput.body;
|
|
5000
4535
|
deserialized = deserializeAws_queryInvalidLambdaFunctionException(body.Error, context);
|
|
5001
|
-
|
|
5002
|
-
return [2,
|
|
4536
|
+
exception = new InvalidLambdaFunctionException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4537
|
+
return [2, __decorateServiceException(exception, body)];
|
|
5003
4538
|
});
|
|
5004
4539
|
}); };
|
|
5005
4540
|
var deserializeAws_queryInvalidPolicyExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5006
|
-
var body, deserialized,
|
|
4541
|
+
var body, deserialized, exception;
|
|
5007
4542
|
return __generator(this, function (_a) {
|
|
5008
4543
|
body = parsedOutput.body;
|
|
5009
4544
|
deserialized = deserializeAws_queryInvalidPolicyException(body.Error, context);
|
|
5010
|
-
|
|
5011
|
-
return [2,
|
|
4545
|
+
exception = new InvalidPolicyException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4546
|
+
return [2, __decorateServiceException(exception, body)];
|
|
5012
4547
|
});
|
|
5013
4548
|
}); };
|
|
5014
4549
|
var deserializeAws_queryInvalidRenderingParameterExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5015
|
-
var body, deserialized,
|
|
4550
|
+
var body, deserialized, exception;
|
|
5016
4551
|
return __generator(this, function (_a) {
|
|
5017
4552
|
body = parsedOutput.body;
|
|
5018
4553
|
deserialized = deserializeAws_queryInvalidRenderingParameterException(body.Error, context);
|
|
5019
|
-
|
|
5020
|
-
return [2,
|
|
4554
|
+
exception = new InvalidRenderingParameterException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4555
|
+
return [2, __decorateServiceException(exception, body)];
|
|
5021
4556
|
});
|
|
5022
4557
|
}); };
|
|
5023
4558
|
var deserializeAws_queryInvalidS3ConfigurationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5024
|
-
var body, deserialized,
|
|
4559
|
+
var body, deserialized, exception;
|
|
5025
4560
|
return __generator(this, function (_a) {
|
|
5026
4561
|
body = parsedOutput.body;
|
|
5027
4562
|
deserialized = deserializeAws_queryInvalidS3ConfigurationException(body.Error, context);
|
|
5028
|
-
|
|
5029
|
-
return [2,
|
|
4563
|
+
exception = new InvalidS3ConfigurationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4564
|
+
return [2, __decorateServiceException(exception, body)];
|
|
5030
4565
|
});
|
|
5031
4566
|
}); };
|
|
5032
4567
|
var deserializeAws_queryInvalidSNSDestinationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5033
|
-
var body, deserialized,
|
|
4568
|
+
var body, deserialized, exception;
|
|
5034
4569
|
return __generator(this, function (_a) {
|
|
5035
4570
|
body = parsedOutput.body;
|
|
5036
4571
|
deserialized = deserializeAws_queryInvalidSNSDestinationException(body.Error, context);
|
|
5037
|
-
|
|
5038
|
-
return [2,
|
|
4572
|
+
exception = new InvalidSNSDestinationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4573
|
+
return [2, __decorateServiceException(exception, body)];
|
|
5039
4574
|
});
|
|
5040
4575
|
}); };
|
|
5041
4576
|
var deserializeAws_queryInvalidSnsTopicExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5042
|
-
var body, deserialized,
|
|
4577
|
+
var body, deserialized, exception;
|
|
5043
4578
|
return __generator(this, function (_a) {
|
|
5044
4579
|
body = parsedOutput.body;
|
|
5045
4580
|
deserialized = deserializeAws_queryInvalidSnsTopicException(body.Error, context);
|
|
5046
|
-
|
|
5047
|
-
return [2,
|
|
4581
|
+
exception = new InvalidSnsTopicException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4582
|
+
return [2, __decorateServiceException(exception, body)];
|
|
5048
4583
|
});
|
|
5049
4584
|
}); };
|
|
5050
4585
|
var deserializeAws_queryInvalidTemplateExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5051
|
-
var body, deserialized,
|
|
4586
|
+
var body, deserialized, exception;
|
|
5052
4587
|
return __generator(this, function (_a) {
|
|
5053
4588
|
body = parsedOutput.body;
|
|
5054
4589
|
deserialized = deserializeAws_queryInvalidTemplateException(body.Error, context);
|
|
5055
|
-
|
|
5056
|
-
return [2,
|
|
4590
|
+
exception = new InvalidTemplateException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4591
|
+
return [2, __decorateServiceException(exception, body)];
|
|
5057
4592
|
});
|
|
5058
4593
|
}); };
|
|
5059
4594
|
var deserializeAws_queryInvalidTrackingOptionsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5060
|
-
var body, deserialized,
|
|
4595
|
+
var body, deserialized, exception;
|
|
5061
4596
|
return __generator(this, function (_a) {
|
|
5062
4597
|
body = parsedOutput.body;
|
|
5063
4598
|
deserialized = deserializeAws_queryInvalidTrackingOptionsException(body.Error, context);
|
|
5064
|
-
|
|
5065
|
-
return [2,
|
|
4599
|
+
exception = new InvalidTrackingOptionsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4600
|
+
return [2, __decorateServiceException(exception, body)];
|
|
5066
4601
|
});
|
|
5067
4602
|
}); };
|
|
5068
4603
|
var deserializeAws_queryLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5069
|
-
var body, deserialized,
|
|
4604
|
+
var body, deserialized, exception;
|
|
5070
4605
|
return __generator(this, function (_a) {
|
|
5071
4606
|
body = parsedOutput.body;
|
|
5072
4607
|
deserialized = deserializeAws_queryLimitExceededException(body.Error, context);
|
|
5073
|
-
|
|
5074
|
-
return [2,
|
|
4608
|
+
exception = new LimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4609
|
+
return [2, __decorateServiceException(exception, body)];
|
|
5075
4610
|
});
|
|
5076
4611
|
}); };
|
|
5077
4612
|
var deserializeAws_queryMailFromDomainNotVerifiedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5078
|
-
var body, deserialized,
|
|
4613
|
+
var body, deserialized, exception;
|
|
5079
4614
|
return __generator(this, function (_a) {
|
|
5080
4615
|
body = parsedOutput.body;
|
|
5081
4616
|
deserialized = deserializeAws_queryMailFromDomainNotVerifiedException(body.Error, context);
|
|
5082
|
-
|
|
5083
|
-
return [2,
|
|
4617
|
+
exception = new MailFromDomainNotVerifiedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4618
|
+
return [2, __decorateServiceException(exception, body)];
|
|
5084
4619
|
});
|
|
5085
4620
|
}); };
|
|
5086
4621
|
var deserializeAws_queryMessageRejectedResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5087
|
-
var body, deserialized,
|
|
4622
|
+
var body, deserialized, exception;
|
|
5088
4623
|
return __generator(this, function (_a) {
|
|
5089
4624
|
body = parsedOutput.body;
|
|
5090
4625
|
deserialized = deserializeAws_queryMessageRejected(body.Error, context);
|
|
5091
|
-
|
|
5092
|
-
return [2,
|
|
4626
|
+
exception = new MessageRejected(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4627
|
+
return [2, __decorateServiceException(exception, body)];
|
|
5093
4628
|
});
|
|
5094
4629
|
}); };
|
|
5095
4630
|
var deserializeAws_queryMissingRenderingAttributeExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5096
|
-
var body, deserialized,
|
|
4631
|
+
var body, deserialized, exception;
|
|
5097
4632
|
return __generator(this, function (_a) {
|
|
5098
4633
|
body = parsedOutput.body;
|
|
5099
4634
|
deserialized = deserializeAws_queryMissingRenderingAttributeException(body.Error, context);
|
|
5100
|
-
|
|
5101
|
-
return [2,
|
|
4635
|
+
exception = new MissingRenderingAttributeException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4636
|
+
return [2, __decorateServiceException(exception, body)];
|
|
5102
4637
|
});
|
|
5103
4638
|
}); };
|
|
5104
4639
|
var deserializeAws_queryProductionAccessNotGrantedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5105
|
-
var body, deserialized,
|
|
4640
|
+
var body, deserialized, exception;
|
|
5106
4641
|
return __generator(this, function (_a) {
|
|
5107
4642
|
body = parsedOutput.body;
|
|
5108
4643
|
deserialized = deserializeAws_queryProductionAccessNotGrantedException(body.Error, context);
|
|
5109
|
-
|
|
5110
|
-
return [2,
|
|
4644
|
+
exception = new ProductionAccessNotGrantedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4645
|
+
return [2, __decorateServiceException(exception, body)];
|
|
5111
4646
|
});
|
|
5112
4647
|
}); };
|
|
5113
4648
|
var deserializeAws_queryRuleDoesNotExistExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5114
|
-
var body, deserialized,
|
|
4649
|
+
var body, deserialized, exception;
|
|
5115
4650
|
return __generator(this, function (_a) {
|
|
5116
4651
|
body = parsedOutput.body;
|
|
5117
4652
|
deserialized = deserializeAws_queryRuleDoesNotExistException(body.Error, context);
|
|
5118
|
-
|
|
5119
|
-
return [2,
|
|
4653
|
+
exception = new RuleDoesNotExistException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4654
|
+
return [2, __decorateServiceException(exception, body)];
|
|
5120
4655
|
});
|
|
5121
4656
|
}); };
|
|
5122
4657
|
var deserializeAws_queryRuleSetDoesNotExistExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5123
|
-
var body, deserialized,
|
|
4658
|
+
var body, deserialized, exception;
|
|
5124
4659
|
return __generator(this, function (_a) {
|
|
5125
4660
|
body = parsedOutput.body;
|
|
5126
4661
|
deserialized = deserializeAws_queryRuleSetDoesNotExistException(body.Error, context);
|
|
5127
|
-
|
|
5128
|
-
return [2,
|
|
4662
|
+
exception = new RuleSetDoesNotExistException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4663
|
+
return [2, __decorateServiceException(exception, body)];
|
|
5129
4664
|
});
|
|
5130
4665
|
}); };
|
|
5131
4666
|
var deserializeAws_queryTemplateDoesNotExistExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5132
|
-
var body, deserialized,
|
|
4667
|
+
var body, deserialized, exception;
|
|
5133
4668
|
return __generator(this, function (_a) {
|
|
5134
4669
|
body = parsedOutput.body;
|
|
5135
4670
|
deserialized = deserializeAws_queryTemplateDoesNotExistException(body.Error, context);
|
|
5136
|
-
|
|
5137
|
-
return [2,
|
|
4671
|
+
exception = new TemplateDoesNotExistException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4672
|
+
return [2, __decorateServiceException(exception, body)];
|
|
5138
4673
|
});
|
|
5139
4674
|
}); };
|
|
5140
4675
|
var deserializeAws_queryTrackingOptionsAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5141
|
-
var body, deserialized,
|
|
4676
|
+
var body, deserialized, exception;
|
|
5142
4677
|
return __generator(this, function (_a) {
|
|
5143
4678
|
body = parsedOutput.body;
|
|
5144
4679
|
deserialized = deserializeAws_queryTrackingOptionsAlreadyExistsException(body.Error, context);
|
|
5145
|
-
|
|
5146
|
-
return [2,
|
|
4680
|
+
exception = new TrackingOptionsAlreadyExistsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4681
|
+
return [2, __decorateServiceException(exception, body)];
|
|
5147
4682
|
});
|
|
5148
4683
|
}); };
|
|
5149
4684
|
var deserializeAws_queryTrackingOptionsDoesNotExistExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5150
|
-
var body, deserialized,
|
|
4685
|
+
var body, deserialized, exception;
|
|
5151
4686
|
return __generator(this, function (_a) {
|
|
5152
4687
|
body = parsedOutput.body;
|
|
5153
4688
|
deserialized = deserializeAws_queryTrackingOptionsDoesNotExistException(body.Error, context);
|
|
5154
|
-
|
|
5155
|
-
return [2,
|
|
4689
|
+
exception = new TrackingOptionsDoesNotExistException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4690
|
+
return [2, __decorateServiceException(exception, body)];
|
|
5156
4691
|
});
|
|
5157
4692
|
}); };
|
|
5158
4693
|
var serializeAws_queryAddHeaderAction = function (input, context) {
|