@aws-sdk/client-identitystore 3.160.0 → 3.163.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 +9 -18
- package/dist-cjs/Identitystore.js +225 -0
- package/dist-cjs/commands/CreateGroupCommand.js +36 -0
- package/dist-cjs/commands/CreateGroupMembershipCommand.js +36 -0
- package/dist-cjs/commands/CreateUserCommand.js +36 -0
- package/dist-cjs/commands/DeleteGroupCommand.js +36 -0
- package/dist-cjs/commands/DeleteGroupMembershipCommand.js +36 -0
- package/dist-cjs/commands/DeleteUserCommand.js +36 -0
- package/dist-cjs/commands/DescribeGroupMembershipCommand.js +36 -0
- package/dist-cjs/commands/GetGroupIdCommand.js +36 -0
- package/dist-cjs/commands/GetGroupMembershipIdCommand.js +36 -0
- package/dist-cjs/commands/GetUserIdCommand.js +36 -0
- package/dist-cjs/commands/IsMemberInGroupsCommand.js +36 -0
- package/dist-cjs/commands/ListGroupMembershipsCommand.js +36 -0
- package/dist-cjs/commands/ListGroupMembershipsForMemberCommand.js +36 -0
- package/dist-cjs/commands/UpdateGroupCommand.js +36 -0
- package/dist-cjs/commands/UpdateUserCommand.js +36 -0
- package/dist-cjs/commands/index.js +15 -0
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +360 -35
- package/dist-cjs/pagination/ListGroupMembershipsForMemberPaginator.js +36 -0
- package/dist-cjs/pagination/ListGroupMembershipsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_json1_1.js +1475 -93
- package/dist-es/Identitystore.js +225 -0
- package/dist-es/commands/CreateGroupCommand.js +39 -0
- package/dist-es/commands/CreateGroupMembershipCommand.js +39 -0
- package/dist-es/commands/CreateUserCommand.js +39 -0
- package/dist-es/commands/DeleteGroupCommand.js +39 -0
- package/dist-es/commands/DeleteGroupMembershipCommand.js +39 -0
- package/dist-es/commands/DeleteUserCommand.js +39 -0
- package/dist-es/commands/DescribeGroupMembershipCommand.js +39 -0
- package/dist-es/commands/GetGroupIdCommand.js +39 -0
- package/dist-es/commands/GetGroupMembershipIdCommand.js +39 -0
- package/dist-es/commands/GetUserIdCommand.js +39 -0
- package/dist-es/commands/IsMemberInGroupsCommand.js +39 -0
- package/dist-es/commands/ListGroupMembershipsCommand.js +39 -0
- package/dist-es/commands/ListGroupMembershipsForMemberCommand.js +39 -0
- package/dist-es/commands/UpdateGroupCommand.js +39 -0
- package/dist-es/commands/UpdateUserCommand.js +39 -0
- package/dist-es/commands/index.js +15 -0
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +156 -34
- package/dist-es/pagination/ListGroupMembershipsForMemberPaginator.js +75 -0
- package/dist-es/pagination/ListGroupMembershipsPaginator.js +75 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_json1_1.js +1675 -50
- package/dist-types/Identitystore.d.ts +117 -23
- package/dist-types/IdentitystoreClient.d.ts +19 -13
- package/dist-types/commands/CreateGroupCommand.d.ts +35 -0
- package/dist-types/commands/CreateGroupMembershipCommand.d.ts +35 -0
- package/dist-types/commands/CreateUserCommand.d.ts +35 -0
- package/dist-types/commands/DeleteGroupCommand.d.ts +35 -0
- package/dist-types/commands/DeleteGroupMembershipCommand.d.ts +35 -0
- package/dist-types/commands/DeleteUserCommand.d.ts +35 -0
- package/dist-types/commands/DescribeGroupCommand.d.ts +1 -2
- package/dist-types/commands/DescribeGroupMembershipCommand.d.ts +35 -0
- package/dist-types/commands/DescribeUserCommand.d.ts +1 -2
- package/dist-types/commands/GetGroupIdCommand.d.ts +35 -0
- package/dist-types/commands/GetGroupMembershipIdCommand.d.ts +35 -0
- package/dist-types/commands/GetUserIdCommand.d.ts +35 -0
- package/dist-types/commands/IsMemberInGroupsCommand.d.ts +35 -0
- package/dist-types/commands/ListGroupMembershipsCommand.d.ts +35 -0
- package/dist-types/commands/ListGroupMembershipsForMemberCommand.d.ts +35 -0
- package/dist-types/commands/ListGroupsCommand.d.ts +4 -4
- package/dist-types/commands/ListUsersCommand.d.ts +4 -4
- package/dist-types/commands/UpdateGroupCommand.d.ts +35 -0
- package/dist-types/commands/UpdateUserCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +15 -0
- package/dist-types/models/models_0.d.ts +1097 -127
- package/dist-types/pagination/ListGroupMembershipsForMemberPaginator.d.ts +4 -0
- package/dist-types/pagination/ListGroupMembershipsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +45 -0
- package/dist-types/ts3.4/Identitystore.d.ts +75 -0
- package/dist-types/ts3.4/IdentitystoreClient.d.ts +17 -2
- package/dist-types/ts3.4/commands/CreateGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateGroupMembershipCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateUserCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteGroupMembershipCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteUserCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeGroupMembershipCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetGroupIdCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetGroupMembershipIdCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetUserIdCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/IsMemberInGroupsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListGroupMembershipsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListGroupMembershipsForMemberCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateUserCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +15 -0
- package/dist-types/ts3.4/models/models_0.d.ts +565 -29
- package/dist-types/ts3.4/pagination/ListGroupMembershipsForMemberPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListGroupMembershipsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +45 -0
- package/package.json +26 -26
|
@@ -1,8 +1,74 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectString as __expectString, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectString as __expectString, expectUnion as __expectUnion, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { IdentitystoreServiceException as __BaseException } from "../models/IdentitystoreServiceException";
|
|
5
|
-
import { AccessDeniedException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
|
+
import { AccessDeniedException, AlternateIdentifier, ConflictException, InternalServerException, MemberId, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
+
export var serializeAws_json1_1CreateGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
|
+
var headers, body;
|
|
8
|
+
return __generator(this, function (_a) {
|
|
9
|
+
headers = {
|
|
10
|
+
"content-type": "application/x-amz-json-1.1",
|
|
11
|
+
"x-amz-target": "AWSIdentityStore.CreateGroup",
|
|
12
|
+
};
|
|
13
|
+
body = JSON.stringify(serializeAws_json1_1CreateGroupRequest(input, context));
|
|
14
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
15
|
+
});
|
|
16
|
+
}); };
|
|
17
|
+
export var serializeAws_json1_1CreateGroupMembershipCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
18
|
+
var headers, body;
|
|
19
|
+
return __generator(this, function (_a) {
|
|
20
|
+
headers = {
|
|
21
|
+
"content-type": "application/x-amz-json-1.1",
|
|
22
|
+
"x-amz-target": "AWSIdentityStore.CreateGroupMembership",
|
|
23
|
+
};
|
|
24
|
+
body = JSON.stringify(serializeAws_json1_1CreateGroupMembershipRequest(input, context));
|
|
25
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
26
|
+
});
|
|
27
|
+
}); };
|
|
28
|
+
export var serializeAws_json1_1CreateUserCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
29
|
+
var headers, body;
|
|
30
|
+
return __generator(this, function (_a) {
|
|
31
|
+
headers = {
|
|
32
|
+
"content-type": "application/x-amz-json-1.1",
|
|
33
|
+
"x-amz-target": "AWSIdentityStore.CreateUser",
|
|
34
|
+
};
|
|
35
|
+
body = JSON.stringify(serializeAws_json1_1CreateUserRequest(input, context));
|
|
36
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
37
|
+
});
|
|
38
|
+
}); };
|
|
39
|
+
export var serializeAws_json1_1DeleteGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
40
|
+
var headers, body;
|
|
41
|
+
return __generator(this, function (_a) {
|
|
42
|
+
headers = {
|
|
43
|
+
"content-type": "application/x-amz-json-1.1",
|
|
44
|
+
"x-amz-target": "AWSIdentityStore.DeleteGroup",
|
|
45
|
+
};
|
|
46
|
+
body = JSON.stringify(serializeAws_json1_1DeleteGroupRequest(input, context));
|
|
47
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
48
|
+
});
|
|
49
|
+
}); };
|
|
50
|
+
export var serializeAws_json1_1DeleteGroupMembershipCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
51
|
+
var headers, body;
|
|
52
|
+
return __generator(this, function (_a) {
|
|
53
|
+
headers = {
|
|
54
|
+
"content-type": "application/x-amz-json-1.1",
|
|
55
|
+
"x-amz-target": "AWSIdentityStore.DeleteGroupMembership",
|
|
56
|
+
};
|
|
57
|
+
body = JSON.stringify(serializeAws_json1_1DeleteGroupMembershipRequest(input, context));
|
|
58
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
59
|
+
});
|
|
60
|
+
}); };
|
|
61
|
+
export var serializeAws_json1_1DeleteUserCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62
|
+
var headers, body;
|
|
63
|
+
return __generator(this, function (_a) {
|
|
64
|
+
headers = {
|
|
65
|
+
"content-type": "application/x-amz-json-1.1",
|
|
66
|
+
"x-amz-target": "AWSIdentityStore.DeleteUser",
|
|
67
|
+
};
|
|
68
|
+
body = JSON.stringify(serializeAws_json1_1DeleteUserRequest(input, context));
|
|
69
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
70
|
+
});
|
|
71
|
+
}); };
|
|
6
72
|
export var serializeAws_json1_1DescribeGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
73
|
var headers, body;
|
|
8
74
|
return __generator(this, function (_a) {
|
|
@@ -14,6 +80,17 @@ export var serializeAws_json1_1DescribeGroupCommand = function (input, context)
|
|
|
14
80
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
15
81
|
});
|
|
16
82
|
}); };
|
|
83
|
+
export var serializeAws_json1_1DescribeGroupMembershipCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
84
|
+
var headers, body;
|
|
85
|
+
return __generator(this, function (_a) {
|
|
86
|
+
headers = {
|
|
87
|
+
"content-type": "application/x-amz-json-1.1",
|
|
88
|
+
"x-amz-target": "AWSIdentityStore.DescribeGroupMembership",
|
|
89
|
+
};
|
|
90
|
+
body = JSON.stringify(serializeAws_json1_1DescribeGroupMembershipRequest(input, context));
|
|
91
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
92
|
+
});
|
|
93
|
+
}); };
|
|
17
94
|
export var serializeAws_json1_1DescribeUserCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
18
95
|
var headers, body;
|
|
19
96
|
return __generator(this, function (_a) {
|
|
@@ -25,6 +102,72 @@ export var serializeAws_json1_1DescribeUserCommand = function (input, context) {
|
|
|
25
102
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
26
103
|
});
|
|
27
104
|
}); };
|
|
105
|
+
export var serializeAws_json1_1GetGroupIdCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
106
|
+
var headers, body;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
headers = {
|
|
109
|
+
"content-type": "application/x-amz-json-1.1",
|
|
110
|
+
"x-amz-target": "AWSIdentityStore.GetGroupId",
|
|
111
|
+
};
|
|
112
|
+
body = JSON.stringify(serializeAws_json1_1GetGroupIdRequest(input, context));
|
|
113
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
114
|
+
});
|
|
115
|
+
}); };
|
|
116
|
+
export var serializeAws_json1_1GetGroupMembershipIdCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
117
|
+
var headers, body;
|
|
118
|
+
return __generator(this, function (_a) {
|
|
119
|
+
headers = {
|
|
120
|
+
"content-type": "application/x-amz-json-1.1",
|
|
121
|
+
"x-amz-target": "AWSIdentityStore.GetGroupMembershipId",
|
|
122
|
+
};
|
|
123
|
+
body = JSON.stringify(serializeAws_json1_1GetGroupMembershipIdRequest(input, context));
|
|
124
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
125
|
+
});
|
|
126
|
+
}); };
|
|
127
|
+
export var serializeAws_json1_1GetUserIdCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
128
|
+
var headers, body;
|
|
129
|
+
return __generator(this, function (_a) {
|
|
130
|
+
headers = {
|
|
131
|
+
"content-type": "application/x-amz-json-1.1",
|
|
132
|
+
"x-amz-target": "AWSIdentityStore.GetUserId",
|
|
133
|
+
};
|
|
134
|
+
body = JSON.stringify(serializeAws_json1_1GetUserIdRequest(input, context));
|
|
135
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
136
|
+
});
|
|
137
|
+
}); };
|
|
138
|
+
export var serializeAws_json1_1IsMemberInGroupsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
139
|
+
var headers, body;
|
|
140
|
+
return __generator(this, function (_a) {
|
|
141
|
+
headers = {
|
|
142
|
+
"content-type": "application/x-amz-json-1.1",
|
|
143
|
+
"x-amz-target": "AWSIdentityStore.IsMemberInGroups",
|
|
144
|
+
};
|
|
145
|
+
body = JSON.stringify(serializeAws_json1_1IsMemberInGroupsRequest(input, context));
|
|
146
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
147
|
+
});
|
|
148
|
+
}); };
|
|
149
|
+
export var serializeAws_json1_1ListGroupMembershipsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
150
|
+
var headers, body;
|
|
151
|
+
return __generator(this, function (_a) {
|
|
152
|
+
headers = {
|
|
153
|
+
"content-type": "application/x-amz-json-1.1",
|
|
154
|
+
"x-amz-target": "AWSIdentityStore.ListGroupMemberships",
|
|
155
|
+
};
|
|
156
|
+
body = JSON.stringify(serializeAws_json1_1ListGroupMembershipsRequest(input, context));
|
|
157
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
158
|
+
});
|
|
159
|
+
}); };
|
|
160
|
+
export var serializeAws_json1_1ListGroupMembershipsForMemberCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
161
|
+
var headers, body;
|
|
162
|
+
return __generator(this, function (_a) {
|
|
163
|
+
headers = {
|
|
164
|
+
"content-type": "application/x-amz-json-1.1",
|
|
165
|
+
"x-amz-target": "AWSIdentityStore.ListGroupMembershipsForMember",
|
|
166
|
+
};
|
|
167
|
+
body = JSON.stringify(serializeAws_json1_1ListGroupMembershipsForMemberRequest(input, context));
|
|
168
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
169
|
+
});
|
|
170
|
+
}); };
|
|
28
171
|
export var serializeAws_json1_1ListGroupsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
29
172
|
var headers, body;
|
|
30
173
|
return __generator(this, function (_a) {
|
|
@@ -47,25 +190,1088 @@ export var serializeAws_json1_1ListUsersCommand = function (input, context) { re
|
|
|
47
190
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
48
191
|
});
|
|
49
192
|
}); };
|
|
50
|
-
export var
|
|
193
|
+
export var serializeAws_json1_1UpdateGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
194
|
+
var headers, body;
|
|
195
|
+
return __generator(this, function (_a) {
|
|
196
|
+
headers = {
|
|
197
|
+
"content-type": "application/x-amz-json-1.1",
|
|
198
|
+
"x-amz-target": "AWSIdentityStore.UpdateGroup",
|
|
199
|
+
};
|
|
200
|
+
body = JSON.stringify(serializeAws_json1_1UpdateGroupRequest(input, context));
|
|
201
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
202
|
+
});
|
|
203
|
+
}); };
|
|
204
|
+
export var serializeAws_json1_1UpdateUserCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
205
|
+
var headers, body;
|
|
206
|
+
return __generator(this, function (_a) {
|
|
207
|
+
headers = {
|
|
208
|
+
"content-type": "application/x-amz-json-1.1",
|
|
209
|
+
"x-amz-target": "AWSIdentityStore.UpdateUser",
|
|
210
|
+
};
|
|
211
|
+
body = JSON.stringify(serializeAws_json1_1UpdateUserRequest(input, context));
|
|
212
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
213
|
+
});
|
|
214
|
+
}); };
|
|
215
|
+
export var deserializeAws_json1_1CreateGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
216
|
+
var data, contents, response;
|
|
217
|
+
return __generator(this, function (_a) {
|
|
218
|
+
switch (_a.label) {
|
|
219
|
+
case 0:
|
|
220
|
+
if (output.statusCode >= 300) {
|
|
221
|
+
return [2, deserializeAws_json1_1CreateGroupCommandError(output, context)];
|
|
222
|
+
}
|
|
223
|
+
return [4, parseBody(output.body, context)];
|
|
224
|
+
case 1:
|
|
225
|
+
data = _a.sent();
|
|
226
|
+
contents = {};
|
|
227
|
+
contents = deserializeAws_json1_1CreateGroupResponse(data, context);
|
|
228
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
229
|
+
return [2, Promise.resolve(response)];
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
}); };
|
|
233
|
+
var deserializeAws_json1_1CreateGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
234
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
235
|
+
var _c;
|
|
236
|
+
return __generator(this, function (_d) {
|
|
237
|
+
switch (_d.label) {
|
|
238
|
+
case 0:
|
|
239
|
+
_a = [__assign({}, output)];
|
|
240
|
+
_c = {};
|
|
241
|
+
return [4, parseBody(output.body, context)];
|
|
242
|
+
case 1:
|
|
243
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
244
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
245
|
+
_b = errorCode;
|
|
246
|
+
switch (_b) {
|
|
247
|
+
case "AccessDeniedException": return [3, 2];
|
|
248
|
+
case "com.amazonaws.identitystore#AccessDeniedException": return [3, 2];
|
|
249
|
+
case "ConflictException": return [3, 4];
|
|
250
|
+
case "com.amazonaws.identitystore#ConflictException": return [3, 4];
|
|
251
|
+
case "InternalServerException": return [3, 6];
|
|
252
|
+
case "com.amazonaws.identitystore#InternalServerException": return [3, 6];
|
|
253
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
254
|
+
case "com.amazonaws.identitystore#ResourceNotFoundException": return [3, 8];
|
|
255
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
256
|
+
case "com.amazonaws.identitystore#ServiceQuotaExceededException": return [3, 10];
|
|
257
|
+
case "ThrottlingException": return [3, 12];
|
|
258
|
+
case "com.amazonaws.identitystore#ThrottlingException": return [3, 12];
|
|
259
|
+
case "ValidationException": return [3, 14];
|
|
260
|
+
case "com.amazonaws.identitystore#ValidationException": return [3, 14];
|
|
261
|
+
}
|
|
262
|
+
return [3, 16];
|
|
263
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
264
|
+
case 3: throw _d.sent();
|
|
265
|
+
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
266
|
+
case 5: throw _d.sent();
|
|
267
|
+
case 6: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
268
|
+
case 7: throw _d.sent();
|
|
269
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
270
|
+
case 9: throw _d.sent();
|
|
271
|
+
case 10: return [4, deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
272
|
+
case 11: throw _d.sent();
|
|
273
|
+
case 12: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
274
|
+
case 13: throw _d.sent();
|
|
275
|
+
case 14: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
276
|
+
case 15: throw _d.sent();
|
|
277
|
+
case 16:
|
|
278
|
+
parsedBody = parsedOutput.body;
|
|
279
|
+
throwDefaultError({
|
|
280
|
+
output: output,
|
|
281
|
+
parsedBody: parsedBody,
|
|
282
|
+
exceptionCtor: __BaseException,
|
|
283
|
+
errorCode: errorCode,
|
|
284
|
+
});
|
|
285
|
+
_d.label = 17;
|
|
286
|
+
case 17: return [2];
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
}); };
|
|
290
|
+
export var deserializeAws_json1_1CreateGroupMembershipCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
291
|
+
var data, contents, response;
|
|
292
|
+
return __generator(this, function (_a) {
|
|
293
|
+
switch (_a.label) {
|
|
294
|
+
case 0:
|
|
295
|
+
if (output.statusCode >= 300) {
|
|
296
|
+
return [2, deserializeAws_json1_1CreateGroupMembershipCommandError(output, context)];
|
|
297
|
+
}
|
|
298
|
+
return [4, parseBody(output.body, context)];
|
|
299
|
+
case 1:
|
|
300
|
+
data = _a.sent();
|
|
301
|
+
contents = {};
|
|
302
|
+
contents = deserializeAws_json1_1CreateGroupMembershipResponse(data, context);
|
|
303
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
304
|
+
return [2, Promise.resolve(response)];
|
|
305
|
+
}
|
|
306
|
+
});
|
|
307
|
+
}); };
|
|
308
|
+
var deserializeAws_json1_1CreateGroupMembershipCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
309
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
310
|
+
var _c;
|
|
311
|
+
return __generator(this, function (_d) {
|
|
312
|
+
switch (_d.label) {
|
|
313
|
+
case 0:
|
|
314
|
+
_a = [__assign({}, output)];
|
|
315
|
+
_c = {};
|
|
316
|
+
return [4, parseBody(output.body, context)];
|
|
317
|
+
case 1:
|
|
318
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
319
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
320
|
+
_b = errorCode;
|
|
321
|
+
switch (_b) {
|
|
322
|
+
case "AccessDeniedException": return [3, 2];
|
|
323
|
+
case "com.amazonaws.identitystore#AccessDeniedException": return [3, 2];
|
|
324
|
+
case "ConflictException": return [3, 4];
|
|
325
|
+
case "com.amazonaws.identitystore#ConflictException": return [3, 4];
|
|
326
|
+
case "InternalServerException": return [3, 6];
|
|
327
|
+
case "com.amazonaws.identitystore#InternalServerException": return [3, 6];
|
|
328
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
329
|
+
case "com.amazonaws.identitystore#ResourceNotFoundException": return [3, 8];
|
|
330
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
331
|
+
case "com.amazonaws.identitystore#ServiceQuotaExceededException": return [3, 10];
|
|
332
|
+
case "ThrottlingException": return [3, 12];
|
|
333
|
+
case "com.amazonaws.identitystore#ThrottlingException": return [3, 12];
|
|
334
|
+
case "ValidationException": return [3, 14];
|
|
335
|
+
case "com.amazonaws.identitystore#ValidationException": return [3, 14];
|
|
336
|
+
}
|
|
337
|
+
return [3, 16];
|
|
338
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
339
|
+
case 3: throw _d.sent();
|
|
340
|
+
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
341
|
+
case 5: throw _d.sent();
|
|
342
|
+
case 6: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
343
|
+
case 7: throw _d.sent();
|
|
344
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
345
|
+
case 9: throw _d.sent();
|
|
346
|
+
case 10: return [4, deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
347
|
+
case 11: throw _d.sent();
|
|
348
|
+
case 12: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
349
|
+
case 13: throw _d.sent();
|
|
350
|
+
case 14: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
351
|
+
case 15: throw _d.sent();
|
|
352
|
+
case 16:
|
|
353
|
+
parsedBody = parsedOutput.body;
|
|
354
|
+
throwDefaultError({
|
|
355
|
+
output: output,
|
|
356
|
+
parsedBody: parsedBody,
|
|
357
|
+
exceptionCtor: __BaseException,
|
|
358
|
+
errorCode: errorCode,
|
|
359
|
+
});
|
|
360
|
+
_d.label = 17;
|
|
361
|
+
case 17: return [2];
|
|
362
|
+
}
|
|
363
|
+
});
|
|
364
|
+
}); };
|
|
365
|
+
export var deserializeAws_json1_1CreateUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
366
|
+
var data, contents, response;
|
|
367
|
+
return __generator(this, function (_a) {
|
|
368
|
+
switch (_a.label) {
|
|
369
|
+
case 0:
|
|
370
|
+
if (output.statusCode >= 300) {
|
|
371
|
+
return [2, deserializeAws_json1_1CreateUserCommandError(output, context)];
|
|
372
|
+
}
|
|
373
|
+
return [4, parseBody(output.body, context)];
|
|
374
|
+
case 1:
|
|
375
|
+
data = _a.sent();
|
|
376
|
+
contents = {};
|
|
377
|
+
contents = deserializeAws_json1_1CreateUserResponse(data, context);
|
|
378
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
379
|
+
return [2, Promise.resolve(response)];
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
|
+
}); };
|
|
383
|
+
var deserializeAws_json1_1CreateUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
384
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
385
|
+
var _c;
|
|
386
|
+
return __generator(this, function (_d) {
|
|
387
|
+
switch (_d.label) {
|
|
388
|
+
case 0:
|
|
389
|
+
_a = [__assign({}, output)];
|
|
390
|
+
_c = {};
|
|
391
|
+
return [4, parseBody(output.body, context)];
|
|
392
|
+
case 1:
|
|
393
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
394
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
395
|
+
_b = errorCode;
|
|
396
|
+
switch (_b) {
|
|
397
|
+
case "AccessDeniedException": return [3, 2];
|
|
398
|
+
case "com.amazonaws.identitystore#AccessDeniedException": return [3, 2];
|
|
399
|
+
case "ConflictException": return [3, 4];
|
|
400
|
+
case "com.amazonaws.identitystore#ConflictException": return [3, 4];
|
|
401
|
+
case "InternalServerException": return [3, 6];
|
|
402
|
+
case "com.amazonaws.identitystore#InternalServerException": return [3, 6];
|
|
403
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
404
|
+
case "com.amazonaws.identitystore#ResourceNotFoundException": return [3, 8];
|
|
405
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
406
|
+
case "com.amazonaws.identitystore#ServiceQuotaExceededException": return [3, 10];
|
|
407
|
+
case "ThrottlingException": return [3, 12];
|
|
408
|
+
case "com.amazonaws.identitystore#ThrottlingException": return [3, 12];
|
|
409
|
+
case "ValidationException": return [3, 14];
|
|
410
|
+
case "com.amazonaws.identitystore#ValidationException": return [3, 14];
|
|
411
|
+
}
|
|
412
|
+
return [3, 16];
|
|
413
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
414
|
+
case 3: throw _d.sent();
|
|
415
|
+
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
416
|
+
case 5: throw _d.sent();
|
|
417
|
+
case 6: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
418
|
+
case 7: throw _d.sent();
|
|
419
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
420
|
+
case 9: throw _d.sent();
|
|
421
|
+
case 10: return [4, deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
422
|
+
case 11: throw _d.sent();
|
|
423
|
+
case 12: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
424
|
+
case 13: throw _d.sent();
|
|
425
|
+
case 14: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
426
|
+
case 15: throw _d.sent();
|
|
427
|
+
case 16:
|
|
428
|
+
parsedBody = parsedOutput.body;
|
|
429
|
+
throwDefaultError({
|
|
430
|
+
output: output,
|
|
431
|
+
parsedBody: parsedBody,
|
|
432
|
+
exceptionCtor: __BaseException,
|
|
433
|
+
errorCode: errorCode,
|
|
434
|
+
});
|
|
435
|
+
_d.label = 17;
|
|
436
|
+
case 17: return [2];
|
|
437
|
+
}
|
|
438
|
+
});
|
|
439
|
+
}); };
|
|
440
|
+
export var deserializeAws_json1_1DeleteGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
441
|
+
var data, contents, response;
|
|
442
|
+
return __generator(this, function (_a) {
|
|
443
|
+
switch (_a.label) {
|
|
444
|
+
case 0:
|
|
445
|
+
if (output.statusCode >= 300) {
|
|
446
|
+
return [2, deserializeAws_json1_1DeleteGroupCommandError(output, context)];
|
|
447
|
+
}
|
|
448
|
+
return [4, parseBody(output.body, context)];
|
|
449
|
+
case 1:
|
|
450
|
+
data = _a.sent();
|
|
451
|
+
contents = {};
|
|
452
|
+
contents = deserializeAws_json1_1DeleteGroupResponse(data, context);
|
|
453
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
454
|
+
return [2, Promise.resolve(response)];
|
|
455
|
+
}
|
|
456
|
+
});
|
|
457
|
+
}); };
|
|
458
|
+
var deserializeAws_json1_1DeleteGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
459
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
460
|
+
var _c;
|
|
461
|
+
return __generator(this, function (_d) {
|
|
462
|
+
switch (_d.label) {
|
|
463
|
+
case 0:
|
|
464
|
+
_a = [__assign({}, output)];
|
|
465
|
+
_c = {};
|
|
466
|
+
return [4, parseBody(output.body, context)];
|
|
467
|
+
case 1:
|
|
468
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
469
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
470
|
+
_b = errorCode;
|
|
471
|
+
switch (_b) {
|
|
472
|
+
case "AccessDeniedException": return [3, 2];
|
|
473
|
+
case "com.amazonaws.identitystore#AccessDeniedException": return [3, 2];
|
|
474
|
+
case "ConflictException": return [3, 4];
|
|
475
|
+
case "com.amazonaws.identitystore#ConflictException": return [3, 4];
|
|
476
|
+
case "InternalServerException": return [3, 6];
|
|
477
|
+
case "com.amazonaws.identitystore#InternalServerException": return [3, 6];
|
|
478
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
479
|
+
case "com.amazonaws.identitystore#ResourceNotFoundException": return [3, 8];
|
|
480
|
+
case "ThrottlingException": return [3, 10];
|
|
481
|
+
case "com.amazonaws.identitystore#ThrottlingException": return [3, 10];
|
|
482
|
+
case "ValidationException": return [3, 12];
|
|
483
|
+
case "com.amazonaws.identitystore#ValidationException": return [3, 12];
|
|
484
|
+
}
|
|
485
|
+
return [3, 14];
|
|
486
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
487
|
+
case 3: throw _d.sent();
|
|
488
|
+
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
489
|
+
case 5: throw _d.sent();
|
|
490
|
+
case 6: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
491
|
+
case 7: throw _d.sent();
|
|
492
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
493
|
+
case 9: throw _d.sent();
|
|
494
|
+
case 10: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
495
|
+
case 11: throw _d.sent();
|
|
496
|
+
case 12: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
497
|
+
case 13: throw _d.sent();
|
|
498
|
+
case 14:
|
|
499
|
+
parsedBody = parsedOutput.body;
|
|
500
|
+
throwDefaultError({
|
|
501
|
+
output: output,
|
|
502
|
+
parsedBody: parsedBody,
|
|
503
|
+
exceptionCtor: __BaseException,
|
|
504
|
+
errorCode: errorCode,
|
|
505
|
+
});
|
|
506
|
+
_d.label = 15;
|
|
507
|
+
case 15: return [2];
|
|
508
|
+
}
|
|
509
|
+
});
|
|
510
|
+
}); };
|
|
511
|
+
export var deserializeAws_json1_1DeleteGroupMembershipCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
512
|
+
var data, contents, response;
|
|
513
|
+
return __generator(this, function (_a) {
|
|
514
|
+
switch (_a.label) {
|
|
515
|
+
case 0:
|
|
516
|
+
if (output.statusCode >= 300) {
|
|
517
|
+
return [2, deserializeAws_json1_1DeleteGroupMembershipCommandError(output, context)];
|
|
518
|
+
}
|
|
519
|
+
return [4, parseBody(output.body, context)];
|
|
520
|
+
case 1:
|
|
521
|
+
data = _a.sent();
|
|
522
|
+
contents = {};
|
|
523
|
+
contents = deserializeAws_json1_1DeleteGroupMembershipResponse(data, context);
|
|
524
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
525
|
+
return [2, Promise.resolve(response)];
|
|
526
|
+
}
|
|
527
|
+
});
|
|
528
|
+
}); };
|
|
529
|
+
var deserializeAws_json1_1DeleteGroupMembershipCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
530
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
531
|
+
var _c;
|
|
532
|
+
return __generator(this, function (_d) {
|
|
533
|
+
switch (_d.label) {
|
|
534
|
+
case 0:
|
|
535
|
+
_a = [__assign({}, output)];
|
|
536
|
+
_c = {};
|
|
537
|
+
return [4, parseBody(output.body, context)];
|
|
538
|
+
case 1:
|
|
539
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
540
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
541
|
+
_b = errorCode;
|
|
542
|
+
switch (_b) {
|
|
543
|
+
case "AccessDeniedException": return [3, 2];
|
|
544
|
+
case "com.amazonaws.identitystore#AccessDeniedException": return [3, 2];
|
|
545
|
+
case "ConflictException": return [3, 4];
|
|
546
|
+
case "com.amazonaws.identitystore#ConflictException": return [3, 4];
|
|
547
|
+
case "InternalServerException": return [3, 6];
|
|
548
|
+
case "com.amazonaws.identitystore#InternalServerException": return [3, 6];
|
|
549
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
550
|
+
case "com.amazonaws.identitystore#ResourceNotFoundException": return [3, 8];
|
|
551
|
+
case "ThrottlingException": return [3, 10];
|
|
552
|
+
case "com.amazonaws.identitystore#ThrottlingException": return [3, 10];
|
|
553
|
+
case "ValidationException": return [3, 12];
|
|
554
|
+
case "com.amazonaws.identitystore#ValidationException": return [3, 12];
|
|
555
|
+
}
|
|
556
|
+
return [3, 14];
|
|
557
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
558
|
+
case 3: throw _d.sent();
|
|
559
|
+
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
560
|
+
case 5: throw _d.sent();
|
|
561
|
+
case 6: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
562
|
+
case 7: throw _d.sent();
|
|
563
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
564
|
+
case 9: throw _d.sent();
|
|
565
|
+
case 10: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
566
|
+
case 11: throw _d.sent();
|
|
567
|
+
case 12: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
568
|
+
case 13: throw _d.sent();
|
|
569
|
+
case 14:
|
|
570
|
+
parsedBody = parsedOutput.body;
|
|
571
|
+
throwDefaultError({
|
|
572
|
+
output: output,
|
|
573
|
+
parsedBody: parsedBody,
|
|
574
|
+
exceptionCtor: __BaseException,
|
|
575
|
+
errorCode: errorCode,
|
|
576
|
+
});
|
|
577
|
+
_d.label = 15;
|
|
578
|
+
case 15: return [2];
|
|
579
|
+
}
|
|
580
|
+
});
|
|
581
|
+
}); };
|
|
582
|
+
export var deserializeAws_json1_1DeleteUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
583
|
+
var data, contents, response;
|
|
584
|
+
return __generator(this, function (_a) {
|
|
585
|
+
switch (_a.label) {
|
|
586
|
+
case 0:
|
|
587
|
+
if (output.statusCode >= 300) {
|
|
588
|
+
return [2, deserializeAws_json1_1DeleteUserCommandError(output, context)];
|
|
589
|
+
}
|
|
590
|
+
return [4, parseBody(output.body, context)];
|
|
591
|
+
case 1:
|
|
592
|
+
data = _a.sent();
|
|
593
|
+
contents = {};
|
|
594
|
+
contents = deserializeAws_json1_1DeleteUserResponse(data, context);
|
|
595
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
596
|
+
return [2, Promise.resolve(response)];
|
|
597
|
+
}
|
|
598
|
+
});
|
|
599
|
+
}); };
|
|
600
|
+
var deserializeAws_json1_1DeleteUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
601
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
602
|
+
var _c;
|
|
603
|
+
return __generator(this, function (_d) {
|
|
604
|
+
switch (_d.label) {
|
|
605
|
+
case 0:
|
|
606
|
+
_a = [__assign({}, output)];
|
|
607
|
+
_c = {};
|
|
608
|
+
return [4, parseBody(output.body, context)];
|
|
609
|
+
case 1:
|
|
610
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
611
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
612
|
+
_b = errorCode;
|
|
613
|
+
switch (_b) {
|
|
614
|
+
case "AccessDeniedException": return [3, 2];
|
|
615
|
+
case "com.amazonaws.identitystore#AccessDeniedException": return [3, 2];
|
|
616
|
+
case "ConflictException": return [3, 4];
|
|
617
|
+
case "com.amazonaws.identitystore#ConflictException": return [3, 4];
|
|
618
|
+
case "InternalServerException": return [3, 6];
|
|
619
|
+
case "com.amazonaws.identitystore#InternalServerException": return [3, 6];
|
|
620
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
621
|
+
case "com.amazonaws.identitystore#ResourceNotFoundException": return [3, 8];
|
|
622
|
+
case "ThrottlingException": return [3, 10];
|
|
623
|
+
case "com.amazonaws.identitystore#ThrottlingException": return [3, 10];
|
|
624
|
+
case "ValidationException": return [3, 12];
|
|
625
|
+
case "com.amazonaws.identitystore#ValidationException": return [3, 12];
|
|
626
|
+
}
|
|
627
|
+
return [3, 14];
|
|
628
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
629
|
+
case 3: throw _d.sent();
|
|
630
|
+
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
631
|
+
case 5: throw _d.sent();
|
|
632
|
+
case 6: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
633
|
+
case 7: throw _d.sent();
|
|
634
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
635
|
+
case 9: throw _d.sent();
|
|
636
|
+
case 10: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
637
|
+
case 11: throw _d.sent();
|
|
638
|
+
case 12: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
639
|
+
case 13: throw _d.sent();
|
|
640
|
+
case 14:
|
|
641
|
+
parsedBody = parsedOutput.body;
|
|
642
|
+
throwDefaultError({
|
|
643
|
+
output: output,
|
|
644
|
+
parsedBody: parsedBody,
|
|
645
|
+
exceptionCtor: __BaseException,
|
|
646
|
+
errorCode: errorCode,
|
|
647
|
+
});
|
|
648
|
+
_d.label = 15;
|
|
649
|
+
case 15: return [2];
|
|
650
|
+
}
|
|
651
|
+
});
|
|
652
|
+
}); };
|
|
653
|
+
export var deserializeAws_json1_1DescribeGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
654
|
+
var data, contents, response;
|
|
655
|
+
return __generator(this, function (_a) {
|
|
656
|
+
switch (_a.label) {
|
|
657
|
+
case 0:
|
|
658
|
+
if (output.statusCode >= 300) {
|
|
659
|
+
return [2, deserializeAws_json1_1DescribeGroupCommandError(output, context)];
|
|
660
|
+
}
|
|
661
|
+
return [4, parseBody(output.body, context)];
|
|
662
|
+
case 1:
|
|
663
|
+
data = _a.sent();
|
|
664
|
+
contents = {};
|
|
665
|
+
contents = deserializeAws_json1_1DescribeGroupResponse(data, context);
|
|
666
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
667
|
+
return [2, Promise.resolve(response)];
|
|
668
|
+
}
|
|
669
|
+
});
|
|
670
|
+
}); };
|
|
671
|
+
var deserializeAws_json1_1DescribeGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
672
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
673
|
+
var _c;
|
|
674
|
+
return __generator(this, function (_d) {
|
|
675
|
+
switch (_d.label) {
|
|
676
|
+
case 0:
|
|
677
|
+
_a = [__assign({}, output)];
|
|
678
|
+
_c = {};
|
|
679
|
+
return [4, parseBody(output.body, context)];
|
|
680
|
+
case 1:
|
|
681
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
682
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
683
|
+
_b = errorCode;
|
|
684
|
+
switch (_b) {
|
|
685
|
+
case "AccessDeniedException": return [3, 2];
|
|
686
|
+
case "com.amazonaws.identitystore#AccessDeniedException": return [3, 2];
|
|
687
|
+
case "InternalServerException": return [3, 4];
|
|
688
|
+
case "com.amazonaws.identitystore#InternalServerException": return [3, 4];
|
|
689
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
690
|
+
case "com.amazonaws.identitystore#ResourceNotFoundException": return [3, 6];
|
|
691
|
+
case "ThrottlingException": return [3, 8];
|
|
692
|
+
case "com.amazonaws.identitystore#ThrottlingException": return [3, 8];
|
|
693
|
+
case "ValidationException": return [3, 10];
|
|
694
|
+
case "com.amazonaws.identitystore#ValidationException": return [3, 10];
|
|
695
|
+
}
|
|
696
|
+
return [3, 12];
|
|
697
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
698
|
+
case 3: throw _d.sent();
|
|
699
|
+
case 4: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
700
|
+
case 5: throw _d.sent();
|
|
701
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
702
|
+
case 7: throw _d.sent();
|
|
703
|
+
case 8: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
704
|
+
case 9: throw _d.sent();
|
|
705
|
+
case 10: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
706
|
+
case 11: throw _d.sent();
|
|
707
|
+
case 12:
|
|
708
|
+
parsedBody = parsedOutput.body;
|
|
709
|
+
throwDefaultError({
|
|
710
|
+
output: output,
|
|
711
|
+
parsedBody: parsedBody,
|
|
712
|
+
exceptionCtor: __BaseException,
|
|
713
|
+
errorCode: errorCode,
|
|
714
|
+
});
|
|
715
|
+
_d.label = 13;
|
|
716
|
+
case 13: return [2];
|
|
717
|
+
}
|
|
718
|
+
});
|
|
719
|
+
}); };
|
|
720
|
+
export var deserializeAws_json1_1DescribeGroupMembershipCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
721
|
+
var data, contents, response;
|
|
722
|
+
return __generator(this, function (_a) {
|
|
723
|
+
switch (_a.label) {
|
|
724
|
+
case 0:
|
|
725
|
+
if (output.statusCode >= 300) {
|
|
726
|
+
return [2, deserializeAws_json1_1DescribeGroupMembershipCommandError(output, context)];
|
|
727
|
+
}
|
|
728
|
+
return [4, parseBody(output.body, context)];
|
|
729
|
+
case 1:
|
|
730
|
+
data = _a.sent();
|
|
731
|
+
contents = {};
|
|
732
|
+
contents = deserializeAws_json1_1DescribeGroupMembershipResponse(data, context);
|
|
733
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
734
|
+
return [2, Promise.resolve(response)];
|
|
735
|
+
}
|
|
736
|
+
});
|
|
737
|
+
}); };
|
|
738
|
+
var deserializeAws_json1_1DescribeGroupMembershipCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
739
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
740
|
+
var _c;
|
|
741
|
+
return __generator(this, function (_d) {
|
|
742
|
+
switch (_d.label) {
|
|
743
|
+
case 0:
|
|
744
|
+
_a = [__assign({}, output)];
|
|
745
|
+
_c = {};
|
|
746
|
+
return [4, parseBody(output.body, context)];
|
|
747
|
+
case 1:
|
|
748
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
749
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
750
|
+
_b = errorCode;
|
|
751
|
+
switch (_b) {
|
|
752
|
+
case "AccessDeniedException": return [3, 2];
|
|
753
|
+
case "com.amazonaws.identitystore#AccessDeniedException": return [3, 2];
|
|
754
|
+
case "InternalServerException": return [3, 4];
|
|
755
|
+
case "com.amazonaws.identitystore#InternalServerException": return [3, 4];
|
|
756
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
757
|
+
case "com.amazonaws.identitystore#ResourceNotFoundException": return [3, 6];
|
|
758
|
+
case "ThrottlingException": return [3, 8];
|
|
759
|
+
case "com.amazonaws.identitystore#ThrottlingException": return [3, 8];
|
|
760
|
+
case "ValidationException": return [3, 10];
|
|
761
|
+
case "com.amazonaws.identitystore#ValidationException": return [3, 10];
|
|
762
|
+
}
|
|
763
|
+
return [3, 12];
|
|
764
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
765
|
+
case 3: throw _d.sent();
|
|
766
|
+
case 4: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
767
|
+
case 5: throw _d.sent();
|
|
768
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
769
|
+
case 7: throw _d.sent();
|
|
770
|
+
case 8: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
771
|
+
case 9: throw _d.sent();
|
|
772
|
+
case 10: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
773
|
+
case 11: throw _d.sent();
|
|
774
|
+
case 12:
|
|
775
|
+
parsedBody = parsedOutput.body;
|
|
776
|
+
throwDefaultError({
|
|
777
|
+
output: output,
|
|
778
|
+
parsedBody: parsedBody,
|
|
779
|
+
exceptionCtor: __BaseException,
|
|
780
|
+
errorCode: errorCode,
|
|
781
|
+
});
|
|
782
|
+
_d.label = 13;
|
|
783
|
+
case 13: return [2];
|
|
784
|
+
}
|
|
785
|
+
});
|
|
786
|
+
}); };
|
|
787
|
+
export var deserializeAws_json1_1DescribeUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
788
|
+
var data, contents, response;
|
|
789
|
+
return __generator(this, function (_a) {
|
|
790
|
+
switch (_a.label) {
|
|
791
|
+
case 0:
|
|
792
|
+
if (output.statusCode >= 300) {
|
|
793
|
+
return [2, deserializeAws_json1_1DescribeUserCommandError(output, context)];
|
|
794
|
+
}
|
|
795
|
+
return [4, parseBody(output.body, context)];
|
|
796
|
+
case 1:
|
|
797
|
+
data = _a.sent();
|
|
798
|
+
contents = {};
|
|
799
|
+
contents = deserializeAws_json1_1DescribeUserResponse(data, context);
|
|
800
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
801
|
+
return [2, Promise.resolve(response)];
|
|
802
|
+
}
|
|
803
|
+
});
|
|
804
|
+
}); };
|
|
805
|
+
var deserializeAws_json1_1DescribeUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
806
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
807
|
+
var _c;
|
|
808
|
+
return __generator(this, function (_d) {
|
|
809
|
+
switch (_d.label) {
|
|
810
|
+
case 0:
|
|
811
|
+
_a = [__assign({}, output)];
|
|
812
|
+
_c = {};
|
|
813
|
+
return [4, parseBody(output.body, context)];
|
|
814
|
+
case 1:
|
|
815
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
816
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
817
|
+
_b = errorCode;
|
|
818
|
+
switch (_b) {
|
|
819
|
+
case "AccessDeniedException": return [3, 2];
|
|
820
|
+
case "com.amazonaws.identitystore#AccessDeniedException": return [3, 2];
|
|
821
|
+
case "InternalServerException": return [3, 4];
|
|
822
|
+
case "com.amazonaws.identitystore#InternalServerException": return [3, 4];
|
|
823
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
824
|
+
case "com.amazonaws.identitystore#ResourceNotFoundException": return [3, 6];
|
|
825
|
+
case "ThrottlingException": return [3, 8];
|
|
826
|
+
case "com.amazonaws.identitystore#ThrottlingException": return [3, 8];
|
|
827
|
+
case "ValidationException": return [3, 10];
|
|
828
|
+
case "com.amazonaws.identitystore#ValidationException": return [3, 10];
|
|
829
|
+
}
|
|
830
|
+
return [3, 12];
|
|
831
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
832
|
+
case 3: throw _d.sent();
|
|
833
|
+
case 4: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
834
|
+
case 5: throw _d.sent();
|
|
835
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
836
|
+
case 7: throw _d.sent();
|
|
837
|
+
case 8: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
838
|
+
case 9: throw _d.sent();
|
|
839
|
+
case 10: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
840
|
+
case 11: throw _d.sent();
|
|
841
|
+
case 12:
|
|
842
|
+
parsedBody = parsedOutput.body;
|
|
843
|
+
throwDefaultError({
|
|
844
|
+
output: output,
|
|
845
|
+
parsedBody: parsedBody,
|
|
846
|
+
exceptionCtor: __BaseException,
|
|
847
|
+
errorCode: errorCode,
|
|
848
|
+
});
|
|
849
|
+
_d.label = 13;
|
|
850
|
+
case 13: return [2];
|
|
851
|
+
}
|
|
852
|
+
});
|
|
853
|
+
}); };
|
|
854
|
+
export var deserializeAws_json1_1GetGroupIdCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
855
|
+
var data, contents, response;
|
|
856
|
+
return __generator(this, function (_a) {
|
|
857
|
+
switch (_a.label) {
|
|
858
|
+
case 0:
|
|
859
|
+
if (output.statusCode >= 300) {
|
|
860
|
+
return [2, deserializeAws_json1_1GetGroupIdCommandError(output, context)];
|
|
861
|
+
}
|
|
862
|
+
return [4, parseBody(output.body, context)];
|
|
863
|
+
case 1:
|
|
864
|
+
data = _a.sent();
|
|
865
|
+
contents = {};
|
|
866
|
+
contents = deserializeAws_json1_1GetGroupIdResponse(data, context);
|
|
867
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
868
|
+
return [2, Promise.resolve(response)];
|
|
869
|
+
}
|
|
870
|
+
});
|
|
871
|
+
}); };
|
|
872
|
+
var deserializeAws_json1_1GetGroupIdCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
873
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
874
|
+
var _c;
|
|
875
|
+
return __generator(this, function (_d) {
|
|
876
|
+
switch (_d.label) {
|
|
877
|
+
case 0:
|
|
878
|
+
_a = [__assign({}, output)];
|
|
879
|
+
_c = {};
|
|
880
|
+
return [4, parseBody(output.body, context)];
|
|
881
|
+
case 1:
|
|
882
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
883
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
884
|
+
_b = errorCode;
|
|
885
|
+
switch (_b) {
|
|
886
|
+
case "AccessDeniedException": return [3, 2];
|
|
887
|
+
case "com.amazonaws.identitystore#AccessDeniedException": return [3, 2];
|
|
888
|
+
case "InternalServerException": return [3, 4];
|
|
889
|
+
case "com.amazonaws.identitystore#InternalServerException": return [3, 4];
|
|
890
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
891
|
+
case "com.amazonaws.identitystore#ResourceNotFoundException": return [3, 6];
|
|
892
|
+
case "ThrottlingException": return [3, 8];
|
|
893
|
+
case "com.amazonaws.identitystore#ThrottlingException": return [3, 8];
|
|
894
|
+
case "ValidationException": return [3, 10];
|
|
895
|
+
case "com.amazonaws.identitystore#ValidationException": return [3, 10];
|
|
896
|
+
}
|
|
897
|
+
return [3, 12];
|
|
898
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
899
|
+
case 3: throw _d.sent();
|
|
900
|
+
case 4: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
901
|
+
case 5: throw _d.sent();
|
|
902
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
903
|
+
case 7: throw _d.sent();
|
|
904
|
+
case 8: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
905
|
+
case 9: throw _d.sent();
|
|
906
|
+
case 10: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
907
|
+
case 11: throw _d.sent();
|
|
908
|
+
case 12:
|
|
909
|
+
parsedBody = parsedOutput.body;
|
|
910
|
+
throwDefaultError({
|
|
911
|
+
output: output,
|
|
912
|
+
parsedBody: parsedBody,
|
|
913
|
+
exceptionCtor: __BaseException,
|
|
914
|
+
errorCode: errorCode,
|
|
915
|
+
});
|
|
916
|
+
_d.label = 13;
|
|
917
|
+
case 13: return [2];
|
|
918
|
+
}
|
|
919
|
+
});
|
|
920
|
+
}); };
|
|
921
|
+
export var deserializeAws_json1_1GetGroupMembershipIdCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
922
|
+
var data, contents, response;
|
|
923
|
+
return __generator(this, function (_a) {
|
|
924
|
+
switch (_a.label) {
|
|
925
|
+
case 0:
|
|
926
|
+
if (output.statusCode >= 300) {
|
|
927
|
+
return [2, deserializeAws_json1_1GetGroupMembershipIdCommandError(output, context)];
|
|
928
|
+
}
|
|
929
|
+
return [4, parseBody(output.body, context)];
|
|
930
|
+
case 1:
|
|
931
|
+
data = _a.sent();
|
|
932
|
+
contents = {};
|
|
933
|
+
contents = deserializeAws_json1_1GetGroupMembershipIdResponse(data, context);
|
|
934
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
935
|
+
return [2, Promise.resolve(response)];
|
|
936
|
+
}
|
|
937
|
+
});
|
|
938
|
+
}); };
|
|
939
|
+
var deserializeAws_json1_1GetGroupMembershipIdCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
940
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
941
|
+
var _c;
|
|
942
|
+
return __generator(this, function (_d) {
|
|
943
|
+
switch (_d.label) {
|
|
944
|
+
case 0:
|
|
945
|
+
_a = [__assign({}, output)];
|
|
946
|
+
_c = {};
|
|
947
|
+
return [4, parseBody(output.body, context)];
|
|
948
|
+
case 1:
|
|
949
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
950
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
951
|
+
_b = errorCode;
|
|
952
|
+
switch (_b) {
|
|
953
|
+
case "AccessDeniedException": return [3, 2];
|
|
954
|
+
case "com.amazonaws.identitystore#AccessDeniedException": return [3, 2];
|
|
955
|
+
case "InternalServerException": return [3, 4];
|
|
956
|
+
case "com.amazonaws.identitystore#InternalServerException": return [3, 4];
|
|
957
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
958
|
+
case "com.amazonaws.identitystore#ResourceNotFoundException": return [3, 6];
|
|
959
|
+
case "ThrottlingException": return [3, 8];
|
|
960
|
+
case "com.amazonaws.identitystore#ThrottlingException": return [3, 8];
|
|
961
|
+
case "ValidationException": return [3, 10];
|
|
962
|
+
case "com.amazonaws.identitystore#ValidationException": return [3, 10];
|
|
963
|
+
}
|
|
964
|
+
return [3, 12];
|
|
965
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
966
|
+
case 3: throw _d.sent();
|
|
967
|
+
case 4: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
968
|
+
case 5: throw _d.sent();
|
|
969
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
970
|
+
case 7: throw _d.sent();
|
|
971
|
+
case 8: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
972
|
+
case 9: throw _d.sent();
|
|
973
|
+
case 10: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
974
|
+
case 11: throw _d.sent();
|
|
975
|
+
case 12:
|
|
976
|
+
parsedBody = parsedOutput.body;
|
|
977
|
+
throwDefaultError({
|
|
978
|
+
output: output,
|
|
979
|
+
parsedBody: parsedBody,
|
|
980
|
+
exceptionCtor: __BaseException,
|
|
981
|
+
errorCode: errorCode,
|
|
982
|
+
});
|
|
983
|
+
_d.label = 13;
|
|
984
|
+
case 13: return [2];
|
|
985
|
+
}
|
|
986
|
+
});
|
|
987
|
+
}); };
|
|
988
|
+
export var deserializeAws_json1_1GetUserIdCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
989
|
+
var data, contents, response;
|
|
990
|
+
return __generator(this, function (_a) {
|
|
991
|
+
switch (_a.label) {
|
|
992
|
+
case 0:
|
|
993
|
+
if (output.statusCode >= 300) {
|
|
994
|
+
return [2, deserializeAws_json1_1GetUserIdCommandError(output, context)];
|
|
995
|
+
}
|
|
996
|
+
return [4, parseBody(output.body, context)];
|
|
997
|
+
case 1:
|
|
998
|
+
data = _a.sent();
|
|
999
|
+
contents = {};
|
|
1000
|
+
contents = deserializeAws_json1_1GetUserIdResponse(data, context);
|
|
1001
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1002
|
+
return [2, Promise.resolve(response)];
|
|
1003
|
+
}
|
|
1004
|
+
});
|
|
1005
|
+
}); };
|
|
1006
|
+
var deserializeAws_json1_1GetUserIdCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1007
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1008
|
+
var _c;
|
|
1009
|
+
return __generator(this, function (_d) {
|
|
1010
|
+
switch (_d.label) {
|
|
1011
|
+
case 0:
|
|
1012
|
+
_a = [__assign({}, output)];
|
|
1013
|
+
_c = {};
|
|
1014
|
+
return [4, parseBody(output.body, context)];
|
|
1015
|
+
case 1:
|
|
1016
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1017
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1018
|
+
_b = errorCode;
|
|
1019
|
+
switch (_b) {
|
|
1020
|
+
case "AccessDeniedException": return [3, 2];
|
|
1021
|
+
case "com.amazonaws.identitystore#AccessDeniedException": return [3, 2];
|
|
1022
|
+
case "InternalServerException": return [3, 4];
|
|
1023
|
+
case "com.amazonaws.identitystore#InternalServerException": return [3, 4];
|
|
1024
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1025
|
+
case "com.amazonaws.identitystore#ResourceNotFoundException": return [3, 6];
|
|
1026
|
+
case "ThrottlingException": return [3, 8];
|
|
1027
|
+
case "com.amazonaws.identitystore#ThrottlingException": return [3, 8];
|
|
1028
|
+
case "ValidationException": return [3, 10];
|
|
1029
|
+
case "com.amazonaws.identitystore#ValidationException": return [3, 10];
|
|
1030
|
+
}
|
|
1031
|
+
return [3, 12];
|
|
1032
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1033
|
+
case 3: throw _d.sent();
|
|
1034
|
+
case 4: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1035
|
+
case 5: throw _d.sent();
|
|
1036
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1037
|
+
case 7: throw _d.sent();
|
|
1038
|
+
case 8: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1039
|
+
case 9: throw _d.sent();
|
|
1040
|
+
case 10: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1041
|
+
case 11: throw _d.sent();
|
|
1042
|
+
case 12:
|
|
1043
|
+
parsedBody = parsedOutput.body;
|
|
1044
|
+
throwDefaultError({
|
|
1045
|
+
output: output,
|
|
1046
|
+
parsedBody: parsedBody,
|
|
1047
|
+
exceptionCtor: __BaseException,
|
|
1048
|
+
errorCode: errorCode,
|
|
1049
|
+
});
|
|
1050
|
+
_d.label = 13;
|
|
1051
|
+
case 13: return [2];
|
|
1052
|
+
}
|
|
1053
|
+
});
|
|
1054
|
+
}); };
|
|
1055
|
+
export var deserializeAws_json1_1IsMemberInGroupsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1056
|
+
var data, contents, response;
|
|
1057
|
+
return __generator(this, function (_a) {
|
|
1058
|
+
switch (_a.label) {
|
|
1059
|
+
case 0:
|
|
1060
|
+
if (output.statusCode >= 300) {
|
|
1061
|
+
return [2, deserializeAws_json1_1IsMemberInGroupsCommandError(output, context)];
|
|
1062
|
+
}
|
|
1063
|
+
return [4, parseBody(output.body, context)];
|
|
1064
|
+
case 1:
|
|
1065
|
+
data = _a.sent();
|
|
1066
|
+
contents = {};
|
|
1067
|
+
contents = deserializeAws_json1_1IsMemberInGroupsResponse(data, context);
|
|
1068
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1069
|
+
return [2, Promise.resolve(response)];
|
|
1070
|
+
}
|
|
1071
|
+
});
|
|
1072
|
+
}); };
|
|
1073
|
+
var deserializeAws_json1_1IsMemberInGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1074
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1075
|
+
var _c;
|
|
1076
|
+
return __generator(this, function (_d) {
|
|
1077
|
+
switch (_d.label) {
|
|
1078
|
+
case 0:
|
|
1079
|
+
_a = [__assign({}, output)];
|
|
1080
|
+
_c = {};
|
|
1081
|
+
return [4, parseBody(output.body, context)];
|
|
1082
|
+
case 1:
|
|
1083
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1084
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1085
|
+
_b = errorCode;
|
|
1086
|
+
switch (_b) {
|
|
1087
|
+
case "AccessDeniedException": return [3, 2];
|
|
1088
|
+
case "com.amazonaws.identitystore#AccessDeniedException": return [3, 2];
|
|
1089
|
+
case "InternalServerException": return [3, 4];
|
|
1090
|
+
case "com.amazonaws.identitystore#InternalServerException": return [3, 4];
|
|
1091
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1092
|
+
case "com.amazonaws.identitystore#ResourceNotFoundException": return [3, 6];
|
|
1093
|
+
case "ThrottlingException": return [3, 8];
|
|
1094
|
+
case "com.amazonaws.identitystore#ThrottlingException": return [3, 8];
|
|
1095
|
+
case "ValidationException": return [3, 10];
|
|
1096
|
+
case "com.amazonaws.identitystore#ValidationException": return [3, 10];
|
|
1097
|
+
}
|
|
1098
|
+
return [3, 12];
|
|
1099
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1100
|
+
case 3: throw _d.sent();
|
|
1101
|
+
case 4: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1102
|
+
case 5: throw _d.sent();
|
|
1103
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1104
|
+
case 7: throw _d.sent();
|
|
1105
|
+
case 8: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1106
|
+
case 9: throw _d.sent();
|
|
1107
|
+
case 10: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1108
|
+
case 11: throw _d.sent();
|
|
1109
|
+
case 12:
|
|
1110
|
+
parsedBody = parsedOutput.body;
|
|
1111
|
+
throwDefaultError({
|
|
1112
|
+
output: output,
|
|
1113
|
+
parsedBody: parsedBody,
|
|
1114
|
+
exceptionCtor: __BaseException,
|
|
1115
|
+
errorCode: errorCode,
|
|
1116
|
+
});
|
|
1117
|
+
_d.label = 13;
|
|
1118
|
+
case 13: return [2];
|
|
1119
|
+
}
|
|
1120
|
+
});
|
|
1121
|
+
}); };
|
|
1122
|
+
export var deserializeAws_json1_1ListGroupMembershipsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1123
|
+
var data, contents, response;
|
|
1124
|
+
return __generator(this, function (_a) {
|
|
1125
|
+
switch (_a.label) {
|
|
1126
|
+
case 0:
|
|
1127
|
+
if (output.statusCode >= 300) {
|
|
1128
|
+
return [2, deserializeAws_json1_1ListGroupMembershipsCommandError(output, context)];
|
|
1129
|
+
}
|
|
1130
|
+
return [4, parseBody(output.body, context)];
|
|
1131
|
+
case 1:
|
|
1132
|
+
data = _a.sent();
|
|
1133
|
+
contents = {};
|
|
1134
|
+
contents = deserializeAws_json1_1ListGroupMembershipsResponse(data, context);
|
|
1135
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1136
|
+
return [2, Promise.resolve(response)];
|
|
1137
|
+
}
|
|
1138
|
+
});
|
|
1139
|
+
}); };
|
|
1140
|
+
var deserializeAws_json1_1ListGroupMembershipsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1141
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1142
|
+
var _c;
|
|
1143
|
+
return __generator(this, function (_d) {
|
|
1144
|
+
switch (_d.label) {
|
|
1145
|
+
case 0:
|
|
1146
|
+
_a = [__assign({}, output)];
|
|
1147
|
+
_c = {};
|
|
1148
|
+
return [4, parseBody(output.body, context)];
|
|
1149
|
+
case 1:
|
|
1150
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1151
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1152
|
+
_b = errorCode;
|
|
1153
|
+
switch (_b) {
|
|
1154
|
+
case "AccessDeniedException": return [3, 2];
|
|
1155
|
+
case "com.amazonaws.identitystore#AccessDeniedException": return [3, 2];
|
|
1156
|
+
case "InternalServerException": return [3, 4];
|
|
1157
|
+
case "com.amazonaws.identitystore#InternalServerException": return [3, 4];
|
|
1158
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1159
|
+
case "com.amazonaws.identitystore#ResourceNotFoundException": return [3, 6];
|
|
1160
|
+
case "ThrottlingException": return [3, 8];
|
|
1161
|
+
case "com.amazonaws.identitystore#ThrottlingException": return [3, 8];
|
|
1162
|
+
case "ValidationException": return [3, 10];
|
|
1163
|
+
case "com.amazonaws.identitystore#ValidationException": return [3, 10];
|
|
1164
|
+
}
|
|
1165
|
+
return [3, 12];
|
|
1166
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1167
|
+
case 3: throw _d.sent();
|
|
1168
|
+
case 4: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1169
|
+
case 5: throw _d.sent();
|
|
1170
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1171
|
+
case 7: throw _d.sent();
|
|
1172
|
+
case 8: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1173
|
+
case 9: throw _d.sent();
|
|
1174
|
+
case 10: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1175
|
+
case 11: throw _d.sent();
|
|
1176
|
+
case 12:
|
|
1177
|
+
parsedBody = parsedOutput.body;
|
|
1178
|
+
throwDefaultError({
|
|
1179
|
+
output: output,
|
|
1180
|
+
parsedBody: parsedBody,
|
|
1181
|
+
exceptionCtor: __BaseException,
|
|
1182
|
+
errorCode: errorCode,
|
|
1183
|
+
});
|
|
1184
|
+
_d.label = 13;
|
|
1185
|
+
case 13: return [2];
|
|
1186
|
+
}
|
|
1187
|
+
});
|
|
1188
|
+
}); };
|
|
1189
|
+
export var deserializeAws_json1_1ListGroupMembershipsForMemberCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1190
|
+
var data, contents, response;
|
|
1191
|
+
return __generator(this, function (_a) {
|
|
1192
|
+
switch (_a.label) {
|
|
1193
|
+
case 0:
|
|
1194
|
+
if (output.statusCode >= 300) {
|
|
1195
|
+
return [2, deserializeAws_json1_1ListGroupMembershipsForMemberCommandError(output, context)];
|
|
1196
|
+
}
|
|
1197
|
+
return [4, parseBody(output.body, context)];
|
|
1198
|
+
case 1:
|
|
1199
|
+
data = _a.sent();
|
|
1200
|
+
contents = {};
|
|
1201
|
+
contents = deserializeAws_json1_1ListGroupMembershipsForMemberResponse(data, context);
|
|
1202
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1203
|
+
return [2, Promise.resolve(response)];
|
|
1204
|
+
}
|
|
1205
|
+
});
|
|
1206
|
+
}); };
|
|
1207
|
+
var deserializeAws_json1_1ListGroupMembershipsForMemberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1208
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1209
|
+
var _c;
|
|
1210
|
+
return __generator(this, function (_d) {
|
|
1211
|
+
switch (_d.label) {
|
|
1212
|
+
case 0:
|
|
1213
|
+
_a = [__assign({}, output)];
|
|
1214
|
+
_c = {};
|
|
1215
|
+
return [4, parseBody(output.body, context)];
|
|
1216
|
+
case 1:
|
|
1217
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1218
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1219
|
+
_b = errorCode;
|
|
1220
|
+
switch (_b) {
|
|
1221
|
+
case "AccessDeniedException": return [3, 2];
|
|
1222
|
+
case "com.amazonaws.identitystore#AccessDeniedException": return [3, 2];
|
|
1223
|
+
case "InternalServerException": return [3, 4];
|
|
1224
|
+
case "com.amazonaws.identitystore#InternalServerException": return [3, 4];
|
|
1225
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1226
|
+
case "com.amazonaws.identitystore#ResourceNotFoundException": return [3, 6];
|
|
1227
|
+
case "ThrottlingException": return [3, 8];
|
|
1228
|
+
case "com.amazonaws.identitystore#ThrottlingException": return [3, 8];
|
|
1229
|
+
case "ValidationException": return [3, 10];
|
|
1230
|
+
case "com.amazonaws.identitystore#ValidationException": return [3, 10];
|
|
1231
|
+
}
|
|
1232
|
+
return [3, 12];
|
|
1233
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1234
|
+
case 3: throw _d.sent();
|
|
1235
|
+
case 4: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1236
|
+
case 5: throw _d.sent();
|
|
1237
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1238
|
+
case 7: throw _d.sent();
|
|
1239
|
+
case 8: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1240
|
+
case 9: throw _d.sent();
|
|
1241
|
+
case 10: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1242
|
+
case 11: throw _d.sent();
|
|
1243
|
+
case 12:
|
|
1244
|
+
parsedBody = parsedOutput.body;
|
|
1245
|
+
throwDefaultError({
|
|
1246
|
+
output: output,
|
|
1247
|
+
parsedBody: parsedBody,
|
|
1248
|
+
exceptionCtor: __BaseException,
|
|
1249
|
+
errorCode: errorCode,
|
|
1250
|
+
});
|
|
1251
|
+
_d.label = 13;
|
|
1252
|
+
case 13: return [2];
|
|
1253
|
+
}
|
|
1254
|
+
});
|
|
1255
|
+
}); };
|
|
1256
|
+
export var deserializeAws_json1_1ListGroupsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
51
1257
|
var data, contents, response;
|
|
52
1258
|
return __generator(this, function (_a) {
|
|
53
1259
|
switch (_a.label) {
|
|
54
1260
|
case 0:
|
|
55
1261
|
if (output.statusCode >= 300) {
|
|
56
|
-
return [2,
|
|
1262
|
+
return [2, deserializeAws_json1_1ListGroupsCommandError(output, context)];
|
|
57
1263
|
}
|
|
58
1264
|
return [4, parseBody(output.body, context)];
|
|
59
1265
|
case 1:
|
|
60
1266
|
data = _a.sent();
|
|
61
1267
|
contents = {};
|
|
62
|
-
contents =
|
|
1268
|
+
contents = deserializeAws_json1_1ListGroupsResponse(data, context);
|
|
63
1269
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
64
1270
|
return [2, Promise.resolve(response)];
|
|
65
1271
|
}
|
|
66
1272
|
});
|
|
67
1273
|
}); };
|
|
68
|
-
var
|
|
1274
|
+
var deserializeAws_json1_1ListGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
69
1275
|
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
70
1276
|
var _c;
|
|
71
1277
|
return __generator(this, function (_d) {
|
|
@@ -114,25 +1320,25 @@ var deserializeAws_json1_1DescribeGroupCommandError = function (output, context)
|
|
|
114
1320
|
}
|
|
115
1321
|
});
|
|
116
1322
|
}); };
|
|
117
|
-
export var
|
|
1323
|
+
export var deserializeAws_json1_1ListUsersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
118
1324
|
var data, contents, response;
|
|
119
1325
|
return __generator(this, function (_a) {
|
|
120
1326
|
switch (_a.label) {
|
|
121
1327
|
case 0:
|
|
122
1328
|
if (output.statusCode >= 300) {
|
|
123
|
-
return [2,
|
|
1329
|
+
return [2, deserializeAws_json1_1ListUsersCommandError(output, context)];
|
|
124
1330
|
}
|
|
125
1331
|
return [4, parseBody(output.body, context)];
|
|
126
1332
|
case 1:
|
|
127
1333
|
data = _a.sent();
|
|
128
1334
|
contents = {};
|
|
129
|
-
contents =
|
|
1335
|
+
contents = deserializeAws_json1_1ListUsersResponse(data, context);
|
|
130
1336
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
131
1337
|
return [2, Promise.resolve(response)];
|
|
132
1338
|
}
|
|
133
1339
|
});
|
|
134
1340
|
}); };
|
|
135
|
-
var
|
|
1341
|
+
var deserializeAws_json1_1ListUsersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
136
1342
|
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
137
1343
|
var _c;
|
|
138
1344
|
return __generator(this, function (_d) {
|
|
@@ -181,25 +1387,25 @@ var deserializeAws_json1_1DescribeUserCommandError = function (output, context)
|
|
|
181
1387
|
}
|
|
182
1388
|
});
|
|
183
1389
|
}); };
|
|
184
|
-
export var
|
|
1390
|
+
export var deserializeAws_json1_1UpdateGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
185
1391
|
var data, contents, response;
|
|
186
1392
|
return __generator(this, function (_a) {
|
|
187
1393
|
switch (_a.label) {
|
|
188
1394
|
case 0:
|
|
189
1395
|
if (output.statusCode >= 300) {
|
|
190
|
-
return [2,
|
|
1396
|
+
return [2, deserializeAws_json1_1UpdateGroupCommandError(output, context)];
|
|
191
1397
|
}
|
|
192
1398
|
return [4, parseBody(output.body, context)];
|
|
193
1399
|
case 1:
|
|
194
1400
|
data = _a.sent();
|
|
195
1401
|
contents = {};
|
|
196
|
-
contents =
|
|
1402
|
+
contents = deserializeAws_json1_1UpdateGroupResponse(data, context);
|
|
197
1403
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
198
1404
|
return [2, Promise.resolve(response)];
|
|
199
1405
|
}
|
|
200
1406
|
});
|
|
201
1407
|
}); };
|
|
202
|
-
var
|
|
1408
|
+
var deserializeAws_json1_1UpdateGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
203
1409
|
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
204
1410
|
var _c;
|
|
205
1411
|
return __generator(this, function (_d) {
|
|
@@ -215,27 +1421,35 @@ var deserializeAws_json1_1ListGroupsCommandError = function (output, context) {
|
|
|
215
1421
|
switch (_b) {
|
|
216
1422
|
case "AccessDeniedException": return [3, 2];
|
|
217
1423
|
case "com.amazonaws.identitystore#AccessDeniedException": return [3, 2];
|
|
218
|
-
case "
|
|
219
|
-
case "com.amazonaws.identitystore#
|
|
220
|
-
case "
|
|
221
|
-
case "com.amazonaws.identitystore#
|
|
222
|
-
case "
|
|
223
|
-
case "com.amazonaws.identitystore#
|
|
224
|
-
case "
|
|
225
|
-
case "com.amazonaws.identitystore#
|
|
1424
|
+
case "ConflictException": return [3, 4];
|
|
1425
|
+
case "com.amazonaws.identitystore#ConflictException": return [3, 4];
|
|
1426
|
+
case "InternalServerException": return [3, 6];
|
|
1427
|
+
case "com.amazonaws.identitystore#InternalServerException": return [3, 6];
|
|
1428
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1429
|
+
case "com.amazonaws.identitystore#ResourceNotFoundException": return [3, 8];
|
|
1430
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
1431
|
+
case "com.amazonaws.identitystore#ServiceQuotaExceededException": return [3, 10];
|
|
1432
|
+
case "ThrottlingException": return [3, 12];
|
|
1433
|
+
case "com.amazonaws.identitystore#ThrottlingException": return [3, 12];
|
|
1434
|
+
case "ValidationException": return [3, 14];
|
|
1435
|
+
case "com.amazonaws.identitystore#ValidationException": return [3, 14];
|
|
226
1436
|
}
|
|
227
|
-
return [3,
|
|
1437
|
+
return [3, 16];
|
|
228
1438
|
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
229
1439
|
case 3: throw _d.sent();
|
|
230
|
-
case 4: return [4,
|
|
1440
|
+
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
231
1441
|
case 5: throw _d.sent();
|
|
232
|
-
case 6: return [4,
|
|
1442
|
+
case 6: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
233
1443
|
case 7: throw _d.sent();
|
|
234
|
-
case 8: return [4,
|
|
1444
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
235
1445
|
case 9: throw _d.sent();
|
|
236
|
-
case 10: return [4,
|
|
1446
|
+
case 10: return [4, deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
237
1447
|
case 11: throw _d.sent();
|
|
238
|
-
case 12:
|
|
1448
|
+
case 12: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1449
|
+
case 13: throw _d.sent();
|
|
1450
|
+
case 14: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1451
|
+
case 15: throw _d.sent();
|
|
1452
|
+
case 16:
|
|
239
1453
|
parsedBody = parsedOutput.body;
|
|
240
1454
|
throwDefaultError({
|
|
241
1455
|
output: output,
|
|
@@ -243,30 +1457,30 @@ var deserializeAws_json1_1ListGroupsCommandError = function (output, context) {
|
|
|
243
1457
|
exceptionCtor: __BaseException,
|
|
244
1458
|
errorCode: errorCode,
|
|
245
1459
|
});
|
|
246
|
-
_d.label =
|
|
247
|
-
case
|
|
1460
|
+
_d.label = 17;
|
|
1461
|
+
case 17: return [2];
|
|
248
1462
|
}
|
|
249
1463
|
});
|
|
250
1464
|
}); };
|
|
251
|
-
export var
|
|
1465
|
+
export var deserializeAws_json1_1UpdateUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
252
1466
|
var data, contents, response;
|
|
253
1467
|
return __generator(this, function (_a) {
|
|
254
1468
|
switch (_a.label) {
|
|
255
1469
|
case 0:
|
|
256
1470
|
if (output.statusCode >= 300) {
|
|
257
|
-
return [2,
|
|
1471
|
+
return [2, deserializeAws_json1_1UpdateUserCommandError(output, context)];
|
|
258
1472
|
}
|
|
259
1473
|
return [4, parseBody(output.body, context)];
|
|
260
1474
|
case 1:
|
|
261
1475
|
data = _a.sent();
|
|
262
1476
|
contents = {};
|
|
263
|
-
contents =
|
|
1477
|
+
contents = deserializeAws_json1_1UpdateUserResponse(data, context);
|
|
264
1478
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
265
1479
|
return [2, Promise.resolve(response)];
|
|
266
1480
|
}
|
|
267
1481
|
});
|
|
268
1482
|
}); };
|
|
269
|
-
var
|
|
1483
|
+
var deserializeAws_json1_1UpdateUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
270
1484
|
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
271
1485
|
var _c;
|
|
272
1486
|
return __generator(this, function (_d) {
|
|
@@ -282,27 +1496,35 @@ var deserializeAws_json1_1ListUsersCommandError = function (output, context) { r
|
|
|
282
1496
|
switch (_b) {
|
|
283
1497
|
case "AccessDeniedException": return [3, 2];
|
|
284
1498
|
case "com.amazonaws.identitystore#AccessDeniedException": return [3, 2];
|
|
285
|
-
case "
|
|
286
|
-
case "com.amazonaws.identitystore#
|
|
287
|
-
case "
|
|
288
|
-
case "com.amazonaws.identitystore#
|
|
289
|
-
case "
|
|
290
|
-
case "com.amazonaws.identitystore#
|
|
291
|
-
case "
|
|
292
|
-
case "com.amazonaws.identitystore#
|
|
1499
|
+
case "ConflictException": return [3, 4];
|
|
1500
|
+
case "com.amazonaws.identitystore#ConflictException": return [3, 4];
|
|
1501
|
+
case "InternalServerException": return [3, 6];
|
|
1502
|
+
case "com.amazonaws.identitystore#InternalServerException": return [3, 6];
|
|
1503
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1504
|
+
case "com.amazonaws.identitystore#ResourceNotFoundException": return [3, 8];
|
|
1505
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
1506
|
+
case "com.amazonaws.identitystore#ServiceQuotaExceededException": return [3, 10];
|
|
1507
|
+
case "ThrottlingException": return [3, 12];
|
|
1508
|
+
case "com.amazonaws.identitystore#ThrottlingException": return [3, 12];
|
|
1509
|
+
case "ValidationException": return [3, 14];
|
|
1510
|
+
case "com.amazonaws.identitystore#ValidationException": return [3, 14];
|
|
293
1511
|
}
|
|
294
|
-
return [3,
|
|
1512
|
+
return [3, 16];
|
|
295
1513
|
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
296
1514
|
case 3: throw _d.sent();
|
|
297
|
-
case 4: return [4,
|
|
1515
|
+
case 4: return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
298
1516
|
case 5: throw _d.sent();
|
|
299
|
-
case 6: return [4,
|
|
1517
|
+
case 6: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
300
1518
|
case 7: throw _d.sent();
|
|
301
|
-
case 8: return [4,
|
|
1519
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
302
1520
|
case 9: throw _d.sent();
|
|
303
|
-
case 10: return [4,
|
|
1521
|
+
case 10: return [4, deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
304
1522
|
case 11: throw _d.sent();
|
|
305
|
-
case 12:
|
|
1523
|
+
case 12: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1524
|
+
case 13: throw _d.sent();
|
|
1525
|
+
case 14: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1526
|
+
case 15: throw _d.sent();
|
|
1527
|
+
case 16:
|
|
306
1528
|
parsedBody = parsedOutput.body;
|
|
307
1529
|
throwDefaultError({
|
|
308
1530
|
output: output,
|
|
@@ -310,8 +1532,8 @@ var deserializeAws_json1_1ListUsersCommandError = function (output, context) { r
|
|
|
310
1532
|
exceptionCtor: __BaseException,
|
|
311
1533
|
errorCode: errorCode,
|
|
312
1534
|
});
|
|
313
|
-
_d.label =
|
|
314
|
-
case
|
|
1535
|
+
_d.label = 17;
|
|
1536
|
+
case 17: return [2];
|
|
315
1537
|
}
|
|
316
1538
|
});
|
|
317
1539
|
}); };
|
|
@@ -324,6 +1546,15 @@ var deserializeAws_json1_1AccessDeniedExceptionResponse = function (parsedOutput
|
|
|
324
1546
|
return [2, __decorateServiceException(exception, body)];
|
|
325
1547
|
});
|
|
326
1548
|
}); };
|
|
1549
|
+
var deserializeAws_json1_1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1550
|
+
var body, deserialized, exception;
|
|
1551
|
+
return __generator(this, function (_a) {
|
|
1552
|
+
body = parsedOutput.body;
|
|
1553
|
+
deserialized = deserializeAws_json1_1ConflictException(body, context);
|
|
1554
|
+
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1555
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1556
|
+
});
|
|
1557
|
+
}); };
|
|
327
1558
|
var deserializeAws_json1_1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
328
1559
|
var body, deserialized, exception;
|
|
329
1560
|
return __generator(this, function (_a) {
|
|
@@ -342,6 +1573,15 @@ var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOu
|
|
|
342
1573
|
return [2, __decorateServiceException(exception, body)];
|
|
343
1574
|
});
|
|
344
1575
|
}); };
|
|
1576
|
+
var deserializeAws_json1_1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1577
|
+
var body, deserialized, exception;
|
|
1578
|
+
return __generator(this, function (_a) {
|
|
1579
|
+
body = parsedOutput.body;
|
|
1580
|
+
deserialized = deserializeAws_json1_1ServiceQuotaExceededException(body, context);
|
|
1581
|
+
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1582
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1583
|
+
});
|
|
1584
|
+
}); };
|
|
345
1585
|
var deserializeAws_json1_1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
346
1586
|
var body, deserialized, exception;
|
|
347
1587
|
return __generator(this, function (_a) {
|
|
@@ -360,12 +1600,78 @@ var deserializeAws_json1_1ValidationExceptionResponse = function (parsedOutput,
|
|
|
360
1600
|
return [2, __decorateServiceException(exception, body)];
|
|
361
1601
|
});
|
|
362
1602
|
}); };
|
|
1603
|
+
var serializeAws_json1_1Address = function (input, context) {
|
|
1604
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Country != null && { Country: input.Country })), (input.Formatted != null && { Formatted: input.Formatted })), (input.Locality != null && { Locality: input.Locality })), (input.PostalCode != null && { PostalCode: input.PostalCode })), (input.Primary != null && { Primary: input.Primary })), (input.Region != null && { Region: input.Region })), (input.StreetAddress != null && { StreetAddress: input.StreetAddress })), (input.Type != null && { Type: input.Type }));
|
|
1605
|
+
};
|
|
1606
|
+
var serializeAws_json1_1Addresses = function (input, context) {
|
|
1607
|
+
return input
|
|
1608
|
+
.filter(function (e) { return e != null; })
|
|
1609
|
+
.map(function (entry) {
|
|
1610
|
+
return serializeAws_json1_1Address(entry, context);
|
|
1611
|
+
});
|
|
1612
|
+
};
|
|
1613
|
+
var serializeAws_json1_1AlternateIdentifier = function (input, context) {
|
|
1614
|
+
return AlternateIdentifier.visit(input, {
|
|
1615
|
+
ExternalId: function (value) { return ({ ExternalId: serializeAws_json1_1ExternalId(value, context) }); },
|
|
1616
|
+
UniqueAttribute: function (value) { return ({ UniqueAttribute: serializeAws_json1_1UniqueAttribute(value, context) }); },
|
|
1617
|
+
_: function (name, value) { return ({ name: value }); },
|
|
1618
|
+
});
|
|
1619
|
+
};
|
|
1620
|
+
var serializeAws_json1_1AttributeOperation = function (input, context) {
|
|
1621
|
+
return __assign(__assign({}, (input.AttributePath != null && { AttributePath: input.AttributePath })), (input.AttributeValue != null && {
|
|
1622
|
+
AttributeValue: serializeAws_json1_1AttributeValue(input.AttributeValue, context),
|
|
1623
|
+
}));
|
|
1624
|
+
};
|
|
1625
|
+
var serializeAws_json1_1AttributeOperations = function (input, context) {
|
|
1626
|
+
return input
|
|
1627
|
+
.filter(function (e) { return e != null; })
|
|
1628
|
+
.map(function (entry) {
|
|
1629
|
+
return serializeAws_json1_1AttributeOperation(entry, context);
|
|
1630
|
+
});
|
|
1631
|
+
};
|
|
1632
|
+
var serializeAws_json1_1AttributeValue = function (input, context) {
|
|
1633
|
+
return input;
|
|
1634
|
+
};
|
|
1635
|
+
var serializeAws_json1_1CreateGroupMembershipRequest = function (input, context) {
|
|
1636
|
+
return __assign(__assign(__assign({}, (input.GroupId != null && { GroupId: input.GroupId })), (input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId })), (input.MemberId != null && { MemberId: serializeAws_json1_1MemberId(input.MemberId, context) }));
|
|
1637
|
+
};
|
|
1638
|
+
var serializeAws_json1_1CreateGroupRequest = function (input, context) {
|
|
1639
|
+
return __assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.DisplayName != null && { DisplayName: input.DisplayName })), (input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }));
|
|
1640
|
+
};
|
|
1641
|
+
var serializeAws_json1_1CreateUserRequest = function (input, context) {
|
|
1642
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Addresses != null && { Addresses: serializeAws_json1_1Addresses(input.Addresses, context) })), (input.DisplayName != null && { DisplayName: input.DisplayName })), (input.Emails != null && { Emails: serializeAws_json1_1Emails(input.Emails, context) })), (input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId })), (input.Locale != null && { Locale: input.Locale })), (input.Name != null && { Name: serializeAws_json1_1Name(input.Name, context) })), (input.NickName != null && { NickName: input.NickName })), (input.PhoneNumbers != null && { PhoneNumbers: serializeAws_json1_1PhoneNumbers(input.PhoneNumbers, context) })), (input.PreferredLanguage != null && { PreferredLanguage: input.PreferredLanguage })), (input.ProfileUrl != null && { ProfileUrl: input.ProfileUrl })), (input.Timezone != null && { Timezone: input.Timezone })), (input.Title != null && { Title: input.Title })), (input.UserName != null && { UserName: input.UserName })), (input.UserType != null && { UserType: input.UserType }));
|
|
1643
|
+
};
|
|
1644
|
+
var serializeAws_json1_1DeleteGroupMembershipRequest = function (input, context) {
|
|
1645
|
+
return __assign(__assign({}, (input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId })), (input.MembershipId != null && { MembershipId: input.MembershipId }));
|
|
1646
|
+
};
|
|
1647
|
+
var serializeAws_json1_1DeleteGroupRequest = function (input, context) {
|
|
1648
|
+
return __assign(__assign({}, (input.GroupId != null && { GroupId: input.GroupId })), (input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }));
|
|
1649
|
+
};
|
|
1650
|
+
var serializeAws_json1_1DeleteUserRequest = function (input, context) {
|
|
1651
|
+
return __assign(__assign({}, (input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId })), (input.UserId != null && { UserId: input.UserId }));
|
|
1652
|
+
};
|
|
1653
|
+
var serializeAws_json1_1DescribeGroupMembershipRequest = function (input, context) {
|
|
1654
|
+
return __assign(__assign({}, (input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId })), (input.MembershipId != null && { MembershipId: input.MembershipId }));
|
|
1655
|
+
};
|
|
363
1656
|
var serializeAws_json1_1DescribeGroupRequest = function (input, context) {
|
|
364
1657
|
return __assign(__assign({}, (input.GroupId != null && { GroupId: input.GroupId })), (input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }));
|
|
365
1658
|
};
|
|
366
1659
|
var serializeAws_json1_1DescribeUserRequest = function (input, context) {
|
|
367
1660
|
return __assign(__assign({}, (input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId })), (input.UserId != null && { UserId: input.UserId }));
|
|
368
1661
|
};
|
|
1662
|
+
var serializeAws_json1_1Email = function (input, context) {
|
|
1663
|
+
return __assign(__assign(__assign({}, (input.Primary != null && { Primary: input.Primary })), (input.Type != null && { Type: input.Type })), (input.Value != null && { Value: input.Value }));
|
|
1664
|
+
};
|
|
1665
|
+
var serializeAws_json1_1Emails = function (input, context) {
|
|
1666
|
+
return input
|
|
1667
|
+
.filter(function (e) { return e != null; })
|
|
1668
|
+
.map(function (entry) {
|
|
1669
|
+
return serializeAws_json1_1Email(entry, context);
|
|
1670
|
+
});
|
|
1671
|
+
};
|
|
1672
|
+
var serializeAws_json1_1ExternalId = function (input, context) {
|
|
1673
|
+
return __assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.Issuer != null && { Issuer: input.Issuer }));
|
|
1674
|
+
};
|
|
369
1675
|
var serializeAws_json1_1Filter = function (input, context) {
|
|
370
1676
|
return __assign(__assign({}, (input.AttributePath != null && { AttributePath: input.AttributePath })), (input.AttributeValue != null && { AttributeValue: input.AttributeValue }));
|
|
371
1677
|
};
|
|
@@ -376,36 +1682,270 @@ var serializeAws_json1_1Filters = function (input, context) {
|
|
|
376
1682
|
return serializeAws_json1_1Filter(entry, context);
|
|
377
1683
|
});
|
|
378
1684
|
};
|
|
1685
|
+
var serializeAws_json1_1GetGroupIdRequest = function (input, context) {
|
|
1686
|
+
return __assign(__assign({}, (input.AlternateIdentifier != null && {
|
|
1687
|
+
AlternateIdentifier: serializeAws_json1_1AlternateIdentifier(input.AlternateIdentifier, context),
|
|
1688
|
+
})), (input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }));
|
|
1689
|
+
};
|
|
1690
|
+
var serializeAws_json1_1GetGroupMembershipIdRequest = function (input, context) {
|
|
1691
|
+
return __assign(__assign(__assign({}, (input.GroupId != null && { GroupId: input.GroupId })), (input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId })), (input.MemberId != null && { MemberId: serializeAws_json1_1MemberId(input.MemberId, context) }));
|
|
1692
|
+
};
|
|
1693
|
+
var serializeAws_json1_1GetUserIdRequest = function (input, context) {
|
|
1694
|
+
return __assign(__assign({}, (input.AlternateIdentifier != null && {
|
|
1695
|
+
AlternateIdentifier: serializeAws_json1_1AlternateIdentifier(input.AlternateIdentifier, context),
|
|
1696
|
+
})), (input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }));
|
|
1697
|
+
};
|
|
1698
|
+
var serializeAws_json1_1GroupIds = function (input, context) {
|
|
1699
|
+
return input
|
|
1700
|
+
.filter(function (e) { return e != null; })
|
|
1701
|
+
.map(function (entry) {
|
|
1702
|
+
return entry;
|
|
1703
|
+
});
|
|
1704
|
+
};
|
|
1705
|
+
var serializeAws_json1_1IsMemberInGroupsRequest = function (input, context) {
|
|
1706
|
+
return __assign(__assign(__assign({}, (input.GroupIds != null && { GroupIds: serializeAws_json1_1GroupIds(input.GroupIds, context) })), (input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId })), (input.MemberId != null && { MemberId: serializeAws_json1_1MemberId(input.MemberId, context) }));
|
|
1707
|
+
};
|
|
1708
|
+
var serializeAws_json1_1ListGroupMembershipsForMemberRequest = function (input, context) {
|
|
1709
|
+
return __assign(__assign(__assign(__assign({}, (input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.MemberId != null && { MemberId: serializeAws_json1_1MemberId(input.MemberId, context) })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
1710
|
+
};
|
|
1711
|
+
var serializeAws_json1_1ListGroupMembershipsRequest = function (input, context) {
|
|
1712
|
+
return __assign(__assign(__assign(__assign({}, (input.GroupId != null && { GroupId: input.GroupId })), (input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
1713
|
+
};
|
|
379
1714
|
var serializeAws_json1_1ListGroupsRequest = function (input, context) {
|
|
380
1715
|
return __assign(__assign(__assign(__assign({}, (input.Filters != null && { Filters: serializeAws_json1_1Filters(input.Filters, context) })), (input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
381
1716
|
};
|
|
382
1717
|
var serializeAws_json1_1ListUsersRequest = function (input, context) {
|
|
383
1718
|
return __assign(__assign(__assign(__assign({}, (input.Filters != null && { Filters: serializeAws_json1_1Filters(input.Filters, context) })), (input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
384
1719
|
};
|
|
1720
|
+
var serializeAws_json1_1MemberId = function (input, context) {
|
|
1721
|
+
return MemberId.visit(input, {
|
|
1722
|
+
UserId: function (value) { return ({ UserId: value }); },
|
|
1723
|
+
_: function (name, value) { return ({ name: value }); },
|
|
1724
|
+
});
|
|
1725
|
+
};
|
|
1726
|
+
var serializeAws_json1_1Name = function (input, context) {
|
|
1727
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.FamilyName != null && { FamilyName: input.FamilyName })), (input.Formatted != null && { Formatted: input.Formatted })), (input.GivenName != null && { GivenName: input.GivenName })), (input.HonorificPrefix != null && { HonorificPrefix: input.HonorificPrefix })), (input.HonorificSuffix != null && { HonorificSuffix: input.HonorificSuffix })), (input.MiddleName != null && { MiddleName: input.MiddleName }));
|
|
1728
|
+
};
|
|
1729
|
+
var serializeAws_json1_1PhoneNumber = function (input, context) {
|
|
1730
|
+
return __assign(__assign(__assign({}, (input.Primary != null && { Primary: input.Primary })), (input.Type != null && { Type: input.Type })), (input.Value != null && { Value: input.Value }));
|
|
1731
|
+
};
|
|
1732
|
+
var serializeAws_json1_1PhoneNumbers = function (input, context) {
|
|
1733
|
+
return input
|
|
1734
|
+
.filter(function (e) { return e != null; })
|
|
1735
|
+
.map(function (entry) {
|
|
1736
|
+
return serializeAws_json1_1PhoneNumber(entry, context);
|
|
1737
|
+
});
|
|
1738
|
+
};
|
|
1739
|
+
var serializeAws_json1_1UniqueAttribute = function (input, context) {
|
|
1740
|
+
return __assign(__assign({}, (input.AttributePath != null && { AttributePath: input.AttributePath })), (input.AttributeValue != null && {
|
|
1741
|
+
AttributeValue: serializeAws_json1_1AttributeValue(input.AttributeValue, context),
|
|
1742
|
+
}));
|
|
1743
|
+
};
|
|
1744
|
+
var serializeAws_json1_1UpdateGroupRequest = function (input, context) {
|
|
1745
|
+
return __assign(__assign(__assign({}, (input.GroupId != null && { GroupId: input.GroupId })), (input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId })), (input.Operations != null && { Operations: serializeAws_json1_1AttributeOperations(input.Operations, context) }));
|
|
1746
|
+
};
|
|
1747
|
+
var serializeAws_json1_1UpdateUserRequest = function (input, context) {
|
|
1748
|
+
return __assign(__assign(__assign({}, (input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId })), (input.Operations != null && { Operations: serializeAws_json1_1AttributeOperations(input.Operations, context) })), (input.UserId != null && { UserId: input.UserId }));
|
|
1749
|
+
};
|
|
385
1750
|
var deserializeAws_json1_1AccessDeniedException = function (output, context) {
|
|
386
1751
|
return {
|
|
387
1752
|
Message: __expectString(output.Message),
|
|
388
1753
|
RequestId: __expectString(output.RequestId),
|
|
389
1754
|
};
|
|
390
1755
|
};
|
|
1756
|
+
var deserializeAws_json1_1Address = function (output, context) {
|
|
1757
|
+
return {
|
|
1758
|
+
Country: __expectString(output.Country),
|
|
1759
|
+
Formatted: __expectString(output.Formatted),
|
|
1760
|
+
Locality: __expectString(output.Locality),
|
|
1761
|
+
PostalCode: __expectString(output.PostalCode),
|
|
1762
|
+
Primary: __expectBoolean(output.Primary),
|
|
1763
|
+
Region: __expectString(output.Region),
|
|
1764
|
+
StreetAddress: __expectString(output.StreetAddress),
|
|
1765
|
+
Type: __expectString(output.Type),
|
|
1766
|
+
};
|
|
1767
|
+
};
|
|
1768
|
+
var deserializeAws_json1_1Addresses = function (output, context) {
|
|
1769
|
+
var retVal = (output || [])
|
|
1770
|
+
.filter(function (e) { return e != null; })
|
|
1771
|
+
.map(function (entry) {
|
|
1772
|
+
if (entry === null) {
|
|
1773
|
+
return null;
|
|
1774
|
+
}
|
|
1775
|
+
return deserializeAws_json1_1Address(entry, context);
|
|
1776
|
+
});
|
|
1777
|
+
return retVal;
|
|
1778
|
+
};
|
|
1779
|
+
var deserializeAws_json1_1ConflictException = function (output, context) {
|
|
1780
|
+
return {
|
|
1781
|
+
Message: __expectString(output.Message),
|
|
1782
|
+
Reason: __expectString(output.Reason),
|
|
1783
|
+
RequestId: __expectString(output.RequestId),
|
|
1784
|
+
};
|
|
1785
|
+
};
|
|
1786
|
+
var deserializeAws_json1_1CreateGroupMembershipResponse = function (output, context) {
|
|
1787
|
+
return {
|
|
1788
|
+
IdentityStoreId: __expectString(output.IdentityStoreId),
|
|
1789
|
+
MembershipId: __expectString(output.MembershipId),
|
|
1790
|
+
};
|
|
1791
|
+
};
|
|
1792
|
+
var deserializeAws_json1_1CreateGroupResponse = function (output, context) {
|
|
1793
|
+
return {
|
|
1794
|
+
GroupId: __expectString(output.GroupId),
|
|
1795
|
+
IdentityStoreId: __expectString(output.IdentityStoreId),
|
|
1796
|
+
};
|
|
1797
|
+
};
|
|
1798
|
+
var deserializeAws_json1_1CreateUserResponse = function (output, context) {
|
|
1799
|
+
return {
|
|
1800
|
+
IdentityStoreId: __expectString(output.IdentityStoreId),
|
|
1801
|
+
UserId: __expectString(output.UserId),
|
|
1802
|
+
};
|
|
1803
|
+
};
|
|
1804
|
+
var deserializeAws_json1_1DeleteGroupMembershipResponse = function (output, context) {
|
|
1805
|
+
return {};
|
|
1806
|
+
};
|
|
1807
|
+
var deserializeAws_json1_1DeleteGroupResponse = function (output, context) {
|
|
1808
|
+
return {};
|
|
1809
|
+
};
|
|
1810
|
+
var deserializeAws_json1_1DeleteUserResponse = function (output, context) {
|
|
1811
|
+
return {};
|
|
1812
|
+
};
|
|
1813
|
+
var deserializeAws_json1_1DescribeGroupMembershipResponse = function (output, context) {
|
|
1814
|
+
return {
|
|
1815
|
+
GroupId: __expectString(output.GroupId),
|
|
1816
|
+
IdentityStoreId: __expectString(output.IdentityStoreId),
|
|
1817
|
+
MemberId: output.MemberId != null ? deserializeAws_json1_1MemberId(__expectUnion(output.MemberId), context) : undefined,
|
|
1818
|
+
MembershipId: __expectString(output.MembershipId),
|
|
1819
|
+
};
|
|
1820
|
+
};
|
|
391
1821
|
var deserializeAws_json1_1DescribeGroupResponse = function (output, context) {
|
|
392
1822
|
return {
|
|
1823
|
+
Description: __expectString(output.Description),
|
|
393
1824
|
DisplayName: __expectString(output.DisplayName),
|
|
1825
|
+
ExternalIds: output.ExternalIds != null ? deserializeAws_json1_1ExternalIds(output.ExternalIds, context) : undefined,
|
|
394
1826
|
GroupId: __expectString(output.GroupId),
|
|
1827
|
+
IdentityStoreId: __expectString(output.IdentityStoreId),
|
|
395
1828
|
};
|
|
396
1829
|
};
|
|
397
1830
|
var deserializeAws_json1_1DescribeUserResponse = function (output, context) {
|
|
398
1831
|
return {
|
|
1832
|
+
Addresses: output.Addresses != null ? deserializeAws_json1_1Addresses(output.Addresses, context) : undefined,
|
|
1833
|
+
DisplayName: __expectString(output.DisplayName),
|
|
1834
|
+
Emails: output.Emails != null ? deserializeAws_json1_1Emails(output.Emails, context) : undefined,
|
|
1835
|
+
ExternalIds: output.ExternalIds != null ? deserializeAws_json1_1ExternalIds(output.ExternalIds, context) : undefined,
|
|
1836
|
+
IdentityStoreId: __expectString(output.IdentityStoreId),
|
|
1837
|
+
Locale: __expectString(output.Locale),
|
|
1838
|
+
Name: output.Name != null ? deserializeAws_json1_1Name(output.Name, context) : undefined,
|
|
1839
|
+
NickName: __expectString(output.NickName),
|
|
1840
|
+
PhoneNumbers: output.PhoneNumbers != null ? deserializeAws_json1_1PhoneNumbers(output.PhoneNumbers, context) : undefined,
|
|
1841
|
+
PreferredLanguage: __expectString(output.PreferredLanguage),
|
|
1842
|
+
ProfileUrl: __expectString(output.ProfileUrl),
|
|
1843
|
+
Timezone: __expectString(output.Timezone),
|
|
1844
|
+
Title: __expectString(output.Title),
|
|
399
1845
|
UserId: __expectString(output.UserId),
|
|
400
1846
|
UserName: __expectString(output.UserName),
|
|
1847
|
+
UserType: __expectString(output.UserType),
|
|
1848
|
+
};
|
|
1849
|
+
};
|
|
1850
|
+
var deserializeAws_json1_1Email = function (output, context) {
|
|
1851
|
+
return {
|
|
1852
|
+
Primary: __expectBoolean(output.Primary),
|
|
1853
|
+
Type: __expectString(output.Type),
|
|
1854
|
+
Value: __expectString(output.Value),
|
|
1855
|
+
};
|
|
1856
|
+
};
|
|
1857
|
+
var deserializeAws_json1_1Emails = function (output, context) {
|
|
1858
|
+
var retVal = (output || [])
|
|
1859
|
+
.filter(function (e) { return e != null; })
|
|
1860
|
+
.map(function (entry) {
|
|
1861
|
+
if (entry === null) {
|
|
1862
|
+
return null;
|
|
1863
|
+
}
|
|
1864
|
+
return deserializeAws_json1_1Email(entry, context);
|
|
1865
|
+
});
|
|
1866
|
+
return retVal;
|
|
1867
|
+
};
|
|
1868
|
+
var deserializeAws_json1_1ExternalId = function (output, context) {
|
|
1869
|
+
return {
|
|
1870
|
+
Id: __expectString(output.Id),
|
|
1871
|
+
Issuer: __expectString(output.Issuer),
|
|
1872
|
+
};
|
|
1873
|
+
};
|
|
1874
|
+
var deserializeAws_json1_1ExternalIds = function (output, context) {
|
|
1875
|
+
var retVal = (output || [])
|
|
1876
|
+
.filter(function (e) { return e != null; })
|
|
1877
|
+
.map(function (entry) {
|
|
1878
|
+
if (entry === null) {
|
|
1879
|
+
return null;
|
|
1880
|
+
}
|
|
1881
|
+
return deserializeAws_json1_1ExternalId(entry, context);
|
|
1882
|
+
});
|
|
1883
|
+
return retVal;
|
|
1884
|
+
};
|
|
1885
|
+
var deserializeAws_json1_1GetGroupIdResponse = function (output, context) {
|
|
1886
|
+
return {
|
|
1887
|
+
GroupId: __expectString(output.GroupId),
|
|
1888
|
+
IdentityStoreId: __expectString(output.IdentityStoreId),
|
|
1889
|
+
};
|
|
1890
|
+
};
|
|
1891
|
+
var deserializeAws_json1_1GetGroupMembershipIdResponse = function (output, context) {
|
|
1892
|
+
return {
|
|
1893
|
+
IdentityStoreId: __expectString(output.IdentityStoreId),
|
|
1894
|
+
MembershipId: __expectString(output.MembershipId),
|
|
1895
|
+
};
|
|
1896
|
+
};
|
|
1897
|
+
var deserializeAws_json1_1GetUserIdResponse = function (output, context) {
|
|
1898
|
+
return {
|
|
1899
|
+
IdentityStoreId: __expectString(output.IdentityStoreId),
|
|
1900
|
+
UserId: __expectString(output.UserId),
|
|
401
1901
|
};
|
|
402
1902
|
};
|
|
403
1903
|
var deserializeAws_json1_1Group = function (output, context) {
|
|
404
1904
|
return {
|
|
1905
|
+
Description: __expectString(output.Description),
|
|
405
1906
|
DisplayName: __expectString(output.DisplayName),
|
|
1907
|
+
ExternalIds: output.ExternalIds != null ? deserializeAws_json1_1ExternalIds(output.ExternalIds, context) : undefined,
|
|
1908
|
+
GroupId: __expectString(output.GroupId),
|
|
1909
|
+
IdentityStoreId: __expectString(output.IdentityStoreId),
|
|
1910
|
+
};
|
|
1911
|
+
};
|
|
1912
|
+
var deserializeAws_json1_1GroupMembership = function (output, context) {
|
|
1913
|
+
return {
|
|
1914
|
+
GroupId: __expectString(output.GroupId),
|
|
1915
|
+
IdentityStoreId: __expectString(output.IdentityStoreId),
|
|
1916
|
+
MemberId: output.MemberId != null ? deserializeAws_json1_1MemberId(__expectUnion(output.MemberId), context) : undefined,
|
|
1917
|
+
MembershipId: __expectString(output.MembershipId),
|
|
1918
|
+
};
|
|
1919
|
+
};
|
|
1920
|
+
var deserializeAws_json1_1GroupMembershipExistenceResult = function (output, context) {
|
|
1921
|
+
return {
|
|
406
1922
|
GroupId: __expectString(output.GroupId),
|
|
1923
|
+
MemberId: output.MemberId != null ? deserializeAws_json1_1MemberId(__expectUnion(output.MemberId), context) : undefined,
|
|
1924
|
+
MembershipExists: __expectBoolean(output.MembershipExists),
|
|
407
1925
|
};
|
|
408
1926
|
};
|
|
1927
|
+
var deserializeAws_json1_1GroupMembershipExistenceResults = function (output, context) {
|
|
1928
|
+
var retVal = (output || [])
|
|
1929
|
+
.filter(function (e) { return e != null; })
|
|
1930
|
+
.map(function (entry) {
|
|
1931
|
+
if (entry === null) {
|
|
1932
|
+
return null;
|
|
1933
|
+
}
|
|
1934
|
+
return deserializeAws_json1_1GroupMembershipExistenceResult(entry, context);
|
|
1935
|
+
});
|
|
1936
|
+
return retVal;
|
|
1937
|
+
};
|
|
1938
|
+
var deserializeAws_json1_1GroupMemberships = function (output, context) {
|
|
1939
|
+
var retVal = (output || [])
|
|
1940
|
+
.filter(function (e) { return e != null; })
|
|
1941
|
+
.map(function (entry) {
|
|
1942
|
+
if (entry === null) {
|
|
1943
|
+
return null;
|
|
1944
|
+
}
|
|
1945
|
+
return deserializeAws_json1_1GroupMembership(entry, context);
|
|
1946
|
+
});
|
|
1947
|
+
return retVal;
|
|
1948
|
+
};
|
|
409
1949
|
var deserializeAws_json1_1Groups = function (output, context) {
|
|
410
1950
|
var retVal = (output || [])
|
|
411
1951
|
.filter(function (e) { return e != null; })
|
|
@@ -421,6 +1961,30 @@ var deserializeAws_json1_1InternalServerException = function (output, context) {
|
|
|
421
1961
|
return {
|
|
422
1962
|
Message: __expectString(output.Message),
|
|
423
1963
|
RequestId: __expectString(output.RequestId),
|
|
1964
|
+
RetryAfterSeconds: __expectInt32(output.RetryAfterSeconds),
|
|
1965
|
+
};
|
|
1966
|
+
};
|
|
1967
|
+
var deserializeAws_json1_1IsMemberInGroupsResponse = function (output, context) {
|
|
1968
|
+
return {
|
|
1969
|
+
Results: output.Results != null
|
|
1970
|
+
? deserializeAws_json1_1GroupMembershipExistenceResults(output.Results, context)
|
|
1971
|
+
: undefined,
|
|
1972
|
+
};
|
|
1973
|
+
};
|
|
1974
|
+
var deserializeAws_json1_1ListGroupMembershipsForMemberResponse = function (output, context) {
|
|
1975
|
+
return {
|
|
1976
|
+
GroupMemberships: output.GroupMemberships != null
|
|
1977
|
+
? deserializeAws_json1_1GroupMemberships(output.GroupMemberships, context)
|
|
1978
|
+
: undefined,
|
|
1979
|
+
NextToken: __expectString(output.NextToken),
|
|
1980
|
+
};
|
|
1981
|
+
};
|
|
1982
|
+
var deserializeAws_json1_1ListGroupMembershipsResponse = function (output, context) {
|
|
1983
|
+
return {
|
|
1984
|
+
GroupMemberships: output.GroupMemberships != null
|
|
1985
|
+
? deserializeAws_json1_1GroupMemberships(output.GroupMemberships, context)
|
|
1986
|
+
: undefined,
|
|
1987
|
+
NextToken: __expectString(output.NextToken),
|
|
424
1988
|
};
|
|
425
1989
|
};
|
|
426
1990
|
var deserializeAws_json1_1ListGroupsResponse = function (output, context) {
|
|
@@ -435,6 +1999,40 @@ var deserializeAws_json1_1ListUsersResponse = function (output, context) {
|
|
|
435
1999
|
Users: output.Users != null ? deserializeAws_json1_1Users(output.Users, context) : undefined,
|
|
436
2000
|
};
|
|
437
2001
|
};
|
|
2002
|
+
var deserializeAws_json1_1MemberId = function (output, context) {
|
|
2003
|
+
if (__expectString(output.UserId) !== undefined) {
|
|
2004
|
+
return { UserId: __expectString(output.UserId) };
|
|
2005
|
+
}
|
|
2006
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2007
|
+
};
|
|
2008
|
+
var deserializeAws_json1_1Name = function (output, context) {
|
|
2009
|
+
return {
|
|
2010
|
+
FamilyName: __expectString(output.FamilyName),
|
|
2011
|
+
Formatted: __expectString(output.Formatted),
|
|
2012
|
+
GivenName: __expectString(output.GivenName),
|
|
2013
|
+
HonorificPrefix: __expectString(output.HonorificPrefix),
|
|
2014
|
+
HonorificSuffix: __expectString(output.HonorificSuffix),
|
|
2015
|
+
MiddleName: __expectString(output.MiddleName),
|
|
2016
|
+
};
|
|
2017
|
+
};
|
|
2018
|
+
var deserializeAws_json1_1PhoneNumber = function (output, context) {
|
|
2019
|
+
return {
|
|
2020
|
+
Primary: __expectBoolean(output.Primary),
|
|
2021
|
+
Type: __expectString(output.Type),
|
|
2022
|
+
Value: __expectString(output.Value),
|
|
2023
|
+
};
|
|
2024
|
+
};
|
|
2025
|
+
var deserializeAws_json1_1PhoneNumbers = function (output, context) {
|
|
2026
|
+
var retVal = (output || [])
|
|
2027
|
+
.filter(function (e) { return e != null; })
|
|
2028
|
+
.map(function (entry) {
|
|
2029
|
+
if (entry === null) {
|
|
2030
|
+
return null;
|
|
2031
|
+
}
|
|
2032
|
+
return deserializeAws_json1_1PhoneNumber(entry, context);
|
|
2033
|
+
});
|
|
2034
|
+
return retVal;
|
|
2035
|
+
};
|
|
438
2036
|
var deserializeAws_json1_1ResourceNotFoundException = function (output, context) {
|
|
439
2037
|
return {
|
|
440
2038
|
Message: __expectString(output.Message),
|
|
@@ -443,16 +2041,43 @@ var deserializeAws_json1_1ResourceNotFoundException = function (output, context)
|
|
|
443
2041
|
ResourceType: __expectString(output.ResourceType),
|
|
444
2042
|
};
|
|
445
2043
|
};
|
|
2044
|
+
var deserializeAws_json1_1ServiceQuotaExceededException = function (output, context) {
|
|
2045
|
+
return {
|
|
2046
|
+
Message: __expectString(output.Message),
|
|
2047
|
+
RequestId: __expectString(output.RequestId),
|
|
2048
|
+
};
|
|
2049
|
+
};
|
|
446
2050
|
var deserializeAws_json1_1ThrottlingException = function (output, context) {
|
|
447
2051
|
return {
|
|
448
2052
|
Message: __expectString(output.Message),
|
|
449
2053
|
RequestId: __expectString(output.RequestId),
|
|
2054
|
+
RetryAfterSeconds: __expectInt32(output.RetryAfterSeconds),
|
|
450
2055
|
};
|
|
451
2056
|
};
|
|
2057
|
+
var deserializeAws_json1_1UpdateGroupResponse = function (output, context) {
|
|
2058
|
+
return {};
|
|
2059
|
+
};
|
|
2060
|
+
var deserializeAws_json1_1UpdateUserResponse = function (output, context) {
|
|
2061
|
+
return {};
|
|
2062
|
+
};
|
|
452
2063
|
var deserializeAws_json1_1User = function (output, context) {
|
|
453
2064
|
return {
|
|
2065
|
+
Addresses: output.Addresses != null ? deserializeAws_json1_1Addresses(output.Addresses, context) : undefined,
|
|
2066
|
+
DisplayName: __expectString(output.DisplayName),
|
|
2067
|
+
Emails: output.Emails != null ? deserializeAws_json1_1Emails(output.Emails, context) : undefined,
|
|
2068
|
+
ExternalIds: output.ExternalIds != null ? deserializeAws_json1_1ExternalIds(output.ExternalIds, context) : undefined,
|
|
2069
|
+
IdentityStoreId: __expectString(output.IdentityStoreId),
|
|
2070
|
+
Locale: __expectString(output.Locale),
|
|
2071
|
+
Name: output.Name != null ? deserializeAws_json1_1Name(output.Name, context) : undefined,
|
|
2072
|
+
NickName: __expectString(output.NickName),
|
|
2073
|
+
PhoneNumbers: output.PhoneNumbers != null ? deserializeAws_json1_1PhoneNumbers(output.PhoneNumbers, context) : undefined,
|
|
2074
|
+
PreferredLanguage: __expectString(output.PreferredLanguage),
|
|
2075
|
+
ProfileUrl: __expectString(output.ProfileUrl),
|
|
2076
|
+
Timezone: __expectString(output.Timezone),
|
|
2077
|
+
Title: __expectString(output.Title),
|
|
454
2078
|
UserId: __expectString(output.UserId),
|
|
455
2079
|
UserName: __expectString(output.UserName),
|
|
2080
|
+
UserType: __expectString(output.UserType),
|
|
456
2081
|
};
|
|
457
2082
|
};
|
|
458
2083
|
var deserializeAws_json1_1Users = function (output, context) {
|