@aws-sdk/client-schemas 3.312.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 +368 -581
- package/dist-es/protocols/Aws_restJson1.js +314 -527
- 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, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, LazyJsonString as __LazyJsonString, map
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, LazyJsonString as __LazyJsonString, 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 { BadRequestException, ConflictException, ForbiddenException, GoneException, InternalServerErrorException, NotFoundException, PreconditionFailedException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, } from "../models/models_0";
|
|
5
5
|
import { SchemasServiceException as __BaseException } from "../models/SchemasServiceException";
|
|
@@ -10,12 +10,12 @@ export const se_CreateDiscovererCommand = async (input, context) => {
|
|
|
10
10
|
};
|
|
11
11
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/discoverers";
|
|
12
12
|
let body;
|
|
13
|
-
body = JSON.stringify({
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
});
|
|
13
|
+
body = JSON.stringify(take(input, {
|
|
14
|
+
CrossAccount: [],
|
|
15
|
+
Description: [],
|
|
16
|
+
SourceArn: [],
|
|
17
|
+
tags: [, (_) => _json(_), `Tags`],
|
|
18
|
+
}));
|
|
19
19
|
return new __HttpRequest({
|
|
20
20
|
protocol,
|
|
21
21
|
hostname,
|
|
@@ -34,10 +34,10 @@ export const se_CreateRegistryCommand = async (input, context) => {
|
|
|
34
34
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/registries/name/{RegistryName}";
|
|
35
35
|
resolvedPath = __resolvedPath(resolvedPath, input, "RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
36
36
|
let body;
|
|
37
|
-
body = JSON.stringify({
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
});
|
|
37
|
+
body = JSON.stringify(take(input, {
|
|
38
|
+
Description: [],
|
|
39
|
+
tags: [, (_) => _json(_), `Tags`],
|
|
40
|
+
}));
|
|
41
41
|
return new __HttpRequest({
|
|
42
42
|
protocol,
|
|
43
43
|
hostname,
|
|
@@ -58,12 +58,12 @@ export const se_CreateSchemaCommand = async (input, context) => {
|
|
|
58
58
|
resolvedPath = __resolvedPath(resolvedPath, input, "RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
59
59
|
resolvedPath = __resolvedPath(resolvedPath, input, "SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
60
60
|
let body;
|
|
61
|
-
body = JSON.stringify({
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
});
|
|
61
|
+
body = JSON.stringify(take(input, {
|
|
62
|
+
Content: [],
|
|
63
|
+
Description: [],
|
|
64
|
+
tags: [, (_) => _json(_), `Tags`],
|
|
65
|
+
Type: [],
|
|
66
|
+
}));
|
|
67
67
|
return new __HttpRequest({
|
|
68
68
|
protocol,
|
|
69
69
|
hostname,
|
|
@@ -292,10 +292,10 @@ export const se_GetDiscoveredSchemaCommand = async (input, context) => {
|
|
|
292
292
|
};
|
|
293
293
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/discover";
|
|
294
294
|
let body;
|
|
295
|
-
body = JSON.stringify({
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
});
|
|
295
|
+
body = JSON.stringify(take(input, {
|
|
296
|
+
Events: (_) => _json(_),
|
|
297
|
+
Type: [],
|
|
298
|
+
}));
|
|
299
299
|
return new __HttpRequest({
|
|
300
300
|
protocol,
|
|
301
301
|
hostname,
|
|
@@ -464,10 +464,10 @@ export const se_PutResourcePolicyCommand = async (input, context) => {
|
|
|
464
464
|
registryName: [, input.RegistryName],
|
|
465
465
|
});
|
|
466
466
|
let body;
|
|
467
|
-
body = JSON.stringify({
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
});
|
|
467
|
+
body = JSON.stringify(take(input, {
|
|
468
|
+
Policy: (_) => __LazyJsonString.fromObject(_),
|
|
469
|
+
RevisionId: [],
|
|
470
|
+
}));
|
|
471
471
|
return new __HttpRequest({
|
|
472
472
|
protocol,
|
|
473
473
|
hostname,
|
|
@@ -542,9 +542,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
542
542
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
543
543
|
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
544
544
|
let body;
|
|
545
|
-
body = JSON.stringify({
|
|
546
|
-
|
|
547
|
-
});
|
|
545
|
+
body = JSON.stringify(take(input, {
|
|
546
|
+
tags: [, (_) => _json(_), `Tags`],
|
|
547
|
+
}));
|
|
548
548
|
return new __HttpRequest({
|
|
549
549
|
protocol,
|
|
550
550
|
hostname,
|
|
@@ -586,10 +586,10 @@ export const se_UpdateDiscovererCommand = async (input, context) => {
|
|
|
586
586
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/discoverers/id/{DiscovererId}";
|
|
587
587
|
resolvedPath = __resolvedPath(resolvedPath, input, "DiscovererId", () => input.DiscovererId, "{DiscovererId}", false);
|
|
588
588
|
let body;
|
|
589
|
-
body = JSON.stringify({
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
});
|
|
589
|
+
body = JSON.stringify(take(input, {
|
|
590
|
+
CrossAccount: [],
|
|
591
|
+
Description: [],
|
|
592
|
+
}));
|
|
593
593
|
return new __HttpRequest({
|
|
594
594
|
protocol,
|
|
595
595
|
hostname,
|
|
@@ -608,9 +608,9 @@ export const se_UpdateRegistryCommand = async (input, context) => {
|
|
|
608
608
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/registries/name/{RegistryName}";
|
|
609
609
|
resolvedPath = __resolvedPath(resolvedPath, input, "RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
610
610
|
let body;
|
|
611
|
-
body = JSON.stringify({
|
|
612
|
-
|
|
613
|
-
});
|
|
611
|
+
body = JSON.stringify(take(input, {
|
|
612
|
+
Description: [],
|
|
613
|
+
}));
|
|
614
614
|
return new __HttpRequest({
|
|
615
615
|
protocol,
|
|
616
616
|
hostname,
|
|
@@ -631,12 +631,12 @@ export const se_UpdateSchemaCommand = async (input, context) => {
|
|
|
631
631
|
resolvedPath = __resolvedPath(resolvedPath, input, "RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
632
632
|
resolvedPath = __resolvedPath(resolvedPath, input, "SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
633
633
|
let body;
|
|
634
|
-
body = JSON.stringify({
|
|
635
|
-
ClientTokenId:
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
});
|
|
634
|
+
body = JSON.stringify(take(input, {
|
|
635
|
+
ClientTokenId: (_) => _ ?? generateIdempotencyToken(),
|
|
636
|
+
Content: [],
|
|
637
|
+
Description: [],
|
|
638
|
+
Type: [],
|
|
639
|
+
}));
|
|
640
640
|
return new __HttpRequest({
|
|
641
641
|
protocol,
|
|
642
642
|
hostname,
|
|
@@ -655,27 +655,16 @@ export const de_CreateDiscovererCommand = async (output, context) => {
|
|
|
655
655
|
$metadata: deserializeMetadata(output),
|
|
656
656
|
});
|
|
657
657
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
contents.DiscovererId = __expectString(data.DiscovererId);
|
|
669
|
-
}
|
|
670
|
-
if (data.SourceArn != null) {
|
|
671
|
-
contents.SourceArn = __expectString(data.SourceArn);
|
|
672
|
-
}
|
|
673
|
-
if (data.State != null) {
|
|
674
|
-
contents.State = __expectString(data.State);
|
|
675
|
-
}
|
|
676
|
-
if (data.tags != null) {
|
|
677
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
678
|
-
}
|
|
658
|
+
const doc = take(data, {
|
|
659
|
+
CrossAccount: __expectBoolean,
|
|
660
|
+
Description: __expectString,
|
|
661
|
+
DiscovererArn: __expectString,
|
|
662
|
+
DiscovererId: __expectString,
|
|
663
|
+
SourceArn: __expectString,
|
|
664
|
+
State: __expectString,
|
|
665
|
+
Tags: [, _json, `tags`],
|
|
666
|
+
});
|
|
667
|
+
Object.assign(contents, doc);
|
|
679
668
|
return contents;
|
|
680
669
|
};
|
|
681
670
|
const de_CreateDiscovererCommandError = async (output, context) => {
|
|
@@ -705,10 +694,9 @@ const de_CreateDiscovererCommandError = async (output, context) => {
|
|
|
705
694
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
706
695
|
default:
|
|
707
696
|
const parsedBody = parsedOutput.body;
|
|
708
|
-
throwDefaultError({
|
|
697
|
+
return throwDefaultError({
|
|
709
698
|
output,
|
|
710
699
|
parsedBody,
|
|
711
|
-
exceptionCtor: __BaseException,
|
|
712
700
|
errorCode,
|
|
713
701
|
});
|
|
714
702
|
}
|
|
@@ -721,18 +709,13 @@ export const de_CreateRegistryCommand = async (output, context) => {
|
|
|
721
709
|
$metadata: deserializeMetadata(output),
|
|
722
710
|
});
|
|
723
711
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
contents.RegistryName = __expectString(data.RegistryName);
|
|
732
|
-
}
|
|
733
|
-
if (data.tags != null) {
|
|
734
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
735
|
-
}
|
|
712
|
+
const doc = take(data, {
|
|
713
|
+
Description: __expectString,
|
|
714
|
+
RegistryArn: __expectString,
|
|
715
|
+
RegistryName: __expectString,
|
|
716
|
+
Tags: [, _json, `tags`],
|
|
717
|
+
});
|
|
718
|
+
Object.assign(contents, doc);
|
|
736
719
|
return contents;
|
|
737
720
|
};
|
|
738
721
|
const de_CreateRegistryCommandError = async (output, context) => {
|
|
@@ -762,10 +745,9 @@ const de_CreateRegistryCommandError = async (output, context) => {
|
|
|
762
745
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
763
746
|
default:
|
|
764
747
|
const parsedBody = parsedOutput.body;
|
|
765
|
-
throwDefaultError({
|
|
748
|
+
return throwDefaultError({
|
|
766
749
|
output,
|
|
767
750
|
parsedBody,
|
|
768
|
-
exceptionCtor: __BaseException,
|
|
769
751
|
errorCode,
|
|
770
752
|
});
|
|
771
753
|
}
|
|
@@ -778,30 +760,17 @@ export const de_CreateSchemaCommand = async (output, context) => {
|
|
|
778
760
|
$metadata: deserializeMetadata(output),
|
|
779
761
|
});
|
|
780
762
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
}
|
|
793
|
-
if (data.SchemaVersion != null) {
|
|
794
|
-
contents.SchemaVersion = __expectString(data.SchemaVersion);
|
|
795
|
-
}
|
|
796
|
-
if (data.tags != null) {
|
|
797
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
798
|
-
}
|
|
799
|
-
if (data.Type != null) {
|
|
800
|
-
contents.Type = __expectString(data.Type);
|
|
801
|
-
}
|
|
802
|
-
if (data.VersionCreatedDate != null) {
|
|
803
|
-
contents.VersionCreatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.VersionCreatedDate));
|
|
804
|
-
}
|
|
763
|
+
const doc = take(data, {
|
|
764
|
+
Description: __expectString,
|
|
765
|
+
LastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
766
|
+
SchemaArn: __expectString,
|
|
767
|
+
SchemaName: __expectString,
|
|
768
|
+
SchemaVersion: __expectString,
|
|
769
|
+
Tags: [, _json, `tags`],
|
|
770
|
+
Type: __expectString,
|
|
771
|
+
VersionCreatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
772
|
+
});
|
|
773
|
+
Object.assign(contents, doc);
|
|
805
774
|
return contents;
|
|
806
775
|
};
|
|
807
776
|
const de_CreateSchemaCommandError = async (output, context) => {
|
|
@@ -825,10 +794,9 @@ const de_CreateSchemaCommandError = async (output, context) => {
|
|
|
825
794
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
826
795
|
default:
|
|
827
796
|
const parsedBody = parsedOutput.body;
|
|
828
|
-
throwDefaultError({
|
|
797
|
+
return throwDefaultError({
|
|
829
798
|
output,
|
|
830
799
|
parsedBody,
|
|
831
|
-
exceptionCtor: __BaseException,
|
|
832
800
|
errorCode,
|
|
833
801
|
});
|
|
834
802
|
}
|
|
@@ -870,10 +838,9 @@ const de_DeleteDiscovererCommandError = async (output, context) => {
|
|
|
870
838
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
871
839
|
default:
|
|
872
840
|
const parsedBody = parsedOutput.body;
|
|
873
|
-
throwDefaultError({
|
|
841
|
+
return throwDefaultError({
|
|
874
842
|
output,
|
|
875
843
|
parsedBody,
|
|
876
|
-
exceptionCtor: __BaseException,
|
|
877
844
|
errorCode,
|
|
878
845
|
});
|
|
879
846
|
}
|
|
@@ -915,10 +882,9 @@ const de_DeleteRegistryCommandError = async (output, context) => {
|
|
|
915
882
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
916
883
|
default:
|
|
917
884
|
const parsedBody = parsedOutput.body;
|
|
918
|
-
throwDefaultError({
|
|
885
|
+
return throwDefaultError({
|
|
919
886
|
output,
|
|
920
887
|
parsedBody,
|
|
921
|
-
exceptionCtor: __BaseException,
|
|
922
888
|
errorCode,
|
|
923
889
|
});
|
|
924
890
|
}
|
|
@@ -960,10 +926,9 @@ const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
|
960
926
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
961
927
|
default:
|
|
962
928
|
const parsedBody = parsedOutput.body;
|
|
963
|
-
throwDefaultError({
|
|
929
|
+
return throwDefaultError({
|
|
964
930
|
output,
|
|
965
931
|
parsedBody,
|
|
966
|
-
exceptionCtor: __BaseException,
|
|
967
932
|
errorCode,
|
|
968
933
|
});
|
|
969
934
|
}
|
|
@@ -1005,10 +970,9 @@ const de_DeleteSchemaCommandError = async (output, context) => {
|
|
|
1005
970
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1006
971
|
default:
|
|
1007
972
|
const parsedBody = parsedOutput.body;
|
|
1008
|
-
throwDefaultError({
|
|
973
|
+
return throwDefaultError({
|
|
1009
974
|
output,
|
|
1010
975
|
parsedBody,
|
|
1011
|
-
exceptionCtor: __BaseException,
|
|
1012
976
|
errorCode,
|
|
1013
977
|
});
|
|
1014
978
|
}
|
|
@@ -1050,10 +1014,9 @@ const de_DeleteSchemaVersionCommandError = async (output, context) => {
|
|
|
1050
1014
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1051
1015
|
default:
|
|
1052
1016
|
const parsedBody = parsedOutput.body;
|
|
1053
|
-
throwDefaultError({
|
|
1017
|
+
return throwDefaultError({
|
|
1054
1018
|
output,
|
|
1055
1019
|
parsedBody,
|
|
1056
|
-
exceptionCtor: __BaseException,
|
|
1057
1020
|
errorCode,
|
|
1058
1021
|
});
|
|
1059
1022
|
}
|
|
@@ -1066,18 +1029,13 @@ export const de_DescribeCodeBindingCommand = async (output, context) => {
|
|
|
1066
1029
|
$metadata: deserializeMetadata(output),
|
|
1067
1030
|
});
|
|
1068
1031
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1076
|
-
contents.SchemaVersion = __expectString(data.SchemaVersion);
|
|
1077
|
-
}
|
|
1078
|
-
if (data.Status != null) {
|
|
1079
|
-
contents.Status = __expectString(data.Status);
|
|
1080
|
-
}
|
|
1032
|
+
const doc = take(data, {
|
|
1033
|
+
CreationDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1034
|
+
LastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1035
|
+
SchemaVersion: __expectString,
|
|
1036
|
+
Status: __expectString,
|
|
1037
|
+
});
|
|
1038
|
+
Object.assign(contents, doc);
|
|
1081
1039
|
return contents;
|
|
1082
1040
|
};
|
|
1083
1041
|
const de_DescribeCodeBindingCommandError = async (output, context) => {
|
|
@@ -1107,10 +1065,9 @@ const de_DescribeCodeBindingCommandError = async (output, context) => {
|
|
|
1107
1065
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1108
1066
|
default:
|
|
1109
1067
|
const parsedBody = parsedOutput.body;
|
|
1110
|
-
throwDefaultError({
|
|
1068
|
+
return throwDefaultError({
|
|
1111
1069
|
output,
|
|
1112
1070
|
parsedBody,
|
|
1113
|
-
exceptionCtor: __BaseException,
|
|
1114
1071
|
errorCode,
|
|
1115
1072
|
});
|
|
1116
1073
|
}
|
|
@@ -1123,27 +1080,16 @@ export const de_DescribeDiscovererCommand = async (output, context) => {
|
|
|
1123
1080
|
$metadata: deserializeMetadata(output),
|
|
1124
1081
|
});
|
|
1125
1082
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
}
|
|
1135
|
-
|
|
1136
|
-
contents.DiscovererId = __expectString(data.DiscovererId);
|
|
1137
|
-
}
|
|
1138
|
-
if (data.SourceArn != null) {
|
|
1139
|
-
contents.SourceArn = __expectString(data.SourceArn);
|
|
1140
|
-
}
|
|
1141
|
-
if (data.State != null) {
|
|
1142
|
-
contents.State = __expectString(data.State);
|
|
1143
|
-
}
|
|
1144
|
-
if (data.tags != null) {
|
|
1145
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
1146
|
-
}
|
|
1083
|
+
const doc = take(data, {
|
|
1084
|
+
CrossAccount: __expectBoolean,
|
|
1085
|
+
Description: __expectString,
|
|
1086
|
+
DiscovererArn: __expectString,
|
|
1087
|
+
DiscovererId: __expectString,
|
|
1088
|
+
SourceArn: __expectString,
|
|
1089
|
+
State: __expectString,
|
|
1090
|
+
Tags: [, _json, `tags`],
|
|
1091
|
+
});
|
|
1092
|
+
Object.assign(contents, doc);
|
|
1147
1093
|
return contents;
|
|
1148
1094
|
};
|
|
1149
1095
|
const de_DescribeDiscovererCommandError = async (output, context) => {
|
|
@@ -1173,10 +1119,9 @@ const de_DescribeDiscovererCommandError = async (output, context) => {
|
|
|
1173
1119
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1174
1120
|
default:
|
|
1175
1121
|
const parsedBody = parsedOutput.body;
|
|
1176
|
-
throwDefaultError({
|
|
1122
|
+
return throwDefaultError({
|
|
1177
1123
|
output,
|
|
1178
1124
|
parsedBody,
|
|
1179
|
-
exceptionCtor: __BaseException,
|
|
1180
1125
|
errorCode,
|
|
1181
1126
|
});
|
|
1182
1127
|
}
|
|
@@ -1189,18 +1134,13 @@ export const de_DescribeRegistryCommand = async (output, context) => {
|
|
|
1189
1134
|
$metadata: deserializeMetadata(output),
|
|
1190
1135
|
});
|
|
1191
1136
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
}
|
|
1198
|
-
|
|
1199
|
-
contents.RegistryName = __expectString(data.RegistryName);
|
|
1200
|
-
}
|
|
1201
|
-
if (data.tags != null) {
|
|
1202
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
1203
|
-
}
|
|
1137
|
+
const doc = take(data, {
|
|
1138
|
+
Description: __expectString,
|
|
1139
|
+
RegistryArn: __expectString,
|
|
1140
|
+
RegistryName: __expectString,
|
|
1141
|
+
Tags: [, _json, `tags`],
|
|
1142
|
+
});
|
|
1143
|
+
Object.assign(contents, doc);
|
|
1204
1144
|
return contents;
|
|
1205
1145
|
};
|
|
1206
1146
|
const de_DescribeRegistryCommandError = async (output, context) => {
|
|
@@ -1230,10 +1170,9 @@ const de_DescribeRegistryCommandError = async (output, context) => {
|
|
|
1230
1170
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1231
1171
|
default:
|
|
1232
1172
|
const parsedBody = parsedOutput.body;
|
|
1233
|
-
throwDefaultError({
|
|
1173
|
+
return throwDefaultError({
|
|
1234
1174
|
output,
|
|
1235
1175
|
parsedBody,
|
|
1236
|
-
exceptionCtor: __BaseException,
|
|
1237
1176
|
errorCode,
|
|
1238
1177
|
});
|
|
1239
1178
|
}
|
|
@@ -1246,33 +1185,18 @@ export const de_DescribeSchemaCommand = async (output, context) => {
|
|
|
1246
1185
|
$metadata: deserializeMetadata(output),
|
|
1247
1186
|
});
|
|
1248
1187
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
if (data.SchemaName != null) {
|
|
1262
|
-
contents.SchemaName = __expectString(data.SchemaName);
|
|
1263
|
-
}
|
|
1264
|
-
if (data.SchemaVersion != null) {
|
|
1265
|
-
contents.SchemaVersion = __expectString(data.SchemaVersion);
|
|
1266
|
-
}
|
|
1267
|
-
if (data.tags != null) {
|
|
1268
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
1269
|
-
}
|
|
1270
|
-
if (data.Type != null) {
|
|
1271
|
-
contents.Type = __expectString(data.Type);
|
|
1272
|
-
}
|
|
1273
|
-
if (data.VersionCreatedDate != null) {
|
|
1274
|
-
contents.VersionCreatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.VersionCreatedDate));
|
|
1275
|
-
}
|
|
1188
|
+
const doc = take(data, {
|
|
1189
|
+
Content: __expectString,
|
|
1190
|
+
Description: __expectString,
|
|
1191
|
+
LastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1192
|
+
SchemaArn: __expectString,
|
|
1193
|
+
SchemaName: __expectString,
|
|
1194
|
+
SchemaVersion: __expectString,
|
|
1195
|
+
Tags: [, _json, `tags`],
|
|
1196
|
+
Type: __expectString,
|
|
1197
|
+
VersionCreatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1198
|
+
});
|
|
1199
|
+
Object.assign(contents, doc);
|
|
1276
1200
|
return contents;
|
|
1277
1201
|
};
|
|
1278
1202
|
const de_DescribeSchemaCommandError = async (output, context) => {
|
|
@@ -1302,10 +1226,9 @@ const de_DescribeSchemaCommandError = async (output, context) => {
|
|
|
1302
1226
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1303
1227
|
default:
|
|
1304
1228
|
const parsedBody = parsedOutput.body;
|
|
1305
|
-
throwDefaultError({
|
|
1229
|
+
return throwDefaultError({
|
|
1306
1230
|
output,
|
|
1307
1231
|
parsedBody,
|
|
1308
|
-
exceptionCtor: __BaseException,
|
|
1309
1232
|
errorCode,
|
|
1310
1233
|
});
|
|
1311
1234
|
}
|
|
@@ -1318,21 +1241,14 @@ export const de_ExportSchemaCommand = async (output, context) => {
|
|
|
1318
1241
|
$metadata: deserializeMetadata(output),
|
|
1319
1242
|
});
|
|
1320
1243
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
}
|
|
1330
|
-
if (data.SchemaVersion != null) {
|
|
1331
|
-
contents.SchemaVersion = __expectString(data.SchemaVersion);
|
|
1332
|
-
}
|
|
1333
|
-
if (data.Type != null) {
|
|
1334
|
-
contents.Type = __expectString(data.Type);
|
|
1335
|
-
}
|
|
1244
|
+
const doc = take(data, {
|
|
1245
|
+
Content: __expectString,
|
|
1246
|
+
SchemaArn: __expectString,
|
|
1247
|
+
SchemaName: __expectString,
|
|
1248
|
+
SchemaVersion: __expectString,
|
|
1249
|
+
Type: __expectString,
|
|
1250
|
+
});
|
|
1251
|
+
Object.assign(contents, doc);
|
|
1336
1252
|
return contents;
|
|
1337
1253
|
};
|
|
1338
1254
|
const de_ExportSchemaCommandError = async (output, context) => {
|
|
@@ -1365,10 +1281,9 @@ const de_ExportSchemaCommandError = async (output, context) => {
|
|
|
1365
1281
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1366
1282
|
default:
|
|
1367
1283
|
const parsedBody = parsedOutput.body;
|
|
1368
|
-
throwDefaultError({
|
|
1284
|
+
return throwDefaultError({
|
|
1369
1285
|
output,
|
|
1370
1286
|
parsedBody,
|
|
1371
|
-
exceptionCtor: __BaseException,
|
|
1372
1287
|
errorCode,
|
|
1373
1288
|
});
|
|
1374
1289
|
}
|
|
@@ -1411,10 +1326,9 @@ const de_GetCodeBindingSourceCommandError = async (output, context) => {
|
|
|
1411
1326
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1412
1327
|
default:
|
|
1413
1328
|
const parsedBody = parsedOutput.body;
|
|
1414
|
-
throwDefaultError({
|
|
1329
|
+
return throwDefaultError({
|
|
1415
1330
|
output,
|
|
1416
1331
|
parsedBody,
|
|
1417
|
-
exceptionCtor: __BaseException,
|
|
1418
1332
|
errorCode,
|
|
1419
1333
|
});
|
|
1420
1334
|
}
|
|
@@ -1427,9 +1341,10 @@ export const de_GetDiscoveredSchemaCommand = async (output, context) => {
|
|
|
1427
1341
|
$metadata: deserializeMetadata(output),
|
|
1428
1342
|
});
|
|
1429
1343
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
}
|
|
1344
|
+
const doc = take(data, {
|
|
1345
|
+
Content: __expectString,
|
|
1346
|
+
});
|
|
1347
|
+
Object.assign(contents, doc);
|
|
1433
1348
|
return contents;
|
|
1434
1349
|
};
|
|
1435
1350
|
const de_GetDiscoveredSchemaCommandError = async (output, context) => {
|
|
@@ -1456,10 +1371,9 @@ const de_GetDiscoveredSchemaCommandError = async (output, context) => {
|
|
|
1456
1371
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1457
1372
|
default:
|
|
1458
1373
|
const parsedBody = parsedOutput.body;
|
|
1459
|
-
throwDefaultError({
|
|
1374
|
+
return throwDefaultError({
|
|
1460
1375
|
output,
|
|
1461
1376
|
parsedBody,
|
|
1462
|
-
exceptionCtor: __BaseException,
|
|
1463
1377
|
errorCode,
|
|
1464
1378
|
});
|
|
1465
1379
|
}
|
|
@@ -1472,12 +1386,11 @@ export const de_GetResourcePolicyCommand = async (output, context) => {
|
|
|
1472
1386
|
$metadata: deserializeMetadata(output),
|
|
1473
1387
|
});
|
|
1474
1388
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
}
|
|
1389
|
+
const doc = take(data, {
|
|
1390
|
+
Policy: (_) => new __LazyJsonString(_),
|
|
1391
|
+
RevisionId: __expectString,
|
|
1392
|
+
});
|
|
1393
|
+
Object.assign(contents, doc);
|
|
1481
1394
|
return contents;
|
|
1482
1395
|
};
|
|
1483
1396
|
const de_GetResourcePolicyCommandError = async (output, context) => {
|
|
@@ -1507,10 +1420,9 @@ const de_GetResourcePolicyCommandError = async (output, context) => {
|
|
|
1507
1420
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1508
1421
|
default:
|
|
1509
1422
|
const parsedBody = parsedOutput.body;
|
|
1510
|
-
throwDefaultError({
|
|
1423
|
+
return throwDefaultError({
|
|
1511
1424
|
output,
|
|
1512
1425
|
parsedBody,
|
|
1513
|
-
exceptionCtor: __BaseException,
|
|
1514
1426
|
errorCode,
|
|
1515
1427
|
});
|
|
1516
1428
|
}
|
|
@@ -1523,12 +1435,11 @@ export const de_ListDiscoverersCommand = async (output, context) => {
|
|
|
1523
1435
|
$metadata: deserializeMetadata(output),
|
|
1524
1436
|
});
|
|
1525
1437
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
}
|
|
1438
|
+
const doc = take(data, {
|
|
1439
|
+
Discoverers: (_) => de___listOfDiscovererSummary(_, context),
|
|
1440
|
+
NextToken: __expectString,
|
|
1441
|
+
});
|
|
1442
|
+
Object.assign(contents, doc);
|
|
1532
1443
|
return contents;
|
|
1533
1444
|
};
|
|
1534
1445
|
const de_ListDiscoverersCommandError = async (output, context) => {
|
|
@@ -1555,10 +1466,9 @@ const de_ListDiscoverersCommandError = async (output, context) => {
|
|
|
1555
1466
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1556
1467
|
default:
|
|
1557
1468
|
const parsedBody = parsedOutput.body;
|
|
1558
|
-
throwDefaultError({
|
|
1469
|
+
return throwDefaultError({
|
|
1559
1470
|
output,
|
|
1560
1471
|
parsedBody,
|
|
1561
|
-
exceptionCtor: __BaseException,
|
|
1562
1472
|
errorCode,
|
|
1563
1473
|
});
|
|
1564
1474
|
}
|
|
@@ -1571,12 +1481,11 @@ export const de_ListRegistriesCommand = async (output, context) => {
|
|
|
1571
1481
|
$metadata: deserializeMetadata(output),
|
|
1572
1482
|
});
|
|
1573
1483
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
}
|
|
1484
|
+
const doc = take(data, {
|
|
1485
|
+
NextToken: __expectString,
|
|
1486
|
+
Registries: (_) => de___listOfRegistrySummary(_, context),
|
|
1487
|
+
});
|
|
1488
|
+
Object.assign(contents, doc);
|
|
1580
1489
|
return contents;
|
|
1581
1490
|
};
|
|
1582
1491
|
const de_ListRegistriesCommandError = async (output, context) => {
|
|
@@ -1603,10 +1512,9 @@ const de_ListRegistriesCommandError = async (output, context) => {
|
|
|
1603
1512
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1604
1513
|
default:
|
|
1605
1514
|
const parsedBody = parsedOutput.body;
|
|
1606
|
-
throwDefaultError({
|
|
1515
|
+
return throwDefaultError({
|
|
1607
1516
|
output,
|
|
1608
1517
|
parsedBody,
|
|
1609
|
-
exceptionCtor: __BaseException,
|
|
1610
1518
|
errorCode,
|
|
1611
1519
|
});
|
|
1612
1520
|
}
|
|
@@ -1619,12 +1527,11 @@ export const de_ListSchemasCommand = async (output, context) => {
|
|
|
1619
1527
|
$metadata: deserializeMetadata(output),
|
|
1620
1528
|
});
|
|
1621
1529
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
}
|
|
1530
|
+
const doc = take(data, {
|
|
1531
|
+
NextToken: __expectString,
|
|
1532
|
+
Schemas: (_) => de___listOfSchemaSummary(_, context),
|
|
1533
|
+
});
|
|
1534
|
+
Object.assign(contents, doc);
|
|
1628
1535
|
return contents;
|
|
1629
1536
|
};
|
|
1630
1537
|
const de_ListSchemasCommandError = async (output, context) => {
|
|
@@ -1651,10 +1558,9 @@ const de_ListSchemasCommandError = async (output, context) => {
|
|
|
1651
1558
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1652
1559
|
default:
|
|
1653
1560
|
const parsedBody = parsedOutput.body;
|
|
1654
|
-
throwDefaultError({
|
|
1561
|
+
return throwDefaultError({
|
|
1655
1562
|
output,
|
|
1656
1563
|
parsedBody,
|
|
1657
|
-
exceptionCtor: __BaseException,
|
|
1658
1564
|
errorCode,
|
|
1659
1565
|
});
|
|
1660
1566
|
}
|
|
@@ -1667,12 +1573,11 @@ export const de_ListSchemaVersionsCommand = async (output, context) => {
|
|
|
1667
1573
|
$metadata: deserializeMetadata(output),
|
|
1668
1574
|
});
|
|
1669
1575
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
}
|
|
1576
|
+
const doc = take(data, {
|
|
1577
|
+
NextToken: __expectString,
|
|
1578
|
+
SchemaVersions: _json,
|
|
1579
|
+
});
|
|
1580
|
+
Object.assign(contents, doc);
|
|
1676
1581
|
return contents;
|
|
1677
1582
|
};
|
|
1678
1583
|
const de_ListSchemaVersionsCommandError = async (output, context) => {
|
|
@@ -1702,10 +1607,9 @@ const de_ListSchemaVersionsCommandError = async (output, context) => {
|
|
|
1702
1607
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1703
1608
|
default:
|
|
1704
1609
|
const parsedBody = parsedOutput.body;
|
|
1705
|
-
throwDefaultError({
|
|
1610
|
+
return throwDefaultError({
|
|
1706
1611
|
output,
|
|
1707
1612
|
parsedBody,
|
|
1708
|
-
exceptionCtor: __BaseException,
|
|
1709
1613
|
errorCode,
|
|
1710
1614
|
});
|
|
1711
1615
|
}
|
|
@@ -1718,9 +1622,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1718
1622
|
$metadata: deserializeMetadata(output),
|
|
1719
1623
|
});
|
|
1720
1624
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
}
|
|
1625
|
+
const doc = take(data, {
|
|
1626
|
+
Tags: [, _json, `tags`],
|
|
1627
|
+
});
|
|
1628
|
+
Object.assign(contents, doc);
|
|
1724
1629
|
return contents;
|
|
1725
1630
|
};
|
|
1726
1631
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1744,10 +1649,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1744
1649
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1745
1650
|
default:
|
|
1746
1651
|
const parsedBody = parsedOutput.body;
|
|
1747
|
-
throwDefaultError({
|
|
1652
|
+
return throwDefaultError({
|
|
1748
1653
|
output,
|
|
1749
1654
|
parsedBody,
|
|
1750
|
-
exceptionCtor: __BaseException,
|
|
1751
1655
|
errorCode,
|
|
1752
1656
|
});
|
|
1753
1657
|
}
|
|
@@ -1760,18 +1664,13 @@ export const de_PutCodeBindingCommand = async (output, context) => {
|
|
|
1760
1664
|
$metadata: deserializeMetadata(output),
|
|
1761
1665
|
});
|
|
1762
1666
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
}
|
|
1769
|
-
|
|
1770
|
-
contents.SchemaVersion = __expectString(data.SchemaVersion);
|
|
1771
|
-
}
|
|
1772
|
-
if (data.Status != null) {
|
|
1773
|
-
contents.Status = __expectString(data.Status);
|
|
1774
|
-
}
|
|
1667
|
+
const doc = take(data, {
|
|
1668
|
+
CreationDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1669
|
+
LastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1670
|
+
SchemaVersion: __expectString,
|
|
1671
|
+
Status: __expectString,
|
|
1672
|
+
});
|
|
1673
|
+
Object.assign(contents, doc);
|
|
1775
1674
|
return contents;
|
|
1776
1675
|
};
|
|
1777
1676
|
const de_PutCodeBindingCommandError = async (output, context) => {
|
|
@@ -1804,10 +1703,9 @@ const de_PutCodeBindingCommandError = async (output, context) => {
|
|
|
1804
1703
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1805
1704
|
default:
|
|
1806
1705
|
const parsedBody = parsedOutput.body;
|
|
1807
|
-
throwDefaultError({
|
|
1706
|
+
return throwDefaultError({
|
|
1808
1707
|
output,
|
|
1809
1708
|
parsedBody,
|
|
1810
|
-
exceptionCtor: __BaseException,
|
|
1811
1709
|
errorCode,
|
|
1812
1710
|
});
|
|
1813
1711
|
}
|
|
@@ -1820,12 +1718,11 @@ export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
|
1820
1718
|
$metadata: deserializeMetadata(output),
|
|
1821
1719
|
});
|
|
1822
1720
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
}
|
|
1721
|
+
const doc = take(data, {
|
|
1722
|
+
Policy: (_) => new __LazyJsonString(_),
|
|
1723
|
+
RevisionId: __expectString,
|
|
1724
|
+
});
|
|
1725
|
+
Object.assign(contents, doc);
|
|
1829
1726
|
return contents;
|
|
1830
1727
|
};
|
|
1831
1728
|
const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
@@ -1858,10 +1755,9 @@ const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
|
1858
1755
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1859
1756
|
default:
|
|
1860
1757
|
const parsedBody = parsedOutput.body;
|
|
1861
|
-
throwDefaultError({
|
|
1758
|
+
return throwDefaultError({
|
|
1862
1759
|
output,
|
|
1863
1760
|
parsedBody,
|
|
1864
|
-
exceptionCtor: __BaseException,
|
|
1865
1761
|
errorCode,
|
|
1866
1762
|
});
|
|
1867
1763
|
}
|
|
@@ -1874,12 +1770,11 @@ export const de_SearchSchemasCommand = async (output, context) => {
|
|
|
1874
1770
|
$metadata: deserializeMetadata(output),
|
|
1875
1771
|
});
|
|
1876
1772
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
}
|
|
1773
|
+
const doc = take(data, {
|
|
1774
|
+
NextToken: __expectString,
|
|
1775
|
+
Schemas: (_) => de___listOfSearchSchemaSummary(_, context),
|
|
1776
|
+
});
|
|
1777
|
+
Object.assign(contents, doc);
|
|
1883
1778
|
return contents;
|
|
1884
1779
|
};
|
|
1885
1780
|
const de_SearchSchemasCommandError = async (output, context) => {
|
|
@@ -1906,10 +1801,9 @@ const de_SearchSchemasCommandError = async (output, context) => {
|
|
|
1906
1801
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1907
1802
|
default:
|
|
1908
1803
|
const parsedBody = parsedOutput.body;
|
|
1909
|
-
throwDefaultError({
|
|
1804
|
+
return throwDefaultError({
|
|
1910
1805
|
output,
|
|
1911
1806
|
parsedBody,
|
|
1912
|
-
exceptionCtor: __BaseException,
|
|
1913
1807
|
errorCode,
|
|
1914
1808
|
});
|
|
1915
1809
|
}
|
|
@@ -1922,12 +1816,11 @@ export const de_StartDiscovererCommand = async (output, context) => {
|
|
|
1922
1816
|
$metadata: deserializeMetadata(output),
|
|
1923
1817
|
});
|
|
1924
1818
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
}
|
|
1819
|
+
const doc = take(data, {
|
|
1820
|
+
DiscovererId: __expectString,
|
|
1821
|
+
State: __expectString,
|
|
1822
|
+
});
|
|
1823
|
+
Object.assign(contents, doc);
|
|
1931
1824
|
return contents;
|
|
1932
1825
|
};
|
|
1933
1826
|
const de_StartDiscovererCommandError = async (output, context) => {
|
|
@@ -1957,10 +1850,9 @@ const de_StartDiscovererCommandError = async (output, context) => {
|
|
|
1957
1850
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1958
1851
|
default:
|
|
1959
1852
|
const parsedBody = parsedOutput.body;
|
|
1960
|
-
throwDefaultError({
|
|
1853
|
+
return throwDefaultError({
|
|
1961
1854
|
output,
|
|
1962
1855
|
parsedBody,
|
|
1963
|
-
exceptionCtor: __BaseException,
|
|
1964
1856
|
errorCode,
|
|
1965
1857
|
});
|
|
1966
1858
|
}
|
|
@@ -1973,12 +1865,11 @@ export const de_StopDiscovererCommand = async (output, context) => {
|
|
|
1973
1865
|
$metadata: deserializeMetadata(output),
|
|
1974
1866
|
});
|
|
1975
1867
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
}
|
|
1868
|
+
const doc = take(data, {
|
|
1869
|
+
DiscovererId: __expectString,
|
|
1870
|
+
State: __expectString,
|
|
1871
|
+
});
|
|
1872
|
+
Object.assign(contents, doc);
|
|
1982
1873
|
return contents;
|
|
1983
1874
|
};
|
|
1984
1875
|
const de_StopDiscovererCommandError = async (output, context) => {
|
|
@@ -2008,10 +1899,9 @@ const de_StopDiscovererCommandError = async (output, context) => {
|
|
|
2008
1899
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2009
1900
|
default:
|
|
2010
1901
|
const parsedBody = parsedOutput.body;
|
|
2011
|
-
throwDefaultError({
|
|
1902
|
+
return throwDefaultError({
|
|
2012
1903
|
output,
|
|
2013
1904
|
parsedBody,
|
|
2014
|
-
exceptionCtor: __BaseException,
|
|
2015
1905
|
errorCode,
|
|
2016
1906
|
});
|
|
2017
1907
|
}
|
|
@@ -2047,10 +1937,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
2047
1937
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2048
1938
|
default:
|
|
2049
1939
|
const parsedBody = parsedOutput.body;
|
|
2050
|
-
throwDefaultError({
|
|
1940
|
+
return throwDefaultError({
|
|
2051
1941
|
output,
|
|
2052
1942
|
parsedBody,
|
|
2053
|
-
exceptionCtor: __BaseException,
|
|
2054
1943
|
errorCode,
|
|
2055
1944
|
});
|
|
2056
1945
|
}
|
|
@@ -2086,10 +1975,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2086
1975
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2087
1976
|
default:
|
|
2088
1977
|
const parsedBody = parsedOutput.body;
|
|
2089
|
-
throwDefaultError({
|
|
1978
|
+
return throwDefaultError({
|
|
2090
1979
|
output,
|
|
2091
1980
|
parsedBody,
|
|
2092
|
-
exceptionCtor: __BaseException,
|
|
2093
1981
|
errorCode,
|
|
2094
1982
|
});
|
|
2095
1983
|
}
|
|
@@ -2102,27 +1990,16 @@ export const de_UpdateDiscovererCommand = async (output, context) => {
|
|
|
2102
1990
|
$metadata: deserializeMetadata(output),
|
|
2103
1991
|
});
|
|
2104
1992
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
}
|
|
2114
|
-
|
|
2115
|
-
contents.DiscovererId = __expectString(data.DiscovererId);
|
|
2116
|
-
}
|
|
2117
|
-
if (data.SourceArn != null) {
|
|
2118
|
-
contents.SourceArn = __expectString(data.SourceArn);
|
|
2119
|
-
}
|
|
2120
|
-
if (data.State != null) {
|
|
2121
|
-
contents.State = __expectString(data.State);
|
|
2122
|
-
}
|
|
2123
|
-
if (data.tags != null) {
|
|
2124
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
2125
|
-
}
|
|
1993
|
+
const doc = take(data, {
|
|
1994
|
+
CrossAccount: __expectBoolean,
|
|
1995
|
+
Description: __expectString,
|
|
1996
|
+
DiscovererArn: __expectString,
|
|
1997
|
+
DiscovererId: __expectString,
|
|
1998
|
+
SourceArn: __expectString,
|
|
1999
|
+
State: __expectString,
|
|
2000
|
+
Tags: [, _json, `tags`],
|
|
2001
|
+
});
|
|
2002
|
+
Object.assign(contents, doc);
|
|
2126
2003
|
return contents;
|
|
2127
2004
|
};
|
|
2128
2005
|
const de_UpdateDiscovererCommandError = async (output, context) => {
|
|
@@ -2152,10 +2029,9 @@ const de_UpdateDiscovererCommandError = async (output, context) => {
|
|
|
2152
2029
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2153
2030
|
default:
|
|
2154
2031
|
const parsedBody = parsedOutput.body;
|
|
2155
|
-
throwDefaultError({
|
|
2032
|
+
return throwDefaultError({
|
|
2156
2033
|
output,
|
|
2157
2034
|
parsedBody,
|
|
2158
|
-
exceptionCtor: __BaseException,
|
|
2159
2035
|
errorCode,
|
|
2160
2036
|
});
|
|
2161
2037
|
}
|
|
@@ -2168,18 +2044,13 @@ export const de_UpdateRegistryCommand = async (output, context) => {
|
|
|
2168
2044
|
$metadata: deserializeMetadata(output),
|
|
2169
2045
|
});
|
|
2170
2046
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
}
|
|
2177
|
-
|
|
2178
|
-
contents.RegistryName = __expectString(data.RegistryName);
|
|
2179
|
-
}
|
|
2180
|
-
if (data.tags != null) {
|
|
2181
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
2182
|
-
}
|
|
2047
|
+
const doc = take(data, {
|
|
2048
|
+
Description: __expectString,
|
|
2049
|
+
RegistryArn: __expectString,
|
|
2050
|
+
RegistryName: __expectString,
|
|
2051
|
+
Tags: [, _json, `tags`],
|
|
2052
|
+
});
|
|
2053
|
+
Object.assign(contents, doc);
|
|
2183
2054
|
return contents;
|
|
2184
2055
|
};
|
|
2185
2056
|
const de_UpdateRegistryCommandError = async (output, context) => {
|
|
@@ -2209,10 +2080,9 @@ const de_UpdateRegistryCommandError = async (output, context) => {
|
|
|
2209
2080
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2210
2081
|
default:
|
|
2211
2082
|
const parsedBody = parsedOutput.body;
|
|
2212
|
-
throwDefaultError({
|
|
2083
|
+
return throwDefaultError({
|
|
2213
2084
|
output,
|
|
2214
2085
|
parsedBody,
|
|
2215
|
-
exceptionCtor: __BaseException,
|
|
2216
2086
|
errorCode,
|
|
2217
2087
|
});
|
|
2218
2088
|
}
|
|
@@ -2225,30 +2095,17 @@ export const de_UpdateSchemaCommand = async (output, context) => {
|
|
|
2225
2095
|
$metadata: deserializeMetadata(output),
|
|
2226
2096
|
});
|
|
2227
2097
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
}
|
|
2240
|
-
if (data.SchemaVersion != null) {
|
|
2241
|
-
contents.SchemaVersion = __expectString(data.SchemaVersion);
|
|
2242
|
-
}
|
|
2243
|
-
if (data.tags != null) {
|
|
2244
|
-
contents.Tags = de_Tags(data.tags, context);
|
|
2245
|
-
}
|
|
2246
|
-
if (data.Type != null) {
|
|
2247
|
-
contents.Type = __expectString(data.Type);
|
|
2248
|
-
}
|
|
2249
|
-
if (data.VersionCreatedDate != null) {
|
|
2250
|
-
contents.VersionCreatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.VersionCreatedDate));
|
|
2251
|
-
}
|
|
2098
|
+
const doc = take(data, {
|
|
2099
|
+
Description: __expectString,
|
|
2100
|
+
LastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2101
|
+
SchemaArn: __expectString,
|
|
2102
|
+
SchemaName: __expectString,
|
|
2103
|
+
SchemaVersion: __expectString,
|
|
2104
|
+
Tags: [, _json, `tags`],
|
|
2105
|
+
Type: __expectString,
|
|
2106
|
+
VersionCreatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2107
|
+
});
|
|
2108
|
+
Object.assign(contents, doc);
|
|
2252
2109
|
return contents;
|
|
2253
2110
|
};
|
|
2254
2111
|
const de_UpdateSchemaCommandError = async (output, context) => {
|
|
@@ -2275,24 +2132,22 @@ const de_UpdateSchemaCommandError = async (output, context) => {
|
|
|
2275
2132
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2276
2133
|
default:
|
|
2277
2134
|
const parsedBody = parsedOutput.body;
|
|
2278
|
-
throwDefaultError({
|
|
2135
|
+
return throwDefaultError({
|
|
2279
2136
|
output,
|
|
2280
2137
|
parsedBody,
|
|
2281
|
-
exceptionCtor: __BaseException,
|
|
2282
2138
|
errorCode,
|
|
2283
2139
|
});
|
|
2284
2140
|
}
|
|
2285
2141
|
};
|
|
2286
|
-
const
|
|
2142
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
2287
2143
|
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
2288
2144
|
const contents = map({});
|
|
2289
2145
|
const data = parsedOutput.body;
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
}
|
|
2146
|
+
const doc = take(data, {
|
|
2147
|
+
Code: __expectString,
|
|
2148
|
+
Message: __expectString,
|
|
2149
|
+
});
|
|
2150
|
+
Object.assign(contents, doc);
|
|
2296
2151
|
const exception = new BadRequestException({
|
|
2297
2152
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2298
2153
|
...contents,
|
|
@@ -2302,12 +2157,11 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
2302
2157
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2303
2158
|
const contents = map({});
|
|
2304
2159
|
const data = parsedOutput.body;
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
}
|
|
2160
|
+
const doc = take(data, {
|
|
2161
|
+
Code: __expectString,
|
|
2162
|
+
Message: __expectString,
|
|
2163
|
+
});
|
|
2164
|
+
Object.assign(contents, doc);
|
|
2311
2165
|
const exception = new ConflictException({
|
|
2312
2166
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2313
2167
|
...contents,
|
|
@@ -2317,12 +2171,11 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2317
2171
|
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
2318
2172
|
const contents = map({});
|
|
2319
2173
|
const data = parsedOutput.body;
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
}
|
|
2174
|
+
const doc = take(data, {
|
|
2175
|
+
Code: __expectString,
|
|
2176
|
+
Message: __expectString,
|
|
2177
|
+
});
|
|
2178
|
+
Object.assign(contents, doc);
|
|
2326
2179
|
const exception = new ForbiddenException({
|
|
2327
2180
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2328
2181
|
...contents,
|
|
@@ -2332,12 +2185,11 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
|
2332
2185
|
const de_GoneExceptionRes = async (parsedOutput, context) => {
|
|
2333
2186
|
const contents = map({});
|
|
2334
2187
|
const data = parsedOutput.body;
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
}
|
|
2188
|
+
const doc = take(data, {
|
|
2189
|
+
Code: __expectString,
|
|
2190
|
+
Message: __expectString,
|
|
2191
|
+
});
|
|
2192
|
+
Object.assign(contents, doc);
|
|
2341
2193
|
const exception = new GoneException({
|
|
2342
2194
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2343
2195
|
...contents,
|
|
@@ -2347,12 +2199,11 @@ const de_GoneExceptionRes = async (parsedOutput, context) => {
|
|
|
2347
2199
|
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
2348
2200
|
const contents = map({});
|
|
2349
2201
|
const data = parsedOutput.body;
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
}
|
|
2202
|
+
const doc = take(data, {
|
|
2203
|
+
Code: __expectString,
|
|
2204
|
+
Message: __expectString,
|
|
2205
|
+
});
|
|
2206
|
+
Object.assign(contents, doc);
|
|
2356
2207
|
const exception = new InternalServerErrorException({
|
|
2357
2208
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2358
2209
|
...contents,
|
|
@@ -2362,12 +2213,11 @@ const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
2362
2213
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2363
2214
|
const contents = map({});
|
|
2364
2215
|
const data = parsedOutput.body;
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
}
|
|
2216
|
+
const doc = take(data, {
|
|
2217
|
+
Code: __expectString,
|
|
2218
|
+
Message: __expectString,
|
|
2219
|
+
});
|
|
2220
|
+
Object.assign(contents, doc);
|
|
2371
2221
|
const exception = new NotFoundException({
|
|
2372
2222
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2373
2223
|
...contents,
|
|
@@ -2377,12 +2227,11 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2377
2227
|
const de_PreconditionFailedExceptionRes = async (parsedOutput, context) => {
|
|
2378
2228
|
const contents = map({});
|
|
2379
2229
|
const data = parsedOutput.body;
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
}
|
|
2230
|
+
const doc = take(data, {
|
|
2231
|
+
Code: __expectString,
|
|
2232
|
+
Message: __expectString,
|
|
2233
|
+
});
|
|
2234
|
+
Object.assign(contents, doc);
|
|
2386
2235
|
const exception = new PreconditionFailedException({
|
|
2387
2236
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2388
2237
|
...contents,
|
|
@@ -2392,12 +2241,11 @@ const de_PreconditionFailedExceptionRes = async (parsedOutput, context) => {
|
|
|
2392
2241
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
2393
2242
|
const contents = map({});
|
|
2394
2243
|
const data = parsedOutput.body;
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
}
|
|
2244
|
+
const doc = take(data, {
|
|
2245
|
+
Code: __expectString,
|
|
2246
|
+
Message: __expectString,
|
|
2247
|
+
});
|
|
2248
|
+
Object.assign(contents, doc);
|
|
2401
2249
|
const exception = new ServiceUnavailableException({
|
|
2402
2250
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2403
2251
|
...contents,
|
|
@@ -2407,12 +2255,11 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
2407
2255
|
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
2408
2256
|
const contents = map({});
|
|
2409
2257
|
const data = parsedOutput.body;
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
}
|
|
2258
|
+
const doc = take(data, {
|
|
2259
|
+
Code: __expectString,
|
|
2260
|
+
Message: __expectString,
|
|
2261
|
+
});
|
|
2262
|
+
Object.assign(contents, doc);
|
|
2416
2263
|
const exception = new TooManyRequestsException({
|
|
2417
2264
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2418
2265
|
...contents,
|
|
@@ -2422,41 +2269,21 @@ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
|
2422
2269
|
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
2423
2270
|
const contents = map({});
|
|
2424
2271
|
const data = parsedOutput.body;
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
}
|
|
2272
|
+
const doc = take(data, {
|
|
2273
|
+
Code: __expectString,
|
|
2274
|
+
Message: __expectString,
|
|
2275
|
+
});
|
|
2276
|
+
Object.assign(contents, doc);
|
|
2431
2277
|
const exception = new UnauthorizedException({
|
|
2432
2278
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2433
2279
|
...contents,
|
|
2434
2280
|
});
|
|
2435
2281
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2436
2282
|
};
|
|
2437
|
-
const se___listOfGetDiscoveredSchemaVersionItemInput = (input, context) => {
|
|
2438
|
-
return input
|
|
2439
|
-
.filter((e) => e != null)
|
|
2440
|
-
.map((entry) => {
|
|
2441
|
-
return entry;
|
|
2442
|
-
});
|
|
2443
|
-
};
|
|
2444
|
-
const se_Tags = (input, context) => {
|
|
2445
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2446
|
-
if (value === null) {
|
|
2447
|
-
return acc;
|
|
2448
|
-
}
|
|
2449
|
-
acc[key] = value;
|
|
2450
|
-
return acc;
|
|
2451
|
-
}, {});
|
|
2452
|
-
};
|
|
2453
2283
|
const de___listOfDiscovererSummary = (output, context) => {
|
|
2454
2284
|
const retVal = (output || [])
|
|
2455
2285
|
.filter((e) => e != null)
|
|
2456
2286
|
.map((entry) => {
|
|
2457
|
-
if (entry === null) {
|
|
2458
|
-
return null;
|
|
2459
|
-
}
|
|
2460
2287
|
return de_DiscovererSummary(entry, context);
|
|
2461
2288
|
});
|
|
2462
2289
|
return retVal;
|
|
@@ -2465,9 +2292,6 @@ const de___listOfRegistrySummary = (output, context) => {
|
|
|
2465
2292
|
const retVal = (output || [])
|
|
2466
2293
|
.filter((e) => e != null)
|
|
2467
2294
|
.map((entry) => {
|
|
2468
|
-
if (entry === null) {
|
|
2469
|
-
return null;
|
|
2470
|
-
}
|
|
2471
2295
|
return de_RegistrySummary(entry, context);
|
|
2472
2296
|
});
|
|
2473
2297
|
return retVal;
|
|
@@ -2476,31 +2300,14 @@ const de___listOfSchemaSummary = (output, context) => {
|
|
|
2476
2300
|
const retVal = (output || [])
|
|
2477
2301
|
.filter((e) => e != null)
|
|
2478
2302
|
.map((entry) => {
|
|
2479
|
-
if (entry === null) {
|
|
2480
|
-
return null;
|
|
2481
|
-
}
|
|
2482
2303
|
return de_SchemaSummary(entry, context);
|
|
2483
2304
|
});
|
|
2484
2305
|
return retVal;
|
|
2485
2306
|
};
|
|
2486
|
-
const de___listOfSchemaVersionSummary = (output, context) => {
|
|
2487
|
-
const retVal = (output || [])
|
|
2488
|
-
.filter((e) => e != null)
|
|
2489
|
-
.map((entry) => {
|
|
2490
|
-
if (entry === null) {
|
|
2491
|
-
return null;
|
|
2492
|
-
}
|
|
2493
|
-
return de_SchemaVersionSummary(entry, context);
|
|
2494
|
-
});
|
|
2495
|
-
return retVal;
|
|
2496
|
-
};
|
|
2497
2307
|
const de___listOfSearchSchemaSummary = (output, context) => {
|
|
2498
2308
|
const retVal = (output || [])
|
|
2499
2309
|
.filter((e) => e != null)
|
|
2500
2310
|
.map((entry) => {
|
|
2501
|
-
if (entry === null) {
|
|
2502
|
-
return null;
|
|
2503
|
-
}
|
|
2504
2311
|
return de_SearchSchemaSummary(entry, context);
|
|
2505
2312
|
});
|
|
2506
2313
|
return retVal;
|
|
@@ -2509,70 +2316,50 @@ const de___listOfSearchSchemaVersionSummary = (output, context) => {
|
|
|
2509
2316
|
const retVal = (output || [])
|
|
2510
2317
|
.filter((e) => e != null)
|
|
2511
2318
|
.map((entry) => {
|
|
2512
|
-
if (entry === null) {
|
|
2513
|
-
return null;
|
|
2514
|
-
}
|
|
2515
2319
|
return de_SearchSchemaVersionSummary(entry, context);
|
|
2516
2320
|
});
|
|
2517
2321
|
return retVal;
|
|
2518
2322
|
};
|
|
2519
2323
|
const de_DiscovererSummary = (output, context) => {
|
|
2520
|
-
return {
|
|
2521
|
-
CrossAccount: __expectBoolean
|
|
2522
|
-
DiscovererArn: __expectString
|
|
2523
|
-
DiscovererId: __expectString
|
|
2524
|
-
SourceArn: __expectString
|
|
2525
|
-
State: __expectString
|
|
2526
|
-
Tags:
|
|
2527
|
-
};
|
|
2324
|
+
return take(output, {
|
|
2325
|
+
CrossAccount: __expectBoolean,
|
|
2326
|
+
DiscovererArn: __expectString,
|
|
2327
|
+
DiscovererId: __expectString,
|
|
2328
|
+
SourceArn: __expectString,
|
|
2329
|
+
State: __expectString,
|
|
2330
|
+
Tags: [, _json, `tags`],
|
|
2331
|
+
});
|
|
2528
2332
|
};
|
|
2529
2333
|
const de_RegistrySummary = (output, context) => {
|
|
2530
|
-
return {
|
|
2531
|
-
RegistryArn: __expectString
|
|
2532
|
-
RegistryName: __expectString
|
|
2533
|
-
Tags:
|
|
2534
|
-
};
|
|
2334
|
+
return take(output, {
|
|
2335
|
+
RegistryArn: __expectString,
|
|
2336
|
+
RegistryName: __expectString,
|
|
2337
|
+
Tags: [, _json, `tags`],
|
|
2338
|
+
});
|
|
2535
2339
|
};
|
|
2536
2340
|
const de_SchemaSummary = (output, context) => {
|
|
2537
|
-
return {
|
|
2538
|
-
LastModified:
|
|
2539
|
-
SchemaArn: __expectString
|
|
2540
|
-
SchemaName: __expectString
|
|
2541
|
-
Tags:
|
|
2542
|
-
VersionCount: __expectLong
|
|
2543
|
-
};
|
|
2544
|
-
};
|
|
2545
|
-
const de_SchemaVersionSummary = (output, context) => {
|
|
2546
|
-
return {
|
|
2547
|
-
SchemaArn: __expectString(output.SchemaArn),
|
|
2548
|
-
SchemaName: __expectString(output.SchemaName),
|
|
2549
|
-
SchemaVersion: __expectString(output.SchemaVersion),
|
|
2550
|
-
Type: __expectString(output.Type),
|
|
2551
|
-
};
|
|
2341
|
+
return take(output, {
|
|
2342
|
+
LastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2343
|
+
SchemaArn: __expectString,
|
|
2344
|
+
SchemaName: __expectString,
|
|
2345
|
+
Tags: [, _json, `tags`],
|
|
2346
|
+
VersionCount: __expectLong,
|
|
2347
|
+
});
|
|
2552
2348
|
};
|
|
2553
2349
|
const de_SearchSchemaSummary = (output, context) => {
|
|
2554
|
-
return {
|
|
2555
|
-
RegistryName: __expectString
|
|
2556
|
-
SchemaArn: __expectString
|
|
2557
|
-
SchemaName: __expectString
|
|
2558
|
-
SchemaVersions:
|
|
2559
|
-
};
|
|
2350
|
+
return take(output, {
|
|
2351
|
+
RegistryName: __expectString,
|
|
2352
|
+
SchemaArn: __expectString,
|
|
2353
|
+
SchemaName: __expectString,
|
|
2354
|
+
SchemaVersions: (_) => de___listOfSearchSchemaVersionSummary(_, context),
|
|
2355
|
+
});
|
|
2560
2356
|
};
|
|
2561
2357
|
const de_SearchSchemaVersionSummary = (output, context) => {
|
|
2562
|
-
return {
|
|
2563
|
-
CreatedDate:
|
|
2564
|
-
SchemaVersion: __expectString
|
|
2565
|
-
Type: __expectString
|
|
2566
|
-
};
|
|
2567
|
-
};
|
|
2568
|
-
const de_Tags = (output, context) => {
|
|
2569
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2570
|
-
if (value === null) {
|
|
2571
|
-
return acc;
|
|
2572
|
-
}
|
|
2573
|
-
acc[key] = __expectString(value);
|
|
2574
|
-
return acc;
|
|
2575
|
-
}, {});
|
|
2358
|
+
return take(output, {
|
|
2359
|
+
CreatedDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2360
|
+
SchemaVersion: __expectString,
|
|
2361
|
+
Type: __expectString,
|
|
2362
|
+
});
|
|
2576
2363
|
};
|
|
2577
2364
|
const deserializeMetadata = (output) => ({
|
|
2578
2365
|
httpStatusCode: output.statusCode,
|