@aws-sdk/client-medical-imaging 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.
@@ -1,17 +1,17 @@
1
- import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, 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";
1
+ import { requestBuilder as rb } from "@smithy/core";
2
+ import { isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, 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";
3
4
  import { v4 as generateIdempotencyToken } from "uuid";
4
5
  import { MedicalImagingServiceException as __BaseException } from "../models/MedicalImagingServiceException";
5
6
  import { AccessDeniedException, ConflictException, InternalServerException, MetadataUpdates, ResourceNotFoundException, SearchByAttributeValue, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
6
7
  export const se_CopyImageSetCommand = async (input, context) => {
7
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
8
+ const b = rb(input, context);
8
9
  const headers = {
9
10
  "content-type": "application/json",
10
11
  };
11
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
12
- "/datastore/{datastoreId}/imageSet/{sourceImageSetId}/copyImageSet";
13
- resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId, "{datastoreId}", false);
14
- resolvedPath = __resolvedPath(resolvedPath, input, "sourceImageSetId", () => input.sourceImageSetId, "{sourceImageSetId}", false);
12
+ b.bp("/datastore/{datastoreId}/imageSet/{sourceImageSetId}/copyImageSet");
13
+ b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
14
+ b.p("sourceImageSetId", () => input.sourceImageSetId, "{sourceImageSetId}", false);
15
15
  let body;
16
16
  if (input.copyImageSetInformation !== undefined) {
17
17
  body = _json(input.copyImageSetInformation);
@@ -27,22 +27,16 @@ export const se_CopyImageSetCommand = async (input, context) => {
27
27
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
28
28
  }
29
29
  }
30
- return new __HttpRequest({
31
- protocol,
32
- hostname: resolvedHostname,
33
- port,
34
- method: "POST",
35
- headers,
36
- path: resolvedPath,
37
- body,
38
- });
30
+ b.hn(resolvedHostname);
31
+ b.m("POST").h(headers).b(body);
32
+ return b.build();
39
33
  };
40
34
  export const se_CreateDatastoreCommand = async (input, context) => {
41
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
35
+ const b = rb(input, context);
42
36
  const headers = {
43
37
  "content-type": "application/json",
44
38
  };
45
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datastore";
39
+ b.bp("/datastore");
46
40
  let body;
47
41
  body = JSON.stringify(take(input, {
48
42
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -50,39 +44,24 @@ export const se_CreateDatastoreCommand = async (input, context) => {
50
44
  kmsKeyArn: [],
51
45
  tags: (_) => _json(_),
52
46
  }));
53
- return new __HttpRequest({
54
- protocol,
55
- hostname,
56
- port,
57
- method: "POST",
58
- headers,
59
- path: resolvedPath,
60
- body,
61
- });
47
+ b.m("POST").h(headers).b(body);
48
+ return b.build();
62
49
  };
63
50
  export const se_DeleteDatastoreCommand = async (input, context) => {
64
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
51
+ const b = rb(input, context);
65
52
  const headers = {};
66
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datastore/{datastoreId}";
67
- resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId, "{datastoreId}", false);
53
+ b.bp("/datastore/{datastoreId}");
54
+ b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
68
55
  let body;
69
- return new __HttpRequest({
70
- protocol,
71
- hostname,
72
- port,
73
- method: "DELETE",
74
- headers,
75
- path: resolvedPath,
76
- body,
77
- });
56
+ b.m("DELETE").h(headers).b(body);
57
+ return b.build();
78
58
  };
79
59
  export const se_DeleteImageSetCommand = async (input, context) => {
80
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
60
+ const b = rb(input, context);
81
61
  const headers = {};
82
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
83
- "/datastore/{datastoreId}/imageSet/{imageSetId}/deleteImageSet";
84
- resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId, "{datastoreId}", false);
85
- resolvedPath = __resolvedPath(resolvedPath, input, "imageSetId", () => input.imageSetId, "{imageSetId}", false);
62
+ b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/deleteImageSet");
63
+ b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
64
+ b.p("imageSetId", () => input.imageSetId, "{imageSetId}", false);
86
65
  let body;
87
66
  let { hostname: resolvedHostname } = await context.endpoint();
88
67
  if (context.disableHostPrefix !== true) {
@@ -91,59 +70,37 @@ export const se_DeleteImageSetCommand = async (input, context) => {
91
70
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
92
71
  }
93
72
  }
94
- return new __HttpRequest({
95
- protocol,
96
- hostname: resolvedHostname,
97
- port,
98
- method: "POST",
99
- headers,
100
- path: resolvedPath,
101
- body,
102
- });
73
+ b.hn(resolvedHostname);
74
+ b.m("POST").h(headers).b(body);
75
+ return b.build();
103
76
  };
104
77
  export const se_GetDatastoreCommand = async (input, context) => {
105
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
78
+ const b = rb(input, context);
106
79
  const headers = {};
107
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datastore/{datastoreId}";
108
- resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId, "{datastoreId}", false);
80
+ b.bp("/datastore/{datastoreId}");
81
+ b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
109
82
  let body;
110
- return new __HttpRequest({
111
- protocol,
112
- hostname,
113
- port,
114
- method: "GET",
115
- headers,
116
- path: resolvedPath,
117
- body,
118
- });
83
+ b.m("GET").h(headers).b(body);
84
+ return b.build();
119
85
  };
120
86
  export const se_GetDICOMImportJobCommand = async (input, context) => {
121
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
87
+ const b = rb(input, context);
122
88
  const headers = {};
123
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
124
- "/getDICOMImportJob/datastore/{datastoreId}/job/{jobId}";
125
- resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId, "{datastoreId}", false);
126
- resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
89
+ b.bp("/getDICOMImportJob/datastore/{datastoreId}/job/{jobId}");
90
+ b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
91
+ b.p("jobId", () => input.jobId, "{jobId}", false);
127
92
  let body;
128
- return new __HttpRequest({
129
- protocol,
130
- hostname,
131
- port,
132
- method: "GET",
133
- headers,
134
- path: resolvedPath,
135
- body,
136
- });
93
+ b.m("GET").h(headers).b(body);
94
+ return b.build();
137
95
  };
138
96
  export const se_GetImageFrameCommand = async (input, context) => {
139
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
97
+ const b = rb(input, context);
140
98
  const headers = {
141
99
  "content-type": "application/json",
142
100
  };
143
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
144
- "/datastore/{datastoreId}/imageSet/{imageSetId}/getImageFrame";
145
- resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId, "{datastoreId}", false);
146
- resolvedPath = __resolvedPath(resolvedPath, input, "imageSetId", () => input.imageSetId, "{imageSetId}", false);
101
+ b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/getImageFrame");
102
+ b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
103
+ b.p("imageSetId", () => input.imageSetId, "{imageSetId}", false);
147
104
  let body;
148
105
  if (input.imageFrameInformation !== undefined) {
149
106
  body = _json(input.imageFrameInformation);
@@ -159,25 +116,18 @@ export const se_GetImageFrameCommand = async (input, context) => {
159
116
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
160
117
  }
161
118
  }
162
- return new __HttpRequest({
163
- protocol,
164
- hostname: resolvedHostname,
165
- port,
166
- method: "POST",
167
- headers,
168
- path: resolvedPath,
169
- body,
170
- });
119
+ b.hn(resolvedHostname);
120
+ b.m("POST").h(headers).b(body);
121
+ return b.build();
171
122
  };
172
123
  export const se_GetImageSetCommand = async (input, context) => {
173
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
124
+ const b = rb(input, context);
174
125
  const headers = {};
175
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
176
- "/datastore/{datastoreId}/imageSet/{imageSetId}/getImageSet";
177
- resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId, "{datastoreId}", false);
178
- resolvedPath = __resolvedPath(resolvedPath, input, "imageSetId", () => input.imageSetId, "{imageSetId}", false);
126
+ b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/getImageSet");
127
+ b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
128
+ b.p("imageSetId", () => input.imageSetId, "{imageSetId}", false);
179
129
  const query = map({
180
- version: [, input.versionId],
130
+ [_v]: [, input[_vI]],
181
131
  });
182
132
  let body;
183
133
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -187,26 +137,18 @@ export const se_GetImageSetCommand = async (input, context) => {
187
137
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
188
138
  }
189
139
  }
190
- return new __HttpRequest({
191
- protocol,
192
- hostname: resolvedHostname,
193
- port,
194
- method: "POST",
195
- headers,
196
- path: resolvedPath,
197
- query,
198
- body,
199
- });
140
+ b.hn(resolvedHostname);
141
+ b.m("POST").h(headers).q(query).b(body);
142
+ return b.build();
200
143
  };
201
144
  export const se_GetImageSetMetadataCommand = async (input, context) => {
202
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
145
+ const b = rb(input, context);
203
146
  const headers = {};
204
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
205
- "/datastore/{datastoreId}/imageSet/{imageSetId}/getImageSetMetadata";
206
- resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId, "{datastoreId}", false);
207
- resolvedPath = __resolvedPath(resolvedPath, input, "imageSetId", () => input.imageSetId, "{imageSetId}", false);
147
+ b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/getImageSetMetadata");
148
+ b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
149
+ b.p("imageSetId", () => input.imageSetId, "{imageSetId}", false);
208
150
  const query = map({
209
- version: [, input.versionId],
151
+ [_v]: [, input[_vI]],
210
152
  });
211
153
  let body;
212
154
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -216,71 +158,46 @@ export const se_GetImageSetMetadataCommand = async (input, context) => {
216
158
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
217
159
  }
218
160
  }
219
- return new __HttpRequest({
220
- protocol,
221
- hostname: resolvedHostname,
222
- port,
223
- method: "POST",
224
- headers,
225
- path: resolvedPath,
226
- query,
227
- body,
228
- });
161
+ b.hn(resolvedHostname);
162
+ b.m("POST").h(headers).q(query).b(body);
163
+ return b.build();
229
164
  };
230
165
  export const se_ListDatastoresCommand = async (input, context) => {
231
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
166
+ const b = rb(input, context);
232
167
  const headers = {};
233
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datastore";
168
+ b.bp("/datastore");
234
169
  const query = map({
235
- datastoreStatus: [, input.datastoreStatus],
236
- nextToken: [, input.nextToken],
237
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
170
+ [_dS]: [, input[_dS]],
171
+ [_nT]: [, input[_nT]],
172
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
238
173
  });
239
174
  let body;
240
- return new __HttpRequest({
241
- protocol,
242
- hostname,
243
- port,
244
- method: "GET",
245
- headers,
246
- path: resolvedPath,
247
- query,
248
- body,
249
- });
175
+ b.m("GET").h(headers).q(query).b(body);
176
+ return b.build();
250
177
  };
251
178
  export const se_ListDICOMImportJobsCommand = async (input, context) => {
252
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
179
+ const b = rb(input, context);
253
180
  const headers = {};
254
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
255
- "/listDICOMImportJobs/datastore/{datastoreId}";
256
- resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId, "{datastoreId}", false);
181
+ b.bp("/listDICOMImportJobs/datastore/{datastoreId}");
182
+ b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
257
183
  const query = map({
258
- jobStatus: [, input.jobStatus],
259
- nextToken: [, input.nextToken],
260
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
184
+ [_jS]: [, input[_jS]],
185
+ [_nT]: [, input[_nT]],
186
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
261
187
  });
262
188
  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
- });
189
+ b.m("GET").h(headers).q(query).b(body);
190
+ return b.build();
273
191
  };
274
192
  export const se_ListImageSetVersionsCommand = async (input, context) => {
275
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
193
+ const b = rb(input, context);
276
194
  const headers = {};
277
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
278
- "/datastore/{datastoreId}/imageSet/{imageSetId}/listImageSetVersions";
279
- resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId, "{datastoreId}", false);
280
- resolvedPath = __resolvedPath(resolvedPath, input, "imageSetId", () => input.imageSetId, "{imageSetId}", false);
195
+ b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/listImageSetVersions");
196
+ b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
197
+ b.p("imageSetId", () => input.imageSetId, "{imageSetId}", false);
281
198
  const query = map({
282
- nextToken: [, input.nextToken],
283
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
199
+ [_nT]: [, input[_nT]],
200
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
284
201
  });
285
202
  let body;
286
203
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -290,43 +207,29 @@ export const se_ListImageSetVersionsCommand = async (input, context) => {
290
207
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
291
208
  }
292
209
  }
293
- return new __HttpRequest({
294
- protocol,
295
- hostname: resolvedHostname,
296
- port,
297
- method: "POST",
298
- headers,
299
- path: resolvedPath,
300
- query,
301
- body,
302
- });
210
+ b.hn(resolvedHostname);
211
+ b.m("POST").h(headers).q(query).b(body);
212
+ return b.build();
303
213
  };
304
214
  export const se_ListTagsForResourceCommand = async (input, context) => {
305
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
215
+ const b = rb(input, context);
306
216
  const headers = {};
307
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
308
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
217
+ b.bp("/tags/{resourceArn}");
218
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
309
219
  let body;
310
- return new __HttpRequest({
311
- protocol,
312
- hostname,
313
- port,
314
- method: "GET",
315
- headers,
316
- path: resolvedPath,
317
- body,
318
- });
220
+ b.m("GET").h(headers).b(body);
221
+ return b.build();
319
222
  };
320
223
  export const se_SearchImageSetsCommand = async (input, context) => {
321
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
224
+ const b = rb(input, context);
322
225
  const headers = {
323
226
  "content-type": "application/json",
324
227
  };
325
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datastore/{datastoreId}/searchImageSets";
326
- resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId, "{datastoreId}", false);
228
+ b.bp("/datastore/{datastoreId}/searchImageSets");
229
+ b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
327
230
  const query = map({
328
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
329
- nextToken: [, input.nextToken],
231
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
232
+ [_nT]: [, input[_nT]],
330
233
  });
331
234
  let body;
332
235
  if (input.searchCriteria !== undefined) {
@@ -343,25 +246,17 @@ export const se_SearchImageSetsCommand = async (input, context) => {
343
246
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
344
247
  }
345
248
  }
346
- return new __HttpRequest({
347
- protocol,
348
- hostname: resolvedHostname,
349
- port,
350
- method: "POST",
351
- headers,
352
- path: resolvedPath,
353
- query,
354
- body,
355
- });
249
+ b.hn(resolvedHostname);
250
+ b.m("POST").h(headers).q(query).b(body);
251
+ return b.build();
356
252
  };
357
253
  export const se_StartDICOMImportJobCommand = async (input, context) => {
358
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
254
+ const b = rb(input, context);
359
255
  const headers = {
360
256
  "content-type": "application/json",
361
257
  };
362
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
363
- "/startDICOMImportJob/datastore/{datastoreId}";
364
- resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId, "{datastoreId}", false);
258
+ b.bp("/startDICOMImportJob/datastore/{datastoreId}");
259
+ b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
365
260
  let body;
366
261
  body = JSON.stringify(take(input, {
367
262
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -370,71 +265,48 @@ export const se_StartDICOMImportJobCommand = async (input, context) => {
370
265
  jobName: [],
371
266
  outputS3Uri: [],
372
267
  }));
373
- return new __HttpRequest({
374
- protocol,
375
- hostname,
376
- port,
377
- method: "POST",
378
- headers,
379
- path: resolvedPath,
380
- body,
381
- });
268
+ b.m("POST").h(headers).b(body);
269
+ return b.build();
382
270
  };
383
271
  export const se_TagResourceCommand = async (input, context) => {
384
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
272
+ const b = rb(input, context);
385
273
  const headers = {
386
274
  "content-type": "application/json",
387
275
  };
388
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
389
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
276
+ b.bp("/tags/{resourceArn}");
277
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
390
278
  let body;
391
279
  body = JSON.stringify(take(input, {
392
280
  tags: (_) => _json(_),
393
281
  }));
394
- return new __HttpRequest({
395
- protocol,
396
- hostname,
397
- port,
398
- method: "POST",
399
- headers,
400
- path: resolvedPath,
401
- body,
402
- });
282
+ b.m("POST").h(headers).b(body);
283
+ return b.build();
403
284
  };
404
285
  export const se_UntagResourceCommand = async (input, context) => {
405
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
286
+ const b = rb(input, context);
406
287
  const headers = {};
407
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
408
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
288
+ b.bp("/tags/{resourceArn}");
289
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
409
290
  const query = map({
410
- tagKeys: [
291
+ [_tK]: [
411
292
  __expectNonNull(input.tagKeys, `tagKeys`) != null,
412
- () => (input.tagKeys || []).map((_entry) => _entry),
293
+ () => (input[_tK] || []).map((_entry) => _entry),
413
294
  ],
414
295
  });
415
296
  let body;
416
- return new __HttpRequest({
417
- protocol,
418
- hostname,
419
- port,
420
- method: "DELETE",
421
- headers,
422
- path: resolvedPath,
423
- query,
424
- body,
425
- });
297
+ b.m("DELETE").h(headers).q(query).b(body);
298
+ return b.build();
426
299
  };
427
300
  export const se_UpdateImageSetMetadataCommand = async (input, context) => {
428
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
301
+ const b = rb(input, context);
429
302
  const headers = {
430
303
  "content-type": "application/json",
431
304
  };
432
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
433
- "/datastore/{datastoreId}/imageSet/{imageSetId}/updateImageSetMetadata";
434
- resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId, "{datastoreId}", false);
435
- resolvedPath = __resolvedPath(resolvedPath, input, "imageSetId", () => input.imageSetId, "{imageSetId}", false);
305
+ b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/updateImageSetMetadata");
306
+ b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
307
+ b.p("imageSetId", () => input.imageSetId, "{imageSetId}", false);
436
308
  const query = map({
437
- latestVersion: [, __expectNonNull(input.latestVersionId, `latestVersionId`)],
309
+ [_lV]: [, __expectNonNull(input[_lVI], `latestVersionId`)],
438
310
  });
439
311
  let body;
440
312
  if (input.updateImageSetMetadataUpdates !== undefined) {
@@ -451,16 +323,9 @@ export const se_UpdateImageSetMetadataCommand = async (input, context) => {
451
323
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
452
324
  }
453
325
  }
454
- return new __HttpRequest({
455
- protocol,
456
- hostname: resolvedHostname,
457
- port,
458
- method: "POST",
459
- headers,
460
- path: resolvedPath,
461
- query,
462
- body,
463
- });
326
+ b.hn(resolvedHostname);
327
+ b.m("POST").h(headers).q(query).b(body);
328
+ return b.build();
464
329
  };
465
330
  export const de_CopyImageSetCommand = async (output, context) => {
466
331
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -763,7 +628,7 @@ export const de_GetImageFrameCommand = async (output, context) => {
763
628
  }
764
629
  const contents = map({
765
630
  $metadata: deserializeMetadata(output),
766
- contentType: [, output.headers["content-type"]],
631
+ [_cT]: [, output.headers[_ct]],
767
632
  });
768
633
  const data = output.body;
769
634
  context.sdkStreamMixin(data);
@@ -867,8 +732,8 @@ export const de_GetImageSetMetadataCommand = async (output, context) => {
867
732
  }
868
733
  const contents = map({
869
734
  $metadata: deserializeMetadata(output),
870
- contentType: [, output.headers["content-type"]],
871
- contentEncoding: [, output.headers["content-encoding"]],
735
+ [_cT]: [, output.headers[_ct]],
736
+ [_cE]: [, output.headers[_ce]],
872
737
  });
873
738
  const data = output.body;
874
739
  context.sdkStreamMixin(data);
@@ -1612,6 +1477,19 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1612
1477
  value !== "" &&
1613
1478
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
1614
1479
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1480
+ const _cE = "contentEncoding";
1481
+ const _cT = "contentType";
1482
+ const _ce = "content-encoding";
1483
+ const _ct = "content-type";
1484
+ const _dS = "datastoreStatus";
1485
+ const _jS = "jobStatus";
1486
+ const _lV = "latestVersion";
1487
+ const _lVI = "latestVersionId";
1488
+ const _mR = "maxResults";
1489
+ const _nT = "nextToken";
1490
+ const _tK = "tagKeys";
1491
+ const _v = "version";
1492
+ const _vI = "versionId";
1615
1493
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1616
1494
  if (encoded.length) {
1617
1495
  return JSON.parse(encoded);
@@ -4,4 +4,4 @@ import { MedicalImagingPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListDICOMImportJobs(config: MedicalImagingPaginationConfiguration, input: ListDICOMImportJobsCommandInput, ...additionalArguments: any): Paginator<ListDICOMImportJobsCommandOutput>;
7
+ export declare const paginateListDICOMImportJobs: (config: MedicalImagingPaginationConfiguration, input: ListDICOMImportJobsCommandInput, ...rest: any[]) => Paginator<ListDICOMImportJobsCommandOutput>;
@@ -4,4 +4,4 @@ import { MedicalImagingPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListDatastores(config: MedicalImagingPaginationConfiguration, input: ListDatastoresCommandInput, ...additionalArguments: any): Paginator<ListDatastoresCommandOutput>;
7
+ export declare const paginateListDatastores: (config: MedicalImagingPaginationConfiguration, input: ListDatastoresCommandInput, ...rest: any[]) => Paginator<ListDatastoresCommandOutput>;
@@ -4,4 +4,4 @@ import { MedicalImagingPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListImageSetVersions(config: MedicalImagingPaginationConfiguration, input: ListImageSetVersionsCommandInput, ...additionalArguments: any): Paginator<ListImageSetVersionsCommandOutput>;
7
+ export declare const paginateListImageSetVersions: (config: MedicalImagingPaginationConfiguration, input: ListImageSetVersionsCommandInput, ...rest: any[]) => Paginator<ListImageSetVersionsCommandOutput>;
@@ -4,4 +4,4 @@ import { MedicalImagingPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateSearchImageSets(config: MedicalImagingPaginationConfiguration, input: SearchImageSetsCommandInput, ...additionalArguments: any): Paginator<SearchImageSetsCommandOutput>;
7
+ export declare const paginateSearchImageSets: (config: MedicalImagingPaginationConfiguration, input: SearchImageSetsCommandInput, ...rest: any[]) => Paginator<SearchImageSetsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListDICOMImportJobsCommandOutput,
5
5
  } from "../commands/ListDICOMImportJobsCommand";
6
6
  import { MedicalImagingPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListDICOMImportJobs(
7
+ export declare const paginateListDICOMImportJobs: (
8
8
  config: MedicalImagingPaginationConfiguration,
9
9
  input: ListDICOMImportJobsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListDICOMImportJobsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListDICOMImportJobsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListDatastoresCommandOutput,
5
5
  } from "../commands/ListDatastoresCommand";
6
6
  import { MedicalImagingPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListDatastores(
7
+ export declare const paginateListDatastores: (
8
8
  config: MedicalImagingPaginationConfiguration,
9
9
  input: ListDatastoresCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListDatastoresCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListDatastoresCommandOutput>;