@aws-sdk/client-identitystore 3.504.0 → 3.507.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/index.js +39 -630
- package/dist-es/protocols/Aws_json1_1.js +31 -622
- package/package.json +3 -3
|
@@ -118,7 +118,7 @@ export const se_UpdateUserCommand = async (input, context) => {
|
|
|
118
118
|
};
|
|
119
119
|
export const de_CreateGroupCommand = async (output, context) => {
|
|
120
120
|
if (output.statusCode >= 300) {
|
|
121
|
-
return
|
|
121
|
+
return de_CommandError(output, context);
|
|
122
122
|
}
|
|
123
123
|
const data = await parseBody(output.body, context);
|
|
124
124
|
let contents = {};
|
|
@@ -129,46 +129,9 @@ export const de_CreateGroupCommand = async (output, context) => {
|
|
|
129
129
|
};
|
|
130
130
|
return response;
|
|
131
131
|
};
|
|
132
|
-
const de_CreateGroupCommandError = async (output, context) => {
|
|
133
|
-
const parsedOutput = {
|
|
134
|
-
...output,
|
|
135
|
-
body: await parseErrorBody(output.body, context),
|
|
136
|
-
};
|
|
137
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
138
|
-
switch (errorCode) {
|
|
139
|
-
case "AccessDeniedException":
|
|
140
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
141
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
142
|
-
case "ConflictException":
|
|
143
|
-
case "com.amazonaws.identitystore#ConflictException":
|
|
144
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
145
|
-
case "InternalServerException":
|
|
146
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
147
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
148
|
-
case "ResourceNotFoundException":
|
|
149
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
150
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
151
|
-
case "ServiceQuotaExceededException":
|
|
152
|
-
case "com.amazonaws.identitystore#ServiceQuotaExceededException":
|
|
153
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
154
|
-
case "ThrottlingException":
|
|
155
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
156
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
157
|
-
case "ValidationException":
|
|
158
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
159
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
160
|
-
default:
|
|
161
|
-
const parsedBody = parsedOutput.body;
|
|
162
|
-
return throwDefaultError({
|
|
163
|
-
output,
|
|
164
|
-
parsedBody,
|
|
165
|
-
errorCode,
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
};
|
|
169
132
|
export const de_CreateGroupMembershipCommand = async (output, context) => {
|
|
170
133
|
if (output.statusCode >= 300) {
|
|
171
|
-
return
|
|
134
|
+
return de_CommandError(output, context);
|
|
172
135
|
}
|
|
173
136
|
const data = await parseBody(output.body, context);
|
|
174
137
|
let contents = {};
|
|
@@ -179,46 +142,9 @@ export const de_CreateGroupMembershipCommand = async (output, context) => {
|
|
|
179
142
|
};
|
|
180
143
|
return response;
|
|
181
144
|
};
|
|
182
|
-
const de_CreateGroupMembershipCommandError = async (output, context) => {
|
|
183
|
-
const parsedOutput = {
|
|
184
|
-
...output,
|
|
185
|
-
body: await parseErrorBody(output.body, context),
|
|
186
|
-
};
|
|
187
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
188
|
-
switch (errorCode) {
|
|
189
|
-
case "AccessDeniedException":
|
|
190
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
191
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
192
|
-
case "ConflictException":
|
|
193
|
-
case "com.amazonaws.identitystore#ConflictException":
|
|
194
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
195
|
-
case "InternalServerException":
|
|
196
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
197
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
198
|
-
case "ResourceNotFoundException":
|
|
199
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
200
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
201
|
-
case "ServiceQuotaExceededException":
|
|
202
|
-
case "com.amazonaws.identitystore#ServiceQuotaExceededException":
|
|
203
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
204
|
-
case "ThrottlingException":
|
|
205
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
206
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
207
|
-
case "ValidationException":
|
|
208
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
209
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
210
|
-
default:
|
|
211
|
-
const parsedBody = parsedOutput.body;
|
|
212
|
-
return throwDefaultError({
|
|
213
|
-
output,
|
|
214
|
-
parsedBody,
|
|
215
|
-
errorCode,
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
145
|
export const de_CreateUserCommand = async (output, context) => {
|
|
220
146
|
if (output.statusCode >= 300) {
|
|
221
|
-
return
|
|
147
|
+
return de_CommandError(output, context);
|
|
222
148
|
}
|
|
223
149
|
const data = await parseBody(output.body, context);
|
|
224
150
|
let contents = {};
|
|
@@ -229,46 +155,9 @@ export const de_CreateUserCommand = async (output, context) => {
|
|
|
229
155
|
};
|
|
230
156
|
return response;
|
|
231
157
|
};
|
|
232
|
-
const de_CreateUserCommandError = async (output, context) => {
|
|
233
|
-
const parsedOutput = {
|
|
234
|
-
...output,
|
|
235
|
-
body: await parseErrorBody(output.body, context),
|
|
236
|
-
};
|
|
237
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
238
|
-
switch (errorCode) {
|
|
239
|
-
case "AccessDeniedException":
|
|
240
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
241
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
242
|
-
case "ConflictException":
|
|
243
|
-
case "com.amazonaws.identitystore#ConflictException":
|
|
244
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
245
|
-
case "InternalServerException":
|
|
246
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
247
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
248
|
-
case "ResourceNotFoundException":
|
|
249
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
250
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
251
|
-
case "ServiceQuotaExceededException":
|
|
252
|
-
case "com.amazonaws.identitystore#ServiceQuotaExceededException":
|
|
253
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
254
|
-
case "ThrottlingException":
|
|
255
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
256
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
257
|
-
case "ValidationException":
|
|
258
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
259
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
260
|
-
default:
|
|
261
|
-
const parsedBody = parsedOutput.body;
|
|
262
|
-
return throwDefaultError({
|
|
263
|
-
output,
|
|
264
|
-
parsedBody,
|
|
265
|
-
errorCode,
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
|
-
};
|
|
269
158
|
export const de_DeleteGroupCommand = async (output, context) => {
|
|
270
159
|
if (output.statusCode >= 300) {
|
|
271
|
-
return
|
|
160
|
+
return de_CommandError(output, context);
|
|
272
161
|
}
|
|
273
162
|
const data = await parseBody(output.body, context);
|
|
274
163
|
let contents = {};
|
|
@@ -279,43 +168,9 @@ export const de_DeleteGroupCommand = async (output, context) => {
|
|
|
279
168
|
};
|
|
280
169
|
return response;
|
|
281
170
|
};
|
|
282
|
-
const de_DeleteGroupCommandError = async (output, context) => {
|
|
283
|
-
const parsedOutput = {
|
|
284
|
-
...output,
|
|
285
|
-
body: await parseErrorBody(output.body, context),
|
|
286
|
-
};
|
|
287
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
288
|
-
switch (errorCode) {
|
|
289
|
-
case "AccessDeniedException":
|
|
290
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
291
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
292
|
-
case "ConflictException":
|
|
293
|
-
case "com.amazonaws.identitystore#ConflictException":
|
|
294
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
295
|
-
case "InternalServerException":
|
|
296
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
297
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
298
|
-
case "ResourceNotFoundException":
|
|
299
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
300
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
301
|
-
case "ThrottlingException":
|
|
302
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
303
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
304
|
-
case "ValidationException":
|
|
305
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
306
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
307
|
-
default:
|
|
308
|
-
const parsedBody = parsedOutput.body;
|
|
309
|
-
return throwDefaultError({
|
|
310
|
-
output,
|
|
311
|
-
parsedBody,
|
|
312
|
-
errorCode,
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
};
|
|
316
171
|
export const de_DeleteGroupMembershipCommand = async (output, context) => {
|
|
317
172
|
if (output.statusCode >= 300) {
|
|
318
|
-
return
|
|
173
|
+
return de_CommandError(output, context);
|
|
319
174
|
}
|
|
320
175
|
const data = await parseBody(output.body, context);
|
|
321
176
|
let contents = {};
|
|
@@ -326,43 +181,9 @@ export const de_DeleteGroupMembershipCommand = async (output, context) => {
|
|
|
326
181
|
};
|
|
327
182
|
return response;
|
|
328
183
|
};
|
|
329
|
-
const de_DeleteGroupMembershipCommandError = async (output, context) => {
|
|
330
|
-
const parsedOutput = {
|
|
331
|
-
...output,
|
|
332
|
-
body: await parseErrorBody(output.body, context),
|
|
333
|
-
};
|
|
334
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
335
|
-
switch (errorCode) {
|
|
336
|
-
case "AccessDeniedException":
|
|
337
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
338
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
339
|
-
case "ConflictException":
|
|
340
|
-
case "com.amazonaws.identitystore#ConflictException":
|
|
341
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
342
|
-
case "InternalServerException":
|
|
343
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
344
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
345
|
-
case "ResourceNotFoundException":
|
|
346
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
347
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
348
|
-
case "ThrottlingException":
|
|
349
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
350
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
351
|
-
case "ValidationException":
|
|
352
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
353
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
354
|
-
default:
|
|
355
|
-
const parsedBody = parsedOutput.body;
|
|
356
|
-
return throwDefaultError({
|
|
357
|
-
output,
|
|
358
|
-
parsedBody,
|
|
359
|
-
errorCode,
|
|
360
|
-
});
|
|
361
|
-
}
|
|
362
|
-
};
|
|
363
184
|
export const de_DeleteUserCommand = async (output, context) => {
|
|
364
185
|
if (output.statusCode >= 300) {
|
|
365
|
-
return
|
|
186
|
+
return de_CommandError(output, context);
|
|
366
187
|
}
|
|
367
188
|
const data = await parseBody(output.body, context);
|
|
368
189
|
let contents = {};
|
|
@@ -373,43 +194,9 @@ export const de_DeleteUserCommand = async (output, context) => {
|
|
|
373
194
|
};
|
|
374
195
|
return response;
|
|
375
196
|
};
|
|
376
|
-
const de_DeleteUserCommandError = async (output, context) => {
|
|
377
|
-
const parsedOutput = {
|
|
378
|
-
...output,
|
|
379
|
-
body: await parseErrorBody(output.body, context),
|
|
380
|
-
};
|
|
381
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
382
|
-
switch (errorCode) {
|
|
383
|
-
case "AccessDeniedException":
|
|
384
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
385
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
386
|
-
case "ConflictException":
|
|
387
|
-
case "com.amazonaws.identitystore#ConflictException":
|
|
388
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
389
|
-
case "InternalServerException":
|
|
390
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
391
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
392
|
-
case "ResourceNotFoundException":
|
|
393
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
394
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
395
|
-
case "ThrottlingException":
|
|
396
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
397
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
398
|
-
case "ValidationException":
|
|
399
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
400
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
401
|
-
default:
|
|
402
|
-
const parsedBody = parsedOutput.body;
|
|
403
|
-
return throwDefaultError({
|
|
404
|
-
output,
|
|
405
|
-
parsedBody,
|
|
406
|
-
errorCode,
|
|
407
|
-
});
|
|
408
|
-
}
|
|
409
|
-
};
|
|
410
197
|
export const de_DescribeGroupCommand = async (output, context) => {
|
|
411
198
|
if (output.statusCode >= 300) {
|
|
412
|
-
return
|
|
199
|
+
return de_CommandError(output, context);
|
|
413
200
|
}
|
|
414
201
|
const data = await parseBody(output.body, context);
|
|
415
202
|
let contents = {};
|
|
@@ -420,40 +207,9 @@ export const de_DescribeGroupCommand = async (output, context) => {
|
|
|
420
207
|
};
|
|
421
208
|
return response;
|
|
422
209
|
};
|
|
423
|
-
const de_DescribeGroupCommandError = async (output, context) => {
|
|
424
|
-
const parsedOutput = {
|
|
425
|
-
...output,
|
|
426
|
-
body: await parseErrorBody(output.body, context),
|
|
427
|
-
};
|
|
428
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
429
|
-
switch (errorCode) {
|
|
430
|
-
case "AccessDeniedException":
|
|
431
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
432
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
433
|
-
case "InternalServerException":
|
|
434
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
435
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
436
|
-
case "ResourceNotFoundException":
|
|
437
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
438
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
439
|
-
case "ThrottlingException":
|
|
440
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
441
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
442
|
-
case "ValidationException":
|
|
443
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
444
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
445
|
-
default:
|
|
446
|
-
const parsedBody = parsedOutput.body;
|
|
447
|
-
return throwDefaultError({
|
|
448
|
-
output,
|
|
449
|
-
parsedBody,
|
|
450
|
-
errorCode,
|
|
451
|
-
});
|
|
452
|
-
}
|
|
453
|
-
};
|
|
454
210
|
export const de_DescribeGroupMembershipCommand = async (output, context) => {
|
|
455
211
|
if (output.statusCode >= 300) {
|
|
456
|
-
return
|
|
212
|
+
return de_CommandError(output, context);
|
|
457
213
|
}
|
|
458
214
|
const data = await parseBody(output.body, context);
|
|
459
215
|
let contents = {};
|
|
@@ -464,84 +220,9 @@ export const de_DescribeGroupMembershipCommand = async (output, context) => {
|
|
|
464
220
|
};
|
|
465
221
|
return response;
|
|
466
222
|
};
|
|
467
|
-
const de_DescribeGroupMembershipCommandError = async (output, context) => {
|
|
468
|
-
const parsedOutput = {
|
|
469
|
-
...output,
|
|
470
|
-
body: await parseErrorBody(output.body, context),
|
|
471
|
-
};
|
|
472
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
473
|
-
switch (errorCode) {
|
|
474
|
-
case "AccessDeniedException":
|
|
475
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
476
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
477
|
-
case "InternalServerException":
|
|
478
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
479
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
480
|
-
case "ResourceNotFoundException":
|
|
481
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
482
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
483
|
-
case "ThrottlingException":
|
|
484
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
485
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
486
|
-
case "ValidationException":
|
|
487
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
488
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
489
|
-
default:
|
|
490
|
-
const parsedBody = parsedOutput.body;
|
|
491
|
-
return throwDefaultError({
|
|
492
|
-
output,
|
|
493
|
-
parsedBody,
|
|
494
|
-
errorCode,
|
|
495
|
-
});
|
|
496
|
-
}
|
|
497
|
-
};
|
|
498
223
|
export const de_DescribeUserCommand = async (output, context) => {
|
|
499
224
|
if (output.statusCode >= 300) {
|
|
500
|
-
return
|
|
501
|
-
}
|
|
502
|
-
const data = await parseBody(output.body, context);
|
|
503
|
-
let contents = {};
|
|
504
|
-
contents = _json(data);
|
|
505
|
-
const response = {
|
|
506
|
-
$metadata: deserializeMetadata(output),
|
|
507
|
-
...contents,
|
|
508
|
-
};
|
|
509
|
-
return response;
|
|
510
|
-
};
|
|
511
|
-
const de_DescribeUserCommandError = async (output, context) => {
|
|
512
|
-
const parsedOutput = {
|
|
513
|
-
...output,
|
|
514
|
-
body: await parseErrorBody(output.body, context),
|
|
515
|
-
};
|
|
516
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
517
|
-
switch (errorCode) {
|
|
518
|
-
case "AccessDeniedException":
|
|
519
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
520
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
521
|
-
case "InternalServerException":
|
|
522
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
523
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
524
|
-
case "ResourceNotFoundException":
|
|
525
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
526
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
527
|
-
case "ThrottlingException":
|
|
528
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
529
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
530
|
-
case "ValidationException":
|
|
531
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
532
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
533
|
-
default:
|
|
534
|
-
const parsedBody = parsedOutput.body;
|
|
535
|
-
return throwDefaultError({
|
|
536
|
-
output,
|
|
537
|
-
parsedBody,
|
|
538
|
-
errorCode,
|
|
539
|
-
});
|
|
540
|
-
}
|
|
541
|
-
};
|
|
542
|
-
export const de_GetGroupIdCommand = async (output, context) => {
|
|
543
|
-
if (output.statusCode >= 300) {
|
|
544
|
-
return de_GetGroupIdCommandError(output, context);
|
|
225
|
+
return de_CommandError(output, context);
|
|
545
226
|
}
|
|
546
227
|
const data = await parseBody(output.body, context);
|
|
547
228
|
let contents = {};
|
|
@@ -552,40 +233,9 @@ export const de_GetGroupIdCommand = async (output, context) => {
|
|
|
552
233
|
};
|
|
553
234
|
return response;
|
|
554
235
|
};
|
|
555
|
-
const
|
|
556
|
-
const parsedOutput = {
|
|
557
|
-
...output,
|
|
558
|
-
body: await parseErrorBody(output.body, context),
|
|
559
|
-
};
|
|
560
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
561
|
-
switch (errorCode) {
|
|
562
|
-
case "AccessDeniedException":
|
|
563
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
564
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
565
|
-
case "InternalServerException":
|
|
566
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
567
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
568
|
-
case "ResourceNotFoundException":
|
|
569
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
570
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
571
|
-
case "ThrottlingException":
|
|
572
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
573
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
574
|
-
case "ValidationException":
|
|
575
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
576
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
577
|
-
default:
|
|
578
|
-
const parsedBody = parsedOutput.body;
|
|
579
|
-
return throwDefaultError({
|
|
580
|
-
output,
|
|
581
|
-
parsedBody,
|
|
582
|
-
errorCode,
|
|
583
|
-
});
|
|
584
|
-
}
|
|
585
|
-
};
|
|
586
|
-
export const de_GetGroupMembershipIdCommand = async (output, context) => {
|
|
236
|
+
export const de_GetGroupIdCommand = async (output, context) => {
|
|
587
237
|
if (output.statusCode >= 300) {
|
|
588
|
-
return
|
|
238
|
+
return de_CommandError(output, context);
|
|
589
239
|
}
|
|
590
240
|
const data = await parseBody(output.body, context);
|
|
591
241
|
let contents = {};
|
|
@@ -596,40 +246,22 @@ export const de_GetGroupMembershipIdCommand = async (output, context) => {
|
|
|
596
246
|
};
|
|
597
247
|
return response;
|
|
598
248
|
};
|
|
599
|
-
const
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
body: await parseErrorBody(output.body, context),
|
|
603
|
-
};
|
|
604
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
605
|
-
switch (errorCode) {
|
|
606
|
-
case "AccessDeniedException":
|
|
607
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
608
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
609
|
-
case "InternalServerException":
|
|
610
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
611
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
612
|
-
case "ResourceNotFoundException":
|
|
613
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
614
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
615
|
-
case "ThrottlingException":
|
|
616
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
617
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
618
|
-
case "ValidationException":
|
|
619
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
620
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
621
|
-
default:
|
|
622
|
-
const parsedBody = parsedOutput.body;
|
|
623
|
-
return throwDefaultError({
|
|
624
|
-
output,
|
|
625
|
-
parsedBody,
|
|
626
|
-
errorCode,
|
|
627
|
-
});
|
|
249
|
+
export const de_GetGroupMembershipIdCommand = async (output, context) => {
|
|
250
|
+
if (output.statusCode >= 300) {
|
|
251
|
+
return de_CommandError(output, context);
|
|
628
252
|
}
|
|
253
|
+
const data = await parseBody(output.body, context);
|
|
254
|
+
let contents = {};
|
|
255
|
+
contents = _json(data);
|
|
256
|
+
const response = {
|
|
257
|
+
$metadata: deserializeMetadata(output),
|
|
258
|
+
...contents,
|
|
259
|
+
};
|
|
260
|
+
return response;
|
|
629
261
|
};
|
|
630
262
|
export const de_GetUserIdCommand = async (output, context) => {
|
|
631
263
|
if (output.statusCode >= 300) {
|
|
632
|
-
return
|
|
264
|
+
return de_CommandError(output, context);
|
|
633
265
|
}
|
|
634
266
|
const data = await parseBody(output.body, context);
|
|
635
267
|
let contents = {};
|
|
@@ -640,40 +272,9 @@ export const de_GetUserIdCommand = async (output, context) => {
|
|
|
640
272
|
};
|
|
641
273
|
return response;
|
|
642
274
|
};
|
|
643
|
-
const de_GetUserIdCommandError = async (output, context) => {
|
|
644
|
-
const parsedOutput = {
|
|
645
|
-
...output,
|
|
646
|
-
body: await parseErrorBody(output.body, context),
|
|
647
|
-
};
|
|
648
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
649
|
-
switch (errorCode) {
|
|
650
|
-
case "AccessDeniedException":
|
|
651
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
652
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
653
|
-
case "InternalServerException":
|
|
654
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
655
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
656
|
-
case "ResourceNotFoundException":
|
|
657
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
658
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
659
|
-
case "ThrottlingException":
|
|
660
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
661
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
662
|
-
case "ValidationException":
|
|
663
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
664
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
665
|
-
default:
|
|
666
|
-
const parsedBody = parsedOutput.body;
|
|
667
|
-
return throwDefaultError({
|
|
668
|
-
output,
|
|
669
|
-
parsedBody,
|
|
670
|
-
errorCode,
|
|
671
|
-
});
|
|
672
|
-
}
|
|
673
|
-
};
|
|
674
275
|
export const de_IsMemberInGroupsCommand = async (output, context) => {
|
|
675
276
|
if (output.statusCode >= 300) {
|
|
676
|
-
return
|
|
277
|
+
return de_CommandError(output, context);
|
|
677
278
|
}
|
|
678
279
|
const data = await parseBody(output.body, context);
|
|
679
280
|
let contents = {};
|
|
@@ -684,40 +285,9 @@ export const de_IsMemberInGroupsCommand = async (output, context) => {
|
|
|
684
285
|
};
|
|
685
286
|
return response;
|
|
686
287
|
};
|
|
687
|
-
const de_IsMemberInGroupsCommandError = async (output, context) => {
|
|
688
|
-
const parsedOutput = {
|
|
689
|
-
...output,
|
|
690
|
-
body: await parseErrorBody(output.body, context),
|
|
691
|
-
};
|
|
692
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
693
|
-
switch (errorCode) {
|
|
694
|
-
case "AccessDeniedException":
|
|
695
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
696
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
697
|
-
case "InternalServerException":
|
|
698
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
699
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
700
|
-
case "ResourceNotFoundException":
|
|
701
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
702
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
703
|
-
case "ThrottlingException":
|
|
704
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
705
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
706
|
-
case "ValidationException":
|
|
707
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
708
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
709
|
-
default:
|
|
710
|
-
const parsedBody = parsedOutput.body;
|
|
711
|
-
return throwDefaultError({
|
|
712
|
-
output,
|
|
713
|
-
parsedBody,
|
|
714
|
-
errorCode,
|
|
715
|
-
});
|
|
716
|
-
}
|
|
717
|
-
};
|
|
718
288
|
export const de_ListGroupMembershipsCommand = async (output, context) => {
|
|
719
289
|
if (output.statusCode >= 300) {
|
|
720
|
-
return
|
|
290
|
+
return de_CommandError(output, context);
|
|
721
291
|
}
|
|
722
292
|
const data = await parseBody(output.body, context);
|
|
723
293
|
let contents = {};
|
|
@@ -728,40 +298,9 @@ export const de_ListGroupMembershipsCommand = async (output, context) => {
|
|
|
728
298
|
};
|
|
729
299
|
return response;
|
|
730
300
|
};
|
|
731
|
-
const de_ListGroupMembershipsCommandError = async (output, context) => {
|
|
732
|
-
const parsedOutput = {
|
|
733
|
-
...output,
|
|
734
|
-
body: await parseErrorBody(output.body, context),
|
|
735
|
-
};
|
|
736
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
737
|
-
switch (errorCode) {
|
|
738
|
-
case "AccessDeniedException":
|
|
739
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
740
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
741
|
-
case "InternalServerException":
|
|
742
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
743
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
744
|
-
case "ResourceNotFoundException":
|
|
745
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
746
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
747
|
-
case "ThrottlingException":
|
|
748
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
749
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
750
|
-
case "ValidationException":
|
|
751
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
752
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
753
|
-
default:
|
|
754
|
-
const parsedBody = parsedOutput.body;
|
|
755
|
-
return throwDefaultError({
|
|
756
|
-
output,
|
|
757
|
-
parsedBody,
|
|
758
|
-
errorCode,
|
|
759
|
-
});
|
|
760
|
-
}
|
|
761
|
-
};
|
|
762
301
|
export const de_ListGroupMembershipsForMemberCommand = async (output, context) => {
|
|
763
302
|
if (output.statusCode >= 300) {
|
|
764
|
-
return
|
|
303
|
+
return de_CommandError(output, context);
|
|
765
304
|
}
|
|
766
305
|
const data = await parseBody(output.body, context);
|
|
767
306
|
let contents = {};
|
|
@@ -772,40 +311,9 @@ export const de_ListGroupMembershipsForMemberCommand = async (output, context) =
|
|
|
772
311
|
};
|
|
773
312
|
return response;
|
|
774
313
|
};
|
|
775
|
-
const de_ListGroupMembershipsForMemberCommandError = async (output, context) => {
|
|
776
|
-
const parsedOutput = {
|
|
777
|
-
...output,
|
|
778
|
-
body: await parseErrorBody(output.body, context),
|
|
779
|
-
};
|
|
780
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
781
|
-
switch (errorCode) {
|
|
782
|
-
case "AccessDeniedException":
|
|
783
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
784
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
785
|
-
case "InternalServerException":
|
|
786
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
787
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
788
|
-
case "ResourceNotFoundException":
|
|
789
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
790
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
791
|
-
case "ThrottlingException":
|
|
792
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
793
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
794
|
-
case "ValidationException":
|
|
795
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
796
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
797
|
-
default:
|
|
798
|
-
const parsedBody = parsedOutput.body;
|
|
799
|
-
return throwDefaultError({
|
|
800
|
-
output,
|
|
801
|
-
parsedBody,
|
|
802
|
-
errorCode,
|
|
803
|
-
});
|
|
804
|
-
}
|
|
805
|
-
};
|
|
806
314
|
export const de_ListGroupsCommand = async (output, context) => {
|
|
807
315
|
if (output.statusCode >= 300) {
|
|
808
|
-
return
|
|
316
|
+
return de_CommandError(output, context);
|
|
809
317
|
}
|
|
810
318
|
const data = await parseBody(output.body, context);
|
|
811
319
|
let contents = {};
|
|
@@ -816,40 +324,9 @@ export const de_ListGroupsCommand = async (output, context) => {
|
|
|
816
324
|
};
|
|
817
325
|
return response;
|
|
818
326
|
};
|
|
819
|
-
const de_ListGroupsCommandError = async (output, context) => {
|
|
820
|
-
const parsedOutput = {
|
|
821
|
-
...output,
|
|
822
|
-
body: await parseErrorBody(output.body, context),
|
|
823
|
-
};
|
|
824
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
825
|
-
switch (errorCode) {
|
|
826
|
-
case "AccessDeniedException":
|
|
827
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
828
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
829
|
-
case "InternalServerException":
|
|
830
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
831
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
832
|
-
case "ResourceNotFoundException":
|
|
833
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
834
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
835
|
-
case "ThrottlingException":
|
|
836
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
837
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
838
|
-
case "ValidationException":
|
|
839
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
840
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
841
|
-
default:
|
|
842
|
-
const parsedBody = parsedOutput.body;
|
|
843
|
-
return throwDefaultError({
|
|
844
|
-
output,
|
|
845
|
-
parsedBody,
|
|
846
|
-
errorCode,
|
|
847
|
-
});
|
|
848
|
-
}
|
|
849
|
-
};
|
|
850
327
|
export const de_ListUsersCommand = async (output, context) => {
|
|
851
328
|
if (output.statusCode >= 300) {
|
|
852
|
-
return
|
|
329
|
+
return de_CommandError(output, context);
|
|
853
330
|
}
|
|
854
331
|
const data = await parseBody(output.body, context);
|
|
855
332
|
let contents = {};
|
|
@@ -860,40 +337,9 @@ export const de_ListUsersCommand = async (output, context) => {
|
|
|
860
337
|
};
|
|
861
338
|
return response;
|
|
862
339
|
};
|
|
863
|
-
const de_ListUsersCommandError = async (output, context) => {
|
|
864
|
-
const parsedOutput = {
|
|
865
|
-
...output,
|
|
866
|
-
body: await parseErrorBody(output.body, context),
|
|
867
|
-
};
|
|
868
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
869
|
-
switch (errorCode) {
|
|
870
|
-
case "AccessDeniedException":
|
|
871
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
872
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
873
|
-
case "InternalServerException":
|
|
874
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
875
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
876
|
-
case "ResourceNotFoundException":
|
|
877
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
878
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
879
|
-
case "ThrottlingException":
|
|
880
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
881
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
882
|
-
case "ValidationException":
|
|
883
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
884
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
885
|
-
default:
|
|
886
|
-
const parsedBody = parsedOutput.body;
|
|
887
|
-
return throwDefaultError({
|
|
888
|
-
output,
|
|
889
|
-
parsedBody,
|
|
890
|
-
errorCode,
|
|
891
|
-
});
|
|
892
|
-
}
|
|
893
|
-
};
|
|
894
340
|
export const de_UpdateGroupCommand = async (output, context) => {
|
|
895
341
|
if (output.statusCode >= 300) {
|
|
896
|
-
return
|
|
342
|
+
return de_CommandError(output, context);
|
|
897
343
|
}
|
|
898
344
|
const data = await parseBody(output.body, context);
|
|
899
345
|
let contents = {};
|
|
@@ -904,46 +350,9 @@ export const de_UpdateGroupCommand = async (output, context) => {
|
|
|
904
350
|
};
|
|
905
351
|
return response;
|
|
906
352
|
};
|
|
907
|
-
const de_UpdateGroupCommandError = async (output, context) => {
|
|
908
|
-
const parsedOutput = {
|
|
909
|
-
...output,
|
|
910
|
-
body: await parseErrorBody(output.body, context),
|
|
911
|
-
};
|
|
912
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
913
|
-
switch (errorCode) {
|
|
914
|
-
case "AccessDeniedException":
|
|
915
|
-
case "com.amazonaws.identitystore#AccessDeniedException":
|
|
916
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
917
|
-
case "ConflictException":
|
|
918
|
-
case "com.amazonaws.identitystore#ConflictException":
|
|
919
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
920
|
-
case "InternalServerException":
|
|
921
|
-
case "com.amazonaws.identitystore#InternalServerException":
|
|
922
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
923
|
-
case "ResourceNotFoundException":
|
|
924
|
-
case "com.amazonaws.identitystore#ResourceNotFoundException":
|
|
925
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
926
|
-
case "ServiceQuotaExceededException":
|
|
927
|
-
case "com.amazonaws.identitystore#ServiceQuotaExceededException":
|
|
928
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
929
|
-
case "ThrottlingException":
|
|
930
|
-
case "com.amazonaws.identitystore#ThrottlingException":
|
|
931
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
932
|
-
case "ValidationException":
|
|
933
|
-
case "com.amazonaws.identitystore#ValidationException":
|
|
934
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
935
|
-
default:
|
|
936
|
-
const parsedBody = parsedOutput.body;
|
|
937
|
-
return throwDefaultError({
|
|
938
|
-
output,
|
|
939
|
-
parsedBody,
|
|
940
|
-
errorCode,
|
|
941
|
-
});
|
|
942
|
-
}
|
|
943
|
-
};
|
|
944
353
|
export const de_UpdateUserCommand = async (output, context) => {
|
|
945
354
|
if (output.statusCode >= 300) {
|
|
946
|
-
return
|
|
355
|
+
return de_CommandError(output, context);
|
|
947
356
|
}
|
|
948
357
|
const data = await parseBody(output.body, context);
|
|
949
358
|
let contents = {};
|
|
@@ -954,7 +363,7 @@ export const de_UpdateUserCommand = async (output, context) => {
|
|
|
954
363
|
};
|
|
955
364
|
return response;
|
|
956
365
|
};
|
|
957
|
-
const
|
|
366
|
+
const de_CommandError = async (output, context) => {
|
|
958
367
|
const parsedOutput = {
|
|
959
368
|
...output,
|
|
960
369
|
body: await parseErrorBody(output.body, context),
|