@aws-sdk/client-elastic-load-balancing 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 +95 -708
- package/dist-es/protocols/Aws_query.js +103 -716
- package/package.json +3 -3
|
@@ -295,7 +295,7 @@ export const se_SetLoadBalancerPoliciesOfListenerCommand = async (input, context
|
|
|
295
295
|
};
|
|
296
296
|
export const de_AddTagsCommand = async (output, context) => {
|
|
297
297
|
if (output.statusCode >= 300) {
|
|
298
|
-
return
|
|
298
|
+
return de_CommandError(output, context);
|
|
299
299
|
}
|
|
300
300
|
const data = await parseBody(output.body, context);
|
|
301
301
|
let contents = {};
|
|
@@ -306,34 +306,9 @@ export const de_AddTagsCommand = async (output, context) => {
|
|
|
306
306
|
};
|
|
307
307
|
return response;
|
|
308
308
|
};
|
|
309
|
-
const de_AddTagsCommandError = async (output, context) => {
|
|
310
|
-
const parsedOutput = {
|
|
311
|
-
...output,
|
|
312
|
-
body: await parseErrorBody(output.body, context),
|
|
313
|
-
};
|
|
314
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
315
|
-
switch (errorCode) {
|
|
316
|
-
case "DuplicateTagKeys":
|
|
317
|
-
case "com.amazonaws.elasticloadbalancing#DuplicateTagKeysException":
|
|
318
|
-
throw await de_DuplicateTagKeysExceptionRes(parsedOutput, context);
|
|
319
|
-
case "LoadBalancerNotFound":
|
|
320
|
-
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
321
|
-
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
322
|
-
case "TooManyTags":
|
|
323
|
-
case "com.amazonaws.elasticloadbalancing#TooManyTagsException":
|
|
324
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
325
|
-
default:
|
|
326
|
-
const parsedBody = parsedOutput.body;
|
|
327
|
-
return throwDefaultError({
|
|
328
|
-
output,
|
|
329
|
-
parsedBody: parsedBody.Error,
|
|
330
|
-
errorCode,
|
|
331
|
-
});
|
|
332
|
-
}
|
|
333
|
-
};
|
|
334
309
|
export const de_ApplySecurityGroupsToLoadBalancerCommand = async (output, context) => {
|
|
335
310
|
if (output.statusCode >= 300) {
|
|
336
|
-
return
|
|
311
|
+
return de_CommandError(output, context);
|
|
337
312
|
}
|
|
338
313
|
const data = await parseBody(output.body, context);
|
|
339
314
|
let contents = {};
|
|
@@ -344,34 +319,9 @@ export const de_ApplySecurityGroupsToLoadBalancerCommand = async (output, contex
|
|
|
344
319
|
};
|
|
345
320
|
return response;
|
|
346
321
|
};
|
|
347
|
-
const de_ApplySecurityGroupsToLoadBalancerCommandError = async (output, context) => {
|
|
348
|
-
const parsedOutput = {
|
|
349
|
-
...output,
|
|
350
|
-
body: await parseErrorBody(output.body, context),
|
|
351
|
-
};
|
|
352
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
353
|
-
switch (errorCode) {
|
|
354
|
-
case "InvalidConfigurationRequest":
|
|
355
|
-
case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
|
|
356
|
-
throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context);
|
|
357
|
-
case "InvalidSecurityGroup":
|
|
358
|
-
case "com.amazonaws.elasticloadbalancing#InvalidSecurityGroupException":
|
|
359
|
-
throw await de_InvalidSecurityGroupExceptionRes(parsedOutput, context);
|
|
360
|
-
case "LoadBalancerNotFound":
|
|
361
|
-
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
362
|
-
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
363
|
-
default:
|
|
364
|
-
const parsedBody = parsedOutput.body;
|
|
365
|
-
return throwDefaultError({
|
|
366
|
-
output,
|
|
367
|
-
parsedBody: parsedBody.Error,
|
|
368
|
-
errorCode,
|
|
369
|
-
});
|
|
370
|
-
}
|
|
371
|
-
};
|
|
372
322
|
export const de_AttachLoadBalancerToSubnetsCommand = async (output, context) => {
|
|
373
323
|
if (output.statusCode >= 300) {
|
|
374
|
-
return
|
|
324
|
+
return de_CommandError(output, context);
|
|
375
325
|
}
|
|
376
326
|
const data = await parseBody(output.body, context);
|
|
377
327
|
let contents = {};
|
|
@@ -382,37 +332,9 @@ export const de_AttachLoadBalancerToSubnetsCommand = async (output, context) =>
|
|
|
382
332
|
};
|
|
383
333
|
return response;
|
|
384
334
|
};
|
|
385
|
-
const de_AttachLoadBalancerToSubnetsCommandError = async (output, context) => {
|
|
386
|
-
const parsedOutput = {
|
|
387
|
-
...output,
|
|
388
|
-
body: await parseErrorBody(output.body, context),
|
|
389
|
-
};
|
|
390
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
391
|
-
switch (errorCode) {
|
|
392
|
-
case "InvalidConfigurationRequest":
|
|
393
|
-
case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
|
|
394
|
-
throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context);
|
|
395
|
-
case "InvalidSubnet":
|
|
396
|
-
case "com.amazonaws.elasticloadbalancing#InvalidSubnetException":
|
|
397
|
-
throw await de_InvalidSubnetExceptionRes(parsedOutput, context);
|
|
398
|
-
case "LoadBalancerNotFound":
|
|
399
|
-
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
400
|
-
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
401
|
-
case "SubnetNotFound":
|
|
402
|
-
case "com.amazonaws.elasticloadbalancing#SubnetNotFoundException":
|
|
403
|
-
throw await de_SubnetNotFoundExceptionRes(parsedOutput, context);
|
|
404
|
-
default:
|
|
405
|
-
const parsedBody = parsedOutput.body;
|
|
406
|
-
return throwDefaultError({
|
|
407
|
-
output,
|
|
408
|
-
parsedBody: parsedBody.Error,
|
|
409
|
-
errorCode,
|
|
410
|
-
});
|
|
411
|
-
}
|
|
412
|
-
};
|
|
413
335
|
export const de_ConfigureHealthCheckCommand = async (output, context) => {
|
|
414
336
|
if (output.statusCode >= 300) {
|
|
415
|
-
return
|
|
337
|
+
return de_CommandError(output, context);
|
|
416
338
|
}
|
|
417
339
|
const data = await parseBody(output.body, context);
|
|
418
340
|
let contents = {};
|
|
@@ -423,28 +345,9 @@ export const de_ConfigureHealthCheckCommand = async (output, context) => {
|
|
|
423
345
|
};
|
|
424
346
|
return response;
|
|
425
347
|
};
|
|
426
|
-
const de_ConfigureHealthCheckCommandError = async (output, context) => {
|
|
427
|
-
const parsedOutput = {
|
|
428
|
-
...output,
|
|
429
|
-
body: await parseErrorBody(output.body, context),
|
|
430
|
-
};
|
|
431
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
432
|
-
switch (errorCode) {
|
|
433
|
-
case "LoadBalancerNotFound":
|
|
434
|
-
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
435
|
-
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
436
|
-
default:
|
|
437
|
-
const parsedBody = parsedOutput.body;
|
|
438
|
-
return throwDefaultError({
|
|
439
|
-
output,
|
|
440
|
-
parsedBody: parsedBody.Error,
|
|
441
|
-
errorCode,
|
|
442
|
-
});
|
|
443
|
-
}
|
|
444
|
-
};
|
|
445
348
|
export const de_CreateAppCookieStickinessPolicyCommand = async (output, context) => {
|
|
446
349
|
if (output.statusCode >= 300) {
|
|
447
|
-
return
|
|
350
|
+
return de_CommandError(output, context);
|
|
448
351
|
}
|
|
449
352
|
const data = await parseBody(output.body, context);
|
|
450
353
|
let contents = {};
|
|
@@ -455,37 +358,9 @@ export const de_CreateAppCookieStickinessPolicyCommand = async (output, context)
|
|
|
455
358
|
};
|
|
456
359
|
return response;
|
|
457
360
|
};
|
|
458
|
-
const de_CreateAppCookieStickinessPolicyCommandError = async (output, context) => {
|
|
459
|
-
const parsedOutput = {
|
|
460
|
-
...output,
|
|
461
|
-
body: await parseErrorBody(output.body, context),
|
|
462
|
-
};
|
|
463
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
464
|
-
switch (errorCode) {
|
|
465
|
-
case "DuplicatePolicyName":
|
|
466
|
-
case "com.amazonaws.elasticloadbalancing#DuplicatePolicyNameException":
|
|
467
|
-
throw await de_DuplicatePolicyNameExceptionRes(parsedOutput, context);
|
|
468
|
-
case "InvalidConfigurationRequest":
|
|
469
|
-
case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
|
|
470
|
-
throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context);
|
|
471
|
-
case "LoadBalancerNotFound":
|
|
472
|
-
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
473
|
-
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
474
|
-
case "TooManyPolicies":
|
|
475
|
-
case "com.amazonaws.elasticloadbalancing#TooManyPoliciesException":
|
|
476
|
-
throw await de_TooManyPoliciesExceptionRes(parsedOutput, context);
|
|
477
|
-
default:
|
|
478
|
-
const parsedBody = parsedOutput.body;
|
|
479
|
-
return throwDefaultError({
|
|
480
|
-
output,
|
|
481
|
-
parsedBody: parsedBody.Error,
|
|
482
|
-
errorCode,
|
|
483
|
-
});
|
|
484
|
-
}
|
|
485
|
-
};
|
|
486
361
|
export const de_CreateLBCookieStickinessPolicyCommand = async (output, context) => {
|
|
487
362
|
if (output.statusCode >= 300) {
|
|
488
|
-
return
|
|
363
|
+
return de_CommandError(output, context);
|
|
489
364
|
}
|
|
490
365
|
const data = await parseBody(output.body, context);
|
|
491
366
|
let contents = {};
|
|
@@ -496,37 +371,9 @@ export const de_CreateLBCookieStickinessPolicyCommand = async (output, context)
|
|
|
496
371
|
};
|
|
497
372
|
return response;
|
|
498
373
|
};
|
|
499
|
-
const de_CreateLBCookieStickinessPolicyCommandError = async (output, context) => {
|
|
500
|
-
const parsedOutput = {
|
|
501
|
-
...output,
|
|
502
|
-
body: await parseErrorBody(output.body, context),
|
|
503
|
-
};
|
|
504
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
505
|
-
switch (errorCode) {
|
|
506
|
-
case "DuplicatePolicyName":
|
|
507
|
-
case "com.amazonaws.elasticloadbalancing#DuplicatePolicyNameException":
|
|
508
|
-
throw await de_DuplicatePolicyNameExceptionRes(parsedOutput, context);
|
|
509
|
-
case "InvalidConfigurationRequest":
|
|
510
|
-
case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
|
|
511
|
-
throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context);
|
|
512
|
-
case "LoadBalancerNotFound":
|
|
513
|
-
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
514
|
-
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
515
|
-
case "TooManyPolicies":
|
|
516
|
-
case "com.amazonaws.elasticloadbalancing#TooManyPoliciesException":
|
|
517
|
-
throw await de_TooManyPoliciesExceptionRes(parsedOutput, context);
|
|
518
|
-
default:
|
|
519
|
-
const parsedBody = parsedOutput.body;
|
|
520
|
-
return throwDefaultError({
|
|
521
|
-
output,
|
|
522
|
-
parsedBody: parsedBody.Error,
|
|
523
|
-
errorCode,
|
|
524
|
-
});
|
|
525
|
-
}
|
|
526
|
-
};
|
|
527
374
|
export const de_CreateLoadBalancerCommand = async (output, context) => {
|
|
528
375
|
if (output.statusCode >= 300) {
|
|
529
|
-
return
|
|
376
|
+
return de_CommandError(output, context);
|
|
530
377
|
}
|
|
531
378
|
const data = await parseBody(output.body, context);
|
|
532
379
|
let contents = {};
|
|
@@ -537,61 +384,9 @@ export const de_CreateLoadBalancerCommand = async (output, context) => {
|
|
|
537
384
|
};
|
|
538
385
|
return response;
|
|
539
386
|
};
|
|
540
|
-
const de_CreateLoadBalancerCommandError = async (output, context) => {
|
|
541
|
-
const parsedOutput = {
|
|
542
|
-
...output,
|
|
543
|
-
body: await parseErrorBody(output.body, context),
|
|
544
|
-
};
|
|
545
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
546
|
-
switch (errorCode) {
|
|
547
|
-
case "CertificateNotFound":
|
|
548
|
-
case "com.amazonaws.elasticloadbalancing#CertificateNotFoundException":
|
|
549
|
-
throw await de_CertificateNotFoundExceptionRes(parsedOutput, context);
|
|
550
|
-
case "DuplicateLoadBalancerName":
|
|
551
|
-
case "com.amazonaws.elasticloadbalancing#DuplicateAccessPointNameException":
|
|
552
|
-
throw await de_DuplicateAccessPointNameExceptionRes(parsedOutput, context);
|
|
553
|
-
case "DuplicateTagKeys":
|
|
554
|
-
case "com.amazonaws.elasticloadbalancing#DuplicateTagKeysException":
|
|
555
|
-
throw await de_DuplicateTagKeysExceptionRes(parsedOutput, context);
|
|
556
|
-
case "InvalidConfigurationRequest":
|
|
557
|
-
case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
|
|
558
|
-
throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context);
|
|
559
|
-
case "InvalidScheme":
|
|
560
|
-
case "com.amazonaws.elasticloadbalancing#InvalidSchemeException":
|
|
561
|
-
throw await de_InvalidSchemeExceptionRes(parsedOutput, context);
|
|
562
|
-
case "InvalidSecurityGroup":
|
|
563
|
-
case "com.amazonaws.elasticloadbalancing#InvalidSecurityGroupException":
|
|
564
|
-
throw await de_InvalidSecurityGroupExceptionRes(parsedOutput, context);
|
|
565
|
-
case "InvalidSubnet":
|
|
566
|
-
case "com.amazonaws.elasticloadbalancing#InvalidSubnetException":
|
|
567
|
-
throw await de_InvalidSubnetExceptionRes(parsedOutput, context);
|
|
568
|
-
case "OperationNotPermitted":
|
|
569
|
-
case "com.amazonaws.elasticloadbalancing#OperationNotPermittedException":
|
|
570
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
571
|
-
case "SubnetNotFound":
|
|
572
|
-
case "com.amazonaws.elasticloadbalancing#SubnetNotFoundException":
|
|
573
|
-
throw await de_SubnetNotFoundExceptionRes(parsedOutput, context);
|
|
574
|
-
case "TooManyLoadBalancers":
|
|
575
|
-
case "com.amazonaws.elasticloadbalancing#TooManyAccessPointsException":
|
|
576
|
-
throw await de_TooManyAccessPointsExceptionRes(parsedOutput, context);
|
|
577
|
-
case "TooManyTags":
|
|
578
|
-
case "com.amazonaws.elasticloadbalancing#TooManyTagsException":
|
|
579
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
580
|
-
case "UnsupportedProtocol":
|
|
581
|
-
case "com.amazonaws.elasticloadbalancing#UnsupportedProtocolException":
|
|
582
|
-
throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
|
|
583
|
-
default:
|
|
584
|
-
const parsedBody = parsedOutput.body;
|
|
585
|
-
return throwDefaultError({
|
|
586
|
-
output,
|
|
587
|
-
parsedBody: parsedBody.Error,
|
|
588
|
-
errorCode,
|
|
589
|
-
});
|
|
590
|
-
}
|
|
591
|
-
};
|
|
592
387
|
export const de_CreateLoadBalancerListenersCommand = async (output, context) => {
|
|
593
388
|
if (output.statusCode >= 300) {
|
|
594
|
-
return
|
|
389
|
+
return de_CommandError(output, context);
|
|
595
390
|
}
|
|
596
391
|
const data = await parseBody(output.body, context);
|
|
597
392
|
let contents = {};
|
|
@@ -602,40 +397,9 @@ export const de_CreateLoadBalancerListenersCommand = async (output, context) =>
|
|
|
602
397
|
};
|
|
603
398
|
return response;
|
|
604
399
|
};
|
|
605
|
-
const de_CreateLoadBalancerListenersCommandError = async (output, context) => {
|
|
606
|
-
const parsedOutput = {
|
|
607
|
-
...output,
|
|
608
|
-
body: await parseErrorBody(output.body, context),
|
|
609
|
-
};
|
|
610
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
611
|
-
switch (errorCode) {
|
|
612
|
-
case "CertificateNotFound":
|
|
613
|
-
case "com.amazonaws.elasticloadbalancing#CertificateNotFoundException":
|
|
614
|
-
throw await de_CertificateNotFoundExceptionRes(parsedOutput, context);
|
|
615
|
-
case "DuplicateListener":
|
|
616
|
-
case "com.amazonaws.elasticloadbalancing#DuplicateListenerException":
|
|
617
|
-
throw await de_DuplicateListenerExceptionRes(parsedOutput, context);
|
|
618
|
-
case "InvalidConfigurationRequest":
|
|
619
|
-
case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
|
|
620
|
-
throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context);
|
|
621
|
-
case "LoadBalancerNotFound":
|
|
622
|
-
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
623
|
-
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
624
|
-
case "UnsupportedProtocol":
|
|
625
|
-
case "com.amazonaws.elasticloadbalancing#UnsupportedProtocolException":
|
|
626
|
-
throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
|
|
627
|
-
default:
|
|
628
|
-
const parsedBody = parsedOutput.body;
|
|
629
|
-
return throwDefaultError({
|
|
630
|
-
output,
|
|
631
|
-
parsedBody: parsedBody.Error,
|
|
632
|
-
errorCode,
|
|
633
|
-
});
|
|
634
|
-
}
|
|
635
|
-
};
|
|
636
400
|
export const de_CreateLoadBalancerPolicyCommand = async (output, context) => {
|
|
637
401
|
if (output.statusCode >= 300) {
|
|
638
|
-
return
|
|
402
|
+
return de_CommandError(output, context);
|
|
639
403
|
}
|
|
640
404
|
const data = await parseBody(output.body, context);
|
|
641
405
|
let contents = {};
|
|
@@ -646,40 +410,9 @@ export const de_CreateLoadBalancerPolicyCommand = async (output, context) => {
|
|
|
646
410
|
};
|
|
647
411
|
return response;
|
|
648
412
|
};
|
|
649
|
-
const de_CreateLoadBalancerPolicyCommandError = async (output, context) => {
|
|
650
|
-
const parsedOutput = {
|
|
651
|
-
...output,
|
|
652
|
-
body: await parseErrorBody(output.body, context),
|
|
653
|
-
};
|
|
654
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
655
|
-
switch (errorCode) {
|
|
656
|
-
case "DuplicatePolicyName":
|
|
657
|
-
case "com.amazonaws.elasticloadbalancing#DuplicatePolicyNameException":
|
|
658
|
-
throw await de_DuplicatePolicyNameExceptionRes(parsedOutput, context);
|
|
659
|
-
case "InvalidConfigurationRequest":
|
|
660
|
-
case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
|
|
661
|
-
throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context);
|
|
662
|
-
case "LoadBalancerNotFound":
|
|
663
|
-
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
664
|
-
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
665
|
-
case "PolicyTypeNotFound":
|
|
666
|
-
case "com.amazonaws.elasticloadbalancing#PolicyTypeNotFoundException":
|
|
667
|
-
throw await de_PolicyTypeNotFoundExceptionRes(parsedOutput, context);
|
|
668
|
-
case "TooManyPolicies":
|
|
669
|
-
case "com.amazonaws.elasticloadbalancing#TooManyPoliciesException":
|
|
670
|
-
throw await de_TooManyPoliciesExceptionRes(parsedOutput, context);
|
|
671
|
-
default:
|
|
672
|
-
const parsedBody = parsedOutput.body;
|
|
673
|
-
return throwDefaultError({
|
|
674
|
-
output,
|
|
675
|
-
parsedBody: parsedBody.Error,
|
|
676
|
-
errorCode,
|
|
677
|
-
});
|
|
678
|
-
}
|
|
679
|
-
};
|
|
680
413
|
export const de_DeleteLoadBalancerCommand = async (output, context) => {
|
|
681
414
|
if (output.statusCode >= 300) {
|
|
682
|
-
return
|
|
415
|
+
return de_CommandError(output, context);
|
|
683
416
|
}
|
|
684
417
|
const data = await parseBody(output.body, context);
|
|
685
418
|
let contents = {};
|
|
@@ -690,22 +423,9 @@ export const de_DeleteLoadBalancerCommand = async (output, context) => {
|
|
|
690
423
|
};
|
|
691
424
|
return response;
|
|
692
425
|
};
|
|
693
|
-
const de_DeleteLoadBalancerCommandError = async (output, context) => {
|
|
694
|
-
const parsedOutput = {
|
|
695
|
-
...output,
|
|
696
|
-
body: await parseErrorBody(output.body, context),
|
|
697
|
-
};
|
|
698
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
699
|
-
const parsedBody = parsedOutput.body;
|
|
700
|
-
return throwDefaultError({
|
|
701
|
-
output,
|
|
702
|
-
parsedBody: parsedBody.Error,
|
|
703
|
-
errorCode,
|
|
704
|
-
});
|
|
705
|
-
};
|
|
706
426
|
export const de_DeleteLoadBalancerListenersCommand = async (output, context) => {
|
|
707
427
|
if (output.statusCode >= 300) {
|
|
708
|
-
return
|
|
428
|
+
return de_CommandError(output, context);
|
|
709
429
|
}
|
|
710
430
|
const data = await parseBody(output.body, context);
|
|
711
431
|
let contents = {};
|
|
@@ -716,28 +436,9 @@ export const de_DeleteLoadBalancerListenersCommand = async (output, context) =>
|
|
|
716
436
|
};
|
|
717
437
|
return response;
|
|
718
438
|
};
|
|
719
|
-
const de_DeleteLoadBalancerListenersCommandError = async (output, context) => {
|
|
720
|
-
const parsedOutput = {
|
|
721
|
-
...output,
|
|
722
|
-
body: await parseErrorBody(output.body, context),
|
|
723
|
-
};
|
|
724
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
725
|
-
switch (errorCode) {
|
|
726
|
-
case "LoadBalancerNotFound":
|
|
727
|
-
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
728
|
-
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
729
|
-
default:
|
|
730
|
-
const parsedBody = parsedOutput.body;
|
|
731
|
-
return throwDefaultError({
|
|
732
|
-
output,
|
|
733
|
-
parsedBody: parsedBody.Error,
|
|
734
|
-
errorCode,
|
|
735
|
-
});
|
|
736
|
-
}
|
|
737
|
-
};
|
|
738
439
|
export const de_DeleteLoadBalancerPolicyCommand = async (output, context) => {
|
|
739
440
|
if (output.statusCode >= 300) {
|
|
740
|
-
return
|
|
441
|
+
return de_CommandError(output, context);
|
|
741
442
|
}
|
|
742
443
|
const data = await parseBody(output.body, context);
|
|
743
444
|
let contents = {};
|
|
@@ -748,31 +449,9 @@ export const de_DeleteLoadBalancerPolicyCommand = async (output, context) => {
|
|
|
748
449
|
};
|
|
749
450
|
return response;
|
|
750
451
|
};
|
|
751
|
-
const de_DeleteLoadBalancerPolicyCommandError = async (output, context) => {
|
|
752
|
-
const parsedOutput = {
|
|
753
|
-
...output,
|
|
754
|
-
body: await parseErrorBody(output.body, context),
|
|
755
|
-
};
|
|
756
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
757
|
-
switch (errorCode) {
|
|
758
|
-
case "InvalidConfigurationRequest":
|
|
759
|
-
case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
|
|
760
|
-
throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context);
|
|
761
|
-
case "LoadBalancerNotFound":
|
|
762
|
-
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
763
|
-
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
764
|
-
default:
|
|
765
|
-
const parsedBody = parsedOutput.body;
|
|
766
|
-
return throwDefaultError({
|
|
767
|
-
output,
|
|
768
|
-
parsedBody: parsedBody.Error,
|
|
769
|
-
errorCode,
|
|
770
|
-
});
|
|
771
|
-
}
|
|
772
|
-
};
|
|
773
452
|
export const de_DeregisterInstancesFromLoadBalancerCommand = async (output, context) => {
|
|
774
453
|
if (output.statusCode >= 300) {
|
|
775
|
-
return
|
|
454
|
+
return de_CommandError(output, context);
|
|
776
455
|
}
|
|
777
456
|
const data = await parseBody(output.body, context);
|
|
778
457
|
let contents = {};
|
|
@@ -783,31 +462,9 @@ export const de_DeregisterInstancesFromLoadBalancerCommand = async (output, cont
|
|
|
783
462
|
};
|
|
784
463
|
return response;
|
|
785
464
|
};
|
|
786
|
-
const de_DeregisterInstancesFromLoadBalancerCommandError = async (output, context) => {
|
|
787
|
-
const parsedOutput = {
|
|
788
|
-
...output,
|
|
789
|
-
body: await parseErrorBody(output.body, context),
|
|
790
|
-
};
|
|
791
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
792
|
-
switch (errorCode) {
|
|
793
|
-
case "InvalidInstance":
|
|
794
|
-
case "com.amazonaws.elasticloadbalancing#InvalidEndPointException":
|
|
795
|
-
throw await de_InvalidEndPointExceptionRes(parsedOutput, context);
|
|
796
|
-
case "LoadBalancerNotFound":
|
|
797
|
-
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
798
|
-
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
799
|
-
default:
|
|
800
|
-
const parsedBody = parsedOutput.body;
|
|
801
|
-
return throwDefaultError({
|
|
802
|
-
output,
|
|
803
|
-
parsedBody: parsedBody.Error,
|
|
804
|
-
errorCode,
|
|
805
|
-
});
|
|
806
|
-
}
|
|
807
|
-
};
|
|
808
465
|
export const de_DescribeAccountLimitsCommand = async (output, context) => {
|
|
809
466
|
if (output.statusCode >= 300) {
|
|
810
|
-
return
|
|
467
|
+
return de_CommandError(output, context);
|
|
811
468
|
}
|
|
812
469
|
const data = await parseBody(output.body, context);
|
|
813
470
|
let contents = {};
|
|
@@ -818,22 +475,9 @@ export const de_DescribeAccountLimitsCommand = async (output, context) => {
|
|
|
818
475
|
};
|
|
819
476
|
return response;
|
|
820
477
|
};
|
|
821
|
-
const de_DescribeAccountLimitsCommandError = async (output, context) => {
|
|
822
|
-
const parsedOutput = {
|
|
823
|
-
...output,
|
|
824
|
-
body: await parseErrorBody(output.body, context),
|
|
825
|
-
};
|
|
826
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
827
|
-
const parsedBody = parsedOutput.body;
|
|
828
|
-
return throwDefaultError({
|
|
829
|
-
output,
|
|
830
|
-
parsedBody: parsedBody.Error,
|
|
831
|
-
errorCode,
|
|
832
|
-
});
|
|
833
|
-
};
|
|
834
478
|
export const de_DescribeInstanceHealthCommand = async (output, context) => {
|
|
835
479
|
if (output.statusCode >= 300) {
|
|
836
|
-
return
|
|
480
|
+
return de_CommandError(output, context);
|
|
837
481
|
}
|
|
838
482
|
const data = await parseBody(output.body, context);
|
|
839
483
|
let contents = {};
|
|
@@ -844,31 +488,9 @@ export const de_DescribeInstanceHealthCommand = async (output, context) => {
|
|
|
844
488
|
};
|
|
845
489
|
return response;
|
|
846
490
|
};
|
|
847
|
-
const de_DescribeInstanceHealthCommandError = async (output, context) => {
|
|
848
|
-
const parsedOutput = {
|
|
849
|
-
...output,
|
|
850
|
-
body: await parseErrorBody(output.body, context),
|
|
851
|
-
};
|
|
852
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
853
|
-
switch (errorCode) {
|
|
854
|
-
case "InvalidInstance":
|
|
855
|
-
case "com.amazonaws.elasticloadbalancing#InvalidEndPointException":
|
|
856
|
-
throw await de_InvalidEndPointExceptionRes(parsedOutput, context);
|
|
857
|
-
case "LoadBalancerNotFound":
|
|
858
|
-
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
859
|
-
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
860
|
-
default:
|
|
861
|
-
const parsedBody = parsedOutput.body;
|
|
862
|
-
return throwDefaultError({
|
|
863
|
-
output,
|
|
864
|
-
parsedBody: parsedBody.Error,
|
|
865
|
-
errorCode,
|
|
866
|
-
});
|
|
867
|
-
}
|
|
868
|
-
};
|
|
869
491
|
export const de_DescribeLoadBalancerAttributesCommand = async (output, context) => {
|
|
870
492
|
if (output.statusCode >= 300) {
|
|
871
|
-
return
|
|
493
|
+
return de_CommandError(output, context);
|
|
872
494
|
}
|
|
873
495
|
const data = await parseBody(output.body, context);
|
|
874
496
|
let contents = {};
|
|
@@ -879,31 +501,9 @@ export const de_DescribeLoadBalancerAttributesCommand = async (output, context)
|
|
|
879
501
|
};
|
|
880
502
|
return response;
|
|
881
503
|
};
|
|
882
|
-
const de_DescribeLoadBalancerAttributesCommandError = async (output, context) => {
|
|
883
|
-
const parsedOutput = {
|
|
884
|
-
...output,
|
|
885
|
-
body: await parseErrorBody(output.body, context),
|
|
886
|
-
};
|
|
887
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
888
|
-
switch (errorCode) {
|
|
889
|
-
case "LoadBalancerAttributeNotFound":
|
|
890
|
-
case "com.amazonaws.elasticloadbalancing#LoadBalancerAttributeNotFoundException":
|
|
891
|
-
throw await de_LoadBalancerAttributeNotFoundExceptionRes(parsedOutput, context);
|
|
892
|
-
case "LoadBalancerNotFound":
|
|
893
|
-
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
894
|
-
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
895
|
-
default:
|
|
896
|
-
const parsedBody = parsedOutput.body;
|
|
897
|
-
return throwDefaultError({
|
|
898
|
-
output,
|
|
899
|
-
parsedBody: parsedBody.Error,
|
|
900
|
-
errorCode,
|
|
901
|
-
});
|
|
902
|
-
}
|
|
903
|
-
};
|
|
904
504
|
export const de_DescribeLoadBalancerPoliciesCommand = async (output, context) => {
|
|
905
505
|
if (output.statusCode >= 300) {
|
|
906
|
-
return
|
|
506
|
+
return de_CommandError(output, context);
|
|
907
507
|
}
|
|
908
508
|
const data = await parseBody(output.body, context);
|
|
909
509
|
let contents = {};
|
|
@@ -914,31 +514,9 @@ export const de_DescribeLoadBalancerPoliciesCommand = async (output, context) =>
|
|
|
914
514
|
};
|
|
915
515
|
return response;
|
|
916
516
|
};
|
|
917
|
-
const de_DescribeLoadBalancerPoliciesCommandError = async (output, context) => {
|
|
918
|
-
const parsedOutput = {
|
|
919
|
-
...output,
|
|
920
|
-
body: await parseErrorBody(output.body, context),
|
|
921
|
-
};
|
|
922
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
923
|
-
switch (errorCode) {
|
|
924
|
-
case "LoadBalancerNotFound":
|
|
925
|
-
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
926
|
-
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
927
|
-
case "PolicyNotFound":
|
|
928
|
-
case "com.amazonaws.elasticloadbalancing#PolicyNotFoundException":
|
|
929
|
-
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
930
|
-
default:
|
|
931
|
-
const parsedBody = parsedOutput.body;
|
|
932
|
-
return throwDefaultError({
|
|
933
|
-
output,
|
|
934
|
-
parsedBody: parsedBody.Error,
|
|
935
|
-
errorCode,
|
|
936
|
-
});
|
|
937
|
-
}
|
|
938
|
-
};
|
|
939
517
|
export const de_DescribeLoadBalancerPolicyTypesCommand = async (output, context) => {
|
|
940
518
|
if (output.statusCode >= 300) {
|
|
941
|
-
return
|
|
519
|
+
return de_CommandError(output, context);
|
|
942
520
|
}
|
|
943
521
|
const data = await parseBody(output.body, context);
|
|
944
522
|
let contents = {};
|
|
@@ -949,28 +527,9 @@ export const de_DescribeLoadBalancerPolicyTypesCommand = async (output, context)
|
|
|
949
527
|
};
|
|
950
528
|
return response;
|
|
951
529
|
};
|
|
952
|
-
const de_DescribeLoadBalancerPolicyTypesCommandError = async (output, context) => {
|
|
953
|
-
const parsedOutput = {
|
|
954
|
-
...output,
|
|
955
|
-
body: await parseErrorBody(output.body, context),
|
|
956
|
-
};
|
|
957
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
958
|
-
switch (errorCode) {
|
|
959
|
-
case "PolicyTypeNotFound":
|
|
960
|
-
case "com.amazonaws.elasticloadbalancing#PolicyTypeNotFoundException":
|
|
961
|
-
throw await de_PolicyTypeNotFoundExceptionRes(parsedOutput, context);
|
|
962
|
-
default:
|
|
963
|
-
const parsedBody = parsedOutput.body;
|
|
964
|
-
return throwDefaultError({
|
|
965
|
-
output,
|
|
966
|
-
parsedBody: parsedBody.Error,
|
|
967
|
-
errorCode,
|
|
968
|
-
});
|
|
969
|
-
}
|
|
970
|
-
};
|
|
971
530
|
export const de_DescribeLoadBalancersCommand = async (output, context) => {
|
|
972
531
|
if (output.statusCode >= 300) {
|
|
973
|
-
return
|
|
532
|
+
return de_CommandError(output, context);
|
|
974
533
|
}
|
|
975
534
|
const data = await parseBody(output.body, context);
|
|
976
535
|
let contents = {};
|
|
@@ -978,66 +537,25 @@ export const de_DescribeLoadBalancersCommand = async (output, context) => {
|
|
|
978
537
|
const response = {
|
|
979
538
|
$metadata: deserializeMetadata(output),
|
|
980
539
|
...contents,
|
|
981
|
-
};
|
|
982
|
-
return response;
|
|
983
|
-
};
|
|
984
|
-
const
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
body: await parseErrorBody(output.body, context),
|
|
988
|
-
};
|
|
989
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
990
|
-
switch (errorCode) {
|
|
991
|
-
case "DependencyThrottle":
|
|
992
|
-
case "com.amazonaws.elasticloadbalancing#DependencyThrottleException":
|
|
993
|
-
throw await de_DependencyThrottleExceptionRes(parsedOutput, context);
|
|
994
|
-
case "LoadBalancerNotFound":
|
|
995
|
-
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
996
|
-
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
997
|
-
default:
|
|
998
|
-
const parsedBody = parsedOutput.body;
|
|
999
|
-
return throwDefaultError({
|
|
1000
|
-
output,
|
|
1001
|
-
parsedBody: parsedBody.Error,
|
|
1002
|
-
errorCode,
|
|
1003
|
-
});
|
|
1004
|
-
}
|
|
1005
|
-
};
|
|
1006
|
-
export const de_DescribeTagsCommand = async (output, context) => {
|
|
1007
|
-
if (output.statusCode >= 300) {
|
|
1008
|
-
return de_DescribeTagsCommandError(output, context);
|
|
1009
|
-
}
|
|
1010
|
-
const data = await parseBody(output.body, context);
|
|
1011
|
-
let contents = {};
|
|
1012
|
-
contents = de_DescribeTagsOutput(data.DescribeTagsResult, context);
|
|
1013
|
-
const response = {
|
|
1014
|
-
$metadata: deserializeMetadata(output),
|
|
1015
|
-
...contents,
|
|
1016
|
-
};
|
|
1017
|
-
return response;
|
|
1018
|
-
};
|
|
1019
|
-
const de_DescribeTagsCommandError = async (output, context) => {
|
|
1020
|
-
const parsedOutput = {
|
|
1021
|
-
...output,
|
|
1022
|
-
body: await parseErrorBody(output.body, context),
|
|
1023
|
-
};
|
|
1024
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1025
|
-
switch (errorCode) {
|
|
1026
|
-
case "LoadBalancerNotFound":
|
|
1027
|
-
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
1028
|
-
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1029
|
-
default:
|
|
1030
|
-
const parsedBody = parsedOutput.body;
|
|
1031
|
-
return throwDefaultError({
|
|
1032
|
-
output,
|
|
1033
|
-
parsedBody: parsedBody.Error,
|
|
1034
|
-
errorCode,
|
|
1035
|
-
});
|
|
540
|
+
};
|
|
541
|
+
return response;
|
|
542
|
+
};
|
|
543
|
+
export const de_DescribeTagsCommand = async (output, context) => {
|
|
544
|
+
if (output.statusCode >= 300) {
|
|
545
|
+
return de_CommandError(output, context);
|
|
1036
546
|
}
|
|
547
|
+
const data = await parseBody(output.body, context);
|
|
548
|
+
let contents = {};
|
|
549
|
+
contents = de_DescribeTagsOutput(data.DescribeTagsResult, context);
|
|
550
|
+
const response = {
|
|
551
|
+
$metadata: deserializeMetadata(output),
|
|
552
|
+
...contents,
|
|
553
|
+
};
|
|
554
|
+
return response;
|
|
1037
555
|
};
|
|
1038
556
|
export const de_DetachLoadBalancerFromSubnetsCommand = async (output, context) => {
|
|
1039
557
|
if (output.statusCode >= 300) {
|
|
1040
|
-
return
|
|
558
|
+
return de_CommandError(output, context);
|
|
1041
559
|
}
|
|
1042
560
|
const data = await parseBody(output.body, context);
|
|
1043
561
|
let contents = {};
|
|
@@ -1048,31 +566,9 @@ export const de_DetachLoadBalancerFromSubnetsCommand = async (output, context) =
|
|
|
1048
566
|
};
|
|
1049
567
|
return response;
|
|
1050
568
|
};
|
|
1051
|
-
const de_DetachLoadBalancerFromSubnetsCommandError = async (output, context) => {
|
|
1052
|
-
const parsedOutput = {
|
|
1053
|
-
...output,
|
|
1054
|
-
body: await parseErrorBody(output.body, context),
|
|
1055
|
-
};
|
|
1056
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1057
|
-
switch (errorCode) {
|
|
1058
|
-
case "InvalidConfigurationRequest":
|
|
1059
|
-
case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
|
|
1060
|
-
throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context);
|
|
1061
|
-
case "LoadBalancerNotFound":
|
|
1062
|
-
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
1063
|
-
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1064
|
-
default:
|
|
1065
|
-
const parsedBody = parsedOutput.body;
|
|
1066
|
-
return throwDefaultError({
|
|
1067
|
-
output,
|
|
1068
|
-
parsedBody: parsedBody.Error,
|
|
1069
|
-
errorCode,
|
|
1070
|
-
});
|
|
1071
|
-
}
|
|
1072
|
-
};
|
|
1073
569
|
export const de_DisableAvailabilityZonesForLoadBalancerCommand = async (output, context) => {
|
|
1074
570
|
if (output.statusCode >= 300) {
|
|
1075
|
-
return
|
|
571
|
+
return de_CommandError(output, context);
|
|
1076
572
|
}
|
|
1077
573
|
const data = await parseBody(output.body, context);
|
|
1078
574
|
let contents = {};
|
|
@@ -1083,31 +579,9 @@ export const de_DisableAvailabilityZonesForLoadBalancerCommand = async (output,
|
|
|
1083
579
|
};
|
|
1084
580
|
return response;
|
|
1085
581
|
};
|
|
1086
|
-
const de_DisableAvailabilityZonesForLoadBalancerCommandError = async (output, context) => {
|
|
1087
|
-
const parsedOutput = {
|
|
1088
|
-
...output,
|
|
1089
|
-
body: await parseErrorBody(output.body, context),
|
|
1090
|
-
};
|
|
1091
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1092
|
-
switch (errorCode) {
|
|
1093
|
-
case "InvalidConfigurationRequest":
|
|
1094
|
-
case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
|
|
1095
|
-
throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context);
|
|
1096
|
-
case "LoadBalancerNotFound":
|
|
1097
|
-
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
1098
|
-
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1099
|
-
default:
|
|
1100
|
-
const parsedBody = parsedOutput.body;
|
|
1101
|
-
return throwDefaultError({
|
|
1102
|
-
output,
|
|
1103
|
-
parsedBody: parsedBody.Error,
|
|
1104
|
-
errorCode,
|
|
1105
|
-
});
|
|
1106
|
-
}
|
|
1107
|
-
};
|
|
1108
582
|
export const de_EnableAvailabilityZonesForLoadBalancerCommand = async (output, context) => {
|
|
1109
583
|
if (output.statusCode >= 300) {
|
|
1110
|
-
return
|
|
584
|
+
return de_CommandError(output, context);
|
|
1111
585
|
}
|
|
1112
586
|
const data = await parseBody(output.body, context);
|
|
1113
587
|
let contents = {};
|
|
@@ -1118,28 +592,9 @@ export const de_EnableAvailabilityZonesForLoadBalancerCommand = async (output, c
|
|
|
1118
592
|
};
|
|
1119
593
|
return response;
|
|
1120
594
|
};
|
|
1121
|
-
const de_EnableAvailabilityZonesForLoadBalancerCommandError = async (output, context) => {
|
|
1122
|
-
const parsedOutput = {
|
|
1123
|
-
...output,
|
|
1124
|
-
body: await parseErrorBody(output.body, context),
|
|
1125
|
-
};
|
|
1126
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1127
|
-
switch (errorCode) {
|
|
1128
|
-
case "LoadBalancerNotFound":
|
|
1129
|
-
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
1130
|
-
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1131
|
-
default:
|
|
1132
|
-
const parsedBody = parsedOutput.body;
|
|
1133
|
-
return throwDefaultError({
|
|
1134
|
-
output,
|
|
1135
|
-
parsedBody: parsedBody.Error,
|
|
1136
|
-
errorCode,
|
|
1137
|
-
});
|
|
1138
|
-
}
|
|
1139
|
-
};
|
|
1140
595
|
export const de_ModifyLoadBalancerAttributesCommand = async (output, context) => {
|
|
1141
596
|
if (output.statusCode >= 300) {
|
|
1142
|
-
return
|
|
597
|
+
return de_CommandError(output, context);
|
|
1143
598
|
}
|
|
1144
599
|
const data = await parseBody(output.body, context);
|
|
1145
600
|
let contents = {};
|
|
@@ -1150,34 +605,9 @@ export const de_ModifyLoadBalancerAttributesCommand = async (output, context) =>
|
|
|
1150
605
|
};
|
|
1151
606
|
return response;
|
|
1152
607
|
};
|
|
1153
|
-
const de_ModifyLoadBalancerAttributesCommandError = async (output, context) => {
|
|
1154
|
-
const parsedOutput = {
|
|
1155
|
-
...output,
|
|
1156
|
-
body: await parseErrorBody(output.body, context),
|
|
1157
|
-
};
|
|
1158
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1159
|
-
switch (errorCode) {
|
|
1160
|
-
case "InvalidConfigurationRequest":
|
|
1161
|
-
case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
|
|
1162
|
-
throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context);
|
|
1163
|
-
case "LoadBalancerAttributeNotFound":
|
|
1164
|
-
case "com.amazonaws.elasticloadbalancing#LoadBalancerAttributeNotFoundException":
|
|
1165
|
-
throw await de_LoadBalancerAttributeNotFoundExceptionRes(parsedOutput, context);
|
|
1166
|
-
case "LoadBalancerNotFound":
|
|
1167
|
-
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
1168
|
-
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1169
|
-
default:
|
|
1170
|
-
const parsedBody = parsedOutput.body;
|
|
1171
|
-
return throwDefaultError({
|
|
1172
|
-
output,
|
|
1173
|
-
parsedBody: parsedBody.Error,
|
|
1174
|
-
errorCode,
|
|
1175
|
-
});
|
|
1176
|
-
}
|
|
1177
|
-
};
|
|
1178
608
|
export const de_RegisterInstancesWithLoadBalancerCommand = async (output, context) => {
|
|
1179
609
|
if (output.statusCode >= 300) {
|
|
1180
|
-
return
|
|
610
|
+
return de_CommandError(output, context);
|
|
1181
611
|
}
|
|
1182
612
|
const data = await parseBody(output.body, context);
|
|
1183
613
|
let contents = {};
|
|
@@ -1188,31 +618,9 @@ export const de_RegisterInstancesWithLoadBalancerCommand = async (output, contex
|
|
|
1188
618
|
};
|
|
1189
619
|
return response;
|
|
1190
620
|
};
|
|
1191
|
-
const de_RegisterInstancesWithLoadBalancerCommandError = async (output, context) => {
|
|
1192
|
-
const parsedOutput = {
|
|
1193
|
-
...output,
|
|
1194
|
-
body: await parseErrorBody(output.body, context),
|
|
1195
|
-
};
|
|
1196
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1197
|
-
switch (errorCode) {
|
|
1198
|
-
case "InvalidInstance":
|
|
1199
|
-
case "com.amazonaws.elasticloadbalancing#InvalidEndPointException":
|
|
1200
|
-
throw await de_InvalidEndPointExceptionRes(parsedOutput, context);
|
|
1201
|
-
case "LoadBalancerNotFound":
|
|
1202
|
-
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
1203
|
-
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1204
|
-
default:
|
|
1205
|
-
const parsedBody = parsedOutput.body;
|
|
1206
|
-
return throwDefaultError({
|
|
1207
|
-
output,
|
|
1208
|
-
parsedBody: parsedBody.Error,
|
|
1209
|
-
errorCode,
|
|
1210
|
-
});
|
|
1211
|
-
}
|
|
1212
|
-
};
|
|
1213
621
|
export const de_RemoveTagsCommand = async (output, context) => {
|
|
1214
622
|
if (output.statusCode >= 300) {
|
|
1215
|
-
return
|
|
623
|
+
return de_CommandError(output, context);
|
|
1216
624
|
}
|
|
1217
625
|
const data = await parseBody(output.body, context);
|
|
1218
626
|
let contents = {};
|
|
@@ -1223,28 +631,9 @@ export const de_RemoveTagsCommand = async (output, context) => {
|
|
|
1223
631
|
};
|
|
1224
632
|
return response;
|
|
1225
633
|
};
|
|
1226
|
-
const de_RemoveTagsCommandError = async (output, context) => {
|
|
1227
|
-
const parsedOutput = {
|
|
1228
|
-
...output,
|
|
1229
|
-
body: await parseErrorBody(output.body, context),
|
|
1230
|
-
};
|
|
1231
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1232
|
-
switch (errorCode) {
|
|
1233
|
-
case "LoadBalancerNotFound":
|
|
1234
|
-
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
1235
|
-
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1236
|
-
default:
|
|
1237
|
-
const parsedBody = parsedOutput.body;
|
|
1238
|
-
return throwDefaultError({
|
|
1239
|
-
output,
|
|
1240
|
-
parsedBody: parsedBody.Error,
|
|
1241
|
-
errorCode,
|
|
1242
|
-
});
|
|
1243
|
-
}
|
|
1244
|
-
};
|
|
1245
634
|
export const de_SetLoadBalancerListenerSSLCertificateCommand = async (output, context) => {
|
|
1246
635
|
if (output.statusCode >= 300) {
|
|
1247
|
-
return
|
|
636
|
+
return de_CommandError(output, context);
|
|
1248
637
|
}
|
|
1249
638
|
const data = await parseBody(output.body, context);
|
|
1250
639
|
let contents = {};
|
|
@@ -1255,40 +644,9 @@ export const de_SetLoadBalancerListenerSSLCertificateCommand = async (output, co
|
|
|
1255
644
|
};
|
|
1256
645
|
return response;
|
|
1257
646
|
};
|
|
1258
|
-
const de_SetLoadBalancerListenerSSLCertificateCommandError = async (output, context) => {
|
|
1259
|
-
const parsedOutput = {
|
|
1260
|
-
...output,
|
|
1261
|
-
body: await parseErrorBody(output.body, context),
|
|
1262
|
-
};
|
|
1263
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1264
|
-
switch (errorCode) {
|
|
1265
|
-
case "CertificateNotFound":
|
|
1266
|
-
case "com.amazonaws.elasticloadbalancing#CertificateNotFoundException":
|
|
1267
|
-
throw await de_CertificateNotFoundExceptionRes(parsedOutput, context);
|
|
1268
|
-
case "InvalidConfigurationRequest":
|
|
1269
|
-
case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
|
|
1270
|
-
throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context);
|
|
1271
|
-
case "ListenerNotFound":
|
|
1272
|
-
case "com.amazonaws.elasticloadbalancing#ListenerNotFoundException":
|
|
1273
|
-
throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
|
|
1274
|
-
case "LoadBalancerNotFound":
|
|
1275
|
-
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
1276
|
-
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1277
|
-
case "UnsupportedProtocol":
|
|
1278
|
-
case "com.amazonaws.elasticloadbalancing#UnsupportedProtocolException":
|
|
1279
|
-
throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
|
|
1280
|
-
default:
|
|
1281
|
-
const parsedBody = parsedOutput.body;
|
|
1282
|
-
return throwDefaultError({
|
|
1283
|
-
output,
|
|
1284
|
-
parsedBody: parsedBody.Error,
|
|
1285
|
-
errorCode,
|
|
1286
|
-
});
|
|
1287
|
-
}
|
|
1288
|
-
};
|
|
1289
647
|
export const de_SetLoadBalancerPoliciesForBackendServerCommand = async (output, context) => {
|
|
1290
648
|
if (output.statusCode >= 300) {
|
|
1291
|
-
return
|
|
649
|
+
return de_CommandError(output, context);
|
|
1292
650
|
}
|
|
1293
651
|
const data = await parseBody(output.body, context);
|
|
1294
652
|
let contents = {};
|
|
@@ -1299,34 +657,9 @@ export const de_SetLoadBalancerPoliciesForBackendServerCommand = async (output,
|
|
|
1299
657
|
};
|
|
1300
658
|
return response;
|
|
1301
659
|
};
|
|
1302
|
-
const de_SetLoadBalancerPoliciesForBackendServerCommandError = async (output, context) => {
|
|
1303
|
-
const parsedOutput = {
|
|
1304
|
-
...output,
|
|
1305
|
-
body: await parseErrorBody(output.body, context),
|
|
1306
|
-
};
|
|
1307
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1308
|
-
switch (errorCode) {
|
|
1309
|
-
case "InvalidConfigurationRequest":
|
|
1310
|
-
case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
|
|
1311
|
-
throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context);
|
|
1312
|
-
case "LoadBalancerNotFound":
|
|
1313
|
-
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
1314
|
-
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1315
|
-
case "PolicyNotFound":
|
|
1316
|
-
case "com.amazonaws.elasticloadbalancing#PolicyNotFoundException":
|
|
1317
|
-
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1318
|
-
default:
|
|
1319
|
-
const parsedBody = parsedOutput.body;
|
|
1320
|
-
return throwDefaultError({
|
|
1321
|
-
output,
|
|
1322
|
-
parsedBody: parsedBody.Error,
|
|
1323
|
-
errorCode,
|
|
1324
|
-
});
|
|
1325
|
-
}
|
|
1326
|
-
};
|
|
1327
660
|
export const de_SetLoadBalancerPoliciesOfListenerCommand = async (output, context) => {
|
|
1328
661
|
if (output.statusCode >= 300) {
|
|
1329
|
-
return
|
|
662
|
+
return de_CommandError(output, context);
|
|
1330
663
|
}
|
|
1331
664
|
const data = await parseBody(output.body, context);
|
|
1332
665
|
let contents = {};
|
|
@@ -1337,25 +670,79 @@ export const de_SetLoadBalancerPoliciesOfListenerCommand = async (output, contex
|
|
|
1337
670
|
};
|
|
1338
671
|
return response;
|
|
1339
672
|
};
|
|
1340
|
-
const
|
|
673
|
+
const de_CommandError = async (output, context) => {
|
|
1341
674
|
const parsedOutput = {
|
|
1342
675
|
...output,
|
|
1343
676
|
body: await parseErrorBody(output.body, context),
|
|
1344
677
|
};
|
|
1345
678
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1346
679
|
switch (errorCode) {
|
|
1347
|
-
case "
|
|
1348
|
-
case "com.amazonaws.elasticloadbalancing#
|
|
1349
|
-
throw await
|
|
1350
|
-
case "ListenerNotFound":
|
|
1351
|
-
case "com.amazonaws.elasticloadbalancing#ListenerNotFoundException":
|
|
1352
|
-
throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
|
|
680
|
+
case "DuplicateTagKeys":
|
|
681
|
+
case "com.amazonaws.elasticloadbalancing#DuplicateTagKeysException":
|
|
682
|
+
throw await de_DuplicateTagKeysExceptionRes(parsedOutput, context);
|
|
1353
683
|
case "LoadBalancerNotFound":
|
|
1354
684
|
case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
|
|
1355
685
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
686
|
+
case "TooManyTags":
|
|
687
|
+
case "com.amazonaws.elasticloadbalancing#TooManyTagsException":
|
|
688
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
689
|
+
case "InvalidConfigurationRequest":
|
|
690
|
+
case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
|
|
691
|
+
throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context);
|
|
692
|
+
case "InvalidSecurityGroup":
|
|
693
|
+
case "com.amazonaws.elasticloadbalancing#InvalidSecurityGroupException":
|
|
694
|
+
throw await de_InvalidSecurityGroupExceptionRes(parsedOutput, context);
|
|
695
|
+
case "InvalidSubnet":
|
|
696
|
+
case "com.amazonaws.elasticloadbalancing#InvalidSubnetException":
|
|
697
|
+
throw await de_InvalidSubnetExceptionRes(parsedOutput, context);
|
|
698
|
+
case "SubnetNotFound":
|
|
699
|
+
case "com.amazonaws.elasticloadbalancing#SubnetNotFoundException":
|
|
700
|
+
throw await de_SubnetNotFoundExceptionRes(parsedOutput, context);
|
|
701
|
+
case "DuplicatePolicyName":
|
|
702
|
+
case "com.amazonaws.elasticloadbalancing#DuplicatePolicyNameException":
|
|
703
|
+
throw await de_DuplicatePolicyNameExceptionRes(parsedOutput, context);
|
|
704
|
+
case "TooManyPolicies":
|
|
705
|
+
case "com.amazonaws.elasticloadbalancing#TooManyPoliciesException":
|
|
706
|
+
throw await de_TooManyPoliciesExceptionRes(parsedOutput, context);
|
|
707
|
+
case "CertificateNotFound":
|
|
708
|
+
case "com.amazonaws.elasticloadbalancing#CertificateNotFoundException":
|
|
709
|
+
throw await de_CertificateNotFoundExceptionRes(parsedOutput, context);
|
|
710
|
+
case "DuplicateLoadBalancerName":
|
|
711
|
+
case "com.amazonaws.elasticloadbalancing#DuplicateAccessPointNameException":
|
|
712
|
+
throw await de_DuplicateAccessPointNameExceptionRes(parsedOutput, context);
|
|
713
|
+
case "InvalidScheme":
|
|
714
|
+
case "com.amazonaws.elasticloadbalancing#InvalidSchemeException":
|
|
715
|
+
throw await de_InvalidSchemeExceptionRes(parsedOutput, context);
|
|
716
|
+
case "OperationNotPermitted":
|
|
717
|
+
case "com.amazonaws.elasticloadbalancing#OperationNotPermittedException":
|
|
718
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
719
|
+
case "TooManyLoadBalancers":
|
|
720
|
+
case "com.amazonaws.elasticloadbalancing#TooManyAccessPointsException":
|
|
721
|
+
throw await de_TooManyAccessPointsExceptionRes(parsedOutput, context);
|
|
722
|
+
case "UnsupportedProtocol":
|
|
723
|
+
case "com.amazonaws.elasticloadbalancing#UnsupportedProtocolException":
|
|
724
|
+
throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
|
|
725
|
+
case "DuplicateListener":
|
|
726
|
+
case "com.amazonaws.elasticloadbalancing#DuplicateListenerException":
|
|
727
|
+
throw await de_DuplicateListenerExceptionRes(parsedOutput, context);
|
|
728
|
+
case "PolicyTypeNotFound":
|
|
729
|
+
case "com.amazonaws.elasticloadbalancing#PolicyTypeNotFoundException":
|
|
730
|
+
throw await de_PolicyTypeNotFoundExceptionRes(parsedOutput, context);
|
|
731
|
+
case "InvalidInstance":
|
|
732
|
+
case "com.amazonaws.elasticloadbalancing#InvalidEndPointException":
|
|
733
|
+
throw await de_InvalidEndPointExceptionRes(parsedOutput, context);
|
|
734
|
+
case "LoadBalancerAttributeNotFound":
|
|
735
|
+
case "com.amazonaws.elasticloadbalancing#LoadBalancerAttributeNotFoundException":
|
|
736
|
+
throw await de_LoadBalancerAttributeNotFoundExceptionRes(parsedOutput, context);
|
|
1356
737
|
case "PolicyNotFound":
|
|
1357
738
|
case "com.amazonaws.elasticloadbalancing#PolicyNotFoundException":
|
|
1358
739
|
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
740
|
+
case "DependencyThrottle":
|
|
741
|
+
case "com.amazonaws.elasticloadbalancing#DependencyThrottleException":
|
|
742
|
+
throw await de_DependencyThrottleExceptionRes(parsedOutput, context);
|
|
743
|
+
case "ListenerNotFound":
|
|
744
|
+
case "com.amazonaws.elasticloadbalancing#ListenerNotFoundException":
|
|
745
|
+
throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
|
|
1359
746
|
default:
|
|
1360
747
|
const parsedBody = parsedOutput.body;
|
|
1361
748
|
return throwDefaultError({
|