@aws-sdk/client-entityresolution 3.554.0 → 3.562.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -7
- package/dist-cjs/index.js +683 -56
- package/dist-es/EntityResolution.js +20 -0
- package/dist-es/commands/AddPolicyStatementCommand.js +24 -0
- package/dist-es/commands/BatchDeleteUniqueIdCommand.js +24 -0
- package/dist-es/commands/CreateIdNamespaceCommand.js +24 -0
- package/dist-es/commands/DeleteIdNamespaceCommand.js +24 -0
- package/dist-es/commands/DeletePolicyStatementCommand.js +24 -0
- package/dist-es/commands/GetIdNamespaceCommand.js +24 -0
- package/dist-es/commands/GetPolicyCommand.js +24 -0
- package/dist-es/commands/ListIdNamespacesCommand.js +24 -0
- package/dist-es/commands/PutPolicyCommand.js +24 -0
- package/dist-es/commands/UpdateIdNamespaceCommand.js +24 -0
- package/dist-es/commands/index.js +10 -0
- package/dist-es/models/models_0.js +48 -32
- package/dist-es/pagination/ListIdNamespacesPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +399 -7
- package/dist-types/EntityResolution.d.ts +71 -0
- package/dist-types/EntityResolutionClient.d.ts +12 -2
- package/dist-types/commands/AddPolicyStatementCommand.d.ts +101 -0
- package/dist-types/commands/BatchDeleteUniqueIdCommand.d.ts +91 -0
- package/dist-types/commands/CreateIdMappingWorkflowCommand.d.ts +6 -4
- package/dist-types/commands/CreateIdNamespaceCommand.d.ts +138 -0
- package/dist-types/commands/DeleteIdMappingWorkflowCommand.d.ts +6 -0
- package/dist-types/commands/DeleteIdNamespaceCommand.d.ts +79 -0
- package/dist-types/commands/DeleteMatchingWorkflowCommand.d.ts +6 -0
- package/dist-types/commands/DeletePolicyStatementCommand.d.ts +92 -0
- package/dist-types/commands/GetIdMappingJobCommand.d.ts +7 -0
- package/dist-types/commands/GetIdMappingWorkflowCommand.d.ts +3 -2
- package/dist-types/commands/GetIdNamespaceCommand.d.ts +107 -0
- package/dist-types/commands/GetMatchIdCommand.d.ts +2 -0
- package/dist-types/commands/GetMatchingJobCommand.d.ts +7 -0
- package/dist-types/commands/GetPolicyCommand.d.ts +85 -0
- package/dist-types/commands/GetProviderServiceCommand.d.ts +21 -0
- package/dist-types/commands/ListIdNamespacesCommand.d.ts +90 -0
- package/dist-types/commands/PutPolicyCommand.d.ts +93 -0
- package/dist-types/commands/StartIdMappingJobCommand.d.ts +14 -0
- package/dist-types/commands/UpdateIdMappingWorkflowCommand.d.ts +6 -4
- package/dist-types/commands/UpdateIdNamespaceCommand.d.ts +121 -0
- package/dist-types/commands/index.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +972 -83
- package/dist-types/pagination/ListIdNamespacesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +90 -0
- package/dist-types/ts3.4/EntityResolution.d.ts +171 -0
- package/dist-types/ts3.4/EntityResolutionClient.d.ts +60 -0
- package/dist-types/ts3.4/commands/AddPolicyStatementCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/BatchDeleteUniqueIdCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateIdNamespaceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteIdNamespaceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeletePolicyStatementCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetIdNamespaceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetPolicyCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListIdNamespacesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/PutPolicyCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdateIdNamespaceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +10 -0
- package/dist-types/ts3.4/models/models_0.d.ts +245 -40
- package/dist-types/ts3.4/pagination/ListIdNamespacesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +120 -0
- package/package.json +4 -4
|
@@ -3,6 +3,39 @@ import { requestBuilder as rb } from "@smithy/core";
|
|
|
3
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, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { EntityResolutionServiceException as __BaseException } from "../models/EntityResolutionServiceException";
|
|
5
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]: [
|
|
29
|
+
() => isSerializableHeaderValue(input[_uI]),
|
|
30
|
+
() => (input[_uI] || []).map((_entry) => _entry).join(", "),
|
|
31
|
+
],
|
|
32
|
+
});
|
|
33
|
+
b.bp("/matchingworkflows/{workflowName}/uniqueids");
|
|
34
|
+
b.p("workflowName", () => input.workflowName, "{workflowName}", false);
|
|
35
|
+
let body;
|
|
36
|
+
b.m("DELETE").h(headers).b(body);
|
|
37
|
+
return b.build();
|
|
38
|
+
};
|
|
6
39
|
export const se_CreateIdMappingWorkflowCommand = async (input, context) => {
|
|
7
40
|
const b = rb(input, context);
|
|
8
41
|
const headers = {
|
|
@@ -22,6 +55,25 @@ export const se_CreateIdMappingWorkflowCommand = async (input, context) => {
|
|
|
22
55
|
b.m("POST").h(headers).b(body);
|
|
23
56
|
return b.build();
|
|
24
57
|
};
|
|
58
|
+
export const se_CreateIdNamespaceCommand = async (input, context) => {
|
|
59
|
+
const b = rb(input, context);
|
|
60
|
+
const headers = {
|
|
61
|
+
"content-type": "application/json",
|
|
62
|
+
};
|
|
63
|
+
b.bp("/idnamespaces");
|
|
64
|
+
let body;
|
|
65
|
+
body = JSON.stringify(take(input, {
|
|
66
|
+
description: [],
|
|
67
|
+
idMappingWorkflowProperties: (_) => se_IdNamespaceIdMappingWorkflowPropertiesList(_, context),
|
|
68
|
+
idNamespaceName: [],
|
|
69
|
+
inputSourceConfig: (_) => _json(_),
|
|
70
|
+
roleArn: [],
|
|
71
|
+
tags: (_) => _json(_),
|
|
72
|
+
type: [],
|
|
73
|
+
}));
|
|
74
|
+
b.m("POST").h(headers).b(body);
|
|
75
|
+
return b.build();
|
|
76
|
+
};
|
|
25
77
|
export const se_CreateMatchingWorkflowCommand = async (input, context) => {
|
|
26
78
|
const b = rb(input, context);
|
|
27
79
|
const headers = {
|
|
@@ -67,6 +119,15 @@ export const se_DeleteIdMappingWorkflowCommand = async (input, context) => {
|
|
|
67
119
|
b.m("DELETE").h(headers).b(body);
|
|
68
120
|
return b.build();
|
|
69
121
|
};
|
|
122
|
+
export const se_DeleteIdNamespaceCommand = async (input, context) => {
|
|
123
|
+
const b = rb(input, context);
|
|
124
|
+
const headers = {};
|
|
125
|
+
b.bp("/idnamespaces/{idNamespaceName}");
|
|
126
|
+
b.p("idNamespaceName", () => input.idNamespaceName, "{idNamespaceName}", false);
|
|
127
|
+
let body;
|
|
128
|
+
b.m("DELETE").h(headers).b(body);
|
|
129
|
+
return b.build();
|
|
130
|
+
};
|
|
70
131
|
export const se_DeleteMatchingWorkflowCommand = async (input, context) => {
|
|
71
132
|
const b = rb(input, context);
|
|
72
133
|
const headers = {};
|
|
@@ -76,6 +137,16 @@ export const se_DeleteMatchingWorkflowCommand = async (input, context) => {
|
|
|
76
137
|
b.m("DELETE").h(headers).b(body);
|
|
77
138
|
return b.build();
|
|
78
139
|
};
|
|
140
|
+
export const se_DeletePolicyStatementCommand = async (input, context) => {
|
|
141
|
+
const b = rb(input, context);
|
|
142
|
+
const headers = {};
|
|
143
|
+
b.bp("/policies/{arn}/{statementId}");
|
|
144
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
145
|
+
b.p("statementId", () => input.statementId, "{statementId}", false);
|
|
146
|
+
let body;
|
|
147
|
+
b.m("DELETE").h(headers).b(body);
|
|
148
|
+
return b.build();
|
|
149
|
+
};
|
|
79
150
|
export const se_DeleteSchemaMappingCommand = async (input, context) => {
|
|
80
151
|
const b = rb(input, context);
|
|
81
152
|
const headers = {};
|
|
@@ -104,6 +175,15 @@ export const se_GetIdMappingWorkflowCommand = async (input, context) => {
|
|
|
104
175
|
b.m("GET").h(headers).b(body);
|
|
105
176
|
return b.build();
|
|
106
177
|
};
|
|
178
|
+
export const se_GetIdNamespaceCommand = async (input, context) => {
|
|
179
|
+
const b = rb(input, context);
|
|
180
|
+
const headers = {};
|
|
181
|
+
b.bp("/idnamespaces/{idNamespaceName}");
|
|
182
|
+
b.p("idNamespaceName", () => input.idNamespaceName, "{idNamespaceName}", false);
|
|
183
|
+
let body;
|
|
184
|
+
b.m("GET").h(headers).b(body);
|
|
185
|
+
return b.build();
|
|
186
|
+
};
|
|
107
187
|
export const se_GetMatchIdCommand = async (input, context) => {
|
|
108
188
|
const b = rb(input, context);
|
|
109
189
|
const headers = {
|
|
@@ -113,6 +193,7 @@ export const se_GetMatchIdCommand = async (input, context) => {
|
|
|
113
193
|
b.p("workflowName", () => input.workflowName, "{workflowName}", false);
|
|
114
194
|
let body;
|
|
115
195
|
body = JSON.stringify(take(input, {
|
|
196
|
+
applyNormalization: [],
|
|
116
197
|
record: (_) => _json(_),
|
|
117
198
|
}));
|
|
118
199
|
b.m("POST").h(headers).b(body);
|
|
@@ -137,6 +218,15 @@ export const se_GetMatchingWorkflowCommand = async (input, context) => {
|
|
|
137
218
|
b.m("GET").h(headers).b(body);
|
|
138
219
|
return b.build();
|
|
139
220
|
};
|
|
221
|
+
export const se_GetPolicyCommand = async (input, context) => {
|
|
222
|
+
const b = rb(input, context);
|
|
223
|
+
const headers = {};
|
|
224
|
+
b.bp("/policies/{arn}");
|
|
225
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
226
|
+
let body;
|
|
227
|
+
b.m("GET").h(headers).b(body);
|
|
228
|
+
return b.build();
|
|
229
|
+
};
|
|
140
230
|
export const se_GetProviderServiceCommand = async (input, context) => {
|
|
141
231
|
const b = rb(input, context);
|
|
142
232
|
const headers = {};
|
|
@@ -181,6 +271,18 @@ export const se_ListIdMappingWorkflowsCommand = async (input, context) => {
|
|
|
181
271
|
b.m("GET").h(headers).q(query).b(body);
|
|
182
272
|
return b.build();
|
|
183
273
|
};
|
|
274
|
+
export const se_ListIdNamespacesCommand = async (input, context) => {
|
|
275
|
+
const b = rb(input, context);
|
|
276
|
+
const headers = {};
|
|
277
|
+
b.bp("/idnamespaces");
|
|
278
|
+
const query = map({
|
|
279
|
+
[_nT]: [, input[_nT]],
|
|
280
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
281
|
+
});
|
|
282
|
+
let body;
|
|
283
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
284
|
+
return b.build();
|
|
285
|
+
};
|
|
184
286
|
export const se_ListMatchingJobsCommand = async (input, context) => {
|
|
185
287
|
const b = rb(input, context);
|
|
186
288
|
const headers = {};
|
|
@@ -240,12 +342,32 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
240
342
|
b.m("GET").h(headers).b(body);
|
|
241
343
|
return b.build();
|
|
242
344
|
};
|
|
345
|
+
export const se_PutPolicyCommand = async (input, context) => {
|
|
346
|
+
const b = rb(input, context);
|
|
347
|
+
const headers = {
|
|
348
|
+
"content-type": "application/json",
|
|
349
|
+
};
|
|
350
|
+
b.bp("/policies/{arn}");
|
|
351
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
352
|
+
let body;
|
|
353
|
+
body = JSON.stringify(take(input, {
|
|
354
|
+
policy: [],
|
|
355
|
+
token: [],
|
|
356
|
+
}));
|
|
357
|
+
b.m("PUT").h(headers).b(body);
|
|
358
|
+
return b.build();
|
|
359
|
+
};
|
|
243
360
|
export const se_StartIdMappingJobCommand = async (input, context) => {
|
|
244
361
|
const b = rb(input, context);
|
|
245
|
-
const headers = {
|
|
362
|
+
const headers = {
|
|
363
|
+
"content-type": "application/json",
|
|
364
|
+
};
|
|
246
365
|
b.bp("/idmappingworkflows/{workflowName}/jobs");
|
|
247
366
|
b.p("workflowName", () => input.workflowName, "{workflowName}", false);
|
|
248
367
|
let body;
|
|
368
|
+
body = JSON.stringify(take(input, {
|
|
369
|
+
outputSourceConfig: (_) => _json(_),
|
|
370
|
+
}));
|
|
249
371
|
b.m("POST").h(headers).b(body);
|
|
250
372
|
return b.build();
|
|
251
373
|
};
|
|
@@ -305,6 +427,23 @@ export const se_UpdateIdMappingWorkflowCommand = async (input, context) => {
|
|
|
305
427
|
b.m("PUT").h(headers).b(body);
|
|
306
428
|
return b.build();
|
|
307
429
|
};
|
|
430
|
+
export const se_UpdateIdNamespaceCommand = async (input, context) => {
|
|
431
|
+
const b = rb(input, context);
|
|
432
|
+
const headers = {
|
|
433
|
+
"content-type": "application/json",
|
|
434
|
+
};
|
|
435
|
+
b.bp("/idnamespaces/{idNamespaceName}");
|
|
436
|
+
b.p("idNamespaceName", () => input.idNamespaceName, "{idNamespaceName}", false);
|
|
437
|
+
let body;
|
|
438
|
+
body = JSON.stringify(take(input, {
|
|
439
|
+
description: [],
|
|
440
|
+
idMappingWorkflowProperties: (_) => se_IdNamespaceIdMappingWorkflowPropertiesList(_, context),
|
|
441
|
+
inputSourceConfig: (_) => _json(_),
|
|
442
|
+
roleArn: [],
|
|
443
|
+
}));
|
|
444
|
+
b.m("PUT").h(headers).b(body);
|
|
445
|
+
return b.build();
|
|
446
|
+
};
|
|
308
447
|
export const se_UpdateMatchingWorkflowCommand = async (input, context) => {
|
|
309
448
|
const b = rb(input, context);
|
|
310
449
|
const headers = {
|
|
@@ -339,6 +478,39 @@ export const se_UpdateSchemaMappingCommand = async (input, context) => {
|
|
|
339
478
|
b.m("PUT").h(headers).b(body);
|
|
340
479
|
return b.build();
|
|
341
480
|
};
|
|
481
|
+
export const de_AddPolicyStatementCommand = async (output, context) => {
|
|
482
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
483
|
+
return de_CommandError(output, context);
|
|
484
|
+
}
|
|
485
|
+
const contents = map({
|
|
486
|
+
$metadata: deserializeMetadata(output),
|
|
487
|
+
});
|
|
488
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
489
|
+
const doc = take(data, {
|
|
490
|
+
arn: __expectString,
|
|
491
|
+
policy: __expectString,
|
|
492
|
+
token: __expectString,
|
|
493
|
+
});
|
|
494
|
+
Object.assign(contents, doc);
|
|
495
|
+
return contents;
|
|
496
|
+
};
|
|
497
|
+
export const de_BatchDeleteUniqueIdCommand = async (output, context) => {
|
|
498
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
499
|
+
return de_CommandError(output, context);
|
|
500
|
+
}
|
|
501
|
+
const contents = map({
|
|
502
|
+
$metadata: deserializeMetadata(output),
|
|
503
|
+
});
|
|
504
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
505
|
+
const doc = take(data, {
|
|
506
|
+
deleted: _json,
|
|
507
|
+
disconnectedUniqueIds: _json,
|
|
508
|
+
errors: _json,
|
|
509
|
+
status: __expectString,
|
|
510
|
+
});
|
|
511
|
+
Object.assign(contents, doc);
|
|
512
|
+
return contents;
|
|
513
|
+
};
|
|
342
514
|
export const de_CreateIdMappingWorkflowCommand = async (output, context) => {
|
|
343
515
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
344
516
|
return de_CommandError(output, context);
|
|
@@ -359,6 +531,29 @@ export const de_CreateIdMappingWorkflowCommand = async (output, context) => {
|
|
|
359
531
|
Object.assign(contents, doc);
|
|
360
532
|
return contents;
|
|
361
533
|
};
|
|
534
|
+
export const de_CreateIdNamespaceCommand = async (output, context) => {
|
|
535
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
536
|
+
return de_CommandError(output, context);
|
|
537
|
+
}
|
|
538
|
+
const contents = map({
|
|
539
|
+
$metadata: deserializeMetadata(output),
|
|
540
|
+
});
|
|
541
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
542
|
+
const doc = take(data, {
|
|
543
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
544
|
+
description: __expectString,
|
|
545
|
+
idMappingWorkflowProperties: (_) => de_IdNamespaceIdMappingWorkflowPropertiesList(_, context),
|
|
546
|
+
idNamespaceArn: __expectString,
|
|
547
|
+
idNamespaceName: __expectString,
|
|
548
|
+
inputSourceConfig: _json,
|
|
549
|
+
roleArn: __expectString,
|
|
550
|
+
tags: _json,
|
|
551
|
+
type: __expectString,
|
|
552
|
+
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
553
|
+
});
|
|
554
|
+
Object.assign(contents, doc);
|
|
555
|
+
return contents;
|
|
556
|
+
};
|
|
362
557
|
export const de_CreateMatchingWorkflowCommand = async (output, context) => {
|
|
363
558
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
364
559
|
return de_CommandError(output, context);
|
|
@@ -411,6 +606,20 @@ export const de_DeleteIdMappingWorkflowCommand = async (output, context) => {
|
|
|
411
606
|
Object.assign(contents, doc);
|
|
412
607
|
return contents;
|
|
413
608
|
};
|
|
609
|
+
export const de_DeleteIdNamespaceCommand = async (output, context) => {
|
|
610
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
611
|
+
return de_CommandError(output, context);
|
|
612
|
+
}
|
|
613
|
+
const contents = map({
|
|
614
|
+
$metadata: deserializeMetadata(output),
|
|
615
|
+
});
|
|
616
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
617
|
+
const doc = take(data, {
|
|
618
|
+
message: __expectString,
|
|
619
|
+
});
|
|
620
|
+
Object.assign(contents, doc);
|
|
621
|
+
return contents;
|
|
622
|
+
};
|
|
414
623
|
export const de_DeleteMatchingWorkflowCommand = async (output, context) => {
|
|
415
624
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
416
625
|
return de_CommandError(output, context);
|
|
@@ -425,6 +634,22 @@ export const de_DeleteMatchingWorkflowCommand = async (output, context) => {
|
|
|
425
634
|
Object.assign(contents, doc);
|
|
426
635
|
return contents;
|
|
427
636
|
};
|
|
637
|
+
export const de_DeletePolicyStatementCommand = async (output, context) => {
|
|
638
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
639
|
+
return de_CommandError(output, context);
|
|
640
|
+
}
|
|
641
|
+
const contents = map({
|
|
642
|
+
$metadata: deserializeMetadata(output),
|
|
643
|
+
});
|
|
644
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
645
|
+
const doc = take(data, {
|
|
646
|
+
arn: __expectString,
|
|
647
|
+
policy: __expectString,
|
|
648
|
+
token: __expectString,
|
|
649
|
+
});
|
|
650
|
+
Object.assign(contents, doc);
|
|
651
|
+
return contents;
|
|
652
|
+
};
|
|
428
653
|
export const de_DeleteSchemaMappingCommand = async (output, context) => {
|
|
429
654
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
430
655
|
return de_CommandError(output, context);
|
|
@@ -452,6 +677,7 @@ export const de_GetIdMappingJobCommand = async (output, context) => {
|
|
|
452
677
|
errorDetails: _json,
|
|
453
678
|
jobId: __expectString,
|
|
454
679
|
metrics: _json,
|
|
680
|
+
outputSourceConfig: _json,
|
|
455
681
|
startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
456
682
|
status: __expectString,
|
|
457
683
|
});
|
|
@@ -481,6 +707,29 @@ export const de_GetIdMappingWorkflowCommand = async (output, context) => {
|
|
|
481
707
|
Object.assign(contents, doc);
|
|
482
708
|
return contents;
|
|
483
709
|
};
|
|
710
|
+
export const de_GetIdNamespaceCommand = async (output, context) => {
|
|
711
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
712
|
+
return de_CommandError(output, context);
|
|
713
|
+
}
|
|
714
|
+
const contents = map({
|
|
715
|
+
$metadata: deserializeMetadata(output),
|
|
716
|
+
});
|
|
717
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
718
|
+
const doc = take(data, {
|
|
719
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
720
|
+
description: __expectString,
|
|
721
|
+
idMappingWorkflowProperties: (_) => de_IdNamespaceIdMappingWorkflowPropertiesList(_, context),
|
|
722
|
+
idNamespaceArn: __expectString,
|
|
723
|
+
idNamespaceName: __expectString,
|
|
724
|
+
inputSourceConfig: _json,
|
|
725
|
+
roleArn: __expectString,
|
|
726
|
+
tags: _json,
|
|
727
|
+
type: __expectString,
|
|
728
|
+
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
729
|
+
});
|
|
730
|
+
Object.assign(contents, doc);
|
|
731
|
+
return contents;
|
|
732
|
+
};
|
|
484
733
|
export const de_GetMatchIdCommand = async (output, context) => {
|
|
485
734
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
486
735
|
return de_CommandError(output, context);
|
|
@@ -491,6 +740,7 @@ export const de_GetMatchIdCommand = async (output, context) => {
|
|
|
491
740
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
492
741
|
const doc = take(data, {
|
|
493
742
|
matchId: __expectString,
|
|
743
|
+
matchRule: __expectString,
|
|
494
744
|
});
|
|
495
745
|
Object.assign(contents, doc);
|
|
496
746
|
return contents;
|
|
@@ -508,6 +758,7 @@ export const de_GetMatchingJobCommand = async (output, context) => {
|
|
|
508
758
|
errorDetails: _json,
|
|
509
759
|
jobId: __expectString,
|
|
510
760
|
metrics: _json,
|
|
761
|
+
outputSourceConfig: _json,
|
|
511
762
|
startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
512
763
|
status: __expectString,
|
|
513
764
|
});
|
|
@@ -538,6 +789,22 @@ export const de_GetMatchingWorkflowCommand = async (output, context) => {
|
|
|
538
789
|
Object.assign(contents, doc);
|
|
539
790
|
return contents;
|
|
540
791
|
};
|
|
792
|
+
export const de_GetPolicyCommand = async (output, context) => {
|
|
793
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
794
|
+
return de_CommandError(output, context);
|
|
795
|
+
}
|
|
796
|
+
const contents = map({
|
|
797
|
+
$metadata: deserializeMetadata(output),
|
|
798
|
+
});
|
|
799
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
800
|
+
const doc = take(data, {
|
|
801
|
+
arn: __expectString,
|
|
802
|
+
policy: __expectString,
|
|
803
|
+
token: __expectString,
|
|
804
|
+
});
|
|
805
|
+
Object.assign(contents, doc);
|
|
806
|
+
return contents;
|
|
807
|
+
};
|
|
541
808
|
export const de_GetProviderServiceCommand = async (output, context) => {
|
|
542
809
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
543
810
|
return de_CommandError(output, context);
|
|
@@ -548,10 +815,13 @@ export const de_GetProviderServiceCommand = async (output, context) => {
|
|
|
548
815
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
549
816
|
const doc = take(data, {
|
|
550
817
|
anonymizedOutput: __expectBoolean,
|
|
818
|
+
providerComponentSchema: _json,
|
|
551
819
|
providerConfigurationDefinition: (_) => de_Document(_, context),
|
|
552
820
|
providerEndpointConfiguration: (_) => _json(__expectUnion(_)),
|
|
553
821
|
providerEntityOutputDefinition: (_) => de_Document(_, context),
|
|
822
|
+
providerIdNameSpaceConfiguration: (_) => de_ProviderIdNameSpaceConfiguration(_, context),
|
|
554
823
|
providerIntermediateDataAccessConfiguration: _json,
|
|
824
|
+
providerJobConfiguration: (_) => de_Document(_, context),
|
|
555
825
|
providerName: __expectString,
|
|
556
826
|
providerServiceArn: __expectString,
|
|
557
827
|
providerServiceDisplayName: __expectString,
|
|
@@ -612,6 +882,21 @@ export const de_ListIdMappingWorkflowsCommand = async (output, context) => {
|
|
|
612
882
|
Object.assign(contents, doc);
|
|
613
883
|
return contents;
|
|
614
884
|
};
|
|
885
|
+
export const de_ListIdNamespacesCommand = 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
|
+
idNamespaceSummaries: (_) => de_IdNamespaceList(_, context),
|
|
895
|
+
nextToken: __expectString,
|
|
896
|
+
});
|
|
897
|
+
Object.assign(contents, doc);
|
|
898
|
+
return contents;
|
|
899
|
+
};
|
|
615
900
|
export const de_ListMatchingJobsCommand = async (output, context) => {
|
|
616
901
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
617
902
|
return de_CommandError(output, context);
|
|
@@ -686,6 +971,22 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
686
971
|
Object.assign(contents, doc);
|
|
687
972
|
return contents;
|
|
688
973
|
};
|
|
974
|
+
export const de_PutPolicyCommand = async (output, context) => {
|
|
975
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
976
|
+
return de_CommandError(output, context);
|
|
977
|
+
}
|
|
978
|
+
const contents = map({
|
|
979
|
+
$metadata: deserializeMetadata(output),
|
|
980
|
+
});
|
|
981
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
982
|
+
const doc = take(data, {
|
|
983
|
+
arn: __expectString,
|
|
984
|
+
policy: __expectString,
|
|
985
|
+
token: __expectString,
|
|
986
|
+
});
|
|
987
|
+
Object.assign(contents, doc);
|
|
988
|
+
return contents;
|
|
989
|
+
};
|
|
689
990
|
export const de_StartIdMappingJobCommand = async (output, context) => {
|
|
690
991
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
691
992
|
return de_CommandError(output, context);
|
|
@@ -696,6 +997,7 @@ export const de_StartIdMappingJobCommand = async (output, context) => {
|
|
|
696
997
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
697
998
|
const doc = take(data, {
|
|
698
999
|
jobId: __expectString,
|
|
1000
|
+
outputSourceConfig: _json,
|
|
699
1001
|
});
|
|
700
1002
|
Object.assign(contents, doc);
|
|
701
1003
|
return contents;
|
|
@@ -754,6 +1056,28 @@ export const de_UpdateIdMappingWorkflowCommand = async (output, context) => {
|
|
|
754
1056
|
Object.assign(contents, doc);
|
|
755
1057
|
return contents;
|
|
756
1058
|
};
|
|
1059
|
+
export const de_UpdateIdNamespaceCommand = async (output, context) => {
|
|
1060
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1061
|
+
return de_CommandError(output, context);
|
|
1062
|
+
}
|
|
1063
|
+
const contents = map({
|
|
1064
|
+
$metadata: deserializeMetadata(output),
|
|
1065
|
+
});
|
|
1066
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1067
|
+
const doc = take(data, {
|
|
1068
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1069
|
+
description: __expectString,
|
|
1070
|
+
idMappingWorkflowProperties: (_) => de_IdNamespaceIdMappingWorkflowPropertiesList(_, context),
|
|
1071
|
+
idNamespaceArn: __expectString,
|
|
1072
|
+
idNamespaceName: __expectString,
|
|
1073
|
+
inputSourceConfig: _json,
|
|
1074
|
+
roleArn: __expectString,
|
|
1075
|
+
type: __expectString,
|
|
1076
|
+
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1077
|
+
});
|
|
1078
|
+
Object.assign(contents, doc);
|
|
1079
|
+
return contents;
|
|
1080
|
+
};
|
|
757
1081
|
export const de_UpdateMatchingWorkflowCommand = async (output, context) => {
|
|
758
1082
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
759
1083
|
return de_CommandError(output, context);
|
|
@@ -804,21 +1128,21 @@ const de_CommandError = async (output, context) => {
|
|
|
804
1128
|
case "ConflictException":
|
|
805
1129
|
case "com.amazonaws.entityresolution#ConflictException":
|
|
806
1130
|
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
807
|
-
case "ExceedsLimitException":
|
|
808
|
-
case "com.amazonaws.entityresolution#ExceedsLimitException":
|
|
809
|
-
throw await de_ExceedsLimitExceptionRes(parsedOutput, context);
|
|
810
1131
|
case "InternalServerException":
|
|
811
1132
|
case "com.amazonaws.entityresolution#InternalServerException":
|
|
812
1133
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1134
|
+
case "ResourceNotFoundException":
|
|
1135
|
+
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
1136
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
813
1137
|
case "ThrottlingException":
|
|
814
1138
|
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
815
1139
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
816
1140
|
case "ValidationException":
|
|
817
1141
|
case "com.amazonaws.entityresolution#ValidationException":
|
|
818
1142
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
819
|
-
case "
|
|
820
|
-
case "com.amazonaws.entityresolution#
|
|
821
|
-
throw await
|
|
1143
|
+
case "ExceedsLimitException":
|
|
1144
|
+
case "com.amazonaws.entityresolution#ExceedsLimitException":
|
|
1145
|
+
throw await de_ExceedsLimitExceptionRes(parsedOutput, context);
|
|
822
1146
|
default:
|
|
823
1147
|
const parsedBody = parsedOutput.body;
|
|
824
1148
|
return throwDefaultError({
|
|
@@ -928,6 +1252,25 @@ const se_IdMappingTechniques = (input, context) => {
|
|
|
928
1252
|
providerProperties: (_) => se_ProviderProperties(_, context),
|
|
929
1253
|
});
|
|
930
1254
|
};
|
|
1255
|
+
const se_IdNamespaceIdMappingWorkflowProperties = (input, context) => {
|
|
1256
|
+
return take(input, {
|
|
1257
|
+
idMappingType: [],
|
|
1258
|
+
providerProperties: (_) => se_NamespaceProviderProperties(_, context),
|
|
1259
|
+
});
|
|
1260
|
+
};
|
|
1261
|
+
const se_IdNamespaceIdMappingWorkflowPropertiesList = (input, context) => {
|
|
1262
|
+
return input
|
|
1263
|
+
.filter((e) => e != null)
|
|
1264
|
+
.map((entry) => {
|
|
1265
|
+
return se_IdNamespaceIdMappingWorkflowProperties(entry, context);
|
|
1266
|
+
});
|
|
1267
|
+
};
|
|
1268
|
+
const se_NamespaceProviderProperties = (input, context) => {
|
|
1269
|
+
return take(input, {
|
|
1270
|
+
providerConfiguration: (_) => se_Document(_, context),
|
|
1271
|
+
providerServiceArn: [],
|
|
1272
|
+
});
|
|
1273
|
+
};
|
|
931
1274
|
const se_ProviderProperties = (input, context) => {
|
|
932
1275
|
return take(input, {
|
|
933
1276
|
intermediateSourceConfiguration: _json,
|
|
@@ -967,6 +1310,38 @@ const de_IdMappingWorkflowSummary = (output, context) => {
|
|
|
967
1310
|
workflowName: __expectString,
|
|
968
1311
|
});
|
|
969
1312
|
};
|
|
1313
|
+
const de_IdNamespaceIdMappingWorkflowProperties = (output, context) => {
|
|
1314
|
+
return take(output, {
|
|
1315
|
+
idMappingType: __expectString,
|
|
1316
|
+
providerProperties: (_) => de_NamespaceProviderProperties(_, context),
|
|
1317
|
+
});
|
|
1318
|
+
};
|
|
1319
|
+
const de_IdNamespaceIdMappingWorkflowPropertiesList = (output, context) => {
|
|
1320
|
+
const retVal = (output || [])
|
|
1321
|
+
.filter((e) => e != null)
|
|
1322
|
+
.map((entry) => {
|
|
1323
|
+
return de_IdNamespaceIdMappingWorkflowProperties(entry, context);
|
|
1324
|
+
});
|
|
1325
|
+
return retVal;
|
|
1326
|
+
};
|
|
1327
|
+
const de_IdNamespaceList = (output, context) => {
|
|
1328
|
+
const retVal = (output || [])
|
|
1329
|
+
.filter((e) => e != null)
|
|
1330
|
+
.map((entry) => {
|
|
1331
|
+
return de_IdNamespaceSummary(entry, context);
|
|
1332
|
+
});
|
|
1333
|
+
return retVal;
|
|
1334
|
+
};
|
|
1335
|
+
const de_IdNamespaceSummary = (output, context) => {
|
|
1336
|
+
return take(output, {
|
|
1337
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1338
|
+
description: __expectString,
|
|
1339
|
+
idNamespaceArn: __expectString,
|
|
1340
|
+
idNamespaceName: __expectString,
|
|
1341
|
+
type: __expectString,
|
|
1342
|
+
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1343
|
+
});
|
|
1344
|
+
};
|
|
970
1345
|
const de_JobList = (output, context) => {
|
|
971
1346
|
const retVal = (output || [])
|
|
972
1347
|
.filter((e) => e != null)
|
|
@@ -1000,6 +1375,19 @@ const de_MatchingWorkflowSummary = (output, context) => {
|
|
|
1000
1375
|
workflowName: __expectString,
|
|
1001
1376
|
});
|
|
1002
1377
|
};
|
|
1378
|
+
const de_NamespaceProviderProperties = (output, context) => {
|
|
1379
|
+
return take(output, {
|
|
1380
|
+
providerConfiguration: (_) => de_Document(_, context),
|
|
1381
|
+
providerServiceArn: __expectString,
|
|
1382
|
+
});
|
|
1383
|
+
};
|
|
1384
|
+
const de_ProviderIdNameSpaceConfiguration = (output, context) => {
|
|
1385
|
+
return take(output, {
|
|
1386
|
+
description: __expectString,
|
|
1387
|
+
providerSourceConfigurationDefinition: (_) => de_Document(_, context),
|
|
1388
|
+
providerTargetConfigurationDefinition: (_) => de_Document(_, context),
|
|
1389
|
+
});
|
|
1390
|
+
};
|
|
1003
1391
|
const de_ProviderProperties = (output, context) => {
|
|
1004
1392
|
return take(output, {
|
|
1005
1393
|
intermediateSourceConfiguration: _json,
|
|
@@ -1046,7 +1434,11 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1046
1434
|
value !== "" &&
|
|
1047
1435
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1048
1436
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1437
|
+
const _i = "inputsource";
|
|
1438
|
+
const _iS = "inputSource";
|
|
1049
1439
|
const _mR = "maxResults";
|
|
1050
1440
|
const _nT = "nextToken";
|
|
1051
1441
|
const _pN = "providerName";
|
|
1052
1442
|
const _tK = "tagKeys";
|
|
1443
|
+
const _u = "uniqueids";
|
|
1444
|
+
const _uI = "uniqueIds";
|