@aws-sdk/client-finspace-data 3.315.0 → 3.319.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { AssociateUserToPermissionGroupCommand, } from "./commands/AssociateUserToPermissionGroupCommand";
2
3
  import { CreateChangesetCommand, } from "./commands/CreateChangesetCommand";
3
4
  import { CreateDatasetCommand, } from "./commands/CreateDatasetCommand";
@@ -30,439 +31,39 @@ import { UpdateDatasetCommand, } from "./commands/UpdateDatasetCommand";
30
31
  import { UpdatePermissionGroupCommand, } from "./commands/UpdatePermissionGroupCommand";
31
32
  import { UpdateUserCommand } from "./commands/UpdateUserCommand";
32
33
  import { FinspaceDataClient } from "./FinspaceDataClient";
34
+ const commands = {
35
+ AssociateUserToPermissionGroupCommand,
36
+ CreateChangesetCommand,
37
+ CreateDatasetCommand,
38
+ CreateDataViewCommand,
39
+ CreatePermissionGroupCommand,
40
+ CreateUserCommand,
41
+ DeleteDatasetCommand,
42
+ DeletePermissionGroupCommand,
43
+ DisableUserCommand,
44
+ DisassociateUserFromPermissionGroupCommand,
45
+ EnableUserCommand,
46
+ GetChangesetCommand,
47
+ GetDatasetCommand,
48
+ GetDataViewCommand,
49
+ GetExternalDataViewAccessDetailsCommand,
50
+ GetPermissionGroupCommand,
51
+ GetProgrammaticAccessCredentialsCommand,
52
+ GetUserCommand,
53
+ GetWorkingLocationCommand,
54
+ ListChangesetsCommand,
55
+ ListDatasetsCommand,
56
+ ListDataViewsCommand,
57
+ ListPermissionGroupsCommand,
58
+ ListPermissionGroupsByUserCommand,
59
+ ListUsersCommand,
60
+ ListUsersByPermissionGroupCommand,
61
+ ResetUserPasswordCommand,
62
+ UpdateChangesetCommand,
63
+ UpdateDatasetCommand,
64
+ UpdatePermissionGroupCommand,
65
+ UpdateUserCommand,
66
+ };
33
67
  export class FinspaceData extends FinspaceDataClient {
34
- associateUserToPermissionGroup(args, optionsOrCb, cb) {
35
- const command = new AssociateUserToPermissionGroupCommand(args);
36
- if (typeof optionsOrCb === "function") {
37
- this.send(command, optionsOrCb);
38
- }
39
- else if (typeof cb === "function") {
40
- if (typeof optionsOrCb !== "object")
41
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
42
- this.send(command, optionsOrCb || {}, cb);
43
- }
44
- else {
45
- return this.send(command, optionsOrCb);
46
- }
47
- }
48
- createChangeset(args, optionsOrCb, cb) {
49
- const command = new CreateChangesetCommand(args);
50
- if (typeof optionsOrCb === "function") {
51
- this.send(command, optionsOrCb);
52
- }
53
- else if (typeof cb === "function") {
54
- if (typeof optionsOrCb !== "object")
55
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
56
- this.send(command, optionsOrCb || {}, cb);
57
- }
58
- else {
59
- return this.send(command, optionsOrCb);
60
- }
61
- }
62
- createDataset(args, optionsOrCb, cb) {
63
- const command = new CreateDatasetCommand(args);
64
- if (typeof optionsOrCb === "function") {
65
- this.send(command, optionsOrCb);
66
- }
67
- else if (typeof cb === "function") {
68
- if (typeof optionsOrCb !== "object")
69
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
70
- this.send(command, optionsOrCb || {}, cb);
71
- }
72
- else {
73
- return this.send(command, optionsOrCb);
74
- }
75
- }
76
- createDataView(args, optionsOrCb, cb) {
77
- const command = new CreateDataViewCommand(args);
78
- if (typeof optionsOrCb === "function") {
79
- this.send(command, optionsOrCb);
80
- }
81
- else if (typeof cb === "function") {
82
- if (typeof optionsOrCb !== "object")
83
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
84
- this.send(command, optionsOrCb || {}, cb);
85
- }
86
- else {
87
- return this.send(command, optionsOrCb);
88
- }
89
- }
90
- createPermissionGroup(args, optionsOrCb, cb) {
91
- const command = new CreatePermissionGroupCommand(args);
92
- if (typeof optionsOrCb === "function") {
93
- this.send(command, optionsOrCb);
94
- }
95
- else if (typeof cb === "function") {
96
- if (typeof optionsOrCb !== "object")
97
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
98
- this.send(command, optionsOrCb || {}, cb);
99
- }
100
- else {
101
- return this.send(command, optionsOrCb);
102
- }
103
- }
104
- createUser(args, optionsOrCb, cb) {
105
- const command = new CreateUserCommand(args);
106
- if (typeof optionsOrCb === "function") {
107
- this.send(command, optionsOrCb);
108
- }
109
- else if (typeof cb === "function") {
110
- if (typeof optionsOrCb !== "object")
111
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
112
- this.send(command, optionsOrCb || {}, cb);
113
- }
114
- else {
115
- return this.send(command, optionsOrCb);
116
- }
117
- }
118
- deleteDataset(args, optionsOrCb, cb) {
119
- const command = new DeleteDatasetCommand(args);
120
- if (typeof optionsOrCb === "function") {
121
- this.send(command, optionsOrCb);
122
- }
123
- else if (typeof cb === "function") {
124
- if (typeof optionsOrCb !== "object")
125
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
126
- this.send(command, optionsOrCb || {}, cb);
127
- }
128
- else {
129
- return this.send(command, optionsOrCb);
130
- }
131
- }
132
- deletePermissionGroup(args, optionsOrCb, cb) {
133
- const command = new DeletePermissionGroupCommand(args);
134
- if (typeof optionsOrCb === "function") {
135
- this.send(command, optionsOrCb);
136
- }
137
- else if (typeof cb === "function") {
138
- if (typeof optionsOrCb !== "object")
139
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
140
- this.send(command, optionsOrCb || {}, cb);
141
- }
142
- else {
143
- return this.send(command, optionsOrCb);
144
- }
145
- }
146
- disableUser(args, optionsOrCb, cb) {
147
- const command = new DisableUserCommand(args);
148
- if (typeof optionsOrCb === "function") {
149
- this.send(command, optionsOrCb);
150
- }
151
- else if (typeof cb === "function") {
152
- if (typeof optionsOrCb !== "object")
153
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
154
- this.send(command, optionsOrCb || {}, cb);
155
- }
156
- else {
157
- return this.send(command, optionsOrCb);
158
- }
159
- }
160
- disassociateUserFromPermissionGroup(args, optionsOrCb, cb) {
161
- const command = new DisassociateUserFromPermissionGroupCommand(args);
162
- if (typeof optionsOrCb === "function") {
163
- this.send(command, optionsOrCb);
164
- }
165
- else if (typeof cb === "function") {
166
- if (typeof optionsOrCb !== "object")
167
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
168
- this.send(command, optionsOrCb || {}, cb);
169
- }
170
- else {
171
- return this.send(command, optionsOrCb);
172
- }
173
- }
174
- enableUser(args, optionsOrCb, cb) {
175
- const command = new EnableUserCommand(args);
176
- if (typeof optionsOrCb === "function") {
177
- this.send(command, optionsOrCb);
178
- }
179
- else if (typeof cb === "function") {
180
- if (typeof optionsOrCb !== "object")
181
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
182
- this.send(command, optionsOrCb || {}, cb);
183
- }
184
- else {
185
- return this.send(command, optionsOrCb);
186
- }
187
- }
188
- getChangeset(args, optionsOrCb, cb) {
189
- const command = new GetChangesetCommand(args);
190
- if (typeof optionsOrCb === "function") {
191
- this.send(command, optionsOrCb);
192
- }
193
- else if (typeof cb === "function") {
194
- if (typeof optionsOrCb !== "object")
195
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
196
- this.send(command, optionsOrCb || {}, cb);
197
- }
198
- else {
199
- return this.send(command, optionsOrCb);
200
- }
201
- }
202
- getDataset(args, optionsOrCb, cb) {
203
- const command = new GetDatasetCommand(args);
204
- if (typeof optionsOrCb === "function") {
205
- this.send(command, optionsOrCb);
206
- }
207
- else if (typeof cb === "function") {
208
- if (typeof optionsOrCb !== "object")
209
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
210
- this.send(command, optionsOrCb || {}, cb);
211
- }
212
- else {
213
- return this.send(command, optionsOrCb);
214
- }
215
- }
216
- getDataView(args, optionsOrCb, cb) {
217
- const command = new GetDataViewCommand(args);
218
- if (typeof optionsOrCb === "function") {
219
- this.send(command, optionsOrCb);
220
- }
221
- else if (typeof cb === "function") {
222
- if (typeof optionsOrCb !== "object")
223
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
224
- this.send(command, optionsOrCb || {}, cb);
225
- }
226
- else {
227
- return this.send(command, optionsOrCb);
228
- }
229
- }
230
- getExternalDataViewAccessDetails(args, optionsOrCb, cb) {
231
- const command = new GetExternalDataViewAccessDetailsCommand(args);
232
- if (typeof optionsOrCb === "function") {
233
- this.send(command, optionsOrCb);
234
- }
235
- else if (typeof cb === "function") {
236
- if (typeof optionsOrCb !== "object")
237
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
238
- this.send(command, optionsOrCb || {}, cb);
239
- }
240
- else {
241
- return this.send(command, optionsOrCb);
242
- }
243
- }
244
- getPermissionGroup(args, optionsOrCb, cb) {
245
- const command = new GetPermissionGroupCommand(args);
246
- if (typeof optionsOrCb === "function") {
247
- this.send(command, optionsOrCb);
248
- }
249
- else if (typeof cb === "function") {
250
- if (typeof optionsOrCb !== "object")
251
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
252
- this.send(command, optionsOrCb || {}, cb);
253
- }
254
- else {
255
- return this.send(command, optionsOrCb);
256
- }
257
- }
258
- getProgrammaticAccessCredentials(args, optionsOrCb, cb) {
259
- const command = new GetProgrammaticAccessCredentialsCommand(args);
260
- if (typeof optionsOrCb === "function") {
261
- this.send(command, optionsOrCb);
262
- }
263
- else if (typeof cb === "function") {
264
- if (typeof optionsOrCb !== "object")
265
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
266
- this.send(command, optionsOrCb || {}, cb);
267
- }
268
- else {
269
- return this.send(command, optionsOrCb);
270
- }
271
- }
272
- getUser(args, optionsOrCb, cb) {
273
- const command = new GetUserCommand(args);
274
- if (typeof optionsOrCb === "function") {
275
- this.send(command, optionsOrCb);
276
- }
277
- else if (typeof cb === "function") {
278
- if (typeof optionsOrCb !== "object")
279
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
280
- this.send(command, optionsOrCb || {}, cb);
281
- }
282
- else {
283
- return this.send(command, optionsOrCb);
284
- }
285
- }
286
- getWorkingLocation(args, optionsOrCb, cb) {
287
- const command = new GetWorkingLocationCommand(args);
288
- if (typeof optionsOrCb === "function") {
289
- this.send(command, optionsOrCb);
290
- }
291
- else if (typeof cb === "function") {
292
- if (typeof optionsOrCb !== "object")
293
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
294
- this.send(command, optionsOrCb || {}, cb);
295
- }
296
- else {
297
- return this.send(command, optionsOrCb);
298
- }
299
- }
300
- listChangesets(args, optionsOrCb, cb) {
301
- const command = new ListChangesetsCommand(args);
302
- if (typeof optionsOrCb === "function") {
303
- this.send(command, optionsOrCb);
304
- }
305
- else if (typeof cb === "function") {
306
- if (typeof optionsOrCb !== "object")
307
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
308
- this.send(command, optionsOrCb || {}, cb);
309
- }
310
- else {
311
- return this.send(command, optionsOrCb);
312
- }
313
- }
314
- listDatasets(args, optionsOrCb, cb) {
315
- const command = new ListDatasetsCommand(args);
316
- if (typeof optionsOrCb === "function") {
317
- this.send(command, optionsOrCb);
318
- }
319
- else if (typeof cb === "function") {
320
- if (typeof optionsOrCb !== "object")
321
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
322
- this.send(command, optionsOrCb || {}, cb);
323
- }
324
- else {
325
- return this.send(command, optionsOrCb);
326
- }
327
- }
328
- listDataViews(args, optionsOrCb, cb) {
329
- const command = new ListDataViewsCommand(args);
330
- if (typeof optionsOrCb === "function") {
331
- this.send(command, optionsOrCb);
332
- }
333
- else if (typeof cb === "function") {
334
- if (typeof optionsOrCb !== "object")
335
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
336
- this.send(command, optionsOrCb || {}, cb);
337
- }
338
- else {
339
- return this.send(command, optionsOrCb);
340
- }
341
- }
342
- listPermissionGroups(args, optionsOrCb, cb) {
343
- const command = new ListPermissionGroupsCommand(args);
344
- if (typeof optionsOrCb === "function") {
345
- this.send(command, optionsOrCb);
346
- }
347
- else if (typeof cb === "function") {
348
- if (typeof optionsOrCb !== "object")
349
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
350
- this.send(command, optionsOrCb || {}, cb);
351
- }
352
- else {
353
- return this.send(command, optionsOrCb);
354
- }
355
- }
356
- listPermissionGroupsByUser(args, optionsOrCb, cb) {
357
- const command = new ListPermissionGroupsByUserCommand(args);
358
- if (typeof optionsOrCb === "function") {
359
- this.send(command, optionsOrCb);
360
- }
361
- else if (typeof cb === "function") {
362
- if (typeof optionsOrCb !== "object")
363
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
364
- this.send(command, optionsOrCb || {}, cb);
365
- }
366
- else {
367
- return this.send(command, optionsOrCb);
368
- }
369
- }
370
- listUsers(args, optionsOrCb, cb) {
371
- const command = new ListUsersCommand(args);
372
- if (typeof optionsOrCb === "function") {
373
- this.send(command, optionsOrCb);
374
- }
375
- else if (typeof cb === "function") {
376
- if (typeof optionsOrCb !== "object")
377
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
378
- this.send(command, optionsOrCb || {}, cb);
379
- }
380
- else {
381
- return this.send(command, optionsOrCb);
382
- }
383
- }
384
- listUsersByPermissionGroup(args, optionsOrCb, cb) {
385
- const command = new ListUsersByPermissionGroupCommand(args);
386
- if (typeof optionsOrCb === "function") {
387
- this.send(command, optionsOrCb);
388
- }
389
- else if (typeof cb === "function") {
390
- if (typeof optionsOrCb !== "object")
391
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
392
- this.send(command, optionsOrCb || {}, cb);
393
- }
394
- else {
395
- return this.send(command, optionsOrCb);
396
- }
397
- }
398
- resetUserPassword(args, optionsOrCb, cb) {
399
- const command = new ResetUserPasswordCommand(args);
400
- if (typeof optionsOrCb === "function") {
401
- this.send(command, optionsOrCb);
402
- }
403
- else if (typeof cb === "function") {
404
- if (typeof optionsOrCb !== "object")
405
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
406
- this.send(command, optionsOrCb || {}, cb);
407
- }
408
- else {
409
- return this.send(command, optionsOrCb);
410
- }
411
- }
412
- updateChangeset(args, optionsOrCb, cb) {
413
- const command = new UpdateChangesetCommand(args);
414
- if (typeof optionsOrCb === "function") {
415
- this.send(command, optionsOrCb);
416
- }
417
- else if (typeof cb === "function") {
418
- if (typeof optionsOrCb !== "object")
419
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
420
- this.send(command, optionsOrCb || {}, cb);
421
- }
422
- else {
423
- return this.send(command, optionsOrCb);
424
- }
425
- }
426
- updateDataset(args, optionsOrCb, cb) {
427
- const command = new UpdateDatasetCommand(args);
428
- if (typeof optionsOrCb === "function") {
429
- this.send(command, optionsOrCb);
430
- }
431
- else if (typeof cb === "function") {
432
- if (typeof optionsOrCb !== "object")
433
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
434
- this.send(command, optionsOrCb || {}, cb);
435
- }
436
- else {
437
- return this.send(command, optionsOrCb);
438
- }
439
- }
440
- updatePermissionGroup(args, optionsOrCb, cb) {
441
- const command = new UpdatePermissionGroupCommand(args);
442
- if (typeof optionsOrCb === "function") {
443
- this.send(command, optionsOrCb);
444
- }
445
- else if (typeof cb === "function") {
446
- if (typeof optionsOrCb !== "object")
447
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
448
- this.send(command, optionsOrCb || {}, cb);
449
- }
450
- else {
451
- return this.send(command, optionsOrCb);
452
- }
453
- }
454
- updateUser(args, optionsOrCb, cb) {
455
- const command = new UpdateUserCommand(args);
456
- if (typeof optionsOrCb === "function") {
457
- this.send(command, optionsOrCb);
458
- }
459
- else if (typeof cb === "function") {
460
- if (typeof optionsOrCb !== "object")
461
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
462
- this.send(command, optionsOrCb || {}, cb);
463
- }
464
- else {
465
- return this.send(command, optionsOrCb);
466
- }
467
- }
468
68
  }
69
+ createAggregatedClient(commands, FinspaceData);
@@ -14,7 +14,7 @@ export const se_AssociateUserToPermissionGroupCommand = async (input, context) =
14
14
  resolvedPath = __resolvedPath(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
15
15
  let body;
16
16
  body = JSON.stringify(take(input, {
17
- clientToken: (_) => _ ?? generateIdempotencyToken(),
17
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
18
18
  }));
19
19
  return new __HttpRequest({
20
20
  protocol,
@@ -36,7 +36,7 @@ export const se_CreateChangesetCommand = async (input, context) => {
36
36
  let body;
37
37
  body = JSON.stringify(take(input, {
38
38
  changeType: [],
39
- clientToken: (_) => _ ?? generateIdempotencyToken(),
39
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
40
40
  formatParams: (_) => _json(_),
41
41
  sourceParams: (_) => _json(_),
42
42
  }));
@@ -59,7 +59,7 @@ export const se_CreateDatasetCommand = async (input, context) => {
59
59
  let body;
60
60
  body = JSON.stringify(take(input, {
61
61
  alias: [],
62
- clientToken: (_) => _ ?? generateIdempotencyToken(),
62
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
63
63
  datasetDescription: [],
64
64
  datasetTitle: [],
65
65
  kind: [],
@@ -88,7 +88,7 @@ export const se_CreateDataViewCommand = async (input, context) => {
88
88
  body = JSON.stringify(take(input, {
89
89
  asOfTimestamp: [],
90
90
  autoUpdate: [],
91
- clientToken: (_) => _ ?? generateIdempotencyToken(),
91
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
92
92
  destinationTypeParams: (_) => _json(_),
93
93
  partitionColumns: (_) => _json(_),
94
94
  sortColumns: (_) => _json(_),
@@ -112,7 +112,7 @@ export const se_CreatePermissionGroupCommand = async (input, context) => {
112
112
  let body;
113
113
  body = JSON.stringify(take(input, {
114
114
  applicationPermissions: (_) => _json(_),
115
- clientToken: (_) => _ ?? generateIdempotencyToken(),
115
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
116
116
  description: [],
117
117
  name: [],
118
118
  }));
@@ -136,7 +136,7 @@ export const se_CreateUserCommand = async (input, context) => {
136
136
  body = JSON.stringify(take(input, {
137
137
  ApiAccess: [],
138
138
  apiAccessPrincipalArn: [],
139
- clientToken: (_) => _ ?? generateIdempotencyToken(),
139
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
140
140
  emailAddress: [],
141
141
  firstName: [],
142
142
  lastName: [],
@@ -201,7 +201,7 @@ export const se_DisableUserCommand = async (input, context) => {
201
201
  resolvedPath = __resolvedPath(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
202
202
  let body;
203
203
  body = JSON.stringify(take(input, {
204
- clientToken: (_) => _ ?? generateIdempotencyToken(),
204
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
205
205
  }));
206
206
  return new __HttpRequest({
207
207
  protocol,
@@ -244,7 +244,7 @@ export const se_EnableUserCommand = async (input, context) => {
244
244
  resolvedPath = __resolvedPath(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
245
245
  let body;
246
246
  body = JSON.stringify(take(input, {
247
- clientToken: (_) => _ ?? generateIdempotencyToken(),
247
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
248
248
  }));
249
249
  return new __HttpRequest({
250
250
  protocol,
@@ -552,7 +552,7 @@ export const se_ResetUserPasswordCommand = async (input, context) => {
552
552
  resolvedPath = __resolvedPath(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
553
553
  let body;
554
554
  body = JSON.stringify(take(input, {
555
- clientToken: (_) => _ ?? generateIdempotencyToken(),
555
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
556
556
  }));
557
557
  return new __HttpRequest({
558
558
  protocol,
@@ -575,7 +575,7 @@ export const se_UpdateChangesetCommand = async (input, context) => {
575
575
  resolvedPath = __resolvedPath(resolvedPath, input, "changesetId", () => input.changesetId, "{changesetId}", false);
576
576
  let body;
577
577
  body = JSON.stringify(take(input, {
578
- clientToken: (_) => _ ?? generateIdempotencyToken(),
578
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
579
579
  formatParams: (_) => _json(_),
580
580
  sourceParams: (_) => _json(_),
581
581
  }));
@@ -599,7 +599,7 @@ export const se_UpdateDatasetCommand = async (input, context) => {
599
599
  let body;
600
600
  body = JSON.stringify(take(input, {
601
601
  alias: [],
602
- clientToken: (_) => _ ?? generateIdempotencyToken(),
602
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
603
603
  datasetDescription: [],
604
604
  datasetTitle: [],
605
605
  kind: [],
@@ -625,7 +625,7 @@ export const se_UpdatePermissionGroupCommand = async (input, context) => {
625
625
  let body;
626
626
  body = JSON.stringify(take(input, {
627
627
  applicationPermissions: (_) => _json(_),
628
- clientToken: (_) => _ ?? generateIdempotencyToken(),
628
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
629
629
  description: [],
630
630
  name: [],
631
631
  }));
@@ -650,7 +650,7 @@ export const se_UpdateUserCommand = async (input, context) => {
650
650
  body = JSON.stringify(take(input, {
651
651
  apiAccess: [],
652
652
  apiAccessPrincipalArn: [],
653
- clientToken: (_) => _ ?? generateIdempotencyToken(),
653
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
654
654
  firstName: [],
655
655
  lastName: [],
656
656
  type: [],