@aws-sdk/client-lookoutequipment 3.117.0 → 3.121.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/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_0.js +120 -97
- package/dist-es/protocols/Aws_json1_0.js +120 -97
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** fallback to status code for unmodeled errors ([#3752](https://github.com/aws/aws-sdk-js-v3/issues/3752)) ([49bcc4f](https://github.com/aws/aws-sdk-js-v3/commit/49bcc4f153e890e798a8e82fd5fc397b2dcc449f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-lookoutequipment
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.118.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.117.0...v3.118.0) (2022-06-24)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-lookoutequipment
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.117.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.116.0...v3.117.0) (2022-06-23)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -266,8 +266,7 @@ const deserializeAws_json1_0CreateDatasetCommandError = async (output, context)
|
|
|
266
266
|
body: await parseBody(output.body, context),
|
|
267
267
|
};
|
|
268
268
|
let response;
|
|
269
|
-
|
|
270
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
269
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
271
270
|
switch (errorCode) {
|
|
272
271
|
case "AccessDeniedException":
|
|
273
272
|
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
@@ -289,10 +288,12 @@ const deserializeAws_json1_0CreateDatasetCommandError = async (output, context)
|
|
|
289
288
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
290
289
|
default:
|
|
291
290
|
const parsedBody = parsedOutput.body;
|
|
291
|
+
const $metadata = deserializeMetadata(output);
|
|
292
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
292
293
|
response = new LookoutEquipmentServiceException_1.LookoutEquipmentServiceException({
|
|
293
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
294
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
294
295
|
$fault: "client",
|
|
295
|
-
$metadata
|
|
296
|
+
$metadata,
|
|
296
297
|
});
|
|
297
298
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
298
299
|
}
|
|
@@ -317,8 +318,7 @@ const deserializeAws_json1_0CreateInferenceSchedulerCommandError = async (output
|
|
|
317
318
|
body: await parseBody(output.body, context),
|
|
318
319
|
};
|
|
319
320
|
let response;
|
|
320
|
-
|
|
321
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
321
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
322
322
|
switch (errorCode) {
|
|
323
323
|
case "AccessDeniedException":
|
|
324
324
|
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
@@ -343,10 +343,12 @@ const deserializeAws_json1_0CreateInferenceSchedulerCommandError = async (output
|
|
|
343
343
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
344
344
|
default:
|
|
345
345
|
const parsedBody = parsedOutput.body;
|
|
346
|
+
const $metadata = deserializeMetadata(output);
|
|
347
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
346
348
|
response = new LookoutEquipmentServiceException_1.LookoutEquipmentServiceException({
|
|
347
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
349
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
348
350
|
$fault: "client",
|
|
349
|
-
$metadata
|
|
351
|
+
$metadata,
|
|
350
352
|
});
|
|
351
353
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
352
354
|
}
|
|
@@ -371,8 +373,7 @@ const deserializeAws_json1_0CreateModelCommandError = async (output, context) =>
|
|
|
371
373
|
body: await parseBody(output.body, context),
|
|
372
374
|
};
|
|
373
375
|
let response;
|
|
374
|
-
|
|
375
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
376
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
376
377
|
switch (errorCode) {
|
|
377
378
|
case "AccessDeniedException":
|
|
378
379
|
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
@@ -397,10 +398,12 @@ const deserializeAws_json1_0CreateModelCommandError = async (output, context) =>
|
|
|
397
398
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
398
399
|
default:
|
|
399
400
|
const parsedBody = parsedOutput.body;
|
|
401
|
+
const $metadata = deserializeMetadata(output);
|
|
402
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
400
403
|
response = new LookoutEquipmentServiceException_1.LookoutEquipmentServiceException({
|
|
401
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
404
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
402
405
|
$fault: "client",
|
|
403
|
-
$metadata
|
|
406
|
+
$metadata,
|
|
404
407
|
});
|
|
405
408
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
406
409
|
}
|
|
@@ -422,8 +425,7 @@ const deserializeAws_json1_0DeleteDatasetCommandError = async (output, context)
|
|
|
422
425
|
body: await parseBody(output.body, context),
|
|
423
426
|
};
|
|
424
427
|
let response;
|
|
425
|
-
|
|
426
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
428
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
427
429
|
switch (errorCode) {
|
|
428
430
|
case "AccessDeniedException":
|
|
429
431
|
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
@@ -442,10 +444,12 @@ const deserializeAws_json1_0DeleteDatasetCommandError = async (output, context)
|
|
|
442
444
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
443
445
|
default:
|
|
444
446
|
const parsedBody = parsedOutput.body;
|
|
447
|
+
const $metadata = deserializeMetadata(output);
|
|
448
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
445
449
|
response = new LookoutEquipmentServiceException_1.LookoutEquipmentServiceException({
|
|
446
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
450
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
447
451
|
$fault: "client",
|
|
448
|
-
$metadata
|
|
452
|
+
$metadata,
|
|
449
453
|
});
|
|
450
454
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
451
455
|
}
|
|
@@ -467,8 +471,7 @@ const deserializeAws_json1_0DeleteInferenceSchedulerCommandError = async (output
|
|
|
467
471
|
body: await parseBody(output.body, context),
|
|
468
472
|
};
|
|
469
473
|
let response;
|
|
470
|
-
|
|
471
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
474
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
472
475
|
switch (errorCode) {
|
|
473
476
|
case "AccessDeniedException":
|
|
474
477
|
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
@@ -490,10 +493,12 @@ const deserializeAws_json1_0DeleteInferenceSchedulerCommandError = async (output
|
|
|
490
493
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
491
494
|
default:
|
|
492
495
|
const parsedBody = parsedOutput.body;
|
|
496
|
+
const $metadata = deserializeMetadata(output);
|
|
497
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
493
498
|
response = new LookoutEquipmentServiceException_1.LookoutEquipmentServiceException({
|
|
494
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
499
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
495
500
|
$fault: "client",
|
|
496
|
-
$metadata
|
|
501
|
+
$metadata,
|
|
497
502
|
});
|
|
498
503
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
499
504
|
}
|
|
@@ -515,8 +520,7 @@ const deserializeAws_json1_0DeleteModelCommandError = async (output, context) =>
|
|
|
515
520
|
body: await parseBody(output.body, context),
|
|
516
521
|
};
|
|
517
522
|
let response;
|
|
518
|
-
|
|
519
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
523
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
520
524
|
switch (errorCode) {
|
|
521
525
|
case "AccessDeniedException":
|
|
522
526
|
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
@@ -535,10 +539,12 @@ const deserializeAws_json1_0DeleteModelCommandError = async (output, context) =>
|
|
|
535
539
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
536
540
|
default:
|
|
537
541
|
const parsedBody = parsedOutput.body;
|
|
542
|
+
const $metadata = deserializeMetadata(output);
|
|
543
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
538
544
|
response = new LookoutEquipmentServiceException_1.LookoutEquipmentServiceException({
|
|
539
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
545
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
540
546
|
$fault: "client",
|
|
541
|
-
$metadata
|
|
547
|
+
$metadata,
|
|
542
548
|
});
|
|
543
549
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
544
550
|
}
|
|
@@ -563,8 +569,7 @@ const deserializeAws_json1_0DescribeDataIngestionJobCommandError = async (output
|
|
|
563
569
|
body: await parseBody(output.body, context),
|
|
564
570
|
};
|
|
565
571
|
let response;
|
|
566
|
-
|
|
567
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
572
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
568
573
|
switch (errorCode) {
|
|
569
574
|
case "AccessDeniedException":
|
|
570
575
|
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
@@ -583,10 +588,12 @@ const deserializeAws_json1_0DescribeDataIngestionJobCommandError = async (output
|
|
|
583
588
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
584
589
|
default:
|
|
585
590
|
const parsedBody = parsedOutput.body;
|
|
591
|
+
const $metadata = deserializeMetadata(output);
|
|
592
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
586
593
|
response = new LookoutEquipmentServiceException_1.LookoutEquipmentServiceException({
|
|
587
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
594
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
588
595
|
$fault: "client",
|
|
589
|
-
$metadata
|
|
596
|
+
$metadata,
|
|
590
597
|
});
|
|
591
598
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
592
599
|
}
|
|
@@ -611,8 +618,7 @@ const deserializeAws_json1_0DescribeDatasetCommandError = async (output, context
|
|
|
611
618
|
body: await parseBody(output.body, context),
|
|
612
619
|
};
|
|
613
620
|
let response;
|
|
614
|
-
|
|
615
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
621
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
616
622
|
switch (errorCode) {
|
|
617
623
|
case "AccessDeniedException":
|
|
618
624
|
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
@@ -631,10 +637,12 @@ const deserializeAws_json1_0DescribeDatasetCommandError = async (output, context
|
|
|
631
637
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
632
638
|
default:
|
|
633
639
|
const parsedBody = parsedOutput.body;
|
|
640
|
+
const $metadata = deserializeMetadata(output);
|
|
641
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
634
642
|
response = new LookoutEquipmentServiceException_1.LookoutEquipmentServiceException({
|
|
635
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
643
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
636
644
|
$fault: "client",
|
|
637
|
-
$metadata
|
|
645
|
+
$metadata,
|
|
638
646
|
});
|
|
639
647
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
640
648
|
}
|
|
@@ -659,8 +667,7 @@ const deserializeAws_json1_0DescribeInferenceSchedulerCommandError = async (outp
|
|
|
659
667
|
body: await parseBody(output.body, context),
|
|
660
668
|
};
|
|
661
669
|
let response;
|
|
662
|
-
|
|
663
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
670
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
664
671
|
switch (errorCode) {
|
|
665
672
|
case "AccessDeniedException":
|
|
666
673
|
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
@@ -679,10 +686,12 @@ const deserializeAws_json1_0DescribeInferenceSchedulerCommandError = async (outp
|
|
|
679
686
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
680
687
|
default:
|
|
681
688
|
const parsedBody = parsedOutput.body;
|
|
689
|
+
const $metadata = deserializeMetadata(output);
|
|
690
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
682
691
|
response = new LookoutEquipmentServiceException_1.LookoutEquipmentServiceException({
|
|
683
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
692
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
684
693
|
$fault: "client",
|
|
685
|
-
$metadata
|
|
694
|
+
$metadata,
|
|
686
695
|
});
|
|
687
696
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
688
697
|
}
|
|
@@ -707,8 +716,7 @@ const deserializeAws_json1_0DescribeModelCommandError = async (output, context)
|
|
|
707
716
|
body: await parseBody(output.body, context),
|
|
708
717
|
};
|
|
709
718
|
let response;
|
|
710
|
-
|
|
711
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
719
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
712
720
|
switch (errorCode) {
|
|
713
721
|
case "AccessDeniedException":
|
|
714
722
|
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
@@ -727,10 +735,12 @@ const deserializeAws_json1_0DescribeModelCommandError = async (output, context)
|
|
|
727
735
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
728
736
|
default:
|
|
729
737
|
const parsedBody = parsedOutput.body;
|
|
738
|
+
const $metadata = deserializeMetadata(output);
|
|
739
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
730
740
|
response = new LookoutEquipmentServiceException_1.LookoutEquipmentServiceException({
|
|
731
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
741
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
732
742
|
$fault: "client",
|
|
733
|
-
$metadata
|
|
743
|
+
$metadata,
|
|
734
744
|
});
|
|
735
745
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
736
746
|
}
|
|
@@ -755,8 +765,7 @@ const deserializeAws_json1_0ListDataIngestionJobsCommandError = async (output, c
|
|
|
755
765
|
body: await parseBody(output.body, context),
|
|
756
766
|
};
|
|
757
767
|
let response;
|
|
758
|
-
|
|
759
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
768
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
760
769
|
switch (errorCode) {
|
|
761
770
|
case "AccessDeniedException":
|
|
762
771
|
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
@@ -772,10 +781,12 @@ const deserializeAws_json1_0ListDataIngestionJobsCommandError = async (output, c
|
|
|
772
781
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
773
782
|
default:
|
|
774
783
|
const parsedBody = parsedOutput.body;
|
|
784
|
+
const $metadata = deserializeMetadata(output);
|
|
785
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
775
786
|
response = new LookoutEquipmentServiceException_1.LookoutEquipmentServiceException({
|
|
776
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
787
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
777
788
|
$fault: "client",
|
|
778
|
-
$metadata
|
|
789
|
+
$metadata,
|
|
779
790
|
});
|
|
780
791
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
781
792
|
}
|
|
@@ -800,8 +811,7 @@ const deserializeAws_json1_0ListDatasetsCommandError = async (output, context) =
|
|
|
800
811
|
body: await parseBody(output.body, context),
|
|
801
812
|
};
|
|
802
813
|
let response;
|
|
803
|
-
|
|
804
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
814
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
805
815
|
switch (errorCode) {
|
|
806
816
|
case "AccessDeniedException":
|
|
807
817
|
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
@@ -817,10 +827,12 @@ const deserializeAws_json1_0ListDatasetsCommandError = async (output, context) =
|
|
|
817
827
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
818
828
|
default:
|
|
819
829
|
const parsedBody = parsedOutput.body;
|
|
830
|
+
const $metadata = deserializeMetadata(output);
|
|
831
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
820
832
|
response = new LookoutEquipmentServiceException_1.LookoutEquipmentServiceException({
|
|
821
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
833
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
822
834
|
$fault: "client",
|
|
823
|
-
$metadata
|
|
835
|
+
$metadata,
|
|
824
836
|
});
|
|
825
837
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
826
838
|
}
|
|
@@ -845,8 +857,7 @@ const deserializeAws_json1_0ListInferenceEventsCommandError = async (output, con
|
|
|
845
857
|
body: await parseBody(output.body, context),
|
|
846
858
|
};
|
|
847
859
|
let response;
|
|
848
|
-
|
|
849
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
860
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
850
861
|
switch (errorCode) {
|
|
851
862
|
case "AccessDeniedException":
|
|
852
863
|
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
@@ -865,10 +876,12 @@ const deserializeAws_json1_0ListInferenceEventsCommandError = async (output, con
|
|
|
865
876
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
866
877
|
default:
|
|
867
878
|
const parsedBody = parsedOutput.body;
|
|
879
|
+
const $metadata = deserializeMetadata(output);
|
|
880
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
868
881
|
response = new LookoutEquipmentServiceException_1.LookoutEquipmentServiceException({
|
|
869
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
882
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
870
883
|
$fault: "client",
|
|
871
|
-
$metadata
|
|
884
|
+
$metadata,
|
|
872
885
|
});
|
|
873
886
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
874
887
|
}
|
|
@@ -893,8 +906,7 @@ const deserializeAws_json1_0ListInferenceExecutionsCommandError = async (output,
|
|
|
893
906
|
body: await parseBody(output.body, context),
|
|
894
907
|
};
|
|
895
908
|
let response;
|
|
896
|
-
|
|
897
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
909
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
898
910
|
switch (errorCode) {
|
|
899
911
|
case "AccessDeniedException":
|
|
900
912
|
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
@@ -913,10 +925,12 @@ const deserializeAws_json1_0ListInferenceExecutionsCommandError = async (output,
|
|
|
913
925
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
914
926
|
default:
|
|
915
927
|
const parsedBody = parsedOutput.body;
|
|
928
|
+
const $metadata = deserializeMetadata(output);
|
|
929
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
916
930
|
response = new LookoutEquipmentServiceException_1.LookoutEquipmentServiceException({
|
|
917
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
931
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
918
932
|
$fault: "client",
|
|
919
|
-
$metadata
|
|
933
|
+
$metadata,
|
|
920
934
|
});
|
|
921
935
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
922
936
|
}
|
|
@@ -941,8 +955,7 @@ const deserializeAws_json1_0ListInferenceSchedulersCommandError = async (output,
|
|
|
941
955
|
body: await parseBody(output.body, context),
|
|
942
956
|
};
|
|
943
957
|
let response;
|
|
944
|
-
|
|
945
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
958
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
946
959
|
switch (errorCode) {
|
|
947
960
|
case "AccessDeniedException":
|
|
948
961
|
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
@@ -958,10 +971,12 @@ const deserializeAws_json1_0ListInferenceSchedulersCommandError = async (output,
|
|
|
958
971
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
959
972
|
default:
|
|
960
973
|
const parsedBody = parsedOutput.body;
|
|
974
|
+
const $metadata = deserializeMetadata(output);
|
|
975
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
961
976
|
response = new LookoutEquipmentServiceException_1.LookoutEquipmentServiceException({
|
|
962
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
977
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
963
978
|
$fault: "client",
|
|
964
|
-
$metadata
|
|
979
|
+
$metadata,
|
|
965
980
|
});
|
|
966
981
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
967
982
|
}
|
|
@@ -986,8 +1001,7 @@ const deserializeAws_json1_0ListModelsCommandError = async (output, context) =>
|
|
|
986
1001
|
body: await parseBody(output.body, context),
|
|
987
1002
|
};
|
|
988
1003
|
let response;
|
|
989
|
-
|
|
990
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1004
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
991
1005
|
switch (errorCode) {
|
|
992
1006
|
case "AccessDeniedException":
|
|
993
1007
|
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
@@ -1003,10 +1017,12 @@ const deserializeAws_json1_0ListModelsCommandError = async (output, context) =>
|
|
|
1003
1017
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1004
1018
|
default:
|
|
1005
1019
|
const parsedBody = parsedOutput.body;
|
|
1020
|
+
const $metadata = deserializeMetadata(output);
|
|
1021
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1006
1022
|
response = new LookoutEquipmentServiceException_1.LookoutEquipmentServiceException({
|
|
1007
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1023
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1008
1024
|
$fault: "client",
|
|
1009
|
-
$metadata
|
|
1025
|
+
$metadata,
|
|
1010
1026
|
});
|
|
1011
1027
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1012
1028
|
}
|
|
@@ -1031,8 +1047,7 @@ const deserializeAws_json1_0ListSensorStatisticsCommandError = async (output, co
|
|
|
1031
1047
|
body: await parseBody(output.body, context),
|
|
1032
1048
|
};
|
|
1033
1049
|
let response;
|
|
1034
|
-
|
|
1035
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1050
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1036
1051
|
switch (errorCode) {
|
|
1037
1052
|
case "AccessDeniedException":
|
|
1038
1053
|
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
@@ -1051,10 +1066,12 @@ const deserializeAws_json1_0ListSensorStatisticsCommandError = async (output, co
|
|
|
1051
1066
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1052
1067
|
default:
|
|
1053
1068
|
const parsedBody = parsedOutput.body;
|
|
1069
|
+
const $metadata = deserializeMetadata(output);
|
|
1070
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1054
1071
|
response = new LookoutEquipmentServiceException_1.LookoutEquipmentServiceException({
|
|
1055
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1072
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1056
1073
|
$fault: "client",
|
|
1057
|
-
$metadata
|
|
1074
|
+
$metadata,
|
|
1058
1075
|
});
|
|
1059
1076
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1060
1077
|
}
|
|
@@ -1079,8 +1096,7 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
1079
1096
|
body: await parseBody(output.body, context),
|
|
1080
1097
|
};
|
|
1081
1098
|
let response;
|
|
1082
|
-
|
|
1083
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1099
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1084
1100
|
switch (errorCode) {
|
|
1085
1101
|
case "AccessDeniedException":
|
|
1086
1102
|
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
@@ -1099,10 +1115,12 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
1099
1115
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1100
1116
|
default:
|
|
1101
1117
|
const parsedBody = parsedOutput.body;
|
|
1118
|
+
const $metadata = deserializeMetadata(output);
|
|
1119
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1102
1120
|
response = new LookoutEquipmentServiceException_1.LookoutEquipmentServiceException({
|
|
1103
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1121
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1104
1122
|
$fault: "client",
|
|
1105
|
-
$metadata
|
|
1123
|
+
$metadata,
|
|
1106
1124
|
});
|
|
1107
1125
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1108
1126
|
}
|
|
@@ -1127,8 +1145,7 @@ const deserializeAws_json1_0StartDataIngestionJobCommandError = async (output, c
|
|
|
1127
1145
|
body: await parseBody(output.body, context),
|
|
1128
1146
|
};
|
|
1129
1147
|
let response;
|
|
1130
|
-
|
|
1131
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1148
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1132
1149
|
switch (errorCode) {
|
|
1133
1150
|
case "AccessDeniedException":
|
|
1134
1151
|
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
@@ -1153,10 +1170,12 @@ const deserializeAws_json1_0StartDataIngestionJobCommandError = async (output, c
|
|
|
1153
1170
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1154
1171
|
default:
|
|
1155
1172
|
const parsedBody = parsedOutput.body;
|
|
1173
|
+
const $metadata = deserializeMetadata(output);
|
|
1174
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1156
1175
|
response = new LookoutEquipmentServiceException_1.LookoutEquipmentServiceException({
|
|
1157
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1176
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1158
1177
|
$fault: "client",
|
|
1159
|
-
$metadata
|
|
1178
|
+
$metadata,
|
|
1160
1179
|
});
|
|
1161
1180
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1162
1181
|
}
|
|
@@ -1181,8 +1200,7 @@ const deserializeAws_json1_0StartInferenceSchedulerCommandError = async (output,
|
|
|
1181
1200
|
body: await parseBody(output.body, context),
|
|
1182
1201
|
};
|
|
1183
1202
|
let response;
|
|
1184
|
-
|
|
1185
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1203
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1186
1204
|
switch (errorCode) {
|
|
1187
1205
|
case "AccessDeniedException":
|
|
1188
1206
|
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
@@ -1204,10 +1222,12 @@ const deserializeAws_json1_0StartInferenceSchedulerCommandError = async (output,
|
|
|
1204
1222
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1205
1223
|
default:
|
|
1206
1224
|
const parsedBody = parsedOutput.body;
|
|
1225
|
+
const $metadata = deserializeMetadata(output);
|
|
1226
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1207
1227
|
response = new LookoutEquipmentServiceException_1.LookoutEquipmentServiceException({
|
|
1208
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1228
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1209
1229
|
$fault: "client",
|
|
1210
|
-
$metadata
|
|
1230
|
+
$metadata,
|
|
1211
1231
|
});
|
|
1212
1232
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1213
1233
|
}
|
|
@@ -1232,8 +1252,7 @@ const deserializeAws_json1_0StopInferenceSchedulerCommandError = async (output,
|
|
|
1232
1252
|
body: await parseBody(output.body, context),
|
|
1233
1253
|
};
|
|
1234
1254
|
let response;
|
|
1235
|
-
|
|
1236
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1255
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1237
1256
|
switch (errorCode) {
|
|
1238
1257
|
case "AccessDeniedException":
|
|
1239
1258
|
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
@@ -1255,10 +1274,12 @@ const deserializeAws_json1_0StopInferenceSchedulerCommandError = async (output,
|
|
|
1255
1274
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1256
1275
|
default:
|
|
1257
1276
|
const parsedBody = parsedOutput.body;
|
|
1277
|
+
const $metadata = deserializeMetadata(output);
|
|
1278
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1258
1279
|
response = new LookoutEquipmentServiceException_1.LookoutEquipmentServiceException({
|
|
1259
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1280
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1260
1281
|
$fault: "client",
|
|
1261
|
-
$metadata
|
|
1282
|
+
$metadata,
|
|
1262
1283
|
});
|
|
1263
1284
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1264
1285
|
}
|
|
@@ -1283,8 +1304,7 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
1283
1304
|
body: await parseBody(output.body, context),
|
|
1284
1305
|
};
|
|
1285
1306
|
let response;
|
|
1286
|
-
|
|
1287
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1307
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1288
1308
|
switch (errorCode) {
|
|
1289
1309
|
case "AccessDeniedException":
|
|
1290
1310
|
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
@@ -1306,10 +1326,12 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
1306
1326
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1307
1327
|
default:
|
|
1308
1328
|
const parsedBody = parsedOutput.body;
|
|
1329
|
+
const $metadata = deserializeMetadata(output);
|
|
1330
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1309
1331
|
response = new LookoutEquipmentServiceException_1.LookoutEquipmentServiceException({
|
|
1310
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1332
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1311
1333
|
$fault: "client",
|
|
1312
|
-
$metadata
|
|
1334
|
+
$metadata,
|
|
1313
1335
|
});
|
|
1314
1336
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1315
1337
|
}
|
|
@@ -1334,8 +1356,7 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1334
1356
|
body: await parseBody(output.body, context),
|
|
1335
1357
|
};
|
|
1336
1358
|
let response;
|
|
1337
|
-
|
|
1338
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1359
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1339
1360
|
switch (errorCode) {
|
|
1340
1361
|
case "AccessDeniedException":
|
|
1341
1362
|
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
@@ -1354,10 +1375,12 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1354
1375
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1355
1376
|
default:
|
|
1356
1377
|
const parsedBody = parsedOutput.body;
|
|
1378
|
+
const $metadata = deserializeMetadata(output);
|
|
1379
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1357
1380
|
response = new LookoutEquipmentServiceException_1.LookoutEquipmentServiceException({
|
|
1358
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1381
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1359
1382
|
$fault: "client",
|
|
1360
|
-
$metadata
|
|
1383
|
+
$metadata,
|
|
1361
1384
|
});
|
|
1362
1385
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1363
1386
|
}
|
|
@@ -1379,8 +1402,7 @@ const deserializeAws_json1_0UpdateInferenceSchedulerCommandError = async (output
|
|
|
1379
1402
|
body: await parseBody(output.body, context),
|
|
1380
1403
|
};
|
|
1381
1404
|
let response;
|
|
1382
|
-
|
|
1383
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1405
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1384
1406
|
switch (errorCode) {
|
|
1385
1407
|
case "AccessDeniedException":
|
|
1386
1408
|
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
@@ -1402,10 +1424,12 @@ const deserializeAws_json1_0UpdateInferenceSchedulerCommandError = async (output
|
|
|
1402
1424
|
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1403
1425
|
default:
|
|
1404
1426
|
const parsedBody = parsedOutput.body;
|
|
1427
|
+
const $metadata = deserializeMetadata(output);
|
|
1428
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1405
1429
|
response = new LookoutEquipmentServiceException_1.LookoutEquipmentServiceException({
|
|
1406
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1430
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1407
1431
|
$fault: "client",
|
|
1408
|
-
$metadata
|
|
1432
|
+
$metadata,
|
|
1409
1433
|
});
|
|
1410
1434
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1411
1435
|
}
|
|
@@ -2580,5 +2604,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2580
2604
|
if (data["__type"] !== undefined) {
|
|
2581
2605
|
return sanitizeErrorCode(data["__type"]);
|
|
2582
2606
|
}
|
|
2583
|
-
return "";
|
|
2584
2607
|
};
|