@aws-sdk/client-entityresolution 3.476.0 → 3.478.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist-cjs/pagination/ListIdMappingJobsPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListIdMappingWorkflowsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListMatchingJobsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListMatchingWorkflowsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListProviderServicesPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListSchemaMappingsPaginator.js +2 -24
  7. package/dist-cjs/protocols/Aws_restJson1.js +151 -346
  8. package/dist-es/pagination/ListIdMappingJobsPaginator.js +2 -23
  9. package/dist-es/pagination/ListIdMappingWorkflowsPaginator.js +2 -23
  10. package/dist-es/pagination/ListMatchingJobsPaginator.js +2 -23
  11. package/dist-es/pagination/ListMatchingWorkflowsPaginator.js +2 -23
  12. package/dist-es/pagination/ListProviderServicesPaginator.js +2 -23
  13. package/dist-es/pagination/ListSchemaMappingsPaginator.js +2 -23
  14. package/dist-es/protocols/Aws_restJson1.js +152 -347
  15. package/dist-types/pagination/ListIdMappingJobsPaginator.d.ts +1 -1
  16. package/dist-types/pagination/ListIdMappingWorkflowsPaginator.d.ts +1 -1
  17. package/dist-types/pagination/ListMatchingJobsPaginator.d.ts +1 -1
  18. package/dist-types/pagination/ListMatchingWorkflowsPaginator.d.ts +1 -1
  19. package/dist-types/pagination/ListProviderServicesPaginator.d.ts +1 -1
  20. package/dist-types/pagination/ListSchemaMappingsPaginator.d.ts +1 -1
  21. package/dist-types/ts3.4/pagination/ListIdMappingJobsPaginator.d.ts +3 -3
  22. package/dist-types/ts3.4/pagination/ListIdMappingWorkflowsPaginator.d.ts +3 -3
  23. package/dist-types/ts3.4/pagination/ListMatchingJobsPaginator.d.ts +3 -3
  24. package/dist-types/ts3.4/pagination/ListMatchingWorkflowsPaginator.d.ts +3 -3
  25. package/dist-types/ts3.4/pagination/ListProviderServicesPaginator.d.ts +3 -3
  26. package/dist-types/ts3.4/pagination/ListSchemaMappingsPaginator.d.ts +3 -3
  27. package/package.json +7 -6
@@ -1,14 +1,14 @@
1
1
  import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
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, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
2
+ import { requestBuilder as rb } from "@smithy/core";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, 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
6
  export const se_CreateIdMappingWorkflowCommand = async (input, context) => {
7
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
+ const b = rb(input, context);
8
8
  const headers = {
9
9
  "content-type": "application/json",
10
10
  };
11
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/idmappingworkflows";
11
+ b.bp("/idmappingworkflows");
12
12
  let body;
13
13
  body = JSON.stringify(take(input, {
14
14
  description: [],
@@ -19,22 +19,15 @@ export const se_CreateIdMappingWorkflowCommand = async (input, context) => {
19
19
  tags: (_) => _json(_),
20
20
  workflowName: [],
21
21
  }));
22
- return new __HttpRequest({
23
- protocol,
24
- hostname,
25
- port,
26
- method: "POST",
27
- headers,
28
- path: resolvedPath,
29
- body,
30
- });
22
+ b.m("POST").h(headers).b(body);
23
+ return b.build();
31
24
  };
32
25
  export const se_CreateMatchingWorkflowCommand = async (input, context) => {
33
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
26
+ const b = rb(input, context);
34
27
  const headers = {
35
28
  "content-type": "application/json",
36
29
  };
37
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows";
30
+ b.bp("/matchingworkflows");
38
31
  let body;
39
32
  body = JSON.stringify(take(input, {
40
33
  description: [],
@@ -46,22 +39,15 @@ export const se_CreateMatchingWorkflowCommand = async (input, context) => {
46
39
  tags: (_) => _json(_),
47
40
  workflowName: [],
48
41
  }));
49
- return new __HttpRequest({
50
- protocol,
51
- hostname,
52
- port,
53
- method: "POST",
54
- headers,
55
- path: resolvedPath,
56
- body,
57
- });
42
+ b.m("POST").h(headers).b(body);
43
+ return b.build();
58
44
  };
59
45
  export const se_CreateSchemaMappingCommand = async (input, context) => {
60
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
46
+ const b = rb(input, context);
61
47
  const headers = {
62
48
  "content-type": "application/json",
63
49
  };
64
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schemas";
50
+ b.bp("/schemas");
65
51
  let body;
66
52
  body = JSON.stringify(take(input, {
67
53
  description: [],
@@ -69,409 +55,245 @@ export const se_CreateSchemaMappingCommand = async (input, context) => {
69
55
  schemaName: [],
70
56
  tags: (_) => _json(_),
71
57
  }));
72
- return new __HttpRequest({
73
- protocol,
74
- hostname,
75
- port,
76
- method: "POST",
77
- headers,
78
- path: resolvedPath,
79
- body,
80
- });
58
+ b.m("POST").h(headers).b(body);
59
+ return b.build();
81
60
  };
82
61
  export const se_DeleteIdMappingWorkflowCommand = async (input, context) => {
83
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
62
+ const b = rb(input, context);
84
63
  const headers = {};
85
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/idmappingworkflows/{workflowName}";
86
- resolvedPath = __resolvedPath(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
64
+ b.bp("/idmappingworkflows/{workflowName}");
65
+ b.p("workflowName", () => input.workflowName, "{workflowName}", false);
87
66
  let body;
88
- return new __HttpRequest({
89
- protocol,
90
- hostname,
91
- port,
92
- method: "DELETE",
93
- headers,
94
- path: resolvedPath,
95
- body,
96
- });
67
+ b.m("DELETE").h(headers).b(body);
68
+ return b.build();
97
69
  };
98
70
  export const se_DeleteMatchingWorkflowCommand = async (input, context) => {
99
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
71
+ const b = rb(input, context);
100
72
  const headers = {};
101
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows/{workflowName}";
102
- resolvedPath = __resolvedPath(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
73
+ b.bp("/matchingworkflows/{workflowName}");
74
+ b.p("workflowName", () => input.workflowName, "{workflowName}", false);
103
75
  let body;
104
- return new __HttpRequest({
105
- protocol,
106
- hostname,
107
- port,
108
- method: "DELETE",
109
- headers,
110
- path: resolvedPath,
111
- body,
112
- });
76
+ b.m("DELETE").h(headers).b(body);
77
+ return b.build();
113
78
  };
114
79
  export const se_DeleteSchemaMappingCommand = async (input, context) => {
115
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
80
+ const b = rb(input, context);
116
81
  const headers = {};
117
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schemas/{schemaName}";
118
- resolvedPath = __resolvedPath(resolvedPath, input, "schemaName", () => input.schemaName, "{schemaName}", false);
82
+ b.bp("/schemas/{schemaName}");
83
+ b.p("schemaName", () => input.schemaName, "{schemaName}", false);
119
84
  let body;
120
- return new __HttpRequest({
121
- protocol,
122
- hostname,
123
- port,
124
- method: "DELETE",
125
- headers,
126
- path: resolvedPath,
127
- body,
128
- });
85
+ b.m("DELETE").h(headers).b(body);
86
+ return b.build();
129
87
  };
130
88
  export const se_GetIdMappingJobCommand = async (input, context) => {
131
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
89
+ const b = rb(input, context);
132
90
  const headers = {};
133
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
134
- "/idmappingworkflows/{workflowName}/jobs/{jobId}";
135
- resolvedPath = __resolvedPath(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
136
- resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
91
+ b.bp("/idmappingworkflows/{workflowName}/jobs/{jobId}");
92
+ b.p("workflowName", () => input.workflowName, "{workflowName}", false);
93
+ b.p("jobId", () => input.jobId, "{jobId}", false);
137
94
  let body;
138
- return new __HttpRequest({
139
- protocol,
140
- hostname,
141
- port,
142
- method: "GET",
143
- headers,
144
- path: resolvedPath,
145
- body,
146
- });
95
+ b.m("GET").h(headers).b(body);
96
+ return b.build();
147
97
  };
148
98
  export const se_GetIdMappingWorkflowCommand = async (input, context) => {
149
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
99
+ const b = rb(input, context);
150
100
  const headers = {};
151
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/idmappingworkflows/{workflowName}";
152
- resolvedPath = __resolvedPath(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
101
+ b.bp("/idmappingworkflows/{workflowName}");
102
+ b.p("workflowName", () => input.workflowName, "{workflowName}", false);
153
103
  let body;
154
- return new __HttpRequest({
155
- protocol,
156
- hostname,
157
- port,
158
- method: "GET",
159
- headers,
160
- path: resolvedPath,
161
- body,
162
- });
104
+ b.m("GET").h(headers).b(body);
105
+ return b.build();
163
106
  };
164
107
  export const se_GetMatchIdCommand = async (input, context) => {
165
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
108
+ const b = rb(input, context);
166
109
  const headers = {
167
110
  "content-type": "application/json",
168
111
  };
169
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows/{workflowName}/matches";
170
- resolvedPath = __resolvedPath(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
112
+ b.bp("/matchingworkflows/{workflowName}/matches");
113
+ b.p("workflowName", () => input.workflowName, "{workflowName}", false);
171
114
  let body;
172
115
  body = JSON.stringify(take(input, {
173
116
  record: (_) => _json(_),
174
117
  }));
175
- return new __HttpRequest({
176
- protocol,
177
- hostname,
178
- port,
179
- method: "POST",
180
- headers,
181
- path: resolvedPath,
182
- body,
183
- });
118
+ b.m("POST").h(headers).b(body);
119
+ return b.build();
184
120
  };
185
121
  export const se_GetMatchingJobCommand = async (input, context) => {
186
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
122
+ const b = rb(input, context);
187
123
  const headers = {};
188
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
189
- "/matchingworkflows/{workflowName}/jobs/{jobId}";
190
- resolvedPath = __resolvedPath(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
191
- resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
124
+ b.bp("/matchingworkflows/{workflowName}/jobs/{jobId}");
125
+ b.p("workflowName", () => input.workflowName, "{workflowName}", false);
126
+ b.p("jobId", () => input.jobId, "{jobId}", false);
192
127
  let body;
193
- return new __HttpRequest({
194
- protocol,
195
- hostname,
196
- port,
197
- method: "GET",
198
- headers,
199
- path: resolvedPath,
200
- body,
201
- });
128
+ b.m("GET").h(headers).b(body);
129
+ return b.build();
202
130
  };
203
131
  export const se_GetMatchingWorkflowCommand = async (input, context) => {
204
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
132
+ const b = rb(input, context);
205
133
  const headers = {};
206
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows/{workflowName}";
207
- resolvedPath = __resolvedPath(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
134
+ b.bp("/matchingworkflows/{workflowName}");
135
+ b.p("workflowName", () => input.workflowName, "{workflowName}", false);
208
136
  let body;
209
- return new __HttpRequest({
210
- protocol,
211
- hostname,
212
- port,
213
- method: "GET",
214
- headers,
215
- path: resolvedPath,
216
- body,
217
- });
137
+ b.m("GET").h(headers).b(body);
138
+ return b.build();
218
139
  };
219
140
  export const se_GetProviderServiceCommand = async (input, context) => {
220
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
141
+ const b = rb(input, context);
221
142
  const headers = {};
222
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
223
- "/providerservices/{providerName}/{providerServiceName}";
224
- resolvedPath = __resolvedPath(resolvedPath, input, "providerName", () => input.providerName, "{providerName}", false);
225
- resolvedPath = __resolvedPath(resolvedPath, input, "providerServiceName", () => input.providerServiceName, "{providerServiceName}", false);
143
+ b.bp("/providerservices/{providerName}/{providerServiceName}");
144
+ b.p("providerName", () => input.providerName, "{providerName}", false);
145
+ b.p("providerServiceName", () => input.providerServiceName, "{providerServiceName}", false);
226
146
  let body;
227
- return new __HttpRequest({
228
- protocol,
229
- hostname,
230
- port,
231
- method: "GET",
232
- headers,
233
- path: resolvedPath,
234
- body,
235
- });
147
+ b.m("GET").h(headers).b(body);
148
+ return b.build();
236
149
  };
237
150
  export const se_GetSchemaMappingCommand = async (input, context) => {
238
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
151
+ const b = rb(input, context);
239
152
  const headers = {};
240
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schemas/{schemaName}";
241
- resolvedPath = __resolvedPath(resolvedPath, input, "schemaName", () => input.schemaName, "{schemaName}", false);
153
+ b.bp("/schemas/{schemaName}");
154
+ b.p("schemaName", () => input.schemaName, "{schemaName}", false);
242
155
  let body;
243
- return new __HttpRequest({
244
- protocol,
245
- hostname,
246
- port,
247
- method: "GET",
248
- headers,
249
- path: resolvedPath,
250
- body,
251
- });
156
+ b.m("GET").h(headers).b(body);
157
+ return b.build();
252
158
  };
253
159
  export const se_ListIdMappingJobsCommand = async (input, context) => {
254
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
160
+ const b = rb(input, context);
255
161
  const headers = {};
256
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/idmappingworkflows/{workflowName}/jobs";
257
- resolvedPath = __resolvedPath(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
162
+ b.bp("/idmappingworkflows/{workflowName}/jobs");
163
+ b.p("workflowName", () => input.workflowName, "{workflowName}", false);
258
164
  const query = map({
259
- nextToken: [, input.nextToken],
260
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
165
+ [_nT]: [, input[_nT]],
166
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
261
167
  });
262
168
  let body;
263
- return new __HttpRequest({
264
- protocol,
265
- hostname,
266
- port,
267
- method: "GET",
268
- headers,
269
- path: resolvedPath,
270
- query,
271
- body,
272
- });
169
+ b.m("GET").h(headers).q(query).b(body);
170
+ return b.build();
273
171
  };
274
172
  export const se_ListIdMappingWorkflowsCommand = async (input, context) => {
275
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
173
+ const b = rb(input, context);
276
174
  const headers = {};
277
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/idmappingworkflows";
175
+ b.bp("/idmappingworkflows");
278
176
  const query = map({
279
- nextToken: [, input.nextToken],
280
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
177
+ [_nT]: [, input[_nT]],
178
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
281
179
  });
282
180
  let body;
283
- return new __HttpRequest({
284
- protocol,
285
- hostname,
286
- port,
287
- method: "GET",
288
- headers,
289
- path: resolvedPath,
290
- query,
291
- body,
292
- });
181
+ b.m("GET").h(headers).q(query).b(body);
182
+ return b.build();
293
183
  };
294
184
  export const se_ListMatchingJobsCommand = async (input, context) => {
295
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
185
+ const b = rb(input, context);
296
186
  const headers = {};
297
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows/{workflowName}/jobs";
298
- resolvedPath = __resolvedPath(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
187
+ b.bp("/matchingworkflows/{workflowName}/jobs");
188
+ b.p("workflowName", () => input.workflowName, "{workflowName}", false);
299
189
  const query = map({
300
- nextToken: [, input.nextToken],
301
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
190
+ [_nT]: [, input[_nT]],
191
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
302
192
  });
303
193
  let body;
304
- return new __HttpRequest({
305
- protocol,
306
- hostname,
307
- port,
308
- method: "GET",
309
- headers,
310
- path: resolvedPath,
311
- query,
312
- body,
313
- });
194
+ b.m("GET").h(headers).q(query).b(body);
195
+ return b.build();
314
196
  };
315
197
  export const se_ListMatchingWorkflowsCommand = async (input, context) => {
316
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
198
+ const b = rb(input, context);
317
199
  const headers = {};
318
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows";
200
+ b.bp("/matchingworkflows");
319
201
  const query = map({
320
- nextToken: [, input.nextToken],
321
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
202
+ [_nT]: [, input[_nT]],
203
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
322
204
  });
323
205
  let body;
324
- return new __HttpRequest({
325
- protocol,
326
- hostname,
327
- port,
328
- method: "GET",
329
- headers,
330
- path: resolvedPath,
331
- query,
332
- body,
333
- });
206
+ b.m("GET").h(headers).q(query).b(body);
207
+ return b.build();
334
208
  };
335
209
  export const se_ListProviderServicesCommand = async (input, context) => {
336
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
210
+ const b = rb(input, context);
337
211
  const headers = {};
338
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/providerservices";
212
+ b.bp("/providerservices");
339
213
  const query = map({
340
- nextToken: [, input.nextToken],
341
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
342
- providerName: [, input.providerName],
214
+ [_nT]: [, input[_nT]],
215
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
216
+ [_pN]: [, input[_pN]],
343
217
  });
344
218
  let body;
345
- return new __HttpRequest({
346
- protocol,
347
- hostname,
348
- port,
349
- method: "GET",
350
- headers,
351
- path: resolvedPath,
352
- query,
353
- body,
354
- });
219
+ b.m("GET").h(headers).q(query).b(body);
220
+ return b.build();
355
221
  };
356
222
  export const se_ListSchemaMappingsCommand = async (input, context) => {
357
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
223
+ const b = rb(input, context);
358
224
  const headers = {};
359
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schemas";
225
+ b.bp("/schemas");
360
226
  const query = map({
361
- nextToken: [, input.nextToken],
362
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
227
+ [_nT]: [, input[_nT]],
228
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
363
229
  });
364
230
  let body;
365
- return new __HttpRequest({
366
- protocol,
367
- hostname,
368
- port,
369
- method: "GET",
370
- headers,
371
- path: resolvedPath,
372
- query,
373
- body,
374
- });
231
+ b.m("GET").h(headers).q(query).b(body);
232
+ return b.build();
375
233
  };
376
234
  export const se_ListTagsForResourceCommand = async (input, context) => {
377
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
235
+ const b = rb(input, context);
378
236
  const headers = {};
379
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
380
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
237
+ b.bp("/tags/{resourceArn}");
238
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
381
239
  let body;
382
- return new __HttpRequest({
383
- protocol,
384
- hostname,
385
- port,
386
- method: "GET",
387
- headers,
388
- path: resolvedPath,
389
- body,
390
- });
240
+ b.m("GET").h(headers).b(body);
241
+ return b.build();
391
242
  };
392
243
  export const se_StartIdMappingJobCommand = async (input, context) => {
393
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
244
+ const b = rb(input, context);
394
245
  const headers = {};
395
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/idmappingworkflows/{workflowName}/jobs";
396
- resolvedPath = __resolvedPath(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
246
+ b.bp("/idmappingworkflows/{workflowName}/jobs");
247
+ b.p("workflowName", () => input.workflowName, "{workflowName}", false);
397
248
  let body;
398
- return new __HttpRequest({
399
- protocol,
400
- hostname,
401
- port,
402
- method: "POST",
403
- headers,
404
- path: resolvedPath,
405
- body,
406
- });
249
+ b.m("POST").h(headers).b(body);
250
+ return b.build();
407
251
  };
408
252
  export const se_StartMatchingJobCommand = async (input, context) => {
409
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
253
+ const b = rb(input, context);
410
254
  const headers = {};
411
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows/{workflowName}/jobs";
412
- resolvedPath = __resolvedPath(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
255
+ b.bp("/matchingworkflows/{workflowName}/jobs");
256
+ b.p("workflowName", () => input.workflowName, "{workflowName}", false);
413
257
  let body;
414
- return new __HttpRequest({
415
- protocol,
416
- hostname,
417
- port,
418
- method: "POST",
419
- headers,
420
- path: resolvedPath,
421
- body,
422
- });
258
+ b.m("POST").h(headers).b(body);
259
+ return b.build();
423
260
  };
424
261
  export const se_TagResourceCommand = async (input, context) => {
425
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
262
+ const b = rb(input, context);
426
263
  const headers = {
427
264
  "content-type": "application/json",
428
265
  };
429
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
430
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
266
+ b.bp("/tags/{resourceArn}");
267
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
431
268
  let body;
432
269
  body = JSON.stringify(take(input, {
433
270
  tags: (_) => _json(_),
434
271
  }));
435
- return new __HttpRequest({
436
- protocol,
437
- hostname,
438
- port,
439
- method: "POST",
440
- headers,
441
- path: resolvedPath,
442
- body,
443
- });
272
+ b.m("POST").h(headers).b(body);
273
+ return b.build();
444
274
  };
445
275
  export const se_UntagResourceCommand = async (input, context) => {
446
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
276
+ const b = rb(input, context);
447
277
  const headers = {};
448
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
449
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
278
+ b.bp("/tags/{resourceArn}");
279
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
450
280
  const query = map({
451
- tagKeys: [
281
+ [_tK]: [
452
282
  __expectNonNull(input.tagKeys, `tagKeys`) != null,
453
- () => (input.tagKeys || []).map((_entry) => _entry),
283
+ () => (input[_tK] || []).map((_entry) => _entry),
454
284
  ],
455
285
  });
456
286
  let body;
457
- return new __HttpRequest({
458
- protocol,
459
- hostname,
460
- port,
461
- method: "DELETE",
462
- headers,
463
- path: resolvedPath,
464
- query,
465
- body,
466
- });
287
+ b.m("DELETE").h(headers).q(query).b(body);
288
+ return b.build();
467
289
  };
468
290
  export const se_UpdateIdMappingWorkflowCommand = async (input, context) => {
469
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
291
+ const b = rb(input, context);
470
292
  const headers = {
471
293
  "content-type": "application/json",
472
294
  };
473
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/idmappingworkflows/{workflowName}";
474
- resolvedPath = __resolvedPath(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
295
+ b.bp("/idmappingworkflows/{workflowName}");
296
+ b.p("workflowName", () => input.workflowName, "{workflowName}", false);
475
297
  let body;
476
298
  body = JSON.stringify(take(input, {
477
299
  description: [],
@@ -480,23 +302,16 @@ export const se_UpdateIdMappingWorkflowCommand = async (input, context) => {
480
302
  outputSourceConfig: (_) => _json(_),
481
303
  roleArn: [],
482
304
  }));
483
- return new __HttpRequest({
484
- protocol,
485
- hostname,
486
- port,
487
- method: "PUT",
488
- headers,
489
- path: resolvedPath,
490
- body,
491
- });
305
+ b.m("PUT").h(headers).b(body);
306
+ return b.build();
492
307
  };
493
308
  export const se_UpdateMatchingWorkflowCommand = async (input, context) => {
494
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
309
+ const b = rb(input, context);
495
310
  const headers = {
496
311
  "content-type": "application/json",
497
312
  };
498
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/matchingworkflows/{workflowName}";
499
- resolvedPath = __resolvedPath(resolvedPath, input, "workflowName", () => input.workflowName, "{workflowName}", false);
313
+ b.bp("/matchingworkflows/{workflowName}");
314
+ b.p("workflowName", () => input.workflowName, "{workflowName}", false);
500
315
  let body;
501
316
  body = JSON.stringify(take(input, {
502
317
  description: [],
@@ -506,37 +321,23 @@ export const se_UpdateMatchingWorkflowCommand = async (input, context) => {
506
321
  resolutionTechniques: (_) => se_ResolutionTechniques(_, context),
507
322
  roleArn: [],
508
323
  }));
509
- return new __HttpRequest({
510
- protocol,
511
- hostname,
512
- port,
513
- method: "PUT",
514
- headers,
515
- path: resolvedPath,
516
- body,
517
- });
324
+ b.m("PUT").h(headers).b(body);
325
+ return b.build();
518
326
  };
519
327
  export const se_UpdateSchemaMappingCommand = async (input, context) => {
520
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
328
+ const b = rb(input, context);
521
329
  const headers = {
522
330
  "content-type": "application/json",
523
331
  };
524
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schemas/{schemaName}";
525
- resolvedPath = __resolvedPath(resolvedPath, input, "schemaName", () => input.schemaName, "{schemaName}", false);
332
+ b.bp("/schemas/{schemaName}");
333
+ b.p("schemaName", () => input.schemaName, "{schemaName}", false);
526
334
  let body;
527
335
  body = JSON.stringify(take(input, {
528
336
  description: [],
529
337
  mappedInputFields: (_) => _json(_),
530
338
  }));
531
- return new __HttpRequest({
532
- protocol,
533
- hostname,
534
- port,
535
- method: "PUT",
536
- headers,
537
- path: resolvedPath,
538
- body,
539
- });
339
+ b.m("PUT").h(headers).b(body);
340
+ return b.build();
540
341
  };
541
342
  export const de_CreateIdMappingWorkflowCommand = async (output, context) => {
542
343
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -2030,6 +1831,10 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
2030
1831
  value !== "" &&
2031
1832
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
2032
1833
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1834
+ const _mR = "maxResults";
1835
+ const _nT = "nextToken";
1836
+ const _pN = "providerName";
1837
+ const _tK = "tagKeys";
2033
1838
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2034
1839
  if (encoded.length) {
2035
1840
  return JSON.parse(encoded);