@aws-sdk/client-finspace-data 3.476.0 → 3.477.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,42 +2,34 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_GetWorkingLocationCommand = exports.de_GetUserCommand = exports.de_GetProgrammaticAccessCredentialsCommand = exports.de_GetPermissionGroupCommand = exports.de_GetExternalDataViewAccessDetailsCommand = exports.de_GetDataViewCommand = exports.de_GetDatasetCommand = exports.de_GetChangesetCommand = exports.de_EnableUserCommand = exports.de_DisassociateUserFromPermissionGroupCommand = exports.de_DisableUserCommand = exports.de_DeletePermissionGroupCommand = exports.de_DeleteDatasetCommand = exports.de_CreateUserCommand = exports.de_CreatePermissionGroupCommand = exports.de_CreateDataViewCommand = exports.de_CreateDatasetCommand = exports.de_CreateChangesetCommand = exports.de_AssociateUserToPermissionGroupCommand = exports.se_UpdateUserCommand = exports.se_UpdatePermissionGroupCommand = exports.se_UpdateDatasetCommand = exports.se_UpdateChangesetCommand = exports.se_ResetUserPasswordCommand = exports.se_ListUsersByPermissionGroupCommand = exports.se_ListUsersCommand = exports.se_ListPermissionGroupsByUserCommand = exports.se_ListPermissionGroupsCommand = exports.se_ListDataViewsCommand = exports.se_ListDatasetsCommand = exports.se_ListChangesetsCommand = exports.se_GetWorkingLocationCommand = exports.se_GetUserCommand = exports.se_GetProgrammaticAccessCredentialsCommand = exports.se_GetPermissionGroupCommand = exports.se_GetExternalDataViewAccessDetailsCommand = exports.se_GetDataViewCommand = exports.se_GetDatasetCommand = exports.se_GetChangesetCommand = exports.se_EnableUserCommand = exports.se_DisassociateUserFromPermissionGroupCommand = exports.se_DisableUserCommand = exports.se_DeletePermissionGroupCommand = exports.se_DeleteDatasetCommand = exports.se_CreateUserCommand = exports.se_CreatePermissionGroupCommand = exports.se_CreateDataViewCommand = exports.se_CreateDatasetCommand = exports.se_CreateChangesetCommand = exports.se_AssociateUserToPermissionGroupCommand = void 0;
4
4
  exports.de_UpdateUserCommand = exports.de_UpdatePermissionGroupCommand = exports.de_UpdateDatasetCommand = exports.de_UpdateChangesetCommand = exports.de_ResetUserPasswordCommand = exports.de_ListUsersByPermissionGroupCommand = exports.de_ListUsersCommand = exports.de_ListPermissionGroupsByUserCommand = exports.de_ListPermissionGroupsCommand = exports.de_ListDataViewsCommand = exports.de_ListDatasetsCommand = exports.de_ListChangesetsCommand = void 0;
5
- const protocol_http_1 = require("@smithy/protocol-http");
5
+ const core_1 = require("@smithy/core");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  const uuid_1 = require("uuid");
8
8
  const FinspaceDataServiceException_1 = require("../models/FinspaceDataServiceException");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const se_AssociateUserToPermissionGroupCommand = async (input, context) => {
11
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
11
+ const b = (0, core_1.requestBuilder)(input, context);
12
12
  const headers = {
13
13
  "content-type": "application/json",
14
14
  };
15
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
16
- "/permission-group/{permissionGroupId}/users/{userId}";
17
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
18
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
15
+ b.bp("/permission-group/{permissionGroupId}/users/{userId}");
16
+ b.p("permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
17
+ b.p("userId", () => input.userId, "{userId}", false);
19
18
  let body;
20
19
  body = JSON.stringify((0, smithy_client_1.take)(input, {
21
20
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
22
21
  }));
23
- return new protocol_http_1.HttpRequest({
24
- protocol,
25
- hostname,
26
- port,
27
- method: "POST",
28
- headers,
29
- path: resolvedPath,
30
- body,
31
- });
22
+ b.m("POST").h(headers).b(body);
23
+ return b.build();
32
24
  };
33
25
  exports.se_AssociateUserToPermissionGroupCommand = se_AssociateUserToPermissionGroupCommand;
34
26
  const se_CreateChangesetCommand = async (input, context) => {
35
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
27
+ const b = (0, core_1.requestBuilder)(input, context);
36
28
  const headers = {
37
29
  "content-type": "application/json",
38
30
  };
39
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{datasetId}/changesetsv2";
40
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
31
+ b.bp("/datasets/{datasetId}/changesetsv2");
32
+ b.p("datasetId", () => input.datasetId, "{datasetId}", false);
41
33
  let body;
42
34
  body = JSON.stringify((0, smithy_client_1.take)(input, {
43
35
  changeType: [],
@@ -45,23 +37,16 @@ const se_CreateChangesetCommand = async (input, context) => {
45
37
  formatParams: (_) => (0, smithy_client_1._json)(_),
46
38
  sourceParams: (_) => (0, smithy_client_1._json)(_),
47
39
  }));
48
- return new protocol_http_1.HttpRequest({
49
- protocol,
50
- hostname,
51
- port,
52
- method: "POST",
53
- headers,
54
- path: resolvedPath,
55
- body,
56
- });
40
+ b.m("POST").h(headers).b(body);
41
+ return b.build();
57
42
  };
58
43
  exports.se_CreateChangesetCommand = se_CreateChangesetCommand;
59
44
  const se_CreateDatasetCommand = async (input, context) => {
60
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
45
+ const b = (0, core_1.requestBuilder)(input, context);
61
46
  const headers = {
62
47
  "content-type": "application/json",
63
48
  };
64
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasetsv2";
49
+ b.bp("/datasetsv2");
65
50
  let body;
66
51
  body = JSON.stringify((0, smithy_client_1.take)(input, {
67
52
  alias: [],
@@ -73,24 +58,17 @@ const se_CreateDatasetCommand = async (input, context) => {
73
58
  permissionGroupParams: (_) => (0, smithy_client_1._json)(_),
74
59
  schemaDefinition: (_) => (0, smithy_client_1._json)(_),
75
60
  }));
76
- return new protocol_http_1.HttpRequest({
77
- protocol,
78
- hostname,
79
- port,
80
- method: "POST",
81
- headers,
82
- path: resolvedPath,
83
- body,
84
- });
61
+ b.m("POST").h(headers).b(body);
62
+ return b.build();
85
63
  };
86
64
  exports.se_CreateDatasetCommand = se_CreateDatasetCommand;
87
65
  const se_CreateDataViewCommand = async (input, context) => {
88
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
66
+ const b = (0, core_1.requestBuilder)(input, context);
89
67
  const headers = {
90
68
  "content-type": "application/json",
91
69
  };
92
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{datasetId}/dataviewsv2";
93
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
70
+ b.bp("/datasets/{datasetId}/dataviewsv2");
71
+ b.p("datasetId", () => input.datasetId, "{datasetId}", false);
94
72
  let body;
95
73
  body = JSON.stringify((0, smithy_client_1.take)(input, {
96
74
  asOfTimestamp: [],
@@ -100,23 +78,16 @@ const se_CreateDataViewCommand = async (input, context) => {
100
78
  partitionColumns: (_) => (0, smithy_client_1._json)(_),
101
79
  sortColumns: (_) => (0, smithy_client_1._json)(_),
102
80
  }));
103
- return new protocol_http_1.HttpRequest({
104
- protocol,
105
- hostname,
106
- port,
107
- method: "POST",
108
- headers,
109
- path: resolvedPath,
110
- body,
111
- });
81
+ b.m("POST").h(headers).b(body);
82
+ return b.build();
112
83
  };
113
84
  exports.se_CreateDataViewCommand = se_CreateDataViewCommand;
114
85
  const se_CreatePermissionGroupCommand = async (input, context) => {
115
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
86
+ const b = (0, core_1.requestBuilder)(input, context);
116
87
  const headers = {
117
88
  "content-type": "application/json",
118
89
  };
119
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group";
90
+ b.bp("/permission-group");
120
91
  let body;
121
92
  body = JSON.stringify((0, smithy_client_1.take)(input, {
122
93
  applicationPermissions: (_) => (0, smithy_client_1._json)(_),
@@ -124,23 +95,16 @@ const se_CreatePermissionGroupCommand = async (input, context) => {
124
95
  description: [],
125
96
  name: [],
126
97
  }));
127
- return new protocol_http_1.HttpRequest({
128
- protocol,
129
- hostname,
130
- port,
131
- method: "POST",
132
- headers,
133
- path: resolvedPath,
134
- body,
135
- });
98
+ b.m("POST").h(headers).b(body);
99
+ return b.build();
136
100
  };
137
101
  exports.se_CreatePermissionGroupCommand = se_CreatePermissionGroupCommand;
138
102
  const se_CreateUserCommand = async (input, context) => {
139
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
103
+ const b = (0, core_1.requestBuilder)(input, context);
140
104
  const headers = {
141
105
  "content-type": "application/json",
142
106
  };
143
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user";
107
+ b.bp("/user");
144
108
  let body;
145
109
  body = JSON.stringify((0, smithy_client_1.take)(input, {
146
110
  apiAccess: [],
@@ -151,483 +115,305 @@ const se_CreateUserCommand = async (input, context) => {
151
115
  lastName: [],
152
116
  type: [],
153
117
  }));
154
- return new protocol_http_1.HttpRequest({
155
- protocol,
156
- hostname,
157
- port,
158
- method: "POST",
159
- headers,
160
- path: resolvedPath,
161
- body,
162
- });
118
+ b.m("POST").h(headers).b(body);
119
+ return b.build();
163
120
  };
164
121
  exports.se_CreateUserCommand = se_CreateUserCommand;
165
122
  const se_DeleteDatasetCommand = async (input, context) => {
166
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
123
+ const b = (0, core_1.requestBuilder)(input, context);
167
124
  const headers = {};
168
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasetsv2/{datasetId}";
169
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
125
+ b.bp("/datasetsv2/{datasetId}");
126
+ b.p("datasetId", () => input.datasetId, "{datasetId}", false);
170
127
  const query = (0, smithy_client_1.map)({
171
- clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
128
+ [_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
172
129
  });
173
130
  let body;
174
- return new protocol_http_1.HttpRequest({
175
- protocol,
176
- hostname,
177
- port,
178
- method: "DELETE",
179
- headers,
180
- path: resolvedPath,
181
- query,
182
- body,
183
- });
131
+ b.m("DELETE").h(headers).q(query).b(body);
132
+ return b.build();
184
133
  };
185
134
  exports.se_DeleteDatasetCommand = se_DeleteDatasetCommand;
186
135
  const se_DeletePermissionGroupCommand = async (input, context) => {
187
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
136
+ const b = (0, core_1.requestBuilder)(input, context);
188
137
  const headers = {};
189
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group/{permissionGroupId}";
190
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
138
+ b.bp("/permission-group/{permissionGroupId}");
139
+ b.p("permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
191
140
  const query = (0, smithy_client_1.map)({
192
- clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
141
+ [_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
193
142
  });
194
143
  let body;
195
- return new protocol_http_1.HttpRequest({
196
- protocol,
197
- hostname,
198
- port,
199
- method: "DELETE",
200
- headers,
201
- path: resolvedPath,
202
- query,
203
- body,
204
- });
144
+ b.m("DELETE").h(headers).q(query).b(body);
145
+ return b.build();
205
146
  };
206
147
  exports.se_DeletePermissionGroupCommand = se_DeletePermissionGroupCommand;
207
148
  const se_DisableUserCommand = async (input, context) => {
208
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
149
+ const b = (0, core_1.requestBuilder)(input, context);
209
150
  const headers = {
210
151
  "content-type": "application/json",
211
152
  };
212
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}/disable";
213
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
153
+ b.bp("/user/{userId}/disable");
154
+ b.p("userId", () => input.userId, "{userId}", false);
214
155
  let body;
215
156
  body = JSON.stringify((0, smithy_client_1.take)(input, {
216
157
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
217
158
  }));
218
- return new protocol_http_1.HttpRequest({
219
- protocol,
220
- hostname,
221
- port,
222
- method: "POST",
223
- headers,
224
- path: resolvedPath,
225
- body,
226
- });
159
+ b.m("POST").h(headers).b(body);
160
+ return b.build();
227
161
  };
228
162
  exports.se_DisableUserCommand = se_DisableUserCommand;
229
163
  const se_DisassociateUserFromPermissionGroupCommand = async (input, context) => {
230
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
164
+ const b = (0, core_1.requestBuilder)(input, context);
231
165
  const headers = {};
232
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
233
- "/permission-group/{permissionGroupId}/users/{userId}";
234
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
235
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
166
+ b.bp("/permission-group/{permissionGroupId}/users/{userId}");
167
+ b.p("permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
168
+ b.p("userId", () => input.userId, "{userId}", false);
236
169
  const query = (0, smithy_client_1.map)({
237
- clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
170
+ [_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
238
171
  });
239
172
  let body;
240
- return new protocol_http_1.HttpRequest({
241
- protocol,
242
- hostname,
243
- port,
244
- method: "DELETE",
245
- headers,
246
- path: resolvedPath,
247
- query,
248
- body,
249
- });
173
+ b.m("DELETE").h(headers).q(query).b(body);
174
+ return b.build();
250
175
  };
251
176
  exports.se_DisassociateUserFromPermissionGroupCommand = se_DisassociateUserFromPermissionGroupCommand;
252
177
  const se_EnableUserCommand = async (input, context) => {
253
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
178
+ const b = (0, core_1.requestBuilder)(input, context);
254
179
  const headers = {
255
180
  "content-type": "application/json",
256
181
  };
257
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}/enable";
258
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
182
+ b.bp("/user/{userId}/enable");
183
+ b.p("userId", () => input.userId, "{userId}", false);
259
184
  let body;
260
185
  body = JSON.stringify((0, smithy_client_1.take)(input, {
261
186
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
262
187
  }));
263
- return new protocol_http_1.HttpRequest({
264
- protocol,
265
- hostname,
266
- port,
267
- method: "POST",
268
- headers,
269
- path: resolvedPath,
270
- body,
271
- });
188
+ b.m("POST").h(headers).b(body);
189
+ return b.build();
272
190
  };
273
191
  exports.se_EnableUserCommand = se_EnableUserCommand;
274
192
  const se_GetChangesetCommand = async (input, context) => {
275
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
193
+ const b = (0, core_1.requestBuilder)(input, context);
276
194
  const headers = {};
277
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
278
- "/datasets/{datasetId}/changesetsv2/{changesetId}";
279
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
280
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "changesetId", () => input.changesetId, "{changesetId}", false);
195
+ b.bp("/datasets/{datasetId}/changesetsv2/{changesetId}");
196
+ b.p("datasetId", () => input.datasetId, "{datasetId}", false);
197
+ b.p("changesetId", () => input.changesetId, "{changesetId}", false);
281
198
  let body;
282
- return new protocol_http_1.HttpRequest({
283
- protocol,
284
- hostname,
285
- port,
286
- method: "GET",
287
- headers,
288
- path: resolvedPath,
289
- body,
290
- });
199
+ b.m("GET").h(headers).b(body);
200
+ return b.build();
291
201
  };
292
202
  exports.se_GetChangesetCommand = se_GetChangesetCommand;
293
203
  const se_GetDatasetCommand = async (input, context) => {
294
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
204
+ const b = (0, core_1.requestBuilder)(input, context);
295
205
  const headers = {};
296
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasetsv2/{datasetId}";
297
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
206
+ b.bp("/datasetsv2/{datasetId}");
207
+ b.p("datasetId", () => input.datasetId, "{datasetId}", false);
298
208
  let body;
299
- return new protocol_http_1.HttpRequest({
300
- protocol,
301
- hostname,
302
- port,
303
- method: "GET",
304
- headers,
305
- path: resolvedPath,
306
- body,
307
- });
209
+ b.m("GET").h(headers).b(body);
210
+ return b.build();
308
211
  };
309
212
  exports.se_GetDatasetCommand = se_GetDatasetCommand;
310
213
  const se_GetDataViewCommand = async (input, context) => {
311
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
214
+ const b = (0, core_1.requestBuilder)(input, context);
312
215
  const headers = {};
313
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
314
- "/datasets/{datasetId}/dataviewsv2/{dataViewId}";
315
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dataViewId", () => input.dataViewId, "{dataViewId}", false);
316
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
216
+ b.bp("/datasets/{datasetId}/dataviewsv2/{dataViewId}");
217
+ b.p("dataViewId", () => input.dataViewId, "{dataViewId}", false);
218
+ b.p("datasetId", () => input.datasetId, "{datasetId}", false);
317
219
  let body;
318
- return new protocol_http_1.HttpRequest({
319
- protocol,
320
- hostname,
321
- port,
322
- method: "GET",
323
- headers,
324
- path: resolvedPath,
325
- body,
326
- });
220
+ b.m("GET").h(headers).b(body);
221
+ return b.build();
327
222
  };
328
223
  exports.se_GetDataViewCommand = se_GetDataViewCommand;
329
224
  const se_GetExternalDataViewAccessDetailsCommand = async (input, context) => {
330
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
225
+ const b = (0, core_1.requestBuilder)(input, context);
331
226
  const headers = {};
332
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
333
- "/datasets/{datasetId}/dataviewsv2/{dataViewId}/external-access-details";
334
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dataViewId", () => input.dataViewId, "{dataViewId}", false);
335
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
227
+ b.bp("/datasets/{datasetId}/dataviewsv2/{dataViewId}/external-access-details");
228
+ b.p("dataViewId", () => input.dataViewId, "{dataViewId}", false);
229
+ b.p("datasetId", () => input.datasetId, "{datasetId}", false);
336
230
  let body;
337
- return new protocol_http_1.HttpRequest({
338
- protocol,
339
- hostname,
340
- port,
341
- method: "POST",
342
- headers,
343
- path: resolvedPath,
344
- body,
345
- });
231
+ b.m("POST").h(headers).b(body);
232
+ return b.build();
346
233
  };
347
234
  exports.se_GetExternalDataViewAccessDetailsCommand = se_GetExternalDataViewAccessDetailsCommand;
348
235
  const se_GetPermissionGroupCommand = async (input, context) => {
349
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
236
+ const b = (0, core_1.requestBuilder)(input, context);
350
237
  const headers = {};
351
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group/{permissionGroupId}";
352
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
238
+ b.bp("/permission-group/{permissionGroupId}");
239
+ b.p("permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
353
240
  let body;
354
- return new protocol_http_1.HttpRequest({
355
- protocol,
356
- hostname,
357
- port,
358
- method: "GET",
359
- headers,
360
- path: resolvedPath,
361
- body,
362
- });
241
+ b.m("GET").h(headers).b(body);
242
+ return b.build();
363
243
  };
364
244
  exports.se_GetPermissionGroupCommand = se_GetPermissionGroupCommand;
365
245
  const se_GetProgrammaticAccessCredentialsCommand = async (input, context) => {
366
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
246
+ const b = (0, core_1.requestBuilder)(input, context);
367
247
  const headers = {};
368
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/credentials/programmatic";
248
+ b.bp("/credentials/programmatic");
369
249
  const query = (0, smithy_client_1.map)({
370
- durationInMinutes: [() => input.durationInMinutes !== void 0, () => input.durationInMinutes.toString()],
371
- environmentId: [, (0, smithy_client_1.expectNonNull)(input.environmentId, `environmentId`)],
250
+ [_dIM]: [() => input.durationInMinutes !== void 0, () => input[_dIM].toString()],
251
+ [_eI]: [, (0, smithy_client_1.expectNonNull)(input[_eI], `environmentId`)],
372
252
  });
373
253
  let body;
374
- return new protocol_http_1.HttpRequest({
375
- protocol,
376
- hostname,
377
- port,
378
- method: "GET",
379
- headers,
380
- path: resolvedPath,
381
- query,
382
- body,
383
- });
254
+ b.m("GET").h(headers).q(query).b(body);
255
+ return b.build();
384
256
  };
385
257
  exports.se_GetProgrammaticAccessCredentialsCommand = se_GetProgrammaticAccessCredentialsCommand;
386
258
  const se_GetUserCommand = async (input, context) => {
387
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
259
+ const b = (0, core_1.requestBuilder)(input, context);
388
260
  const headers = {};
389
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}";
390
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
261
+ b.bp("/user/{userId}");
262
+ b.p("userId", () => input.userId, "{userId}", false);
391
263
  let body;
392
- return new protocol_http_1.HttpRequest({
393
- protocol,
394
- hostname,
395
- port,
396
- method: "GET",
397
- headers,
398
- path: resolvedPath,
399
- body,
400
- });
264
+ b.m("GET").h(headers).b(body);
265
+ return b.build();
401
266
  };
402
267
  exports.se_GetUserCommand = se_GetUserCommand;
403
268
  const se_GetWorkingLocationCommand = async (input, context) => {
404
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
269
+ const b = (0, core_1.requestBuilder)(input, context);
405
270
  const headers = {
406
271
  "content-type": "application/json",
407
272
  };
408
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workingLocationV1";
273
+ b.bp("/workingLocationV1");
409
274
  let body;
410
275
  body = JSON.stringify((0, smithy_client_1.take)(input, {
411
276
  locationType: [],
412
277
  }));
413
- return new protocol_http_1.HttpRequest({
414
- protocol,
415
- hostname,
416
- port,
417
- method: "POST",
418
- headers,
419
- path: resolvedPath,
420
- body,
421
- });
278
+ b.m("POST").h(headers).b(body);
279
+ return b.build();
422
280
  };
423
281
  exports.se_GetWorkingLocationCommand = se_GetWorkingLocationCommand;
424
282
  const se_ListChangesetsCommand = async (input, context) => {
425
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
283
+ const b = (0, core_1.requestBuilder)(input, context);
426
284
  const headers = {};
427
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{datasetId}/changesetsv2";
428
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
285
+ b.bp("/datasets/{datasetId}/changesetsv2");
286
+ b.p("datasetId", () => input.datasetId, "{datasetId}", false);
429
287
  const query = (0, smithy_client_1.map)({
430
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
431
- nextToken: [, input.nextToken],
288
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
289
+ [_nT]: [, input[_nT]],
432
290
  });
433
291
  let body;
434
- return new protocol_http_1.HttpRequest({
435
- protocol,
436
- hostname,
437
- port,
438
- method: "GET",
439
- headers,
440
- path: resolvedPath,
441
- query,
442
- body,
443
- });
292
+ b.m("GET").h(headers).q(query).b(body);
293
+ return b.build();
444
294
  };
445
295
  exports.se_ListChangesetsCommand = se_ListChangesetsCommand;
446
296
  const se_ListDatasetsCommand = async (input, context) => {
447
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
297
+ const b = (0, core_1.requestBuilder)(input, context);
448
298
  const headers = {};
449
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasetsv2";
299
+ b.bp("/datasetsv2");
450
300
  const query = (0, smithy_client_1.map)({
451
- nextToken: [, input.nextToken],
452
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
301
+ [_nT]: [, input[_nT]],
302
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
453
303
  });
454
304
  let body;
455
- return new protocol_http_1.HttpRequest({
456
- protocol,
457
- hostname,
458
- port,
459
- method: "GET",
460
- headers,
461
- path: resolvedPath,
462
- query,
463
- body,
464
- });
305
+ b.m("GET").h(headers).q(query).b(body);
306
+ return b.build();
465
307
  };
466
308
  exports.se_ListDatasetsCommand = se_ListDatasetsCommand;
467
309
  const se_ListDataViewsCommand = async (input, context) => {
468
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
310
+ const b = (0, core_1.requestBuilder)(input, context);
469
311
  const headers = {};
470
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{datasetId}/dataviewsv2";
471
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
312
+ b.bp("/datasets/{datasetId}/dataviewsv2");
313
+ b.p("datasetId", () => input.datasetId, "{datasetId}", false);
472
314
  const query = (0, smithy_client_1.map)({
473
- nextToken: [, input.nextToken],
474
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
315
+ [_nT]: [, input[_nT]],
316
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
475
317
  });
476
318
  let body;
477
- return new protocol_http_1.HttpRequest({
478
- protocol,
479
- hostname,
480
- port,
481
- method: "GET",
482
- headers,
483
- path: resolvedPath,
484
- query,
485
- body,
486
- });
319
+ b.m("GET").h(headers).q(query).b(body);
320
+ return b.build();
487
321
  };
488
322
  exports.se_ListDataViewsCommand = se_ListDataViewsCommand;
489
323
  const se_ListPermissionGroupsCommand = async (input, context) => {
490
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
324
+ const b = (0, core_1.requestBuilder)(input, context);
491
325
  const headers = {};
492
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group";
326
+ b.bp("/permission-group");
493
327
  const query = (0, smithy_client_1.map)({
494
- nextToken: [, input.nextToken],
495
- maxResults: [(0, smithy_client_1.expectNonNull)(input.maxResults, `maxResults`) != null, () => input.maxResults.toString()],
328
+ [_nT]: [, input[_nT]],
329
+ [_mR]: [(0, smithy_client_1.expectNonNull)(input.maxResults, `maxResults`) != null, () => input[_mR].toString()],
496
330
  });
497
331
  let body;
498
- return new protocol_http_1.HttpRequest({
499
- protocol,
500
- hostname,
501
- port,
502
- method: "GET",
503
- headers,
504
- path: resolvedPath,
505
- query,
506
- body,
507
- });
332
+ b.m("GET").h(headers).q(query).b(body);
333
+ return b.build();
508
334
  };
509
335
  exports.se_ListPermissionGroupsCommand = se_ListPermissionGroupsCommand;
510
336
  const se_ListPermissionGroupsByUserCommand = async (input, context) => {
511
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
337
+ const b = (0, core_1.requestBuilder)(input, context);
512
338
  const headers = {};
513
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}/permission-groups";
514
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
339
+ b.bp("/user/{userId}/permission-groups");
340
+ b.p("userId", () => input.userId, "{userId}", false);
515
341
  const query = (0, smithy_client_1.map)({
516
- nextToken: [, input.nextToken],
517
- maxResults: [(0, smithy_client_1.expectNonNull)(input.maxResults, `maxResults`) != null, () => input.maxResults.toString()],
342
+ [_nT]: [, input[_nT]],
343
+ [_mR]: [(0, smithy_client_1.expectNonNull)(input.maxResults, `maxResults`) != null, () => input[_mR].toString()],
518
344
  });
519
345
  let body;
520
- return new protocol_http_1.HttpRequest({
521
- protocol,
522
- hostname,
523
- port,
524
- method: "GET",
525
- headers,
526
- path: resolvedPath,
527
- query,
528
- body,
529
- });
346
+ b.m("GET").h(headers).q(query).b(body);
347
+ return b.build();
530
348
  };
531
349
  exports.se_ListPermissionGroupsByUserCommand = se_ListPermissionGroupsByUserCommand;
532
350
  const se_ListUsersCommand = async (input, context) => {
533
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
351
+ const b = (0, core_1.requestBuilder)(input, context);
534
352
  const headers = {};
535
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user";
353
+ b.bp("/user");
536
354
  const query = (0, smithy_client_1.map)({
537
- nextToken: [, input.nextToken],
538
- maxResults: [(0, smithy_client_1.expectNonNull)(input.maxResults, `maxResults`) != null, () => input.maxResults.toString()],
355
+ [_nT]: [, input[_nT]],
356
+ [_mR]: [(0, smithy_client_1.expectNonNull)(input.maxResults, `maxResults`) != null, () => input[_mR].toString()],
539
357
  });
540
358
  let body;
541
- return new protocol_http_1.HttpRequest({
542
- protocol,
543
- hostname,
544
- port,
545
- method: "GET",
546
- headers,
547
- path: resolvedPath,
548
- query,
549
- body,
550
- });
359
+ b.m("GET").h(headers).q(query).b(body);
360
+ return b.build();
551
361
  };
552
362
  exports.se_ListUsersCommand = se_ListUsersCommand;
553
363
  const se_ListUsersByPermissionGroupCommand = async (input, context) => {
554
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
364
+ const b = (0, core_1.requestBuilder)(input, context);
555
365
  const headers = {};
556
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
557
- "/permission-group/{permissionGroupId}/users";
558
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
366
+ b.bp("/permission-group/{permissionGroupId}/users");
367
+ b.p("permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
559
368
  const query = (0, smithy_client_1.map)({
560
- nextToken: [, input.nextToken],
561
- maxResults: [(0, smithy_client_1.expectNonNull)(input.maxResults, `maxResults`) != null, () => input.maxResults.toString()],
369
+ [_nT]: [, input[_nT]],
370
+ [_mR]: [(0, smithy_client_1.expectNonNull)(input.maxResults, `maxResults`) != null, () => input[_mR].toString()],
562
371
  });
563
372
  let body;
564
- return new protocol_http_1.HttpRequest({
565
- protocol,
566
- hostname,
567
- port,
568
- method: "GET",
569
- headers,
570
- path: resolvedPath,
571
- query,
572
- body,
573
- });
373
+ b.m("GET").h(headers).q(query).b(body);
374
+ return b.build();
574
375
  };
575
376
  exports.se_ListUsersByPermissionGroupCommand = se_ListUsersByPermissionGroupCommand;
576
377
  const se_ResetUserPasswordCommand = async (input, context) => {
577
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
378
+ const b = (0, core_1.requestBuilder)(input, context);
578
379
  const headers = {
579
380
  "content-type": "application/json",
580
381
  };
581
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}/password";
582
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
382
+ b.bp("/user/{userId}/password");
383
+ b.p("userId", () => input.userId, "{userId}", false);
583
384
  let body;
584
385
  body = JSON.stringify((0, smithy_client_1.take)(input, {
585
386
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
586
387
  }));
587
- return new protocol_http_1.HttpRequest({
588
- protocol,
589
- hostname,
590
- port,
591
- method: "POST",
592
- headers,
593
- path: resolvedPath,
594
- body,
595
- });
388
+ b.m("POST").h(headers).b(body);
389
+ return b.build();
596
390
  };
597
391
  exports.se_ResetUserPasswordCommand = se_ResetUserPasswordCommand;
598
392
  const se_UpdateChangesetCommand = async (input, context) => {
599
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
393
+ const b = (0, core_1.requestBuilder)(input, context);
600
394
  const headers = {
601
395
  "content-type": "application/json",
602
396
  };
603
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
604
- "/datasets/{datasetId}/changesetsv2/{changesetId}";
605
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
606
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "changesetId", () => input.changesetId, "{changesetId}", false);
397
+ b.bp("/datasets/{datasetId}/changesetsv2/{changesetId}");
398
+ b.p("datasetId", () => input.datasetId, "{datasetId}", false);
399
+ b.p("changesetId", () => input.changesetId, "{changesetId}", false);
607
400
  let body;
608
401
  body = JSON.stringify((0, smithy_client_1.take)(input, {
609
402
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
610
403
  formatParams: (_) => (0, smithy_client_1._json)(_),
611
404
  sourceParams: (_) => (0, smithy_client_1._json)(_),
612
405
  }));
613
- return new protocol_http_1.HttpRequest({
614
- protocol,
615
- hostname,
616
- port,
617
- method: "PUT",
618
- headers,
619
- path: resolvedPath,
620
- body,
621
- });
406
+ b.m("PUT").h(headers).b(body);
407
+ return b.build();
622
408
  };
623
409
  exports.se_UpdateChangesetCommand = se_UpdateChangesetCommand;
624
410
  const se_UpdateDatasetCommand = async (input, context) => {
625
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
411
+ const b = (0, core_1.requestBuilder)(input, context);
626
412
  const headers = {
627
413
  "content-type": "application/json",
628
414
  };
629
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasetsv2/{datasetId}";
630
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
415
+ b.bp("/datasetsv2/{datasetId}");
416
+ b.p("datasetId", () => input.datasetId, "{datasetId}", false);
631
417
  let body;
632
418
  body = JSON.stringify((0, smithy_client_1.take)(input, {
633
419
  alias: [],
@@ -637,24 +423,17 @@ const se_UpdateDatasetCommand = async (input, context) => {
637
423
  kind: [],
638
424
  schemaDefinition: (_) => (0, smithy_client_1._json)(_),
639
425
  }));
640
- return new protocol_http_1.HttpRequest({
641
- protocol,
642
- hostname,
643
- port,
644
- method: "PUT",
645
- headers,
646
- path: resolvedPath,
647
- body,
648
- });
426
+ b.m("PUT").h(headers).b(body);
427
+ return b.build();
649
428
  };
650
429
  exports.se_UpdateDatasetCommand = se_UpdateDatasetCommand;
651
430
  const se_UpdatePermissionGroupCommand = async (input, context) => {
652
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
431
+ const b = (0, core_1.requestBuilder)(input, context);
653
432
  const headers = {
654
433
  "content-type": "application/json",
655
434
  };
656
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group/{permissionGroupId}";
657
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
435
+ b.bp("/permission-group/{permissionGroupId}");
436
+ b.p("permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
658
437
  let body;
659
438
  body = JSON.stringify((0, smithy_client_1.take)(input, {
660
439
  applicationPermissions: (_) => (0, smithy_client_1._json)(_),
@@ -662,24 +441,17 @@ const se_UpdatePermissionGroupCommand = async (input, context) => {
662
441
  description: [],
663
442
  name: [],
664
443
  }));
665
- return new protocol_http_1.HttpRequest({
666
- protocol,
667
- hostname,
668
- port,
669
- method: "PUT",
670
- headers,
671
- path: resolvedPath,
672
- body,
673
- });
444
+ b.m("PUT").h(headers).b(body);
445
+ return b.build();
674
446
  };
675
447
  exports.se_UpdatePermissionGroupCommand = se_UpdatePermissionGroupCommand;
676
448
  const se_UpdateUserCommand = async (input, context) => {
677
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
449
+ const b = (0, core_1.requestBuilder)(input, context);
678
450
  const headers = {
679
451
  "content-type": "application/json",
680
452
  };
681
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}";
682
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
453
+ b.bp("/user/{userId}");
454
+ b.p("userId", () => input.userId, "{userId}", false);
683
455
  let body;
684
456
  body = JSON.stringify((0, smithy_client_1.take)(input, {
685
457
  apiAccess: [],
@@ -689,15 +461,8 @@ const se_UpdateUserCommand = async (input, context) => {
689
461
  lastName: [],
690
462
  type: [],
691
463
  }));
692
- return new protocol_http_1.HttpRequest({
693
- protocol,
694
- hostname,
695
- port,
696
- method: "PUT",
697
- headers,
698
- path: resolvedPath,
699
- body,
700
- });
464
+ b.m("PUT").h(headers).b(body);
465
+ return b.build();
701
466
  };
702
467
  exports.se_UpdateUserCommand = se_UpdateUserCommand;
703
468
  const de_AssociateUserToPermissionGroupCommand = async (output, context) => {
@@ -2348,6 +2113,11 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
2348
2113
  value !== "" &&
2349
2114
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
2350
2115
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
2116
+ const _cT = "clientToken";
2117
+ const _dIM = "durationInMinutes";
2118
+ const _eI = "environmentId";
2119
+ const _mR = "maxResults";
2120
+ const _nT = "nextToken";
2351
2121
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2352
2122
  if (encoded.length) {
2353
2123
  return JSON.parse(encoded);