@aws-sdk/client-codepipeline 3.504.0 → 3.509.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 +164 -1090
- package/dist-es/protocols/Aws_json1_1.js +145 -1071
- package/package.json +3 -3
|
@@ -239,7 +239,7 @@ export const se_UpdatePipelineCommand = async (input, context) => {
|
|
|
239
239
|
};
|
|
240
240
|
export const de_AcknowledgeJobCommand = async (output, context) => {
|
|
241
241
|
if (output.statusCode >= 300) {
|
|
242
|
-
return
|
|
242
|
+
return de_CommandError(output, context);
|
|
243
243
|
}
|
|
244
244
|
const data = await parseBody(output.body, context);
|
|
245
245
|
let contents = {};
|
|
@@ -250,34 +250,9 @@ export const de_AcknowledgeJobCommand = async (output, context) => {
|
|
|
250
250
|
};
|
|
251
251
|
return response;
|
|
252
252
|
};
|
|
253
|
-
const de_AcknowledgeJobCommandError = async (output, context) => {
|
|
254
|
-
const parsedOutput = {
|
|
255
|
-
...output,
|
|
256
|
-
body: await parseErrorBody(output.body, context),
|
|
257
|
-
};
|
|
258
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
259
|
-
switch (errorCode) {
|
|
260
|
-
case "InvalidNonceException":
|
|
261
|
-
case "com.amazonaws.codepipeline#InvalidNonceException":
|
|
262
|
-
throw await de_InvalidNonceExceptionRes(parsedOutput, context);
|
|
263
|
-
case "JobNotFoundException":
|
|
264
|
-
case "com.amazonaws.codepipeline#JobNotFoundException":
|
|
265
|
-
throw await de_JobNotFoundExceptionRes(parsedOutput, context);
|
|
266
|
-
case "ValidationException":
|
|
267
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
268
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
269
|
-
default:
|
|
270
|
-
const parsedBody = parsedOutput.body;
|
|
271
|
-
return throwDefaultError({
|
|
272
|
-
output,
|
|
273
|
-
parsedBody,
|
|
274
|
-
errorCode,
|
|
275
|
-
});
|
|
276
|
-
}
|
|
277
|
-
};
|
|
278
253
|
export const de_AcknowledgeThirdPartyJobCommand = async (output, context) => {
|
|
279
254
|
if (output.statusCode >= 300) {
|
|
280
|
-
return
|
|
255
|
+
return de_CommandError(output, context);
|
|
281
256
|
}
|
|
282
257
|
const data = await parseBody(output.body, context);
|
|
283
258
|
let contents = {};
|
|
@@ -288,37 +263,9 @@ export const de_AcknowledgeThirdPartyJobCommand = async (output, context) => {
|
|
|
288
263
|
};
|
|
289
264
|
return response;
|
|
290
265
|
};
|
|
291
|
-
const de_AcknowledgeThirdPartyJobCommandError = async (output, context) => {
|
|
292
|
-
const parsedOutput = {
|
|
293
|
-
...output,
|
|
294
|
-
body: await parseErrorBody(output.body, context),
|
|
295
|
-
};
|
|
296
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
297
|
-
switch (errorCode) {
|
|
298
|
-
case "InvalidClientTokenException":
|
|
299
|
-
case "com.amazonaws.codepipeline#InvalidClientTokenException":
|
|
300
|
-
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
301
|
-
case "InvalidNonceException":
|
|
302
|
-
case "com.amazonaws.codepipeline#InvalidNonceException":
|
|
303
|
-
throw await de_InvalidNonceExceptionRes(parsedOutput, context);
|
|
304
|
-
case "JobNotFoundException":
|
|
305
|
-
case "com.amazonaws.codepipeline#JobNotFoundException":
|
|
306
|
-
throw await de_JobNotFoundExceptionRes(parsedOutput, context);
|
|
307
|
-
case "ValidationException":
|
|
308
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
309
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
310
|
-
default:
|
|
311
|
-
const parsedBody = parsedOutput.body;
|
|
312
|
-
return throwDefaultError({
|
|
313
|
-
output,
|
|
314
|
-
parsedBody,
|
|
315
|
-
errorCode,
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
|
-
};
|
|
319
266
|
export const de_CreateCustomActionTypeCommand = async (output, context) => {
|
|
320
267
|
if (output.statusCode >= 300) {
|
|
321
|
-
return
|
|
268
|
+
return de_CommandError(output, context);
|
|
322
269
|
}
|
|
323
270
|
const data = await parseBody(output.body, context);
|
|
324
271
|
let contents = {};
|
|
@@ -329,40 +276,9 @@ export const de_CreateCustomActionTypeCommand = async (output, context) => {
|
|
|
329
276
|
};
|
|
330
277
|
return response;
|
|
331
278
|
};
|
|
332
|
-
const de_CreateCustomActionTypeCommandError = async (output, context) => {
|
|
333
|
-
const parsedOutput = {
|
|
334
|
-
...output,
|
|
335
|
-
body: await parseErrorBody(output.body, context),
|
|
336
|
-
};
|
|
337
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
338
|
-
switch (errorCode) {
|
|
339
|
-
case "ConcurrentModificationException":
|
|
340
|
-
case "com.amazonaws.codepipeline#ConcurrentModificationException":
|
|
341
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
342
|
-
case "InvalidTagsException":
|
|
343
|
-
case "com.amazonaws.codepipeline#InvalidTagsException":
|
|
344
|
-
throw await de_InvalidTagsExceptionRes(parsedOutput, context);
|
|
345
|
-
case "LimitExceededException":
|
|
346
|
-
case "com.amazonaws.codepipeline#LimitExceededException":
|
|
347
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
348
|
-
case "TooManyTagsException":
|
|
349
|
-
case "com.amazonaws.codepipeline#TooManyTagsException":
|
|
350
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
351
|
-
case "ValidationException":
|
|
352
|
-
case "com.amazonaws.codepipeline#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
279
|
export const de_CreatePipelineCommand = async (output, context) => {
|
|
364
280
|
if (output.statusCode >= 300) {
|
|
365
|
-
return
|
|
281
|
+
return de_CommandError(output, context);
|
|
366
282
|
}
|
|
367
283
|
const data = await parseBody(output.body, context);
|
|
368
284
|
let contents = {};
|
|
@@ -373,55 +289,9 @@ export const de_CreatePipelineCommand = async (output, context) => {
|
|
|
373
289
|
};
|
|
374
290
|
return response;
|
|
375
291
|
};
|
|
376
|
-
const de_CreatePipelineCommandError = 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 "ConcurrentModificationException":
|
|
384
|
-
case "com.amazonaws.codepipeline#ConcurrentModificationException":
|
|
385
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
386
|
-
case "InvalidActionDeclarationException":
|
|
387
|
-
case "com.amazonaws.codepipeline#InvalidActionDeclarationException":
|
|
388
|
-
throw await de_InvalidActionDeclarationExceptionRes(parsedOutput, context);
|
|
389
|
-
case "InvalidBlockerDeclarationException":
|
|
390
|
-
case "com.amazonaws.codepipeline#InvalidBlockerDeclarationException":
|
|
391
|
-
throw await de_InvalidBlockerDeclarationExceptionRes(parsedOutput, context);
|
|
392
|
-
case "InvalidStageDeclarationException":
|
|
393
|
-
case "com.amazonaws.codepipeline#InvalidStageDeclarationException":
|
|
394
|
-
throw await de_InvalidStageDeclarationExceptionRes(parsedOutput, context);
|
|
395
|
-
case "InvalidStructureException":
|
|
396
|
-
case "com.amazonaws.codepipeline#InvalidStructureException":
|
|
397
|
-
throw await de_InvalidStructureExceptionRes(parsedOutput, context);
|
|
398
|
-
case "InvalidTagsException":
|
|
399
|
-
case "com.amazonaws.codepipeline#InvalidTagsException":
|
|
400
|
-
throw await de_InvalidTagsExceptionRes(parsedOutput, context);
|
|
401
|
-
case "LimitExceededException":
|
|
402
|
-
case "com.amazonaws.codepipeline#LimitExceededException":
|
|
403
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
404
|
-
case "PipelineNameInUseException":
|
|
405
|
-
case "com.amazonaws.codepipeline#PipelineNameInUseException":
|
|
406
|
-
throw await de_PipelineNameInUseExceptionRes(parsedOutput, context);
|
|
407
|
-
case "TooManyTagsException":
|
|
408
|
-
case "com.amazonaws.codepipeline#TooManyTagsException":
|
|
409
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
410
|
-
case "ValidationException":
|
|
411
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
412
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
413
|
-
default:
|
|
414
|
-
const parsedBody = parsedOutput.body;
|
|
415
|
-
return throwDefaultError({
|
|
416
|
-
output,
|
|
417
|
-
parsedBody,
|
|
418
|
-
errorCode,
|
|
419
|
-
});
|
|
420
|
-
}
|
|
421
|
-
};
|
|
422
292
|
export const de_DeleteCustomActionTypeCommand = async (output, context) => {
|
|
423
293
|
if (output.statusCode >= 300) {
|
|
424
|
-
return
|
|
294
|
+
return de_CommandError(output, context);
|
|
425
295
|
}
|
|
426
296
|
await collectBody(output.body, context);
|
|
427
297
|
const response = {
|
|
@@ -429,31 +299,9 @@ export const de_DeleteCustomActionTypeCommand = async (output, context) => {
|
|
|
429
299
|
};
|
|
430
300
|
return response;
|
|
431
301
|
};
|
|
432
|
-
const de_DeleteCustomActionTypeCommandError = async (output, context) => {
|
|
433
|
-
const parsedOutput = {
|
|
434
|
-
...output,
|
|
435
|
-
body: await parseErrorBody(output.body, context),
|
|
436
|
-
};
|
|
437
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
438
|
-
switch (errorCode) {
|
|
439
|
-
case "ConcurrentModificationException":
|
|
440
|
-
case "com.amazonaws.codepipeline#ConcurrentModificationException":
|
|
441
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
442
|
-
case "ValidationException":
|
|
443
|
-
case "com.amazonaws.codepipeline#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
302
|
export const de_DeletePipelineCommand = async (output, context) => {
|
|
455
303
|
if (output.statusCode >= 300) {
|
|
456
|
-
return
|
|
304
|
+
return de_CommandError(output, context);
|
|
457
305
|
}
|
|
458
306
|
await collectBody(output.body, context);
|
|
459
307
|
const response = {
|
|
@@ -461,31 +309,9 @@ export const de_DeletePipelineCommand = async (output, context) => {
|
|
|
461
309
|
};
|
|
462
310
|
return response;
|
|
463
311
|
};
|
|
464
|
-
const de_DeletePipelineCommandError = async (output, context) => {
|
|
465
|
-
const parsedOutput = {
|
|
466
|
-
...output,
|
|
467
|
-
body: await parseErrorBody(output.body, context),
|
|
468
|
-
};
|
|
469
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
470
|
-
switch (errorCode) {
|
|
471
|
-
case "ConcurrentModificationException":
|
|
472
|
-
case "com.amazonaws.codepipeline#ConcurrentModificationException":
|
|
473
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
474
|
-
case "ValidationException":
|
|
475
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
476
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
477
|
-
default:
|
|
478
|
-
const parsedBody = parsedOutput.body;
|
|
479
|
-
return throwDefaultError({
|
|
480
|
-
output,
|
|
481
|
-
parsedBody,
|
|
482
|
-
errorCode,
|
|
483
|
-
});
|
|
484
|
-
}
|
|
485
|
-
};
|
|
486
312
|
export const de_DeleteWebhookCommand = async (output, context) => {
|
|
487
313
|
if (output.statusCode >= 300) {
|
|
488
|
-
return
|
|
314
|
+
return de_CommandError(output, context);
|
|
489
315
|
}
|
|
490
316
|
const data = await parseBody(output.body, context);
|
|
491
317
|
let contents = {};
|
|
@@ -496,31 +322,9 @@ export const de_DeleteWebhookCommand = async (output, context) => {
|
|
|
496
322
|
};
|
|
497
323
|
return response;
|
|
498
324
|
};
|
|
499
|
-
const de_DeleteWebhookCommandError = async (output, context) => {
|
|
500
|
-
const parsedOutput = {
|
|
501
|
-
...output,
|
|
502
|
-
body: await parseErrorBody(output.body, context),
|
|
503
|
-
};
|
|
504
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
505
|
-
switch (errorCode) {
|
|
506
|
-
case "ConcurrentModificationException":
|
|
507
|
-
case "com.amazonaws.codepipeline#ConcurrentModificationException":
|
|
508
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
509
|
-
case "ValidationException":
|
|
510
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
511
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
512
|
-
default:
|
|
513
|
-
const parsedBody = parsedOutput.body;
|
|
514
|
-
return throwDefaultError({
|
|
515
|
-
output,
|
|
516
|
-
parsedBody,
|
|
517
|
-
errorCode,
|
|
518
|
-
});
|
|
519
|
-
}
|
|
520
|
-
};
|
|
521
325
|
export const de_DeregisterWebhookWithThirdPartyCommand = async (output, context) => {
|
|
522
326
|
if (output.statusCode >= 300) {
|
|
523
|
-
return
|
|
327
|
+
return de_CommandError(output, context);
|
|
524
328
|
}
|
|
525
329
|
const data = await parseBody(output.body, context);
|
|
526
330
|
let contents = {};
|
|
@@ -531,31 +335,9 @@ export const de_DeregisterWebhookWithThirdPartyCommand = async (output, context)
|
|
|
531
335
|
};
|
|
532
336
|
return response;
|
|
533
337
|
};
|
|
534
|
-
const de_DeregisterWebhookWithThirdPartyCommandError = async (output, context) => {
|
|
535
|
-
const parsedOutput = {
|
|
536
|
-
...output,
|
|
537
|
-
body: await parseErrorBody(output.body, context),
|
|
538
|
-
};
|
|
539
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
540
|
-
switch (errorCode) {
|
|
541
|
-
case "ValidationException":
|
|
542
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
543
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
544
|
-
case "WebhookNotFoundException":
|
|
545
|
-
case "com.amazonaws.codepipeline#WebhookNotFoundException":
|
|
546
|
-
throw await de_WebhookNotFoundExceptionRes(parsedOutput, context);
|
|
547
|
-
default:
|
|
548
|
-
const parsedBody = parsedOutput.body;
|
|
549
|
-
return throwDefaultError({
|
|
550
|
-
output,
|
|
551
|
-
parsedBody,
|
|
552
|
-
errorCode,
|
|
553
|
-
});
|
|
554
|
-
}
|
|
555
|
-
};
|
|
556
338
|
export const de_DisableStageTransitionCommand = async (output, context) => {
|
|
557
339
|
if (output.statusCode >= 300) {
|
|
558
|
-
return
|
|
340
|
+
return de_CommandError(output, context);
|
|
559
341
|
}
|
|
560
342
|
await collectBody(output.body, context);
|
|
561
343
|
const response = {
|
|
@@ -563,34 +345,9 @@ export const de_DisableStageTransitionCommand = async (output, context) => {
|
|
|
563
345
|
};
|
|
564
346
|
return response;
|
|
565
347
|
};
|
|
566
|
-
const de_DisableStageTransitionCommandError = async (output, context) => {
|
|
567
|
-
const parsedOutput = {
|
|
568
|
-
...output,
|
|
569
|
-
body: await parseErrorBody(output.body, context),
|
|
570
|
-
};
|
|
571
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
572
|
-
switch (errorCode) {
|
|
573
|
-
case "PipelineNotFoundException":
|
|
574
|
-
case "com.amazonaws.codepipeline#PipelineNotFoundException":
|
|
575
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
576
|
-
case "StageNotFoundException":
|
|
577
|
-
case "com.amazonaws.codepipeline#StageNotFoundException":
|
|
578
|
-
throw await de_StageNotFoundExceptionRes(parsedOutput, context);
|
|
579
|
-
case "ValidationException":
|
|
580
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
581
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
582
|
-
default:
|
|
583
|
-
const parsedBody = parsedOutput.body;
|
|
584
|
-
return throwDefaultError({
|
|
585
|
-
output,
|
|
586
|
-
parsedBody,
|
|
587
|
-
errorCode,
|
|
588
|
-
});
|
|
589
|
-
}
|
|
590
|
-
};
|
|
591
348
|
export const de_EnableStageTransitionCommand = async (output, context) => {
|
|
592
349
|
if (output.statusCode >= 300) {
|
|
593
|
-
return
|
|
350
|
+
return de_CommandError(output, context);
|
|
594
351
|
}
|
|
595
352
|
await collectBody(output.body, context);
|
|
596
353
|
const response = {
|
|
@@ -598,69 +355,22 @@ export const de_EnableStageTransitionCommand = async (output, context) => {
|
|
|
598
355
|
};
|
|
599
356
|
return response;
|
|
600
357
|
};
|
|
601
|
-
const
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
case "StageNotFoundException":
|
|
612
|
-
case "com.amazonaws.codepipeline#StageNotFoundException":
|
|
613
|
-
throw await de_StageNotFoundExceptionRes(parsedOutput, context);
|
|
614
|
-
case "ValidationException":
|
|
615
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
616
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
617
|
-
default:
|
|
618
|
-
const parsedBody = parsedOutput.body;
|
|
619
|
-
return throwDefaultError({
|
|
620
|
-
output,
|
|
621
|
-
parsedBody,
|
|
622
|
-
errorCode,
|
|
623
|
-
});
|
|
624
|
-
}
|
|
625
|
-
};
|
|
626
|
-
export const de_GetActionTypeCommand = async (output, context) => {
|
|
627
|
-
if (output.statusCode >= 300) {
|
|
628
|
-
return de_GetActionTypeCommandError(output, context);
|
|
629
|
-
}
|
|
630
|
-
const data = await parseBody(output.body, context);
|
|
631
|
-
let contents = {};
|
|
632
|
-
contents = _json(data);
|
|
633
|
-
const response = {
|
|
634
|
-
$metadata: deserializeMetadata(output),
|
|
635
|
-
...contents,
|
|
358
|
+
export const de_GetActionTypeCommand = async (output, context) => {
|
|
359
|
+
if (output.statusCode >= 300) {
|
|
360
|
+
return de_CommandError(output, context);
|
|
361
|
+
}
|
|
362
|
+
const data = await parseBody(output.body, context);
|
|
363
|
+
let contents = {};
|
|
364
|
+
contents = _json(data);
|
|
365
|
+
const response = {
|
|
366
|
+
$metadata: deserializeMetadata(output),
|
|
367
|
+
...contents,
|
|
636
368
|
};
|
|
637
369
|
return response;
|
|
638
370
|
};
|
|
639
|
-
const de_GetActionTypeCommandError = async (output, context) => {
|
|
640
|
-
const parsedOutput = {
|
|
641
|
-
...output,
|
|
642
|
-
body: await parseErrorBody(output.body, context),
|
|
643
|
-
};
|
|
644
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
645
|
-
switch (errorCode) {
|
|
646
|
-
case "ActionTypeNotFoundException":
|
|
647
|
-
case "com.amazonaws.codepipeline#ActionTypeNotFoundException":
|
|
648
|
-
throw await de_ActionTypeNotFoundExceptionRes(parsedOutput, context);
|
|
649
|
-
case "ValidationException":
|
|
650
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
651
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
652
|
-
default:
|
|
653
|
-
const parsedBody = parsedOutput.body;
|
|
654
|
-
return throwDefaultError({
|
|
655
|
-
output,
|
|
656
|
-
parsedBody,
|
|
657
|
-
errorCode,
|
|
658
|
-
});
|
|
659
|
-
}
|
|
660
|
-
};
|
|
661
371
|
export const de_GetJobDetailsCommand = async (output, context) => {
|
|
662
372
|
if (output.statusCode >= 300) {
|
|
663
|
-
return
|
|
373
|
+
return de_CommandError(output, context);
|
|
664
374
|
}
|
|
665
375
|
const data = await parseBody(output.body, context);
|
|
666
376
|
let contents = {};
|
|
@@ -671,31 +381,9 @@ export const de_GetJobDetailsCommand = async (output, context) => {
|
|
|
671
381
|
};
|
|
672
382
|
return response;
|
|
673
383
|
};
|
|
674
|
-
const de_GetJobDetailsCommandError = async (output, context) => {
|
|
675
|
-
const parsedOutput = {
|
|
676
|
-
...output,
|
|
677
|
-
body: await parseErrorBody(output.body, context),
|
|
678
|
-
};
|
|
679
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
680
|
-
switch (errorCode) {
|
|
681
|
-
case "JobNotFoundException":
|
|
682
|
-
case "com.amazonaws.codepipeline#JobNotFoundException":
|
|
683
|
-
throw await de_JobNotFoundExceptionRes(parsedOutput, context);
|
|
684
|
-
case "ValidationException":
|
|
685
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
686
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
687
|
-
default:
|
|
688
|
-
const parsedBody = parsedOutput.body;
|
|
689
|
-
return throwDefaultError({
|
|
690
|
-
output,
|
|
691
|
-
parsedBody,
|
|
692
|
-
errorCode,
|
|
693
|
-
});
|
|
694
|
-
}
|
|
695
|
-
};
|
|
696
384
|
export const de_GetPipelineCommand = async (output, context) => {
|
|
697
385
|
if (output.statusCode >= 300) {
|
|
698
|
-
return
|
|
386
|
+
return de_CommandError(output, context);
|
|
699
387
|
}
|
|
700
388
|
const data = await parseBody(output.body, context);
|
|
701
389
|
let contents = {};
|
|
@@ -706,34 +394,9 @@ export const de_GetPipelineCommand = async (output, context) => {
|
|
|
706
394
|
};
|
|
707
395
|
return response;
|
|
708
396
|
};
|
|
709
|
-
const de_GetPipelineCommandError = async (output, context) => {
|
|
710
|
-
const parsedOutput = {
|
|
711
|
-
...output,
|
|
712
|
-
body: await parseErrorBody(output.body, context),
|
|
713
|
-
};
|
|
714
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
715
|
-
switch (errorCode) {
|
|
716
|
-
case "PipelineNotFoundException":
|
|
717
|
-
case "com.amazonaws.codepipeline#PipelineNotFoundException":
|
|
718
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
719
|
-
case "PipelineVersionNotFoundException":
|
|
720
|
-
case "com.amazonaws.codepipeline#PipelineVersionNotFoundException":
|
|
721
|
-
throw await de_PipelineVersionNotFoundExceptionRes(parsedOutput, context);
|
|
722
|
-
case "ValidationException":
|
|
723
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
724
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
725
|
-
default:
|
|
726
|
-
const parsedBody = parsedOutput.body;
|
|
727
|
-
return throwDefaultError({
|
|
728
|
-
output,
|
|
729
|
-
parsedBody,
|
|
730
|
-
errorCode,
|
|
731
|
-
});
|
|
732
|
-
}
|
|
733
|
-
};
|
|
734
397
|
export const de_GetPipelineExecutionCommand = async (output, context) => {
|
|
735
398
|
if (output.statusCode >= 300) {
|
|
736
|
-
return
|
|
399
|
+
return de_CommandError(output, context);
|
|
737
400
|
}
|
|
738
401
|
const data = await parseBody(output.body, context);
|
|
739
402
|
let contents = {};
|
|
@@ -744,34 +407,9 @@ export const de_GetPipelineExecutionCommand = async (output, context) => {
|
|
|
744
407
|
};
|
|
745
408
|
return response;
|
|
746
409
|
};
|
|
747
|
-
const de_GetPipelineExecutionCommandError = async (output, context) => {
|
|
748
|
-
const parsedOutput = {
|
|
749
|
-
...output,
|
|
750
|
-
body: await parseErrorBody(output.body, context),
|
|
751
|
-
};
|
|
752
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
753
|
-
switch (errorCode) {
|
|
754
|
-
case "PipelineExecutionNotFoundException":
|
|
755
|
-
case "com.amazonaws.codepipeline#PipelineExecutionNotFoundException":
|
|
756
|
-
throw await de_PipelineExecutionNotFoundExceptionRes(parsedOutput, context);
|
|
757
|
-
case "PipelineNotFoundException":
|
|
758
|
-
case "com.amazonaws.codepipeline#PipelineNotFoundException":
|
|
759
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
760
|
-
case "ValidationException":
|
|
761
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
762
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
763
|
-
default:
|
|
764
|
-
const parsedBody = parsedOutput.body;
|
|
765
|
-
return throwDefaultError({
|
|
766
|
-
output,
|
|
767
|
-
parsedBody,
|
|
768
|
-
errorCode,
|
|
769
|
-
});
|
|
770
|
-
}
|
|
771
|
-
};
|
|
772
410
|
export const de_GetPipelineStateCommand = async (output, context) => {
|
|
773
411
|
if (output.statusCode >= 300) {
|
|
774
|
-
return
|
|
412
|
+
return de_CommandError(output, context);
|
|
775
413
|
}
|
|
776
414
|
const data = await parseBody(output.body, context);
|
|
777
415
|
let contents = {};
|
|
@@ -782,31 +420,9 @@ export const de_GetPipelineStateCommand = async (output, context) => {
|
|
|
782
420
|
};
|
|
783
421
|
return response;
|
|
784
422
|
};
|
|
785
|
-
const de_GetPipelineStateCommandError = async (output, context) => {
|
|
786
|
-
const parsedOutput = {
|
|
787
|
-
...output,
|
|
788
|
-
body: await parseErrorBody(output.body, context),
|
|
789
|
-
};
|
|
790
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
791
|
-
switch (errorCode) {
|
|
792
|
-
case "PipelineNotFoundException":
|
|
793
|
-
case "com.amazonaws.codepipeline#PipelineNotFoundException":
|
|
794
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
795
|
-
case "ValidationException":
|
|
796
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
797
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
798
|
-
default:
|
|
799
|
-
const parsedBody = parsedOutput.body;
|
|
800
|
-
return throwDefaultError({
|
|
801
|
-
output,
|
|
802
|
-
parsedBody,
|
|
803
|
-
errorCode,
|
|
804
|
-
});
|
|
805
|
-
}
|
|
806
|
-
};
|
|
807
423
|
export const de_GetThirdPartyJobDetailsCommand = async (output, context) => {
|
|
808
424
|
if (output.statusCode >= 300) {
|
|
809
|
-
return
|
|
425
|
+
return de_CommandError(output, context);
|
|
810
426
|
}
|
|
811
427
|
const data = await parseBody(output.body, context);
|
|
812
428
|
let contents = {};
|
|
@@ -817,37 +433,9 @@ export const de_GetThirdPartyJobDetailsCommand = async (output, context) => {
|
|
|
817
433
|
};
|
|
818
434
|
return response;
|
|
819
435
|
};
|
|
820
|
-
const de_GetThirdPartyJobDetailsCommandError = async (output, context) => {
|
|
821
|
-
const parsedOutput = {
|
|
822
|
-
...output,
|
|
823
|
-
body: await parseErrorBody(output.body, context),
|
|
824
|
-
};
|
|
825
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
826
|
-
switch (errorCode) {
|
|
827
|
-
case "InvalidClientTokenException":
|
|
828
|
-
case "com.amazonaws.codepipeline#InvalidClientTokenException":
|
|
829
|
-
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
830
|
-
case "InvalidJobException":
|
|
831
|
-
case "com.amazonaws.codepipeline#InvalidJobException":
|
|
832
|
-
throw await de_InvalidJobExceptionRes(parsedOutput, context);
|
|
833
|
-
case "JobNotFoundException":
|
|
834
|
-
case "com.amazonaws.codepipeline#JobNotFoundException":
|
|
835
|
-
throw await de_JobNotFoundExceptionRes(parsedOutput, context);
|
|
836
|
-
case "ValidationException":
|
|
837
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
838
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
839
|
-
default:
|
|
840
|
-
const parsedBody = parsedOutput.body;
|
|
841
|
-
return throwDefaultError({
|
|
842
|
-
output,
|
|
843
|
-
parsedBody,
|
|
844
|
-
errorCode,
|
|
845
|
-
});
|
|
846
|
-
}
|
|
847
|
-
};
|
|
848
436
|
export const de_ListActionExecutionsCommand = async (output, context) => {
|
|
849
437
|
if (output.statusCode >= 300) {
|
|
850
|
-
return
|
|
438
|
+
return de_CommandError(output, context);
|
|
851
439
|
}
|
|
852
440
|
const data = await parseBody(output.body, context);
|
|
853
441
|
let contents = {};
|
|
@@ -858,37 +446,9 @@ export const de_ListActionExecutionsCommand = async (output, context) => {
|
|
|
858
446
|
};
|
|
859
447
|
return response;
|
|
860
448
|
};
|
|
861
|
-
const de_ListActionExecutionsCommandError = async (output, context) => {
|
|
862
|
-
const parsedOutput = {
|
|
863
|
-
...output,
|
|
864
|
-
body: await parseErrorBody(output.body, context),
|
|
865
|
-
};
|
|
866
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
867
|
-
switch (errorCode) {
|
|
868
|
-
case "InvalidNextTokenException":
|
|
869
|
-
case "com.amazonaws.codepipeline#InvalidNextTokenException":
|
|
870
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
871
|
-
case "PipelineExecutionNotFoundException":
|
|
872
|
-
case "com.amazonaws.codepipeline#PipelineExecutionNotFoundException":
|
|
873
|
-
throw await de_PipelineExecutionNotFoundExceptionRes(parsedOutput, context);
|
|
874
|
-
case "PipelineNotFoundException":
|
|
875
|
-
case "com.amazonaws.codepipeline#PipelineNotFoundException":
|
|
876
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
877
|
-
case "ValidationException":
|
|
878
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
879
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
880
|
-
default:
|
|
881
|
-
const parsedBody = parsedOutput.body;
|
|
882
|
-
return throwDefaultError({
|
|
883
|
-
output,
|
|
884
|
-
parsedBody,
|
|
885
|
-
errorCode,
|
|
886
|
-
});
|
|
887
|
-
}
|
|
888
|
-
};
|
|
889
449
|
export const de_ListActionTypesCommand = async (output, context) => {
|
|
890
450
|
if (output.statusCode >= 300) {
|
|
891
|
-
return
|
|
451
|
+
return de_CommandError(output, context);
|
|
892
452
|
}
|
|
893
453
|
const data = await parseBody(output.body, context);
|
|
894
454
|
let contents = {};
|
|
@@ -899,31 +459,9 @@ export const de_ListActionTypesCommand = async (output, context) => {
|
|
|
899
459
|
};
|
|
900
460
|
return response;
|
|
901
461
|
};
|
|
902
|
-
const de_ListActionTypesCommandError = async (output, context) => {
|
|
903
|
-
const parsedOutput = {
|
|
904
|
-
...output,
|
|
905
|
-
body: await parseErrorBody(output.body, context),
|
|
906
|
-
};
|
|
907
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
908
|
-
switch (errorCode) {
|
|
909
|
-
case "InvalidNextTokenException":
|
|
910
|
-
case "com.amazonaws.codepipeline#InvalidNextTokenException":
|
|
911
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
912
|
-
case "ValidationException":
|
|
913
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
914
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
915
|
-
default:
|
|
916
|
-
const parsedBody = parsedOutput.body;
|
|
917
|
-
return throwDefaultError({
|
|
918
|
-
output,
|
|
919
|
-
parsedBody,
|
|
920
|
-
errorCode,
|
|
921
|
-
});
|
|
922
|
-
}
|
|
923
|
-
};
|
|
924
462
|
export const de_ListPipelineExecutionsCommand = async (output, context) => {
|
|
925
463
|
if (output.statusCode >= 300) {
|
|
926
|
-
return
|
|
464
|
+
return de_CommandError(output, context);
|
|
927
465
|
}
|
|
928
466
|
const data = await parseBody(output.body, context);
|
|
929
467
|
let contents = {};
|
|
@@ -934,34 +472,9 @@ export const de_ListPipelineExecutionsCommand = async (output, context) => {
|
|
|
934
472
|
};
|
|
935
473
|
return response;
|
|
936
474
|
};
|
|
937
|
-
const de_ListPipelineExecutionsCommandError = async (output, context) => {
|
|
938
|
-
const parsedOutput = {
|
|
939
|
-
...output,
|
|
940
|
-
body: await parseErrorBody(output.body, context),
|
|
941
|
-
};
|
|
942
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
943
|
-
switch (errorCode) {
|
|
944
|
-
case "InvalidNextTokenException":
|
|
945
|
-
case "com.amazonaws.codepipeline#InvalidNextTokenException":
|
|
946
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
947
|
-
case "PipelineNotFoundException":
|
|
948
|
-
case "com.amazonaws.codepipeline#PipelineNotFoundException":
|
|
949
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
950
|
-
case "ValidationException":
|
|
951
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
952
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
953
|
-
default:
|
|
954
|
-
const parsedBody = parsedOutput.body;
|
|
955
|
-
return throwDefaultError({
|
|
956
|
-
output,
|
|
957
|
-
parsedBody,
|
|
958
|
-
errorCode,
|
|
959
|
-
});
|
|
960
|
-
}
|
|
961
|
-
};
|
|
962
475
|
export const de_ListPipelinesCommand = async (output, context) => {
|
|
963
476
|
if (output.statusCode >= 300) {
|
|
964
|
-
return
|
|
477
|
+
return de_CommandError(output, context);
|
|
965
478
|
}
|
|
966
479
|
const data = await parseBody(output.body, context);
|
|
967
480
|
let contents = {};
|
|
@@ -972,31 +485,9 @@ export const de_ListPipelinesCommand = async (output, context) => {
|
|
|
972
485
|
};
|
|
973
486
|
return response;
|
|
974
487
|
};
|
|
975
|
-
const de_ListPipelinesCommandError = async (output, context) => {
|
|
976
|
-
const parsedOutput = {
|
|
977
|
-
...output,
|
|
978
|
-
body: await parseErrorBody(output.body, context),
|
|
979
|
-
};
|
|
980
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
981
|
-
switch (errorCode) {
|
|
982
|
-
case "InvalidNextTokenException":
|
|
983
|
-
case "com.amazonaws.codepipeline#InvalidNextTokenException":
|
|
984
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
985
|
-
case "ValidationException":
|
|
986
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
987
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
988
|
-
default:
|
|
989
|
-
const parsedBody = parsedOutput.body;
|
|
990
|
-
return throwDefaultError({
|
|
991
|
-
output,
|
|
992
|
-
parsedBody,
|
|
993
|
-
errorCode,
|
|
994
|
-
});
|
|
995
|
-
}
|
|
996
|
-
};
|
|
997
488
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
998
489
|
if (output.statusCode >= 300) {
|
|
999
|
-
return
|
|
490
|
+
return de_CommandError(output, context);
|
|
1000
491
|
}
|
|
1001
492
|
const data = await parseBody(output.body, context);
|
|
1002
493
|
let contents = {};
|
|
@@ -1007,37 +498,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1007
498
|
};
|
|
1008
499
|
return response;
|
|
1009
500
|
};
|
|
1010
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1011
|
-
const parsedOutput = {
|
|
1012
|
-
...output,
|
|
1013
|
-
body: await parseErrorBody(output.body, context),
|
|
1014
|
-
};
|
|
1015
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1016
|
-
switch (errorCode) {
|
|
1017
|
-
case "InvalidArnException":
|
|
1018
|
-
case "com.amazonaws.codepipeline#InvalidArnException":
|
|
1019
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1020
|
-
case "InvalidNextTokenException":
|
|
1021
|
-
case "com.amazonaws.codepipeline#InvalidNextTokenException":
|
|
1022
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1023
|
-
case "ResourceNotFoundException":
|
|
1024
|
-
case "com.amazonaws.codepipeline#ResourceNotFoundException":
|
|
1025
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1026
|
-
case "ValidationException":
|
|
1027
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
1028
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1029
|
-
default:
|
|
1030
|
-
const parsedBody = parsedOutput.body;
|
|
1031
|
-
return throwDefaultError({
|
|
1032
|
-
output,
|
|
1033
|
-
parsedBody,
|
|
1034
|
-
errorCode,
|
|
1035
|
-
});
|
|
1036
|
-
}
|
|
1037
|
-
};
|
|
1038
501
|
export const de_ListWebhooksCommand = async (output, context) => {
|
|
1039
502
|
if (output.statusCode >= 300) {
|
|
1040
|
-
return
|
|
503
|
+
return de_CommandError(output, context);
|
|
1041
504
|
}
|
|
1042
505
|
const data = await parseBody(output.body, context);
|
|
1043
506
|
let contents = {};
|
|
@@ -1048,31 +511,9 @@ export const de_ListWebhooksCommand = async (output, context) => {
|
|
|
1048
511
|
};
|
|
1049
512
|
return response;
|
|
1050
513
|
};
|
|
1051
|
-
const de_ListWebhooksCommandError = async (output, context) => {
|
|
1052
|
-
const parsedOutput = {
|
|
1053
|
-
...output,
|
|
1054
|
-
body: await parseErrorBody(output.body, context),
|
|
1055
|
-
};
|
|
1056
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1057
|
-
switch (errorCode) {
|
|
1058
|
-
case "InvalidNextTokenException":
|
|
1059
|
-
case "com.amazonaws.codepipeline#InvalidNextTokenException":
|
|
1060
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1061
|
-
case "ValidationException":
|
|
1062
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
1063
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1064
|
-
default:
|
|
1065
|
-
const parsedBody = parsedOutput.body;
|
|
1066
|
-
return throwDefaultError({
|
|
1067
|
-
output,
|
|
1068
|
-
parsedBody,
|
|
1069
|
-
errorCode,
|
|
1070
|
-
});
|
|
1071
|
-
}
|
|
1072
|
-
};
|
|
1073
514
|
export const de_PollForJobsCommand = async (output, context) => {
|
|
1074
515
|
if (output.statusCode >= 300) {
|
|
1075
|
-
return
|
|
516
|
+
return de_CommandError(output, context);
|
|
1076
517
|
}
|
|
1077
518
|
const data = await parseBody(output.body, context);
|
|
1078
519
|
let contents = {};
|
|
@@ -1083,31 +524,9 @@ export const de_PollForJobsCommand = async (output, context) => {
|
|
|
1083
524
|
};
|
|
1084
525
|
return response;
|
|
1085
526
|
};
|
|
1086
|
-
const de_PollForJobsCommandError = async (output, context) => {
|
|
1087
|
-
const parsedOutput = {
|
|
1088
|
-
...output,
|
|
1089
|
-
body: await parseErrorBody(output.body, context),
|
|
1090
|
-
};
|
|
1091
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1092
|
-
switch (errorCode) {
|
|
1093
|
-
case "ActionTypeNotFoundException":
|
|
1094
|
-
case "com.amazonaws.codepipeline#ActionTypeNotFoundException":
|
|
1095
|
-
throw await de_ActionTypeNotFoundExceptionRes(parsedOutput, context);
|
|
1096
|
-
case "ValidationException":
|
|
1097
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
1098
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1099
|
-
default:
|
|
1100
|
-
const parsedBody = parsedOutput.body;
|
|
1101
|
-
return throwDefaultError({
|
|
1102
|
-
output,
|
|
1103
|
-
parsedBody,
|
|
1104
|
-
errorCode,
|
|
1105
|
-
});
|
|
1106
|
-
}
|
|
1107
|
-
};
|
|
1108
527
|
export const de_PollForThirdPartyJobsCommand = async (output, context) => {
|
|
1109
528
|
if (output.statusCode >= 300) {
|
|
1110
|
-
return
|
|
529
|
+
return de_CommandError(output, context);
|
|
1111
530
|
}
|
|
1112
531
|
const data = await parseBody(output.body, context);
|
|
1113
532
|
let contents = {};
|
|
@@ -1118,31 +537,9 @@ export const de_PollForThirdPartyJobsCommand = async (output, context) => {
|
|
|
1118
537
|
};
|
|
1119
538
|
return response;
|
|
1120
539
|
};
|
|
1121
|
-
const de_PollForThirdPartyJobsCommandError = async (output, context) => {
|
|
1122
|
-
const parsedOutput = {
|
|
1123
|
-
...output,
|
|
1124
|
-
body: await parseErrorBody(output.body, context),
|
|
1125
|
-
};
|
|
1126
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1127
|
-
switch (errorCode) {
|
|
1128
|
-
case "ActionTypeNotFoundException":
|
|
1129
|
-
case "com.amazonaws.codepipeline#ActionTypeNotFoundException":
|
|
1130
|
-
throw await de_ActionTypeNotFoundExceptionRes(parsedOutput, context);
|
|
1131
|
-
case "ValidationException":
|
|
1132
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
1133
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1134
|
-
default:
|
|
1135
|
-
const parsedBody = parsedOutput.body;
|
|
1136
|
-
return throwDefaultError({
|
|
1137
|
-
output,
|
|
1138
|
-
parsedBody,
|
|
1139
|
-
errorCode,
|
|
1140
|
-
});
|
|
1141
|
-
}
|
|
1142
|
-
};
|
|
1143
540
|
export const de_PutActionRevisionCommand = async (output, context) => {
|
|
1144
541
|
if (output.statusCode >= 300) {
|
|
1145
|
-
return
|
|
542
|
+
return de_CommandError(output, context);
|
|
1146
543
|
}
|
|
1147
544
|
const data = await parseBody(output.body, context);
|
|
1148
545
|
let contents = {};
|
|
@@ -1153,37 +550,9 @@ export const de_PutActionRevisionCommand = async (output, context) => {
|
|
|
1153
550
|
};
|
|
1154
551
|
return response;
|
|
1155
552
|
};
|
|
1156
|
-
const de_PutActionRevisionCommandError = async (output, context) => {
|
|
1157
|
-
const parsedOutput = {
|
|
1158
|
-
...output,
|
|
1159
|
-
body: await parseErrorBody(output.body, context),
|
|
1160
|
-
};
|
|
1161
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1162
|
-
switch (errorCode) {
|
|
1163
|
-
case "ActionNotFoundException":
|
|
1164
|
-
case "com.amazonaws.codepipeline#ActionNotFoundException":
|
|
1165
|
-
throw await de_ActionNotFoundExceptionRes(parsedOutput, context);
|
|
1166
|
-
case "PipelineNotFoundException":
|
|
1167
|
-
case "com.amazonaws.codepipeline#PipelineNotFoundException":
|
|
1168
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
1169
|
-
case "StageNotFoundException":
|
|
1170
|
-
case "com.amazonaws.codepipeline#StageNotFoundException":
|
|
1171
|
-
throw await de_StageNotFoundExceptionRes(parsedOutput, context);
|
|
1172
|
-
case "ValidationException":
|
|
1173
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
1174
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1175
|
-
default:
|
|
1176
|
-
const parsedBody = parsedOutput.body;
|
|
1177
|
-
return throwDefaultError({
|
|
1178
|
-
output,
|
|
1179
|
-
parsedBody,
|
|
1180
|
-
errorCode,
|
|
1181
|
-
});
|
|
1182
|
-
}
|
|
1183
|
-
};
|
|
1184
553
|
export const de_PutApprovalResultCommand = async (output, context) => {
|
|
1185
554
|
if (output.statusCode >= 300) {
|
|
1186
|
-
return
|
|
555
|
+
return de_CommandError(output, context);
|
|
1187
556
|
}
|
|
1188
557
|
const data = await parseBody(output.body, context);
|
|
1189
558
|
let contents = {};
|
|
@@ -1194,43 +563,9 @@ export const de_PutApprovalResultCommand = async (output, context) => {
|
|
|
1194
563
|
};
|
|
1195
564
|
return response;
|
|
1196
565
|
};
|
|
1197
|
-
const de_PutApprovalResultCommandError = async (output, context) => {
|
|
1198
|
-
const parsedOutput = {
|
|
1199
|
-
...output,
|
|
1200
|
-
body: await parseErrorBody(output.body, context),
|
|
1201
|
-
};
|
|
1202
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1203
|
-
switch (errorCode) {
|
|
1204
|
-
case "ActionNotFoundException":
|
|
1205
|
-
case "com.amazonaws.codepipeline#ActionNotFoundException":
|
|
1206
|
-
throw await de_ActionNotFoundExceptionRes(parsedOutput, context);
|
|
1207
|
-
case "ApprovalAlreadyCompletedException":
|
|
1208
|
-
case "com.amazonaws.codepipeline#ApprovalAlreadyCompletedException":
|
|
1209
|
-
throw await de_ApprovalAlreadyCompletedExceptionRes(parsedOutput, context);
|
|
1210
|
-
case "InvalidApprovalTokenException":
|
|
1211
|
-
case "com.amazonaws.codepipeline#InvalidApprovalTokenException":
|
|
1212
|
-
throw await de_InvalidApprovalTokenExceptionRes(parsedOutput, context);
|
|
1213
|
-
case "PipelineNotFoundException":
|
|
1214
|
-
case "com.amazonaws.codepipeline#PipelineNotFoundException":
|
|
1215
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
1216
|
-
case "StageNotFoundException":
|
|
1217
|
-
case "com.amazonaws.codepipeline#StageNotFoundException":
|
|
1218
|
-
throw await de_StageNotFoundExceptionRes(parsedOutput, context);
|
|
1219
|
-
case "ValidationException":
|
|
1220
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
1221
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1222
|
-
default:
|
|
1223
|
-
const parsedBody = parsedOutput.body;
|
|
1224
|
-
return throwDefaultError({
|
|
1225
|
-
output,
|
|
1226
|
-
parsedBody,
|
|
1227
|
-
errorCode,
|
|
1228
|
-
});
|
|
1229
|
-
}
|
|
1230
|
-
};
|
|
1231
566
|
export const de_PutJobFailureResultCommand = async (output, context) => {
|
|
1232
567
|
if (output.statusCode >= 300) {
|
|
1233
|
-
return
|
|
568
|
+
return de_CommandError(output, context);
|
|
1234
569
|
}
|
|
1235
570
|
await collectBody(output.body, context);
|
|
1236
571
|
const response = {
|
|
@@ -1238,34 +573,9 @@ export const de_PutJobFailureResultCommand = async (output, context) => {
|
|
|
1238
573
|
};
|
|
1239
574
|
return response;
|
|
1240
575
|
};
|
|
1241
|
-
const de_PutJobFailureResultCommandError = async (output, context) => {
|
|
1242
|
-
const parsedOutput = {
|
|
1243
|
-
...output,
|
|
1244
|
-
body: await parseErrorBody(output.body, context),
|
|
1245
|
-
};
|
|
1246
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1247
|
-
switch (errorCode) {
|
|
1248
|
-
case "InvalidJobStateException":
|
|
1249
|
-
case "com.amazonaws.codepipeline#InvalidJobStateException":
|
|
1250
|
-
throw await de_InvalidJobStateExceptionRes(parsedOutput, context);
|
|
1251
|
-
case "JobNotFoundException":
|
|
1252
|
-
case "com.amazonaws.codepipeline#JobNotFoundException":
|
|
1253
|
-
throw await de_JobNotFoundExceptionRes(parsedOutput, context);
|
|
1254
|
-
case "ValidationException":
|
|
1255
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
1256
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1257
|
-
default:
|
|
1258
|
-
const parsedBody = parsedOutput.body;
|
|
1259
|
-
return throwDefaultError({
|
|
1260
|
-
output,
|
|
1261
|
-
parsedBody,
|
|
1262
|
-
errorCode,
|
|
1263
|
-
});
|
|
1264
|
-
}
|
|
1265
|
-
};
|
|
1266
576
|
export const de_PutJobSuccessResultCommand = async (output, context) => {
|
|
1267
577
|
if (output.statusCode >= 300) {
|
|
1268
|
-
return
|
|
578
|
+
return de_CommandError(output, context);
|
|
1269
579
|
}
|
|
1270
580
|
await collectBody(output.body, context);
|
|
1271
581
|
const response = {
|
|
@@ -1273,37 +583,9 @@ export const de_PutJobSuccessResultCommand = async (output, context) => {
|
|
|
1273
583
|
};
|
|
1274
584
|
return response;
|
|
1275
585
|
};
|
|
1276
|
-
const de_PutJobSuccessResultCommandError = async (output, context) => {
|
|
1277
|
-
const parsedOutput = {
|
|
1278
|
-
...output,
|
|
1279
|
-
body: await parseErrorBody(output.body, context),
|
|
1280
|
-
};
|
|
1281
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1282
|
-
switch (errorCode) {
|
|
1283
|
-
case "InvalidJobStateException":
|
|
1284
|
-
case "com.amazonaws.codepipeline#InvalidJobStateException":
|
|
1285
|
-
throw await de_InvalidJobStateExceptionRes(parsedOutput, context);
|
|
1286
|
-
case "JobNotFoundException":
|
|
1287
|
-
case "com.amazonaws.codepipeline#JobNotFoundException":
|
|
1288
|
-
throw await de_JobNotFoundExceptionRes(parsedOutput, context);
|
|
1289
|
-
case "OutputVariablesSizeExceededException":
|
|
1290
|
-
case "com.amazonaws.codepipeline#OutputVariablesSizeExceededException":
|
|
1291
|
-
throw await de_OutputVariablesSizeExceededExceptionRes(parsedOutput, context);
|
|
1292
|
-
case "ValidationException":
|
|
1293
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
1294
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1295
|
-
default:
|
|
1296
|
-
const parsedBody = parsedOutput.body;
|
|
1297
|
-
return throwDefaultError({
|
|
1298
|
-
output,
|
|
1299
|
-
parsedBody,
|
|
1300
|
-
errorCode,
|
|
1301
|
-
});
|
|
1302
|
-
}
|
|
1303
|
-
};
|
|
1304
586
|
export const de_PutThirdPartyJobFailureResultCommand = async (output, context) => {
|
|
1305
587
|
if (output.statusCode >= 300) {
|
|
1306
|
-
return
|
|
588
|
+
return de_CommandError(output, context);
|
|
1307
589
|
}
|
|
1308
590
|
await collectBody(output.body, context);
|
|
1309
591
|
const response = {
|
|
@@ -1311,37 +593,9 @@ export const de_PutThirdPartyJobFailureResultCommand = async (output, context) =
|
|
|
1311
593
|
};
|
|
1312
594
|
return response;
|
|
1313
595
|
};
|
|
1314
|
-
const de_PutThirdPartyJobFailureResultCommandError = async (output, context) => {
|
|
1315
|
-
const parsedOutput = {
|
|
1316
|
-
...output,
|
|
1317
|
-
body: await parseErrorBody(output.body, context),
|
|
1318
|
-
};
|
|
1319
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1320
|
-
switch (errorCode) {
|
|
1321
|
-
case "InvalidClientTokenException":
|
|
1322
|
-
case "com.amazonaws.codepipeline#InvalidClientTokenException":
|
|
1323
|
-
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
1324
|
-
case "InvalidJobStateException":
|
|
1325
|
-
case "com.amazonaws.codepipeline#InvalidJobStateException":
|
|
1326
|
-
throw await de_InvalidJobStateExceptionRes(parsedOutput, context);
|
|
1327
|
-
case "JobNotFoundException":
|
|
1328
|
-
case "com.amazonaws.codepipeline#JobNotFoundException":
|
|
1329
|
-
throw await de_JobNotFoundExceptionRes(parsedOutput, context);
|
|
1330
|
-
case "ValidationException":
|
|
1331
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
1332
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1333
|
-
default:
|
|
1334
|
-
const parsedBody = parsedOutput.body;
|
|
1335
|
-
return throwDefaultError({
|
|
1336
|
-
output,
|
|
1337
|
-
parsedBody,
|
|
1338
|
-
errorCode,
|
|
1339
|
-
});
|
|
1340
|
-
}
|
|
1341
|
-
};
|
|
1342
596
|
export const de_PutThirdPartyJobSuccessResultCommand = async (output, context) => {
|
|
1343
597
|
if (output.statusCode >= 300) {
|
|
1344
|
-
return
|
|
598
|
+
return de_CommandError(output, context);
|
|
1345
599
|
}
|
|
1346
600
|
await collectBody(output.body, context);
|
|
1347
601
|
const response = {
|
|
@@ -1349,37 +603,9 @@ export const de_PutThirdPartyJobSuccessResultCommand = async (output, context) =
|
|
|
1349
603
|
};
|
|
1350
604
|
return response;
|
|
1351
605
|
};
|
|
1352
|
-
const de_PutThirdPartyJobSuccessResultCommandError = async (output, context) => {
|
|
1353
|
-
const parsedOutput = {
|
|
1354
|
-
...output,
|
|
1355
|
-
body: await parseErrorBody(output.body, context),
|
|
1356
|
-
};
|
|
1357
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1358
|
-
switch (errorCode) {
|
|
1359
|
-
case "InvalidClientTokenException":
|
|
1360
|
-
case "com.amazonaws.codepipeline#InvalidClientTokenException":
|
|
1361
|
-
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
1362
|
-
case "InvalidJobStateException":
|
|
1363
|
-
case "com.amazonaws.codepipeline#InvalidJobStateException":
|
|
1364
|
-
throw await de_InvalidJobStateExceptionRes(parsedOutput, context);
|
|
1365
|
-
case "JobNotFoundException":
|
|
1366
|
-
case "com.amazonaws.codepipeline#JobNotFoundException":
|
|
1367
|
-
throw await de_JobNotFoundExceptionRes(parsedOutput, context);
|
|
1368
|
-
case "ValidationException":
|
|
1369
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
1370
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1371
|
-
default:
|
|
1372
|
-
const parsedBody = parsedOutput.body;
|
|
1373
|
-
return throwDefaultError({
|
|
1374
|
-
output,
|
|
1375
|
-
parsedBody,
|
|
1376
|
-
errorCode,
|
|
1377
|
-
});
|
|
1378
|
-
}
|
|
1379
|
-
};
|
|
1380
606
|
export const de_PutWebhookCommand = async (output, context) => {
|
|
1381
607
|
if (output.statusCode >= 300) {
|
|
1382
|
-
return
|
|
608
|
+
return de_CommandError(output, context);
|
|
1383
609
|
}
|
|
1384
610
|
const data = await parseBody(output.body, context);
|
|
1385
611
|
let contents = {};
|
|
@@ -1390,49 +616,9 @@ export const de_PutWebhookCommand = async (output, context) => {
|
|
|
1390
616
|
};
|
|
1391
617
|
return response;
|
|
1392
618
|
};
|
|
1393
|
-
const de_PutWebhookCommandError = async (output, context) => {
|
|
1394
|
-
const parsedOutput = {
|
|
1395
|
-
...output,
|
|
1396
|
-
body: await parseErrorBody(output.body, context),
|
|
1397
|
-
};
|
|
1398
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1399
|
-
switch (errorCode) {
|
|
1400
|
-
case "ConcurrentModificationException":
|
|
1401
|
-
case "com.amazonaws.codepipeline#ConcurrentModificationException":
|
|
1402
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1403
|
-
case "InvalidTagsException":
|
|
1404
|
-
case "com.amazonaws.codepipeline#InvalidTagsException":
|
|
1405
|
-
throw await de_InvalidTagsExceptionRes(parsedOutput, context);
|
|
1406
|
-
case "InvalidWebhookAuthenticationParametersException":
|
|
1407
|
-
case "com.amazonaws.codepipeline#InvalidWebhookAuthenticationParametersException":
|
|
1408
|
-
throw await de_InvalidWebhookAuthenticationParametersExceptionRes(parsedOutput, context);
|
|
1409
|
-
case "InvalidWebhookFilterPatternException":
|
|
1410
|
-
case "com.amazonaws.codepipeline#InvalidWebhookFilterPatternException":
|
|
1411
|
-
throw await de_InvalidWebhookFilterPatternExceptionRes(parsedOutput, context);
|
|
1412
|
-
case "LimitExceededException":
|
|
1413
|
-
case "com.amazonaws.codepipeline#LimitExceededException":
|
|
1414
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1415
|
-
case "PipelineNotFoundException":
|
|
1416
|
-
case "com.amazonaws.codepipeline#PipelineNotFoundException":
|
|
1417
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
1418
|
-
case "TooManyTagsException":
|
|
1419
|
-
case "com.amazonaws.codepipeline#TooManyTagsException":
|
|
1420
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1421
|
-
case "ValidationException":
|
|
1422
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
1423
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1424
|
-
default:
|
|
1425
|
-
const parsedBody = parsedOutput.body;
|
|
1426
|
-
return throwDefaultError({
|
|
1427
|
-
output,
|
|
1428
|
-
parsedBody,
|
|
1429
|
-
errorCode,
|
|
1430
|
-
});
|
|
1431
|
-
}
|
|
1432
|
-
};
|
|
1433
619
|
export const de_RegisterWebhookWithThirdPartyCommand = async (output, context) => {
|
|
1434
620
|
if (output.statusCode >= 300) {
|
|
1435
|
-
return
|
|
621
|
+
return de_CommandError(output, context);
|
|
1436
622
|
}
|
|
1437
623
|
const data = await parseBody(output.body, context);
|
|
1438
624
|
let contents = {};
|
|
@@ -1443,31 +629,9 @@ export const de_RegisterWebhookWithThirdPartyCommand = async (output, context) =
|
|
|
1443
629
|
};
|
|
1444
630
|
return response;
|
|
1445
631
|
};
|
|
1446
|
-
const de_RegisterWebhookWithThirdPartyCommandError = async (output, context) => {
|
|
1447
|
-
const parsedOutput = {
|
|
1448
|
-
...output,
|
|
1449
|
-
body: await parseErrorBody(output.body, context),
|
|
1450
|
-
};
|
|
1451
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1452
|
-
switch (errorCode) {
|
|
1453
|
-
case "ValidationException":
|
|
1454
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
1455
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1456
|
-
case "WebhookNotFoundException":
|
|
1457
|
-
case "com.amazonaws.codepipeline#WebhookNotFoundException":
|
|
1458
|
-
throw await de_WebhookNotFoundExceptionRes(parsedOutput, context);
|
|
1459
|
-
default:
|
|
1460
|
-
const parsedBody = parsedOutput.body;
|
|
1461
|
-
return throwDefaultError({
|
|
1462
|
-
output,
|
|
1463
|
-
parsedBody,
|
|
1464
|
-
errorCode,
|
|
1465
|
-
});
|
|
1466
|
-
}
|
|
1467
|
-
};
|
|
1468
632
|
export const de_RetryStageExecutionCommand = async (output, context) => {
|
|
1469
633
|
if (output.statusCode >= 300) {
|
|
1470
|
-
return
|
|
634
|
+
return de_CommandError(output, context);
|
|
1471
635
|
}
|
|
1472
636
|
const data = await parseBody(output.body, context);
|
|
1473
637
|
let contents = {};
|
|
@@ -1478,43 +642,9 @@ export const de_RetryStageExecutionCommand = async (output, context) => {
|
|
|
1478
642
|
};
|
|
1479
643
|
return response;
|
|
1480
644
|
};
|
|
1481
|
-
const de_RetryStageExecutionCommandError = async (output, context) => {
|
|
1482
|
-
const parsedOutput = {
|
|
1483
|
-
...output,
|
|
1484
|
-
body: await parseErrorBody(output.body, context),
|
|
1485
|
-
};
|
|
1486
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1487
|
-
switch (errorCode) {
|
|
1488
|
-
case "ConflictException":
|
|
1489
|
-
case "com.amazonaws.codepipeline#ConflictException":
|
|
1490
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1491
|
-
case "NotLatestPipelineExecutionException":
|
|
1492
|
-
case "com.amazonaws.codepipeline#NotLatestPipelineExecutionException":
|
|
1493
|
-
throw await de_NotLatestPipelineExecutionExceptionRes(parsedOutput, context);
|
|
1494
|
-
case "PipelineNotFoundException":
|
|
1495
|
-
case "com.amazonaws.codepipeline#PipelineNotFoundException":
|
|
1496
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
1497
|
-
case "StageNotFoundException":
|
|
1498
|
-
case "com.amazonaws.codepipeline#StageNotFoundException":
|
|
1499
|
-
throw await de_StageNotFoundExceptionRes(parsedOutput, context);
|
|
1500
|
-
case "StageNotRetryableException":
|
|
1501
|
-
case "com.amazonaws.codepipeline#StageNotRetryableException":
|
|
1502
|
-
throw await de_StageNotRetryableExceptionRes(parsedOutput, context);
|
|
1503
|
-
case "ValidationException":
|
|
1504
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
1505
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1506
|
-
default:
|
|
1507
|
-
const parsedBody = parsedOutput.body;
|
|
1508
|
-
return throwDefaultError({
|
|
1509
|
-
output,
|
|
1510
|
-
parsedBody,
|
|
1511
|
-
errorCode,
|
|
1512
|
-
});
|
|
1513
|
-
}
|
|
1514
|
-
};
|
|
1515
645
|
export const de_StartPipelineExecutionCommand = async (output, context) => {
|
|
1516
646
|
if (output.statusCode >= 300) {
|
|
1517
|
-
return
|
|
647
|
+
return de_CommandError(output, context);
|
|
1518
648
|
}
|
|
1519
649
|
const data = await parseBody(output.body, context);
|
|
1520
650
|
let contents = {};
|
|
@@ -1525,34 +655,9 @@ export const de_StartPipelineExecutionCommand = async (output, context) => {
|
|
|
1525
655
|
};
|
|
1526
656
|
return response;
|
|
1527
657
|
};
|
|
1528
|
-
const de_StartPipelineExecutionCommandError = async (output, context) => {
|
|
1529
|
-
const parsedOutput = {
|
|
1530
|
-
...output,
|
|
1531
|
-
body: await parseErrorBody(output.body, context),
|
|
1532
|
-
};
|
|
1533
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1534
|
-
switch (errorCode) {
|
|
1535
|
-
case "ConflictException":
|
|
1536
|
-
case "com.amazonaws.codepipeline#ConflictException":
|
|
1537
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1538
|
-
case "PipelineNotFoundException":
|
|
1539
|
-
case "com.amazonaws.codepipeline#PipelineNotFoundException":
|
|
1540
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
1541
|
-
case "ValidationException":
|
|
1542
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
1543
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1544
|
-
default:
|
|
1545
|
-
const parsedBody = parsedOutput.body;
|
|
1546
|
-
return throwDefaultError({
|
|
1547
|
-
output,
|
|
1548
|
-
parsedBody,
|
|
1549
|
-
errorCode,
|
|
1550
|
-
});
|
|
1551
|
-
}
|
|
1552
|
-
};
|
|
1553
658
|
export const de_StopPipelineExecutionCommand = async (output, context) => {
|
|
1554
659
|
if (output.statusCode >= 300) {
|
|
1555
|
-
return
|
|
660
|
+
return de_CommandError(output, context);
|
|
1556
661
|
}
|
|
1557
662
|
const data = await parseBody(output.body, context);
|
|
1558
663
|
let contents = {};
|
|
@@ -1563,40 +668,9 @@ export const de_StopPipelineExecutionCommand = async (output, context) => {
|
|
|
1563
668
|
};
|
|
1564
669
|
return response;
|
|
1565
670
|
};
|
|
1566
|
-
const de_StopPipelineExecutionCommandError = async (output, context) => {
|
|
1567
|
-
const parsedOutput = {
|
|
1568
|
-
...output,
|
|
1569
|
-
body: await parseErrorBody(output.body, context),
|
|
1570
|
-
};
|
|
1571
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1572
|
-
switch (errorCode) {
|
|
1573
|
-
case "ConflictException":
|
|
1574
|
-
case "com.amazonaws.codepipeline#ConflictException":
|
|
1575
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1576
|
-
case "DuplicatedStopRequestException":
|
|
1577
|
-
case "com.amazonaws.codepipeline#DuplicatedStopRequestException":
|
|
1578
|
-
throw await de_DuplicatedStopRequestExceptionRes(parsedOutput, context);
|
|
1579
|
-
case "PipelineExecutionNotStoppableException":
|
|
1580
|
-
case "com.amazonaws.codepipeline#PipelineExecutionNotStoppableException":
|
|
1581
|
-
throw await de_PipelineExecutionNotStoppableExceptionRes(parsedOutput, context);
|
|
1582
|
-
case "PipelineNotFoundException":
|
|
1583
|
-
case "com.amazonaws.codepipeline#PipelineNotFoundException":
|
|
1584
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
1585
|
-
case "ValidationException":
|
|
1586
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
1587
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1588
|
-
default:
|
|
1589
|
-
const parsedBody = parsedOutput.body;
|
|
1590
|
-
return throwDefaultError({
|
|
1591
|
-
output,
|
|
1592
|
-
parsedBody,
|
|
1593
|
-
errorCode,
|
|
1594
|
-
});
|
|
1595
|
-
}
|
|
1596
|
-
};
|
|
1597
671
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1598
672
|
if (output.statusCode >= 300) {
|
|
1599
|
-
return
|
|
673
|
+
return de_CommandError(output, context);
|
|
1600
674
|
}
|
|
1601
675
|
const data = await parseBody(output.body, context);
|
|
1602
676
|
let contents = {};
|
|
@@ -1607,43 +681,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1607
681
|
};
|
|
1608
682
|
return response;
|
|
1609
683
|
};
|
|
1610
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1611
|
-
const parsedOutput = {
|
|
1612
|
-
...output,
|
|
1613
|
-
body: await parseErrorBody(output.body, context),
|
|
1614
|
-
};
|
|
1615
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1616
|
-
switch (errorCode) {
|
|
1617
|
-
case "ConcurrentModificationException":
|
|
1618
|
-
case "com.amazonaws.codepipeline#ConcurrentModificationException":
|
|
1619
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1620
|
-
case "InvalidArnException":
|
|
1621
|
-
case "com.amazonaws.codepipeline#InvalidArnException":
|
|
1622
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1623
|
-
case "InvalidTagsException":
|
|
1624
|
-
case "com.amazonaws.codepipeline#InvalidTagsException":
|
|
1625
|
-
throw await de_InvalidTagsExceptionRes(parsedOutput, context);
|
|
1626
|
-
case "ResourceNotFoundException":
|
|
1627
|
-
case "com.amazonaws.codepipeline#ResourceNotFoundException":
|
|
1628
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1629
|
-
case "TooManyTagsException":
|
|
1630
|
-
case "com.amazonaws.codepipeline#TooManyTagsException":
|
|
1631
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1632
|
-
case "ValidationException":
|
|
1633
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
1634
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1635
|
-
default:
|
|
1636
|
-
const parsedBody = parsedOutput.body;
|
|
1637
|
-
return throwDefaultError({
|
|
1638
|
-
output,
|
|
1639
|
-
parsedBody,
|
|
1640
|
-
errorCode,
|
|
1641
|
-
});
|
|
1642
|
-
}
|
|
1643
|
-
};
|
|
1644
684
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1645
685
|
if (output.statusCode >= 300) {
|
|
1646
|
-
return
|
|
686
|
+
return de_CommandError(output, context);
|
|
1647
687
|
}
|
|
1648
688
|
const data = await parseBody(output.body, context);
|
|
1649
689
|
let contents = {};
|
|
@@ -1654,40 +694,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1654
694
|
};
|
|
1655
695
|
return response;
|
|
1656
696
|
};
|
|
1657
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1658
|
-
const parsedOutput = {
|
|
1659
|
-
...output,
|
|
1660
|
-
body: await parseErrorBody(output.body, context),
|
|
1661
|
-
};
|
|
1662
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1663
|
-
switch (errorCode) {
|
|
1664
|
-
case "ConcurrentModificationException":
|
|
1665
|
-
case "com.amazonaws.codepipeline#ConcurrentModificationException":
|
|
1666
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1667
|
-
case "InvalidArnException":
|
|
1668
|
-
case "com.amazonaws.codepipeline#InvalidArnException":
|
|
1669
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1670
|
-
case "InvalidTagsException":
|
|
1671
|
-
case "com.amazonaws.codepipeline#InvalidTagsException":
|
|
1672
|
-
throw await de_InvalidTagsExceptionRes(parsedOutput, context);
|
|
1673
|
-
case "ResourceNotFoundException":
|
|
1674
|
-
case "com.amazonaws.codepipeline#ResourceNotFoundException":
|
|
1675
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1676
|
-
case "ValidationException":
|
|
1677
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
1678
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1679
|
-
default:
|
|
1680
|
-
const parsedBody = parsedOutput.body;
|
|
1681
|
-
return throwDefaultError({
|
|
1682
|
-
output,
|
|
1683
|
-
parsedBody,
|
|
1684
|
-
errorCode,
|
|
1685
|
-
});
|
|
1686
|
-
}
|
|
1687
|
-
};
|
|
1688
697
|
export const de_UpdateActionTypeCommand = async (output, context) => {
|
|
1689
698
|
if (output.statusCode >= 300) {
|
|
1690
|
-
return
|
|
699
|
+
return de_CommandError(output, context);
|
|
1691
700
|
}
|
|
1692
701
|
await collectBody(output.body, context);
|
|
1693
702
|
const response = {
|
|
@@ -1695,34 +704,9 @@ export const de_UpdateActionTypeCommand = async (output, context) => {
|
|
|
1695
704
|
};
|
|
1696
705
|
return response;
|
|
1697
706
|
};
|
|
1698
|
-
const de_UpdateActionTypeCommandError = async (output, context) => {
|
|
1699
|
-
const parsedOutput = {
|
|
1700
|
-
...output,
|
|
1701
|
-
body: await parseErrorBody(output.body, context),
|
|
1702
|
-
};
|
|
1703
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1704
|
-
switch (errorCode) {
|
|
1705
|
-
case "ActionTypeNotFoundException":
|
|
1706
|
-
case "com.amazonaws.codepipeline#ActionTypeNotFoundException":
|
|
1707
|
-
throw await de_ActionTypeNotFoundExceptionRes(parsedOutput, context);
|
|
1708
|
-
case "RequestFailedException":
|
|
1709
|
-
case "com.amazonaws.codepipeline#RequestFailedException":
|
|
1710
|
-
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
1711
|
-
case "ValidationException":
|
|
1712
|
-
case "com.amazonaws.codepipeline#ValidationException":
|
|
1713
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1714
|
-
default:
|
|
1715
|
-
const parsedBody = parsedOutput.body;
|
|
1716
|
-
return throwDefaultError({
|
|
1717
|
-
output,
|
|
1718
|
-
parsedBody,
|
|
1719
|
-
errorCode,
|
|
1720
|
-
});
|
|
1721
|
-
}
|
|
1722
|
-
};
|
|
1723
707
|
export const de_UpdatePipelineCommand = async (output, context) => {
|
|
1724
708
|
if (output.statusCode >= 300) {
|
|
1725
|
-
return
|
|
709
|
+
return de_CommandError(output, context);
|
|
1726
710
|
}
|
|
1727
711
|
const data = await parseBody(output.body, context);
|
|
1728
712
|
let contents = {};
|
|
@@ -1733,13 +717,37 @@ export const de_UpdatePipelineCommand = async (output, context) => {
|
|
|
1733
717
|
};
|
|
1734
718
|
return response;
|
|
1735
719
|
};
|
|
1736
|
-
const
|
|
720
|
+
const de_CommandError = async (output, context) => {
|
|
1737
721
|
const parsedOutput = {
|
|
1738
722
|
...output,
|
|
1739
723
|
body: await parseErrorBody(output.body, context),
|
|
1740
724
|
};
|
|
1741
725
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1742
726
|
switch (errorCode) {
|
|
727
|
+
case "InvalidNonceException":
|
|
728
|
+
case "com.amazonaws.codepipeline#InvalidNonceException":
|
|
729
|
+
throw await de_InvalidNonceExceptionRes(parsedOutput, context);
|
|
730
|
+
case "JobNotFoundException":
|
|
731
|
+
case "com.amazonaws.codepipeline#JobNotFoundException":
|
|
732
|
+
throw await de_JobNotFoundExceptionRes(parsedOutput, context);
|
|
733
|
+
case "ValidationException":
|
|
734
|
+
case "com.amazonaws.codepipeline#ValidationException":
|
|
735
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
736
|
+
case "InvalidClientTokenException":
|
|
737
|
+
case "com.amazonaws.codepipeline#InvalidClientTokenException":
|
|
738
|
+
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
739
|
+
case "ConcurrentModificationException":
|
|
740
|
+
case "com.amazonaws.codepipeline#ConcurrentModificationException":
|
|
741
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
742
|
+
case "InvalidTagsException":
|
|
743
|
+
case "com.amazonaws.codepipeline#InvalidTagsException":
|
|
744
|
+
throw await de_InvalidTagsExceptionRes(parsedOutput, context);
|
|
745
|
+
case "LimitExceededException":
|
|
746
|
+
case "com.amazonaws.codepipeline#LimitExceededException":
|
|
747
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
748
|
+
case "TooManyTagsException":
|
|
749
|
+
case "com.amazonaws.codepipeline#TooManyTagsException":
|
|
750
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1743
751
|
case "InvalidActionDeclarationException":
|
|
1744
752
|
case "com.amazonaws.codepipeline#InvalidActionDeclarationException":
|
|
1745
753
|
throw await de_InvalidActionDeclarationExceptionRes(parsedOutput, context);
|
|
@@ -1752,12 +760,78 @@ const de_UpdatePipelineCommandError = async (output, context) => {
|
|
|
1752
760
|
case "InvalidStructureException":
|
|
1753
761
|
case "com.amazonaws.codepipeline#InvalidStructureException":
|
|
1754
762
|
throw await de_InvalidStructureExceptionRes(parsedOutput, context);
|
|
1755
|
-
case "
|
|
1756
|
-
case "com.amazonaws.codepipeline#
|
|
1757
|
-
throw await
|
|
1758
|
-
case "
|
|
1759
|
-
case "com.amazonaws.codepipeline#
|
|
1760
|
-
throw await
|
|
763
|
+
case "PipelineNameInUseException":
|
|
764
|
+
case "com.amazonaws.codepipeline#PipelineNameInUseException":
|
|
765
|
+
throw await de_PipelineNameInUseExceptionRes(parsedOutput, context);
|
|
766
|
+
case "WebhookNotFoundException":
|
|
767
|
+
case "com.amazonaws.codepipeline#WebhookNotFoundException":
|
|
768
|
+
throw await de_WebhookNotFoundExceptionRes(parsedOutput, context);
|
|
769
|
+
case "PipelineNotFoundException":
|
|
770
|
+
case "com.amazonaws.codepipeline#PipelineNotFoundException":
|
|
771
|
+
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
772
|
+
case "StageNotFoundException":
|
|
773
|
+
case "com.amazonaws.codepipeline#StageNotFoundException":
|
|
774
|
+
throw await de_StageNotFoundExceptionRes(parsedOutput, context);
|
|
775
|
+
case "ActionTypeNotFoundException":
|
|
776
|
+
case "com.amazonaws.codepipeline#ActionTypeNotFoundException":
|
|
777
|
+
throw await de_ActionTypeNotFoundExceptionRes(parsedOutput, context);
|
|
778
|
+
case "PipelineVersionNotFoundException":
|
|
779
|
+
case "com.amazonaws.codepipeline#PipelineVersionNotFoundException":
|
|
780
|
+
throw await de_PipelineVersionNotFoundExceptionRes(parsedOutput, context);
|
|
781
|
+
case "PipelineExecutionNotFoundException":
|
|
782
|
+
case "com.amazonaws.codepipeline#PipelineExecutionNotFoundException":
|
|
783
|
+
throw await de_PipelineExecutionNotFoundExceptionRes(parsedOutput, context);
|
|
784
|
+
case "InvalidJobException":
|
|
785
|
+
case "com.amazonaws.codepipeline#InvalidJobException":
|
|
786
|
+
throw await de_InvalidJobExceptionRes(parsedOutput, context);
|
|
787
|
+
case "InvalidNextTokenException":
|
|
788
|
+
case "com.amazonaws.codepipeline#InvalidNextTokenException":
|
|
789
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
790
|
+
case "InvalidArnException":
|
|
791
|
+
case "com.amazonaws.codepipeline#InvalidArnException":
|
|
792
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
793
|
+
case "ResourceNotFoundException":
|
|
794
|
+
case "com.amazonaws.codepipeline#ResourceNotFoundException":
|
|
795
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
796
|
+
case "ActionNotFoundException":
|
|
797
|
+
case "com.amazonaws.codepipeline#ActionNotFoundException":
|
|
798
|
+
throw await de_ActionNotFoundExceptionRes(parsedOutput, context);
|
|
799
|
+
case "ApprovalAlreadyCompletedException":
|
|
800
|
+
case "com.amazonaws.codepipeline#ApprovalAlreadyCompletedException":
|
|
801
|
+
throw await de_ApprovalAlreadyCompletedExceptionRes(parsedOutput, context);
|
|
802
|
+
case "InvalidApprovalTokenException":
|
|
803
|
+
case "com.amazonaws.codepipeline#InvalidApprovalTokenException":
|
|
804
|
+
throw await de_InvalidApprovalTokenExceptionRes(parsedOutput, context);
|
|
805
|
+
case "InvalidJobStateException":
|
|
806
|
+
case "com.amazonaws.codepipeline#InvalidJobStateException":
|
|
807
|
+
throw await de_InvalidJobStateExceptionRes(parsedOutput, context);
|
|
808
|
+
case "OutputVariablesSizeExceededException":
|
|
809
|
+
case "com.amazonaws.codepipeline#OutputVariablesSizeExceededException":
|
|
810
|
+
throw await de_OutputVariablesSizeExceededExceptionRes(parsedOutput, context);
|
|
811
|
+
case "InvalidWebhookAuthenticationParametersException":
|
|
812
|
+
case "com.amazonaws.codepipeline#InvalidWebhookAuthenticationParametersException":
|
|
813
|
+
throw await de_InvalidWebhookAuthenticationParametersExceptionRes(parsedOutput, context);
|
|
814
|
+
case "InvalidWebhookFilterPatternException":
|
|
815
|
+
case "com.amazonaws.codepipeline#InvalidWebhookFilterPatternException":
|
|
816
|
+
throw await de_InvalidWebhookFilterPatternExceptionRes(parsedOutput, context);
|
|
817
|
+
case "ConflictException":
|
|
818
|
+
case "com.amazonaws.codepipeline#ConflictException":
|
|
819
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
820
|
+
case "NotLatestPipelineExecutionException":
|
|
821
|
+
case "com.amazonaws.codepipeline#NotLatestPipelineExecutionException":
|
|
822
|
+
throw await de_NotLatestPipelineExecutionExceptionRes(parsedOutput, context);
|
|
823
|
+
case "StageNotRetryableException":
|
|
824
|
+
case "com.amazonaws.codepipeline#StageNotRetryableException":
|
|
825
|
+
throw await de_StageNotRetryableExceptionRes(parsedOutput, context);
|
|
826
|
+
case "DuplicatedStopRequestException":
|
|
827
|
+
case "com.amazonaws.codepipeline#DuplicatedStopRequestException":
|
|
828
|
+
throw await de_DuplicatedStopRequestExceptionRes(parsedOutput, context);
|
|
829
|
+
case "PipelineExecutionNotStoppableException":
|
|
830
|
+
case "com.amazonaws.codepipeline#PipelineExecutionNotStoppableException":
|
|
831
|
+
throw await de_PipelineExecutionNotStoppableExceptionRes(parsedOutput, context);
|
|
832
|
+
case "RequestFailedException":
|
|
833
|
+
case "com.amazonaws.codepipeline#RequestFailedException":
|
|
834
|
+
throw await de_RequestFailedExceptionRes(parsedOutput, context);
|
|
1761
835
|
default:
|
|
1762
836
|
const parsedBody = parsedOutput.body;
|
|
1763
837
|
return throwDefaultError({
|