@aws-sdk/client-entityresolution 3.928.0 → 3.930.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.
Files changed (62) hide show
  1. package/dist-cjs/index.js +1768 -1782
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/EntityResolutionClient.js +2 -0
  4. package/dist-es/commands/AddPolicyStatementCommand.js +3 -9
  5. package/dist-es/commands/BatchDeleteUniqueIdCommand.js +3 -9
  6. package/dist-es/commands/CreateIdMappingWorkflowCommand.js +3 -9
  7. package/dist-es/commands/CreateIdNamespaceCommand.js +3 -9
  8. package/dist-es/commands/CreateMatchingWorkflowCommand.js +3 -9
  9. package/dist-es/commands/CreateSchemaMappingCommand.js +3 -9
  10. package/dist-es/commands/DeleteIdMappingWorkflowCommand.js +3 -9
  11. package/dist-es/commands/DeleteIdNamespaceCommand.js +3 -9
  12. package/dist-es/commands/DeleteMatchingWorkflowCommand.js +3 -9
  13. package/dist-es/commands/DeletePolicyStatementCommand.js +3 -9
  14. package/dist-es/commands/DeleteSchemaMappingCommand.js +3 -9
  15. package/dist-es/commands/GenerateMatchIdCommand.js +3 -10
  16. package/dist-es/commands/GetIdMappingJobCommand.js +3 -9
  17. package/dist-es/commands/GetIdMappingWorkflowCommand.js +3 -9
  18. package/dist-es/commands/GetIdNamespaceCommand.js +3 -9
  19. package/dist-es/commands/GetMatchIdCommand.js +3 -10
  20. package/dist-es/commands/GetMatchingJobCommand.js +3 -9
  21. package/dist-es/commands/GetMatchingWorkflowCommand.js +3 -9
  22. package/dist-es/commands/GetPolicyCommand.js +3 -9
  23. package/dist-es/commands/GetProviderServiceCommand.js +3 -9
  24. package/dist-es/commands/GetSchemaMappingCommand.js +3 -9
  25. package/dist-es/commands/ListIdMappingJobsCommand.js +3 -9
  26. package/dist-es/commands/ListIdMappingWorkflowsCommand.js +3 -9
  27. package/dist-es/commands/ListIdNamespacesCommand.js +3 -9
  28. package/dist-es/commands/ListMatchingJobsCommand.js +3 -9
  29. package/dist-es/commands/ListMatchingWorkflowsCommand.js +3 -9
  30. package/dist-es/commands/ListProviderServicesCommand.js +3 -9
  31. package/dist-es/commands/ListSchemaMappingsCommand.js +3 -9
  32. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  33. package/dist-es/commands/PutPolicyCommand.js +3 -9
  34. package/dist-es/commands/StartIdMappingJobCommand.js +3 -9
  35. package/dist-es/commands/StartMatchingJobCommand.js +3 -9
  36. package/dist-es/commands/TagResourceCommand.js +3 -9
  37. package/dist-es/commands/UntagResourceCommand.js +3 -9
  38. package/dist-es/commands/UpdateIdMappingWorkflowCommand.js +3 -9
  39. package/dist-es/commands/UpdateIdNamespaceCommand.js +3 -9
  40. package/dist-es/commands/UpdateMatchingWorkflowCommand.js +3 -9
  41. package/dist-es/commands/UpdateSchemaMappingCommand.js +3 -9
  42. package/dist-es/models/models_0.js +0 -21
  43. package/dist-es/runtimeConfig.shared.js +2 -0
  44. package/dist-es/schemas/schemas_0.js +1688 -0
  45. package/dist-types/EntityResolutionClient.d.ts +10 -1
  46. package/dist-types/models/models_0.d.ts +4 -13
  47. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  48. package/dist-types/runtimeConfig.d.ts +1 -0
  49. package/dist-types/runtimeConfig.native.d.ts +1 -0
  50. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  51. package/dist-types/schemas/schemas_0.d.ts +210 -0
  52. package/dist-types/ts3.4/EntityResolutionClient.d.ts +4 -0
  53. package/dist-types/ts3.4/models/models_0.d.ts +0 -11
  54. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  55. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  56. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  57. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  58. package/dist-types/ts3.4/schemas/schemas_0.d.ts +216 -0
  59. package/package.json +33 -33
  60. package/dist-es/protocols/Aws_restJson1.js +0 -1478
  61. package/dist-types/protocols/Aws_restJson1.d.ts +0 -344
  62. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -461
@@ -1,1478 +0,0 @@
1
- import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, map, parseEpochTimestamp as __parseEpochTimestamp, quoteHeader as __quoteHeader, take, withBaseException, } from "@smithy/smithy-client";
4
- import { EntityResolutionServiceException as __BaseException } from "../models/EntityResolutionServiceException";
5
- import { AccessDeniedException, ConflictException, ExceedsLimitException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
6
- export const se_AddPolicyStatementCommand = async (input, context) => {
7
- const b = rb(input, context);
8
- const headers = {
9
- "content-type": "application/json",
10
- };
11
- b.bp("/policies/{arn}/{statementId}");
12
- b.p("arn", () => input.arn, "{arn}", false);
13
- b.p("statementId", () => input.statementId, "{statementId}", false);
14
- let body;
15
- body = JSON.stringify(take(input, {
16
- action: (_) => _json(_),
17
- condition: [],
18
- effect: [],
19
- principal: (_) => _json(_),
20
- }));
21
- b.m("POST").h(headers).b(body);
22
- return b.build();
23
- };
24
- export const se_BatchDeleteUniqueIdCommand = async (input, context) => {
25
- const b = rb(input, context);
26
- const headers = map({}, isSerializableHeaderValue, {
27
- [_i]: input[_iS],
28
- [_u]: [() => isSerializableHeaderValue(input[_uI]), () => (input[_uI] || []).map(__quoteHeader).join(", ")],
29
- });
30
- b.bp("/matchingworkflows/{workflowName}/uniqueids");
31
- b.p("workflowName", () => input.workflowName, "{workflowName}", false);
32
- let body;
33
- b.m("DELETE").h(headers).b(body);
34
- return b.build();
35
- };
36
- export const se_CreateIdMappingWorkflowCommand = async (input, context) => {
37
- const b = rb(input, context);
38
- const headers = {
39
- "content-type": "application/json",
40
- };
41
- b.bp("/idmappingworkflows");
42
- let body;
43
- body = JSON.stringify(take(input, {
44
- description: [],
45
- idMappingTechniques: (_) => se_IdMappingTechniques(_, context),
46
- incrementalRunConfig: (_) => _json(_),
47
- inputSourceConfig: (_) => _json(_),
48
- outputSourceConfig: (_) => _json(_),
49
- roleArn: [],
50
- tags: (_) => _json(_),
51
- workflowName: [],
52
- }));
53
- b.m("POST").h(headers).b(body);
54
- return b.build();
55
- };
56
- export const se_CreateIdNamespaceCommand = async (input, context) => {
57
- const b = rb(input, context);
58
- const headers = {
59
- "content-type": "application/json",
60
- };
61
- b.bp("/idnamespaces");
62
- let body;
63
- body = JSON.stringify(take(input, {
64
- description: [],
65
- idMappingWorkflowProperties: (_) => se_IdNamespaceIdMappingWorkflowPropertiesList(_, context),
66
- idNamespaceName: [],
67
- inputSourceConfig: (_) => _json(_),
68
- roleArn: [],
69
- tags: (_) => _json(_),
70
- type: [],
71
- }));
72
- b.m("POST").h(headers).b(body);
73
- return b.build();
74
- };
75
- export const se_CreateMatchingWorkflowCommand = async (input, context) => {
76
- const b = rb(input, context);
77
- const headers = {
78
- "content-type": "application/json",
79
- };
80
- b.bp("/matchingworkflows");
81
- let body;
82
- body = JSON.stringify(take(input, {
83
- description: [],
84
- incrementalRunConfig: (_) => _json(_),
85
- inputSourceConfig: (_) => _json(_),
86
- outputSourceConfig: (_) => _json(_),
87
- resolutionTechniques: (_) => se_ResolutionTechniques(_, context),
88
- roleArn: [],
89
- tags: (_) => _json(_),
90
- workflowName: [],
91
- }));
92
- b.m("POST").h(headers).b(body);
93
- return b.build();
94
- };
95
- export const se_CreateSchemaMappingCommand = async (input, context) => {
96
- const b = rb(input, context);
97
- const headers = {
98
- "content-type": "application/json",
99
- };
100
- b.bp("/schemas");
101
- let body;
102
- body = JSON.stringify(take(input, {
103
- description: [],
104
- mappedInputFields: (_) => _json(_),
105
- schemaName: [],
106
- tags: (_) => _json(_),
107
- }));
108
- b.m("POST").h(headers).b(body);
109
- return b.build();
110
- };
111
- export const se_DeleteIdMappingWorkflowCommand = async (input, context) => {
112
- const b = rb(input, context);
113
- const headers = {};
114
- b.bp("/idmappingworkflows/{workflowName}");
115
- b.p("workflowName", () => input.workflowName, "{workflowName}", false);
116
- let body;
117
- b.m("DELETE").h(headers).b(body);
118
- return b.build();
119
- };
120
- export const se_DeleteIdNamespaceCommand = async (input, context) => {
121
- const b = rb(input, context);
122
- const headers = {};
123
- b.bp("/idnamespaces/{idNamespaceName}");
124
- b.p("idNamespaceName", () => input.idNamespaceName, "{idNamespaceName}", false);
125
- let body;
126
- b.m("DELETE").h(headers).b(body);
127
- return b.build();
128
- };
129
- export const se_DeleteMatchingWorkflowCommand = async (input, context) => {
130
- const b = rb(input, context);
131
- const headers = {};
132
- b.bp("/matchingworkflows/{workflowName}");
133
- b.p("workflowName", () => input.workflowName, "{workflowName}", false);
134
- let body;
135
- b.m("DELETE").h(headers).b(body);
136
- return b.build();
137
- };
138
- export const se_DeletePolicyStatementCommand = async (input, context) => {
139
- const b = rb(input, context);
140
- const headers = {};
141
- b.bp("/policies/{arn}/{statementId}");
142
- b.p("arn", () => input.arn, "{arn}", false);
143
- b.p("statementId", () => input.statementId, "{statementId}", false);
144
- let body;
145
- b.m("DELETE").h(headers).b(body);
146
- return b.build();
147
- };
148
- export const se_DeleteSchemaMappingCommand = async (input, context) => {
149
- const b = rb(input, context);
150
- const headers = {};
151
- b.bp("/schemas/{schemaName}");
152
- b.p("schemaName", () => input.schemaName, "{schemaName}", false);
153
- let body;
154
- b.m("DELETE").h(headers).b(body);
155
- return b.build();
156
- };
157
- export const se_GenerateMatchIdCommand = async (input, context) => {
158
- const b = rb(input, context);
159
- const headers = {
160
- "content-type": "application/json",
161
- };
162
- b.bp("/matchingworkflows/{workflowName}/generateMatches");
163
- b.p("workflowName", () => input.workflowName, "{workflowName}", false);
164
- let body;
165
- body = JSON.stringify(take(input, {
166
- processingType: [],
167
- records: (_) => _json(_),
168
- }));
169
- b.m("POST").h(headers).b(body);
170
- return b.build();
171
- };
172
- export const se_GetIdMappingJobCommand = async (input, context) => {
173
- const b = rb(input, context);
174
- const headers = {};
175
- b.bp("/idmappingworkflows/{workflowName}/jobs/{jobId}");
176
- b.p("workflowName", () => input.workflowName, "{workflowName}", false);
177
- b.p("jobId", () => input.jobId, "{jobId}", false);
178
- let body;
179
- b.m("GET").h(headers).b(body);
180
- return b.build();
181
- };
182
- export const se_GetIdMappingWorkflowCommand = async (input, context) => {
183
- const b = rb(input, context);
184
- const headers = {};
185
- b.bp("/idmappingworkflows/{workflowName}");
186
- b.p("workflowName", () => input.workflowName, "{workflowName}", false);
187
- let body;
188
- b.m("GET").h(headers).b(body);
189
- return b.build();
190
- };
191
- export const se_GetIdNamespaceCommand = async (input, context) => {
192
- const b = rb(input, context);
193
- const headers = {};
194
- b.bp("/idnamespaces/{idNamespaceName}");
195
- b.p("idNamespaceName", () => input.idNamespaceName, "{idNamespaceName}", false);
196
- let body;
197
- b.m("GET").h(headers).b(body);
198
- return b.build();
199
- };
200
- export const se_GetMatchIdCommand = async (input, context) => {
201
- const b = rb(input, context);
202
- const headers = {
203
- "content-type": "application/json",
204
- };
205
- b.bp("/matchingworkflows/{workflowName}/matches");
206
- b.p("workflowName", () => input.workflowName, "{workflowName}", false);
207
- let body;
208
- body = JSON.stringify(take(input, {
209
- applyNormalization: [],
210
- record: (_) => _json(_),
211
- }));
212
- b.m("POST").h(headers).b(body);
213
- return b.build();
214
- };
215
- export const se_GetMatchingJobCommand = async (input, context) => {
216
- const b = rb(input, context);
217
- const headers = {};
218
- b.bp("/matchingworkflows/{workflowName}/jobs/{jobId}");
219
- b.p("workflowName", () => input.workflowName, "{workflowName}", false);
220
- b.p("jobId", () => input.jobId, "{jobId}", false);
221
- let body;
222
- b.m("GET").h(headers).b(body);
223
- return b.build();
224
- };
225
- export const se_GetMatchingWorkflowCommand = async (input, context) => {
226
- const b = rb(input, context);
227
- const headers = {};
228
- b.bp("/matchingworkflows/{workflowName}");
229
- b.p("workflowName", () => input.workflowName, "{workflowName}", false);
230
- let body;
231
- b.m("GET").h(headers).b(body);
232
- return b.build();
233
- };
234
- export const se_GetPolicyCommand = async (input, context) => {
235
- const b = rb(input, context);
236
- const headers = {};
237
- b.bp("/policies/{arn}");
238
- b.p("arn", () => input.arn, "{arn}", false);
239
- let body;
240
- b.m("GET").h(headers).b(body);
241
- return b.build();
242
- };
243
- export const se_GetProviderServiceCommand = async (input, context) => {
244
- const b = rb(input, context);
245
- const headers = {};
246
- b.bp("/providerservices/{providerName}/{providerServiceName}");
247
- b.p("providerName", () => input.providerName, "{providerName}", false);
248
- b.p("providerServiceName", () => input.providerServiceName, "{providerServiceName}", false);
249
- let body;
250
- b.m("GET").h(headers).b(body);
251
- return b.build();
252
- };
253
- export const se_GetSchemaMappingCommand = async (input, context) => {
254
- const b = rb(input, context);
255
- const headers = {};
256
- b.bp("/schemas/{schemaName}");
257
- b.p("schemaName", () => input.schemaName, "{schemaName}", false);
258
- let body;
259
- b.m("GET").h(headers).b(body);
260
- return b.build();
261
- };
262
- export const se_ListIdMappingJobsCommand = async (input, context) => {
263
- const b = rb(input, context);
264
- const headers = {};
265
- b.bp("/idmappingworkflows/{workflowName}/jobs");
266
- b.p("workflowName", () => input.workflowName, "{workflowName}", false);
267
- const query = map({
268
- [_nT]: [, input[_nT]],
269
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
270
- });
271
- let body;
272
- b.m("GET").h(headers).q(query).b(body);
273
- return b.build();
274
- };
275
- export const se_ListIdMappingWorkflowsCommand = async (input, context) => {
276
- const b = rb(input, context);
277
- const headers = {};
278
- b.bp("/idmappingworkflows");
279
- const query = map({
280
- [_nT]: [, input[_nT]],
281
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
282
- });
283
- let body;
284
- b.m("GET").h(headers).q(query).b(body);
285
- return b.build();
286
- };
287
- export const se_ListIdNamespacesCommand = async (input, context) => {
288
- const b = rb(input, context);
289
- const headers = {};
290
- b.bp("/idnamespaces");
291
- const query = map({
292
- [_nT]: [, input[_nT]],
293
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
294
- });
295
- let body;
296
- b.m("GET").h(headers).q(query).b(body);
297
- return b.build();
298
- };
299
- export const se_ListMatchingJobsCommand = async (input, context) => {
300
- const b = rb(input, context);
301
- const headers = {};
302
- b.bp("/matchingworkflows/{workflowName}/jobs");
303
- b.p("workflowName", () => input.workflowName, "{workflowName}", false);
304
- const query = map({
305
- [_nT]: [, input[_nT]],
306
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
307
- });
308
- let body;
309
- b.m("GET").h(headers).q(query).b(body);
310
- return b.build();
311
- };
312
- export const se_ListMatchingWorkflowsCommand = async (input, context) => {
313
- const b = rb(input, context);
314
- const headers = {};
315
- b.bp("/matchingworkflows");
316
- const query = map({
317
- [_nT]: [, input[_nT]],
318
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
319
- });
320
- let body;
321
- b.m("GET").h(headers).q(query).b(body);
322
- return b.build();
323
- };
324
- export const se_ListProviderServicesCommand = async (input, context) => {
325
- const b = rb(input, context);
326
- const headers = {};
327
- b.bp("/providerservices");
328
- const query = map({
329
- [_nT]: [, input[_nT]],
330
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
331
- [_pN]: [, input[_pN]],
332
- });
333
- let body;
334
- b.m("GET").h(headers).q(query).b(body);
335
- return b.build();
336
- };
337
- export const se_ListSchemaMappingsCommand = async (input, context) => {
338
- const b = rb(input, context);
339
- const headers = {};
340
- b.bp("/schemas");
341
- const query = map({
342
- [_nT]: [, input[_nT]],
343
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
344
- });
345
- let body;
346
- b.m("GET").h(headers).q(query).b(body);
347
- return b.build();
348
- };
349
- export const se_ListTagsForResourceCommand = async (input, context) => {
350
- const b = rb(input, context);
351
- const headers = {};
352
- b.bp("/tags/{resourceArn}");
353
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
354
- let body;
355
- b.m("GET").h(headers).b(body);
356
- return b.build();
357
- };
358
- export const se_PutPolicyCommand = async (input, context) => {
359
- const b = rb(input, context);
360
- const headers = {
361
- "content-type": "application/json",
362
- };
363
- b.bp("/policies/{arn}");
364
- b.p("arn", () => input.arn, "{arn}", false);
365
- let body;
366
- body = JSON.stringify(take(input, {
367
- policy: [],
368
- token: [],
369
- }));
370
- b.m("PUT").h(headers).b(body);
371
- return b.build();
372
- };
373
- export const se_StartIdMappingJobCommand = async (input, context) => {
374
- const b = rb(input, context);
375
- const headers = {
376
- "content-type": "application/json",
377
- };
378
- b.bp("/idmappingworkflows/{workflowName}/jobs");
379
- b.p("workflowName", () => input.workflowName, "{workflowName}", false);
380
- let body;
381
- body = JSON.stringify(take(input, {
382
- jobType: [],
383
- outputSourceConfig: (_) => _json(_),
384
- }));
385
- b.m("POST").h(headers).b(body);
386
- return b.build();
387
- };
388
- export const se_StartMatchingJobCommand = async (input, context) => {
389
- const b = rb(input, context);
390
- const headers = {};
391
- b.bp("/matchingworkflows/{workflowName}/jobs");
392
- b.p("workflowName", () => input.workflowName, "{workflowName}", false);
393
- let body;
394
- b.m("POST").h(headers).b(body);
395
- return b.build();
396
- };
397
- export const se_TagResourceCommand = async (input, context) => {
398
- const b = rb(input, context);
399
- const headers = {
400
- "content-type": "application/json",
401
- };
402
- b.bp("/tags/{resourceArn}");
403
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
404
- let body;
405
- body = JSON.stringify(take(input, {
406
- tags: (_) => _json(_),
407
- }));
408
- b.m("POST").h(headers).b(body);
409
- return b.build();
410
- };
411
- export const se_UntagResourceCommand = async (input, context) => {
412
- const b = rb(input, context);
413
- const headers = {};
414
- b.bp("/tags/{resourceArn}");
415
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
416
- const query = map({
417
- [_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
418
- });
419
- let body;
420
- b.m("DELETE").h(headers).q(query).b(body);
421
- return b.build();
422
- };
423
- export const se_UpdateIdMappingWorkflowCommand = async (input, context) => {
424
- const b = rb(input, context);
425
- const headers = {
426
- "content-type": "application/json",
427
- };
428
- b.bp("/idmappingworkflows/{workflowName}");
429
- b.p("workflowName", () => input.workflowName, "{workflowName}", false);
430
- let body;
431
- body = JSON.stringify(take(input, {
432
- description: [],
433
- idMappingTechniques: (_) => se_IdMappingTechniques(_, context),
434
- incrementalRunConfig: (_) => _json(_),
435
- inputSourceConfig: (_) => _json(_),
436
- outputSourceConfig: (_) => _json(_),
437
- roleArn: [],
438
- }));
439
- b.m("PUT").h(headers).b(body);
440
- return b.build();
441
- };
442
- export const se_UpdateIdNamespaceCommand = async (input, context) => {
443
- const b = rb(input, context);
444
- const headers = {
445
- "content-type": "application/json",
446
- };
447
- b.bp("/idnamespaces/{idNamespaceName}");
448
- b.p("idNamespaceName", () => input.idNamespaceName, "{idNamespaceName}", false);
449
- let body;
450
- body = JSON.stringify(take(input, {
451
- description: [],
452
- idMappingWorkflowProperties: (_) => se_IdNamespaceIdMappingWorkflowPropertiesList(_, context),
453
- inputSourceConfig: (_) => _json(_),
454
- roleArn: [],
455
- }));
456
- b.m("PUT").h(headers).b(body);
457
- return b.build();
458
- };
459
- export const se_UpdateMatchingWorkflowCommand = async (input, context) => {
460
- const b = rb(input, context);
461
- const headers = {
462
- "content-type": "application/json",
463
- };
464
- b.bp("/matchingworkflows/{workflowName}");
465
- b.p("workflowName", () => input.workflowName, "{workflowName}", false);
466
- let body;
467
- body = JSON.stringify(take(input, {
468
- description: [],
469
- incrementalRunConfig: (_) => _json(_),
470
- inputSourceConfig: (_) => _json(_),
471
- outputSourceConfig: (_) => _json(_),
472
- resolutionTechniques: (_) => se_ResolutionTechniques(_, context),
473
- roleArn: [],
474
- }));
475
- b.m("PUT").h(headers).b(body);
476
- return b.build();
477
- };
478
- export const se_UpdateSchemaMappingCommand = async (input, context) => {
479
- const b = rb(input, context);
480
- const headers = {
481
- "content-type": "application/json",
482
- };
483
- b.bp("/schemas/{schemaName}");
484
- b.p("schemaName", () => input.schemaName, "{schemaName}", false);
485
- let body;
486
- body = JSON.stringify(take(input, {
487
- description: [],
488
- mappedInputFields: (_) => _json(_),
489
- }));
490
- b.m("PUT").h(headers).b(body);
491
- return b.build();
492
- };
493
- export const de_AddPolicyStatementCommand = async (output, context) => {
494
- if (output.statusCode !== 200 && output.statusCode >= 300) {
495
- return de_CommandError(output, context);
496
- }
497
- const contents = map({
498
- $metadata: deserializeMetadata(output),
499
- });
500
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
501
- const doc = take(data, {
502
- arn: __expectString,
503
- policy: __expectString,
504
- token: __expectString,
505
- });
506
- Object.assign(contents, doc);
507
- return contents;
508
- };
509
- export const de_BatchDeleteUniqueIdCommand = async (output, context) => {
510
- if (output.statusCode !== 200 && output.statusCode >= 300) {
511
- return de_CommandError(output, context);
512
- }
513
- const contents = map({
514
- $metadata: deserializeMetadata(output),
515
- });
516
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
517
- const doc = take(data, {
518
- deleted: _json,
519
- disconnectedUniqueIds: _json,
520
- errors: _json,
521
- status: __expectString,
522
- });
523
- Object.assign(contents, doc);
524
- return contents;
525
- };
526
- export const de_CreateIdMappingWorkflowCommand = async (output, context) => {
527
- if (output.statusCode !== 200 && output.statusCode >= 300) {
528
- return de_CommandError(output, context);
529
- }
530
- const contents = map({
531
- $metadata: deserializeMetadata(output),
532
- });
533
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
534
- const doc = take(data, {
535
- description: __expectString,
536
- idMappingTechniques: (_) => de_IdMappingTechniques(_, context),
537
- incrementalRunConfig: _json,
538
- inputSourceConfig: _json,
539
- outputSourceConfig: _json,
540
- roleArn: __expectString,
541
- workflowArn: __expectString,
542
- workflowName: __expectString,
543
- });
544
- Object.assign(contents, doc);
545
- return contents;
546
- };
547
- export const de_CreateIdNamespaceCommand = async (output, context) => {
548
- if (output.statusCode !== 200 && output.statusCode >= 300) {
549
- return de_CommandError(output, context);
550
- }
551
- const contents = map({
552
- $metadata: deserializeMetadata(output),
553
- });
554
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
555
- const doc = take(data, {
556
- createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
557
- description: __expectString,
558
- idMappingWorkflowProperties: (_) => de_IdNamespaceIdMappingWorkflowPropertiesList(_, context),
559
- idNamespaceArn: __expectString,
560
- idNamespaceName: __expectString,
561
- inputSourceConfig: _json,
562
- roleArn: __expectString,
563
- tags: _json,
564
- type: __expectString,
565
- updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
566
- });
567
- Object.assign(contents, doc);
568
- return contents;
569
- };
570
- export const de_CreateMatchingWorkflowCommand = async (output, context) => {
571
- if (output.statusCode !== 200 && output.statusCode >= 300) {
572
- return de_CommandError(output, context);
573
- }
574
- const contents = map({
575
- $metadata: deserializeMetadata(output),
576
- });
577
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
578
- const doc = take(data, {
579
- description: __expectString,
580
- incrementalRunConfig: _json,
581
- inputSourceConfig: _json,
582
- outputSourceConfig: _json,
583
- resolutionTechniques: (_) => de_ResolutionTechniques(_, context),
584
- roleArn: __expectString,
585
- workflowArn: __expectString,
586
- workflowName: __expectString,
587
- });
588
- Object.assign(contents, doc);
589
- return contents;
590
- };
591
- export const de_CreateSchemaMappingCommand = async (output, context) => {
592
- if (output.statusCode !== 200 && output.statusCode >= 300) {
593
- return de_CommandError(output, context);
594
- }
595
- const contents = map({
596
- $metadata: deserializeMetadata(output),
597
- });
598
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
599
- const doc = take(data, {
600
- description: __expectString,
601
- mappedInputFields: _json,
602
- schemaArn: __expectString,
603
- schemaName: __expectString,
604
- });
605
- Object.assign(contents, doc);
606
- return contents;
607
- };
608
- export const de_DeleteIdMappingWorkflowCommand = async (output, context) => {
609
- if (output.statusCode !== 200 && output.statusCode >= 300) {
610
- return de_CommandError(output, context);
611
- }
612
- const contents = map({
613
- $metadata: deserializeMetadata(output),
614
- });
615
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
616
- const doc = take(data, {
617
- message: __expectString,
618
- });
619
- Object.assign(contents, doc);
620
- return contents;
621
- };
622
- export const de_DeleteIdNamespaceCommand = async (output, context) => {
623
- if (output.statusCode !== 200 && output.statusCode >= 300) {
624
- return de_CommandError(output, context);
625
- }
626
- const contents = map({
627
- $metadata: deserializeMetadata(output),
628
- });
629
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
630
- const doc = take(data, {
631
- message: __expectString,
632
- });
633
- Object.assign(contents, doc);
634
- return contents;
635
- };
636
- export const de_DeleteMatchingWorkflowCommand = async (output, context) => {
637
- if (output.statusCode !== 200 && output.statusCode >= 300) {
638
- return de_CommandError(output, context);
639
- }
640
- const contents = map({
641
- $metadata: deserializeMetadata(output),
642
- });
643
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
644
- const doc = take(data, {
645
- message: __expectString,
646
- });
647
- Object.assign(contents, doc);
648
- return contents;
649
- };
650
- export const de_DeletePolicyStatementCommand = async (output, context) => {
651
- if (output.statusCode !== 200 && output.statusCode >= 300) {
652
- return de_CommandError(output, context);
653
- }
654
- const contents = map({
655
- $metadata: deserializeMetadata(output),
656
- });
657
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
658
- const doc = take(data, {
659
- arn: __expectString,
660
- policy: __expectString,
661
- token: __expectString,
662
- });
663
- Object.assign(contents, doc);
664
- return contents;
665
- };
666
- export const de_DeleteSchemaMappingCommand = async (output, context) => {
667
- if (output.statusCode !== 200 && output.statusCode >= 300) {
668
- return de_CommandError(output, context);
669
- }
670
- const contents = map({
671
- $metadata: deserializeMetadata(output),
672
- });
673
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
674
- const doc = take(data, {
675
- message: __expectString,
676
- });
677
- Object.assign(contents, doc);
678
- return contents;
679
- };
680
- export const de_GenerateMatchIdCommand = async (output, context) => {
681
- if (output.statusCode !== 200 && output.statusCode >= 300) {
682
- return de_CommandError(output, context);
683
- }
684
- const contents = map({
685
- $metadata: deserializeMetadata(output),
686
- });
687
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
688
- const doc = take(data, {
689
- failedRecords: _json,
690
- matchGroups: _json,
691
- });
692
- Object.assign(contents, doc);
693
- return contents;
694
- };
695
- export const de_GetIdMappingJobCommand = async (output, context) => {
696
- if (output.statusCode !== 200 && output.statusCode >= 300) {
697
- return de_CommandError(output, context);
698
- }
699
- const contents = map({
700
- $metadata: deserializeMetadata(output),
701
- });
702
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
703
- const doc = take(data, {
704
- endTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
705
- errorDetails: _json,
706
- jobId: __expectString,
707
- jobType: __expectString,
708
- metrics: _json,
709
- outputSourceConfig: _json,
710
- startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
711
- status: __expectString,
712
- });
713
- Object.assign(contents, doc);
714
- return contents;
715
- };
716
- export const de_GetIdMappingWorkflowCommand = async (output, context) => {
717
- if (output.statusCode !== 200 && output.statusCode >= 300) {
718
- return de_CommandError(output, context);
719
- }
720
- const contents = map({
721
- $metadata: deserializeMetadata(output),
722
- });
723
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
724
- const doc = take(data, {
725
- createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
726
- description: __expectString,
727
- idMappingTechniques: (_) => de_IdMappingTechniques(_, context),
728
- incrementalRunConfig: _json,
729
- inputSourceConfig: _json,
730
- outputSourceConfig: _json,
731
- roleArn: __expectString,
732
- tags: _json,
733
- updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
734
- workflowArn: __expectString,
735
- workflowName: __expectString,
736
- });
737
- Object.assign(contents, doc);
738
- return contents;
739
- };
740
- export const de_GetIdNamespaceCommand = async (output, context) => {
741
- if (output.statusCode !== 200 && output.statusCode >= 300) {
742
- return de_CommandError(output, context);
743
- }
744
- const contents = map({
745
- $metadata: deserializeMetadata(output),
746
- });
747
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
748
- const doc = take(data, {
749
- createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
750
- description: __expectString,
751
- idMappingWorkflowProperties: (_) => de_IdNamespaceIdMappingWorkflowPropertiesList(_, context),
752
- idNamespaceArn: __expectString,
753
- idNamespaceName: __expectString,
754
- inputSourceConfig: _json,
755
- roleArn: __expectString,
756
- tags: _json,
757
- type: __expectString,
758
- updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
759
- });
760
- Object.assign(contents, doc);
761
- return contents;
762
- };
763
- export const de_GetMatchIdCommand = async (output, context) => {
764
- if (output.statusCode !== 200 && output.statusCode >= 300) {
765
- return de_CommandError(output, context);
766
- }
767
- const contents = map({
768
- $metadata: deserializeMetadata(output),
769
- });
770
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
771
- const doc = take(data, {
772
- matchId: __expectString,
773
- matchRule: __expectString,
774
- });
775
- Object.assign(contents, doc);
776
- return contents;
777
- };
778
- export const de_GetMatchingJobCommand = async (output, context) => {
779
- if (output.statusCode !== 200 && output.statusCode >= 300) {
780
- return de_CommandError(output, context);
781
- }
782
- const contents = map({
783
- $metadata: deserializeMetadata(output),
784
- });
785
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
786
- const doc = take(data, {
787
- endTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
788
- errorDetails: _json,
789
- jobId: __expectString,
790
- metrics: _json,
791
- outputSourceConfig: _json,
792
- startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
793
- status: __expectString,
794
- });
795
- Object.assign(contents, doc);
796
- return contents;
797
- };
798
- export const de_GetMatchingWorkflowCommand = async (output, context) => {
799
- if (output.statusCode !== 200 && output.statusCode >= 300) {
800
- return de_CommandError(output, context);
801
- }
802
- const contents = map({
803
- $metadata: deserializeMetadata(output),
804
- });
805
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
806
- const doc = take(data, {
807
- createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
808
- description: __expectString,
809
- incrementalRunConfig: _json,
810
- inputSourceConfig: _json,
811
- outputSourceConfig: _json,
812
- resolutionTechniques: (_) => de_ResolutionTechniques(_, context),
813
- roleArn: __expectString,
814
- tags: _json,
815
- updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
816
- workflowArn: __expectString,
817
- workflowName: __expectString,
818
- });
819
- Object.assign(contents, doc);
820
- return contents;
821
- };
822
- export const de_GetPolicyCommand = async (output, context) => {
823
- if (output.statusCode !== 200 && output.statusCode >= 300) {
824
- return de_CommandError(output, context);
825
- }
826
- const contents = map({
827
- $metadata: deserializeMetadata(output),
828
- });
829
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
830
- const doc = take(data, {
831
- arn: __expectString,
832
- policy: __expectString,
833
- token: __expectString,
834
- });
835
- Object.assign(contents, doc);
836
- return contents;
837
- };
838
- export const de_GetProviderServiceCommand = async (output, context) => {
839
- if (output.statusCode !== 200 && output.statusCode >= 300) {
840
- return de_CommandError(output, context);
841
- }
842
- const contents = map({
843
- $metadata: deserializeMetadata(output),
844
- });
845
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
846
- const doc = take(data, {
847
- anonymizedOutput: __expectBoolean,
848
- providerComponentSchema: _json,
849
- providerConfigurationDefinition: (_) => de_Document(_, context),
850
- providerEndpointConfiguration: (_) => _json(__expectUnion(_)),
851
- providerEntityOutputDefinition: (_) => de_Document(_, context),
852
- providerIdNameSpaceConfiguration: (_) => de_ProviderIdNameSpaceConfiguration(_, context),
853
- providerIntermediateDataAccessConfiguration: _json,
854
- providerJobConfiguration: (_) => de_Document(_, context),
855
- providerName: __expectString,
856
- providerServiceArn: __expectString,
857
- providerServiceDisplayName: __expectString,
858
- providerServiceName: __expectString,
859
- providerServiceType: __expectString,
860
- });
861
- Object.assign(contents, doc);
862
- return contents;
863
- };
864
- export const de_GetSchemaMappingCommand = async (output, context) => {
865
- if (output.statusCode !== 200 && output.statusCode >= 300) {
866
- return de_CommandError(output, context);
867
- }
868
- const contents = map({
869
- $metadata: deserializeMetadata(output),
870
- });
871
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
872
- const doc = take(data, {
873
- createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
874
- description: __expectString,
875
- hasWorkflows: __expectBoolean,
876
- mappedInputFields: _json,
877
- schemaArn: __expectString,
878
- schemaName: __expectString,
879
- tags: _json,
880
- updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
881
- });
882
- Object.assign(contents, doc);
883
- return contents;
884
- };
885
- export const de_ListIdMappingJobsCommand = async (output, context) => {
886
- if (output.statusCode !== 200 && output.statusCode >= 300) {
887
- return de_CommandError(output, context);
888
- }
889
- const contents = map({
890
- $metadata: deserializeMetadata(output),
891
- });
892
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
893
- const doc = take(data, {
894
- jobs: (_) => de_JobList(_, context),
895
- nextToken: __expectString,
896
- });
897
- Object.assign(contents, doc);
898
- return contents;
899
- };
900
- export const de_ListIdMappingWorkflowsCommand = async (output, context) => {
901
- if (output.statusCode !== 200 && output.statusCode >= 300) {
902
- return de_CommandError(output, context);
903
- }
904
- const contents = map({
905
- $metadata: deserializeMetadata(output),
906
- });
907
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
908
- const doc = take(data, {
909
- nextToken: __expectString,
910
- workflowSummaries: (_) => de_IdMappingWorkflowList(_, context),
911
- });
912
- Object.assign(contents, doc);
913
- return contents;
914
- };
915
- export const de_ListIdNamespacesCommand = async (output, context) => {
916
- if (output.statusCode !== 200 && output.statusCode >= 300) {
917
- return de_CommandError(output, context);
918
- }
919
- const contents = map({
920
- $metadata: deserializeMetadata(output),
921
- });
922
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
923
- const doc = take(data, {
924
- idNamespaceSummaries: (_) => de_IdNamespaceList(_, context),
925
- nextToken: __expectString,
926
- });
927
- Object.assign(contents, doc);
928
- return contents;
929
- };
930
- export const de_ListMatchingJobsCommand = async (output, context) => {
931
- if (output.statusCode !== 200 && output.statusCode >= 300) {
932
- return de_CommandError(output, context);
933
- }
934
- const contents = map({
935
- $metadata: deserializeMetadata(output),
936
- });
937
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
938
- const doc = take(data, {
939
- jobs: (_) => de_JobList(_, context),
940
- nextToken: __expectString,
941
- });
942
- Object.assign(contents, doc);
943
- return contents;
944
- };
945
- export const de_ListMatchingWorkflowsCommand = async (output, context) => {
946
- if (output.statusCode !== 200 && output.statusCode >= 300) {
947
- return de_CommandError(output, context);
948
- }
949
- const contents = map({
950
- $metadata: deserializeMetadata(output),
951
- });
952
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
953
- const doc = take(data, {
954
- nextToken: __expectString,
955
- workflowSummaries: (_) => de_MatchingWorkflowList(_, context),
956
- });
957
- Object.assign(contents, doc);
958
- return contents;
959
- };
960
- export const de_ListProviderServicesCommand = async (output, context) => {
961
- if (output.statusCode !== 200 && output.statusCode >= 300) {
962
- return de_CommandError(output, context);
963
- }
964
- const contents = map({
965
- $metadata: deserializeMetadata(output),
966
- });
967
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
968
- const doc = take(data, {
969
- nextToken: __expectString,
970
- providerServiceSummaries: _json,
971
- });
972
- Object.assign(contents, doc);
973
- return contents;
974
- };
975
- export const de_ListSchemaMappingsCommand = async (output, context) => {
976
- if (output.statusCode !== 200 && output.statusCode >= 300) {
977
- return de_CommandError(output, context);
978
- }
979
- const contents = map({
980
- $metadata: deserializeMetadata(output),
981
- });
982
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
983
- const doc = take(data, {
984
- nextToken: __expectString,
985
- schemaList: (_) => de_SchemaMappingList(_, context),
986
- });
987
- Object.assign(contents, doc);
988
- return contents;
989
- };
990
- export const de_ListTagsForResourceCommand = async (output, context) => {
991
- if (output.statusCode !== 200 && output.statusCode >= 300) {
992
- return de_CommandError(output, context);
993
- }
994
- const contents = map({
995
- $metadata: deserializeMetadata(output),
996
- });
997
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
998
- const doc = take(data, {
999
- tags: _json,
1000
- });
1001
- Object.assign(contents, doc);
1002
- return contents;
1003
- };
1004
- export const de_PutPolicyCommand = async (output, context) => {
1005
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1006
- return de_CommandError(output, context);
1007
- }
1008
- const contents = map({
1009
- $metadata: deserializeMetadata(output),
1010
- });
1011
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1012
- const doc = take(data, {
1013
- arn: __expectString,
1014
- policy: __expectString,
1015
- token: __expectString,
1016
- });
1017
- Object.assign(contents, doc);
1018
- return contents;
1019
- };
1020
- export const de_StartIdMappingJobCommand = async (output, context) => {
1021
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1022
- return de_CommandError(output, context);
1023
- }
1024
- const contents = map({
1025
- $metadata: deserializeMetadata(output),
1026
- });
1027
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1028
- const doc = take(data, {
1029
- jobId: __expectString,
1030
- jobType: __expectString,
1031
- outputSourceConfig: _json,
1032
- });
1033
- Object.assign(contents, doc);
1034
- return contents;
1035
- };
1036
- export const de_StartMatchingJobCommand = async (output, context) => {
1037
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1038
- return de_CommandError(output, context);
1039
- }
1040
- const contents = map({
1041
- $metadata: deserializeMetadata(output),
1042
- });
1043
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1044
- const doc = take(data, {
1045
- jobId: __expectString,
1046
- });
1047
- Object.assign(contents, doc);
1048
- return contents;
1049
- };
1050
- export const de_TagResourceCommand = async (output, context) => {
1051
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1052
- return de_CommandError(output, context);
1053
- }
1054
- const contents = map({
1055
- $metadata: deserializeMetadata(output),
1056
- });
1057
- await collectBody(output.body, context);
1058
- return contents;
1059
- };
1060
- export const de_UntagResourceCommand = async (output, context) => {
1061
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1062
- return de_CommandError(output, context);
1063
- }
1064
- const contents = map({
1065
- $metadata: deserializeMetadata(output),
1066
- });
1067
- await collectBody(output.body, context);
1068
- return contents;
1069
- };
1070
- export const de_UpdateIdMappingWorkflowCommand = async (output, context) => {
1071
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1072
- return de_CommandError(output, context);
1073
- }
1074
- const contents = map({
1075
- $metadata: deserializeMetadata(output),
1076
- });
1077
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1078
- const doc = take(data, {
1079
- description: __expectString,
1080
- idMappingTechniques: (_) => de_IdMappingTechniques(_, context),
1081
- incrementalRunConfig: _json,
1082
- inputSourceConfig: _json,
1083
- outputSourceConfig: _json,
1084
- roleArn: __expectString,
1085
- workflowArn: __expectString,
1086
- workflowName: __expectString,
1087
- });
1088
- Object.assign(contents, doc);
1089
- return contents;
1090
- };
1091
- export const de_UpdateIdNamespaceCommand = async (output, context) => {
1092
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1093
- return de_CommandError(output, context);
1094
- }
1095
- const contents = map({
1096
- $metadata: deserializeMetadata(output),
1097
- });
1098
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1099
- const doc = take(data, {
1100
- createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1101
- description: __expectString,
1102
- idMappingWorkflowProperties: (_) => de_IdNamespaceIdMappingWorkflowPropertiesList(_, context),
1103
- idNamespaceArn: __expectString,
1104
- idNamespaceName: __expectString,
1105
- inputSourceConfig: _json,
1106
- roleArn: __expectString,
1107
- type: __expectString,
1108
- updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1109
- });
1110
- Object.assign(contents, doc);
1111
- return contents;
1112
- };
1113
- export const de_UpdateMatchingWorkflowCommand = async (output, context) => {
1114
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1115
- return de_CommandError(output, context);
1116
- }
1117
- const contents = map({
1118
- $metadata: deserializeMetadata(output),
1119
- });
1120
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1121
- const doc = take(data, {
1122
- description: __expectString,
1123
- incrementalRunConfig: _json,
1124
- inputSourceConfig: _json,
1125
- outputSourceConfig: _json,
1126
- resolutionTechniques: (_) => de_ResolutionTechniques(_, context),
1127
- roleArn: __expectString,
1128
- workflowName: __expectString,
1129
- });
1130
- Object.assign(contents, doc);
1131
- return contents;
1132
- };
1133
- export const de_UpdateSchemaMappingCommand = async (output, context) => {
1134
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1135
- return de_CommandError(output, context);
1136
- }
1137
- const contents = map({
1138
- $metadata: deserializeMetadata(output),
1139
- });
1140
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1141
- const doc = take(data, {
1142
- description: __expectString,
1143
- mappedInputFields: _json,
1144
- schemaArn: __expectString,
1145
- schemaName: __expectString,
1146
- });
1147
- Object.assign(contents, doc);
1148
- return contents;
1149
- };
1150
- const de_CommandError = async (output, context) => {
1151
- const parsedOutput = {
1152
- ...output,
1153
- body: await parseErrorBody(output.body, context),
1154
- };
1155
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1156
- switch (errorCode) {
1157
- case "AccessDeniedException":
1158
- case "com.amazonaws.entityresolution#AccessDeniedException":
1159
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1160
- case "ConflictException":
1161
- case "com.amazonaws.entityresolution#ConflictException":
1162
- throw await de_ConflictExceptionRes(parsedOutput, context);
1163
- case "InternalServerException":
1164
- case "com.amazonaws.entityresolution#InternalServerException":
1165
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1166
- case "ResourceNotFoundException":
1167
- case "com.amazonaws.entityresolution#ResourceNotFoundException":
1168
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1169
- case "ThrottlingException":
1170
- case "com.amazonaws.entityresolution#ThrottlingException":
1171
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1172
- case "ValidationException":
1173
- case "com.amazonaws.entityresolution#ValidationException":
1174
- throw await de_ValidationExceptionRes(parsedOutput, context);
1175
- case "ExceedsLimitException":
1176
- case "com.amazonaws.entityresolution#ExceedsLimitException":
1177
- throw await de_ExceedsLimitExceptionRes(parsedOutput, context);
1178
- default:
1179
- const parsedBody = parsedOutput.body;
1180
- return throwDefaultError({
1181
- output,
1182
- parsedBody,
1183
- errorCode,
1184
- });
1185
- }
1186
- };
1187
- const throwDefaultError = withBaseException(__BaseException);
1188
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1189
- const contents = map({});
1190
- const data = parsedOutput.body;
1191
- const doc = take(data, {
1192
- message: __expectString,
1193
- });
1194
- Object.assign(contents, doc);
1195
- const exception = new AccessDeniedException({
1196
- $metadata: deserializeMetadata(parsedOutput),
1197
- ...contents,
1198
- });
1199
- return __decorateServiceException(exception, parsedOutput.body);
1200
- };
1201
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
1202
- const contents = map({});
1203
- const data = parsedOutput.body;
1204
- const doc = take(data, {
1205
- message: __expectString,
1206
- });
1207
- Object.assign(contents, doc);
1208
- const exception = new ConflictException({
1209
- $metadata: deserializeMetadata(parsedOutput),
1210
- ...contents,
1211
- });
1212
- return __decorateServiceException(exception, parsedOutput.body);
1213
- };
1214
- const de_ExceedsLimitExceptionRes = async (parsedOutput, context) => {
1215
- const contents = map({});
1216
- const data = parsedOutput.body;
1217
- const doc = take(data, {
1218
- message: __expectString,
1219
- quotaName: __expectString,
1220
- quotaValue: __expectInt32,
1221
- });
1222
- Object.assign(contents, doc);
1223
- const exception = new ExceedsLimitException({
1224
- $metadata: deserializeMetadata(parsedOutput),
1225
- ...contents,
1226
- });
1227
- return __decorateServiceException(exception, parsedOutput.body);
1228
- };
1229
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1230
- const contents = map({});
1231
- const data = parsedOutput.body;
1232
- const doc = take(data, {
1233
- message: __expectString,
1234
- });
1235
- Object.assign(contents, doc);
1236
- const exception = new InternalServerException({
1237
- $metadata: deserializeMetadata(parsedOutput),
1238
- ...contents,
1239
- });
1240
- return __decorateServiceException(exception, parsedOutput.body);
1241
- };
1242
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1243
- const contents = map({});
1244
- const data = parsedOutput.body;
1245
- const doc = take(data, {
1246
- message: __expectString,
1247
- });
1248
- Object.assign(contents, doc);
1249
- const exception = new ResourceNotFoundException({
1250
- $metadata: deserializeMetadata(parsedOutput),
1251
- ...contents,
1252
- });
1253
- return __decorateServiceException(exception, parsedOutput.body);
1254
- };
1255
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1256
- const contents = map({});
1257
- const data = parsedOutput.body;
1258
- const doc = take(data, {
1259
- message: __expectString,
1260
- });
1261
- Object.assign(contents, doc);
1262
- const exception = new ThrottlingException({
1263
- $metadata: deserializeMetadata(parsedOutput),
1264
- ...contents,
1265
- });
1266
- return __decorateServiceException(exception, parsedOutput.body);
1267
- };
1268
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
1269
- const contents = map({});
1270
- const data = parsedOutput.body;
1271
- const doc = take(data, {
1272
- message: __expectString,
1273
- });
1274
- Object.assign(contents, doc);
1275
- const exception = new ValidationException({
1276
- $metadata: deserializeMetadata(parsedOutput),
1277
- ...contents,
1278
- });
1279
- return __decorateServiceException(exception, parsedOutput.body);
1280
- };
1281
- const se_IdMappingTechniques = (input, context) => {
1282
- return take(input, {
1283
- idMappingType: [],
1284
- providerProperties: (_) => se_ProviderProperties(_, context),
1285
- ruleBasedProperties: _json,
1286
- });
1287
- };
1288
- const se_IdNamespaceIdMappingWorkflowProperties = (input, context) => {
1289
- return take(input, {
1290
- idMappingType: [],
1291
- providerProperties: (_) => se_NamespaceProviderProperties(_, context),
1292
- ruleBasedProperties: _json,
1293
- });
1294
- };
1295
- const se_IdNamespaceIdMappingWorkflowPropertiesList = (input, context) => {
1296
- return input
1297
- .filter((e) => e != null)
1298
- .map((entry) => {
1299
- return se_IdNamespaceIdMappingWorkflowProperties(entry, context);
1300
- });
1301
- };
1302
- const se_NamespaceProviderProperties = (input, context) => {
1303
- return take(input, {
1304
- providerConfiguration: (_) => se_Document(_, context),
1305
- providerServiceArn: [],
1306
- });
1307
- };
1308
- const se_ProviderProperties = (input, context) => {
1309
- return take(input, {
1310
- intermediateSourceConfiguration: _json,
1311
- providerConfiguration: (_) => se_Document(_, context),
1312
- providerServiceArn: [],
1313
- });
1314
- };
1315
- const se_ResolutionTechniques = (input, context) => {
1316
- return take(input, {
1317
- providerProperties: (_) => se_ProviderProperties(_, context),
1318
- resolutionType: [],
1319
- ruleBasedProperties: _json,
1320
- ruleConditionProperties: _json,
1321
- });
1322
- };
1323
- const se_Document = (input, context) => {
1324
- return input;
1325
- };
1326
- const de_IdMappingTechniques = (output, context) => {
1327
- return take(output, {
1328
- idMappingType: __expectString,
1329
- providerProperties: (_) => de_ProviderProperties(_, context),
1330
- ruleBasedProperties: _json,
1331
- });
1332
- };
1333
- const de_IdMappingWorkflowList = (output, context) => {
1334
- const retVal = (output || [])
1335
- .filter((e) => e != null)
1336
- .map((entry) => {
1337
- return de_IdMappingWorkflowSummary(entry, context);
1338
- });
1339
- return retVal;
1340
- };
1341
- const de_IdMappingWorkflowSummary = (output, context) => {
1342
- return take(output, {
1343
- createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1344
- updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1345
- workflowArn: __expectString,
1346
- workflowName: __expectString,
1347
- });
1348
- };
1349
- const de_IdNamespaceIdMappingWorkflowProperties = (output, context) => {
1350
- return take(output, {
1351
- idMappingType: __expectString,
1352
- providerProperties: (_) => de_NamespaceProviderProperties(_, context),
1353
- ruleBasedProperties: _json,
1354
- });
1355
- };
1356
- const de_IdNamespaceIdMappingWorkflowPropertiesList = (output, context) => {
1357
- const retVal = (output || [])
1358
- .filter((e) => e != null)
1359
- .map((entry) => {
1360
- return de_IdNamespaceIdMappingWorkflowProperties(entry, context);
1361
- });
1362
- return retVal;
1363
- };
1364
- const de_IdNamespaceList = (output, context) => {
1365
- const retVal = (output || [])
1366
- .filter((e) => e != null)
1367
- .map((entry) => {
1368
- return de_IdNamespaceSummary(entry, context);
1369
- });
1370
- return retVal;
1371
- };
1372
- const de_IdNamespaceSummary = (output, context) => {
1373
- return take(output, {
1374
- createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1375
- description: __expectString,
1376
- idMappingWorkflowProperties: _json,
1377
- idNamespaceArn: __expectString,
1378
- idNamespaceName: __expectString,
1379
- type: __expectString,
1380
- updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1381
- });
1382
- };
1383
- const de_JobList = (output, context) => {
1384
- const retVal = (output || [])
1385
- .filter((e) => e != null)
1386
- .map((entry) => {
1387
- return de_JobSummary(entry, context);
1388
- });
1389
- return retVal;
1390
- };
1391
- const de_JobSummary = (output, context) => {
1392
- return take(output, {
1393
- endTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1394
- jobId: __expectString,
1395
- startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1396
- status: __expectString,
1397
- });
1398
- };
1399
- const de_MatchingWorkflowList = (output, context) => {
1400
- const retVal = (output || [])
1401
- .filter((e) => e != null)
1402
- .map((entry) => {
1403
- return de_MatchingWorkflowSummary(entry, context);
1404
- });
1405
- return retVal;
1406
- };
1407
- const de_MatchingWorkflowSummary = (output, context) => {
1408
- return take(output, {
1409
- createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1410
- resolutionType: __expectString,
1411
- updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1412
- workflowArn: __expectString,
1413
- workflowName: __expectString,
1414
- });
1415
- };
1416
- const de_NamespaceProviderProperties = (output, context) => {
1417
- return take(output, {
1418
- providerConfiguration: (_) => de_Document(_, context),
1419
- providerServiceArn: __expectString,
1420
- });
1421
- };
1422
- const de_ProviderIdNameSpaceConfiguration = (output, context) => {
1423
- return take(output, {
1424
- description: __expectString,
1425
- providerSourceConfigurationDefinition: (_) => de_Document(_, context),
1426
- providerTargetConfigurationDefinition: (_) => de_Document(_, context),
1427
- });
1428
- };
1429
- const de_ProviderProperties = (output, context) => {
1430
- return take(output, {
1431
- intermediateSourceConfiguration: _json,
1432
- providerConfiguration: (_) => de_Document(_, context),
1433
- providerServiceArn: __expectString,
1434
- });
1435
- };
1436
- const de_ResolutionTechniques = (output, context) => {
1437
- return take(output, {
1438
- providerProperties: (_) => de_ProviderProperties(_, context),
1439
- resolutionType: __expectString,
1440
- ruleBasedProperties: _json,
1441
- ruleConditionProperties: _json,
1442
- });
1443
- };
1444
- const de_SchemaMappingList = (output, context) => {
1445
- const retVal = (output || [])
1446
- .filter((e) => e != null)
1447
- .map((entry) => {
1448
- return de_SchemaMappingSummary(entry, context);
1449
- });
1450
- return retVal;
1451
- };
1452
- const de_SchemaMappingSummary = (output, context) => {
1453
- return take(output, {
1454
- createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1455
- hasWorkflows: __expectBoolean,
1456
- schemaArn: __expectString,
1457
- schemaName: __expectString,
1458
- updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1459
- });
1460
- };
1461
- const de_Document = (output, context) => {
1462
- return output;
1463
- };
1464
- const deserializeMetadata = (output) => ({
1465
- httpStatusCode: output.statusCode,
1466
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1467
- extendedRequestId: output.headers["x-amz-id-2"],
1468
- cfId: output.headers["x-amz-cf-id"],
1469
- });
1470
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1471
- const _i = "inputsource";
1472
- const _iS = "inputSource";
1473
- const _mR = "maxResults";
1474
- const _nT = "nextToken";
1475
- const _pN = "providerName";
1476
- const _tK = "tagKeys";
1477
- const _u = "uniqueids";
1478
- const _uI = "uniqueIds";