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