@aws-sdk/client-codestar-connections 3.503.1 → 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 +74 -769
- package/dist-es/protocols/Aws_json1_0.js +65 -760
- package/package.json +3 -3
|
@@ -166,7 +166,7 @@ export const se_UpdateSyncConfigurationCommand = async (input, context) => {
|
|
|
166
166
|
};
|
|
167
167
|
export const de_CreateConnectionCommand = async (output, context) => {
|
|
168
168
|
if (output.statusCode >= 300) {
|
|
169
|
-
return
|
|
169
|
+
return de_CommandError(output, context);
|
|
170
170
|
}
|
|
171
171
|
const data = await parseBody(output.body, context);
|
|
172
172
|
let contents = {};
|
|
@@ -177,34 +177,9 @@ export const de_CreateConnectionCommand = async (output, context) => {
|
|
|
177
177
|
};
|
|
178
178
|
return response;
|
|
179
179
|
};
|
|
180
|
-
const de_CreateConnectionCommandError = async (output, context) => {
|
|
181
|
-
const parsedOutput = {
|
|
182
|
-
...output,
|
|
183
|
-
body: await parseErrorBody(output.body, context),
|
|
184
|
-
};
|
|
185
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
186
|
-
switch (errorCode) {
|
|
187
|
-
case "LimitExceededException":
|
|
188
|
-
case "com.amazonaws.codestarconnections#LimitExceededException":
|
|
189
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
190
|
-
case "ResourceNotFoundException":
|
|
191
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
192
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
193
|
-
case "ResourceUnavailableException":
|
|
194
|
-
case "com.amazonaws.codestarconnections#ResourceUnavailableException":
|
|
195
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
196
|
-
default:
|
|
197
|
-
const parsedBody = parsedOutput.body;
|
|
198
|
-
return throwDefaultError({
|
|
199
|
-
output,
|
|
200
|
-
parsedBody,
|
|
201
|
-
errorCode,
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
};
|
|
205
180
|
export const de_CreateHostCommand = async (output, context) => {
|
|
206
181
|
if (output.statusCode >= 300) {
|
|
207
|
-
return
|
|
182
|
+
return de_CommandError(output, context);
|
|
208
183
|
}
|
|
209
184
|
const data = await parseBody(output.body, context);
|
|
210
185
|
let contents = {};
|
|
@@ -215,28 +190,9 @@ export const de_CreateHostCommand = async (output, context) => {
|
|
|
215
190
|
};
|
|
216
191
|
return response;
|
|
217
192
|
};
|
|
218
|
-
const de_CreateHostCommandError = async (output, context) => {
|
|
219
|
-
const parsedOutput = {
|
|
220
|
-
...output,
|
|
221
|
-
body: await parseErrorBody(output.body, context),
|
|
222
|
-
};
|
|
223
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
224
|
-
switch (errorCode) {
|
|
225
|
-
case "LimitExceededException":
|
|
226
|
-
case "com.amazonaws.codestarconnections#LimitExceededException":
|
|
227
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
228
|
-
default:
|
|
229
|
-
const parsedBody = parsedOutput.body;
|
|
230
|
-
return throwDefaultError({
|
|
231
|
-
output,
|
|
232
|
-
parsedBody,
|
|
233
|
-
errorCode,
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
};
|
|
237
193
|
export const de_CreateRepositoryLinkCommand = async (output, context) => {
|
|
238
194
|
if (output.statusCode >= 300) {
|
|
239
|
-
return
|
|
195
|
+
return de_CommandError(output, context);
|
|
240
196
|
}
|
|
241
197
|
const data = await parseBody(output.body, context);
|
|
242
198
|
let contents = {};
|
|
@@ -247,46 +203,9 @@ export const de_CreateRepositoryLinkCommand = async (output, context) => {
|
|
|
247
203
|
};
|
|
248
204
|
return response;
|
|
249
205
|
};
|
|
250
|
-
const de_CreateRepositoryLinkCommandError = async (output, context) => {
|
|
251
|
-
const parsedOutput = {
|
|
252
|
-
...output,
|
|
253
|
-
body: await parseErrorBody(output.body, context),
|
|
254
|
-
};
|
|
255
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
256
|
-
switch (errorCode) {
|
|
257
|
-
case "AccessDeniedException":
|
|
258
|
-
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
259
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
260
|
-
case "ConcurrentModificationException":
|
|
261
|
-
case "com.amazonaws.codestarconnections#ConcurrentModificationException":
|
|
262
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
263
|
-
case "InternalServerException":
|
|
264
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
265
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
266
|
-
case "InvalidInputException":
|
|
267
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
268
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
269
|
-
case "LimitExceededException":
|
|
270
|
-
case "com.amazonaws.codestarconnections#LimitExceededException":
|
|
271
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
272
|
-
case "ResourceAlreadyExistsException":
|
|
273
|
-
case "com.amazonaws.codestarconnections#ResourceAlreadyExistsException":
|
|
274
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
275
|
-
case "ThrottlingException":
|
|
276
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
277
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
278
|
-
default:
|
|
279
|
-
const parsedBody = parsedOutput.body;
|
|
280
|
-
return throwDefaultError({
|
|
281
|
-
output,
|
|
282
|
-
parsedBody,
|
|
283
|
-
errorCode,
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
};
|
|
287
206
|
export const de_CreateSyncConfigurationCommand = async (output, context) => {
|
|
288
207
|
if (output.statusCode >= 300) {
|
|
289
|
-
return
|
|
208
|
+
return de_CommandError(output, context);
|
|
290
209
|
}
|
|
291
210
|
const data = await parseBody(output.body, context);
|
|
292
211
|
let contents = {};
|
|
@@ -297,46 +216,9 @@ export const de_CreateSyncConfigurationCommand = async (output, context) => {
|
|
|
297
216
|
};
|
|
298
217
|
return response;
|
|
299
218
|
};
|
|
300
|
-
const de_CreateSyncConfigurationCommandError = async (output, context) => {
|
|
301
|
-
const parsedOutput = {
|
|
302
|
-
...output,
|
|
303
|
-
body: await parseErrorBody(output.body, context),
|
|
304
|
-
};
|
|
305
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
306
|
-
switch (errorCode) {
|
|
307
|
-
case "AccessDeniedException":
|
|
308
|
-
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
309
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
310
|
-
case "ConcurrentModificationException":
|
|
311
|
-
case "com.amazonaws.codestarconnections#ConcurrentModificationException":
|
|
312
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
313
|
-
case "InternalServerException":
|
|
314
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
315
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
316
|
-
case "InvalidInputException":
|
|
317
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
318
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
319
|
-
case "LimitExceededException":
|
|
320
|
-
case "com.amazonaws.codestarconnections#LimitExceededException":
|
|
321
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
322
|
-
case "ResourceAlreadyExistsException":
|
|
323
|
-
case "com.amazonaws.codestarconnections#ResourceAlreadyExistsException":
|
|
324
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
325
|
-
case "ThrottlingException":
|
|
326
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
327
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
328
|
-
default:
|
|
329
|
-
const parsedBody = parsedOutput.body;
|
|
330
|
-
return throwDefaultError({
|
|
331
|
-
output,
|
|
332
|
-
parsedBody,
|
|
333
|
-
errorCode,
|
|
334
|
-
});
|
|
335
|
-
}
|
|
336
|
-
};
|
|
337
219
|
export const de_DeleteConnectionCommand = async (output, context) => {
|
|
338
220
|
if (output.statusCode >= 300) {
|
|
339
|
-
return
|
|
221
|
+
return de_CommandError(output, context);
|
|
340
222
|
}
|
|
341
223
|
const data = await parseBody(output.body, context);
|
|
342
224
|
let contents = {};
|
|
@@ -347,28 +229,9 @@ export const de_DeleteConnectionCommand = async (output, context) => {
|
|
|
347
229
|
};
|
|
348
230
|
return response;
|
|
349
231
|
};
|
|
350
|
-
const de_DeleteConnectionCommandError = async (output, context) => {
|
|
351
|
-
const parsedOutput = {
|
|
352
|
-
...output,
|
|
353
|
-
body: await parseErrorBody(output.body, context),
|
|
354
|
-
};
|
|
355
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
356
|
-
switch (errorCode) {
|
|
357
|
-
case "ResourceNotFoundException":
|
|
358
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
359
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
360
|
-
default:
|
|
361
|
-
const parsedBody = parsedOutput.body;
|
|
362
|
-
return throwDefaultError({
|
|
363
|
-
output,
|
|
364
|
-
parsedBody,
|
|
365
|
-
errorCode,
|
|
366
|
-
});
|
|
367
|
-
}
|
|
368
|
-
};
|
|
369
232
|
export const de_DeleteHostCommand = async (output, context) => {
|
|
370
233
|
if (output.statusCode >= 300) {
|
|
371
|
-
return
|
|
234
|
+
return de_CommandError(output, context);
|
|
372
235
|
}
|
|
373
236
|
const data = await parseBody(output.body, context);
|
|
374
237
|
let contents = {};
|
|
@@ -379,31 +242,9 @@ export const de_DeleteHostCommand = async (output, context) => {
|
|
|
379
242
|
};
|
|
380
243
|
return response;
|
|
381
244
|
};
|
|
382
|
-
const de_DeleteHostCommandError = async (output, context) => {
|
|
383
|
-
const parsedOutput = {
|
|
384
|
-
...output,
|
|
385
|
-
body: await parseErrorBody(output.body, context),
|
|
386
|
-
};
|
|
387
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
388
|
-
switch (errorCode) {
|
|
389
|
-
case "ResourceNotFoundException":
|
|
390
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
391
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
392
|
-
case "ResourceUnavailableException":
|
|
393
|
-
case "com.amazonaws.codestarconnections#ResourceUnavailableException":
|
|
394
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
395
|
-
default:
|
|
396
|
-
const parsedBody = parsedOutput.body;
|
|
397
|
-
return throwDefaultError({
|
|
398
|
-
output,
|
|
399
|
-
parsedBody,
|
|
400
|
-
errorCode,
|
|
401
|
-
});
|
|
402
|
-
}
|
|
403
|
-
};
|
|
404
245
|
export const de_DeleteRepositoryLinkCommand = async (output, context) => {
|
|
405
246
|
if (output.statusCode >= 300) {
|
|
406
|
-
return
|
|
247
|
+
return de_CommandError(output, context);
|
|
407
248
|
}
|
|
408
249
|
const data = await parseBody(output.body, context);
|
|
409
250
|
let contents = {};
|
|
@@ -414,49 +255,9 @@ export const de_DeleteRepositoryLinkCommand = async (output, context) => {
|
|
|
414
255
|
};
|
|
415
256
|
return response;
|
|
416
257
|
};
|
|
417
|
-
const de_DeleteRepositoryLinkCommandError = async (output, context) => {
|
|
418
|
-
const parsedOutput = {
|
|
419
|
-
...output,
|
|
420
|
-
body: await parseErrorBody(output.body, context),
|
|
421
|
-
};
|
|
422
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
423
|
-
switch (errorCode) {
|
|
424
|
-
case "AccessDeniedException":
|
|
425
|
-
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
426
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
427
|
-
case "ConcurrentModificationException":
|
|
428
|
-
case "com.amazonaws.codestarconnections#ConcurrentModificationException":
|
|
429
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
430
|
-
case "InternalServerException":
|
|
431
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
432
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
433
|
-
case "InvalidInputException":
|
|
434
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
435
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
436
|
-
case "ResourceNotFoundException":
|
|
437
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
438
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
439
|
-
case "SyncConfigurationStillExistsException":
|
|
440
|
-
case "com.amazonaws.codestarconnections#SyncConfigurationStillExistsException":
|
|
441
|
-
throw await de_SyncConfigurationStillExistsExceptionRes(parsedOutput, context);
|
|
442
|
-
case "ThrottlingException":
|
|
443
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
444
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
445
|
-
case "UnsupportedProviderTypeException":
|
|
446
|
-
case "com.amazonaws.codestarconnections#UnsupportedProviderTypeException":
|
|
447
|
-
throw await de_UnsupportedProviderTypeExceptionRes(parsedOutput, context);
|
|
448
|
-
default:
|
|
449
|
-
const parsedBody = parsedOutput.body;
|
|
450
|
-
return throwDefaultError({
|
|
451
|
-
output,
|
|
452
|
-
parsedBody,
|
|
453
|
-
errorCode,
|
|
454
|
-
});
|
|
455
|
-
}
|
|
456
|
-
};
|
|
457
258
|
export const de_DeleteSyncConfigurationCommand = async (output, context) => {
|
|
458
259
|
if (output.statusCode >= 300) {
|
|
459
|
-
return
|
|
260
|
+
return de_CommandError(output, context);
|
|
460
261
|
}
|
|
461
262
|
const data = await parseBody(output.body, context);
|
|
462
263
|
let contents = {};
|
|
@@ -467,43 +268,9 @@ export const de_DeleteSyncConfigurationCommand = async (output, context) => {
|
|
|
467
268
|
};
|
|
468
269
|
return response;
|
|
469
270
|
};
|
|
470
|
-
const de_DeleteSyncConfigurationCommandError = async (output, context) => {
|
|
471
|
-
const parsedOutput = {
|
|
472
|
-
...output,
|
|
473
|
-
body: await parseErrorBody(output.body, context),
|
|
474
|
-
};
|
|
475
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
476
|
-
switch (errorCode) {
|
|
477
|
-
case "AccessDeniedException":
|
|
478
|
-
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
479
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
480
|
-
case "ConcurrentModificationException":
|
|
481
|
-
case "com.amazonaws.codestarconnections#ConcurrentModificationException":
|
|
482
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
483
|
-
case "InternalServerException":
|
|
484
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
485
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
486
|
-
case "InvalidInputException":
|
|
487
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
488
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
489
|
-
case "LimitExceededException":
|
|
490
|
-
case "com.amazonaws.codestarconnections#LimitExceededException":
|
|
491
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
492
|
-
case "ThrottlingException":
|
|
493
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
494
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
495
|
-
default:
|
|
496
|
-
const parsedBody = parsedOutput.body;
|
|
497
|
-
return throwDefaultError({
|
|
498
|
-
output,
|
|
499
|
-
parsedBody,
|
|
500
|
-
errorCode,
|
|
501
|
-
});
|
|
502
|
-
}
|
|
503
|
-
};
|
|
504
271
|
export const de_GetConnectionCommand = async (output, context) => {
|
|
505
272
|
if (output.statusCode >= 300) {
|
|
506
|
-
return
|
|
273
|
+
return de_CommandError(output, context);
|
|
507
274
|
}
|
|
508
275
|
const data = await parseBody(output.body, context);
|
|
509
276
|
let contents = {};
|
|
@@ -514,31 +281,9 @@ export const de_GetConnectionCommand = async (output, context) => {
|
|
|
514
281
|
};
|
|
515
282
|
return response;
|
|
516
283
|
};
|
|
517
|
-
const de_GetConnectionCommandError = async (output, context) => {
|
|
518
|
-
const parsedOutput = {
|
|
519
|
-
...output,
|
|
520
|
-
body: await parseErrorBody(output.body, context),
|
|
521
|
-
};
|
|
522
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
523
|
-
switch (errorCode) {
|
|
524
|
-
case "ResourceNotFoundException":
|
|
525
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
526
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
527
|
-
case "ResourceUnavailableException":
|
|
528
|
-
case "com.amazonaws.codestarconnections#ResourceUnavailableException":
|
|
529
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
530
|
-
default:
|
|
531
|
-
const parsedBody = parsedOutput.body;
|
|
532
|
-
return throwDefaultError({
|
|
533
|
-
output,
|
|
534
|
-
parsedBody,
|
|
535
|
-
errorCode,
|
|
536
|
-
});
|
|
537
|
-
}
|
|
538
|
-
};
|
|
539
284
|
export const de_GetHostCommand = async (output, context) => {
|
|
540
285
|
if (output.statusCode >= 300) {
|
|
541
|
-
return
|
|
286
|
+
return de_CommandError(output, context);
|
|
542
287
|
}
|
|
543
288
|
const data = await parseBody(output.body, context);
|
|
544
289
|
let contents = {};
|
|
@@ -549,31 +294,9 @@ export const de_GetHostCommand = async (output, context) => {
|
|
|
549
294
|
};
|
|
550
295
|
return response;
|
|
551
296
|
};
|
|
552
|
-
const de_GetHostCommandError = async (output, context) => {
|
|
553
|
-
const parsedOutput = {
|
|
554
|
-
...output,
|
|
555
|
-
body: await parseErrorBody(output.body, context),
|
|
556
|
-
};
|
|
557
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
558
|
-
switch (errorCode) {
|
|
559
|
-
case "ResourceNotFoundException":
|
|
560
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
561
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
562
|
-
case "ResourceUnavailableException":
|
|
563
|
-
case "com.amazonaws.codestarconnections#ResourceUnavailableException":
|
|
564
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
565
|
-
default:
|
|
566
|
-
const parsedBody = parsedOutput.body;
|
|
567
|
-
return throwDefaultError({
|
|
568
|
-
output,
|
|
569
|
-
parsedBody,
|
|
570
|
-
errorCode,
|
|
571
|
-
});
|
|
572
|
-
}
|
|
573
|
-
};
|
|
574
297
|
export const de_GetRepositoryLinkCommand = async (output, context) => {
|
|
575
298
|
if (output.statusCode >= 300) {
|
|
576
|
-
return
|
|
299
|
+
return de_CommandError(output, context);
|
|
577
300
|
}
|
|
578
301
|
const data = await parseBody(output.body, context);
|
|
579
302
|
let contents = {};
|
|
@@ -584,43 +307,9 @@ export const de_GetRepositoryLinkCommand = async (output, context) => {
|
|
|
584
307
|
};
|
|
585
308
|
return response;
|
|
586
309
|
};
|
|
587
|
-
const de_GetRepositoryLinkCommandError = 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.codestarconnections#AccessDeniedException":
|
|
596
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
597
|
-
case "ConcurrentModificationException":
|
|
598
|
-
case "com.amazonaws.codestarconnections#ConcurrentModificationException":
|
|
599
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
600
|
-
case "InternalServerException":
|
|
601
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
602
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
603
|
-
case "InvalidInputException":
|
|
604
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
605
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
606
|
-
case "ResourceNotFoundException":
|
|
607
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
608
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
609
|
-
case "ThrottlingException":
|
|
610
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
611
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
612
|
-
default:
|
|
613
|
-
const parsedBody = parsedOutput.body;
|
|
614
|
-
return throwDefaultError({
|
|
615
|
-
output,
|
|
616
|
-
parsedBody,
|
|
617
|
-
errorCode,
|
|
618
|
-
});
|
|
619
|
-
}
|
|
620
|
-
};
|
|
621
310
|
export const de_GetRepositorySyncStatusCommand = async (output, context) => {
|
|
622
311
|
if (output.statusCode >= 300) {
|
|
623
|
-
return
|
|
312
|
+
return de_CommandError(output, context);
|
|
624
313
|
}
|
|
625
314
|
const data = await parseBody(output.body, context);
|
|
626
315
|
let contents = {};
|
|
@@ -631,40 +320,9 @@ export const de_GetRepositorySyncStatusCommand = async (output, context) => {
|
|
|
631
320
|
};
|
|
632
321
|
return response;
|
|
633
322
|
};
|
|
634
|
-
const de_GetRepositorySyncStatusCommandError = async (output, context) => {
|
|
635
|
-
const parsedOutput = {
|
|
636
|
-
...output,
|
|
637
|
-
body: await parseErrorBody(output.body, context),
|
|
638
|
-
};
|
|
639
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
640
|
-
switch (errorCode) {
|
|
641
|
-
case "AccessDeniedException":
|
|
642
|
-
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
643
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
644
|
-
case "InternalServerException":
|
|
645
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
646
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
647
|
-
case "InvalidInputException":
|
|
648
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
649
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
650
|
-
case "ResourceNotFoundException":
|
|
651
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
652
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
653
|
-
case "ThrottlingException":
|
|
654
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
655
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
656
|
-
default:
|
|
657
|
-
const parsedBody = parsedOutput.body;
|
|
658
|
-
return throwDefaultError({
|
|
659
|
-
output,
|
|
660
|
-
parsedBody,
|
|
661
|
-
errorCode,
|
|
662
|
-
});
|
|
663
|
-
}
|
|
664
|
-
};
|
|
665
323
|
export const de_GetResourceSyncStatusCommand = async (output, context) => {
|
|
666
324
|
if (output.statusCode >= 300) {
|
|
667
|
-
return
|
|
325
|
+
return de_CommandError(output, context);
|
|
668
326
|
}
|
|
669
327
|
const data = await parseBody(output.body, context);
|
|
670
328
|
let contents = {};
|
|
@@ -675,40 +333,9 @@ export const de_GetResourceSyncStatusCommand = async (output, context) => {
|
|
|
675
333
|
};
|
|
676
334
|
return response;
|
|
677
335
|
};
|
|
678
|
-
const de_GetResourceSyncStatusCommandError = async (output, context) => {
|
|
679
|
-
const parsedOutput = {
|
|
680
|
-
...output,
|
|
681
|
-
body: await parseErrorBody(output.body, context),
|
|
682
|
-
};
|
|
683
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
684
|
-
switch (errorCode) {
|
|
685
|
-
case "AccessDeniedException":
|
|
686
|
-
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
687
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
688
|
-
case "InternalServerException":
|
|
689
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
690
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
691
|
-
case "InvalidInputException":
|
|
692
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
693
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
694
|
-
case "ResourceNotFoundException":
|
|
695
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
696
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
697
|
-
case "ThrottlingException":
|
|
698
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
699
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
700
|
-
default:
|
|
701
|
-
const parsedBody = parsedOutput.body;
|
|
702
|
-
return throwDefaultError({
|
|
703
|
-
output,
|
|
704
|
-
parsedBody,
|
|
705
|
-
errorCode,
|
|
706
|
-
});
|
|
707
|
-
}
|
|
708
|
-
};
|
|
709
336
|
export const de_GetSyncBlockerSummaryCommand = async (output, context) => {
|
|
710
337
|
if (output.statusCode >= 300) {
|
|
711
|
-
return
|
|
338
|
+
return de_CommandError(output, context);
|
|
712
339
|
}
|
|
713
340
|
const data = await parseBody(output.body, context);
|
|
714
341
|
let contents = {};
|
|
@@ -719,40 +346,9 @@ export const de_GetSyncBlockerSummaryCommand = async (output, context) => {
|
|
|
719
346
|
};
|
|
720
347
|
return response;
|
|
721
348
|
};
|
|
722
|
-
const de_GetSyncBlockerSummaryCommandError = 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.codestarconnections#AccessDeniedException":
|
|
731
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
732
|
-
case "InternalServerException":
|
|
733
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
734
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
735
|
-
case "InvalidInputException":
|
|
736
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
737
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
738
|
-
case "ResourceNotFoundException":
|
|
739
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
740
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
741
|
-
case "ThrottlingException":
|
|
742
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
743
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
744
|
-
default:
|
|
745
|
-
const parsedBody = parsedOutput.body;
|
|
746
|
-
return throwDefaultError({
|
|
747
|
-
output,
|
|
748
|
-
parsedBody,
|
|
749
|
-
errorCode,
|
|
750
|
-
});
|
|
751
|
-
}
|
|
752
|
-
};
|
|
753
349
|
export const de_GetSyncConfigurationCommand = async (output, context) => {
|
|
754
350
|
if (output.statusCode >= 300) {
|
|
755
|
-
return
|
|
351
|
+
return de_CommandError(output, context);
|
|
756
352
|
}
|
|
757
353
|
const data = await parseBody(output.body, context);
|
|
758
354
|
let contents = {};
|
|
@@ -763,40 +359,9 @@ export const de_GetSyncConfigurationCommand = async (output, context) => {
|
|
|
763
359
|
};
|
|
764
360
|
return response;
|
|
765
361
|
};
|
|
766
|
-
const de_GetSyncConfigurationCommandError = async (output, context) => {
|
|
767
|
-
const parsedOutput = {
|
|
768
|
-
...output,
|
|
769
|
-
body: await parseErrorBody(output.body, context),
|
|
770
|
-
};
|
|
771
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
772
|
-
switch (errorCode) {
|
|
773
|
-
case "AccessDeniedException":
|
|
774
|
-
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
775
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
776
|
-
case "InternalServerException":
|
|
777
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
778
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
779
|
-
case "InvalidInputException":
|
|
780
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
781
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
782
|
-
case "ResourceNotFoundException":
|
|
783
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
784
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
785
|
-
case "ThrottlingException":
|
|
786
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
787
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
788
|
-
default:
|
|
789
|
-
const parsedBody = parsedOutput.body;
|
|
790
|
-
return throwDefaultError({
|
|
791
|
-
output,
|
|
792
|
-
parsedBody,
|
|
793
|
-
errorCode,
|
|
794
|
-
});
|
|
795
|
-
}
|
|
796
|
-
};
|
|
797
362
|
export const de_ListConnectionsCommand = async (output, context) => {
|
|
798
363
|
if (output.statusCode >= 300) {
|
|
799
|
-
return
|
|
364
|
+
return de_CommandError(output, context);
|
|
800
365
|
}
|
|
801
366
|
const data = await parseBody(output.body, context);
|
|
802
367
|
let contents = {};
|
|
@@ -807,28 +372,9 @@ export const de_ListConnectionsCommand = async (output, context) => {
|
|
|
807
372
|
};
|
|
808
373
|
return response;
|
|
809
374
|
};
|
|
810
|
-
const de_ListConnectionsCommandError = async (output, context) => {
|
|
811
|
-
const parsedOutput = {
|
|
812
|
-
...output,
|
|
813
|
-
body: await parseErrorBody(output.body, context),
|
|
814
|
-
};
|
|
815
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
816
|
-
switch (errorCode) {
|
|
817
|
-
case "ResourceNotFoundException":
|
|
818
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
819
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
820
|
-
default:
|
|
821
|
-
const parsedBody = parsedOutput.body;
|
|
822
|
-
return throwDefaultError({
|
|
823
|
-
output,
|
|
824
|
-
parsedBody,
|
|
825
|
-
errorCode,
|
|
826
|
-
});
|
|
827
|
-
}
|
|
828
|
-
};
|
|
829
375
|
export const de_ListHostsCommand = async (output, context) => {
|
|
830
376
|
if (output.statusCode >= 300) {
|
|
831
|
-
return
|
|
377
|
+
return de_CommandError(output, context);
|
|
832
378
|
}
|
|
833
379
|
const data = await parseBody(output.body, context);
|
|
834
380
|
let contents = {};
|
|
@@ -839,69 +385,22 @@ export const de_ListHostsCommand = async (output, context) => {
|
|
|
839
385
|
};
|
|
840
386
|
return response;
|
|
841
387
|
};
|
|
842
|
-
const de_ListHostsCommandError = async (output, context) => {
|
|
843
|
-
const parsedOutput = {
|
|
844
|
-
...output,
|
|
845
|
-
body: await parseErrorBody(output.body, context),
|
|
846
|
-
};
|
|
847
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
848
|
-
const parsedBody = parsedOutput.body;
|
|
849
|
-
return throwDefaultError({
|
|
850
|
-
output,
|
|
851
|
-
parsedBody,
|
|
852
|
-
errorCode,
|
|
853
|
-
});
|
|
854
|
-
};
|
|
855
388
|
export const de_ListRepositoryLinksCommand = async (output, context) => {
|
|
856
389
|
if (output.statusCode >= 300) {
|
|
857
|
-
return
|
|
390
|
+
return de_CommandError(output, context);
|
|
858
391
|
}
|
|
859
392
|
const data = await parseBody(output.body, context);
|
|
860
393
|
let contents = {};
|
|
861
394
|
contents = _json(data);
|
|
862
395
|
const response = {
|
|
863
|
-
$metadata: deserializeMetadata(output),
|
|
864
|
-
...contents,
|
|
865
|
-
};
|
|
866
|
-
return response;
|
|
867
|
-
};
|
|
868
|
-
const de_ListRepositoryLinksCommandError = async (output, context) => {
|
|
869
|
-
const parsedOutput = {
|
|
870
|
-
...output,
|
|
871
|
-
body: await parseErrorBody(output.body, context),
|
|
872
|
-
};
|
|
873
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
874
|
-
switch (errorCode) {
|
|
875
|
-
case "AccessDeniedException":
|
|
876
|
-
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
877
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
878
|
-
case "ConcurrentModificationException":
|
|
879
|
-
case "com.amazonaws.codestarconnections#ConcurrentModificationException":
|
|
880
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
881
|
-
case "InternalServerException":
|
|
882
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
883
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
884
|
-
case "InvalidInputException":
|
|
885
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
886
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
887
|
-
case "ResourceNotFoundException":
|
|
888
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
889
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
890
|
-
case "ThrottlingException":
|
|
891
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
892
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
893
|
-
default:
|
|
894
|
-
const parsedBody = parsedOutput.body;
|
|
895
|
-
return throwDefaultError({
|
|
896
|
-
output,
|
|
897
|
-
parsedBody,
|
|
898
|
-
errorCode,
|
|
899
|
-
});
|
|
900
|
-
}
|
|
396
|
+
$metadata: deserializeMetadata(output),
|
|
397
|
+
...contents,
|
|
398
|
+
};
|
|
399
|
+
return response;
|
|
901
400
|
};
|
|
902
401
|
export const de_ListRepositorySyncDefinitionsCommand = async (output, context) => {
|
|
903
402
|
if (output.statusCode >= 300) {
|
|
904
|
-
return
|
|
403
|
+
return de_CommandError(output, context);
|
|
905
404
|
}
|
|
906
405
|
const data = await parseBody(output.body, context);
|
|
907
406
|
let contents = {};
|
|
@@ -912,40 +411,9 @@ export const de_ListRepositorySyncDefinitionsCommand = async (output, context) =
|
|
|
912
411
|
};
|
|
913
412
|
return response;
|
|
914
413
|
};
|
|
915
|
-
const de_ListRepositorySyncDefinitionsCommandError = async (output, context) => {
|
|
916
|
-
const parsedOutput = {
|
|
917
|
-
...output,
|
|
918
|
-
body: await parseErrorBody(output.body, context),
|
|
919
|
-
};
|
|
920
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
921
|
-
switch (errorCode) {
|
|
922
|
-
case "AccessDeniedException":
|
|
923
|
-
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
924
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
925
|
-
case "InternalServerException":
|
|
926
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
927
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
928
|
-
case "InvalidInputException":
|
|
929
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
930
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
931
|
-
case "ResourceNotFoundException":
|
|
932
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
933
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
934
|
-
case "ThrottlingException":
|
|
935
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
936
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
937
|
-
default:
|
|
938
|
-
const parsedBody = parsedOutput.body;
|
|
939
|
-
return throwDefaultError({
|
|
940
|
-
output,
|
|
941
|
-
parsedBody,
|
|
942
|
-
errorCode,
|
|
943
|
-
});
|
|
944
|
-
}
|
|
945
|
-
};
|
|
946
414
|
export const de_ListSyncConfigurationsCommand = async (output, context) => {
|
|
947
415
|
if (output.statusCode >= 300) {
|
|
948
|
-
return
|
|
416
|
+
return de_CommandError(output, context);
|
|
949
417
|
}
|
|
950
418
|
const data = await parseBody(output.body, context);
|
|
951
419
|
let contents = {};
|
|
@@ -956,40 +424,9 @@ export const de_ListSyncConfigurationsCommand = async (output, context) => {
|
|
|
956
424
|
};
|
|
957
425
|
return response;
|
|
958
426
|
};
|
|
959
|
-
const de_ListSyncConfigurationsCommandError = async (output, context) => {
|
|
960
|
-
const parsedOutput = {
|
|
961
|
-
...output,
|
|
962
|
-
body: await parseErrorBody(output.body, context),
|
|
963
|
-
};
|
|
964
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
965
|
-
switch (errorCode) {
|
|
966
|
-
case "AccessDeniedException":
|
|
967
|
-
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
968
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
969
|
-
case "InternalServerException":
|
|
970
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
971
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
972
|
-
case "InvalidInputException":
|
|
973
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
974
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
975
|
-
case "ResourceNotFoundException":
|
|
976
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
977
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
978
|
-
case "ThrottlingException":
|
|
979
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
980
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
981
|
-
default:
|
|
982
|
-
const parsedBody = parsedOutput.body;
|
|
983
|
-
return throwDefaultError({
|
|
984
|
-
output,
|
|
985
|
-
parsedBody,
|
|
986
|
-
errorCode,
|
|
987
|
-
});
|
|
988
|
-
}
|
|
989
|
-
};
|
|
990
427
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
991
428
|
if (output.statusCode >= 300) {
|
|
992
|
-
return
|
|
429
|
+
return de_CommandError(output, context);
|
|
993
430
|
}
|
|
994
431
|
const data = await parseBody(output.body, context);
|
|
995
432
|
let contents = {};
|
|
@@ -1000,28 +437,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1000
437
|
};
|
|
1001
438
|
return response;
|
|
1002
439
|
};
|
|
1003
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1004
|
-
const parsedOutput = {
|
|
1005
|
-
...output,
|
|
1006
|
-
body: await parseErrorBody(output.body, context),
|
|
1007
|
-
};
|
|
1008
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1009
|
-
switch (errorCode) {
|
|
1010
|
-
case "ResourceNotFoundException":
|
|
1011
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
1012
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1013
|
-
default:
|
|
1014
|
-
const parsedBody = parsedOutput.body;
|
|
1015
|
-
return throwDefaultError({
|
|
1016
|
-
output,
|
|
1017
|
-
parsedBody,
|
|
1018
|
-
errorCode,
|
|
1019
|
-
});
|
|
1020
|
-
}
|
|
1021
|
-
};
|
|
1022
440
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1023
441
|
if (output.statusCode >= 300) {
|
|
1024
|
-
return
|
|
442
|
+
return de_CommandError(output, context);
|
|
1025
443
|
}
|
|
1026
444
|
const data = await parseBody(output.body, context);
|
|
1027
445
|
let contents = {};
|
|
@@ -1032,31 +450,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1032
450
|
};
|
|
1033
451
|
return response;
|
|
1034
452
|
};
|
|
1035
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1036
|
-
const parsedOutput = {
|
|
1037
|
-
...output,
|
|
1038
|
-
body: await parseErrorBody(output.body, context),
|
|
1039
|
-
};
|
|
1040
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1041
|
-
switch (errorCode) {
|
|
1042
|
-
case "LimitExceededException":
|
|
1043
|
-
case "com.amazonaws.codestarconnections#LimitExceededException":
|
|
1044
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1045
|
-
case "ResourceNotFoundException":
|
|
1046
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
1047
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1048
|
-
default:
|
|
1049
|
-
const parsedBody = parsedOutput.body;
|
|
1050
|
-
return throwDefaultError({
|
|
1051
|
-
output,
|
|
1052
|
-
parsedBody,
|
|
1053
|
-
errorCode,
|
|
1054
|
-
});
|
|
1055
|
-
}
|
|
1056
|
-
};
|
|
1057
453
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1058
454
|
if (output.statusCode >= 300) {
|
|
1059
|
-
return
|
|
455
|
+
return de_CommandError(output, context);
|
|
1060
456
|
}
|
|
1061
457
|
const data = await parseBody(output.body, context);
|
|
1062
458
|
let contents = {};
|
|
@@ -1067,28 +463,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1067
463
|
};
|
|
1068
464
|
return response;
|
|
1069
465
|
};
|
|
1070
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1071
|
-
const parsedOutput = {
|
|
1072
|
-
...output,
|
|
1073
|
-
body: await parseErrorBody(output.body, context),
|
|
1074
|
-
};
|
|
1075
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1076
|
-
switch (errorCode) {
|
|
1077
|
-
case "ResourceNotFoundException":
|
|
1078
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
1079
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1080
|
-
default:
|
|
1081
|
-
const parsedBody = parsedOutput.body;
|
|
1082
|
-
return throwDefaultError({
|
|
1083
|
-
output,
|
|
1084
|
-
parsedBody,
|
|
1085
|
-
errorCode,
|
|
1086
|
-
});
|
|
1087
|
-
}
|
|
1088
|
-
};
|
|
1089
466
|
export const de_UpdateHostCommand = async (output, context) => {
|
|
1090
467
|
if (output.statusCode >= 300) {
|
|
1091
|
-
return
|
|
468
|
+
return de_CommandError(output, context);
|
|
1092
469
|
}
|
|
1093
470
|
const data = await parseBody(output.body, context);
|
|
1094
471
|
let contents = {};
|
|
@@ -1099,37 +476,9 @@ export const de_UpdateHostCommand = async (output, context) => {
|
|
|
1099
476
|
};
|
|
1100
477
|
return response;
|
|
1101
478
|
};
|
|
1102
|
-
const de_UpdateHostCommandError = async (output, context) => {
|
|
1103
|
-
const parsedOutput = {
|
|
1104
|
-
...output,
|
|
1105
|
-
body: await parseErrorBody(output.body, context),
|
|
1106
|
-
};
|
|
1107
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1108
|
-
switch (errorCode) {
|
|
1109
|
-
case "ConflictException":
|
|
1110
|
-
case "com.amazonaws.codestarconnections#ConflictException":
|
|
1111
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1112
|
-
case "ResourceNotFoundException":
|
|
1113
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
1114
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1115
|
-
case "ResourceUnavailableException":
|
|
1116
|
-
case "com.amazonaws.codestarconnections#ResourceUnavailableException":
|
|
1117
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
1118
|
-
case "UnsupportedOperationException":
|
|
1119
|
-
case "com.amazonaws.codestarconnections#UnsupportedOperationException":
|
|
1120
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1121
|
-
default:
|
|
1122
|
-
const parsedBody = parsedOutput.body;
|
|
1123
|
-
return throwDefaultError({
|
|
1124
|
-
output,
|
|
1125
|
-
parsedBody,
|
|
1126
|
-
errorCode,
|
|
1127
|
-
});
|
|
1128
|
-
}
|
|
1129
|
-
};
|
|
1130
479
|
export const de_UpdateRepositoryLinkCommand = async (output, context) => {
|
|
1131
480
|
if (output.statusCode >= 300) {
|
|
1132
|
-
return
|
|
481
|
+
return de_CommandError(output, context);
|
|
1133
482
|
}
|
|
1134
483
|
const data = await parseBody(output.body, context);
|
|
1135
484
|
let contents = {};
|
|
@@ -1140,46 +489,9 @@ export const de_UpdateRepositoryLinkCommand = async (output, context) => {
|
|
|
1140
489
|
};
|
|
1141
490
|
return response;
|
|
1142
491
|
};
|
|
1143
|
-
const de_UpdateRepositoryLinkCommandError = async (output, context) => {
|
|
1144
|
-
const parsedOutput = {
|
|
1145
|
-
...output,
|
|
1146
|
-
body: await parseErrorBody(output.body, context),
|
|
1147
|
-
};
|
|
1148
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1149
|
-
switch (errorCode) {
|
|
1150
|
-
case "AccessDeniedException":
|
|
1151
|
-
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
1152
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1153
|
-
case "ConditionalCheckFailedException":
|
|
1154
|
-
case "com.amazonaws.codestarconnections#ConditionalCheckFailedException":
|
|
1155
|
-
throw await de_ConditionalCheckFailedExceptionRes(parsedOutput, context);
|
|
1156
|
-
case "InternalServerException":
|
|
1157
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
1158
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1159
|
-
case "InvalidInputException":
|
|
1160
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
1161
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1162
|
-
case "ResourceNotFoundException":
|
|
1163
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
1164
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1165
|
-
case "ThrottlingException":
|
|
1166
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
1167
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1168
|
-
case "UpdateOutOfSyncException":
|
|
1169
|
-
case "com.amazonaws.codestarconnections#UpdateOutOfSyncException":
|
|
1170
|
-
throw await de_UpdateOutOfSyncExceptionRes(parsedOutput, context);
|
|
1171
|
-
default:
|
|
1172
|
-
const parsedBody = parsedOutput.body;
|
|
1173
|
-
return throwDefaultError({
|
|
1174
|
-
output,
|
|
1175
|
-
parsedBody,
|
|
1176
|
-
errorCode,
|
|
1177
|
-
});
|
|
1178
|
-
}
|
|
1179
|
-
};
|
|
1180
492
|
export const de_UpdateSyncBlockerCommand = async (output, context) => {
|
|
1181
493
|
if (output.statusCode >= 300) {
|
|
1182
|
-
return
|
|
494
|
+
return de_CommandError(output, context);
|
|
1183
495
|
}
|
|
1184
496
|
const data = await parseBody(output.body, context);
|
|
1185
497
|
let contents = {};
|
|
@@ -1190,46 +502,9 @@ export const de_UpdateSyncBlockerCommand = async (output, context) => {
|
|
|
1190
502
|
};
|
|
1191
503
|
return response;
|
|
1192
504
|
};
|
|
1193
|
-
const de_UpdateSyncBlockerCommandError = async (output, context) => {
|
|
1194
|
-
const parsedOutput = {
|
|
1195
|
-
...output,
|
|
1196
|
-
body: await parseErrorBody(output.body, context),
|
|
1197
|
-
};
|
|
1198
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1199
|
-
switch (errorCode) {
|
|
1200
|
-
case "AccessDeniedException":
|
|
1201
|
-
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
1202
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1203
|
-
case "InternalServerException":
|
|
1204
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
1205
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1206
|
-
case "InvalidInputException":
|
|
1207
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
1208
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1209
|
-
case "ResourceNotFoundException":
|
|
1210
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
1211
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1212
|
-
case "RetryLatestCommitFailedException":
|
|
1213
|
-
case "com.amazonaws.codestarconnections#RetryLatestCommitFailedException":
|
|
1214
|
-
throw await de_RetryLatestCommitFailedExceptionRes(parsedOutput, context);
|
|
1215
|
-
case "SyncBlockerDoesNotExistException":
|
|
1216
|
-
case "com.amazonaws.codestarconnections#SyncBlockerDoesNotExistException":
|
|
1217
|
-
throw await de_SyncBlockerDoesNotExistExceptionRes(parsedOutput, context);
|
|
1218
|
-
case "ThrottlingException":
|
|
1219
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
1220
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1221
|
-
default:
|
|
1222
|
-
const parsedBody = parsedOutput.body;
|
|
1223
|
-
return throwDefaultError({
|
|
1224
|
-
output,
|
|
1225
|
-
parsedBody,
|
|
1226
|
-
errorCode,
|
|
1227
|
-
});
|
|
1228
|
-
}
|
|
1229
|
-
};
|
|
1230
505
|
export const de_UpdateSyncConfigurationCommand = async (output, context) => {
|
|
1231
506
|
if (output.statusCode >= 300) {
|
|
1232
|
-
return
|
|
507
|
+
return de_CommandError(output, context);
|
|
1233
508
|
}
|
|
1234
509
|
const data = await parseBody(output.body, context);
|
|
1235
510
|
let contents = {};
|
|
@@ -1240,13 +515,22 @@ export const de_UpdateSyncConfigurationCommand = async (output, context) => {
|
|
|
1240
515
|
};
|
|
1241
516
|
return response;
|
|
1242
517
|
};
|
|
1243
|
-
const
|
|
518
|
+
const de_CommandError = async (output, context) => {
|
|
1244
519
|
const parsedOutput = {
|
|
1245
520
|
...output,
|
|
1246
521
|
body: await parseErrorBody(output.body, context),
|
|
1247
522
|
};
|
|
1248
523
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1249
524
|
switch (errorCode) {
|
|
525
|
+
case "LimitExceededException":
|
|
526
|
+
case "com.amazonaws.codestarconnections#LimitExceededException":
|
|
527
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
528
|
+
case "ResourceNotFoundException":
|
|
529
|
+
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
530
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
531
|
+
case "ResourceUnavailableException":
|
|
532
|
+
case "com.amazonaws.codestarconnections#ResourceUnavailableException":
|
|
533
|
+
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
1250
534
|
case "AccessDeniedException":
|
|
1251
535
|
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
1252
536
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
@@ -1259,15 +543,36 @@ const de_UpdateSyncConfigurationCommandError = async (output, context) => {
|
|
|
1259
543
|
case "InvalidInputException":
|
|
1260
544
|
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
1261
545
|
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1262
|
-
case "
|
|
1263
|
-
case "com.amazonaws.codestarconnections#
|
|
1264
|
-
throw await
|
|
546
|
+
case "ResourceAlreadyExistsException":
|
|
547
|
+
case "com.amazonaws.codestarconnections#ResourceAlreadyExistsException":
|
|
548
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1265
549
|
case "ThrottlingException":
|
|
1266
550
|
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
1267
551
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
552
|
+
case "SyncConfigurationStillExistsException":
|
|
553
|
+
case "com.amazonaws.codestarconnections#SyncConfigurationStillExistsException":
|
|
554
|
+
throw await de_SyncConfigurationStillExistsExceptionRes(parsedOutput, context);
|
|
555
|
+
case "UnsupportedProviderTypeException":
|
|
556
|
+
case "com.amazonaws.codestarconnections#UnsupportedProviderTypeException":
|
|
557
|
+
throw await de_UnsupportedProviderTypeExceptionRes(parsedOutput, context);
|
|
558
|
+
case "ConflictException":
|
|
559
|
+
case "com.amazonaws.codestarconnections#ConflictException":
|
|
560
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
561
|
+
case "UnsupportedOperationException":
|
|
562
|
+
case "com.amazonaws.codestarconnections#UnsupportedOperationException":
|
|
563
|
+
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
564
|
+
case "ConditionalCheckFailedException":
|
|
565
|
+
case "com.amazonaws.codestarconnections#ConditionalCheckFailedException":
|
|
566
|
+
throw await de_ConditionalCheckFailedExceptionRes(parsedOutput, context);
|
|
1268
567
|
case "UpdateOutOfSyncException":
|
|
1269
568
|
case "com.amazonaws.codestarconnections#UpdateOutOfSyncException":
|
|
1270
569
|
throw await de_UpdateOutOfSyncExceptionRes(parsedOutput, context);
|
|
570
|
+
case "RetryLatestCommitFailedException":
|
|
571
|
+
case "com.amazonaws.codestarconnections#RetryLatestCommitFailedException":
|
|
572
|
+
throw await de_RetryLatestCommitFailedExceptionRes(parsedOutput, context);
|
|
573
|
+
case "SyncBlockerDoesNotExistException":
|
|
574
|
+
case "com.amazonaws.codestarconnections#SyncBlockerDoesNotExistException":
|
|
575
|
+
throw await de_SyncBlockerDoesNotExistExceptionRes(parsedOutput, context);
|
|
1271
576
|
default:
|
|
1272
577
|
const parsedBody = parsedOutput.body;
|
|
1273
578
|
return throwDefaultError({
|