@aws-sdk/client-codeguruprofiler 3.310.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_restJson1.js +259 -553
- package/dist-es/protocols/Aws_restJson1.js +218 -512
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { CodeGuruProfilerServiceException as __BaseException } from "../models/CodeGuruProfilerServiceException";
|
|
5
5
|
import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
@@ -12,9 +12,9 @@ export const se_AddNotificationChannelsCommand = async (input, context) => {
|
|
|
12
12
|
"/profilingGroups/{profilingGroupName}/notificationConfiguration";
|
|
13
13
|
resolvedPath = __resolvedPath(resolvedPath, input, "profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
|
|
14
14
|
let body;
|
|
15
|
-
body = JSON.stringify({
|
|
16
|
-
|
|
17
|
-
});
|
|
15
|
+
body = JSON.stringify(take(input, {
|
|
16
|
+
channels: (_) => _json(_),
|
|
17
|
+
}));
|
|
18
18
|
return new __HttpRequest({
|
|
19
19
|
protocol,
|
|
20
20
|
hostname,
|
|
@@ -43,9 +43,9 @@ export const se_BatchGetFrameMetricDataCommand = async (input, context) => {
|
|
|
43
43
|
targetResolution: [, input.targetResolution],
|
|
44
44
|
});
|
|
45
45
|
let body;
|
|
46
|
-
body = JSON.stringify({
|
|
47
|
-
|
|
48
|
-
});
|
|
46
|
+
body = JSON.stringify(take(input, {
|
|
47
|
+
frameMetrics: (_) => _json(_),
|
|
48
|
+
}));
|
|
49
49
|
return new __HttpRequest({
|
|
50
50
|
protocol,
|
|
51
51
|
hostname,
|
|
@@ -66,10 +66,10 @@ export const se_ConfigureAgentCommand = async (input, context) => {
|
|
|
66
66
|
"/profilingGroups/{profilingGroupName}/configureAgent";
|
|
67
67
|
resolvedPath = __resolvedPath(resolvedPath, input, "profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
|
|
68
68
|
let body;
|
|
69
|
-
body = JSON.stringify({
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
});
|
|
69
|
+
body = JSON.stringify(take(input, {
|
|
70
|
+
fleetInstanceId: [],
|
|
71
|
+
metadata: (_) => _json(_),
|
|
72
|
+
}));
|
|
73
73
|
return new __HttpRequest({
|
|
74
74
|
protocol,
|
|
75
75
|
hostname,
|
|
@@ -90,14 +90,12 @@ export const se_CreateProfilingGroupCommand = async (input, context) => {
|
|
|
90
90
|
clientToken: [, __expectNonNull(input.clientToken, `clientToken`)],
|
|
91
91
|
});
|
|
92
92
|
let body;
|
|
93
|
-
body = JSON.stringify({
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
...(input.tags != null && { tags: se_TagsMap(input.tags, context) }),
|
|
100
|
-
});
|
|
93
|
+
body = JSON.stringify(take(input, {
|
|
94
|
+
agentOrchestrationConfig: (_) => _json(_),
|
|
95
|
+
computePlatform: [],
|
|
96
|
+
profilingGroupName: [],
|
|
97
|
+
tags: (_) => _json(_),
|
|
98
|
+
}));
|
|
101
99
|
return new __HttpRequest({
|
|
102
100
|
protocol,
|
|
103
101
|
hostname,
|
|
@@ -390,10 +388,10 @@ export const se_PutPermissionCommand = async (input, context) => {
|
|
|
390
388
|
resolvedPath = __resolvedPath(resolvedPath, input, "profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
|
|
391
389
|
resolvedPath = __resolvedPath(resolvedPath, input, "actionGroup", () => input.actionGroup, "{actionGroup}", false);
|
|
392
390
|
let body;
|
|
393
|
-
body = JSON.stringify({
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
});
|
|
391
|
+
body = JSON.stringify(take(input, {
|
|
392
|
+
principals: (_) => _json(_),
|
|
393
|
+
revisionId: [],
|
|
394
|
+
}));
|
|
397
395
|
return new __HttpRequest({
|
|
398
396
|
protocol,
|
|
399
397
|
hostname,
|
|
@@ -454,10 +452,10 @@ export const se_SubmitFeedbackCommand = async (input, context) => {
|
|
|
454
452
|
resolvedPath = __resolvedPath(resolvedPath, input, "profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
|
|
455
453
|
resolvedPath = __resolvedPath(resolvedPath, input, "anomalyInstanceId", () => input.anomalyInstanceId, "{anomalyInstanceId}", false);
|
|
456
454
|
let body;
|
|
457
|
-
body = JSON.stringify({
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
});
|
|
455
|
+
body = JSON.stringify(take(input, {
|
|
456
|
+
comment: [],
|
|
457
|
+
type: [],
|
|
458
|
+
}));
|
|
461
459
|
return new __HttpRequest({
|
|
462
460
|
protocol,
|
|
463
461
|
hostname,
|
|
@@ -476,9 +474,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
476
474
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
477
475
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
478
476
|
let body;
|
|
479
|
-
body = JSON.stringify({
|
|
480
|
-
|
|
481
|
-
});
|
|
477
|
+
body = JSON.stringify(take(input, {
|
|
478
|
+
tags: (_) => _json(_),
|
|
479
|
+
}));
|
|
482
480
|
return new __HttpRequest({
|
|
483
481
|
protocol,
|
|
484
482
|
hostname,
|
|
@@ -520,11 +518,9 @@ export const se_UpdateProfilingGroupCommand = async (input, context) => {
|
|
|
520
518
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profilingGroups/{profilingGroupName}";
|
|
521
519
|
resolvedPath = __resolvedPath(resolvedPath, input, "profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
|
|
522
520
|
let body;
|
|
523
|
-
body = JSON.stringify({
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
}),
|
|
527
|
-
});
|
|
521
|
+
body = JSON.stringify(take(input, {
|
|
522
|
+
agentOrchestrationConfig: (_) => _json(_),
|
|
523
|
+
}));
|
|
528
524
|
return new __HttpRequest({
|
|
529
525
|
protocol,
|
|
530
526
|
hostname,
|
|
@@ -543,9 +539,10 @@ export const de_AddNotificationChannelsCommand = async (output, context) => {
|
|
|
543
539
|
$metadata: deserializeMetadata(output),
|
|
544
540
|
});
|
|
545
541
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
}
|
|
542
|
+
const doc = take(data, {
|
|
543
|
+
notificationConfiguration: _json,
|
|
544
|
+
});
|
|
545
|
+
Object.assign(contents, doc);
|
|
549
546
|
return contents;
|
|
550
547
|
};
|
|
551
548
|
const de_AddNotificationChannelsCommandError = async (output, context) => {
|
|
@@ -575,10 +572,9 @@ const de_AddNotificationChannelsCommandError = async (output, context) => {
|
|
|
575
572
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
576
573
|
default:
|
|
577
574
|
const parsedBody = parsedOutput.body;
|
|
578
|
-
throwDefaultError({
|
|
575
|
+
return throwDefaultError({
|
|
579
576
|
output,
|
|
580
577
|
parsedBody,
|
|
581
|
-
exceptionCtor: __BaseException,
|
|
582
578
|
errorCode,
|
|
583
579
|
});
|
|
584
580
|
}
|
|
@@ -591,24 +587,15 @@ export const de_BatchGetFrameMetricDataCommand = async (output, context) => {
|
|
|
591
587
|
$metadata: deserializeMetadata(output),
|
|
592
588
|
});
|
|
593
589
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
if (data.resolution != null) {
|
|
604
|
-
contents.resolution = __expectString(data.resolution);
|
|
605
|
-
}
|
|
606
|
-
if (data.startTime != null) {
|
|
607
|
-
contents.startTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.startTime));
|
|
608
|
-
}
|
|
609
|
-
if (data.unprocessedEndTimes != null) {
|
|
610
|
-
contents.unprocessedEndTimes = de_UnprocessedEndTimeMap(data.unprocessedEndTimes, context);
|
|
611
|
-
}
|
|
590
|
+
const doc = take(data, {
|
|
591
|
+
endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
592
|
+
endTimes: (_) => de_ListOfTimestamps(_, context),
|
|
593
|
+
frameMetricData: (_) => de_FrameMetricData(_, context),
|
|
594
|
+
resolution: __expectString,
|
|
595
|
+
startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
596
|
+
unprocessedEndTimes: (_) => de_UnprocessedEndTimeMap(_, context),
|
|
597
|
+
});
|
|
598
|
+
Object.assign(contents, doc);
|
|
612
599
|
return contents;
|
|
613
600
|
};
|
|
614
601
|
const de_BatchGetFrameMetricDataCommandError = async (output, context) => {
|
|
@@ -632,10 +619,9 @@ const de_BatchGetFrameMetricDataCommandError = async (output, context) => {
|
|
|
632
619
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
633
620
|
default:
|
|
634
621
|
const parsedBody = parsedOutput.body;
|
|
635
|
-
throwDefaultError({
|
|
622
|
+
return throwDefaultError({
|
|
636
623
|
output,
|
|
637
624
|
parsedBody,
|
|
638
|
-
exceptionCtor: __BaseException,
|
|
639
625
|
errorCode,
|
|
640
626
|
});
|
|
641
627
|
}
|
|
@@ -648,7 +634,7 @@ export const de_ConfigureAgentCommand = async (output, context) => {
|
|
|
648
634
|
$metadata: deserializeMetadata(output),
|
|
649
635
|
});
|
|
650
636
|
const data = __expectObject(await parseBody(output.body, context));
|
|
651
|
-
contents.configuration =
|
|
637
|
+
contents.configuration = _json(data);
|
|
652
638
|
return contents;
|
|
653
639
|
};
|
|
654
640
|
const de_ConfigureAgentCommandError = async (output, context) => {
|
|
@@ -672,10 +658,9 @@ const de_ConfigureAgentCommandError = async (output, context) => {
|
|
|
672
658
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
673
659
|
default:
|
|
674
660
|
const parsedBody = parsedOutput.body;
|
|
675
|
-
throwDefaultError({
|
|
661
|
+
return throwDefaultError({
|
|
676
662
|
output,
|
|
677
663
|
parsedBody,
|
|
678
|
-
exceptionCtor: __BaseException,
|
|
679
664
|
errorCode,
|
|
680
665
|
});
|
|
681
666
|
}
|
|
@@ -715,10 +700,9 @@ const de_CreateProfilingGroupCommandError = async (output, context) => {
|
|
|
715
700
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
716
701
|
default:
|
|
717
702
|
const parsedBody = parsedOutput.body;
|
|
718
|
-
throwDefaultError({
|
|
703
|
+
return throwDefaultError({
|
|
719
704
|
output,
|
|
720
705
|
parsedBody,
|
|
721
|
-
exceptionCtor: __BaseException,
|
|
722
706
|
errorCode,
|
|
723
707
|
});
|
|
724
708
|
}
|
|
@@ -757,10 +741,9 @@ const de_DeleteProfilingGroupCommandError = async (output, context) => {
|
|
|
757
741
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
758
742
|
default:
|
|
759
743
|
const parsedBody = parsedOutput.body;
|
|
760
|
-
throwDefaultError({
|
|
744
|
+
return throwDefaultError({
|
|
761
745
|
output,
|
|
762
746
|
parsedBody,
|
|
763
|
-
exceptionCtor: __BaseException,
|
|
764
747
|
errorCode,
|
|
765
748
|
});
|
|
766
749
|
}
|
|
@@ -797,10 +780,9 @@ const de_DescribeProfilingGroupCommandError = async (output, context) => {
|
|
|
797
780
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
798
781
|
default:
|
|
799
782
|
const parsedBody = parsedOutput.body;
|
|
800
|
-
throwDefaultError({
|
|
783
|
+
return throwDefaultError({
|
|
801
784
|
output,
|
|
802
785
|
parsedBody,
|
|
803
|
-
exceptionCtor: __BaseException,
|
|
804
786
|
errorCode,
|
|
805
787
|
});
|
|
806
788
|
}
|
|
@@ -813,12 +795,11 @@ export const de_GetFindingsReportAccountSummaryCommand = async (output, context)
|
|
|
813
795
|
$metadata: deserializeMetadata(output),
|
|
814
796
|
});
|
|
815
797
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
}
|
|
798
|
+
const doc = take(data, {
|
|
799
|
+
nextToken: __expectString,
|
|
800
|
+
reportSummaries: (_) => de_FindingsReportSummaries(_, context),
|
|
801
|
+
});
|
|
802
|
+
Object.assign(contents, doc);
|
|
822
803
|
return contents;
|
|
823
804
|
};
|
|
824
805
|
const de_GetFindingsReportAccountSummaryCommandError = async (output, context) => {
|
|
@@ -839,10 +820,9 @@ const de_GetFindingsReportAccountSummaryCommandError = async (output, context) =
|
|
|
839
820
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
840
821
|
default:
|
|
841
822
|
const parsedBody = parsedOutput.body;
|
|
842
|
-
throwDefaultError({
|
|
823
|
+
return throwDefaultError({
|
|
843
824
|
output,
|
|
844
825
|
parsedBody,
|
|
845
|
-
exceptionCtor: __BaseException,
|
|
846
826
|
errorCode,
|
|
847
827
|
});
|
|
848
828
|
}
|
|
@@ -855,9 +835,10 @@ export const de_GetNotificationConfigurationCommand = async (output, context) =>
|
|
|
855
835
|
$metadata: deserializeMetadata(output),
|
|
856
836
|
});
|
|
857
837
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
}
|
|
838
|
+
const doc = take(data, {
|
|
839
|
+
notificationConfiguration: _json,
|
|
840
|
+
});
|
|
841
|
+
Object.assign(contents, doc);
|
|
861
842
|
return contents;
|
|
862
843
|
};
|
|
863
844
|
const de_GetNotificationConfigurationCommandError = async (output, context) => {
|
|
@@ -881,10 +862,9 @@ const de_GetNotificationConfigurationCommandError = async (output, context) => {
|
|
|
881
862
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
882
863
|
default:
|
|
883
864
|
const parsedBody = parsedOutput.body;
|
|
884
|
-
throwDefaultError({
|
|
865
|
+
return throwDefaultError({
|
|
885
866
|
output,
|
|
886
867
|
parsedBody,
|
|
887
|
-
exceptionCtor: __BaseException,
|
|
888
868
|
errorCode,
|
|
889
869
|
});
|
|
890
870
|
}
|
|
@@ -897,12 +877,11 @@ export const de_GetPolicyCommand = async (output, context) => {
|
|
|
897
877
|
$metadata: deserializeMetadata(output),
|
|
898
878
|
});
|
|
899
879
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
}
|
|
880
|
+
const doc = take(data, {
|
|
881
|
+
policy: __expectString,
|
|
882
|
+
revisionId: __expectString,
|
|
883
|
+
});
|
|
884
|
+
Object.assign(contents, doc);
|
|
906
885
|
return contents;
|
|
907
886
|
};
|
|
908
887
|
const de_GetPolicyCommandError = async (output, context) => {
|
|
@@ -923,10 +902,9 @@ const de_GetPolicyCommandError = async (output, context) => {
|
|
|
923
902
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
924
903
|
default:
|
|
925
904
|
const parsedBody = parsedOutput.body;
|
|
926
|
-
throwDefaultError({
|
|
905
|
+
return throwDefaultError({
|
|
927
906
|
output,
|
|
928
907
|
parsedBody,
|
|
929
|
-
exceptionCtor: __BaseException,
|
|
930
908
|
errorCode,
|
|
931
909
|
});
|
|
932
910
|
}
|
|
@@ -965,10 +943,9 @@ const de_GetProfileCommandError = async (output, context) => {
|
|
|
965
943
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
966
944
|
default:
|
|
967
945
|
const parsedBody = parsedOutput.body;
|
|
968
|
-
throwDefaultError({
|
|
946
|
+
return throwDefaultError({
|
|
969
947
|
output,
|
|
970
948
|
parsedBody,
|
|
971
|
-
exceptionCtor: __BaseException,
|
|
972
949
|
errorCode,
|
|
973
950
|
});
|
|
974
951
|
}
|
|
@@ -981,21 +958,14 @@ export const de_GetRecommendationsCommand = async (output, context) => {
|
|
|
981
958
|
$metadata: deserializeMetadata(output),
|
|
982
959
|
});
|
|
983
960
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
}
|
|
993
|
-
if (data.profilingGroupName != null) {
|
|
994
|
-
contents.profilingGroupName = __expectString(data.profilingGroupName);
|
|
995
|
-
}
|
|
996
|
-
if (data.recommendations != null) {
|
|
997
|
-
contents.recommendations = de_Recommendations(data.recommendations, context);
|
|
998
|
-
}
|
|
961
|
+
const doc = take(data, {
|
|
962
|
+
anomalies: (_) => de_Anomalies(_, context),
|
|
963
|
+
profileEndTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
964
|
+
profileStartTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
965
|
+
profilingGroupName: __expectString,
|
|
966
|
+
recommendations: (_) => de_Recommendations(_, context),
|
|
967
|
+
});
|
|
968
|
+
Object.assign(contents, doc);
|
|
999
969
|
return contents;
|
|
1000
970
|
};
|
|
1001
971
|
const de_GetRecommendationsCommandError = async (output, context) => {
|
|
@@ -1019,10 +989,9 @@ const de_GetRecommendationsCommandError = async (output, context) => {
|
|
|
1019
989
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1020
990
|
default:
|
|
1021
991
|
const parsedBody = parsedOutput.body;
|
|
1022
|
-
throwDefaultError({
|
|
992
|
+
return throwDefaultError({
|
|
1023
993
|
output,
|
|
1024
994
|
parsedBody,
|
|
1025
|
-
exceptionCtor: __BaseException,
|
|
1026
995
|
errorCode,
|
|
1027
996
|
});
|
|
1028
997
|
}
|
|
@@ -1035,12 +1004,11 @@ export const de_ListFindingsReportsCommand = async (output, context) => {
|
|
|
1035
1004
|
$metadata: deserializeMetadata(output),
|
|
1036
1005
|
});
|
|
1037
1006
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
}
|
|
1007
|
+
const doc = take(data, {
|
|
1008
|
+
findingsReportSummaries: (_) => de_FindingsReportSummaries(_, context),
|
|
1009
|
+
nextToken: __expectString,
|
|
1010
|
+
});
|
|
1011
|
+
Object.assign(contents, doc);
|
|
1044
1012
|
return contents;
|
|
1045
1013
|
};
|
|
1046
1014
|
const de_ListFindingsReportsCommandError = async (output, context) => {
|
|
@@ -1064,10 +1032,9 @@ const de_ListFindingsReportsCommandError = async (output, context) => {
|
|
|
1064
1032
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1065
1033
|
default:
|
|
1066
1034
|
const parsedBody = parsedOutput.body;
|
|
1067
|
-
throwDefaultError({
|
|
1035
|
+
return throwDefaultError({
|
|
1068
1036
|
output,
|
|
1069
1037
|
parsedBody,
|
|
1070
|
-
exceptionCtor: __BaseException,
|
|
1071
1038
|
errorCode,
|
|
1072
1039
|
});
|
|
1073
1040
|
}
|
|
@@ -1080,12 +1047,11 @@ export const de_ListProfileTimesCommand = async (output, context) => {
|
|
|
1080
1047
|
$metadata: deserializeMetadata(output),
|
|
1081
1048
|
});
|
|
1082
1049
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
}
|
|
1050
|
+
const doc = take(data, {
|
|
1051
|
+
nextToken: __expectString,
|
|
1052
|
+
profileTimes: (_) => de_ProfileTimes(_, context),
|
|
1053
|
+
});
|
|
1054
|
+
Object.assign(contents, doc);
|
|
1089
1055
|
return contents;
|
|
1090
1056
|
};
|
|
1091
1057
|
const de_ListProfileTimesCommandError = async (output, context) => {
|
|
@@ -1109,10 +1075,9 @@ const de_ListProfileTimesCommandError = async (output, context) => {
|
|
|
1109
1075
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1110
1076
|
default:
|
|
1111
1077
|
const parsedBody = parsedOutput.body;
|
|
1112
|
-
throwDefaultError({
|
|
1078
|
+
return throwDefaultError({
|
|
1113
1079
|
output,
|
|
1114
1080
|
parsedBody,
|
|
1115
|
-
exceptionCtor: __BaseException,
|
|
1116
1081
|
errorCode,
|
|
1117
1082
|
});
|
|
1118
1083
|
}
|
|
@@ -1125,15 +1090,12 @@ export const de_ListProfilingGroupsCommand = async (output, context) => {
|
|
|
1125
1090
|
$metadata: deserializeMetadata(output),
|
|
1126
1091
|
});
|
|
1127
1092
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
if (data.profilingGroups != null) {
|
|
1135
|
-
contents.profilingGroups = de_ProfilingGroupDescriptions(data.profilingGroups, context);
|
|
1136
|
-
}
|
|
1093
|
+
const doc = take(data, {
|
|
1094
|
+
nextToken: __expectString,
|
|
1095
|
+
profilingGroupNames: _json,
|
|
1096
|
+
profilingGroups: (_) => de_ProfilingGroupDescriptions(_, context),
|
|
1097
|
+
});
|
|
1098
|
+
Object.assign(contents, doc);
|
|
1137
1099
|
return contents;
|
|
1138
1100
|
};
|
|
1139
1101
|
const de_ListProfilingGroupsCommandError = async (output, context) => {
|
|
@@ -1151,10 +1113,9 @@ const de_ListProfilingGroupsCommandError = async (output, context) => {
|
|
|
1151
1113
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1152
1114
|
default:
|
|
1153
1115
|
const parsedBody = parsedOutput.body;
|
|
1154
|
-
throwDefaultError({
|
|
1116
|
+
return throwDefaultError({
|
|
1155
1117
|
output,
|
|
1156
1118
|
parsedBody,
|
|
1157
|
-
exceptionCtor: __BaseException,
|
|
1158
1119
|
errorCode,
|
|
1159
1120
|
});
|
|
1160
1121
|
}
|
|
@@ -1167,9 +1128,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1167
1128
|
$metadata: deserializeMetadata(output),
|
|
1168
1129
|
});
|
|
1169
1130
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
}
|
|
1131
|
+
const doc = take(data, {
|
|
1132
|
+
tags: _json,
|
|
1133
|
+
});
|
|
1134
|
+
Object.assign(contents, doc);
|
|
1173
1135
|
return contents;
|
|
1174
1136
|
};
|
|
1175
1137
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1190,10 +1152,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1190
1152
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1191
1153
|
default:
|
|
1192
1154
|
const parsedBody = parsedOutput.body;
|
|
1193
|
-
throwDefaultError({
|
|
1155
|
+
return throwDefaultError({
|
|
1194
1156
|
output,
|
|
1195
1157
|
parsedBody,
|
|
1196
|
-
exceptionCtor: __BaseException,
|
|
1197
1158
|
errorCode,
|
|
1198
1159
|
});
|
|
1199
1160
|
}
|
|
@@ -1229,10 +1190,9 @@ const de_PostAgentProfileCommandError = async (output, context) => {
|
|
|
1229
1190
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1230
1191
|
default:
|
|
1231
1192
|
const parsedBody = parsedOutput.body;
|
|
1232
|
-
throwDefaultError({
|
|
1193
|
+
return throwDefaultError({
|
|
1233
1194
|
output,
|
|
1234
1195
|
parsedBody,
|
|
1235
|
-
exceptionCtor: __BaseException,
|
|
1236
1196
|
errorCode,
|
|
1237
1197
|
});
|
|
1238
1198
|
}
|
|
@@ -1245,12 +1205,11 @@ export const de_PutPermissionCommand = async (output, context) => {
|
|
|
1245
1205
|
$metadata: deserializeMetadata(output),
|
|
1246
1206
|
});
|
|
1247
1207
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
}
|
|
1208
|
+
const doc = take(data, {
|
|
1209
|
+
policy: __expectString,
|
|
1210
|
+
revisionId: __expectString,
|
|
1211
|
+
});
|
|
1212
|
+
Object.assign(contents, doc);
|
|
1254
1213
|
return contents;
|
|
1255
1214
|
};
|
|
1256
1215
|
const de_PutPermissionCommandError = async (output, context) => {
|
|
@@ -1277,10 +1236,9 @@ const de_PutPermissionCommandError = async (output, context) => {
|
|
|
1277
1236
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1278
1237
|
default:
|
|
1279
1238
|
const parsedBody = parsedOutput.body;
|
|
1280
|
-
throwDefaultError({
|
|
1239
|
+
return throwDefaultError({
|
|
1281
1240
|
output,
|
|
1282
1241
|
parsedBody,
|
|
1283
|
-
exceptionCtor: __BaseException,
|
|
1284
1242
|
errorCode,
|
|
1285
1243
|
});
|
|
1286
1244
|
}
|
|
@@ -1293,9 +1251,10 @@ export const de_RemoveNotificationChannelCommand = async (output, context) => {
|
|
|
1293
1251
|
$metadata: deserializeMetadata(output),
|
|
1294
1252
|
});
|
|
1295
1253
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
}
|
|
1254
|
+
const doc = take(data, {
|
|
1255
|
+
notificationConfiguration: _json,
|
|
1256
|
+
});
|
|
1257
|
+
Object.assign(contents, doc);
|
|
1299
1258
|
return contents;
|
|
1300
1259
|
};
|
|
1301
1260
|
const de_RemoveNotificationChannelCommandError = async (output, context) => {
|
|
@@ -1319,10 +1278,9 @@ const de_RemoveNotificationChannelCommandError = async (output, context) => {
|
|
|
1319
1278
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1320
1279
|
default:
|
|
1321
1280
|
const parsedBody = parsedOutput.body;
|
|
1322
|
-
throwDefaultError({
|
|
1281
|
+
return throwDefaultError({
|
|
1323
1282
|
output,
|
|
1324
1283
|
parsedBody,
|
|
1325
|
-
exceptionCtor: __BaseException,
|
|
1326
1284
|
errorCode,
|
|
1327
1285
|
});
|
|
1328
1286
|
}
|
|
@@ -1335,12 +1293,11 @@ export const de_RemovePermissionCommand = async (output, context) => {
|
|
|
1335
1293
|
$metadata: deserializeMetadata(output),
|
|
1336
1294
|
});
|
|
1337
1295
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
}
|
|
1296
|
+
const doc = take(data, {
|
|
1297
|
+
policy: __expectString,
|
|
1298
|
+
revisionId: __expectString,
|
|
1299
|
+
});
|
|
1300
|
+
Object.assign(contents, doc);
|
|
1344
1301
|
return contents;
|
|
1345
1302
|
};
|
|
1346
1303
|
const de_RemovePermissionCommandError = async (output, context) => {
|
|
@@ -1367,10 +1324,9 @@ const de_RemovePermissionCommandError = async (output, context) => {
|
|
|
1367
1324
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1368
1325
|
default:
|
|
1369
1326
|
const parsedBody = parsedOutput.body;
|
|
1370
|
-
throwDefaultError({
|
|
1327
|
+
return throwDefaultError({
|
|
1371
1328
|
output,
|
|
1372
1329
|
parsedBody,
|
|
1373
|
-
exceptionCtor: __BaseException,
|
|
1374
1330
|
errorCode,
|
|
1375
1331
|
});
|
|
1376
1332
|
}
|
|
@@ -1406,10 +1362,9 @@ const de_SubmitFeedbackCommandError = async (output, context) => {
|
|
|
1406
1362
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1407
1363
|
default:
|
|
1408
1364
|
const parsedBody = parsedOutput.body;
|
|
1409
|
-
throwDefaultError({
|
|
1365
|
+
return throwDefaultError({
|
|
1410
1366
|
output,
|
|
1411
1367
|
parsedBody,
|
|
1412
|
-
exceptionCtor: __BaseException,
|
|
1413
1368
|
errorCode,
|
|
1414
1369
|
});
|
|
1415
1370
|
}
|
|
@@ -1442,10 +1397,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1442
1397
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1443
1398
|
default:
|
|
1444
1399
|
const parsedBody = parsedOutput.body;
|
|
1445
|
-
throwDefaultError({
|
|
1400
|
+
return throwDefaultError({
|
|
1446
1401
|
output,
|
|
1447
1402
|
parsedBody,
|
|
1448
|
-
exceptionCtor: __BaseException,
|
|
1449
1403
|
errorCode,
|
|
1450
1404
|
});
|
|
1451
1405
|
}
|
|
@@ -1478,10 +1432,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1478
1432
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1479
1433
|
default:
|
|
1480
1434
|
const parsedBody = parsedOutput.body;
|
|
1481
|
-
throwDefaultError({
|
|
1435
|
+
return throwDefaultError({
|
|
1482
1436
|
output,
|
|
1483
1437
|
parsedBody,
|
|
1484
|
-
exceptionCtor: __BaseException,
|
|
1485
1438
|
errorCode,
|
|
1486
1439
|
});
|
|
1487
1440
|
}
|
|
@@ -1521,21 +1474,21 @@ const de_UpdateProfilingGroupCommandError = async (output, context) => {
|
|
|
1521
1474
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1522
1475
|
default:
|
|
1523
1476
|
const parsedBody = parsedOutput.body;
|
|
1524
|
-
throwDefaultError({
|
|
1477
|
+
return throwDefaultError({
|
|
1525
1478
|
output,
|
|
1526
1479
|
parsedBody,
|
|
1527
|
-
exceptionCtor: __BaseException,
|
|
1528
1480
|
errorCode,
|
|
1529
1481
|
});
|
|
1530
1482
|
}
|
|
1531
1483
|
};
|
|
1532
|
-
const
|
|
1484
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1533
1485
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1534
1486
|
const contents = map({});
|
|
1535
1487
|
const data = parsedOutput.body;
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
}
|
|
1488
|
+
const doc = take(data, {
|
|
1489
|
+
message: __expectString,
|
|
1490
|
+
});
|
|
1491
|
+
Object.assign(contents, doc);
|
|
1539
1492
|
const exception = new ConflictException({
|
|
1540
1493
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1541
1494
|
...contents,
|
|
@@ -1545,9 +1498,10 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1545
1498
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1546
1499
|
const contents = map({});
|
|
1547
1500
|
const data = parsedOutput.body;
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
}
|
|
1501
|
+
const doc = take(data, {
|
|
1502
|
+
message: __expectString,
|
|
1503
|
+
});
|
|
1504
|
+
Object.assign(contents, doc);
|
|
1551
1505
|
const exception = new InternalServerException({
|
|
1552
1506
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1553
1507
|
...contents,
|
|
@@ -1557,9 +1511,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1557
1511
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1558
1512
|
const contents = map({});
|
|
1559
1513
|
const data = parsedOutput.body;
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
}
|
|
1514
|
+
const doc = take(data, {
|
|
1515
|
+
message: __expectString,
|
|
1516
|
+
});
|
|
1517
|
+
Object.assign(contents, doc);
|
|
1563
1518
|
const exception = new ResourceNotFoundException({
|
|
1564
1519
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1565
1520
|
...contents,
|
|
@@ -1569,9 +1524,10 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1569
1524
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1570
1525
|
const contents = map({});
|
|
1571
1526
|
const data = parsedOutput.body;
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
}
|
|
1527
|
+
const doc = take(data, {
|
|
1528
|
+
message: __expectString,
|
|
1529
|
+
});
|
|
1530
|
+
Object.assign(contents, doc);
|
|
1575
1531
|
const exception = new ServiceQuotaExceededException({
|
|
1576
1532
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1577
1533
|
...contents,
|
|
@@ -1581,9 +1537,10 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1581
1537
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1582
1538
|
const contents = map({});
|
|
1583
1539
|
const data = parsedOutput.body;
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
}
|
|
1540
|
+
const doc = take(data, {
|
|
1541
|
+
message: __expectString,
|
|
1542
|
+
});
|
|
1543
|
+
Object.assign(contents, doc);
|
|
1587
1544
|
const exception = new ThrottlingException({
|
|
1588
1545
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1589
1546
|
...contents,
|
|
@@ -1593,235 +1550,88 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1593
1550
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1594
1551
|
const contents = map({});
|
|
1595
1552
|
const data = parsedOutput.body;
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
}
|
|
1553
|
+
const doc = take(data, {
|
|
1554
|
+
message: __expectString,
|
|
1555
|
+
});
|
|
1556
|
+
Object.assign(contents, doc);
|
|
1599
1557
|
const exception = new ValidationException({
|
|
1600
1558
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1601
1559
|
...contents,
|
|
1602
1560
|
});
|
|
1603
1561
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1604
1562
|
};
|
|
1605
|
-
const se_AgentOrchestrationConfig = (input, context) => {
|
|
1606
|
-
return {
|
|
1607
|
-
...(input.profilingEnabled != null && { profilingEnabled: input.profilingEnabled }),
|
|
1608
|
-
};
|
|
1609
|
-
};
|
|
1610
|
-
const se_Channel = (input, context) => {
|
|
1611
|
-
return {
|
|
1612
|
-
...(input.eventPublishers != null && { eventPublishers: se_EventPublishers(input.eventPublishers, context) }),
|
|
1613
|
-
...(input.id != null && { id: input.id }),
|
|
1614
|
-
...(input.uri != null && { uri: input.uri }),
|
|
1615
|
-
};
|
|
1616
|
-
};
|
|
1617
|
-
const se_Channels = (input, context) => {
|
|
1618
|
-
return input
|
|
1619
|
-
.filter((e) => e != null)
|
|
1620
|
-
.map((entry) => {
|
|
1621
|
-
return se_Channel(entry, context);
|
|
1622
|
-
});
|
|
1623
|
-
};
|
|
1624
|
-
const se_EventPublishers = (input, context) => {
|
|
1625
|
-
return input
|
|
1626
|
-
.filter((e) => e != null)
|
|
1627
|
-
.map((entry) => {
|
|
1628
|
-
return entry;
|
|
1629
|
-
});
|
|
1630
|
-
};
|
|
1631
|
-
const se_FrameMetric = (input, context) => {
|
|
1632
|
-
return {
|
|
1633
|
-
...(input.frameName != null && { frameName: input.frameName }),
|
|
1634
|
-
...(input.threadStates != null && { threadStates: se_ThreadStates(input.threadStates, context) }),
|
|
1635
|
-
...(input.type != null && { type: input.type }),
|
|
1636
|
-
};
|
|
1637
|
-
};
|
|
1638
|
-
const se_FrameMetrics = (input, context) => {
|
|
1639
|
-
return input
|
|
1640
|
-
.filter((e) => e != null)
|
|
1641
|
-
.map((entry) => {
|
|
1642
|
-
return se_FrameMetric(entry, context);
|
|
1643
|
-
});
|
|
1644
|
-
};
|
|
1645
|
-
const se_Metadata = (input, context) => {
|
|
1646
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1647
|
-
if (value === null) {
|
|
1648
|
-
return acc;
|
|
1649
|
-
}
|
|
1650
|
-
acc[key] = value;
|
|
1651
|
-
return acc;
|
|
1652
|
-
}, {});
|
|
1653
|
-
};
|
|
1654
|
-
const se_Principals = (input, context) => {
|
|
1655
|
-
return input
|
|
1656
|
-
.filter((e) => e != null)
|
|
1657
|
-
.map((entry) => {
|
|
1658
|
-
return entry;
|
|
1659
|
-
});
|
|
1660
|
-
};
|
|
1661
|
-
const se_TagsMap = (input, context) => {
|
|
1662
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1663
|
-
if (value === null) {
|
|
1664
|
-
return acc;
|
|
1665
|
-
}
|
|
1666
|
-
acc[key] = value;
|
|
1667
|
-
return acc;
|
|
1668
|
-
}, {});
|
|
1669
|
-
};
|
|
1670
|
-
const se_ThreadStates = (input, context) => {
|
|
1671
|
-
return input
|
|
1672
|
-
.filter((e) => e != null)
|
|
1673
|
-
.map((entry) => {
|
|
1674
|
-
return entry;
|
|
1675
|
-
});
|
|
1676
|
-
};
|
|
1677
|
-
const de_AgentConfiguration = (output, context) => {
|
|
1678
|
-
return {
|
|
1679
|
-
agentParameters: output.agentParameters != null ? de_AgentParameters(output.agentParameters, context) : undefined,
|
|
1680
|
-
periodInSeconds: __expectInt32(output.periodInSeconds),
|
|
1681
|
-
shouldProfile: __expectBoolean(output.shouldProfile),
|
|
1682
|
-
};
|
|
1683
|
-
};
|
|
1684
|
-
const de_AgentOrchestrationConfig = (output, context) => {
|
|
1685
|
-
return {
|
|
1686
|
-
profilingEnabled: __expectBoolean(output.profilingEnabled),
|
|
1687
|
-
};
|
|
1688
|
-
};
|
|
1689
|
-
const de_AgentParameters = (output, context) => {
|
|
1690
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1691
|
-
if (value === null) {
|
|
1692
|
-
return acc;
|
|
1693
|
-
}
|
|
1694
|
-
acc[key] = __expectString(value);
|
|
1695
|
-
return acc;
|
|
1696
|
-
}, {});
|
|
1697
|
-
};
|
|
1698
1563
|
const de_AggregatedProfileTime = (output, context) => {
|
|
1699
|
-
return {
|
|
1700
|
-
period: __expectString
|
|
1701
|
-
start:
|
|
1702
|
-
};
|
|
1564
|
+
return take(output, {
|
|
1565
|
+
period: __expectString,
|
|
1566
|
+
start: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1567
|
+
});
|
|
1703
1568
|
};
|
|
1704
1569
|
const de_Anomalies = (output, context) => {
|
|
1705
1570
|
const retVal = (output || [])
|
|
1706
1571
|
.filter((e) => e != null)
|
|
1707
1572
|
.map((entry) => {
|
|
1708
|
-
if (entry === null) {
|
|
1709
|
-
return null;
|
|
1710
|
-
}
|
|
1711
1573
|
return de_Anomaly(entry, context);
|
|
1712
1574
|
});
|
|
1713
1575
|
return retVal;
|
|
1714
1576
|
};
|
|
1715
1577
|
const de_Anomaly = (output, context) => {
|
|
1716
|
-
return {
|
|
1717
|
-
instances:
|
|
1718
|
-
metric:
|
|
1719
|
-
reason: __expectString
|
|
1720
|
-
};
|
|
1578
|
+
return take(output, {
|
|
1579
|
+
instances: (_) => de_AnomalyInstances(_, context),
|
|
1580
|
+
metric: _json,
|
|
1581
|
+
reason: __expectString,
|
|
1582
|
+
});
|
|
1721
1583
|
};
|
|
1722
1584
|
const de_AnomalyInstance = (output, context) => {
|
|
1723
|
-
return {
|
|
1724
|
-
endTime:
|
|
1725
|
-
id: __expectString
|
|
1726
|
-
startTime:
|
|
1727
|
-
userFeedback:
|
|
1728
|
-
};
|
|
1585
|
+
return take(output, {
|
|
1586
|
+
endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1587
|
+
id: __expectString,
|
|
1588
|
+
startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1589
|
+
userFeedback: _json,
|
|
1590
|
+
});
|
|
1729
1591
|
};
|
|
1730
1592
|
const de_AnomalyInstances = (output, context) => {
|
|
1731
1593
|
const retVal = (output || [])
|
|
1732
1594
|
.filter((e) => e != null)
|
|
1733
1595
|
.map((entry) => {
|
|
1734
|
-
if (entry === null) {
|
|
1735
|
-
return null;
|
|
1736
|
-
}
|
|
1737
1596
|
return de_AnomalyInstance(entry, context);
|
|
1738
1597
|
});
|
|
1739
1598
|
return retVal;
|
|
1740
1599
|
};
|
|
1741
|
-
const de_Channel = (output, context) => {
|
|
1742
|
-
return {
|
|
1743
|
-
eventPublishers: output.eventPublishers != null ? de_EventPublishers(output.eventPublishers, context) : undefined,
|
|
1744
|
-
id: __expectString(output.id),
|
|
1745
|
-
uri: __expectString(output.uri),
|
|
1746
|
-
};
|
|
1747
|
-
};
|
|
1748
|
-
const de_Channels = (output, context) => {
|
|
1749
|
-
const retVal = (output || [])
|
|
1750
|
-
.filter((e) => e != null)
|
|
1751
|
-
.map((entry) => {
|
|
1752
|
-
if (entry === null) {
|
|
1753
|
-
return null;
|
|
1754
|
-
}
|
|
1755
|
-
return de_Channel(entry, context);
|
|
1756
|
-
});
|
|
1757
|
-
return retVal;
|
|
1758
|
-
};
|
|
1759
|
-
const de_EventPublishers = (output, context) => {
|
|
1760
|
-
const retVal = (output || [])
|
|
1761
|
-
.filter((e) => e != null)
|
|
1762
|
-
.map((entry) => {
|
|
1763
|
-
if (entry === null) {
|
|
1764
|
-
return null;
|
|
1765
|
-
}
|
|
1766
|
-
return __expectString(entry);
|
|
1767
|
-
});
|
|
1768
|
-
return retVal;
|
|
1769
|
-
};
|
|
1770
1600
|
const de_FindingsReportSummaries = (output, context) => {
|
|
1771
1601
|
const retVal = (output || [])
|
|
1772
1602
|
.filter((e) => e != null)
|
|
1773
1603
|
.map((entry) => {
|
|
1774
|
-
if (entry === null) {
|
|
1775
|
-
return null;
|
|
1776
|
-
}
|
|
1777
1604
|
return de_FindingsReportSummary(entry, context);
|
|
1778
1605
|
});
|
|
1779
1606
|
return retVal;
|
|
1780
1607
|
};
|
|
1781
1608
|
const de_FindingsReportSummary = (output, context) => {
|
|
1782
|
-
return {
|
|
1783
|
-
id: __expectString
|
|
1784
|
-
profileEndTime:
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
: undefined,
|
|
1790
|
-
profilingGroupName: __expectString(output.profilingGroupName),
|
|
1791
|
-
totalNumberOfFindings: __expectInt32(output.totalNumberOfFindings),
|
|
1792
|
-
};
|
|
1793
|
-
};
|
|
1794
|
-
const de_FrameMetric = (output, context) => {
|
|
1795
|
-
return {
|
|
1796
|
-
frameName: __expectString(output.frameName),
|
|
1797
|
-
threadStates: output.threadStates != null ? de_ThreadStates(output.threadStates, context) : undefined,
|
|
1798
|
-
type: __expectString(output.type),
|
|
1799
|
-
};
|
|
1609
|
+
return take(output, {
|
|
1610
|
+
id: __expectString,
|
|
1611
|
+
profileEndTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1612
|
+
profileStartTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1613
|
+
profilingGroupName: __expectString,
|
|
1614
|
+
totalNumberOfFindings: __expectInt32,
|
|
1615
|
+
});
|
|
1800
1616
|
};
|
|
1801
1617
|
const de_FrameMetricData = (output, context) => {
|
|
1802
1618
|
const retVal = (output || [])
|
|
1803
1619
|
.filter((e) => e != null)
|
|
1804
1620
|
.map((entry) => {
|
|
1805
|
-
if (entry === null) {
|
|
1806
|
-
return null;
|
|
1807
|
-
}
|
|
1808
1621
|
return de_FrameMetricDatum(entry, context);
|
|
1809
1622
|
});
|
|
1810
1623
|
return retVal;
|
|
1811
1624
|
};
|
|
1812
1625
|
const de_FrameMetricDatum = (output, context) => {
|
|
1813
|
-
return {
|
|
1814
|
-
frameMetric:
|
|
1815
|
-
values:
|
|
1816
|
-
};
|
|
1626
|
+
return take(output, {
|
|
1627
|
+
frameMetric: _json,
|
|
1628
|
+
values: (_) => de_FrameMetricValues(_, context),
|
|
1629
|
+
});
|
|
1817
1630
|
};
|
|
1818
1631
|
const de_FrameMetricValues = (output, context) => {
|
|
1819
1632
|
const retVal = (output || [])
|
|
1820
1633
|
.filter((e) => e != null)
|
|
1821
1634
|
.map((entry) => {
|
|
1822
|
-
if (entry === null) {
|
|
1823
|
-
return null;
|
|
1824
|
-
}
|
|
1825
1635
|
return __limitedParseDouble(entry);
|
|
1826
1636
|
});
|
|
1827
1637
|
return retVal;
|
|
@@ -1830,197 +1640,98 @@ const de_ListOfTimestamps = (output, context) => {
|
|
|
1830
1640
|
const retVal = (output || [])
|
|
1831
1641
|
.filter((e) => e != null)
|
|
1832
1642
|
.map((entry) => {
|
|
1833
|
-
if (entry === null) {
|
|
1834
|
-
return null;
|
|
1835
|
-
}
|
|
1836
1643
|
return de_TimestampStructure(entry, context);
|
|
1837
1644
|
});
|
|
1838
1645
|
return retVal;
|
|
1839
1646
|
};
|
|
1840
1647
|
const de_Match = (output, context) => {
|
|
1841
|
-
return {
|
|
1842
|
-
frameAddress: __expectString
|
|
1843
|
-
targetFramesIndex: __expectInt32
|
|
1844
|
-
thresholdBreachValue: __limitedParseDouble
|
|
1845
|
-
};
|
|
1648
|
+
return take(output, {
|
|
1649
|
+
frameAddress: __expectString,
|
|
1650
|
+
targetFramesIndex: __expectInt32,
|
|
1651
|
+
thresholdBreachValue: __limitedParseDouble,
|
|
1652
|
+
});
|
|
1846
1653
|
};
|
|
1847
1654
|
const de_Matches = (output, context) => {
|
|
1848
1655
|
const retVal = (output || [])
|
|
1849
1656
|
.filter((e) => e != null)
|
|
1850
1657
|
.map((entry) => {
|
|
1851
|
-
if (entry === null) {
|
|
1852
|
-
return null;
|
|
1853
|
-
}
|
|
1854
1658
|
return de_Match(entry, context);
|
|
1855
1659
|
});
|
|
1856
1660
|
return retVal;
|
|
1857
1661
|
};
|
|
1858
|
-
const de_Metric = (output, context) => {
|
|
1859
|
-
return {
|
|
1860
|
-
frameName: __expectString(output.frameName),
|
|
1861
|
-
threadStates: output.threadStates != null ? de_Strings(output.threadStates, context) : undefined,
|
|
1862
|
-
type: __expectString(output.type),
|
|
1863
|
-
};
|
|
1864
|
-
};
|
|
1865
|
-
const de_NotificationConfiguration = (output, context) => {
|
|
1866
|
-
return {
|
|
1867
|
-
channels: output.channels != null ? de_Channels(output.channels, context) : undefined,
|
|
1868
|
-
};
|
|
1869
|
-
};
|
|
1870
1662
|
const de_Pattern = (output, context) => {
|
|
1871
|
-
return {
|
|
1872
|
-
countersToAggregate:
|
|
1873
|
-
description: __expectString
|
|
1874
|
-
id: __expectString
|
|
1875
|
-
name: __expectString
|
|
1876
|
-
resolutionSteps: __expectString
|
|
1877
|
-
targetFrames:
|
|
1878
|
-
thresholdPercent: __limitedParseDouble
|
|
1879
|
-
};
|
|
1663
|
+
return take(output, {
|
|
1664
|
+
countersToAggregate: _json,
|
|
1665
|
+
description: __expectString,
|
|
1666
|
+
id: __expectString,
|
|
1667
|
+
name: __expectString,
|
|
1668
|
+
resolutionSteps: __expectString,
|
|
1669
|
+
targetFrames: _json,
|
|
1670
|
+
thresholdPercent: __limitedParseDouble,
|
|
1671
|
+
});
|
|
1880
1672
|
};
|
|
1881
1673
|
const de_ProfileTime = (output, context) => {
|
|
1882
|
-
return {
|
|
1883
|
-
start:
|
|
1884
|
-
};
|
|
1674
|
+
return take(output, {
|
|
1675
|
+
start: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1676
|
+
});
|
|
1885
1677
|
};
|
|
1886
1678
|
const de_ProfileTimes = (output, context) => {
|
|
1887
1679
|
const retVal = (output || [])
|
|
1888
1680
|
.filter((e) => e != null)
|
|
1889
1681
|
.map((entry) => {
|
|
1890
|
-
if (entry === null) {
|
|
1891
|
-
return null;
|
|
1892
|
-
}
|
|
1893
1682
|
return de_ProfileTime(entry, context);
|
|
1894
1683
|
});
|
|
1895
1684
|
return retVal;
|
|
1896
1685
|
};
|
|
1897
1686
|
const de_ProfilingGroupDescription = (output, context) => {
|
|
1898
|
-
return {
|
|
1899
|
-
agentOrchestrationConfig:
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
updatedAt: output.updatedAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.updatedAt)) : undefined,
|
|
1909
|
-
};
|
|
1687
|
+
return take(output, {
|
|
1688
|
+
agentOrchestrationConfig: _json,
|
|
1689
|
+
arn: __expectString,
|
|
1690
|
+
computePlatform: __expectString,
|
|
1691
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1692
|
+
name: __expectString,
|
|
1693
|
+
profilingStatus: (_) => de_ProfilingStatus(_, context),
|
|
1694
|
+
tags: _json,
|
|
1695
|
+
updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1696
|
+
});
|
|
1910
1697
|
};
|
|
1911
1698
|
const de_ProfilingGroupDescriptions = (output, context) => {
|
|
1912
1699
|
const retVal = (output || [])
|
|
1913
1700
|
.filter((e) => e != null)
|
|
1914
1701
|
.map((entry) => {
|
|
1915
|
-
if (entry === null) {
|
|
1916
|
-
return null;
|
|
1917
|
-
}
|
|
1918
1702
|
return de_ProfilingGroupDescription(entry, context);
|
|
1919
1703
|
});
|
|
1920
1704
|
return retVal;
|
|
1921
1705
|
};
|
|
1922
|
-
const de_ProfilingGroupNames = (output, context) => {
|
|
1923
|
-
const retVal = (output || [])
|
|
1924
|
-
.filter((e) => e != null)
|
|
1925
|
-
.map((entry) => {
|
|
1926
|
-
if (entry === null) {
|
|
1927
|
-
return null;
|
|
1928
|
-
}
|
|
1929
|
-
return __expectString(entry);
|
|
1930
|
-
});
|
|
1931
|
-
return retVal;
|
|
1932
|
-
};
|
|
1933
1706
|
const de_ProfilingStatus = (output, context) => {
|
|
1934
|
-
return {
|
|
1935
|
-
latestAgentOrchestratedAt:
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.latestAgentProfileReportedAt))
|
|
1940
|
-
: undefined,
|
|
1941
|
-
latestAggregatedProfile: output.latestAggregatedProfile != null
|
|
1942
|
-
? de_AggregatedProfileTime(output.latestAggregatedProfile, context)
|
|
1943
|
-
: undefined,
|
|
1944
|
-
};
|
|
1707
|
+
return take(output, {
|
|
1708
|
+
latestAgentOrchestratedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1709
|
+
latestAgentProfileReportedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1710
|
+
latestAggregatedProfile: (_) => de_AggregatedProfileTime(_, context),
|
|
1711
|
+
});
|
|
1945
1712
|
};
|
|
1946
1713
|
const de_Recommendation = (output, context) => {
|
|
1947
|
-
return {
|
|
1948
|
-
allMatchesCount: __expectInt32
|
|
1949
|
-
allMatchesSum: __limitedParseDouble
|
|
1950
|
-
endTime:
|
|
1951
|
-
pattern:
|
|
1952
|
-
startTime:
|
|
1953
|
-
topMatches:
|
|
1954
|
-
};
|
|
1714
|
+
return take(output, {
|
|
1715
|
+
allMatchesCount: __expectInt32,
|
|
1716
|
+
allMatchesSum: __limitedParseDouble,
|
|
1717
|
+
endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1718
|
+
pattern: (_) => de_Pattern(_, context),
|
|
1719
|
+
startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1720
|
+
topMatches: (_) => de_Matches(_, context),
|
|
1721
|
+
});
|
|
1955
1722
|
};
|
|
1956
1723
|
const de_Recommendations = (output, context) => {
|
|
1957
1724
|
const retVal = (output || [])
|
|
1958
1725
|
.filter((e) => e != null)
|
|
1959
1726
|
.map((entry) => {
|
|
1960
|
-
if (entry === null) {
|
|
1961
|
-
return null;
|
|
1962
|
-
}
|
|
1963
1727
|
return de_Recommendation(entry, context);
|
|
1964
1728
|
});
|
|
1965
1729
|
return retVal;
|
|
1966
1730
|
};
|
|
1967
|
-
const de_Strings = (output, context) => {
|
|
1968
|
-
const retVal = (output || [])
|
|
1969
|
-
.filter((e) => e != null)
|
|
1970
|
-
.map((entry) => {
|
|
1971
|
-
if (entry === null) {
|
|
1972
|
-
return null;
|
|
1973
|
-
}
|
|
1974
|
-
return __expectString(entry);
|
|
1975
|
-
});
|
|
1976
|
-
return retVal;
|
|
1977
|
-
};
|
|
1978
|
-
const de_TagsMap = (output, context) => {
|
|
1979
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1980
|
-
if (value === null) {
|
|
1981
|
-
return acc;
|
|
1982
|
-
}
|
|
1983
|
-
acc[key] = __expectString(value);
|
|
1984
|
-
return acc;
|
|
1985
|
-
}, {});
|
|
1986
|
-
};
|
|
1987
|
-
const de_TargetFrame = (output, context) => {
|
|
1988
|
-
const retVal = (output || [])
|
|
1989
|
-
.filter((e) => e != null)
|
|
1990
|
-
.map((entry) => {
|
|
1991
|
-
if (entry === null) {
|
|
1992
|
-
return null;
|
|
1993
|
-
}
|
|
1994
|
-
return __expectString(entry);
|
|
1995
|
-
});
|
|
1996
|
-
return retVal;
|
|
1997
|
-
};
|
|
1998
|
-
const de_TargetFrames = (output, context) => {
|
|
1999
|
-
const retVal = (output || [])
|
|
2000
|
-
.filter((e) => e != null)
|
|
2001
|
-
.map((entry) => {
|
|
2002
|
-
if (entry === null) {
|
|
2003
|
-
return null;
|
|
2004
|
-
}
|
|
2005
|
-
return de_TargetFrame(entry, context);
|
|
2006
|
-
});
|
|
2007
|
-
return retVal;
|
|
2008
|
-
};
|
|
2009
|
-
const de_ThreadStates = (output, context) => {
|
|
2010
|
-
const retVal = (output || [])
|
|
2011
|
-
.filter((e) => e != null)
|
|
2012
|
-
.map((entry) => {
|
|
2013
|
-
if (entry === null) {
|
|
2014
|
-
return null;
|
|
2015
|
-
}
|
|
2016
|
-
return __expectString(entry);
|
|
2017
|
-
});
|
|
2018
|
-
return retVal;
|
|
2019
|
-
};
|
|
2020
1731
|
const de_TimestampStructure = (output, context) => {
|
|
2021
|
-
return {
|
|
2022
|
-
value:
|
|
2023
|
-
};
|
|
1732
|
+
return take(output, {
|
|
1733
|
+
value: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1734
|
+
});
|
|
2024
1735
|
};
|
|
2025
1736
|
const de_UnprocessedEndTimeMap = (output, context) => {
|
|
2026
1737
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -2031,11 +1742,6 @@ const de_UnprocessedEndTimeMap = (output, context) => {
|
|
|
2031
1742
|
return acc;
|
|
2032
1743
|
}, {});
|
|
2033
1744
|
};
|
|
2034
|
-
const de_UserFeedback = (output, context) => {
|
|
2035
|
-
return {
|
|
2036
|
-
type: __expectString(output.type),
|
|
2037
|
-
};
|
|
2038
|
-
};
|
|
2039
1745
|
const deserializeMetadata = (output) => ({
|
|
2040
1746
|
httpStatusCode: output.statusCode,
|
|
2041
1747
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|