@aws-sdk/client-customer-profiles 3.52.0 → 3.54.1
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 +28 -0
- package/dist-cjs/CustomerProfiles.js +75 -0
- package/dist-cjs/commands/CreateIntegrationWorkflowCommand.js +36 -0
- package/dist-cjs/commands/DeleteWorkflowCommand.js +36 -0
- package/dist-cjs/commands/GetWorkflowCommand.js +36 -0
- package/dist-cjs/commands/GetWorkflowStepsCommand.js +36 -0
- package/dist-cjs/commands/ListWorkflowsCommand.js +36 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/CustomerProfilesServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +349 -144
- package/dist-cjs/protocols/Aws_restJson1.js +997 -1353
- package/dist-es/CustomerProfiles.js +75 -0
- package/dist-es/commands/CreateIntegrationWorkflowCommand.js +39 -0
- package/dist-es/commands/DeleteWorkflowCommand.js +39 -0
- package/dist-es/commands/GetWorkflowCommand.js +39 -0
- package/dist-es/commands/GetWorkflowStepsCommand.js +39 -0
- package/dist-es/commands/ListWorkflowsCommand.js +39 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/index.js +1 -0
- package/dist-es/models/CustomerProfilesServiceException.js +12 -0
- package/dist-es/models/models_0.js +276 -116
- package/dist-es/protocols/Aws_restJson1.js +1569 -1539
- package/dist-types/CustomerProfiles.d.ts +37 -3
- package/dist-types/CustomerProfilesClient.d.ts +9 -4
- package/dist-types/commands/CreateIntegrationWorkflowCommand.d.ts +37 -0
- package/dist-types/commands/DeleteWorkflowCommand.d.ts +35 -0
- package/dist-types/commands/GetMatchesCommand.d.ts +0 -3
- package/dist-types/commands/GetWorkflowCommand.d.ts +35 -0
- package/dist-types/commands/GetWorkflowStepsCommand.d.ts +35 -0
- package/dist-types/commands/ListWorkflowsCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/CustomerProfilesServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +986 -477
- package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/CustomerProfiles.d.ts +25 -0
- package/dist-types/ts3.4/CustomerProfilesClient.d.ts +9 -4
- package/dist-types/ts3.4/commands/CreateIntegrationWorkflowCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteWorkflowCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetWorkflowCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetWorkflowStepsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListWorkflowsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/CustomerProfilesServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +549 -254
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +15 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +27 -27
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CustomerProfilesServiceException as __BaseException } from "../models/CustomerProfilesServiceException";
|
|
5
|
+
import { AccessDeniedException, BadRequestException, InternalServerException, ResourceNotFoundException, ThrottlingException, } from "../models/models_0";
|
|
4
6
|
export var serializeAws_restJson1AddProfileKeyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
6
8
|
return __generator(this, function (_c) {
|
|
@@ -74,6 +76,45 @@ export var serializeAws_restJson1CreateDomainCommand = function (input, context)
|
|
|
74
76
|
}
|
|
75
77
|
});
|
|
76
78
|
}); };
|
|
79
|
+
export var serializeAws_restJson1CreateIntegrationWorkflowCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
80
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
81
|
+
return __generator(this, function (_c) {
|
|
82
|
+
switch (_c.label) {
|
|
83
|
+
case 0: return [4, context.endpoint()];
|
|
84
|
+
case 1:
|
|
85
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
86
|
+
headers = {
|
|
87
|
+
"content-type": "application/json",
|
|
88
|
+
};
|
|
89
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
90
|
+
"/domains/{DomainName}/workflows/integrations";
|
|
91
|
+
if (input.DomainName !== undefined) {
|
|
92
|
+
labelValue = input.DomainName;
|
|
93
|
+
if (labelValue.length <= 0) {
|
|
94
|
+
throw new Error("Empty value provided for input HTTP label: DomainName.");
|
|
95
|
+
}
|
|
96
|
+
resolvedPath = resolvedPath.replace("{DomainName}", __extendedEncodeURIComponent(labelValue));
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
throw new Error("No value provided for input HTTP label: DomainName.");
|
|
100
|
+
}
|
|
101
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.IntegrationConfig !== undefined &&
|
|
102
|
+
input.IntegrationConfig !== null && {
|
|
103
|
+
IntegrationConfig: serializeAws_restJson1IntegrationConfig(input.IntegrationConfig, context),
|
|
104
|
+
})), (input.ObjectTypeName !== undefined &&
|
|
105
|
+
input.ObjectTypeName !== null && { ObjectTypeName: input.ObjectTypeName })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.WorkflowType !== undefined && input.WorkflowType !== null && { WorkflowType: input.WorkflowType })));
|
|
106
|
+
return [2, new __HttpRequest({
|
|
107
|
+
protocol: protocol,
|
|
108
|
+
hostname: hostname,
|
|
109
|
+
port: port,
|
|
110
|
+
method: "POST",
|
|
111
|
+
headers: headers,
|
|
112
|
+
path: resolvedPath,
|
|
113
|
+
body: body,
|
|
114
|
+
})];
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
}); };
|
|
77
118
|
export var serializeAws_restJson1CreateProfileCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
78
119
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
79
120
|
return __generator(this, function (_c) {
|
|
@@ -339,6 +380,48 @@ export var serializeAws_restJson1DeleteProfileObjectTypeCommand = function (inpu
|
|
|
339
380
|
}
|
|
340
381
|
});
|
|
341
382
|
}); };
|
|
383
|
+
export var serializeAws_restJson1DeleteWorkflowCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
384
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
385
|
+
return __generator(this, function (_c) {
|
|
386
|
+
switch (_c.label) {
|
|
387
|
+
case 0: return [4, context.endpoint()];
|
|
388
|
+
case 1:
|
|
389
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
390
|
+
headers = {};
|
|
391
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
392
|
+
"/domains/{DomainName}/workflows/{WorkflowId}";
|
|
393
|
+
if (input.DomainName !== undefined) {
|
|
394
|
+
labelValue = input.DomainName;
|
|
395
|
+
if (labelValue.length <= 0) {
|
|
396
|
+
throw new Error("Empty value provided for input HTTP label: DomainName.");
|
|
397
|
+
}
|
|
398
|
+
resolvedPath = resolvedPath.replace("{DomainName}", __extendedEncodeURIComponent(labelValue));
|
|
399
|
+
}
|
|
400
|
+
else {
|
|
401
|
+
throw new Error("No value provided for input HTTP label: DomainName.");
|
|
402
|
+
}
|
|
403
|
+
if (input.WorkflowId !== undefined) {
|
|
404
|
+
labelValue = input.WorkflowId;
|
|
405
|
+
if (labelValue.length <= 0) {
|
|
406
|
+
throw new Error("Empty value provided for input HTTP label: WorkflowId.");
|
|
407
|
+
}
|
|
408
|
+
resolvedPath = resolvedPath.replace("{WorkflowId}", __extendedEncodeURIComponent(labelValue));
|
|
409
|
+
}
|
|
410
|
+
else {
|
|
411
|
+
throw new Error("No value provided for input HTTP label: WorkflowId.");
|
|
412
|
+
}
|
|
413
|
+
return [2, new __HttpRequest({
|
|
414
|
+
protocol: protocol,
|
|
415
|
+
hostname: hostname,
|
|
416
|
+
port: port,
|
|
417
|
+
method: "DELETE",
|
|
418
|
+
headers: headers,
|
|
419
|
+
path: resolvedPath,
|
|
420
|
+
body: body,
|
|
421
|
+
})];
|
|
422
|
+
}
|
|
423
|
+
});
|
|
424
|
+
}); };
|
|
342
425
|
export var serializeAws_restJson1GetAutoMergingPreviewCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
343
426
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
344
427
|
return __generator(this, function (_c) {
|
|
@@ -593,6 +676,92 @@ export var serializeAws_restJson1GetProfileObjectTypeTemplateCommand = function
|
|
|
593
676
|
}
|
|
594
677
|
});
|
|
595
678
|
}); };
|
|
679
|
+
export var serializeAws_restJson1GetWorkflowCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
680
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
681
|
+
return __generator(this, function (_c) {
|
|
682
|
+
switch (_c.label) {
|
|
683
|
+
case 0: return [4, context.endpoint()];
|
|
684
|
+
case 1:
|
|
685
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
686
|
+
headers = {};
|
|
687
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
688
|
+
"/domains/{DomainName}/workflows/{WorkflowId}";
|
|
689
|
+
if (input.DomainName !== undefined) {
|
|
690
|
+
labelValue = input.DomainName;
|
|
691
|
+
if (labelValue.length <= 0) {
|
|
692
|
+
throw new Error("Empty value provided for input HTTP label: DomainName.");
|
|
693
|
+
}
|
|
694
|
+
resolvedPath = resolvedPath.replace("{DomainName}", __extendedEncodeURIComponent(labelValue));
|
|
695
|
+
}
|
|
696
|
+
else {
|
|
697
|
+
throw new Error("No value provided for input HTTP label: DomainName.");
|
|
698
|
+
}
|
|
699
|
+
if (input.WorkflowId !== undefined) {
|
|
700
|
+
labelValue = input.WorkflowId;
|
|
701
|
+
if (labelValue.length <= 0) {
|
|
702
|
+
throw new Error("Empty value provided for input HTTP label: WorkflowId.");
|
|
703
|
+
}
|
|
704
|
+
resolvedPath = resolvedPath.replace("{WorkflowId}", __extendedEncodeURIComponent(labelValue));
|
|
705
|
+
}
|
|
706
|
+
else {
|
|
707
|
+
throw new Error("No value provided for input HTTP label: WorkflowId.");
|
|
708
|
+
}
|
|
709
|
+
return [2, new __HttpRequest({
|
|
710
|
+
protocol: protocol,
|
|
711
|
+
hostname: hostname,
|
|
712
|
+
port: port,
|
|
713
|
+
method: "GET",
|
|
714
|
+
headers: headers,
|
|
715
|
+
path: resolvedPath,
|
|
716
|
+
body: body,
|
|
717
|
+
})];
|
|
718
|
+
}
|
|
719
|
+
});
|
|
720
|
+
}); };
|
|
721
|
+
export var serializeAws_restJson1GetWorkflowStepsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
722
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, query, body;
|
|
723
|
+
return __generator(this, function (_c) {
|
|
724
|
+
switch (_c.label) {
|
|
725
|
+
case 0: return [4, context.endpoint()];
|
|
726
|
+
case 1:
|
|
727
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
728
|
+
headers = {};
|
|
729
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
730
|
+
"/domains/{DomainName}/workflows/{WorkflowId}/steps";
|
|
731
|
+
if (input.DomainName !== undefined) {
|
|
732
|
+
labelValue = input.DomainName;
|
|
733
|
+
if (labelValue.length <= 0) {
|
|
734
|
+
throw new Error("Empty value provided for input HTTP label: DomainName.");
|
|
735
|
+
}
|
|
736
|
+
resolvedPath = resolvedPath.replace("{DomainName}", __extendedEncodeURIComponent(labelValue));
|
|
737
|
+
}
|
|
738
|
+
else {
|
|
739
|
+
throw new Error("No value provided for input HTTP label: DomainName.");
|
|
740
|
+
}
|
|
741
|
+
if (input.WorkflowId !== undefined) {
|
|
742
|
+
labelValue = input.WorkflowId;
|
|
743
|
+
if (labelValue.length <= 0) {
|
|
744
|
+
throw new Error("Empty value provided for input HTTP label: WorkflowId.");
|
|
745
|
+
}
|
|
746
|
+
resolvedPath = resolvedPath.replace("{WorkflowId}", __extendedEncodeURIComponent(labelValue));
|
|
747
|
+
}
|
|
748
|
+
else {
|
|
749
|
+
throw new Error("No value provided for input HTTP label: WorkflowId.");
|
|
750
|
+
}
|
|
751
|
+
query = __assign(__assign({}, (input.NextToken !== undefined && { "next-token": input.NextToken })), (input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() }));
|
|
752
|
+
return [2, new __HttpRequest({
|
|
753
|
+
protocol: protocol,
|
|
754
|
+
hostname: hostname,
|
|
755
|
+
port: port,
|
|
756
|
+
method: "GET",
|
|
757
|
+
headers: headers,
|
|
758
|
+
path: resolvedPath,
|
|
759
|
+
query: query,
|
|
760
|
+
body: body,
|
|
761
|
+
})];
|
|
762
|
+
}
|
|
763
|
+
});
|
|
764
|
+
}); };
|
|
596
765
|
export var serializeAws_restJson1ListAccountIntegrationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
597
766
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
598
767
|
return __generator(this, function (_c) {
|
|
@@ -604,7 +773,7 @@ export var serializeAws_restJson1ListAccountIntegrationsCommand = function (inpu
|
|
|
604
773
|
"content-type": "application/json",
|
|
605
774
|
};
|
|
606
775
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/integrations";
|
|
607
|
-
query = __assign(__assign({}, (input.NextToken !== undefined && { "next-token": input.NextToken })), (input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() }));
|
|
776
|
+
query = __assign(__assign(__assign({}, (input.NextToken !== undefined && { "next-token": input.NextToken })), (input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() })), (input.IncludeHidden !== undefined && { "include-hidden": input.IncludeHidden.toString() }));
|
|
608
777
|
body = JSON.stringify(__assign({}, (input.Uri !== undefined && input.Uri !== null && { Uri: input.Uri })));
|
|
609
778
|
return [2, new __HttpRequest({
|
|
610
779
|
protocol: protocol,
|
|
@@ -695,7 +864,7 @@ export var serializeAws_restJson1ListIntegrationsCommand = function (input, cont
|
|
|
695
864
|
else {
|
|
696
865
|
throw new Error("No value provided for input HTTP label: DomainName.");
|
|
697
866
|
}
|
|
698
|
-
query = __assign(__assign({}, (input.NextToken !== undefined && { "next-token": input.NextToken })), (input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() }));
|
|
867
|
+
query = __assign(__assign(__assign({}, (input.NextToken !== undefined && { "next-token": input.NextToken })), (input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() })), (input.IncludeHidden !== undefined && { "include-hidden": input.IncludeHidden.toString() }));
|
|
699
868
|
return [2, new __HttpRequest({
|
|
700
869
|
protocol: protocol,
|
|
701
870
|
hostname: hostname,
|
|
@@ -834,6 +1003,44 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
834
1003
|
}
|
|
835
1004
|
});
|
|
836
1005
|
}); };
|
|
1006
|
+
export var serializeAws_restJson1ListWorkflowsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1007
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
1008
|
+
return __generator(this, function (_c) {
|
|
1009
|
+
switch (_c.label) {
|
|
1010
|
+
case 0: return [4, context.endpoint()];
|
|
1011
|
+
case 1:
|
|
1012
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1013
|
+
headers = {
|
|
1014
|
+
"content-type": "application/json",
|
|
1015
|
+
};
|
|
1016
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/domains/{DomainName}/workflows";
|
|
1017
|
+
if (input.DomainName !== undefined) {
|
|
1018
|
+
labelValue = input.DomainName;
|
|
1019
|
+
if (labelValue.length <= 0) {
|
|
1020
|
+
throw new Error("Empty value provided for input HTTP label: DomainName.");
|
|
1021
|
+
}
|
|
1022
|
+
resolvedPath = resolvedPath.replace("{DomainName}", __extendedEncodeURIComponent(labelValue));
|
|
1023
|
+
}
|
|
1024
|
+
else {
|
|
1025
|
+
throw new Error("No value provided for input HTTP label: DomainName.");
|
|
1026
|
+
}
|
|
1027
|
+
query = __assign(__assign({}, (input.NextToken !== undefined && { "next-token": input.NextToken })), (input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() }));
|
|
1028
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.QueryEndDate !== undefined &&
|
|
1029
|
+
input.QueryEndDate !== null && { QueryEndDate: Math.round(input.QueryEndDate.getTime() / 1000) })), (input.QueryStartDate !== undefined &&
|
|
1030
|
+
input.QueryStartDate !== null && { QueryStartDate: Math.round(input.QueryStartDate.getTime() / 1000) })), (input.Status !== undefined && input.Status !== null && { Status: input.Status })), (input.WorkflowType !== undefined && input.WorkflowType !== null && { WorkflowType: input.WorkflowType })));
|
|
1031
|
+
return [2, new __HttpRequest({
|
|
1032
|
+
protocol: protocol,
|
|
1033
|
+
hostname: hostname,
|
|
1034
|
+
port: port,
|
|
1035
|
+
method: "POST",
|
|
1036
|
+
headers: headers,
|
|
1037
|
+
path: resolvedPath,
|
|
1038
|
+
query: query,
|
|
1039
|
+
body: body,
|
|
1040
|
+
})];
|
|
1041
|
+
}
|
|
1042
|
+
});
|
|
1043
|
+
}); };
|
|
837
1044
|
export var serializeAws_restJson1MergeProfilesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
838
1045
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
839
1046
|
return __generator(this, function (_c) {
|
|
@@ -1224,16 +1431,16 @@ export var deserializeAws_restJson1AddProfileKeyCommand = function (output, cont
|
|
|
1224
1431
|
});
|
|
1225
1432
|
}); };
|
|
1226
1433
|
var deserializeAws_restJson1AddProfileKeyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1227
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1228
|
-
var
|
|
1229
|
-
return __generator(this, function (
|
|
1230
|
-
switch (
|
|
1434
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1435
|
+
var _c;
|
|
1436
|
+
return __generator(this, function (_d) {
|
|
1437
|
+
switch (_d.label) {
|
|
1231
1438
|
case 0:
|
|
1232
1439
|
_a = [__assign({}, output)];
|
|
1233
|
-
|
|
1440
|
+
_c = {};
|
|
1234
1441
|
return [4, parseBody(output.body, context)];
|
|
1235
1442
|
case 1:
|
|
1236
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1443
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1237
1444
|
errorCode = "UnknownError";
|
|
1238
1445
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1239
1446
|
_b = errorCode;
|
|
@@ -1250,46 +1457,24 @@ var deserializeAws_restJson1AddProfileKeyCommandError = function (output, contex
|
|
|
1250
1457
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
1251
1458
|
}
|
|
1252
1459
|
return [3, 12];
|
|
1253
|
-
case 2:
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
case
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
case 4
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
case
|
|
1263
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1264
|
-
return [3, 13];
|
|
1265
|
-
case 6:
|
|
1266
|
-
_e = [{}];
|
|
1267
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1268
|
-
case 7:
|
|
1269
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1270
|
-
return [3, 13];
|
|
1271
|
-
case 8:
|
|
1272
|
-
_f = [{}];
|
|
1273
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1274
|
-
case 9:
|
|
1275
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1276
|
-
return [3, 13];
|
|
1277
|
-
case 10:
|
|
1278
|
-
_g = [{}];
|
|
1279
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1280
|
-
case 11:
|
|
1281
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1282
|
-
return [3, 13];
|
|
1460
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1461
|
+
case 3: throw _d.sent();
|
|
1462
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1463
|
+
case 5: throw _d.sent();
|
|
1464
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1465
|
+
case 7: throw _d.sent();
|
|
1466
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1467
|
+
case 9: throw _d.sent();
|
|
1468
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1469
|
+
case 11: throw _d.sent();
|
|
1283
1470
|
case 12:
|
|
1284
1471
|
parsedBody = parsedOutput.body;
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
response
|
|
1291
|
-
delete response.Message;
|
|
1292
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1472
|
+
response = new __BaseException({
|
|
1473
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1474
|
+
$fault: "client",
|
|
1475
|
+
$metadata: deserializeMetadata(output),
|
|
1476
|
+
});
|
|
1477
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1293
1478
|
}
|
|
1294
1479
|
});
|
|
1295
1480
|
}); };
|
|
@@ -1346,16 +1531,16 @@ export var deserializeAws_restJson1CreateDomainCommand = function (output, conte
|
|
|
1346
1531
|
});
|
|
1347
1532
|
}); };
|
|
1348
1533
|
var deserializeAws_restJson1CreateDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1349
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1350
|
-
var
|
|
1351
|
-
return __generator(this, function (
|
|
1352
|
-
switch (
|
|
1534
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1535
|
+
var _c;
|
|
1536
|
+
return __generator(this, function (_d) {
|
|
1537
|
+
switch (_d.label) {
|
|
1353
1538
|
case 0:
|
|
1354
1539
|
_a = [__assign({}, output)];
|
|
1355
|
-
|
|
1540
|
+
_c = {};
|
|
1356
1541
|
return [4, parseBody(output.body, context)];
|
|
1357
1542
|
case 1:
|
|
1358
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1543
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1359
1544
|
errorCode = "UnknownError";
|
|
1360
1545
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1361
1546
|
_b = errorCode;
|
|
@@ -1372,46 +1557,100 @@ var deserializeAws_restJson1CreateDomainCommandError = function (output, context
|
|
|
1372
1557
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
1373
1558
|
}
|
|
1374
1559
|
return [3, 12];
|
|
1375
|
-
case 2:
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
case
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
case 4
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
case
|
|
1385
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1386
|
-
return [3, 13];
|
|
1387
|
-
case 6:
|
|
1388
|
-
_e = [{}];
|
|
1389
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1390
|
-
case 7:
|
|
1391
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1392
|
-
return [3, 13];
|
|
1393
|
-
case 8:
|
|
1394
|
-
_f = [{}];
|
|
1395
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1396
|
-
case 9:
|
|
1397
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1398
|
-
return [3, 13];
|
|
1399
|
-
case 10:
|
|
1400
|
-
_g = [{}];
|
|
1401
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1402
|
-
case 11:
|
|
1403
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1404
|
-
return [3, 13];
|
|
1560
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1561
|
+
case 3: throw _d.sent();
|
|
1562
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1563
|
+
case 5: throw _d.sent();
|
|
1564
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1565
|
+
case 7: throw _d.sent();
|
|
1566
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1567
|
+
case 9: throw _d.sent();
|
|
1568
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1569
|
+
case 11: throw _d.sent();
|
|
1405
1570
|
case 12:
|
|
1406
1571
|
parsedBody = parsedOutput.body;
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
response
|
|
1413
|
-
|
|
1414
|
-
|
|
1572
|
+
response = new __BaseException({
|
|
1573
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1574
|
+
$fault: "client",
|
|
1575
|
+
$metadata: deserializeMetadata(output),
|
|
1576
|
+
});
|
|
1577
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1578
|
+
}
|
|
1579
|
+
});
|
|
1580
|
+
}); };
|
|
1581
|
+
export var deserializeAws_restJson1CreateIntegrationWorkflowCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1582
|
+
var contents, data, _a, _b;
|
|
1583
|
+
return __generator(this, function (_c) {
|
|
1584
|
+
switch (_c.label) {
|
|
1585
|
+
case 0:
|
|
1586
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1587
|
+
return [2, deserializeAws_restJson1CreateIntegrationWorkflowCommandError(output, context)];
|
|
1588
|
+
}
|
|
1589
|
+
contents = {
|
|
1590
|
+
$metadata: deserializeMetadata(output),
|
|
1591
|
+
Message: undefined,
|
|
1592
|
+
WorkflowId: undefined,
|
|
1593
|
+
};
|
|
1594
|
+
_a = __expectNonNull;
|
|
1595
|
+
_b = __expectObject;
|
|
1596
|
+
return [4, parseBody(output.body, context)];
|
|
1597
|
+
case 1:
|
|
1598
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1599
|
+
if (data.Message !== undefined && data.Message !== null) {
|
|
1600
|
+
contents.Message = __expectString(data.Message);
|
|
1601
|
+
}
|
|
1602
|
+
if (data.WorkflowId !== undefined && data.WorkflowId !== null) {
|
|
1603
|
+
contents.WorkflowId = __expectString(data.WorkflowId);
|
|
1604
|
+
}
|
|
1605
|
+
return [2, Promise.resolve(contents)];
|
|
1606
|
+
}
|
|
1607
|
+
});
|
|
1608
|
+
}); };
|
|
1609
|
+
var deserializeAws_restJson1CreateIntegrationWorkflowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1610
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1611
|
+
var _c;
|
|
1612
|
+
return __generator(this, function (_d) {
|
|
1613
|
+
switch (_d.label) {
|
|
1614
|
+
case 0:
|
|
1615
|
+
_a = [__assign({}, output)];
|
|
1616
|
+
_c = {};
|
|
1617
|
+
return [4, parseBody(output.body, context)];
|
|
1618
|
+
case 1:
|
|
1619
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1620
|
+
errorCode = "UnknownError";
|
|
1621
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1622
|
+
_b = errorCode;
|
|
1623
|
+
switch (_b) {
|
|
1624
|
+
case "AccessDeniedException": return [3, 2];
|
|
1625
|
+
case "com.amazonaws.customerprofiles#AccessDeniedException": return [3, 2];
|
|
1626
|
+
case "BadRequestException": return [3, 4];
|
|
1627
|
+
case "com.amazonaws.customerprofiles#BadRequestException": return [3, 4];
|
|
1628
|
+
case "InternalServerException": return [3, 6];
|
|
1629
|
+
case "com.amazonaws.customerprofiles#InternalServerException": return [3, 6];
|
|
1630
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1631
|
+
case "com.amazonaws.customerprofiles#ResourceNotFoundException": return [3, 8];
|
|
1632
|
+
case "ThrottlingException": return [3, 10];
|
|
1633
|
+
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
1634
|
+
}
|
|
1635
|
+
return [3, 12];
|
|
1636
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1637
|
+
case 3: throw _d.sent();
|
|
1638
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1639
|
+
case 5: throw _d.sent();
|
|
1640
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1641
|
+
case 7: throw _d.sent();
|
|
1642
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1643
|
+
case 9: throw _d.sent();
|
|
1644
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1645
|
+
case 11: throw _d.sent();
|
|
1646
|
+
case 12:
|
|
1647
|
+
parsedBody = parsedOutput.body;
|
|
1648
|
+
response = new __BaseException({
|
|
1649
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1650
|
+
$fault: "client",
|
|
1651
|
+
$metadata: deserializeMetadata(output),
|
|
1652
|
+
});
|
|
1653
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1415
1654
|
}
|
|
1416
1655
|
});
|
|
1417
1656
|
}); };
|
|
@@ -1440,16 +1679,16 @@ export var deserializeAws_restJson1CreateProfileCommand = function (output, cont
|
|
|
1440
1679
|
});
|
|
1441
1680
|
}); };
|
|
1442
1681
|
var deserializeAws_restJson1CreateProfileCommandError = 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 (
|
|
1682
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1683
|
+
var _c;
|
|
1684
|
+
return __generator(this, function (_d) {
|
|
1685
|
+
switch (_d.label) {
|
|
1447
1686
|
case 0:
|
|
1448
1687
|
_a = [__assign({}, output)];
|
|
1449
|
-
|
|
1688
|
+
_c = {};
|
|
1450
1689
|
return [4, parseBody(output.body, context)];
|
|
1451
1690
|
case 1:
|
|
1452
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1691
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1453
1692
|
errorCode = "UnknownError";
|
|
1454
1693
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1455
1694
|
_b = errorCode;
|
|
@@ -1466,46 +1705,24 @@ var deserializeAws_restJson1CreateProfileCommandError = function (output, contex
|
|
|
1466
1705
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
1467
1706
|
}
|
|
1468
1707
|
return [3, 12];
|
|
1469
|
-
case 2:
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
case
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
case 4
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
case
|
|
1479
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1480
|
-
return [3, 13];
|
|
1481
|
-
case 6:
|
|
1482
|
-
_e = [{}];
|
|
1483
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1484
|
-
case 7:
|
|
1485
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1486
|
-
return [3, 13];
|
|
1487
|
-
case 8:
|
|
1488
|
-
_f = [{}];
|
|
1489
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1490
|
-
case 9:
|
|
1491
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1492
|
-
return [3, 13];
|
|
1493
|
-
case 10:
|
|
1494
|
-
_g = [{}];
|
|
1495
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1496
|
-
case 11:
|
|
1497
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1498
|
-
return [3, 13];
|
|
1708
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1709
|
+
case 3: throw _d.sent();
|
|
1710
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1711
|
+
case 5: throw _d.sent();
|
|
1712
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1713
|
+
case 7: throw _d.sent();
|
|
1714
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1715
|
+
case 9: throw _d.sent();
|
|
1716
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1717
|
+
case 11: throw _d.sent();
|
|
1499
1718
|
case 12:
|
|
1500
1719
|
parsedBody = parsedOutput.body;
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
response
|
|
1507
|
-
delete response.Message;
|
|
1508
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1720
|
+
response = new __BaseException({
|
|
1721
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1722
|
+
$fault: "client",
|
|
1723
|
+
$metadata: deserializeMetadata(output),
|
|
1724
|
+
});
|
|
1725
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1509
1726
|
}
|
|
1510
1727
|
});
|
|
1511
1728
|
}); };
|
|
@@ -1534,16 +1751,16 @@ export var deserializeAws_restJson1DeleteDomainCommand = function (output, conte
|
|
|
1534
1751
|
});
|
|
1535
1752
|
}); };
|
|
1536
1753
|
var deserializeAws_restJson1DeleteDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1537
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1538
|
-
var
|
|
1539
|
-
return __generator(this, function (
|
|
1540
|
-
switch (
|
|
1754
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1755
|
+
var _c;
|
|
1756
|
+
return __generator(this, function (_d) {
|
|
1757
|
+
switch (_d.label) {
|
|
1541
1758
|
case 0:
|
|
1542
1759
|
_a = [__assign({}, output)];
|
|
1543
|
-
|
|
1760
|
+
_c = {};
|
|
1544
1761
|
return [4, parseBody(output.body, context)];
|
|
1545
1762
|
case 1:
|
|
1546
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1763
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1547
1764
|
errorCode = "UnknownError";
|
|
1548
1765
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1549
1766
|
_b = errorCode;
|
|
@@ -1560,46 +1777,24 @@ var deserializeAws_restJson1DeleteDomainCommandError = function (output, context
|
|
|
1560
1777
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
1561
1778
|
}
|
|
1562
1779
|
return [3, 12];
|
|
1563
|
-
case 2:
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
case
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
case 4
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
case
|
|
1573
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1574
|
-
return [3, 13];
|
|
1575
|
-
case 6:
|
|
1576
|
-
_e = [{}];
|
|
1577
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1578
|
-
case 7:
|
|
1579
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1580
|
-
return [3, 13];
|
|
1581
|
-
case 8:
|
|
1582
|
-
_f = [{}];
|
|
1583
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1584
|
-
case 9:
|
|
1585
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1586
|
-
return [3, 13];
|
|
1587
|
-
case 10:
|
|
1588
|
-
_g = [{}];
|
|
1589
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1590
|
-
case 11:
|
|
1591
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1592
|
-
return [3, 13];
|
|
1780
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1781
|
+
case 3: throw _d.sent();
|
|
1782
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1783
|
+
case 5: throw _d.sent();
|
|
1784
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1785
|
+
case 7: throw _d.sent();
|
|
1786
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1787
|
+
case 9: throw _d.sent();
|
|
1788
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1789
|
+
case 11: throw _d.sent();
|
|
1593
1790
|
case 12:
|
|
1594
1791
|
parsedBody = parsedOutput.body;
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
response
|
|
1601
|
-
delete response.Message;
|
|
1602
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1792
|
+
response = new __BaseException({
|
|
1793
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1794
|
+
$fault: "client",
|
|
1795
|
+
$metadata: deserializeMetadata(output),
|
|
1796
|
+
});
|
|
1797
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1603
1798
|
}
|
|
1604
1799
|
});
|
|
1605
1800
|
}); };
|
|
@@ -1628,16 +1823,16 @@ export var deserializeAws_restJson1DeleteIntegrationCommand = function (output,
|
|
|
1628
1823
|
});
|
|
1629
1824
|
}); };
|
|
1630
1825
|
var deserializeAws_restJson1DeleteIntegrationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1631
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1632
|
-
var
|
|
1633
|
-
return __generator(this, function (
|
|
1634
|
-
switch (
|
|
1826
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1827
|
+
var _c;
|
|
1828
|
+
return __generator(this, function (_d) {
|
|
1829
|
+
switch (_d.label) {
|
|
1635
1830
|
case 0:
|
|
1636
1831
|
_a = [__assign({}, output)];
|
|
1637
|
-
|
|
1832
|
+
_c = {};
|
|
1638
1833
|
return [4, parseBody(output.body, context)];
|
|
1639
1834
|
case 1:
|
|
1640
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1835
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1641
1836
|
errorCode = "UnknownError";
|
|
1642
1837
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1643
1838
|
_b = errorCode;
|
|
@@ -1654,46 +1849,24 @@ var deserializeAws_restJson1DeleteIntegrationCommandError = function (output, co
|
|
|
1654
1849
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
1655
1850
|
}
|
|
1656
1851
|
return [3, 12];
|
|
1657
|
-
case 2:
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
case
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
case 4
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
case
|
|
1667
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1668
|
-
return [3, 13];
|
|
1669
|
-
case 6:
|
|
1670
|
-
_e = [{}];
|
|
1671
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1672
|
-
case 7:
|
|
1673
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1674
|
-
return [3, 13];
|
|
1675
|
-
case 8:
|
|
1676
|
-
_f = [{}];
|
|
1677
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1678
|
-
case 9:
|
|
1679
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1680
|
-
return [3, 13];
|
|
1681
|
-
case 10:
|
|
1682
|
-
_g = [{}];
|
|
1683
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1684
|
-
case 11:
|
|
1685
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1686
|
-
return [3, 13];
|
|
1852
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1853
|
+
case 3: throw _d.sent();
|
|
1854
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1855
|
+
case 5: throw _d.sent();
|
|
1856
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1857
|
+
case 7: throw _d.sent();
|
|
1858
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1859
|
+
case 9: throw _d.sent();
|
|
1860
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1861
|
+
case 11: throw _d.sent();
|
|
1687
1862
|
case 12:
|
|
1688
1863
|
parsedBody = parsedOutput.body;
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
response
|
|
1695
|
-
delete response.Message;
|
|
1696
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1864
|
+
response = new __BaseException({
|
|
1865
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1866
|
+
$fault: "client",
|
|
1867
|
+
$metadata: deserializeMetadata(output),
|
|
1868
|
+
});
|
|
1869
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1697
1870
|
}
|
|
1698
1871
|
});
|
|
1699
1872
|
}); };
|
|
@@ -1722,16 +1895,16 @@ export var deserializeAws_restJson1DeleteProfileCommand = function (output, cont
|
|
|
1722
1895
|
});
|
|
1723
1896
|
}); };
|
|
1724
1897
|
var deserializeAws_restJson1DeleteProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1725
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1726
|
-
var
|
|
1727
|
-
return __generator(this, function (
|
|
1728
|
-
switch (
|
|
1898
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1899
|
+
var _c;
|
|
1900
|
+
return __generator(this, function (_d) {
|
|
1901
|
+
switch (_d.label) {
|
|
1729
1902
|
case 0:
|
|
1730
1903
|
_a = [__assign({}, output)];
|
|
1731
|
-
|
|
1904
|
+
_c = {};
|
|
1732
1905
|
return [4, parseBody(output.body, context)];
|
|
1733
1906
|
case 1:
|
|
1734
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1907
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1735
1908
|
errorCode = "UnknownError";
|
|
1736
1909
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1737
1910
|
_b = errorCode;
|
|
@@ -1748,46 +1921,24 @@ var deserializeAws_restJson1DeleteProfileCommandError = function (output, contex
|
|
|
1748
1921
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
1749
1922
|
}
|
|
1750
1923
|
return [3, 12];
|
|
1751
|
-
case 2:
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
case
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
case 4
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
case
|
|
1761
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1762
|
-
return [3, 13];
|
|
1763
|
-
case 6:
|
|
1764
|
-
_e = [{}];
|
|
1765
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1766
|
-
case 7:
|
|
1767
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1768
|
-
return [3, 13];
|
|
1769
|
-
case 8:
|
|
1770
|
-
_f = [{}];
|
|
1771
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1772
|
-
case 9:
|
|
1773
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1774
|
-
return [3, 13];
|
|
1775
|
-
case 10:
|
|
1776
|
-
_g = [{}];
|
|
1777
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1778
|
-
case 11:
|
|
1779
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1780
|
-
return [3, 13];
|
|
1924
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1925
|
+
case 3: throw _d.sent();
|
|
1926
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1927
|
+
case 5: throw _d.sent();
|
|
1928
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1929
|
+
case 7: throw _d.sent();
|
|
1930
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1931
|
+
case 9: throw _d.sent();
|
|
1932
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1933
|
+
case 11: throw _d.sent();
|
|
1781
1934
|
case 12:
|
|
1782
1935
|
parsedBody = parsedOutput.body;
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
response
|
|
1789
|
-
delete response.Message;
|
|
1790
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1936
|
+
response = new __BaseException({
|
|
1937
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1938
|
+
$fault: "client",
|
|
1939
|
+
$metadata: deserializeMetadata(output),
|
|
1940
|
+
});
|
|
1941
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1791
1942
|
}
|
|
1792
1943
|
});
|
|
1793
1944
|
}); };
|
|
@@ -1816,16 +1967,16 @@ export var deserializeAws_restJson1DeleteProfileKeyCommand = function (output, c
|
|
|
1816
1967
|
});
|
|
1817
1968
|
}); };
|
|
1818
1969
|
var deserializeAws_restJson1DeleteProfileKeyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1819
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1820
|
-
var
|
|
1821
|
-
return __generator(this, function (
|
|
1822
|
-
switch (
|
|
1970
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1971
|
+
var _c;
|
|
1972
|
+
return __generator(this, function (_d) {
|
|
1973
|
+
switch (_d.label) {
|
|
1823
1974
|
case 0:
|
|
1824
1975
|
_a = [__assign({}, output)];
|
|
1825
|
-
|
|
1976
|
+
_c = {};
|
|
1826
1977
|
return [4, parseBody(output.body, context)];
|
|
1827
1978
|
case 1:
|
|
1828
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1979
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1829
1980
|
errorCode = "UnknownError";
|
|
1830
1981
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1831
1982
|
_b = errorCode;
|
|
@@ -1842,46 +1993,24 @@ var deserializeAws_restJson1DeleteProfileKeyCommandError = function (output, con
|
|
|
1842
1993
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
1843
1994
|
}
|
|
1844
1995
|
return [3, 12];
|
|
1845
|
-
case 2:
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
case
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
case 4
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
case
|
|
1855
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1856
|
-
return [3, 13];
|
|
1857
|
-
case 6:
|
|
1858
|
-
_e = [{}];
|
|
1859
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1860
|
-
case 7:
|
|
1861
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1862
|
-
return [3, 13];
|
|
1863
|
-
case 8:
|
|
1864
|
-
_f = [{}];
|
|
1865
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1866
|
-
case 9:
|
|
1867
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1868
|
-
return [3, 13];
|
|
1869
|
-
case 10:
|
|
1870
|
-
_g = [{}];
|
|
1871
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1872
|
-
case 11:
|
|
1873
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1874
|
-
return [3, 13];
|
|
1996
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1997
|
+
case 3: throw _d.sent();
|
|
1998
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1999
|
+
case 5: throw _d.sent();
|
|
2000
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2001
|
+
case 7: throw _d.sent();
|
|
2002
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2003
|
+
case 9: throw _d.sent();
|
|
2004
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2005
|
+
case 11: throw _d.sent();
|
|
1875
2006
|
case 12:
|
|
1876
2007
|
parsedBody = parsedOutput.body;
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
response
|
|
1883
|
-
delete response.Message;
|
|
1884
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2008
|
+
response = new __BaseException({
|
|
2009
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2010
|
+
$fault: "client",
|
|
2011
|
+
$metadata: deserializeMetadata(output),
|
|
2012
|
+
});
|
|
2013
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1885
2014
|
}
|
|
1886
2015
|
});
|
|
1887
2016
|
}); };
|
|
@@ -1910,16 +2039,16 @@ export var deserializeAws_restJson1DeleteProfileObjectCommand = function (output
|
|
|
1910
2039
|
});
|
|
1911
2040
|
}); };
|
|
1912
2041
|
var deserializeAws_restJson1DeleteProfileObjectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1913
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1914
|
-
var
|
|
1915
|
-
return __generator(this, function (
|
|
1916
|
-
switch (
|
|
2042
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2043
|
+
var _c;
|
|
2044
|
+
return __generator(this, function (_d) {
|
|
2045
|
+
switch (_d.label) {
|
|
1917
2046
|
case 0:
|
|
1918
2047
|
_a = [__assign({}, output)];
|
|
1919
|
-
|
|
2048
|
+
_c = {};
|
|
1920
2049
|
return [4, parseBody(output.body, context)];
|
|
1921
2050
|
case 1:
|
|
1922
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2051
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1923
2052
|
errorCode = "UnknownError";
|
|
1924
2053
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1925
2054
|
_b = errorCode;
|
|
@@ -1936,46 +2065,24 @@ var deserializeAws_restJson1DeleteProfileObjectCommandError = function (output,
|
|
|
1936
2065
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
1937
2066
|
}
|
|
1938
2067
|
return [3, 12];
|
|
1939
|
-
case 2:
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
case
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
case 4
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
case
|
|
1949
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1950
|
-
return [3, 13];
|
|
1951
|
-
case 6:
|
|
1952
|
-
_e = [{}];
|
|
1953
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1954
|
-
case 7:
|
|
1955
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1956
|
-
return [3, 13];
|
|
1957
|
-
case 8:
|
|
1958
|
-
_f = [{}];
|
|
1959
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1960
|
-
case 9:
|
|
1961
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1962
|
-
return [3, 13];
|
|
1963
|
-
case 10:
|
|
1964
|
-
_g = [{}];
|
|
1965
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1966
|
-
case 11:
|
|
1967
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1968
|
-
return [3, 13];
|
|
2068
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2069
|
+
case 3: throw _d.sent();
|
|
2070
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2071
|
+
case 5: throw _d.sent();
|
|
2072
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2073
|
+
case 7: throw _d.sent();
|
|
2074
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2075
|
+
case 9: throw _d.sent();
|
|
2076
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2077
|
+
case 11: throw _d.sent();
|
|
1969
2078
|
case 12:
|
|
1970
2079
|
parsedBody = parsedOutput.body;
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
response
|
|
1977
|
-
delete response.Message;
|
|
1978
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2080
|
+
response = new __BaseException({
|
|
2081
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2082
|
+
$fault: "client",
|
|
2083
|
+
$metadata: deserializeMetadata(output),
|
|
2084
|
+
});
|
|
2085
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1979
2086
|
}
|
|
1980
2087
|
});
|
|
1981
2088
|
}); };
|
|
@@ -2004,16 +2111,16 @@ export var deserializeAws_restJson1DeleteProfileObjectTypeCommand = function (ou
|
|
|
2004
2111
|
});
|
|
2005
2112
|
}); };
|
|
2006
2113
|
var deserializeAws_restJson1DeleteProfileObjectTypeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2007
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2008
|
-
var
|
|
2009
|
-
return __generator(this, function (
|
|
2010
|
-
switch (
|
|
2114
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2115
|
+
var _c;
|
|
2116
|
+
return __generator(this, function (_d) {
|
|
2117
|
+
switch (_d.label) {
|
|
2011
2118
|
case 0:
|
|
2012
2119
|
_a = [__assign({}, output)];
|
|
2013
|
-
|
|
2120
|
+
_c = {};
|
|
2014
2121
|
return [4, parseBody(output.body, context)];
|
|
2015
2122
|
case 1:
|
|
2016
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2123
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2017
2124
|
errorCode = "UnknownError";
|
|
2018
2125
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2019
2126
|
_b = errorCode;
|
|
@@ -2030,46 +2137,90 @@ var deserializeAws_restJson1DeleteProfileObjectTypeCommandError = function (outp
|
|
|
2030
2137
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
2031
2138
|
}
|
|
2032
2139
|
return [3, 12];
|
|
2033
|
-
case 2:
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
case
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
case 4
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
case
|
|
2043
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2044
|
-
return [3, 13];
|
|
2045
|
-
case 6:
|
|
2046
|
-
_e = [{}];
|
|
2047
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2048
|
-
case 7:
|
|
2049
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2050
|
-
return [3, 13];
|
|
2051
|
-
case 8:
|
|
2052
|
-
_f = [{}];
|
|
2053
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2054
|
-
case 9:
|
|
2055
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2056
|
-
return [3, 13];
|
|
2057
|
-
case 10:
|
|
2058
|
-
_g = [{}];
|
|
2059
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2060
|
-
case 11:
|
|
2061
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2062
|
-
return [3, 13];
|
|
2140
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2141
|
+
case 3: throw _d.sent();
|
|
2142
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2143
|
+
case 5: throw _d.sent();
|
|
2144
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2145
|
+
case 7: throw _d.sent();
|
|
2146
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2147
|
+
case 9: throw _d.sent();
|
|
2148
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2149
|
+
case 11: throw _d.sent();
|
|
2063
2150
|
case 12:
|
|
2064
2151
|
parsedBody = parsedOutput.body;
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
response
|
|
2071
|
-
|
|
2072
|
-
|
|
2152
|
+
response = new __BaseException({
|
|
2153
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2154
|
+
$fault: "client",
|
|
2155
|
+
$metadata: deserializeMetadata(output),
|
|
2156
|
+
});
|
|
2157
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2158
|
+
}
|
|
2159
|
+
});
|
|
2160
|
+
}); };
|
|
2161
|
+
export var deserializeAws_restJson1DeleteWorkflowCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2162
|
+
var contents;
|
|
2163
|
+
return __generator(this, function (_a) {
|
|
2164
|
+
switch (_a.label) {
|
|
2165
|
+
case 0:
|
|
2166
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2167
|
+
return [2, deserializeAws_restJson1DeleteWorkflowCommandError(output, context)];
|
|
2168
|
+
}
|
|
2169
|
+
contents = {
|
|
2170
|
+
$metadata: deserializeMetadata(output),
|
|
2171
|
+
};
|
|
2172
|
+
return [4, collectBody(output.body, context)];
|
|
2173
|
+
case 1:
|
|
2174
|
+
_a.sent();
|
|
2175
|
+
return [2, Promise.resolve(contents)];
|
|
2176
|
+
}
|
|
2177
|
+
});
|
|
2178
|
+
}); };
|
|
2179
|
+
var deserializeAws_restJson1DeleteWorkflowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2180
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2181
|
+
var _c;
|
|
2182
|
+
return __generator(this, function (_d) {
|
|
2183
|
+
switch (_d.label) {
|
|
2184
|
+
case 0:
|
|
2185
|
+
_a = [__assign({}, output)];
|
|
2186
|
+
_c = {};
|
|
2187
|
+
return [4, parseBody(output.body, context)];
|
|
2188
|
+
case 1:
|
|
2189
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2190
|
+
errorCode = "UnknownError";
|
|
2191
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2192
|
+
_b = errorCode;
|
|
2193
|
+
switch (_b) {
|
|
2194
|
+
case "AccessDeniedException": return [3, 2];
|
|
2195
|
+
case "com.amazonaws.customerprofiles#AccessDeniedException": return [3, 2];
|
|
2196
|
+
case "BadRequestException": return [3, 4];
|
|
2197
|
+
case "com.amazonaws.customerprofiles#BadRequestException": return [3, 4];
|
|
2198
|
+
case "InternalServerException": return [3, 6];
|
|
2199
|
+
case "com.amazonaws.customerprofiles#InternalServerException": return [3, 6];
|
|
2200
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2201
|
+
case "com.amazonaws.customerprofiles#ResourceNotFoundException": return [3, 8];
|
|
2202
|
+
case "ThrottlingException": return [3, 10];
|
|
2203
|
+
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
2204
|
+
}
|
|
2205
|
+
return [3, 12];
|
|
2206
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2207
|
+
case 3: throw _d.sent();
|
|
2208
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2209
|
+
case 5: throw _d.sent();
|
|
2210
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2211
|
+
case 7: throw _d.sent();
|
|
2212
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2213
|
+
case 9: throw _d.sent();
|
|
2214
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2215
|
+
case 11: throw _d.sent();
|
|
2216
|
+
case 12:
|
|
2217
|
+
parsedBody = parsedOutput.body;
|
|
2218
|
+
response = new __BaseException({
|
|
2219
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2220
|
+
$fault: "client",
|
|
2221
|
+
$metadata: deserializeMetadata(output),
|
|
2222
|
+
});
|
|
2223
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2073
2224
|
}
|
|
2074
2225
|
});
|
|
2075
2226
|
}); };
|
|
@@ -2110,16 +2261,16 @@ export var deserializeAws_restJson1GetAutoMergingPreviewCommand = function (outp
|
|
|
2110
2261
|
});
|
|
2111
2262
|
}); };
|
|
2112
2263
|
var deserializeAws_restJson1GetAutoMergingPreviewCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2113
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2114
|
-
var
|
|
2115
|
-
return __generator(this, function (
|
|
2116
|
-
switch (
|
|
2264
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2265
|
+
var _c;
|
|
2266
|
+
return __generator(this, function (_d) {
|
|
2267
|
+
switch (_d.label) {
|
|
2117
2268
|
case 0:
|
|
2118
2269
|
_a = [__assign({}, output)];
|
|
2119
|
-
|
|
2270
|
+
_c = {};
|
|
2120
2271
|
return [4, parseBody(output.body, context)];
|
|
2121
2272
|
case 1:
|
|
2122
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2273
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2123
2274
|
errorCode = "UnknownError";
|
|
2124
2275
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2125
2276
|
_b = errorCode;
|
|
@@ -2136,46 +2287,24 @@ var deserializeAws_restJson1GetAutoMergingPreviewCommandError = function (output
|
|
|
2136
2287
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
2137
2288
|
}
|
|
2138
2289
|
return [3, 12];
|
|
2139
|
-
case 2:
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
case
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
case 4
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
case
|
|
2149
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2150
|
-
return [3, 13];
|
|
2151
|
-
case 6:
|
|
2152
|
-
_e = [{}];
|
|
2153
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2154
|
-
case 7:
|
|
2155
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2156
|
-
return [3, 13];
|
|
2157
|
-
case 8:
|
|
2158
|
-
_f = [{}];
|
|
2159
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2160
|
-
case 9:
|
|
2161
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2162
|
-
return [3, 13];
|
|
2163
|
-
case 10:
|
|
2164
|
-
_g = [{}];
|
|
2165
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2166
|
-
case 11:
|
|
2167
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2168
|
-
return [3, 13];
|
|
2290
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2291
|
+
case 3: throw _d.sent();
|
|
2292
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2293
|
+
case 5: throw _d.sent();
|
|
2294
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2295
|
+
case 7: throw _d.sent();
|
|
2296
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2297
|
+
case 9: throw _d.sent();
|
|
2298
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2299
|
+
case 11: throw _d.sent();
|
|
2169
2300
|
case 12:
|
|
2170
2301
|
parsedBody = parsedOutput.body;
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
response
|
|
2177
|
-
delete response.Message;
|
|
2178
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2302
|
+
response = new __BaseException({
|
|
2303
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2304
|
+
$fault: "client",
|
|
2305
|
+
$metadata: deserializeMetadata(output),
|
|
2306
|
+
});
|
|
2307
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2179
2308
|
}
|
|
2180
2309
|
});
|
|
2181
2310
|
}); };
|
|
@@ -2236,16 +2365,16 @@ export var deserializeAws_restJson1GetDomainCommand = function (output, context)
|
|
|
2236
2365
|
});
|
|
2237
2366
|
}); };
|
|
2238
2367
|
var deserializeAws_restJson1GetDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2239
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2240
|
-
var
|
|
2241
|
-
return __generator(this, function (
|
|
2242
|
-
switch (
|
|
2368
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2369
|
+
var _c;
|
|
2370
|
+
return __generator(this, function (_d) {
|
|
2371
|
+
switch (_d.label) {
|
|
2243
2372
|
case 0:
|
|
2244
2373
|
_a = [__assign({}, output)];
|
|
2245
|
-
|
|
2374
|
+
_c = {};
|
|
2246
2375
|
return [4, parseBody(output.body, context)];
|
|
2247
2376
|
case 1:
|
|
2248
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2377
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2249
2378
|
errorCode = "UnknownError";
|
|
2250
2379
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2251
2380
|
_b = errorCode;
|
|
@@ -2262,46 +2391,24 @@ var deserializeAws_restJson1GetDomainCommandError = function (output, context) {
|
|
|
2262
2391
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
2263
2392
|
}
|
|
2264
2393
|
return [3, 12];
|
|
2265
|
-
case 2:
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
case
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
case 4
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
case
|
|
2275
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2276
|
-
return [3, 13];
|
|
2277
|
-
case 6:
|
|
2278
|
-
_e = [{}];
|
|
2279
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2280
|
-
case 7:
|
|
2281
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2282
|
-
return [3, 13];
|
|
2283
|
-
case 8:
|
|
2284
|
-
_f = [{}];
|
|
2285
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2286
|
-
case 9:
|
|
2287
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2288
|
-
return [3, 13];
|
|
2289
|
-
case 10:
|
|
2290
|
-
_g = [{}];
|
|
2291
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2292
|
-
case 11:
|
|
2293
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2294
|
-
return [3, 13];
|
|
2394
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2395
|
+
case 3: throw _d.sent();
|
|
2396
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2397
|
+
case 5: throw _d.sent();
|
|
2398
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2399
|
+
case 7: throw _d.sent();
|
|
2400
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2401
|
+
case 9: throw _d.sent();
|
|
2402
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2403
|
+
case 11: throw _d.sent();
|
|
2295
2404
|
case 12:
|
|
2296
2405
|
parsedBody = parsedOutput.body;
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
response
|
|
2303
|
-
delete response.Message;
|
|
2304
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2406
|
+
response = new __BaseException({
|
|
2407
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2408
|
+
$fault: "client",
|
|
2409
|
+
$metadata: deserializeMetadata(output),
|
|
2410
|
+
});
|
|
2411
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2305
2412
|
}
|
|
2306
2413
|
});
|
|
2307
2414
|
}); };
|
|
@@ -2370,16 +2477,16 @@ export var deserializeAws_restJson1GetIdentityResolutionJobCommand = function (o
|
|
|
2370
2477
|
});
|
|
2371
2478
|
}); };
|
|
2372
2479
|
var deserializeAws_restJson1GetIdentityResolutionJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2373
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2374
|
-
var
|
|
2375
|
-
return __generator(this, function (
|
|
2376
|
-
switch (
|
|
2480
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2481
|
+
var _c;
|
|
2482
|
+
return __generator(this, function (_d) {
|
|
2483
|
+
switch (_d.label) {
|
|
2377
2484
|
case 0:
|
|
2378
2485
|
_a = [__assign({}, output)];
|
|
2379
|
-
|
|
2486
|
+
_c = {};
|
|
2380
2487
|
return [4, parseBody(output.body, context)];
|
|
2381
2488
|
case 1:
|
|
2382
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2489
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2383
2490
|
errorCode = "UnknownError";
|
|
2384
2491
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2385
2492
|
_b = errorCode;
|
|
@@ -2396,46 +2503,24 @@ var deserializeAws_restJson1GetIdentityResolutionJobCommandError = function (out
|
|
|
2396
2503
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
2397
2504
|
}
|
|
2398
2505
|
return [3, 12];
|
|
2399
|
-
case 2:
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
case
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
case 4
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
case
|
|
2409
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2410
|
-
return [3, 13];
|
|
2411
|
-
case 6:
|
|
2412
|
-
_e = [{}];
|
|
2413
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2414
|
-
case 7:
|
|
2415
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2416
|
-
return [3, 13];
|
|
2417
|
-
case 8:
|
|
2418
|
-
_f = [{}];
|
|
2419
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2420
|
-
case 9:
|
|
2421
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2422
|
-
return [3, 13];
|
|
2423
|
-
case 10:
|
|
2424
|
-
_g = [{}];
|
|
2425
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2426
|
-
case 11:
|
|
2427
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2428
|
-
return [3, 13];
|
|
2506
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2507
|
+
case 3: throw _d.sent();
|
|
2508
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2509
|
+
case 5: throw _d.sent();
|
|
2510
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2511
|
+
case 7: throw _d.sent();
|
|
2512
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2513
|
+
case 9: throw _d.sent();
|
|
2514
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2515
|
+
case 11: throw _d.sent();
|
|
2429
2516
|
case 12:
|
|
2430
2517
|
parsedBody = parsedOutput.body;
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
response
|
|
2437
|
-
delete response.Message;
|
|
2438
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2518
|
+
response = new __BaseException({
|
|
2519
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2520
|
+
$fault: "client",
|
|
2521
|
+
$metadata: deserializeMetadata(output),
|
|
2522
|
+
});
|
|
2523
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2439
2524
|
}
|
|
2440
2525
|
});
|
|
2441
2526
|
}); };
|
|
@@ -2456,6 +2541,7 @@ export var deserializeAws_restJson1GetIntegrationCommand = function (output, con
|
|
|
2456
2541
|
ObjectTypeNames: undefined,
|
|
2457
2542
|
Tags: undefined,
|
|
2458
2543
|
Uri: undefined,
|
|
2544
|
+
WorkflowId: undefined,
|
|
2459
2545
|
};
|
|
2460
2546
|
_a = __expectNonNull;
|
|
2461
2547
|
_b = __expectObject;
|
|
@@ -2483,21 +2569,24 @@ export var deserializeAws_restJson1GetIntegrationCommand = function (output, con
|
|
|
2483
2569
|
if (data.Uri !== undefined && data.Uri !== null) {
|
|
2484
2570
|
contents.Uri = __expectString(data.Uri);
|
|
2485
2571
|
}
|
|
2572
|
+
if (data.WorkflowId !== undefined && data.WorkflowId !== null) {
|
|
2573
|
+
contents.WorkflowId = __expectString(data.WorkflowId);
|
|
2574
|
+
}
|
|
2486
2575
|
return [2, Promise.resolve(contents)];
|
|
2487
2576
|
}
|
|
2488
2577
|
});
|
|
2489
2578
|
}); };
|
|
2490
2579
|
var deserializeAws_restJson1GetIntegrationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2491
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2492
|
-
var
|
|
2493
|
-
return __generator(this, function (
|
|
2494
|
-
switch (
|
|
2580
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2581
|
+
var _c;
|
|
2582
|
+
return __generator(this, function (_d) {
|
|
2583
|
+
switch (_d.label) {
|
|
2495
2584
|
case 0:
|
|
2496
2585
|
_a = [__assign({}, output)];
|
|
2497
|
-
|
|
2586
|
+
_c = {};
|
|
2498
2587
|
return [4, parseBody(output.body, context)];
|
|
2499
2588
|
case 1:
|
|
2500
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2589
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2501
2590
|
errorCode = "UnknownError";
|
|
2502
2591
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2503
2592
|
_b = errorCode;
|
|
@@ -2514,46 +2603,24 @@ var deserializeAws_restJson1GetIntegrationCommandError = function (output, conte
|
|
|
2514
2603
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
2515
2604
|
}
|
|
2516
2605
|
return [3, 12];
|
|
2517
|
-
case 2:
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
case
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
case 4
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
case
|
|
2527
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2528
|
-
return [3, 13];
|
|
2529
|
-
case 6:
|
|
2530
|
-
_e = [{}];
|
|
2531
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2532
|
-
case 7:
|
|
2533
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2534
|
-
return [3, 13];
|
|
2535
|
-
case 8:
|
|
2536
|
-
_f = [{}];
|
|
2537
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2538
|
-
case 9:
|
|
2539
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2540
|
-
return [3, 13];
|
|
2541
|
-
case 10:
|
|
2542
|
-
_g = [{}];
|
|
2543
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2544
|
-
case 11:
|
|
2545
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2546
|
-
return [3, 13];
|
|
2606
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2607
|
+
case 3: throw _d.sent();
|
|
2608
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2609
|
+
case 5: throw _d.sent();
|
|
2610
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2611
|
+
case 7: throw _d.sent();
|
|
2612
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2613
|
+
case 9: throw _d.sent();
|
|
2614
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2615
|
+
case 11: throw _d.sent();
|
|
2547
2616
|
case 12:
|
|
2548
2617
|
parsedBody = parsedOutput.body;
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
response
|
|
2555
|
-
delete response.Message;
|
|
2556
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2618
|
+
response = new __BaseException({
|
|
2619
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2620
|
+
$fault: "client",
|
|
2621
|
+
$metadata: deserializeMetadata(output),
|
|
2622
|
+
});
|
|
2623
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2557
2624
|
}
|
|
2558
2625
|
});
|
|
2559
2626
|
}); };
|
|
@@ -2586,24 +2653,236 @@ export var deserializeAws_restJson1GetMatchesCommand = function (output, context
|
|
|
2586
2653
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2587
2654
|
contents.NextToken = __expectString(data.NextToken);
|
|
2588
2655
|
}
|
|
2589
|
-
if (data.PotentialMatches !== undefined && data.PotentialMatches !== null) {
|
|
2590
|
-
contents.PotentialMatches = __expectInt32(data.PotentialMatches);
|
|
2656
|
+
if (data.PotentialMatches !== undefined && data.PotentialMatches !== null) {
|
|
2657
|
+
contents.PotentialMatches = __expectInt32(data.PotentialMatches);
|
|
2658
|
+
}
|
|
2659
|
+
return [2, Promise.resolve(contents)];
|
|
2660
|
+
}
|
|
2661
|
+
});
|
|
2662
|
+
}); };
|
|
2663
|
+
var deserializeAws_restJson1GetMatchesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2664
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2665
|
+
var _c;
|
|
2666
|
+
return __generator(this, function (_d) {
|
|
2667
|
+
switch (_d.label) {
|
|
2668
|
+
case 0:
|
|
2669
|
+
_a = [__assign({}, output)];
|
|
2670
|
+
_c = {};
|
|
2671
|
+
return [4, parseBody(output.body, context)];
|
|
2672
|
+
case 1:
|
|
2673
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2674
|
+
errorCode = "UnknownError";
|
|
2675
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2676
|
+
_b = errorCode;
|
|
2677
|
+
switch (_b) {
|
|
2678
|
+
case "AccessDeniedException": return [3, 2];
|
|
2679
|
+
case "com.amazonaws.customerprofiles#AccessDeniedException": return [3, 2];
|
|
2680
|
+
case "BadRequestException": return [3, 4];
|
|
2681
|
+
case "com.amazonaws.customerprofiles#BadRequestException": return [3, 4];
|
|
2682
|
+
case "InternalServerException": return [3, 6];
|
|
2683
|
+
case "com.amazonaws.customerprofiles#InternalServerException": return [3, 6];
|
|
2684
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2685
|
+
case "com.amazonaws.customerprofiles#ResourceNotFoundException": return [3, 8];
|
|
2686
|
+
case "ThrottlingException": return [3, 10];
|
|
2687
|
+
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
2688
|
+
}
|
|
2689
|
+
return [3, 12];
|
|
2690
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2691
|
+
case 3: throw _d.sent();
|
|
2692
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2693
|
+
case 5: throw _d.sent();
|
|
2694
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2695
|
+
case 7: throw _d.sent();
|
|
2696
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2697
|
+
case 9: throw _d.sent();
|
|
2698
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2699
|
+
case 11: throw _d.sent();
|
|
2700
|
+
case 12:
|
|
2701
|
+
parsedBody = parsedOutput.body;
|
|
2702
|
+
response = new __BaseException({
|
|
2703
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2704
|
+
$fault: "client",
|
|
2705
|
+
$metadata: deserializeMetadata(output),
|
|
2706
|
+
});
|
|
2707
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2708
|
+
}
|
|
2709
|
+
});
|
|
2710
|
+
}); };
|
|
2711
|
+
export var deserializeAws_restJson1GetProfileObjectTypeCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2712
|
+
var contents, data, _a, _b;
|
|
2713
|
+
return __generator(this, function (_c) {
|
|
2714
|
+
switch (_c.label) {
|
|
2715
|
+
case 0:
|
|
2716
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2717
|
+
return [2, deserializeAws_restJson1GetProfileObjectTypeCommandError(output, context)];
|
|
2718
|
+
}
|
|
2719
|
+
contents = {
|
|
2720
|
+
$metadata: deserializeMetadata(output),
|
|
2721
|
+
AllowProfileCreation: undefined,
|
|
2722
|
+
CreatedAt: undefined,
|
|
2723
|
+
Description: undefined,
|
|
2724
|
+
EncryptionKey: undefined,
|
|
2725
|
+
ExpirationDays: undefined,
|
|
2726
|
+
Fields: undefined,
|
|
2727
|
+
Keys: undefined,
|
|
2728
|
+
LastUpdatedAt: undefined,
|
|
2729
|
+
ObjectTypeName: undefined,
|
|
2730
|
+
SourceLastUpdatedTimestampFormat: undefined,
|
|
2731
|
+
Tags: undefined,
|
|
2732
|
+
TemplateId: undefined,
|
|
2733
|
+
};
|
|
2734
|
+
_a = __expectNonNull;
|
|
2735
|
+
_b = __expectObject;
|
|
2736
|
+
return [4, parseBody(output.body, context)];
|
|
2737
|
+
case 1:
|
|
2738
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2739
|
+
if (data.AllowProfileCreation !== undefined && data.AllowProfileCreation !== null) {
|
|
2740
|
+
contents.AllowProfileCreation = __expectBoolean(data.AllowProfileCreation);
|
|
2741
|
+
}
|
|
2742
|
+
if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
|
|
2743
|
+
contents.CreatedAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreatedAt)));
|
|
2744
|
+
}
|
|
2745
|
+
if (data.Description !== undefined && data.Description !== null) {
|
|
2746
|
+
contents.Description = __expectString(data.Description);
|
|
2747
|
+
}
|
|
2748
|
+
if (data.EncryptionKey !== undefined && data.EncryptionKey !== null) {
|
|
2749
|
+
contents.EncryptionKey = __expectString(data.EncryptionKey);
|
|
2750
|
+
}
|
|
2751
|
+
if (data.ExpirationDays !== undefined && data.ExpirationDays !== null) {
|
|
2752
|
+
contents.ExpirationDays = __expectInt32(data.ExpirationDays);
|
|
2753
|
+
}
|
|
2754
|
+
if (data.Fields !== undefined && data.Fields !== null) {
|
|
2755
|
+
contents.Fields = deserializeAws_restJson1FieldMap(data.Fields, context);
|
|
2756
|
+
}
|
|
2757
|
+
if (data.Keys !== undefined && data.Keys !== null) {
|
|
2758
|
+
contents.Keys = deserializeAws_restJson1KeyMap(data.Keys, context);
|
|
2759
|
+
}
|
|
2760
|
+
if (data.LastUpdatedAt !== undefined && data.LastUpdatedAt !== null) {
|
|
2761
|
+
contents.LastUpdatedAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedAt)));
|
|
2762
|
+
}
|
|
2763
|
+
if (data.ObjectTypeName !== undefined && data.ObjectTypeName !== null) {
|
|
2764
|
+
contents.ObjectTypeName = __expectString(data.ObjectTypeName);
|
|
2765
|
+
}
|
|
2766
|
+
if (data.SourceLastUpdatedTimestampFormat !== undefined && data.SourceLastUpdatedTimestampFormat !== null) {
|
|
2767
|
+
contents.SourceLastUpdatedTimestampFormat = __expectString(data.SourceLastUpdatedTimestampFormat);
|
|
2768
|
+
}
|
|
2769
|
+
if (data.Tags !== undefined && data.Tags !== null) {
|
|
2770
|
+
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
2771
|
+
}
|
|
2772
|
+
if (data.TemplateId !== undefined && data.TemplateId !== null) {
|
|
2773
|
+
contents.TemplateId = __expectString(data.TemplateId);
|
|
2774
|
+
}
|
|
2775
|
+
return [2, Promise.resolve(contents)];
|
|
2776
|
+
}
|
|
2777
|
+
});
|
|
2778
|
+
}); };
|
|
2779
|
+
var deserializeAws_restJson1GetProfileObjectTypeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2780
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2781
|
+
var _c;
|
|
2782
|
+
return __generator(this, function (_d) {
|
|
2783
|
+
switch (_d.label) {
|
|
2784
|
+
case 0:
|
|
2785
|
+
_a = [__assign({}, output)];
|
|
2786
|
+
_c = {};
|
|
2787
|
+
return [4, parseBody(output.body, context)];
|
|
2788
|
+
case 1:
|
|
2789
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2790
|
+
errorCode = "UnknownError";
|
|
2791
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2792
|
+
_b = errorCode;
|
|
2793
|
+
switch (_b) {
|
|
2794
|
+
case "AccessDeniedException": return [3, 2];
|
|
2795
|
+
case "com.amazonaws.customerprofiles#AccessDeniedException": return [3, 2];
|
|
2796
|
+
case "BadRequestException": return [3, 4];
|
|
2797
|
+
case "com.amazonaws.customerprofiles#BadRequestException": return [3, 4];
|
|
2798
|
+
case "InternalServerException": return [3, 6];
|
|
2799
|
+
case "com.amazonaws.customerprofiles#InternalServerException": return [3, 6];
|
|
2800
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2801
|
+
case "com.amazonaws.customerprofiles#ResourceNotFoundException": return [3, 8];
|
|
2802
|
+
case "ThrottlingException": return [3, 10];
|
|
2803
|
+
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
2804
|
+
}
|
|
2805
|
+
return [3, 12];
|
|
2806
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2807
|
+
case 3: throw _d.sent();
|
|
2808
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2809
|
+
case 5: throw _d.sent();
|
|
2810
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2811
|
+
case 7: throw _d.sent();
|
|
2812
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2813
|
+
case 9: throw _d.sent();
|
|
2814
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2815
|
+
case 11: throw _d.sent();
|
|
2816
|
+
case 12:
|
|
2817
|
+
parsedBody = parsedOutput.body;
|
|
2818
|
+
response = new __BaseException({
|
|
2819
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2820
|
+
$fault: "client",
|
|
2821
|
+
$metadata: deserializeMetadata(output),
|
|
2822
|
+
});
|
|
2823
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2824
|
+
}
|
|
2825
|
+
});
|
|
2826
|
+
}); };
|
|
2827
|
+
export var deserializeAws_restJson1GetProfileObjectTypeTemplateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2828
|
+
var contents, data, _a, _b;
|
|
2829
|
+
return __generator(this, function (_c) {
|
|
2830
|
+
switch (_c.label) {
|
|
2831
|
+
case 0:
|
|
2832
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2833
|
+
return [2, deserializeAws_restJson1GetProfileObjectTypeTemplateCommandError(output, context)];
|
|
2834
|
+
}
|
|
2835
|
+
contents = {
|
|
2836
|
+
$metadata: deserializeMetadata(output),
|
|
2837
|
+
AllowProfileCreation: undefined,
|
|
2838
|
+
Fields: undefined,
|
|
2839
|
+
Keys: undefined,
|
|
2840
|
+
SourceLastUpdatedTimestampFormat: undefined,
|
|
2841
|
+
SourceName: undefined,
|
|
2842
|
+
SourceObject: undefined,
|
|
2843
|
+
TemplateId: undefined,
|
|
2844
|
+
};
|
|
2845
|
+
_a = __expectNonNull;
|
|
2846
|
+
_b = __expectObject;
|
|
2847
|
+
return [4, parseBody(output.body, context)];
|
|
2848
|
+
case 1:
|
|
2849
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2850
|
+
if (data.AllowProfileCreation !== undefined && data.AllowProfileCreation !== null) {
|
|
2851
|
+
contents.AllowProfileCreation = __expectBoolean(data.AllowProfileCreation);
|
|
2852
|
+
}
|
|
2853
|
+
if (data.Fields !== undefined && data.Fields !== null) {
|
|
2854
|
+
contents.Fields = deserializeAws_restJson1FieldMap(data.Fields, context);
|
|
2855
|
+
}
|
|
2856
|
+
if (data.Keys !== undefined && data.Keys !== null) {
|
|
2857
|
+
contents.Keys = deserializeAws_restJson1KeyMap(data.Keys, context);
|
|
2858
|
+
}
|
|
2859
|
+
if (data.SourceLastUpdatedTimestampFormat !== undefined && data.SourceLastUpdatedTimestampFormat !== null) {
|
|
2860
|
+
contents.SourceLastUpdatedTimestampFormat = __expectString(data.SourceLastUpdatedTimestampFormat);
|
|
2861
|
+
}
|
|
2862
|
+
if (data.SourceName !== undefined && data.SourceName !== null) {
|
|
2863
|
+
contents.SourceName = __expectString(data.SourceName);
|
|
2864
|
+
}
|
|
2865
|
+
if (data.SourceObject !== undefined && data.SourceObject !== null) {
|
|
2866
|
+
contents.SourceObject = __expectString(data.SourceObject);
|
|
2867
|
+
}
|
|
2868
|
+
if (data.TemplateId !== undefined && data.TemplateId !== null) {
|
|
2869
|
+
contents.TemplateId = __expectString(data.TemplateId);
|
|
2591
2870
|
}
|
|
2592
2871
|
return [2, Promise.resolve(contents)];
|
|
2593
2872
|
}
|
|
2594
2873
|
});
|
|
2595
2874
|
}); };
|
|
2596
|
-
var
|
|
2597
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2598
|
-
var
|
|
2599
|
-
return __generator(this, function (
|
|
2600
|
-
switch (
|
|
2875
|
+
var deserializeAws_restJson1GetProfileObjectTypeTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2876
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2877
|
+
var _c;
|
|
2878
|
+
return __generator(this, function (_d) {
|
|
2879
|
+
switch (_d.label) {
|
|
2601
2880
|
case 0:
|
|
2602
2881
|
_a = [__assign({}, output)];
|
|
2603
|
-
|
|
2882
|
+
_c = {};
|
|
2604
2883
|
return [4, parseBody(output.body, context)];
|
|
2605
2884
|
case 1:
|
|
2606
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2885
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2607
2886
|
errorCode = "UnknownError";
|
|
2608
2887
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2609
2888
|
_b = errorCode;
|
|
@@ -2620,128 +2899,90 @@ var deserializeAws_restJson1GetMatchesCommandError = function (output, context)
|
|
|
2620
2899
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
2621
2900
|
}
|
|
2622
2901
|
return [3, 12];
|
|
2623
|
-
case 2:
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
case
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
case 4
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
case
|
|
2633
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2634
|
-
return [3, 13];
|
|
2635
|
-
case 6:
|
|
2636
|
-
_e = [{}];
|
|
2637
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2638
|
-
case 7:
|
|
2639
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2640
|
-
return [3, 13];
|
|
2641
|
-
case 8:
|
|
2642
|
-
_f = [{}];
|
|
2643
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2644
|
-
case 9:
|
|
2645
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2646
|
-
return [3, 13];
|
|
2647
|
-
case 10:
|
|
2648
|
-
_g = [{}];
|
|
2649
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2650
|
-
case 11:
|
|
2651
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2652
|
-
return [3, 13];
|
|
2902
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2903
|
+
case 3: throw _d.sent();
|
|
2904
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2905
|
+
case 5: throw _d.sent();
|
|
2906
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2907
|
+
case 7: throw _d.sent();
|
|
2908
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2909
|
+
case 9: throw _d.sent();
|
|
2910
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2911
|
+
case 11: throw _d.sent();
|
|
2653
2912
|
case 12:
|
|
2654
2913
|
parsedBody = parsedOutput.body;
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
response
|
|
2661
|
-
delete response.Message;
|
|
2662
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2914
|
+
response = new __BaseException({
|
|
2915
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2916
|
+
$fault: "client",
|
|
2917
|
+
$metadata: deserializeMetadata(output),
|
|
2918
|
+
});
|
|
2919
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2663
2920
|
}
|
|
2664
2921
|
});
|
|
2665
2922
|
}); };
|
|
2666
|
-
export var
|
|
2923
|
+
export var deserializeAws_restJson1GetWorkflowCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2667
2924
|
var contents, data, _a, _b;
|
|
2668
2925
|
return __generator(this, function (_c) {
|
|
2669
2926
|
switch (_c.label) {
|
|
2670
2927
|
case 0:
|
|
2671
2928
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2672
|
-
return [2,
|
|
2929
|
+
return [2, deserializeAws_restJson1GetWorkflowCommandError(output, context)];
|
|
2673
2930
|
}
|
|
2674
2931
|
contents = {
|
|
2675
2932
|
$metadata: deserializeMetadata(output),
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
Description: undefined,
|
|
2679
|
-
EncryptionKey: undefined,
|
|
2680
|
-
ExpirationDays: undefined,
|
|
2681
|
-
Fields: undefined,
|
|
2682
|
-
Keys: undefined,
|
|
2933
|
+
Attributes: undefined,
|
|
2934
|
+
ErrorDescription: undefined,
|
|
2683
2935
|
LastUpdatedAt: undefined,
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2936
|
+
Metrics: undefined,
|
|
2937
|
+
StartDate: undefined,
|
|
2938
|
+
Status: undefined,
|
|
2939
|
+
WorkflowId: undefined,
|
|
2940
|
+
WorkflowType: undefined,
|
|
2688
2941
|
};
|
|
2689
2942
|
_a = __expectNonNull;
|
|
2690
2943
|
_b = __expectObject;
|
|
2691
2944
|
return [4, parseBody(output.body, context)];
|
|
2692
2945
|
case 1:
|
|
2693
2946
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2694
|
-
if (data.
|
|
2695
|
-
contents.
|
|
2696
|
-
}
|
|
2697
|
-
if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
|
|
2698
|
-
contents.CreatedAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreatedAt)));
|
|
2699
|
-
}
|
|
2700
|
-
if (data.Description !== undefined && data.Description !== null) {
|
|
2701
|
-
contents.Description = __expectString(data.Description);
|
|
2702
|
-
}
|
|
2703
|
-
if (data.EncryptionKey !== undefined && data.EncryptionKey !== null) {
|
|
2704
|
-
contents.EncryptionKey = __expectString(data.EncryptionKey);
|
|
2705
|
-
}
|
|
2706
|
-
if (data.ExpirationDays !== undefined && data.ExpirationDays !== null) {
|
|
2707
|
-
contents.ExpirationDays = __expectInt32(data.ExpirationDays);
|
|
2947
|
+
if (data.Attributes !== undefined && data.Attributes !== null) {
|
|
2948
|
+
contents.Attributes = deserializeAws_restJson1WorkflowAttributes(data.Attributes, context);
|
|
2708
2949
|
}
|
|
2709
|
-
if (data.
|
|
2710
|
-
contents.
|
|
2711
|
-
}
|
|
2712
|
-
if (data.Keys !== undefined && data.Keys !== null) {
|
|
2713
|
-
contents.Keys = deserializeAws_restJson1KeyMap(data.Keys, context);
|
|
2950
|
+
if (data.ErrorDescription !== undefined && data.ErrorDescription !== null) {
|
|
2951
|
+
contents.ErrorDescription = __expectString(data.ErrorDescription);
|
|
2714
2952
|
}
|
|
2715
2953
|
if (data.LastUpdatedAt !== undefined && data.LastUpdatedAt !== null) {
|
|
2716
2954
|
contents.LastUpdatedAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedAt)));
|
|
2717
2955
|
}
|
|
2718
|
-
if (data.
|
|
2719
|
-
contents.
|
|
2956
|
+
if (data.Metrics !== undefined && data.Metrics !== null) {
|
|
2957
|
+
contents.Metrics = deserializeAws_restJson1WorkflowMetrics(data.Metrics, context);
|
|
2720
2958
|
}
|
|
2721
|
-
if (data.
|
|
2722
|
-
contents.
|
|
2959
|
+
if (data.StartDate !== undefined && data.StartDate !== null) {
|
|
2960
|
+
contents.StartDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.StartDate)));
|
|
2723
2961
|
}
|
|
2724
|
-
if (data.
|
|
2725
|
-
contents.
|
|
2962
|
+
if (data.Status !== undefined && data.Status !== null) {
|
|
2963
|
+
contents.Status = __expectString(data.Status);
|
|
2726
2964
|
}
|
|
2727
|
-
if (data.
|
|
2728
|
-
contents.
|
|
2965
|
+
if (data.WorkflowId !== undefined && data.WorkflowId !== null) {
|
|
2966
|
+
contents.WorkflowId = __expectString(data.WorkflowId);
|
|
2967
|
+
}
|
|
2968
|
+
if (data.WorkflowType !== undefined && data.WorkflowType !== null) {
|
|
2969
|
+
contents.WorkflowType = __expectString(data.WorkflowType);
|
|
2729
2970
|
}
|
|
2730
2971
|
return [2, Promise.resolve(contents)];
|
|
2731
2972
|
}
|
|
2732
2973
|
});
|
|
2733
2974
|
}); };
|
|
2734
|
-
var
|
|
2735
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2736
|
-
var
|
|
2737
|
-
return __generator(this, function (
|
|
2738
|
-
switch (
|
|
2975
|
+
var deserializeAws_restJson1GetWorkflowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2976
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2977
|
+
var _c;
|
|
2978
|
+
return __generator(this, function (_d) {
|
|
2979
|
+
switch (_d.label) {
|
|
2739
2980
|
case 0:
|
|
2740
2981
|
_a = [__assign({}, output)];
|
|
2741
|
-
|
|
2982
|
+
_c = {};
|
|
2742
2983
|
return [4, parseBody(output.body, context)];
|
|
2743
2984
|
case 1:
|
|
2744
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2985
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2745
2986
|
errorCode = "UnknownError";
|
|
2746
2987
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2747
2988
|
_b = errorCode;
|
|
@@ -2758,108 +2999,74 @@ var deserializeAws_restJson1GetProfileObjectTypeCommandError = function (output,
|
|
|
2758
2999
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
2759
3000
|
}
|
|
2760
3001
|
return [3, 12];
|
|
2761
|
-
case 2:
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
case
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
case 4
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
case
|
|
2771
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2772
|
-
return [3, 13];
|
|
2773
|
-
case 6:
|
|
2774
|
-
_e = [{}];
|
|
2775
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2776
|
-
case 7:
|
|
2777
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2778
|
-
return [3, 13];
|
|
2779
|
-
case 8:
|
|
2780
|
-
_f = [{}];
|
|
2781
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2782
|
-
case 9:
|
|
2783
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2784
|
-
return [3, 13];
|
|
2785
|
-
case 10:
|
|
2786
|
-
_g = [{}];
|
|
2787
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2788
|
-
case 11:
|
|
2789
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2790
|
-
return [3, 13];
|
|
3002
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3003
|
+
case 3: throw _d.sent();
|
|
3004
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3005
|
+
case 5: throw _d.sent();
|
|
3006
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3007
|
+
case 7: throw _d.sent();
|
|
3008
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3009
|
+
case 9: throw _d.sent();
|
|
3010
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3011
|
+
case 11: throw _d.sent();
|
|
2791
3012
|
case 12:
|
|
2792
3013
|
parsedBody = parsedOutput.body;
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
response
|
|
2799
|
-
delete response.Message;
|
|
2800
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3014
|
+
response = new __BaseException({
|
|
3015
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3016
|
+
$fault: "client",
|
|
3017
|
+
$metadata: deserializeMetadata(output),
|
|
3018
|
+
});
|
|
3019
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2801
3020
|
}
|
|
2802
3021
|
});
|
|
2803
3022
|
}); };
|
|
2804
|
-
export var
|
|
3023
|
+
export var deserializeAws_restJson1GetWorkflowStepsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2805
3024
|
var contents, data, _a, _b;
|
|
2806
3025
|
return __generator(this, function (_c) {
|
|
2807
3026
|
switch (_c.label) {
|
|
2808
3027
|
case 0:
|
|
2809
3028
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2810
|
-
return [2,
|
|
3029
|
+
return [2, deserializeAws_restJson1GetWorkflowStepsCommandError(output, context)];
|
|
2811
3030
|
}
|
|
2812
3031
|
contents = {
|
|
2813
3032
|
$metadata: deserializeMetadata(output),
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
SourceName: undefined,
|
|
2819
|
-
SourceObject: undefined,
|
|
2820
|
-
TemplateId: undefined,
|
|
3033
|
+
Items: undefined,
|
|
3034
|
+
NextToken: undefined,
|
|
3035
|
+
WorkflowId: undefined,
|
|
3036
|
+
WorkflowType: undefined,
|
|
2821
3037
|
};
|
|
2822
3038
|
_a = __expectNonNull;
|
|
2823
3039
|
_b = __expectObject;
|
|
2824
3040
|
return [4, parseBody(output.body, context)];
|
|
2825
3041
|
case 1:
|
|
2826
3042
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2827
|
-
if (data.
|
|
2828
|
-
contents.
|
|
2829
|
-
}
|
|
2830
|
-
if (data.Fields !== undefined && data.Fields !== null) {
|
|
2831
|
-
contents.Fields = deserializeAws_restJson1FieldMap(data.Fields, context);
|
|
2832
|
-
}
|
|
2833
|
-
if (data.Keys !== undefined && data.Keys !== null) {
|
|
2834
|
-
contents.Keys = deserializeAws_restJson1KeyMap(data.Keys, context);
|
|
2835
|
-
}
|
|
2836
|
-
if (data.SourceLastUpdatedTimestampFormat !== undefined && data.SourceLastUpdatedTimestampFormat !== null) {
|
|
2837
|
-
contents.SourceLastUpdatedTimestampFormat = __expectString(data.SourceLastUpdatedTimestampFormat);
|
|
3043
|
+
if (data.Items !== undefined && data.Items !== null) {
|
|
3044
|
+
contents.Items = deserializeAws_restJson1WorkflowStepsList(data.Items, context);
|
|
2838
3045
|
}
|
|
2839
|
-
if (data.
|
|
2840
|
-
contents.
|
|
3046
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3047
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
2841
3048
|
}
|
|
2842
|
-
if (data.
|
|
2843
|
-
contents.
|
|
3049
|
+
if (data.WorkflowId !== undefined && data.WorkflowId !== null) {
|
|
3050
|
+
contents.WorkflowId = __expectString(data.WorkflowId);
|
|
2844
3051
|
}
|
|
2845
|
-
if (data.
|
|
2846
|
-
contents.
|
|
3052
|
+
if (data.WorkflowType !== undefined && data.WorkflowType !== null) {
|
|
3053
|
+
contents.WorkflowType = __expectString(data.WorkflowType);
|
|
2847
3054
|
}
|
|
2848
3055
|
return [2, Promise.resolve(contents)];
|
|
2849
3056
|
}
|
|
2850
3057
|
});
|
|
2851
3058
|
}); };
|
|
2852
|
-
var
|
|
2853
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2854
|
-
var
|
|
2855
|
-
return __generator(this, function (
|
|
2856
|
-
switch (
|
|
3059
|
+
var deserializeAws_restJson1GetWorkflowStepsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3060
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3061
|
+
var _c;
|
|
3062
|
+
return __generator(this, function (_d) {
|
|
3063
|
+
switch (_d.label) {
|
|
2857
3064
|
case 0:
|
|
2858
3065
|
_a = [__assign({}, output)];
|
|
2859
|
-
|
|
3066
|
+
_c = {};
|
|
2860
3067
|
return [4, parseBody(output.body, context)];
|
|
2861
3068
|
case 1:
|
|
2862
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3069
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2863
3070
|
errorCode = "UnknownError";
|
|
2864
3071
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2865
3072
|
_b = errorCode;
|
|
@@ -2876,46 +3083,24 @@ var deserializeAws_restJson1GetProfileObjectTypeTemplateCommandError = function
|
|
|
2876
3083
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
2877
3084
|
}
|
|
2878
3085
|
return [3, 12];
|
|
2879
|
-
case 2:
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
case
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
case 4
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
case
|
|
2889
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2890
|
-
return [3, 13];
|
|
2891
|
-
case 6:
|
|
2892
|
-
_e = [{}];
|
|
2893
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2894
|
-
case 7:
|
|
2895
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2896
|
-
return [3, 13];
|
|
2897
|
-
case 8:
|
|
2898
|
-
_f = [{}];
|
|
2899
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2900
|
-
case 9:
|
|
2901
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2902
|
-
return [3, 13];
|
|
2903
|
-
case 10:
|
|
2904
|
-
_g = [{}];
|
|
2905
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2906
|
-
case 11:
|
|
2907
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2908
|
-
return [3, 13];
|
|
3086
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3087
|
+
case 3: throw _d.sent();
|
|
3088
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3089
|
+
case 5: throw _d.sent();
|
|
3090
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3091
|
+
case 7: throw _d.sent();
|
|
3092
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3093
|
+
case 9: throw _d.sent();
|
|
3094
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3095
|
+
case 11: throw _d.sent();
|
|
2909
3096
|
case 12:
|
|
2910
3097
|
parsedBody = parsedOutput.body;
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
response
|
|
2917
|
-
delete response.Message;
|
|
2918
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3098
|
+
response = new __BaseException({
|
|
3099
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3100
|
+
$fault: "client",
|
|
3101
|
+
$metadata: deserializeMetadata(output),
|
|
3102
|
+
});
|
|
3103
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2919
3104
|
}
|
|
2920
3105
|
});
|
|
2921
3106
|
}); };
|
|
@@ -2948,16 +3133,16 @@ export var deserializeAws_restJson1ListAccountIntegrationsCommand = function (ou
|
|
|
2948
3133
|
});
|
|
2949
3134
|
}); };
|
|
2950
3135
|
var deserializeAws_restJson1ListAccountIntegrationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2951
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2952
|
-
var
|
|
2953
|
-
return __generator(this, function (
|
|
2954
|
-
switch (
|
|
3136
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3137
|
+
var _c;
|
|
3138
|
+
return __generator(this, function (_d) {
|
|
3139
|
+
switch (_d.label) {
|
|
2955
3140
|
case 0:
|
|
2956
3141
|
_a = [__assign({}, output)];
|
|
2957
|
-
|
|
3142
|
+
_c = {};
|
|
2958
3143
|
return [4, parseBody(output.body, context)];
|
|
2959
3144
|
case 1:
|
|
2960
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3145
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2961
3146
|
errorCode = "UnknownError";
|
|
2962
3147
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2963
3148
|
_b = errorCode;
|
|
@@ -2974,46 +3159,24 @@ var deserializeAws_restJson1ListAccountIntegrationsCommandError = function (outp
|
|
|
2974
3159
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
2975
3160
|
}
|
|
2976
3161
|
return [3, 12];
|
|
2977
|
-
case 2:
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
case
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
case 4
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
case
|
|
2987
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2988
|
-
return [3, 13];
|
|
2989
|
-
case 6:
|
|
2990
|
-
_e = [{}];
|
|
2991
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2992
|
-
case 7:
|
|
2993
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2994
|
-
return [3, 13];
|
|
2995
|
-
case 8:
|
|
2996
|
-
_f = [{}];
|
|
2997
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2998
|
-
case 9:
|
|
2999
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3000
|
-
return [3, 13];
|
|
3001
|
-
case 10:
|
|
3002
|
-
_g = [{}];
|
|
3003
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3004
|
-
case 11:
|
|
3005
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3006
|
-
return [3, 13];
|
|
3162
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3163
|
+
case 3: throw _d.sent();
|
|
3164
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3165
|
+
case 5: throw _d.sent();
|
|
3166
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3167
|
+
case 7: throw _d.sent();
|
|
3168
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3169
|
+
case 9: throw _d.sent();
|
|
3170
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3171
|
+
case 11: throw _d.sent();
|
|
3007
3172
|
case 12:
|
|
3008
3173
|
parsedBody = parsedOutput.body;
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
response
|
|
3015
|
-
delete response.Message;
|
|
3016
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3174
|
+
response = new __BaseException({
|
|
3175
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3176
|
+
$fault: "client",
|
|
3177
|
+
$metadata: deserializeMetadata(output),
|
|
3178
|
+
});
|
|
3179
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3017
3180
|
}
|
|
3018
3181
|
});
|
|
3019
3182
|
}); };
|
|
@@ -3046,16 +3209,16 @@ export var deserializeAws_restJson1ListDomainsCommand = function (output, contex
|
|
|
3046
3209
|
});
|
|
3047
3210
|
}); };
|
|
3048
3211
|
var deserializeAws_restJson1ListDomainsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3049
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3050
|
-
var
|
|
3051
|
-
return __generator(this, function (
|
|
3052
|
-
switch (
|
|
3212
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3213
|
+
var _c;
|
|
3214
|
+
return __generator(this, function (_d) {
|
|
3215
|
+
switch (_d.label) {
|
|
3053
3216
|
case 0:
|
|
3054
3217
|
_a = [__assign({}, output)];
|
|
3055
|
-
|
|
3218
|
+
_c = {};
|
|
3056
3219
|
return [4, parseBody(output.body, context)];
|
|
3057
3220
|
case 1:
|
|
3058
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3221
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3059
3222
|
errorCode = "UnknownError";
|
|
3060
3223
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3061
3224
|
_b = errorCode;
|
|
@@ -3072,46 +3235,24 @@ var deserializeAws_restJson1ListDomainsCommandError = function (output, context)
|
|
|
3072
3235
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
3073
3236
|
}
|
|
3074
3237
|
return [3, 12];
|
|
3075
|
-
case 2:
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
case
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
case 4
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
case
|
|
3085
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3086
|
-
return [3, 13];
|
|
3087
|
-
case 6:
|
|
3088
|
-
_e = [{}];
|
|
3089
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3090
|
-
case 7:
|
|
3091
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3092
|
-
return [3, 13];
|
|
3093
|
-
case 8:
|
|
3094
|
-
_f = [{}];
|
|
3095
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3096
|
-
case 9:
|
|
3097
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3098
|
-
return [3, 13];
|
|
3099
|
-
case 10:
|
|
3100
|
-
_g = [{}];
|
|
3101
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3102
|
-
case 11:
|
|
3103
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3104
|
-
return [3, 13];
|
|
3238
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3239
|
+
case 3: throw _d.sent();
|
|
3240
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3241
|
+
case 5: throw _d.sent();
|
|
3242
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3243
|
+
case 7: throw _d.sent();
|
|
3244
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3245
|
+
case 9: throw _d.sent();
|
|
3246
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3247
|
+
case 11: throw _d.sent();
|
|
3105
3248
|
case 12:
|
|
3106
3249
|
parsedBody = parsedOutput.body;
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
response
|
|
3113
|
-
delete response.Message;
|
|
3114
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3250
|
+
response = new __BaseException({
|
|
3251
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3252
|
+
$fault: "client",
|
|
3253
|
+
$metadata: deserializeMetadata(output),
|
|
3254
|
+
});
|
|
3255
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3115
3256
|
}
|
|
3116
3257
|
});
|
|
3117
3258
|
}); };
|
|
@@ -3144,16 +3285,16 @@ export var deserializeAws_restJson1ListIdentityResolutionJobsCommand = function
|
|
|
3144
3285
|
});
|
|
3145
3286
|
}); };
|
|
3146
3287
|
var deserializeAws_restJson1ListIdentityResolutionJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3147
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3148
|
-
var
|
|
3149
|
-
return __generator(this, function (
|
|
3150
|
-
switch (
|
|
3288
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3289
|
+
var _c;
|
|
3290
|
+
return __generator(this, function (_d) {
|
|
3291
|
+
switch (_d.label) {
|
|
3151
3292
|
case 0:
|
|
3152
3293
|
_a = [__assign({}, output)];
|
|
3153
|
-
|
|
3294
|
+
_c = {};
|
|
3154
3295
|
return [4, parseBody(output.body, context)];
|
|
3155
3296
|
case 1:
|
|
3156
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3297
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3157
3298
|
errorCode = "UnknownError";
|
|
3158
3299
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3159
3300
|
_b = errorCode;
|
|
@@ -3170,46 +3311,24 @@ var deserializeAws_restJson1ListIdentityResolutionJobsCommandError = function (o
|
|
|
3170
3311
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
3171
3312
|
}
|
|
3172
3313
|
return [3, 12];
|
|
3173
|
-
case 2:
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
case
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
case 4
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
case
|
|
3183
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3184
|
-
return [3, 13];
|
|
3185
|
-
case 6:
|
|
3186
|
-
_e = [{}];
|
|
3187
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3188
|
-
case 7:
|
|
3189
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3190
|
-
return [3, 13];
|
|
3191
|
-
case 8:
|
|
3192
|
-
_f = [{}];
|
|
3193
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3194
|
-
case 9:
|
|
3195
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3196
|
-
return [3, 13];
|
|
3197
|
-
case 10:
|
|
3198
|
-
_g = [{}];
|
|
3199
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3200
|
-
case 11:
|
|
3201
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3202
|
-
return [3, 13];
|
|
3314
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3315
|
+
case 3: throw _d.sent();
|
|
3316
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3317
|
+
case 5: throw _d.sent();
|
|
3318
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3319
|
+
case 7: throw _d.sent();
|
|
3320
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3321
|
+
case 9: throw _d.sent();
|
|
3322
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3323
|
+
case 11: throw _d.sent();
|
|
3203
3324
|
case 12:
|
|
3204
3325
|
parsedBody = parsedOutput.body;
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
response
|
|
3211
|
-
delete response.Message;
|
|
3212
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3326
|
+
response = new __BaseException({
|
|
3327
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3328
|
+
$fault: "client",
|
|
3329
|
+
$metadata: deserializeMetadata(output),
|
|
3330
|
+
});
|
|
3331
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3213
3332
|
}
|
|
3214
3333
|
});
|
|
3215
3334
|
}); };
|
|
@@ -3242,16 +3361,16 @@ export var deserializeAws_restJson1ListIntegrationsCommand = function (output, c
|
|
|
3242
3361
|
});
|
|
3243
3362
|
}); };
|
|
3244
3363
|
var deserializeAws_restJson1ListIntegrationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3245
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3246
|
-
var
|
|
3247
|
-
return __generator(this, function (
|
|
3248
|
-
switch (
|
|
3364
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3365
|
+
var _c;
|
|
3366
|
+
return __generator(this, function (_d) {
|
|
3367
|
+
switch (_d.label) {
|
|
3249
3368
|
case 0:
|
|
3250
3369
|
_a = [__assign({}, output)];
|
|
3251
|
-
|
|
3370
|
+
_c = {};
|
|
3252
3371
|
return [4, parseBody(output.body, context)];
|
|
3253
3372
|
case 1:
|
|
3254
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3373
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3255
3374
|
errorCode = "UnknownError";
|
|
3256
3375
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3257
3376
|
_b = errorCode;
|
|
@@ -3268,46 +3387,24 @@ var deserializeAws_restJson1ListIntegrationsCommandError = function (output, con
|
|
|
3268
3387
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
3269
3388
|
}
|
|
3270
3389
|
return [3, 12];
|
|
3271
|
-
case 2:
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
case
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
case 4
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
case
|
|
3281
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3282
|
-
return [3, 13];
|
|
3283
|
-
case 6:
|
|
3284
|
-
_e = [{}];
|
|
3285
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3286
|
-
case 7:
|
|
3287
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3288
|
-
return [3, 13];
|
|
3289
|
-
case 8:
|
|
3290
|
-
_f = [{}];
|
|
3291
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3292
|
-
case 9:
|
|
3293
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3294
|
-
return [3, 13];
|
|
3295
|
-
case 10:
|
|
3296
|
-
_g = [{}];
|
|
3297
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3298
|
-
case 11:
|
|
3299
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3300
|
-
return [3, 13];
|
|
3390
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3391
|
+
case 3: throw _d.sent();
|
|
3392
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3393
|
+
case 5: throw _d.sent();
|
|
3394
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3395
|
+
case 7: throw _d.sent();
|
|
3396
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3397
|
+
case 9: throw _d.sent();
|
|
3398
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3399
|
+
case 11: throw _d.sent();
|
|
3301
3400
|
case 12:
|
|
3302
3401
|
parsedBody = parsedOutput.body;
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
response
|
|
3309
|
-
delete response.Message;
|
|
3310
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3402
|
+
response = new __BaseException({
|
|
3403
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3404
|
+
$fault: "client",
|
|
3405
|
+
$metadata: deserializeMetadata(output),
|
|
3406
|
+
});
|
|
3407
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3311
3408
|
}
|
|
3312
3409
|
});
|
|
3313
3410
|
}); };
|
|
@@ -3340,16 +3437,16 @@ export var deserializeAws_restJson1ListProfileObjectsCommand = function (output,
|
|
|
3340
3437
|
});
|
|
3341
3438
|
}); };
|
|
3342
3439
|
var deserializeAws_restJson1ListProfileObjectsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3343
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3344
|
-
var
|
|
3345
|
-
return __generator(this, function (
|
|
3346
|
-
switch (
|
|
3440
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3441
|
+
var _c;
|
|
3442
|
+
return __generator(this, function (_d) {
|
|
3443
|
+
switch (_d.label) {
|
|
3347
3444
|
case 0:
|
|
3348
3445
|
_a = [__assign({}, output)];
|
|
3349
|
-
|
|
3446
|
+
_c = {};
|
|
3350
3447
|
return [4, parseBody(output.body, context)];
|
|
3351
3448
|
case 1:
|
|
3352
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3449
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3353
3450
|
errorCode = "UnknownError";
|
|
3354
3451
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3355
3452
|
_b = errorCode;
|
|
@@ -3366,46 +3463,24 @@ var deserializeAws_restJson1ListProfileObjectsCommandError = function (output, c
|
|
|
3366
3463
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
3367
3464
|
}
|
|
3368
3465
|
return [3, 12];
|
|
3369
|
-
case 2:
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
case
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
case 4
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
case
|
|
3379
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3380
|
-
return [3, 13];
|
|
3381
|
-
case 6:
|
|
3382
|
-
_e = [{}];
|
|
3383
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3384
|
-
case 7:
|
|
3385
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3386
|
-
return [3, 13];
|
|
3387
|
-
case 8:
|
|
3388
|
-
_f = [{}];
|
|
3389
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3390
|
-
case 9:
|
|
3391
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3392
|
-
return [3, 13];
|
|
3393
|
-
case 10:
|
|
3394
|
-
_g = [{}];
|
|
3395
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3396
|
-
case 11:
|
|
3397
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3398
|
-
return [3, 13];
|
|
3466
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3467
|
+
case 3: throw _d.sent();
|
|
3468
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3469
|
+
case 5: throw _d.sent();
|
|
3470
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3471
|
+
case 7: throw _d.sent();
|
|
3472
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3473
|
+
case 9: throw _d.sent();
|
|
3474
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3475
|
+
case 11: throw _d.sent();
|
|
3399
3476
|
case 12:
|
|
3400
3477
|
parsedBody = parsedOutput.body;
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
response
|
|
3407
|
-
delete response.Message;
|
|
3408
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3478
|
+
response = new __BaseException({
|
|
3479
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3480
|
+
$fault: "client",
|
|
3481
|
+
$metadata: deserializeMetadata(output),
|
|
3482
|
+
});
|
|
3483
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3409
3484
|
}
|
|
3410
3485
|
});
|
|
3411
3486
|
}); };
|
|
@@ -3438,16 +3513,16 @@ export var deserializeAws_restJson1ListProfileObjectTypesCommand = function (out
|
|
|
3438
3513
|
});
|
|
3439
3514
|
}); };
|
|
3440
3515
|
var deserializeAws_restJson1ListProfileObjectTypesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3441
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3442
|
-
var
|
|
3443
|
-
return __generator(this, function (
|
|
3444
|
-
switch (
|
|
3516
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3517
|
+
var _c;
|
|
3518
|
+
return __generator(this, function (_d) {
|
|
3519
|
+
switch (_d.label) {
|
|
3445
3520
|
case 0:
|
|
3446
3521
|
_a = [__assign({}, output)];
|
|
3447
|
-
|
|
3522
|
+
_c = {};
|
|
3448
3523
|
return [4, parseBody(output.body, context)];
|
|
3449
3524
|
case 1:
|
|
3450
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3525
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3451
3526
|
errorCode = "UnknownError";
|
|
3452
3527
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3453
3528
|
_b = errorCode;
|
|
@@ -3464,46 +3539,24 @@ var deserializeAws_restJson1ListProfileObjectTypesCommandError = function (outpu
|
|
|
3464
3539
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
3465
3540
|
}
|
|
3466
3541
|
return [3, 12];
|
|
3467
|
-
case 2:
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
case
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
case 4
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
case
|
|
3477
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3478
|
-
return [3, 13];
|
|
3479
|
-
case 6:
|
|
3480
|
-
_e = [{}];
|
|
3481
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3482
|
-
case 7:
|
|
3483
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3484
|
-
return [3, 13];
|
|
3485
|
-
case 8:
|
|
3486
|
-
_f = [{}];
|
|
3487
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3488
|
-
case 9:
|
|
3489
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3490
|
-
return [3, 13];
|
|
3491
|
-
case 10:
|
|
3492
|
-
_g = [{}];
|
|
3493
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3494
|
-
case 11:
|
|
3495
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3496
|
-
return [3, 13];
|
|
3542
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3543
|
+
case 3: throw _d.sent();
|
|
3544
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3545
|
+
case 5: throw _d.sent();
|
|
3546
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3547
|
+
case 7: throw _d.sent();
|
|
3548
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3549
|
+
case 9: throw _d.sent();
|
|
3550
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3551
|
+
case 11: throw _d.sent();
|
|
3497
3552
|
case 12:
|
|
3498
3553
|
parsedBody = parsedOutput.body;
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
response
|
|
3505
|
-
delete response.Message;
|
|
3506
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3554
|
+
response = new __BaseException({
|
|
3555
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3556
|
+
$fault: "client",
|
|
3557
|
+
$metadata: deserializeMetadata(output),
|
|
3558
|
+
});
|
|
3559
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3507
3560
|
}
|
|
3508
3561
|
});
|
|
3509
3562
|
}); };
|
|
@@ -3536,16 +3589,16 @@ export var deserializeAws_restJson1ListProfileObjectTypeTemplatesCommand = funct
|
|
|
3536
3589
|
});
|
|
3537
3590
|
}); };
|
|
3538
3591
|
var deserializeAws_restJson1ListProfileObjectTypeTemplatesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3539
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3540
|
-
var
|
|
3541
|
-
return __generator(this, function (
|
|
3542
|
-
switch (
|
|
3592
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3593
|
+
var _c;
|
|
3594
|
+
return __generator(this, function (_d) {
|
|
3595
|
+
switch (_d.label) {
|
|
3543
3596
|
case 0:
|
|
3544
3597
|
_a = [__assign({}, output)];
|
|
3545
|
-
|
|
3598
|
+
_c = {};
|
|
3546
3599
|
return [4, parseBody(output.body, context)];
|
|
3547
3600
|
case 1:
|
|
3548
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3601
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3549
3602
|
errorCode = "UnknownError";
|
|
3550
3603
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3551
3604
|
_b = errorCode;
|
|
@@ -3562,46 +3615,24 @@ var deserializeAws_restJson1ListProfileObjectTypeTemplatesCommandError = functio
|
|
|
3562
3615
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
3563
3616
|
}
|
|
3564
3617
|
return [3, 12];
|
|
3565
|
-
case 2:
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
case
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
case 4
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
case
|
|
3575
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3576
|
-
return [3, 13];
|
|
3577
|
-
case 6:
|
|
3578
|
-
_e = [{}];
|
|
3579
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3580
|
-
case 7:
|
|
3581
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3582
|
-
return [3, 13];
|
|
3583
|
-
case 8:
|
|
3584
|
-
_f = [{}];
|
|
3585
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3586
|
-
case 9:
|
|
3587
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3588
|
-
return [3, 13];
|
|
3589
|
-
case 10:
|
|
3590
|
-
_g = [{}];
|
|
3591
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3592
|
-
case 11:
|
|
3593
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3594
|
-
return [3, 13];
|
|
3618
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3619
|
+
case 3: throw _d.sent();
|
|
3620
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3621
|
+
case 5: throw _d.sent();
|
|
3622
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3623
|
+
case 7: throw _d.sent();
|
|
3624
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3625
|
+
case 9: throw _d.sent();
|
|
3626
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3627
|
+
case 11: throw _d.sent();
|
|
3595
3628
|
case 12:
|
|
3596
3629
|
parsedBody = parsedOutput.body;
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
response
|
|
3603
|
-
delete response.Message;
|
|
3604
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3630
|
+
response = new __BaseException({
|
|
3631
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3632
|
+
$fault: "client",
|
|
3633
|
+
$metadata: deserializeMetadata(output),
|
|
3634
|
+
});
|
|
3635
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3605
3636
|
}
|
|
3606
3637
|
});
|
|
3607
3638
|
}); };
|
|
@@ -3630,16 +3661,16 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
3630
3661
|
});
|
|
3631
3662
|
}); };
|
|
3632
3663
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3633
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3634
|
-
var
|
|
3635
|
-
return __generator(this, function (
|
|
3636
|
-
switch (
|
|
3664
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3665
|
+
var _c;
|
|
3666
|
+
return __generator(this, function (_d) {
|
|
3667
|
+
switch (_d.label) {
|
|
3637
3668
|
case 0:
|
|
3638
3669
|
_a = [__assign({}, output)];
|
|
3639
|
-
|
|
3670
|
+
_c = {};
|
|
3640
3671
|
return [4, parseBody(output.body, context)];
|
|
3641
3672
|
case 1:
|
|
3642
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3673
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3643
3674
|
errorCode = "UnknownError";
|
|
3644
3675
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3645
3676
|
_b = errorCode;
|
|
@@ -3652,34 +3683,96 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
3652
3683
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException": return [3, 6];
|
|
3653
3684
|
}
|
|
3654
3685
|
return [3, 8];
|
|
3655
|
-
case 2:
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
case
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
case 4:
|
|
3662
|
-
_d = [{}];
|
|
3663
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3664
|
-
case 5:
|
|
3665
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3666
|
-
return [3, 9];
|
|
3667
|
-
case 6:
|
|
3668
|
-
_e = [{}];
|
|
3669
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3670
|
-
case 7:
|
|
3671
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3672
|
-
return [3, 9];
|
|
3686
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3687
|
+
case 3: throw _d.sent();
|
|
3688
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3689
|
+
case 5: throw _d.sent();
|
|
3690
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3691
|
+
case 7: throw _d.sent();
|
|
3673
3692
|
case 8:
|
|
3674
3693
|
parsedBody = parsedOutput.body;
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
response
|
|
3681
|
-
|
|
3682
|
-
|
|
3694
|
+
response = new __BaseException({
|
|
3695
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3696
|
+
$fault: "client",
|
|
3697
|
+
$metadata: deserializeMetadata(output),
|
|
3698
|
+
});
|
|
3699
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3700
|
+
}
|
|
3701
|
+
});
|
|
3702
|
+
}); };
|
|
3703
|
+
export var deserializeAws_restJson1ListWorkflowsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3704
|
+
var contents, data, _a, _b;
|
|
3705
|
+
return __generator(this, function (_c) {
|
|
3706
|
+
switch (_c.label) {
|
|
3707
|
+
case 0:
|
|
3708
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3709
|
+
return [2, deserializeAws_restJson1ListWorkflowsCommandError(output, context)];
|
|
3710
|
+
}
|
|
3711
|
+
contents = {
|
|
3712
|
+
$metadata: deserializeMetadata(output),
|
|
3713
|
+
Items: undefined,
|
|
3714
|
+
NextToken: undefined,
|
|
3715
|
+
};
|
|
3716
|
+
_a = __expectNonNull;
|
|
3717
|
+
_b = __expectObject;
|
|
3718
|
+
return [4, parseBody(output.body, context)];
|
|
3719
|
+
case 1:
|
|
3720
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3721
|
+
if (data.Items !== undefined && data.Items !== null) {
|
|
3722
|
+
contents.Items = deserializeAws_restJson1WorkflowList(data.Items, context);
|
|
3723
|
+
}
|
|
3724
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3725
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
3726
|
+
}
|
|
3727
|
+
return [2, Promise.resolve(contents)];
|
|
3728
|
+
}
|
|
3729
|
+
});
|
|
3730
|
+
}); };
|
|
3731
|
+
var deserializeAws_restJson1ListWorkflowsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3732
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3733
|
+
var _c;
|
|
3734
|
+
return __generator(this, function (_d) {
|
|
3735
|
+
switch (_d.label) {
|
|
3736
|
+
case 0:
|
|
3737
|
+
_a = [__assign({}, output)];
|
|
3738
|
+
_c = {};
|
|
3739
|
+
return [4, parseBody(output.body, context)];
|
|
3740
|
+
case 1:
|
|
3741
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3742
|
+
errorCode = "UnknownError";
|
|
3743
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3744
|
+
_b = errorCode;
|
|
3745
|
+
switch (_b) {
|
|
3746
|
+
case "AccessDeniedException": return [3, 2];
|
|
3747
|
+
case "com.amazonaws.customerprofiles#AccessDeniedException": return [3, 2];
|
|
3748
|
+
case "BadRequestException": return [3, 4];
|
|
3749
|
+
case "com.amazonaws.customerprofiles#BadRequestException": return [3, 4];
|
|
3750
|
+
case "InternalServerException": return [3, 6];
|
|
3751
|
+
case "com.amazonaws.customerprofiles#InternalServerException": return [3, 6];
|
|
3752
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
3753
|
+
case "com.amazonaws.customerprofiles#ResourceNotFoundException": return [3, 8];
|
|
3754
|
+
case "ThrottlingException": return [3, 10];
|
|
3755
|
+
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
3756
|
+
}
|
|
3757
|
+
return [3, 12];
|
|
3758
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3759
|
+
case 3: throw _d.sent();
|
|
3760
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3761
|
+
case 5: throw _d.sent();
|
|
3762
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3763
|
+
case 7: throw _d.sent();
|
|
3764
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3765
|
+
case 9: throw _d.sent();
|
|
3766
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3767
|
+
case 11: throw _d.sent();
|
|
3768
|
+
case 12:
|
|
3769
|
+
parsedBody = parsedOutput.body;
|
|
3770
|
+
response = new __BaseException({
|
|
3771
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3772
|
+
$fault: "client",
|
|
3773
|
+
$metadata: deserializeMetadata(output),
|
|
3774
|
+
});
|
|
3775
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3683
3776
|
}
|
|
3684
3777
|
});
|
|
3685
3778
|
}); };
|
|
@@ -3708,16 +3801,16 @@ export var deserializeAws_restJson1MergeProfilesCommand = function (output, cont
|
|
|
3708
3801
|
});
|
|
3709
3802
|
}); };
|
|
3710
3803
|
var deserializeAws_restJson1MergeProfilesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3711
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3712
|
-
var
|
|
3713
|
-
return __generator(this, function (
|
|
3714
|
-
switch (
|
|
3804
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3805
|
+
var _c;
|
|
3806
|
+
return __generator(this, function (_d) {
|
|
3807
|
+
switch (_d.label) {
|
|
3715
3808
|
case 0:
|
|
3716
3809
|
_a = [__assign({}, output)];
|
|
3717
|
-
|
|
3810
|
+
_c = {};
|
|
3718
3811
|
return [4, parseBody(output.body, context)];
|
|
3719
3812
|
case 1:
|
|
3720
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3813
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3721
3814
|
errorCode = "UnknownError";
|
|
3722
3815
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3723
3816
|
_b = errorCode;
|
|
@@ -3732,40 +3825,22 @@ var deserializeAws_restJson1MergeProfilesCommandError = function (output, contex
|
|
|
3732
3825
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 8];
|
|
3733
3826
|
}
|
|
3734
3827
|
return [3, 10];
|
|
3735
|
-
case 2:
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
case
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
case 4
|
|
3742
|
-
|
|
3743
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3744
|
-
case 5:
|
|
3745
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3746
|
-
return [3, 11];
|
|
3747
|
-
case 6:
|
|
3748
|
-
_e = [{}];
|
|
3749
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3750
|
-
case 7:
|
|
3751
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3752
|
-
return [3, 11];
|
|
3753
|
-
case 8:
|
|
3754
|
-
_f = [{}];
|
|
3755
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3756
|
-
case 9:
|
|
3757
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3758
|
-
return [3, 11];
|
|
3828
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3829
|
+
case 3: throw _d.sent();
|
|
3830
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3831
|
+
case 5: throw _d.sent();
|
|
3832
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3833
|
+
case 7: throw _d.sent();
|
|
3834
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3835
|
+
case 9: throw _d.sent();
|
|
3759
3836
|
case 10:
|
|
3760
3837
|
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))];
|
|
3838
|
+
response = new __BaseException({
|
|
3839
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3840
|
+
$fault: "client",
|
|
3841
|
+
$metadata: deserializeMetadata(output),
|
|
3842
|
+
});
|
|
3843
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3769
3844
|
}
|
|
3770
3845
|
});
|
|
3771
3846
|
}); };
|
|
@@ -3786,6 +3861,7 @@ export var deserializeAws_restJson1PutIntegrationCommand = function (output, con
|
|
|
3786
3861
|
ObjectTypeNames: undefined,
|
|
3787
3862
|
Tags: undefined,
|
|
3788
3863
|
Uri: undefined,
|
|
3864
|
+
WorkflowId: undefined,
|
|
3789
3865
|
};
|
|
3790
3866
|
_a = __expectNonNull;
|
|
3791
3867
|
_b = __expectObject;
|
|
@@ -3813,21 +3889,24 @@ export var deserializeAws_restJson1PutIntegrationCommand = function (output, con
|
|
|
3813
3889
|
if (data.Uri !== undefined && data.Uri !== null) {
|
|
3814
3890
|
contents.Uri = __expectString(data.Uri);
|
|
3815
3891
|
}
|
|
3892
|
+
if (data.WorkflowId !== undefined && data.WorkflowId !== null) {
|
|
3893
|
+
contents.WorkflowId = __expectString(data.WorkflowId);
|
|
3894
|
+
}
|
|
3816
3895
|
return [2, Promise.resolve(contents)];
|
|
3817
3896
|
}
|
|
3818
3897
|
});
|
|
3819
3898
|
}); };
|
|
3820
3899
|
var deserializeAws_restJson1PutIntegrationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3821
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3822
|
-
var
|
|
3823
|
-
return __generator(this, function (
|
|
3824
|
-
switch (
|
|
3900
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3901
|
+
var _c;
|
|
3902
|
+
return __generator(this, function (_d) {
|
|
3903
|
+
switch (_d.label) {
|
|
3825
3904
|
case 0:
|
|
3826
3905
|
_a = [__assign({}, output)];
|
|
3827
|
-
|
|
3906
|
+
_c = {};
|
|
3828
3907
|
return [4, parseBody(output.body, context)];
|
|
3829
3908
|
case 1:
|
|
3830
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3909
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3831
3910
|
errorCode = "UnknownError";
|
|
3832
3911
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3833
3912
|
_b = errorCode;
|
|
@@ -3844,46 +3923,24 @@ var deserializeAws_restJson1PutIntegrationCommandError = function (output, conte
|
|
|
3844
3923
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
3845
3924
|
}
|
|
3846
3925
|
return [3, 12];
|
|
3847
|
-
case 2:
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
case
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
case 4
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
case
|
|
3857
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3858
|
-
return [3, 13];
|
|
3859
|
-
case 6:
|
|
3860
|
-
_e = [{}];
|
|
3861
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3862
|
-
case 7:
|
|
3863
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3864
|
-
return [3, 13];
|
|
3865
|
-
case 8:
|
|
3866
|
-
_f = [{}];
|
|
3867
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3868
|
-
case 9:
|
|
3869
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3870
|
-
return [3, 13];
|
|
3871
|
-
case 10:
|
|
3872
|
-
_g = [{}];
|
|
3873
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3874
|
-
case 11:
|
|
3875
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3876
|
-
return [3, 13];
|
|
3926
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3927
|
+
case 3: throw _d.sent();
|
|
3928
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3929
|
+
case 5: throw _d.sent();
|
|
3930
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3931
|
+
case 7: throw _d.sent();
|
|
3932
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3933
|
+
case 9: throw _d.sent();
|
|
3934
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3935
|
+
case 11: throw _d.sent();
|
|
3877
3936
|
case 12:
|
|
3878
3937
|
parsedBody = parsedOutput.body;
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
response
|
|
3885
|
-
delete response.Message;
|
|
3886
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3938
|
+
response = new __BaseException({
|
|
3939
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3940
|
+
$fault: "client",
|
|
3941
|
+
$metadata: deserializeMetadata(output),
|
|
3942
|
+
});
|
|
3943
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3887
3944
|
}
|
|
3888
3945
|
});
|
|
3889
3946
|
}); };
|
|
@@ -3912,16 +3969,16 @@ export var deserializeAws_restJson1PutProfileObjectCommand = function (output, c
|
|
|
3912
3969
|
});
|
|
3913
3970
|
}); };
|
|
3914
3971
|
var deserializeAws_restJson1PutProfileObjectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3915
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3916
|
-
var
|
|
3917
|
-
return __generator(this, function (
|
|
3918
|
-
switch (
|
|
3972
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3973
|
+
var _c;
|
|
3974
|
+
return __generator(this, function (_d) {
|
|
3975
|
+
switch (_d.label) {
|
|
3919
3976
|
case 0:
|
|
3920
3977
|
_a = [__assign({}, output)];
|
|
3921
|
-
|
|
3978
|
+
_c = {};
|
|
3922
3979
|
return [4, parseBody(output.body, context)];
|
|
3923
3980
|
case 1:
|
|
3924
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3981
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3925
3982
|
errorCode = "UnknownError";
|
|
3926
3983
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3927
3984
|
_b = errorCode;
|
|
@@ -3938,46 +3995,24 @@ var deserializeAws_restJson1PutProfileObjectCommandError = function (output, con
|
|
|
3938
3995
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
3939
3996
|
}
|
|
3940
3997
|
return [3, 12];
|
|
3941
|
-
case 2:
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
case
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
case 4
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
case
|
|
3951
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3952
|
-
return [3, 13];
|
|
3953
|
-
case 6:
|
|
3954
|
-
_e = [{}];
|
|
3955
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3956
|
-
case 7:
|
|
3957
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3958
|
-
return [3, 13];
|
|
3959
|
-
case 8:
|
|
3960
|
-
_f = [{}];
|
|
3961
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3962
|
-
case 9:
|
|
3963
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3964
|
-
return [3, 13];
|
|
3965
|
-
case 10:
|
|
3966
|
-
_g = [{}];
|
|
3967
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3968
|
-
case 11:
|
|
3969
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3970
|
-
return [3, 13];
|
|
3998
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3999
|
+
case 3: throw _d.sent();
|
|
4000
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
4001
|
+
case 5: throw _d.sent();
|
|
4002
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
4003
|
+
case 7: throw _d.sent();
|
|
4004
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4005
|
+
case 9: throw _d.sent();
|
|
4006
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
4007
|
+
case 11: throw _d.sent();
|
|
3971
4008
|
case 12:
|
|
3972
4009
|
parsedBody = parsedOutput.body;
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
response
|
|
3979
|
-
delete response.Message;
|
|
3980
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4010
|
+
response = new __BaseException({
|
|
4011
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4012
|
+
$fault: "client",
|
|
4013
|
+
$metadata: deserializeMetadata(output),
|
|
4014
|
+
});
|
|
4015
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3981
4016
|
}
|
|
3982
4017
|
});
|
|
3983
4018
|
}); };
|
|
@@ -4050,16 +4085,16 @@ export var deserializeAws_restJson1PutProfileObjectTypeCommand = function (outpu
|
|
|
4050
4085
|
});
|
|
4051
4086
|
}); };
|
|
4052
4087
|
var deserializeAws_restJson1PutProfileObjectTypeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4053
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4054
|
-
var
|
|
4055
|
-
return __generator(this, function (
|
|
4056
|
-
switch (
|
|
4088
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4089
|
+
var _c;
|
|
4090
|
+
return __generator(this, function (_d) {
|
|
4091
|
+
switch (_d.label) {
|
|
4057
4092
|
case 0:
|
|
4058
4093
|
_a = [__assign({}, output)];
|
|
4059
|
-
|
|
4094
|
+
_c = {};
|
|
4060
4095
|
return [4, parseBody(output.body, context)];
|
|
4061
4096
|
case 1:
|
|
4062
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
4097
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4063
4098
|
errorCode = "UnknownError";
|
|
4064
4099
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4065
4100
|
_b = errorCode;
|
|
@@ -4076,46 +4111,24 @@ var deserializeAws_restJson1PutProfileObjectTypeCommandError = function (output,
|
|
|
4076
4111
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
4077
4112
|
}
|
|
4078
4113
|
return [3, 12];
|
|
4079
|
-
case 2:
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
case
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
case 4
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
case
|
|
4089
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4090
|
-
return [3, 13];
|
|
4091
|
-
case 6:
|
|
4092
|
-
_e = [{}];
|
|
4093
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
4094
|
-
case 7:
|
|
4095
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4096
|
-
return [3, 13];
|
|
4097
|
-
case 8:
|
|
4098
|
-
_f = [{}];
|
|
4099
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4100
|
-
case 9:
|
|
4101
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4102
|
-
return [3, 13];
|
|
4103
|
-
case 10:
|
|
4104
|
-
_g = [{}];
|
|
4105
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
4106
|
-
case 11:
|
|
4107
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4108
|
-
return [3, 13];
|
|
4114
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
4115
|
+
case 3: throw _d.sent();
|
|
4116
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
4117
|
+
case 5: throw _d.sent();
|
|
4118
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
4119
|
+
case 7: throw _d.sent();
|
|
4120
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4121
|
+
case 9: throw _d.sent();
|
|
4122
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
4123
|
+
case 11: throw _d.sent();
|
|
4109
4124
|
case 12:
|
|
4110
4125
|
parsedBody = parsedOutput.body;
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
response
|
|
4117
|
-
delete response.Message;
|
|
4118
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4126
|
+
response = new __BaseException({
|
|
4127
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4128
|
+
$fault: "client",
|
|
4129
|
+
$metadata: deserializeMetadata(output),
|
|
4130
|
+
});
|
|
4131
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4119
4132
|
}
|
|
4120
4133
|
});
|
|
4121
4134
|
}); };
|
|
@@ -4148,16 +4161,16 @@ export var deserializeAws_restJson1SearchProfilesCommand = function (output, con
|
|
|
4148
4161
|
});
|
|
4149
4162
|
}); };
|
|
4150
4163
|
var deserializeAws_restJson1SearchProfilesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4151
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4152
|
-
var
|
|
4153
|
-
return __generator(this, function (
|
|
4154
|
-
switch (
|
|
4164
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4165
|
+
var _c;
|
|
4166
|
+
return __generator(this, function (_d) {
|
|
4167
|
+
switch (_d.label) {
|
|
4155
4168
|
case 0:
|
|
4156
4169
|
_a = [__assign({}, output)];
|
|
4157
|
-
|
|
4170
|
+
_c = {};
|
|
4158
4171
|
return [4, parseBody(output.body, context)];
|
|
4159
4172
|
case 1:
|
|
4160
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
4173
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4161
4174
|
errorCode = "UnknownError";
|
|
4162
4175
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4163
4176
|
_b = errorCode;
|
|
@@ -4174,46 +4187,24 @@ var deserializeAws_restJson1SearchProfilesCommandError = function (output, conte
|
|
|
4174
4187
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
4175
4188
|
}
|
|
4176
4189
|
return [3, 12];
|
|
4177
|
-
case 2:
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
case
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
case 4
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
case
|
|
4187
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4188
|
-
return [3, 13];
|
|
4189
|
-
case 6:
|
|
4190
|
-
_e = [{}];
|
|
4191
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
4192
|
-
case 7:
|
|
4193
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4194
|
-
return [3, 13];
|
|
4195
|
-
case 8:
|
|
4196
|
-
_f = [{}];
|
|
4197
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4198
|
-
case 9:
|
|
4199
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4200
|
-
return [3, 13];
|
|
4201
|
-
case 10:
|
|
4202
|
-
_g = [{}];
|
|
4203
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
4204
|
-
case 11:
|
|
4205
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4206
|
-
return [3, 13];
|
|
4190
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
4191
|
+
case 3: throw _d.sent();
|
|
4192
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
4193
|
+
case 5: throw _d.sent();
|
|
4194
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
4195
|
+
case 7: throw _d.sent();
|
|
4196
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4197
|
+
case 9: throw _d.sent();
|
|
4198
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
4199
|
+
case 11: throw _d.sent();
|
|
4207
4200
|
case 12:
|
|
4208
4201
|
parsedBody = parsedOutput.body;
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
response
|
|
4215
|
-
delete response.Message;
|
|
4216
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4202
|
+
response = new __BaseException({
|
|
4203
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4204
|
+
$fault: "client",
|
|
4205
|
+
$metadata: deserializeMetadata(output),
|
|
4206
|
+
});
|
|
4207
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4217
4208
|
}
|
|
4218
4209
|
});
|
|
4219
4210
|
}); };
|
|
@@ -4236,16 +4227,16 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
4236
4227
|
});
|
|
4237
4228
|
}); };
|
|
4238
4229
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4239
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4240
|
-
var
|
|
4241
|
-
return __generator(this, function (
|
|
4242
|
-
switch (
|
|
4230
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4231
|
+
var _c;
|
|
4232
|
+
return __generator(this, function (_d) {
|
|
4233
|
+
switch (_d.label) {
|
|
4243
4234
|
case 0:
|
|
4244
4235
|
_a = [__assign({}, output)];
|
|
4245
|
-
|
|
4236
|
+
_c = {};
|
|
4246
4237
|
return [4, parseBody(output.body, context)];
|
|
4247
4238
|
case 1:
|
|
4248
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
4239
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4249
4240
|
errorCode = "UnknownError";
|
|
4250
4241
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4251
4242
|
_b = errorCode;
|
|
@@ -4258,34 +4249,20 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
4258
4249
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException": return [3, 6];
|
|
4259
4250
|
}
|
|
4260
4251
|
return [3, 8];
|
|
4261
|
-
case 2:
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
case
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
case 4:
|
|
4268
|
-
_d = [{}];
|
|
4269
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
4270
|
-
case 5:
|
|
4271
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4272
|
-
return [3, 9];
|
|
4273
|
-
case 6:
|
|
4274
|
-
_e = [{}];
|
|
4275
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4276
|
-
case 7:
|
|
4277
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4278
|
-
return [3, 9];
|
|
4252
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
4253
|
+
case 3: throw _d.sent();
|
|
4254
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
4255
|
+
case 5: throw _d.sent();
|
|
4256
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4257
|
+
case 7: throw _d.sent();
|
|
4279
4258
|
case 8:
|
|
4280
4259
|
parsedBody = parsedOutput.body;
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
response
|
|
4287
|
-
delete response.Message;
|
|
4288
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4260
|
+
response = new __BaseException({
|
|
4261
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4262
|
+
$fault: "client",
|
|
4263
|
+
$metadata: deserializeMetadata(output),
|
|
4264
|
+
});
|
|
4265
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4289
4266
|
}
|
|
4290
4267
|
});
|
|
4291
4268
|
}); };
|
|
@@ -4308,16 +4285,16 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
4308
4285
|
});
|
|
4309
4286
|
}); };
|
|
4310
4287
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4311
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4312
|
-
var
|
|
4313
|
-
return __generator(this, function (
|
|
4314
|
-
switch (
|
|
4288
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4289
|
+
var _c;
|
|
4290
|
+
return __generator(this, function (_d) {
|
|
4291
|
+
switch (_d.label) {
|
|
4315
4292
|
case 0:
|
|
4316
4293
|
_a = [__assign({}, output)];
|
|
4317
|
-
|
|
4294
|
+
_c = {};
|
|
4318
4295
|
return [4, parseBody(output.body, context)];
|
|
4319
4296
|
case 1:
|
|
4320
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
4297
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4321
4298
|
errorCode = "UnknownError";
|
|
4322
4299
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4323
4300
|
_b = errorCode;
|
|
@@ -4330,34 +4307,20 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
4330
4307
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException": return [3, 6];
|
|
4331
4308
|
}
|
|
4332
4309
|
return [3, 8];
|
|
4333
|
-
case 2:
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
case
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
case 4:
|
|
4340
|
-
_d = [{}];
|
|
4341
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
4342
|
-
case 5:
|
|
4343
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4344
|
-
return [3, 9];
|
|
4345
|
-
case 6:
|
|
4346
|
-
_e = [{}];
|
|
4347
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4348
|
-
case 7:
|
|
4349
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4350
|
-
return [3, 9];
|
|
4310
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
4311
|
+
case 3: throw _d.sent();
|
|
4312
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
4313
|
+
case 5: throw _d.sent();
|
|
4314
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4315
|
+
case 7: throw _d.sent();
|
|
4351
4316
|
case 8:
|
|
4352
4317
|
parsedBody = parsedOutput.body;
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
response
|
|
4359
|
-
delete response.Message;
|
|
4360
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4318
|
+
response = new __BaseException({
|
|
4319
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4320
|
+
$fault: "client",
|
|
4321
|
+
$metadata: deserializeMetadata(output),
|
|
4322
|
+
});
|
|
4323
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4361
4324
|
}
|
|
4362
4325
|
});
|
|
4363
4326
|
}); };
|
|
@@ -4414,16 +4377,16 @@ export var deserializeAws_restJson1UpdateDomainCommand = function (output, conte
|
|
|
4414
4377
|
});
|
|
4415
4378
|
}); };
|
|
4416
4379
|
var deserializeAws_restJson1UpdateDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4417
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4418
|
-
var
|
|
4419
|
-
return __generator(this, function (
|
|
4420
|
-
switch (
|
|
4380
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4381
|
+
var _c;
|
|
4382
|
+
return __generator(this, function (_d) {
|
|
4383
|
+
switch (_d.label) {
|
|
4421
4384
|
case 0:
|
|
4422
4385
|
_a = [__assign({}, output)];
|
|
4423
|
-
|
|
4386
|
+
_c = {};
|
|
4424
4387
|
return [4, parseBody(output.body, context)];
|
|
4425
4388
|
case 1:
|
|
4426
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
4389
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4427
4390
|
errorCode = "UnknownError";
|
|
4428
4391
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4429
4392
|
_b = errorCode;
|
|
@@ -4440,46 +4403,24 @@ var deserializeAws_restJson1UpdateDomainCommandError = function (output, context
|
|
|
4440
4403
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
4441
4404
|
}
|
|
4442
4405
|
return [3, 12];
|
|
4443
|
-
case 2:
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
case
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
case 4
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
case
|
|
4453
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4454
|
-
return [3, 13];
|
|
4455
|
-
case 6:
|
|
4456
|
-
_e = [{}];
|
|
4457
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
4458
|
-
case 7:
|
|
4459
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4460
|
-
return [3, 13];
|
|
4461
|
-
case 8:
|
|
4462
|
-
_f = [{}];
|
|
4463
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4464
|
-
case 9:
|
|
4465
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4466
|
-
return [3, 13];
|
|
4467
|
-
case 10:
|
|
4468
|
-
_g = [{}];
|
|
4469
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
4470
|
-
case 11:
|
|
4471
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4472
|
-
return [3, 13];
|
|
4406
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
4407
|
+
case 3: throw _d.sent();
|
|
4408
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
4409
|
+
case 5: throw _d.sent();
|
|
4410
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
4411
|
+
case 7: throw _d.sent();
|
|
4412
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4413
|
+
case 9: throw _d.sent();
|
|
4414
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
4415
|
+
case 11: throw _d.sent();
|
|
4473
4416
|
case 12:
|
|
4474
4417
|
parsedBody = parsedOutput.body;
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
response
|
|
4481
|
-
delete response.Message;
|
|
4482
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4418
|
+
response = new __BaseException({
|
|
4419
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4420
|
+
$fault: "client",
|
|
4421
|
+
$metadata: deserializeMetadata(output),
|
|
4422
|
+
});
|
|
4423
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4483
4424
|
}
|
|
4484
4425
|
});
|
|
4485
4426
|
}); };
|
|
@@ -4508,16 +4449,16 @@ export var deserializeAws_restJson1UpdateProfileCommand = function (output, cont
|
|
|
4508
4449
|
});
|
|
4509
4450
|
}); };
|
|
4510
4451
|
var deserializeAws_restJson1UpdateProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4511
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4512
|
-
var
|
|
4513
|
-
return __generator(this, function (
|
|
4514
|
-
switch (
|
|
4452
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4453
|
+
var _c;
|
|
4454
|
+
return __generator(this, function (_d) {
|
|
4455
|
+
switch (_d.label) {
|
|
4515
4456
|
case 0:
|
|
4516
4457
|
_a = [__assign({}, output)];
|
|
4517
|
-
|
|
4458
|
+
_c = {};
|
|
4518
4459
|
return [4, parseBody(output.body, context)];
|
|
4519
4460
|
case 1:
|
|
4520
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
4461
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4521
4462
|
errorCode = "UnknownError";
|
|
4522
4463
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4523
4464
|
_b = errorCode;
|
|
@@ -4534,132 +4475,97 @@ var deserializeAws_restJson1UpdateProfileCommandError = function (output, contex
|
|
|
4534
4475
|
case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
|
|
4535
4476
|
}
|
|
4536
4477
|
return [3, 12];
|
|
4537
|
-
case 2:
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
case
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
case 4
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
case
|
|
4547
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4548
|
-
return [3, 13];
|
|
4549
|
-
case 6:
|
|
4550
|
-
_e = [{}];
|
|
4551
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
4552
|
-
case 7:
|
|
4553
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4554
|
-
return [3, 13];
|
|
4555
|
-
case 8:
|
|
4556
|
-
_f = [{}];
|
|
4557
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4558
|
-
case 9:
|
|
4559
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4560
|
-
return [3, 13];
|
|
4561
|
-
case 10:
|
|
4562
|
-
_g = [{}];
|
|
4563
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
4564
|
-
case 11:
|
|
4565
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4566
|
-
return [3, 13];
|
|
4478
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
4479
|
+
case 3: throw _d.sent();
|
|
4480
|
+
case 4: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
4481
|
+
case 5: throw _d.sent();
|
|
4482
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
4483
|
+
case 7: throw _d.sent();
|
|
4484
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4485
|
+
case 9: throw _d.sent();
|
|
4486
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
4487
|
+
case 11: throw _d.sent();
|
|
4567
4488
|
case 12:
|
|
4568
4489
|
parsedBody = parsedOutput.body;
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
response
|
|
4575
|
-
delete response.Message;
|
|
4576
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4490
|
+
response = new __BaseException({
|
|
4491
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4492
|
+
$fault: "client",
|
|
4493
|
+
$metadata: deserializeMetadata(output),
|
|
4494
|
+
});
|
|
4495
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4577
4496
|
}
|
|
4578
4497
|
});
|
|
4579
4498
|
}); };
|
|
4580
4499
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4581
|
-
var contents, data;
|
|
4500
|
+
var contents, data, exception;
|
|
4582
4501
|
return __generator(this, function (_a) {
|
|
4583
|
-
contents = {
|
|
4584
|
-
name: "AccessDeniedException",
|
|
4585
|
-
$fault: "client",
|
|
4586
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4587
|
-
Message: undefined,
|
|
4588
|
-
};
|
|
4502
|
+
contents = {};
|
|
4589
4503
|
data = parsedOutput.body;
|
|
4590
4504
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4591
4505
|
contents.Message = __expectString(data.Message);
|
|
4592
4506
|
}
|
|
4593
|
-
|
|
4507
|
+
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
4508
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
4594
4509
|
});
|
|
4595
4510
|
}); };
|
|
4596
4511
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4597
|
-
var contents, data;
|
|
4512
|
+
var contents, data, exception;
|
|
4598
4513
|
return __generator(this, function (_a) {
|
|
4599
|
-
contents = {
|
|
4600
|
-
name: "BadRequestException",
|
|
4601
|
-
$fault: "client",
|
|
4602
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4603
|
-
Message: undefined,
|
|
4604
|
-
};
|
|
4514
|
+
contents = {};
|
|
4605
4515
|
data = parsedOutput.body;
|
|
4606
4516
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4607
4517
|
contents.Message = __expectString(data.Message);
|
|
4608
4518
|
}
|
|
4609
|
-
|
|
4519
|
+
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
4520
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
4610
4521
|
});
|
|
4611
4522
|
}); };
|
|
4612
4523
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4613
|
-
var contents, data;
|
|
4524
|
+
var contents, data, exception;
|
|
4614
4525
|
return __generator(this, function (_a) {
|
|
4615
|
-
contents = {
|
|
4616
|
-
name: "InternalServerException",
|
|
4617
|
-
$fault: "server",
|
|
4618
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4619
|
-
Message: undefined,
|
|
4620
|
-
};
|
|
4526
|
+
contents = {};
|
|
4621
4527
|
data = parsedOutput.body;
|
|
4622
4528
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4623
4529
|
contents.Message = __expectString(data.Message);
|
|
4624
4530
|
}
|
|
4625
|
-
|
|
4531
|
+
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
4532
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
4626
4533
|
});
|
|
4627
4534
|
}); };
|
|
4628
4535
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4629
|
-
var contents, data;
|
|
4536
|
+
var contents, data, exception;
|
|
4630
4537
|
return __generator(this, function (_a) {
|
|
4631
|
-
contents = {
|
|
4632
|
-
name: "ResourceNotFoundException",
|
|
4633
|
-
$fault: "client",
|
|
4634
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4635
|
-
Message: undefined,
|
|
4636
|
-
};
|
|
4538
|
+
contents = {};
|
|
4637
4539
|
data = parsedOutput.body;
|
|
4638
4540
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4639
4541
|
contents.Message = __expectString(data.Message);
|
|
4640
4542
|
}
|
|
4641
|
-
|
|
4543
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
4544
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
4642
4545
|
});
|
|
4643
4546
|
}); };
|
|
4644
4547
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4645
|
-
var contents, data;
|
|
4548
|
+
var contents, data, exception;
|
|
4646
4549
|
return __generator(this, function (_a) {
|
|
4647
|
-
contents = {
|
|
4648
|
-
name: "ThrottlingException",
|
|
4649
|
-
$fault: "client",
|
|
4650
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4651
|
-
Message: undefined,
|
|
4652
|
-
};
|
|
4550
|
+
contents = {};
|
|
4653
4551
|
data = parsedOutput.body;
|
|
4654
4552
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4655
4553
|
contents.Message = __expectString(data.Message);
|
|
4656
4554
|
}
|
|
4657
|
-
|
|
4555
|
+
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
4556
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
4658
4557
|
});
|
|
4659
4558
|
}); };
|
|
4660
4559
|
var serializeAws_restJson1Address = function (input, context) {
|
|
4661
4560
|
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Address1 !== undefined && input.Address1 !== null && { Address1: input.Address1 })), (input.Address2 !== undefined && input.Address2 !== null && { Address2: input.Address2 })), (input.Address3 !== undefined && input.Address3 !== null && { Address3: input.Address3 })), (input.Address4 !== undefined && input.Address4 !== null && { Address4: input.Address4 })), (input.City !== undefined && input.City !== null && { City: input.City })), (input.Country !== undefined && input.Country !== null && { Country: input.Country })), (input.County !== undefined && input.County !== null && { County: input.County })), (input.PostalCode !== undefined && input.PostalCode !== null && { PostalCode: input.PostalCode })), (input.Province !== undefined && input.Province !== null && { Province: input.Province })), (input.State !== undefined && input.State !== null && { State: input.State }));
|
|
4662
4561
|
};
|
|
4562
|
+
var serializeAws_restJson1AppflowIntegration = function (input, context) {
|
|
4563
|
+
return __assign(__assign({}, (input.Batches !== undefined &&
|
|
4564
|
+
input.Batches !== null && { Batches: serializeAws_restJson1Batches(input.Batches, context) })), (input.FlowDefinition !== undefined &&
|
|
4565
|
+
input.FlowDefinition !== null && {
|
|
4566
|
+
FlowDefinition: serializeAws_restJson1FlowDefinition(input.FlowDefinition, context),
|
|
4567
|
+
}));
|
|
4568
|
+
};
|
|
4663
4569
|
var serializeAws_restJson1Attributes = function (input, context) {
|
|
4664
4570
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
4665
4571
|
var _b;
|
|
@@ -4689,6 +4595,21 @@ var serializeAws_restJson1AutoMerging = function (input, context) {
|
|
|
4689
4595
|
Consolidation: serializeAws_restJson1Consolidation(input.Consolidation, context),
|
|
4690
4596
|
})), (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }));
|
|
4691
4597
|
};
|
|
4598
|
+
var serializeAws_restJson1Batch = function (input, context) {
|
|
4599
|
+
return __assign(__assign({}, (input.EndTime !== undefined &&
|
|
4600
|
+
input.EndTime !== null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.StartTime !== undefined &&
|
|
4601
|
+
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
|
|
4602
|
+
};
|
|
4603
|
+
var serializeAws_restJson1Batches = function (input, context) {
|
|
4604
|
+
return input
|
|
4605
|
+
.filter(function (e) { return e != null; })
|
|
4606
|
+
.map(function (entry) {
|
|
4607
|
+
if (entry === null) {
|
|
4608
|
+
return null;
|
|
4609
|
+
}
|
|
4610
|
+
return serializeAws_restJson1Batch(entry, context);
|
|
4611
|
+
});
|
|
4612
|
+
};
|
|
4692
4613
|
var serializeAws_restJson1ConflictResolution = function (input, context) {
|
|
4693
4614
|
return __assign(__assign({}, (input.ConflictResolvingModel !== undefined &&
|
|
4694
4615
|
input.ConflictResolvingModel !== null && { ConflictResolvingModel: input.ConflictResolvingModel })), (input.SourceName !== undefined && input.SourceName !== null && { SourceName: input.SourceName }));
|
|
@@ -4757,6 +4678,12 @@ var serializeAws_restJson1IncrementalPullConfig = function (input, context) {
|
|
|
4757
4678
|
return __assign({}, (input.DatetimeTypeFieldName !== undefined &&
|
|
4758
4679
|
input.DatetimeTypeFieldName !== null && { DatetimeTypeFieldName: input.DatetimeTypeFieldName }));
|
|
4759
4680
|
};
|
|
4681
|
+
var serializeAws_restJson1IntegrationConfig = function (input, context) {
|
|
4682
|
+
return __assign({}, (input.AppflowIntegration !== undefined &&
|
|
4683
|
+
input.AppflowIntegration !== null && {
|
|
4684
|
+
AppflowIntegration: serializeAws_restJson1AppflowIntegration(input.AppflowIntegration, context),
|
|
4685
|
+
}));
|
|
4686
|
+
};
|
|
4760
4687
|
var serializeAws_restJson1JobSchedule = function (input, context) {
|
|
4761
4688
|
return __assign(__assign({}, (input.DayOfTheWeek !== undefined && input.DayOfTheWeek !== null && { DayOfTheWeek: input.DayOfTheWeek })), (input.Time !== undefined && input.Time !== null && { Time: input.Time }));
|
|
4762
4689
|
};
|
|
@@ -5004,6 +4931,36 @@ var deserializeAws_restJson1Address = function (output, context) {
|
|
|
5004
4931
|
State: __expectString(output.State),
|
|
5005
4932
|
};
|
|
5006
4933
|
};
|
|
4934
|
+
var deserializeAws_restJson1AppflowIntegrationWorkflowAttributes = function (output, context) {
|
|
4935
|
+
return {
|
|
4936
|
+
ConnectorProfileName: __expectString(output.ConnectorProfileName),
|
|
4937
|
+
RoleArn: __expectString(output.RoleArn),
|
|
4938
|
+
SourceConnectorType: __expectString(output.SourceConnectorType),
|
|
4939
|
+
};
|
|
4940
|
+
};
|
|
4941
|
+
var deserializeAws_restJson1AppflowIntegrationWorkflowMetrics = function (output, context) {
|
|
4942
|
+
return {
|
|
4943
|
+
RecordsProcessed: __expectLong(output.RecordsProcessed),
|
|
4944
|
+
StepsCompleted: __expectLong(output.StepsCompleted),
|
|
4945
|
+
TotalSteps: __expectLong(output.TotalSteps),
|
|
4946
|
+
};
|
|
4947
|
+
};
|
|
4948
|
+
var deserializeAws_restJson1AppflowIntegrationWorkflowStep = function (output, context) {
|
|
4949
|
+
return {
|
|
4950
|
+
BatchRecordsEndTime: __expectString(output.BatchRecordsEndTime),
|
|
4951
|
+
BatchRecordsStartTime: __expectString(output.BatchRecordsStartTime),
|
|
4952
|
+
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
4953
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
4954
|
+
: undefined,
|
|
4955
|
+
ExecutionMessage: __expectString(output.ExecutionMessage),
|
|
4956
|
+
FlowName: __expectString(output.FlowName),
|
|
4957
|
+
LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
|
|
4958
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
4959
|
+
: undefined,
|
|
4960
|
+
RecordsProcessed: __expectLong(output.RecordsProcessed),
|
|
4961
|
+
Status: __expectString(output.Status),
|
|
4962
|
+
};
|
|
4963
|
+
};
|
|
5007
4964
|
var deserializeAws_restJson1Attributes = function (output, context) {
|
|
5008
4965
|
return Object.entries(output).reduce(function (acc, _a) {
|
|
5009
4966
|
var _b;
|
|
@@ -5039,7 +4996,7 @@ var deserializeAws_restJson1Consolidation = function (output, context) {
|
|
|
5039
4996
|
};
|
|
5040
4997
|
};
|
|
5041
4998
|
var deserializeAws_restJson1DomainList = function (output, context) {
|
|
5042
|
-
|
|
4999
|
+
var retVal = (output || [])
|
|
5043
5000
|
.filter(function (e) { return e != null; })
|
|
5044
5001
|
.map(function (entry) {
|
|
5045
5002
|
if (entry === null) {
|
|
@@ -5047,6 +5004,7 @@ var deserializeAws_restJson1DomainList = function (output, context) {
|
|
|
5047
5004
|
}
|
|
5048
5005
|
return deserializeAws_restJson1ListDomainItem(entry, context);
|
|
5049
5006
|
});
|
|
5007
|
+
return retVal;
|
|
5050
5008
|
};
|
|
5051
5009
|
var deserializeAws_restJson1DomainStats = function (output, context) {
|
|
5052
5010
|
return {
|
|
@@ -5081,7 +5039,7 @@ var deserializeAws_restJson1FieldMap = function (output, context) {
|
|
|
5081
5039
|
}, {});
|
|
5082
5040
|
};
|
|
5083
5041
|
var deserializeAws_restJson1FieldNameList = function (output, context) {
|
|
5084
|
-
|
|
5042
|
+
var retVal = (output || [])
|
|
5085
5043
|
.filter(function (e) { return e != null; })
|
|
5086
5044
|
.map(function (entry) {
|
|
5087
5045
|
if (entry === null) {
|
|
@@ -5089,6 +5047,7 @@ var deserializeAws_restJson1FieldNameList = function (output, context) {
|
|
|
5089
5047
|
}
|
|
5090
5048
|
return __expectString(entry);
|
|
5091
5049
|
});
|
|
5050
|
+
return retVal;
|
|
5092
5051
|
};
|
|
5093
5052
|
var deserializeAws_restJson1IdentityResolutionJob = function (output, context) {
|
|
5094
5053
|
return {
|
|
@@ -5111,7 +5070,7 @@ var deserializeAws_restJson1IdentityResolutionJob = function (output, context) {
|
|
|
5111
5070
|
};
|
|
5112
5071
|
};
|
|
5113
5072
|
var deserializeAws_restJson1IdentityResolutionJobsList = function (output, context) {
|
|
5114
|
-
|
|
5073
|
+
var retVal = (output || [])
|
|
5115
5074
|
.filter(function (e) { return e != null; })
|
|
5116
5075
|
.map(function (entry) {
|
|
5117
5076
|
if (entry === null) {
|
|
@@ -5119,9 +5078,10 @@ var deserializeAws_restJson1IdentityResolutionJobsList = function (output, conte
|
|
|
5119
5078
|
}
|
|
5120
5079
|
return deserializeAws_restJson1IdentityResolutionJob(entry, context);
|
|
5121
5080
|
});
|
|
5081
|
+
return retVal;
|
|
5122
5082
|
};
|
|
5123
5083
|
var deserializeAws_restJson1IntegrationList = function (output, context) {
|
|
5124
|
-
|
|
5084
|
+
var retVal = (output || [])
|
|
5125
5085
|
.filter(function (e) { return e != null; })
|
|
5126
5086
|
.map(function (entry) {
|
|
5127
5087
|
if (entry === null) {
|
|
@@ -5129,6 +5089,7 @@ var deserializeAws_restJson1IntegrationList = function (output, context) {
|
|
|
5129
5089
|
}
|
|
5130
5090
|
return deserializeAws_restJson1ListIntegrationItem(entry, context);
|
|
5131
5091
|
});
|
|
5092
|
+
return retVal;
|
|
5132
5093
|
};
|
|
5133
5094
|
var deserializeAws_restJson1JobSchedule = function (output, context) {
|
|
5134
5095
|
return {
|
|
@@ -5184,6 +5145,7 @@ var deserializeAws_restJson1ListIntegrationItem = function (output, context) {
|
|
|
5184
5145
|
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
5185
5146
|
: undefined,
|
|
5186
5147
|
Uri: __expectString(output.Uri),
|
|
5148
|
+
WorkflowId: __expectString(output.WorkflowId),
|
|
5187
5149
|
};
|
|
5188
5150
|
};
|
|
5189
5151
|
var deserializeAws_restJson1ListProfileObjectsItem = function (output, context) {
|
|
@@ -5215,8 +5177,22 @@ var deserializeAws_restJson1ListProfileObjectTypeTemplateItem = function (output
|
|
|
5215
5177
|
TemplateId: __expectString(output.TemplateId),
|
|
5216
5178
|
};
|
|
5217
5179
|
};
|
|
5180
|
+
var deserializeAws_restJson1ListWorkflowsItem = function (output, context) {
|
|
5181
|
+
return {
|
|
5182
|
+
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
5183
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
5184
|
+
: undefined,
|
|
5185
|
+
LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
|
|
5186
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
5187
|
+
: undefined,
|
|
5188
|
+
Status: __expectString(output.Status),
|
|
5189
|
+
StatusDescription: __expectString(output.StatusDescription),
|
|
5190
|
+
WorkflowId: __expectString(output.WorkflowId),
|
|
5191
|
+
WorkflowType: __expectString(output.WorkflowType),
|
|
5192
|
+
};
|
|
5193
|
+
};
|
|
5218
5194
|
var deserializeAws_restJson1MatchesList = function (output, context) {
|
|
5219
|
-
|
|
5195
|
+
var retVal = (output || [])
|
|
5220
5196
|
.filter(function (e) { return e != null; })
|
|
5221
5197
|
.map(function (entry) {
|
|
5222
5198
|
if (entry === null) {
|
|
@@ -5224,9 +5200,10 @@ var deserializeAws_restJson1MatchesList = function (output, context) {
|
|
|
5224
5200
|
}
|
|
5225
5201
|
return deserializeAws_restJson1MatchItem(entry, context);
|
|
5226
5202
|
});
|
|
5203
|
+
return retVal;
|
|
5227
5204
|
};
|
|
5228
5205
|
var deserializeAws_restJson1MatchingAttributes = function (output, context) {
|
|
5229
|
-
|
|
5206
|
+
var retVal = (output || [])
|
|
5230
5207
|
.filter(function (e) { return e != null; })
|
|
5231
5208
|
.map(function (entry) {
|
|
5232
5209
|
if (entry === null) {
|
|
@@ -5234,9 +5211,10 @@ var deserializeAws_restJson1MatchingAttributes = function (output, context) {
|
|
|
5234
5211
|
}
|
|
5235
5212
|
return __expectString(entry);
|
|
5236
5213
|
});
|
|
5214
|
+
return retVal;
|
|
5237
5215
|
};
|
|
5238
5216
|
var deserializeAws_restJson1MatchingAttributesList = function (output, context) {
|
|
5239
|
-
|
|
5217
|
+
var retVal = (output || [])
|
|
5240
5218
|
.filter(function (e) { return e != null; })
|
|
5241
5219
|
.map(function (entry) {
|
|
5242
5220
|
if (entry === null) {
|
|
@@ -5244,6 +5222,7 @@ var deserializeAws_restJson1MatchingAttributesList = function (output, context)
|
|
|
5244
5222
|
}
|
|
5245
5223
|
return deserializeAws_restJson1MatchingAttributes(entry, context);
|
|
5246
5224
|
});
|
|
5225
|
+
return retVal;
|
|
5247
5226
|
};
|
|
5248
5227
|
var deserializeAws_restJson1MatchingResponse = function (output, context) {
|
|
5249
5228
|
return {
|
|
@@ -5286,7 +5265,7 @@ var deserializeAws_restJson1ObjectTypeKey = function (output, context) {
|
|
|
5286
5265
|
};
|
|
5287
5266
|
};
|
|
5288
5267
|
var deserializeAws_restJson1ObjectTypeKeyList = function (output, context) {
|
|
5289
|
-
|
|
5268
|
+
var retVal = (output || [])
|
|
5290
5269
|
.filter(function (e) { return e != null; })
|
|
5291
5270
|
.map(function (entry) {
|
|
5292
5271
|
if (entry === null) {
|
|
@@ -5294,6 +5273,7 @@ var deserializeAws_restJson1ObjectTypeKeyList = function (output, context) {
|
|
|
5294
5273
|
}
|
|
5295
5274
|
return deserializeAws_restJson1ObjectTypeKey(entry, context);
|
|
5296
5275
|
});
|
|
5276
|
+
return retVal;
|
|
5297
5277
|
};
|
|
5298
5278
|
var deserializeAws_restJson1ObjectTypeNames = function (output, context) {
|
|
5299
5279
|
return Object.entries(output).reduce(function (acc, _a) {
|
|
@@ -5342,7 +5322,7 @@ var deserializeAws_restJson1Profile = function (output, context) {
|
|
|
5342
5322
|
};
|
|
5343
5323
|
};
|
|
5344
5324
|
var deserializeAws_restJson1ProfileIdList = function (output, context) {
|
|
5345
|
-
|
|
5325
|
+
var retVal = (output || [])
|
|
5346
5326
|
.filter(function (e) { return e != null; })
|
|
5347
5327
|
.map(function (entry) {
|
|
5348
5328
|
if (entry === null) {
|
|
@@ -5350,9 +5330,10 @@ var deserializeAws_restJson1ProfileIdList = function (output, context) {
|
|
|
5350
5330
|
}
|
|
5351
5331
|
return __expectString(entry);
|
|
5352
5332
|
});
|
|
5333
|
+
return retVal;
|
|
5353
5334
|
};
|
|
5354
5335
|
var deserializeAws_restJson1ProfileList = function (output, context) {
|
|
5355
|
-
|
|
5336
|
+
var retVal = (output || [])
|
|
5356
5337
|
.filter(function (e) { return e != null; })
|
|
5357
5338
|
.map(function (entry) {
|
|
5358
5339
|
if (entry === null) {
|
|
@@ -5360,9 +5341,10 @@ var deserializeAws_restJson1ProfileList = function (output, context) {
|
|
|
5360
5341
|
}
|
|
5361
5342
|
return deserializeAws_restJson1Profile(entry, context);
|
|
5362
5343
|
});
|
|
5344
|
+
return retVal;
|
|
5363
5345
|
};
|
|
5364
5346
|
var deserializeAws_restJson1ProfileObjectList = function (output, context) {
|
|
5365
|
-
|
|
5347
|
+
var retVal = (output || [])
|
|
5366
5348
|
.filter(function (e) { return e != null; })
|
|
5367
5349
|
.map(function (entry) {
|
|
5368
5350
|
if (entry === null) {
|
|
@@ -5370,9 +5352,10 @@ var deserializeAws_restJson1ProfileObjectList = function (output, context) {
|
|
|
5370
5352
|
}
|
|
5371
5353
|
return deserializeAws_restJson1ListProfileObjectsItem(entry, context);
|
|
5372
5354
|
});
|
|
5355
|
+
return retVal;
|
|
5373
5356
|
};
|
|
5374
5357
|
var deserializeAws_restJson1ProfileObjectTypeList = function (output, context) {
|
|
5375
|
-
|
|
5358
|
+
var retVal = (output || [])
|
|
5376
5359
|
.filter(function (e) { return e != null; })
|
|
5377
5360
|
.map(function (entry) {
|
|
5378
5361
|
if (entry === null) {
|
|
@@ -5380,9 +5363,10 @@ var deserializeAws_restJson1ProfileObjectTypeList = function (output, context) {
|
|
|
5380
5363
|
}
|
|
5381
5364
|
return deserializeAws_restJson1ListProfileObjectTypeItem(entry, context);
|
|
5382
5365
|
});
|
|
5366
|
+
return retVal;
|
|
5383
5367
|
};
|
|
5384
5368
|
var deserializeAws_restJson1ProfileObjectTypeTemplateList = function (output, context) {
|
|
5385
|
-
|
|
5369
|
+
var retVal = (output || [])
|
|
5386
5370
|
.filter(function (e) { return e != null; })
|
|
5387
5371
|
.map(function (entry) {
|
|
5388
5372
|
if (entry === null) {
|
|
@@ -5390,9 +5374,10 @@ var deserializeAws_restJson1ProfileObjectTypeTemplateList = function (output, co
|
|
|
5390
5374
|
}
|
|
5391
5375
|
return deserializeAws_restJson1ListProfileObjectTypeTemplateItem(entry, context);
|
|
5392
5376
|
});
|
|
5377
|
+
return retVal;
|
|
5393
5378
|
};
|
|
5394
5379
|
var deserializeAws_restJson1requestValueList = function (output, context) {
|
|
5395
|
-
|
|
5380
|
+
var retVal = (output || [])
|
|
5396
5381
|
.filter(function (e) { return e != null; })
|
|
5397
5382
|
.map(function (entry) {
|
|
5398
5383
|
if (entry === null) {
|
|
@@ -5400,6 +5385,7 @@ var deserializeAws_restJson1requestValueList = function (output, context) {
|
|
|
5400
5385
|
}
|
|
5401
5386
|
return __expectString(entry);
|
|
5402
5387
|
});
|
|
5388
|
+
return retVal;
|
|
5403
5389
|
};
|
|
5404
5390
|
var deserializeAws_restJson1S3ExportingConfig = function (output, context) {
|
|
5405
5391
|
return {
|
|
@@ -5414,7 +5400,7 @@ var deserializeAws_restJson1S3ExportingLocation = function (output, context) {
|
|
|
5414
5400
|
};
|
|
5415
5401
|
};
|
|
5416
5402
|
var deserializeAws_restJson1StandardIdentifierList = function (output, context) {
|
|
5417
|
-
|
|
5403
|
+
var retVal = (output || [])
|
|
5418
5404
|
.filter(function (e) { return e != null; })
|
|
5419
5405
|
.map(function (entry) {
|
|
5420
5406
|
if (entry === null) {
|
|
@@ -5422,6 +5408,7 @@ var deserializeAws_restJson1StandardIdentifierList = function (output, context)
|
|
|
5422
5408
|
}
|
|
5423
5409
|
return __expectString(entry);
|
|
5424
5410
|
});
|
|
5411
|
+
return retVal;
|
|
5425
5412
|
};
|
|
5426
5413
|
var deserializeAws_restJson1TagMap = function (output, context) {
|
|
5427
5414
|
return Object.entries(output).reduce(function (acc, _a) {
|
|
@@ -5433,6 +5420,49 @@ var deserializeAws_restJson1TagMap = function (output, context) {
|
|
|
5433
5420
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
5434
5421
|
}, {});
|
|
5435
5422
|
};
|
|
5423
|
+
var deserializeAws_restJson1WorkflowAttributes = function (output, context) {
|
|
5424
|
+
return {
|
|
5425
|
+
AppflowIntegration: output.AppflowIntegration !== undefined && output.AppflowIntegration !== null
|
|
5426
|
+
? deserializeAws_restJson1AppflowIntegrationWorkflowAttributes(output.AppflowIntegration, context)
|
|
5427
|
+
: undefined,
|
|
5428
|
+
};
|
|
5429
|
+
};
|
|
5430
|
+
var deserializeAws_restJson1WorkflowList = function (output, context) {
|
|
5431
|
+
var retVal = (output || [])
|
|
5432
|
+
.filter(function (e) { return e != null; })
|
|
5433
|
+
.map(function (entry) {
|
|
5434
|
+
if (entry === null) {
|
|
5435
|
+
return null;
|
|
5436
|
+
}
|
|
5437
|
+
return deserializeAws_restJson1ListWorkflowsItem(entry, context);
|
|
5438
|
+
});
|
|
5439
|
+
return retVal;
|
|
5440
|
+
};
|
|
5441
|
+
var deserializeAws_restJson1WorkflowMetrics = function (output, context) {
|
|
5442
|
+
return {
|
|
5443
|
+
AppflowIntegration: output.AppflowIntegration !== undefined && output.AppflowIntegration !== null
|
|
5444
|
+
? deserializeAws_restJson1AppflowIntegrationWorkflowMetrics(output.AppflowIntegration, context)
|
|
5445
|
+
: undefined,
|
|
5446
|
+
};
|
|
5447
|
+
};
|
|
5448
|
+
var deserializeAws_restJson1WorkflowStepItem = function (output, context) {
|
|
5449
|
+
return {
|
|
5450
|
+
AppflowIntegration: output.AppflowIntegration !== undefined && output.AppflowIntegration !== null
|
|
5451
|
+
? deserializeAws_restJson1AppflowIntegrationWorkflowStep(output.AppflowIntegration, context)
|
|
5452
|
+
: undefined,
|
|
5453
|
+
};
|
|
5454
|
+
};
|
|
5455
|
+
var deserializeAws_restJson1WorkflowStepsList = function (output, context) {
|
|
5456
|
+
var retVal = (output || [])
|
|
5457
|
+
.filter(function (e) { return e != null; })
|
|
5458
|
+
.map(function (entry) {
|
|
5459
|
+
if (entry === null) {
|
|
5460
|
+
return null;
|
|
5461
|
+
}
|
|
5462
|
+
return deserializeAws_restJson1WorkflowStepItem(entry, context);
|
|
5463
|
+
});
|
|
5464
|
+
return retVal;
|
|
5465
|
+
};
|
|
5436
5466
|
var deserializeMetadata = function (output) {
|
|
5437
5467
|
var _a;
|
|
5438
5468
|
return ({
|