@aws-sdk/client-omics 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 (83) hide show
  1. package/dist-cjs/pagination/ListAnnotationImportJobsPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListAnnotationStoreVersionsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListAnnotationStoresPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListMultipartReadSetUploadsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListReadSetActivationJobsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListReadSetExportJobsPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListReadSetImportJobsPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListReadSetUploadPartsPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListReadSetsPaginator.js +2 -24
  10. package/dist-cjs/pagination/ListReferenceImportJobsPaginator.js +2 -24
  11. package/dist-cjs/pagination/ListReferenceStoresPaginator.js +2 -24
  12. package/dist-cjs/pagination/ListReferencesPaginator.js +2 -24
  13. package/dist-cjs/pagination/ListRunGroupsPaginator.js +2 -24
  14. package/dist-cjs/pagination/ListRunTasksPaginator.js +2 -24
  15. package/dist-cjs/pagination/ListRunsPaginator.js +2 -24
  16. package/dist-cjs/pagination/ListSequenceStoresPaginator.js +2 -24
  17. package/dist-cjs/pagination/ListSharesPaginator.js +2 -24
  18. package/dist-cjs/pagination/ListVariantImportJobsPaginator.js +2 -24
  19. package/dist-cjs/pagination/ListVariantStoresPaginator.js +2 -24
  20. package/dist-cjs/pagination/ListWorkflowsPaginator.js +2 -24
  21. package/dist-cjs/protocols/Aws_restJson1.js +565 -1096
  22. package/dist-es/pagination/ListAnnotationImportJobsPaginator.js +2 -23
  23. package/dist-es/pagination/ListAnnotationStoreVersionsPaginator.js +2 -23
  24. package/dist-es/pagination/ListAnnotationStoresPaginator.js +2 -23
  25. package/dist-es/pagination/ListMultipartReadSetUploadsPaginator.js +2 -23
  26. package/dist-es/pagination/ListReadSetActivationJobsPaginator.js +2 -23
  27. package/dist-es/pagination/ListReadSetExportJobsPaginator.js +2 -23
  28. package/dist-es/pagination/ListReadSetImportJobsPaginator.js +2 -23
  29. package/dist-es/pagination/ListReadSetUploadPartsPaginator.js +2 -23
  30. package/dist-es/pagination/ListReadSetsPaginator.js +2 -23
  31. package/dist-es/pagination/ListReferenceImportJobsPaginator.js +2 -23
  32. package/dist-es/pagination/ListReferenceStoresPaginator.js +2 -23
  33. package/dist-es/pagination/ListReferencesPaginator.js +2 -23
  34. package/dist-es/pagination/ListRunGroupsPaginator.js +2 -23
  35. package/dist-es/pagination/ListRunTasksPaginator.js +2 -23
  36. package/dist-es/pagination/ListRunsPaginator.js +2 -23
  37. package/dist-es/pagination/ListSequenceStoresPaginator.js +2 -23
  38. package/dist-es/pagination/ListSharesPaginator.js +2 -23
  39. package/dist-es/pagination/ListVariantImportJobsPaginator.js +2 -23
  40. package/dist-es/pagination/ListVariantStoresPaginator.js +2 -23
  41. package/dist-es/pagination/ListWorkflowsPaginator.js +2 -23
  42. package/dist-es/protocols/Aws_restJson1.js +567 -1098
  43. package/dist-types/pagination/ListAnnotationImportJobsPaginator.d.ts +1 -1
  44. package/dist-types/pagination/ListAnnotationStoreVersionsPaginator.d.ts +1 -1
  45. package/dist-types/pagination/ListAnnotationStoresPaginator.d.ts +1 -1
  46. package/dist-types/pagination/ListMultipartReadSetUploadsPaginator.d.ts +1 -1
  47. package/dist-types/pagination/ListReadSetActivationJobsPaginator.d.ts +1 -1
  48. package/dist-types/pagination/ListReadSetExportJobsPaginator.d.ts +1 -1
  49. package/dist-types/pagination/ListReadSetImportJobsPaginator.d.ts +1 -1
  50. package/dist-types/pagination/ListReadSetUploadPartsPaginator.d.ts +1 -1
  51. package/dist-types/pagination/ListReadSetsPaginator.d.ts +1 -1
  52. package/dist-types/pagination/ListReferenceImportJobsPaginator.d.ts +1 -1
  53. package/dist-types/pagination/ListReferenceStoresPaginator.d.ts +1 -1
  54. package/dist-types/pagination/ListReferencesPaginator.d.ts +1 -1
  55. package/dist-types/pagination/ListRunGroupsPaginator.d.ts +1 -1
  56. package/dist-types/pagination/ListRunTasksPaginator.d.ts +1 -1
  57. package/dist-types/pagination/ListRunsPaginator.d.ts +1 -1
  58. package/dist-types/pagination/ListSequenceStoresPaginator.d.ts +1 -1
  59. package/dist-types/pagination/ListSharesPaginator.d.ts +1 -1
  60. package/dist-types/pagination/ListVariantImportJobsPaginator.d.ts +1 -1
  61. package/dist-types/pagination/ListVariantStoresPaginator.d.ts +1 -1
  62. package/dist-types/pagination/ListWorkflowsPaginator.d.ts +1 -1
  63. package/dist-types/ts3.4/pagination/ListAnnotationImportJobsPaginator.d.ts +3 -3
  64. package/dist-types/ts3.4/pagination/ListAnnotationStoreVersionsPaginator.d.ts +3 -3
  65. package/dist-types/ts3.4/pagination/ListAnnotationStoresPaginator.d.ts +3 -3
  66. package/dist-types/ts3.4/pagination/ListMultipartReadSetUploadsPaginator.d.ts +3 -3
  67. package/dist-types/ts3.4/pagination/ListReadSetActivationJobsPaginator.d.ts +3 -3
  68. package/dist-types/ts3.4/pagination/ListReadSetExportJobsPaginator.d.ts +3 -3
  69. package/dist-types/ts3.4/pagination/ListReadSetImportJobsPaginator.d.ts +3 -3
  70. package/dist-types/ts3.4/pagination/ListReadSetUploadPartsPaginator.d.ts +3 -3
  71. package/dist-types/ts3.4/pagination/ListReadSetsPaginator.d.ts +3 -3
  72. package/dist-types/ts3.4/pagination/ListReferenceImportJobsPaginator.d.ts +3 -3
  73. package/dist-types/ts3.4/pagination/ListReferenceStoresPaginator.d.ts +3 -3
  74. package/dist-types/ts3.4/pagination/ListReferencesPaginator.d.ts +3 -3
  75. package/dist-types/ts3.4/pagination/ListRunGroupsPaginator.d.ts +3 -3
  76. package/dist-types/ts3.4/pagination/ListRunTasksPaginator.d.ts +3 -3
  77. package/dist-types/ts3.4/pagination/ListRunsPaginator.d.ts +3 -3
  78. package/dist-types/ts3.4/pagination/ListSequenceStoresPaginator.d.ts +3 -3
  79. package/dist-types/ts3.4/pagination/ListSharesPaginator.d.ts +3 -3
  80. package/dist-types/ts3.4/pagination/ListVariantImportJobsPaginator.d.ts +3 -3
  81. package/dist-types/ts3.4/pagination/ListVariantStoresPaginator.d.ts +3 -3
  82. package/dist-types/ts3.4/pagination/ListWorkflowsPaginator.d.ts +3 -3
  83. package/package.json +7 -6
@@ -5,18 +5,18 @@ exports.de_DeleteAnnotationStoreVersionsCommand = exports.de_DeleteAnnotationSto
5
5
  exports.de_StartAnnotationImportJobCommand = exports.de_ListWorkflowsCommand = exports.de_ListVariantStoresCommand = exports.de_ListVariantImportJobsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSharesCommand = exports.de_ListSequenceStoresCommand = exports.de_ListRunTasksCommand = exports.de_ListRunsCommand = exports.de_ListRunGroupsCommand = exports.de_ListReferenceStoresCommand = exports.de_ListReferencesCommand = exports.de_ListReferenceImportJobsCommand = exports.de_ListReadSetUploadPartsCommand = exports.de_ListReadSetsCommand = exports.de_ListReadSetImportJobsCommand = exports.de_ListReadSetExportJobsCommand = exports.de_ListReadSetActivationJobsCommand = exports.de_ListMultipartReadSetUploadsCommand = exports.de_ListAnnotationStoreVersionsCommand = exports.de_ListAnnotationStoresCommand = exports.de_ListAnnotationImportJobsCommand = exports.de_GetWorkflowCommand = exports.de_GetVariantStoreCommand = exports.de_GetVariantImportJobCommand = exports.de_GetShareCommand = exports.de_GetSequenceStoreCommand = exports.de_GetRunTaskCommand = exports.de_GetRunGroupCommand = exports.de_GetRunCommand = exports.de_GetReferenceStoreCommand = exports.de_GetReferenceMetadataCommand = exports.de_GetReferenceImportJobCommand = exports.de_GetReferenceCommand = exports.de_GetReadSetMetadataCommand = exports.de_GetReadSetImportJobCommand = exports.de_GetReadSetExportJobCommand = exports.de_GetReadSetActivationJobCommand = exports.de_GetReadSetCommand = exports.de_GetAnnotationStoreVersionCommand = exports.de_GetAnnotationStoreCommand = exports.de_GetAnnotationImportJobCommand = exports.de_DeleteWorkflowCommand = exports.de_DeleteVariantStoreCommand = exports.de_DeleteShareCommand = exports.de_DeleteSequenceStoreCommand = exports.de_DeleteRunGroupCommand = exports.de_DeleteRunCommand = exports.de_DeleteReferenceStoreCommand = exports.de_DeleteReferenceCommand = void 0;
6
6
  exports.de_UploadReadSetPartCommand = exports.de_UpdateWorkflowCommand = exports.de_UpdateVariantStoreCommand = exports.de_UpdateRunGroupCommand = exports.de_UpdateAnnotationStoreVersionCommand = exports.de_UpdateAnnotationStoreCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartVariantImportJobCommand = exports.de_StartRunCommand = exports.de_StartReferenceImportJobCommand = exports.de_StartReadSetImportJobCommand = exports.de_StartReadSetExportJobCommand = exports.de_StartReadSetActivationJobCommand = void 0;
7
7
  const core_1 = require("@aws-sdk/core");
8
+ const core_2 = require("@smithy/core");
8
9
  const protocol_http_1 = require("@smithy/protocol-http");
9
10
  const smithy_client_1 = require("@smithy/smithy-client");
10
11
  const uuid_1 = require("uuid");
11
12
  const models_0_1 = require("../models/models_0");
12
13
  const OmicsServiceException_1 = require("../models/OmicsServiceException");
13
14
  const se_AbortMultipartReadSetUploadCommand = async (input, context) => {
14
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
15
+ const b = (0, core_2.requestBuilder)(input, context);
15
16
  const headers = {};
16
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
17
- "/sequencestore/{sequenceStoreId}/upload/{uploadId}/abort";
18
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
19
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "uploadId", () => input.uploadId, "{uploadId}", false);
17
+ b.bp("/sequencestore/{sequenceStoreId}/upload/{uploadId}/abort");
18
+ b.p("sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
19
+ b.p("uploadId", () => input.uploadId, "{uploadId}", false);
20
20
  let body;
21
21
  let { hostname: resolvedHostname } = await context.endpoint();
22
22
  if (context.disableHostPrefix !== true) {
@@ -25,22 +25,16 @@ const se_AbortMultipartReadSetUploadCommand = async (input, context) => {
25
25
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
26
26
  }
27
27
  }
28
- return new protocol_http_1.HttpRequest({
29
- protocol,
30
- hostname: resolvedHostname,
31
- port,
32
- method: "DELETE",
33
- headers,
34
- path: resolvedPath,
35
- body,
36
- });
28
+ b.hn(resolvedHostname);
29
+ b.m("DELETE").h(headers).b(body);
30
+ return b.build();
37
31
  };
38
32
  exports.se_AbortMultipartReadSetUploadCommand = se_AbortMultipartReadSetUploadCommand;
39
33
  const se_AcceptShareCommand = async (input, context) => {
40
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
34
+ const b = (0, core_2.requestBuilder)(input, context);
41
35
  const headers = {};
42
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/share/{shareId}";
43
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "shareId", () => input.shareId, "{shareId}", false);
36
+ b.bp("/share/{shareId}");
37
+ b.p("shareId", () => input.shareId, "{shareId}", false);
44
38
  let body;
45
39
  let { hostname: resolvedHostname } = await context.endpoint();
46
40
  if (context.disableHostPrefix !== true) {
@@ -49,25 +43,18 @@ const se_AcceptShareCommand = async (input, context) => {
49
43
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
50
44
  }
51
45
  }
52
- return new protocol_http_1.HttpRequest({
53
- protocol,
54
- hostname: resolvedHostname,
55
- port,
56
- method: "POST",
57
- headers,
58
- path: resolvedPath,
59
- body,
60
- });
46
+ b.hn(resolvedHostname);
47
+ b.m("POST").h(headers).b(body);
48
+ return b.build();
61
49
  };
62
50
  exports.se_AcceptShareCommand = se_AcceptShareCommand;
63
51
  const se_BatchDeleteReadSetCommand = async (input, context) => {
64
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
52
+ const b = (0, core_2.requestBuilder)(input, context);
65
53
  const headers = {
66
54
  "content-type": "application/json",
67
55
  };
68
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
69
- "/sequencestore/{sequenceStoreId}/readset/batch/delete";
70
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
56
+ b.bp("/sequencestore/{sequenceStoreId}/readset/batch/delete");
57
+ b.p("sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
71
58
  let body;
72
59
  body = JSON.stringify((0, smithy_client_1.take)(input, {
73
60
  ids: (_) => (0, smithy_client_1._json)(_),
@@ -79,22 +66,16 @@ const se_BatchDeleteReadSetCommand = async (input, context) => {
79
66
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
80
67
  }
81
68
  }
82
- return new protocol_http_1.HttpRequest({
83
- protocol,
84
- hostname: resolvedHostname,
85
- port,
86
- method: "POST",
87
- headers,
88
- path: resolvedPath,
89
- body,
90
- });
69
+ b.hn(resolvedHostname);
70
+ b.m("POST").h(headers).b(body);
71
+ return b.build();
91
72
  };
92
73
  exports.se_BatchDeleteReadSetCommand = se_BatchDeleteReadSetCommand;
93
74
  const se_CancelAnnotationImportJobCommand = async (input, context) => {
94
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
75
+ const b = (0, core_2.requestBuilder)(input, context);
95
76
  const headers = {};
96
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/import/annotation/{jobId}";
97
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
77
+ b.bp("/import/annotation/{jobId}");
78
+ b.p("jobId", () => input.jobId, "{jobId}", false);
98
79
  let body;
99
80
  let { hostname: resolvedHostname } = await context.endpoint();
100
81
  if (context.disableHostPrefix !== true) {
@@ -103,22 +84,16 @@ const se_CancelAnnotationImportJobCommand = async (input, context) => {
103
84
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
104
85
  }
105
86
  }
106
- return new protocol_http_1.HttpRequest({
107
- protocol,
108
- hostname: resolvedHostname,
109
- port,
110
- method: "DELETE",
111
- headers,
112
- path: resolvedPath,
113
- body,
114
- });
87
+ b.hn(resolvedHostname);
88
+ b.m("DELETE").h(headers).b(body);
89
+ return b.build();
115
90
  };
116
91
  exports.se_CancelAnnotationImportJobCommand = se_CancelAnnotationImportJobCommand;
117
92
  const se_CancelRunCommand = async (input, context) => {
118
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
93
+ const b = (0, core_2.requestBuilder)(input, context);
119
94
  const headers = {};
120
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/run/{id}/cancel";
121
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
95
+ b.bp("/run/{id}/cancel");
96
+ b.p("id", () => input.id, "{id}", false);
122
97
  let body;
123
98
  let { hostname: resolvedHostname } = await context.endpoint();
124
99
  if (context.disableHostPrefix !== true) {
@@ -127,22 +102,16 @@ const se_CancelRunCommand = async (input, context) => {
127
102
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
128
103
  }
129
104
  }
130
- return new protocol_http_1.HttpRequest({
131
- protocol,
132
- hostname: resolvedHostname,
133
- port,
134
- method: "POST",
135
- headers,
136
- path: resolvedPath,
137
- body,
138
- });
105
+ b.hn(resolvedHostname);
106
+ b.m("POST").h(headers).b(body);
107
+ return b.build();
139
108
  };
140
109
  exports.se_CancelRunCommand = se_CancelRunCommand;
141
110
  const se_CancelVariantImportJobCommand = async (input, context) => {
142
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
111
+ const b = (0, core_2.requestBuilder)(input, context);
143
112
  const headers = {};
144
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/import/variant/{jobId}";
145
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
113
+ b.bp("/import/variant/{jobId}");
114
+ b.p("jobId", () => input.jobId, "{jobId}", false);
146
115
  let body;
147
116
  let { hostname: resolvedHostname } = await context.endpoint();
148
117
  if (context.disableHostPrefix !== true) {
@@ -151,26 +120,19 @@ const se_CancelVariantImportJobCommand = async (input, context) => {
151
120
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
152
121
  }
153
122
  }
154
- return new protocol_http_1.HttpRequest({
155
- protocol,
156
- hostname: resolvedHostname,
157
- port,
158
- method: "DELETE",
159
- headers,
160
- path: resolvedPath,
161
- body,
162
- });
123
+ b.hn(resolvedHostname);
124
+ b.m("DELETE").h(headers).b(body);
125
+ return b.build();
163
126
  };
164
127
  exports.se_CancelVariantImportJobCommand = se_CancelVariantImportJobCommand;
165
128
  const se_CompleteMultipartReadSetUploadCommand = async (input, context) => {
166
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
129
+ const b = (0, core_2.requestBuilder)(input, context);
167
130
  const headers = {
168
131
  "content-type": "application/json",
169
132
  };
170
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
171
- "/sequencestore/{sequenceStoreId}/upload/{uploadId}/complete";
172
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
173
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "uploadId", () => input.uploadId, "{uploadId}", false);
133
+ b.bp("/sequencestore/{sequenceStoreId}/upload/{uploadId}/complete");
134
+ b.p("sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
135
+ b.p("uploadId", () => input.uploadId, "{uploadId}", false);
174
136
  let body;
175
137
  body = JSON.stringify((0, smithy_client_1.take)(input, {
176
138
  parts: (_) => (0, smithy_client_1._json)(_),
@@ -182,23 +144,17 @@ const se_CompleteMultipartReadSetUploadCommand = async (input, context) => {
182
144
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
183
145
  }
184
146
  }
185
- return new protocol_http_1.HttpRequest({
186
- protocol,
187
- hostname: resolvedHostname,
188
- port,
189
- method: "POST",
190
- headers,
191
- path: resolvedPath,
192
- body,
193
- });
147
+ b.hn(resolvedHostname);
148
+ b.m("POST").h(headers).b(body);
149
+ return b.build();
194
150
  };
195
151
  exports.se_CompleteMultipartReadSetUploadCommand = se_CompleteMultipartReadSetUploadCommand;
196
152
  const se_CreateAnnotationStoreCommand = async (input, context) => {
197
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
153
+ const b = (0, core_2.requestBuilder)(input, context);
198
154
  const headers = {
199
155
  "content-type": "application/json",
200
156
  };
201
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/annotationStore";
157
+ b.bp("/annotationStore");
202
158
  let body;
203
159
  body = JSON.stringify((0, smithy_client_1.take)(input, {
204
160
  description: [],
@@ -217,24 +173,18 @@ const se_CreateAnnotationStoreCommand = async (input, context) => {
217
173
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
218
174
  }
219
175
  }
220
- return new protocol_http_1.HttpRequest({
221
- protocol,
222
- hostname: resolvedHostname,
223
- port,
224
- method: "POST",
225
- headers,
226
- path: resolvedPath,
227
- body,
228
- });
176
+ b.hn(resolvedHostname);
177
+ b.m("POST").h(headers).b(body);
178
+ return b.build();
229
179
  };
230
180
  exports.se_CreateAnnotationStoreCommand = se_CreateAnnotationStoreCommand;
231
181
  const se_CreateAnnotationStoreVersionCommand = async (input, context) => {
232
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
182
+ const b = (0, core_2.requestBuilder)(input, context);
233
183
  const headers = {
234
184
  "content-type": "application/json",
235
185
  };
236
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/annotationStore/{name}/version";
237
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
186
+ b.bp("/annotationStore/{name}/version");
187
+ b.p("name", () => input.name, "{name}", false);
238
188
  let body;
239
189
  body = JSON.stringify((0, smithy_client_1.take)(input, {
240
190
  description: [],
@@ -249,24 +199,18 @@ const se_CreateAnnotationStoreVersionCommand = async (input, context) => {
249
199
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
250
200
  }
251
201
  }
252
- return new protocol_http_1.HttpRequest({
253
- protocol,
254
- hostname: resolvedHostname,
255
- port,
256
- method: "POST",
257
- headers,
258
- path: resolvedPath,
259
- body,
260
- });
202
+ b.hn(resolvedHostname);
203
+ b.m("POST").h(headers).b(body);
204
+ return b.build();
261
205
  };
262
206
  exports.se_CreateAnnotationStoreVersionCommand = se_CreateAnnotationStoreVersionCommand;
263
207
  const se_CreateMultipartReadSetUploadCommand = async (input, context) => {
264
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
208
+ const b = (0, core_2.requestBuilder)(input, context);
265
209
  const headers = {
266
210
  "content-type": "application/json",
267
211
  };
268
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sequencestore/{sequenceStoreId}/upload";
269
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
212
+ b.bp("/sequencestore/{sequenceStoreId}/upload");
213
+ b.p("sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
270
214
  let body;
271
215
  body = JSON.stringify((0, smithy_client_1.take)(input, {
272
216
  clientToken: [],
@@ -286,23 +230,17 @@ const se_CreateMultipartReadSetUploadCommand = async (input, context) => {
286
230
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
287
231
  }
288
232
  }
289
- return new protocol_http_1.HttpRequest({
290
- protocol,
291
- hostname: resolvedHostname,
292
- port,
293
- method: "POST",
294
- headers,
295
- path: resolvedPath,
296
- body,
297
- });
233
+ b.hn(resolvedHostname);
234
+ b.m("POST").h(headers).b(body);
235
+ return b.build();
298
236
  };
299
237
  exports.se_CreateMultipartReadSetUploadCommand = se_CreateMultipartReadSetUploadCommand;
300
238
  const se_CreateReferenceStoreCommand = async (input, context) => {
301
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
239
+ const b = (0, core_2.requestBuilder)(input, context);
302
240
  const headers = {
303
241
  "content-type": "application/json",
304
242
  };
305
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/referencestore";
243
+ b.bp("/referencestore");
306
244
  let body;
307
245
  body = JSON.stringify((0, smithy_client_1.take)(input, {
308
246
  clientToken: [],
@@ -318,23 +256,17 @@ const se_CreateReferenceStoreCommand = async (input, context) => {
318
256
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
319
257
  }
320
258
  }
321
- return new protocol_http_1.HttpRequest({
322
- protocol,
323
- hostname: resolvedHostname,
324
- port,
325
- method: "POST",
326
- headers,
327
- path: resolvedPath,
328
- body,
329
- });
259
+ b.hn(resolvedHostname);
260
+ b.m("POST").h(headers).b(body);
261
+ return b.build();
330
262
  };
331
263
  exports.se_CreateReferenceStoreCommand = se_CreateReferenceStoreCommand;
332
264
  const se_CreateRunGroupCommand = async (input, context) => {
333
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
265
+ const b = (0, core_2.requestBuilder)(input, context);
334
266
  const headers = {
335
267
  "content-type": "application/json",
336
268
  };
337
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/runGroup";
269
+ b.bp("/runGroup");
338
270
  let body;
339
271
  body = JSON.stringify((0, smithy_client_1.take)(input, {
340
272
  maxCpus: [],
@@ -352,23 +284,17 @@ const se_CreateRunGroupCommand = async (input, context) => {
352
284
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
353
285
  }
354
286
  }
355
- return new protocol_http_1.HttpRequest({
356
- protocol,
357
- hostname: resolvedHostname,
358
- port,
359
- method: "POST",
360
- headers,
361
- path: resolvedPath,
362
- body,
363
- });
287
+ b.hn(resolvedHostname);
288
+ b.m("POST").h(headers).b(body);
289
+ return b.build();
364
290
  };
365
291
  exports.se_CreateRunGroupCommand = se_CreateRunGroupCommand;
366
292
  const se_CreateSequenceStoreCommand = async (input, context) => {
367
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
293
+ const b = (0, core_2.requestBuilder)(input, context);
368
294
  const headers = {
369
295
  "content-type": "application/json",
370
296
  };
371
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sequencestore";
297
+ b.bp("/sequencestore");
372
298
  let body;
373
299
  body = JSON.stringify((0, smithy_client_1.take)(input, {
374
300
  clientToken: [],
@@ -385,23 +311,17 @@ const se_CreateSequenceStoreCommand = async (input, context) => {
385
311
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
386
312
  }
387
313
  }
388
- return new protocol_http_1.HttpRequest({
389
- protocol,
390
- hostname: resolvedHostname,
391
- port,
392
- method: "POST",
393
- headers,
394
- path: resolvedPath,
395
- body,
396
- });
314
+ b.hn(resolvedHostname);
315
+ b.m("POST").h(headers).b(body);
316
+ return b.build();
397
317
  };
398
318
  exports.se_CreateSequenceStoreCommand = se_CreateSequenceStoreCommand;
399
319
  const se_CreateShareCommand = async (input, context) => {
400
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
320
+ const b = (0, core_2.requestBuilder)(input, context);
401
321
  const headers = {
402
322
  "content-type": "application/json",
403
323
  };
404
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/share";
324
+ b.bp("/share");
405
325
  let body;
406
326
  body = JSON.stringify((0, smithy_client_1.take)(input, {
407
327
  principalSubscriber: [],
@@ -415,23 +335,17 @@ const se_CreateShareCommand = async (input, context) => {
415
335
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
416
336
  }
417
337
  }
418
- return new protocol_http_1.HttpRequest({
419
- protocol,
420
- hostname: resolvedHostname,
421
- port,
422
- method: "POST",
423
- headers,
424
- path: resolvedPath,
425
- body,
426
- });
338
+ b.hn(resolvedHostname);
339
+ b.m("POST").h(headers).b(body);
340
+ return b.build();
427
341
  };
428
342
  exports.se_CreateShareCommand = se_CreateShareCommand;
429
343
  const se_CreateVariantStoreCommand = async (input, context) => {
430
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
344
+ const b = (0, core_2.requestBuilder)(input, context);
431
345
  const headers = {
432
346
  "content-type": "application/json",
433
347
  };
434
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/variantStore";
348
+ b.bp("/variantStore");
435
349
  let body;
436
350
  body = JSON.stringify((0, smithy_client_1.take)(input, {
437
351
  description: [],
@@ -447,23 +361,17 @@ const se_CreateVariantStoreCommand = async (input, context) => {
447
361
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
448
362
  }
449
363
  }
450
- return new protocol_http_1.HttpRequest({
451
- protocol,
452
- hostname: resolvedHostname,
453
- port,
454
- method: "POST",
455
- headers,
456
- path: resolvedPath,
457
- body,
458
- });
364
+ b.hn(resolvedHostname);
365
+ b.m("POST").h(headers).b(body);
366
+ return b.build();
459
367
  };
460
368
  exports.se_CreateVariantStoreCommand = se_CreateVariantStoreCommand;
461
369
  const se_CreateWorkflowCommand = async (input, context) => {
462
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
370
+ const b = (0, core_2.requestBuilder)(input, context);
463
371
  const headers = {
464
372
  "content-type": "application/json",
465
373
  };
466
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflow";
374
+ b.bp("/workflow");
467
375
  let body;
468
376
  body = JSON.stringify((0, smithy_client_1.take)(input, {
469
377
  accelerators: [],
@@ -485,24 +393,18 @@ const se_CreateWorkflowCommand = async (input, context) => {
485
393
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
486
394
  }
487
395
  }
488
- return new protocol_http_1.HttpRequest({
489
- protocol,
490
- hostname: resolvedHostname,
491
- port,
492
- method: "POST",
493
- headers,
494
- path: resolvedPath,
495
- body,
496
- });
396
+ b.hn(resolvedHostname);
397
+ b.m("POST").h(headers).b(body);
398
+ return b.build();
497
399
  };
498
400
  exports.se_CreateWorkflowCommand = se_CreateWorkflowCommand;
499
401
  const se_DeleteAnnotationStoreCommand = async (input, context) => {
500
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
402
+ const b = (0, core_2.requestBuilder)(input, context);
501
403
  const headers = {};
502
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/annotationStore/{name}";
503
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
404
+ b.bp("/annotationStore/{name}");
405
+ b.p("name", () => input.name, "{name}", false);
504
406
  const query = (0, smithy_client_1.map)({
505
- force: [() => input.force !== void 0, () => input.force.toString()],
407
+ [_f]: [() => input.force !== void 0, () => input[_f].toString()],
506
408
  });
507
409
  let body;
508
410
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -512,27 +414,20 @@ const se_DeleteAnnotationStoreCommand = async (input, context) => {
512
414
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
513
415
  }
514
416
  }
515
- return new protocol_http_1.HttpRequest({
516
- protocol,
517
- hostname: resolvedHostname,
518
- port,
519
- method: "DELETE",
520
- headers,
521
- path: resolvedPath,
522
- query,
523
- body,
524
- });
417
+ b.hn(resolvedHostname);
418
+ b.m("DELETE").h(headers).q(query).b(body);
419
+ return b.build();
525
420
  };
526
421
  exports.se_DeleteAnnotationStoreCommand = se_DeleteAnnotationStoreCommand;
527
422
  const se_DeleteAnnotationStoreVersionsCommand = async (input, context) => {
528
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
423
+ const b = (0, core_2.requestBuilder)(input, context);
529
424
  const headers = {
530
425
  "content-type": "application/json",
531
426
  };
532
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/annotationStore/{name}/versions/delete";
533
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
427
+ b.bp("/annotationStore/{name}/versions/delete");
428
+ b.p("name", () => input.name, "{name}", false);
534
429
  const query = (0, smithy_client_1.map)({
535
- force: [() => input.force !== void 0, () => input.force.toString()],
430
+ [_f]: [() => input.force !== void 0, () => input[_f].toString()],
536
431
  });
537
432
  let body;
538
433
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -545,25 +440,17 @@ const se_DeleteAnnotationStoreVersionsCommand = async (input, context) => {
545
440
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
546
441
  }
547
442
  }
548
- return new protocol_http_1.HttpRequest({
549
- protocol,
550
- hostname: resolvedHostname,
551
- port,
552
- method: "POST",
553
- headers,
554
- path: resolvedPath,
555
- query,
556
- body,
557
- });
443
+ b.hn(resolvedHostname);
444
+ b.m("POST").h(headers).q(query).b(body);
445
+ return b.build();
558
446
  };
559
447
  exports.se_DeleteAnnotationStoreVersionsCommand = se_DeleteAnnotationStoreVersionsCommand;
560
448
  const se_DeleteReferenceCommand = async (input, context) => {
561
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
449
+ const b = (0, core_2.requestBuilder)(input, context);
562
450
  const headers = {};
563
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
564
- "/referencestore/{referenceStoreId}/reference/{id}";
565
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
566
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "referenceStoreId", () => input.referenceStoreId, "{referenceStoreId}", false);
451
+ b.bp("/referencestore/{referenceStoreId}/reference/{id}");
452
+ b.p("id", () => input.id, "{id}", false);
453
+ b.p("referenceStoreId", () => input.referenceStoreId, "{referenceStoreId}", false);
567
454
  let body;
568
455
  let { hostname: resolvedHostname } = await context.endpoint();
569
456
  if (context.disableHostPrefix !== true) {
@@ -572,22 +459,16 @@ const se_DeleteReferenceCommand = async (input, context) => {
572
459
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
573
460
  }
574
461
  }
575
- return new protocol_http_1.HttpRequest({
576
- protocol,
577
- hostname: resolvedHostname,
578
- port,
579
- method: "DELETE",
580
- headers,
581
- path: resolvedPath,
582
- body,
583
- });
462
+ b.hn(resolvedHostname);
463
+ b.m("DELETE").h(headers).b(body);
464
+ return b.build();
584
465
  };
585
466
  exports.se_DeleteReferenceCommand = se_DeleteReferenceCommand;
586
467
  const se_DeleteReferenceStoreCommand = async (input, context) => {
587
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
468
+ const b = (0, core_2.requestBuilder)(input, context);
588
469
  const headers = {};
589
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/referencestore/{id}";
590
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
470
+ b.bp("/referencestore/{id}");
471
+ b.p("id", () => input.id, "{id}", false);
591
472
  let body;
592
473
  let { hostname: resolvedHostname } = await context.endpoint();
593
474
  if (context.disableHostPrefix !== true) {
@@ -596,22 +477,16 @@ const se_DeleteReferenceStoreCommand = async (input, context) => {
596
477
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
597
478
  }
598
479
  }
599
- return new protocol_http_1.HttpRequest({
600
- protocol,
601
- hostname: resolvedHostname,
602
- port,
603
- method: "DELETE",
604
- headers,
605
- path: resolvedPath,
606
- body,
607
- });
480
+ b.hn(resolvedHostname);
481
+ b.m("DELETE").h(headers).b(body);
482
+ return b.build();
608
483
  };
609
484
  exports.se_DeleteReferenceStoreCommand = se_DeleteReferenceStoreCommand;
610
485
  const se_DeleteRunCommand = async (input, context) => {
611
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
486
+ const b = (0, core_2.requestBuilder)(input, context);
612
487
  const headers = {};
613
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/run/{id}";
614
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
488
+ b.bp("/run/{id}");
489
+ b.p("id", () => input.id, "{id}", false);
615
490
  let body;
616
491
  let { hostname: resolvedHostname } = await context.endpoint();
617
492
  if (context.disableHostPrefix !== true) {
@@ -620,22 +495,16 @@ const se_DeleteRunCommand = async (input, context) => {
620
495
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
621
496
  }
622
497
  }
623
- return new protocol_http_1.HttpRequest({
624
- protocol,
625
- hostname: resolvedHostname,
626
- port,
627
- method: "DELETE",
628
- headers,
629
- path: resolvedPath,
630
- body,
631
- });
498
+ b.hn(resolvedHostname);
499
+ b.m("DELETE").h(headers).b(body);
500
+ return b.build();
632
501
  };
633
502
  exports.se_DeleteRunCommand = se_DeleteRunCommand;
634
503
  const se_DeleteRunGroupCommand = async (input, context) => {
635
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
504
+ const b = (0, core_2.requestBuilder)(input, context);
636
505
  const headers = {};
637
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/runGroup/{id}";
638
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
506
+ b.bp("/runGroup/{id}");
507
+ b.p("id", () => input.id, "{id}", false);
639
508
  let body;
640
509
  let { hostname: resolvedHostname } = await context.endpoint();
641
510
  if (context.disableHostPrefix !== true) {
@@ -644,22 +513,16 @@ const se_DeleteRunGroupCommand = async (input, context) => {
644
513
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
645
514
  }
646
515
  }
647
- return new protocol_http_1.HttpRequest({
648
- protocol,
649
- hostname: resolvedHostname,
650
- port,
651
- method: "DELETE",
652
- headers,
653
- path: resolvedPath,
654
- body,
655
- });
516
+ b.hn(resolvedHostname);
517
+ b.m("DELETE").h(headers).b(body);
518
+ return b.build();
656
519
  };
657
520
  exports.se_DeleteRunGroupCommand = se_DeleteRunGroupCommand;
658
521
  const se_DeleteSequenceStoreCommand = async (input, context) => {
659
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
522
+ const b = (0, core_2.requestBuilder)(input, context);
660
523
  const headers = {};
661
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sequencestore/{id}";
662
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
524
+ b.bp("/sequencestore/{id}");
525
+ b.p("id", () => input.id, "{id}", false);
663
526
  let body;
664
527
  let { hostname: resolvedHostname } = await context.endpoint();
665
528
  if (context.disableHostPrefix !== true) {
@@ -668,22 +531,16 @@ const se_DeleteSequenceStoreCommand = async (input, context) => {
668
531
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
669
532
  }
670
533
  }
671
- return new protocol_http_1.HttpRequest({
672
- protocol,
673
- hostname: resolvedHostname,
674
- port,
675
- method: "DELETE",
676
- headers,
677
- path: resolvedPath,
678
- body,
679
- });
534
+ b.hn(resolvedHostname);
535
+ b.m("DELETE").h(headers).b(body);
536
+ return b.build();
680
537
  };
681
538
  exports.se_DeleteSequenceStoreCommand = se_DeleteSequenceStoreCommand;
682
539
  const se_DeleteShareCommand = async (input, context) => {
683
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
540
+ const b = (0, core_2.requestBuilder)(input, context);
684
541
  const headers = {};
685
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/share/{shareId}";
686
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "shareId", () => input.shareId, "{shareId}", false);
542
+ b.bp("/share/{shareId}");
543
+ b.p("shareId", () => input.shareId, "{shareId}", false);
687
544
  let body;
688
545
  let { hostname: resolvedHostname } = await context.endpoint();
689
546
  if (context.disableHostPrefix !== true) {
@@ -692,24 +549,18 @@ const se_DeleteShareCommand = async (input, context) => {
692
549
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
693
550
  }
694
551
  }
695
- return new protocol_http_1.HttpRequest({
696
- protocol,
697
- hostname: resolvedHostname,
698
- port,
699
- method: "DELETE",
700
- headers,
701
- path: resolvedPath,
702
- body,
703
- });
552
+ b.hn(resolvedHostname);
553
+ b.m("DELETE").h(headers).b(body);
554
+ return b.build();
704
555
  };
705
556
  exports.se_DeleteShareCommand = se_DeleteShareCommand;
706
557
  const se_DeleteVariantStoreCommand = async (input, context) => {
707
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
558
+ const b = (0, core_2.requestBuilder)(input, context);
708
559
  const headers = {};
709
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/variantStore/{name}";
710
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
560
+ b.bp("/variantStore/{name}");
561
+ b.p("name", () => input.name, "{name}", false);
711
562
  const query = (0, smithy_client_1.map)({
712
- force: [() => input.force !== void 0, () => input.force.toString()],
563
+ [_f]: [() => input.force !== void 0, () => input[_f].toString()],
713
564
  });
714
565
  let body;
715
566
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -719,23 +570,16 @@ const se_DeleteVariantStoreCommand = async (input, context) => {
719
570
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
720
571
  }
721
572
  }
722
- return new protocol_http_1.HttpRequest({
723
- protocol,
724
- hostname: resolvedHostname,
725
- port,
726
- method: "DELETE",
727
- headers,
728
- path: resolvedPath,
729
- query,
730
- body,
731
- });
573
+ b.hn(resolvedHostname);
574
+ b.m("DELETE").h(headers).q(query).b(body);
575
+ return b.build();
732
576
  };
733
577
  exports.se_DeleteVariantStoreCommand = se_DeleteVariantStoreCommand;
734
578
  const se_DeleteWorkflowCommand = async (input, context) => {
735
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
579
+ const b = (0, core_2.requestBuilder)(input, context);
736
580
  const headers = {};
737
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflow/{id}";
738
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
581
+ b.bp("/workflow/{id}");
582
+ b.p("id", () => input.id, "{id}", false);
739
583
  let body;
740
584
  let { hostname: resolvedHostname } = await context.endpoint();
741
585
  if (context.disableHostPrefix !== true) {
@@ -744,22 +588,16 @@ const se_DeleteWorkflowCommand = async (input, context) => {
744
588
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
745
589
  }
746
590
  }
747
- return new protocol_http_1.HttpRequest({
748
- protocol,
749
- hostname: resolvedHostname,
750
- port,
751
- method: "DELETE",
752
- headers,
753
- path: resolvedPath,
754
- body,
755
- });
591
+ b.hn(resolvedHostname);
592
+ b.m("DELETE").h(headers).b(body);
593
+ return b.build();
756
594
  };
757
595
  exports.se_DeleteWorkflowCommand = se_DeleteWorkflowCommand;
758
596
  const se_GetAnnotationImportJobCommand = async (input, context) => {
759
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
597
+ const b = (0, core_2.requestBuilder)(input, context);
760
598
  const headers = {};
761
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/import/annotation/{jobId}";
762
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
599
+ b.bp("/import/annotation/{jobId}");
600
+ b.p("jobId", () => input.jobId, "{jobId}", false);
763
601
  let body;
764
602
  let { hostname: resolvedHostname } = await context.endpoint();
765
603
  if (context.disableHostPrefix !== true) {
@@ -768,22 +606,16 @@ const se_GetAnnotationImportJobCommand = async (input, context) => {
768
606
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
769
607
  }
770
608
  }
771
- return new protocol_http_1.HttpRequest({
772
- protocol,
773
- hostname: resolvedHostname,
774
- port,
775
- method: "GET",
776
- headers,
777
- path: resolvedPath,
778
- body,
779
- });
609
+ b.hn(resolvedHostname);
610
+ b.m("GET").h(headers).b(body);
611
+ return b.build();
780
612
  };
781
613
  exports.se_GetAnnotationImportJobCommand = se_GetAnnotationImportJobCommand;
782
614
  const se_GetAnnotationStoreCommand = async (input, context) => {
783
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
615
+ const b = (0, core_2.requestBuilder)(input, context);
784
616
  const headers = {};
785
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/annotationStore/{name}";
786
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
617
+ b.bp("/annotationStore/{name}");
618
+ b.p("name", () => input.name, "{name}", false);
787
619
  let body;
788
620
  let { hostname: resolvedHostname } = await context.endpoint();
789
621
  if (context.disableHostPrefix !== true) {
@@ -792,24 +624,17 @@ const se_GetAnnotationStoreCommand = async (input, context) => {
792
624
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
793
625
  }
794
626
  }
795
- return new protocol_http_1.HttpRequest({
796
- protocol,
797
- hostname: resolvedHostname,
798
- port,
799
- method: "GET",
800
- headers,
801
- path: resolvedPath,
802
- body,
803
- });
627
+ b.hn(resolvedHostname);
628
+ b.m("GET").h(headers).b(body);
629
+ return b.build();
804
630
  };
805
631
  exports.se_GetAnnotationStoreCommand = se_GetAnnotationStoreCommand;
806
632
  const se_GetAnnotationStoreVersionCommand = async (input, context) => {
807
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
633
+ const b = (0, core_2.requestBuilder)(input, context);
808
634
  const headers = {};
809
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
810
- "/annotationStore/{name}/version/{versionName}";
811
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
812
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "versionName", () => input.versionName, "{versionName}", false);
635
+ b.bp("/annotationStore/{name}/version/{versionName}");
636
+ b.p("name", () => input.name, "{name}", false);
637
+ b.p("versionName", () => input.versionName, "{versionName}", false);
813
638
  let body;
814
639
  let { hostname: resolvedHostname } = await context.endpoint();
815
640
  if (context.disableHostPrefix !== true) {
@@ -818,27 +643,20 @@ const se_GetAnnotationStoreVersionCommand = async (input, context) => {
818
643
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
819
644
  }
820
645
  }
821
- return new protocol_http_1.HttpRequest({
822
- protocol,
823
- hostname: resolvedHostname,
824
- port,
825
- method: "GET",
826
- headers,
827
- path: resolvedPath,
828
- body,
829
- });
646
+ b.hn(resolvedHostname);
647
+ b.m("GET").h(headers).b(body);
648
+ return b.build();
830
649
  };
831
650
  exports.se_GetAnnotationStoreVersionCommand = se_GetAnnotationStoreVersionCommand;
832
651
  const se_GetReadSetCommand = async (input, context) => {
833
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
652
+ const b = (0, core_2.requestBuilder)(input, context);
834
653
  const headers = {};
835
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
836
- "/sequencestore/{sequenceStoreId}/readset/{id}";
837
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
838
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
654
+ b.bp("/sequencestore/{sequenceStoreId}/readset/{id}");
655
+ b.p("id", () => input.id, "{id}", false);
656
+ b.p("sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
839
657
  const query = (0, smithy_client_1.map)({
840
- file: [, input.file],
841
- partNumber: [(0, smithy_client_1.expectNonNull)(input.partNumber, `partNumber`) != null, () => input.partNumber.toString()],
658
+ [_fi]: [, input[_fi]],
659
+ [_pN]: [(0, smithy_client_1.expectNonNull)(input.partNumber, `partNumber`) != null, () => input[_pN].toString()],
842
660
  });
843
661
  let body;
844
662
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -848,25 +666,17 @@ const se_GetReadSetCommand = async (input, context) => {
848
666
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
849
667
  }
850
668
  }
851
- return new protocol_http_1.HttpRequest({
852
- protocol,
853
- hostname: resolvedHostname,
854
- port,
855
- method: "GET",
856
- headers,
857
- path: resolvedPath,
858
- query,
859
- body,
860
- });
669
+ b.hn(resolvedHostname);
670
+ b.m("GET").h(headers).q(query).b(body);
671
+ return b.build();
861
672
  };
862
673
  exports.se_GetReadSetCommand = se_GetReadSetCommand;
863
674
  const se_GetReadSetActivationJobCommand = async (input, context) => {
864
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
675
+ const b = (0, core_2.requestBuilder)(input, context);
865
676
  const headers = {};
866
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
867
- "/sequencestore/{sequenceStoreId}/activationjob/{id}";
868
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
869
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
677
+ b.bp("/sequencestore/{sequenceStoreId}/activationjob/{id}");
678
+ b.p("id", () => input.id, "{id}", false);
679
+ b.p("sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
870
680
  let body;
871
681
  let { hostname: resolvedHostname } = await context.endpoint();
872
682
  if (context.disableHostPrefix !== true) {
@@ -875,24 +685,17 @@ const se_GetReadSetActivationJobCommand = async (input, context) => {
875
685
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
876
686
  }
877
687
  }
878
- return new protocol_http_1.HttpRequest({
879
- protocol,
880
- hostname: resolvedHostname,
881
- port,
882
- method: "GET",
883
- headers,
884
- path: resolvedPath,
885
- body,
886
- });
688
+ b.hn(resolvedHostname);
689
+ b.m("GET").h(headers).b(body);
690
+ return b.build();
887
691
  };
888
692
  exports.se_GetReadSetActivationJobCommand = se_GetReadSetActivationJobCommand;
889
693
  const se_GetReadSetExportJobCommand = async (input, context) => {
890
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
694
+ const b = (0, core_2.requestBuilder)(input, context);
891
695
  const headers = {};
892
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
893
- "/sequencestore/{sequenceStoreId}/exportjob/{id}";
894
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
895
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
696
+ b.bp("/sequencestore/{sequenceStoreId}/exportjob/{id}");
697
+ b.p("sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
698
+ b.p("id", () => input.id, "{id}", false);
896
699
  let body;
897
700
  let { hostname: resolvedHostname } = await context.endpoint();
898
701
  if (context.disableHostPrefix !== true) {
@@ -901,24 +704,17 @@ const se_GetReadSetExportJobCommand = async (input, context) => {
901
704
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
902
705
  }
903
706
  }
904
- return new protocol_http_1.HttpRequest({
905
- protocol,
906
- hostname: resolvedHostname,
907
- port,
908
- method: "GET",
909
- headers,
910
- path: resolvedPath,
911
- body,
912
- });
707
+ b.hn(resolvedHostname);
708
+ b.m("GET").h(headers).b(body);
709
+ return b.build();
913
710
  };
914
711
  exports.se_GetReadSetExportJobCommand = se_GetReadSetExportJobCommand;
915
712
  const se_GetReadSetImportJobCommand = async (input, context) => {
916
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
713
+ const b = (0, core_2.requestBuilder)(input, context);
917
714
  const headers = {};
918
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
919
- "/sequencestore/{sequenceStoreId}/importjob/{id}";
920
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
921
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
715
+ b.bp("/sequencestore/{sequenceStoreId}/importjob/{id}");
716
+ b.p("id", () => input.id, "{id}", false);
717
+ b.p("sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
922
718
  let body;
923
719
  let { hostname: resolvedHostname } = await context.endpoint();
924
720
  if (context.disableHostPrefix !== true) {
@@ -927,24 +723,17 @@ const se_GetReadSetImportJobCommand = async (input, context) => {
927
723
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
928
724
  }
929
725
  }
930
- return new protocol_http_1.HttpRequest({
931
- protocol,
932
- hostname: resolvedHostname,
933
- port,
934
- method: "GET",
935
- headers,
936
- path: resolvedPath,
937
- body,
938
- });
726
+ b.hn(resolvedHostname);
727
+ b.m("GET").h(headers).b(body);
728
+ return b.build();
939
729
  };
940
730
  exports.se_GetReadSetImportJobCommand = se_GetReadSetImportJobCommand;
941
731
  const se_GetReadSetMetadataCommand = async (input, context) => {
942
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
732
+ const b = (0, core_2.requestBuilder)(input, context);
943
733
  const headers = {};
944
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
945
- "/sequencestore/{sequenceStoreId}/readset/{id}/metadata";
946
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
947
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
734
+ b.bp("/sequencestore/{sequenceStoreId}/readset/{id}/metadata");
735
+ b.p("id", () => input.id, "{id}", false);
736
+ b.p("sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
948
737
  let body;
949
738
  let { hostname: resolvedHostname } = await context.endpoint();
950
739
  if (context.disableHostPrefix !== true) {
@@ -953,29 +742,22 @@ const se_GetReadSetMetadataCommand = async (input, context) => {
953
742
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
954
743
  }
955
744
  }
956
- return new protocol_http_1.HttpRequest({
957
- protocol,
958
- hostname: resolvedHostname,
959
- port,
960
- method: "GET",
961
- headers,
962
- path: resolvedPath,
963
- body,
964
- });
745
+ b.hn(resolvedHostname);
746
+ b.m("GET").h(headers).b(body);
747
+ return b.build();
965
748
  };
966
749
  exports.se_GetReadSetMetadataCommand = se_GetReadSetMetadataCommand;
967
750
  const se_GetReferenceCommand = async (input, context) => {
968
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
751
+ const b = (0, core_2.requestBuilder)(input, context);
969
752
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
970
- range: input.range,
753
+ [_r]: input[_r],
971
754
  });
972
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
973
- "/referencestore/{referenceStoreId}/reference/{id}";
974
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
975
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "referenceStoreId", () => input.referenceStoreId, "{referenceStoreId}", false);
755
+ b.bp("/referencestore/{referenceStoreId}/reference/{id}");
756
+ b.p("id", () => input.id, "{id}", false);
757
+ b.p("referenceStoreId", () => input.referenceStoreId, "{referenceStoreId}", false);
976
758
  const query = (0, smithy_client_1.map)({
977
- partNumber: [(0, smithy_client_1.expectNonNull)(input.partNumber, `partNumber`) != null, () => input.partNumber.toString()],
978
- file: [, input.file],
759
+ [_pN]: [(0, smithy_client_1.expectNonNull)(input.partNumber, `partNumber`) != null, () => input[_pN].toString()],
760
+ [_fi]: [, input[_fi]],
979
761
  });
980
762
  let body;
981
763
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -985,25 +767,17 @@ const se_GetReferenceCommand = async (input, context) => {
985
767
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
986
768
  }
987
769
  }
988
- return new protocol_http_1.HttpRequest({
989
- protocol,
990
- hostname: resolvedHostname,
991
- port,
992
- method: "GET",
993
- headers,
994
- path: resolvedPath,
995
- query,
996
- body,
997
- });
770
+ b.hn(resolvedHostname);
771
+ b.m("GET").h(headers).q(query).b(body);
772
+ return b.build();
998
773
  };
999
774
  exports.se_GetReferenceCommand = se_GetReferenceCommand;
1000
775
  const se_GetReferenceImportJobCommand = async (input, context) => {
1001
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
776
+ const b = (0, core_2.requestBuilder)(input, context);
1002
777
  const headers = {};
1003
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1004
- "/referencestore/{referenceStoreId}/importjob/{id}";
1005
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
1006
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "referenceStoreId", () => input.referenceStoreId, "{referenceStoreId}", false);
778
+ b.bp("/referencestore/{referenceStoreId}/importjob/{id}");
779
+ b.p("id", () => input.id, "{id}", false);
780
+ b.p("referenceStoreId", () => input.referenceStoreId, "{referenceStoreId}", false);
1007
781
  let body;
1008
782
  let { hostname: resolvedHostname } = await context.endpoint();
1009
783
  if (context.disableHostPrefix !== true) {
@@ -1012,24 +786,17 @@ const se_GetReferenceImportJobCommand = async (input, context) => {
1012
786
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1013
787
  }
1014
788
  }
1015
- return new protocol_http_1.HttpRequest({
1016
- protocol,
1017
- hostname: resolvedHostname,
1018
- port,
1019
- method: "GET",
1020
- headers,
1021
- path: resolvedPath,
1022
- body,
1023
- });
789
+ b.hn(resolvedHostname);
790
+ b.m("GET").h(headers).b(body);
791
+ return b.build();
1024
792
  };
1025
793
  exports.se_GetReferenceImportJobCommand = se_GetReferenceImportJobCommand;
1026
794
  const se_GetReferenceMetadataCommand = async (input, context) => {
1027
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
795
+ const b = (0, core_2.requestBuilder)(input, context);
1028
796
  const headers = {};
1029
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1030
- "/referencestore/{referenceStoreId}/reference/{id}/metadata";
1031
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
1032
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "referenceStoreId", () => input.referenceStoreId, "{referenceStoreId}", false);
797
+ b.bp("/referencestore/{referenceStoreId}/reference/{id}/metadata");
798
+ b.p("id", () => input.id, "{id}", false);
799
+ b.p("referenceStoreId", () => input.referenceStoreId, "{referenceStoreId}", false);
1033
800
  let body;
1034
801
  let { hostname: resolvedHostname } = await context.endpoint();
1035
802
  if (context.disableHostPrefix !== true) {
@@ -1038,22 +805,16 @@ const se_GetReferenceMetadataCommand = async (input, context) => {
1038
805
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1039
806
  }
1040
807
  }
1041
- return new protocol_http_1.HttpRequest({
1042
- protocol,
1043
- hostname: resolvedHostname,
1044
- port,
1045
- method: "GET",
1046
- headers,
1047
- path: resolvedPath,
1048
- body,
1049
- });
808
+ b.hn(resolvedHostname);
809
+ b.m("GET").h(headers).b(body);
810
+ return b.build();
1050
811
  };
1051
812
  exports.se_GetReferenceMetadataCommand = se_GetReferenceMetadataCommand;
1052
813
  const se_GetReferenceStoreCommand = async (input, context) => {
1053
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
814
+ const b = (0, core_2.requestBuilder)(input, context);
1054
815
  const headers = {};
1055
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/referencestore/{id}";
1056
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
816
+ b.bp("/referencestore/{id}");
817
+ b.p("id", () => input.id, "{id}", false);
1057
818
  let body;
1058
819
  let { hostname: resolvedHostname } = await context.endpoint();
1059
820
  if (context.disableHostPrefix !== true) {
@@ -1062,24 +823,18 @@ const se_GetReferenceStoreCommand = async (input, context) => {
1062
823
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1063
824
  }
1064
825
  }
1065
- return new protocol_http_1.HttpRequest({
1066
- protocol,
1067
- hostname: resolvedHostname,
1068
- port,
1069
- method: "GET",
1070
- headers,
1071
- path: resolvedPath,
1072
- body,
1073
- });
826
+ b.hn(resolvedHostname);
827
+ b.m("GET").h(headers).b(body);
828
+ return b.build();
1074
829
  };
1075
830
  exports.se_GetReferenceStoreCommand = se_GetReferenceStoreCommand;
1076
831
  const se_GetRunCommand = async (input, context) => {
1077
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
832
+ const b = (0, core_2.requestBuilder)(input, context);
1078
833
  const headers = {};
1079
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/run/{id}";
1080
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
834
+ b.bp("/run/{id}");
835
+ b.p("id", () => input.id, "{id}", false);
1081
836
  const query = (0, smithy_client_1.map)({
1082
- export: [() => input.export !== void 0, () => (input.export || []).map((_entry) => _entry)],
837
+ [_e]: [() => input.export !== void 0, () => (input[_e] || []).map((_entry) => _entry)],
1083
838
  });
1084
839
  let body;
1085
840
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1089,23 +844,16 @@ const se_GetRunCommand = async (input, context) => {
1089
844
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1090
845
  }
1091
846
  }
1092
- return new protocol_http_1.HttpRequest({
1093
- protocol,
1094
- hostname: resolvedHostname,
1095
- port,
1096
- method: "GET",
1097
- headers,
1098
- path: resolvedPath,
1099
- query,
1100
- body,
1101
- });
847
+ b.hn(resolvedHostname);
848
+ b.m("GET").h(headers).q(query).b(body);
849
+ return b.build();
1102
850
  };
1103
851
  exports.se_GetRunCommand = se_GetRunCommand;
1104
852
  const se_GetRunGroupCommand = async (input, context) => {
1105
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
853
+ const b = (0, core_2.requestBuilder)(input, context);
1106
854
  const headers = {};
1107
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/runGroup/{id}";
1108
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
855
+ b.bp("/runGroup/{id}");
856
+ b.p("id", () => input.id, "{id}", false);
1109
857
  let body;
1110
858
  let { hostname: resolvedHostname } = await context.endpoint();
1111
859
  if (context.disableHostPrefix !== true) {
@@ -1114,23 +862,17 @@ const se_GetRunGroupCommand = async (input, context) => {
1114
862
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1115
863
  }
1116
864
  }
1117
- return new protocol_http_1.HttpRequest({
1118
- protocol,
1119
- hostname: resolvedHostname,
1120
- port,
1121
- method: "GET",
1122
- headers,
1123
- path: resolvedPath,
1124
- body,
1125
- });
865
+ b.hn(resolvedHostname);
866
+ b.m("GET").h(headers).b(body);
867
+ return b.build();
1126
868
  };
1127
869
  exports.se_GetRunGroupCommand = se_GetRunGroupCommand;
1128
870
  const se_GetRunTaskCommand = async (input, context) => {
1129
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
871
+ const b = (0, core_2.requestBuilder)(input, context);
1130
872
  const headers = {};
1131
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/run/{id}/task/{taskId}";
1132
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
1133
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "taskId", () => input.taskId, "{taskId}", false);
873
+ b.bp("/run/{id}/task/{taskId}");
874
+ b.p("id", () => input.id, "{id}", false);
875
+ b.p("taskId", () => input.taskId, "{taskId}", false);
1134
876
  let body;
1135
877
  let { hostname: resolvedHostname } = await context.endpoint();
1136
878
  if (context.disableHostPrefix !== true) {
@@ -1139,22 +881,16 @@ const se_GetRunTaskCommand = async (input, context) => {
1139
881
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1140
882
  }
1141
883
  }
1142
- return new protocol_http_1.HttpRequest({
1143
- protocol,
1144
- hostname: resolvedHostname,
1145
- port,
1146
- method: "GET",
1147
- headers,
1148
- path: resolvedPath,
1149
- body,
1150
- });
884
+ b.hn(resolvedHostname);
885
+ b.m("GET").h(headers).b(body);
886
+ return b.build();
1151
887
  };
1152
888
  exports.se_GetRunTaskCommand = se_GetRunTaskCommand;
1153
889
  const se_GetSequenceStoreCommand = async (input, context) => {
1154
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
890
+ const b = (0, core_2.requestBuilder)(input, context);
1155
891
  const headers = {};
1156
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sequencestore/{id}";
1157
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
892
+ b.bp("/sequencestore/{id}");
893
+ b.p("id", () => input.id, "{id}", false);
1158
894
  let body;
1159
895
  let { hostname: resolvedHostname } = await context.endpoint();
1160
896
  if (context.disableHostPrefix !== true) {
@@ -1163,22 +899,16 @@ const se_GetSequenceStoreCommand = async (input, context) => {
1163
899
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1164
900
  }
1165
901
  }
1166
- return new protocol_http_1.HttpRequest({
1167
- protocol,
1168
- hostname: resolvedHostname,
1169
- port,
1170
- method: "GET",
1171
- headers,
1172
- path: resolvedPath,
1173
- body,
1174
- });
902
+ b.hn(resolvedHostname);
903
+ b.m("GET").h(headers).b(body);
904
+ return b.build();
1175
905
  };
1176
906
  exports.se_GetSequenceStoreCommand = se_GetSequenceStoreCommand;
1177
907
  const se_GetShareCommand = async (input, context) => {
1178
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
908
+ const b = (0, core_2.requestBuilder)(input, context);
1179
909
  const headers = {};
1180
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/share/{shareId}";
1181
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "shareId", () => input.shareId, "{shareId}", false);
910
+ b.bp("/share/{shareId}");
911
+ b.p("shareId", () => input.shareId, "{shareId}", false);
1182
912
  let body;
1183
913
  let { hostname: resolvedHostname } = await context.endpoint();
1184
914
  if (context.disableHostPrefix !== true) {
@@ -1187,22 +917,16 @@ const se_GetShareCommand = async (input, context) => {
1187
917
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1188
918
  }
1189
919
  }
1190
- return new protocol_http_1.HttpRequest({
1191
- protocol,
1192
- hostname: resolvedHostname,
1193
- port,
1194
- method: "GET",
1195
- headers,
1196
- path: resolvedPath,
1197
- body,
1198
- });
920
+ b.hn(resolvedHostname);
921
+ b.m("GET").h(headers).b(body);
922
+ return b.build();
1199
923
  };
1200
924
  exports.se_GetShareCommand = se_GetShareCommand;
1201
925
  const se_GetVariantImportJobCommand = async (input, context) => {
1202
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
926
+ const b = (0, core_2.requestBuilder)(input, context);
1203
927
  const headers = {};
1204
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/import/variant/{jobId}";
1205
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
928
+ b.bp("/import/variant/{jobId}");
929
+ b.p("jobId", () => input.jobId, "{jobId}", false);
1206
930
  let body;
1207
931
  let { hostname: resolvedHostname } = await context.endpoint();
1208
932
  if (context.disableHostPrefix !== true) {
@@ -1211,22 +935,16 @@ const se_GetVariantImportJobCommand = async (input, context) => {
1211
935
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1212
936
  }
1213
937
  }
1214
- return new protocol_http_1.HttpRequest({
1215
- protocol,
1216
- hostname: resolvedHostname,
1217
- port,
1218
- method: "GET",
1219
- headers,
1220
- path: resolvedPath,
1221
- body,
1222
- });
938
+ b.hn(resolvedHostname);
939
+ b.m("GET").h(headers).b(body);
940
+ return b.build();
1223
941
  };
1224
942
  exports.se_GetVariantImportJobCommand = se_GetVariantImportJobCommand;
1225
943
  const se_GetVariantStoreCommand = async (input, context) => {
1226
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
944
+ const b = (0, core_2.requestBuilder)(input, context);
1227
945
  const headers = {};
1228
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/variantStore/{name}";
1229
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
946
+ b.bp("/variantStore/{name}");
947
+ b.p("name", () => input.name, "{name}", false);
1230
948
  let body;
1231
949
  let { hostname: resolvedHostname } = await context.endpoint();
1232
950
  if (context.disableHostPrefix !== true) {
@@ -1235,25 +953,19 @@ const se_GetVariantStoreCommand = async (input, context) => {
1235
953
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1236
954
  }
1237
955
  }
1238
- return new protocol_http_1.HttpRequest({
1239
- protocol,
1240
- hostname: resolvedHostname,
1241
- port,
1242
- method: "GET",
1243
- headers,
1244
- path: resolvedPath,
1245
- body,
1246
- });
956
+ b.hn(resolvedHostname);
957
+ b.m("GET").h(headers).b(body);
958
+ return b.build();
1247
959
  };
1248
960
  exports.se_GetVariantStoreCommand = se_GetVariantStoreCommand;
1249
961
  const se_GetWorkflowCommand = async (input, context) => {
1250
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
962
+ const b = (0, core_2.requestBuilder)(input, context);
1251
963
  const headers = {};
1252
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflow/{id}";
1253
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
964
+ b.bp("/workflow/{id}");
965
+ b.p("id", () => input.id, "{id}", false);
1254
966
  const query = (0, smithy_client_1.map)({
1255
- type: [, input.type],
1256
- export: [() => input.export !== void 0, () => (input.export || []).map((_entry) => _entry)],
967
+ [_t]: [, input[_t]],
968
+ [_e]: [() => input.export !== void 0, () => (input[_e] || []).map((_entry) => _entry)],
1257
969
  });
1258
970
  let body;
1259
971
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1263,27 +975,20 @@ const se_GetWorkflowCommand = async (input, context) => {
1263
975
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1264
976
  }
1265
977
  }
1266
- return new protocol_http_1.HttpRequest({
1267
- protocol,
1268
- hostname: resolvedHostname,
1269
- port,
1270
- method: "GET",
1271
- headers,
1272
- path: resolvedPath,
1273
- query,
1274
- body,
1275
- });
978
+ b.hn(resolvedHostname);
979
+ b.m("GET").h(headers).q(query).b(body);
980
+ return b.build();
1276
981
  };
1277
982
  exports.se_GetWorkflowCommand = se_GetWorkflowCommand;
1278
983
  const se_ListAnnotationImportJobsCommand = async (input, context) => {
1279
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
984
+ const b = (0, core_2.requestBuilder)(input, context);
1280
985
  const headers = {
1281
986
  "content-type": "application/json",
1282
987
  };
1283
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/import/annotations";
988
+ b.bp("/import/annotations");
1284
989
  const query = (0, smithy_client_1.map)({
1285
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1286
- nextToken: [, input.nextToken],
990
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
991
+ [_nT]: [, input[_nT]],
1287
992
  });
1288
993
  let body;
1289
994
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -1297,27 +1002,20 @@ const se_ListAnnotationImportJobsCommand = async (input, context) => {
1297
1002
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1298
1003
  }
1299
1004
  }
1300
- return new protocol_http_1.HttpRequest({
1301
- protocol,
1302
- hostname: resolvedHostname,
1303
- port,
1304
- method: "POST",
1305
- headers,
1306
- path: resolvedPath,
1307
- query,
1308
- body,
1309
- });
1005
+ b.hn(resolvedHostname);
1006
+ b.m("POST").h(headers).q(query).b(body);
1007
+ return b.build();
1310
1008
  };
1311
1009
  exports.se_ListAnnotationImportJobsCommand = se_ListAnnotationImportJobsCommand;
1312
1010
  const se_ListAnnotationStoresCommand = async (input, context) => {
1313
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1011
+ const b = (0, core_2.requestBuilder)(input, context);
1314
1012
  const headers = {
1315
1013
  "content-type": "application/json",
1316
1014
  };
1317
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/annotationStores";
1015
+ b.bp("/annotationStores");
1318
1016
  const query = (0, smithy_client_1.map)({
1319
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1320
- nextToken: [, input.nextToken],
1017
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1018
+ [_nT]: [, input[_nT]],
1321
1019
  });
1322
1020
  let body;
1323
1021
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -1331,28 +1029,21 @@ const se_ListAnnotationStoresCommand = async (input, context) => {
1331
1029
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1332
1030
  }
1333
1031
  }
1334
- return new protocol_http_1.HttpRequest({
1335
- protocol,
1336
- hostname: resolvedHostname,
1337
- port,
1338
- method: "POST",
1339
- headers,
1340
- path: resolvedPath,
1341
- query,
1342
- body,
1343
- });
1032
+ b.hn(resolvedHostname);
1033
+ b.m("POST").h(headers).q(query).b(body);
1034
+ return b.build();
1344
1035
  };
1345
1036
  exports.se_ListAnnotationStoresCommand = se_ListAnnotationStoresCommand;
1346
1037
  const se_ListAnnotationStoreVersionsCommand = async (input, context) => {
1347
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1038
+ const b = (0, core_2.requestBuilder)(input, context);
1348
1039
  const headers = {
1349
1040
  "content-type": "application/json",
1350
1041
  };
1351
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/annotationStore/{name}/versions";
1352
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
1042
+ b.bp("/annotationStore/{name}/versions");
1043
+ b.p("name", () => input.name, "{name}", false);
1353
1044
  const query = (0, smithy_client_1.map)({
1354
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1355
- nextToken: [, input.nextToken],
1045
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1046
+ [_nT]: [, input[_nT]],
1356
1047
  });
1357
1048
  let body;
1358
1049
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -1365,26 +1056,19 @@ const se_ListAnnotationStoreVersionsCommand = async (input, context) => {
1365
1056
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1366
1057
  }
1367
1058
  }
1368
- return new protocol_http_1.HttpRequest({
1369
- protocol,
1370
- hostname: resolvedHostname,
1371
- port,
1372
- method: "POST",
1373
- headers,
1374
- path: resolvedPath,
1375
- query,
1376
- body,
1377
- });
1059
+ b.hn(resolvedHostname);
1060
+ b.m("POST").h(headers).q(query).b(body);
1061
+ return b.build();
1378
1062
  };
1379
1063
  exports.se_ListAnnotationStoreVersionsCommand = se_ListAnnotationStoreVersionsCommand;
1380
1064
  const se_ListMultipartReadSetUploadsCommand = async (input, context) => {
1381
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1065
+ const b = (0, core_2.requestBuilder)(input, context);
1382
1066
  const headers = {};
1383
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sequencestore/{sequenceStoreId}/uploads";
1384
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
1067
+ b.bp("/sequencestore/{sequenceStoreId}/uploads");
1068
+ b.p("sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
1385
1069
  const query = (0, smithy_client_1.map)({
1386
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1387
- nextToken: [, input.nextToken],
1070
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1071
+ [_nT]: [, input[_nT]],
1388
1072
  });
1389
1073
  let body;
1390
1074
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1394,29 +1078,21 @@ const se_ListMultipartReadSetUploadsCommand = async (input, context) => {
1394
1078
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1395
1079
  }
1396
1080
  }
1397
- return new protocol_http_1.HttpRequest({
1398
- protocol,
1399
- hostname: resolvedHostname,
1400
- port,
1401
- method: "POST",
1402
- headers,
1403
- path: resolvedPath,
1404
- query,
1405
- body,
1406
- });
1081
+ b.hn(resolvedHostname);
1082
+ b.m("POST").h(headers).q(query).b(body);
1083
+ return b.build();
1407
1084
  };
1408
1085
  exports.se_ListMultipartReadSetUploadsCommand = se_ListMultipartReadSetUploadsCommand;
1409
1086
  const se_ListReadSetActivationJobsCommand = async (input, context) => {
1410
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1087
+ const b = (0, core_2.requestBuilder)(input, context);
1411
1088
  const headers = {
1412
1089
  "content-type": "application/json",
1413
1090
  };
1414
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1415
- "/sequencestore/{sequenceStoreId}/activationjobs";
1416
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
1091
+ b.bp("/sequencestore/{sequenceStoreId}/activationjobs");
1092
+ b.p("sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
1417
1093
  const query = (0, smithy_client_1.map)({
1418
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1419
- nextToken: [, input.nextToken],
1094
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1095
+ [_nT]: [, input[_nT]],
1420
1096
  });
1421
1097
  let body;
1422
1098
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -1429,29 +1105,21 @@ const se_ListReadSetActivationJobsCommand = async (input, context) => {
1429
1105
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1430
1106
  }
1431
1107
  }
1432
- return new protocol_http_1.HttpRequest({
1433
- protocol,
1434
- hostname: resolvedHostname,
1435
- port,
1436
- method: "POST",
1437
- headers,
1438
- path: resolvedPath,
1439
- query,
1440
- body,
1441
- });
1108
+ b.hn(resolvedHostname);
1109
+ b.m("POST").h(headers).q(query).b(body);
1110
+ return b.build();
1442
1111
  };
1443
1112
  exports.se_ListReadSetActivationJobsCommand = se_ListReadSetActivationJobsCommand;
1444
1113
  const se_ListReadSetExportJobsCommand = async (input, context) => {
1445
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1114
+ const b = (0, core_2.requestBuilder)(input, context);
1446
1115
  const headers = {
1447
1116
  "content-type": "application/json",
1448
1117
  };
1449
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1450
- "/sequencestore/{sequenceStoreId}/exportjobs";
1451
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
1118
+ b.bp("/sequencestore/{sequenceStoreId}/exportjobs");
1119
+ b.p("sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
1452
1120
  const query = (0, smithy_client_1.map)({
1453
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1454
- nextToken: [, input.nextToken],
1121
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1122
+ [_nT]: [, input[_nT]],
1455
1123
  });
1456
1124
  let body;
1457
1125
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -1464,29 +1132,21 @@ const se_ListReadSetExportJobsCommand = async (input, context) => {
1464
1132
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1465
1133
  }
1466
1134
  }
1467
- return new protocol_http_1.HttpRequest({
1468
- protocol,
1469
- hostname: resolvedHostname,
1470
- port,
1471
- method: "POST",
1472
- headers,
1473
- path: resolvedPath,
1474
- query,
1475
- body,
1476
- });
1135
+ b.hn(resolvedHostname);
1136
+ b.m("POST").h(headers).q(query).b(body);
1137
+ return b.build();
1477
1138
  };
1478
1139
  exports.se_ListReadSetExportJobsCommand = se_ListReadSetExportJobsCommand;
1479
1140
  const se_ListReadSetImportJobsCommand = async (input, context) => {
1480
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1141
+ const b = (0, core_2.requestBuilder)(input, context);
1481
1142
  const headers = {
1482
1143
  "content-type": "application/json",
1483
1144
  };
1484
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1485
- "/sequencestore/{sequenceStoreId}/importjobs";
1486
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
1145
+ b.bp("/sequencestore/{sequenceStoreId}/importjobs");
1146
+ b.p("sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
1487
1147
  const query = (0, smithy_client_1.map)({
1488
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1489
- nextToken: [, input.nextToken],
1148
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1149
+ [_nT]: [, input[_nT]],
1490
1150
  });
1491
1151
  let body;
1492
1152
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -1499,28 +1159,21 @@ const se_ListReadSetImportJobsCommand = async (input, context) => {
1499
1159
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1500
1160
  }
1501
1161
  }
1502
- return new protocol_http_1.HttpRequest({
1503
- protocol,
1504
- hostname: resolvedHostname,
1505
- port,
1506
- method: "POST",
1507
- headers,
1508
- path: resolvedPath,
1509
- query,
1510
- body,
1511
- });
1162
+ b.hn(resolvedHostname);
1163
+ b.m("POST").h(headers).q(query).b(body);
1164
+ return b.build();
1512
1165
  };
1513
1166
  exports.se_ListReadSetImportJobsCommand = se_ListReadSetImportJobsCommand;
1514
1167
  const se_ListReadSetsCommand = async (input, context) => {
1515
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1168
+ const b = (0, core_2.requestBuilder)(input, context);
1516
1169
  const headers = {
1517
1170
  "content-type": "application/json",
1518
1171
  };
1519
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sequencestore/{sequenceStoreId}/readsets";
1520
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
1172
+ b.bp("/sequencestore/{sequenceStoreId}/readsets");
1173
+ b.p("sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
1521
1174
  const query = (0, smithy_client_1.map)({
1522
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1523
- nextToken: [, input.nextToken],
1175
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1176
+ [_nT]: [, input[_nT]],
1524
1177
  });
1525
1178
  let body;
1526
1179
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -1533,30 +1186,22 @@ const se_ListReadSetsCommand = async (input, context) => {
1533
1186
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1534
1187
  }
1535
1188
  }
1536
- return new protocol_http_1.HttpRequest({
1537
- protocol,
1538
- hostname: resolvedHostname,
1539
- port,
1540
- method: "POST",
1541
- headers,
1542
- path: resolvedPath,
1543
- query,
1544
- body,
1545
- });
1189
+ b.hn(resolvedHostname);
1190
+ b.m("POST").h(headers).q(query).b(body);
1191
+ return b.build();
1546
1192
  };
1547
1193
  exports.se_ListReadSetsCommand = se_ListReadSetsCommand;
1548
1194
  const se_ListReadSetUploadPartsCommand = async (input, context) => {
1549
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1195
+ const b = (0, core_2.requestBuilder)(input, context);
1550
1196
  const headers = {
1551
1197
  "content-type": "application/json",
1552
1198
  };
1553
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1554
- "/sequencestore/{sequenceStoreId}/upload/{uploadId}/parts";
1555
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
1556
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "uploadId", () => input.uploadId, "{uploadId}", false);
1199
+ b.bp("/sequencestore/{sequenceStoreId}/upload/{uploadId}/parts");
1200
+ b.p("sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
1201
+ b.p("uploadId", () => input.uploadId, "{uploadId}", false);
1557
1202
  const query = (0, smithy_client_1.map)({
1558
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1559
- nextToken: [, input.nextToken],
1203
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1204
+ [_nT]: [, input[_nT]],
1560
1205
  });
1561
1206
  let body;
1562
1207
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -1570,29 +1215,21 @@ const se_ListReadSetUploadPartsCommand = async (input, context) => {
1570
1215
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1571
1216
  }
1572
1217
  }
1573
- return new protocol_http_1.HttpRequest({
1574
- protocol,
1575
- hostname: resolvedHostname,
1576
- port,
1577
- method: "POST",
1578
- headers,
1579
- path: resolvedPath,
1580
- query,
1581
- body,
1582
- });
1218
+ b.hn(resolvedHostname);
1219
+ b.m("POST").h(headers).q(query).b(body);
1220
+ return b.build();
1583
1221
  };
1584
1222
  exports.se_ListReadSetUploadPartsCommand = se_ListReadSetUploadPartsCommand;
1585
1223
  const se_ListReferenceImportJobsCommand = async (input, context) => {
1586
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1224
+ const b = (0, core_2.requestBuilder)(input, context);
1587
1225
  const headers = {
1588
1226
  "content-type": "application/json",
1589
1227
  };
1590
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1591
- "/referencestore/{referenceStoreId}/importjobs";
1592
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "referenceStoreId", () => input.referenceStoreId, "{referenceStoreId}", false);
1228
+ b.bp("/referencestore/{referenceStoreId}/importjobs");
1229
+ b.p("referenceStoreId", () => input.referenceStoreId, "{referenceStoreId}", false);
1593
1230
  const query = (0, smithy_client_1.map)({
1594
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1595
- nextToken: [, input.nextToken],
1231
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1232
+ [_nT]: [, input[_nT]],
1596
1233
  });
1597
1234
  let body;
1598
1235
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -1605,29 +1242,21 @@ const se_ListReferenceImportJobsCommand = async (input, context) => {
1605
1242
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1606
1243
  }
1607
1244
  }
1608
- return new protocol_http_1.HttpRequest({
1609
- protocol,
1610
- hostname: resolvedHostname,
1611
- port,
1612
- method: "POST",
1613
- headers,
1614
- path: resolvedPath,
1615
- query,
1616
- body,
1617
- });
1245
+ b.hn(resolvedHostname);
1246
+ b.m("POST").h(headers).q(query).b(body);
1247
+ return b.build();
1618
1248
  };
1619
1249
  exports.se_ListReferenceImportJobsCommand = se_ListReferenceImportJobsCommand;
1620
1250
  const se_ListReferencesCommand = async (input, context) => {
1621
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1251
+ const b = (0, core_2.requestBuilder)(input, context);
1622
1252
  const headers = {
1623
1253
  "content-type": "application/json",
1624
1254
  };
1625
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1626
- "/referencestore/{referenceStoreId}/references";
1627
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "referenceStoreId", () => input.referenceStoreId, "{referenceStoreId}", false);
1255
+ b.bp("/referencestore/{referenceStoreId}/references");
1256
+ b.p("referenceStoreId", () => input.referenceStoreId, "{referenceStoreId}", false);
1628
1257
  const query = (0, smithy_client_1.map)({
1629
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1630
- nextToken: [, input.nextToken],
1258
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1259
+ [_nT]: [, input[_nT]],
1631
1260
  });
1632
1261
  let body;
1633
1262
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -1640,27 +1269,20 @@ const se_ListReferencesCommand = async (input, context) => {
1640
1269
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1641
1270
  }
1642
1271
  }
1643
- return new protocol_http_1.HttpRequest({
1644
- protocol,
1645
- hostname: resolvedHostname,
1646
- port,
1647
- method: "POST",
1648
- headers,
1649
- path: resolvedPath,
1650
- query,
1651
- body,
1652
- });
1272
+ b.hn(resolvedHostname);
1273
+ b.m("POST").h(headers).q(query).b(body);
1274
+ return b.build();
1653
1275
  };
1654
1276
  exports.se_ListReferencesCommand = se_ListReferencesCommand;
1655
1277
  const se_ListReferenceStoresCommand = async (input, context) => {
1656
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1278
+ const b = (0, core_2.requestBuilder)(input, context);
1657
1279
  const headers = {
1658
1280
  "content-type": "application/json",
1659
1281
  };
1660
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/referencestores";
1282
+ b.bp("/referencestores");
1661
1283
  const query = (0, smithy_client_1.map)({
1662
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1663
- nextToken: [, input.nextToken],
1284
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1285
+ [_nT]: [, input[_nT]],
1664
1286
  });
1665
1287
  let body;
1666
1288
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -1673,26 +1295,19 @@ const se_ListReferenceStoresCommand = async (input, context) => {
1673
1295
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1674
1296
  }
1675
1297
  }
1676
- return new protocol_http_1.HttpRequest({
1677
- protocol,
1678
- hostname: resolvedHostname,
1679
- port,
1680
- method: "POST",
1681
- headers,
1682
- path: resolvedPath,
1683
- query,
1684
- body,
1685
- });
1298
+ b.hn(resolvedHostname);
1299
+ b.m("POST").h(headers).q(query).b(body);
1300
+ return b.build();
1686
1301
  };
1687
1302
  exports.se_ListReferenceStoresCommand = se_ListReferenceStoresCommand;
1688
1303
  const se_ListRunGroupsCommand = async (input, context) => {
1689
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1304
+ const b = (0, core_2.requestBuilder)(input, context);
1690
1305
  const headers = {};
1691
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/runGroup";
1306
+ b.bp("/runGroup");
1692
1307
  const query = (0, smithy_client_1.map)({
1693
- name: [, input.name],
1694
- startingToken: [, input.startingToken],
1695
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1308
+ [_n]: [, input[_n]],
1309
+ [_sT]: [, input[_sT]],
1310
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1696
1311
  });
1697
1312
  let body;
1698
1313
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1702,28 +1317,21 @@ const se_ListRunGroupsCommand = async (input, context) => {
1702
1317
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1703
1318
  }
1704
1319
  }
1705
- return new protocol_http_1.HttpRequest({
1706
- protocol,
1707
- hostname: resolvedHostname,
1708
- port,
1709
- method: "GET",
1710
- headers,
1711
- path: resolvedPath,
1712
- query,
1713
- body,
1714
- });
1320
+ b.hn(resolvedHostname);
1321
+ b.m("GET").h(headers).q(query).b(body);
1322
+ return b.build();
1715
1323
  };
1716
1324
  exports.se_ListRunGroupsCommand = se_ListRunGroupsCommand;
1717
1325
  const se_ListRunsCommand = async (input, context) => {
1718
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1326
+ const b = (0, core_2.requestBuilder)(input, context);
1719
1327
  const headers = {};
1720
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/run";
1328
+ b.bp("/run");
1721
1329
  const query = (0, smithy_client_1.map)({
1722
- name: [, input.name],
1723
- runGroupId: [, input.runGroupId],
1724
- startingToken: [, input.startingToken],
1725
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1726
- status: [, input.status],
1330
+ [_n]: [, input[_n]],
1331
+ [_rGI]: [, input[_rGI]],
1332
+ [_sT]: [, input[_sT]],
1333
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1334
+ [_s]: [, input[_s]],
1727
1335
  });
1728
1336
  let body;
1729
1337
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1733,27 +1341,20 @@ const se_ListRunsCommand = async (input, context) => {
1733
1341
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1734
1342
  }
1735
1343
  }
1736
- return new protocol_http_1.HttpRequest({
1737
- protocol,
1738
- hostname: resolvedHostname,
1739
- port,
1740
- method: "GET",
1741
- headers,
1742
- path: resolvedPath,
1743
- query,
1744
- body,
1745
- });
1344
+ b.hn(resolvedHostname);
1345
+ b.m("GET").h(headers).q(query).b(body);
1346
+ return b.build();
1746
1347
  };
1747
1348
  exports.se_ListRunsCommand = se_ListRunsCommand;
1748
1349
  const se_ListRunTasksCommand = async (input, context) => {
1749
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1350
+ const b = (0, core_2.requestBuilder)(input, context);
1750
1351
  const headers = {};
1751
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/run/{id}/task";
1752
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
1352
+ b.bp("/run/{id}/task");
1353
+ b.p("id", () => input.id, "{id}", false);
1753
1354
  const query = (0, smithy_client_1.map)({
1754
- status: [, input.status],
1755
- startingToken: [, input.startingToken],
1756
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1355
+ [_s]: [, input[_s]],
1356
+ [_sT]: [, input[_sT]],
1357
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1757
1358
  });
1758
1359
  let body;
1759
1360
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1763,27 +1364,20 @@ const se_ListRunTasksCommand = async (input, context) => {
1763
1364
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1764
1365
  }
1765
1366
  }
1766
- return new protocol_http_1.HttpRequest({
1767
- protocol,
1768
- hostname: resolvedHostname,
1769
- port,
1770
- method: "GET",
1771
- headers,
1772
- path: resolvedPath,
1773
- query,
1774
- body,
1775
- });
1367
+ b.hn(resolvedHostname);
1368
+ b.m("GET").h(headers).q(query).b(body);
1369
+ return b.build();
1776
1370
  };
1777
1371
  exports.se_ListRunTasksCommand = se_ListRunTasksCommand;
1778
1372
  const se_ListSequenceStoresCommand = async (input, context) => {
1779
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1373
+ const b = (0, core_2.requestBuilder)(input, context);
1780
1374
  const headers = {
1781
1375
  "content-type": "application/json",
1782
1376
  };
1783
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sequencestores";
1377
+ b.bp("/sequencestores");
1784
1378
  const query = (0, smithy_client_1.map)({
1785
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1786
- nextToken: [, input.nextToken],
1379
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1380
+ [_nT]: [, input[_nT]],
1787
1381
  });
1788
1382
  let body;
1789
1383
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -1796,27 +1390,20 @@ const se_ListSequenceStoresCommand = async (input, context) => {
1796
1390
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1797
1391
  }
1798
1392
  }
1799
- return new protocol_http_1.HttpRequest({
1800
- protocol,
1801
- hostname: resolvedHostname,
1802
- port,
1803
- method: "POST",
1804
- headers,
1805
- path: resolvedPath,
1806
- query,
1807
- body,
1808
- });
1393
+ b.hn(resolvedHostname);
1394
+ b.m("POST").h(headers).q(query).b(body);
1395
+ return b.build();
1809
1396
  };
1810
1397
  exports.se_ListSequenceStoresCommand = se_ListSequenceStoresCommand;
1811
1398
  const se_ListSharesCommand = async (input, context) => {
1812
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1399
+ const b = (0, core_2.requestBuilder)(input, context);
1813
1400
  const headers = {
1814
1401
  "content-type": "application/json",
1815
1402
  };
1816
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/shares";
1403
+ b.bp("/shares");
1817
1404
  const query = (0, smithy_client_1.map)({
1818
- nextToken: [, input.nextToken],
1819
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1405
+ [_nT]: [, input[_nT]],
1406
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1820
1407
  });
1821
1408
  let body;
1822
1409
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -1830,23 +1417,16 @@ const se_ListSharesCommand = async (input, context) => {
1830
1417
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1831
1418
  }
1832
1419
  }
1833
- return new protocol_http_1.HttpRequest({
1834
- protocol,
1835
- hostname: resolvedHostname,
1836
- port,
1837
- method: "POST",
1838
- headers,
1839
- path: resolvedPath,
1840
- query,
1841
- body,
1842
- });
1420
+ b.hn(resolvedHostname);
1421
+ b.m("POST").h(headers).q(query).b(body);
1422
+ return b.build();
1843
1423
  };
1844
1424
  exports.se_ListSharesCommand = se_ListSharesCommand;
1845
1425
  const se_ListTagsForResourceCommand = async (input, context) => {
1846
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1426
+ const b = (0, core_2.requestBuilder)(input, context);
1847
1427
  const headers = {};
1848
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
1849
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
1428
+ b.bp("/tags/{resourceArn}");
1429
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1850
1430
  let body;
1851
1431
  let { hostname: resolvedHostname } = await context.endpoint();
1852
1432
  if (context.disableHostPrefix !== true) {
@@ -1855,26 +1435,20 @@ const se_ListTagsForResourceCommand = async (input, context) => {
1855
1435
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1856
1436
  }
1857
1437
  }
1858
- return new protocol_http_1.HttpRequest({
1859
- protocol,
1860
- hostname: resolvedHostname,
1861
- port,
1862
- method: "GET",
1863
- headers,
1864
- path: resolvedPath,
1865
- body,
1866
- });
1438
+ b.hn(resolvedHostname);
1439
+ b.m("GET").h(headers).b(body);
1440
+ return b.build();
1867
1441
  };
1868
1442
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
1869
1443
  const se_ListVariantImportJobsCommand = async (input, context) => {
1870
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1444
+ const b = (0, core_2.requestBuilder)(input, context);
1871
1445
  const headers = {
1872
1446
  "content-type": "application/json",
1873
1447
  };
1874
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/import/variants";
1448
+ b.bp("/import/variants");
1875
1449
  const query = (0, smithy_client_1.map)({
1876
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1877
- nextToken: [, input.nextToken],
1450
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1451
+ [_nT]: [, input[_nT]],
1878
1452
  });
1879
1453
  let body;
1880
1454
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -1888,27 +1462,20 @@ const se_ListVariantImportJobsCommand = async (input, context) => {
1888
1462
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1889
1463
  }
1890
1464
  }
1891
- return new protocol_http_1.HttpRequest({
1892
- protocol,
1893
- hostname: resolvedHostname,
1894
- port,
1895
- method: "POST",
1896
- headers,
1897
- path: resolvedPath,
1898
- query,
1899
- body,
1900
- });
1465
+ b.hn(resolvedHostname);
1466
+ b.m("POST").h(headers).q(query).b(body);
1467
+ return b.build();
1901
1468
  };
1902
1469
  exports.se_ListVariantImportJobsCommand = se_ListVariantImportJobsCommand;
1903
1470
  const se_ListVariantStoresCommand = async (input, context) => {
1904
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1471
+ const b = (0, core_2.requestBuilder)(input, context);
1905
1472
  const headers = {
1906
1473
  "content-type": "application/json",
1907
1474
  };
1908
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/variantStores";
1475
+ b.bp("/variantStores");
1909
1476
  const query = (0, smithy_client_1.map)({
1910
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1911
- nextToken: [, input.nextToken],
1477
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1478
+ [_nT]: [, input[_nT]],
1912
1479
  });
1913
1480
  let body;
1914
1481
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -1922,27 +1489,20 @@ const se_ListVariantStoresCommand = async (input, context) => {
1922
1489
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1923
1490
  }
1924
1491
  }
1925
- return new protocol_http_1.HttpRequest({
1926
- protocol,
1927
- hostname: resolvedHostname,
1928
- port,
1929
- method: "POST",
1930
- headers,
1931
- path: resolvedPath,
1932
- query,
1933
- body,
1934
- });
1492
+ b.hn(resolvedHostname);
1493
+ b.m("POST").h(headers).q(query).b(body);
1494
+ return b.build();
1935
1495
  };
1936
1496
  exports.se_ListVariantStoresCommand = se_ListVariantStoresCommand;
1937
1497
  const se_ListWorkflowsCommand = async (input, context) => {
1938
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1498
+ const b = (0, core_2.requestBuilder)(input, context);
1939
1499
  const headers = {};
1940
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflow";
1500
+ b.bp("/workflow");
1941
1501
  const query = (0, smithy_client_1.map)({
1942
- type: [, input.type],
1943
- name: [, input.name],
1944
- startingToken: [, input.startingToken],
1945
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1502
+ [_t]: [, input[_t]],
1503
+ [_n]: [, input[_n]],
1504
+ [_sT]: [, input[_sT]],
1505
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1946
1506
  });
1947
1507
  let body;
1948
1508
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1952,24 +1512,17 @@ const se_ListWorkflowsCommand = async (input, context) => {
1952
1512
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1953
1513
  }
1954
1514
  }
1955
- return new protocol_http_1.HttpRequest({
1956
- protocol,
1957
- hostname: resolvedHostname,
1958
- port,
1959
- method: "GET",
1960
- headers,
1961
- path: resolvedPath,
1962
- query,
1963
- body,
1964
- });
1515
+ b.hn(resolvedHostname);
1516
+ b.m("GET").h(headers).q(query).b(body);
1517
+ return b.build();
1965
1518
  };
1966
1519
  exports.se_ListWorkflowsCommand = se_ListWorkflowsCommand;
1967
1520
  const se_StartAnnotationImportJobCommand = async (input, context) => {
1968
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1521
+ const b = (0, core_2.requestBuilder)(input, context);
1969
1522
  const headers = {
1970
1523
  "content-type": "application/json",
1971
1524
  };
1972
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/import/annotation";
1525
+ b.bp("/import/annotation");
1973
1526
  let body;
1974
1527
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1975
1528
  annotationFields: (_) => (0, smithy_client_1._json)(_),
@@ -1987,25 +1540,18 @@ const se_StartAnnotationImportJobCommand = async (input, context) => {
1987
1540
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1988
1541
  }
1989
1542
  }
1990
- return new protocol_http_1.HttpRequest({
1991
- protocol,
1992
- hostname: resolvedHostname,
1993
- port,
1994
- method: "POST",
1995
- headers,
1996
- path: resolvedPath,
1997
- body,
1998
- });
1543
+ b.hn(resolvedHostname);
1544
+ b.m("POST").h(headers).b(body);
1545
+ return b.build();
1999
1546
  };
2000
1547
  exports.se_StartAnnotationImportJobCommand = se_StartAnnotationImportJobCommand;
2001
1548
  const se_StartReadSetActivationJobCommand = async (input, context) => {
2002
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1549
+ const b = (0, core_2.requestBuilder)(input, context);
2003
1550
  const headers = {
2004
1551
  "content-type": "application/json",
2005
1552
  };
2006
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2007
- "/sequencestore/{sequenceStoreId}/activationjob";
2008
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
1553
+ b.bp("/sequencestore/{sequenceStoreId}/activationjob");
1554
+ b.p("sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
2009
1555
  let body;
2010
1556
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2011
1557
  clientToken: [],
@@ -2018,25 +1564,18 @@ const se_StartReadSetActivationJobCommand = async (input, context) => {
2018
1564
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2019
1565
  }
2020
1566
  }
2021
- return new protocol_http_1.HttpRequest({
2022
- protocol,
2023
- hostname: resolvedHostname,
2024
- port,
2025
- method: "POST",
2026
- headers,
2027
- path: resolvedPath,
2028
- body,
2029
- });
1567
+ b.hn(resolvedHostname);
1568
+ b.m("POST").h(headers).b(body);
1569
+ return b.build();
2030
1570
  };
2031
1571
  exports.se_StartReadSetActivationJobCommand = se_StartReadSetActivationJobCommand;
2032
1572
  const se_StartReadSetExportJobCommand = async (input, context) => {
2033
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1573
+ const b = (0, core_2.requestBuilder)(input, context);
2034
1574
  const headers = {
2035
1575
  "content-type": "application/json",
2036
1576
  };
2037
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2038
- "/sequencestore/{sequenceStoreId}/exportjob";
2039
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
1577
+ b.bp("/sequencestore/{sequenceStoreId}/exportjob");
1578
+ b.p("sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
2040
1579
  let body;
2041
1580
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2042
1581
  clientToken: [],
@@ -2051,25 +1590,18 @@ const se_StartReadSetExportJobCommand = async (input, context) => {
2051
1590
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2052
1591
  }
2053
1592
  }
2054
- return new protocol_http_1.HttpRequest({
2055
- protocol,
2056
- hostname: resolvedHostname,
2057
- port,
2058
- method: "POST",
2059
- headers,
2060
- path: resolvedPath,
2061
- body,
2062
- });
1593
+ b.hn(resolvedHostname);
1594
+ b.m("POST").h(headers).b(body);
1595
+ return b.build();
2063
1596
  };
2064
1597
  exports.se_StartReadSetExportJobCommand = se_StartReadSetExportJobCommand;
2065
1598
  const se_StartReadSetImportJobCommand = async (input, context) => {
2066
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1599
+ const b = (0, core_2.requestBuilder)(input, context);
2067
1600
  const headers = {
2068
1601
  "content-type": "application/json",
2069
1602
  };
2070
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2071
- "/sequencestore/{sequenceStoreId}/importjob";
2072
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
1603
+ b.bp("/sequencestore/{sequenceStoreId}/importjob");
1604
+ b.p("sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
2073
1605
  let body;
2074
1606
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2075
1607
  clientToken: [],
@@ -2083,25 +1615,18 @@ const se_StartReadSetImportJobCommand = async (input, context) => {
2083
1615
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2084
1616
  }
2085
1617
  }
2086
- return new protocol_http_1.HttpRequest({
2087
- protocol,
2088
- hostname: resolvedHostname,
2089
- port,
2090
- method: "POST",
2091
- headers,
2092
- path: resolvedPath,
2093
- body,
2094
- });
1618
+ b.hn(resolvedHostname);
1619
+ b.m("POST").h(headers).b(body);
1620
+ return b.build();
2095
1621
  };
2096
1622
  exports.se_StartReadSetImportJobCommand = se_StartReadSetImportJobCommand;
2097
1623
  const se_StartReferenceImportJobCommand = async (input, context) => {
2098
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1624
+ const b = (0, core_2.requestBuilder)(input, context);
2099
1625
  const headers = {
2100
1626
  "content-type": "application/json",
2101
1627
  };
2102
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2103
- "/referencestore/{referenceStoreId}/importjob";
2104
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "referenceStoreId", () => input.referenceStoreId, "{referenceStoreId}", false);
1628
+ b.bp("/referencestore/{referenceStoreId}/importjob");
1629
+ b.p("referenceStoreId", () => input.referenceStoreId, "{referenceStoreId}", false);
2105
1630
  let body;
2106
1631
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2107
1632
  clientToken: [],
@@ -2115,23 +1640,17 @@ const se_StartReferenceImportJobCommand = async (input, context) => {
2115
1640
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2116
1641
  }
2117
1642
  }
2118
- return new protocol_http_1.HttpRequest({
2119
- protocol,
2120
- hostname: resolvedHostname,
2121
- port,
2122
- method: "POST",
2123
- headers,
2124
- path: resolvedPath,
2125
- body,
2126
- });
1643
+ b.hn(resolvedHostname);
1644
+ b.m("POST").h(headers).b(body);
1645
+ return b.build();
2127
1646
  };
2128
1647
  exports.se_StartReferenceImportJobCommand = se_StartReferenceImportJobCommand;
2129
1648
  const se_StartRunCommand = async (input, context) => {
2130
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1649
+ const b = (0, core_2.requestBuilder)(input, context);
2131
1650
  const headers = {
2132
1651
  "content-type": "application/json",
2133
1652
  };
2134
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/run";
1653
+ b.bp("/run");
2135
1654
  let body;
2136
1655
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2137
1656
  logLevel: [],
@@ -2156,23 +1675,17 @@ const se_StartRunCommand = async (input, context) => {
2156
1675
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2157
1676
  }
2158
1677
  }
2159
- return new protocol_http_1.HttpRequest({
2160
- protocol,
2161
- hostname: resolvedHostname,
2162
- port,
2163
- method: "POST",
2164
- headers,
2165
- path: resolvedPath,
2166
- body,
2167
- });
1678
+ b.hn(resolvedHostname);
1679
+ b.m("POST").h(headers).b(body);
1680
+ return b.build();
2168
1681
  };
2169
1682
  exports.se_StartRunCommand = se_StartRunCommand;
2170
1683
  const se_StartVariantImportJobCommand = async (input, context) => {
2171
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1684
+ const b = (0, core_2.requestBuilder)(input, context);
2172
1685
  const headers = {
2173
1686
  "content-type": "application/json",
2174
1687
  };
2175
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/import/variant";
1688
+ b.bp("/import/variant");
2176
1689
  let body;
2177
1690
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2178
1691
  annotationFields: (_) => (0, smithy_client_1._json)(_),
@@ -2188,24 +1701,18 @@ const se_StartVariantImportJobCommand = async (input, context) => {
2188
1701
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2189
1702
  }
2190
1703
  }
2191
- return new protocol_http_1.HttpRequest({
2192
- protocol,
2193
- hostname: resolvedHostname,
2194
- port,
2195
- method: "POST",
2196
- headers,
2197
- path: resolvedPath,
2198
- body,
2199
- });
1704
+ b.hn(resolvedHostname);
1705
+ b.m("POST").h(headers).b(body);
1706
+ return b.build();
2200
1707
  };
2201
1708
  exports.se_StartVariantImportJobCommand = se_StartVariantImportJobCommand;
2202
1709
  const se_TagResourceCommand = async (input, context) => {
2203
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1710
+ const b = (0, core_2.requestBuilder)(input, context);
2204
1711
  const headers = {
2205
1712
  "content-type": "application/json",
2206
1713
  };
2207
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
2208
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
1714
+ b.bp("/tags/{resourceArn}");
1715
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
2209
1716
  let body;
2210
1717
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2211
1718
  tags: (_) => (0, smithy_client_1._json)(_),
@@ -2217,26 +1724,20 @@ const se_TagResourceCommand = async (input, context) => {
2217
1724
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2218
1725
  }
2219
1726
  }
2220
- return new protocol_http_1.HttpRequest({
2221
- protocol,
2222
- hostname: resolvedHostname,
2223
- port,
2224
- method: "POST",
2225
- headers,
2226
- path: resolvedPath,
2227
- body,
2228
- });
1727
+ b.hn(resolvedHostname);
1728
+ b.m("POST").h(headers).b(body);
1729
+ return b.build();
2229
1730
  };
2230
1731
  exports.se_TagResourceCommand = se_TagResourceCommand;
2231
1732
  const se_UntagResourceCommand = async (input, context) => {
2232
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1733
+ const b = (0, core_2.requestBuilder)(input, context);
2233
1734
  const headers = {};
2234
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
2235
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
1735
+ b.bp("/tags/{resourceArn}");
1736
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
2236
1737
  const query = (0, smithy_client_1.map)({
2237
- tagKeys: [
1738
+ [_tK]: [
2238
1739
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
2239
- () => (input.tagKeys || []).map((_entry) => _entry),
1740
+ () => (input[_tK] || []).map((_entry) => _entry),
2240
1741
  ],
2241
1742
  });
2242
1743
  let body;
@@ -2247,25 +1748,18 @@ const se_UntagResourceCommand = async (input, context) => {
2247
1748
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2248
1749
  }
2249
1750
  }
2250
- return new protocol_http_1.HttpRequest({
2251
- protocol,
2252
- hostname: resolvedHostname,
2253
- port,
2254
- method: "DELETE",
2255
- headers,
2256
- path: resolvedPath,
2257
- query,
2258
- body,
2259
- });
1751
+ b.hn(resolvedHostname);
1752
+ b.m("DELETE").h(headers).q(query).b(body);
1753
+ return b.build();
2260
1754
  };
2261
1755
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
2262
1756
  const se_UpdateAnnotationStoreCommand = async (input, context) => {
2263
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1757
+ const b = (0, core_2.requestBuilder)(input, context);
2264
1758
  const headers = {
2265
1759
  "content-type": "application/json",
2266
1760
  };
2267
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/annotationStore/{name}";
2268
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
1761
+ b.bp("/annotationStore/{name}");
1762
+ b.p("name", () => input.name, "{name}", false);
2269
1763
  let body;
2270
1764
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2271
1765
  description: [],
@@ -2277,26 +1771,19 @@ const se_UpdateAnnotationStoreCommand = async (input, context) => {
2277
1771
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2278
1772
  }
2279
1773
  }
2280
- return new protocol_http_1.HttpRequest({
2281
- protocol,
2282
- hostname: resolvedHostname,
2283
- port,
2284
- method: "POST",
2285
- headers,
2286
- path: resolvedPath,
2287
- body,
2288
- });
1774
+ b.hn(resolvedHostname);
1775
+ b.m("POST").h(headers).b(body);
1776
+ return b.build();
2289
1777
  };
2290
1778
  exports.se_UpdateAnnotationStoreCommand = se_UpdateAnnotationStoreCommand;
2291
1779
  const se_UpdateAnnotationStoreVersionCommand = async (input, context) => {
2292
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1780
+ const b = (0, core_2.requestBuilder)(input, context);
2293
1781
  const headers = {
2294
1782
  "content-type": "application/json",
2295
1783
  };
2296
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2297
- "/annotationStore/{name}/version/{versionName}";
2298
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
2299
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "versionName", () => input.versionName, "{versionName}", false);
1784
+ b.bp("/annotationStore/{name}/version/{versionName}");
1785
+ b.p("name", () => input.name, "{name}", false);
1786
+ b.p("versionName", () => input.versionName, "{versionName}", false);
2300
1787
  let body;
2301
1788
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2302
1789
  description: [],
@@ -2308,24 +1795,18 @@ const se_UpdateAnnotationStoreVersionCommand = async (input, context) => {
2308
1795
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2309
1796
  }
2310
1797
  }
2311
- return new protocol_http_1.HttpRequest({
2312
- protocol,
2313
- hostname: resolvedHostname,
2314
- port,
2315
- method: "POST",
2316
- headers,
2317
- path: resolvedPath,
2318
- body,
2319
- });
1798
+ b.hn(resolvedHostname);
1799
+ b.m("POST").h(headers).b(body);
1800
+ return b.build();
2320
1801
  };
2321
1802
  exports.se_UpdateAnnotationStoreVersionCommand = se_UpdateAnnotationStoreVersionCommand;
2322
1803
  const se_UpdateRunGroupCommand = async (input, context) => {
2323
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1804
+ const b = (0, core_2.requestBuilder)(input, context);
2324
1805
  const headers = {
2325
1806
  "content-type": "application/json",
2326
1807
  };
2327
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/runGroup/{id}";
2328
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
1808
+ b.bp("/runGroup/{id}");
1809
+ b.p("id", () => input.id, "{id}", false);
2329
1810
  let body;
2330
1811
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2331
1812
  maxCpus: [],
@@ -2341,24 +1822,18 @@ const se_UpdateRunGroupCommand = async (input, context) => {
2341
1822
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2342
1823
  }
2343
1824
  }
2344
- return new protocol_http_1.HttpRequest({
2345
- protocol,
2346
- hostname: resolvedHostname,
2347
- port,
2348
- method: "POST",
2349
- headers,
2350
- path: resolvedPath,
2351
- body,
2352
- });
1825
+ b.hn(resolvedHostname);
1826
+ b.m("POST").h(headers).b(body);
1827
+ return b.build();
2353
1828
  };
2354
1829
  exports.se_UpdateRunGroupCommand = se_UpdateRunGroupCommand;
2355
1830
  const se_UpdateVariantStoreCommand = async (input, context) => {
2356
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1831
+ const b = (0, core_2.requestBuilder)(input, context);
2357
1832
  const headers = {
2358
1833
  "content-type": "application/json",
2359
1834
  };
2360
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/variantStore/{name}";
2361
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
1835
+ b.bp("/variantStore/{name}");
1836
+ b.p("name", () => input.name, "{name}", false);
2362
1837
  let body;
2363
1838
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2364
1839
  description: [],
@@ -2370,24 +1845,18 @@ const se_UpdateVariantStoreCommand = async (input, context) => {
2370
1845
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2371
1846
  }
2372
1847
  }
2373
- return new protocol_http_1.HttpRequest({
2374
- protocol,
2375
- hostname: resolvedHostname,
2376
- port,
2377
- method: "POST",
2378
- headers,
2379
- path: resolvedPath,
2380
- body,
2381
- });
1848
+ b.hn(resolvedHostname);
1849
+ b.m("POST").h(headers).b(body);
1850
+ return b.build();
2382
1851
  };
2383
1852
  exports.se_UpdateVariantStoreCommand = se_UpdateVariantStoreCommand;
2384
1853
  const se_UpdateWorkflowCommand = async (input, context) => {
2385
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1854
+ const b = (0, core_2.requestBuilder)(input, context);
2386
1855
  const headers = {
2387
1856
  "content-type": "application/json",
2388
1857
  };
2389
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflow/{id}";
2390
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
1858
+ b.bp("/workflow/{id}");
1859
+ b.p("id", () => input.id, "{id}", false);
2391
1860
  let body;
2392
1861
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2393
1862
  description: [],
@@ -2400,30 +1869,23 @@ const se_UpdateWorkflowCommand = async (input, context) => {
2400
1869
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2401
1870
  }
2402
1871
  }
2403
- return new protocol_http_1.HttpRequest({
2404
- protocol,
2405
- hostname: resolvedHostname,
2406
- port,
2407
- method: "POST",
2408
- headers,
2409
- path: resolvedPath,
2410
- body,
2411
- });
1872
+ b.hn(resolvedHostname);
1873
+ b.m("POST").h(headers).b(body);
1874
+ return b.build();
2412
1875
  };
2413
1876
  exports.se_UpdateWorkflowCommand = se_UpdateWorkflowCommand;
2414
1877
  const se_UploadReadSetPartCommand = async (input, context) => {
2415
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1878
+ const b = (0, core_2.requestBuilder)(input, context);
2416
1879
  const headers = {
2417
1880
  "x-amz-content-sha256": "UNSIGNED-PAYLOAD",
2418
1881
  "content-type": "application/octet-stream",
2419
1882
  };
2420
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2421
- "/sequencestore/{sequenceStoreId}/upload/{uploadId}/part";
2422
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
2423
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "uploadId", () => input.uploadId, "{uploadId}", false);
1883
+ b.bp("/sequencestore/{sequenceStoreId}/upload/{uploadId}/part");
1884
+ b.p("sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
1885
+ b.p("uploadId", () => input.uploadId, "{uploadId}", false);
2424
1886
  const query = (0, smithy_client_1.map)({
2425
- partSource: [, (0, smithy_client_1.expectNonNull)(input.partSource, `partSource`)],
2426
- partNumber: [(0, smithy_client_1.expectNonNull)(input.partNumber, `partNumber`) != null, () => input.partNumber.toString()],
1887
+ [_pS]: [, (0, smithy_client_1.expectNonNull)(input[_pS], `partSource`)],
1888
+ [_pN]: [(0, smithy_client_1.expectNonNull)(input.partNumber, `partNumber`) != null, () => input[_pN].toString()],
2427
1889
  });
2428
1890
  let body;
2429
1891
  if (input.payload !== undefined) {
@@ -2436,16 +1898,9 @@ const se_UploadReadSetPartCommand = async (input, context) => {
2436
1898
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2437
1899
  }
2438
1900
  }
2439
- return new protocol_http_1.HttpRequest({
2440
- protocol,
2441
- hostname: resolvedHostname,
2442
- port,
2443
- method: "PUT",
2444
- headers,
2445
- path: resolvedPath,
2446
- query,
2447
- body,
2448
- });
1901
+ b.hn(resolvedHostname);
1902
+ b.m("PUT").h(headers).q(query).b(body);
1903
+ return b.build();
2449
1904
  };
2450
1905
  exports.se_UploadReadSetPartCommand = se_UploadReadSetPartCommand;
2451
1906
  const de_AbortMultipartReadSetUploadCommand = async (output, context) => {
@@ -7489,6 +6944,20 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
7489
6944
  value !== "" &&
7490
6945
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
7491
6946
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
6947
+ const _e = "export";
6948
+ const _f = "force";
6949
+ const _fi = "file";
6950
+ const _mR = "maxResults";
6951
+ const _n = "name";
6952
+ const _nT = "nextToken";
6953
+ const _pN = "partNumber";
6954
+ const _pS = "partSource";
6955
+ const _r = "range";
6956
+ const _rGI = "runGroupId";
6957
+ const _s = "status";
6958
+ const _sT = "startingToken";
6959
+ const _t = "type";
6960
+ const _tK = "tagKeys";
7492
6961
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
7493
6962
  if (encoded.length) {
7494
6963
  return JSON.parse(encoded);