@aws-sdk/client-entityresolution 3.554.0 → 3.556.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 +79 -7
- package/dist-cjs/index.js +614 -56
- package/dist-es/EntityResolution.js +18 -0
- package/dist-es/commands/AddPolicyStatementCommand.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 +9 -0
- package/dist-es/models/models_0.js +40 -32
- package/dist-es/pagination/ListIdNamespacesPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +363 -7
- package/dist-types/EntityResolution.d.ts +64 -0
- package/dist-types/EntityResolutionClient.d.ts +11 -2
- package/dist-types/commands/AddPolicyStatementCommand.d.ts +101 -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 +9 -0
- package/dist-types/models/models_0.d.ts +876 -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 +81 -0
- package/dist-types/ts3.4/EntityResolution.d.ts +154 -0
- package/dist-types/ts3.4/EntityResolutionClient.d.ts +54 -0
- package/dist-types/ts3.4/commands/AddPolicyStatementCommand.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 +9 -0
- package/dist-types/ts3.4/models/models_0.d.ts +216 -41
- 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 +108 -0
- package/package.json +4 -4
|
@@ -3,6 +3,24 @@ 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
|
+
};
|
|
6
24
|
export const se_CreateIdMappingWorkflowCommand = async (input, context) => {
|
|
7
25
|
const b = rb(input, context);
|
|
8
26
|
const headers = {
|
|
@@ -22,6 +40,25 @@ export const se_CreateIdMappingWorkflowCommand = async (input, context) => {
|
|
|
22
40
|
b.m("POST").h(headers).b(body);
|
|
23
41
|
return b.build();
|
|
24
42
|
};
|
|
43
|
+
export const se_CreateIdNamespaceCommand = async (input, context) => {
|
|
44
|
+
const b = rb(input, context);
|
|
45
|
+
const headers = {
|
|
46
|
+
"content-type": "application/json",
|
|
47
|
+
};
|
|
48
|
+
b.bp("/idnamespaces");
|
|
49
|
+
let body;
|
|
50
|
+
body = JSON.stringify(take(input, {
|
|
51
|
+
description: [],
|
|
52
|
+
idMappingWorkflowProperties: (_) => se_IdNamespaceIdMappingWorkflowPropertiesList(_, context),
|
|
53
|
+
idNamespaceName: [],
|
|
54
|
+
inputSourceConfig: (_) => _json(_),
|
|
55
|
+
roleArn: [],
|
|
56
|
+
tags: (_) => _json(_),
|
|
57
|
+
type: [],
|
|
58
|
+
}));
|
|
59
|
+
b.m("POST").h(headers).b(body);
|
|
60
|
+
return b.build();
|
|
61
|
+
};
|
|
25
62
|
export const se_CreateMatchingWorkflowCommand = async (input, context) => {
|
|
26
63
|
const b = rb(input, context);
|
|
27
64
|
const headers = {
|
|
@@ -67,6 +104,15 @@ export const se_DeleteIdMappingWorkflowCommand = async (input, context) => {
|
|
|
67
104
|
b.m("DELETE").h(headers).b(body);
|
|
68
105
|
return b.build();
|
|
69
106
|
};
|
|
107
|
+
export const se_DeleteIdNamespaceCommand = async (input, context) => {
|
|
108
|
+
const b = rb(input, context);
|
|
109
|
+
const headers = {};
|
|
110
|
+
b.bp("/idnamespaces/{idNamespaceName}");
|
|
111
|
+
b.p("idNamespaceName", () => input.idNamespaceName, "{idNamespaceName}", false);
|
|
112
|
+
let body;
|
|
113
|
+
b.m("DELETE").h(headers).b(body);
|
|
114
|
+
return b.build();
|
|
115
|
+
};
|
|
70
116
|
export const se_DeleteMatchingWorkflowCommand = async (input, context) => {
|
|
71
117
|
const b = rb(input, context);
|
|
72
118
|
const headers = {};
|
|
@@ -76,6 +122,16 @@ export const se_DeleteMatchingWorkflowCommand = async (input, context) => {
|
|
|
76
122
|
b.m("DELETE").h(headers).b(body);
|
|
77
123
|
return b.build();
|
|
78
124
|
};
|
|
125
|
+
export const se_DeletePolicyStatementCommand = async (input, context) => {
|
|
126
|
+
const b = rb(input, context);
|
|
127
|
+
const headers = {};
|
|
128
|
+
b.bp("/policies/{arn}/{statementId}");
|
|
129
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
130
|
+
b.p("statementId", () => input.statementId, "{statementId}", false);
|
|
131
|
+
let body;
|
|
132
|
+
b.m("DELETE").h(headers).b(body);
|
|
133
|
+
return b.build();
|
|
134
|
+
};
|
|
79
135
|
export const se_DeleteSchemaMappingCommand = async (input, context) => {
|
|
80
136
|
const b = rb(input, context);
|
|
81
137
|
const headers = {};
|
|
@@ -104,6 +160,15 @@ export const se_GetIdMappingWorkflowCommand = async (input, context) => {
|
|
|
104
160
|
b.m("GET").h(headers).b(body);
|
|
105
161
|
return b.build();
|
|
106
162
|
};
|
|
163
|
+
export const se_GetIdNamespaceCommand = async (input, context) => {
|
|
164
|
+
const b = rb(input, context);
|
|
165
|
+
const headers = {};
|
|
166
|
+
b.bp("/idnamespaces/{idNamespaceName}");
|
|
167
|
+
b.p("idNamespaceName", () => input.idNamespaceName, "{idNamespaceName}", false);
|
|
168
|
+
let body;
|
|
169
|
+
b.m("GET").h(headers).b(body);
|
|
170
|
+
return b.build();
|
|
171
|
+
};
|
|
107
172
|
export const se_GetMatchIdCommand = async (input, context) => {
|
|
108
173
|
const b = rb(input, context);
|
|
109
174
|
const headers = {
|
|
@@ -113,6 +178,7 @@ export const se_GetMatchIdCommand = async (input, context) => {
|
|
|
113
178
|
b.p("workflowName", () => input.workflowName, "{workflowName}", false);
|
|
114
179
|
let body;
|
|
115
180
|
body = JSON.stringify(take(input, {
|
|
181
|
+
applyNormalization: [],
|
|
116
182
|
record: (_) => _json(_),
|
|
117
183
|
}));
|
|
118
184
|
b.m("POST").h(headers).b(body);
|
|
@@ -137,6 +203,15 @@ export const se_GetMatchingWorkflowCommand = async (input, context) => {
|
|
|
137
203
|
b.m("GET").h(headers).b(body);
|
|
138
204
|
return b.build();
|
|
139
205
|
};
|
|
206
|
+
export const se_GetPolicyCommand = async (input, context) => {
|
|
207
|
+
const b = rb(input, context);
|
|
208
|
+
const headers = {};
|
|
209
|
+
b.bp("/policies/{arn}");
|
|
210
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
211
|
+
let body;
|
|
212
|
+
b.m("GET").h(headers).b(body);
|
|
213
|
+
return b.build();
|
|
214
|
+
};
|
|
140
215
|
export const se_GetProviderServiceCommand = async (input, context) => {
|
|
141
216
|
const b = rb(input, context);
|
|
142
217
|
const headers = {};
|
|
@@ -181,6 +256,18 @@ export const se_ListIdMappingWorkflowsCommand = async (input, context) => {
|
|
|
181
256
|
b.m("GET").h(headers).q(query).b(body);
|
|
182
257
|
return b.build();
|
|
183
258
|
};
|
|
259
|
+
export const se_ListIdNamespacesCommand = async (input, context) => {
|
|
260
|
+
const b = rb(input, context);
|
|
261
|
+
const headers = {};
|
|
262
|
+
b.bp("/idnamespaces");
|
|
263
|
+
const query = map({
|
|
264
|
+
[_nT]: [, input[_nT]],
|
|
265
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
266
|
+
});
|
|
267
|
+
let body;
|
|
268
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
269
|
+
return b.build();
|
|
270
|
+
};
|
|
184
271
|
export const se_ListMatchingJobsCommand = async (input, context) => {
|
|
185
272
|
const b = rb(input, context);
|
|
186
273
|
const headers = {};
|
|
@@ -240,12 +327,32 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
240
327
|
b.m("GET").h(headers).b(body);
|
|
241
328
|
return b.build();
|
|
242
329
|
};
|
|
330
|
+
export const se_PutPolicyCommand = async (input, context) => {
|
|
331
|
+
const b = rb(input, context);
|
|
332
|
+
const headers = {
|
|
333
|
+
"content-type": "application/json",
|
|
334
|
+
};
|
|
335
|
+
b.bp("/policies/{arn}");
|
|
336
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
337
|
+
let body;
|
|
338
|
+
body = JSON.stringify(take(input, {
|
|
339
|
+
policy: [],
|
|
340
|
+
token: [],
|
|
341
|
+
}));
|
|
342
|
+
b.m("PUT").h(headers).b(body);
|
|
343
|
+
return b.build();
|
|
344
|
+
};
|
|
243
345
|
export const se_StartIdMappingJobCommand = async (input, context) => {
|
|
244
346
|
const b = rb(input, context);
|
|
245
|
-
const headers = {
|
|
347
|
+
const headers = {
|
|
348
|
+
"content-type": "application/json",
|
|
349
|
+
};
|
|
246
350
|
b.bp("/idmappingworkflows/{workflowName}/jobs");
|
|
247
351
|
b.p("workflowName", () => input.workflowName, "{workflowName}", false);
|
|
248
352
|
let body;
|
|
353
|
+
body = JSON.stringify(take(input, {
|
|
354
|
+
outputSourceConfig: (_) => _json(_),
|
|
355
|
+
}));
|
|
249
356
|
b.m("POST").h(headers).b(body);
|
|
250
357
|
return b.build();
|
|
251
358
|
};
|
|
@@ -305,6 +412,23 @@ export const se_UpdateIdMappingWorkflowCommand = async (input, context) => {
|
|
|
305
412
|
b.m("PUT").h(headers).b(body);
|
|
306
413
|
return b.build();
|
|
307
414
|
};
|
|
415
|
+
export const se_UpdateIdNamespaceCommand = async (input, context) => {
|
|
416
|
+
const b = rb(input, context);
|
|
417
|
+
const headers = {
|
|
418
|
+
"content-type": "application/json",
|
|
419
|
+
};
|
|
420
|
+
b.bp("/idnamespaces/{idNamespaceName}");
|
|
421
|
+
b.p("idNamespaceName", () => input.idNamespaceName, "{idNamespaceName}", false);
|
|
422
|
+
let body;
|
|
423
|
+
body = JSON.stringify(take(input, {
|
|
424
|
+
description: [],
|
|
425
|
+
idMappingWorkflowProperties: (_) => se_IdNamespaceIdMappingWorkflowPropertiesList(_, context),
|
|
426
|
+
inputSourceConfig: (_) => _json(_),
|
|
427
|
+
roleArn: [],
|
|
428
|
+
}));
|
|
429
|
+
b.m("PUT").h(headers).b(body);
|
|
430
|
+
return b.build();
|
|
431
|
+
};
|
|
308
432
|
export const se_UpdateMatchingWorkflowCommand = async (input, context) => {
|
|
309
433
|
const b = rb(input, context);
|
|
310
434
|
const headers = {
|
|
@@ -339,6 +463,22 @@ export const se_UpdateSchemaMappingCommand = async (input, context) => {
|
|
|
339
463
|
b.m("PUT").h(headers).b(body);
|
|
340
464
|
return b.build();
|
|
341
465
|
};
|
|
466
|
+
export const de_AddPolicyStatementCommand = async (output, context) => {
|
|
467
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
468
|
+
return de_CommandError(output, context);
|
|
469
|
+
}
|
|
470
|
+
const contents = map({
|
|
471
|
+
$metadata: deserializeMetadata(output),
|
|
472
|
+
});
|
|
473
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
474
|
+
const doc = take(data, {
|
|
475
|
+
arn: __expectString,
|
|
476
|
+
policy: __expectString,
|
|
477
|
+
token: __expectString,
|
|
478
|
+
});
|
|
479
|
+
Object.assign(contents, doc);
|
|
480
|
+
return contents;
|
|
481
|
+
};
|
|
342
482
|
export const de_CreateIdMappingWorkflowCommand = async (output, context) => {
|
|
343
483
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
344
484
|
return de_CommandError(output, context);
|
|
@@ -359,6 +499,29 @@ export const de_CreateIdMappingWorkflowCommand = async (output, context) => {
|
|
|
359
499
|
Object.assign(contents, doc);
|
|
360
500
|
return contents;
|
|
361
501
|
};
|
|
502
|
+
export const de_CreateIdNamespaceCommand = async (output, context) => {
|
|
503
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
504
|
+
return de_CommandError(output, context);
|
|
505
|
+
}
|
|
506
|
+
const contents = map({
|
|
507
|
+
$metadata: deserializeMetadata(output),
|
|
508
|
+
});
|
|
509
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
510
|
+
const doc = take(data, {
|
|
511
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
512
|
+
description: __expectString,
|
|
513
|
+
idMappingWorkflowProperties: (_) => de_IdNamespaceIdMappingWorkflowPropertiesList(_, context),
|
|
514
|
+
idNamespaceArn: __expectString,
|
|
515
|
+
idNamespaceName: __expectString,
|
|
516
|
+
inputSourceConfig: _json,
|
|
517
|
+
roleArn: __expectString,
|
|
518
|
+
tags: _json,
|
|
519
|
+
type: __expectString,
|
|
520
|
+
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
521
|
+
});
|
|
522
|
+
Object.assign(contents, doc);
|
|
523
|
+
return contents;
|
|
524
|
+
};
|
|
362
525
|
export const de_CreateMatchingWorkflowCommand = async (output, context) => {
|
|
363
526
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
364
527
|
return de_CommandError(output, context);
|
|
@@ -411,6 +574,20 @@ export const de_DeleteIdMappingWorkflowCommand = async (output, context) => {
|
|
|
411
574
|
Object.assign(contents, doc);
|
|
412
575
|
return contents;
|
|
413
576
|
};
|
|
577
|
+
export const de_DeleteIdNamespaceCommand = async (output, context) => {
|
|
578
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
579
|
+
return de_CommandError(output, context);
|
|
580
|
+
}
|
|
581
|
+
const contents = map({
|
|
582
|
+
$metadata: deserializeMetadata(output),
|
|
583
|
+
});
|
|
584
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
585
|
+
const doc = take(data, {
|
|
586
|
+
message: __expectString,
|
|
587
|
+
});
|
|
588
|
+
Object.assign(contents, doc);
|
|
589
|
+
return contents;
|
|
590
|
+
};
|
|
414
591
|
export const de_DeleteMatchingWorkflowCommand = async (output, context) => {
|
|
415
592
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
416
593
|
return de_CommandError(output, context);
|
|
@@ -425,6 +602,22 @@ export const de_DeleteMatchingWorkflowCommand = async (output, context) => {
|
|
|
425
602
|
Object.assign(contents, doc);
|
|
426
603
|
return contents;
|
|
427
604
|
};
|
|
605
|
+
export const de_DeletePolicyStatementCommand = async (output, context) => {
|
|
606
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
607
|
+
return de_CommandError(output, context);
|
|
608
|
+
}
|
|
609
|
+
const contents = map({
|
|
610
|
+
$metadata: deserializeMetadata(output),
|
|
611
|
+
});
|
|
612
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
613
|
+
const doc = take(data, {
|
|
614
|
+
arn: __expectString,
|
|
615
|
+
policy: __expectString,
|
|
616
|
+
token: __expectString,
|
|
617
|
+
});
|
|
618
|
+
Object.assign(contents, doc);
|
|
619
|
+
return contents;
|
|
620
|
+
};
|
|
428
621
|
export const de_DeleteSchemaMappingCommand = async (output, context) => {
|
|
429
622
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
430
623
|
return de_CommandError(output, context);
|
|
@@ -452,6 +645,7 @@ export const de_GetIdMappingJobCommand = async (output, context) => {
|
|
|
452
645
|
errorDetails: _json,
|
|
453
646
|
jobId: __expectString,
|
|
454
647
|
metrics: _json,
|
|
648
|
+
outputSourceConfig: _json,
|
|
455
649
|
startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
456
650
|
status: __expectString,
|
|
457
651
|
});
|
|
@@ -481,6 +675,29 @@ export const de_GetIdMappingWorkflowCommand = async (output, context) => {
|
|
|
481
675
|
Object.assign(contents, doc);
|
|
482
676
|
return contents;
|
|
483
677
|
};
|
|
678
|
+
export const de_GetIdNamespaceCommand = async (output, context) => {
|
|
679
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
680
|
+
return de_CommandError(output, context);
|
|
681
|
+
}
|
|
682
|
+
const contents = map({
|
|
683
|
+
$metadata: deserializeMetadata(output),
|
|
684
|
+
});
|
|
685
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
686
|
+
const doc = take(data, {
|
|
687
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
688
|
+
description: __expectString,
|
|
689
|
+
idMappingWorkflowProperties: (_) => de_IdNamespaceIdMappingWorkflowPropertiesList(_, context),
|
|
690
|
+
idNamespaceArn: __expectString,
|
|
691
|
+
idNamespaceName: __expectString,
|
|
692
|
+
inputSourceConfig: _json,
|
|
693
|
+
roleArn: __expectString,
|
|
694
|
+
tags: _json,
|
|
695
|
+
type: __expectString,
|
|
696
|
+
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
697
|
+
});
|
|
698
|
+
Object.assign(contents, doc);
|
|
699
|
+
return contents;
|
|
700
|
+
};
|
|
484
701
|
export const de_GetMatchIdCommand = async (output, context) => {
|
|
485
702
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
486
703
|
return de_CommandError(output, context);
|
|
@@ -491,6 +708,7 @@ export const de_GetMatchIdCommand = async (output, context) => {
|
|
|
491
708
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
492
709
|
const doc = take(data, {
|
|
493
710
|
matchId: __expectString,
|
|
711
|
+
matchRule: __expectString,
|
|
494
712
|
});
|
|
495
713
|
Object.assign(contents, doc);
|
|
496
714
|
return contents;
|
|
@@ -508,6 +726,7 @@ export const de_GetMatchingJobCommand = async (output, context) => {
|
|
|
508
726
|
errorDetails: _json,
|
|
509
727
|
jobId: __expectString,
|
|
510
728
|
metrics: _json,
|
|
729
|
+
outputSourceConfig: _json,
|
|
511
730
|
startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
512
731
|
status: __expectString,
|
|
513
732
|
});
|
|
@@ -538,6 +757,22 @@ export const de_GetMatchingWorkflowCommand = async (output, context) => {
|
|
|
538
757
|
Object.assign(contents, doc);
|
|
539
758
|
return contents;
|
|
540
759
|
};
|
|
760
|
+
export const de_GetPolicyCommand = async (output, context) => {
|
|
761
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
762
|
+
return de_CommandError(output, context);
|
|
763
|
+
}
|
|
764
|
+
const contents = map({
|
|
765
|
+
$metadata: deserializeMetadata(output),
|
|
766
|
+
});
|
|
767
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
768
|
+
const doc = take(data, {
|
|
769
|
+
arn: __expectString,
|
|
770
|
+
policy: __expectString,
|
|
771
|
+
token: __expectString,
|
|
772
|
+
});
|
|
773
|
+
Object.assign(contents, doc);
|
|
774
|
+
return contents;
|
|
775
|
+
};
|
|
541
776
|
export const de_GetProviderServiceCommand = async (output, context) => {
|
|
542
777
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
543
778
|
return de_CommandError(output, context);
|
|
@@ -548,10 +783,13 @@ export const de_GetProviderServiceCommand = async (output, context) => {
|
|
|
548
783
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
549
784
|
const doc = take(data, {
|
|
550
785
|
anonymizedOutput: __expectBoolean,
|
|
786
|
+
providerComponentSchema: _json,
|
|
551
787
|
providerConfigurationDefinition: (_) => de_Document(_, context),
|
|
552
788
|
providerEndpointConfiguration: (_) => _json(__expectUnion(_)),
|
|
553
789
|
providerEntityOutputDefinition: (_) => de_Document(_, context),
|
|
790
|
+
providerIdNameSpaceConfiguration: (_) => de_ProviderIdNameSpaceConfiguration(_, context),
|
|
554
791
|
providerIntermediateDataAccessConfiguration: _json,
|
|
792
|
+
providerJobConfiguration: (_) => de_Document(_, context),
|
|
555
793
|
providerName: __expectString,
|
|
556
794
|
providerServiceArn: __expectString,
|
|
557
795
|
providerServiceDisplayName: __expectString,
|
|
@@ -612,6 +850,21 @@ export const de_ListIdMappingWorkflowsCommand = async (output, context) => {
|
|
|
612
850
|
Object.assign(contents, doc);
|
|
613
851
|
return contents;
|
|
614
852
|
};
|
|
853
|
+
export const de_ListIdNamespacesCommand = async (output, context) => {
|
|
854
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
855
|
+
return de_CommandError(output, context);
|
|
856
|
+
}
|
|
857
|
+
const contents = map({
|
|
858
|
+
$metadata: deserializeMetadata(output),
|
|
859
|
+
});
|
|
860
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
861
|
+
const doc = take(data, {
|
|
862
|
+
idNamespaceSummaries: (_) => de_IdNamespaceList(_, context),
|
|
863
|
+
nextToken: __expectString,
|
|
864
|
+
});
|
|
865
|
+
Object.assign(contents, doc);
|
|
866
|
+
return contents;
|
|
867
|
+
};
|
|
615
868
|
export const de_ListMatchingJobsCommand = async (output, context) => {
|
|
616
869
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
617
870
|
return de_CommandError(output, context);
|
|
@@ -686,6 +939,22 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
686
939
|
Object.assign(contents, doc);
|
|
687
940
|
return contents;
|
|
688
941
|
};
|
|
942
|
+
export const de_PutPolicyCommand = async (output, context) => {
|
|
943
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
944
|
+
return de_CommandError(output, context);
|
|
945
|
+
}
|
|
946
|
+
const contents = map({
|
|
947
|
+
$metadata: deserializeMetadata(output),
|
|
948
|
+
});
|
|
949
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
950
|
+
const doc = take(data, {
|
|
951
|
+
arn: __expectString,
|
|
952
|
+
policy: __expectString,
|
|
953
|
+
token: __expectString,
|
|
954
|
+
});
|
|
955
|
+
Object.assign(contents, doc);
|
|
956
|
+
return contents;
|
|
957
|
+
};
|
|
689
958
|
export const de_StartIdMappingJobCommand = async (output, context) => {
|
|
690
959
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
691
960
|
return de_CommandError(output, context);
|
|
@@ -696,6 +965,7 @@ export const de_StartIdMappingJobCommand = async (output, context) => {
|
|
|
696
965
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
697
966
|
const doc = take(data, {
|
|
698
967
|
jobId: __expectString,
|
|
968
|
+
outputSourceConfig: _json,
|
|
699
969
|
});
|
|
700
970
|
Object.assign(contents, doc);
|
|
701
971
|
return contents;
|
|
@@ -754,6 +1024,28 @@ export const de_UpdateIdMappingWorkflowCommand = async (output, context) => {
|
|
|
754
1024
|
Object.assign(contents, doc);
|
|
755
1025
|
return contents;
|
|
756
1026
|
};
|
|
1027
|
+
export const de_UpdateIdNamespaceCommand = async (output, context) => {
|
|
1028
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1029
|
+
return de_CommandError(output, context);
|
|
1030
|
+
}
|
|
1031
|
+
const contents = map({
|
|
1032
|
+
$metadata: deserializeMetadata(output),
|
|
1033
|
+
});
|
|
1034
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1035
|
+
const doc = take(data, {
|
|
1036
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1037
|
+
description: __expectString,
|
|
1038
|
+
idMappingWorkflowProperties: (_) => de_IdNamespaceIdMappingWorkflowPropertiesList(_, context),
|
|
1039
|
+
idNamespaceArn: __expectString,
|
|
1040
|
+
idNamespaceName: __expectString,
|
|
1041
|
+
inputSourceConfig: _json,
|
|
1042
|
+
roleArn: __expectString,
|
|
1043
|
+
type: __expectString,
|
|
1044
|
+
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1045
|
+
});
|
|
1046
|
+
Object.assign(contents, doc);
|
|
1047
|
+
return contents;
|
|
1048
|
+
};
|
|
757
1049
|
export const de_UpdateMatchingWorkflowCommand = async (output, context) => {
|
|
758
1050
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
759
1051
|
return de_CommandError(output, context);
|
|
@@ -804,21 +1096,21 @@ const de_CommandError = async (output, context) => {
|
|
|
804
1096
|
case "ConflictException":
|
|
805
1097
|
case "com.amazonaws.entityresolution#ConflictException":
|
|
806
1098
|
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
807
|
-
case "ExceedsLimitException":
|
|
808
|
-
case "com.amazonaws.entityresolution#ExceedsLimitException":
|
|
809
|
-
throw await de_ExceedsLimitExceptionRes(parsedOutput, context);
|
|
810
1099
|
case "InternalServerException":
|
|
811
1100
|
case "com.amazonaws.entityresolution#InternalServerException":
|
|
812
1101
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1102
|
+
case "ResourceNotFoundException":
|
|
1103
|
+
case "com.amazonaws.entityresolution#ResourceNotFoundException":
|
|
1104
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
813
1105
|
case "ThrottlingException":
|
|
814
1106
|
case "com.amazonaws.entityresolution#ThrottlingException":
|
|
815
1107
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
816
1108
|
case "ValidationException":
|
|
817
1109
|
case "com.amazonaws.entityresolution#ValidationException":
|
|
818
1110
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
819
|
-
case "
|
|
820
|
-
case "com.amazonaws.entityresolution#
|
|
821
|
-
throw await
|
|
1111
|
+
case "ExceedsLimitException":
|
|
1112
|
+
case "com.amazonaws.entityresolution#ExceedsLimitException":
|
|
1113
|
+
throw await de_ExceedsLimitExceptionRes(parsedOutput, context);
|
|
822
1114
|
default:
|
|
823
1115
|
const parsedBody = parsedOutput.body;
|
|
824
1116
|
return throwDefaultError({
|
|
@@ -928,6 +1220,25 @@ const se_IdMappingTechniques = (input, context) => {
|
|
|
928
1220
|
providerProperties: (_) => se_ProviderProperties(_, context),
|
|
929
1221
|
});
|
|
930
1222
|
};
|
|
1223
|
+
const se_IdNamespaceIdMappingWorkflowProperties = (input, context) => {
|
|
1224
|
+
return take(input, {
|
|
1225
|
+
idMappingType: [],
|
|
1226
|
+
providerProperties: (_) => se_NamespaceProviderProperties(_, context),
|
|
1227
|
+
});
|
|
1228
|
+
};
|
|
1229
|
+
const se_IdNamespaceIdMappingWorkflowPropertiesList = (input, context) => {
|
|
1230
|
+
return input
|
|
1231
|
+
.filter((e) => e != null)
|
|
1232
|
+
.map((entry) => {
|
|
1233
|
+
return se_IdNamespaceIdMappingWorkflowProperties(entry, context);
|
|
1234
|
+
});
|
|
1235
|
+
};
|
|
1236
|
+
const se_NamespaceProviderProperties = (input, context) => {
|
|
1237
|
+
return take(input, {
|
|
1238
|
+
providerConfiguration: (_) => se_Document(_, context),
|
|
1239
|
+
providerServiceArn: [],
|
|
1240
|
+
});
|
|
1241
|
+
};
|
|
931
1242
|
const se_ProviderProperties = (input, context) => {
|
|
932
1243
|
return take(input, {
|
|
933
1244
|
intermediateSourceConfiguration: _json,
|
|
@@ -967,6 +1278,38 @@ const de_IdMappingWorkflowSummary = (output, context) => {
|
|
|
967
1278
|
workflowName: __expectString,
|
|
968
1279
|
});
|
|
969
1280
|
};
|
|
1281
|
+
const de_IdNamespaceIdMappingWorkflowProperties = (output, context) => {
|
|
1282
|
+
return take(output, {
|
|
1283
|
+
idMappingType: __expectString,
|
|
1284
|
+
providerProperties: (_) => de_NamespaceProviderProperties(_, context),
|
|
1285
|
+
});
|
|
1286
|
+
};
|
|
1287
|
+
const de_IdNamespaceIdMappingWorkflowPropertiesList = (output, context) => {
|
|
1288
|
+
const retVal = (output || [])
|
|
1289
|
+
.filter((e) => e != null)
|
|
1290
|
+
.map((entry) => {
|
|
1291
|
+
return de_IdNamespaceIdMappingWorkflowProperties(entry, context);
|
|
1292
|
+
});
|
|
1293
|
+
return retVal;
|
|
1294
|
+
};
|
|
1295
|
+
const de_IdNamespaceList = (output, context) => {
|
|
1296
|
+
const retVal = (output || [])
|
|
1297
|
+
.filter((e) => e != null)
|
|
1298
|
+
.map((entry) => {
|
|
1299
|
+
return de_IdNamespaceSummary(entry, context);
|
|
1300
|
+
});
|
|
1301
|
+
return retVal;
|
|
1302
|
+
};
|
|
1303
|
+
const de_IdNamespaceSummary = (output, context) => {
|
|
1304
|
+
return take(output, {
|
|
1305
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1306
|
+
description: __expectString,
|
|
1307
|
+
idNamespaceArn: __expectString,
|
|
1308
|
+
idNamespaceName: __expectString,
|
|
1309
|
+
type: __expectString,
|
|
1310
|
+
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1311
|
+
});
|
|
1312
|
+
};
|
|
970
1313
|
const de_JobList = (output, context) => {
|
|
971
1314
|
const retVal = (output || [])
|
|
972
1315
|
.filter((e) => e != null)
|
|
@@ -1000,6 +1343,19 @@ const de_MatchingWorkflowSummary = (output, context) => {
|
|
|
1000
1343
|
workflowName: __expectString,
|
|
1001
1344
|
});
|
|
1002
1345
|
};
|
|
1346
|
+
const de_NamespaceProviderProperties = (output, context) => {
|
|
1347
|
+
return take(output, {
|
|
1348
|
+
providerConfiguration: (_) => de_Document(_, context),
|
|
1349
|
+
providerServiceArn: __expectString,
|
|
1350
|
+
});
|
|
1351
|
+
};
|
|
1352
|
+
const de_ProviderIdNameSpaceConfiguration = (output, context) => {
|
|
1353
|
+
return take(output, {
|
|
1354
|
+
description: __expectString,
|
|
1355
|
+
providerSourceConfigurationDefinition: (_) => de_Document(_, context),
|
|
1356
|
+
providerTargetConfigurationDefinition: (_) => de_Document(_, context),
|
|
1357
|
+
});
|
|
1358
|
+
};
|
|
1003
1359
|
const de_ProviderProperties = (output, context) => {
|
|
1004
1360
|
return take(output, {
|
|
1005
1361
|
intermediateSourceConfiguration: _json,
|