@aws-sdk/client-finspace-data 3.109.0 → 3.112.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/CHANGELOG.md +27 -0
- package/README.md +7 -7
- package/dist-cjs/FinspaceData.js +75 -0
- package/dist-cjs/commands/AssociateUserToPermissionGroupCommand.js +36 -0
- package/dist-cjs/commands/DisassociateUserFromPermissionGroupCommand.js +36 -0
- package/dist-cjs/commands/GetPermissionGroupCommand.js +36 -0
- package/dist-cjs/commands/ListPermissionGroupsByUserCommand.js +36 -0
- package/dist-cjs/commands/ListUsersByPermissionGroupCommand.js +36 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +128 -41
- package/dist-cjs/protocols/Aws_restJson1.js +477 -1
- package/dist-es/FinspaceData.js +75 -0
- package/dist-es/commands/AssociateUserToPermissionGroupCommand.js +39 -0
- package/dist-es/commands/DisassociateUserFromPermissionGroupCommand.js +39 -0
- package/dist-es/commands/GetPermissionGroupCommand.js +39 -0
- package/dist-es/commands/ListPermissionGroupsByUserCommand.js +39 -0
- package/dist-es/commands/ListUsersByPermissionGroupCommand.js +39 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +86 -30
- package/dist-es/protocols/Aws_restJson1.js +615 -10
- package/dist-types/FinspaceData.d.ts +35 -0
- package/dist-types/FinspaceDataClient.d.ts +7 -2
- package/dist-types/commands/AssociateUserToPermissionGroupCommand.d.ts +35 -0
- package/dist-types/commands/DisassociateUserFromPermissionGroupCommand.d.ts +35 -0
- package/dist-types/commands/GetPermissionGroupCommand.d.ts +35 -0
- package/dist-types/commands/ListPermissionGroupsByUserCommand.d.ts +35 -0
- package/dist-types/commands/ListUsersByPermissionGroupCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +411 -96
- package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
- package/dist-types/ts3.4/FinspaceData.d.ts +25 -0
- package/dist-types/ts3.4/FinspaceDataClient.d.ts +7 -2
- package/dist-types/ts3.4/commands/AssociateUserToPermissionGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisassociateUserFromPermissionGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetPermissionGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListPermissionGroupsByUserCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListUsersByPermissionGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +189 -44
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +15 -0
- package/package.json +26 -26
|
@@ -4,6 +4,54 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
|
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { FinspaceDataServiceException as __BaseException } from "../models/FinspaceDataServiceException";
|
|
6
6
|
import { AccessDeniedException, ConflictException, InternalServerException, LimitExceededException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
7
|
+
export var serializeAws_restJson1AssociateUserToPermissionGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
9
|
+
var _c;
|
|
10
|
+
return __generator(this, function (_d) {
|
|
11
|
+
switch (_d.label) {
|
|
12
|
+
case 0: return [4, context.endpoint()];
|
|
13
|
+
case 1:
|
|
14
|
+
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
15
|
+
headers = {
|
|
16
|
+
"content-type": "application/json",
|
|
17
|
+
};
|
|
18
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
19
|
+
"/permission-group/{permissionGroupId}/users/{userId}";
|
|
20
|
+
if (input.permissionGroupId !== undefined) {
|
|
21
|
+
labelValue = input.permissionGroupId;
|
|
22
|
+
if (labelValue.length <= 0) {
|
|
23
|
+
throw new Error("Empty value provided for input HTTP label: permissionGroupId.");
|
|
24
|
+
}
|
|
25
|
+
resolvedPath = resolvedPath.replace("{permissionGroupId}", __extendedEncodeURIComponent(labelValue));
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
throw new Error("No value provided for input HTTP label: permissionGroupId.");
|
|
29
|
+
}
|
|
30
|
+
if (input.userId !== undefined) {
|
|
31
|
+
labelValue = input.userId;
|
|
32
|
+
if (labelValue.length <= 0) {
|
|
33
|
+
throw new Error("Empty value provided for input HTTP label: userId.");
|
|
34
|
+
}
|
|
35
|
+
resolvedPath = resolvedPath.replace("{userId}", __extendedEncodeURIComponent(labelValue));
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
throw new Error("No value provided for input HTTP label: userId.");
|
|
39
|
+
}
|
|
40
|
+
body = JSON.stringify({
|
|
41
|
+
clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken(),
|
|
42
|
+
});
|
|
43
|
+
return [2, new __HttpRequest({
|
|
44
|
+
protocol: protocol,
|
|
45
|
+
hostname: hostname,
|
|
46
|
+
port: port,
|
|
47
|
+
method: "POST",
|
|
48
|
+
headers: headers,
|
|
49
|
+
path: resolvedPath,
|
|
50
|
+
body: body,
|
|
51
|
+
})];
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}); };
|
|
7
55
|
export var serializeAws_restJson1CreateChangesetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8
56
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
9
57
|
var _c;
|
|
@@ -273,6 +321,50 @@ export var serializeAws_restJson1DisableUserCommand = function (input, context)
|
|
|
273
321
|
}
|
|
274
322
|
});
|
|
275
323
|
}); };
|
|
324
|
+
export var serializeAws_restJson1DisassociateUserFromPermissionGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
325
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, query, body;
|
|
326
|
+
return __generator(this, function (_c) {
|
|
327
|
+
switch (_c.label) {
|
|
328
|
+
case 0: return [4, context.endpoint()];
|
|
329
|
+
case 1:
|
|
330
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
331
|
+
headers = {};
|
|
332
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
333
|
+
"/permission-group/{permissionGroupId}/users/{userId}";
|
|
334
|
+
if (input.permissionGroupId !== undefined) {
|
|
335
|
+
labelValue = input.permissionGroupId;
|
|
336
|
+
if (labelValue.length <= 0) {
|
|
337
|
+
throw new Error("Empty value provided for input HTTP label: permissionGroupId.");
|
|
338
|
+
}
|
|
339
|
+
resolvedPath = resolvedPath.replace("{permissionGroupId}", __extendedEncodeURIComponent(labelValue));
|
|
340
|
+
}
|
|
341
|
+
else {
|
|
342
|
+
throw new Error("No value provided for input HTTP label: permissionGroupId.");
|
|
343
|
+
}
|
|
344
|
+
if (input.userId !== undefined) {
|
|
345
|
+
labelValue = input.userId;
|
|
346
|
+
if (labelValue.length <= 0) {
|
|
347
|
+
throw new Error("Empty value provided for input HTTP label: userId.");
|
|
348
|
+
}
|
|
349
|
+
resolvedPath = resolvedPath.replace("{userId}", __extendedEncodeURIComponent(labelValue));
|
|
350
|
+
}
|
|
351
|
+
else {
|
|
352
|
+
throw new Error("No value provided for input HTTP label: userId.");
|
|
353
|
+
}
|
|
354
|
+
query = __assign({}, (input.clientToken !== undefined && { clientToken: input.clientToken }));
|
|
355
|
+
return [2, new __HttpRequest({
|
|
356
|
+
protocol: protocol,
|
|
357
|
+
hostname: hostname,
|
|
358
|
+
port: port,
|
|
359
|
+
method: "DELETE",
|
|
360
|
+
headers: headers,
|
|
361
|
+
path: resolvedPath,
|
|
362
|
+
query: query,
|
|
363
|
+
body: body,
|
|
364
|
+
})];
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
}); };
|
|
276
368
|
export var serializeAws_restJson1EnableUserCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
277
369
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
278
370
|
var _c;
|
|
@@ -425,6 +517,37 @@ export var serializeAws_restJson1GetDataViewCommand = function (input, context)
|
|
|
425
517
|
}
|
|
426
518
|
});
|
|
427
519
|
}); };
|
|
520
|
+
export var serializeAws_restJson1GetPermissionGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
521
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
522
|
+
return __generator(this, function (_c) {
|
|
523
|
+
switch (_c.label) {
|
|
524
|
+
case 0: return [4, context.endpoint()];
|
|
525
|
+
case 1:
|
|
526
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
527
|
+
headers = {};
|
|
528
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/permission-group/{permissionGroupId}";
|
|
529
|
+
if (input.permissionGroupId !== undefined) {
|
|
530
|
+
labelValue = input.permissionGroupId;
|
|
531
|
+
if (labelValue.length <= 0) {
|
|
532
|
+
throw new Error("Empty value provided for input HTTP label: permissionGroupId.");
|
|
533
|
+
}
|
|
534
|
+
resolvedPath = resolvedPath.replace("{permissionGroupId}", __extendedEncodeURIComponent(labelValue));
|
|
535
|
+
}
|
|
536
|
+
else {
|
|
537
|
+
throw new Error("No value provided for input HTTP label: permissionGroupId.");
|
|
538
|
+
}
|
|
539
|
+
return [2, new __HttpRequest({
|
|
540
|
+
protocol: protocol,
|
|
541
|
+
hostname: hostname,
|
|
542
|
+
port: port,
|
|
543
|
+
method: "GET",
|
|
544
|
+
headers: headers,
|
|
545
|
+
path: resolvedPath,
|
|
546
|
+
body: body,
|
|
547
|
+
})];
|
|
548
|
+
}
|
|
549
|
+
});
|
|
550
|
+
}); };
|
|
428
551
|
export var serializeAws_restJson1GetProgrammaticAccessCredentialsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
429
552
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
430
553
|
return __generator(this, function (_c) {
|
|
@@ -615,6 +738,39 @@ export var serializeAws_restJson1ListPermissionGroupsCommand = function (input,
|
|
|
615
738
|
}
|
|
616
739
|
});
|
|
617
740
|
}); };
|
|
741
|
+
export var serializeAws_restJson1ListPermissionGroupsByUserCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
742
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
743
|
+
return __generator(this, function (_c) {
|
|
744
|
+
switch (_c.label) {
|
|
745
|
+
case 0: return [4, context.endpoint()];
|
|
746
|
+
case 1:
|
|
747
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
748
|
+
headers = {};
|
|
749
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/user/{userId}/permission-groups";
|
|
750
|
+
if (input.userId !== undefined) {
|
|
751
|
+
labelValue = input.userId;
|
|
752
|
+
if (labelValue.length <= 0) {
|
|
753
|
+
throw new Error("Empty value provided for input HTTP label: userId.");
|
|
754
|
+
}
|
|
755
|
+
resolvedPath = resolvedPath.replace("{userId}", __extendedEncodeURIComponent(labelValue));
|
|
756
|
+
}
|
|
757
|
+
else {
|
|
758
|
+
throw new Error("No value provided for input HTTP label: userId.");
|
|
759
|
+
}
|
|
760
|
+
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
761
|
+
return [2, new __HttpRequest({
|
|
762
|
+
protocol: protocol,
|
|
763
|
+
hostname: hostname,
|
|
764
|
+
port: port,
|
|
765
|
+
method: "GET",
|
|
766
|
+
headers: headers,
|
|
767
|
+
path: resolvedPath,
|
|
768
|
+
query: query,
|
|
769
|
+
body: body,
|
|
770
|
+
})];
|
|
771
|
+
}
|
|
772
|
+
});
|
|
773
|
+
}); };
|
|
618
774
|
export var serializeAws_restJson1ListUsersCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
619
775
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
620
776
|
return __generator(this, function (_c) {
|
|
@@ -638,6 +794,40 @@ export var serializeAws_restJson1ListUsersCommand = function (input, context) {
|
|
|
638
794
|
}
|
|
639
795
|
});
|
|
640
796
|
}); };
|
|
797
|
+
export var serializeAws_restJson1ListUsersByPermissionGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
798
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
799
|
+
return __generator(this, function (_c) {
|
|
800
|
+
switch (_c.label) {
|
|
801
|
+
case 0: return [4, context.endpoint()];
|
|
802
|
+
case 1:
|
|
803
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
804
|
+
headers = {};
|
|
805
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
806
|
+
"/permission-group/{permissionGroupId}/users";
|
|
807
|
+
if (input.permissionGroupId !== undefined) {
|
|
808
|
+
labelValue = input.permissionGroupId;
|
|
809
|
+
if (labelValue.length <= 0) {
|
|
810
|
+
throw new Error("Empty value provided for input HTTP label: permissionGroupId.");
|
|
811
|
+
}
|
|
812
|
+
resolvedPath = resolvedPath.replace("{permissionGroupId}", __extendedEncodeURIComponent(labelValue));
|
|
813
|
+
}
|
|
814
|
+
else {
|
|
815
|
+
throw new Error("No value provided for input HTTP label: permissionGroupId.");
|
|
816
|
+
}
|
|
817
|
+
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
818
|
+
return [2, new __HttpRequest({
|
|
819
|
+
protocol: protocol,
|
|
820
|
+
hostname: hostname,
|
|
821
|
+
port: port,
|
|
822
|
+
method: "GET",
|
|
823
|
+
headers: headers,
|
|
824
|
+
path: resolvedPath,
|
|
825
|
+
query: query,
|
|
826
|
+
body: body,
|
|
827
|
+
})];
|
|
828
|
+
}
|
|
829
|
+
});
|
|
830
|
+
}); };
|
|
641
831
|
export var serializeAws_restJson1ResetUserPasswordCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
642
832
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
643
833
|
var _c;
|
|
@@ -836,6 +1026,80 @@ export var serializeAws_restJson1UpdateUserCommand = function (input, context) {
|
|
|
836
1026
|
}
|
|
837
1027
|
});
|
|
838
1028
|
}); };
|
|
1029
|
+
export var deserializeAws_restJson1AssociateUserToPermissionGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1030
|
+
var contents;
|
|
1031
|
+
return __generator(this, function (_a) {
|
|
1032
|
+
switch (_a.label) {
|
|
1033
|
+
case 0:
|
|
1034
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1035
|
+
return [2, deserializeAws_restJson1AssociateUserToPermissionGroupCommandError(output, context)];
|
|
1036
|
+
}
|
|
1037
|
+
contents = {
|
|
1038
|
+
$metadata: deserializeMetadata(output),
|
|
1039
|
+
statusCode: undefined,
|
|
1040
|
+
};
|
|
1041
|
+
if (contents.statusCode === undefined) {
|
|
1042
|
+
contents.statusCode = output.statusCode;
|
|
1043
|
+
}
|
|
1044
|
+
return [4, collectBody(output.body, context)];
|
|
1045
|
+
case 1:
|
|
1046
|
+
_a.sent();
|
|
1047
|
+
return [2, Promise.resolve(contents)];
|
|
1048
|
+
}
|
|
1049
|
+
});
|
|
1050
|
+
}); };
|
|
1051
|
+
var deserializeAws_restJson1AssociateUserToPermissionGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1052
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1053
|
+
var _c;
|
|
1054
|
+
return __generator(this, function (_d) {
|
|
1055
|
+
switch (_d.label) {
|
|
1056
|
+
case 0:
|
|
1057
|
+
_a = [__assign({}, output)];
|
|
1058
|
+
_c = {};
|
|
1059
|
+
return [4, parseBody(output.body, context)];
|
|
1060
|
+
case 1:
|
|
1061
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1062
|
+
errorCode = "UnknownError";
|
|
1063
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1064
|
+
_b = errorCode;
|
|
1065
|
+
switch (_b) {
|
|
1066
|
+
case "AccessDeniedException": return [3, 2];
|
|
1067
|
+
case "com.amazonaws.finspacedata#AccessDeniedException": return [3, 2];
|
|
1068
|
+
case "ConflictException": return [3, 4];
|
|
1069
|
+
case "com.amazonaws.finspacedata#ConflictException": return [3, 4];
|
|
1070
|
+
case "InternalServerException": return [3, 6];
|
|
1071
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 6];
|
|
1072
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1073
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException": return [3, 8];
|
|
1074
|
+
case "ThrottlingException": return [3, 10];
|
|
1075
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 10];
|
|
1076
|
+
case "ValidationException": return [3, 12];
|
|
1077
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 12];
|
|
1078
|
+
}
|
|
1079
|
+
return [3, 14];
|
|
1080
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1081
|
+
case 3: throw _d.sent();
|
|
1082
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1083
|
+
case 5: throw _d.sent();
|
|
1084
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1085
|
+
case 7: throw _d.sent();
|
|
1086
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1087
|
+
case 9: throw _d.sent();
|
|
1088
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1089
|
+
case 11: throw _d.sent();
|
|
1090
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1091
|
+
case 13: throw _d.sent();
|
|
1092
|
+
case 14:
|
|
1093
|
+
parsedBody = parsedOutput.body;
|
|
1094
|
+
response = new __BaseException({
|
|
1095
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1096
|
+
$fault: "client",
|
|
1097
|
+
$metadata: deserializeMetadata(output),
|
|
1098
|
+
});
|
|
1099
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1100
|
+
}
|
|
1101
|
+
});
|
|
1102
|
+
}); };
|
|
839
1103
|
export var deserializeAws_restJson1CreateChangesetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
840
1104
|
var contents, data, _a, _b;
|
|
841
1105
|
return __generator(this, function (_c) {
|
|
@@ -1398,25 +1662,99 @@ export var deserializeAws_restJson1DisableUserCommand = function (output, contex
|
|
|
1398
1662
|
switch (_c.label) {
|
|
1399
1663
|
case 0:
|
|
1400
1664
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1401
|
-
return [2, deserializeAws_restJson1DisableUserCommandError(output, context)];
|
|
1665
|
+
return [2, deserializeAws_restJson1DisableUserCommandError(output, context)];
|
|
1666
|
+
}
|
|
1667
|
+
contents = {
|
|
1668
|
+
$metadata: deserializeMetadata(output),
|
|
1669
|
+
userId: undefined,
|
|
1670
|
+
};
|
|
1671
|
+
_a = __expectNonNull;
|
|
1672
|
+
_b = __expectObject;
|
|
1673
|
+
return [4, parseBody(output.body, context)];
|
|
1674
|
+
case 1:
|
|
1675
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1676
|
+
if (data.userId !== undefined && data.userId !== null) {
|
|
1677
|
+
contents.userId = __expectString(data.userId);
|
|
1678
|
+
}
|
|
1679
|
+
return [2, Promise.resolve(contents)];
|
|
1680
|
+
}
|
|
1681
|
+
});
|
|
1682
|
+
}); };
|
|
1683
|
+
var deserializeAws_restJson1DisableUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1684
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1685
|
+
var _c;
|
|
1686
|
+
return __generator(this, function (_d) {
|
|
1687
|
+
switch (_d.label) {
|
|
1688
|
+
case 0:
|
|
1689
|
+
_a = [__assign({}, output)];
|
|
1690
|
+
_c = {};
|
|
1691
|
+
return [4, parseBody(output.body, context)];
|
|
1692
|
+
case 1:
|
|
1693
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1694
|
+
errorCode = "UnknownError";
|
|
1695
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1696
|
+
_b = errorCode;
|
|
1697
|
+
switch (_b) {
|
|
1698
|
+
case "AccessDeniedException": return [3, 2];
|
|
1699
|
+
case "com.amazonaws.finspacedata#AccessDeniedException": return [3, 2];
|
|
1700
|
+
case "ConflictException": return [3, 4];
|
|
1701
|
+
case "com.amazonaws.finspacedata#ConflictException": return [3, 4];
|
|
1702
|
+
case "InternalServerException": return [3, 6];
|
|
1703
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 6];
|
|
1704
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1705
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException": return [3, 8];
|
|
1706
|
+
case "ThrottlingException": return [3, 10];
|
|
1707
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 10];
|
|
1708
|
+
case "ValidationException": return [3, 12];
|
|
1709
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 12];
|
|
1710
|
+
}
|
|
1711
|
+
return [3, 14];
|
|
1712
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1713
|
+
case 3: throw _d.sent();
|
|
1714
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1715
|
+
case 5: throw _d.sent();
|
|
1716
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1717
|
+
case 7: throw _d.sent();
|
|
1718
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1719
|
+
case 9: throw _d.sent();
|
|
1720
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1721
|
+
case 11: throw _d.sent();
|
|
1722
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1723
|
+
case 13: throw _d.sent();
|
|
1724
|
+
case 14:
|
|
1725
|
+
parsedBody = parsedOutput.body;
|
|
1726
|
+
response = new __BaseException({
|
|
1727
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1728
|
+
$fault: "client",
|
|
1729
|
+
$metadata: deserializeMetadata(output),
|
|
1730
|
+
});
|
|
1731
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1732
|
+
}
|
|
1733
|
+
});
|
|
1734
|
+
}); };
|
|
1735
|
+
export var deserializeAws_restJson1DisassociateUserFromPermissionGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1736
|
+
var contents;
|
|
1737
|
+
return __generator(this, function (_a) {
|
|
1738
|
+
switch (_a.label) {
|
|
1739
|
+
case 0:
|
|
1740
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1741
|
+
return [2, deserializeAws_restJson1DisassociateUserFromPermissionGroupCommandError(output, context)];
|
|
1402
1742
|
}
|
|
1403
1743
|
contents = {
|
|
1404
1744
|
$metadata: deserializeMetadata(output),
|
|
1405
|
-
|
|
1745
|
+
statusCode: undefined,
|
|
1406
1746
|
};
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
return [4, parseBody(output.body, context)];
|
|
1410
|
-
case 1:
|
|
1411
|
-
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1412
|
-
if (data.userId !== undefined && data.userId !== null) {
|
|
1413
|
-
contents.userId = __expectString(data.userId);
|
|
1747
|
+
if (contents.statusCode === undefined) {
|
|
1748
|
+
contents.statusCode = output.statusCode;
|
|
1414
1749
|
}
|
|
1750
|
+
return [4, collectBody(output.body, context)];
|
|
1751
|
+
case 1:
|
|
1752
|
+
_a.sent();
|
|
1415
1753
|
return [2, Promise.resolve(contents)];
|
|
1416
1754
|
}
|
|
1417
1755
|
});
|
|
1418
1756
|
}); };
|
|
1419
|
-
var
|
|
1757
|
+
var deserializeAws_restJson1DisassociateUserFromPermissionGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1420
1758
|
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1421
1759
|
var _c;
|
|
1422
1760
|
return __generator(this, function (_d) {
|
|
@@ -1900,6 +2238,78 @@ var deserializeAws_restJson1GetDataViewCommandError = function (output, context)
|
|
|
1900
2238
|
}
|
|
1901
2239
|
});
|
|
1902
2240
|
}); };
|
|
2241
|
+
export var deserializeAws_restJson1GetPermissionGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2242
|
+
var contents, data, _a, _b;
|
|
2243
|
+
return __generator(this, function (_c) {
|
|
2244
|
+
switch (_c.label) {
|
|
2245
|
+
case 0:
|
|
2246
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2247
|
+
return [2, deserializeAws_restJson1GetPermissionGroupCommandError(output, context)];
|
|
2248
|
+
}
|
|
2249
|
+
contents = {
|
|
2250
|
+
$metadata: deserializeMetadata(output),
|
|
2251
|
+
permissionGroup: undefined,
|
|
2252
|
+
};
|
|
2253
|
+
_a = __expectNonNull;
|
|
2254
|
+
_b = __expectObject;
|
|
2255
|
+
return [4, parseBody(output.body, context)];
|
|
2256
|
+
case 1:
|
|
2257
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2258
|
+
if (data.permissionGroup !== undefined && data.permissionGroup !== null) {
|
|
2259
|
+
contents.permissionGroup = deserializeAws_restJson1PermissionGroup(data.permissionGroup, context);
|
|
2260
|
+
}
|
|
2261
|
+
return [2, Promise.resolve(contents)];
|
|
2262
|
+
}
|
|
2263
|
+
});
|
|
2264
|
+
}); };
|
|
2265
|
+
var deserializeAws_restJson1GetPermissionGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2266
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2267
|
+
var _c;
|
|
2268
|
+
return __generator(this, function (_d) {
|
|
2269
|
+
switch (_d.label) {
|
|
2270
|
+
case 0:
|
|
2271
|
+
_a = [__assign({}, output)];
|
|
2272
|
+
_c = {};
|
|
2273
|
+
return [4, parseBody(output.body, context)];
|
|
2274
|
+
case 1:
|
|
2275
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2276
|
+
errorCode = "UnknownError";
|
|
2277
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2278
|
+
_b = errorCode;
|
|
2279
|
+
switch (_b) {
|
|
2280
|
+
case "AccessDeniedException": return [3, 2];
|
|
2281
|
+
case "com.amazonaws.finspacedata#AccessDeniedException": return [3, 2];
|
|
2282
|
+
case "InternalServerException": return [3, 4];
|
|
2283
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 4];
|
|
2284
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2285
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException": return [3, 6];
|
|
2286
|
+
case "ThrottlingException": return [3, 8];
|
|
2287
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 8];
|
|
2288
|
+
case "ValidationException": return [3, 10];
|
|
2289
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 10];
|
|
2290
|
+
}
|
|
2291
|
+
return [3, 12];
|
|
2292
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2293
|
+
case 3: throw _d.sent();
|
|
2294
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2295
|
+
case 5: throw _d.sent();
|
|
2296
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2297
|
+
case 7: throw _d.sent();
|
|
2298
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2299
|
+
case 9: throw _d.sent();
|
|
2300
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2301
|
+
case 11: throw _d.sent();
|
|
2302
|
+
case 12:
|
|
2303
|
+
parsedBody = parsedOutput.body;
|
|
2304
|
+
response = new __BaseException({
|
|
2305
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2306
|
+
$fault: "client",
|
|
2307
|
+
$metadata: deserializeMetadata(output),
|
|
2308
|
+
});
|
|
2309
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2310
|
+
}
|
|
2311
|
+
});
|
|
2312
|
+
}); };
|
|
1903
2313
|
export var deserializeAws_restJson1GetProgrammaticAccessCredentialsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1904
2314
|
var contents, data, _a, _b;
|
|
1905
2315
|
return __generator(this, function (_c) {
|
|
@@ -2472,6 +2882,82 @@ var deserializeAws_restJson1ListPermissionGroupsCommandError = function (output,
|
|
|
2472
2882
|
}
|
|
2473
2883
|
});
|
|
2474
2884
|
}); };
|
|
2885
|
+
export var deserializeAws_restJson1ListPermissionGroupsByUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2886
|
+
var contents, data, _a, _b;
|
|
2887
|
+
return __generator(this, function (_c) {
|
|
2888
|
+
switch (_c.label) {
|
|
2889
|
+
case 0:
|
|
2890
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2891
|
+
return [2, deserializeAws_restJson1ListPermissionGroupsByUserCommandError(output, context)];
|
|
2892
|
+
}
|
|
2893
|
+
contents = {
|
|
2894
|
+
$metadata: deserializeMetadata(output),
|
|
2895
|
+
nextToken: undefined,
|
|
2896
|
+
permissionGroups: undefined,
|
|
2897
|
+
};
|
|
2898
|
+
_a = __expectNonNull;
|
|
2899
|
+
_b = __expectObject;
|
|
2900
|
+
return [4, parseBody(output.body, context)];
|
|
2901
|
+
case 1:
|
|
2902
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2903
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2904
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
2905
|
+
}
|
|
2906
|
+
if (data.permissionGroups !== undefined && data.permissionGroups !== null) {
|
|
2907
|
+
contents.permissionGroups = deserializeAws_restJson1PermissionGroupByUserList(data.permissionGroups, context);
|
|
2908
|
+
}
|
|
2909
|
+
return [2, Promise.resolve(contents)];
|
|
2910
|
+
}
|
|
2911
|
+
});
|
|
2912
|
+
}); };
|
|
2913
|
+
var deserializeAws_restJson1ListPermissionGroupsByUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2914
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2915
|
+
var _c;
|
|
2916
|
+
return __generator(this, function (_d) {
|
|
2917
|
+
switch (_d.label) {
|
|
2918
|
+
case 0:
|
|
2919
|
+
_a = [__assign({}, output)];
|
|
2920
|
+
_c = {};
|
|
2921
|
+
return [4, parseBody(output.body, context)];
|
|
2922
|
+
case 1:
|
|
2923
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2924
|
+
errorCode = "UnknownError";
|
|
2925
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2926
|
+
_b = errorCode;
|
|
2927
|
+
switch (_b) {
|
|
2928
|
+
case "AccessDeniedException": return [3, 2];
|
|
2929
|
+
case "com.amazonaws.finspacedata#AccessDeniedException": return [3, 2];
|
|
2930
|
+
case "InternalServerException": return [3, 4];
|
|
2931
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 4];
|
|
2932
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2933
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException": return [3, 6];
|
|
2934
|
+
case "ThrottlingException": return [3, 8];
|
|
2935
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 8];
|
|
2936
|
+
case "ValidationException": return [3, 10];
|
|
2937
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 10];
|
|
2938
|
+
}
|
|
2939
|
+
return [3, 12];
|
|
2940
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2941
|
+
case 3: throw _d.sent();
|
|
2942
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2943
|
+
case 5: throw _d.sent();
|
|
2944
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2945
|
+
case 7: throw _d.sent();
|
|
2946
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2947
|
+
case 9: throw _d.sent();
|
|
2948
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2949
|
+
case 11: throw _d.sent();
|
|
2950
|
+
case 12:
|
|
2951
|
+
parsedBody = parsedOutput.body;
|
|
2952
|
+
response = new __BaseException({
|
|
2953
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2954
|
+
$fault: "client",
|
|
2955
|
+
$metadata: deserializeMetadata(output),
|
|
2956
|
+
});
|
|
2957
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2958
|
+
}
|
|
2959
|
+
});
|
|
2960
|
+
}); };
|
|
2475
2961
|
export var deserializeAws_restJson1ListUsersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2476
2962
|
var contents, data, _a, _b;
|
|
2477
2963
|
return __generator(this, function (_c) {
|
|
@@ -2544,6 +3030,82 @@ var deserializeAws_restJson1ListUsersCommandError = function (output, context) {
|
|
|
2544
3030
|
}
|
|
2545
3031
|
});
|
|
2546
3032
|
}); };
|
|
3033
|
+
export var deserializeAws_restJson1ListUsersByPermissionGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3034
|
+
var contents, data, _a, _b;
|
|
3035
|
+
return __generator(this, function (_c) {
|
|
3036
|
+
switch (_c.label) {
|
|
3037
|
+
case 0:
|
|
3038
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3039
|
+
return [2, deserializeAws_restJson1ListUsersByPermissionGroupCommandError(output, context)];
|
|
3040
|
+
}
|
|
3041
|
+
contents = {
|
|
3042
|
+
$metadata: deserializeMetadata(output),
|
|
3043
|
+
nextToken: undefined,
|
|
3044
|
+
users: undefined,
|
|
3045
|
+
};
|
|
3046
|
+
_a = __expectNonNull;
|
|
3047
|
+
_b = __expectObject;
|
|
3048
|
+
return [4, parseBody(output.body, context)];
|
|
3049
|
+
case 1:
|
|
3050
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3051
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
3052
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
3053
|
+
}
|
|
3054
|
+
if (data.users !== undefined && data.users !== null) {
|
|
3055
|
+
contents.users = deserializeAws_restJson1UserByPermissionGroupList(data.users, context);
|
|
3056
|
+
}
|
|
3057
|
+
return [2, Promise.resolve(contents)];
|
|
3058
|
+
}
|
|
3059
|
+
});
|
|
3060
|
+
}); };
|
|
3061
|
+
var deserializeAws_restJson1ListUsersByPermissionGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3062
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3063
|
+
var _c;
|
|
3064
|
+
return __generator(this, function (_d) {
|
|
3065
|
+
switch (_d.label) {
|
|
3066
|
+
case 0:
|
|
3067
|
+
_a = [__assign({}, output)];
|
|
3068
|
+
_c = {};
|
|
3069
|
+
return [4, parseBody(output.body, context)];
|
|
3070
|
+
case 1:
|
|
3071
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3072
|
+
errorCode = "UnknownError";
|
|
3073
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3074
|
+
_b = errorCode;
|
|
3075
|
+
switch (_b) {
|
|
3076
|
+
case "AccessDeniedException": return [3, 2];
|
|
3077
|
+
case "com.amazonaws.finspacedata#AccessDeniedException": return [3, 2];
|
|
3078
|
+
case "InternalServerException": return [3, 4];
|
|
3079
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 4];
|
|
3080
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3081
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException": return [3, 6];
|
|
3082
|
+
case "ThrottlingException": return [3, 8];
|
|
3083
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 8];
|
|
3084
|
+
case "ValidationException": return [3, 10];
|
|
3085
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 10];
|
|
3086
|
+
}
|
|
3087
|
+
return [3, 12];
|
|
3088
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3089
|
+
case 3: throw _d.sent();
|
|
3090
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3091
|
+
case 5: throw _d.sent();
|
|
3092
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3093
|
+
case 7: throw _d.sent();
|
|
3094
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3095
|
+
case 9: throw _d.sent();
|
|
3096
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3097
|
+
case 11: throw _d.sent();
|
|
3098
|
+
case 12:
|
|
3099
|
+
parsedBody = parsedOutput.body;
|
|
3100
|
+
response = new __BaseException({
|
|
3101
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3102
|
+
$fault: "client",
|
|
3103
|
+
$metadata: deserializeMetadata(output),
|
|
3104
|
+
});
|
|
3105
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3106
|
+
}
|
|
3107
|
+
});
|
|
3108
|
+
}); };
|
|
2547
3109
|
export var deserializeAws_restJson1ResetUserPasswordCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2548
3110
|
var contents, data, _a, _b;
|
|
2549
3111
|
return __generator(this, function (_c) {
|
|
@@ -3354,10 +3916,29 @@ var deserializeAws_restJson1PermissionGroup = function (output, context) {
|
|
|
3354
3916
|
createTime: __expectLong(output.createTime),
|
|
3355
3917
|
description: __expectString(output.description),
|
|
3356
3918
|
lastModifiedTime: __expectLong(output.lastModifiedTime),
|
|
3919
|
+
membershipStatus: __expectString(output.membershipStatus),
|
|
3920
|
+
name: __expectString(output.name),
|
|
3921
|
+
permissionGroupId: __expectString(output.permissionGroupId),
|
|
3922
|
+
};
|
|
3923
|
+
};
|
|
3924
|
+
var deserializeAws_restJson1PermissionGroupByUser = function (output, context) {
|
|
3925
|
+
return {
|
|
3926
|
+
membershipStatus: __expectString(output.membershipStatus),
|
|
3357
3927
|
name: __expectString(output.name),
|
|
3358
3928
|
permissionGroupId: __expectString(output.permissionGroupId),
|
|
3359
3929
|
};
|
|
3360
3930
|
};
|
|
3931
|
+
var deserializeAws_restJson1PermissionGroupByUserList = function (output, context) {
|
|
3932
|
+
var retVal = (output || [])
|
|
3933
|
+
.filter(function (e) { return e != null; })
|
|
3934
|
+
.map(function (entry) {
|
|
3935
|
+
if (entry === null) {
|
|
3936
|
+
return null;
|
|
3937
|
+
}
|
|
3938
|
+
return deserializeAws_restJson1PermissionGroupByUser(entry, context);
|
|
3939
|
+
});
|
|
3940
|
+
return retVal;
|
|
3941
|
+
};
|
|
3361
3942
|
var deserializeAws_restJson1PermissionGroupList = function (output, context) {
|
|
3362
3943
|
var retVal = (output || [])
|
|
3363
3944
|
.filter(function (e) { return e != null; })
|
|
@@ -3434,6 +4015,30 @@ var deserializeAws_restJson1User = function (output, context) {
|
|
|
3434
4015
|
userId: __expectString(output.userId),
|
|
3435
4016
|
};
|
|
3436
4017
|
};
|
|
4018
|
+
var deserializeAws_restJson1UserByPermissionGroup = function (output, context) {
|
|
4019
|
+
return {
|
|
4020
|
+
apiAccess: __expectString(output.apiAccess),
|
|
4021
|
+
apiAccessPrincipalArn: __expectString(output.apiAccessPrincipalArn),
|
|
4022
|
+
emailAddress: __expectString(output.emailAddress),
|
|
4023
|
+
firstName: __expectString(output.firstName),
|
|
4024
|
+
lastName: __expectString(output.lastName),
|
|
4025
|
+
membershipStatus: __expectString(output.membershipStatus),
|
|
4026
|
+
status: __expectString(output.status),
|
|
4027
|
+
type: __expectString(output.type),
|
|
4028
|
+
userId: __expectString(output.userId),
|
|
4029
|
+
};
|
|
4030
|
+
};
|
|
4031
|
+
var deserializeAws_restJson1UserByPermissionGroupList = function (output, context) {
|
|
4032
|
+
var retVal = (output || [])
|
|
4033
|
+
.filter(function (e) { return e != null; })
|
|
4034
|
+
.map(function (entry) {
|
|
4035
|
+
if (entry === null) {
|
|
4036
|
+
return null;
|
|
4037
|
+
}
|
|
4038
|
+
return deserializeAws_restJson1UserByPermissionGroup(entry, context);
|
|
4039
|
+
});
|
|
4040
|
+
return retVal;
|
|
4041
|
+
};
|
|
3437
4042
|
var deserializeAws_restJson1UserList = function (output, context) {
|
|
3438
4043
|
var retVal = (output || [])
|
|
3439
4044
|
.filter(function (e) { return e != null; })
|