@aws-sdk/client-identitystore 3.490.0 → 3.495.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Identitystore.js +1 -49
- package/dist-cjs/IdentitystoreClient.js +1 -43
- package/dist-cjs/commands/CreateGroupCommand.js +1 -29
- package/dist-cjs/commands/CreateGroupMembershipCommand.js +1 -28
- package/dist-cjs/commands/CreateUserCommand.js +1 -29
- package/dist-cjs/commands/DeleteGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteGroupMembershipCommand.js +1 -28
- package/dist-cjs/commands/DeleteUserCommand.js +1 -28
- package/dist-cjs/commands/DescribeGroupCommand.js +1 -29
- package/dist-cjs/commands/DescribeGroupMembershipCommand.js +1 -28
- package/dist-cjs/commands/DescribeUserCommand.js +1 -29
- package/dist-cjs/commands/GetGroupIdCommand.js +1 -29
- package/dist-cjs/commands/GetGroupMembershipIdCommand.js +1 -28
- package/dist-cjs/commands/GetUserIdCommand.js +1 -29
- package/dist-cjs/commands/IsMemberInGroupsCommand.js +1 -29
- package/dist-cjs/commands/ListGroupMembershipsCommand.js +1 -28
- package/dist-cjs/commands/ListGroupMembershipsForMemberCommand.js +1 -28
- package/dist-cjs/commands/ListGroupsCommand.js +1 -29
- package/dist-cjs/commands/ListUsersCommand.js +1 -29
- package/dist-cjs/commands/UpdateGroupCommand.js +1 -28
- package/dist-cjs/commands/UpdateUserCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -22
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2129 -11
- package/dist-cjs/models/IdentitystoreServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -321
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListGroupMembershipsForMemberPaginator.js +1 -7
- package/dist-cjs/pagination/ListGroupMembershipsPaginator.js +1 -7
- package/dist-cjs/pagination/ListGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/ListUsersPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -8
- package/dist-cjs/protocols/Aws_json1_1.js +1 -1224
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,1224 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateUserCommand = exports.de_UpdateGroupCommand = exports.de_ListUsersCommand = exports.de_ListGroupsCommand = exports.de_ListGroupMembershipsForMemberCommand = exports.de_ListGroupMembershipsCommand = exports.de_IsMemberInGroupsCommand = exports.de_GetUserIdCommand = exports.de_GetGroupMembershipIdCommand = exports.de_GetGroupIdCommand = exports.de_DescribeUserCommand = exports.de_DescribeGroupMembershipCommand = exports.de_DescribeGroupCommand = exports.de_DeleteUserCommand = exports.de_DeleteGroupMembershipCommand = exports.de_DeleteGroupCommand = exports.de_CreateUserCommand = exports.de_CreateGroupMembershipCommand = exports.de_CreateGroupCommand = exports.se_UpdateUserCommand = exports.se_UpdateGroupCommand = exports.se_ListUsersCommand = exports.se_ListGroupsCommand = exports.se_ListGroupMembershipsForMemberCommand = exports.se_ListGroupMembershipsCommand = exports.se_IsMemberInGroupsCommand = exports.se_GetUserIdCommand = exports.se_GetGroupMembershipIdCommand = exports.se_GetGroupIdCommand = exports.se_DescribeUserCommand = exports.se_DescribeGroupMembershipCommand = exports.se_DescribeGroupCommand = exports.se_DeleteUserCommand = exports.se_DeleteGroupMembershipCommand = exports.se_DeleteGroupCommand = exports.se_CreateUserCommand = exports.se_CreateGroupMembershipCommand = exports.se_CreateGroupCommand = void 0;
|
|
4
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
const IdentitystoreServiceException_1 = require("../models/IdentitystoreServiceException");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const se_CreateGroupCommand = async (input, context) => {
|
|
9
|
-
const headers = sharedHeaders("CreateGroup");
|
|
10
|
-
let body;
|
|
11
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
12
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
|
-
};
|
|
14
|
-
exports.se_CreateGroupCommand = se_CreateGroupCommand;
|
|
15
|
-
const se_CreateGroupMembershipCommand = async (input, context) => {
|
|
16
|
-
const headers = sharedHeaders("CreateGroupMembership");
|
|
17
|
-
let body;
|
|
18
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
19
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
20
|
-
};
|
|
21
|
-
exports.se_CreateGroupMembershipCommand = se_CreateGroupMembershipCommand;
|
|
22
|
-
const se_CreateUserCommand = async (input, context) => {
|
|
23
|
-
const headers = sharedHeaders("CreateUser");
|
|
24
|
-
let body;
|
|
25
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
26
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
|
-
};
|
|
28
|
-
exports.se_CreateUserCommand = se_CreateUserCommand;
|
|
29
|
-
const se_DeleteGroupCommand = async (input, context) => {
|
|
30
|
-
const headers = sharedHeaders("DeleteGroup");
|
|
31
|
-
let body;
|
|
32
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
33
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
|
-
};
|
|
35
|
-
exports.se_DeleteGroupCommand = se_DeleteGroupCommand;
|
|
36
|
-
const se_DeleteGroupMembershipCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("DeleteGroupMembership");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
exports.se_DeleteGroupMembershipCommand = se_DeleteGroupMembershipCommand;
|
|
43
|
-
const se_DeleteUserCommand = async (input, context) => {
|
|
44
|
-
const headers = sharedHeaders("DeleteUser");
|
|
45
|
-
let body;
|
|
46
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
47
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
|
-
};
|
|
49
|
-
exports.se_DeleteUserCommand = se_DeleteUserCommand;
|
|
50
|
-
const se_DescribeGroupCommand = async (input, context) => {
|
|
51
|
-
const headers = sharedHeaders("DescribeGroup");
|
|
52
|
-
let body;
|
|
53
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
54
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
55
|
-
};
|
|
56
|
-
exports.se_DescribeGroupCommand = se_DescribeGroupCommand;
|
|
57
|
-
const se_DescribeGroupMembershipCommand = async (input, context) => {
|
|
58
|
-
const headers = sharedHeaders("DescribeGroupMembership");
|
|
59
|
-
let body;
|
|
60
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
61
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
62
|
-
};
|
|
63
|
-
exports.se_DescribeGroupMembershipCommand = se_DescribeGroupMembershipCommand;
|
|
64
|
-
const se_DescribeUserCommand = async (input, context) => {
|
|
65
|
-
const headers = sharedHeaders("DescribeUser");
|
|
66
|
-
let body;
|
|
67
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
68
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
69
|
-
};
|
|
70
|
-
exports.se_DescribeUserCommand = se_DescribeUserCommand;
|
|
71
|
-
const se_GetGroupIdCommand = async (input, context) => {
|
|
72
|
-
const headers = sharedHeaders("GetGroupId");
|
|
73
|
-
let body;
|
|
74
|
-
body = JSON.stringify(se_GetGroupIdRequest(input, context));
|
|
75
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
|
-
};
|
|
77
|
-
exports.se_GetGroupIdCommand = se_GetGroupIdCommand;
|
|
78
|
-
const se_GetGroupMembershipIdCommand = async (input, context) => {
|
|
79
|
-
const headers = sharedHeaders("GetGroupMembershipId");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
82
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
-
};
|
|
84
|
-
exports.se_GetGroupMembershipIdCommand = se_GetGroupMembershipIdCommand;
|
|
85
|
-
const se_GetUserIdCommand = async (input, context) => {
|
|
86
|
-
const headers = sharedHeaders("GetUserId");
|
|
87
|
-
let body;
|
|
88
|
-
body = JSON.stringify(se_GetUserIdRequest(input, context));
|
|
89
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
90
|
-
};
|
|
91
|
-
exports.se_GetUserIdCommand = se_GetUserIdCommand;
|
|
92
|
-
const se_IsMemberInGroupsCommand = async (input, context) => {
|
|
93
|
-
const headers = sharedHeaders("IsMemberInGroups");
|
|
94
|
-
let body;
|
|
95
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
96
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
|
-
};
|
|
98
|
-
exports.se_IsMemberInGroupsCommand = se_IsMemberInGroupsCommand;
|
|
99
|
-
const se_ListGroupMembershipsCommand = async (input, context) => {
|
|
100
|
-
const headers = sharedHeaders("ListGroupMemberships");
|
|
101
|
-
let body;
|
|
102
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
103
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
|
-
};
|
|
105
|
-
exports.se_ListGroupMembershipsCommand = se_ListGroupMembershipsCommand;
|
|
106
|
-
const se_ListGroupMembershipsForMemberCommand = async (input, context) => {
|
|
107
|
-
const headers = sharedHeaders("ListGroupMembershipsForMember");
|
|
108
|
-
let body;
|
|
109
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
110
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
111
|
-
};
|
|
112
|
-
exports.se_ListGroupMembershipsForMemberCommand = se_ListGroupMembershipsForMemberCommand;
|
|
113
|
-
const se_ListGroupsCommand = async (input, context) => {
|
|
114
|
-
const headers = sharedHeaders("ListGroups");
|
|
115
|
-
let body;
|
|
116
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
117
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
|
-
};
|
|
119
|
-
exports.se_ListGroupsCommand = se_ListGroupsCommand;
|
|
120
|
-
const se_ListUsersCommand = async (input, context) => {
|
|
121
|
-
const headers = sharedHeaders("ListUsers");
|
|
122
|
-
let body;
|
|
123
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
124
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
|
-
};
|
|
126
|
-
exports.se_ListUsersCommand = se_ListUsersCommand;
|
|
127
|
-
const se_UpdateGroupCommand = async (input, context) => {
|
|
128
|
-
const headers = sharedHeaders("UpdateGroup");
|
|
129
|
-
let body;
|
|
130
|
-
body = JSON.stringify(se_UpdateGroupRequest(input, context));
|
|
131
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
132
|
-
};
|
|
133
|
-
exports.se_UpdateGroupCommand = se_UpdateGroupCommand;
|
|
134
|
-
const se_UpdateUserCommand = async (input, context) => {
|
|
135
|
-
const headers = sharedHeaders("UpdateUser");
|
|
136
|
-
let body;
|
|
137
|
-
body = JSON.stringify(se_UpdateUserRequest(input, context));
|
|
138
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
|
-
};
|
|
140
|
-
exports.se_UpdateUserCommand = se_UpdateUserCommand;
|
|
141
|
-
const de_CreateGroupCommand = async (output, context) => {
|
|
142
|
-
if (output.statusCode >= 300) {
|
|
143
|
-
return de_CreateGroupCommandError(output, context);
|
|
144
|
-
}
|
|
145
|
-
const data = await parseBody(output.body, context);
|
|
146
|
-
let contents = {};
|
|
147
|
-
contents = (0, smithy_client_1._json)(data);
|
|
148
|
-
const response = {
|
|
149
|
-
$metadata: deserializeMetadata(output),
|
|
150
|
-
...contents,
|
|
151
|
-
};
|
|
152
|
-
return response;
|
|
153
|
-
};
|
|
154
|
-
exports.de_CreateGroupCommand = de_CreateGroupCommand;
|
|
155
|
-
const de_CreateGroupCommandError = async (output, context) => {
|
|
156
|
-
const parsedOutput = {
|
|
157
|
-
...output,
|
|
158
|
-
body: await parseErrorBody(output.body, context),
|
|
159
|
-
};
|
|
160
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
161
|
-
switch (errorCode) {
|
|
162
|
-
case "AccessDeniedException":
|
|
163
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
164
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
165
|
-
case "ConflictException":
|
|
166
|
-
case "com.amazonaws.identitystore#ConflictException":
|
|
167
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
168
|
-
case "InternalServerException":
|
|
169
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
170
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
171
|
-
case "ResourceNotFoundException":
|
|
172
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
173
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
174
|
-
case "ServiceQuotaExceededException":
|
|
175
|
-
case "com.amazonaws.identitystore#ServiceQuotaExceededException":
|
|
176
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
177
|
-
case "ThrottlingException":
|
|
178
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
179
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
180
|
-
case "ValidationException":
|
|
181
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
182
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
183
|
-
default:
|
|
184
|
-
const parsedBody = parsedOutput.body;
|
|
185
|
-
return throwDefaultError({
|
|
186
|
-
output,
|
|
187
|
-
parsedBody,
|
|
188
|
-
errorCode,
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
const de_CreateGroupMembershipCommand = async (output, context) => {
|
|
193
|
-
if (output.statusCode >= 300) {
|
|
194
|
-
return de_CreateGroupMembershipCommandError(output, context);
|
|
195
|
-
}
|
|
196
|
-
const data = await parseBody(output.body, context);
|
|
197
|
-
let contents = {};
|
|
198
|
-
contents = (0, smithy_client_1._json)(data);
|
|
199
|
-
const response = {
|
|
200
|
-
$metadata: deserializeMetadata(output),
|
|
201
|
-
...contents,
|
|
202
|
-
};
|
|
203
|
-
return response;
|
|
204
|
-
};
|
|
205
|
-
exports.de_CreateGroupMembershipCommand = de_CreateGroupMembershipCommand;
|
|
206
|
-
const de_CreateGroupMembershipCommandError = async (output, context) => {
|
|
207
|
-
const parsedOutput = {
|
|
208
|
-
...output,
|
|
209
|
-
body: await parseErrorBody(output.body, context),
|
|
210
|
-
};
|
|
211
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
212
|
-
switch (errorCode) {
|
|
213
|
-
case "AccessDeniedException":
|
|
214
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
215
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
216
|
-
case "ConflictException":
|
|
217
|
-
case "com.amazonaws.identitystore#ConflictException":
|
|
218
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
219
|
-
case "InternalServerException":
|
|
220
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
221
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
222
|
-
case "ResourceNotFoundException":
|
|
223
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
224
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
225
|
-
case "ServiceQuotaExceededException":
|
|
226
|
-
case "com.amazonaws.identitystore#ServiceQuotaExceededException":
|
|
227
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
228
|
-
case "ThrottlingException":
|
|
229
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
230
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
231
|
-
case "ValidationException":
|
|
232
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
233
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
234
|
-
default:
|
|
235
|
-
const parsedBody = parsedOutput.body;
|
|
236
|
-
return throwDefaultError({
|
|
237
|
-
output,
|
|
238
|
-
parsedBody,
|
|
239
|
-
errorCode,
|
|
240
|
-
});
|
|
241
|
-
}
|
|
242
|
-
};
|
|
243
|
-
const de_CreateUserCommand = async (output, context) => {
|
|
244
|
-
if (output.statusCode >= 300) {
|
|
245
|
-
return de_CreateUserCommandError(output, context);
|
|
246
|
-
}
|
|
247
|
-
const data = await parseBody(output.body, context);
|
|
248
|
-
let contents = {};
|
|
249
|
-
contents = (0, smithy_client_1._json)(data);
|
|
250
|
-
const response = {
|
|
251
|
-
$metadata: deserializeMetadata(output),
|
|
252
|
-
...contents,
|
|
253
|
-
};
|
|
254
|
-
return response;
|
|
255
|
-
};
|
|
256
|
-
exports.de_CreateUserCommand = de_CreateUserCommand;
|
|
257
|
-
const de_CreateUserCommandError = async (output, context) => {
|
|
258
|
-
const parsedOutput = {
|
|
259
|
-
...output,
|
|
260
|
-
body: await parseErrorBody(output.body, context),
|
|
261
|
-
};
|
|
262
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
263
|
-
switch (errorCode) {
|
|
264
|
-
case "AccessDeniedException":
|
|
265
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
266
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
267
|
-
case "ConflictException":
|
|
268
|
-
case "com.amazonaws.identitystore#ConflictException":
|
|
269
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
270
|
-
case "InternalServerException":
|
|
271
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
272
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
273
|
-
case "ResourceNotFoundException":
|
|
274
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
275
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
276
|
-
case "ServiceQuotaExceededException":
|
|
277
|
-
case "com.amazonaws.identitystore#ServiceQuotaExceededException":
|
|
278
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
279
|
-
case "ThrottlingException":
|
|
280
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
281
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
282
|
-
case "ValidationException":
|
|
283
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
284
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
285
|
-
default:
|
|
286
|
-
const parsedBody = parsedOutput.body;
|
|
287
|
-
return throwDefaultError({
|
|
288
|
-
output,
|
|
289
|
-
parsedBody,
|
|
290
|
-
errorCode,
|
|
291
|
-
});
|
|
292
|
-
}
|
|
293
|
-
};
|
|
294
|
-
const de_DeleteGroupCommand = async (output, context) => {
|
|
295
|
-
if (output.statusCode >= 300) {
|
|
296
|
-
return de_DeleteGroupCommandError(output, context);
|
|
297
|
-
}
|
|
298
|
-
const data = await parseBody(output.body, context);
|
|
299
|
-
let contents = {};
|
|
300
|
-
contents = (0, smithy_client_1._json)(data);
|
|
301
|
-
const response = {
|
|
302
|
-
$metadata: deserializeMetadata(output),
|
|
303
|
-
...contents,
|
|
304
|
-
};
|
|
305
|
-
return response;
|
|
306
|
-
};
|
|
307
|
-
exports.de_DeleteGroupCommand = de_DeleteGroupCommand;
|
|
308
|
-
const de_DeleteGroupCommandError = async (output, context) => {
|
|
309
|
-
const parsedOutput = {
|
|
310
|
-
...output,
|
|
311
|
-
body: await parseErrorBody(output.body, context),
|
|
312
|
-
};
|
|
313
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
314
|
-
switch (errorCode) {
|
|
315
|
-
case "AccessDeniedException":
|
|
316
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
317
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
318
|
-
case "ConflictException":
|
|
319
|
-
case "com.amazonaws.identitystore#ConflictException":
|
|
320
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
321
|
-
case "InternalServerException":
|
|
322
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
323
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
324
|
-
case "ResourceNotFoundException":
|
|
325
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
326
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
327
|
-
case "ThrottlingException":
|
|
328
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
329
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
330
|
-
case "ValidationException":
|
|
331
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
332
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
333
|
-
default:
|
|
334
|
-
const parsedBody = parsedOutput.body;
|
|
335
|
-
return throwDefaultError({
|
|
336
|
-
output,
|
|
337
|
-
parsedBody,
|
|
338
|
-
errorCode,
|
|
339
|
-
});
|
|
340
|
-
}
|
|
341
|
-
};
|
|
342
|
-
const de_DeleteGroupMembershipCommand = async (output, context) => {
|
|
343
|
-
if (output.statusCode >= 300) {
|
|
344
|
-
return de_DeleteGroupMembershipCommandError(output, context);
|
|
345
|
-
}
|
|
346
|
-
const data = await parseBody(output.body, context);
|
|
347
|
-
let contents = {};
|
|
348
|
-
contents = (0, smithy_client_1._json)(data);
|
|
349
|
-
const response = {
|
|
350
|
-
$metadata: deserializeMetadata(output),
|
|
351
|
-
...contents,
|
|
352
|
-
};
|
|
353
|
-
return response;
|
|
354
|
-
};
|
|
355
|
-
exports.de_DeleteGroupMembershipCommand = de_DeleteGroupMembershipCommand;
|
|
356
|
-
const de_DeleteGroupMembershipCommandError = async (output, context) => {
|
|
357
|
-
const parsedOutput = {
|
|
358
|
-
...output,
|
|
359
|
-
body: await parseErrorBody(output.body, context),
|
|
360
|
-
};
|
|
361
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
362
|
-
switch (errorCode) {
|
|
363
|
-
case "AccessDeniedException":
|
|
364
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
365
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
366
|
-
case "ConflictException":
|
|
367
|
-
case "com.amazonaws.identitystore#ConflictException":
|
|
368
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
369
|
-
case "InternalServerException":
|
|
370
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
371
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
372
|
-
case "ResourceNotFoundException":
|
|
373
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
374
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
375
|
-
case "ThrottlingException":
|
|
376
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
377
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
378
|
-
case "ValidationException":
|
|
379
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
380
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
381
|
-
default:
|
|
382
|
-
const parsedBody = parsedOutput.body;
|
|
383
|
-
return throwDefaultError({
|
|
384
|
-
output,
|
|
385
|
-
parsedBody,
|
|
386
|
-
errorCode,
|
|
387
|
-
});
|
|
388
|
-
}
|
|
389
|
-
};
|
|
390
|
-
const de_DeleteUserCommand = async (output, context) => {
|
|
391
|
-
if (output.statusCode >= 300) {
|
|
392
|
-
return de_DeleteUserCommandError(output, context);
|
|
393
|
-
}
|
|
394
|
-
const data = await parseBody(output.body, context);
|
|
395
|
-
let contents = {};
|
|
396
|
-
contents = (0, smithy_client_1._json)(data);
|
|
397
|
-
const response = {
|
|
398
|
-
$metadata: deserializeMetadata(output),
|
|
399
|
-
...contents,
|
|
400
|
-
};
|
|
401
|
-
return response;
|
|
402
|
-
};
|
|
403
|
-
exports.de_DeleteUserCommand = de_DeleteUserCommand;
|
|
404
|
-
const de_DeleteUserCommandError = async (output, context) => {
|
|
405
|
-
const parsedOutput = {
|
|
406
|
-
...output,
|
|
407
|
-
body: await parseErrorBody(output.body, context),
|
|
408
|
-
};
|
|
409
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
410
|
-
switch (errorCode) {
|
|
411
|
-
case "AccessDeniedException":
|
|
412
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
413
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
414
|
-
case "ConflictException":
|
|
415
|
-
case "com.amazonaws.identitystore#ConflictException":
|
|
416
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
417
|
-
case "InternalServerException":
|
|
418
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
419
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
420
|
-
case "ResourceNotFoundException":
|
|
421
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
422
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
423
|
-
case "ThrottlingException":
|
|
424
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
425
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
426
|
-
case "ValidationException":
|
|
427
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
428
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
429
|
-
default:
|
|
430
|
-
const parsedBody = parsedOutput.body;
|
|
431
|
-
return throwDefaultError({
|
|
432
|
-
output,
|
|
433
|
-
parsedBody,
|
|
434
|
-
errorCode,
|
|
435
|
-
});
|
|
436
|
-
}
|
|
437
|
-
};
|
|
438
|
-
const de_DescribeGroupCommand = async (output, context) => {
|
|
439
|
-
if (output.statusCode >= 300) {
|
|
440
|
-
return de_DescribeGroupCommandError(output, context);
|
|
441
|
-
}
|
|
442
|
-
const data = await parseBody(output.body, context);
|
|
443
|
-
let contents = {};
|
|
444
|
-
contents = (0, smithy_client_1._json)(data);
|
|
445
|
-
const response = {
|
|
446
|
-
$metadata: deserializeMetadata(output),
|
|
447
|
-
...contents,
|
|
448
|
-
};
|
|
449
|
-
return response;
|
|
450
|
-
};
|
|
451
|
-
exports.de_DescribeGroupCommand = de_DescribeGroupCommand;
|
|
452
|
-
const de_DescribeGroupCommandError = async (output, context) => {
|
|
453
|
-
const parsedOutput = {
|
|
454
|
-
...output,
|
|
455
|
-
body: await parseErrorBody(output.body, context),
|
|
456
|
-
};
|
|
457
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
458
|
-
switch (errorCode) {
|
|
459
|
-
case "AccessDeniedException":
|
|
460
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
461
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
462
|
-
case "InternalServerException":
|
|
463
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
464
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
465
|
-
case "ResourceNotFoundException":
|
|
466
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
467
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
468
|
-
case "ThrottlingException":
|
|
469
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
470
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
471
|
-
case "ValidationException":
|
|
472
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
473
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
474
|
-
default:
|
|
475
|
-
const parsedBody = parsedOutput.body;
|
|
476
|
-
return throwDefaultError({
|
|
477
|
-
output,
|
|
478
|
-
parsedBody,
|
|
479
|
-
errorCode,
|
|
480
|
-
});
|
|
481
|
-
}
|
|
482
|
-
};
|
|
483
|
-
const de_DescribeGroupMembershipCommand = async (output, context) => {
|
|
484
|
-
if (output.statusCode >= 300) {
|
|
485
|
-
return de_DescribeGroupMembershipCommandError(output, context);
|
|
486
|
-
}
|
|
487
|
-
const data = await parseBody(output.body, context);
|
|
488
|
-
let contents = {};
|
|
489
|
-
contents = (0, smithy_client_1._json)(data);
|
|
490
|
-
const response = {
|
|
491
|
-
$metadata: deserializeMetadata(output),
|
|
492
|
-
...contents,
|
|
493
|
-
};
|
|
494
|
-
return response;
|
|
495
|
-
};
|
|
496
|
-
exports.de_DescribeGroupMembershipCommand = de_DescribeGroupMembershipCommand;
|
|
497
|
-
const de_DescribeGroupMembershipCommandError = async (output, context) => {
|
|
498
|
-
const parsedOutput = {
|
|
499
|
-
...output,
|
|
500
|
-
body: await parseErrorBody(output.body, context),
|
|
501
|
-
};
|
|
502
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
503
|
-
switch (errorCode) {
|
|
504
|
-
case "AccessDeniedException":
|
|
505
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
506
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
507
|
-
case "InternalServerException":
|
|
508
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
509
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
510
|
-
case "ResourceNotFoundException":
|
|
511
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
512
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
513
|
-
case "ThrottlingException":
|
|
514
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
515
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
516
|
-
case "ValidationException":
|
|
517
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
518
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
519
|
-
default:
|
|
520
|
-
const parsedBody = parsedOutput.body;
|
|
521
|
-
return throwDefaultError({
|
|
522
|
-
output,
|
|
523
|
-
parsedBody,
|
|
524
|
-
errorCode,
|
|
525
|
-
});
|
|
526
|
-
}
|
|
527
|
-
};
|
|
528
|
-
const de_DescribeUserCommand = async (output, context) => {
|
|
529
|
-
if (output.statusCode >= 300) {
|
|
530
|
-
return de_DescribeUserCommandError(output, context);
|
|
531
|
-
}
|
|
532
|
-
const data = await parseBody(output.body, context);
|
|
533
|
-
let contents = {};
|
|
534
|
-
contents = (0, smithy_client_1._json)(data);
|
|
535
|
-
const response = {
|
|
536
|
-
$metadata: deserializeMetadata(output),
|
|
537
|
-
...contents,
|
|
538
|
-
};
|
|
539
|
-
return response;
|
|
540
|
-
};
|
|
541
|
-
exports.de_DescribeUserCommand = de_DescribeUserCommand;
|
|
542
|
-
const de_DescribeUserCommandError = async (output, context) => {
|
|
543
|
-
const parsedOutput = {
|
|
544
|
-
...output,
|
|
545
|
-
body: await parseErrorBody(output.body, context),
|
|
546
|
-
};
|
|
547
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
548
|
-
switch (errorCode) {
|
|
549
|
-
case "AccessDeniedException":
|
|
550
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
551
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
552
|
-
case "InternalServerException":
|
|
553
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
554
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
555
|
-
case "ResourceNotFoundException":
|
|
556
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
557
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
558
|
-
case "ThrottlingException":
|
|
559
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
560
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
561
|
-
case "ValidationException":
|
|
562
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
563
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
564
|
-
default:
|
|
565
|
-
const parsedBody = parsedOutput.body;
|
|
566
|
-
return throwDefaultError({
|
|
567
|
-
output,
|
|
568
|
-
parsedBody,
|
|
569
|
-
errorCode,
|
|
570
|
-
});
|
|
571
|
-
}
|
|
572
|
-
};
|
|
573
|
-
const de_GetGroupIdCommand = async (output, context) => {
|
|
574
|
-
if (output.statusCode >= 300) {
|
|
575
|
-
return de_GetGroupIdCommandError(output, context);
|
|
576
|
-
}
|
|
577
|
-
const data = await parseBody(output.body, context);
|
|
578
|
-
let contents = {};
|
|
579
|
-
contents = (0, smithy_client_1._json)(data);
|
|
580
|
-
const response = {
|
|
581
|
-
$metadata: deserializeMetadata(output),
|
|
582
|
-
...contents,
|
|
583
|
-
};
|
|
584
|
-
return response;
|
|
585
|
-
};
|
|
586
|
-
exports.de_GetGroupIdCommand = de_GetGroupIdCommand;
|
|
587
|
-
const de_GetGroupIdCommandError = async (output, context) => {
|
|
588
|
-
const parsedOutput = {
|
|
589
|
-
...output,
|
|
590
|
-
body: await parseErrorBody(output.body, context),
|
|
591
|
-
};
|
|
592
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
593
|
-
switch (errorCode) {
|
|
594
|
-
case "AccessDeniedException":
|
|
595
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
596
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
597
|
-
case "InternalServerException":
|
|
598
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
599
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
600
|
-
case "ResourceNotFoundException":
|
|
601
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
602
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
603
|
-
case "ThrottlingException":
|
|
604
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
605
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
606
|
-
case "ValidationException":
|
|
607
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
608
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
609
|
-
default:
|
|
610
|
-
const parsedBody = parsedOutput.body;
|
|
611
|
-
return throwDefaultError({
|
|
612
|
-
output,
|
|
613
|
-
parsedBody,
|
|
614
|
-
errorCode,
|
|
615
|
-
});
|
|
616
|
-
}
|
|
617
|
-
};
|
|
618
|
-
const de_GetGroupMembershipIdCommand = async (output, context) => {
|
|
619
|
-
if (output.statusCode >= 300) {
|
|
620
|
-
return de_GetGroupMembershipIdCommandError(output, context);
|
|
621
|
-
}
|
|
622
|
-
const data = await parseBody(output.body, context);
|
|
623
|
-
let contents = {};
|
|
624
|
-
contents = (0, smithy_client_1._json)(data);
|
|
625
|
-
const response = {
|
|
626
|
-
$metadata: deserializeMetadata(output),
|
|
627
|
-
...contents,
|
|
628
|
-
};
|
|
629
|
-
return response;
|
|
630
|
-
};
|
|
631
|
-
exports.de_GetGroupMembershipIdCommand = de_GetGroupMembershipIdCommand;
|
|
632
|
-
const de_GetGroupMembershipIdCommandError = async (output, context) => {
|
|
633
|
-
const parsedOutput = {
|
|
634
|
-
...output,
|
|
635
|
-
body: await parseErrorBody(output.body, context),
|
|
636
|
-
};
|
|
637
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
638
|
-
switch (errorCode) {
|
|
639
|
-
case "AccessDeniedException":
|
|
640
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
641
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
642
|
-
case "InternalServerException":
|
|
643
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
644
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
645
|
-
case "ResourceNotFoundException":
|
|
646
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
647
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
648
|
-
case "ThrottlingException":
|
|
649
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
650
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
651
|
-
case "ValidationException":
|
|
652
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
653
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
654
|
-
default:
|
|
655
|
-
const parsedBody = parsedOutput.body;
|
|
656
|
-
return throwDefaultError({
|
|
657
|
-
output,
|
|
658
|
-
parsedBody,
|
|
659
|
-
errorCode,
|
|
660
|
-
});
|
|
661
|
-
}
|
|
662
|
-
};
|
|
663
|
-
const de_GetUserIdCommand = async (output, context) => {
|
|
664
|
-
if (output.statusCode >= 300) {
|
|
665
|
-
return de_GetUserIdCommandError(output, context);
|
|
666
|
-
}
|
|
667
|
-
const data = await parseBody(output.body, context);
|
|
668
|
-
let contents = {};
|
|
669
|
-
contents = (0, smithy_client_1._json)(data);
|
|
670
|
-
const response = {
|
|
671
|
-
$metadata: deserializeMetadata(output),
|
|
672
|
-
...contents,
|
|
673
|
-
};
|
|
674
|
-
return response;
|
|
675
|
-
};
|
|
676
|
-
exports.de_GetUserIdCommand = de_GetUserIdCommand;
|
|
677
|
-
const de_GetUserIdCommandError = async (output, context) => {
|
|
678
|
-
const parsedOutput = {
|
|
679
|
-
...output,
|
|
680
|
-
body: await parseErrorBody(output.body, context),
|
|
681
|
-
};
|
|
682
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
683
|
-
switch (errorCode) {
|
|
684
|
-
case "AccessDeniedException":
|
|
685
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
686
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
687
|
-
case "InternalServerException":
|
|
688
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
689
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
690
|
-
case "ResourceNotFoundException":
|
|
691
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
692
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
693
|
-
case "ThrottlingException":
|
|
694
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
695
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
696
|
-
case "ValidationException":
|
|
697
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
698
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
699
|
-
default:
|
|
700
|
-
const parsedBody = parsedOutput.body;
|
|
701
|
-
return throwDefaultError({
|
|
702
|
-
output,
|
|
703
|
-
parsedBody,
|
|
704
|
-
errorCode,
|
|
705
|
-
});
|
|
706
|
-
}
|
|
707
|
-
};
|
|
708
|
-
const de_IsMemberInGroupsCommand = async (output, context) => {
|
|
709
|
-
if (output.statusCode >= 300) {
|
|
710
|
-
return de_IsMemberInGroupsCommandError(output, context);
|
|
711
|
-
}
|
|
712
|
-
const data = await parseBody(output.body, context);
|
|
713
|
-
let contents = {};
|
|
714
|
-
contents = (0, smithy_client_1._json)(data);
|
|
715
|
-
const response = {
|
|
716
|
-
$metadata: deserializeMetadata(output),
|
|
717
|
-
...contents,
|
|
718
|
-
};
|
|
719
|
-
return response;
|
|
720
|
-
};
|
|
721
|
-
exports.de_IsMemberInGroupsCommand = de_IsMemberInGroupsCommand;
|
|
722
|
-
const de_IsMemberInGroupsCommandError = async (output, context) => {
|
|
723
|
-
const parsedOutput = {
|
|
724
|
-
...output,
|
|
725
|
-
body: await parseErrorBody(output.body, context),
|
|
726
|
-
};
|
|
727
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
728
|
-
switch (errorCode) {
|
|
729
|
-
case "AccessDeniedException":
|
|
730
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
731
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
732
|
-
case "InternalServerException":
|
|
733
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
734
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
735
|
-
case "ResourceNotFoundException":
|
|
736
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
737
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
738
|
-
case "ThrottlingException":
|
|
739
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
740
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
741
|
-
case "ValidationException":
|
|
742
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
743
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
744
|
-
default:
|
|
745
|
-
const parsedBody = parsedOutput.body;
|
|
746
|
-
return throwDefaultError({
|
|
747
|
-
output,
|
|
748
|
-
parsedBody,
|
|
749
|
-
errorCode,
|
|
750
|
-
});
|
|
751
|
-
}
|
|
752
|
-
};
|
|
753
|
-
const de_ListGroupMembershipsCommand = async (output, context) => {
|
|
754
|
-
if (output.statusCode >= 300) {
|
|
755
|
-
return de_ListGroupMembershipsCommandError(output, context);
|
|
756
|
-
}
|
|
757
|
-
const data = await parseBody(output.body, context);
|
|
758
|
-
let contents = {};
|
|
759
|
-
contents = (0, smithy_client_1._json)(data);
|
|
760
|
-
const response = {
|
|
761
|
-
$metadata: deserializeMetadata(output),
|
|
762
|
-
...contents,
|
|
763
|
-
};
|
|
764
|
-
return response;
|
|
765
|
-
};
|
|
766
|
-
exports.de_ListGroupMembershipsCommand = de_ListGroupMembershipsCommand;
|
|
767
|
-
const de_ListGroupMembershipsCommandError = async (output, context) => {
|
|
768
|
-
const parsedOutput = {
|
|
769
|
-
...output,
|
|
770
|
-
body: await parseErrorBody(output.body, context),
|
|
771
|
-
};
|
|
772
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
773
|
-
switch (errorCode) {
|
|
774
|
-
case "AccessDeniedException":
|
|
775
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
776
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
777
|
-
case "InternalServerException":
|
|
778
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
779
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
780
|
-
case "ResourceNotFoundException":
|
|
781
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
782
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
783
|
-
case "ThrottlingException":
|
|
784
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
785
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
786
|
-
case "ValidationException":
|
|
787
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
788
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
789
|
-
default:
|
|
790
|
-
const parsedBody = parsedOutput.body;
|
|
791
|
-
return throwDefaultError({
|
|
792
|
-
output,
|
|
793
|
-
parsedBody,
|
|
794
|
-
errorCode,
|
|
795
|
-
});
|
|
796
|
-
}
|
|
797
|
-
};
|
|
798
|
-
const de_ListGroupMembershipsForMemberCommand = async (output, context) => {
|
|
799
|
-
if (output.statusCode >= 300) {
|
|
800
|
-
return de_ListGroupMembershipsForMemberCommandError(output, context);
|
|
801
|
-
}
|
|
802
|
-
const data = await parseBody(output.body, context);
|
|
803
|
-
let contents = {};
|
|
804
|
-
contents = (0, smithy_client_1._json)(data);
|
|
805
|
-
const response = {
|
|
806
|
-
$metadata: deserializeMetadata(output),
|
|
807
|
-
...contents,
|
|
808
|
-
};
|
|
809
|
-
return response;
|
|
810
|
-
};
|
|
811
|
-
exports.de_ListGroupMembershipsForMemberCommand = de_ListGroupMembershipsForMemberCommand;
|
|
812
|
-
const de_ListGroupMembershipsForMemberCommandError = async (output, context) => {
|
|
813
|
-
const parsedOutput = {
|
|
814
|
-
...output,
|
|
815
|
-
body: await parseErrorBody(output.body, context),
|
|
816
|
-
};
|
|
817
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
818
|
-
switch (errorCode) {
|
|
819
|
-
case "AccessDeniedException":
|
|
820
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
821
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
822
|
-
case "InternalServerException":
|
|
823
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
824
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
825
|
-
case "ResourceNotFoundException":
|
|
826
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
827
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
828
|
-
case "ThrottlingException":
|
|
829
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
830
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
831
|
-
case "ValidationException":
|
|
832
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
833
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
834
|
-
default:
|
|
835
|
-
const parsedBody = parsedOutput.body;
|
|
836
|
-
return throwDefaultError({
|
|
837
|
-
output,
|
|
838
|
-
parsedBody,
|
|
839
|
-
errorCode,
|
|
840
|
-
});
|
|
841
|
-
}
|
|
842
|
-
};
|
|
843
|
-
const de_ListGroupsCommand = async (output, context) => {
|
|
844
|
-
if (output.statusCode >= 300) {
|
|
845
|
-
return de_ListGroupsCommandError(output, context);
|
|
846
|
-
}
|
|
847
|
-
const data = await parseBody(output.body, context);
|
|
848
|
-
let contents = {};
|
|
849
|
-
contents = (0, smithy_client_1._json)(data);
|
|
850
|
-
const response = {
|
|
851
|
-
$metadata: deserializeMetadata(output),
|
|
852
|
-
...contents,
|
|
853
|
-
};
|
|
854
|
-
return response;
|
|
855
|
-
};
|
|
856
|
-
exports.de_ListGroupsCommand = de_ListGroupsCommand;
|
|
857
|
-
const de_ListGroupsCommandError = async (output, context) => {
|
|
858
|
-
const parsedOutput = {
|
|
859
|
-
...output,
|
|
860
|
-
body: await parseErrorBody(output.body, context),
|
|
861
|
-
};
|
|
862
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
863
|
-
switch (errorCode) {
|
|
864
|
-
case "AccessDeniedException":
|
|
865
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
866
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
867
|
-
case "InternalServerException":
|
|
868
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
869
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
870
|
-
case "ResourceNotFoundException":
|
|
871
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
872
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
873
|
-
case "ThrottlingException":
|
|
874
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
875
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
876
|
-
case "ValidationException":
|
|
877
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
878
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
879
|
-
default:
|
|
880
|
-
const parsedBody = parsedOutput.body;
|
|
881
|
-
return throwDefaultError({
|
|
882
|
-
output,
|
|
883
|
-
parsedBody,
|
|
884
|
-
errorCode,
|
|
885
|
-
});
|
|
886
|
-
}
|
|
887
|
-
};
|
|
888
|
-
const de_ListUsersCommand = async (output, context) => {
|
|
889
|
-
if (output.statusCode >= 300) {
|
|
890
|
-
return de_ListUsersCommandError(output, context);
|
|
891
|
-
}
|
|
892
|
-
const data = await parseBody(output.body, context);
|
|
893
|
-
let contents = {};
|
|
894
|
-
contents = (0, smithy_client_1._json)(data);
|
|
895
|
-
const response = {
|
|
896
|
-
$metadata: deserializeMetadata(output),
|
|
897
|
-
...contents,
|
|
898
|
-
};
|
|
899
|
-
return response;
|
|
900
|
-
};
|
|
901
|
-
exports.de_ListUsersCommand = de_ListUsersCommand;
|
|
902
|
-
const de_ListUsersCommandError = async (output, context) => {
|
|
903
|
-
const parsedOutput = {
|
|
904
|
-
...output,
|
|
905
|
-
body: await parseErrorBody(output.body, context),
|
|
906
|
-
};
|
|
907
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
908
|
-
switch (errorCode) {
|
|
909
|
-
case "AccessDeniedException":
|
|
910
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
911
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
912
|
-
case "InternalServerException":
|
|
913
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
914
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
915
|
-
case "ResourceNotFoundException":
|
|
916
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
917
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
918
|
-
case "ThrottlingException":
|
|
919
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
920
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
921
|
-
case "ValidationException":
|
|
922
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
923
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
924
|
-
default:
|
|
925
|
-
const parsedBody = parsedOutput.body;
|
|
926
|
-
return throwDefaultError({
|
|
927
|
-
output,
|
|
928
|
-
parsedBody,
|
|
929
|
-
errorCode,
|
|
930
|
-
});
|
|
931
|
-
}
|
|
932
|
-
};
|
|
933
|
-
const de_UpdateGroupCommand = async (output, context) => {
|
|
934
|
-
if (output.statusCode >= 300) {
|
|
935
|
-
return de_UpdateGroupCommandError(output, context);
|
|
936
|
-
}
|
|
937
|
-
const data = await parseBody(output.body, context);
|
|
938
|
-
let contents = {};
|
|
939
|
-
contents = (0, smithy_client_1._json)(data);
|
|
940
|
-
const response = {
|
|
941
|
-
$metadata: deserializeMetadata(output),
|
|
942
|
-
...contents,
|
|
943
|
-
};
|
|
944
|
-
return response;
|
|
945
|
-
};
|
|
946
|
-
exports.de_UpdateGroupCommand = de_UpdateGroupCommand;
|
|
947
|
-
const de_UpdateGroupCommandError = async (output, context) => {
|
|
948
|
-
const parsedOutput = {
|
|
949
|
-
...output,
|
|
950
|
-
body: await parseErrorBody(output.body, context),
|
|
951
|
-
};
|
|
952
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
953
|
-
switch (errorCode) {
|
|
954
|
-
case "AccessDeniedException":
|
|
955
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
956
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
957
|
-
case "ConflictException":
|
|
958
|
-
case "com.amazonaws.identitystore#ConflictException":
|
|
959
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
960
|
-
case "InternalServerException":
|
|
961
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
962
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
963
|
-
case "ResourceNotFoundException":
|
|
964
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
965
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
966
|
-
case "ServiceQuotaExceededException":
|
|
967
|
-
case "com.amazonaws.identitystore#ServiceQuotaExceededException":
|
|
968
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
969
|
-
case "ThrottlingException":
|
|
970
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
971
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
972
|
-
case "ValidationException":
|
|
973
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
974
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
975
|
-
default:
|
|
976
|
-
const parsedBody = parsedOutput.body;
|
|
977
|
-
return throwDefaultError({
|
|
978
|
-
output,
|
|
979
|
-
parsedBody,
|
|
980
|
-
errorCode,
|
|
981
|
-
});
|
|
982
|
-
}
|
|
983
|
-
};
|
|
984
|
-
const de_UpdateUserCommand = async (output, context) => {
|
|
985
|
-
if (output.statusCode >= 300) {
|
|
986
|
-
return de_UpdateUserCommandError(output, context);
|
|
987
|
-
}
|
|
988
|
-
const data = await parseBody(output.body, context);
|
|
989
|
-
let contents = {};
|
|
990
|
-
contents = (0, smithy_client_1._json)(data);
|
|
991
|
-
const response = {
|
|
992
|
-
$metadata: deserializeMetadata(output),
|
|
993
|
-
...contents,
|
|
994
|
-
};
|
|
995
|
-
return response;
|
|
996
|
-
};
|
|
997
|
-
exports.de_UpdateUserCommand = de_UpdateUserCommand;
|
|
998
|
-
const de_UpdateUserCommandError = async (output, context) => {
|
|
999
|
-
const parsedOutput = {
|
|
1000
|
-
...output,
|
|
1001
|
-
body: await parseErrorBody(output.body, context),
|
|
1002
|
-
};
|
|
1003
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1004
|
-
switch (errorCode) {
|
|
1005
|
-
case "AccessDeniedException":
|
|
1006
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
1007
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1008
|
-
case "ConflictException":
|
|
1009
|
-
case "com.amazonaws.identitystore#ConflictException":
|
|
1010
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1011
|
-
case "InternalServerException":
|
|
1012
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
1013
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1014
|
-
case "ResourceNotFoundException":
|
|
1015
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
1016
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1017
|
-
case "ServiceQuotaExceededException":
|
|
1018
|
-
case "com.amazonaws.identitystore#ServiceQuotaExceededException":
|
|
1019
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1020
|
-
case "ThrottlingException":
|
|
1021
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
1022
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1023
|
-
case "ValidationException":
|
|
1024
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
1025
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1026
|
-
default:
|
|
1027
|
-
const parsedBody = parsedOutput.body;
|
|
1028
|
-
return throwDefaultError({
|
|
1029
|
-
output,
|
|
1030
|
-
parsedBody,
|
|
1031
|
-
errorCode,
|
|
1032
|
-
});
|
|
1033
|
-
}
|
|
1034
|
-
};
|
|
1035
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1036
|
-
const body = parsedOutput.body;
|
|
1037
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1038
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
1039
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1040
|
-
...deserialized,
|
|
1041
|
-
});
|
|
1042
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1043
|
-
};
|
|
1044
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1045
|
-
const body = parsedOutput.body;
|
|
1046
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1047
|
-
const exception = new models_0_1.ConflictException({
|
|
1048
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1049
|
-
...deserialized,
|
|
1050
|
-
});
|
|
1051
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1052
|
-
};
|
|
1053
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1054
|
-
const body = parsedOutput.body;
|
|
1055
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1056
|
-
const exception = new models_0_1.InternalServerException({
|
|
1057
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1058
|
-
...deserialized,
|
|
1059
|
-
});
|
|
1060
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1061
|
-
};
|
|
1062
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1063
|
-
const body = parsedOutput.body;
|
|
1064
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1065
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
1066
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1067
|
-
...deserialized,
|
|
1068
|
-
});
|
|
1069
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1070
|
-
};
|
|
1071
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1072
|
-
const body = parsedOutput.body;
|
|
1073
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1074
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1075
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1076
|
-
...deserialized,
|
|
1077
|
-
});
|
|
1078
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1079
|
-
};
|
|
1080
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1081
|
-
const body = parsedOutput.body;
|
|
1082
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1083
|
-
const exception = new models_0_1.ThrottlingException({
|
|
1084
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1085
|
-
...deserialized,
|
|
1086
|
-
});
|
|
1087
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1088
|
-
};
|
|
1089
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1090
|
-
const body = parsedOutput.body;
|
|
1091
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1092
|
-
const exception = new models_0_1.ValidationException({
|
|
1093
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1094
|
-
...deserialized,
|
|
1095
|
-
});
|
|
1096
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1097
|
-
};
|
|
1098
|
-
const se_AlternateIdentifier = (input, context) => {
|
|
1099
|
-
return models_0_1.AlternateIdentifier.visit(input, {
|
|
1100
|
-
ExternalId: (value) => ({ ExternalId: (0, smithy_client_1._json)(value) }),
|
|
1101
|
-
UniqueAttribute: (value) => ({ UniqueAttribute: se_UniqueAttribute(value, context) }),
|
|
1102
|
-
_: (name, value) => ({ name: value }),
|
|
1103
|
-
});
|
|
1104
|
-
};
|
|
1105
|
-
const se_AttributeOperation = (input, context) => {
|
|
1106
|
-
return (0, smithy_client_1.take)(input, {
|
|
1107
|
-
AttributePath: [],
|
|
1108
|
-
AttributeValue: (_) => se_AttributeValue(_, context),
|
|
1109
|
-
});
|
|
1110
|
-
};
|
|
1111
|
-
const se_AttributeOperations = (input, context) => {
|
|
1112
|
-
return input
|
|
1113
|
-
.filter((e) => e != null)
|
|
1114
|
-
.map((entry) => {
|
|
1115
|
-
return se_AttributeOperation(entry, context);
|
|
1116
|
-
});
|
|
1117
|
-
};
|
|
1118
|
-
const se_AttributeValue = (input, context) => {
|
|
1119
|
-
return input;
|
|
1120
|
-
};
|
|
1121
|
-
const se_GetGroupIdRequest = (input, context) => {
|
|
1122
|
-
return (0, smithy_client_1.take)(input, {
|
|
1123
|
-
AlternateIdentifier: (_) => se_AlternateIdentifier(_, context),
|
|
1124
|
-
IdentityStoreId: [],
|
|
1125
|
-
});
|
|
1126
|
-
};
|
|
1127
|
-
const se_GetUserIdRequest = (input, context) => {
|
|
1128
|
-
return (0, smithy_client_1.take)(input, {
|
|
1129
|
-
AlternateIdentifier: (_) => se_AlternateIdentifier(_, context),
|
|
1130
|
-
IdentityStoreId: [],
|
|
1131
|
-
});
|
|
1132
|
-
};
|
|
1133
|
-
const se_UniqueAttribute = (input, context) => {
|
|
1134
|
-
return (0, smithy_client_1.take)(input, {
|
|
1135
|
-
AttributePath: [],
|
|
1136
|
-
AttributeValue: (_) => se_AttributeValue(_, context),
|
|
1137
|
-
});
|
|
1138
|
-
};
|
|
1139
|
-
const se_UpdateGroupRequest = (input, context) => {
|
|
1140
|
-
return (0, smithy_client_1.take)(input, {
|
|
1141
|
-
GroupId: [],
|
|
1142
|
-
IdentityStoreId: [],
|
|
1143
|
-
Operations: (_) => se_AttributeOperations(_, context),
|
|
1144
|
-
});
|
|
1145
|
-
};
|
|
1146
|
-
const se_UpdateUserRequest = (input, context) => {
|
|
1147
|
-
return (0, smithy_client_1.take)(input, {
|
|
1148
|
-
IdentityStoreId: [],
|
|
1149
|
-
Operations: (_) => se_AttributeOperations(_, context),
|
|
1150
|
-
UserId: [],
|
|
1151
|
-
});
|
|
1152
|
-
};
|
|
1153
|
-
const deserializeMetadata = (output) => ({
|
|
1154
|
-
httpStatusCode: output.statusCode,
|
|
1155
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1156
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1157
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1158
|
-
});
|
|
1159
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1160
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(IdentitystoreServiceException_1.IdentitystoreServiceException);
|
|
1161
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1162
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1163
|
-
const contents = {
|
|
1164
|
-
protocol,
|
|
1165
|
-
hostname,
|
|
1166
|
-
port,
|
|
1167
|
-
method: "POST",
|
|
1168
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1169
|
-
headers,
|
|
1170
|
-
};
|
|
1171
|
-
if (resolvedHostname !== undefined) {
|
|
1172
|
-
contents.hostname = resolvedHostname;
|
|
1173
|
-
}
|
|
1174
|
-
if (body !== undefined) {
|
|
1175
|
-
contents.body = body;
|
|
1176
|
-
}
|
|
1177
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
1178
|
-
};
|
|
1179
|
-
function sharedHeaders(operation) {
|
|
1180
|
-
return {
|
|
1181
|
-
"content-type": "application/x-amz-json-1.1",
|
|
1182
|
-
"x-amz-target": `AWSIdentityStore.${operation}`,
|
|
1183
|
-
};
|
|
1184
|
-
}
|
|
1185
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1186
|
-
if (encoded.length) {
|
|
1187
|
-
return JSON.parse(encoded);
|
|
1188
|
-
}
|
|
1189
|
-
return {};
|
|
1190
|
-
});
|
|
1191
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1192
|
-
const value = await parseBody(errorBody, context);
|
|
1193
|
-
value.message = value.message ?? value.Message;
|
|
1194
|
-
return value;
|
|
1195
|
-
};
|
|
1196
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1197
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1198
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1199
|
-
let cleanValue = rawValue;
|
|
1200
|
-
if (typeof cleanValue === "number") {
|
|
1201
|
-
cleanValue = cleanValue.toString();
|
|
1202
|
-
}
|
|
1203
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1204
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1205
|
-
}
|
|
1206
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1207
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1208
|
-
}
|
|
1209
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1210
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1211
|
-
}
|
|
1212
|
-
return cleanValue;
|
|
1213
|
-
};
|
|
1214
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1215
|
-
if (headerKey !== undefined) {
|
|
1216
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1217
|
-
}
|
|
1218
|
-
if (data.code !== undefined) {
|
|
1219
|
-
return sanitizeErrorCode(data.code);
|
|
1220
|
-
}
|
|
1221
|
-
if (data["__type"] !== undefined) {
|
|
1222
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1223
|
-
}
|
|
1224
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|