@aws-sdk/client-entityresolution 3.474.0 → 3.477.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.
@@ -3,16 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
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
4
  exports.de_UpdateSchemaMappingCommand = exports.de_UpdateMatchingWorkflowCommand = exports.de_UpdateIdMappingWorkflowCommand = exports.de_UntagResourceCommand = void 0;
5
5
  const core_1 = require("@aws-sdk/core");
6
- const protocol_http_1 = require("@smithy/protocol-http");
6
+ const core_2 = require("@smithy/core");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
8
  const EntityResolutionServiceException_1 = require("../models/EntityResolutionServiceException");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const se_CreateIdMappingWorkflowCommand = async (input, context) => {
11
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
11
+ const b = (0, core_2.requestBuilder)(input, context);
12
12
  const headers = {
13
13
  "content-type": "application/json",
14
14
  };
15
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/idmappingworkflows";
15
+ b.bp("/idmappingworkflows");
16
16
  let body;
17
17
  body = JSON.stringify((0, smithy_client_1.take)(input, {
18
18
  description: [],
@@ -23,23 +23,16 @@ const se_CreateIdMappingWorkflowCommand = async (input, context) => {
23
23
  tags: (_) => (0, smithy_client_1._json)(_),
24
24
  workflowName: [],
25
25
  }));
26
- return new protocol_http_1.HttpRequest({
27
- protocol,
28
- hostname,
29
- port,
30
- method: "POST",
31
- headers,
32
- path: resolvedPath,
33
- body,
34
- });
26
+ b.m("POST").h(headers).b(body);
27
+ return b.build();
35
28
  };
36
29
  exports.se_CreateIdMappingWorkflowCommand = se_CreateIdMappingWorkflowCommand;
37
30
  const se_CreateMatchingWorkflowCommand = async (input, context) => {
38
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
31
+ const b = (0, core_2.requestBuilder)(input, context);
39
32
  const headers = {
40
33
  "content-type": "application/json",
41
34
  };
42
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows";
35
+ b.bp("/matchingworkflows");
43
36
  let body;
44
37
  body = JSON.stringify((0, smithy_client_1.take)(input, {
45
38
  description: [],
@@ -51,23 +44,16 @@ const se_CreateMatchingWorkflowCommand = async (input, context) => {
51
44
  tags: (_) => (0, smithy_client_1._json)(_),
52
45
  workflowName: [],
53
46
  }));
54
- return new protocol_http_1.HttpRequest({
55
- protocol,
56
- hostname,
57
- port,
58
- method: "POST",
59
- headers,
60
- path: resolvedPath,
61
- body,
62
- });
47
+ b.m("POST").h(headers).b(body);
48
+ return b.build();
63
49
  };
64
50
  exports.se_CreateMatchingWorkflowCommand = se_CreateMatchingWorkflowCommand;
65
51
  const se_CreateSchemaMappingCommand = async (input, context) => {
66
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
52
+ const b = (0, core_2.requestBuilder)(input, context);
67
53
  const headers = {
68
54
  "content-type": "application/json",
69
55
  };
70
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schemas";
56
+ b.bp("/schemas");
71
57
  let body;
72
58
  body = JSON.stringify((0, smithy_client_1.take)(input, {
73
59
  description: [],
@@ -75,431 +61,267 @@ const se_CreateSchemaMappingCommand = async (input, context) => {
75
61
  schemaName: [],
76
62
  tags: (_) => (0, smithy_client_1._json)(_),
77
63
  }));
78
- return new protocol_http_1.HttpRequest({
79
- protocol,
80
- hostname,
81
- port,
82
- method: "POST",
83
- headers,
84
- path: resolvedPath,
85
- body,
86
- });
64
+ b.m("POST").h(headers).b(body);
65
+ return b.build();
87
66
  };
88
67
  exports.se_CreateSchemaMappingCommand = se_CreateSchemaMappingCommand;
89
68
  const se_DeleteIdMappingWorkflowCommand = async (input, context) => {
90
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
69
+ const b = (0, core_2.requestBuilder)(input, context);
91
70
  const headers = {};
92
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/idmappingworkflows/{workflowName}";
93
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
71
+ b.bp("/idmappingworkflows/{workflowName}");
72
+ b.p("workflowName", () => input.workflowName, "{workflowName}", false);
94
73
  let body;
95
- return new protocol_http_1.HttpRequest({
96
- protocol,
97
- hostname,
98
- port,
99
- method: "DELETE",
100
- headers,
101
- path: resolvedPath,
102
- body,
103
- });
74
+ b.m("DELETE").h(headers).b(body);
75
+ return b.build();
104
76
  };
105
77
  exports.se_DeleteIdMappingWorkflowCommand = se_DeleteIdMappingWorkflowCommand;
106
78
  const se_DeleteMatchingWorkflowCommand = async (input, context) => {
107
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
79
+ const b = (0, core_2.requestBuilder)(input, context);
108
80
  const headers = {};
109
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows/{workflowName}";
110
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
81
+ b.bp("/matchingworkflows/{workflowName}");
82
+ b.p("workflowName", () => input.workflowName, "{workflowName}", false);
111
83
  let body;
112
- return new protocol_http_1.HttpRequest({
113
- protocol,
114
- hostname,
115
- port,
116
- method: "DELETE",
117
- headers,
118
- path: resolvedPath,
119
- body,
120
- });
84
+ b.m("DELETE").h(headers).b(body);
85
+ return b.build();
121
86
  };
122
87
  exports.se_DeleteMatchingWorkflowCommand = se_DeleteMatchingWorkflowCommand;
123
88
  const se_DeleteSchemaMappingCommand = async (input, context) => {
124
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
89
+ const b = (0, core_2.requestBuilder)(input, context);
125
90
  const headers = {};
126
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schemas/{schemaName}";
127
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "schemaName", () => input.schemaName, "{schemaName}", false);
91
+ b.bp("/schemas/{schemaName}");
92
+ b.p("schemaName", () => input.schemaName, "{schemaName}", false);
128
93
  let body;
129
- return new protocol_http_1.HttpRequest({
130
- protocol,
131
- hostname,
132
- port,
133
- method: "DELETE",
134
- headers,
135
- path: resolvedPath,
136
- body,
137
- });
94
+ b.m("DELETE").h(headers).b(body);
95
+ return b.build();
138
96
  };
139
97
  exports.se_DeleteSchemaMappingCommand = se_DeleteSchemaMappingCommand;
140
98
  const se_GetIdMappingJobCommand = async (input, context) => {
141
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
99
+ const b = (0, core_2.requestBuilder)(input, context);
142
100
  const headers = {};
143
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
144
- "/idmappingworkflows/{workflowName}/jobs/{jobId}";
145
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
146
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
101
+ b.bp("/idmappingworkflows/{workflowName}/jobs/{jobId}");
102
+ b.p("workflowName", () => input.workflowName, "{workflowName}", false);
103
+ b.p("jobId", () => input.jobId, "{jobId}", false);
147
104
  let body;
148
- return new protocol_http_1.HttpRequest({
149
- protocol,
150
- hostname,
151
- port,
152
- method: "GET",
153
- headers,
154
- path: resolvedPath,
155
- body,
156
- });
105
+ b.m("GET").h(headers).b(body);
106
+ return b.build();
157
107
  };
158
108
  exports.se_GetIdMappingJobCommand = se_GetIdMappingJobCommand;
159
109
  const se_GetIdMappingWorkflowCommand = async (input, context) => {
160
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
110
+ const b = (0, core_2.requestBuilder)(input, context);
161
111
  const headers = {};
162
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/idmappingworkflows/{workflowName}";
163
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
112
+ b.bp("/idmappingworkflows/{workflowName}");
113
+ b.p("workflowName", () => input.workflowName, "{workflowName}", false);
164
114
  let body;
165
- return new protocol_http_1.HttpRequest({
166
- protocol,
167
- hostname,
168
- port,
169
- method: "GET",
170
- headers,
171
- path: resolvedPath,
172
- body,
173
- });
115
+ b.m("GET").h(headers).b(body);
116
+ return b.build();
174
117
  };
175
118
  exports.se_GetIdMappingWorkflowCommand = se_GetIdMappingWorkflowCommand;
176
119
  const se_GetMatchIdCommand = async (input, context) => {
177
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
120
+ const b = (0, core_2.requestBuilder)(input, context);
178
121
  const headers = {
179
122
  "content-type": "application/json",
180
123
  };
181
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows/{workflowName}/matches";
182
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
124
+ b.bp("/matchingworkflows/{workflowName}/matches");
125
+ b.p("workflowName", () => input.workflowName, "{workflowName}", false);
183
126
  let body;
184
127
  body = JSON.stringify((0, smithy_client_1.take)(input, {
185
128
  record: (_) => (0, smithy_client_1._json)(_),
186
129
  }));
187
- return new protocol_http_1.HttpRequest({
188
- protocol,
189
- hostname,
190
- port,
191
- method: "POST",
192
- headers,
193
- path: resolvedPath,
194
- body,
195
- });
130
+ b.m("POST").h(headers).b(body);
131
+ return b.build();
196
132
  };
197
133
  exports.se_GetMatchIdCommand = se_GetMatchIdCommand;
198
134
  const se_GetMatchingJobCommand = async (input, context) => {
199
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
135
+ const b = (0, core_2.requestBuilder)(input, context);
200
136
  const headers = {};
201
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
202
- "/matchingworkflows/{workflowName}/jobs/{jobId}";
203
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
204
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
137
+ b.bp("/matchingworkflows/{workflowName}/jobs/{jobId}");
138
+ b.p("workflowName", () => input.workflowName, "{workflowName}", false);
139
+ b.p("jobId", () => input.jobId, "{jobId}", false);
205
140
  let body;
206
- return new protocol_http_1.HttpRequest({
207
- protocol,
208
- hostname,
209
- port,
210
- method: "GET",
211
- headers,
212
- path: resolvedPath,
213
- body,
214
- });
141
+ b.m("GET").h(headers).b(body);
142
+ return b.build();
215
143
  };
216
144
  exports.se_GetMatchingJobCommand = se_GetMatchingJobCommand;
217
145
  const se_GetMatchingWorkflowCommand = async (input, context) => {
218
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
146
+ const b = (0, core_2.requestBuilder)(input, context);
219
147
  const headers = {};
220
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows/{workflowName}";
221
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
148
+ b.bp("/matchingworkflows/{workflowName}");
149
+ b.p("workflowName", () => input.workflowName, "{workflowName}", false);
222
150
  let body;
223
- return new protocol_http_1.HttpRequest({
224
- protocol,
225
- hostname,
226
- port,
227
- method: "GET",
228
- headers,
229
- path: resolvedPath,
230
- body,
231
- });
151
+ b.m("GET").h(headers).b(body);
152
+ return b.build();
232
153
  };
233
154
  exports.se_GetMatchingWorkflowCommand = se_GetMatchingWorkflowCommand;
234
155
  const se_GetProviderServiceCommand = async (input, context) => {
235
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
156
+ const b = (0, core_2.requestBuilder)(input, context);
236
157
  const headers = {};
237
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
238
- "/providerservices/{providerName}/{providerServiceName}";
239
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "providerName", () => input.providerName, "{providerName}", false);
240
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "providerServiceName", () => input.providerServiceName, "{providerServiceName}", false);
158
+ b.bp("/providerservices/{providerName}/{providerServiceName}");
159
+ b.p("providerName", () => input.providerName, "{providerName}", false);
160
+ b.p("providerServiceName", () => input.providerServiceName, "{providerServiceName}", false);
241
161
  let body;
242
- return new protocol_http_1.HttpRequest({
243
- protocol,
244
- hostname,
245
- port,
246
- method: "GET",
247
- headers,
248
- path: resolvedPath,
249
- body,
250
- });
162
+ b.m("GET").h(headers).b(body);
163
+ return b.build();
251
164
  };
252
165
  exports.se_GetProviderServiceCommand = se_GetProviderServiceCommand;
253
166
  const se_GetSchemaMappingCommand = async (input, context) => {
254
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
167
+ const b = (0, core_2.requestBuilder)(input, context);
255
168
  const headers = {};
256
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schemas/{schemaName}";
257
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "schemaName", () => input.schemaName, "{schemaName}", false);
169
+ b.bp("/schemas/{schemaName}");
170
+ b.p("schemaName", () => input.schemaName, "{schemaName}", false);
258
171
  let body;
259
- return new protocol_http_1.HttpRequest({
260
- protocol,
261
- hostname,
262
- port,
263
- method: "GET",
264
- headers,
265
- path: resolvedPath,
266
- body,
267
- });
172
+ b.m("GET").h(headers).b(body);
173
+ return b.build();
268
174
  };
269
175
  exports.se_GetSchemaMappingCommand = se_GetSchemaMappingCommand;
270
176
  const se_ListIdMappingJobsCommand = async (input, context) => {
271
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
177
+ const b = (0, core_2.requestBuilder)(input, context);
272
178
  const headers = {};
273
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/idmappingworkflows/{workflowName}/jobs";
274
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
179
+ b.bp("/idmappingworkflows/{workflowName}/jobs");
180
+ b.p("workflowName", () => input.workflowName, "{workflowName}", false);
275
181
  const query = (0, smithy_client_1.map)({
276
- nextToken: [, input.nextToken],
277
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
182
+ [_nT]: [, input[_nT]],
183
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
278
184
  });
279
185
  let body;
280
- return new protocol_http_1.HttpRequest({
281
- protocol,
282
- hostname,
283
- port,
284
- method: "GET",
285
- headers,
286
- path: resolvedPath,
287
- query,
288
- body,
289
- });
186
+ b.m("GET").h(headers).q(query).b(body);
187
+ return b.build();
290
188
  };
291
189
  exports.se_ListIdMappingJobsCommand = se_ListIdMappingJobsCommand;
292
190
  const se_ListIdMappingWorkflowsCommand = async (input, context) => {
293
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
191
+ const b = (0, core_2.requestBuilder)(input, context);
294
192
  const headers = {};
295
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/idmappingworkflows";
193
+ b.bp("/idmappingworkflows");
296
194
  const query = (0, smithy_client_1.map)({
297
- nextToken: [, input.nextToken],
298
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
195
+ [_nT]: [, input[_nT]],
196
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
299
197
  });
300
198
  let body;
301
- return new protocol_http_1.HttpRequest({
302
- protocol,
303
- hostname,
304
- port,
305
- method: "GET",
306
- headers,
307
- path: resolvedPath,
308
- query,
309
- body,
310
- });
199
+ b.m("GET").h(headers).q(query).b(body);
200
+ return b.build();
311
201
  };
312
202
  exports.se_ListIdMappingWorkflowsCommand = se_ListIdMappingWorkflowsCommand;
313
203
  const se_ListMatchingJobsCommand = async (input, context) => {
314
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
204
+ const b = (0, core_2.requestBuilder)(input, context);
315
205
  const headers = {};
316
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows/{workflowName}/jobs";
317
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
206
+ b.bp("/matchingworkflows/{workflowName}/jobs");
207
+ b.p("workflowName", () => input.workflowName, "{workflowName}", false);
318
208
  const query = (0, smithy_client_1.map)({
319
- nextToken: [, input.nextToken],
320
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
209
+ [_nT]: [, input[_nT]],
210
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
321
211
  });
322
212
  let body;
323
- return new protocol_http_1.HttpRequest({
324
- protocol,
325
- hostname,
326
- port,
327
- method: "GET",
328
- headers,
329
- path: resolvedPath,
330
- query,
331
- body,
332
- });
213
+ b.m("GET").h(headers).q(query).b(body);
214
+ return b.build();
333
215
  };
334
216
  exports.se_ListMatchingJobsCommand = se_ListMatchingJobsCommand;
335
217
  const se_ListMatchingWorkflowsCommand = async (input, context) => {
336
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
218
+ const b = (0, core_2.requestBuilder)(input, context);
337
219
  const headers = {};
338
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows";
220
+ b.bp("/matchingworkflows");
339
221
  const query = (0, smithy_client_1.map)({
340
- nextToken: [, input.nextToken],
341
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
222
+ [_nT]: [, input[_nT]],
223
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
342
224
  });
343
225
  let body;
344
- return new protocol_http_1.HttpRequest({
345
- protocol,
346
- hostname,
347
- port,
348
- method: "GET",
349
- headers,
350
- path: resolvedPath,
351
- query,
352
- body,
353
- });
226
+ b.m("GET").h(headers).q(query).b(body);
227
+ return b.build();
354
228
  };
355
229
  exports.se_ListMatchingWorkflowsCommand = se_ListMatchingWorkflowsCommand;
356
230
  const se_ListProviderServicesCommand = async (input, context) => {
357
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
231
+ const b = (0, core_2.requestBuilder)(input, context);
358
232
  const headers = {};
359
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/providerservices";
233
+ b.bp("/providerservices");
360
234
  const query = (0, smithy_client_1.map)({
361
- nextToken: [, input.nextToken],
362
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
363
- providerName: [, input.providerName],
235
+ [_nT]: [, input[_nT]],
236
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
237
+ [_pN]: [, input[_pN]],
364
238
  });
365
239
  let body;
366
- return new protocol_http_1.HttpRequest({
367
- protocol,
368
- hostname,
369
- port,
370
- method: "GET",
371
- headers,
372
- path: resolvedPath,
373
- query,
374
- body,
375
- });
240
+ b.m("GET").h(headers).q(query).b(body);
241
+ return b.build();
376
242
  };
377
243
  exports.se_ListProviderServicesCommand = se_ListProviderServicesCommand;
378
244
  const se_ListSchemaMappingsCommand = async (input, context) => {
379
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
245
+ const b = (0, core_2.requestBuilder)(input, context);
380
246
  const headers = {};
381
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schemas";
247
+ b.bp("/schemas");
382
248
  const query = (0, smithy_client_1.map)({
383
- nextToken: [, input.nextToken],
384
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
249
+ [_nT]: [, input[_nT]],
250
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
385
251
  });
386
252
  let body;
387
- return new protocol_http_1.HttpRequest({
388
- protocol,
389
- hostname,
390
- port,
391
- method: "GET",
392
- headers,
393
- path: resolvedPath,
394
- query,
395
- body,
396
- });
253
+ b.m("GET").h(headers).q(query).b(body);
254
+ return b.build();
397
255
  };
398
256
  exports.se_ListSchemaMappingsCommand = se_ListSchemaMappingsCommand;
399
257
  const se_ListTagsForResourceCommand = async (input, context) => {
400
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
258
+ const b = (0, core_2.requestBuilder)(input, context);
401
259
  const headers = {};
402
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
403
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
260
+ b.bp("/tags/{resourceArn}");
261
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
404
262
  let body;
405
- return new protocol_http_1.HttpRequest({
406
- protocol,
407
- hostname,
408
- port,
409
- method: "GET",
410
- headers,
411
- path: resolvedPath,
412
- body,
413
- });
263
+ b.m("GET").h(headers).b(body);
264
+ return b.build();
414
265
  };
415
266
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
416
267
  const se_StartIdMappingJobCommand = async (input, context) => {
417
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
268
+ const b = (0, core_2.requestBuilder)(input, context);
418
269
  const headers = {};
419
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/idmappingworkflows/{workflowName}/jobs";
420
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
270
+ b.bp("/idmappingworkflows/{workflowName}/jobs");
271
+ b.p("workflowName", () => input.workflowName, "{workflowName}", false);
421
272
  let body;
422
- return new protocol_http_1.HttpRequest({
423
- protocol,
424
- hostname,
425
- port,
426
- method: "POST",
427
- headers,
428
- path: resolvedPath,
429
- body,
430
- });
273
+ b.m("POST").h(headers).b(body);
274
+ return b.build();
431
275
  };
432
276
  exports.se_StartIdMappingJobCommand = se_StartIdMappingJobCommand;
433
277
  const se_StartMatchingJobCommand = async (input, context) => {
434
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
278
+ const b = (0, core_2.requestBuilder)(input, context);
435
279
  const headers = {};
436
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows/{workflowName}/jobs";
437
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
280
+ b.bp("/matchingworkflows/{workflowName}/jobs");
281
+ b.p("workflowName", () => input.workflowName, "{workflowName}", false);
438
282
  let body;
439
- return new protocol_http_1.HttpRequest({
440
- protocol,
441
- hostname,
442
- port,
443
- method: "POST",
444
- headers,
445
- path: resolvedPath,
446
- body,
447
- });
283
+ b.m("POST").h(headers).b(body);
284
+ return b.build();
448
285
  };
449
286
  exports.se_StartMatchingJobCommand = se_StartMatchingJobCommand;
450
287
  const se_TagResourceCommand = async (input, context) => {
451
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
288
+ const b = (0, core_2.requestBuilder)(input, context);
452
289
  const headers = {
453
290
  "content-type": "application/json",
454
291
  };
455
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
456
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
292
+ b.bp("/tags/{resourceArn}");
293
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
457
294
  let body;
458
295
  body = JSON.stringify((0, smithy_client_1.take)(input, {
459
296
  tags: (_) => (0, smithy_client_1._json)(_),
460
297
  }));
461
- return new protocol_http_1.HttpRequest({
462
- protocol,
463
- hostname,
464
- port,
465
- method: "POST",
466
- headers,
467
- path: resolvedPath,
468
- body,
469
- });
298
+ b.m("POST").h(headers).b(body);
299
+ return b.build();
470
300
  };
471
301
  exports.se_TagResourceCommand = se_TagResourceCommand;
472
302
  const se_UntagResourceCommand = async (input, context) => {
473
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
303
+ const b = (0, core_2.requestBuilder)(input, context);
474
304
  const headers = {};
475
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
476
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
305
+ b.bp("/tags/{resourceArn}");
306
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
477
307
  const query = (0, smithy_client_1.map)({
478
- tagKeys: [
308
+ [_tK]: [
479
309
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
480
- () => (input.tagKeys || []).map((_entry) => _entry),
310
+ () => (input[_tK] || []).map((_entry) => _entry),
481
311
  ],
482
312
  });
483
313
  let body;
484
- return new protocol_http_1.HttpRequest({
485
- protocol,
486
- hostname,
487
- port,
488
- method: "DELETE",
489
- headers,
490
- path: resolvedPath,
491
- query,
492
- body,
493
- });
314
+ b.m("DELETE").h(headers).q(query).b(body);
315
+ return b.build();
494
316
  };
495
317
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
496
318
  const se_UpdateIdMappingWorkflowCommand = async (input, context) => {
497
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
319
+ const b = (0, core_2.requestBuilder)(input, context);
498
320
  const headers = {
499
321
  "content-type": "application/json",
500
322
  };
501
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/idmappingworkflows/{workflowName}";
502
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
323
+ b.bp("/idmappingworkflows/{workflowName}");
324
+ b.p("workflowName", () => input.workflowName, "{workflowName}", false);
503
325
  let body;
504
326
  body = JSON.stringify((0, smithy_client_1.take)(input, {
505
327
  description: [],
@@ -508,24 +330,17 @@ const se_UpdateIdMappingWorkflowCommand = async (input, context) => {
508
330
  outputSourceConfig: (_) => (0, smithy_client_1._json)(_),
509
331
  roleArn: [],
510
332
  }));
511
- return new protocol_http_1.HttpRequest({
512
- protocol,
513
- hostname,
514
- port,
515
- method: "PUT",
516
- headers,
517
- path: resolvedPath,
518
- body,
519
- });
333
+ b.m("PUT").h(headers).b(body);
334
+ return b.build();
520
335
  };
521
336
  exports.se_UpdateIdMappingWorkflowCommand = se_UpdateIdMappingWorkflowCommand;
522
337
  const se_UpdateMatchingWorkflowCommand = async (input, context) => {
523
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
338
+ const b = (0, core_2.requestBuilder)(input, context);
524
339
  const headers = {
525
340
  "content-type": "application/json",
526
341
  };
527
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows/{workflowName}";
528
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
342
+ b.bp("/matchingworkflows/{workflowName}");
343
+ b.p("workflowName", () => input.workflowName, "{workflowName}", false);
529
344
  let body;
530
345
  body = JSON.stringify((0, smithy_client_1.take)(input, {
531
346
  description: [],
@@ -535,38 +350,24 @@ const se_UpdateMatchingWorkflowCommand = async (input, context) => {
535
350
  resolutionTechniques: (_) => se_ResolutionTechniques(_, context),
536
351
  roleArn: [],
537
352
  }));
538
- return new protocol_http_1.HttpRequest({
539
- protocol,
540
- hostname,
541
- port,
542
- method: "PUT",
543
- headers,
544
- path: resolvedPath,
545
- body,
546
- });
353
+ b.m("PUT").h(headers).b(body);
354
+ return b.build();
547
355
  };
548
356
  exports.se_UpdateMatchingWorkflowCommand = se_UpdateMatchingWorkflowCommand;
549
357
  const se_UpdateSchemaMappingCommand = async (input, context) => {
550
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
358
+ const b = (0, core_2.requestBuilder)(input, context);
551
359
  const headers = {
552
360
  "content-type": "application/json",
553
361
  };
554
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schemas/{schemaName}";
555
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "schemaName", () => input.schemaName, "{schemaName}", false);
362
+ b.bp("/schemas/{schemaName}");
363
+ b.p("schemaName", () => input.schemaName, "{schemaName}", false);
556
364
  let body;
557
365
  body = JSON.stringify((0, smithy_client_1.take)(input, {
558
366
  description: [],
559
367
  mappedInputFields: (_) => (0, smithy_client_1._json)(_),
560
368
  }));
561
- return new protocol_http_1.HttpRequest({
562
- protocol,
563
- hostname,
564
- port,
565
- method: "PUT",
566
- headers,
567
- path: resolvedPath,
568
- body,
569
- });
369
+ b.m("PUT").h(headers).b(body);
370
+ return b.build();
570
371
  };
571
372
  exports.se_UpdateSchemaMappingCommand = se_UpdateSchemaMappingCommand;
572
373
  const de_CreateIdMappingWorkflowCommand = async (output, context) => {
@@ -2088,6 +1889,10 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
2088
1889
  value !== "" &&
2089
1890
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
2090
1891
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1892
+ const _mR = "maxResults";
1893
+ const _nT = "nextToken";
1894
+ const _pN = "providerName";
1895
+ const _tK = "tagKeys";
2091
1896
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2092
1897
  if (encoded.length) {
2093
1898
  return JSON.parse(encoded);