@aws-sdk/client-finspace-data 3.310.0 → 3.315.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 +368 -941
- package/dist-es/protocols/Aws_restJson1.js +318 -891
- package/package.json +6 -6
|
@@ -17,9 +17,9 @@ const se_AssociateUserToPermissionGroupCommand = async (input, context) => {
|
|
|
17
17
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
|
|
18
18
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify({
|
|
21
|
-
clientToken:
|
|
22
|
-
});
|
|
20
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
21
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
22
|
+
}));
|
|
23
23
|
return new protocol_http_1.HttpRequest({
|
|
24
24
|
protocol,
|
|
25
25
|
hostname,
|
|
@@ -39,12 +39,12 @@ const se_CreateChangesetCommand = async (input, context) => {
|
|
|
39
39
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{datasetId}/changesetsv2";
|
|
40
40
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
|
|
41
41
|
let body;
|
|
42
|
-
body = JSON.stringify({
|
|
43
|
-
|
|
44
|
-
clientToken:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
});
|
|
42
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
43
|
+
changeType: [],
|
|
44
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
45
|
+
formatParams: (_) => (0, smithy_client_1._json)(_),
|
|
46
|
+
sourceParams: (_) => (0, smithy_client_1._json)(_),
|
|
47
|
+
}));
|
|
48
48
|
return new protocol_http_1.HttpRequest({
|
|
49
49
|
protocol,
|
|
50
50
|
hostname,
|
|
@@ -63,18 +63,16 @@ const se_CreateDatasetCommand = async (input, context) => {
|
|
|
63
63
|
};
|
|
64
64
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasetsv2";
|
|
65
65
|
let body;
|
|
66
|
-
body = JSON.stringify({
|
|
67
|
-
|
|
68
|
-
clientToken:
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
...(input.schemaDefinition != null && { schemaDefinition: se_SchemaUnion(input.schemaDefinition, context) }),
|
|
77
|
-
});
|
|
66
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
67
|
+
alias: [],
|
|
68
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
69
|
+
datasetDescription: [],
|
|
70
|
+
datasetTitle: [],
|
|
71
|
+
kind: [],
|
|
72
|
+
ownerInfo: (_) => (0, smithy_client_1._json)(_),
|
|
73
|
+
permissionGroupParams: (_) => (0, smithy_client_1._json)(_),
|
|
74
|
+
schemaDefinition: (_) => (0, smithy_client_1._json)(_),
|
|
75
|
+
}));
|
|
78
76
|
return new protocol_http_1.HttpRequest({
|
|
79
77
|
protocol,
|
|
80
78
|
hostname,
|
|
@@ -94,18 +92,14 @@ const se_CreateDataViewCommand = async (input, context) => {
|
|
|
94
92
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{datasetId}/dataviewsv2";
|
|
95
93
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
|
|
96
94
|
let body;
|
|
97
|
-
body = JSON.stringify({
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
clientToken:
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
partitionColumns: se_PartitionColumnList(input.partitionColumns, context),
|
|
106
|
-
}),
|
|
107
|
-
...(input.sortColumns != null && { sortColumns: se_SortColumnList(input.sortColumns, context) }),
|
|
108
|
-
});
|
|
95
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
96
|
+
asOfTimestamp: [],
|
|
97
|
+
autoUpdate: [],
|
|
98
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
99
|
+
destinationTypeParams: (_) => (0, smithy_client_1._json)(_),
|
|
100
|
+
partitionColumns: (_) => (0, smithy_client_1._json)(_),
|
|
101
|
+
sortColumns: (_) => (0, smithy_client_1._json)(_),
|
|
102
|
+
}));
|
|
109
103
|
return new protocol_http_1.HttpRequest({
|
|
110
104
|
protocol,
|
|
111
105
|
hostname,
|
|
@@ -124,14 +118,12 @@ const se_CreatePermissionGroupCommand = async (input, context) => {
|
|
|
124
118
|
};
|
|
125
119
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group";
|
|
126
120
|
let body;
|
|
127
|
-
body = JSON.stringify({
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
...(input.name != null && { name: input.name }),
|
|
134
|
-
});
|
|
121
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
122
|
+
applicationPermissions: (_) => (0, smithy_client_1._json)(_),
|
|
123
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
124
|
+
description: [],
|
|
125
|
+
name: [],
|
|
126
|
+
}));
|
|
135
127
|
return new protocol_http_1.HttpRequest({
|
|
136
128
|
protocol,
|
|
137
129
|
hostname,
|
|
@@ -150,15 +142,15 @@ const se_CreateUserCommand = async (input, context) => {
|
|
|
150
142
|
};
|
|
151
143
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user";
|
|
152
144
|
let body;
|
|
153
|
-
body = JSON.stringify({
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
clientToken:
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
});
|
|
145
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
146
|
+
ApiAccess: [],
|
|
147
|
+
apiAccessPrincipalArn: [],
|
|
148
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
149
|
+
emailAddress: [],
|
|
150
|
+
firstName: [],
|
|
151
|
+
lastName: [],
|
|
152
|
+
type: [],
|
|
153
|
+
}));
|
|
162
154
|
return new protocol_http_1.HttpRequest({
|
|
163
155
|
protocol,
|
|
164
156
|
hostname,
|
|
@@ -175,7 +167,7 @@ const se_DeleteDatasetCommand = async (input, context) => {
|
|
|
175
167
|
const headers = {};
|
|
176
168
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasetsv2/{datasetId}";
|
|
177
169
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
|
|
178
|
-
const query = map({
|
|
170
|
+
const query = (0, smithy_client_1.map)({
|
|
179
171
|
clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
|
|
180
172
|
});
|
|
181
173
|
let body;
|
|
@@ -196,7 +188,7 @@ const se_DeletePermissionGroupCommand = async (input, context) => {
|
|
|
196
188
|
const headers = {};
|
|
197
189
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group/{permissionGroupId}";
|
|
198
190
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
|
|
199
|
-
const query = map({
|
|
191
|
+
const query = (0, smithy_client_1.map)({
|
|
200
192
|
clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
|
|
201
193
|
});
|
|
202
194
|
let body;
|
|
@@ -220,9 +212,9 @@ const se_DisableUserCommand = async (input, context) => {
|
|
|
220
212
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}/disable";
|
|
221
213
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
|
|
222
214
|
let body;
|
|
223
|
-
body = JSON.stringify({
|
|
224
|
-
clientToken:
|
|
225
|
-
});
|
|
215
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
216
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
217
|
+
}));
|
|
226
218
|
return new protocol_http_1.HttpRequest({
|
|
227
219
|
protocol,
|
|
228
220
|
hostname,
|
|
@@ -241,7 +233,7 @@ const se_DisassociateUserFromPermissionGroupCommand = async (input, context) =>
|
|
|
241
233
|
"/permission-group/{permissionGroupId}/users/{userId}";
|
|
242
234
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
|
|
243
235
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
|
|
244
|
-
const query = map({
|
|
236
|
+
const query = (0, smithy_client_1.map)({
|
|
245
237
|
clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
|
|
246
238
|
});
|
|
247
239
|
let body;
|
|
@@ -265,9 +257,9 @@ const se_EnableUserCommand = async (input, context) => {
|
|
|
265
257
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}/enable";
|
|
266
258
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
|
|
267
259
|
let body;
|
|
268
|
-
body = JSON.stringify({
|
|
269
|
-
clientToken:
|
|
270
|
-
});
|
|
260
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
261
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
262
|
+
}));
|
|
271
263
|
return new protocol_http_1.HttpRequest({
|
|
272
264
|
protocol,
|
|
273
265
|
hostname,
|
|
@@ -374,7 +366,7 @@ const se_GetProgrammaticAccessCredentialsCommand = async (input, context) => {
|
|
|
374
366
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
375
367
|
const headers = {};
|
|
376
368
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/credentials/programmatic";
|
|
377
|
-
const query = map({
|
|
369
|
+
const query = (0, smithy_client_1.map)({
|
|
378
370
|
durationInMinutes: [() => input.durationInMinutes !== void 0, () => input.durationInMinutes.toString()],
|
|
379
371
|
environmentId: [, (0, smithy_client_1.expectNonNull)(input.environmentId, `environmentId`)],
|
|
380
372
|
});
|
|
@@ -415,9 +407,9 @@ const se_GetWorkingLocationCommand = async (input, context) => {
|
|
|
415
407
|
};
|
|
416
408
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workingLocationV1";
|
|
417
409
|
let body;
|
|
418
|
-
body = JSON.stringify({
|
|
419
|
-
|
|
420
|
-
});
|
|
410
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
411
|
+
locationType: [],
|
|
412
|
+
}));
|
|
421
413
|
return new protocol_http_1.HttpRequest({
|
|
422
414
|
protocol,
|
|
423
415
|
hostname,
|
|
@@ -434,7 +426,7 @@ const se_ListChangesetsCommand = async (input, context) => {
|
|
|
434
426
|
const headers = {};
|
|
435
427
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{datasetId}/changesetsv2";
|
|
436
428
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
|
|
437
|
-
const query = map({
|
|
429
|
+
const query = (0, smithy_client_1.map)({
|
|
438
430
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
439
431
|
nextToken: [, input.nextToken],
|
|
440
432
|
});
|
|
@@ -455,7 +447,7 @@ const se_ListDatasetsCommand = async (input, context) => {
|
|
|
455
447
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
456
448
|
const headers = {};
|
|
457
449
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasetsv2";
|
|
458
|
-
const query = map({
|
|
450
|
+
const query = (0, smithy_client_1.map)({
|
|
459
451
|
nextToken: [, input.nextToken],
|
|
460
452
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
461
453
|
});
|
|
@@ -477,7 +469,7 @@ const se_ListDataViewsCommand = async (input, context) => {
|
|
|
477
469
|
const headers = {};
|
|
478
470
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{datasetId}/dataviewsv2";
|
|
479
471
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
|
|
480
|
-
const query = map({
|
|
472
|
+
const query = (0, smithy_client_1.map)({
|
|
481
473
|
nextToken: [, input.nextToken],
|
|
482
474
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
483
475
|
});
|
|
@@ -498,7 +490,7 @@ const se_ListPermissionGroupsCommand = async (input, context) => {
|
|
|
498
490
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
499
491
|
const headers = {};
|
|
500
492
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group";
|
|
501
|
-
const query = map({
|
|
493
|
+
const query = (0, smithy_client_1.map)({
|
|
502
494
|
nextToken: [, input.nextToken],
|
|
503
495
|
maxResults: [(0, smithy_client_1.expectNonNull)(input.maxResults, `maxResults`) != null, () => input.maxResults.toString()],
|
|
504
496
|
});
|
|
@@ -520,7 +512,7 @@ const se_ListPermissionGroupsByUserCommand = async (input, context) => {
|
|
|
520
512
|
const headers = {};
|
|
521
513
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}/permission-groups";
|
|
522
514
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
|
|
523
|
-
const query = map({
|
|
515
|
+
const query = (0, smithy_client_1.map)({
|
|
524
516
|
nextToken: [, input.nextToken],
|
|
525
517
|
maxResults: [(0, smithy_client_1.expectNonNull)(input.maxResults, `maxResults`) != null, () => input.maxResults.toString()],
|
|
526
518
|
});
|
|
@@ -541,7 +533,7 @@ const se_ListUsersCommand = async (input, context) => {
|
|
|
541
533
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
542
534
|
const headers = {};
|
|
543
535
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user";
|
|
544
|
-
const query = map({
|
|
536
|
+
const query = (0, smithy_client_1.map)({
|
|
545
537
|
nextToken: [, input.nextToken],
|
|
546
538
|
maxResults: [(0, smithy_client_1.expectNonNull)(input.maxResults, `maxResults`) != null, () => input.maxResults.toString()],
|
|
547
539
|
});
|
|
@@ -564,7 +556,7 @@ const se_ListUsersByPermissionGroupCommand = async (input, context) => {
|
|
|
564
556
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
565
557
|
"/permission-group/{permissionGroupId}/users";
|
|
566
558
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
|
|
567
|
-
const query = map({
|
|
559
|
+
const query = (0, smithy_client_1.map)({
|
|
568
560
|
nextToken: [, input.nextToken],
|
|
569
561
|
maxResults: [(0, smithy_client_1.expectNonNull)(input.maxResults, `maxResults`) != null, () => input.maxResults.toString()],
|
|
570
562
|
});
|
|
@@ -589,9 +581,9 @@ const se_ResetUserPasswordCommand = async (input, context) => {
|
|
|
589
581
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}/password";
|
|
590
582
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
|
|
591
583
|
let body;
|
|
592
|
-
body = JSON.stringify({
|
|
593
|
-
clientToken:
|
|
594
|
-
});
|
|
584
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
585
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
586
|
+
}));
|
|
595
587
|
return new protocol_http_1.HttpRequest({
|
|
596
588
|
protocol,
|
|
597
589
|
hostname,
|
|
@@ -613,11 +605,11 @@ const se_UpdateChangesetCommand = async (input, context) => {
|
|
|
613
605
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
|
|
614
606
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "changesetId", () => input.changesetId, "{changesetId}", false);
|
|
615
607
|
let body;
|
|
616
|
-
body = JSON.stringify({
|
|
617
|
-
clientToken:
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
});
|
|
608
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
609
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
610
|
+
formatParams: (_) => (0, smithy_client_1._json)(_),
|
|
611
|
+
sourceParams: (_) => (0, smithy_client_1._json)(_),
|
|
612
|
+
}));
|
|
621
613
|
return new protocol_http_1.HttpRequest({
|
|
622
614
|
protocol,
|
|
623
615
|
hostname,
|
|
@@ -637,14 +629,14 @@ const se_UpdateDatasetCommand = async (input, context) => {
|
|
|
637
629
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasetsv2/{datasetId}";
|
|
638
630
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
|
|
639
631
|
let body;
|
|
640
|
-
body = JSON.stringify({
|
|
641
|
-
|
|
642
|
-
clientToken:
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
});
|
|
632
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
633
|
+
alias: [],
|
|
634
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
635
|
+
datasetDescription: [],
|
|
636
|
+
datasetTitle: [],
|
|
637
|
+
kind: [],
|
|
638
|
+
schemaDefinition: (_) => (0, smithy_client_1._json)(_),
|
|
639
|
+
}));
|
|
648
640
|
return new protocol_http_1.HttpRequest({
|
|
649
641
|
protocol,
|
|
650
642
|
hostname,
|
|
@@ -664,14 +656,12 @@ const se_UpdatePermissionGroupCommand = async (input, context) => {
|
|
|
664
656
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group/{permissionGroupId}";
|
|
665
657
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
|
|
666
658
|
let body;
|
|
667
|
-
body = JSON.stringify({
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
...(input.name != null && { name: input.name }),
|
|
674
|
-
});
|
|
659
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
660
|
+
applicationPermissions: (_) => (0, smithy_client_1._json)(_),
|
|
661
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
662
|
+
description: [],
|
|
663
|
+
name: [],
|
|
664
|
+
}));
|
|
675
665
|
return new protocol_http_1.HttpRequest({
|
|
676
666
|
protocol,
|
|
677
667
|
hostname,
|
|
@@ -691,14 +681,14 @@ const se_UpdateUserCommand = async (input, context) => {
|
|
|
691
681
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}";
|
|
692
682
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
|
|
693
683
|
let body;
|
|
694
|
-
body = JSON.stringify({
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
clientToken:
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
});
|
|
684
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
685
|
+
apiAccess: [],
|
|
686
|
+
apiAccessPrincipalArn: [],
|
|
687
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
688
|
+
firstName: [],
|
|
689
|
+
lastName: [],
|
|
690
|
+
type: [],
|
|
691
|
+
}));
|
|
702
692
|
return new protocol_http_1.HttpRequest({
|
|
703
693
|
protocol,
|
|
704
694
|
hostname,
|
|
@@ -714,10 +704,10 @@ const de_AssociateUserToPermissionGroupCommand = async (output, context) => {
|
|
|
714
704
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
715
705
|
return de_AssociateUserToPermissionGroupCommandError(output, context);
|
|
716
706
|
}
|
|
717
|
-
const contents = map({
|
|
707
|
+
const contents = (0, smithy_client_1.map)({
|
|
718
708
|
$metadata: deserializeMetadata(output),
|
|
719
709
|
});
|
|
720
|
-
map(contents, {
|
|
710
|
+
(0, smithy_client_1.map)(contents, {
|
|
721
711
|
statusCode: [, output.statusCode],
|
|
722
712
|
});
|
|
723
713
|
await collectBody(output.body, context);
|
|
@@ -751,10 +741,9 @@ const de_AssociateUserToPermissionGroupCommandError = async (output, context) =>
|
|
|
751
741
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
752
742
|
default:
|
|
753
743
|
const parsedBody = parsedOutput.body;
|
|
754
|
-
|
|
744
|
+
return throwDefaultError({
|
|
755
745
|
output,
|
|
756
746
|
parsedBody,
|
|
757
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
758
747
|
errorCode,
|
|
759
748
|
});
|
|
760
749
|
}
|
|
@@ -763,16 +752,15 @@ const de_CreateChangesetCommand = async (output, context) => {
|
|
|
763
752
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
764
753
|
return de_CreateChangesetCommandError(output, context);
|
|
765
754
|
}
|
|
766
|
-
const contents = map({
|
|
755
|
+
const contents = (0, smithy_client_1.map)({
|
|
767
756
|
$metadata: deserializeMetadata(output),
|
|
768
757
|
});
|
|
769
758
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
}
|
|
759
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
760
|
+
changesetId: smithy_client_1.expectString,
|
|
761
|
+
datasetId: smithy_client_1.expectString,
|
|
762
|
+
});
|
|
763
|
+
Object.assign(contents, doc);
|
|
776
764
|
return contents;
|
|
777
765
|
};
|
|
778
766
|
exports.de_CreateChangesetCommand = de_CreateChangesetCommand;
|
|
@@ -806,10 +794,9 @@ const de_CreateChangesetCommandError = async (output, context) => {
|
|
|
806
794
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
807
795
|
default:
|
|
808
796
|
const parsedBody = parsedOutput.body;
|
|
809
|
-
|
|
797
|
+
return throwDefaultError({
|
|
810
798
|
output,
|
|
811
799
|
parsedBody,
|
|
812
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
813
800
|
errorCode,
|
|
814
801
|
});
|
|
815
802
|
}
|
|
@@ -818,13 +805,14 @@ const de_CreateDatasetCommand = async (output, context) => {
|
|
|
818
805
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
819
806
|
return de_CreateDatasetCommandError(output, context);
|
|
820
807
|
}
|
|
821
|
-
const contents = map({
|
|
808
|
+
const contents = (0, smithy_client_1.map)({
|
|
822
809
|
$metadata: deserializeMetadata(output),
|
|
823
810
|
});
|
|
824
811
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
}
|
|
812
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
813
|
+
datasetId: smithy_client_1.expectString,
|
|
814
|
+
});
|
|
815
|
+
Object.assign(contents, doc);
|
|
828
816
|
return contents;
|
|
829
817
|
};
|
|
830
818
|
exports.de_CreateDatasetCommand = de_CreateDatasetCommand;
|
|
@@ -858,10 +846,9 @@ const de_CreateDatasetCommandError = async (output, context) => {
|
|
|
858
846
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
859
847
|
default:
|
|
860
848
|
const parsedBody = parsedOutput.body;
|
|
861
|
-
|
|
849
|
+
return throwDefaultError({
|
|
862
850
|
output,
|
|
863
851
|
parsedBody,
|
|
864
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
865
852
|
errorCode,
|
|
866
853
|
});
|
|
867
854
|
}
|
|
@@ -870,16 +857,15 @@ const de_CreateDataViewCommand = async (output, context) => {
|
|
|
870
857
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
871
858
|
return de_CreateDataViewCommandError(output, context);
|
|
872
859
|
}
|
|
873
|
-
const contents = map({
|
|
860
|
+
const contents = (0, smithy_client_1.map)({
|
|
874
861
|
$metadata: deserializeMetadata(output),
|
|
875
862
|
});
|
|
876
863
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
}
|
|
864
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
865
|
+
dataViewId: smithy_client_1.expectString,
|
|
866
|
+
datasetId: smithy_client_1.expectString,
|
|
867
|
+
});
|
|
868
|
+
Object.assign(contents, doc);
|
|
883
869
|
return contents;
|
|
884
870
|
};
|
|
885
871
|
exports.de_CreateDataViewCommand = de_CreateDataViewCommand;
|
|
@@ -910,10 +896,9 @@ const de_CreateDataViewCommandError = async (output, context) => {
|
|
|
910
896
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
911
897
|
default:
|
|
912
898
|
const parsedBody = parsedOutput.body;
|
|
913
|
-
|
|
899
|
+
return throwDefaultError({
|
|
914
900
|
output,
|
|
915
901
|
parsedBody,
|
|
916
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
917
902
|
errorCode,
|
|
918
903
|
});
|
|
919
904
|
}
|
|
@@ -922,13 +907,14 @@ const de_CreatePermissionGroupCommand = async (output, context) => {
|
|
|
922
907
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
923
908
|
return de_CreatePermissionGroupCommandError(output, context);
|
|
924
909
|
}
|
|
925
|
-
const contents = map({
|
|
910
|
+
const contents = (0, smithy_client_1.map)({
|
|
926
911
|
$metadata: deserializeMetadata(output),
|
|
927
912
|
});
|
|
928
913
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
}
|
|
914
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
915
|
+
permissionGroupId: smithy_client_1.expectString,
|
|
916
|
+
});
|
|
917
|
+
Object.assign(contents, doc);
|
|
932
918
|
return contents;
|
|
933
919
|
};
|
|
934
920
|
exports.de_CreatePermissionGroupCommand = de_CreatePermissionGroupCommand;
|
|
@@ -959,10 +945,9 @@ const de_CreatePermissionGroupCommandError = async (output, context) => {
|
|
|
959
945
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
960
946
|
default:
|
|
961
947
|
const parsedBody = parsedOutput.body;
|
|
962
|
-
|
|
948
|
+
return throwDefaultError({
|
|
963
949
|
output,
|
|
964
950
|
parsedBody,
|
|
965
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
966
951
|
errorCode,
|
|
967
952
|
});
|
|
968
953
|
}
|
|
@@ -971,13 +956,14 @@ const de_CreateUserCommand = async (output, context) => {
|
|
|
971
956
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
972
957
|
return de_CreateUserCommandError(output, context);
|
|
973
958
|
}
|
|
974
|
-
const contents = map({
|
|
959
|
+
const contents = (0, smithy_client_1.map)({
|
|
975
960
|
$metadata: deserializeMetadata(output),
|
|
976
961
|
});
|
|
977
962
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
}
|
|
963
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
964
|
+
userId: smithy_client_1.expectString,
|
|
965
|
+
});
|
|
966
|
+
Object.assign(contents, doc);
|
|
981
967
|
return contents;
|
|
982
968
|
};
|
|
983
969
|
exports.de_CreateUserCommand = de_CreateUserCommand;
|
|
@@ -1008,10 +994,9 @@ const de_CreateUserCommandError = async (output, context) => {
|
|
|
1008
994
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1009
995
|
default:
|
|
1010
996
|
const parsedBody = parsedOutput.body;
|
|
1011
|
-
|
|
997
|
+
return throwDefaultError({
|
|
1012
998
|
output,
|
|
1013
999
|
parsedBody,
|
|
1014
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
1015
1000
|
errorCode,
|
|
1016
1001
|
});
|
|
1017
1002
|
}
|
|
@@ -1020,13 +1005,14 @@ const de_DeleteDatasetCommand = async (output, context) => {
|
|
|
1020
1005
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1021
1006
|
return de_DeleteDatasetCommandError(output, context);
|
|
1022
1007
|
}
|
|
1023
|
-
const contents = map({
|
|
1008
|
+
const contents = (0, smithy_client_1.map)({
|
|
1024
1009
|
$metadata: deserializeMetadata(output),
|
|
1025
1010
|
});
|
|
1026
1011
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
}
|
|
1012
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1013
|
+
datasetId: smithy_client_1.expectString,
|
|
1014
|
+
});
|
|
1015
|
+
Object.assign(contents, doc);
|
|
1030
1016
|
return contents;
|
|
1031
1017
|
};
|
|
1032
1018
|
exports.de_DeleteDatasetCommand = de_DeleteDatasetCommand;
|
|
@@ -1060,10 +1046,9 @@ const de_DeleteDatasetCommandError = async (output, context) => {
|
|
|
1060
1046
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1061
1047
|
default:
|
|
1062
1048
|
const parsedBody = parsedOutput.body;
|
|
1063
|
-
|
|
1049
|
+
return throwDefaultError({
|
|
1064
1050
|
output,
|
|
1065
1051
|
parsedBody,
|
|
1066
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
1067
1052
|
errorCode,
|
|
1068
1053
|
});
|
|
1069
1054
|
}
|
|
@@ -1072,13 +1057,14 @@ const de_DeletePermissionGroupCommand = async (output, context) => {
|
|
|
1072
1057
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1073
1058
|
return de_DeletePermissionGroupCommandError(output, context);
|
|
1074
1059
|
}
|
|
1075
|
-
const contents = map({
|
|
1060
|
+
const contents = (0, smithy_client_1.map)({
|
|
1076
1061
|
$metadata: deserializeMetadata(output),
|
|
1077
1062
|
});
|
|
1078
1063
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
}
|
|
1064
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1065
|
+
permissionGroupId: smithy_client_1.expectString,
|
|
1066
|
+
});
|
|
1067
|
+
Object.assign(contents, doc);
|
|
1082
1068
|
return contents;
|
|
1083
1069
|
};
|
|
1084
1070
|
exports.de_DeletePermissionGroupCommand = de_DeletePermissionGroupCommand;
|
|
@@ -1112,10 +1098,9 @@ const de_DeletePermissionGroupCommandError = async (output, context) => {
|
|
|
1112
1098
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1113
1099
|
default:
|
|
1114
1100
|
const parsedBody = parsedOutput.body;
|
|
1115
|
-
|
|
1101
|
+
return throwDefaultError({
|
|
1116
1102
|
output,
|
|
1117
1103
|
parsedBody,
|
|
1118
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
1119
1104
|
errorCode,
|
|
1120
1105
|
});
|
|
1121
1106
|
}
|
|
@@ -1124,13 +1109,14 @@ const de_DisableUserCommand = async (output, context) => {
|
|
|
1124
1109
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1125
1110
|
return de_DisableUserCommandError(output, context);
|
|
1126
1111
|
}
|
|
1127
|
-
const contents = map({
|
|
1112
|
+
const contents = (0, smithy_client_1.map)({
|
|
1128
1113
|
$metadata: deserializeMetadata(output),
|
|
1129
1114
|
});
|
|
1130
1115
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
}
|
|
1116
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1117
|
+
userId: smithy_client_1.expectString,
|
|
1118
|
+
});
|
|
1119
|
+
Object.assign(contents, doc);
|
|
1134
1120
|
return contents;
|
|
1135
1121
|
};
|
|
1136
1122
|
exports.de_DisableUserCommand = de_DisableUserCommand;
|
|
@@ -1161,10 +1147,9 @@ const de_DisableUserCommandError = async (output, context) => {
|
|
|
1161
1147
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1162
1148
|
default:
|
|
1163
1149
|
const parsedBody = parsedOutput.body;
|
|
1164
|
-
|
|
1150
|
+
return throwDefaultError({
|
|
1165
1151
|
output,
|
|
1166
1152
|
parsedBody,
|
|
1167
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
1168
1153
|
errorCode,
|
|
1169
1154
|
});
|
|
1170
1155
|
}
|
|
@@ -1173,10 +1158,10 @@ const de_DisassociateUserFromPermissionGroupCommand = async (output, context) =>
|
|
|
1173
1158
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1174
1159
|
return de_DisassociateUserFromPermissionGroupCommandError(output, context);
|
|
1175
1160
|
}
|
|
1176
|
-
const contents = map({
|
|
1161
|
+
const contents = (0, smithy_client_1.map)({
|
|
1177
1162
|
$metadata: deserializeMetadata(output),
|
|
1178
1163
|
});
|
|
1179
|
-
map(contents, {
|
|
1164
|
+
(0, smithy_client_1.map)(contents, {
|
|
1180
1165
|
statusCode: [, output.statusCode],
|
|
1181
1166
|
});
|
|
1182
1167
|
await collectBody(output.body, context);
|
|
@@ -1210,10 +1195,9 @@ const de_DisassociateUserFromPermissionGroupCommandError = async (output, contex
|
|
|
1210
1195
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1211
1196
|
default:
|
|
1212
1197
|
const parsedBody = parsedOutput.body;
|
|
1213
|
-
|
|
1198
|
+
return throwDefaultError({
|
|
1214
1199
|
output,
|
|
1215
1200
|
parsedBody,
|
|
1216
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
1217
1201
|
errorCode,
|
|
1218
1202
|
});
|
|
1219
1203
|
}
|
|
@@ -1222,13 +1206,14 @@ const de_EnableUserCommand = async (output, context) => {
|
|
|
1222
1206
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1223
1207
|
return de_EnableUserCommandError(output, context);
|
|
1224
1208
|
}
|
|
1225
|
-
const contents = map({
|
|
1209
|
+
const contents = (0, smithy_client_1.map)({
|
|
1226
1210
|
$metadata: deserializeMetadata(output),
|
|
1227
1211
|
});
|
|
1228
1212
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
}
|
|
1213
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1214
|
+
userId: smithy_client_1.expectString,
|
|
1215
|
+
});
|
|
1216
|
+
Object.assign(contents, doc);
|
|
1232
1217
|
return contents;
|
|
1233
1218
|
};
|
|
1234
1219
|
exports.de_EnableUserCommand = de_EnableUserCommand;
|
|
@@ -1262,10 +1247,9 @@ const de_EnableUserCommandError = async (output, context) => {
|
|
|
1262
1247
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1263
1248
|
default:
|
|
1264
1249
|
const parsedBody = parsedOutput.body;
|
|
1265
|
-
|
|
1250
|
+
return throwDefaultError({
|
|
1266
1251
|
output,
|
|
1267
1252
|
parsedBody,
|
|
1268
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
1269
1253
|
errorCode,
|
|
1270
1254
|
});
|
|
1271
1255
|
}
|
|
@@ -1274,49 +1258,26 @@ const de_GetChangesetCommand = async (output, context) => {
|
|
|
1274
1258
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1275
1259
|
return de_GetChangesetCommandError(output, context);
|
|
1276
1260
|
}
|
|
1277
|
-
const contents = map({
|
|
1261
|
+
const contents = (0, smithy_client_1.map)({
|
|
1278
1262
|
$metadata: deserializeMetadata(output),
|
|
1279
1263
|
});
|
|
1280
1264
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
|
-
contents.createTime = (0, smithy_client_1.expectLong)(data.createTime);
|
|
1298
|
-
}
|
|
1299
|
-
if (data.datasetId != null) {
|
|
1300
|
-
contents.datasetId = (0, smithy_client_1.expectString)(data.datasetId);
|
|
1301
|
-
}
|
|
1302
|
-
if (data.errorInfo != null) {
|
|
1303
|
-
contents.errorInfo = de_ChangesetErrorInfo(data.errorInfo, context);
|
|
1304
|
-
}
|
|
1305
|
-
if (data.formatParams != null) {
|
|
1306
|
-
contents.formatParams = de_FormatParams(data.formatParams, context);
|
|
1307
|
-
}
|
|
1308
|
-
if (data.sourceParams != null) {
|
|
1309
|
-
contents.sourceParams = de_SourceParams(data.sourceParams, context);
|
|
1310
|
-
}
|
|
1311
|
-
if (data.status != null) {
|
|
1312
|
-
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
1313
|
-
}
|
|
1314
|
-
if (data.updatedByChangesetId != null) {
|
|
1315
|
-
contents.updatedByChangesetId = (0, smithy_client_1.expectString)(data.updatedByChangesetId);
|
|
1316
|
-
}
|
|
1317
|
-
if (data.updatesChangesetId != null) {
|
|
1318
|
-
contents.updatesChangesetId = (0, smithy_client_1.expectString)(data.updatesChangesetId);
|
|
1319
|
-
}
|
|
1265
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1266
|
+
activeFromTimestamp: smithy_client_1.expectLong,
|
|
1267
|
+
activeUntilTimestamp: smithy_client_1.expectLong,
|
|
1268
|
+
changeType: smithy_client_1.expectString,
|
|
1269
|
+
changesetArn: smithy_client_1.expectString,
|
|
1270
|
+
changesetId: smithy_client_1.expectString,
|
|
1271
|
+
createTime: smithy_client_1.expectLong,
|
|
1272
|
+
datasetId: smithy_client_1.expectString,
|
|
1273
|
+
errorInfo: smithy_client_1._json,
|
|
1274
|
+
formatParams: smithy_client_1._json,
|
|
1275
|
+
sourceParams: smithy_client_1._json,
|
|
1276
|
+
status: smithy_client_1.expectString,
|
|
1277
|
+
updatedByChangesetId: smithy_client_1.expectString,
|
|
1278
|
+
updatesChangesetId: smithy_client_1.expectString,
|
|
1279
|
+
});
|
|
1280
|
+
Object.assign(contents, doc);
|
|
1320
1281
|
return contents;
|
|
1321
1282
|
};
|
|
1322
1283
|
exports.de_GetChangesetCommand = de_GetChangesetCommand;
|
|
@@ -1347,10 +1308,9 @@ const de_GetChangesetCommandError = async (output, context) => {
|
|
|
1347
1308
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1348
1309
|
default:
|
|
1349
1310
|
const parsedBody = parsedOutput.body;
|
|
1350
|
-
|
|
1311
|
+
return throwDefaultError({
|
|
1351
1312
|
output,
|
|
1352
1313
|
parsedBody,
|
|
1353
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
1354
1314
|
errorCode,
|
|
1355
1315
|
});
|
|
1356
1316
|
}
|
|
@@ -1359,40 +1319,23 @@ const de_GetDatasetCommand = async (output, context) => {
|
|
|
1359
1319
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1360
1320
|
return de_GetDatasetCommandError(output, context);
|
|
1361
1321
|
}
|
|
1362
|
-
const contents = map({
|
|
1322
|
+
const contents = (0, smithy_client_1.map)({
|
|
1363
1323
|
$metadata: deserializeMetadata(output),
|
|
1364
1324
|
});
|
|
1365
1325
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
}
|
|
1378
|
-
|
|
1379
|
-
contents.datasetId = (0, smithy_client_1.expectString)(data.datasetId);
|
|
1380
|
-
}
|
|
1381
|
-
if (data.datasetTitle != null) {
|
|
1382
|
-
contents.datasetTitle = (0, smithy_client_1.expectString)(data.datasetTitle);
|
|
1383
|
-
}
|
|
1384
|
-
if (data.kind != null) {
|
|
1385
|
-
contents.kind = (0, smithy_client_1.expectString)(data.kind);
|
|
1386
|
-
}
|
|
1387
|
-
if (data.lastModifiedTime != null) {
|
|
1388
|
-
contents.lastModifiedTime = (0, smithy_client_1.expectLong)(data.lastModifiedTime);
|
|
1389
|
-
}
|
|
1390
|
-
if (data.schemaDefinition != null) {
|
|
1391
|
-
contents.schemaDefinition = de_SchemaUnion(data.schemaDefinition, context);
|
|
1392
|
-
}
|
|
1393
|
-
if (data.status != null) {
|
|
1394
|
-
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
1395
|
-
}
|
|
1326
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1327
|
+
alias: smithy_client_1.expectString,
|
|
1328
|
+
createTime: smithy_client_1.expectLong,
|
|
1329
|
+
datasetArn: smithy_client_1.expectString,
|
|
1330
|
+
datasetDescription: smithy_client_1.expectString,
|
|
1331
|
+
datasetId: smithy_client_1.expectString,
|
|
1332
|
+
datasetTitle: smithy_client_1.expectString,
|
|
1333
|
+
kind: smithy_client_1.expectString,
|
|
1334
|
+
lastModifiedTime: smithy_client_1.expectLong,
|
|
1335
|
+
schemaDefinition: smithy_client_1._json,
|
|
1336
|
+
status: smithy_client_1.expectString,
|
|
1337
|
+
});
|
|
1338
|
+
Object.assign(contents, doc);
|
|
1396
1339
|
return contents;
|
|
1397
1340
|
};
|
|
1398
1341
|
exports.de_GetDatasetCommand = de_GetDatasetCommand;
|
|
@@ -1423,10 +1366,9 @@ const de_GetDatasetCommandError = async (output, context) => {
|
|
|
1423
1366
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1424
1367
|
default:
|
|
1425
1368
|
const parsedBody = parsedOutput.body;
|
|
1426
|
-
|
|
1369
|
+
return throwDefaultError({
|
|
1427
1370
|
output,
|
|
1428
1371
|
parsedBody,
|
|
1429
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
1430
1372
|
errorCode,
|
|
1431
1373
|
});
|
|
1432
1374
|
}
|
|
@@ -1435,46 +1377,25 @@ const de_GetDataViewCommand = async (output, context) => {
|
|
|
1435
1377
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1436
1378
|
return de_GetDataViewCommandError(output, context);
|
|
1437
1379
|
}
|
|
1438
|
-
const contents = map({
|
|
1380
|
+
const contents = (0, smithy_client_1.map)({
|
|
1439
1381
|
$metadata: deserializeMetadata(output),
|
|
1440
1382
|
});
|
|
1441
1383
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
if (data.datasetId != null) {
|
|
1458
|
-
contents.datasetId = (0, smithy_client_1.expectString)(data.datasetId);
|
|
1459
|
-
}
|
|
1460
|
-
if (data.destinationTypeParams != null) {
|
|
1461
|
-
contents.destinationTypeParams = de_DataViewDestinationTypeParams(data.destinationTypeParams, context);
|
|
1462
|
-
}
|
|
1463
|
-
if (data.errorInfo != null) {
|
|
1464
|
-
contents.errorInfo = de_DataViewErrorInfo(data.errorInfo, context);
|
|
1465
|
-
}
|
|
1466
|
-
if (data.lastModifiedTime != null) {
|
|
1467
|
-
contents.lastModifiedTime = (0, smithy_client_1.expectLong)(data.lastModifiedTime);
|
|
1468
|
-
}
|
|
1469
|
-
if (data.partitionColumns != null) {
|
|
1470
|
-
contents.partitionColumns = de_PartitionColumnList(data.partitionColumns, context);
|
|
1471
|
-
}
|
|
1472
|
-
if (data.sortColumns != null) {
|
|
1473
|
-
contents.sortColumns = de_SortColumnList(data.sortColumns, context);
|
|
1474
|
-
}
|
|
1475
|
-
if (data.status != null) {
|
|
1476
|
-
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
1477
|
-
}
|
|
1384
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1385
|
+
asOfTimestamp: smithy_client_1.expectLong,
|
|
1386
|
+
autoUpdate: smithy_client_1.expectBoolean,
|
|
1387
|
+
createTime: smithy_client_1.expectLong,
|
|
1388
|
+
dataViewArn: smithy_client_1.expectString,
|
|
1389
|
+
dataViewId: smithy_client_1.expectString,
|
|
1390
|
+
datasetId: smithy_client_1.expectString,
|
|
1391
|
+
destinationTypeParams: smithy_client_1._json,
|
|
1392
|
+
errorInfo: smithy_client_1._json,
|
|
1393
|
+
lastModifiedTime: smithy_client_1.expectLong,
|
|
1394
|
+
partitionColumns: smithy_client_1._json,
|
|
1395
|
+
sortColumns: smithy_client_1._json,
|
|
1396
|
+
status: smithy_client_1.expectString,
|
|
1397
|
+
});
|
|
1398
|
+
Object.assign(contents, doc);
|
|
1478
1399
|
return contents;
|
|
1479
1400
|
};
|
|
1480
1401
|
exports.de_GetDataViewCommand = de_GetDataViewCommand;
|
|
@@ -1502,10 +1423,9 @@ const de_GetDataViewCommandError = async (output, context) => {
|
|
|
1502
1423
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1503
1424
|
default:
|
|
1504
1425
|
const parsedBody = parsedOutput.body;
|
|
1505
|
-
|
|
1426
|
+
return throwDefaultError({
|
|
1506
1427
|
output,
|
|
1507
1428
|
parsedBody,
|
|
1508
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
1509
1429
|
errorCode,
|
|
1510
1430
|
});
|
|
1511
1431
|
}
|
|
@@ -1514,16 +1434,15 @@ const de_GetExternalDataViewAccessDetailsCommand = async (output, context) => {
|
|
|
1514
1434
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1515
1435
|
return de_GetExternalDataViewAccessDetailsCommandError(output, context);
|
|
1516
1436
|
}
|
|
1517
|
-
const contents = map({
|
|
1437
|
+
const contents = (0, smithy_client_1.map)({
|
|
1518
1438
|
$metadata: deserializeMetadata(output),
|
|
1519
1439
|
});
|
|
1520
1440
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
}
|
|
1441
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1442
|
+
credentials: smithy_client_1._json,
|
|
1443
|
+
s3Location: smithy_client_1._json,
|
|
1444
|
+
});
|
|
1445
|
+
Object.assign(contents, doc);
|
|
1527
1446
|
return contents;
|
|
1528
1447
|
};
|
|
1529
1448
|
exports.de_GetExternalDataViewAccessDetailsCommand = de_GetExternalDataViewAccessDetailsCommand;
|
|
@@ -1551,10 +1470,9 @@ const de_GetExternalDataViewAccessDetailsCommandError = async (output, context)
|
|
|
1551
1470
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1552
1471
|
default:
|
|
1553
1472
|
const parsedBody = parsedOutput.body;
|
|
1554
|
-
|
|
1473
|
+
return throwDefaultError({
|
|
1555
1474
|
output,
|
|
1556
1475
|
parsedBody,
|
|
1557
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
1558
1476
|
errorCode,
|
|
1559
1477
|
});
|
|
1560
1478
|
}
|
|
@@ -1563,13 +1481,14 @@ const de_GetPermissionGroupCommand = async (output, context) => {
|
|
|
1563
1481
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1564
1482
|
return de_GetPermissionGroupCommandError(output, context);
|
|
1565
1483
|
}
|
|
1566
|
-
const contents = map({
|
|
1484
|
+
const contents = (0, smithy_client_1.map)({
|
|
1567
1485
|
$metadata: deserializeMetadata(output),
|
|
1568
1486
|
});
|
|
1569
1487
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
}
|
|
1488
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1489
|
+
permissionGroup: smithy_client_1._json,
|
|
1490
|
+
});
|
|
1491
|
+
Object.assign(contents, doc);
|
|
1573
1492
|
return contents;
|
|
1574
1493
|
};
|
|
1575
1494
|
exports.de_GetPermissionGroupCommand = de_GetPermissionGroupCommand;
|
|
@@ -1597,10 +1516,9 @@ const de_GetPermissionGroupCommandError = async (output, context) => {
|
|
|
1597
1516
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1598
1517
|
default:
|
|
1599
1518
|
const parsedBody = parsedOutput.body;
|
|
1600
|
-
|
|
1519
|
+
return throwDefaultError({
|
|
1601
1520
|
output,
|
|
1602
1521
|
parsedBody,
|
|
1603
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
1604
1522
|
errorCode,
|
|
1605
1523
|
});
|
|
1606
1524
|
}
|
|
@@ -1609,16 +1527,15 @@ const de_GetProgrammaticAccessCredentialsCommand = async (output, context) => {
|
|
|
1609
1527
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1610
1528
|
return de_GetProgrammaticAccessCredentialsCommandError(output, context);
|
|
1611
1529
|
}
|
|
1612
|
-
const contents = map({
|
|
1530
|
+
const contents = (0, smithy_client_1.map)({
|
|
1613
1531
|
$metadata: deserializeMetadata(output),
|
|
1614
1532
|
});
|
|
1615
1533
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
}
|
|
1534
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1535
|
+
credentials: smithy_client_1._json,
|
|
1536
|
+
durationInMinutes: smithy_client_1.expectLong,
|
|
1537
|
+
});
|
|
1538
|
+
Object.assign(contents, doc);
|
|
1622
1539
|
return contents;
|
|
1623
1540
|
};
|
|
1624
1541
|
exports.de_GetProgrammaticAccessCredentialsCommand = de_GetProgrammaticAccessCredentialsCommand;
|
|
@@ -1643,10 +1560,9 @@ const de_GetProgrammaticAccessCredentialsCommandError = async (output, context)
|
|
|
1643
1560
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1644
1561
|
default:
|
|
1645
1562
|
const parsedBody = parsedOutput.body;
|
|
1646
|
-
|
|
1563
|
+
return throwDefaultError({
|
|
1647
1564
|
output,
|
|
1648
1565
|
parsedBody,
|
|
1649
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
1650
1566
|
errorCode,
|
|
1651
1567
|
});
|
|
1652
1568
|
}
|
|
@@ -1655,49 +1571,26 @@ const de_GetUserCommand = async (output, context) => {
|
|
|
1655
1571
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1656
1572
|
return de_GetUserCommandError(output, context);
|
|
1657
1573
|
}
|
|
1658
|
-
const contents = map({
|
|
1574
|
+
const contents = (0, smithy_client_1.map)({
|
|
1659
1575
|
$metadata: deserializeMetadata(output),
|
|
1660
1576
|
});
|
|
1661
1577
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
}
|
|
1677
|
-
|
|
1678
|
-
contents.lastDisabledTime = (0, smithy_client_1.expectLong)(data.lastDisabledTime);
|
|
1679
|
-
}
|
|
1680
|
-
if (data.lastEnabledTime != null) {
|
|
1681
|
-
contents.lastEnabledTime = (0, smithy_client_1.expectLong)(data.lastEnabledTime);
|
|
1682
|
-
}
|
|
1683
|
-
if (data.lastLoginTime != null) {
|
|
1684
|
-
contents.lastLoginTime = (0, smithy_client_1.expectLong)(data.lastLoginTime);
|
|
1685
|
-
}
|
|
1686
|
-
if (data.lastModifiedTime != null) {
|
|
1687
|
-
contents.lastModifiedTime = (0, smithy_client_1.expectLong)(data.lastModifiedTime);
|
|
1688
|
-
}
|
|
1689
|
-
if (data.lastName != null) {
|
|
1690
|
-
contents.lastName = (0, smithy_client_1.expectString)(data.lastName);
|
|
1691
|
-
}
|
|
1692
|
-
if (data.status != null) {
|
|
1693
|
-
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
1694
|
-
}
|
|
1695
|
-
if (data.type != null) {
|
|
1696
|
-
contents.type = (0, smithy_client_1.expectString)(data.type);
|
|
1697
|
-
}
|
|
1698
|
-
if (data.userId != null) {
|
|
1699
|
-
contents.userId = (0, smithy_client_1.expectString)(data.userId);
|
|
1700
|
-
}
|
|
1578
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1579
|
+
apiAccess: smithy_client_1.expectString,
|
|
1580
|
+
apiAccessPrincipalArn: smithy_client_1.expectString,
|
|
1581
|
+
createTime: smithy_client_1.expectLong,
|
|
1582
|
+
emailAddress: smithy_client_1.expectString,
|
|
1583
|
+
firstName: smithy_client_1.expectString,
|
|
1584
|
+
lastDisabledTime: smithy_client_1.expectLong,
|
|
1585
|
+
lastEnabledTime: smithy_client_1.expectLong,
|
|
1586
|
+
lastLoginTime: smithy_client_1.expectLong,
|
|
1587
|
+
lastModifiedTime: smithy_client_1.expectLong,
|
|
1588
|
+
lastName: smithy_client_1.expectString,
|
|
1589
|
+
status: smithy_client_1.expectString,
|
|
1590
|
+
type: smithy_client_1.expectString,
|
|
1591
|
+
userId: smithy_client_1.expectString,
|
|
1592
|
+
});
|
|
1593
|
+
Object.assign(contents, doc);
|
|
1701
1594
|
return contents;
|
|
1702
1595
|
};
|
|
1703
1596
|
exports.de_GetUserCommand = de_GetUserCommand;
|
|
@@ -1725,10 +1618,9 @@ const de_GetUserCommandError = async (output, context) => {
|
|
|
1725
1618
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1726
1619
|
default:
|
|
1727
1620
|
const parsedBody = parsedOutput.body;
|
|
1728
|
-
|
|
1621
|
+
return throwDefaultError({
|
|
1729
1622
|
output,
|
|
1730
1623
|
parsedBody,
|
|
1731
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
1732
1624
|
errorCode,
|
|
1733
1625
|
});
|
|
1734
1626
|
}
|
|
@@ -1737,19 +1629,16 @@ const de_GetWorkingLocationCommand = async (output, context) => {
|
|
|
1737
1629
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1738
1630
|
return de_GetWorkingLocationCommandError(output, context);
|
|
1739
1631
|
}
|
|
1740
|
-
const contents = map({
|
|
1632
|
+
const contents = (0, smithy_client_1.map)({
|
|
1741
1633
|
$metadata: deserializeMetadata(output),
|
|
1742
1634
|
});
|
|
1743
1635
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
if (data.s3Uri != null) {
|
|
1751
|
-
contents.s3Uri = (0, smithy_client_1.expectString)(data.s3Uri);
|
|
1752
|
-
}
|
|
1636
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1637
|
+
s3Bucket: smithy_client_1.expectString,
|
|
1638
|
+
s3Path: smithy_client_1.expectString,
|
|
1639
|
+
s3Uri: smithy_client_1.expectString,
|
|
1640
|
+
});
|
|
1641
|
+
Object.assign(contents, doc);
|
|
1753
1642
|
return contents;
|
|
1754
1643
|
};
|
|
1755
1644
|
exports.de_GetWorkingLocationCommand = de_GetWorkingLocationCommand;
|
|
@@ -1774,10 +1663,9 @@ const de_GetWorkingLocationCommandError = async (output, context) => {
|
|
|
1774
1663
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1775
1664
|
default:
|
|
1776
1665
|
const parsedBody = parsedOutput.body;
|
|
1777
|
-
|
|
1666
|
+
return throwDefaultError({
|
|
1778
1667
|
output,
|
|
1779
1668
|
parsedBody,
|
|
1780
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
1781
1669
|
errorCode,
|
|
1782
1670
|
});
|
|
1783
1671
|
}
|
|
@@ -1786,16 +1674,15 @@ const de_ListChangesetsCommand = async (output, context) => {
|
|
|
1786
1674
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1787
1675
|
return de_ListChangesetsCommandError(output, context);
|
|
1788
1676
|
}
|
|
1789
|
-
const contents = map({
|
|
1677
|
+
const contents = (0, smithy_client_1.map)({
|
|
1790
1678
|
$metadata: deserializeMetadata(output),
|
|
1791
1679
|
});
|
|
1792
1680
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
}
|
|
1681
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1682
|
+
changesets: smithy_client_1._json,
|
|
1683
|
+
nextToken: smithy_client_1.expectString,
|
|
1684
|
+
});
|
|
1685
|
+
Object.assign(contents, doc);
|
|
1799
1686
|
return contents;
|
|
1800
1687
|
};
|
|
1801
1688
|
exports.de_ListChangesetsCommand = de_ListChangesetsCommand;
|
|
@@ -1826,10 +1713,9 @@ const de_ListChangesetsCommandError = async (output, context) => {
|
|
|
1826
1713
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1827
1714
|
default:
|
|
1828
1715
|
const parsedBody = parsedOutput.body;
|
|
1829
|
-
|
|
1716
|
+
return throwDefaultError({
|
|
1830
1717
|
output,
|
|
1831
1718
|
parsedBody,
|
|
1832
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
1833
1719
|
errorCode,
|
|
1834
1720
|
});
|
|
1835
1721
|
}
|
|
@@ -1838,16 +1724,15 @@ const de_ListDatasetsCommand = async (output, context) => {
|
|
|
1838
1724
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1839
1725
|
return de_ListDatasetsCommandError(output, context);
|
|
1840
1726
|
}
|
|
1841
|
-
const contents = map({
|
|
1727
|
+
const contents = (0, smithy_client_1.map)({
|
|
1842
1728
|
$metadata: deserializeMetadata(output),
|
|
1843
1729
|
});
|
|
1844
1730
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
}
|
|
1731
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1732
|
+
datasets: smithy_client_1._json,
|
|
1733
|
+
nextToken: smithy_client_1.expectString,
|
|
1734
|
+
});
|
|
1735
|
+
Object.assign(contents, doc);
|
|
1851
1736
|
return contents;
|
|
1852
1737
|
};
|
|
1853
1738
|
exports.de_ListDatasetsCommand = de_ListDatasetsCommand;
|
|
@@ -1875,10 +1760,9 @@ const de_ListDatasetsCommandError = async (output, context) => {
|
|
|
1875
1760
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1876
1761
|
default:
|
|
1877
1762
|
const parsedBody = parsedOutput.body;
|
|
1878
|
-
|
|
1763
|
+
return throwDefaultError({
|
|
1879
1764
|
output,
|
|
1880
1765
|
parsedBody,
|
|
1881
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
1882
1766
|
errorCode,
|
|
1883
1767
|
});
|
|
1884
1768
|
}
|
|
@@ -1887,16 +1771,15 @@ const de_ListDataViewsCommand = async (output, context) => {
|
|
|
1887
1771
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1888
1772
|
return de_ListDataViewsCommandError(output, context);
|
|
1889
1773
|
}
|
|
1890
|
-
const contents = map({
|
|
1774
|
+
const contents = (0, smithy_client_1.map)({
|
|
1891
1775
|
$metadata: deserializeMetadata(output),
|
|
1892
1776
|
});
|
|
1893
1777
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
}
|
|
1778
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1779
|
+
dataViews: smithy_client_1._json,
|
|
1780
|
+
nextToken: smithy_client_1.expectString,
|
|
1781
|
+
});
|
|
1782
|
+
Object.assign(contents, doc);
|
|
1900
1783
|
return contents;
|
|
1901
1784
|
};
|
|
1902
1785
|
exports.de_ListDataViewsCommand = de_ListDataViewsCommand;
|
|
@@ -1924,10 +1807,9 @@ const de_ListDataViewsCommandError = async (output, context) => {
|
|
|
1924
1807
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1925
1808
|
default:
|
|
1926
1809
|
const parsedBody = parsedOutput.body;
|
|
1927
|
-
|
|
1810
|
+
return throwDefaultError({
|
|
1928
1811
|
output,
|
|
1929
1812
|
parsedBody,
|
|
1930
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
1931
1813
|
errorCode,
|
|
1932
1814
|
});
|
|
1933
1815
|
}
|
|
@@ -1936,16 +1818,15 @@ const de_ListPermissionGroupsCommand = async (output, context) => {
|
|
|
1936
1818
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1937
1819
|
return de_ListPermissionGroupsCommandError(output, context);
|
|
1938
1820
|
}
|
|
1939
|
-
const contents = map({
|
|
1821
|
+
const contents = (0, smithy_client_1.map)({
|
|
1940
1822
|
$metadata: deserializeMetadata(output),
|
|
1941
1823
|
});
|
|
1942
1824
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
}
|
|
1825
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1826
|
+
nextToken: smithy_client_1.expectString,
|
|
1827
|
+
permissionGroups: smithy_client_1._json,
|
|
1828
|
+
});
|
|
1829
|
+
Object.assign(contents, doc);
|
|
1949
1830
|
return contents;
|
|
1950
1831
|
};
|
|
1951
1832
|
exports.de_ListPermissionGroupsCommand = de_ListPermissionGroupsCommand;
|
|
@@ -1970,10 +1851,9 @@ const de_ListPermissionGroupsCommandError = async (output, context) => {
|
|
|
1970
1851
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1971
1852
|
default:
|
|
1972
1853
|
const parsedBody = parsedOutput.body;
|
|
1973
|
-
|
|
1854
|
+
return throwDefaultError({
|
|
1974
1855
|
output,
|
|
1975
1856
|
parsedBody,
|
|
1976
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
1977
1857
|
errorCode,
|
|
1978
1858
|
});
|
|
1979
1859
|
}
|
|
@@ -1982,16 +1862,15 @@ const de_ListPermissionGroupsByUserCommand = async (output, context) => {
|
|
|
1982
1862
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1983
1863
|
return de_ListPermissionGroupsByUserCommandError(output, context);
|
|
1984
1864
|
}
|
|
1985
|
-
const contents = map({
|
|
1865
|
+
const contents = (0, smithy_client_1.map)({
|
|
1986
1866
|
$metadata: deserializeMetadata(output),
|
|
1987
1867
|
});
|
|
1988
1868
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
}
|
|
1869
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1870
|
+
nextToken: smithy_client_1.expectString,
|
|
1871
|
+
permissionGroups: smithy_client_1._json,
|
|
1872
|
+
});
|
|
1873
|
+
Object.assign(contents, doc);
|
|
1995
1874
|
return contents;
|
|
1996
1875
|
};
|
|
1997
1876
|
exports.de_ListPermissionGroupsByUserCommand = de_ListPermissionGroupsByUserCommand;
|
|
@@ -2019,10 +1898,9 @@ const de_ListPermissionGroupsByUserCommandError = async (output, context) => {
|
|
|
2019
1898
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2020
1899
|
default:
|
|
2021
1900
|
const parsedBody = parsedOutput.body;
|
|
2022
|
-
|
|
1901
|
+
return throwDefaultError({
|
|
2023
1902
|
output,
|
|
2024
1903
|
parsedBody,
|
|
2025
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
2026
1904
|
errorCode,
|
|
2027
1905
|
});
|
|
2028
1906
|
}
|
|
@@ -2031,16 +1909,15 @@ const de_ListUsersCommand = async (output, context) => {
|
|
|
2031
1909
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2032
1910
|
return de_ListUsersCommandError(output, context);
|
|
2033
1911
|
}
|
|
2034
|
-
const contents = map({
|
|
1912
|
+
const contents = (0, smithy_client_1.map)({
|
|
2035
1913
|
$metadata: deserializeMetadata(output),
|
|
2036
1914
|
});
|
|
2037
1915
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
}
|
|
1916
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1917
|
+
nextToken: smithy_client_1.expectString,
|
|
1918
|
+
users: smithy_client_1._json,
|
|
1919
|
+
});
|
|
1920
|
+
Object.assign(contents, doc);
|
|
2044
1921
|
return contents;
|
|
2045
1922
|
};
|
|
2046
1923
|
exports.de_ListUsersCommand = de_ListUsersCommand;
|
|
@@ -2065,10 +1942,9 @@ const de_ListUsersCommandError = async (output, context) => {
|
|
|
2065
1942
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2066
1943
|
default:
|
|
2067
1944
|
const parsedBody = parsedOutput.body;
|
|
2068
|
-
|
|
1945
|
+
return throwDefaultError({
|
|
2069
1946
|
output,
|
|
2070
1947
|
parsedBody,
|
|
2071
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
2072
1948
|
errorCode,
|
|
2073
1949
|
});
|
|
2074
1950
|
}
|
|
@@ -2077,16 +1953,15 @@ const de_ListUsersByPermissionGroupCommand = async (output, context) => {
|
|
|
2077
1953
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2078
1954
|
return de_ListUsersByPermissionGroupCommandError(output, context);
|
|
2079
1955
|
}
|
|
2080
|
-
const contents = map({
|
|
1956
|
+
const contents = (0, smithy_client_1.map)({
|
|
2081
1957
|
$metadata: deserializeMetadata(output),
|
|
2082
1958
|
});
|
|
2083
1959
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
}
|
|
1960
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1961
|
+
nextToken: smithy_client_1.expectString,
|
|
1962
|
+
users: smithy_client_1._json,
|
|
1963
|
+
});
|
|
1964
|
+
Object.assign(contents, doc);
|
|
2090
1965
|
return contents;
|
|
2091
1966
|
};
|
|
2092
1967
|
exports.de_ListUsersByPermissionGroupCommand = de_ListUsersByPermissionGroupCommand;
|
|
@@ -2114,10 +1989,9 @@ const de_ListUsersByPermissionGroupCommandError = async (output, context) => {
|
|
|
2114
1989
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2115
1990
|
default:
|
|
2116
1991
|
const parsedBody = parsedOutput.body;
|
|
2117
|
-
|
|
1992
|
+
return throwDefaultError({
|
|
2118
1993
|
output,
|
|
2119
1994
|
parsedBody,
|
|
2120
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
2121
1995
|
errorCode,
|
|
2122
1996
|
});
|
|
2123
1997
|
}
|
|
@@ -2126,16 +2000,15 @@ const de_ResetUserPasswordCommand = async (output, context) => {
|
|
|
2126
2000
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2127
2001
|
return de_ResetUserPasswordCommandError(output, context);
|
|
2128
2002
|
}
|
|
2129
|
-
const contents = map({
|
|
2003
|
+
const contents = (0, smithy_client_1.map)({
|
|
2130
2004
|
$metadata: deserializeMetadata(output),
|
|
2131
2005
|
});
|
|
2132
2006
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
}
|
|
2007
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2008
|
+
temporaryPassword: smithy_client_1.expectString,
|
|
2009
|
+
userId: smithy_client_1.expectString,
|
|
2010
|
+
});
|
|
2011
|
+
Object.assign(contents, doc);
|
|
2139
2012
|
return contents;
|
|
2140
2013
|
};
|
|
2141
2014
|
exports.de_ResetUserPasswordCommand = de_ResetUserPasswordCommand;
|
|
@@ -2166,10 +2039,9 @@ const de_ResetUserPasswordCommandError = async (output, context) => {
|
|
|
2166
2039
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2167
2040
|
default:
|
|
2168
2041
|
const parsedBody = parsedOutput.body;
|
|
2169
|
-
|
|
2042
|
+
return throwDefaultError({
|
|
2170
2043
|
output,
|
|
2171
2044
|
parsedBody,
|
|
2172
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
2173
2045
|
errorCode,
|
|
2174
2046
|
});
|
|
2175
2047
|
}
|
|
@@ -2178,16 +2050,15 @@ const de_UpdateChangesetCommand = async (output, context) => {
|
|
|
2178
2050
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2179
2051
|
return de_UpdateChangesetCommandError(output, context);
|
|
2180
2052
|
}
|
|
2181
|
-
const contents = map({
|
|
2053
|
+
const contents = (0, smithy_client_1.map)({
|
|
2182
2054
|
$metadata: deserializeMetadata(output),
|
|
2183
2055
|
});
|
|
2184
2056
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
}
|
|
2057
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2058
|
+
changesetId: smithy_client_1.expectString,
|
|
2059
|
+
datasetId: smithy_client_1.expectString,
|
|
2060
|
+
});
|
|
2061
|
+
Object.assign(contents, doc);
|
|
2191
2062
|
return contents;
|
|
2192
2063
|
};
|
|
2193
2064
|
exports.de_UpdateChangesetCommand = de_UpdateChangesetCommand;
|
|
@@ -2218,10 +2089,9 @@ const de_UpdateChangesetCommandError = async (output, context) => {
|
|
|
2218
2089
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2219
2090
|
default:
|
|
2220
2091
|
const parsedBody = parsedOutput.body;
|
|
2221
|
-
|
|
2092
|
+
return throwDefaultError({
|
|
2222
2093
|
output,
|
|
2223
2094
|
parsedBody,
|
|
2224
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
2225
2095
|
errorCode,
|
|
2226
2096
|
});
|
|
2227
2097
|
}
|
|
@@ -2230,13 +2100,14 @@ const de_UpdateDatasetCommand = async (output, context) => {
|
|
|
2230
2100
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2231
2101
|
return de_UpdateDatasetCommandError(output, context);
|
|
2232
2102
|
}
|
|
2233
|
-
const contents = map({
|
|
2103
|
+
const contents = (0, smithy_client_1.map)({
|
|
2234
2104
|
$metadata: deserializeMetadata(output),
|
|
2235
2105
|
});
|
|
2236
2106
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
}
|
|
2107
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2108
|
+
datasetId: smithy_client_1.expectString,
|
|
2109
|
+
});
|
|
2110
|
+
Object.assign(contents, doc);
|
|
2240
2111
|
return contents;
|
|
2241
2112
|
};
|
|
2242
2113
|
exports.de_UpdateDatasetCommand = de_UpdateDatasetCommand;
|
|
@@ -2267,10 +2138,9 @@ const de_UpdateDatasetCommandError = async (output, context) => {
|
|
|
2267
2138
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2268
2139
|
default:
|
|
2269
2140
|
const parsedBody = parsedOutput.body;
|
|
2270
|
-
|
|
2141
|
+
return throwDefaultError({
|
|
2271
2142
|
output,
|
|
2272
2143
|
parsedBody,
|
|
2273
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
2274
2144
|
errorCode,
|
|
2275
2145
|
});
|
|
2276
2146
|
}
|
|
@@ -2279,13 +2149,14 @@ const de_UpdatePermissionGroupCommand = async (output, context) => {
|
|
|
2279
2149
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2280
2150
|
return de_UpdatePermissionGroupCommandError(output, context);
|
|
2281
2151
|
}
|
|
2282
|
-
const contents = map({
|
|
2152
|
+
const contents = (0, smithy_client_1.map)({
|
|
2283
2153
|
$metadata: deserializeMetadata(output),
|
|
2284
2154
|
});
|
|
2285
2155
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
}
|
|
2156
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2157
|
+
permissionGroupId: smithy_client_1.expectString,
|
|
2158
|
+
});
|
|
2159
|
+
Object.assign(contents, doc);
|
|
2289
2160
|
return contents;
|
|
2290
2161
|
};
|
|
2291
2162
|
exports.de_UpdatePermissionGroupCommand = de_UpdatePermissionGroupCommand;
|
|
@@ -2316,10 +2187,9 @@ const de_UpdatePermissionGroupCommandError = async (output, context) => {
|
|
|
2316
2187
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2317
2188
|
default:
|
|
2318
2189
|
const parsedBody = parsedOutput.body;
|
|
2319
|
-
|
|
2190
|
+
return throwDefaultError({
|
|
2320
2191
|
output,
|
|
2321
2192
|
parsedBody,
|
|
2322
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
2323
2193
|
errorCode,
|
|
2324
2194
|
});
|
|
2325
2195
|
}
|
|
@@ -2328,13 +2198,14 @@ const de_UpdateUserCommand = async (output, context) => {
|
|
|
2328
2198
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2329
2199
|
return de_UpdateUserCommandError(output, context);
|
|
2330
2200
|
}
|
|
2331
|
-
const contents = map({
|
|
2201
|
+
const contents = (0, smithy_client_1.map)({
|
|
2332
2202
|
$metadata: deserializeMetadata(output),
|
|
2333
2203
|
});
|
|
2334
2204
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
}
|
|
2205
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2206
|
+
userId: smithy_client_1.expectString,
|
|
2207
|
+
});
|
|
2208
|
+
Object.assign(contents, doc);
|
|
2338
2209
|
return contents;
|
|
2339
2210
|
};
|
|
2340
2211
|
exports.de_UpdateUserCommand = de_UpdateUserCommand;
|
|
@@ -2365,21 +2236,21 @@ const de_UpdateUserCommandError = async (output, context) => {
|
|
|
2365
2236
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2366
2237
|
default:
|
|
2367
2238
|
const parsedBody = parsedOutput.body;
|
|
2368
|
-
|
|
2239
|
+
return throwDefaultError({
|
|
2369
2240
|
output,
|
|
2370
2241
|
parsedBody,
|
|
2371
|
-
exceptionCtor: FinspaceDataServiceException_1.FinspaceDataServiceException,
|
|
2372
2242
|
errorCode,
|
|
2373
2243
|
});
|
|
2374
2244
|
}
|
|
2375
2245
|
};
|
|
2376
|
-
const
|
|
2246
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(FinspaceDataServiceException_1.FinspaceDataServiceException);
|
|
2377
2247
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2378
|
-
const contents = map({});
|
|
2248
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2379
2249
|
const data = parsedOutput.body;
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
}
|
|
2250
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2251
|
+
message: smithy_client_1.expectString,
|
|
2252
|
+
});
|
|
2253
|
+
Object.assign(contents, doc);
|
|
2383
2254
|
const exception = new models_0_1.AccessDeniedException({
|
|
2384
2255
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2385
2256
|
...contents,
|
|
@@ -2387,14 +2258,13 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
2387
2258
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2388
2259
|
};
|
|
2389
2260
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2390
|
-
const contents = map({});
|
|
2261
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2391
2262
|
const data = parsedOutput.body;
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
}
|
|
2263
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2264
|
+
message: smithy_client_1.expectString,
|
|
2265
|
+
reason: smithy_client_1.expectString,
|
|
2266
|
+
});
|
|
2267
|
+
Object.assign(contents, doc);
|
|
2398
2268
|
const exception = new models_0_1.ConflictException({
|
|
2399
2269
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2400
2270
|
...contents,
|
|
@@ -2402,11 +2272,12 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2402
2272
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2403
2273
|
};
|
|
2404
2274
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2405
|
-
const contents = map({});
|
|
2275
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2406
2276
|
const data = parsedOutput.body;
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
}
|
|
2277
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2278
|
+
message: smithy_client_1.expectString,
|
|
2279
|
+
});
|
|
2280
|
+
Object.assign(contents, doc);
|
|
2410
2281
|
const exception = new models_0_1.InternalServerException({
|
|
2411
2282
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2412
2283
|
...contents,
|
|
@@ -2414,11 +2285,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
2414
2285
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2415
2286
|
};
|
|
2416
2287
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2417
|
-
const contents = map({});
|
|
2288
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2418
2289
|
const data = parsedOutput.body;
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
}
|
|
2290
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2291
|
+
message: smithy_client_1.expectString,
|
|
2292
|
+
});
|
|
2293
|
+
Object.assign(contents, doc);
|
|
2422
2294
|
const exception = new models_0_1.LimitExceededException({
|
|
2423
2295
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2424
2296
|
...contents,
|
|
@@ -2426,14 +2298,13 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
2426
2298
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2427
2299
|
};
|
|
2428
2300
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2429
|
-
const contents = map({});
|
|
2301
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2430
2302
|
const data = parsedOutput.body;
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
}
|
|
2303
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2304
|
+
message: smithy_client_1.expectString,
|
|
2305
|
+
reason: smithy_client_1.expectString,
|
|
2306
|
+
});
|
|
2307
|
+
Object.assign(contents, doc);
|
|
2437
2308
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
2438
2309
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2439
2310
|
...contents,
|
|
@@ -2441,8 +2312,10 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2441
2312
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2442
2313
|
};
|
|
2443
2314
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2444
|
-
const contents = map({});
|
|
2315
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2445
2316
|
const data = parsedOutput.body;
|
|
2317
|
+
const doc = (0, smithy_client_1.take)(data, {});
|
|
2318
|
+
Object.assign(contents, doc);
|
|
2446
2319
|
const exception = new models_0_1.ThrottlingException({
|
|
2447
2320
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2448
2321
|
...contents,
|
|
@@ -2450,465 +2323,19 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
2450
2323
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2451
2324
|
};
|
|
2452
2325
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2453
|
-
const contents = map({});
|
|
2326
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2454
2327
|
const data = parsedOutput.body;
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
}
|
|
2328
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2329
|
+
message: smithy_client_1.expectString,
|
|
2330
|
+
reason: smithy_client_1.expectString,
|
|
2331
|
+
});
|
|
2332
|
+
Object.assign(contents, doc);
|
|
2461
2333
|
const exception = new models_0_1.ValidationException({
|
|
2462
2334
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2463
2335
|
...contents,
|
|
2464
2336
|
});
|
|
2465
2337
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2466
2338
|
};
|
|
2467
|
-
const se_ApplicationPermissionList = (input, context) => {
|
|
2468
|
-
return input
|
|
2469
|
-
.filter((e) => e != null)
|
|
2470
|
-
.map((entry) => {
|
|
2471
|
-
return entry;
|
|
2472
|
-
});
|
|
2473
|
-
};
|
|
2474
|
-
const se_ColumnDefinition = (input, context) => {
|
|
2475
|
-
return {
|
|
2476
|
-
...(input.columnDescription != null && { columnDescription: input.columnDescription }),
|
|
2477
|
-
...(input.columnName != null && { columnName: input.columnName }),
|
|
2478
|
-
...(input.dataType != null && { dataType: input.dataType }),
|
|
2479
|
-
};
|
|
2480
|
-
};
|
|
2481
|
-
const se_ColumnList = (input, context) => {
|
|
2482
|
-
return input
|
|
2483
|
-
.filter((e) => e != null)
|
|
2484
|
-
.map((entry) => {
|
|
2485
|
-
return se_ColumnDefinition(entry, context);
|
|
2486
|
-
});
|
|
2487
|
-
};
|
|
2488
|
-
const se_ColumnNameList = (input, context) => {
|
|
2489
|
-
return input
|
|
2490
|
-
.filter((e) => e != null)
|
|
2491
|
-
.map((entry) => {
|
|
2492
|
-
return entry;
|
|
2493
|
-
});
|
|
2494
|
-
};
|
|
2495
|
-
const se_DatasetOwnerInfo = (input, context) => {
|
|
2496
|
-
return {
|
|
2497
|
-
...(input.email != null && { email: input.email }),
|
|
2498
|
-
...(input.name != null && { name: input.name }),
|
|
2499
|
-
...(input.phoneNumber != null && { phoneNumber: input.phoneNumber }),
|
|
2500
|
-
};
|
|
2501
|
-
};
|
|
2502
|
-
const se_DataViewDestinationTypeParams = (input, context) => {
|
|
2503
|
-
return {
|
|
2504
|
-
...(input.destinationType != null && { destinationType: input.destinationType }),
|
|
2505
|
-
...(input.s3DestinationExportFileFormat != null && {
|
|
2506
|
-
s3DestinationExportFileFormat: input.s3DestinationExportFileFormat,
|
|
2507
|
-
}),
|
|
2508
|
-
...(input.s3DestinationExportFileFormatOptions != null && {
|
|
2509
|
-
s3DestinationExportFileFormatOptions: se_S3DestinationFormatOptions(input.s3DestinationExportFileFormatOptions, context),
|
|
2510
|
-
}),
|
|
2511
|
-
};
|
|
2512
|
-
};
|
|
2513
|
-
const se_FormatParams = (input, context) => {
|
|
2514
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2515
|
-
if (value === null) {
|
|
2516
|
-
return acc;
|
|
2517
|
-
}
|
|
2518
|
-
acc[key] = value;
|
|
2519
|
-
return acc;
|
|
2520
|
-
}, {});
|
|
2521
|
-
};
|
|
2522
|
-
const se_PartitionColumnList = (input, context) => {
|
|
2523
|
-
return input
|
|
2524
|
-
.filter((e) => e != null)
|
|
2525
|
-
.map((entry) => {
|
|
2526
|
-
return entry;
|
|
2527
|
-
});
|
|
2528
|
-
};
|
|
2529
|
-
const se_PermissionGroupParams = (input, context) => {
|
|
2530
|
-
return {
|
|
2531
|
-
...(input.datasetPermissions != null && {
|
|
2532
|
-
datasetPermissions: se_ResourcePermissionsList(input.datasetPermissions, context),
|
|
2533
|
-
}),
|
|
2534
|
-
...(input.permissionGroupId != null && { permissionGroupId: input.permissionGroupId }),
|
|
2535
|
-
};
|
|
2536
|
-
};
|
|
2537
|
-
const se_ResourcePermission = (input, context) => {
|
|
2538
|
-
return {
|
|
2539
|
-
...(input.permission != null && { permission: input.permission }),
|
|
2540
|
-
};
|
|
2541
|
-
};
|
|
2542
|
-
const se_ResourcePermissionsList = (input, context) => {
|
|
2543
|
-
return input
|
|
2544
|
-
.filter((e) => e != null)
|
|
2545
|
-
.map((entry) => {
|
|
2546
|
-
return se_ResourcePermission(entry, context);
|
|
2547
|
-
});
|
|
2548
|
-
};
|
|
2549
|
-
const se_S3DestinationFormatOptions = (input, context) => {
|
|
2550
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2551
|
-
if (value === null) {
|
|
2552
|
-
return acc;
|
|
2553
|
-
}
|
|
2554
|
-
acc[key] = value;
|
|
2555
|
-
return acc;
|
|
2556
|
-
}, {});
|
|
2557
|
-
};
|
|
2558
|
-
const se_SchemaDefinition = (input, context) => {
|
|
2559
|
-
return {
|
|
2560
|
-
...(input.columns != null && { columns: se_ColumnList(input.columns, context) }),
|
|
2561
|
-
...(input.primaryKeyColumns != null && { primaryKeyColumns: se_ColumnNameList(input.primaryKeyColumns, context) }),
|
|
2562
|
-
};
|
|
2563
|
-
};
|
|
2564
|
-
const se_SchemaUnion = (input, context) => {
|
|
2565
|
-
return {
|
|
2566
|
-
...(input.tabularSchemaConfig != null && {
|
|
2567
|
-
tabularSchemaConfig: se_SchemaDefinition(input.tabularSchemaConfig, context),
|
|
2568
|
-
}),
|
|
2569
|
-
};
|
|
2570
|
-
};
|
|
2571
|
-
const se_SortColumnList = (input, context) => {
|
|
2572
|
-
return input
|
|
2573
|
-
.filter((e) => e != null)
|
|
2574
|
-
.map((entry) => {
|
|
2575
|
-
return entry;
|
|
2576
|
-
});
|
|
2577
|
-
};
|
|
2578
|
-
const se_SourceParams = (input, context) => {
|
|
2579
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2580
|
-
if (value === null) {
|
|
2581
|
-
return acc;
|
|
2582
|
-
}
|
|
2583
|
-
acc[key] = value;
|
|
2584
|
-
return acc;
|
|
2585
|
-
}, {});
|
|
2586
|
-
};
|
|
2587
|
-
const de_ApplicationPermissionList = (output, context) => {
|
|
2588
|
-
const retVal = (output || [])
|
|
2589
|
-
.filter((e) => e != null)
|
|
2590
|
-
.map((entry) => {
|
|
2591
|
-
if (entry === null) {
|
|
2592
|
-
return null;
|
|
2593
|
-
}
|
|
2594
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2595
|
-
});
|
|
2596
|
-
return retVal;
|
|
2597
|
-
};
|
|
2598
|
-
const de_AwsCredentials = (output, context) => {
|
|
2599
|
-
return {
|
|
2600
|
-
accessKeyId: (0, smithy_client_1.expectString)(output.accessKeyId),
|
|
2601
|
-
expiration: (0, smithy_client_1.expectLong)(output.expiration),
|
|
2602
|
-
secretAccessKey: (0, smithy_client_1.expectString)(output.secretAccessKey),
|
|
2603
|
-
sessionToken: (0, smithy_client_1.expectString)(output.sessionToken),
|
|
2604
|
-
};
|
|
2605
|
-
};
|
|
2606
|
-
const de_ChangesetErrorInfo = (output, context) => {
|
|
2607
|
-
return {
|
|
2608
|
-
errorCategory: (0, smithy_client_1.expectString)(output.errorCategory),
|
|
2609
|
-
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
2610
|
-
};
|
|
2611
|
-
};
|
|
2612
|
-
const de_ChangesetList = (output, context) => {
|
|
2613
|
-
const retVal = (output || [])
|
|
2614
|
-
.filter((e) => e != null)
|
|
2615
|
-
.map((entry) => {
|
|
2616
|
-
if (entry === null) {
|
|
2617
|
-
return null;
|
|
2618
|
-
}
|
|
2619
|
-
return de_ChangesetSummary(entry, context);
|
|
2620
|
-
});
|
|
2621
|
-
return retVal;
|
|
2622
|
-
};
|
|
2623
|
-
const de_ChangesetSummary = (output, context) => {
|
|
2624
|
-
return {
|
|
2625
|
-
activeFromTimestamp: (0, smithy_client_1.expectLong)(output.activeFromTimestamp),
|
|
2626
|
-
activeUntilTimestamp: (0, smithy_client_1.expectLong)(output.activeUntilTimestamp),
|
|
2627
|
-
changeType: (0, smithy_client_1.expectString)(output.changeType),
|
|
2628
|
-
changesetArn: (0, smithy_client_1.expectString)(output.changesetArn),
|
|
2629
|
-
changesetId: (0, smithy_client_1.expectString)(output.changesetId),
|
|
2630
|
-
createTime: (0, smithy_client_1.expectLong)(output.createTime),
|
|
2631
|
-
datasetId: (0, smithy_client_1.expectString)(output.datasetId),
|
|
2632
|
-
errorInfo: output.errorInfo != null ? de_ChangesetErrorInfo(output.errorInfo, context) : undefined,
|
|
2633
|
-
formatParams: output.formatParams != null ? de_FormatParams(output.formatParams, context) : undefined,
|
|
2634
|
-
sourceParams: output.sourceParams != null ? de_SourceParams(output.sourceParams, context) : undefined,
|
|
2635
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2636
|
-
updatedByChangesetId: (0, smithy_client_1.expectString)(output.updatedByChangesetId),
|
|
2637
|
-
updatesChangesetId: (0, smithy_client_1.expectString)(output.updatesChangesetId),
|
|
2638
|
-
};
|
|
2639
|
-
};
|
|
2640
|
-
const de_ColumnDefinition = (output, context) => {
|
|
2641
|
-
return {
|
|
2642
|
-
columnDescription: (0, smithy_client_1.expectString)(output.columnDescription),
|
|
2643
|
-
columnName: (0, smithy_client_1.expectString)(output.columnName),
|
|
2644
|
-
dataType: (0, smithy_client_1.expectString)(output.dataType),
|
|
2645
|
-
};
|
|
2646
|
-
};
|
|
2647
|
-
const de_ColumnList = (output, context) => {
|
|
2648
|
-
const retVal = (output || [])
|
|
2649
|
-
.filter((e) => e != null)
|
|
2650
|
-
.map((entry) => {
|
|
2651
|
-
if (entry === null) {
|
|
2652
|
-
return null;
|
|
2653
|
-
}
|
|
2654
|
-
return de_ColumnDefinition(entry, context);
|
|
2655
|
-
});
|
|
2656
|
-
return retVal;
|
|
2657
|
-
};
|
|
2658
|
-
const de_ColumnNameList = (output, context) => {
|
|
2659
|
-
const retVal = (output || [])
|
|
2660
|
-
.filter((e) => e != null)
|
|
2661
|
-
.map((entry) => {
|
|
2662
|
-
if (entry === null) {
|
|
2663
|
-
return null;
|
|
2664
|
-
}
|
|
2665
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2666
|
-
});
|
|
2667
|
-
return retVal;
|
|
2668
|
-
};
|
|
2669
|
-
const de_Credentials = (output, context) => {
|
|
2670
|
-
return {
|
|
2671
|
-
accessKeyId: (0, smithy_client_1.expectString)(output.accessKeyId),
|
|
2672
|
-
secretAccessKey: (0, smithy_client_1.expectString)(output.secretAccessKey),
|
|
2673
|
-
sessionToken: (0, smithy_client_1.expectString)(output.sessionToken),
|
|
2674
|
-
};
|
|
2675
|
-
};
|
|
2676
|
-
const de_Dataset = (output, context) => {
|
|
2677
|
-
return {
|
|
2678
|
-
alias: (0, smithy_client_1.expectString)(output.alias),
|
|
2679
|
-
createTime: (0, smithy_client_1.expectLong)(output.createTime),
|
|
2680
|
-
datasetArn: (0, smithy_client_1.expectString)(output.datasetArn),
|
|
2681
|
-
datasetDescription: (0, smithy_client_1.expectString)(output.datasetDescription),
|
|
2682
|
-
datasetId: (0, smithy_client_1.expectString)(output.datasetId),
|
|
2683
|
-
datasetTitle: (0, smithy_client_1.expectString)(output.datasetTitle),
|
|
2684
|
-
kind: (0, smithy_client_1.expectString)(output.kind),
|
|
2685
|
-
lastModifiedTime: (0, smithy_client_1.expectLong)(output.lastModifiedTime),
|
|
2686
|
-
ownerInfo: output.ownerInfo != null ? de_DatasetOwnerInfo(output.ownerInfo, context) : undefined,
|
|
2687
|
-
schemaDefinition: output.schemaDefinition != null ? de_SchemaUnion(output.schemaDefinition, context) : undefined,
|
|
2688
|
-
};
|
|
2689
|
-
};
|
|
2690
|
-
const de_DatasetList = (output, context) => {
|
|
2691
|
-
const retVal = (output || [])
|
|
2692
|
-
.filter((e) => e != null)
|
|
2693
|
-
.map((entry) => {
|
|
2694
|
-
if (entry === null) {
|
|
2695
|
-
return null;
|
|
2696
|
-
}
|
|
2697
|
-
return de_Dataset(entry, context);
|
|
2698
|
-
});
|
|
2699
|
-
return retVal;
|
|
2700
|
-
};
|
|
2701
|
-
const de_DatasetOwnerInfo = (output, context) => {
|
|
2702
|
-
return {
|
|
2703
|
-
email: (0, smithy_client_1.expectString)(output.email),
|
|
2704
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2705
|
-
phoneNumber: (0, smithy_client_1.expectString)(output.phoneNumber),
|
|
2706
|
-
};
|
|
2707
|
-
};
|
|
2708
|
-
const de_DataViewDestinationTypeParams = (output, context) => {
|
|
2709
|
-
return {
|
|
2710
|
-
destinationType: (0, smithy_client_1.expectString)(output.destinationType),
|
|
2711
|
-
s3DestinationExportFileFormat: (0, smithy_client_1.expectString)(output.s3DestinationExportFileFormat),
|
|
2712
|
-
s3DestinationExportFileFormatOptions: output.s3DestinationExportFileFormatOptions != null
|
|
2713
|
-
? de_S3DestinationFormatOptions(output.s3DestinationExportFileFormatOptions, context)
|
|
2714
|
-
: undefined,
|
|
2715
|
-
};
|
|
2716
|
-
};
|
|
2717
|
-
const de_DataViewErrorInfo = (output, context) => {
|
|
2718
|
-
return {
|
|
2719
|
-
errorCategory: (0, smithy_client_1.expectString)(output.errorCategory),
|
|
2720
|
-
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
2721
|
-
};
|
|
2722
|
-
};
|
|
2723
|
-
const de_DataViewList = (output, context) => {
|
|
2724
|
-
const retVal = (output || [])
|
|
2725
|
-
.filter((e) => e != null)
|
|
2726
|
-
.map((entry) => {
|
|
2727
|
-
if (entry === null) {
|
|
2728
|
-
return null;
|
|
2729
|
-
}
|
|
2730
|
-
return de_DataViewSummary(entry, context);
|
|
2731
|
-
});
|
|
2732
|
-
return retVal;
|
|
2733
|
-
};
|
|
2734
|
-
const de_DataViewSummary = (output, context) => {
|
|
2735
|
-
return {
|
|
2736
|
-
asOfTimestamp: (0, smithy_client_1.expectLong)(output.asOfTimestamp),
|
|
2737
|
-
autoUpdate: (0, smithy_client_1.expectBoolean)(output.autoUpdate),
|
|
2738
|
-
createTime: (0, smithy_client_1.expectLong)(output.createTime),
|
|
2739
|
-
dataViewArn: (0, smithy_client_1.expectString)(output.dataViewArn),
|
|
2740
|
-
dataViewId: (0, smithy_client_1.expectString)(output.dataViewId),
|
|
2741
|
-
datasetId: (0, smithy_client_1.expectString)(output.datasetId),
|
|
2742
|
-
destinationTypeProperties: output.destinationTypeProperties != null
|
|
2743
|
-
? de_DataViewDestinationTypeParams(output.destinationTypeProperties, context)
|
|
2744
|
-
: undefined,
|
|
2745
|
-
errorInfo: output.errorInfo != null ? de_DataViewErrorInfo(output.errorInfo, context) : undefined,
|
|
2746
|
-
lastModifiedTime: (0, smithy_client_1.expectLong)(output.lastModifiedTime),
|
|
2747
|
-
partitionColumns: output.partitionColumns != null ? de_PartitionColumnList(output.partitionColumns, context) : undefined,
|
|
2748
|
-
sortColumns: output.sortColumns != null ? de_SortColumnList(output.sortColumns, context) : undefined,
|
|
2749
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2750
|
-
};
|
|
2751
|
-
};
|
|
2752
|
-
const de_FormatParams = (output, context) => {
|
|
2753
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2754
|
-
if (value === null) {
|
|
2755
|
-
return acc;
|
|
2756
|
-
}
|
|
2757
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
2758
|
-
return acc;
|
|
2759
|
-
}, {});
|
|
2760
|
-
};
|
|
2761
|
-
const de_PartitionColumnList = (output, context) => {
|
|
2762
|
-
const retVal = (output || [])
|
|
2763
|
-
.filter((e) => e != null)
|
|
2764
|
-
.map((entry) => {
|
|
2765
|
-
if (entry === null) {
|
|
2766
|
-
return null;
|
|
2767
|
-
}
|
|
2768
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2769
|
-
});
|
|
2770
|
-
return retVal;
|
|
2771
|
-
};
|
|
2772
|
-
const de_PermissionGroup = (output, context) => {
|
|
2773
|
-
return {
|
|
2774
|
-
applicationPermissions: output.applicationPermissions != null
|
|
2775
|
-
? de_ApplicationPermissionList(output.applicationPermissions, context)
|
|
2776
|
-
: undefined,
|
|
2777
|
-
createTime: (0, smithy_client_1.expectLong)(output.createTime),
|
|
2778
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
2779
|
-
lastModifiedTime: (0, smithy_client_1.expectLong)(output.lastModifiedTime),
|
|
2780
|
-
membershipStatus: (0, smithy_client_1.expectString)(output.membershipStatus),
|
|
2781
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2782
|
-
permissionGroupId: (0, smithy_client_1.expectString)(output.permissionGroupId),
|
|
2783
|
-
};
|
|
2784
|
-
};
|
|
2785
|
-
const de_PermissionGroupByUser = (output, context) => {
|
|
2786
|
-
return {
|
|
2787
|
-
membershipStatus: (0, smithy_client_1.expectString)(output.membershipStatus),
|
|
2788
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2789
|
-
permissionGroupId: (0, smithy_client_1.expectString)(output.permissionGroupId),
|
|
2790
|
-
};
|
|
2791
|
-
};
|
|
2792
|
-
const de_PermissionGroupByUserList = (output, context) => {
|
|
2793
|
-
const retVal = (output || [])
|
|
2794
|
-
.filter((e) => e != null)
|
|
2795
|
-
.map((entry) => {
|
|
2796
|
-
if (entry === null) {
|
|
2797
|
-
return null;
|
|
2798
|
-
}
|
|
2799
|
-
return de_PermissionGroupByUser(entry, context);
|
|
2800
|
-
});
|
|
2801
|
-
return retVal;
|
|
2802
|
-
};
|
|
2803
|
-
const de_PermissionGroupList = (output, context) => {
|
|
2804
|
-
const retVal = (output || [])
|
|
2805
|
-
.filter((e) => e != null)
|
|
2806
|
-
.map((entry) => {
|
|
2807
|
-
if (entry === null) {
|
|
2808
|
-
return null;
|
|
2809
|
-
}
|
|
2810
|
-
return de_PermissionGroup(entry, context);
|
|
2811
|
-
});
|
|
2812
|
-
return retVal;
|
|
2813
|
-
};
|
|
2814
|
-
const de_S3DestinationFormatOptions = (output, context) => {
|
|
2815
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2816
|
-
if (value === null) {
|
|
2817
|
-
return acc;
|
|
2818
|
-
}
|
|
2819
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
2820
|
-
return acc;
|
|
2821
|
-
}, {});
|
|
2822
|
-
};
|
|
2823
|
-
const de_S3Location = (output, context) => {
|
|
2824
|
-
return {
|
|
2825
|
-
bucket: (0, smithy_client_1.expectString)(output.bucket),
|
|
2826
|
-
key: (0, smithy_client_1.expectString)(output.key),
|
|
2827
|
-
};
|
|
2828
|
-
};
|
|
2829
|
-
const de_SchemaDefinition = (output, context) => {
|
|
2830
|
-
return {
|
|
2831
|
-
columns: output.columns != null ? de_ColumnList(output.columns, context) : undefined,
|
|
2832
|
-
primaryKeyColumns: output.primaryKeyColumns != null ? de_ColumnNameList(output.primaryKeyColumns, context) : undefined,
|
|
2833
|
-
};
|
|
2834
|
-
};
|
|
2835
|
-
const de_SchemaUnion = (output, context) => {
|
|
2836
|
-
return {
|
|
2837
|
-
tabularSchemaConfig: output.tabularSchemaConfig != null ? de_SchemaDefinition(output.tabularSchemaConfig, context) : undefined,
|
|
2838
|
-
};
|
|
2839
|
-
};
|
|
2840
|
-
const de_SortColumnList = (output, context) => {
|
|
2841
|
-
const retVal = (output || [])
|
|
2842
|
-
.filter((e) => e != null)
|
|
2843
|
-
.map((entry) => {
|
|
2844
|
-
if (entry === null) {
|
|
2845
|
-
return null;
|
|
2846
|
-
}
|
|
2847
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2848
|
-
});
|
|
2849
|
-
return retVal;
|
|
2850
|
-
};
|
|
2851
|
-
const de_SourceParams = (output, context) => {
|
|
2852
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2853
|
-
if (value === null) {
|
|
2854
|
-
return acc;
|
|
2855
|
-
}
|
|
2856
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
2857
|
-
return acc;
|
|
2858
|
-
}, {});
|
|
2859
|
-
};
|
|
2860
|
-
const de_User = (output, context) => {
|
|
2861
|
-
return {
|
|
2862
|
-
apiAccess: (0, smithy_client_1.expectString)(output.apiAccess),
|
|
2863
|
-
apiAccessPrincipalArn: (0, smithy_client_1.expectString)(output.apiAccessPrincipalArn),
|
|
2864
|
-
createTime: (0, smithy_client_1.expectLong)(output.createTime),
|
|
2865
|
-
emailAddress: (0, smithy_client_1.expectString)(output.emailAddress),
|
|
2866
|
-
firstName: (0, smithy_client_1.expectString)(output.firstName),
|
|
2867
|
-
lastDisabledTime: (0, smithy_client_1.expectLong)(output.lastDisabledTime),
|
|
2868
|
-
lastEnabledTime: (0, smithy_client_1.expectLong)(output.lastEnabledTime),
|
|
2869
|
-
lastLoginTime: (0, smithy_client_1.expectLong)(output.lastLoginTime),
|
|
2870
|
-
lastModifiedTime: (0, smithy_client_1.expectLong)(output.lastModifiedTime),
|
|
2871
|
-
lastName: (0, smithy_client_1.expectString)(output.lastName),
|
|
2872
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2873
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
2874
|
-
userId: (0, smithy_client_1.expectString)(output.userId),
|
|
2875
|
-
};
|
|
2876
|
-
};
|
|
2877
|
-
const de_UserByPermissionGroup = (output, context) => {
|
|
2878
|
-
return {
|
|
2879
|
-
apiAccess: (0, smithy_client_1.expectString)(output.apiAccess),
|
|
2880
|
-
apiAccessPrincipalArn: (0, smithy_client_1.expectString)(output.apiAccessPrincipalArn),
|
|
2881
|
-
emailAddress: (0, smithy_client_1.expectString)(output.emailAddress),
|
|
2882
|
-
firstName: (0, smithy_client_1.expectString)(output.firstName),
|
|
2883
|
-
lastName: (0, smithy_client_1.expectString)(output.lastName),
|
|
2884
|
-
membershipStatus: (0, smithy_client_1.expectString)(output.membershipStatus),
|
|
2885
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2886
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
2887
|
-
userId: (0, smithy_client_1.expectString)(output.userId),
|
|
2888
|
-
};
|
|
2889
|
-
};
|
|
2890
|
-
const de_UserByPermissionGroupList = (output, context) => {
|
|
2891
|
-
const retVal = (output || [])
|
|
2892
|
-
.filter((e) => e != null)
|
|
2893
|
-
.map((entry) => {
|
|
2894
|
-
if (entry === null) {
|
|
2895
|
-
return null;
|
|
2896
|
-
}
|
|
2897
|
-
return de_UserByPermissionGroup(entry, context);
|
|
2898
|
-
});
|
|
2899
|
-
return retVal;
|
|
2900
|
-
};
|
|
2901
|
-
const de_UserList = (output, context) => {
|
|
2902
|
-
const retVal = (output || [])
|
|
2903
|
-
.filter((e) => e != null)
|
|
2904
|
-
.map((entry) => {
|
|
2905
|
-
if (entry === null) {
|
|
2906
|
-
return null;
|
|
2907
|
-
}
|
|
2908
|
-
return de_User(entry, context);
|
|
2909
|
-
});
|
|
2910
|
-
return retVal;
|
|
2911
|
-
};
|
|
2912
2339
|
const deserializeMetadata = (output) => ({
|
|
2913
2340
|
httpStatusCode: output.statusCode,
|
|
2914
2341
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|