@aws-sdk/client-entityresolution 3.428.0 → 3.430.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 (99) hide show
  1. package/README.md +104 -17
  2. package/dist-cjs/EntityResolution.js +22 -0
  3. package/dist-cjs/commands/CreateIdMappingWorkflowCommand.js +51 -0
  4. package/dist-cjs/commands/DeleteIdMappingWorkflowCommand.js +51 -0
  5. package/dist-cjs/commands/GetIdMappingJobCommand.js +51 -0
  6. package/dist-cjs/commands/GetIdMappingWorkflowCommand.js +51 -0
  7. package/dist-cjs/commands/GetProviderServiceCommand.js +51 -0
  8. package/dist-cjs/commands/ListIdMappingJobsCommand.js +51 -0
  9. package/dist-cjs/commands/ListIdMappingWorkflowsCommand.js +51 -0
  10. package/dist-cjs/commands/ListProviderServicesCommand.js +51 -0
  11. package/dist-cjs/commands/StartIdMappingJobCommand.js +51 -0
  12. package/dist-cjs/commands/UpdateIdMappingWorkflowCommand.js +51 -0
  13. package/dist-cjs/commands/UpdateSchemaMappingCommand.js +51 -0
  14. package/dist-cjs/commands/index.js +11 -0
  15. package/dist-cjs/endpoint/ruleset.js +3 -3
  16. package/dist-cjs/models/models_0.js +29 -12
  17. package/dist-cjs/pagination/ListIdMappingJobsPaginator.js +29 -0
  18. package/dist-cjs/pagination/ListIdMappingWorkflowsPaginator.js +29 -0
  19. package/dist-cjs/pagination/ListProviderServicesPaginator.js +29 -0
  20. package/dist-cjs/pagination/index.js +3 -0
  21. package/dist-cjs/protocols/Aws_restJson1.js +917 -71
  22. package/dist-es/EntityResolution.js +22 -0
  23. package/dist-es/commands/CreateIdMappingWorkflowCommand.js +47 -0
  24. package/dist-es/commands/DeleteIdMappingWorkflowCommand.js +47 -0
  25. package/dist-es/commands/GetIdMappingJobCommand.js +47 -0
  26. package/dist-es/commands/GetIdMappingWorkflowCommand.js +47 -0
  27. package/dist-es/commands/GetProviderServiceCommand.js +47 -0
  28. package/dist-es/commands/ListIdMappingJobsCommand.js +47 -0
  29. package/dist-es/commands/ListIdMappingWorkflowsCommand.js +47 -0
  30. package/dist-es/commands/ListProviderServicesCommand.js +47 -0
  31. package/dist-es/commands/StartIdMappingJobCommand.js +47 -0
  32. package/dist-es/commands/UpdateIdMappingWorkflowCommand.js +47 -0
  33. package/dist-es/commands/UpdateSchemaMappingCommand.js +47 -0
  34. package/dist-es/commands/index.js +11 -0
  35. package/dist-es/endpoint/ruleset.js +3 -3
  36. package/dist-es/models/models_0.js +28 -11
  37. package/dist-es/pagination/ListIdMappingJobsPaginator.js +25 -0
  38. package/dist-es/pagination/ListIdMappingWorkflowsPaginator.js +25 -0
  39. package/dist-es/pagination/ListProviderServicesPaginator.js +25 -0
  40. package/dist-es/pagination/index.js +3 -0
  41. package/dist-es/protocols/Aws_restJson1.js +908 -85
  42. package/dist-types/EntityResolution.d.ts +86 -10
  43. package/dist-types/EntityResolutionClient.d.ts +22 -12
  44. package/dist-types/commands/CreateIdMappingWorkflowCommand.d.ts +160 -0
  45. package/dist-types/commands/CreateMatchingWorkflowCommand.d.ts +34 -13
  46. package/dist-types/commands/CreateSchemaMappingCommand.d.ts +18 -10
  47. package/dist-types/commands/DeleteIdMappingWorkflowCommand.d.ts +94 -0
  48. package/dist-types/commands/DeleteMatchingWorkflowCommand.d.ts +10 -6
  49. package/dist-types/commands/DeleteSchemaMappingCommand.d.ts +15 -9
  50. package/dist-types/commands/GetIdMappingJobCommand.d.ts +110 -0
  51. package/dist-types/commands/GetIdMappingWorkflowCommand.d.ts +127 -0
  52. package/dist-types/commands/GetMatchIdCommand.d.ts +10 -5
  53. package/dist-types/commands/GetMatchingJobCommand.d.ts +10 -5
  54. package/dist-types/commands/GetMatchingWorkflowCommand.d.ts +16 -5
  55. package/dist-types/commands/GetProviderServiceCommand.d.ts +121 -0
  56. package/dist-types/commands/GetSchemaMappingCommand.d.ts +11 -5
  57. package/dist-types/commands/ListIdMappingJobsCommand.d.ts +107 -0
  58. package/dist-types/commands/ListIdMappingWorkflowsCommand.d.ts +103 -0
  59. package/dist-types/commands/ListMatchingJobsCommand.d.ts +8 -4
  60. package/dist-types/commands/ListMatchingWorkflowsCommand.d.ts +11 -5
  61. package/dist-types/commands/ListProviderServicesCommand.d.ts +105 -0
  62. package/dist-types/commands/ListSchemaMappingsCommand.d.ts +11 -5
  63. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -5
  64. package/dist-types/commands/StartIdMappingJobCommand.d.ts +110 -0
  65. package/dist-types/commands/StartMatchingJobCommand.d.ts +16 -10
  66. package/dist-types/commands/TagResourceCommand.d.ts +11 -9
  67. package/dist-types/commands/UntagResourceCommand.d.ts +3 -3
  68. package/dist-types/commands/UpdateIdMappingWorkflowCommand.d.ts +149 -0
  69. package/dist-types/commands/UpdateMatchingWorkflowCommand.d.ts +27 -9
  70. package/dist-types/commands/UpdateSchemaMappingCommand.d.ts +128 -0
  71. package/dist-types/commands/index.d.ts +11 -0
  72. package/dist-types/index.d.ts +9 -10
  73. package/dist-types/models/models_0.d.ts +1128 -234
  74. package/dist-types/pagination/ListIdMappingJobsPaginator.d.ts +7 -0
  75. package/dist-types/pagination/ListIdMappingWorkflowsPaginator.d.ts +7 -0
  76. package/dist-types/pagination/ListProviderServicesPaginator.d.ts +7 -0
  77. package/dist-types/pagination/index.d.ts +3 -0
  78. package/dist-types/protocols/Aws_restJson1.d.ts +99 -0
  79. package/dist-types/ts3.4/EntityResolution.d.ts +187 -0
  80. package/dist-types/ts3.4/EntityResolutionClient.d.ts +68 -2
  81. package/dist-types/ts3.4/commands/CreateIdMappingWorkflowCommand.d.ts +42 -0
  82. package/dist-types/ts3.4/commands/DeleteIdMappingWorkflowCommand.d.ts +42 -0
  83. package/dist-types/ts3.4/commands/GetIdMappingJobCommand.d.ts +38 -0
  84. package/dist-types/ts3.4/commands/GetIdMappingWorkflowCommand.d.ts +42 -0
  85. package/dist-types/ts3.4/commands/GetProviderServiceCommand.d.ts +39 -0
  86. package/dist-types/ts3.4/commands/ListIdMappingJobsCommand.d.ts +38 -0
  87. package/dist-types/ts3.4/commands/ListIdMappingWorkflowsCommand.d.ts +42 -0
  88. package/dist-types/ts3.4/commands/ListProviderServicesCommand.d.ts +42 -0
  89. package/dist-types/ts3.4/commands/StartIdMappingJobCommand.d.ts +38 -0
  90. package/dist-types/ts3.4/commands/UpdateIdMappingWorkflowCommand.d.ts +42 -0
  91. package/dist-types/ts3.4/commands/UpdateSchemaMappingCommand.d.ts +39 -0
  92. package/dist-types/ts3.4/commands/index.d.ts +11 -0
  93. package/dist-types/ts3.4/models/models_0.d.ts +268 -55
  94. package/dist-types/ts3.4/pagination/ListIdMappingJobsPaginator.d.ts +11 -0
  95. package/dist-types/ts3.4/pagination/ListIdMappingWorkflowsPaginator.d.ts +11 -0
  96. package/dist-types/ts3.4/pagination/ListProviderServicesPaginator.d.ts +11 -0
  97. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  98. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +132 -0
  99. package/package.json +11 -11
@@ -1,10 +1,38 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UpdateMatchingWorkflowCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartMatchingJobCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSchemaMappingsCommand = exports.de_ListMatchingWorkflowsCommand = exports.de_ListMatchingJobsCommand = exports.de_GetSchemaMappingCommand = exports.de_GetMatchingWorkflowCommand = exports.de_GetMatchingJobCommand = exports.de_GetMatchIdCommand = exports.de_DeleteSchemaMappingCommand = exports.de_DeleteMatchingWorkflowCommand = exports.de_CreateSchemaMappingCommand = exports.de_CreateMatchingWorkflowCommand = exports.se_UpdateMatchingWorkflowCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartMatchingJobCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSchemaMappingsCommand = exports.se_ListMatchingWorkflowsCommand = exports.se_ListMatchingJobsCommand = exports.se_GetSchemaMappingCommand = exports.se_GetMatchingWorkflowCommand = exports.se_GetMatchingJobCommand = exports.se_GetMatchIdCommand = exports.se_DeleteSchemaMappingCommand = exports.se_DeleteMatchingWorkflowCommand = exports.se_CreateSchemaMappingCommand = exports.se_CreateMatchingWorkflowCommand = void 0;
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;
4
5
  const protocol_http_1 = require("@smithy/protocol-http");
5
6
  const smithy_client_1 = require("@smithy/smithy-client");
6
7
  const EntityResolutionServiceException_1 = require("../models/EntityResolutionServiceException");
7
8
  const models_0_1 = require("../models/models_0");
9
+ const se_CreateIdMappingWorkflowCommand = async (input, context) => {
10
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
11
+ const headers = {
12
+ "content-type": "application/json",
13
+ };
14
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/idmappingworkflows";
15
+ let body;
16
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
17
+ description: [],
18
+ idMappingTechniques: (_) => se_IdMappingTechniques(_, context),
19
+ inputSourceConfig: (_) => (0, smithy_client_1._json)(_),
20
+ outputSourceConfig: (_) => (0, smithy_client_1._json)(_),
21
+ roleArn: [],
22
+ tags: (_) => (0, smithy_client_1._json)(_),
23
+ workflowName: [],
24
+ }));
25
+ return new protocol_http_1.HttpRequest({
26
+ protocol,
27
+ hostname,
28
+ port,
29
+ method: "POST",
30
+ headers,
31
+ path: resolvedPath,
32
+ body,
33
+ });
34
+ };
35
+ exports.se_CreateIdMappingWorkflowCommand = se_CreateIdMappingWorkflowCommand;
8
36
  const se_CreateMatchingWorkflowCommand = async (input, context) => {
9
37
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
38
  const headers = {
@@ -17,7 +45,7 @@ const se_CreateMatchingWorkflowCommand = async (input, context) => {
17
45
  incrementalRunConfig: (_) => (0, smithy_client_1._json)(_),
18
46
  inputSourceConfig: (_) => (0, smithy_client_1._json)(_),
19
47
  outputSourceConfig: (_) => (0, smithy_client_1._json)(_),
20
- resolutionTechniques: (_) => (0, smithy_client_1._json)(_),
48
+ resolutionTechniques: (_) => se_ResolutionTechniques(_, context),
21
49
  roleArn: [],
22
50
  tags: (_) => (0, smithy_client_1._json)(_),
23
51
  workflowName: [],
@@ -57,6 +85,23 @@ const se_CreateSchemaMappingCommand = async (input, context) => {
57
85
  });
58
86
  };
59
87
  exports.se_CreateSchemaMappingCommand = se_CreateSchemaMappingCommand;
88
+ const se_DeleteIdMappingWorkflowCommand = async (input, context) => {
89
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
90
+ const headers = {};
91
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/idmappingworkflows/{workflowName}";
92
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
93
+ let body;
94
+ return new protocol_http_1.HttpRequest({
95
+ protocol,
96
+ hostname,
97
+ port,
98
+ method: "DELETE",
99
+ headers,
100
+ path: resolvedPath,
101
+ body,
102
+ });
103
+ };
104
+ exports.se_DeleteIdMappingWorkflowCommand = se_DeleteIdMappingWorkflowCommand;
60
105
  const se_DeleteMatchingWorkflowCommand = async (input, context) => {
61
106
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
62
107
  const headers = {};
@@ -91,6 +136,42 @@ const se_DeleteSchemaMappingCommand = async (input, context) => {
91
136
  });
92
137
  };
93
138
  exports.se_DeleteSchemaMappingCommand = se_DeleteSchemaMappingCommand;
139
+ const se_GetIdMappingJobCommand = async (input, context) => {
140
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
141
+ const headers = {};
142
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
143
+ "/idmappingworkflows/{workflowName}/jobs/{jobId}";
144
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
145
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
146
+ let body;
147
+ return new protocol_http_1.HttpRequest({
148
+ protocol,
149
+ hostname,
150
+ port,
151
+ method: "GET",
152
+ headers,
153
+ path: resolvedPath,
154
+ body,
155
+ });
156
+ };
157
+ exports.se_GetIdMappingJobCommand = se_GetIdMappingJobCommand;
158
+ const se_GetIdMappingWorkflowCommand = async (input, context) => {
159
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
160
+ const headers = {};
161
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/idmappingworkflows/{workflowName}";
162
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
163
+ let body;
164
+ return new protocol_http_1.HttpRequest({
165
+ protocol,
166
+ hostname,
167
+ port,
168
+ method: "GET",
169
+ headers,
170
+ path: resolvedPath,
171
+ body,
172
+ });
173
+ };
174
+ exports.se_GetIdMappingWorkflowCommand = se_GetIdMappingWorkflowCommand;
94
175
  const se_GetMatchIdCommand = async (input, context) => {
95
176
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
96
177
  const headers = {
@@ -149,6 +230,25 @@ const se_GetMatchingWorkflowCommand = async (input, context) => {
149
230
  });
150
231
  };
151
232
  exports.se_GetMatchingWorkflowCommand = se_GetMatchingWorkflowCommand;
233
+ const se_GetProviderServiceCommand = async (input, context) => {
234
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
235
+ const headers = {};
236
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
237
+ "/providerservices/{providerName}/{providerServiceName}";
238
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "providerName", () => input.providerName, "{providerName}", false);
239
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "providerServiceName", () => input.providerServiceName, "{providerServiceName}", false);
240
+ let body;
241
+ return new protocol_http_1.HttpRequest({
242
+ protocol,
243
+ hostname,
244
+ port,
245
+ method: "GET",
246
+ headers,
247
+ path: resolvedPath,
248
+ body,
249
+ });
250
+ };
251
+ exports.se_GetProviderServiceCommand = se_GetProviderServiceCommand;
152
252
  const se_GetSchemaMappingCommand = async (input, context) => {
153
253
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
154
254
  const headers = {};
@@ -166,6 +266,49 @@ const se_GetSchemaMappingCommand = async (input, context) => {
166
266
  });
167
267
  };
168
268
  exports.se_GetSchemaMappingCommand = se_GetSchemaMappingCommand;
269
+ const se_ListIdMappingJobsCommand = async (input, context) => {
270
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
271
+ const headers = {};
272
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/idmappingworkflows/{workflowName}/jobs";
273
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
274
+ const query = (0, smithy_client_1.map)({
275
+ nextToken: [, input.nextToken],
276
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
277
+ });
278
+ let body;
279
+ return new protocol_http_1.HttpRequest({
280
+ protocol,
281
+ hostname,
282
+ port,
283
+ method: "GET",
284
+ headers,
285
+ path: resolvedPath,
286
+ query,
287
+ body,
288
+ });
289
+ };
290
+ exports.se_ListIdMappingJobsCommand = se_ListIdMappingJobsCommand;
291
+ const se_ListIdMappingWorkflowsCommand = async (input, context) => {
292
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
293
+ const headers = {};
294
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/idmappingworkflows";
295
+ const query = (0, smithy_client_1.map)({
296
+ nextToken: [, input.nextToken],
297
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
298
+ });
299
+ let body;
300
+ return new protocol_http_1.HttpRequest({
301
+ protocol,
302
+ hostname,
303
+ port,
304
+ method: "GET",
305
+ headers,
306
+ path: resolvedPath,
307
+ query,
308
+ body,
309
+ });
310
+ };
311
+ exports.se_ListIdMappingWorkflowsCommand = se_ListIdMappingWorkflowsCommand;
169
312
  const se_ListMatchingJobsCommand = async (input, context) => {
170
313
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
171
314
  const headers = {};
@@ -209,6 +352,28 @@ const se_ListMatchingWorkflowsCommand = async (input, context) => {
209
352
  });
210
353
  };
211
354
  exports.se_ListMatchingWorkflowsCommand = se_ListMatchingWorkflowsCommand;
355
+ const se_ListProviderServicesCommand = async (input, context) => {
356
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
357
+ const headers = {};
358
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/providerservices";
359
+ const query = (0, smithy_client_1.map)({
360
+ nextToken: [, input.nextToken],
361
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
362
+ providerName: [, input.providerName],
363
+ });
364
+ let body;
365
+ return new protocol_http_1.HttpRequest({
366
+ protocol,
367
+ hostname,
368
+ port,
369
+ method: "GET",
370
+ headers,
371
+ path: resolvedPath,
372
+ query,
373
+ body,
374
+ });
375
+ };
376
+ exports.se_ListProviderServicesCommand = se_ListProviderServicesCommand;
212
377
  const se_ListSchemaMappingsCommand = async (input, context) => {
213
378
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
214
379
  const headers = {};
@@ -247,6 +412,23 @@ const se_ListTagsForResourceCommand = async (input, context) => {
247
412
  });
248
413
  };
249
414
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
415
+ const se_StartIdMappingJobCommand = async (input, context) => {
416
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
417
+ const headers = {};
418
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/idmappingworkflows/{workflowName}/jobs";
419
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
420
+ let body;
421
+ return new protocol_http_1.HttpRequest({
422
+ protocol,
423
+ hostname,
424
+ port,
425
+ method: "POST",
426
+ headers,
427
+ path: resolvedPath,
428
+ body,
429
+ });
430
+ };
431
+ exports.se_StartIdMappingJobCommand = se_StartIdMappingJobCommand;
250
432
  const se_StartMatchingJobCommand = async (input, context) => {
251
433
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
252
434
  const headers = {};
@@ -310,6 +492,32 @@ const se_UntagResourceCommand = async (input, context) => {
310
492
  });
311
493
  };
312
494
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
495
+ const se_UpdateIdMappingWorkflowCommand = async (input, context) => {
496
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
497
+ const headers = {
498
+ "content-type": "application/json",
499
+ };
500
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/idmappingworkflows/{workflowName}";
501
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
502
+ let body;
503
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
504
+ description: [],
505
+ idMappingTechniques: (_) => se_IdMappingTechniques(_, context),
506
+ inputSourceConfig: (_) => (0, smithy_client_1._json)(_),
507
+ outputSourceConfig: (_) => (0, smithy_client_1._json)(_),
508
+ roleArn: [],
509
+ }));
510
+ return new protocol_http_1.HttpRequest({
511
+ protocol,
512
+ hostname,
513
+ port,
514
+ method: "PUT",
515
+ headers,
516
+ path: resolvedPath,
517
+ body,
518
+ });
519
+ };
520
+ exports.se_UpdateIdMappingWorkflowCommand = se_UpdateIdMappingWorkflowCommand;
313
521
  const se_UpdateMatchingWorkflowCommand = async (input, context) => {
314
522
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
315
523
  const headers = {
@@ -323,7 +531,7 @@ const se_UpdateMatchingWorkflowCommand = async (input, context) => {
323
531
  incrementalRunConfig: (_) => (0, smithy_client_1._json)(_),
324
532
  inputSourceConfig: (_) => (0, smithy_client_1._json)(_),
325
533
  outputSourceConfig: (_) => (0, smithy_client_1._json)(_),
326
- resolutionTechniques: (_) => (0, smithy_client_1._json)(_),
534
+ resolutionTechniques: (_) => se_ResolutionTechniques(_, context),
327
535
  roleArn: [],
328
536
  }));
329
537
  return new protocol_http_1.HttpRequest({
@@ -337,6 +545,84 @@ const se_UpdateMatchingWorkflowCommand = async (input, context) => {
337
545
  });
338
546
  };
339
547
  exports.se_UpdateMatchingWorkflowCommand = se_UpdateMatchingWorkflowCommand;
548
+ const se_UpdateSchemaMappingCommand = async (input, context) => {
549
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
550
+ const headers = {
551
+ "content-type": "application/json",
552
+ };
553
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schemas/{schemaName}";
554
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "schemaName", () => input.schemaName, "{schemaName}", false);
555
+ let body;
556
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
557
+ description: [],
558
+ mappedInputFields: (_) => (0, smithy_client_1._json)(_),
559
+ }));
560
+ return new protocol_http_1.HttpRequest({
561
+ protocol,
562
+ hostname,
563
+ port,
564
+ method: "PUT",
565
+ headers,
566
+ path: resolvedPath,
567
+ body,
568
+ });
569
+ };
570
+ exports.se_UpdateSchemaMappingCommand = se_UpdateSchemaMappingCommand;
571
+ const de_CreateIdMappingWorkflowCommand = async (output, context) => {
572
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
573
+ return de_CreateIdMappingWorkflowCommandError(output, context);
574
+ }
575
+ const contents = (0, smithy_client_1.map)({
576
+ $metadata: deserializeMetadata(output),
577
+ });
578
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
579
+ const doc = (0, smithy_client_1.take)(data, {
580
+ description: smithy_client_1.expectString,
581
+ idMappingTechniques: (_) => de_IdMappingTechniques(_, context),
582
+ inputSourceConfig: smithy_client_1._json,
583
+ outputSourceConfig: smithy_client_1._json,
584
+ roleArn: smithy_client_1.expectString,
585
+ workflowArn: smithy_client_1.expectString,
586
+ workflowName: smithy_client_1.expectString,
587
+ });
588
+ Object.assign(contents, doc);
589
+ return contents;
590
+ };
591
+ exports.de_CreateIdMappingWorkflowCommand = de_CreateIdMappingWorkflowCommand;
592
+ const de_CreateIdMappingWorkflowCommandError = async (output, context) => {
593
+ const parsedOutput = {
594
+ ...output,
595
+ body: await parseErrorBody(output.body, context),
596
+ };
597
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
598
+ switch (errorCode) {
599
+ case "AccessDeniedException":
600
+ case "com.amazonaws.entityresolution#AccessDeniedException":
601
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
602
+ case "ConflictException":
603
+ case "com.amazonaws.entityresolution#ConflictException":
604
+ throw await de_ConflictExceptionRes(parsedOutput, context);
605
+ case "ExceedsLimitException":
606
+ case "com.amazonaws.entityresolution#ExceedsLimitException":
607
+ throw await de_ExceedsLimitExceptionRes(parsedOutput, context);
608
+ case "InternalServerException":
609
+ case "com.amazonaws.entityresolution#InternalServerException":
610
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
611
+ case "ThrottlingException":
612
+ case "com.amazonaws.entityresolution#ThrottlingException":
613
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
614
+ case "ValidationException":
615
+ case "com.amazonaws.entityresolution#ValidationException":
616
+ throw await de_ValidationExceptionRes(parsedOutput, context);
617
+ default:
618
+ const parsedBody = parsedOutput.body;
619
+ return throwDefaultError({
620
+ output,
621
+ parsedBody,
622
+ errorCode,
623
+ });
624
+ }
625
+ };
340
626
  const de_CreateMatchingWorkflowCommand = async (output, context) => {
341
627
  if (output.statusCode !== 200 && output.statusCode >= 300) {
342
628
  return de_CreateMatchingWorkflowCommandError(output, context);
@@ -350,7 +636,7 @@ const de_CreateMatchingWorkflowCommand = async (output, context) => {
350
636
  incrementalRunConfig: smithy_client_1._json,
351
637
  inputSourceConfig: smithy_client_1._json,
352
638
  outputSourceConfig: smithy_client_1._json,
353
- resolutionTechniques: smithy_client_1._json,
639
+ resolutionTechniques: (_) => de_ResolutionTechniques(_, context),
354
640
  roleArn: smithy_client_1.expectString,
355
641
  workflowArn: smithy_client_1.expectString,
356
642
  workflowName: smithy_client_1.expectString,
@@ -445,9 +731,9 @@ const de_CreateSchemaMappingCommandError = async (output, context) => {
445
731
  });
446
732
  }
447
733
  };
448
- const de_DeleteMatchingWorkflowCommand = async (output, context) => {
734
+ const de_DeleteIdMappingWorkflowCommand = async (output, context) => {
449
735
  if (output.statusCode !== 200 && output.statusCode >= 300) {
450
- return de_DeleteMatchingWorkflowCommandError(output, context);
736
+ return de_DeleteIdMappingWorkflowCommandError(output, context);
451
737
  }
452
738
  const contents = (0, smithy_client_1.map)({
453
739
  $metadata: deserializeMetadata(output),
@@ -459,8 +745,8 @@ const de_DeleteMatchingWorkflowCommand = async (output, context) => {
459
745
  Object.assign(contents, doc);
460
746
  return contents;
461
747
  };
462
- exports.de_DeleteMatchingWorkflowCommand = de_DeleteMatchingWorkflowCommand;
463
- const de_DeleteMatchingWorkflowCommandError = async (output, context) => {
748
+ exports.de_DeleteIdMappingWorkflowCommand = de_DeleteIdMappingWorkflowCommand;
749
+ const de_DeleteIdMappingWorkflowCommandError = async (output, context) => {
464
750
  const parsedOutput = {
465
751
  ...output,
466
752
  body: await parseErrorBody(output.body, context),
@@ -488,9 +774,9 @@ const de_DeleteMatchingWorkflowCommandError = async (output, context) => {
488
774
  });
489
775
  }
490
776
  };
491
- const de_DeleteSchemaMappingCommand = async (output, context) => {
777
+ const de_DeleteMatchingWorkflowCommand = async (output, context) => {
492
778
  if (output.statusCode !== 200 && output.statusCode >= 300) {
493
- return de_DeleteSchemaMappingCommandError(output, context);
779
+ return de_DeleteMatchingWorkflowCommandError(output, context);
494
780
  }
495
781
  const contents = (0, smithy_client_1.map)({
496
782
  $metadata: deserializeMetadata(output),
@@ -502,8 +788,8 @@ const de_DeleteSchemaMappingCommand = async (output, context) => {
502
788
  Object.assign(contents, doc);
503
789
  return contents;
504
790
  };
505
- exports.de_DeleteSchemaMappingCommand = de_DeleteSchemaMappingCommand;
506
- const de_DeleteSchemaMappingCommandError = async (output, context) => {
791
+ exports.de_DeleteMatchingWorkflowCommand = de_DeleteMatchingWorkflowCommand;
792
+ const de_DeleteMatchingWorkflowCommandError = async (output, context) => {
507
793
  const parsedOutput = {
508
794
  ...output,
509
795
  body: await parseErrorBody(output.body, context),
@@ -513,7 +799,50 @@ const de_DeleteSchemaMappingCommandError = async (output, context) => {
513
799
  case "AccessDeniedException":
514
800
  case "com.amazonaws.entityresolution#AccessDeniedException":
515
801
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
516
- case "ConflictException":
802
+ case "InternalServerException":
803
+ case "com.amazonaws.entityresolution#InternalServerException":
804
+ throw await de_InternalServerExceptionRes(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_DeleteSchemaMappingCommand = async (output, context) => {
821
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
822
+ return de_DeleteSchemaMappingCommandError(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
+ message: smithy_client_1.expectString,
830
+ });
831
+ Object.assign(contents, doc);
832
+ return contents;
833
+ };
834
+ exports.de_DeleteSchemaMappingCommand = de_DeleteSchemaMappingCommand;
835
+ const de_DeleteSchemaMappingCommandError = async (output, context) => {
836
+ const parsedOutput = {
837
+ ...output,
838
+ body: await parseErrorBody(output.body, context),
839
+ };
840
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
841
+ switch (errorCode) {
842
+ case "AccessDeniedException":
843
+ case "com.amazonaws.entityresolution#AccessDeniedException":
844
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
845
+ case "ConflictException":
517
846
  case "com.amazonaws.entityresolution#ConflictException":
518
847
  throw await de_ConflictExceptionRes(parsedOutput, context);
519
848
  case "InternalServerException":
@@ -534,22 +863,343 @@ const de_DeleteSchemaMappingCommandError = async (output, context) => {
534
863
  });
535
864
  }
536
865
  };
537
- const de_GetMatchIdCommand = async (output, context) => {
866
+ const de_GetIdMappingJobCommand = async (output, context) => {
867
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
868
+ return de_GetIdMappingJobCommandError(output, context);
869
+ }
870
+ const contents = (0, smithy_client_1.map)({
871
+ $metadata: deserializeMetadata(output),
872
+ });
873
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
874
+ const doc = (0, smithy_client_1.take)(data, {
875
+ endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
876
+ errorDetails: smithy_client_1._json,
877
+ jobId: smithy_client_1.expectString,
878
+ metrics: smithy_client_1._json,
879
+ startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
880
+ status: smithy_client_1.expectString,
881
+ });
882
+ Object.assign(contents, doc);
883
+ return contents;
884
+ };
885
+ exports.de_GetIdMappingJobCommand = de_GetIdMappingJobCommand;
886
+ const de_GetIdMappingJobCommandError = async (output, context) => {
887
+ const parsedOutput = {
888
+ ...output,
889
+ body: await parseErrorBody(output.body, context),
890
+ };
891
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
892
+ switch (errorCode) {
893
+ case "AccessDeniedException":
894
+ case "com.amazonaws.entityresolution#AccessDeniedException":
895
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
896
+ case "InternalServerException":
897
+ case "com.amazonaws.entityresolution#InternalServerException":
898
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
899
+ case "ResourceNotFoundException":
900
+ case "com.amazonaws.entityresolution#ResourceNotFoundException":
901
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
902
+ case "ThrottlingException":
903
+ case "com.amazonaws.entityresolution#ThrottlingException":
904
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
905
+ case "ValidationException":
906
+ case "com.amazonaws.entityresolution#ValidationException":
907
+ throw await de_ValidationExceptionRes(parsedOutput, context);
908
+ default:
909
+ const parsedBody = parsedOutput.body;
910
+ return throwDefaultError({
911
+ output,
912
+ parsedBody,
913
+ errorCode,
914
+ });
915
+ }
916
+ };
917
+ const de_GetIdMappingWorkflowCommand = async (output, context) => {
918
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
919
+ return de_GetIdMappingWorkflowCommandError(output, context);
920
+ }
921
+ const contents = (0, smithy_client_1.map)({
922
+ $metadata: deserializeMetadata(output),
923
+ });
924
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
925
+ const doc = (0, smithy_client_1.take)(data, {
926
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
927
+ description: smithy_client_1.expectString,
928
+ idMappingTechniques: (_) => de_IdMappingTechniques(_, context),
929
+ inputSourceConfig: smithy_client_1._json,
930
+ outputSourceConfig: smithy_client_1._json,
931
+ roleArn: smithy_client_1.expectString,
932
+ tags: smithy_client_1._json,
933
+ updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
934
+ workflowArn: smithy_client_1.expectString,
935
+ workflowName: smithy_client_1.expectString,
936
+ });
937
+ Object.assign(contents, doc);
938
+ return contents;
939
+ };
940
+ exports.de_GetIdMappingWorkflowCommand = de_GetIdMappingWorkflowCommand;
941
+ const de_GetIdMappingWorkflowCommandError = async (output, context) => {
942
+ const parsedOutput = {
943
+ ...output,
944
+ body: await parseErrorBody(output.body, context),
945
+ };
946
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
947
+ switch (errorCode) {
948
+ case "AccessDeniedException":
949
+ case "com.amazonaws.entityresolution#AccessDeniedException":
950
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
951
+ case "InternalServerException":
952
+ case "com.amazonaws.entityresolution#InternalServerException":
953
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
954
+ case "ResourceNotFoundException":
955
+ case "com.amazonaws.entityresolution#ResourceNotFoundException":
956
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
957
+ case "ThrottlingException":
958
+ case "com.amazonaws.entityresolution#ThrottlingException":
959
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
960
+ case "ValidationException":
961
+ case "com.amazonaws.entityresolution#ValidationException":
962
+ throw await de_ValidationExceptionRes(parsedOutput, context);
963
+ default:
964
+ const parsedBody = parsedOutput.body;
965
+ return throwDefaultError({
966
+ output,
967
+ parsedBody,
968
+ errorCode,
969
+ });
970
+ }
971
+ };
972
+ const de_GetMatchIdCommand = async (output, context) => {
973
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
974
+ return de_GetMatchIdCommandError(output, context);
975
+ }
976
+ const contents = (0, smithy_client_1.map)({
977
+ $metadata: deserializeMetadata(output),
978
+ });
979
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
980
+ const doc = (0, smithy_client_1.take)(data, {
981
+ matchId: smithy_client_1.expectString,
982
+ });
983
+ Object.assign(contents, doc);
984
+ return contents;
985
+ };
986
+ exports.de_GetMatchIdCommand = de_GetMatchIdCommand;
987
+ const de_GetMatchIdCommandError = async (output, context) => {
988
+ const parsedOutput = {
989
+ ...output,
990
+ body: await parseErrorBody(output.body, context),
991
+ };
992
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
993
+ switch (errorCode) {
994
+ case "AccessDeniedException":
995
+ case "com.amazonaws.entityresolution#AccessDeniedException":
996
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
997
+ case "InternalServerException":
998
+ case "com.amazonaws.entityresolution#InternalServerException":
999
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1000
+ case "ResourceNotFoundException":
1001
+ case "com.amazonaws.entityresolution#ResourceNotFoundException":
1002
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1003
+ case "ThrottlingException":
1004
+ case "com.amazonaws.entityresolution#ThrottlingException":
1005
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1006
+ case "ValidationException":
1007
+ case "com.amazonaws.entityresolution#ValidationException":
1008
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1009
+ default:
1010
+ const parsedBody = parsedOutput.body;
1011
+ return throwDefaultError({
1012
+ output,
1013
+ parsedBody,
1014
+ errorCode,
1015
+ });
1016
+ }
1017
+ };
1018
+ const de_GetMatchingJobCommand = async (output, context) => {
1019
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1020
+ return de_GetMatchingJobCommandError(output, context);
1021
+ }
1022
+ const contents = (0, smithy_client_1.map)({
1023
+ $metadata: deserializeMetadata(output),
1024
+ });
1025
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1026
+ const doc = (0, smithy_client_1.take)(data, {
1027
+ endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1028
+ errorDetails: smithy_client_1._json,
1029
+ jobId: smithy_client_1.expectString,
1030
+ metrics: smithy_client_1._json,
1031
+ startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1032
+ status: smithy_client_1.expectString,
1033
+ });
1034
+ Object.assign(contents, doc);
1035
+ return contents;
1036
+ };
1037
+ exports.de_GetMatchingJobCommand = de_GetMatchingJobCommand;
1038
+ const de_GetMatchingJobCommandError = async (output, context) => {
1039
+ const parsedOutput = {
1040
+ ...output,
1041
+ body: await parseErrorBody(output.body, context),
1042
+ };
1043
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1044
+ switch (errorCode) {
1045
+ case "AccessDeniedException":
1046
+ case "com.amazonaws.entityresolution#AccessDeniedException":
1047
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1048
+ case "InternalServerException":
1049
+ case "com.amazonaws.entityresolution#InternalServerException":
1050
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1051
+ case "ResourceNotFoundException":
1052
+ case "com.amazonaws.entityresolution#ResourceNotFoundException":
1053
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1054
+ case "ThrottlingException":
1055
+ case "com.amazonaws.entityresolution#ThrottlingException":
1056
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1057
+ case "ValidationException":
1058
+ case "com.amazonaws.entityresolution#ValidationException":
1059
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1060
+ default:
1061
+ const parsedBody = parsedOutput.body;
1062
+ return throwDefaultError({
1063
+ output,
1064
+ parsedBody,
1065
+ errorCode,
1066
+ });
1067
+ }
1068
+ };
1069
+ const de_GetMatchingWorkflowCommand = async (output, context) => {
1070
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1071
+ return de_GetMatchingWorkflowCommandError(output, context);
1072
+ }
1073
+ const contents = (0, smithy_client_1.map)({
1074
+ $metadata: deserializeMetadata(output),
1075
+ });
1076
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1077
+ const doc = (0, smithy_client_1.take)(data, {
1078
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1079
+ description: smithy_client_1.expectString,
1080
+ incrementalRunConfig: smithy_client_1._json,
1081
+ inputSourceConfig: smithy_client_1._json,
1082
+ outputSourceConfig: smithy_client_1._json,
1083
+ resolutionTechniques: (_) => de_ResolutionTechniques(_, context),
1084
+ roleArn: smithy_client_1.expectString,
1085
+ tags: smithy_client_1._json,
1086
+ updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1087
+ workflowArn: smithy_client_1.expectString,
1088
+ workflowName: smithy_client_1.expectString,
1089
+ });
1090
+ Object.assign(contents, doc);
1091
+ return contents;
1092
+ };
1093
+ exports.de_GetMatchingWorkflowCommand = de_GetMatchingWorkflowCommand;
1094
+ const de_GetMatchingWorkflowCommandError = async (output, context) => {
1095
+ const parsedOutput = {
1096
+ ...output,
1097
+ body: await parseErrorBody(output.body, context),
1098
+ };
1099
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1100
+ switch (errorCode) {
1101
+ case "AccessDeniedException":
1102
+ case "com.amazonaws.entityresolution#AccessDeniedException":
1103
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1104
+ case "InternalServerException":
1105
+ case "com.amazonaws.entityresolution#InternalServerException":
1106
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1107
+ case "ResourceNotFoundException":
1108
+ case "com.amazonaws.entityresolution#ResourceNotFoundException":
1109
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1110
+ case "ThrottlingException":
1111
+ case "com.amazonaws.entityresolution#ThrottlingException":
1112
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1113
+ case "ValidationException":
1114
+ case "com.amazonaws.entityresolution#ValidationException":
1115
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1116
+ default:
1117
+ const parsedBody = parsedOutput.body;
1118
+ return throwDefaultError({
1119
+ output,
1120
+ parsedBody,
1121
+ errorCode,
1122
+ });
1123
+ }
1124
+ };
1125
+ const de_GetProviderServiceCommand = async (output, context) => {
1126
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1127
+ return de_GetProviderServiceCommandError(output, context);
1128
+ }
1129
+ const contents = (0, smithy_client_1.map)({
1130
+ $metadata: deserializeMetadata(output),
1131
+ });
1132
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1133
+ const doc = (0, smithy_client_1.take)(data, {
1134
+ anonymizedOutput: smithy_client_1.expectBoolean,
1135
+ providerConfigurationDefinition: (_) => de_Document(_, context),
1136
+ providerEndpointConfiguration: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
1137
+ providerEntityOutputDefinition: (_) => de_Document(_, context),
1138
+ providerIntermediateDataAccessConfiguration: smithy_client_1._json,
1139
+ providerName: smithy_client_1.expectString,
1140
+ providerServiceArn: smithy_client_1.expectString,
1141
+ providerServiceDisplayName: smithy_client_1.expectString,
1142
+ providerServiceName: smithy_client_1.expectString,
1143
+ providerServiceType: smithy_client_1.expectString,
1144
+ });
1145
+ Object.assign(contents, doc);
1146
+ return contents;
1147
+ };
1148
+ exports.de_GetProviderServiceCommand = de_GetProviderServiceCommand;
1149
+ const de_GetProviderServiceCommandError = async (output, context) => {
1150
+ const parsedOutput = {
1151
+ ...output,
1152
+ body: await parseErrorBody(output.body, context),
1153
+ };
1154
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1155
+ switch (errorCode) {
1156
+ case "AccessDeniedException":
1157
+ case "com.amazonaws.entityresolution#AccessDeniedException":
1158
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1159
+ case "InternalServerException":
1160
+ case "com.amazonaws.entityresolution#InternalServerException":
1161
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1162
+ case "ResourceNotFoundException":
1163
+ case "com.amazonaws.entityresolution#ResourceNotFoundException":
1164
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1165
+ case "ThrottlingException":
1166
+ case "com.amazonaws.entityresolution#ThrottlingException":
1167
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1168
+ case "ValidationException":
1169
+ case "com.amazonaws.entityresolution#ValidationException":
1170
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1171
+ default:
1172
+ const parsedBody = parsedOutput.body;
1173
+ return throwDefaultError({
1174
+ output,
1175
+ parsedBody,
1176
+ errorCode,
1177
+ });
1178
+ }
1179
+ };
1180
+ const de_GetSchemaMappingCommand = async (output, context) => {
538
1181
  if (output.statusCode !== 200 && output.statusCode >= 300) {
539
- return de_GetMatchIdCommandError(output, context);
1182
+ return de_GetSchemaMappingCommandError(output, context);
540
1183
  }
541
1184
  const contents = (0, smithy_client_1.map)({
542
1185
  $metadata: deserializeMetadata(output),
543
1186
  });
544
1187
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
545
1188
  const doc = (0, smithy_client_1.take)(data, {
546
- matchId: smithy_client_1.expectString,
1189
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1190
+ description: smithy_client_1.expectString,
1191
+ hasWorkflows: smithy_client_1.expectBoolean,
1192
+ mappedInputFields: smithy_client_1._json,
1193
+ schemaArn: smithy_client_1.expectString,
1194
+ schemaName: smithy_client_1.expectString,
1195
+ tags: smithy_client_1._json,
1196
+ updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
547
1197
  });
548
1198
  Object.assign(contents, doc);
549
1199
  return contents;
550
1200
  };
551
- exports.de_GetMatchIdCommand = de_GetMatchIdCommand;
552
- const de_GetMatchIdCommandError = async (output, context) => {
1201
+ exports.de_GetSchemaMappingCommand = de_GetSchemaMappingCommand;
1202
+ const de_GetSchemaMappingCommandError = async (output, context) => {
553
1203
  const parsedOutput = {
554
1204
  ...output,
555
1205
  body: await parseErrorBody(output.body, context),
@@ -580,27 +1230,23 @@ const de_GetMatchIdCommandError = async (output, context) => {
580
1230
  });
581
1231
  }
582
1232
  };
583
- const de_GetMatchingJobCommand = async (output, context) => {
1233
+ const de_ListIdMappingJobsCommand = async (output, context) => {
584
1234
  if (output.statusCode !== 200 && output.statusCode >= 300) {
585
- return de_GetMatchingJobCommandError(output, context);
1235
+ return de_ListIdMappingJobsCommandError(output, context);
586
1236
  }
587
1237
  const contents = (0, smithy_client_1.map)({
588
1238
  $metadata: deserializeMetadata(output),
589
1239
  });
590
1240
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
591
1241
  const doc = (0, smithy_client_1.take)(data, {
592
- endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
593
- errorDetails: smithy_client_1._json,
594
- jobId: smithy_client_1.expectString,
595
- metrics: smithy_client_1._json,
596
- startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
597
- status: smithy_client_1.expectString,
1242
+ jobs: (_) => de_JobList(_, context),
1243
+ nextToken: smithy_client_1.expectString,
598
1244
  });
599
1245
  Object.assign(contents, doc);
600
1246
  return contents;
601
1247
  };
602
- exports.de_GetMatchingJobCommand = de_GetMatchingJobCommand;
603
- const de_GetMatchingJobCommandError = async (output, context) => {
1248
+ exports.de_ListIdMappingJobsCommand = de_ListIdMappingJobsCommand;
1249
+ const de_ListIdMappingJobsCommandError = async (output, context) => {
604
1250
  const parsedOutput = {
605
1251
  ...output,
606
1252
  body: await parseErrorBody(output.body, context),
@@ -631,32 +1277,23 @@ const de_GetMatchingJobCommandError = async (output, context) => {
631
1277
  });
632
1278
  }
633
1279
  };
634
- const de_GetMatchingWorkflowCommand = async (output, context) => {
1280
+ const de_ListIdMappingWorkflowsCommand = async (output, context) => {
635
1281
  if (output.statusCode !== 200 && output.statusCode >= 300) {
636
- return de_GetMatchingWorkflowCommandError(output, context);
1282
+ return de_ListIdMappingWorkflowsCommandError(output, context);
637
1283
  }
638
1284
  const contents = (0, smithy_client_1.map)({
639
1285
  $metadata: deserializeMetadata(output),
640
1286
  });
641
1287
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
642
1288
  const doc = (0, smithy_client_1.take)(data, {
643
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
644
- description: smithy_client_1.expectString,
645
- incrementalRunConfig: smithy_client_1._json,
646
- inputSourceConfig: smithy_client_1._json,
647
- outputSourceConfig: smithy_client_1._json,
648
- resolutionTechniques: smithy_client_1._json,
649
- roleArn: smithy_client_1.expectString,
650
- tags: smithy_client_1._json,
651
- updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
652
- workflowArn: smithy_client_1.expectString,
653
- workflowName: smithy_client_1.expectString,
1289
+ nextToken: smithy_client_1.expectString,
1290
+ workflowSummaries: (_) => de_IdMappingWorkflowList(_, context),
654
1291
  });
655
1292
  Object.assign(contents, doc);
656
1293
  return contents;
657
1294
  };
658
- exports.de_GetMatchingWorkflowCommand = de_GetMatchingWorkflowCommand;
659
- const de_GetMatchingWorkflowCommandError = async (output, context) => {
1295
+ exports.de_ListIdMappingWorkflowsCommand = de_ListIdMappingWorkflowsCommand;
1296
+ const de_ListIdMappingWorkflowsCommandError = async (output, context) => {
660
1297
  const parsedOutput = {
661
1298
  ...output,
662
1299
  body: await parseErrorBody(output.body, context),
@@ -669,9 +1306,6 @@ const de_GetMatchingWorkflowCommandError = async (output, context) => {
669
1306
  case "InternalServerException":
670
1307
  case "com.amazonaws.entityresolution#InternalServerException":
671
1308
  throw await de_InternalServerExceptionRes(parsedOutput, context);
672
- case "ResourceNotFoundException":
673
- case "com.amazonaws.entityresolution#ResourceNotFoundException":
674
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
675
1309
  case "ThrottlingException":
676
1310
  case "com.amazonaws.entityresolution#ThrottlingException":
677
1311
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -687,28 +1321,23 @@ const de_GetMatchingWorkflowCommandError = async (output, context) => {
687
1321
  });
688
1322
  }
689
1323
  };
690
- const de_GetSchemaMappingCommand = async (output, context) => {
1324
+ const de_ListMatchingJobsCommand = async (output, context) => {
691
1325
  if (output.statusCode !== 200 && output.statusCode >= 300) {
692
- return de_GetSchemaMappingCommandError(output, context);
1326
+ return de_ListMatchingJobsCommandError(output, context);
693
1327
  }
694
1328
  const contents = (0, smithy_client_1.map)({
695
1329
  $metadata: deserializeMetadata(output),
696
1330
  });
697
1331
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
698
1332
  const doc = (0, smithy_client_1.take)(data, {
699
- createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
700
- description: smithy_client_1.expectString,
701
- mappedInputFields: smithy_client_1._json,
702
- schemaArn: smithy_client_1.expectString,
703
- schemaName: smithy_client_1.expectString,
704
- tags: smithy_client_1._json,
705
- updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1333
+ jobs: (_) => de_JobList(_, context),
1334
+ nextToken: smithy_client_1.expectString,
706
1335
  });
707
1336
  Object.assign(contents, doc);
708
1337
  return contents;
709
1338
  };
710
- exports.de_GetSchemaMappingCommand = de_GetSchemaMappingCommand;
711
- const de_GetSchemaMappingCommandError = async (output, context) => {
1339
+ exports.de_ListMatchingJobsCommand = de_ListMatchingJobsCommand;
1340
+ const de_ListMatchingJobsCommandError = async (output, context) => {
712
1341
  const parsedOutput = {
713
1342
  ...output,
714
1343
  body: await parseErrorBody(output.body, context),
@@ -739,23 +1368,23 @@ const de_GetSchemaMappingCommandError = async (output, context) => {
739
1368
  });
740
1369
  }
741
1370
  };
742
- const de_ListMatchingJobsCommand = async (output, context) => {
1371
+ const de_ListMatchingWorkflowsCommand = async (output, context) => {
743
1372
  if (output.statusCode !== 200 && output.statusCode >= 300) {
744
- return de_ListMatchingJobsCommandError(output, context);
1373
+ return de_ListMatchingWorkflowsCommandError(output, context);
745
1374
  }
746
1375
  const contents = (0, smithy_client_1.map)({
747
1376
  $metadata: deserializeMetadata(output),
748
1377
  });
749
1378
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
750
1379
  const doc = (0, smithy_client_1.take)(data, {
751
- jobs: (_) => de_JobList(_, context),
752
1380
  nextToken: smithy_client_1.expectString,
1381
+ workflowSummaries: (_) => de_MatchingWorkflowList(_, context),
753
1382
  });
754
1383
  Object.assign(contents, doc);
755
1384
  return contents;
756
1385
  };
757
- exports.de_ListMatchingJobsCommand = de_ListMatchingJobsCommand;
758
- const de_ListMatchingJobsCommandError = async (output, context) => {
1386
+ exports.de_ListMatchingWorkflowsCommand = de_ListMatchingWorkflowsCommand;
1387
+ const de_ListMatchingWorkflowsCommandError = async (output, context) => {
759
1388
  const parsedOutput = {
760
1389
  ...output,
761
1390
  body: await parseErrorBody(output.body, context),
@@ -768,9 +1397,6 @@ const de_ListMatchingJobsCommandError = async (output, context) => {
768
1397
  case "InternalServerException":
769
1398
  case "com.amazonaws.entityresolution#InternalServerException":
770
1399
  throw await de_InternalServerExceptionRes(parsedOutput, context);
771
- case "ResourceNotFoundException":
772
- case "com.amazonaws.entityresolution#ResourceNotFoundException":
773
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
774
1400
  case "ThrottlingException":
775
1401
  case "com.amazonaws.entityresolution#ThrottlingException":
776
1402
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -786,9 +1412,9 @@ const de_ListMatchingJobsCommandError = async (output, context) => {
786
1412
  });
787
1413
  }
788
1414
  };
789
- const de_ListMatchingWorkflowsCommand = async (output, context) => {
1415
+ const de_ListProviderServicesCommand = async (output, context) => {
790
1416
  if (output.statusCode !== 200 && output.statusCode >= 300) {
791
- return de_ListMatchingWorkflowsCommandError(output, context);
1417
+ return de_ListProviderServicesCommandError(output, context);
792
1418
  }
793
1419
  const contents = (0, smithy_client_1.map)({
794
1420
  $metadata: deserializeMetadata(output),
@@ -796,13 +1422,13 @@ const de_ListMatchingWorkflowsCommand = async (output, context) => {
796
1422
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
797
1423
  const doc = (0, smithy_client_1.take)(data, {
798
1424
  nextToken: smithy_client_1.expectString,
799
- workflowSummaries: (_) => de_MatchingWorkflowList(_, context),
1425
+ providerServiceSummaries: smithy_client_1._json,
800
1426
  });
801
1427
  Object.assign(contents, doc);
802
1428
  return contents;
803
1429
  };
804
- exports.de_ListMatchingWorkflowsCommand = de_ListMatchingWorkflowsCommand;
805
- const de_ListMatchingWorkflowsCommandError = async (output, context) => {
1430
+ exports.de_ListProviderServicesCommand = de_ListProviderServicesCommand;
1431
+ const de_ListProviderServicesCommandError = async (output, context) => {
806
1432
  const parsedOutput = {
807
1433
  ...output,
808
1434
  body: await parseErrorBody(output.body, context),
@@ -914,6 +1540,58 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
914
1540
  });
915
1541
  }
916
1542
  };
1543
+ const de_StartIdMappingJobCommand = async (output, context) => {
1544
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1545
+ return de_StartIdMappingJobCommandError(output, context);
1546
+ }
1547
+ const contents = (0, smithy_client_1.map)({
1548
+ $metadata: deserializeMetadata(output),
1549
+ });
1550
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1551
+ const doc = (0, smithy_client_1.take)(data, {
1552
+ jobId: smithy_client_1.expectString,
1553
+ });
1554
+ Object.assign(contents, doc);
1555
+ return contents;
1556
+ };
1557
+ exports.de_StartIdMappingJobCommand = de_StartIdMappingJobCommand;
1558
+ const de_StartIdMappingJobCommandError = async (output, context) => {
1559
+ const parsedOutput = {
1560
+ ...output,
1561
+ body: await parseErrorBody(output.body, context),
1562
+ };
1563
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1564
+ switch (errorCode) {
1565
+ case "AccessDeniedException":
1566
+ case "com.amazonaws.entityresolution#AccessDeniedException":
1567
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1568
+ case "ConflictException":
1569
+ case "com.amazonaws.entityresolution#ConflictException":
1570
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1571
+ case "ExceedsLimitException":
1572
+ case "com.amazonaws.entityresolution#ExceedsLimitException":
1573
+ throw await de_ExceedsLimitExceptionRes(parsedOutput, context);
1574
+ case "InternalServerException":
1575
+ case "com.amazonaws.entityresolution#InternalServerException":
1576
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1577
+ case "ResourceNotFoundException":
1578
+ case "com.amazonaws.entityresolution#ResourceNotFoundException":
1579
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1580
+ case "ThrottlingException":
1581
+ case "com.amazonaws.entityresolution#ThrottlingException":
1582
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1583
+ case "ValidationException":
1584
+ case "com.amazonaws.entityresolution#ValidationException":
1585
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1586
+ default:
1587
+ const parsedBody = parsedOutput.body;
1588
+ return throwDefaultError({
1589
+ output,
1590
+ parsedBody,
1591
+ errorCode,
1592
+ });
1593
+ }
1594
+ };
917
1595
  const de_StartMatchingJobCommand = async (output, context) => {
918
1596
  if (output.statusCode !== 200 && output.statusCode >= 300) {
919
1597
  return de_StartMatchingJobCommandError(output, context);
@@ -1035,6 +1713,58 @@ const de_UntagResourceCommandError = async (output, context) => {
1035
1713
  });
1036
1714
  }
1037
1715
  };
1716
+ const de_UpdateIdMappingWorkflowCommand = async (output, context) => {
1717
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1718
+ return de_UpdateIdMappingWorkflowCommandError(output, context);
1719
+ }
1720
+ const contents = (0, smithy_client_1.map)({
1721
+ $metadata: deserializeMetadata(output),
1722
+ });
1723
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1724
+ const doc = (0, smithy_client_1.take)(data, {
1725
+ description: smithy_client_1.expectString,
1726
+ idMappingTechniques: (_) => de_IdMappingTechniques(_, context),
1727
+ inputSourceConfig: smithy_client_1._json,
1728
+ outputSourceConfig: smithy_client_1._json,
1729
+ roleArn: smithy_client_1.expectString,
1730
+ workflowArn: smithy_client_1.expectString,
1731
+ workflowName: smithy_client_1.expectString,
1732
+ });
1733
+ Object.assign(contents, doc);
1734
+ return contents;
1735
+ };
1736
+ exports.de_UpdateIdMappingWorkflowCommand = de_UpdateIdMappingWorkflowCommand;
1737
+ const de_UpdateIdMappingWorkflowCommandError = async (output, context) => {
1738
+ const parsedOutput = {
1739
+ ...output,
1740
+ body: await parseErrorBody(output.body, context),
1741
+ };
1742
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1743
+ switch (errorCode) {
1744
+ case "AccessDeniedException":
1745
+ case "com.amazonaws.entityresolution#AccessDeniedException":
1746
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1747
+ case "InternalServerException":
1748
+ case "com.amazonaws.entityresolution#InternalServerException":
1749
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1750
+ case "ResourceNotFoundException":
1751
+ case "com.amazonaws.entityresolution#ResourceNotFoundException":
1752
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1753
+ case "ThrottlingException":
1754
+ case "com.amazonaws.entityresolution#ThrottlingException":
1755
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1756
+ case "ValidationException":
1757
+ case "com.amazonaws.entityresolution#ValidationException":
1758
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1759
+ default:
1760
+ const parsedBody = parsedOutput.body;
1761
+ return throwDefaultError({
1762
+ output,
1763
+ parsedBody,
1764
+ errorCode,
1765
+ });
1766
+ }
1767
+ };
1038
1768
  const de_UpdateMatchingWorkflowCommand = async (output, context) => {
1039
1769
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1040
1770
  return de_UpdateMatchingWorkflowCommandError(output, context);
@@ -1048,7 +1778,7 @@ const de_UpdateMatchingWorkflowCommand = async (output, context) => {
1048
1778
  incrementalRunConfig: smithy_client_1._json,
1049
1779
  inputSourceConfig: smithy_client_1._json,
1050
1780
  outputSourceConfig: smithy_client_1._json,
1051
- resolutionTechniques: smithy_client_1._json,
1781
+ resolutionTechniques: (_) => de_ResolutionTechniques(_, context),
1052
1782
  roleArn: smithy_client_1.expectString,
1053
1783
  workflowName: smithy_client_1.expectString,
1054
1784
  });
@@ -1087,6 +1817,58 @@ const de_UpdateMatchingWorkflowCommandError = async (output, context) => {
1087
1817
  });
1088
1818
  }
1089
1819
  };
1820
+ const de_UpdateSchemaMappingCommand = async (output, context) => {
1821
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1822
+ return de_UpdateSchemaMappingCommandError(output, context);
1823
+ }
1824
+ const contents = (0, smithy_client_1.map)({
1825
+ $metadata: deserializeMetadata(output),
1826
+ });
1827
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1828
+ const doc = (0, smithy_client_1.take)(data, {
1829
+ description: smithy_client_1.expectString,
1830
+ mappedInputFields: smithy_client_1._json,
1831
+ schemaArn: smithy_client_1.expectString,
1832
+ schemaName: smithy_client_1.expectString,
1833
+ });
1834
+ Object.assign(contents, doc);
1835
+ return contents;
1836
+ };
1837
+ exports.de_UpdateSchemaMappingCommand = de_UpdateSchemaMappingCommand;
1838
+ const de_UpdateSchemaMappingCommandError = async (output, context) => {
1839
+ const parsedOutput = {
1840
+ ...output,
1841
+ body: await parseErrorBody(output.body, context),
1842
+ };
1843
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1844
+ switch (errorCode) {
1845
+ case "AccessDeniedException":
1846
+ case "com.amazonaws.entityresolution#AccessDeniedException":
1847
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1848
+ case "ConflictException":
1849
+ case "com.amazonaws.entityresolution#ConflictException":
1850
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1851
+ case "InternalServerException":
1852
+ case "com.amazonaws.entityresolution#InternalServerException":
1853
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1854
+ case "ResourceNotFoundException":
1855
+ case "com.amazonaws.entityresolution#ResourceNotFoundException":
1856
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1857
+ case "ThrottlingException":
1858
+ case "com.amazonaws.entityresolution#ThrottlingException":
1859
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1860
+ case "ValidationException":
1861
+ case "com.amazonaws.entityresolution#ValidationException":
1862
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1863
+ default:
1864
+ const parsedBody = parsedOutput.body;
1865
+ return throwDefaultError({
1866
+ output,
1867
+ parsedBody,
1868
+ errorCode,
1869
+ });
1870
+ }
1871
+ };
1090
1872
  const throwDefaultError = (0, smithy_client_1.withBaseException)(EntityResolutionServiceException_1.EntityResolutionServiceException);
1091
1873
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1092
1874
  const contents = (0, smithy_client_1.map)({});
@@ -1181,6 +1963,51 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1181
1963
  });
1182
1964
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1183
1965
  };
1966
+ const se_IdMappingTechniques = (input, context) => {
1967
+ return (0, smithy_client_1.take)(input, {
1968
+ idMappingType: [],
1969
+ providerProperties: (_) => se_ProviderProperties(_, context),
1970
+ });
1971
+ };
1972
+ const se_ProviderProperties = (input, context) => {
1973
+ return (0, smithy_client_1.take)(input, {
1974
+ intermediateSourceConfiguration: smithy_client_1._json,
1975
+ providerConfiguration: (_) => se_Document(_, context),
1976
+ providerServiceArn: [],
1977
+ });
1978
+ };
1979
+ const se_ResolutionTechniques = (input, context) => {
1980
+ return (0, smithy_client_1.take)(input, {
1981
+ providerProperties: (_) => se_ProviderProperties(_, context),
1982
+ resolutionType: [],
1983
+ ruleBasedProperties: smithy_client_1._json,
1984
+ });
1985
+ };
1986
+ const se_Document = (input, context) => {
1987
+ return input;
1988
+ };
1989
+ const de_IdMappingTechniques = (output, context) => {
1990
+ return (0, smithy_client_1.take)(output, {
1991
+ idMappingType: smithy_client_1.expectString,
1992
+ providerProperties: (_) => de_ProviderProperties(_, context),
1993
+ });
1994
+ };
1995
+ const de_IdMappingWorkflowList = (output, context) => {
1996
+ const retVal = (output || [])
1997
+ .filter((e) => e != null)
1998
+ .map((entry) => {
1999
+ return de_IdMappingWorkflowSummary(entry, context);
2000
+ });
2001
+ return retVal;
2002
+ };
2003
+ const de_IdMappingWorkflowSummary = (output, context) => {
2004
+ return (0, smithy_client_1.take)(output, {
2005
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2006
+ updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2007
+ workflowArn: smithy_client_1.expectString,
2008
+ workflowName: smithy_client_1.expectString,
2009
+ });
2010
+ };
1184
2011
  const de_JobList = (output, context) => {
1185
2012
  const retVal = (output || [])
1186
2013
  .filter((e) => e != null)
@@ -1208,11 +2035,26 @@ const de_MatchingWorkflowList = (output, context) => {
1208
2035
  const de_MatchingWorkflowSummary = (output, context) => {
1209
2036
  return (0, smithy_client_1.take)(output, {
1210
2037
  createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2038
+ resolutionType: smithy_client_1.expectString,
1211
2039
  updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1212
2040
  workflowArn: smithy_client_1.expectString,
1213
2041
  workflowName: smithy_client_1.expectString,
1214
2042
  });
1215
2043
  };
2044
+ const de_ProviderProperties = (output, context) => {
2045
+ return (0, smithy_client_1.take)(output, {
2046
+ intermediateSourceConfiguration: smithy_client_1._json,
2047
+ providerConfiguration: (_) => de_Document(_, context),
2048
+ providerServiceArn: smithy_client_1.expectString,
2049
+ });
2050
+ };
2051
+ const de_ResolutionTechniques = (output, context) => {
2052
+ return (0, smithy_client_1.take)(output, {
2053
+ providerProperties: (_) => de_ProviderProperties(_, context),
2054
+ resolutionType: smithy_client_1.expectString,
2055
+ ruleBasedProperties: smithy_client_1._json,
2056
+ });
2057
+ };
1216
2058
  const de_SchemaMappingList = (output, context) => {
1217
2059
  const retVal = (output || [])
1218
2060
  .filter((e) => e != null)
@@ -1224,11 +2066,15 @@ const de_SchemaMappingList = (output, context) => {
1224
2066
  const de_SchemaMappingSummary = (output, context) => {
1225
2067
  return (0, smithy_client_1.take)(output, {
1226
2068
  createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2069
+ hasWorkflows: smithy_client_1.expectBoolean,
1227
2070
  schemaArn: smithy_client_1.expectString,
1228
2071
  schemaName: smithy_client_1.expectString,
1229
2072
  updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1230
2073
  });
1231
2074
  };
2075
+ const de_Document = (output, context) => {
2076
+ return output;
2077
+ };
1232
2078
  const deserializeMetadata = (output) => ({
1233
2079
  httpStatusCode: output.statusCode,
1234
2080
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],