@aws-sdk/client-entityresolution 3.489.0 → 3.495.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/EntityResolution.js +1 -65
- package/dist-cjs/EntityResolutionClient.js +1 -43
- package/dist-cjs/commands/CreateIdMappingWorkflowCommand.js +1 -28
- package/dist-cjs/commands/CreateMatchingWorkflowCommand.js +1 -28
- package/dist-cjs/commands/CreateSchemaMappingCommand.js +1 -28
- package/dist-cjs/commands/DeleteIdMappingWorkflowCommand.js +1 -28
- package/dist-cjs/commands/DeleteMatchingWorkflowCommand.js +1 -28
- package/dist-cjs/commands/DeleteSchemaMappingCommand.js +1 -28
- package/dist-cjs/commands/GetIdMappingJobCommand.js +1 -28
- package/dist-cjs/commands/GetIdMappingWorkflowCommand.js +1 -28
- package/dist-cjs/commands/GetMatchIdCommand.js +1 -29
- package/dist-cjs/commands/GetMatchingJobCommand.js +1 -28
- package/dist-cjs/commands/GetMatchingWorkflowCommand.js +1 -28
- package/dist-cjs/commands/GetProviderServiceCommand.js +1 -28
- package/dist-cjs/commands/GetSchemaMappingCommand.js +1 -28
- package/dist-cjs/commands/ListIdMappingJobsCommand.js +1 -28
- package/dist-cjs/commands/ListIdMappingWorkflowsCommand.js +1 -28
- package/dist-cjs/commands/ListMatchingJobsCommand.js +1 -28
- package/dist-cjs/commands/ListMatchingWorkflowsCommand.js +1 -28
- package/dist-cjs/commands/ListProviderServicesCommand.js +1 -28
- package/dist-cjs/commands/ListSchemaMappingsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/StartIdMappingJobCommand.js +1 -28
- package/dist-cjs/commands/StartMatchingJobCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateIdMappingWorkflowCommand.js +1 -28
- package/dist-cjs/commands/UpdateMatchingWorkflowCommand.js +1 -28
- package/dist-cjs/commands/UpdateSchemaMappingCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -30
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2828 -11
- package/dist-cjs/models/EntityResolutionServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -162
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListIdMappingJobsPaginator.js +1 -7
- package/dist-cjs/pagination/ListIdMappingWorkflowsPaginator.js +1 -7
- package/dist-cjs/pagination/ListMatchingJobsPaginator.js +1 -7
- package/dist-cjs/pagination/ListMatchingWorkflowsPaginator.js +1 -7
- package/dist-cjs/pagination/ListProviderServicesPaginator.js +1 -7
- package/dist-cjs/pagination/ListSchemaMappingsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -10
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1935
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,1935 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_TagResourceCommand = exports.de_StartMatchingJobCommand = exports.de_StartIdMappingJobCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSchemaMappingsCommand = exports.de_ListProviderServicesCommand = exports.de_ListMatchingWorkflowsCommand = exports.de_ListMatchingJobsCommand = exports.de_ListIdMappingWorkflowsCommand = exports.de_ListIdMappingJobsCommand = exports.de_GetSchemaMappingCommand = exports.de_GetProviderServiceCommand = exports.de_GetMatchingWorkflowCommand = exports.de_GetMatchingJobCommand = exports.de_GetMatchIdCommand = exports.de_GetIdMappingWorkflowCommand = exports.de_GetIdMappingJobCommand = exports.de_DeleteSchemaMappingCommand = exports.de_DeleteMatchingWorkflowCommand = exports.de_DeleteIdMappingWorkflowCommand = exports.de_CreateSchemaMappingCommand = exports.de_CreateMatchingWorkflowCommand = exports.de_CreateIdMappingWorkflowCommand = exports.se_UpdateSchemaMappingCommand = exports.se_UpdateMatchingWorkflowCommand = exports.se_UpdateIdMappingWorkflowCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartMatchingJobCommand = exports.se_StartIdMappingJobCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSchemaMappingsCommand = exports.se_ListProviderServicesCommand = exports.se_ListMatchingWorkflowsCommand = exports.se_ListMatchingJobsCommand = exports.se_ListIdMappingWorkflowsCommand = exports.se_ListIdMappingJobsCommand = exports.se_GetSchemaMappingCommand = exports.se_GetProviderServiceCommand = exports.se_GetMatchingWorkflowCommand = exports.se_GetMatchingJobCommand = exports.se_GetMatchIdCommand = exports.se_GetIdMappingWorkflowCommand = exports.se_GetIdMappingJobCommand = exports.se_DeleteSchemaMappingCommand = exports.se_DeleteMatchingWorkflowCommand = exports.se_DeleteIdMappingWorkflowCommand = exports.se_CreateSchemaMappingCommand = exports.se_CreateMatchingWorkflowCommand = exports.se_CreateIdMappingWorkflowCommand = void 0;
|
|
4
|
-
exports.de_UpdateSchemaMappingCommand = exports.de_UpdateMatchingWorkflowCommand = exports.de_UpdateIdMappingWorkflowCommand = exports.de_UntagResourceCommand = void 0;
|
|
5
|
-
const core_1 = require("@aws-sdk/core");
|
|
6
|
-
const core_2 = require("@smithy/core");
|
|
7
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
-
const EntityResolutionServiceException_1 = require("../models/EntityResolutionServiceException");
|
|
9
|
-
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const se_CreateIdMappingWorkflowCommand = async (input, context) => {
|
|
11
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
12
|
-
const headers = {
|
|
13
|
-
"content-type": "application/json",
|
|
14
|
-
};
|
|
15
|
-
b.bp("/idmappingworkflows");
|
|
16
|
-
let body;
|
|
17
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
|
-
description: [],
|
|
19
|
-
idMappingTechniques: (_) => se_IdMappingTechniques(_, context),
|
|
20
|
-
inputSourceConfig: (_) => (0, smithy_client_1._json)(_),
|
|
21
|
-
outputSourceConfig: (_) => (0, smithy_client_1._json)(_),
|
|
22
|
-
roleArn: [],
|
|
23
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
24
|
-
workflowName: [],
|
|
25
|
-
}));
|
|
26
|
-
b.m("POST").h(headers).b(body);
|
|
27
|
-
return b.build();
|
|
28
|
-
};
|
|
29
|
-
exports.se_CreateIdMappingWorkflowCommand = se_CreateIdMappingWorkflowCommand;
|
|
30
|
-
const se_CreateMatchingWorkflowCommand = async (input, context) => {
|
|
31
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
32
|
-
const headers = {
|
|
33
|
-
"content-type": "application/json",
|
|
34
|
-
};
|
|
35
|
-
b.bp("/matchingworkflows");
|
|
36
|
-
let body;
|
|
37
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
38
|
-
description: [],
|
|
39
|
-
incrementalRunConfig: (_) => (0, smithy_client_1._json)(_),
|
|
40
|
-
inputSourceConfig: (_) => (0, smithy_client_1._json)(_),
|
|
41
|
-
outputSourceConfig: (_) => (0, smithy_client_1._json)(_),
|
|
42
|
-
resolutionTechniques: (_) => se_ResolutionTechniques(_, context),
|
|
43
|
-
roleArn: [],
|
|
44
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
45
|
-
workflowName: [],
|
|
46
|
-
}));
|
|
47
|
-
b.m("POST").h(headers).b(body);
|
|
48
|
-
return b.build();
|
|
49
|
-
};
|
|
50
|
-
exports.se_CreateMatchingWorkflowCommand = se_CreateMatchingWorkflowCommand;
|
|
51
|
-
const se_CreateSchemaMappingCommand = async (input, context) => {
|
|
52
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
53
|
-
const headers = {
|
|
54
|
-
"content-type": "application/json",
|
|
55
|
-
};
|
|
56
|
-
b.bp("/schemas");
|
|
57
|
-
let body;
|
|
58
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
59
|
-
description: [],
|
|
60
|
-
mappedInputFields: (_) => (0, smithy_client_1._json)(_),
|
|
61
|
-
schemaName: [],
|
|
62
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
63
|
-
}));
|
|
64
|
-
b.m("POST").h(headers).b(body);
|
|
65
|
-
return b.build();
|
|
66
|
-
};
|
|
67
|
-
exports.se_CreateSchemaMappingCommand = se_CreateSchemaMappingCommand;
|
|
68
|
-
const se_DeleteIdMappingWorkflowCommand = async (input, context) => {
|
|
69
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
70
|
-
const headers = {};
|
|
71
|
-
b.bp("/idmappingworkflows/{workflowName}");
|
|
72
|
-
b.p("workflowName", () => input.workflowName, "{workflowName}", false);
|
|
73
|
-
let body;
|
|
74
|
-
b.m("DELETE").h(headers).b(body);
|
|
75
|
-
return b.build();
|
|
76
|
-
};
|
|
77
|
-
exports.se_DeleteIdMappingWorkflowCommand = se_DeleteIdMappingWorkflowCommand;
|
|
78
|
-
const se_DeleteMatchingWorkflowCommand = async (input, context) => {
|
|
79
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
80
|
-
const headers = {};
|
|
81
|
-
b.bp("/matchingworkflows/{workflowName}");
|
|
82
|
-
b.p("workflowName", () => input.workflowName, "{workflowName}", false);
|
|
83
|
-
let body;
|
|
84
|
-
b.m("DELETE").h(headers).b(body);
|
|
85
|
-
return b.build();
|
|
86
|
-
};
|
|
87
|
-
exports.se_DeleteMatchingWorkflowCommand = se_DeleteMatchingWorkflowCommand;
|
|
88
|
-
const se_DeleteSchemaMappingCommand = async (input, context) => {
|
|
89
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
90
|
-
const headers = {};
|
|
91
|
-
b.bp("/schemas/{schemaName}");
|
|
92
|
-
b.p("schemaName", () => input.schemaName, "{schemaName}", false);
|
|
93
|
-
let body;
|
|
94
|
-
b.m("DELETE").h(headers).b(body);
|
|
95
|
-
return b.build();
|
|
96
|
-
};
|
|
97
|
-
exports.se_DeleteSchemaMappingCommand = se_DeleteSchemaMappingCommand;
|
|
98
|
-
const se_GetIdMappingJobCommand = async (input, context) => {
|
|
99
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
100
|
-
const headers = {};
|
|
101
|
-
b.bp("/idmappingworkflows/{workflowName}/jobs/{jobId}");
|
|
102
|
-
b.p("workflowName", () => input.workflowName, "{workflowName}", false);
|
|
103
|
-
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
104
|
-
let body;
|
|
105
|
-
b.m("GET").h(headers).b(body);
|
|
106
|
-
return b.build();
|
|
107
|
-
};
|
|
108
|
-
exports.se_GetIdMappingJobCommand = se_GetIdMappingJobCommand;
|
|
109
|
-
const se_GetIdMappingWorkflowCommand = async (input, context) => {
|
|
110
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
111
|
-
const headers = {};
|
|
112
|
-
b.bp("/idmappingworkflows/{workflowName}");
|
|
113
|
-
b.p("workflowName", () => input.workflowName, "{workflowName}", false);
|
|
114
|
-
let body;
|
|
115
|
-
b.m("GET").h(headers).b(body);
|
|
116
|
-
return b.build();
|
|
117
|
-
};
|
|
118
|
-
exports.se_GetIdMappingWorkflowCommand = se_GetIdMappingWorkflowCommand;
|
|
119
|
-
const se_GetMatchIdCommand = async (input, context) => {
|
|
120
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
121
|
-
const headers = {
|
|
122
|
-
"content-type": "application/json",
|
|
123
|
-
};
|
|
124
|
-
b.bp("/matchingworkflows/{workflowName}/matches");
|
|
125
|
-
b.p("workflowName", () => input.workflowName, "{workflowName}", false);
|
|
126
|
-
let body;
|
|
127
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
128
|
-
record: (_) => (0, smithy_client_1._json)(_),
|
|
129
|
-
}));
|
|
130
|
-
b.m("POST").h(headers).b(body);
|
|
131
|
-
return b.build();
|
|
132
|
-
};
|
|
133
|
-
exports.se_GetMatchIdCommand = se_GetMatchIdCommand;
|
|
134
|
-
const se_GetMatchingJobCommand = async (input, context) => {
|
|
135
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
136
|
-
const headers = {};
|
|
137
|
-
b.bp("/matchingworkflows/{workflowName}/jobs/{jobId}");
|
|
138
|
-
b.p("workflowName", () => input.workflowName, "{workflowName}", false);
|
|
139
|
-
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
140
|
-
let body;
|
|
141
|
-
b.m("GET").h(headers).b(body);
|
|
142
|
-
return b.build();
|
|
143
|
-
};
|
|
144
|
-
exports.se_GetMatchingJobCommand = se_GetMatchingJobCommand;
|
|
145
|
-
const se_GetMatchingWorkflowCommand = async (input, context) => {
|
|
146
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
147
|
-
const headers = {};
|
|
148
|
-
b.bp("/matchingworkflows/{workflowName}");
|
|
149
|
-
b.p("workflowName", () => input.workflowName, "{workflowName}", false);
|
|
150
|
-
let body;
|
|
151
|
-
b.m("GET").h(headers).b(body);
|
|
152
|
-
return b.build();
|
|
153
|
-
};
|
|
154
|
-
exports.se_GetMatchingWorkflowCommand = se_GetMatchingWorkflowCommand;
|
|
155
|
-
const se_GetProviderServiceCommand = async (input, context) => {
|
|
156
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
157
|
-
const headers = {};
|
|
158
|
-
b.bp("/providerservices/{providerName}/{providerServiceName}");
|
|
159
|
-
b.p("providerName", () => input.providerName, "{providerName}", false);
|
|
160
|
-
b.p("providerServiceName", () => input.providerServiceName, "{providerServiceName}", false);
|
|
161
|
-
let body;
|
|
162
|
-
b.m("GET").h(headers).b(body);
|
|
163
|
-
return b.build();
|
|
164
|
-
};
|
|
165
|
-
exports.se_GetProviderServiceCommand = se_GetProviderServiceCommand;
|
|
166
|
-
const se_GetSchemaMappingCommand = async (input, context) => {
|
|
167
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
168
|
-
const headers = {};
|
|
169
|
-
b.bp("/schemas/{schemaName}");
|
|
170
|
-
b.p("schemaName", () => input.schemaName, "{schemaName}", false);
|
|
171
|
-
let body;
|
|
172
|
-
b.m("GET").h(headers).b(body);
|
|
173
|
-
return b.build();
|
|
174
|
-
};
|
|
175
|
-
exports.se_GetSchemaMappingCommand = se_GetSchemaMappingCommand;
|
|
176
|
-
const se_ListIdMappingJobsCommand = async (input, context) => {
|
|
177
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
178
|
-
const headers = {};
|
|
179
|
-
b.bp("/idmappingworkflows/{workflowName}/jobs");
|
|
180
|
-
b.p("workflowName", () => input.workflowName, "{workflowName}", false);
|
|
181
|
-
const query = (0, smithy_client_1.map)({
|
|
182
|
-
[_nT]: [, input[_nT]],
|
|
183
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
184
|
-
});
|
|
185
|
-
let body;
|
|
186
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
187
|
-
return b.build();
|
|
188
|
-
};
|
|
189
|
-
exports.se_ListIdMappingJobsCommand = se_ListIdMappingJobsCommand;
|
|
190
|
-
const se_ListIdMappingWorkflowsCommand = async (input, context) => {
|
|
191
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
192
|
-
const headers = {};
|
|
193
|
-
b.bp("/idmappingworkflows");
|
|
194
|
-
const query = (0, smithy_client_1.map)({
|
|
195
|
-
[_nT]: [, input[_nT]],
|
|
196
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
197
|
-
});
|
|
198
|
-
let body;
|
|
199
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
200
|
-
return b.build();
|
|
201
|
-
};
|
|
202
|
-
exports.se_ListIdMappingWorkflowsCommand = se_ListIdMappingWorkflowsCommand;
|
|
203
|
-
const se_ListMatchingJobsCommand = async (input, context) => {
|
|
204
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
205
|
-
const headers = {};
|
|
206
|
-
b.bp("/matchingworkflows/{workflowName}/jobs");
|
|
207
|
-
b.p("workflowName", () => input.workflowName, "{workflowName}", false);
|
|
208
|
-
const query = (0, smithy_client_1.map)({
|
|
209
|
-
[_nT]: [, input[_nT]],
|
|
210
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
211
|
-
});
|
|
212
|
-
let body;
|
|
213
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
214
|
-
return b.build();
|
|
215
|
-
};
|
|
216
|
-
exports.se_ListMatchingJobsCommand = se_ListMatchingJobsCommand;
|
|
217
|
-
const se_ListMatchingWorkflowsCommand = async (input, context) => {
|
|
218
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
219
|
-
const headers = {};
|
|
220
|
-
b.bp("/matchingworkflows");
|
|
221
|
-
const query = (0, smithy_client_1.map)({
|
|
222
|
-
[_nT]: [, input[_nT]],
|
|
223
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
224
|
-
});
|
|
225
|
-
let body;
|
|
226
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
227
|
-
return b.build();
|
|
228
|
-
};
|
|
229
|
-
exports.se_ListMatchingWorkflowsCommand = se_ListMatchingWorkflowsCommand;
|
|
230
|
-
const se_ListProviderServicesCommand = async (input, context) => {
|
|
231
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
232
|
-
const headers = {};
|
|
233
|
-
b.bp("/providerservices");
|
|
234
|
-
const query = (0, smithy_client_1.map)({
|
|
235
|
-
[_nT]: [, input[_nT]],
|
|
236
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
237
|
-
[_pN]: [, input[_pN]],
|
|
238
|
-
});
|
|
239
|
-
let body;
|
|
240
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
241
|
-
return b.build();
|
|
242
|
-
};
|
|
243
|
-
exports.se_ListProviderServicesCommand = se_ListProviderServicesCommand;
|
|
244
|
-
const se_ListSchemaMappingsCommand = async (input, context) => {
|
|
245
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
246
|
-
const headers = {};
|
|
247
|
-
b.bp("/schemas");
|
|
248
|
-
const query = (0, smithy_client_1.map)({
|
|
249
|
-
[_nT]: [, input[_nT]],
|
|
250
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
251
|
-
});
|
|
252
|
-
let body;
|
|
253
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
254
|
-
return b.build();
|
|
255
|
-
};
|
|
256
|
-
exports.se_ListSchemaMappingsCommand = se_ListSchemaMappingsCommand;
|
|
257
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
258
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
259
|
-
const headers = {};
|
|
260
|
-
b.bp("/tags/{resourceArn}");
|
|
261
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
262
|
-
let body;
|
|
263
|
-
b.m("GET").h(headers).b(body);
|
|
264
|
-
return b.build();
|
|
265
|
-
};
|
|
266
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
267
|
-
const se_StartIdMappingJobCommand = async (input, context) => {
|
|
268
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
269
|
-
const headers = {};
|
|
270
|
-
b.bp("/idmappingworkflows/{workflowName}/jobs");
|
|
271
|
-
b.p("workflowName", () => input.workflowName, "{workflowName}", false);
|
|
272
|
-
let body;
|
|
273
|
-
b.m("POST").h(headers).b(body);
|
|
274
|
-
return b.build();
|
|
275
|
-
};
|
|
276
|
-
exports.se_StartIdMappingJobCommand = se_StartIdMappingJobCommand;
|
|
277
|
-
const se_StartMatchingJobCommand = async (input, context) => {
|
|
278
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
279
|
-
const headers = {};
|
|
280
|
-
b.bp("/matchingworkflows/{workflowName}/jobs");
|
|
281
|
-
b.p("workflowName", () => input.workflowName, "{workflowName}", false);
|
|
282
|
-
let body;
|
|
283
|
-
b.m("POST").h(headers).b(body);
|
|
284
|
-
return b.build();
|
|
285
|
-
};
|
|
286
|
-
exports.se_StartMatchingJobCommand = se_StartMatchingJobCommand;
|
|
287
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
288
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
289
|
-
const headers = {
|
|
290
|
-
"content-type": "application/json",
|
|
291
|
-
};
|
|
292
|
-
b.bp("/tags/{resourceArn}");
|
|
293
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
294
|
-
let body;
|
|
295
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
296
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
297
|
-
}));
|
|
298
|
-
b.m("POST").h(headers).b(body);
|
|
299
|
-
return b.build();
|
|
300
|
-
};
|
|
301
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
302
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
303
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
304
|
-
const headers = {};
|
|
305
|
-
b.bp("/tags/{resourceArn}");
|
|
306
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
307
|
-
const query = (0, smithy_client_1.map)({
|
|
308
|
-
[_tK]: [
|
|
309
|
-
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
310
|
-
() => (input[_tK] || []).map((_entry) => _entry),
|
|
311
|
-
],
|
|
312
|
-
});
|
|
313
|
-
let body;
|
|
314
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
315
|
-
return b.build();
|
|
316
|
-
};
|
|
317
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
318
|
-
const se_UpdateIdMappingWorkflowCommand = async (input, context) => {
|
|
319
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
320
|
-
const headers = {
|
|
321
|
-
"content-type": "application/json",
|
|
322
|
-
};
|
|
323
|
-
b.bp("/idmappingworkflows/{workflowName}");
|
|
324
|
-
b.p("workflowName", () => input.workflowName, "{workflowName}", false);
|
|
325
|
-
let body;
|
|
326
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
327
|
-
description: [],
|
|
328
|
-
idMappingTechniques: (_) => se_IdMappingTechniques(_, context),
|
|
329
|
-
inputSourceConfig: (_) => (0, smithy_client_1._json)(_),
|
|
330
|
-
outputSourceConfig: (_) => (0, smithy_client_1._json)(_),
|
|
331
|
-
roleArn: [],
|
|
332
|
-
}));
|
|
333
|
-
b.m("PUT").h(headers).b(body);
|
|
334
|
-
return b.build();
|
|
335
|
-
};
|
|
336
|
-
exports.se_UpdateIdMappingWorkflowCommand = se_UpdateIdMappingWorkflowCommand;
|
|
337
|
-
const se_UpdateMatchingWorkflowCommand = async (input, context) => {
|
|
338
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
339
|
-
const headers = {
|
|
340
|
-
"content-type": "application/json",
|
|
341
|
-
};
|
|
342
|
-
b.bp("/matchingworkflows/{workflowName}");
|
|
343
|
-
b.p("workflowName", () => input.workflowName, "{workflowName}", false);
|
|
344
|
-
let body;
|
|
345
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
346
|
-
description: [],
|
|
347
|
-
incrementalRunConfig: (_) => (0, smithy_client_1._json)(_),
|
|
348
|
-
inputSourceConfig: (_) => (0, smithy_client_1._json)(_),
|
|
349
|
-
outputSourceConfig: (_) => (0, smithy_client_1._json)(_),
|
|
350
|
-
resolutionTechniques: (_) => se_ResolutionTechniques(_, context),
|
|
351
|
-
roleArn: [],
|
|
352
|
-
}));
|
|
353
|
-
b.m("PUT").h(headers).b(body);
|
|
354
|
-
return b.build();
|
|
355
|
-
};
|
|
356
|
-
exports.se_UpdateMatchingWorkflowCommand = se_UpdateMatchingWorkflowCommand;
|
|
357
|
-
const se_UpdateSchemaMappingCommand = async (input, context) => {
|
|
358
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
359
|
-
const headers = {
|
|
360
|
-
"content-type": "application/json",
|
|
361
|
-
};
|
|
362
|
-
b.bp("/schemas/{schemaName}");
|
|
363
|
-
b.p("schemaName", () => input.schemaName, "{schemaName}", false);
|
|
364
|
-
let body;
|
|
365
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
366
|
-
description: [],
|
|
367
|
-
mappedInputFields: (_) => (0, smithy_client_1._json)(_),
|
|
368
|
-
}));
|
|
369
|
-
b.m("PUT").h(headers).b(body);
|
|
370
|
-
return b.build();
|
|
371
|
-
};
|
|
372
|
-
exports.se_UpdateSchemaMappingCommand = se_UpdateSchemaMappingCommand;
|
|
373
|
-
const de_CreateIdMappingWorkflowCommand = async (output, context) => {
|
|
374
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
375
|
-
return de_CreateIdMappingWorkflowCommandError(output, context);
|
|
376
|
-
}
|
|
377
|
-
const contents = (0, smithy_client_1.map)({
|
|
378
|
-
$metadata: deserializeMetadata(output),
|
|
379
|
-
});
|
|
380
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
381
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
382
|
-
description: smithy_client_1.expectString,
|
|
383
|
-
idMappingTechniques: (_) => de_IdMappingTechniques(_, context),
|
|
384
|
-
inputSourceConfig: smithy_client_1._json,
|
|
385
|
-
outputSourceConfig: smithy_client_1._json,
|
|
386
|
-
roleArn: smithy_client_1.expectString,
|
|
387
|
-
workflowArn: smithy_client_1.expectString,
|
|
388
|
-
workflowName: smithy_client_1.expectString,
|
|
389
|
-
});
|
|
390
|
-
Object.assign(contents, doc);
|
|
391
|
-
return contents;
|
|
392
|
-
};
|
|
393
|
-
exports.de_CreateIdMappingWorkflowCommand = de_CreateIdMappingWorkflowCommand;
|
|
394
|
-
const de_CreateIdMappingWorkflowCommandError = async (output, context) => {
|
|
395
|
-
const parsedOutput = {
|
|
396
|
-
...output,
|
|
397
|
-
body: await parseErrorBody(output.body, context),
|
|
398
|
-
};
|
|
399
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
400
|
-
switch (errorCode) {
|
|
401
|
-
case "AccessDeniedException":
|
|
402
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
403
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
404
|
-
case "ConflictException":
|
|
405
|
-
case "com.amazonaws.entityresolution#ConflictException":
|
|
406
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
407
|
-
case "ExceedsLimitException":
|
|
408
|
-
case "com.amazonaws.entityresolution#ExceedsLimitException":
|
|
409
|
-
throw await de_ExceedsLimitExceptionRes(parsedOutput, context);
|
|
410
|
-
case "InternalServerException":
|
|
411
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
412
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
413
|
-
case "ThrottlingException":
|
|
414
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
415
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
416
|
-
case "ValidationException":
|
|
417
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
418
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
419
|
-
default:
|
|
420
|
-
const parsedBody = parsedOutput.body;
|
|
421
|
-
return throwDefaultError({
|
|
422
|
-
output,
|
|
423
|
-
parsedBody,
|
|
424
|
-
errorCode,
|
|
425
|
-
});
|
|
426
|
-
}
|
|
427
|
-
};
|
|
428
|
-
const de_CreateMatchingWorkflowCommand = async (output, context) => {
|
|
429
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
430
|
-
return de_CreateMatchingWorkflowCommandError(output, context);
|
|
431
|
-
}
|
|
432
|
-
const contents = (0, smithy_client_1.map)({
|
|
433
|
-
$metadata: deserializeMetadata(output),
|
|
434
|
-
});
|
|
435
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
436
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
437
|
-
description: smithy_client_1.expectString,
|
|
438
|
-
incrementalRunConfig: smithy_client_1._json,
|
|
439
|
-
inputSourceConfig: smithy_client_1._json,
|
|
440
|
-
outputSourceConfig: smithy_client_1._json,
|
|
441
|
-
resolutionTechniques: (_) => de_ResolutionTechniques(_, context),
|
|
442
|
-
roleArn: smithy_client_1.expectString,
|
|
443
|
-
workflowArn: smithy_client_1.expectString,
|
|
444
|
-
workflowName: smithy_client_1.expectString,
|
|
445
|
-
});
|
|
446
|
-
Object.assign(contents, doc);
|
|
447
|
-
return contents;
|
|
448
|
-
};
|
|
449
|
-
exports.de_CreateMatchingWorkflowCommand = de_CreateMatchingWorkflowCommand;
|
|
450
|
-
const de_CreateMatchingWorkflowCommandError = async (output, context) => {
|
|
451
|
-
const parsedOutput = {
|
|
452
|
-
...output,
|
|
453
|
-
body: await parseErrorBody(output.body, context),
|
|
454
|
-
};
|
|
455
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
456
|
-
switch (errorCode) {
|
|
457
|
-
case "AccessDeniedException":
|
|
458
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
459
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
460
|
-
case "ConflictException":
|
|
461
|
-
case "com.amazonaws.entityresolution#ConflictException":
|
|
462
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
463
|
-
case "ExceedsLimitException":
|
|
464
|
-
case "com.amazonaws.entityresolution#ExceedsLimitException":
|
|
465
|
-
throw await de_ExceedsLimitExceptionRes(parsedOutput, context);
|
|
466
|
-
case "InternalServerException":
|
|
467
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
468
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
469
|
-
case "ThrottlingException":
|
|
470
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
471
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
472
|
-
case "ValidationException":
|
|
473
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
474
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
475
|
-
default:
|
|
476
|
-
const parsedBody = parsedOutput.body;
|
|
477
|
-
return throwDefaultError({
|
|
478
|
-
output,
|
|
479
|
-
parsedBody,
|
|
480
|
-
errorCode,
|
|
481
|
-
});
|
|
482
|
-
}
|
|
483
|
-
};
|
|
484
|
-
const de_CreateSchemaMappingCommand = async (output, context) => {
|
|
485
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
486
|
-
return de_CreateSchemaMappingCommandError(output, context);
|
|
487
|
-
}
|
|
488
|
-
const contents = (0, smithy_client_1.map)({
|
|
489
|
-
$metadata: deserializeMetadata(output),
|
|
490
|
-
});
|
|
491
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
492
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
493
|
-
description: smithy_client_1.expectString,
|
|
494
|
-
mappedInputFields: smithy_client_1._json,
|
|
495
|
-
schemaArn: smithy_client_1.expectString,
|
|
496
|
-
schemaName: smithy_client_1.expectString,
|
|
497
|
-
});
|
|
498
|
-
Object.assign(contents, doc);
|
|
499
|
-
return contents;
|
|
500
|
-
};
|
|
501
|
-
exports.de_CreateSchemaMappingCommand = de_CreateSchemaMappingCommand;
|
|
502
|
-
const de_CreateSchemaMappingCommandError = async (output, context) => {
|
|
503
|
-
const parsedOutput = {
|
|
504
|
-
...output,
|
|
505
|
-
body: await parseErrorBody(output.body, context),
|
|
506
|
-
};
|
|
507
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
508
|
-
switch (errorCode) {
|
|
509
|
-
case "AccessDeniedException":
|
|
510
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
511
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
512
|
-
case "ConflictException":
|
|
513
|
-
case "com.amazonaws.entityresolution#ConflictException":
|
|
514
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
515
|
-
case "ExceedsLimitException":
|
|
516
|
-
case "com.amazonaws.entityresolution#ExceedsLimitException":
|
|
517
|
-
throw await de_ExceedsLimitExceptionRes(parsedOutput, context);
|
|
518
|
-
case "InternalServerException":
|
|
519
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
520
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
521
|
-
case "ThrottlingException":
|
|
522
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
523
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
524
|
-
case "ValidationException":
|
|
525
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
526
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
527
|
-
default:
|
|
528
|
-
const parsedBody = parsedOutput.body;
|
|
529
|
-
return throwDefaultError({
|
|
530
|
-
output,
|
|
531
|
-
parsedBody,
|
|
532
|
-
errorCode,
|
|
533
|
-
});
|
|
534
|
-
}
|
|
535
|
-
};
|
|
536
|
-
const de_DeleteIdMappingWorkflowCommand = async (output, context) => {
|
|
537
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
538
|
-
return de_DeleteIdMappingWorkflowCommandError(output, context);
|
|
539
|
-
}
|
|
540
|
-
const contents = (0, smithy_client_1.map)({
|
|
541
|
-
$metadata: deserializeMetadata(output),
|
|
542
|
-
});
|
|
543
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
544
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
545
|
-
message: smithy_client_1.expectString,
|
|
546
|
-
});
|
|
547
|
-
Object.assign(contents, doc);
|
|
548
|
-
return contents;
|
|
549
|
-
};
|
|
550
|
-
exports.de_DeleteIdMappingWorkflowCommand = de_DeleteIdMappingWorkflowCommand;
|
|
551
|
-
const de_DeleteIdMappingWorkflowCommandError = async (output, context) => {
|
|
552
|
-
const parsedOutput = {
|
|
553
|
-
...output,
|
|
554
|
-
body: await parseErrorBody(output.body, context),
|
|
555
|
-
};
|
|
556
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
557
|
-
switch (errorCode) {
|
|
558
|
-
case "AccessDeniedException":
|
|
559
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
560
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
561
|
-
case "InternalServerException":
|
|
562
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
563
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
564
|
-
case "ThrottlingException":
|
|
565
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
566
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
567
|
-
case "ValidationException":
|
|
568
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
569
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
570
|
-
default:
|
|
571
|
-
const parsedBody = parsedOutput.body;
|
|
572
|
-
return throwDefaultError({
|
|
573
|
-
output,
|
|
574
|
-
parsedBody,
|
|
575
|
-
errorCode,
|
|
576
|
-
});
|
|
577
|
-
}
|
|
578
|
-
};
|
|
579
|
-
const de_DeleteMatchingWorkflowCommand = async (output, context) => {
|
|
580
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
581
|
-
return de_DeleteMatchingWorkflowCommandError(output, context);
|
|
582
|
-
}
|
|
583
|
-
const contents = (0, smithy_client_1.map)({
|
|
584
|
-
$metadata: deserializeMetadata(output),
|
|
585
|
-
});
|
|
586
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
587
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
588
|
-
message: smithy_client_1.expectString,
|
|
589
|
-
});
|
|
590
|
-
Object.assign(contents, doc);
|
|
591
|
-
return contents;
|
|
592
|
-
};
|
|
593
|
-
exports.de_DeleteMatchingWorkflowCommand = de_DeleteMatchingWorkflowCommand;
|
|
594
|
-
const de_DeleteMatchingWorkflowCommandError = async (output, context) => {
|
|
595
|
-
const parsedOutput = {
|
|
596
|
-
...output,
|
|
597
|
-
body: await parseErrorBody(output.body, context),
|
|
598
|
-
};
|
|
599
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
600
|
-
switch (errorCode) {
|
|
601
|
-
case "AccessDeniedException":
|
|
602
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
603
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
604
|
-
case "InternalServerException":
|
|
605
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
606
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
607
|
-
case "ThrottlingException":
|
|
608
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
609
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
610
|
-
case "ValidationException":
|
|
611
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
612
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
613
|
-
default:
|
|
614
|
-
const parsedBody = parsedOutput.body;
|
|
615
|
-
return throwDefaultError({
|
|
616
|
-
output,
|
|
617
|
-
parsedBody,
|
|
618
|
-
errorCode,
|
|
619
|
-
});
|
|
620
|
-
}
|
|
621
|
-
};
|
|
622
|
-
const de_DeleteSchemaMappingCommand = async (output, context) => {
|
|
623
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
624
|
-
return de_DeleteSchemaMappingCommandError(output, context);
|
|
625
|
-
}
|
|
626
|
-
const contents = (0, smithy_client_1.map)({
|
|
627
|
-
$metadata: deserializeMetadata(output),
|
|
628
|
-
});
|
|
629
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
630
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
631
|
-
message: smithy_client_1.expectString,
|
|
632
|
-
});
|
|
633
|
-
Object.assign(contents, doc);
|
|
634
|
-
return contents;
|
|
635
|
-
};
|
|
636
|
-
exports.de_DeleteSchemaMappingCommand = de_DeleteSchemaMappingCommand;
|
|
637
|
-
const de_DeleteSchemaMappingCommandError = async (output, context) => {
|
|
638
|
-
const parsedOutput = {
|
|
639
|
-
...output,
|
|
640
|
-
body: await parseErrorBody(output.body, context),
|
|
641
|
-
};
|
|
642
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
643
|
-
switch (errorCode) {
|
|
644
|
-
case "AccessDeniedException":
|
|
645
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
646
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
647
|
-
case "ConflictException":
|
|
648
|
-
case "com.amazonaws.entityresolution#ConflictException":
|
|
649
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
650
|
-
case "InternalServerException":
|
|
651
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
652
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
653
|
-
case "ThrottlingException":
|
|
654
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
655
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
656
|
-
case "ValidationException":
|
|
657
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
658
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
659
|
-
default:
|
|
660
|
-
const parsedBody = parsedOutput.body;
|
|
661
|
-
return throwDefaultError({
|
|
662
|
-
output,
|
|
663
|
-
parsedBody,
|
|
664
|
-
errorCode,
|
|
665
|
-
});
|
|
666
|
-
}
|
|
667
|
-
};
|
|
668
|
-
const de_GetIdMappingJobCommand = async (output, context) => {
|
|
669
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
670
|
-
return de_GetIdMappingJobCommandError(output, context);
|
|
671
|
-
}
|
|
672
|
-
const contents = (0, smithy_client_1.map)({
|
|
673
|
-
$metadata: deserializeMetadata(output),
|
|
674
|
-
});
|
|
675
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
676
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
677
|
-
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
678
|
-
errorDetails: smithy_client_1._json,
|
|
679
|
-
jobId: smithy_client_1.expectString,
|
|
680
|
-
metrics: smithy_client_1._json,
|
|
681
|
-
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
682
|
-
status: smithy_client_1.expectString,
|
|
683
|
-
});
|
|
684
|
-
Object.assign(contents, doc);
|
|
685
|
-
return contents;
|
|
686
|
-
};
|
|
687
|
-
exports.de_GetIdMappingJobCommand = de_GetIdMappingJobCommand;
|
|
688
|
-
const de_GetIdMappingJobCommandError = async (output, context) => {
|
|
689
|
-
const parsedOutput = {
|
|
690
|
-
...output,
|
|
691
|
-
body: await parseErrorBody(output.body, context),
|
|
692
|
-
};
|
|
693
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
694
|
-
switch (errorCode) {
|
|
695
|
-
case "AccessDeniedException":
|
|
696
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
697
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
698
|
-
case "InternalServerException":
|
|
699
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
700
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
701
|
-
case "ResourceNotFoundException":
|
|
702
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
703
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
704
|
-
case "ThrottlingException":
|
|
705
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
706
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
707
|
-
case "ValidationException":
|
|
708
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
709
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
710
|
-
default:
|
|
711
|
-
const parsedBody = parsedOutput.body;
|
|
712
|
-
return throwDefaultError({
|
|
713
|
-
output,
|
|
714
|
-
parsedBody,
|
|
715
|
-
errorCode,
|
|
716
|
-
});
|
|
717
|
-
}
|
|
718
|
-
};
|
|
719
|
-
const de_GetIdMappingWorkflowCommand = async (output, context) => {
|
|
720
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
721
|
-
return de_GetIdMappingWorkflowCommandError(output, context);
|
|
722
|
-
}
|
|
723
|
-
const contents = (0, smithy_client_1.map)({
|
|
724
|
-
$metadata: deserializeMetadata(output),
|
|
725
|
-
});
|
|
726
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
727
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
728
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
729
|
-
description: smithy_client_1.expectString,
|
|
730
|
-
idMappingTechniques: (_) => de_IdMappingTechniques(_, context),
|
|
731
|
-
inputSourceConfig: smithy_client_1._json,
|
|
732
|
-
outputSourceConfig: smithy_client_1._json,
|
|
733
|
-
roleArn: smithy_client_1.expectString,
|
|
734
|
-
tags: smithy_client_1._json,
|
|
735
|
-
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
736
|
-
workflowArn: smithy_client_1.expectString,
|
|
737
|
-
workflowName: smithy_client_1.expectString,
|
|
738
|
-
});
|
|
739
|
-
Object.assign(contents, doc);
|
|
740
|
-
return contents;
|
|
741
|
-
};
|
|
742
|
-
exports.de_GetIdMappingWorkflowCommand = de_GetIdMappingWorkflowCommand;
|
|
743
|
-
const de_GetIdMappingWorkflowCommandError = async (output, context) => {
|
|
744
|
-
const parsedOutput = {
|
|
745
|
-
...output,
|
|
746
|
-
body: await parseErrorBody(output.body, context),
|
|
747
|
-
};
|
|
748
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
749
|
-
switch (errorCode) {
|
|
750
|
-
case "AccessDeniedException":
|
|
751
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
752
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
753
|
-
case "InternalServerException":
|
|
754
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
755
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
756
|
-
case "ResourceNotFoundException":
|
|
757
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
758
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
759
|
-
case "ThrottlingException":
|
|
760
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
761
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
762
|
-
case "ValidationException":
|
|
763
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
764
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
765
|
-
default:
|
|
766
|
-
const parsedBody = parsedOutput.body;
|
|
767
|
-
return throwDefaultError({
|
|
768
|
-
output,
|
|
769
|
-
parsedBody,
|
|
770
|
-
errorCode,
|
|
771
|
-
});
|
|
772
|
-
}
|
|
773
|
-
};
|
|
774
|
-
const de_GetMatchIdCommand = async (output, context) => {
|
|
775
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
776
|
-
return de_GetMatchIdCommandError(output, context);
|
|
777
|
-
}
|
|
778
|
-
const contents = (0, smithy_client_1.map)({
|
|
779
|
-
$metadata: deserializeMetadata(output),
|
|
780
|
-
});
|
|
781
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
782
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
783
|
-
matchId: smithy_client_1.expectString,
|
|
784
|
-
});
|
|
785
|
-
Object.assign(contents, doc);
|
|
786
|
-
return contents;
|
|
787
|
-
};
|
|
788
|
-
exports.de_GetMatchIdCommand = de_GetMatchIdCommand;
|
|
789
|
-
const de_GetMatchIdCommandError = async (output, context) => {
|
|
790
|
-
const parsedOutput = {
|
|
791
|
-
...output,
|
|
792
|
-
body: await parseErrorBody(output.body, context),
|
|
793
|
-
};
|
|
794
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
795
|
-
switch (errorCode) {
|
|
796
|
-
case "AccessDeniedException":
|
|
797
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
798
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
799
|
-
case "InternalServerException":
|
|
800
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
801
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
802
|
-
case "ResourceNotFoundException":
|
|
803
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
804
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
805
|
-
case "ThrottlingException":
|
|
806
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
807
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
808
|
-
case "ValidationException":
|
|
809
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
810
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
811
|
-
default:
|
|
812
|
-
const parsedBody = parsedOutput.body;
|
|
813
|
-
return throwDefaultError({
|
|
814
|
-
output,
|
|
815
|
-
parsedBody,
|
|
816
|
-
errorCode,
|
|
817
|
-
});
|
|
818
|
-
}
|
|
819
|
-
};
|
|
820
|
-
const de_GetMatchingJobCommand = async (output, context) => {
|
|
821
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
822
|
-
return de_GetMatchingJobCommandError(output, context);
|
|
823
|
-
}
|
|
824
|
-
const contents = (0, smithy_client_1.map)({
|
|
825
|
-
$metadata: deserializeMetadata(output),
|
|
826
|
-
});
|
|
827
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
828
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
829
|
-
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
830
|
-
errorDetails: smithy_client_1._json,
|
|
831
|
-
jobId: smithy_client_1.expectString,
|
|
832
|
-
metrics: smithy_client_1._json,
|
|
833
|
-
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
834
|
-
status: smithy_client_1.expectString,
|
|
835
|
-
});
|
|
836
|
-
Object.assign(contents, doc);
|
|
837
|
-
return contents;
|
|
838
|
-
};
|
|
839
|
-
exports.de_GetMatchingJobCommand = de_GetMatchingJobCommand;
|
|
840
|
-
const de_GetMatchingJobCommandError = async (output, context) => {
|
|
841
|
-
const parsedOutput = {
|
|
842
|
-
...output,
|
|
843
|
-
body: await parseErrorBody(output.body, context),
|
|
844
|
-
};
|
|
845
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
846
|
-
switch (errorCode) {
|
|
847
|
-
case "AccessDeniedException":
|
|
848
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
849
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
850
|
-
case "InternalServerException":
|
|
851
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
852
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
853
|
-
case "ResourceNotFoundException":
|
|
854
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
855
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
856
|
-
case "ThrottlingException":
|
|
857
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
858
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
859
|
-
case "ValidationException":
|
|
860
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
861
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
862
|
-
default:
|
|
863
|
-
const parsedBody = parsedOutput.body;
|
|
864
|
-
return throwDefaultError({
|
|
865
|
-
output,
|
|
866
|
-
parsedBody,
|
|
867
|
-
errorCode,
|
|
868
|
-
});
|
|
869
|
-
}
|
|
870
|
-
};
|
|
871
|
-
const de_GetMatchingWorkflowCommand = async (output, context) => {
|
|
872
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
873
|
-
return de_GetMatchingWorkflowCommandError(output, context);
|
|
874
|
-
}
|
|
875
|
-
const contents = (0, smithy_client_1.map)({
|
|
876
|
-
$metadata: deserializeMetadata(output),
|
|
877
|
-
});
|
|
878
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
879
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
880
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
881
|
-
description: smithy_client_1.expectString,
|
|
882
|
-
incrementalRunConfig: smithy_client_1._json,
|
|
883
|
-
inputSourceConfig: smithy_client_1._json,
|
|
884
|
-
outputSourceConfig: smithy_client_1._json,
|
|
885
|
-
resolutionTechniques: (_) => de_ResolutionTechniques(_, context),
|
|
886
|
-
roleArn: smithy_client_1.expectString,
|
|
887
|
-
tags: smithy_client_1._json,
|
|
888
|
-
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
889
|
-
workflowArn: smithy_client_1.expectString,
|
|
890
|
-
workflowName: smithy_client_1.expectString,
|
|
891
|
-
});
|
|
892
|
-
Object.assign(contents, doc);
|
|
893
|
-
return contents;
|
|
894
|
-
};
|
|
895
|
-
exports.de_GetMatchingWorkflowCommand = de_GetMatchingWorkflowCommand;
|
|
896
|
-
const de_GetMatchingWorkflowCommandError = async (output, context) => {
|
|
897
|
-
const parsedOutput = {
|
|
898
|
-
...output,
|
|
899
|
-
body: await parseErrorBody(output.body, context),
|
|
900
|
-
};
|
|
901
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
902
|
-
switch (errorCode) {
|
|
903
|
-
case "AccessDeniedException":
|
|
904
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
905
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
906
|
-
case "InternalServerException":
|
|
907
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
908
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
909
|
-
case "ResourceNotFoundException":
|
|
910
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
911
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
912
|
-
case "ThrottlingException":
|
|
913
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
914
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
915
|
-
case "ValidationException":
|
|
916
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
917
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
918
|
-
default:
|
|
919
|
-
const parsedBody = parsedOutput.body;
|
|
920
|
-
return throwDefaultError({
|
|
921
|
-
output,
|
|
922
|
-
parsedBody,
|
|
923
|
-
errorCode,
|
|
924
|
-
});
|
|
925
|
-
}
|
|
926
|
-
};
|
|
927
|
-
const de_GetProviderServiceCommand = async (output, context) => {
|
|
928
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
929
|
-
return de_GetProviderServiceCommandError(output, context);
|
|
930
|
-
}
|
|
931
|
-
const contents = (0, smithy_client_1.map)({
|
|
932
|
-
$metadata: deserializeMetadata(output),
|
|
933
|
-
});
|
|
934
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
935
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
936
|
-
anonymizedOutput: smithy_client_1.expectBoolean,
|
|
937
|
-
providerConfigurationDefinition: (_) => de_Document(_, context),
|
|
938
|
-
providerEndpointConfiguration: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
939
|
-
providerEntityOutputDefinition: (_) => de_Document(_, context),
|
|
940
|
-
providerIntermediateDataAccessConfiguration: smithy_client_1._json,
|
|
941
|
-
providerName: smithy_client_1.expectString,
|
|
942
|
-
providerServiceArn: smithy_client_1.expectString,
|
|
943
|
-
providerServiceDisplayName: smithy_client_1.expectString,
|
|
944
|
-
providerServiceName: smithy_client_1.expectString,
|
|
945
|
-
providerServiceType: smithy_client_1.expectString,
|
|
946
|
-
});
|
|
947
|
-
Object.assign(contents, doc);
|
|
948
|
-
return contents;
|
|
949
|
-
};
|
|
950
|
-
exports.de_GetProviderServiceCommand = de_GetProviderServiceCommand;
|
|
951
|
-
const de_GetProviderServiceCommandError = async (output, context) => {
|
|
952
|
-
const parsedOutput = {
|
|
953
|
-
...output,
|
|
954
|
-
body: await parseErrorBody(output.body, context),
|
|
955
|
-
};
|
|
956
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
957
|
-
switch (errorCode) {
|
|
958
|
-
case "AccessDeniedException":
|
|
959
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
960
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
961
|
-
case "InternalServerException":
|
|
962
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
963
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
964
|
-
case "ResourceNotFoundException":
|
|
965
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
966
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
967
|
-
case "ThrottlingException":
|
|
968
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
969
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
970
|
-
case "ValidationException":
|
|
971
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
972
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
973
|
-
default:
|
|
974
|
-
const parsedBody = parsedOutput.body;
|
|
975
|
-
return throwDefaultError({
|
|
976
|
-
output,
|
|
977
|
-
parsedBody,
|
|
978
|
-
errorCode,
|
|
979
|
-
});
|
|
980
|
-
}
|
|
981
|
-
};
|
|
982
|
-
const de_GetSchemaMappingCommand = async (output, context) => {
|
|
983
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
984
|
-
return de_GetSchemaMappingCommandError(output, context);
|
|
985
|
-
}
|
|
986
|
-
const contents = (0, smithy_client_1.map)({
|
|
987
|
-
$metadata: deserializeMetadata(output),
|
|
988
|
-
});
|
|
989
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
990
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
991
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
992
|
-
description: smithy_client_1.expectString,
|
|
993
|
-
hasWorkflows: smithy_client_1.expectBoolean,
|
|
994
|
-
mappedInputFields: smithy_client_1._json,
|
|
995
|
-
schemaArn: smithy_client_1.expectString,
|
|
996
|
-
schemaName: smithy_client_1.expectString,
|
|
997
|
-
tags: smithy_client_1._json,
|
|
998
|
-
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
999
|
-
});
|
|
1000
|
-
Object.assign(contents, doc);
|
|
1001
|
-
return contents;
|
|
1002
|
-
};
|
|
1003
|
-
exports.de_GetSchemaMappingCommand = de_GetSchemaMappingCommand;
|
|
1004
|
-
const de_GetSchemaMappingCommandError = async (output, context) => {
|
|
1005
|
-
const parsedOutput = {
|
|
1006
|
-
...output,
|
|
1007
|
-
body: await parseErrorBody(output.body, context),
|
|
1008
|
-
};
|
|
1009
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1010
|
-
switch (errorCode) {
|
|
1011
|
-
case "AccessDeniedException":
|
|
1012
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
1013
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1014
|
-
case "InternalServerException":
|
|
1015
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1016
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1017
|
-
case "ResourceNotFoundException":
|
|
1018
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
1019
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1020
|
-
case "ThrottlingException":
|
|
1021
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
1022
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1023
|
-
case "ValidationException":
|
|
1024
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
1025
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1026
|
-
default:
|
|
1027
|
-
const parsedBody = parsedOutput.body;
|
|
1028
|
-
return throwDefaultError({
|
|
1029
|
-
output,
|
|
1030
|
-
parsedBody,
|
|
1031
|
-
errorCode,
|
|
1032
|
-
});
|
|
1033
|
-
}
|
|
1034
|
-
};
|
|
1035
|
-
const de_ListIdMappingJobsCommand = async (output, context) => {
|
|
1036
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1037
|
-
return de_ListIdMappingJobsCommandError(output, context);
|
|
1038
|
-
}
|
|
1039
|
-
const contents = (0, smithy_client_1.map)({
|
|
1040
|
-
$metadata: deserializeMetadata(output),
|
|
1041
|
-
});
|
|
1042
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1043
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1044
|
-
jobs: (_) => de_JobList(_, context),
|
|
1045
|
-
nextToken: smithy_client_1.expectString,
|
|
1046
|
-
});
|
|
1047
|
-
Object.assign(contents, doc);
|
|
1048
|
-
return contents;
|
|
1049
|
-
};
|
|
1050
|
-
exports.de_ListIdMappingJobsCommand = de_ListIdMappingJobsCommand;
|
|
1051
|
-
const de_ListIdMappingJobsCommandError = async (output, context) => {
|
|
1052
|
-
const parsedOutput = {
|
|
1053
|
-
...output,
|
|
1054
|
-
body: await parseErrorBody(output.body, context),
|
|
1055
|
-
};
|
|
1056
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1057
|
-
switch (errorCode) {
|
|
1058
|
-
case "AccessDeniedException":
|
|
1059
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
1060
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1061
|
-
case "InternalServerException":
|
|
1062
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1063
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1064
|
-
case "ResourceNotFoundException":
|
|
1065
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
1066
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1067
|
-
case "ThrottlingException":
|
|
1068
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
1069
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1070
|
-
case "ValidationException":
|
|
1071
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
1072
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1073
|
-
default:
|
|
1074
|
-
const parsedBody = parsedOutput.body;
|
|
1075
|
-
return throwDefaultError({
|
|
1076
|
-
output,
|
|
1077
|
-
parsedBody,
|
|
1078
|
-
errorCode,
|
|
1079
|
-
});
|
|
1080
|
-
}
|
|
1081
|
-
};
|
|
1082
|
-
const de_ListIdMappingWorkflowsCommand = async (output, context) => {
|
|
1083
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1084
|
-
return de_ListIdMappingWorkflowsCommandError(output, context);
|
|
1085
|
-
}
|
|
1086
|
-
const contents = (0, smithy_client_1.map)({
|
|
1087
|
-
$metadata: deserializeMetadata(output),
|
|
1088
|
-
});
|
|
1089
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1090
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1091
|
-
nextToken: smithy_client_1.expectString,
|
|
1092
|
-
workflowSummaries: (_) => de_IdMappingWorkflowList(_, context),
|
|
1093
|
-
});
|
|
1094
|
-
Object.assign(contents, doc);
|
|
1095
|
-
return contents;
|
|
1096
|
-
};
|
|
1097
|
-
exports.de_ListIdMappingWorkflowsCommand = de_ListIdMappingWorkflowsCommand;
|
|
1098
|
-
const de_ListIdMappingWorkflowsCommandError = async (output, context) => {
|
|
1099
|
-
const parsedOutput = {
|
|
1100
|
-
...output,
|
|
1101
|
-
body: await parseErrorBody(output.body, context),
|
|
1102
|
-
};
|
|
1103
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1104
|
-
switch (errorCode) {
|
|
1105
|
-
case "AccessDeniedException":
|
|
1106
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
1107
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1108
|
-
case "InternalServerException":
|
|
1109
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1110
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1111
|
-
case "ThrottlingException":
|
|
1112
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
1113
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "ValidationException":
|
|
1115
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
1116
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1117
|
-
default:
|
|
1118
|
-
const parsedBody = parsedOutput.body;
|
|
1119
|
-
return throwDefaultError({
|
|
1120
|
-
output,
|
|
1121
|
-
parsedBody,
|
|
1122
|
-
errorCode,
|
|
1123
|
-
});
|
|
1124
|
-
}
|
|
1125
|
-
};
|
|
1126
|
-
const de_ListMatchingJobsCommand = async (output, context) => {
|
|
1127
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1128
|
-
return de_ListMatchingJobsCommandError(output, context);
|
|
1129
|
-
}
|
|
1130
|
-
const contents = (0, smithy_client_1.map)({
|
|
1131
|
-
$metadata: deserializeMetadata(output),
|
|
1132
|
-
});
|
|
1133
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1134
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1135
|
-
jobs: (_) => de_JobList(_, context),
|
|
1136
|
-
nextToken: smithy_client_1.expectString,
|
|
1137
|
-
});
|
|
1138
|
-
Object.assign(contents, doc);
|
|
1139
|
-
return contents;
|
|
1140
|
-
};
|
|
1141
|
-
exports.de_ListMatchingJobsCommand = de_ListMatchingJobsCommand;
|
|
1142
|
-
const de_ListMatchingJobsCommandError = async (output, context) => {
|
|
1143
|
-
const parsedOutput = {
|
|
1144
|
-
...output,
|
|
1145
|
-
body: await parseErrorBody(output.body, context),
|
|
1146
|
-
};
|
|
1147
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1148
|
-
switch (errorCode) {
|
|
1149
|
-
case "AccessDeniedException":
|
|
1150
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
1151
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1152
|
-
case "InternalServerException":
|
|
1153
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1154
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1155
|
-
case "ResourceNotFoundException":
|
|
1156
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
1157
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1158
|
-
case "ThrottlingException":
|
|
1159
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
1160
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1161
|
-
case "ValidationException":
|
|
1162
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
1163
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1164
|
-
default:
|
|
1165
|
-
const parsedBody = parsedOutput.body;
|
|
1166
|
-
return throwDefaultError({
|
|
1167
|
-
output,
|
|
1168
|
-
parsedBody,
|
|
1169
|
-
errorCode,
|
|
1170
|
-
});
|
|
1171
|
-
}
|
|
1172
|
-
};
|
|
1173
|
-
const de_ListMatchingWorkflowsCommand = async (output, context) => {
|
|
1174
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1175
|
-
return de_ListMatchingWorkflowsCommandError(output, context);
|
|
1176
|
-
}
|
|
1177
|
-
const contents = (0, smithy_client_1.map)({
|
|
1178
|
-
$metadata: deserializeMetadata(output),
|
|
1179
|
-
});
|
|
1180
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1181
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1182
|
-
nextToken: smithy_client_1.expectString,
|
|
1183
|
-
workflowSummaries: (_) => de_MatchingWorkflowList(_, context),
|
|
1184
|
-
});
|
|
1185
|
-
Object.assign(contents, doc);
|
|
1186
|
-
return contents;
|
|
1187
|
-
};
|
|
1188
|
-
exports.de_ListMatchingWorkflowsCommand = de_ListMatchingWorkflowsCommand;
|
|
1189
|
-
const de_ListMatchingWorkflowsCommandError = async (output, context) => {
|
|
1190
|
-
const parsedOutput = {
|
|
1191
|
-
...output,
|
|
1192
|
-
body: await parseErrorBody(output.body, context),
|
|
1193
|
-
};
|
|
1194
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1195
|
-
switch (errorCode) {
|
|
1196
|
-
case "AccessDeniedException":
|
|
1197
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
1198
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1199
|
-
case "InternalServerException":
|
|
1200
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1201
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1202
|
-
case "ThrottlingException":
|
|
1203
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
1204
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1205
|
-
case "ValidationException":
|
|
1206
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
1207
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1208
|
-
default:
|
|
1209
|
-
const parsedBody = parsedOutput.body;
|
|
1210
|
-
return throwDefaultError({
|
|
1211
|
-
output,
|
|
1212
|
-
parsedBody,
|
|
1213
|
-
errorCode,
|
|
1214
|
-
});
|
|
1215
|
-
}
|
|
1216
|
-
};
|
|
1217
|
-
const de_ListProviderServicesCommand = async (output, context) => {
|
|
1218
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1219
|
-
return de_ListProviderServicesCommandError(output, context);
|
|
1220
|
-
}
|
|
1221
|
-
const contents = (0, smithy_client_1.map)({
|
|
1222
|
-
$metadata: deserializeMetadata(output),
|
|
1223
|
-
});
|
|
1224
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1225
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1226
|
-
nextToken: smithy_client_1.expectString,
|
|
1227
|
-
providerServiceSummaries: smithy_client_1._json,
|
|
1228
|
-
});
|
|
1229
|
-
Object.assign(contents, doc);
|
|
1230
|
-
return contents;
|
|
1231
|
-
};
|
|
1232
|
-
exports.de_ListProviderServicesCommand = de_ListProviderServicesCommand;
|
|
1233
|
-
const de_ListProviderServicesCommandError = async (output, context) => {
|
|
1234
|
-
const parsedOutput = {
|
|
1235
|
-
...output,
|
|
1236
|
-
body: await parseErrorBody(output.body, context),
|
|
1237
|
-
};
|
|
1238
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1239
|
-
switch (errorCode) {
|
|
1240
|
-
case "AccessDeniedException":
|
|
1241
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
1242
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1243
|
-
case "InternalServerException":
|
|
1244
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1245
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1246
|
-
case "ThrottlingException":
|
|
1247
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
1248
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1249
|
-
case "ValidationException":
|
|
1250
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
1251
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1252
|
-
default:
|
|
1253
|
-
const parsedBody = parsedOutput.body;
|
|
1254
|
-
return throwDefaultError({
|
|
1255
|
-
output,
|
|
1256
|
-
parsedBody,
|
|
1257
|
-
errorCode,
|
|
1258
|
-
});
|
|
1259
|
-
}
|
|
1260
|
-
};
|
|
1261
|
-
const de_ListSchemaMappingsCommand = async (output, context) => {
|
|
1262
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1263
|
-
return de_ListSchemaMappingsCommandError(output, context);
|
|
1264
|
-
}
|
|
1265
|
-
const contents = (0, smithy_client_1.map)({
|
|
1266
|
-
$metadata: deserializeMetadata(output),
|
|
1267
|
-
});
|
|
1268
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1269
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1270
|
-
nextToken: smithy_client_1.expectString,
|
|
1271
|
-
schemaList: (_) => de_SchemaMappingList(_, context),
|
|
1272
|
-
});
|
|
1273
|
-
Object.assign(contents, doc);
|
|
1274
|
-
return contents;
|
|
1275
|
-
};
|
|
1276
|
-
exports.de_ListSchemaMappingsCommand = de_ListSchemaMappingsCommand;
|
|
1277
|
-
const de_ListSchemaMappingsCommandError = async (output, context) => {
|
|
1278
|
-
const parsedOutput = {
|
|
1279
|
-
...output,
|
|
1280
|
-
body: await parseErrorBody(output.body, context),
|
|
1281
|
-
};
|
|
1282
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1283
|
-
switch (errorCode) {
|
|
1284
|
-
case "AccessDeniedException":
|
|
1285
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
1286
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1287
|
-
case "InternalServerException":
|
|
1288
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1289
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1290
|
-
case "ThrottlingException":
|
|
1291
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
1292
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1293
|
-
case "ValidationException":
|
|
1294
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
1295
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1296
|
-
default:
|
|
1297
|
-
const parsedBody = parsedOutput.body;
|
|
1298
|
-
return throwDefaultError({
|
|
1299
|
-
output,
|
|
1300
|
-
parsedBody,
|
|
1301
|
-
errorCode,
|
|
1302
|
-
});
|
|
1303
|
-
}
|
|
1304
|
-
};
|
|
1305
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1306
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1307
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1308
|
-
}
|
|
1309
|
-
const contents = (0, smithy_client_1.map)({
|
|
1310
|
-
$metadata: deserializeMetadata(output),
|
|
1311
|
-
});
|
|
1312
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1313
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1314
|
-
tags: smithy_client_1._json,
|
|
1315
|
-
});
|
|
1316
|
-
Object.assign(contents, doc);
|
|
1317
|
-
return contents;
|
|
1318
|
-
};
|
|
1319
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1320
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1321
|
-
const parsedOutput = {
|
|
1322
|
-
...output,
|
|
1323
|
-
body: await parseErrorBody(output.body, context),
|
|
1324
|
-
};
|
|
1325
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1326
|
-
switch (errorCode) {
|
|
1327
|
-
case "InternalServerException":
|
|
1328
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1329
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1330
|
-
case "ResourceNotFoundException":
|
|
1331
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
1332
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1333
|
-
case "ValidationException":
|
|
1334
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
1335
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1336
|
-
default:
|
|
1337
|
-
const parsedBody = parsedOutput.body;
|
|
1338
|
-
return throwDefaultError({
|
|
1339
|
-
output,
|
|
1340
|
-
parsedBody,
|
|
1341
|
-
errorCode,
|
|
1342
|
-
});
|
|
1343
|
-
}
|
|
1344
|
-
};
|
|
1345
|
-
const de_StartIdMappingJobCommand = async (output, context) => {
|
|
1346
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1347
|
-
return de_StartIdMappingJobCommandError(output, context);
|
|
1348
|
-
}
|
|
1349
|
-
const contents = (0, smithy_client_1.map)({
|
|
1350
|
-
$metadata: deserializeMetadata(output),
|
|
1351
|
-
});
|
|
1352
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1353
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1354
|
-
jobId: smithy_client_1.expectString,
|
|
1355
|
-
});
|
|
1356
|
-
Object.assign(contents, doc);
|
|
1357
|
-
return contents;
|
|
1358
|
-
};
|
|
1359
|
-
exports.de_StartIdMappingJobCommand = de_StartIdMappingJobCommand;
|
|
1360
|
-
const de_StartIdMappingJobCommandError = async (output, context) => {
|
|
1361
|
-
const parsedOutput = {
|
|
1362
|
-
...output,
|
|
1363
|
-
body: await parseErrorBody(output.body, context),
|
|
1364
|
-
};
|
|
1365
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1366
|
-
switch (errorCode) {
|
|
1367
|
-
case "AccessDeniedException":
|
|
1368
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
1369
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1370
|
-
case "ConflictException":
|
|
1371
|
-
case "com.amazonaws.entityresolution#ConflictException":
|
|
1372
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1373
|
-
case "ExceedsLimitException":
|
|
1374
|
-
case "com.amazonaws.entityresolution#ExceedsLimitException":
|
|
1375
|
-
throw await de_ExceedsLimitExceptionRes(parsedOutput, context);
|
|
1376
|
-
case "InternalServerException":
|
|
1377
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1378
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1379
|
-
case "ResourceNotFoundException":
|
|
1380
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
1381
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1382
|
-
case "ThrottlingException":
|
|
1383
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
1384
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1385
|
-
case "ValidationException":
|
|
1386
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
1387
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1388
|
-
default:
|
|
1389
|
-
const parsedBody = parsedOutput.body;
|
|
1390
|
-
return throwDefaultError({
|
|
1391
|
-
output,
|
|
1392
|
-
parsedBody,
|
|
1393
|
-
errorCode,
|
|
1394
|
-
});
|
|
1395
|
-
}
|
|
1396
|
-
};
|
|
1397
|
-
const de_StartMatchingJobCommand = async (output, context) => {
|
|
1398
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1399
|
-
return de_StartMatchingJobCommandError(output, context);
|
|
1400
|
-
}
|
|
1401
|
-
const contents = (0, smithy_client_1.map)({
|
|
1402
|
-
$metadata: deserializeMetadata(output),
|
|
1403
|
-
});
|
|
1404
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1405
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1406
|
-
jobId: smithy_client_1.expectString,
|
|
1407
|
-
});
|
|
1408
|
-
Object.assign(contents, doc);
|
|
1409
|
-
return contents;
|
|
1410
|
-
};
|
|
1411
|
-
exports.de_StartMatchingJobCommand = de_StartMatchingJobCommand;
|
|
1412
|
-
const de_StartMatchingJobCommandError = async (output, context) => {
|
|
1413
|
-
const parsedOutput = {
|
|
1414
|
-
...output,
|
|
1415
|
-
body: await parseErrorBody(output.body, context),
|
|
1416
|
-
};
|
|
1417
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1418
|
-
switch (errorCode) {
|
|
1419
|
-
case "AccessDeniedException":
|
|
1420
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
1421
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1422
|
-
case "ConflictException":
|
|
1423
|
-
case "com.amazonaws.entityresolution#ConflictException":
|
|
1424
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1425
|
-
case "ExceedsLimitException":
|
|
1426
|
-
case "com.amazonaws.entityresolution#ExceedsLimitException":
|
|
1427
|
-
throw await de_ExceedsLimitExceptionRes(parsedOutput, context);
|
|
1428
|
-
case "InternalServerException":
|
|
1429
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1430
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1431
|
-
case "ResourceNotFoundException":
|
|
1432
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
1433
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1434
|
-
case "ThrottlingException":
|
|
1435
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
1436
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1437
|
-
case "ValidationException":
|
|
1438
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
1439
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1440
|
-
default:
|
|
1441
|
-
const parsedBody = parsedOutput.body;
|
|
1442
|
-
return throwDefaultError({
|
|
1443
|
-
output,
|
|
1444
|
-
parsedBody,
|
|
1445
|
-
errorCode,
|
|
1446
|
-
});
|
|
1447
|
-
}
|
|
1448
|
-
};
|
|
1449
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1450
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1451
|
-
return de_TagResourceCommandError(output, context);
|
|
1452
|
-
}
|
|
1453
|
-
const contents = (0, smithy_client_1.map)({
|
|
1454
|
-
$metadata: deserializeMetadata(output),
|
|
1455
|
-
});
|
|
1456
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1457
|
-
return contents;
|
|
1458
|
-
};
|
|
1459
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1460
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1461
|
-
const parsedOutput = {
|
|
1462
|
-
...output,
|
|
1463
|
-
body: await parseErrorBody(output.body, context),
|
|
1464
|
-
};
|
|
1465
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1466
|
-
switch (errorCode) {
|
|
1467
|
-
case "InternalServerException":
|
|
1468
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1469
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1470
|
-
case "ResourceNotFoundException":
|
|
1471
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
1472
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1473
|
-
case "ValidationException":
|
|
1474
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
1475
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1476
|
-
default:
|
|
1477
|
-
const parsedBody = parsedOutput.body;
|
|
1478
|
-
return throwDefaultError({
|
|
1479
|
-
output,
|
|
1480
|
-
parsedBody,
|
|
1481
|
-
errorCode,
|
|
1482
|
-
});
|
|
1483
|
-
}
|
|
1484
|
-
};
|
|
1485
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
1486
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1487
|
-
return de_UntagResourceCommandError(output, context);
|
|
1488
|
-
}
|
|
1489
|
-
const contents = (0, smithy_client_1.map)({
|
|
1490
|
-
$metadata: deserializeMetadata(output),
|
|
1491
|
-
});
|
|
1492
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1493
|
-
return contents;
|
|
1494
|
-
};
|
|
1495
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1496
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1497
|
-
const parsedOutput = {
|
|
1498
|
-
...output,
|
|
1499
|
-
body: await parseErrorBody(output.body, context),
|
|
1500
|
-
};
|
|
1501
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1502
|
-
switch (errorCode) {
|
|
1503
|
-
case "InternalServerException":
|
|
1504
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1505
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1506
|
-
case "ResourceNotFoundException":
|
|
1507
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
1508
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1509
|
-
default:
|
|
1510
|
-
const parsedBody = parsedOutput.body;
|
|
1511
|
-
return throwDefaultError({
|
|
1512
|
-
output,
|
|
1513
|
-
parsedBody,
|
|
1514
|
-
errorCode,
|
|
1515
|
-
});
|
|
1516
|
-
}
|
|
1517
|
-
};
|
|
1518
|
-
const de_UpdateIdMappingWorkflowCommand = async (output, context) => {
|
|
1519
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1520
|
-
return de_UpdateIdMappingWorkflowCommandError(output, context);
|
|
1521
|
-
}
|
|
1522
|
-
const contents = (0, smithy_client_1.map)({
|
|
1523
|
-
$metadata: deserializeMetadata(output),
|
|
1524
|
-
});
|
|
1525
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1526
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1527
|
-
description: smithy_client_1.expectString,
|
|
1528
|
-
idMappingTechniques: (_) => de_IdMappingTechniques(_, context),
|
|
1529
|
-
inputSourceConfig: smithy_client_1._json,
|
|
1530
|
-
outputSourceConfig: smithy_client_1._json,
|
|
1531
|
-
roleArn: smithy_client_1.expectString,
|
|
1532
|
-
workflowArn: smithy_client_1.expectString,
|
|
1533
|
-
workflowName: smithy_client_1.expectString,
|
|
1534
|
-
});
|
|
1535
|
-
Object.assign(contents, doc);
|
|
1536
|
-
return contents;
|
|
1537
|
-
};
|
|
1538
|
-
exports.de_UpdateIdMappingWorkflowCommand = de_UpdateIdMappingWorkflowCommand;
|
|
1539
|
-
const de_UpdateIdMappingWorkflowCommandError = async (output, context) => {
|
|
1540
|
-
const parsedOutput = {
|
|
1541
|
-
...output,
|
|
1542
|
-
body: await parseErrorBody(output.body, context),
|
|
1543
|
-
};
|
|
1544
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1545
|
-
switch (errorCode) {
|
|
1546
|
-
case "AccessDeniedException":
|
|
1547
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
1548
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1549
|
-
case "InternalServerException":
|
|
1550
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1551
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1552
|
-
case "ResourceNotFoundException":
|
|
1553
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
1554
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1555
|
-
case "ThrottlingException":
|
|
1556
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
1557
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1558
|
-
case "ValidationException":
|
|
1559
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
1560
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1561
|
-
default:
|
|
1562
|
-
const parsedBody = parsedOutput.body;
|
|
1563
|
-
return throwDefaultError({
|
|
1564
|
-
output,
|
|
1565
|
-
parsedBody,
|
|
1566
|
-
errorCode,
|
|
1567
|
-
});
|
|
1568
|
-
}
|
|
1569
|
-
};
|
|
1570
|
-
const de_UpdateMatchingWorkflowCommand = async (output, context) => {
|
|
1571
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1572
|
-
return de_UpdateMatchingWorkflowCommandError(output, context);
|
|
1573
|
-
}
|
|
1574
|
-
const contents = (0, smithy_client_1.map)({
|
|
1575
|
-
$metadata: deserializeMetadata(output),
|
|
1576
|
-
});
|
|
1577
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1578
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1579
|
-
description: smithy_client_1.expectString,
|
|
1580
|
-
incrementalRunConfig: smithy_client_1._json,
|
|
1581
|
-
inputSourceConfig: smithy_client_1._json,
|
|
1582
|
-
outputSourceConfig: smithy_client_1._json,
|
|
1583
|
-
resolutionTechniques: (_) => de_ResolutionTechniques(_, context),
|
|
1584
|
-
roleArn: smithy_client_1.expectString,
|
|
1585
|
-
workflowName: smithy_client_1.expectString,
|
|
1586
|
-
});
|
|
1587
|
-
Object.assign(contents, doc);
|
|
1588
|
-
return contents;
|
|
1589
|
-
};
|
|
1590
|
-
exports.de_UpdateMatchingWorkflowCommand = de_UpdateMatchingWorkflowCommand;
|
|
1591
|
-
const de_UpdateMatchingWorkflowCommandError = async (output, context) => {
|
|
1592
|
-
const parsedOutput = {
|
|
1593
|
-
...output,
|
|
1594
|
-
body: await parseErrorBody(output.body, context),
|
|
1595
|
-
};
|
|
1596
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1597
|
-
switch (errorCode) {
|
|
1598
|
-
case "AccessDeniedException":
|
|
1599
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
1600
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1601
|
-
case "InternalServerException":
|
|
1602
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1603
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1604
|
-
case "ResourceNotFoundException":
|
|
1605
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
1606
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1607
|
-
case "ThrottlingException":
|
|
1608
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
1609
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1610
|
-
case "ValidationException":
|
|
1611
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
1612
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1613
|
-
default:
|
|
1614
|
-
const parsedBody = parsedOutput.body;
|
|
1615
|
-
return throwDefaultError({
|
|
1616
|
-
output,
|
|
1617
|
-
parsedBody,
|
|
1618
|
-
errorCode,
|
|
1619
|
-
});
|
|
1620
|
-
}
|
|
1621
|
-
};
|
|
1622
|
-
const de_UpdateSchemaMappingCommand = async (output, context) => {
|
|
1623
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1624
|
-
return de_UpdateSchemaMappingCommandError(output, context);
|
|
1625
|
-
}
|
|
1626
|
-
const contents = (0, smithy_client_1.map)({
|
|
1627
|
-
$metadata: deserializeMetadata(output),
|
|
1628
|
-
});
|
|
1629
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1630
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1631
|
-
description: smithy_client_1.expectString,
|
|
1632
|
-
mappedInputFields: smithy_client_1._json,
|
|
1633
|
-
schemaArn: smithy_client_1.expectString,
|
|
1634
|
-
schemaName: smithy_client_1.expectString,
|
|
1635
|
-
});
|
|
1636
|
-
Object.assign(contents, doc);
|
|
1637
|
-
return contents;
|
|
1638
|
-
};
|
|
1639
|
-
exports.de_UpdateSchemaMappingCommand = de_UpdateSchemaMappingCommand;
|
|
1640
|
-
const de_UpdateSchemaMappingCommandError = async (output, context) => {
|
|
1641
|
-
const parsedOutput = {
|
|
1642
|
-
...output,
|
|
1643
|
-
body: await parseErrorBody(output.body, context),
|
|
1644
|
-
};
|
|
1645
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1646
|
-
switch (errorCode) {
|
|
1647
|
-
case "AccessDeniedException":
|
|
1648
|
-
case "com.amazonaws.entityresolution#AccessDeniedException":
|
|
1649
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1650
|
-
case "ConflictException":
|
|
1651
|
-
case "com.amazonaws.entityresolution#ConflictException":
|
|
1652
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1653
|
-
case "InternalServerException":
|
|
1654
|
-
case "com.amazonaws.entityresolution#InternalServerException":
|
|
1655
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1656
|
-
case "ResourceNotFoundException":
|
|
1657
|
-
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
1658
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1659
|
-
case "ThrottlingException":
|
|
1660
|
-
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
1661
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1662
|
-
case "ValidationException":
|
|
1663
|
-
case "com.amazonaws.entityresolution#ValidationException":
|
|
1664
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1665
|
-
default:
|
|
1666
|
-
const parsedBody = parsedOutput.body;
|
|
1667
|
-
return throwDefaultError({
|
|
1668
|
-
output,
|
|
1669
|
-
parsedBody,
|
|
1670
|
-
errorCode,
|
|
1671
|
-
});
|
|
1672
|
-
}
|
|
1673
|
-
};
|
|
1674
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(EntityResolutionServiceException_1.EntityResolutionServiceException);
|
|
1675
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1676
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1677
|
-
const data = parsedOutput.body;
|
|
1678
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1679
|
-
message: smithy_client_1.expectString,
|
|
1680
|
-
});
|
|
1681
|
-
Object.assign(contents, doc);
|
|
1682
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
1683
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1684
|
-
...contents,
|
|
1685
|
-
});
|
|
1686
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1687
|
-
};
|
|
1688
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1689
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1690
|
-
const data = parsedOutput.body;
|
|
1691
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1692
|
-
message: smithy_client_1.expectString,
|
|
1693
|
-
});
|
|
1694
|
-
Object.assign(contents, doc);
|
|
1695
|
-
const exception = new models_0_1.ConflictException({
|
|
1696
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1697
|
-
...contents,
|
|
1698
|
-
});
|
|
1699
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1700
|
-
};
|
|
1701
|
-
const de_ExceedsLimitExceptionRes = async (parsedOutput, context) => {
|
|
1702
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1703
|
-
const data = parsedOutput.body;
|
|
1704
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1705
|
-
message: smithy_client_1.expectString,
|
|
1706
|
-
quotaName: smithy_client_1.expectString,
|
|
1707
|
-
quotaValue: smithy_client_1.expectInt32,
|
|
1708
|
-
});
|
|
1709
|
-
Object.assign(contents, doc);
|
|
1710
|
-
const exception = new models_0_1.ExceedsLimitException({
|
|
1711
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1712
|
-
...contents,
|
|
1713
|
-
});
|
|
1714
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1715
|
-
};
|
|
1716
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1717
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1718
|
-
const data = parsedOutput.body;
|
|
1719
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1720
|
-
message: smithy_client_1.expectString,
|
|
1721
|
-
});
|
|
1722
|
-
Object.assign(contents, doc);
|
|
1723
|
-
const exception = new models_0_1.InternalServerException({
|
|
1724
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1725
|
-
...contents,
|
|
1726
|
-
});
|
|
1727
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1728
|
-
};
|
|
1729
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1730
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1731
|
-
const data = parsedOutput.body;
|
|
1732
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1733
|
-
message: smithy_client_1.expectString,
|
|
1734
|
-
});
|
|
1735
|
-
Object.assign(contents, doc);
|
|
1736
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
1737
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1738
|
-
...contents,
|
|
1739
|
-
});
|
|
1740
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1741
|
-
};
|
|
1742
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1743
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1744
|
-
const data = parsedOutput.body;
|
|
1745
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1746
|
-
message: smithy_client_1.expectString,
|
|
1747
|
-
});
|
|
1748
|
-
Object.assign(contents, doc);
|
|
1749
|
-
const exception = new models_0_1.ThrottlingException({
|
|
1750
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1751
|
-
...contents,
|
|
1752
|
-
});
|
|
1753
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1754
|
-
};
|
|
1755
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1756
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1757
|
-
const data = parsedOutput.body;
|
|
1758
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1759
|
-
message: smithy_client_1.expectString,
|
|
1760
|
-
});
|
|
1761
|
-
Object.assign(contents, doc);
|
|
1762
|
-
const exception = new models_0_1.ValidationException({
|
|
1763
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1764
|
-
...contents,
|
|
1765
|
-
});
|
|
1766
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1767
|
-
};
|
|
1768
|
-
const se_IdMappingTechniques = (input, context) => {
|
|
1769
|
-
return (0, smithy_client_1.take)(input, {
|
|
1770
|
-
idMappingType: [],
|
|
1771
|
-
providerProperties: (_) => se_ProviderProperties(_, context),
|
|
1772
|
-
});
|
|
1773
|
-
};
|
|
1774
|
-
const se_ProviderProperties = (input, context) => {
|
|
1775
|
-
return (0, smithy_client_1.take)(input, {
|
|
1776
|
-
intermediateSourceConfiguration: smithy_client_1._json,
|
|
1777
|
-
providerConfiguration: (_) => se_Document(_, context),
|
|
1778
|
-
providerServiceArn: [],
|
|
1779
|
-
});
|
|
1780
|
-
};
|
|
1781
|
-
const se_ResolutionTechniques = (input, context) => {
|
|
1782
|
-
return (0, smithy_client_1.take)(input, {
|
|
1783
|
-
providerProperties: (_) => se_ProviderProperties(_, context),
|
|
1784
|
-
resolutionType: [],
|
|
1785
|
-
ruleBasedProperties: smithy_client_1._json,
|
|
1786
|
-
});
|
|
1787
|
-
};
|
|
1788
|
-
const se_Document = (input, context) => {
|
|
1789
|
-
return input;
|
|
1790
|
-
};
|
|
1791
|
-
const de_IdMappingTechniques = (output, context) => {
|
|
1792
|
-
return (0, smithy_client_1.take)(output, {
|
|
1793
|
-
idMappingType: smithy_client_1.expectString,
|
|
1794
|
-
providerProperties: (_) => de_ProviderProperties(_, context),
|
|
1795
|
-
});
|
|
1796
|
-
};
|
|
1797
|
-
const de_IdMappingWorkflowList = (output, context) => {
|
|
1798
|
-
const retVal = (output || [])
|
|
1799
|
-
.filter((e) => e != null)
|
|
1800
|
-
.map((entry) => {
|
|
1801
|
-
return de_IdMappingWorkflowSummary(entry, context);
|
|
1802
|
-
});
|
|
1803
|
-
return retVal;
|
|
1804
|
-
};
|
|
1805
|
-
const de_IdMappingWorkflowSummary = (output, context) => {
|
|
1806
|
-
return (0, smithy_client_1.take)(output, {
|
|
1807
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1808
|
-
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1809
|
-
workflowArn: smithy_client_1.expectString,
|
|
1810
|
-
workflowName: smithy_client_1.expectString,
|
|
1811
|
-
});
|
|
1812
|
-
};
|
|
1813
|
-
const de_JobList = (output, context) => {
|
|
1814
|
-
const retVal = (output || [])
|
|
1815
|
-
.filter((e) => e != null)
|
|
1816
|
-
.map((entry) => {
|
|
1817
|
-
return de_JobSummary(entry, context);
|
|
1818
|
-
});
|
|
1819
|
-
return retVal;
|
|
1820
|
-
};
|
|
1821
|
-
const de_JobSummary = (output, context) => {
|
|
1822
|
-
return (0, smithy_client_1.take)(output, {
|
|
1823
|
-
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1824
|
-
jobId: smithy_client_1.expectString,
|
|
1825
|
-
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1826
|
-
status: smithy_client_1.expectString,
|
|
1827
|
-
});
|
|
1828
|
-
};
|
|
1829
|
-
const de_MatchingWorkflowList = (output, context) => {
|
|
1830
|
-
const retVal = (output || [])
|
|
1831
|
-
.filter((e) => e != null)
|
|
1832
|
-
.map((entry) => {
|
|
1833
|
-
return de_MatchingWorkflowSummary(entry, context);
|
|
1834
|
-
});
|
|
1835
|
-
return retVal;
|
|
1836
|
-
};
|
|
1837
|
-
const de_MatchingWorkflowSummary = (output, context) => {
|
|
1838
|
-
return (0, smithy_client_1.take)(output, {
|
|
1839
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1840
|
-
resolutionType: smithy_client_1.expectString,
|
|
1841
|
-
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1842
|
-
workflowArn: smithy_client_1.expectString,
|
|
1843
|
-
workflowName: smithy_client_1.expectString,
|
|
1844
|
-
});
|
|
1845
|
-
};
|
|
1846
|
-
const de_ProviderProperties = (output, context) => {
|
|
1847
|
-
return (0, smithy_client_1.take)(output, {
|
|
1848
|
-
intermediateSourceConfiguration: smithy_client_1._json,
|
|
1849
|
-
providerConfiguration: (_) => de_Document(_, context),
|
|
1850
|
-
providerServiceArn: smithy_client_1.expectString,
|
|
1851
|
-
});
|
|
1852
|
-
};
|
|
1853
|
-
const de_ResolutionTechniques = (output, context) => {
|
|
1854
|
-
return (0, smithy_client_1.take)(output, {
|
|
1855
|
-
providerProperties: (_) => de_ProviderProperties(_, context),
|
|
1856
|
-
resolutionType: smithy_client_1.expectString,
|
|
1857
|
-
ruleBasedProperties: smithy_client_1._json,
|
|
1858
|
-
});
|
|
1859
|
-
};
|
|
1860
|
-
const de_SchemaMappingList = (output, context) => {
|
|
1861
|
-
const retVal = (output || [])
|
|
1862
|
-
.filter((e) => e != null)
|
|
1863
|
-
.map((entry) => {
|
|
1864
|
-
return de_SchemaMappingSummary(entry, context);
|
|
1865
|
-
});
|
|
1866
|
-
return retVal;
|
|
1867
|
-
};
|
|
1868
|
-
const de_SchemaMappingSummary = (output, context) => {
|
|
1869
|
-
return (0, smithy_client_1.take)(output, {
|
|
1870
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1871
|
-
hasWorkflows: smithy_client_1.expectBoolean,
|
|
1872
|
-
schemaArn: smithy_client_1.expectString,
|
|
1873
|
-
schemaName: smithy_client_1.expectString,
|
|
1874
|
-
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1875
|
-
});
|
|
1876
|
-
};
|
|
1877
|
-
const de_Document = (output, context) => {
|
|
1878
|
-
return output;
|
|
1879
|
-
};
|
|
1880
|
-
const deserializeMetadata = (output) => ({
|
|
1881
|
-
httpStatusCode: output.statusCode,
|
|
1882
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1883
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1884
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1885
|
-
});
|
|
1886
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1887
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
1888
|
-
value !== null &&
|
|
1889
|
-
value !== "" &&
|
|
1890
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1891
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1892
|
-
const _mR = "maxResults";
|
|
1893
|
-
const _nT = "nextToken";
|
|
1894
|
-
const _pN = "providerName";
|
|
1895
|
-
const _tK = "tagKeys";
|
|
1896
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1897
|
-
if (encoded.length) {
|
|
1898
|
-
return JSON.parse(encoded);
|
|
1899
|
-
}
|
|
1900
|
-
return {};
|
|
1901
|
-
});
|
|
1902
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1903
|
-
const value = await parseBody(errorBody, context);
|
|
1904
|
-
value.message = value.message ?? value.Message;
|
|
1905
|
-
return value;
|
|
1906
|
-
};
|
|
1907
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1908
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1909
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1910
|
-
let cleanValue = rawValue;
|
|
1911
|
-
if (typeof cleanValue === "number") {
|
|
1912
|
-
cleanValue = cleanValue.toString();
|
|
1913
|
-
}
|
|
1914
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1915
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1916
|
-
}
|
|
1917
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1918
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1919
|
-
}
|
|
1920
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1921
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1922
|
-
}
|
|
1923
|
-
return cleanValue;
|
|
1924
|
-
};
|
|
1925
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1926
|
-
if (headerKey !== undefined) {
|
|
1927
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1928
|
-
}
|
|
1929
|
-
if (data.code !== undefined) {
|
|
1930
|
-
return sanitizeErrorCode(data.code);
|
|
1931
|
-
}
|
|
1932
|
-
if (data["__type"] !== undefined) {
|
|
1933
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1934
|
-
}
|
|
1935
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|