@aws-sdk/client-application-insights 3.118.1 → 3.128.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_1.js +251 -303
- package/dist-es/protocols/Aws_json1_1.js +191 -243
- package/package.json +26 -26
|
@@ -296,8 +296,7 @@ const deserializeAws_json1_1CreateApplicationCommandError = async (output, conte
|
|
|
296
296
|
body: await parseBody(output.body, context),
|
|
297
297
|
};
|
|
298
298
|
let response;
|
|
299
|
-
|
|
300
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
299
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
301
300
|
switch (errorCode) {
|
|
302
301
|
case "AccessDeniedException":
|
|
303
302
|
case "com.amazonaws.applicationinsights#AccessDeniedException":
|
|
@@ -319,10 +318,12 @@ const deserializeAws_json1_1CreateApplicationCommandError = async (output, conte
|
|
|
319
318
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
320
319
|
default:
|
|
321
320
|
const parsedBody = parsedOutput.body;
|
|
321
|
+
const $metadata = deserializeMetadata(output);
|
|
322
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
322
323
|
response = new ApplicationInsightsServiceException_1.ApplicationInsightsServiceException({
|
|
323
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
324
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
324
325
|
$fault: "client",
|
|
325
|
-
$metadata
|
|
326
|
+
$metadata,
|
|
326
327
|
});
|
|
327
328
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
328
329
|
}
|
|
@@ -347,8 +348,7 @@ const deserializeAws_json1_1CreateComponentCommandError = async (output, context
|
|
|
347
348
|
body: await parseBody(output.body, context),
|
|
348
349
|
};
|
|
349
350
|
let response;
|
|
350
|
-
|
|
351
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
351
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
352
352
|
switch (errorCode) {
|
|
353
353
|
case "InternalServerException":
|
|
354
354
|
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
@@ -364,10 +364,12 @@ const deserializeAws_json1_1CreateComponentCommandError = async (output, context
|
|
|
364
364
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
365
365
|
default:
|
|
366
366
|
const parsedBody = parsedOutput.body;
|
|
367
|
+
const $metadata = deserializeMetadata(output);
|
|
368
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
367
369
|
response = new ApplicationInsightsServiceException_1.ApplicationInsightsServiceException({
|
|
368
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
370
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
369
371
|
$fault: "client",
|
|
370
|
-
$metadata
|
|
372
|
+
$metadata,
|
|
371
373
|
});
|
|
372
374
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
373
375
|
}
|
|
@@ -392,8 +394,7 @@ const deserializeAws_json1_1CreateLogPatternCommandError = async (output, contex
|
|
|
392
394
|
body: await parseBody(output.body, context),
|
|
393
395
|
};
|
|
394
396
|
let response;
|
|
395
|
-
|
|
396
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
397
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
397
398
|
switch (errorCode) {
|
|
398
399
|
case "InternalServerException":
|
|
399
400
|
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
@@ -409,10 +410,12 @@ const deserializeAws_json1_1CreateLogPatternCommandError = async (output, contex
|
|
|
409
410
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
410
411
|
default:
|
|
411
412
|
const parsedBody = parsedOutput.body;
|
|
413
|
+
const $metadata = deserializeMetadata(output);
|
|
414
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
412
415
|
response = new ApplicationInsightsServiceException_1.ApplicationInsightsServiceException({
|
|
413
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
416
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
414
417
|
$fault: "client",
|
|
415
|
-
$metadata
|
|
418
|
+
$metadata,
|
|
416
419
|
});
|
|
417
420
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
418
421
|
}
|
|
@@ -437,8 +440,7 @@ const deserializeAws_json1_1DeleteApplicationCommandError = async (output, conte
|
|
|
437
440
|
body: await parseBody(output.body, context),
|
|
438
441
|
};
|
|
439
442
|
let response;
|
|
440
|
-
|
|
441
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
443
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
442
444
|
switch (errorCode) {
|
|
443
445
|
case "BadRequestException":
|
|
444
446
|
case "com.amazonaws.applicationinsights#BadRequestException":
|
|
@@ -454,10 +456,12 @@ const deserializeAws_json1_1DeleteApplicationCommandError = async (output, conte
|
|
|
454
456
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
455
457
|
default:
|
|
456
458
|
const parsedBody = parsedOutput.body;
|
|
459
|
+
const $metadata = deserializeMetadata(output);
|
|
460
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
457
461
|
response = new ApplicationInsightsServiceException_1.ApplicationInsightsServiceException({
|
|
458
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
462
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
459
463
|
$fault: "client",
|
|
460
|
-
$metadata
|
|
464
|
+
$metadata,
|
|
461
465
|
});
|
|
462
466
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
463
467
|
}
|
|
@@ -482,8 +486,7 @@ const deserializeAws_json1_1DeleteComponentCommandError = async (output, context
|
|
|
482
486
|
body: await parseBody(output.body, context),
|
|
483
487
|
};
|
|
484
488
|
let response;
|
|
485
|
-
|
|
486
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
489
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
487
490
|
switch (errorCode) {
|
|
488
491
|
case "InternalServerException":
|
|
489
492
|
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
@@ -496,10 +499,12 @@ const deserializeAws_json1_1DeleteComponentCommandError = async (output, context
|
|
|
496
499
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
497
500
|
default:
|
|
498
501
|
const parsedBody = parsedOutput.body;
|
|
502
|
+
const $metadata = deserializeMetadata(output);
|
|
503
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
499
504
|
response = new ApplicationInsightsServiceException_1.ApplicationInsightsServiceException({
|
|
500
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
505
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
501
506
|
$fault: "client",
|
|
502
|
-
$metadata
|
|
507
|
+
$metadata,
|
|
503
508
|
});
|
|
504
509
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
505
510
|
}
|
|
@@ -524,8 +529,7 @@ const deserializeAws_json1_1DeleteLogPatternCommandError = async (output, contex
|
|
|
524
529
|
body: await parseBody(output.body, context),
|
|
525
530
|
};
|
|
526
531
|
let response;
|
|
527
|
-
|
|
528
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
532
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
529
533
|
switch (errorCode) {
|
|
530
534
|
case "BadRequestException":
|
|
531
535
|
case "com.amazonaws.applicationinsights#BadRequestException":
|
|
@@ -541,10 +545,12 @@ const deserializeAws_json1_1DeleteLogPatternCommandError = async (output, contex
|
|
|
541
545
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
542
546
|
default:
|
|
543
547
|
const parsedBody = parsedOutput.body;
|
|
548
|
+
const $metadata = deserializeMetadata(output);
|
|
549
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
544
550
|
response = new ApplicationInsightsServiceException_1.ApplicationInsightsServiceException({
|
|
545
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
551
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
546
552
|
$fault: "client",
|
|
547
|
-
$metadata
|
|
553
|
+
$metadata,
|
|
548
554
|
});
|
|
549
555
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
550
556
|
}
|
|
@@ -569,8 +575,7 @@ const deserializeAws_json1_1DescribeApplicationCommandError = async (output, con
|
|
|
569
575
|
body: await parseBody(output.body, context),
|
|
570
576
|
};
|
|
571
577
|
let response;
|
|
572
|
-
|
|
573
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
578
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
574
579
|
switch (errorCode) {
|
|
575
580
|
case "InternalServerException":
|
|
576
581
|
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
@@ -583,10 +588,12 @@ const deserializeAws_json1_1DescribeApplicationCommandError = async (output, con
|
|
|
583
588
|
throw await deserializeAws_json1_1ValidationExceptionResponse(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 ApplicationInsightsServiceException_1.ApplicationInsightsServiceException({
|
|
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_1DescribeComponentCommandError = async (output, conte
|
|
|
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 "InternalServerException":
|
|
618
624
|
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
@@ -625,10 +631,12 @@ const deserializeAws_json1_1DescribeComponentCommandError = async (output, conte
|
|
|
625
631
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
626
632
|
default:
|
|
627
633
|
const parsedBody = parsedOutput.body;
|
|
634
|
+
const $metadata = deserializeMetadata(output);
|
|
635
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
628
636
|
response = new ApplicationInsightsServiceException_1.ApplicationInsightsServiceException({
|
|
629
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
637
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
630
638
|
$fault: "client",
|
|
631
|
-
$metadata
|
|
639
|
+
$metadata,
|
|
632
640
|
});
|
|
633
641
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
634
642
|
}
|
|
@@ -653,8 +661,7 @@ const deserializeAws_json1_1DescribeComponentConfigurationCommandError = async (
|
|
|
653
661
|
body: await parseBody(output.body, context),
|
|
654
662
|
};
|
|
655
663
|
let response;
|
|
656
|
-
|
|
657
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
664
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
658
665
|
switch (errorCode) {
|
|
659
666
|
case "InternalServerException":
|
|
660
667
|
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
@@ -667,10 +674,12 @@ const deserializeAws_json1_1DescribeComponentConfigurationCommandError = async (
|
|
|
667
674
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
668
675
|
default:
|
|
669
676
|
const parsedBody = parsedOutput.body;
|
|
677
|
+
const $metadata = deserializeMetadata(output);
|
|
678
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
670
679
|
response = new ApplicationInsightsServiceException_1.ApplicationInsightsServiceException({
|
|
671
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
680
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
672
681
|
$fault: "client",
|
|
673
|
-
$metadata
|
|
682
|
+
$metadata,
|
|
674
683
|
});
|
|
675
684
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
676
685
|
}
|
|
@@ -695,8 +704,7 @@ const deserializeAws_json1_1DescribeComponentConfigurationRecommendationCommandE
|
|
|
695
704
|
body: await parseBody(output.body, context),
|
|
696
705
|
};
|
|
697
706
|
let response;
|
|
698
|
-
|
|
699
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
707
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
700
708
|
switch (errorCode) {
|
|
701
709
|
case "InternalServerException":
|
|
702
710
|
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
@@ -709,10 +717,12 @@ const deserializeAws_json1_1DescribeComponentConfigurationRecommendationCommandE
|
|
|
709
717
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
710
718
|
default:
|
|
711
719
|
const parsedBody = parsedOutput.body;
|
|
720
|
+
const $metadata = deserializeMetadata(output);
|
|
721
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
712
722
|
response = new ApplicationInsightsServiceException_1.ApplicationInsightsServiceException({
|
|
713
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
723
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
714
724
|
$fault: "client",
|
|
715
|
-
$metadata
|
|
725
|
+
$metadata,
|
|
716
726
|
});
|
|
717
727
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
718
728
|
}
|
|
@@ -737,8 +747,7 @@ const deserializeAws_json1_1DescribeLogPatternCommandError = async (output, cont
|
|
|
737
747
|
body: await parseBody(output.body, context),
|
|
738
748
|
};
|
|
739
749
|
let response;
|
|
740
|
-
|
|
741
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
750
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
742
751
|
switch (errorCode) {
|
|
743
752
|
case "InternalServerException":
|
|
744
753
|
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
@@ -751,10 +760,12 @@ const deserializeAws_json1_1DescribeLogPatternCommandError = async (output, cont
|
|
|
751
760
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
752
761
|
default:
|
|
753
762
|
const parsedBody = parsedOutput.body;
|
|
763
|
+
const $metadata = deserializeMetadata(output);
|
|
764
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
754
765
|
response = new ApplicationInsightsServiceException_1.ApplicationInsightsServiceException({
|
|
755
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
766
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
756
767
|
$fault: "client",
|
|
757
|
-
$metadata
|
|
768
|
+
$metadata,
|
|
758
769
|
});
|
|
759
770
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
760
771
|
}
|
|
@@ -779,8 +790,7 @@ const deserializeAws_json1_1DescribeObservationCommandError = async (output, con
|
|
|
779
790
|
body: await parseBody(output.body, context),
|
|
780
791
|
};
|
|
781
792
|
let response;
|
|
782
|
-
|
|
783
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
793
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
784
794
|
switch (errorCode) {
|
|
785
795
|
case "InternalServerException":
|
|
786
796
|
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
@@ -793,10 +803,12 @@ const deserializeAws_json1_1DescribeObservationCommandError = async (output, con
|
|
|
793
803
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
794
804
|
default:
|
|
795
805
|
const parsedBody = parsedOutput.body;
|
|
806
|
+
const $metadata = deserializeMetadata(output);
|
|
807
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
796
808
|
response = new ApplicationInsightsServiceException_1.ApplicationInsightsServiceException({
|
|
797
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
809
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
798
810
|
$fault: "client",
|
|
799
|
-
$metadata
|
|
811
|
+
$metadata,
|
|
800
812
|
});
|
|
801
813
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
802
814
|
}
|
|
@@ -821,8 +833,7 @@ const deserializeAws_json1_1DescribeProblemCommandError = async (output, context
|
|
|
821
833
|
body: await parseBody(output.body, context),
|
|
822
834
|
};
|
|
823
835
|
let response;
|
|
824
|
-
|
|
825
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
836
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
826
837
|
switch (errorCode) {
|
|
827
838
|
case "InternalServerException":
|
|
828
839
|
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
@@ -835,10 +846,12 @@ const deserializeAws_json1_1DescribeProblemCommandError = async (output, context
|
|
|
835
846
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
836
847
|
default:
|
|
837
848
|
const parsedBody = parsedOutput.body;
|
|
849
|
+
const $metadata = deserializeMetadata(output);
|
|
850
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
838
851
|
response = new ApplicationInsightsServiceException_1.ApplicationInsightsServiceException({
|
|
839
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
852
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
840
853
|
$fault: "client",
|
|
841
|
-
$metadata
|
|
854
|
+
$metadata,
|
|
842
855
|
});
|
|
843
856
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
844
857
|
}
|
|
@@ -863,8 +876,7 @@ const deserializeAws_json1_1DescribeProblemObservationsCommandError = async (out
|
|
|
863
876
|
body: await parseBody(output.body, context),
|
|
864
877
|
};
|
|
865
878
|
let response;
|
|
866
|
-
|
|
867
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
879
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
868
880
|
switch (errorCode) {
|
|
869
881
|
case "InternalServerException":
|
|
870
882
|
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
@@ -877,10 +889,12 @@ const deserializeAws_json1_1DescribeProblemObservationsCommandError = async (out
|
|
|
877
889
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
878
890
|
default:
|
|
879
891
|
const parsedBody = parsedOutput.body;
|
|
892
|
+
const $metadata = deserializeMetadata(output);
|
|
893
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
880
894
|
response = new ApplicationInsightsServiceException_1.ApplicationInsightsServiceException({
|
|
881
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
895
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
882
896
|
$fault: "client",
|
|
883
|
-
$metadata
|
|
897
|
+
$metadata,
|
|
884
898
|
});
|
|
885
899
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
886
900
|
}
|
|
@@ -905,8 +919,7 @@ const deserializeAws_json1_1ListApplicationsCommandError = async (output, contex
|
|
|
905
919
|
body: await parseBody(output.body, context),
|
|
906
920
|
};
|
|
907
921
|
let response;
|
|
908
|
-
|
|
909
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
922
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
910
923
|
switch (errorCode) {
|
|
911
924
|
case "InternalServerException":
|
|
912
925
|
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
@@ -916,10 +929,12 @@ const deserializeAws_json1_1ListApplicationsCommandError = async (output, contex
|
|
|
916
929
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
917
930
|
default:
|
|
918
931
|
const parsedBody = parsedOutput.body;
|
|
932
|
+
const $metadata = deserializeMetadata(output);
|
|
933
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
919
934
|
response = new ApplicationInsightsServiceException_1.ApplicationInsightsServiceException({
|
|
920
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
935
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
921
936
|
$fault: "client",
|
|
922
|
-
$metadata
|
|
937
|
+
$metadata,
|
|
923
938
|
});
|
|
924
939
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
925
940
|
}
|
|
@@ -944,8 +959,7 @@ const deserializeAws_json1_1ListComponentsCommandError = async (output, context)
|
|
|
944
959
|
body: await parseBody(output.body, context),
|
|
945
960
|
};
|
|
946
961
|
let response;
|
|
947
|
-
|
|
948
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
962
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
949
963
|
switch (errorCode) {
|
|
950
964
|
case "InternalServerException":
|
|
951
965
|
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
@@ -958,10 +972,12 @@ const deserializeAws_json1_1ListComponentsCommandError = async (output, context)
|
|
|
958
972
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
959
973
|
default:
|
|
960
974
|
const parsedBody = parsedOutput.body;
|
|
975
|
+
const $metadata = deserializeMetadata(output);
|
|
976
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
961
977
|
response = new ApplicationInsightsServiceException_1.ApplicationInsightsServiceException({
|
|
962
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
978
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
963
979
|
$fault: "client",
|
|
964
|
-
$metadata
|
|
980
|
+
$metadata,
|
|
965
981
|
});
|
|
966
982
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
967
983
|
}
|
|
@@ -986,8 +1002,7 @@ const deserializeAws_json1_1ListConfigurationHistoryCommandError = async (output
|
|
|
986
1002
|
body: await parseBody(output.body, context),
|
|
987
1003
|
};
|
|
988
1004
|
let response;
|
|
989
|
-
|
|
990
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1005
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
991
1006
|
switch (errorCode) {
|
|
992
1007
|
case "InternalServerException":
|
|
993
1008
|
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
@@ -1000,10 +1015,12 @@ const deserializeAws_json1_1ListConfigurationHistoryCommandError = async (output
|
|
|
1000
1015
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1001
1016
|
default:
|
|
1002
1017
|
const parsedBody = parsedOutput.body;
|
|
1018
|
+
const $metadata = deserializeMetadata(output);
|
|
1019
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1003
1020
|
response = new ApplicationInsightsServiceException_1.ApplicationInsightsServiceException({
|
|
1004
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1021
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1005
1022
|
$fault: "client",
|
|
1006
|
-
$metadata
|
|
1023
|
+
$metadata,
|
|
1007
1024
|
});
|
|
1008
1025
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1009
1026
|
}
|
|
@@ -1028,8 +1045,7 @@ const deserializeAws_json1_1ListLogPatternsCommandError = async (output, context
|
|
|
1028
1045
|
body: await parseBody(output.body, context),
|
|
1029
1046
|
};
|
|
1030
1047
|
let response;
|
|
1031
|
-
|
|
1032
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1048
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1033
1049
|
switch (errorCode) {
|
|
1034
1050
|
case "InternalServerException":
|
|
1035
1051
|
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
@@ -1042,10 +1058,12 @@ const deserializeAws_json1_1ListLogPatternsCommandError = async (output, context
|
|
|
1042
1058
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1043
1059
|
default:
|
|
1044
1060
|
const parsedBody = parsedOutput.body;
|
|
1061
|
+
const $metadata = deserializeMetadata(output);
|
|
1062
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1045
1063
|
response = new ApplicationInsightsServiceException_1.ApplicationInsightsServiceException({
|
|
1046
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1064
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1047
1065
|
$fault: "client",
|
|
1048
|
-
$metadata
|
|
1066
|
+
$metadata,
|
|
1049
1067
|
});
|
|
1050
1068
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1051
1069
|
}
|
|
@@ -1070,8 +1088,7 @@ const deserializeAws_json1_1ListLogPatternSetsCommandError = async (output, cont
|
|
|
1070
1088
|
body: await parseBody(output.body, context),
|
|
1071
1089
|
};
|
|
1072
1090
|
let response;
|
|
1073
|
-
|
|
1074
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1091
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1075
1092
|
switch (errorCode) {
|
|
1076
1093
|
case "InternalServerException":
|
|
1077
1094
|
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
@@ -1084,10 +1101,12 @@ const deserializeAws_json1_1ListLogPatternSetsCommandError = async (output, cont
|
|
|
1084
1101
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1085
1102
|
default:
|
|
1086
1103
|
const parsedBody = parsedOutput.body;
|
|
1104
|
+
const $metadata = deserializeMetadata(output);
|
|
1105
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1087
1106
|
response = new ApplicationInsightsServiceException_1.ApplicationInsightsServiceException({
|
|
1088
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1107
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1089
1108
|
$fault: "client",
|
|
1090
|
-
$metadata
|
|
1109
|
+
$metadata,
|
|
1091
1110
|
});
|
|
1092
1111
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1093
1112
|
}
|
|
@@ -1112,8 +1131,7 @@ const deserializeAws_json1_1ListProblemsCommandError = async (output, context) =
|
|
|
1112
1131
|
body: await parseBody(output.body, context),
|
|
1113
1132
|
};
|
|
1114
1133
|
let response;
|
|
1115
|
-
|
|
1116
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1134
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1117
1135
|
switch (errorCode) {
|
|
1118
1136
|
case "InternalServerException":
|
|
1119
1137
|
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
@@ -1126,10 +1144,12 @@ const deserializeAws_json1_1ListProblemsCommandError = async (output, context) =
|
|
|
1126
1144
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1127
1145
|
default:
|
|
1128
1146
|
const parsedBody = parsedOutput.body;
|
|
1147
|
+
const $metadata = deserializeMetadata(output);
|
|
1148
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1129
1149
|
response = new ApplicationInsightsServiceException_1.ApplicationInsightsServiceException({
|
|
1130
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1150
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1131
1151
|
$fault: "client",
|
|
1132
|
-
$metadata
|
|
1152
|
+
$metadata,
|
|
1133
1153
|
});
|
|
1134
1154
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1135
1155
|
}
|
|
@@ -1154,8 +1174,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1154
1174
|
body: await parseBody(output.body, context),
|
|
1155
1175
|
};
|
|
1156
1176
|
let response;
|
|
1157
|
-
|
|
1158
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1177
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1159
1178
|
switch (errorCode) {
|
|
1160
1179
|
case "ResourceNotFoundException":
|
|
1161
1180
|
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
@@ -1165,10 +1184,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1165
1184
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1166
1185
|
default:
|
|
1167
1186
|
const parsedBody = parsedOutput.body;
|
|
1187
|
+
const $metadata = deserializeMetadata(output);
|
|
1188
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1168
1189
|
response = new ApplicationInsightsServiceException_1.ApplicationInsightsServiceException({
|
|
1169
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1190
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1170
1191
|
$fault: "client",
|
|
1171
|
-
$metadata
|
|
1192
|
+
$metadata,
|
|
1172
1193
|
});
|
|
1173
1194
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1174
1195
|
}
|
|
@@ -1193,8 +1214,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1193
1214
|
body: await parseBody(output.body, context),
|
|
1194
1215
|
};
|
|
1195
1216
|
let response;
|
|
1196
|
-
|
|
1197
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1217
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1198
1218
|
switch (errorCode) {
|
|
1199
1219
|
case "ResourceNotFoundException":
|
|
1200
1220
|
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
@@ -1207,10 +1227,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1207
1227
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1208
1228
|
default:
|
|
1209
1229
|
const parsedBody = parsedOutput.body;
|
|
1230
|
+
const $metadata = deserializeMetadata(output);
|
|
1231
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1210
1232
|
response = new ApplicationInsightsServiceException_1.ApplicationInsightsServiceException({
|
|
1211
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1233
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1212
1234
|
$fault: "client",
|
|
1213
|
-
$metadata
|
|
1235
|
+
$metadata,
|
|
1214
1236
|
});
|
|
1215
1237
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1216
1238
|
}
|
|
@@ -1235,8 +1257,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1235
1257
|
body: await parseBody(output.body, context),
|
|
1236
1258
|
};
|
|
1237
1259
|
let response;
|
|
1238
|
-
|
|
1239
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1260
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1240
1261
|
switch (errorCode) {
|
|
1241
1262
|
case "ResourceNotFoundException":
|
|
1242
1263
|
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
@@ -1246,10 +1267,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1246
1267
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1247
1268
|
default:
|
|
1248
1269
|
const parsedBody = parsedOutput.body;
|
|
1270
|
+
const $metadata = deserializeMetadata(output);
|
|
1271
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1249
1272
|
response = new ApplicationInsightsServiceException_1.ApplicationInsightsServiceException({
|
|
1250
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1273
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1251
1274
|
$fault: "client",
|
|
1252
|
-
$metadata
|
|
1275
|
+
$metadata,
|
|
1253
1276
|
});
|
|
1254
1277
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1255
1278
|
}
|
|
@@ -1274,8 +1297,7 @@ const deserializeAws_json1_1UpdateApplicationCommandError = async (output, conte
|
|
|
1274
1297
|
body: await parseBody(output.body, context),
|
|
1275
1298
|
};
|
|
1276
1299
|
let response;
|
|
1277
|
-
|
|
1278
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1300
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1279
1301
|
switch (errorCode) {
|
|
1280
1302
|
case "InternalServerException":
|
|
1281
1303
|
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
@@ -1288,10 +1310,12 @@ const deserializeAws_json1_1UpdateApplicationCommandError = async (output, conte
|
|
|
1288
1310
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1289
1311
|
default:
|
|
1290
1312
|
const parsedBody = parsedOutput.body;
|
|
1313
|
+
const $metadata = deserializeMetadata(output);
|
|
1314
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1291
1315
|
response = new ApplicationInsightsServiceException_1.ApplicationInsightsServiceException({
|
|
1292
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1316
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1293
1317
|
$fault: "client",
|
|
1294
|
-
$metadata
|
|
1318
|
+
$metadata,
|
|
1295
1319
|
});
|
|
1296
1320
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1297
1321
|
}
|
|
@@ -1316,8 +1340,7 @@ const deserializeAws_json1_1UpdateComponentCommandError = async (output, context
|
|
|
1316
1340
|
body: await parseBody(output.body, context),
|
|
1317
1341
|
};
|
|
1318
1342
|
let response;
|
|
1319
|
-
|
|
1320
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1343
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1321
1344
|
switch (errorCode) {
|
|
1322
1345
|
case "InternalServerException":
|
|
1323
1346
|
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
@@ -1333,10 +1356,12 @@ const deserializeAws_json1_1UpdateComponentCommandError = async (output, context
|
|
|
1333
1356
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1334
1357
|
default:
|
|
1335
1358
|
const parsedBody = parsedOutput.body;
|
|
1359
|
+
const $metadata = deserializeMetadata(output);
|
|
1360
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1336
1361
|
response = new ApplicationInsightsServiceException_1.ApplicationInsightsServiceException({
|
|
1337
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1362
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1338
1363
|
$fault: "client",
|
|
1339
|
-
$metadata
|
|
1364
|
+
$metadata,
|
|
1340
1365
|
});
|
|
1341
1366
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1342
1367
|
}
|
|
@@ -1361,8 +1386,7 @@ const deserializeAws_json1_1UpdateComponentConfigurationCommandError = async (ou
|
|
|
1361
1386
|
body: await parseBody(output.body, context),
|
|
1362
1387
|
};
|
|
1363
1388
|
let response;
|
|
1364
|
-
|
|
1365
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1389
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1366
1390
|
switch (errorCode) {
|
|
1367
1391
|
case "InternalServerException":
|
|
1368
1392
|
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
@@ -1375,10 +1399,12 @@ const deserializeAws_json1_1UpdateComponentConfigurationCommandError = async (ou
|
|
|
1375
1399
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1376
1400
|
default:
|
|
1377
1401
|
const parsedBody = parsedOutput.body;
|
|
1402
|
+
const $metadata = deserializeMetadata(output);
|
|
1403
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1378
1404
|
response = new ApplicationInsightsServiceException_1.ApplicationInsightsServiceException({
|
|
1379
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1405
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1380
1406
|
$fault: "client",
|
|
1381
|
-
$metadata
|
|
1407
|
+
$metadata,
|
|
1382
1408
|
});
|
|
1383
1409
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1384
1410
|
}
|
|
@@ -1403,8 +1429,7 @@ const deserializeAws_json1_1UpdateLogPatternCommandError = async (output, contex
|
|
|
1403
1429
|
body: await parseBody(output.body, context),
|
|
1404
1430
|
};
|
|
1405
1431
|
let response;
|
|
1406
|
-
|
|
1407
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1432
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1408
1433
|
switch (errorCode) {
|
|
1409
1434
|
case "InternalServerException":
|
|
1410
1435
|
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
@@ -1420,10 +1445,12 @@ const deserializeAws_json1_1UpdateLogPatternCommandError = async (output, contex
|
|
|
1420
1445
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1421
1446
|
default:
|
|
1422
1447
|
const parsedBody = parsedOutput.body;
|
|
1448
|
+
const $metadata = deserializeMetadata(output);
|
|
1449
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1423
1450
|
response = new ApplicationInsightsServiceException_1.ApplicationInsightsServiceException({
|
|
1424
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1451
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1425
1452
|
$fault: "client",
|
|
1426
|
-
$metadata
|
|
1453
|
+
$metadata,
|
|
1427
1454
|
});
|
|
1428
1455
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1429
1456
|
}
|
|
@@ -1502,176 +1529,147 @@ const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, c
|
|
|
1502
1529
|
};
|
|
1503
1530
|
const serializeAws_json1_1CreateApplicationRequest = (input, context) => {
|
|
1504
1531
|
return {
|
|
1505
|
-
...(input.AutoConfigEnabled
|
|
1506
|
-
|
|
1507
|
-
...(input.
|
|
1508
|
-
...(input.
|
|
1509
|
-
|
|
1510
|
-
...(input.
|
|
1511
|
-
...(input.
|
|
1512
|
-
|
|
1513
|
-
...(input.OpsItemSNSTopicArn !== undefined &&
|
|
1514
|
-
input.OpsItemSNSTopicArn !== null && { OpsItemSNSTopicArn: input.OpsItemSNSTopicArn }),
|
|
1515
|
-
...(input.ResourceGroupName !== undefined &&
|
|
1516
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1517
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
1532
|
+
...(input.AutoConfigEnabled != null && { AutoConfigEnabled: input.AutoConfigEnabled }),
|
|
1533
|
+
...(input.AutoCreate != null && { AutoCreate: input.AutoCreate }),
|
|
1534
|
+
...(input.CWEMonitorEnabled != null && { CWEMonitorEnabled: input.CWEMonitorEnabled }),
|
|
1535
|
+
...(input.GroupingType != null && { GroupingType: input.GroupingType }),
|
|
1536
|
+
...(input.OpsCenterEnabled != null && { OpsCenterEnabled: input.OpsCenterEnabled }),
|
|
1537
|
+
...(input.OpsItemSNSTopicArn != null && { OpsItemSNSTopicArn: input.OpsItemSNSTopicArn }),
|
|
1538
|
+
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1539
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
1518
1540
|
};
|
|
1519
1541
|
};
|
|
1520
1542
|
const serializeAws_json1_1CreateComponentRequest = (input, context) => {
|
|
1521
1543
|
return {
|
|
1522
|
-
...(input.ComponentName
|
|
1523
|
-
...(input.ResourceGroupName
|
|
1524
|
-
|
|
1525
|
-
...(input.ResourceList !== undefined &&
|
|
1526
|
-
input.ResourceList !== null && { ResourceList: serializeAws_json1_1ResourceList(input.ResourceList, context) }),
|
|
1544
|
+
...(input.ComponentName != null && { ComponentName: input.ComponentName }),
|
|
1545
|
+
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1546
|
+
...(input.ResourceList != null && { ResourceList: serializeAws_json1_1ResourceList(input.ResourceList, context) }),
|
|
1527
1547
|
};
|
|
1528
1548
|
};
|
|
1529
1549
|
const serializeAws_json1_1CreateLogPatternRequest = (input, context) => {
|
|
1530
1550
|
return {
|
|
1531
|
-
...(input.Pattern
|
|
1532
|
-
...(input.PatternName
|
|
1533
|
-
...(input.PatternSetName
|
|
1534
|
-
|
|
1535
|
-
...(input.
|
|
1536
|
-
...(input.ResourceGroupName !== undefined &&
|
|
1537
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1551
|
+
...(input.Pattern != null && { Pattern: input.Pattern }),
|
|
1552
|
+
...(input.PatternName != null && { PatternName: input.PatternName }),
|
|
1553
|
+
...(input.PatternSetName != null && { PatternSetName: input.PatternSetName }),
|
|
1554
|
+
...(input.Rank != null && { Rank: input.Rank }),
|
|
1555
|
+
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1538
1556
|
};
|
|
1539
1557
|
};
|
|
1540
1558
|
const serializeAws_json1_1DeleteApplicationRequest = (input, context) => {
|
|
1541
1559
|
return {
|
|
1542
|
-
...(input.ResourceGroupName
|
|
1543
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1560
|
+
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1544
1561
|
};
|
|
1545
1562
|
};
|
|
1546
1563
|
const serializeAws_json1_1DeleteComponentRequest = (input, context) => {
|
|
1547
1564
|
return {
|
|
1548
|
-
...(input.ComponentName
|
|
1549
|
-
...(input.ResourceGroupName
|
|
1550
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1565
|
+
...(input.ComponentName != null && { ComponentName: input.ComponentName }),
|
|
1566
|
+
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1551
1567
|
};
|
|
1552
1568
|
};
|
|
1553
1569
|
const serializeAws_json1_1DeleteLogPatternRequest = (input, context) => {
|
|
1554
1570
|
return {
|
|
1555
|
-
...(input.PatternName
|
|
1556
|
-
...(input.PatternSetName
|
|
1557
|
-
|
|
1558
|
-
...(input.ResourceGroupName !== undefined &&
|
|
1559
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1571
|
+
...(input.PatternName != null && { PatternName: input.PatternName }),
|
|
1572
|
+
...(input.PatternSetName != null && { PatternSetName: input.PatternSetName }),
|
|
1573
|
+
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1560
1574
|
};
|
|
1561
1575
|
};
|
|
1562
1576
|
const serializeAws_json1_1DescribeApplicationRequest = (input, context) => {
|
|
1563
1577
|
return {
|
|
1564
|
-
...(input.ResourceGroupName
|
|
1565
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1578
|
+
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1566
1579
|
};
|
|
1567
1580
|
};
|
|
1568
1581
|
const serializeAws_json1_1DescribeComponentConfigurationRecommendationRequest = (input, context) => {
|
|
1569
1582
|
return {
|
|
1570
|
-
...(input.ComponentName
|
|
1571
|
-
...(input.ResourceGroupName
|
|
1572
|
-
|
|
1573
|
-
...(input.Tier !== undefined && input.Tier !== null && { Tier: input.Tier }),
|
|
1583
|
+
...(input.ComponentName != null && { ComponentName: input.ComponentName }),
|
|
1584
|
+
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1585
|
+
...(input.Tier != null && { Tier: input.Tier }),
|
|
1574
1586
|
};
|
|
1575
1587
|
};
|
|
1576
1588
|
const serializeAws_json1_1DescribeComponentConfigurationRequest = (input, context) => {
|
|
1577
1589
|
return {
|
|
1578
|
-
...(input.ComponentName
|
|
1579
|
-
...(input.ResourceGroupName
|
|
1580
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1590
|
+
...(input.ComponentName != null && { ComponentName: input.ComponentName }),
|
|
1591
|
+
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1581
1592
|
};
|
|
1582
1593
|
};
|
|
1583
1594
|
const serializeAws_json1_1DescribeComponentRequest = (input, context) => {
|
|
1584
1595
|
return {
|
|
1585
|
-
...(input.ComponentName
|
|
1586
|
-
...(input.ResourceGroupName
|
|
1587
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1596
|
+
...(input.ComponentName != null && { ComponentName: input.ComponentName }),
|
|
1597
|
+
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1588
1598
|
};
|
|
1589
1599
|
};
|
|
1590
1600
|
const serializeAws_json1_1DescribeLogPatternRequest = (input, context) => {
|
|
1591
1601
|
return {
|
|
1592
|
-
...(input.PatternName
|
|
1593
|
-
...(input.PatternSetName
|
|
1594
|
-
|
|
1595
|
-
...(input.ResourceGroupName !== undefined &&
|
|
1596
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1602
|
+
...(input.PatternName != null && { PatternName: input.PatternName }),
|
|
1603
|
+
...(input.PatternSetName != null && { PatternSetName: input.PatternSetName }),
|
|
1604
|
+
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1597
1605
|
};
|
|
1598
1606
|
};
|
|
1599
1607
|
const serializeAws_json1_1DescribeObservationRequest = (input, context) => {
|
|
1600
1608
|
return {
|
|
1601
|
-
...(input.ObservationId
|
|
1609
|
+
...(input.ObservationId != null && { ObservationId: input.ObservationId }),
|
|
1602
1610
|
};
|
|
1603
1611
|
};
|
|
1604
1612
|
const serializeAws_json1_1DescribeProblemObservationsRequest = (input, context) => {
|
|
1605
1613
|
return {
|
|
1606
|
-
...(input.ProblemId
|
|
1614
|
+
...(input.ProblemId != null && { ProblemId: input.ProblemId }),
|
|
1607
1615
|
};
|
|
1608
1616
|
};
|
|
1609
1617
|
const serializeAws_json1_1DescribeProblemRequest = (input, context) => {
|
|
1610
1618
|
return {
|
|
1611
|
-
...(input.ProblemId
|
|
1619
|
+
...(input.ProblemId != null && { ProblemId: input.ProblemId }),
|
|
1612
1620
|
};
|
|
1613
1621
|
};
|
|
1614
1622
|
const serializeAws_json1_1ListApplicationsRequest = (input, context) => {
|
|
1615
1623
|
return {
|
|
1616
|
-
...(input.MaxResults
|
|
1617
|
-
...(input.NextToken
|
|
1624
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1625
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1618
1626
|
};
|
|
1619
1627
|
};
|
|
1620
1628
|
const serializeAws_json1_1ListComponentsRequest = (input, context) => {
|
|
1621
1629
|
return {
|
|
1622
|
-
...(input.MaxResults
|
|
1623
|
-
...(input.NextToken
|
|
1624
|
-
...(input.ResourceGroupName
|
|
1625
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1630
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1631
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1632
|
+
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1626
1633
|
};
|
|
1627
1634
|
};
|
|
1628
1635
|
const serializeAws_json1_1ListConfigurationHistoryRequest = (input, context) => {
|
|
1629
1636
|
return {
|
|
1630
|
-
...(input.EndTime
|
|
1631
|
-
|
|
1632
|
-
...(input.
|
|
1633
|
-
...(input.
|
|
1634
|
-
...(input.
|
|
1635
|
-
...(input.
|
|
1636
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1637
|
-
...(input.StartTime !== undefined &&
|
|
1638
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
1637
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
1638
|
+
...(input.EventStatus != null && { EventStatus: input.EventStatus }),
|
|
1639
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1640
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1641
|
+
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1642
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
1639
1643
|
};
|
|
1640
1644
|
};
|
|
1641
1645
|
const serializeAws_json1_1ListLogPatternSetsRequest = (input, context) => {
|
|
1642
1646
|
return {
|
|
1643
|
-
...(input.MaxResults
|
|
1644
|
-
...(input.NextToken
|
|
1645
|
-
...(input.ResourceGroupName
|
|
1646
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1647
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1648
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1649
|
+
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1647
1650
|
};
|
|
1648
1651
|
};
|
|
1649
1652
|
const serializeAws_json1_1ListLogPatternsRequest = (input, context) => {
|
|
1650
1653
|
return {
|
|
1651
|
-
...(input.MaxResults
|
|
1652
|
-
...(input.NextToken
|
|
1653
|
-
...(input.PatternSetName
|
|
1654
|
-
|
|
1655
|
-
...(input.ResourceGroupName !== undefined &&
|
|
1656
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1654
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1655
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1656
|
+
...(input.PatternSetName != null && { PatternSetName: input.PatternSetName }),
|
|
1657
|
+
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1657
1658
|
};
|
|
1658
1659
|
};
|
|
1659
1660
|
const serializeAws_json1_1ListProblemsRequest = (input, context) => {
|
|
1660
1661
|
return {
|
|
1661
|
-
...(input.ComponentName
|
|
1662
|
-
...(input.EndTime
|
|
1663
|
-
|
|
1664
|
-
...(input.
|
|
1665
|
-
...(input.
|
|
1666
|
-
...(input.
|
|
1667
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1668
|
-
...(input.StartTime !== undefined &&
|
|
1669
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
1662
|
+
...(input.ComponentName != null && { ComponentName: input.ComponentName }),
|
|
1663
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
1664
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1665
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1666
|
+
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1667
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
1670
1668
|
};
|
|
1671
1669
|
};
|
|
1672
1670
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
1673
1671
|
return {
|
|
1674
|
-
...(input.ResourceARN
|
|
1672
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1675
1673
|
};
|
|
1676
1674
|
};
|
|
1677
1675
|
const serializeAws_json1_1ResourceList = (input, context) => {
|
|
@@ -1686,8 +1684,8 @@ const serializeAws_json1_1ResourceList = (input, context) => {
|
|
|
1686
1684
|
};
|
|
1687
1685
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
1688
1686
|
return {
|
|
1689
|
-
...(input.Key
|
|
1690
|
-
...(input.Value
|
|
1687
|
+
...(input.Key != null && { Key: input.Key }),
|
|
1688
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1691
1689
|
};
|
|
1692
1690
|
};
|
|
1693
1691
|
const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
@@ -1712,66 +1710,51 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
1712
1710
|
};
|
|
1713
1711
|
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
1714
1712
|
return {
|
|
1715
|
-
...(input.ResourceARN
|
|
1716
|
-
...(input.Tags
|
|
1713
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1714
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
1717
1715
|
};
|
|
1718
1716
|
};
|
|
1719
1717
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
1720
1718
|
return {
|
|
1721
|
-
...(input.ResourceARN
|
|
1722
|
-
...(input.TagKeys
|
|
1723
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
1719
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1720
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
1724
1721
|
};
|
|
1725
1722
|
};
|
|
1726
1723
|
const serializeAws_json1_1UpdateApplicationRequest = (input, context) => {
|
|
1727
1724
|
return {
|
|
1728
|
-
...(input.AutoConfigEnabled
|
|
1729
|
-
|
|
1730
|
-
...(input.
|
|
1731
|
-
|
|
1732
|
-
...(input.
|
|
1733
|
-
|
|
1734
|
-
...(input.OpsItemSNSTopicArn !== undefined &&
|
|
1735
|
-
input.OpsItemSNSTopicArn !== null && { OpsItemSNSTopicArn: input.OpsItemSNSTopicArn }),
|
|
1736
|
-
...(input.RemoveSNSTopic !== undefined &&
|
|
1737
|
-
input.RemoveSNSTopic !== null && { RemoveSNSTopic: input.RemoveSNSTopic }),
|
|
1738
|
-
...(input.ResourceGroupName !== undefined &&
|
|
1739
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1725
|
+
...(input.AutoConfigEnabled != null && { AutoConfigEnabled: input.AutoConfigEnabled }),
|
|
1726
|
+
...(input.CWEMonitorEnabled != null && { CWEMonitorEnabled: input.CWEMonitorEnabled }),
|
|
1727
|
+
...(input.OpsCenterEnabled != null && { OpsCenterEnabled: input.OpsCenterEnabled }),
|
|
1728
|
+
...(input.OpsItemSNSTopicArn != null && { OpsItemSNSTopicArn: input.OpsItemSNSTopicArn }),
|
|
1729
|
+
...(input.RemoveSNSTopic != null && { RemoveSNSTopic: input.RemoveSNSTopic }),
|
|
1730
|
+
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1740
1731
|
};
|
|
1741
1732
|
};
|
|
1742
1733
|
const serializeAws_json1_1UpdateComponentConfigurationRequest = (input, context) => {
|
|
1743
1734
|
return {
|
|
1744
|
-
...(input.AutoConfigEnabled
|
|
1745
|
-
|
|
1746
|
-
...(input.
|
|
1747
|
-
|
|
1748
|
-
...(input.
|
|
1749
|
-
...(input.
|
|
1750
|
-
...(input.ResourceGroupName !== undefined &&
|
|
1751
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1752
|
-
...(input.Tier !== undefined && input.Tier !== null && { Tier: input.Tier }),
|
|
1735
|
+
...(input.AutoConfigEnabled != null && { AutoConfigEnabled: input.AutoConfigEnabled }),
|
|
1736
|
+
...(input.ComponentConfiguration != null && { ComponentConfiguration: input.ComponentConfiguration }),
|
|
1737
|
+
...(input.ComponentName != null && { ComponentName: input.ComponentName }),
|
|
1738
|
+
...(input.Monitor != null && { Monitor: input.Monitor }),
|
|
1739
|
+
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1740
|
+
...(input.Tier != null && { Tier: input.Tier }),
|
|
1753
1741
|
};
|
|
1754
1742
|
};
|
|
1755
1743
|
const serializeAws_json1_1UpdateComponentRequest = (input, context) => {
|
|
1756
1744
|
return {
|
|
1757
|
-
...(input.ComponentName
|
|
1758
|
-
...(input.NewComponentName
|
|
1759
|
-
|
|
1760
|
-
...(input.
|
|
1761
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1762
|
-
...(input.ResourceList !== undefined &&
|
|
1763
|
-
input.ResourceList !== null && { ResourceList: serializeAws_json1_1ResourceList(input.ResourceList, context) }),
|
|
1745
|
+
...(input.ComponentName != null && { ComponentName: input.ComponentName }),
|
|
1746
|
+
...(input.NewComponentName != null && { NewComponentName: input.NewComponentName }),
|
|
1747
|
+
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1748
|
+
...(input.ResourceList != null && { ResourceList: serializeAws_json1_1ResourceList(input.ResourceList, context) }),
|
|
1764
1749
|
};
|
|
1765
1750
|
};
|
|
1766
1751
|
const serializeAws_json1_1UpdateLogPatternRequest = (input, context) => {
|
|
1767
1752
|
return {
|
|
1768
|
-
...(input.Pattern
|
|
1769
|
-
...(input.PatternName
|
|
1770
|
-
...(input.PatternSetName
|
|
1771
|
-
|
|
1772
|
-
...(input.
|
|
1773
|
-
...(input.ResourceGroupName !== undefined &&
|
|
1774
|
-
input.ResourceGroupName !== null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1753
|
+
...(input.Pattern != null && { Pattern: input.Pattern }),
|
|
1754
|
+
...(input.PatternName != null && { PatternName: input.PatternName }),
|
|
1755
|
+
...(input.PatternSetName != null && { PatternSetName: input.PatternSetName }),
|
|
1756
|
+
...(input.Rank != null && { Rank: input.Rank }),
|
|
1757
|
+
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1775
1758
|
};
|
|
1776
1759
|
};
|
|
1777
1760
|
const deserializeAws_json1_1AccessDeniedException = (output, context) => {
|
|
@@ -1783,7 +1766,7 @@ const deserializeAws_json1_1ApplicationComponent = (output, context) => {
|
|
|
1783
1766
|
return {
|
|
1784
1767
|
ComponentName: (0, smithy_client_1.expectString)(output.ComponentName),
|
|
1785
1768
|
ComponentRemarks: (0, smithy_client_1.expectString)(output.ComponentRemarks),
|
|
1786
|
-
DetectedWorkload: output.DetectedWorkload
|
|
1769
|
+
DetectedWorkload: output.DetectedWorkload != null
|
|
1787
1770
|
? deserializeAws_json1_1DetectedWorkload(output.DetectedWorkload, context)
|
|
1788
1771
|
: undefined,
|
|
1789
1772
|
Monitor: (0, smithy_client_1.expectBoolean)(output.Monitor),
|
|
@@ -1837,9 +1820,7 @@ const deserializeAws_json1_1ConfigurationEvent = (output, context) => {
|
|
|
1837
1820
|
EventResourceName: (0, smithy_client_1.expectString)(output.EventResourceName),
|
|
1838
1821
|
EventResourceType: (0, smithy_client_1.expectString)(output.EventResourceType),
|
|
1839
1822
|
EventStatus: (0, smithy_client_1.expectString)(output.EventStatus),
|
|
1840
|
-
EventTime: output.EventTime
|
|
1841
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventTime)))
|
|
1842
|
-
: undefined,
|
|
1823
|
+
EventTime: output.EventTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventTime))) : undefined,
|
|
1843
1824
|
MonitoredResourceARN: (0, smithy_client_1.expectString)(output.MonitoredResourceARN),
|
|
1844
1825
|
};
|
|
1845
1826
|
};
|
|
@@ -1856,7 +1837,7 @@ const deserializeAws_json1_1ConfigurationEventList = (output, context) => {
|
|
|
1856
1837
|
};
|
|
1857
1838
|
const deserializeAws_json1_1CreateApplicationResponse = (output, context) => {
|
|
1858
1839
|
return {
|
|
1859
|
-
ApplicationInfo: output.ApplicationInfo
|
|
1840
|
+
ApplicationInfo: output.ApplicationInfo != null
|
|
1860
1841
|
? deserializeAws_json1_1ApplicationInfo(output.ApplicationInfo, context)
|
|
1861
1842
|
: undefined,
|
|
1862
1843
|
};
|
|
@@ -1866,9 +1847,7 @@ const deserializeAws_json1_1CreateComponentResponse = (output, context) => {
|
|
|
1866
1847
|
};
|
|
1867
1848
|
const deserializeAws_json1_1CreateLogPatternResponse = (output, context) => {
|
|
1868
1849
|
return {
|
|
1869
|
-
LogPattern: output.LogPattern
|
|
1870
|
-
? deserializeAws_json1_1LogPattern(output.LogPattern, context)
|
|
1871
|
-
: undefined,
|
|
1850
|
+
LogPattern: output.LogPattern != null ? deserializeAws_json1_1LogPattern(output.LogPattern, context) : undefined,
|
|
1872
1851
|
ResourceGroupName: (0, smithy_client_1.expectString)(output.ResourceGroupName),
|
|
1873
1852
|
};
|
|
1874
1853
|
};
|
|
@@ -1883,7 +1862,7 @@ const deserializeAws_json1_1DeleteLogPatternResponse = (output, context) => {
|
|
|
1883
1862
|
};
|
|
1884
1863
|
const deserializeAws_json1_1DescribeApplicationResponse = (output, context) => {
|
|
1885
1864
|
return {
|
|
1886
|
-
ApplicationInfo: output.ApplicationInfo
|
|
1865
|
+
ApplicationInfo: output.ApplicationInfo != null
|
|
1887
1866
|
? deserializeAws_json1_1ApplicationInfo(output.ApplicationInfo, context)
|
|
1888
1867
|
: undefined,
|
|
1889
1868
|
};
|
|
@@ -1902,41 +1881,33 @@ const deserializeAws_json1_1DescribeComponentConfigurationResponse = (output, co
|
|
|
1902
1881
|
};
|
|
1903
1882
|
const deserializeAws_json1_1DescribeComponentResponse = (output, context) => {
|
|
1904
1883
|
return {
|
|
1905
|
-
ApplicationComponent: output.ApplicationComponent
|
|
1884
|
+
ApplicationComponent: output.ApplicationComponent != null
|
|
1906
1885
|
? deserializeAws_json1_1ApplicationComponent(output.ApplicationComponent, context)
|
|
1907
1886
|
: undefined,
|
|
1908
|
-
ResourceList: output.ResourceList
|
|
1909
|
-
? deserializeAws_json1_1ResourceList(output.ResourceList, context)
|
|
1910
|
-
: undefined,
|
|
1887
|
+
ResourceList: output.ResourceList != null ? deserializeAws_json1_1ResourceList(output.ResourceList, context) : undefined,
|
|
1911
1888
|
};
|
|
1912
1889
|
};
|
|
1913
1890
|
const deserializeAws_json1_1DescribeLogPatternResponse = (output, context) => {
|
|
1914
1891
|
return {
|
|
1915
|
-
LogPattern: output.LogPattern
|
|
1916
|
-
? deserializeAws_json1_1LogPattern(output.LogPattern, context)
|
|
1917
|
-
: undefined,
|
|
1892
|
+
LogPattern: output.LogPattern != null ? deserializeAws_json1_1LogPattern(output.LogPattern, context) : undefined,
|
|
1918
1893
|
ResourceGroupName: (0, smithy_client_1.expectString)(output.ResourceGroupName),
|
|
1919
1894
|
};
|
|
1920
1895
|
};
|
|
1921
1896
|
const deserializeAws_json1_1DescribeObservationResponse = (output, context) => {
|
|
1922
1897
|
return {
|
|
1923
|
-
Observation: output.Observation
|
|
1924
|
-
? deserializeAws_json1_1Observation(output.Observation, context)
|
|
1925
|
-
: undefined,
|
|
1898
|
+
Observation: output.Observation != null ? deserializeAws_json1_1Observation(output.Observation, context) : undefined,
|
|
1926
1899
|
};
|
|
1927
1900
|
};
|
|
1928
1901
|
const deserializeAws_json1_1DescribeProblemObservationsResponse = (output, context) => {
|
|
1929
1902
|
return {
|
|
1930
|
-
RelatedObservations: output.RelatedObservations
|
|
1903
|
+
RelatedObservations: output.RelatedObservations != null
|
|
1931
1904
|
? deserializeAws_json1_1RelatedObservations(output.RelatedObservations, context)
|
|
1932
1905
|
: undefined,
|
|
1933
1906
|
};
|
|
1934
1907
|
};
|
|
1935
1908
|
const deserializeAws_json1_1DescribeProblemResponse = (output, context) => {
|
|
1936
1909
|
return {
|
|
1937
|
-
Problem: output.Problem
|
|
1938
|
-
? deserializeAws_json1_1Problem(output.Problem, context)
|
|
1939
|
-
: undefined,
|
|
1910
|
+
Problem: output.Problem != null ? deserializeAws_json1_1Problem(output.Problem, context) : undefined,
|
|
1940
1911
|
};
|
|
1941
1912
|
};
|
|
1942
1913
|
const deserializeAws_json1_1DetectedWorkload = (output, context) => {
|
|
@@ -1968,7 +1939,7 @@ const deserializeAws_json1_1InternalServerException = (output, context) => {
|
|
|
1968
1939
|
};
|
|
1969
1940
|
const deserializeAws_json1_1ListApplicationsResponse = (output, context) => {
|
|
1970
1941
|
return {
|
|
1971
|
-
ApplicationInfoList: output.ApplicationInfoList
|
|
1942
|
+
ApplicationInfoList: output.ApplicationInfoList != null
|
|
1972
1943
|
? deserializeAws_json1_1ApplicationInfoList(output.ApplicationInfoList, context)
|
|
1973
1944
|
: undefined,
|
|
1974
1945
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -1976,7 +1947,7 @@ const deserializeAws_json1_1ListApplicationsResponse = (output, context) => {
|
|
|
1976
1947
|
};
|
|
1977
1948
|
const deserializeAws_json1_1ListComponentsResponse = (output, context) => {
|
|
1978
1949
|
return {
|
|
1979
|
-
ApplicationComponentList: output.ApplicationComponentList
|
|
1950
|
+
ApplicationComponentList: output.ApplicationComponentList != null
|
|
1980
1951
|
? deserializeAws_json1_1ApplicationComponentList(output.ApplicationComponentList, context)
|
|
1981
1952
|
: undefined,
|
|
1982
1953
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -1984,15 +1955,13 @@ const deserializeAws_json1_1ListComponentsResponse = (output, context) => {
|
|
|
1984
1955
|
};
|
|
1985
1956
|
const deserializeAws_json1_1ListConfigurationHistoryResponse = (output, context) => {
|
|
1986
1957
|
return {
|
|
1987
|
-
EventList: output.EventList
|
|
1988
|
-
? deserializeAws_json1_1ConfigurationEventList(output.EventList, context)
|
|
1989
|
-
: undefined,
|
|
1958
|
+
EventList: output.EventList != null ? deserializeAws_json1_1ConfigurationEventList(output.EventList, context) : undefined,
|
|
1990
1959
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1991
1960
|
};
|
|
1992
1961
|
};
|
|
1993
1962
|
const deserializeAws_json1_1ListLogPatternSetsResponse = (output, context) => {
|
|
1994
1963
|
return {
|
|
1995
|
-
LogPatternSets: output.LogPatternSets
|
|
1964
|
+
LogPatternSets: output.LogPatternSets != null
|
|
1996
1965
|
? deserializeAws_json1_1LogPatternSetList(output.LogPatternSets, context)
|
|
1997
1966
|
: undefined,
|
|
1998
1967
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -2001,9 +1970,7 @@ const deserializeAws_json1_1ListLogPatternSetsResponse = (output, context) => {
|
|
|
2001
1970
|
};
|
|
2002
1971
|
const deserializeAws_json1_1ListLogPatternsResponse = (output, context) => {
|
|
2003
1972
|
return {
|
|
2004
|
-
LogPatterns: output.LogPatterns
|
|
2005
|
-
? deserializeAws_json1_1LogPatternList(output.LogPatterns, context)
|
|
2006
|
-
: undefined,
|
|
1973
|
+
LogPatterns: output.LogPatterns != null ? deserializeAws_json1_1LogPatternList(output.LogPatterns, context) : undefined,
|
|
2007
1974
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2008
1975
|
ResourceGroupName: (0, smithy_client_1.expectString)(output.ResourceGroupName),
|
|
2009
1976
|
};
|
|
@@ -2011,17 +1978,13 @@ const deserializeAws_json1_1ListLogPatternsResponse = (output, context) => {
|
|
|
2011
1978
|
const deserializeAws_json1_1ListProblemsResponse = (output, context) => {
|
|
2012
1979
|
return {
|
|
2013
1980
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2014
|
-
ProblemList: output.ProblemList
|
|
2015
|
-
? deserializeAws_json1_1ProblemList(output.ProblemList, context)
|
|
2016
|
-
: undefined,
|
|
1981
|
+
ProblemList: output.ProblemList != null ? deserializeAws_json1_1ProblemList(output.ProblemList, context) : undefined,
|
|
2017
1982
|
ResourceGroupName: (0, smithy_client_1.expectString)(output.ResourceGroupName),
|
|
2018
1983
|
};
|
|
2019
1984
|
};
|
|
2020
1985
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
2021
1986
|
return {
|
|
2022
|
-
Tags: output.Tags
|
|
2023
|
-
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
2024
|
-
: undefined,
|
|
1987
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
2025
1988
|
};
|
|
2026
1989
|
};
|
|
2027
1990
|
const deserializeAws_json1_1LogPattern = (output, context) => {
|
|
@@ -2069,18 +2032,14 @@ const deserializeAws_json1_1Observation = (output, context) => {
|
|
|
2069
2032
|
EbsRequestId: (0, smithy_client_1.expectString)(output.EbsRequestId),
|
|
2070
2033
|
EbsResult: (0, smithy_client_1.expectString)(output.EbsResult),
|
|
2071
2034
|
Ec2State: (0, smithy_client_1.expectString)(output.Ec2State),
|
|
2072
|
-
EndTime: output.EndTime
|
|
2073
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
|
|
2074
|
-
: undefined,
|
|
2035
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
2075
2036
|
HealthEventArn: (0, smithy_client_1.expectString)(output.HealthEventArn),
|
|
2076
2037
|
HealthEventDescription: (0, smithy_client_1.expectString)(output.HealthEventDescription),
|
|
2077
2038
|
HealthEventTypeCategory: (0, smithy_client_1.expectString)(output.HealthEventTypeCategory),
|
|
2078
2039
|
HealthEventTypeCode: (0, smithy_client_1.expectString)(output.HealthEventTypeCode),
|
|
2079
2040
|
HealthService: (0, smithy_client_1.expectString)(output.HealthService),
|
|
2080
2041
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
2081
|
-
LineTime: output.LineTime
|
|
2082
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LineTime)))
|
|
2083
|
-
: undefined,
|
|
2042
|
+
LineTime: output.LineTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LineTime))) : undefined,
|
|
2084
2043
|
LogFilter: (0, smithy_client_1.expectString)(output.LogFilter),
|
|
2085
2044
|
LogGroup: (0, smithy_client_1.expectString)(output.LogGroup),
|
|
2086
2045
|
LogText: (0, smithy_client_1.expectString)(output.LogText),
|
|
@@ -2091,9 +2050,7 @@ const deserializeAws_json1_1Observation = (output, context) => {
|
|
|
2091
2050
|
S3EventName: (0, smithy_client_1.expectString)(output.S3EventName),
|
|
2092
2051
|
SourceARN: (0, smithy_client_1.expectString)(output.SourceARN),
|
|
2093
2052
|
SourceType: (0, smithy_client_1.expectString)(output.SourceType),
|
|
2094
|
-
StartTime: output.StartTime
|
|
2095
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
2096
|
-
: undefined,
|
|
2053
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
2097
2054
|
StatesArn: (0, smithy_client_1.expectString)(output.StatesArn),
|
|
2098
2055
|
StatesExecutionArn: (0, smithy_client_1.expectString)(output.StatesExecutionArn),
|
|
2099
2056
|
StatesInput: (0, smithy_client_1.expectString)(output.StatesInput),
|
|
@@ -2123,23 +2080,17 @@ const deserializeAws_json1_1ObservationList = (output, context) => {
|
|
|
2123
2080
|
const deserializeAws_json1_1Problem = (output, context) => {
|
|
2124
2081
|
return {
|
|
2125
2082
|
AffectedResource: (0, smithy_client_1.expectString)(output.AffectedResource),
|
|
2126
|
-
EndTime: output.EndTime
|
|
2127
|
-
|
|
2128
|
-
: undefined,
|
|
2129
|
-
Feedback: output.Feedback !== undefined && output.Feedback !== null
|
|
2130
|
-
? deserializeAws_json1_1Feedback(output.Feedback, context)
|
|
2131
|
-
: undefined,
|
|
2083
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
2084
|
+
Feedback: output.Feedback != null ? deserializeAws_json1_1Feedback(output.Feedback, context) : undefined,
|
|
2132
2085
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
2133
2086
|
Insights: (0, smithy_client_1.expectString)(output.Insights),
|
|
2134
|
-
LastRecurrenceTime: output.LastRecurrenceTime
|
|
2087
|
+
LastRecurrenceTime: output.LastRecurrenceTime != null
|
|
2135
2088
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastRecurrenceTime)))
|
|
2136
2089
|
: undefined,
|
|
2137
2090
|
RecurringCount: (0, smithy_client_1.expectLong)(output.RecurringCount),
|
|
2138
2091
|
ResourceGroupName: (0, smithy_client_1.expectString)(output.ResourceGroupName),
|
|
2139
2092
|
SeverityLevel: (0, smithy_client_1.expectString)(output.SeverityLevel),
|
|
2140
|
-
StartTime: output.StartTime
|
|
2141
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
2142
|
-
: undefined,
|
|
2093
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
2143
2094
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2144
2095
|
Title: (0, smithy_client_1.expectString)(output.Title),
|
|
2145
2096
|
};
|
|
@@ -2157,7 +2108,7 @@ const deserializeAws_json1_1ProblemList = (output, context) => {
|
|
|
2157
2108
|
};
|
|
2158
2109
|
const deserializeAws_json1_1RelatedObservations = (output, context) => {
|
|
2159
2110
|
return {
|
|
2160
|
-
ObservationList: output.ObservationList
|
|
2111
|
+
ObservationList: output.ObservationList != null
|
|
2161
2112
|
? deserializeAws_json1_1ObservationList(output.ObservationList, context)
|
|
2162
2113
|
: undefined,
|
|
2163
2114
|
};
|
|
@@ -2219,7 +2170,7 @@ const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
|
2219
2170
|
};
|
|
2220
2171
|
const deserializeAws_json1_1UpdateApplicationResponse = (output, context) => {
|
|
2221
2172
|
return {
|
|
2222
|
-
ApplicationInfo: output.ApplicationInfo
|
|
2173
|
+
ApplicationInfo: output.ApplicationInfo != null
|
|
2223
2174
|
? deserializeAws_json1_1ApplicationInfo(output.ApplicationInfo, context)
|
|
2224
2175
|
: undefined,
|
|
2225
2176
|
};
|
|
@@ -2232,9 +2183,7 @@ const deserializeAws_json1_1UpdateComponentResponse = (output, context) => {
|
|
|
2232
2183
|
};
|
|
2233
2184
|
const deserializeAws_json1_1UpdateLogPatternResponse = (output, context) => {
|
|
2234
2185
|
return {
|
|
2235
|
-
LogPattern: output.LogPattern
|
|
2236
|
-
? deserializeAws_json1_1LogPattern(output.LogPattern, context)
|
|
2237
|
-
: undefined,
|
|
2186
|
+
LogPattern: output.LogPattern != null ? deserializeAws_json1_1LogPattern(output.LogPattern, context) : undefined,
|
|
2238
2187
|
ResourceGroupName: (0, smithy_client_1.expectString)(output.ResourceGroupName),
|
|
2239
2188
|
};
|
|
2240
2189
|
};
|
|
@@ -2316,5 +2265,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2316
2265
|
if (data["__type"] !== undefined) {
|
|
2317
2266
|
return sanitizeErrorCode(data["__type"]);
|
|
2318
2267
|
}
|
|
2319
|
-
return "";
|
|
2320
2268
|
};
|