@aws-sdk/client-entityresolution 3.378.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +346 -0
- package/dist-cjs/EntityResolution.js +43 -0
- package/dist-cjs/EntityResolutionClient.js +41 -0
- package/dist-cjs/commands/CreateMatchingWorkflowCommand.js +46 -0
- package/dist-cjs/commands/CreateSchemaMappingCommand.js +46 -0
- package/dist-cjs/commands/DeleteMatchingWorkflowCommand.js +46 -0
- package/dist-cjs/commands/DeleteSchemaMappingCommand.js +46 -0
- package/dist-cjs/commands/GetMatchIdCommand.js +47 -0
- package/dist-cjs/commands/GetMatchingJobCommand.js +46 -0
- package/dist-cjs/commands/GetMatchingWorkflowCommand.js +46 -0
- package/dist-cjs/commands/GetSchemaMappingCommand.js +46 -0
- package/dist-cjs/commands/ListMatchingJobsCommand.js +46 -0
- package/dist-cjs/commands/ListMatchingWorkflowsCommand.js +46 -0
- package/dist-cjs/commands/ListSchemaMappingsCommand.js +46 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
- package/dist-cjs/commands/StartMatchingJobCommand.js +46 -0
- package/dist-cjs/commands/TagResourceCommand.js +46 -0
- package/dist-cjs/commands/UntagResourceCommand.js +46 -0
- package/dist-cjs/commands/UpdateMatchingWorkflowCommand.js +46 -0
- package/dist-cjs/commands/index.js +19 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/EntityResolutionServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +143 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListMatchingJobsPaginator.js +29 -0
- package/dist-cjs/pagination/ListMatchingWorkflowsPaginator.js +29 -0
- package/dist-cjs/pagination/ListSchemaMappingsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1281 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +48 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +21 -0
- package/dist-es/EntityResolution.js +39 -0
- package/dist-es/EntityResolutionClient.js +37 -0
- package/dist-es/commands/CreateMatchingWorkflowCommand.js +42 -0
- package/dist-es/commands/CreateSchemaMappingCommand.js +42 -0
- package/dist-es/commands/DeleteMatchingWorkflowCommand.js +42 -0
- package/dist-es/commands/DeleteSchemaMappingCommand.js +42 -0
- package/dist-es/commands/GetMatchIdCommand.js +43 -0
- package/dist-es/commands/GetMatchingJobCommand.js +42 -0
- package/dist-es/commands/GetMatchingWorkflowCommand.js +42 -0
- package/dist-es/commands/GetSchemaMappingCommand.js +42 -0
- package/dist-es/commands/ListMatchingJobsCommand.js +42 -0
- package/dist-es/commands/ListMatchingWorkflowsCommand.js +42 -0
- package/dist-es/commands/ListSchemaMappingsCommand.js +42 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
- package/dist-es/commands/StartMatchingJobCommand.js +42 -0
- package/dist-es/commands/TagResourceCommand.js +42 -0
- package/dist-es/commands/UntagResourceCommand.js +42 -0
- package/dist-es/commands/UpdateMatchingWorkflowCommand.js +42 -0
- package/dist-es/commands/index.js +16 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/EntityResolutionServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +132 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListMatchingJobsPaginator.js +25 -0
- package/dist-es/pagination/ListMatchingWorkflowsPaginator.js +25 -0
- package/dist-es/pagination/ListSchemaMappingsPaginator.js +25 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +1246 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +43 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +17 -0
- package/dist-types/EntityResolution.d.ts +135 -0
- package/dist-types/EntityResolutionClient.d.ts +191 -0
- package/dist-types/commands/CreateMatchingWorkflowCommand.d.ts +183 -0
- package/dist-types/commands/CreateSchemaMappingCommand.d.ts +123 -0
- package/dist-types/commands/DeleteMatchingWorkflowCommand.d.ts +90 -0
- package/dist-types/commands/DeleteSchemaMappingCommand.d.ts +96 -0
- package/dist-types/commands/GetMatchIdCommand.d.ts +96 -0
- package/dist-types/commands/GetMatchingJobCommand.d.ts +106 -0
- package/dist-types/commands/GetMatchingWorkflowCommand.d.ts +138 -0
- package/dist-types/commands/GetSchemaMappingCommand.d.ts +108 -0
- package/dist-types/commands/ListMatchingJobsCommand.d.ts +103 -0
- package/dist-types/commands/ListMatchingWorkflowsCommand.d.ts +98 -0
- package/dist-types/commands/ListSchemaMappingsCommand.d.ts +98 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +89 -0
- package/dist-types/commands/StartMatchingJobCommand.d.ts +104 -0
- package/dist-types/commands/TagResourceCommand.d.ts +95 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +84 -0
- package/dist-types/commands/UpdateMatchingWorkflowCommand.d.ts +174 -0
- package/dist-types/commands/index.d.ts +16 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +24 -0
- package/dist-types/models/EntityResolutionServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1017 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListMatchingJobsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListMatchingWorkflowsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSchemaMappingsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +146 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +18 -0
- package/dist-types/ts3.4/EntityResolution.d.ts +279 -0
- package/dist-types/ts3.4/EntityResolutionClient.d.ts +209 -0
- package/dist-types/ts3.4/commands/CreateMatchingWorkflowCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateSchemaMappingCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteMatchingWorkflowCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteSchemaMappingCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetMatchIdCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetMatchingJobCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetMatchingWorkflowCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetSchemaMappingCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListMatchingJobsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListMatchingWorkflowsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListSchemaMappingsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/StartMatchingJobCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdateMatchingWorkflowCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +16 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/EntityResolutionServiceException.d.ts +8 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +322 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListMatchingJobsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListMatchingWorkflowsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSchemaMappingsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +197 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +82 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +20 -0
- package/package.json +99 -0
|
@@ -0,0 +1,1281 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.de_UpdateMatchingWorkflowCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartMatchingJobCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSchemaMappingsCommand = exports.de_ListMatchingWorkflowsCommand = exports.de_ListMatchingJobsCommand = exports.de_GetSchemaMappingCommand = exports.de_GetMatchingWorkflowCommand = exports.de_GetMatchingJobCommand = exports.de_GetMatchIdCommand = exports.de_DeleteSchemaMappingCommand = exports.de_DeleteMatchingWorkflowCommand = exports.de_CreateSchemaMappingCommand = exports.de_CreateMatchingWorkflowCommand = exports.se_UpdateMatchingWorkflowCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartMatchingJobCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSchemaMappingsCommand = exports.se_ListMatchingWorkflowsCommand = exports.se_ListMatchingJobsCommand = exports.se_GetSchemaMappingCommand = exports.se_GetMatchingWorkflowCommand = exports.se_GetMatchingJobCommand = exports.se_GetMatchIdCommand = exports.se_DeleteSchemaMappingCommand = exports.se_DeleteMatchingWorkflowCommand = exports.se_CreateSchemaMappingCommand = exports.se_CreateMatchingWorkflowCommand = void 0;
|
|
4
|
+
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
+
const EntityResolutionServiceException_1 = require("../models/EntityResolutionServiceException");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const se_CreateMatchingWorkflowCommand = async (input, context) => {
|
|
9
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
|
+
const headers = {
|
|
11
|
+
"content-type": "application/json",
|
|
12
|
+
};
|
|
13
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows";
|
|
14
|
+
let body;
|
|
15
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
16
|
+
description: [],
|
|
17
|
+
incrementalRunConfig: (_) => (0, smithy_client_1._json)(_),
|
|
18
|
+
inputSourceConfig: (_) => (0, smithy_client_1._json)(_),
|
|
19
|
+
outputSourceConfig: (_) => (0, smithy_client_1._json)(_),
|
|
20
|
+
resolutionTechniques: (_) => (0, smithy_client_1._json)(_),
|
|
21
|
+
roleArn: [],
|
|
22
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
23
|
+
workflowName: [],
|
|
24
|
+
}));
|
|
25
|
+
return new protocol_http_1.HttpRequest({
|
|
26
|
+
protocol,
|
|
27
|
+
hostname,
|
|
28
|
+
port,
|
|
29
|
+
method: "POST",
|
|
30
|
+
headers,
|
|
31
|
+
path: resolvedPath,
|
|
32
|
+
body,
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
exports.se_CreateMatchingWorkflowCommand = se_CreateMatchingWorkflowCommand;
|
|
36
|
+
const se_CreateSchemaMappingCommand = async (input, context) => {
|
|
37
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
38
|
+
const headers = {
|
|
39
|
+
"content-type": "application/json",
|
|
40
|
+
};
|
|
41
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schemas";
|
|
42
|
+
let body;
|
|
43
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
44
|
+
description: [],
|
|
45
|
+
mappedInputFields: (_) => (0, smithy_client_1._json)(_),
|
|
46
|
+
schemaName: [],
|
|
47
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
48
|
+
}));
|
|
49
|
+
return new protocol_http_1.HttpRequest({
|
|
50
|
+
protocol,
|
|
51
|
+
hostname,
|
|
52
|
+
port,
|
|
53
|
+
method: "POST",
|
|
54
|
+
headers,
|
|
55
|
+
path: resolvedPath,
|
|
56
|
+
body,
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
exports.se_CreateSchemaMappingCommand = se_CreateSchemaMappingCommand;
|
|
60
|
+
const se_DeleteMatchingWorkflowCommand = async (input, context) => {
|
|
61
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
62
|
+
const headers = {};
|
|
63
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows/{workflowName}";
|
|
64
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
|
|
65
|
+
let body;
|
|
66
|
+
return new protocol_http_1.HttpRequest({
|
|
67
|
+
protocol,
|
|
68
|
+
hostname,
|
|
69
|
+
port,
|
|
70
|
+
method: "DELETE",
|
|
71
|
+
headers,
|
|
72
|
+
path: resolvedPath,
|
|
73
|
+
body,
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
exports.se_DeleteMatchingWorkflowCommand = se_DeleteMatchingWorkflowCommand;
|
|
77
|
+
const se_DeleteSchemaMappingCommand = async (input, context) => {
|
|
78
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
79
|
+
const headers = {};
|
|
80
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schemas/{schemaName}";
|
|
81
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "schemaName", () => input.schemaName, "{schemaName}", false);
|
|
82
|
+
let body;
|
|
83
|
+
return new protocol_http_1.HttpRequest({
|
|
84
|
+
protocol,
|
|
85
|
+
hostname,
|
|
86
|
+
port,
|
|
87
|
+
method: "DELETE",
|
|
88
|
+
headers,
|
|
89
|
+
path: resolvedPath,
|
|
90
|
+
body,
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
exports.se_DeleteSchemaMappingCommand = se_DeleteSchemaMappingCommand;
|
|
94
|
+
const se_GetMatchIdCommand = async (input, context) => {
|
|
95
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
96
|
+
const headers = {
|
|
97
|
+
"content-type": "application/json",
|
|
98
|
+
};
|
|
99
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows/{workflowName}/matches";
|
|
100
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
|
|
101
|
+
let body;
|
|
102
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
103
|
+
record: (_) => (0, smithy_client_1._json)(_),
|
|
104
|
+
}));
|
|
105
|
+
return new protocol_http_1.HttpRequest({
|
|
106
|
+
protocol,
|
|
107
|
+
hostname,
|
|
108
|
+
port,
|
|
109
|
+
method: "POST",
|
|
110
|
+
headers,
|
|
111
|
+
path: resolvedPath,
|
|
112
|
+
body,
|
|
113
|
+
});
|
|
114
|
+
};
|
|
115
|
+
exports.se_GetMatchIdCommand = se_GetMatchIdCommand;
|
|
116
|
+
const se_GetMatchingJobCommand = async (input, context) => {
|
|
117
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
118
|
+
const headers = {};
|
|
119
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
120
|
+
"/matchingworkflows/{workflowName}/jobs/{jobId}";
|
|
121
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
|
|
122
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
|
|
123
|
+
let body;
|
|
124
|
+
return new protocol_http_1.HttpRequest({
|
|
125
|
+
protocol,
|
|
126
|
+
hostname,
|
|
127
|
+
port,
|
|
128
|
+
method: "GET",
|
|
129
|
+
headers,
|
|
130
|
+
path: resolvedPath,
|
|
131
|
+
body,
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
exports.se_GetMatchingJobCommand = se_GetMatchingJobCommand;
|
|
135
|
+
const se_GetMatchingWorkflowCommand = async (input, context) => {
|
|
136
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
137
|
+
const headers = {};
|
|
138
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows/{workflowName}";
|
|
139
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
|
|
140
|
+
let body;
|
|
141
|
+
return new protocol_http_1.HttpRequest({
|
|
142
|
+
protocol,
|
|
143
|
+
hostname,
|
|
144
|
+
port,
|
|
145
|
+
method: "GET",
|
|
146
|
+
headers,
|
|
147
|
+
path: resolvedPath,
|
|
148
|
+
body,
|
|
149
|
+
});
|
|
150
|
+
};
|
|
151
|
+
exports.se_GetMatchingWorkflowCommand = se_GetMatchingWorkflowCommand;
|
|
152
|
+
const se_GetSchemaMappingCommand = async (input, context) => {
|
|
153
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
154
|
+
const headers = {};
|
|
155
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schemas/{schemaName}";
|
|
156
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "schemaName", () => input.schemaName, "{schemaName}", false);
|
|
157
|
+
let body;
|
|
158
|
+
return new protocol_http_1.HttpRequest({
|
|
159
|
+
protocol,
|
|
160
|
+
hostname,
|
|
161
|
+
port,
|
|
162
|
+
method: "GET",
|
|
163
|
+
headers,
|
|
164
|
+
path: resolvedPath,
|
|
165
|
+
body,
|
|
166
|
+
});
|
|
167
|
+
};
|
|
168
|
+
exports.se_GetSchemaMappingCommand = se_GetSchemaMappingCommand;
|
|
169
|
+
const se_ListMatchingJobsCommand = async (input, context) => {
|
|
170
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
171
|
+
const headers = {};
|
|
172
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows/{workflowName}/jobs";
|
|
173
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
|
|
174
|
+
const query = (0, smithy_client_1.map)({
|
|
175
|
+
nextToken: [, input.nextToken],
|
|
176
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
177
|
+
});
|
|
178
|
+
let body;
|
|
179
|
+
return new protocol_http_1.HttpRequest({
|
|
180
|
+
protocol,
|
|
181
|
+
hostname,
|
|
182
|
+
port,
|
|
183
|
+
method: "GET",
|
|
184
|
+
headers,
|
|
185
|
+
path: resolvedPath,
|
|
186
|
+
query,
|
|
187
|
+
body,
|
|
188
|
+
});
|
|
189
|
+
};
|
|
190
|
+
exports.se_ListMatchingJobsCommand = se_ListMatchingJobsCommand;
|
|
191
|
+
const se_ListMatchingWorkflowsCommand = async (input, context) => {
|
|
192
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
193
|
+
const headers = {};
|
|
194
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows";
|
|
195
|
+
const query = (0, smithy_client_1.map)({
|
|
196
|
+
nextToken: [, input.nextToken],
|
|
197
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
198
|
+
});
|
|
199
|
+
let body;
|
|
200
|
+
return new protocol_http_1.HttpRequest({
|
|
201
|
+
protocol,
|
|
202
|
+
hostname,
|
|
203
|
+
port,
|
|
204
|
+
method: "GET",
|
|
205
|
+
headers,
|
|
206
|
+
path: resolvedPath,
|
|
207
|
+
query,
|
|
208
|
+
body,
|
|
209
|
+
});
|
|
210
|
+
};
|
|
211
|
+
exports.se_ListMatchingWorkflowsCommand = se_ListMatchingWorkflowsCommand;
|
|
212
|
+
const se_ListSchemaMappingsCommand = async (input, context) => {
|
|
213
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
214
|
+
const headers = {};
|
|
215
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schemas";
|
|
216
|
+
const query = (0, smithy_client_1.map)({
|
|
217
|
+
nextToken: [, input.nextToken],
|
|
218
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
219
|
+
});
|
|
220
|
+
let body;
|
|
221
|
+
return new protocol_http_1.HttpRequest({
|
|
222
|
+
protocol,
|
|
223
|
+
hostname,
|
|
224
|
+
port,
|
|
225
|
+
method: "GET",
|
|
226
|
+
headers,
|
|
227
|
+
path: resolvedPath,
|
|
228
|
+
query,
|
|
229
|
+
body,
|
|
230
|
+
});
|
|
231
|
+
};
|
|
232
|
+
exports.se_ListSchemaMappingsCommand = se_ListSchemaMappingsCommand;
|
|
233
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
234
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
235
|
+
const headers = {};
|
|
236
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
237
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
238
|
+
let body;
|
|
239
|
+
return new protocol_http_1.HttpRequest({
|
|
240
|
+
protocol,
|
|
241
|
+
hostname,
|
|
242
|
+
port,
|
|
243
|
+
method: "GET",
|
|
244
|
+
headers,
|
|
245
|
+
path: resolvedPath,
|
|
246
|
+
body,
|
|
247
|
+
});
|
|
248
|
+
};
|
|
249
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
250
|
+
const se_StartMatchingJobCommand = async (input, context) => {
|
|
251
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
252
|
+
const headers = {};
|
|
253
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows/{workflowName}/jobs";
|
|
254
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
|
|
255
|
+
let body;
|
|
256
|
+
return new protocol_http_1.HttpRequest({
|
|
257
|
+
protocol,
|
|
258
|
+
hostname,
|
|
259
|
+
port,
|
|
260
|
+
method: "POST",
|
|
261
|
+
headers,
|
|
262
|
+
path: resolvedPath,
|
|
263
|
+
body,
|
|
264
|
+
});
|
|
265
|
+
};
|
|
266
|
+
exports.se_StartMatchingJobCommand = se_StartMatchingJobCommand;
|
|
267
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
268
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
269
|
+
const headers = {
|
|
270
|
+
"content-type": "application/json",
|
|
271
|
+
};
|
|
272
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
273
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
274
|
+
let body;
|
|
275
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
276
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
277
|
+
}));
|
|
278
|
+
return new protocol_http_1.HttpRequest({
|
|
279
|
+
protocol,
|
|
280
|
+
hostname,
|
|
281
|
+
port,
|
|
282
|
+
method: "POST",
|
|
283
|
+
headers,
|
|
284
|
+
path: resolvedPath,
|
|
285
|
+
body,
|
|
286
|
+
});
|
|
287
|
+
};
|
|
288
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
289
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
290
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
291
|
+
const headers = {};
|
|
292
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
293
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
294
|
+
const query = (0, smithy_client_1.map)({
|
|
295
|
+
tagKeys: [
|
|
296
|
+
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
297
|
+
() => (input.tagKeys || []).map((_entry) => _entry),
|
|
298
|
+
],
|
|
299
|
+
});
|
|
300
|
+
let body;
|
|
301
|
+
return new protocol_http_1.HttpRequest({
|
|
302
|
+
protocol,
|
|
303
|
+
hostname,
|
|
304
|
+
port,
|
|
305
|
+
method: "DELETE",
|
|
306
|
+
headers,
|
|
307
|
+
path: resolvedPath,
|
|
308
|
+
query,
|
|
309
|
+
body,
|
|
310
|
+
});
|
|
311
|
+
};
|
|
312
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
313
|
+
const se_UpdateMatchingWorkflowCommand = async (input, context) => {
|
|
314
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
315
|
+
const headers = {
|
|
316
|
+
"content-type": "application/json",
|
|
317
|
+
};
|
|
318
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows/{workflowName}";
|
|
319
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
|
|
320
|
+
let body;
|
|
321
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
322
|
+
description: [],
|
|
323
|
+
incrementalRunConfig: (_) => (0, smithy_client_1._json)(_),
|
|
324
|
+
inputSourceConfig: (_) => (0, smithy_client_1._json)(_),
|
|
325
|
+
outputSourceConfig: (_) => (0, smithy_client_1._json)(_),
|
|
326
|
+
resolutionTechniques: (_) => (0, smithy_client_1._json)(_),
|
|
327
|
+
roleArn: [],
|
|
328
|
+
}));
|
|
329
|
+
return new protocol_http_1.HttpRequest({
|
|
330
|
+
protocol,
|
|
331
|
+
hostname,
|
|
332
|
+
port,
|
|
333
|
+
method: "PUT",
|
|
334
|
+
headers,
|
|
335
|
+
path: resolvedPath,
|
|
336
|
+
body,
|
|
337
|
+
});
|
|
338
|
+
};
|
|
339
|
+
exports.se_UpdateMatchingWorkflowCommand = se_UpdateMatchingWorkflowCommand;
|
|
340
|
+
const de_CreateMatchingWorkflowCommand = async (output, context) => {
|
|
341
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
342
|
+
return de_CreateMatchingWorkflowCommandError(output, context);
|
|
343
|
+
}
|
|
344
|
+
const contents = (0, smithy_client_1.map)({
|
|
345
|
+
$metadata: deserializeMetadata(output),
|
|
346
|
+
});
|
|
347
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
348
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
349
|
+
description: smithy_client_1.expectString,
|
|
350
|
+
incrementalRunConfig: smithy_client_1._json,
|
|
351
|
+
inputSourceConfig: smithy_client_1._json,
|
|
352
|
+
outputSourceConfig: smithy_client_1._json,
|
|
353
|
+
resolutionTechniques: smithy_client_1._json,
|
|
354
|
+
roleArn: smithy_client_1.expectString,
|
|
355
|
+
workflowArn: smithy_client_1.expectString,
|
|
356
|
+
workflowName: smithy_client_1.expectString,
|
|
357
|
+
});
|
|
358
|
+
Object.assign(contents, doc);
|
|
359
|
+
return contents;
|
|
360
|
+
};
|
|
361
|
+
exports.de_CreateMatchingWorkflowCommand = de_CreateMatchingWorkflowCommand;
|
|
362
|
+
const de_CreateMatchingWorkflowCommandError = async (output, context) => {
|
|
363
|
+
const parsedOutput = {
|
|
364
|
+
...output,
|
|
365
|
+
body: await parseErrorBody(output.body, context),
|
|
366
|
+
};
|
|
367
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
368
|
+
switch (errorCode) {
|
|
369
|
+
case "AccessDeniedException":
|
|
370
|
+
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
371
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
372
|
+
case "ConflictException":
|
|
373
|
+
case "com.amazonaws.entityresolution#ConflictException":
|
|
374
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
375
|
+
case "ExceedsLimitException":
|
|
376
|
+
case "com.amazonaws.entityresolution#ExceedsLimitException":
|
|
377
|
+
throw await de_ExceedsLimitExceptionRes(parsedOutput, context);
|
|
378
|
+
case "InternalServerException":
|
|
379
|
+
case "com.amazonaws.entityresolution#InternalServerException":
|
|
380
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
381
|
+
case "ThrottlingException":
|
|
382
|
+
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
383
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
384
|
+
case "ValidationException":
|
|
385
|
+
case "com.amazonaws.entityresolution#ValidationException":
|
|
386
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
387
|
+
default:
|
|
388
|
+
const parsedBody = parsedOutput.body;
|
|
389
|
+
return throwDefaultError({
|
|
390
|
+
output,
|
|
391
|
+
parsedBody,
|
|
392
|
+
errorCode,
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
};
|
|
396
|
+
const de_CreateSchemaMappingCommand = async (output, context) => {
|
|
397
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
398
|
+
return de_CreateSchemaMappingCommandError(output, context);
|
|
399
|
+
}
|
|
400
|
+
const contents = (0, smithy_client_1.map)({
|
|
401
|
+
$metadata: deserializeMetadata(output),
|
|
402
|
+
});
|
|
403
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
404
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
405
|
+
description: smithy_client_1.expectString,
|
|
406
|
+
mappedInputFields: smithy_client_1._json,
|
|
407
|
+
schemaArn: smithy_client_1.expectString,
|
|
408
|
+
schemaName: smithy_client_1.expectString,
|
|
409
|
+
});
|
|
410
|
+
Object.assign(contents, doc);
|
|
411
|
+
return contents;
|
|
412
|
+
};
|
|
413
|
+
exports.de_CreateSchemaMappingCommand = de_CreateSchemaMappingCommand;
|
|
414
|
+
const de_CreateSchemaMappingCommandError = async (output, context) => {
|
|
415
|
+
const parsedOutput = {
|
|
416
|
+
...output,
|
|
417
|
+
body: await parseErrorBody(output.body, context),
|
|
418
|
+
};
|
|
419
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
420
|
+
switch (errorCode) {
|
|
421
|
+
case "AccessDeniedException":
|
|
422
|
+
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
423
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
424
|
+
case "ConflictException":
|
|
425
|
+
case "com.amazonaws.entityresolution#ConflictException":
|
|
426
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
427
|
+
case "ExceedsLimitException":
|
|
428
|
+
case "com.amazonaws.entityresolution#ExceedsLimitException":
|
|
429
|
+
throw await de_ExceedsLimitExceptionRes(parsedOutput, context);
|
|
430
|
+
case "InternalServerException":
|
|
431
|
+
case "com.amazonaws.entityresolution#InternalServerException":
|
|
432
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
433
|
+
case "ThrottlingException":
|
|
434
|
+
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
435
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
436
|
+
case "ValidationException":
|
|
437
|
+
case "com.amazonaws.entityresolution#ValidationException":
|
|
438
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
439
|
+
default:
|
|
440
|
+
const parsedBody = parsedOutput.body;
|
|
441
|
+
return throwDefaultError({
|
|
442
|
+
output,
|
|
443
|
+
parsedBody,
|
|
444
|
+
errorCode,
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
};
|
|
448
|
+
const de_DeleteMatchingWorkflowCommand = async (output, context) => {
|
|
449
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
450
|
+
return de_DeleteMatchingWorkflowCommandError(output, context);
|
|
451
|
+
}
|
|
452
|
+
const contents = (0, smithy_client_1.map)({
|
|
453
|
+
$metadata: deserializeMetadata(output),
|
|
454
|
+
});
|
|
455
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
456
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
457
|
+
message: smithy_client_1.expectString,
|
|
458
|
+
});
|
|
459
|
+
Object.assign(contents, doc);
|
|
460
|
+
return contents;
|
|
461
|
+
};
|
|
462
|
+
exports.de_DeleteMatchingWorkflowCommand = de_DeleteMatchingWorkflowCommand;
|
|
463
|
+
const de_DeleteMatchingWorkflowCommandError = async (output, context) => {
|
|
464
|
+
const parsedOutput = {
|
|
465
|
+
...output,
|
|
466
|
+
body: await parseErrorBody(output.body, context),
|
|
467
|
+
};
|
|
468
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
469
|
+
switch (errorCode) {
|
|
470
|
+
case "AccessDeniedException":
|
|
471
|
+
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
472
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
473
|
+
case "InternalServerException":
|
|
474
|
+
case "com.amazonaws.entityresolution#InternalServerException":
|
|
475
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
476
|
+
case "ThrottlingException":
|
|
477
|
+
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
478
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
479
|
+
case "ValidationException":
|
|
480
|
+
case "com.amazonaws.entityresolution#ValidationException":
|
|
481
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
482
|
+
default:
|
|
483
|
+
const parsedBody = parsedOutput.body;
|
|
484
|
+
return throwDefaultError({
|
|
485
|
+
output,
|
|
486
|
+
parsedBody,
|
|
487
|
+
errorCode,
|
|
488
|
+
});
|
|
489
|
+
}
|
|
490
|
+
};
|
|
491
|
+
const de_DeleteSchemaMappingCommand = async (output, context) => {
|
|
492
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
493
|
+
return de_DeleteSchemaMappingCommandError(output, context);
|
|
494
|
+
}
|
|
495
|
+
const contents = (0, smithy_client_1.map)({
|
|
496
|
+
$metadata: deserializeMetadata(output),
|
|
497
|
+
});
|
|
498
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
499
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
500
|
+
message: smithy_client_1.expectString,
|
|
501
|
+
});
|
|
502
|
+
Object.assign(contents, doc);
|
|
503
|
+
return contents;
|
|
504
|
+
};
|
|
505
|
+
exports.de_DeleteSchemaMappingCommand = de_DeleteSchemaMappingCommand;
|
|
506
|
+
const de_DeleteSchemaMappingCommandError = async (output, context) => {
|
|
507
|
+
const parsedOutput = {
|
|
508
|
+
...output,
|
|
509
|
+
body: await parseErrorBody(output.body, context),
|
|
510
|
+
};
|
|
511
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
512
|
+
switch (errorCode) {
|
|
513
|
+
case "AccessDeniedException":
|
|
514
|
+
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
515
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
516
|
+
case "ConflictException":
|
|
517
|
+
case "com.amazonaws.entityresolution#ConflictException":
|
|
518
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
519
|
+
case "InternalServerException":
|
|
520
|
+
case "com.amazonaws.entityresolution#InternalServerException":
|
|
521
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
522
|
+
case "ThrottlingException":
|
|
523
|
+
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
524
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
525
|
+
case "ValidationException":
|
|
526
|
+
case "com.amazonaws.entityresolution#ValidationException":
|
|
527
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
528
|
+
default:
|
|
529
|
+
const parsedBody = parsedOutput.body;
|
|
530
|
+
return throwDefaultError({
|
|
531
|
+
output,
|
|
532
|
+
parsedBody,
|
|
533
|
+
errorCode,
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
};
|
|
537
|
+
const de_GetMatchIdCommand = async (output, context) => {
|
|
538
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
539
|
+
return de_GetMatchIdCommandError(output, context);
|
|
540
|
+
}
|
|
541
|
+
const contents = (0, smithy_client_1.map)({
|
|
542
|
+
$metadata: deserializeMetadata(output),
|
|
543
|
+
});
|
|
544
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
545
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
546
|
+
matchId: smithy_client_1.expectString,
|
|
547
|
+
});
|
|
548
|
+
Object.assign(contents, doc);
|
|
549
|
+
return contents;
|
|
550
|
+
};
|
|
551
|
+
exports.de_GetMatchIdCommand = de_GetMatchIdCommand;
|
|
552
|
+
const de_GetMatchIdCommandError = async (output, context) => {
|
|
553
|
+
const parsedOutput = {
|
|
554
|
+
...output,
|
|
555
|
+
body: await parseErrorBody(output.body, context),
|
|
556
|
+
};
|
|
557
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
558
|
+
switch (errorCode) {
|
|
559
|
+
case "AccessDeniedException":
|
|
560
|
+
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
561
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
562
|
+
case "InternalServerException":
|
|
563
|
+
case "com.amazonaws.entityresolution#InternalServerException":
|
|
564
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
565
|
+
case "ResourceNotFoundException":
|
|
566
|
+
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
567
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
568
|
+
case "ThrottlingException":
|
|
569
|
+
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
570
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
571
|
+
case "ValidationException":
|
|
572
|
+
case "com.amazonaws.entityresolution#ValidationException":
|
|
573
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
574
|
+
default:
|
|
575
|
+
const parsedBody = parsedOutput.body;
|
|
576
|
+
return throwDefaultError({
|
|
577
|
+
output,
|
|
578
|
+
parsedBody,
|
|
579
|
+
errorCode,
|
|
580
|
+
});
|
|
581
|
+
}
|
|
582
|
+
};
|
|
583
|
+
const de_GetMatchingJobCommand = async (output, context) => {
|
|
584
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
585
|
+
return de_GetMatchingJobCommandError(output, context);
|
|
586
|
+
}
|
|
587
|
+
const contents = (0, smithy_client_1.map)({
|
|
588
|
+
$metadata: deserializeMetadata(output),
|
|
589
|
+
});
|
|
590
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
591
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
592
|
+
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
593
|
+
errorDetails: smithy_client_1._json,
|
|
594
|
+
jobId: smithy_client_1.expectString,
|
|
595
|
+
metrics: smithy_client_1._json,
|
|
596
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
597
|
+
status: smithy_client_1.expectString,
|
|
598
|
+
});
|
|
599
|
+
Object.assign(contents, doc);
|
|
600
|
+
return contents;
|
|
601
|
+
};
|
|
602
|
+
exports.de_GetMatchingJobCommand = de_GetMatchingJobCommand;
|
|
603
|
+
const de_GetMatchingJobCommandError = async (output, context) => {
|
|
604
|
+
const parsedOutput = {
|
|
605
|
+
...output,
|
|
606
|
+
body: await parseErrorBody(output.body, context),
|
|
607
|
+
};
|
|
608
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
609
|
+
switch (errorCode) {
|
|
610
|
+
case "AccessDeniedException":
|
|
611
|
+
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
612
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
613
|
+
case "InternalServerException":
|
|
614
|
+
case "com.amazonaws.entityresolution#InternalServerException":
|
|
615
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
616
|
+
case "ResourceNotFoundException":
|
|
617
|
+
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
618
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
619
|
+
case "ThrottlingException":
|
|
620
|
+
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
621
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
622
|
+
case "ValidationException":
|
|
623
|
+
case "com.amazonaws.entityresolution#ValidationException":
|
|
624
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
625
|
+
default:
|
|
626
|
+
const parsedBody = parsedOutput.body;
|
|
627
|
+
return throwDefaultError({
|
|
628
|
+
output,
|
|
629
|
+
parsedBody,
|
|
630
|
+
errorCode,
|
|
631
|
+
});
|
|
632
|
+
}
|
|
633
|
+
};
|
|
634
|
+
const de_GetMatchingWorkflowCommand = async (output, context) => {
|
|
635
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
636
|
+
return de_GetMatchingWorkflowCommandError(output, context);
|
|
637
|
+
}
|
|
638
|
+
const contents = (0, smithy_client_1.map)({
|
|
639
|
+
$metadata: deserializeMetadata(output),
|
|
640
|
+
});
|
|
641
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
642
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
643
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
644
|
+
description: smithy_client_1.expectString,
|
|
645
|
+
incrementalRunConfig: smithy_client_1._json,
|
|
646
|
+
inputSourceConfig: smithy_client_1._json,
|
|
647
|
+
outputSourceConfig: smithy_client_1._json,
|
|
648
|
+
resolutionTechniques: smithy_client_1._json,
|
|
649
|
+
roleArn: smithy_client_1.expectString,
|
|
650
|
+
tags: smithy_client_1._json,
|
|
651
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
652
|
+
workflowArn: smithy_client_1.expectString,
|
|
653
|
+
workflowName: smithy_client_1.expectString,
|
|
654
|
+
});
|
|
655
|
+
Object.assign(contents, doc);
|
|
656
|
+
return contents;
|
|
657
|
+
};
|
|
658
|
+
exports.de_GetMatchingWorkflowCommand = de_GetMatchingWorkflowCommand;
|
|
659
|
+
const de_GetMatchingWorkflowCommandError = async (output, context) => {
|
|
660
|
+
const parsedOutput = {
|
|
661
|
+
...output,
|
|
662
|
+
body: await parseErrorBody(output.body, context),
|
|
663
|
+
};
|
|
664
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
665
|
+
switch (errorCode) {
|
|
666
|
+
case "AccessDeniedException":
|
|
667
|
+
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
668
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
669
|
+
case "InternalServerException":
|
|
670
|
+
case "com.amazonaws.entityresolution#InternalServerException":
|
|
671
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
672
|
+
case "ResourceNotFoundException":
|
|
673
|
+
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
674
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
675
|
+
case "ThrottlingException":
|
|
676
|
+
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
677
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
678
|
+
case "ValidationException":
|
|
679
|
+
case "com.amazonaws.entityresolution#ValidationException":
|
|
680
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
681
|
+
default:
|
|
682
|
+
const parsedBody = parsedOutput.body;
|
|
683
|
+
return throwDefaultError({
|
|
684
|
+
output,
|
|
685
|
+
parsedBody,
|
|
686
|
+
errorCode,
|
|
687
|
+
});
|
|
688
|
+
}
|
|
689
|
+
};
|
|
690
|
+
const de_GetSchemaMappingCommand = async (output, context) => {
|
|
691
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
692
|
+
return de_GetSchemaMappingCommandError(output, context);
|
|
693
|
+
}
|
|
694
|
+
const contents = (0, smithy_client_1.map)({
|
|
695
|
+
$metadata: deserializeMetadata(output),
|
|
696
|
+
});
|
|
697
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
698
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
699
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
700
|
+
description: smithy_client_1.expectString,
|
|
701
|
+
mappedInputFields: smithy_client_1._json,
|
|
702
|
+
schemaArn: smithy_client_1.expectString,
|
|
703
|
+
schemaName: smithy_client_1.expectString,
|
|
704
|
+
tags: smithy_client_1._json,
|
|
705
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
706
|
+
});
|
|
707
|
+
Object.assign(contents, doc);
|
|
708
|
+
return contents;
|
|
709
|
+
};
|
|
710
|
+
exports.de_GetSchemaMappingCommand = de_GetSchemaMappingCommand;
|
|
711
|
+
const de_GetSchemaMappingCommandError = async (output, context) => {
|
|
712
|
+
const parsedOutput = {
|
|
713
|
+
...output,
|
|
714
|
+
body: await parseErrorBody(output.body, context),
|
|
715
|
+
};
|
|
716
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
717
|
+
switch (errorCode) {
|
|
718
|
+
case "AccessDeniedException":
|
|
719
|
+
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
720
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
721
|
+
case "InternalServerException":
|
|
722
|
+
case "com.amazonaws.entityresolution#InternalServerException":
|
|
723
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
724
|
+
case "ResourceNotFoundException":
|
|
725
|
+
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
726
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
727
|
+
case "ThrottlingException":
|
|
728
|
+
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
729
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
730
|
+
case "ValidationException":
|
|
731
|
+
case "com.amazonaws.entityresolution#ValidationException":
|
|
732
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
733
|
+
default:
|
|
734
|
+
const parsedBody = parsedOutput.body;
|
|
735
|
+
return throwDefaultError({
|
|
736
|
+
output,
|
|
737
|
+
parsedBody,
|
|
738
|
+
errorCode,
|
|
739
|
+
});
|
|
740
|
+
}
|
|
741
|
+
};
|
|
742
|
+
const de_ListMatchingJobsCommand = async (output, context) => {
|
|
743
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
744
|
+
return de_ListMatchingJobsCommandError(output, context);
|
|
745
|
+
}
|
|
746
|
+
const contents = (0, smithy_client_1.map)({
|
|
747
|
+
$metadata: deserializeMetadata(output),
|
|
748
|
+
});
|
|
749
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
750
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
751
|
+
jobs: (_) => de_JobList(_, context),
|
|
752
|
+
nextToken: smithy_client_1.expectString,
|
|
753
|
+
});
|
|
754
|
+
Object.assign(contents, doc);
|
|
755
|
+
return contents;
|
|
756
|
+
};
|
|
757
|
+
exports.de_ListMatchingJobsCommand = de_ListMatchingJobsCommand;
|
|
758
|
+
const de_ListMatchingJobsCommandError = async (output, context) => {
|
|
759
|
+
const parsedOutput = {
|
|
760
|
+
...output,
|
|
761
|
+
body: await parseErrorBody(output.body, context),
|
|
762
|
+
};
|
|
763
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
764
|
+
switch (errorCode) {
|
|
765
|
+
case "AccessDeniedException":
|
|
766
|
+
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
767
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
768
|
+
case "InternalServerException":
|
|
769
|
+
case "com.amazonaws.entityresolution#InternalServerException":
|
|
770
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
771
|
+
case "ResourceNotFoundException":
|
|
772
|
+
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
773
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
774
|
+
case "ThrottlingException":
|
|
775
|
+
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
776
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
777
|
+
case "ValidationException":
|
|
778
|
+
case "com.amazonaws.entityresolution#ValidationException":
|
|
779
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
780
|
+
default:
|
|
781
|
+
const parsedBody = parsedOutput.body;
|
|
782
|
+
return throwDefaultError({
|
|
783
|
+
output,
|
|
784
|
+
parsedBody,
|
|
785
|
+
errorCode,
|
|
786
|
+
});
|
|
787
|
+
}
|
|
788
|
+
};
|
|
789
|
+
const de_ListMatchingWorkflowsCommand = async (output, context) => {
|
|
790
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
791
|
+
return de_ListMatchingWorkflowsCommandError(output, context);
|
|
792
|
+
}
|
|
793
|
+
const contents = (0, smithy_client_1.map)({
|
|
794
|
+
$metadata: deserializeMetadata(output),
|
|
795
|
+
});
|
|
796
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
797
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
798
|
+
nextToken: smithy_client_1.expectString,
|
|
799
|
+
workflowSummaries: (_) => de_MatchingWorkflowList(_, context),
|
|
800
|
+
});
|
|
801
|
+
Object.assign(contents, doc);
|
|
802
|
+
return contents;
|
|
803
|
+
};
|
|
804
|
+
exports.de_ListMatchingWorkflowsCommand = de_ListMatchingWorkflowsCommand;
|
|
805
|
+
const de_ListMatchingWorkflowsCommandError = async (output, context) => {
|
|
806
|
+
const parsedOutput = {
|
|
807
|
+
...output,
|
|
808
|
+
body: await parseErrorBody(output.body, context),
|
|
809
|
+
};
|
|
810
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
811
|
+
switch (errorCode) {
|
|
812
|
+
case "AccessDeniedException":
|
|
813
|
+
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
814
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
815
|
+
case "InternalServerException":
|
|
816
|
+
case "com.amazonaws.entityresolution#InternalServerException":
|
|
817
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
818
|
+
case "ThrottlingException":
|
|
819
|
+
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
820
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
821
|
+
case "ValidationException":
|
|
822
|
+
case "com.amazonaws.entityresolution#ValidationException":
|
|
823
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
824
|
+
default:
|
|
825
|
+
const parsedBody = parsedOutput.body;
|
|
826
|
+
return throwDefaultError({
|
|
827
|
+
output,
|
|
828
|
+
parsedBody,
|
|
829
|
+
errorCode,
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
};
|
|
833
|
+
const de_ListSchemaMappingsCommand = async (output, context) => {
|
|
834
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
835
|
+
return de_ListSchemaMappingsCommandError(output, context);
|
|
836
|
+
}
|
|
837
|
+
const contents = (0, smithy_client_1.map)({
|
|
838
|
+
$metadata: deserializeMetadata(output),
|
|
839
|
+
});
|
|
840
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
841
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
842
|
+
nextToken: smithy_client_1.expectString,
|
|
843
|
+
schemaList: (_) => de_SchemaMappingList(_, context),
|
|
844
|
+
});
|
|
845
|
+
Object.assign(contents, doc);
|
|
846
|
+
return contents;
|
|
847
|
+
};
|
|
848
|
+
exports.de_ListSchemaMappingsCommand = de_ListSchemaMappingsCommand;
|
|
849
|
+
const de_ListSchemaMappingsCommandError = async (output, context) => {
|
|
850
|
+
const parsedOutput = {
|
|
851
|
+
...output,
|
|
852
|
+
body: await parseErrorBody(output.body, context),
|
|
853
|
+
};
|
|
854
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
855
|
+
switch (errorCode) {
|
|
856
|
+
case "AccessDeniedException":
|
|
857
|
+
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
858
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
859
|
+
case "InternalServerException":
|
|
860
|
+
case "com.amazonaws.entityresolution#InternalServerException":
|
|
861
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
862
|
+
case "ThrottlingException":
|
|
863
|
+
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
864
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
865
|
+
case "ValidationException":
|
|
866
|
+
case "com.amazonaws.entityresolution#ValidationException":
|
|
867
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
868
|
+
default:
|
|
869
|
+
const parsedBody = parsedOutput.body;
|
|
870
|
+
return throwDefaultError({
|
|
871
|
+
output,
|
|
872
|
+
parsedBody,
|
|
873
|
+
errorCode,
|
|
874
|
+
});
|
|
875
|
+
}
|
|
876
|
+
};
|
|
877
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
878
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
879
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
880
|
+
}
|
|
881
|
+
const contents = (0, smithy_client_1.map)({
|
|
882
|
+
$metadata: deserializeMetadata(output),
|
|
883
|
+
});
|
|
884
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
885
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
886
|
+
tags: smithy_client_1._json,
|
|
887
|
+
});
|
|
888
|
+
Object.assign(contents, doc);
|
|
889
|
+
return contents;
|
|
890
|
+
};
|
|
891
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
892
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
893
|
+
const parsedOutput = {
|
|
894
|
+
...output,
|
|
895
|
+
body: await parseErrorBody(output.body, context),
|
|
896
|
+
};
|
|
897
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
898
|
+
switch (errorCode) {
|
|
899
|
+
case "InternalServerException":
|
|
900
|
+
case "com.amazonaws.entityresolution#InternalServerException":
|
|
901
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
902
|
+
case "ResourceNotFoundException":
|
|
903
|
+
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
904
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
905
|
+
case "ValidationException":
|
|
906
|
+
case "com.amazonaws.entityresolution#ValidationException":
|
|
907
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
908
|
+
default:
|
|
909
|
+
const parsedBody = parsedOutput.body;
|
|
910
|
+
return throwDefaultError({
|
|
911
|
+
output,
|
|
912
|
+
parsedBody,
|
|
913
|
+
errorCode,
|
|
914
|
+
});
|
|
915
|
+
}
|
|
916
|
+
};
|
|
917
|
+
const de_StartMatchingJobCommand = async (output, context) => {
|
|
918
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
919
|
+
return de_StartMatchingJobCommandError(output, context);
|
|
920
|
+
}
|
|
921
|
+
const contents = (0, smithy_client_1.map)({
|
|
922
|
+
$metadata: deserializeMetadata(output),
|
|
923
|
+
});
|
|
924
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
925
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
926
|
+
jobId: smithy_client_1.expectString,
|
|
927
|
+
});
|
|
928
|
+
Object.assign(contents, doc);
|
|
929
|
+
return contents;
|
|
930
|
+
};
|
|
931
|
+
exports.de_StartMatchingJobCommand = de_StartMatchingJobCommand;
|
|
932
|
+
const de_StartMatchingJobCommandError = async (output, context) => {
|
|
933
|
+
const parsedOutput = {
|
|
934
|
+
...output,
|
|
935
|
+
body: await parseErrorBody(output.body, context),
|
|
936
|
+
};
|
|
937
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
938
|
+
switch (errorCode) {
|
|
939
|
+
case "AccessDeniedException":
|
|
940
|
+
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
941
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
942
|
+
case "ConflictException":
|
|
943
|
+
case "com.amazonaws.entityresolution#ConflictException":
|
|
944
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
945
|
+
case "ExceedsLimitException":
|
|
946
|
+
case "com.amazonaws.entityresolution#ExceedsLimitException":
|
|
947
|
+
throw await de_ExceedsLimitExceptionRes(parsedOutput, context);
|
|
948
|
+
case "InternalServerException":
|
|
949
|
+
case "com.amazonaws.entityresolution#InternalServerException":
|
|
950
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
951
|
+
case "ResourceNotFoundException":
|
|
952
|
+
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
953
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
954
|
+
case "ThrottlingException":
|
|
955
|
+
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
956
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
957
|
+
case "ValidationException":
|
|
958
|
+
case "com.amazonaws.entityresolution#ValidationException":
|
|
959
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
960
|
+
default:
|
|
961
|
+
const parsedBody = parsedOutput.body;
|
|
962
|
+
return throwDefaultError({
|
|
963
|
+
output,
|
|
964
|
+
parsedBody,
|
|
965
|
+
errorCode,
|
|
966
|
+
});
|
|
967
|
+
}
|
|
968
|
+
};
|
|
969
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
970
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
971
|
+
return de_TagResourceCommandError(output, context);
|
|
972
|
+
}
|
|
973
|
+
const contents = (0, smithy_client_1.map)({
|
|
974
|
+
$metadata: deserializeMetadata(output),
|
|
975
|
+
});
|
|
976
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
977
|
+
return contents;
|
|
978
|
+
};
|
|
979
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
980
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
981
|
+
const parsedOutput = {
|
|
982
|
+
...output,
|
|
983
|
+
body: await parseErrorBody(output.body, context),
|
|
984
|
+
};
|
|
985
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
986
|
+
switch (errorCode) {
|
|
987
|
+
case "InternalServerException":
|
|
988
|
+
case "com.amazonaws.entityresolution#InternalServerException":
|
|
989
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
990
|
+
case "ResourceNotFoundException":
|
|
991
|
+
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
992
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
993
|
+
case "ValidationException":
|
|
994
|
+
case "com.amazonaws.entityresolution#ValidationException":
|
|
995
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
996
|
+
default:
|
|
997
|
+
const parsedBody = parsedOutput.body;
|
|
998
|
+
return throwDefaultError({
|
|
999
|
+
output,
|
|
1000
|
+
parsedBody,
|
|
1001
|
+
errorCode,
|
|
1002
|
+
});
|
|
1003
|
+
}
|
|
1004
|
+
};
|
|
1005
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
1006
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1007
|
+
return de_UntagResourceCommandError(output, context);
|
|
1008
|
+
}
|
|
1009
|
+
const contents = (0, smithy_client_1.map)({
|
|
1010
|
+
$metadata: deserializeMetadata(output),
|
|
1011
|
+
});
|
|
1012
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1013
|
+
return contents;
|
|
1014
|
+
};
|
|
1015
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1016
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1017
|
+
const parsedOutput = {
|
|
1018
|
+
...output,
|
|
1019
|
+
body: await parseErrorBody(output.body, context),
|
|
1020
|
+
};
|
|
1021
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1022
|
+
switch (errorCode) {
|
|
1023
|
+
case "InternalServerException":
|
|
1024
|
+
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1025
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1026
|
+
case "ResourceNotFoundException":
|
|
1027
|
+
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
1028
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1029
|
+
default:
|
|
1030
|
+
const parsedBody = parsedOutput.body;
|
|
1031
|
+
return throwDefaultError({
|
|
1032
|
+
output,
|
|
1033
|
+
parsedBody,
|
|
1034
|
+
errorCode,
|
|
1035
|
+
});
|
|
1036
|
+
}
|
|
1037
|
+
};
|
|
1038
|
+
const de_UpdateMatchingWorkflowCommand = async (output, context) => {
|
|
1039
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1040
|
+
return de_UpdateMatchingWorkflowCommandError(output, context);
|
|
1041
|
+
}
|
|
1042
|
+
const contents = (0, smithy_client_1.map)({
|
|
1043
|
+
$metadata: deserializeMetadata(output),
|
|
1044
|
+
});
|
|
1045
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1046
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1047
|
+
description: smithy_client_1.expectString,
|
|
1048
|
+
incrementalRunConfig: smithy_client_1._json,
|
|
1049
|
+
inputSourceConfig: smithy_client_1._json,
|
|
1050
|
+
outputSourceConfig: smithy_client_1._json,
|
|
1051
|
+
resolutionTechniques: smithy_client_1._json,
|
|
1052
|
+
roleArn: smithy_client_1.expectString,
|
|
1053
|
+
workflowName: smithy_client_1.expectString,
|
|
1054
|
+
});
|
|
1055
|
+
Object.assign(contents, doc);
|
|
1056
|
+
return contents;
|
|
1057
|
+
};
|
|
1058
|
+
exports.de_UpdateMatchingWorkflowCommand = de_UpdateMatchingWorkflowCommand;
|
|
1059
|
+
const de_UpdateMatchingWorkflowCommandError = async (output, context) => {
|
|
1060
|
+
const parsedOutput = {
|
|
1061
|
+
...output,
|
|
1062
|
+
body: await parseErrorBody(output.body, context),
|
|
1063
|
+
};
|
|
1064
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1065
|
+
switch (errorCode) {
|
|
1066
|
+
case "AccessDeniedException":
|
|
1067
|
+
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
1068
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1069
|
+
case "InternalServerException":
|
|
1070
|
+
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1071
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1072
|
+
case "ResourceNotFoundException":
|
|
1073
|
+
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
1074
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1075
|
+
case "ThrottlingException":
|
|
1076
|
+
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
1077
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1078
|
+
case "ValidationException":
|
|
1079
|
+
case "com.amazonaws.entityresolution#ValidationException":
|
|
1080
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1081
|
+
default:
|
|
1082
|
+
const parsedBody = parsedOutput.body;
|
|
1083
|
+
return throwDefaultError({
|
|
1084
|
+
output,
|
|
1085
|
+
parsedBody,
|
|
1086
|
+
errorCode,
|
|
1087
|
+
});
|
|
1088
|
+
}
|
|
1089
|
+
};
|
|
1090
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(EntityResolutionServiceException_1.EntityResolutionServiceException);
|
|
1091
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1092
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1093
|
+
const data = parsedOutput.body;
|
|
1094
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1095
|
+
message: smithy_client_1.expectString,
|
|
1096
|
+
});
|
|
1097
|
+
Object.assign(contents, doc);
|
|
1098
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
1099
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1100
|
+
...contents,
|
|
1101
|
+
});
|
|
1102
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1103
|
+
};
|
|
1104
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1105
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1106
|
+
const data = parsedOutput.body;
|
|
1107
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1108
|
+
message: smithy_client_1.expectString,
|
|
1109
|
+
});
|
|
1110
|
+
Object.assign(contents, doc);
|
|
1111
|
+
const exception = new models_0_1.ConflictException({
|
|
1112
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1113
|
+
...contents,
|
|
1114
|
+
});
|
|
1115
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1116
|
+
};
|
|
1117
|
+
const de_ExceedsLimitExceptionRes = async (parsedOutput, context) => {
|
|
1118
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1119
|
+
const data = parsedOutput.body;
|
|
1120
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1121
|
+
message: smithy_client_1.expectString,
|
|
1122
|
+
});
|
|
1123
|
+
Object.assign(contents, doc);
|
|
1124
|
+
const exception = new models_0_1.ExceedsLimitException({
|
|
1125
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1126
|
+
...contents,
|
|
1127
|
+
});
|
|
1128
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1129
|
+
};
|
|
1130
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1131
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1132
|
+
const data = parsedOutput.body;
|
|
1133
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1134
|
+
message: smithy_client_1.expectString,
|
|
1135
|
+
});
|
|
1136
|
+
Object.assign(contents, doc);
|
|
1137
|
+
const exception = new models_0_1.InternalServerException({
|
|
1138
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1139
|
+
...contents,
|
|
1140
|
+
});
|
|
1141
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1142
|
+
};
|
|
1143
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1144
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1145
|
+
const data = parsedOutput.body;
|
|
1146
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1147
|
+
message: smithy_client_1.expectString,
|
|
1148
|
+
});
|
|
1149
|
+
Object.assign(contents, doc);
|
|
1150
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
1151
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1152
|
+
...contents,
|
|
1153
|
+
});
|
|
1154
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1155
|
+
};
|
|
1156
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1157
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1158
|
+
const data = parsedOutput.body;
|
|
1159
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1160
|
+
message: smithy_client_1.expectString,
|
|
1161
|
+
});
|
|
1162
|
+
Object.assign(contents, doc);
|
|
1163
|
+
const exception = new models_0_1.ThrottlingException({
|
|
1164
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1165
|
+
...contents,
|
|
1166
|
+
});
|
|
1167
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1168
|
+
};
|
|
1169
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1170
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1171
|
+
const data = parsedOutput.body;
|
|
1172
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1173
|
+
message: smithy_client_1.expectString,
|
|
1174
|
+
});
|
|
1175
|
+
Object.assign(contents, doc);
|
|
1176
|
+
const exception = new models_0_1.ValidationException({
|
|
1177
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1178
|
+
...contents,
|
|
1179
|
+
});
|
|
1180
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1181
|
+
};
|
|
1182
|
+
const de_JobList = (output, context) => {
|
|
1183
|
+
const retVal = (output || [])
|
|
1184
|
+
.filter((e) => e != null)
|
|
1185
|
+
.map((entry) => {
|
|
1186
|
+
return de_JobSummary(entry, context);
|
|
1187
|
+
});
|
|
1188
|
+
return retVal;
|
|
1189
|
+
};
|
|
1190
|
+
const de_JobSummary = (output, context) => {
|
|
1191
|
+
return (0, smithy_client_1.take)(output, {
|
|
1192
|
+
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1193
|
+
jobId: smithy_client_1.expectString,
|
|
1194
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1195
|
+
status: smithy_client_1.expectString,
|
|
1196
|
+
});
|
|
1197
|
+
};
|
|
1198
|
+
const de_MatchingWorkflowList = (output, context) => {
|
|
1199
|
+
const retVal = (output || [])
|
|
1200
|
+
.filter((e) => e != null)
|
|
1201
|
+
.map((entry) => {
|
|
1202
|
+
return de_MatchingWorkflowSummary(entry, context);
|
|
1203
|
+
});
|
|
1204
|
+
return retVal;
|
|
1205
|
+
};
|
|
1206
|
+
const de_MatchingWorkflowSummary = (output, context) => {
|
|
1207
|
+
return (0, smithy_client_1.take)(output, {
|
|
1208
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1209
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1210
|
+
workflowArn: smithy_client_1.expectString,
|
|
1211
|
+
workflowName: smithy_client_1.expectString,
|
|
1212
|
+
});
|
|
1213
|
+
};
|
|
1214
|
+
const de_SchemaMappingList = (output, context) => {
|
|
1215
|
+
const retVal = (output || [])
|
|
1216
|
+
.filter((e) => e != null)
|
|
1217
|
+
.map((entry) => {
|
|
1218
|
+
return de_SchemaMappingSummary(entry, context);
|
|
1219
|
+
});
|
|
1220
|
+
return retVal;
|
|
1221
|
+
};
|
|
1222
|
+
const de_SchemaMappingSummary = (output, context) => {
|
|
1223
|
+
return (0, smithy_client_1.take)(output, {
|
|
1224
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1225
|
+
schemaArn: smithy_client_1.expectString,
|
|
1226
|
+
schemaName: smithy_client_1.expectString,
|
|
1227
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1228
|
+
});
|
|
1229
|
+
};
|
|
1230
|
+
const deserializeMetadata = (output) => ({
|
|
1231
|
+
httpStatusCode: output.statusCode,
|
|
1232
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1233
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1234
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1235
|
+
});
|
|
1236
|
+
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1237
|
+
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
1238
|
+
value !== null &&
|
|
1239
|
+
value !== "" &&
|
|
1240
|
+
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1241
|
+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1242
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1243
|
+
if (encoded.length) {
|
|
1244
|
+
return JSON.parse(encoded);
|
|
1245
|
+
}
|
|
1246
|
+
return {};
|
|
1247
|
+
});
|
|
1248
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
1249
|
+
const value = await parseBody(errorBody, context);
|
|
1250
|
+
value.message = value.message ?? value.Message;
|
|
1251
|
+
return value;
|
|
1252
|
+
};
|
|
1253
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
1254
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1255
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
1256
|
+
let cleanValue = rawValue;
|
|
1257
|
+
if (typeof cleanValue === "number") {
|
|
1258
|
+
cleanValue = cleanValue.toString();
|
|
1259
|
+
}
|
|
1260
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1261
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1262
|
+
}
|
|
1263
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1264
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1265
|
+
}
|
|
1266
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1267
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1268
|
+
}
|
|
1269
|
+
return cleanValue;
|
|
1270
|
+
};
|
|
1271
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1272
|
+
if (headerKey !== undefined) {
|
|
1273
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1274
|
+
}
|
|
1275
|
+
if (data.code !== undefined) {
|
|
1276
|
+
return sanitizeErrorCode(data.code);
|
|
1277
|
+
}
|
|
1278
|
+
if (data["__type"] !== undefined) {
|
|
1279
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1280
|
+
}
|
|
1281
|
+
};
|