@aws-sdk/client-chime-sdk-messaging 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 +601 -1202
- package/dist-es/protocols/Aws_restJson1.js +480 -1081
- 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,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { ChimeSDKMessagingServiceException as __BaseException } from "../models/ChimeSDKMessagingServiceException";
|
|
5
5
|
import { BadRequestException, ConflictException, ForbiddenException, NotFoundException, ResourceLimitExceededException, ServiceFailureException, ServiceUnavailableException, ThrottledClientException, UnauthorizedClientException, } from "../models/models_0";
|
|
@@ -12,9 +12,9 @@ export const se_AssociateChannelFlowCommand = async (input, context) => {
|
|
|
12
12
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/channel-flow";
|
|
13
13
|
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
14
14
|
let body;
|
|
15
|
-
body = JSON.stringify({
|
|
16
|
-
|
|
17
|
-
});
|
|
15
|
+
body = JSON.stringify(take(input, {
|
|
16
|
+
ChannelFlowArn: [],
|
|
17
|
+
}));
|
|
18
18
|
return new __HttpRequest({
|
|
19
19
|
protocol,
|
|
20
20
|
hostname,
|
|
@@ -37,11 +37,11 @@ export const se_BatchCreateChannelMembershipCommand = async (input, context) =>
|
|
|
37
37
|
operation: [, "batch-create"],
|
|
38
38
|
});
|
|
39
39
|
let body;
|
|
40
|
-
body = JSON.stringify({
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
});
|
|
40
|
+
body = JSON.stringify(take(input, {
|
|
41
|
+
MemberArns: (_) => _json(_),
|
|
42
|
+
SubChannelId: [],
|
|
43
|
+
Type: [],
|
|
44
|
+
}));
|
|
45
45
|
return new __HttpRequest({
|
|
46
46
|
protocol,
|
|
47
47
|
hostname,
|
|
@@ -64,11 +64,11 @@ export const se_ChannelFlowCallbackCommand = async (input, context) => {
|
|
|
64
64
|
operation: [, "channel-flow-callback"],
|
|
65
65
|
});
|
|
66
66
|
let body;
|
|
67
|
-
body = JSON.stringify({
|
|
68
|
-
CallbackId:
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
});
|
|
67
|
+
body = JSON.stringify(take(input, {
|
|
68
|
+
CallbackId: (_) => _ ?? generateIdempotencyToken(),
|
|
69
|
+
ChannelMessage: (_) => _json(_),
|
|
70
|
+
DeleteResource: [],
|
|
71
|
+
}));
|
|
72
72
|
return new __HttpRequest({
|
|
73
73
|
protocol,
|
|
74
74
|
hostname,
|
|
@@ -88,24 +88,20 @@ export const se_CreateChannelCommand = async (input, context) => {
|
|
|
88
88
|
});
|
|
89
89
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
|
|
90
90
|
let body;
|
|
91
|
-
body = JSON.stringify({
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
ClientRequestToken:
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
...(input.Name != null && { Name: input.Name }),
|
|
106
|
-
...(input.Privacy != null && { Privacy: input.Privacy }),
|
|
107
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
108
|
-
});
|
|
91
|
+
body = JSON.stringify(take(input, {
|
|
92
|
+
AppInstanceArn: [],
|
|
93
|
+
ChannelId: [],
|
|
94
|
+
ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
|
|
95
|
+
ElasticChannelConfiguration: (_) => _json(_),
|
|
96
|
+
ExpirationSettings: (_) => _json(_),
|
|
97
|
+
MemberArns: (_) => _json(_),
|
|
98
|
+
Metadata: [],
|
|
99
|
+
Mode: [],
|
|
100
|
+
ModeratorArns: (_) => _json(_),
|
|
101
|
+
Name: [],
|
|
102
|
+
Privacy: [],
|
|
103
|
+
Tags: (_) => _json(_),
|
|
104
|
+
}));
|
|
109
105
|
return new __HttpRequest({
|
|
110
106
|
protocol,
|
|
111
107
|
hostname,
|
|
@@ -125,9 +121,9 @@ export const se_CreateChannelBanCommand = async (input, context) => {
|
|
|
125
121
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/bans";
|
|
126
122
|
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
127
123
|
let body;
|
|
128
|
-
body = JSON.stringify({
|
|
129
|
-
|
|
130
|
-
});
|
|
124
|
+
body = JSON.stringify(take(input, {
|
|
125
|
+
MemberArn: [],
|
|
126
|
+
}));
|
|
131
127
|
return new __HttpRequest({
|
|
132
128
|
protocol,
|
|
133
129
|
hostname,
|
|
@@ -145,13 +141,13 @@ export const se_CreateChannelFlowCommand = async (input, context) => {
|
|
|
145
141
|
};
|
|
146
142
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel-flows";
|
|
147
143
|
let body;
|
|
148
|
-
body = JSON.stringify({
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
});
|
|
144
|
+
body = JSON.stringify(take(input, {
|
|
145
|
+
AppInstanceArn: [],
|
|
146
|
+
ClientRequestToken: [],
|
|
147
|
+
Name: [],
|
|
148
|
+
Processors: (_) => _json(_),
|
|
149
|
+
Tags: (_) => _json(_),
|
|
150
|
+
}));
|
|
155
151
|
return new __HttpRequest({
|
|
156
152
|
protocol,
|
|
157
153
|
hostname,
|
|
@@ -171,11 +167,11 @@ export const se_CreateChannelMembershipCommand = async (input, context) => {
|
|
|
171
167
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/memberships";
|
|
172
168
|
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
173
169
|
let body;
|
|
174
|
-
body = JSON.stringify({
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
});
|
|
170
|
+
body = JSON.stringify(take(input, {
|
|
171
|
+
MemberArn: [],
|
|
172
|
+
SubChannelId: [],
|
|
173
|
+
Type: [],
|
|
174
|
+
}));
|
|
179
175
|
return new __HttpRequest({
|
|
180
176
|
protocol,
|
|
181
177
|
hostname,
|
|
@@ -195,9 +191,9 @@ export const se_CreateChannelModeratorCommand = async (input, context) => {
|
|
|
195
191
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/moderators";
|
|
196
192
|
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
197
193
|
let body;
|
|
198
|
-
body = JSON.stringify({
|
|
199
|
-
|
|
200
|
-
});
|
|
194
|
+
body = JSON.stringify(take(input, {
|
|
195
|
+
ChannelModeratorArn: [],
|
|
196
|
+
}));
|
|
201
197
|
return new __HttpRequest({
|
|
202
198
|
protocol,
|
|
203
199
|
hostname,
|
|
@@ -888,11 +884,9 @@ export const se_PutChannelExpirationSettingsCommand = async (input, context) =>
|
|
|
888
884
|
"/channels/{ChannelArn}/expiration-settings";
|
|
889
885
|
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
890
886
|
let body;
|
|
891
|
-
body = JSON.stringify({
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
}),
|
|
895
|
-
});
|
|
887
|
+
body = JSON.stringify(take(input, {
|
|
888
|
+
ExpirationSettings: (_) => _json(_),
|
|
889
|
+
}));
|
|
896
890
|
return new __HttpRequest({
|
|
897
891
|
protocol,
|
|
898
892
|
hostname,
|
|
@@ -914,9 +908,9 @@ export const se_PutChannelMembershipPreferencesCommand = async (input, context)
|
|
|
914
908
|
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
915
909
|
resolvedPath = __resolvedPath(resolvedPath, input, "MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
916
910
|
let body;
|
|
917
|
-
body = JSON.stringify({
|
|
918
|
-
|
|
919
|
-
});
|
|
911
|
+
body = JSON.stringify(take(input, {
|
|
912
|
+
Preferences: (_) => _json(_),
|
|
913
|
+
}));
|
|
920
914
|
return new __HttpRequest({
|
|
921
915
|
protocol,
|
|
922
916
|
hostname,
|
|
@@ -936,11 +930,9 @@ export const se_PutMessagingStreamingConfigurationsCommand = async (input, conte
|
|
|
936
930
|
"/app-instances/{AppInstanceArn}/streaming-configurations";
|
|
937
931
|
resolvedPath = __resolvedPath(resolvedPath, input, "AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
938
932
|
let body;
|
|
939
|
-
body = JSON.stringify({
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
}),
|
|
943
|
-
});
|
|
933
|
+
body = JSON.stringify(take(input, {
|
|
934
|
+
StreamingConfigurations: (_) => _json(_),
|
|
935
|
+
}));
|
|
944
936
|
return new __HttpRequest({
|
|
945
937
|
protocol,
|
|
946
938
|
hostname,
|
|
@@ -965,9 +957,9 @@ export const se_RedactChannelMessageCommand = async (input, context) => {
|
|
|
965
957
|
operation: [, "redact"],
|
|
966
958
|
});
|
|
967
959
|
let body;
|
|
968
|
-
body = JSON.stringify({
|
|
969
|
-
|
|
970
|
-
});
|
|
960
|
+
body = JSON.stringify(take(input, {
|
|
961
|
+
SubChannelId: [],
|
|
962
|
+
}));
|
|
971
963
|
return new __HttpRequest({
|
|
972
964
|
protocol,
|
|
973
965
|
hostname,
|
|
@@ -992,9 +984,9 @@ export const se_SearchChannelsCommand = async (input, context) => {
|
|
|
992
984
|
"next-token": [, input.NextToken],
|
|
993
985
|
});
|
|
994
986
|
let body;
|
|
995
|
-
body = JSON.stringify({
|
|
996
|
-
|
|
997
|
-
});
|
|
987
|
+
body = JSON.stringify(take(input, {
|
|
988
|
+
Fields: (_) => _json(_),
|
|
989
|
+
}));
|
|
998
990
|
return new __HttpRequest({
|
|
999
991
|
protocol,
|
|
1000
992
|
hostname,
|
|
@@ -1015,21 +1007,17 @@ export const se_SendChannelMessageCommand = async (input, context) => {
|
|
|
1015
1007
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/messages";
|
|
1016
1008
|
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
1017
1009
|
let body;
|
|
1018
|
-
body = JSON.stringify({
|
|
1019
|
-
ClientRequestToken:
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
}),
|
|
1030
|
-
...(input.SubChannelId != null && { SubChannelId: input.SubChannelId }),
|
|
1031
|
-
...(input.Type != null && { Type: input.Type }),
|
|
1032
|
-
});
|
|
1010
|
+
body = JSON.stringify(take(input, {
|
|
1011
|
+
ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
|
|
1012
|
+
Content: [],
|
|
1013
|
+
ContentType: [],
|
|
1014
|
+
MessageAttributes: (_) => _json(_),
|
|
1015
|
+
Metadata: [],
|
|
1016
|
+
Persistence: [],
|
|
1017
|
+
PushNotification: (_) => _json(_),
|
|
1018
|
+
SubChannelId: [],
|
|
1019
|
+
Type: [],
|
|
1020
|
+
}));
|
|
1033
1021
|
return new __HttpRequest({
|
|
1034
1022
|
protocol,
|
|
1035
1023
|
hostname,
|
|
@@ -1050,10 +1038,10 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
1050
1038
|
operation: [, "tag-resource"],
|
|
1051
1039
|
});
|
|
1052
1040
|
let body;
|
|
1053
|
-
body = JSON.stringify({
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
});
|
|
1041
|
+
body = JSON.stringify(take(input, {
|
|
1042
|
+
ResourceARN: [],
|
|
1043
|
+
Tags: (_) => _json(_),
|
|
1044
|
+
}));
|
|
1057
1045
|
return new __HttpRequest({
|
|
1058
1046
|
protocol,
|
|
1059
1047
|
hostname,
|
|
@@ -1075,10 +1063,10 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
1075
1063
|
operation: [, "untag-resource"],
|
|
1076
1064
|
});
|
|
1077
1065
|
let body;
|
|
1078
|
-
body = JSON.stringify({
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
});
|
|
1066
|
+
body = JSON.stringify(take(input, {
|
|
1067
|
+
ResourceARN: [],
|
|
1068
|
+
TagKeys: (_) => _json(_),
|
|
1069
|
+
}));
|
|
1082
1070
|
return new __HttpRequest({
|
|
1083
1071
|
protocol,
|
|
1084
1072
|
hostname,
|
|
@@ -1099,11 +1087,11 @@ export const se_UpdateChannelCommand = async (input, context) => {
|
|
|
1099
1087
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}";
|
|
1100
1088
|
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
1101
1089
|
let body;
|
|
1102
|
-
body = JSON.stringify({
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
});
|
|
1090
|
+
body = JSON.stringify(take(input, {
|
|
1091
|
+
Metadata: [],
|
|
1092
|
+
Mode: [],
|
|
1093
|
+
Name: [],
|
|
1094
|
+
}));
|
|
1107
1095
|
return new __HttpRequest({
|
|
1108
1096
|
protocol,
|
|
1109
1097
|
hostname,
|
|
@@ -1122,10 +1110,10 @@ export const se_UpdateChannelFlowCommand = async (input, context) => {
|
|
|
1122
1110
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel-flows/{ChannelFlowArn}";
|
|
1123
1111
|
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelFlowArn", () => input.ChannelFlowArn, "{ChannelFlowArn}", false);
|
|
1124
1112
|
let body;
|
|
1125
|
-
body = JSON.stringify({
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
});
|
|
1113
|
+
body = JSON.stringify(take(input, {
|
|
1114
|
+
Name: [],
|
|
1115
|
+
Processors: (_) => _json(_),
|
|
1116
|
+
}));
|
|
1129
1117
|
return new __HttpRequest({
|
|
1130
1118
|
protocol,
|
|
1131
1119
|
hostname,
|
|
@@ -1147,12 +1135,12 @@ export const se_UpdateChannelMessageCommand = async (input, context) => {
|
|
|
1147
1135
|
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
1148
1136
|
resolvedPath = __resolvedPath(resolvedPath, input, "MessageId", () => input.MessageId, "{MessageId}", false);
|
|
1149
1137
|
let body;
|
|
1150
|
-
body = JSON.stringify({
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
});
|
|
1138
|
+
body = JSON.stringify(take(input, {
|
|
1139
|
+
Content: [],
|
|
1140
|
+
ContentType: [],
|
|
1141
|
+
Metadata: [],
|
|
1142
|
+
SubChannelId: [],
|
|
1143
|
+
}));
|
|
1156
1144
|
return new __HttpRequest({
|
|
1157
1145
|
protocol,
|
|
1158
1146
|
hostname,
|
|
@@ -1172,9 +1160,9 @@ export const se_UpdateChannelReadMarkerCommand = async (input, context) => {
|
|
|
1172
1160
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/readMarker";
|
|
1173
1161
|
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
1174
1162
|
let body;
|
|
1175
|
-
body = JSON.stringify({
|
|
1176
|
-
|
|
1177
|
-
});
|
|
1163
|
+
body = JSON.stringify(take(input, {
|
|
1164
|
+
SubChannelId: [],
|
|
1165
|
+
}));
|
|
1178
1166
|
return new __HttpRequest({
|
|
1179
1167
|
protocol,
|
|
1180
1168
|
hostname,
|
|
@@ -1228,10 +1216,9 @@ const de_AssociateChannelFlowCommandError = async (output, context) => {
|
|
|
1228
1216
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1229
1217
|
default:
|
|
1230
1218
|
const parsedBody = parsedOutput.body;
|
|
1231
|
-
throwDefaultError({
|
|
1219
|
+
return throwDefaultError({
|
|
1232
1220
|
output,
|
|
1233
1221
|
parsedBody,
|
|
1234
|
-
exceptionCtor: __BaseException,
|
|
1235
1222
|
errorCode,
|
|
1236
1223
|
});
|
|
1237
1224
|
}
|
|
@@ -1244,12 +1231,11 @@ export const de_BatchCreateChannelMembershipCommand = async (output, context) =>
|
|
|
1244
1231
|
$metadata: deserializeMetadata(output),
|
|
1245
1232
|
});
|
|
1246
1233
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
}
|
|
1234
|
+
const doc = take(data, {
|
|
1235
|
+
BatchChannelMemberships: _json,
|
|
1236
|
+
Errors: _json,
|
|
1237
|
+
});
|
|
1238
|
+
Object.assign(contents, doc);
|
|
1253
1239
|
return contents;
|
|
1254
1240
|
};
|
|
1255
1241
|
const de_BatchCreateChannelMembershipCommandError = async (output, context) => {
|
|
@@ -1285,10 +1271,9 @@ const de_BatchCreateChannelMembershipCommandError = async (output, context) => {
|
|
|
1285
1271
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1286
1272
|
default:
|
|
1287
1273
|
const parsedBody = parsedOutput.body;
|
|
1288
|
-
throwDefaultError({
|
|
1274
|
+
return throwDefaultError({
|
|
1289
1275
|
output,
|
|
1290
1276
|
parsedBody,
|
|
1291
|
-
exceptionCtor: __BaseException,
|
|
1292
1277
|
errorCode,
|
|
1293
1278
|
});
|
|
1294
1279
|
}
|
|
@@ -1301,12 +1286,11 @@ export const de_ChannelFlowCallbackCommand = async (output, context) => {
|
|
|
1301
1286
|
$metadata: deserializeMetadata(output),
|
|
1302
1287
|
});
|
|
1303
1288
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
}
|
|
1289
|
+
const doc = take(data, {
|
|
1290
|
+
CallbackId: __expectString,
|
|
1291
|
+
ChannelArn: __expectString,
|
|
1292
|
+
});
|
|
1293
|
+
Object.assign(contents, doc);
|
|
1310
1294
|
return contents;
|
|
1311
1295
|
};
|
|
1312
1296
|
const de_ChannelFlowCallbackCommandError = async (output, context) => {
|
|
@@ -1339,10 +1323,9 @@ const de_ChannelFlowCallbackCommandError = async (output, context) => {
|
|
|
1339
1323
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1340
1324
|
default:
|
|
1341
1325
|
const parsedBody = parsedOutput.body;
|
|
1342
|
-
throwDefaultError({
|
|
1326
|
+
return throwDefaultError({
|
|
1343
1327
|
output,
|
|
1344
1328
|
parsedBody,
|
|
1345
|
-
exceptionCtor: __BaseException,
|
|
1346
1329
|
errorCode,
|
|
1347
1330
|
});
|
|
1348
1331
|
}
|
|
@@ -1355,9 +1338,10 @@ export const de_CreateChannelCommand = async (output, context) => {
|
|
|
1355
1338
|
$metadata: deserializeMetadata(output),
|
|
1356
1339
|
});
|
|
1357
1340
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
}
|
|
1341
|
+
const doc = take(data, {
|
|
1342
|
+
ChannelArn: __expectString,
|
|
1343
|
+
});
|
|
1344
|
+
Object.assign(contents, doc);
|
|
1361
1345
|
return contents;
|
|
1362
1346
|
};
|
|
1363
1347
|
const de_CreateChannelCommandError = async (output, context) => {
|
|
@@ -1393,10 +1377,9 @@ const de_CreateChannelCommandError = async (output, context) => {
|
|
|
1393
1377
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1394
1378
|
default:
|
|
1395
1379
|
const parsedBody = parsedOutput.body;
|
|
1396
|
-
throwDefaultError({
|
|
1380
|
+
return throwDefaultError({
|
|
1397
1381
|
output,
|
|
1398
1382
|
parsedBody,
|
|
1399
|
-
exceptionCtor: __BaseException,
|
|
1400
1383
|
errorCode,
|
|
1401
1384
|
});
|
|
1402
1385
|
}
|
|
@@ -1409,12 +1392,11 @@ export const de_CreateChannelBanCommand = async (output, context) => {
|
|
|
1409
1392
|
$metadata: deserializeMetadata(output),
|
|
1410
1393
|
});
|
|
1411
1394
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
}
|
|
1395
|
+
const doc = take(data, {
|
|
1396
|
+
ChannelArn: __expectString,
|
|
1397
|
+
Member: _json,
|
|
1398
|
+
});
|
|
1399
|
+
Object.assign(contents, doc);
|
|
1418
1400
|
return contents;
|
|
1419
1401
|
};
|
|
1420
1402
|
const de_CreateChannelBanCommandError = async (output, context) => {
|
|
@@ -1450,10 +1432,9 @@ const de_CreateChannelBanCommandError = async (output, context) => {
|
|
|
1450
1432
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1451
1433
|
default:
|
|
1452
1434
|
const parsedBody = parsedOutput.body;
|
|
1453
|
-
throwDefaultError({
|
|
1435
|
+
return throwDefaultError({
|
|
1454
1436
|
output,
|
|
1455
1437
|
parsedBody,
|
|
1456
|
-
exceptionCtor: __BaseException,
|
|
1457
1438
|
errorCode,
|
|
1458
1439
|
});
|
|
1459
1440
|
}
|
|
@@ -1466,9 +1447,10 @@ export const de_CreateChannelFlowCommand = async (output, context) => {
|
|
|
1466
1447
|
$metadata: deserializeMetadata(output),
|
|
1467
1448
|
});
|
|
1468
1449
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
}
|
|
1450
|
+
const doc = take(data, {
|
|
1451
|
+
ChannelFlowArn: __expectString,
|
|
1452
|
+
});
|
|
1453
|
+
Object.assign(contents, doc);
|
|
1472
1454
|
return contents;
|
|
1473
1455
|
};
|
|
1474
1456
|
const de_CreateChannelFlowCommandError = async (output, context) => {
|
|
@@ -1504,10 +1486,9 @@ const de_CreateChannelFlowCommandError = async (output, context) => {
|
|
|
1504
1486
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1505
1487
|
default:
|
|
1506
1488
|
const parsedBody = parsedOutput.body;
|
|
1507
|
-
throwDefaultError({
|
|
1489
|
+
return throwDefaultError({
|
|
1508
1490
|
output,
|
|
1509
1491
|
parsedBody,
|
|
1510
|
-
exceptionCtor: __BaseException,
|
|
1511
1492
|
errorCode,
|
|
1512
1493
|
});
|
|
1513
1494
|
}
|
|
@@ -1520,15 +1501,12 @@ export const de_CreateChannelMembershipCommand = async (output, context) => {
|
|
|
1520
1501
|
$metadata: deserializeMetadata(output),
|
|
1521
1502
|
});
|
|
1522
1503
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
if (data.SubChannelId != null) {
|
|
1530
|
-
contents.SubChannelId = __expectString(data.SubChannelId);
|
|
1531
|
-
}
|
|
1504
|
+
const doc = take(data, {
|
|
1505
|
+
ChannelArn: __expectString,
|
|
1506
|
+
Member: _json,
|
|
1507
|
+
SubChannelId: __expectString,
|
|
1508
|
+
});
|
|
1509
|
+
Object.assign(contents, doc);
|
|
1532
1510
|
return contents;
|
|
1533
1511
|
};
|
|
1534
1512
|
const de_CreateChannelMembershipCommandError = async (output, context) => {
|
|
@@ -1567,10 +1545,9 @@ const de_CreateChannelMembershipCommandError = async (output, context) => {
|
|
|
1567
1545
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1568
1546
|
default:
|
|
1569
1547
|
const parsedBody = parsedOutput.body;
|
|
1570
|
-
throwDefaultError({
|
|
1548
|
+
return throwDefaultError({
|
|
1571
1549
|
output,
|
|
1572
1550
|
parsedBody,
|
|
1573
|
-
exceptionCtor: __BaseException,
|
|
1574
1551
|
errorCode,
|
|
1575
1552
|
});
|
|
1576
1553
|
}
|
|
@@ -1583,12 +1560,11 @@ export const de_CreateChannelModeratorCommand = async (output, context) => {
|
|
|
1583
1560
|
$metadata: deserializeMetadata(output),
|
|
1584
1561
|
});
|
|
1585
1562
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
}
|
|
1563
|
+
const doc = take(data, {
|
|
1564
|
+
ChannelArn: __expectString,
|
|
1565
|
+
ChannelModerator: _json,
|
|
1566
|
+
});
|
|
1567
|
+
Object.assign(contents, doc);
|
|
1592
1568
|
return contents;
|
|
1593
1569
|
};
|
|
1594
1570
|
const de_CreateChannelModeratorCommandError = async (output, context) => {
|
|
@@ -1624,10 +1600,9 @@ const de_CreateChannelModeratorCommandError = async (output, context) => {
|
|
|
1624
1600
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1625
1601
|
default:
|
|
1626
1602
|
const parsedBody = parsedOutput.body;
|
|
1627
|
-
throwDefaultError({
|
|
1603
|
+
return throwDefaultError({
|
|
1628
1604
|
output,
|
|
1629
1605
|
parsedBody,
|
|
1630
|
-
exceptionCtor: __BaseException,
|
|
1631
1606
|
errorCode,
|
|
1632
1607
|
});
|
|
1633
1608
|
}
|
|
@@ -1669,10 +1644,9 @@ const de_DeleteChannelCommandError = async (output, context) => {
|
|
|
1669
1644
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1670
1645
|
default:
|
|
1671
1646
|
const parsedBody = parsedOutput.body;
|
|
1672
|
-
throwDefaultError({
|
|
1647
|
+
return throwDefaultError({
|
|
1673
1648
|
output,
|
|
1674
1649
|
parsedBody,
|
|
1675
|
-
exceptionCtor: __BaseException,
|
|
1676
1650
|
errorCode,
|
|
1677
1651
|
});
|
|
1678
1652
|
}
|
|
@@ -1714,10 +1688,9 @@ const de_DeleteChannelBanCommandError = async (output, context) => {
|
|
|
1714
1688
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1715
1689
|
default:
|
|
1716
1690
|
const parsedBody = parsedOutput.body;
|
|
1717
|
-
throwDefaultError({
|
|
1691
|
+
return throwDefaultError({
|
|
1718
1692
|
output,
|
|
1719
1693
|
parsedBody,
|
|
1720
|
-
exceptionCtor: __BaseException,
|
|
1721
1694
|
errorCode,
|
|
1722
1695
|
});
|
|
1723
1696
|
}
|
|
@@ -1762,10 +1735,9 @@ const de_DeleteChannelFlowCommandError = async (output, context) => {
|
|
|
1762
1735
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1763
1736
|
default:
|
|
1764
1737
|
const parsedBody = parsedOutput.body;
|
|
1765
|
-
throwDefaultError({
|
|
1738
|
+
return throwDefaultError({
|
|
1766
1739
|
output,
|
|
1767
1740
|
parsedBody,
|
|
1768
|
-
exceptionCtor: __BaseException,
|
|
1769
1741
|
errorCode,
|
|
1770
1742
|
});
|
|
1771
1743
|
}
|
|
@@ -1810,10 +1782,9 @@ const de_DeleteChannelMembershipCommandError = async (output, context) => {
|
|
|
1810
1782
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1811
1783
|
default:
|
|
1812
1784
|
const parsedBody = parsedOutput.body;
|
|
1813
|
-
throwDefaultError({
|
|
1785
|
+
return throwDefaultError({
|
|
1814
1786
|
output,
|
|
1815
1787
|
parsedBody,
|
|
1816
|
-
exceptionCtor: __BaseException,
|
|
1817
1788
|
errorCode,
|
|
1818
1789
|
});
|
|
1819
1790
|
}
|
|
@@ -1855,10 +1826,9 @@ const de_DeleteChannelMessageCommandError = async (output, context) => {
|
|
|
1855
1826
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1856
1827
|
default:
|
|
1857
1828
|
const parsedBody = parsedOutput.body;
|
|
1858
|
-
throwDefaultError({
|
|
1829
|
+
return throwDefaultError({
|
|
1859
1830
|
output,
|
|
1860
1831
|
parsedBody,
|
|
1861
|
-
exceptionCtor: __BaseException,
|
|
1862
1832
|
errorCode,
|
|
1863
1833
|
});
|
|
1864
1834
|
}
|
|
@@ -1900,10 +1870,9 @@ const de_DeleteChannelModeratorCommandError = async (output, context) => {
|
|
|
1900
1870
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1901
1871
|
default:
|
|
1902
1872
|
const parsedBody = parsedOutput.body;
|
|
1903
|
-
throwDefaultError({
|
|
1873
|
+
return throwDefaultError({
|
|
1904
1874
|
output,
|
|
1905
1875
|
parsedBody,
|
|
1906
|
-
exceptionCtor: __BaseException,
|
|
1907
1876
|
errorCode,
|
|
1908
1877
|
});
|
|
1909
1878
|
}
|
|
@@ -1942,10 +1911,9 @@ const de_DeleteMessagingStreamingConfigurationsCommandError = async (output, con
|
|
|
1942
1911
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1943
1912
|
default:
|
|
1944
1913
|
const parsedBody = parsedOutput.body;
|
|
1945
|
-
throwDefaultError({
|
|
1914
|
+
return throwDefaultError({
|
|
1946
1915
|
output,
|
|
1947
1916
|
parsedBody,
|
|
1948
|
-
exceptionCtor: __BaseException,
|
|
1949
1917
|
errorCode,
|
|
1950
1918
|
});
|
|
1951
1919
|
}
|
|
@@ -1958,9 +1926,10 @@ export const de_DescribeChannelCommand = async (output, context) => {
|
|
|
1958
1926
|
$metadata: deserializeMetadata(output),
|
|
1959
1927
|
});
|
|
1960
1928
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
}
|
|
1929
|
+
const doc = take(data, {
|
|
1930
|
+
Channel: (_) => de_Channel(_, context),
|
|
1931
|
+
});
|
|
1932
|
+
Object.assign(contents, doc);
|
|
1964
1933
|
return contents;
|
|
1965
1934
|
};
|
|
1966
1935
|
const de_DescribeChannelCommandError = async (output, context) => {
|
|
@@ -1990,10 +1959,9 @@ const de_DescribeChannelCommandError = async (output, context) => {
|
|
|
1990
1959
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1991
1960
|
default:
|
|
1992
1961
|
const parsedBody = parsedOutput.body;
|
|
1993
|
-
throwDefaultError({
|
|
1962
|
+
return throwDefaultError({
|
|
1994
1963
|
output,
|
|
1995
1964
|
parsedBody,
|
|
1996
|
-
exceptionCtor: __BaseException,
|
|
1997
1965
|
errorCode,
|
|
1998
1966
|
});
|
|
1999
1967
|
}
|
|
@@ -2006,9 +1974,10 @@ export const de_DescribeChannelBanCommand = async (output, context) => {
|
|
|
2006
1974
|
$metadata: deserializeMetadata(output),
|
|
2007
1975
|
});
|
|
2008
1976
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
}
|
|
1977
|
+
const doc = take(data, {
|
|
1978
|
+
ChannelBan: (_) => de_ChannelBan(_, context),
|
|
1979
|
+
});
|
|
1980
|
+
Object.assign(contents, doc);
|
|
2012
1981
|
return contents;
|
|
2013
1982
|
};
|
|
2014
1983
|
const de_DescribeChannelBanCommandError = async (output, context) => {
|
|
@@ -2041,10 +2010,9 @@ const de_DescribeChannelBanCommandError = async (output, context) => {
|
|
|
2041
2010
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2042
2011
|
default:
|
|
2043
2012
|
const parsedBody = parsedOutput.body;
|
|
2044
|
-
throwDefaultError({
|
|
2013
|
+
return throwDefaultError({
|
|
2045
2014
|
output,
|
|
2046
2015
|
parsedBody,
|
|
2047
|
-
exceptionCtor: __BaseException,
|
|
2048
2016
|
errorCode,
|
|
2049
2017
|
});
|
|
2050
2018
|
}
|
|
@@ -2057,9 +2025,10 @@ export const de_DescribeChannelFlowCommand = async (output, context) => {
|
|
|
2057
2025
|
$metadata: deserializeMetadata(output),
|
|
2058
2026
|
});
|
|
2059
2027
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
}
|
|
2028
|
+
const doc = take(data, {
|
|
2029
|
+
ChannelFlow: (_) => de_ChannelFlow(_, context),
|
|
2030
|
+
});
|
|
2031
|
+
Object.assign(contents, doc);
|
|
2063
2032
|
return contents;
|
|
2064
2033
|
};
|
|
2065
2034
|
const de_DescribeChannelFlowCommandError = async (output, context) => {
|
|
@@ -2089,10 +2058,9 @@ const de_DescribeChannelFlowCommandError = async (output, context) => {
|
|
|
2089
2058
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2090
2059
|
default:
|
|
2091
2060
|
const parsedBody = parsedOutput.body;
|
|
2092
|
-
throwDefaultError({
|
|
2061
|
+
return throwDefaultError({
|
|
2093
2062
|
output,
|
|
2094
2063
|
parsedBody,
|
|
2095
|
-
exceptionCtor: __BaseException,
|
|
2096
2064
|
errorCode,
|
|
2097
2065
|
});
|
|
2098
2066
|
}
|
|
@@ -2105,9 +2073,10 @@ export const de_DescribeChannelMembershipCommand = async (output, context) => {
|
|
|
2105
2073
|
$metadata: deserializeMetadata(output),
|
|
2106
2074
|
});
|
|
2107
2075
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
}
|
|
2076
|
+
const doc = take(data, {
|
|
2077
|
+
ChannelMembership: (_) => de_ChannelMembership(_, context),
|
|
2078
|
+
});
|
|
2079
|
+
Object.assign(contents, doc);
|
|
2111
2080
|
return contents;
|
|
2112
2081
|
};
|
|
2113
2082
|
const de_DescribeChannelMembershipCommandError = async (output, context) => {
|
|
@@ -2140,10 +2109,9 @@ const de_DescribeChannelMembershipCommandError = async (output, context) => {
|
|
|
2140
2109
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2141
2110
|
default:
|
|
2142
2111
|
const parsedBody = parsedOutput.body;
|
|
2143
|
-
throwDefaultError({
|
|
2112
|
+
return throwDefaultError({
|
|
2144
2113
|
output,
|
|
2145
2114
|
parsedBody,
|
|
2146
|
-
exceptionCtor: __BaseException,
|
|
2147
2115
|
errorCode,
|
|
2148
2116
|
});
|
|
2149
2117
|
}
|
|
@@ -2156,9 +2124,10 @@ export const de_DescribeChannelMembershipForAppInstanceUserCommand = async (outp
|
|
|
2156
2124
|
$metadata: deserializeMetadata(output),
|
|
2157
2125
|
});
|
|
2158
2126
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
}
|
|
2127
|
+
const doc = take(data, {
|
|
2128
|
+
ChannelMembership: (_) => de_ChannelMembershipForAppInstanceUserSummary(_, context),
|
|
2129
|
+
});
|
|
2130
|
+
Object.assign(contents, doc);
|
|
2162
2131
|
return contents;
|
|
2163
2132
|
};
|
|
2164
2133
|
const de_DescribeChannelMembershipForAppInstanceUserCommandError = async (output, context) => {
|
|
@@ -2188,10 +2157,9 @@ const de_DescribeChannelMembershipForAppInstanceUserCommandError = async (output
|
|
|
2188
2157
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2189
2158
|
default:
|
|
2190
2159
|
const parsedBody = parsedOutput.body;
|
|
2191
|
-
throwDefaultError({
|
|
2160
|
+
return throwDefaultError({
|
|
2192
2161
|
output,
|
|
2193
2162
|
parsedBody,
|
|
2194
|
-
exceptionCtor: __BaseException,
|
|
2195
2163
|
errorCode,
|
|
2196
2164
|
});
|
|
2197
2165
|
}
|
|
@@ -2204,9 +2172,10 @@ export const de_DescribeChannelModeratedByAppInstanceUserCommand = async (output
|
|
|
2204
2172
|
$metadata: deserializeMetadata(output),
|
|
2205
2173
|
});
|
|
2206
2174
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
}
|
|
2175
|
+
const doc = take(data, {
|
|
2176
|
+
Channel: (_) => de_ChannelModeratedByAppInstanceUserSummary(_, context),
|
|
2177
|
+
});
|
|
2178
|
+
Object.assign(contents, doc);
|
|
2210
2179
|
return contents;
|
|
2211
2180
|
};
|
|
2212
2181
|
const de_DescribeChannelModeratedByAppInstanceUserCommandError = async (output, context) => {
|
|
@@ -2236,10 +2205,9 @@ const de_DescribeChannelModeratedByAppInstanceUserCommandError = async (output,
|
|
|
2236
2205
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2237
2206
|
default:
|
|
2238
2207
|
const parsedBody = parsedOutput.body;
|
|
2239
|
-
throwDefaultError({
|
|
2208
|
+
return throwDefaultError({
|
|
2240
2209
|
output,
|
|
2241
2210
|
parsedBody,
|
|
2242
|
-
exceptionCtor: __BaseException,
|
|
2243
2211
|
errorCode,
|
|
2244
2212
|
});
|
|
2245
2213
|
}
|
|
@@ -2252,9 +2220,10 @@ export const de_DescribeChannelModeratorCommand = async (output, context) => {
|
|
|
2252
2220
|
$metadata: deserializeMetadata(output),
|
|
2253
2221
|
});
|
|
2254
2222
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
}
|
|
2223
|
+
const doc = take(data, {
|
|
2224
|
+
ChannelModerator: (_) => de_ChannelModerator(_, context),
|
|
2225
|
+
});
|
|
2226
|
+
Object.assign(contents, doc);
|
|
2258
2227
|
return contents;
|
|
2259
2228
|
};
|
|
2260
2229
|
const de_DescribeChannelModeratorCommandError = async (output, context) => {
|
|
@@ -2287,10 +2256,9 @@ const de_DescribeChannelModeratorCommandError = async (output, context) => {
|
|
|
2287
2256
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2288
2257
|
default:
|
|
2289
2258
|
const parsedBody = parsedOutput.body;
|
|
2290
|
-
throwDefaultError({
|
|
2259
|
+
return throwDefaultError({
|
|
2291
2260
|
output,
|
|
2292
2261
|
parsedBody,
|
|
2293
|
-
exceptionCtor: __BaseException,
|
|
2294
2262
|
errorCode,
|
|
2295
2263
|
});
|
|
2296
2264
|
}
|
|
@@ -2338,10 +2306,9 @@ const de_DisassociateChannelFlowCommandError = async (output, context) => {
|
|
|
2338
2306
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2339
2307
|
default:
|
|
2340
2308
|
const parsedBody = parsedOutput.body;
|
|
2341
|
-
throwDefaultError({
|
|
2309
|
+
return throwDefaultError({
|
|
2342
2310
|
output,
|
|
2343
2311
|
parsedBody,
|
|
2344
|
-
exceptionCtor: __BaseException,
|
|
2345
2312
|
errorCode,
|
|
2346
2313
|
});
|
|
2347
2314
|
}
|
|
@@ -2354,15 +2321,12 @@ export const de_GetChannelMembershipPreferencesCommand = async (output, context)
|
|
|
2354
2321
|
$metadata: deserializeMetadata(output),
|
|
2355
2322
|
});
|
|
2356
2323
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
if (data.Preferences != null) {
|
|
2364
|
-
contents.Preferences = de_ChannelMembershipPreferences(data.Preferences, context);
|
|
2365
|
-
}
|
|
2324
|
+
const doc = take(data, {
|
|
2325
|
+
ChannelArn: __expectString,
|
|
2326
|
+
Member: _json,
|
|
2327
|
+
Preferences: _json,
|
|
2328
|
+
});
|
|
2329
|
+
Object.assign(contents, doc);
|
|
2366
2330
|
return contents;
|
|
2367
2331
|
};
|
|
2368
2332
|
const de_GetChannelMembershipPreferencesCommandError = async (output, context) => {
|
|
@@ -2392,10 +2356,9 @@ const de_GetChannelMembershipPreferencesCommandError = async (output, context) =
|
|
|
2392
2356
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2393
2357
|
default:
|
|
2394
2358
|
const parsedBody = parsedOutput.body;
|
|
2395
|
-
throwDefaultError({
|
|
2359
|
+
return throwDefaultError({
|
|
2396
2360
|
output,
|
|
2397
2361
|
parsedBody,
|
|
2398
|
-
exceptionCtor: __BaseException,
|
|
2399
2362
|
errorCode,
|
|
2400
2363
|
});
|
|
2401
2364
|
}
|
|
@@ -2408,9 +2371,10 @@ export const de_GetChannelMessageCommand = async (output, context) => {
|
|
|
2408
2371
|
$metadata: deserializeMetadata(output),
|
|
2409
2372
|
});
|
|
2410
2373
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
}
|
|
2374
|
+
const doc = take(data, {
|
|
2375
|
+
ChannelMessage: (_) => de_ChannelMessage(_, context),
|
|
2376
|
+
});
|
|
2377
|
+
Object.assign(contents, doc);
|
|
2414
2378
|
return contents;
|
|
2415
2379
|
};
|
|
2416
2380
|
const de_GetChannelMessageCommandError = async (output, context) => {
|
|
@@ -2443,10 +2407,9 @@ const de_GetChannelMessageCommandError = async (output, context) => {
|
|
|
2443
2407
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2444
2408
|
default:
|
|
2445
2409
|
const parsedBody = parsedOutput.body;
|
|
2446
|
-
throwDefaultError({
|
|
2410
|
+
return throwDefaultError({
|
|
2447
2411
|
output,
|
|
2448
2412
|
parsedBody,
|
|
2449
|
-
exceptionCtor: __BaseException,
|
|
2450
2413
|
errorCode,
|
|
2451
2414
|
});
|
|
2452
2415
|
}
|
|
@@ -2459,9 +2422,10 @@ export const de_GetChannelMessageStatusCommand = async (output, context) => {
|
|
|
2459
2422
|
$metadata: deserializeMetadata(output),
|
|
2460
2423
|
});
|
|
2461
2424
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
}
|
|
2425
|
+
const doc = take(data, {
|
|
2426
|
+
Status: _json,
|
|
2427
|
+
});
|
|
2428
|
+
Object.assign(contents, doc);
|
|
2465
2429
|
return contents;
|
|
2466
2430
|
};
|
|
2467
2431
|
const de_GetChannelMessageStatusCommandError = async (output, context) => {
|
|
@@ -2491,10 +2455,9 @@ const de_GetChannelMessageStatusCommandError = async (output, context) => {
|
|
|
2491
2455
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2492
2456
|
default:
|
|
2493
2457
|
const parsedBody = parsedOutput.body;
|
|
2494
|
-
throwDefaultError({
|
|
2458
|
+
return throwDefaultError({
|
|
2495
2459
|
output,
|
|
2496
2460
|
parsedBody,
|
|
2497
|
-
exceptionCtor: __BaseException,
|
|
2498
2461
|
errorCode,
|
|
2499
2462
|
});
|
|
2500
2463
|
}
|
|
@@ -2507,9 +2470,10 @@ export const de_GetMessagingSessionEndpointCommand = async (output, context) =>
|
|
|
2507
2470
|
$metadata: deserializeMetadata(output),
|
|
2508
2471
|
});
|
|
2509
2472
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
}
|
|
2473
|
+
const doc = take(data, {
|
|
2474
|
+
Endpoint: _json,
|
|
2475
|
+
});
|
|
2476
|
+
Object.assign(contents, doc);
|
|
2513
2477
|
return contents;
|
|
2514
2478
|
};
|
|
2515
2479
|
const de_GetMessagingSessionEndpointCommandError = async (output, context) => {
|
|
@@ -2536,10 +2500,9 @@ const de_GetMessagingSessionEndpointCommandError = async (output, context) => {
|
|
|
2536
2500
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2537
2501
|
default:
|
|
2538
2502
|
const parsedBody = parsedOutput.body;
|
|
2539
|
-
throwDefaultError({
|
|
2503
|
+
return throwDefaultError({
|
|
2540
2504
|
output,
|
|
2541
2505
|
parsedBody,
|
|
2542
|
-
exceptionCtor: __BaseException,
|
|
2543
2506
|
errorCode,
|
|
2544
2507
|
});
|
|
2545
2508
|
}
|
|
@@ -2552,9 +2515,10 @@ export const de_GetMessagingStreamingConfigurationsCommand = async (output, cont
|
|
|
2552
2515
|
$metadata: deserializeMetadata(output),
|
|
2553
2516
|
});
|
|
2554
2517
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
}
|
|
2518
|
+
const doc = take(data, {
|
|
2519
|
+
StreamingConfigurations: _json,
|
|
2520
|
+
});
|
|
2521
|
+
Object.assign(contents, doc);
|
|
2558
2522
|
return contents;
|
|
2559
2523
|
};
|
|
2560
2524
|
const de_GetMessagingStreamingConfigurationsCommandError = async (output, context) => {
|
|
@@ -2587,10 +2551,9 @@ const de_GetMessagingStreamingConfigurationsCommandError = async (output, contex
|
|
|
2587
2551
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2588
2552
|
default:
|
|
2589
2553
|
const parsedBody = parsedOutput.body;
|
|
2590
|
-
throwDefaultError({
|
|
2554
|
+
return throwDefaultError({
|
|
2591
2555
|
output,
|
|
2592
2556
|
parsedBody,
|
|
2593
|
-
exceptionCtor: __BaseException,
|
|
2594
2557
|
errorCode,
|
|
2595
2558
|
});
|
|
2596
2559
|
}
|
|
@@ -2603,15 +2566,12 @@ export const de_ListChannelBansCommand = async (output, context) => {
|
|
|
2603
2566
|
$metadata: deserializeMetadata(output),
|
|
2604
2567
|
});
|
|
2605
2568
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
if (data.NextToken != null) {
|
|
2613
|
-
contents.NextToken = __expectString(data.NextToken);
|
|
2614
|
-
}
|
|
2569
|
+
const doc = take(data, {
|
|
2570
|
+
ChannelArn: __expectString,
|
|
2571
|
+
ChannelBans: _json,
|
|
2572
|
+
NextToken: __expectString,
|
|
2573
|
+
});
|
|
2574
|
+
Object.assign(contents, doc);
|
|
2615
2575
|
return contents;
|
|
2616
2576
|
};
|
|
2617
2577
|
const de_ListChannelBansCommandError = async (output, context) => {
|
|
@@ -2641,10 +2601,9 @@ const de_ListChannelBansCommandError = async (output, context) => {
|
|
|
2641
2601
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2642
2602
|
default:
|
|
2643
2603
|
const parsedBody = parsedOutput.body;
|
|
2644
|
-
throwDefaultError({
|
|
2604
|
+
return throwDefaultError({
|
|
2645
2605
|
output,
|
|
2646
2606
|
parsedBody,
|
|
2647
|
-
exceptionCtor: __BaseException,
|
|
2648
2607
|
errorCode,
|
|
2649
2608
|
});
|
|
2650
2609
|
}
|
|
@@ -2657,12 +2616,11 @@ export const de_ListChannelFlowsCommand = async (output, context) => {
|
|
|
2657
2616
|
$metadata: deserializeMetadata(output),
|
|
2658
2617
|
});
|
|
2659
2618
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
}
|
|
2619
|
+
const doc = take(data, {
|
|
2620
|
+
ChannelFlows: _json,
|
|
2621
|
+
NextToken: __expectString,
|
|
2622
|
+
});
|
|
2623
|
+
Object.assign(contents, doc);
|
|
2666
2624
|
return contents;
|
|
2667
2625
|
};
|
|
2668
2626
|
const de_ListChannelFlowsCommandError = async (output, context) => {
|
|
@@ -2692,10 +2650,9 @@ const de_ListChannelFlowsCommandError = async (output, context) => {
|
|
|
2692
2650
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2693
2651
|
default:
|
|
2694
2652
|
const parsedBody = parsedOutput.body;
|
|
2695
|
-
throwDefaultError({
|
|
2653
|
+
return throwDefaultError({
|
|
2696
2654
|
output,
|
|
2697
2655
|
parsedBody,
|
|
2698
|
-
exceptionCtor: __BaseException,
|
|
2699
2656
|
errorCode,
|
|
2700
2657
|
});
|
|
2701
2658
|
}
|
|
@@ -2708,15 +2665,12 @@ export const de_ListChannelMembershipsCommand = async (output, context) => {
|
|
|
2708
2665
|
$metadata: deserializeMetadata(output),
|
|
2709
2666
|
});
|
|
2710
2667
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
if (data.NextToken != null) {
|
|
2718
|
-
contents.NextToken = __expectString(data.NextToken);
|
|
2719
|
-
}
|
|
2668
|
+
const doc = take(data, {
|
|
2669
|
+
ChannelArn: __expectString,
|
|
2670
|
+
ChannelMemberships: _json,
|
|
2671
|
+
NextToken: __expectString,
|
|
2672
|
+
});
|
|
2673
|
+
Object.assign(contents, doc);
|
|
2720
2674
|
return contents;
|
|
2721
2675
|
};
|
|
2722
2676
|
const de_ListChannelMembershipsCommandError = async (output, context) => {
|
|
@@ -2746,10 +2700,9 @@ const de_ListChannelMembershipsCommandError = async (output, context) => {
|
|
|
2746
2700
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2747
2701
|
default:
|
|
2748
2702
|
const parsedBody = parsedOutput.body;
|
|
2749
|
-
throwDefaultError({
|
|
2703
|
+
return throwDefaultError({
|
|
2750
2704
|
output,
|
|
2751
2705
|
parsedBody,
|
|
2752
|
-
exceptionCtor: __BaseException,
|
|
2753
2706
|
errorCode,
|
|
2754
2707
|
});
|
|
2755
2708
|
}
|
|
@@ -2762,12 +2715,11 @@ export const de_ListChannelMembershipsForAppInstanceUserCommand = async (output,
|
|
|
2762
2715
|
$metadata: deserializeMetadata(output),
|
|
2763
2716
|
});
|
|
2764
2717
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
}
|
|
2718
|
+
const doc = take(data, {
|
|
2719
|
+
ChannelMemberships: (_) => de_ChannelMembershipForAppInstanceUserSummaryList(_, context),
|
|
2720
|
+
NextToken: __expectString,
|
|
2721
|
+
});
|
|
2722
|
+
Object.assign(contents, doc);
|
|
2771
2723
|
return contents;
|
|
2772
2724
|
};
|
|
2773
2725
|
const de_ListChannelMembershipsForAppInstanceUserCommandError = async (output, context) => {
|
|
@@ -2797,10 +2749,9 @@ const de_ListChannelMembershipsForAppInstanceUserCommandError = async (output, c
|
|
|
2797
2749
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2798
2750
|
default:
|
|
2799
2751
|
const parsedBody = parsedOutput.body;
|
|
2800
|
-
throwDefaultError({
|
|
2752
|
+
return throwDefaultError({
|
|
2801
2753
|
output,
|
|
2802
2754
|
parsedBody,
|
|
2803
|
-
exceptionCtor: __BaseException,
|
|
2804
2755
|
errorCode,
|
|
2805
2756
|
});
|
|
2806
2757
|
}
|
|
@@ -2813,18 +2764,13 @@ export const de_ListChannelMessagesCommand = async (output, context) => {
|
|
|
2813
2764
|
$metadata: deserializeMetadata(output),
|
|
2814
2765
|
});
|
|
2815
2766
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
}
|
|
2822
|
-
|
|
2823
|
-
contents.NextToken = __expectString(data.NextToken);
|
|
2824
|
-
}
|
|
2825
|
-
if (data.SubChannelId != null) {
|
|
2826
|
-
contents.SubChannelId = __expectString(data.SubChannelId);
|
|
2827
|
-
}
|
|
2767
|
+
const doc = take(data, {
|
|
2768
|
+
ChannelArn: __expectString,
|
|
2769
|
+
ChannelMessages: (_) => de_ChannelMessageSummaryList(_, context),
|
|
2770
|
+
NextToken: __expectString,
|
|
2771
|
+
SubChannelId: __expectString,
|
|
2772
|
+
});
|
|
2773
|
+
Object.assign(contents, doc);
|
|
2828
2774
|
return contents;
|
|
2829
2775
|
};
|
|
2830
2776
|
const de_ListChannelMessagesCommandError = async (output, context) => {
|
|
@@ -2854,10 +2800,9 @@ const de_ListChannelMessagesCommandError = async (output, context) => {
|
|
|
2854
2800
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2855
2801
|
default:
|
|
2856
2802
|
const parsedBody = parsedOutput.body;
|
|
2857
|
-
throwDefaultError({
|
|
2803
|
+
return throwDefaultError({
|
|
2858
2804
|
output,
|
|
2859
2805
|
parsedBody,
|
|
2860
|
-
exceptionCtor: __BaseException,
|
|
2861
2806
|
errorCode,
|
|
2862
2807
|
});
|
|
2863
2808
|
}
|
|
@@ -2870,15 +2815,12 @@ export const de_ListChannelModeratorsCommand = async (output, context) => {
|
|
|
2870
2815
|
$metadata: deserializeMetadata(output),
|
|
2871
2816
|
});
|
|
2872
2817
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
if (data.NextToken != null) {
|
|
2880
|
-
contents.NextToken = __expectString(data.NextToken);
|
|
2881
|
-
}
|
|
2818
|
+
const doc = take(data, {
|
|
2819
|
+
ChannelArn: __expectString,
|
|
2820
|
+
ChannelModerators: _json,
|
|
2821
|
+
NextToken: __expectString,
|
|
2822
|
+
});
|
|
2823
|
+
Object.assign(contents, doc);
|
|
2882
2824
|
return contents;
|
|
2883
2825
|
};
|
|
2884
2826
|
const de_ListChannelModeratorsCommandError = async (output, context) => {
|
|
@@ -2908,10 +2850,9 @@ const de_ListChannelModeratorsCommandError = async (output, context) => {
|
|
|
2908
2850
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2909
2851
|
default:
|
|
2910
2852
|
const parsedBody = parsedOutput.body;
|
|
2911
|
-
throwDefaultError({
|
|
2853
|
+
return throwDefaultError({
|
|
2912
2854
|
output,
|
|
2913
2855
|
parsedBody,
|
|
2914
|
-
exceptionCtor: __BaseException,
|
|
2915
2856
|
errorCode,
|
|
2916
2857
|
});
|
|
2917
2858
|
}
|
|
@@ -2924,12 +2865,11 @@ export const de_ListChannelsCommand = async (output, context) => {
|
|
|
2924
2865
|
$metadata: deserializeMetadata(output),
|
|
2925
2866
|
});
|
|
2926
2867
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
}
|
|
2868
|
+
const doc = take(data, {
|
|
2869
|
+
Channels: (_) => de_ChannelSummaryList(_, context),
|
|
2870
|
+
NextToken: __expectString,
|
|
2871
|
+
});
|
|
2872
|
+
Object.assign(contents, doc);
|
|
2933
2873
|
return contents;
|
|
2934
2874
|
};
|
|
2935
2875
|
const de_ListChannelsCommandError = async (output, context) => {
|
|
@@ -2959,10 +2899,9 @@ const de_ListChannelsCommandError = async (output, context) => {
|
|
|
2959
2899
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2960
2900
|
default:
|
|
2961
2901
|
const parsedBody = parsedOutput.body;
|
|
2962
|
-
throwDefaultError({
|
|
2902
|
+
return throwDefaultError({
|
|
2963
2903
|
output,
|
|
2964
2904
|
parsedBody,
|
|
2965
|
-
exceptionCtor: __BaseException,
|
|
2966
2905
|
errorCode,
|
|
2967
2906
|
});
|
|
2968
2907
|
}
|
|
@@ -2975,12 +2914,11 @@ export const de_ListChannelsAssociatedWithChannelFlowCommand = async (output, co
|
|
|
2975
2914
|
$metadata: deserializeMetadata(output),
|
|
2976
2915
|
});
|
|
2977
2916
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
}
|
|
2917
|
+
const doc = take(data, {
|
|
2918
|
+
Channels: _json,
|
|
2919
|
+
NextToken: __expectString,
|
|
2920
|
+
});
|
|
2921
|
+
Object.assign(contents, doc);
|
|
2984
2922
|
return contents;
|
|
2985
2923
|
};
|
|
2986
2924
|
const de_ListChannelsAssociatedWithChannelFlowCommandError = async (output, context) => {
|
|
@@ -3010,10 +2948,9 @@ const de_ListChannelsAssociatedWithChannelFlowCommandError = async (output, cont
|
|
|
3010
2948
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3011
2949
|
default:
|
|
3012
2950
|
const parsedBody = parsedOutput.body;
|
|
3013
|
-
throwDefaultError({
|
|
2951
|
+
return throwDefaultError({
|
|
3014
2952
|
output,
|
|
3015
2953
|
parsedBody,
|
|
3016
|
-
exceptionCtor: __BaseException,
|
|
3017
2954
|
errorCode,
|
|
3018
2955
|
});
|
|
3019
2956
|
}
|
|
@@ -3026,12 +2963,11 @@ export const de_ListChannelsModeratedByAppInstanceUserCommand = async (output, c
|
|
|
3026
2963
|
$metadata: deserializeMetadata(output),
|
|
3027
2964
|
});
|
|
3028
2965
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
}
|
|
2966
|
+
const doc = take(data, {
|
|
2967
|
+
Channels: (_) => de_ChannelModeratedByAppInstanceUserSummaryList(_, context),
|
|
2968
|
+
NextToken: __expectString,
|
|
2969
|
+
});
|
|
2970
|
+
Object.assign(contents, doc);
|
|
3035
2971
|
return contents;
|
|
3036
2972
|
};
|
|
3037
2973
|
const de_ListChannelsModeratedByAppInstanceUserCommandError = async (output, context) => {
|
|
@@ -3061,10 +2997,9 @@ const de_ListChannelsModeratedByAppInstanceUserCommandError = async (output, con
|
|
|
3061
2997
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3062
2998
|
default:
|
|
3063
2999
|
const parsedBody = parsedOutput.body;
|
|
3064
|
-
throwDefaultError({
|
|
3000
|
+
return throwDefaultError({
|
|
3065
3001
|
output,
|
|
3066
3002
|
parsedBody,
|
|
3067
|
-
exceptionCtor: __BaseException,
|
|
3068
3003
|
errorCode,
|
|
3069
3004
|
});
|
|
3070
3005
|
}
|
|
@@ -3077,15 +3012,12 @@ export const de_ListSubChannelsCommand = async (output, context) => {
|
|
|
3077
3012
|
$metadata: deserializeMetadata(output),
|
|
3078
3013
|
});
|
|
3079
3014
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
if (data.SubChannels != null) {
|
|
3087
|
-
contents.SubChannels = de_SubChannelSummaryList(data.SubChannels, context);
|
|
3088
|
-
}
|
|
3015
|
+
const doc = take(data, {
|
|
3016
|
+
ChannelArn: __expectString,
|
|
3017
|
+
NextToken: __expectString,
|
|
3018
|
+
SubChannels: _json,
|
|
3019
|
+
});
|
|
3020
|
+
Object.assign(contents, doc);
|
|
3089
3021
|
return contents;
|
|
3090
3022
|
};
|
|
3091
3023
|
const de_ListSubChannelsCommandError = async (output, context) => {
|
|
@@ -3115,10 +3047,9 @@ const de_ListSubChannelsCommandError = async (output, context) => {
|
|
|
3115
3047
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3116
3048
|
default:
|
|
3117
3049
|
const parsedBody = parsedOutput.body;
|
|
3118
|
-
throwDefaultError({
|
|
3050
|
+
return throwDefaultError({
|
|
3119
3051
|
output,
|
|
3120
3052
|
parsedBody,
|
|
3121
|
-
exceptionCtor: __BaseException,
|
|
3122
3053
|
errorCode,
|
|
3123
3054
|
});
|
|
3124
3055
|
}
|
|
@@ -3131,9 +3062,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
3131
3062
|
$metadata: deserializeMetadata(output),
|
|
3132
3063
|
});
|
|
3133
3064
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
}
|
|
3065
|
+
const doc = take(data, {
|
|
3066
|
+
Tags: _json,
|
|
3067
|
+
});
|
|
3068
|
+
Object.assign(contents, doc);
|
|
3137
3069
|
return contents;
|
|
3138
3070
|
};
|
|
3139
3071
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -3163,10 +3095,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
3163
3095
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3164
3096
|
default:
|
|
3165
3097
|
const parsedBody = parsedOutput.body;
|
|
3166
|
-
throwDefaultError({
|
|
3098
|
+
return throwDefaultError({
|
|
3167
3099
|
output,
|
|
3168
3100
|
parsedBody,
|
|
3169
|
-
exceptionCtor: __BaseException,
|
|
3170
3101
|
errorCode,
|
|
3171
3102
|
});
|
|
3172
3103
|
}
|
|
@@ -3179,12 +3110,11 @@ export const de_PutChannelExpirationSettingsCommand = async (output, context) =>
|
|
|
3179
3110
|
$metadata: deserializeMetadata(output),
|
|
3180
3111
|
});
|
|
3181
3112
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
}
|
|
3113
|
+
const doc = take(data, {
|
|
3114
|
+
ChannelArn: __expectString,
|
|
3115
|
+
ExpirationSettings: _json,
|
|
3116
|
+
});
|
|
3117
|
+
Object.assign(contents, doc);
|
|
3188
3118
|
return contents;
|
|
3189
3119
|
};
|
|
3190
3120
|
const de_PutChannelExpirationSettingsCommandError = async (output, context) => {
|
|
@@ -3217,10 +3147,9 @@ const de_PutChannelExpirationSettingsCommandError = async (output, context) => {
|
|
|
3217
3147
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3218
3148
|
default:
|
|
3219
3149
|
const parsedBody = parsedOutput.body;
|
|
3220
|
-
throwDefaultError({
|
|
3150
|
+
return throwDefaultError({
|
|
3221
3151
|
output,
|
|
3222
3152
|
parsedBody,
|
|
3223
|
-
exceptionCtor: __BaseException,
|
|
3224
3153
|
errorCode,
|
|
3225
3154
|
});
|
|
3226
3155
|
}
|
|
@@ -3233,15 +3162,12 @@ export const de_PutChannelMembershipPreferencesCommand = async (output, context)
|
|
|
3233
3162
|
$metadata: deserializeMetadata(output),
|
|
3234
3163
|
});
|
|
3235
3164
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
if (data.Preferences != null) {
|
|
3243
|
-
contents.Preferences = de_ChannelMembershipPreferences(data.Preferences, context);
|
|
3244
|
-
}
|
|
3165
|
+
const doc = take(data, {
|
|
3166
|
+
ChannelArn: __expectString,
|
|
3167
|
+
Member: _json,
|
|
3168
|
+
Preferences: _json,
|
|
3169
|
+
});
|
|
3170
|
+
Object.assign(contents, doc);
|
|
3245
3171
|
return contents;
|
|
3246
3172
|
};
|
|
3247
3173
|
const de_PutChannelMembershipPreferencesCommandError = async (output, context) => {
|
|
@@ -3274,10 +3200,9 @@ const de_PutChannelMembershipPreferencesCommandError = async (output, context) =
|
|
|
3274
3200
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3275
3201
|
default:
|
|
3276
3202
|
const parsedBody = parsedOutput.body;
|
|
3277
|
-
throwDefaultError({
|
|
3203
|
+
return throwDefaultError({
|
|
3278
3204
|
output,
|
|
3279
3205
|
parsedBody,
|
|
3280
|
-
exceptionCtor: __BaseException,
|
|
3281
3206
|
errorCode,
|
|
3282
3207
|
});
|
|
3283
3208
|
}
|
|
@@ -3290,9 +3215,10 @@ export const de_PutMessagingStreamingConfigurationsCommand = async (output, cont
|
|
|
3290
3215
|
$metadata: deserializeMetadata(output),
|
|
3291
3216
|
});
|
|
3292
3217
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
}
|
|
3218
|
+
const doc = take(data, {
|
|
3219
|
+
StreamingConfigurations: _json,
|
|
3220
|
+
});
|
|
3221
|
+
Object.assign(contents, doc);
|
|
3296
3222
|
return contents;
|
|
3297
3223
|
};
|
|
3298
3224
|
const de_PutMessagingStreamingConfigurationsCommandError = async (output, context) => {
|
|
@@ -3328,10 +3254,9 @@ const de_PutMessagingStreamingConfigurationsCommandError = async (output, contex
|
|
|
3328
3254
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3329
3255
|
default:
|
|
3330
3256
|
const parsedBody = parsedOutput.body;
|
|
3331
|
-
throwDefaultError({
|
|
3257
|
+
return throwDefaultError({
|
|
3332
3258
|
output,
|
|
3333
3259
|
parsedBody,
|
|
3334
|
-
exceptionCtor: __BaseException,
|
|
3335
3260
|
errorCode,
|
|
3336
3261
|
});
|
|
3337
3262
|
}
|
|
@@ -3344,15 +3269,12 @@ export const de_RedactChannelMessageCommand = async (output, context) => {
|
|
|
3344
3269
|
$metadata: deserializeMetadata(output),
|
|
3345
3270
|
});
|
|
3346
3271
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
if (data.SubChannelId != null) {
|
|
3354
|
-
contents.SubChannelId = __expectString(data.SubChannelId);
|
|
3355
|
-
}
|
|
3272
|
+
const doc = take(data, {
|
|
3273
|
+
ChannelArn: __expectString,
|
|
3274
|
+
MessageId: __expectString,
|
|
3275
|
+
SubChannelId: __expectString,
|
|
3276
|
+
});
|
|
3277
|
+
Object.assign(contents, doc);
|
|
3356
3278
|
return contents;
|
|
3357
3279
|
};
|
|
3358
3280
|
const de_RedactChannelMessageCommandError = async (output, context) => {
|
|
@@ -3385,10 +3307,9 @@ const de_RedactChannelMessageCommandError = async (output, context) => {
|
|
|
3385
3307
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3386
3308
|
default:
|
|
3387
3309
|
const parsedBody = parsedOutput.body;
|
|
3388
|
-
throwDefaultError({
|
|
3310
|
+
return throwDefaultError({
|
|
3389
3311
|
output,
|
|
3390
3312
|
parsedBody,
|
|
3391
|
-
exceptionCtor: __BaseException,
|
|
3392
3313
|
errorCode,
|
|
3393
3314
|
});
|
|
3394
3315
|
}
|
|
@@ -3401,12 +3322,11 @@ export const de_SearchChannelsCommand = async (output, context) => {
|
|
|
3401
3322
|
$metadata: deserializeMetadata(output),
|
|
3402
3323
|
});
|
|
3403
3324
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
}
|
|
3325
|
+
const doc = take(data, {
|
|
3326
|
+
Channels: (_) => de_ChannelSummaryList(_, context),
|
|
3327
|
+
NextToken: __expectString,
|
|
3328
|
+
});
|
|
3329
|
+
Object.assign(contents, doc);
|
|
3410
3330
|
return contents;
|
|
3411
3331
|
};
|
|
3412
3332
|
const de_SearchChannelsCommandError = async (output, context) => {
|
|
@@ -3436,10 +3356,9 @@ const de_SearchChannelsCommandError = async (output, context) => {
|
|
|
3436
3356
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3437
3357
|
default:
|
|
3438
3358
|
const parsedBody = parsedOutput.body;
|
|
3439
|
-
throwDefaultError({
|
|
3359
|
+
return throwDefaultError({
|
|
3440
3360
|
output,
|
|
3441
3361
|
parsedBody,
|
|
3442
|
-
exceptionCtor: __BaseException,
|
|
3443
3362
|
errorCode,
|
|
3444
3363
|
});
|
|
3445
3364
|
}
|
|
@@ -3452,18 +3371,13 @@ export const de_SendChannelMessageCommand = async (output, context) => {
|
|
|
3452
3371
|
$metadata: deserializeMetadata(output),
|
|
3453
3372
|
});
|
|
3454
3373
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
}
|
|
3461
|
-
|
|
3462
|
-
contents.Status = de_ChannelMessageStatusStructure(data.Status, context);
|
|
3463
|
-
}
|
|
3464
|
-
if (data.SubChannelId != null) {
|
|
3465
|
-
contents.SubChannelId = __expectString(data.SubChannelId);
|
|
3466
|
-
}
|
|
3374
|
+
const doc = take(data, {
|
|
3375
|
+
ChannelArn: __expectString,
|
|
3376
|
+
MessageId: __expectString,
|
|
3377
|
+
Status: _json,
|
|
3378
|
+
SubChannelId: __expectString,
|
|
3379
|
+
});
|
|
3380
|
+
Object.assign(contents, doc);
|
|
3467
3381
|
return contents;
|
|
3468
3382
|
};
|
|
3469
3383
|
const de_SendChannelMessageCommandError = async (output, context) => {
|
|
@@ -3496,10 +3410,9 @@ const de_SendChannelMessageCommandError = async (output, context) => {
|
|
|
3496
3410
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3497
3411
|
default:
|
|
3498
3412
|
const parsedBody = parsedOutput.body;
|
|
3499
|
-
throwDefaultError({
|
|
3413
|
+
return throwDefaultError({
|
|
3500
3414
|
output,
|
|
3501
3415
|
parsedBody,
|
|
3502
|
-
exceptionCtor: __BaseException,
|
|
3503
3416
|
errorCode,
|
|
3504
3417
|
});
|
|
3505
3418
|
}
|
|
@@ -3544,10 +3457,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
3544
3457
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3545
3458
|
default:
|
|
3546
3459
|
const parsedBody = parsedOutput.body;
|
|
3547
|
-
throwDefaultError({
|
|
3460
|
+
return throwDefaultError({
|
|
3548
3461
|
output,
|
|
3549
3462
|
parsedBody,
|
|
3550
|
-
exceptionCtor: __BaseException,
|
|
3551
3463
|
errorCode,
|
|
3552
3464
|
});
|
|
3553
3465
|
}
|
|
@@ -3589,10 +3501,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
3589
3501
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3590
3502
|
default:
|
|
3591
3503
|
const parsedBody = parsedOutput.body;
|
|
3592
|
-
throwDefaultError({
|
|
3504
|
+
return throwDefaultError({
|
|
3593
3505
|
output,
|
|
3594
3506
|
parsedBody,
|
|
3595
|
-
exceptionCtor: __BaseException,
|
|
3596
3507
|
errorCode,
|
|
3597
3508
|
});
|
|
3598
3509
|
}
|
|
@@ -3605,9 +3516,10 @@ export const de_UpdateChannelCommand = async (output, context) => {
|
|
|
3605
3516
|
$metadata: deserializeMetadata(output),
|
|
3606
3517
|
});
|
|
3607
3518
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
}
|
|
3519
|
+
const doc = take(data, {
|
|
3520
|
+
ChannelArn: __expectString,
|
|
3521
|
+
});
|
|
3522
|
+
Object.assign(contents, doc);
|
|
3611
3523
|
return contents;
|
|
3612
3524
|
};
|
|
3613
3525
|
const de_UpdateChannelCommandError = async (output, context) => {
|
|
@@ -3640,10 +3552,9 @@ const de_UpdateChannelCommandError = async (output, context) => {
|
|
|
3640
3552
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3641
3553
|
default:
|
|
3642
3554
|
const parsedBody = parsedOutput.body;
|
|
3643
|
-
throwDefaultError({
|
|
3555
|
+
return throwDefaultError({
|
|
3644
3556
|
output,
|
|
3645
3557
|
parsedBody,
|
|
3646
|
-
exceptionCtor: __BaseException,
|
|
3647
3558
|
errorCode,
|
|
3648
3559
|
});
|
|
3649
3560
|
}
|
|
@@ -3656,9 +3567,10 @@ export const de_UpdateChannelFlowCommand = async (output, context) => {
|
|
|
3656
3567
|
$metadata: deserializeMetadata(output),
|
|
3657
3568
|
});
|
|
3658
3569
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
}
|
|
3570
|
+
const doc = take(data, {
|
|
3571
|
+
ChannelFlowArn: __expectString,
|
|
3572
|
+
});
|
|
3573
|
+
Object.assign(contents, doc);
|
|
3662
3574
|
return contents;
|
|
3663
3575
|
};
|
|
3664
3576
|
const de_UpdateChannelFlowCommandError = async (output, context) => {
|
|
@@ -3691,10 +3603,9 @@ const de_UpdateChannelFlowCommandError = async (output, context) => {
|
|
|
3691
3603
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3692
3604
|
default:
|
|
3693
3605
|
const parsedBody = parsedOutput.body;
|
|
3694
|
-
throwDefaultError({
|
|
3606
|
+
return throwDefaultError({
|
|
3695
3607
|
output,
|
|
3696
3608
|
parsedBody,
|
|
3697
|
-
exceptionCtor: __BaseException,
|
|
3698
3609
|
errorCode,
|
|
3699
3610
|
});
|
|
3700
3611
|
}
|
|
@@ -3707,18 +3618,13 @@ export const de_UpdateChannelMessageCommand = async (output, context) => {
|
|
|
3707
3618
|
$metadata: deserializeMetadata(output),
|
|
3708
3619
|
});
|
|
3709
3620
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
}
|
|
3716
|
-
|
|
3717
|
-
contents.Status = de_ChannelMessageStatusStructure(data.Status, context);
|
|
3718
|
-
}
|
|
3719
|
-
if (data.SubChannelId != null) {
|
|
3720
|
-
contents.SubChannelId = __expectString(data.SubChannelId);
|
|
3721
|
-
}
|
|
3621
|
+
const doc = take(data, {
|
|
3622
|
+
ChannelArn: __expectString,
|
|
3623
|
+
MessageId: __expectString,
|
|
3624
|
+
Status: _json,
|
|
3625
|
+
SubChannelId: __expectString,
|
|
3626
|
+
});
|
|
3627
|
+
Object.assign(contents, doc);
|
|
3722
3628
|
return contents;
|
|
3723
3629
|
};
|
|
3724
3630
|
const de_UpdateChannelMessageCommandError = async (output, context) => {
|
|
@@ -3751,10 +3657,9 @@ const de_UpdateChannelMessageCommandError = async (output, context) => {
|
|
|
3751
3657
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3752
3658
|
default:
|
|
3753
3659
|
const parsedBody = parsedOutput.body;
|
|
3754
|
-
throwDefaultError({
|
|
3660
|
+
return throwDefaultError({
|
|
3755
3661
|
output,
|
|
3756
3662
|
parsedBody,
|
|
3757
|
-
exceptionCtor: __BaseException,
|
|
3758
3663
|
errorCode,
|
|
3759
3664
|
});
|
|
3760
3665
|
}
|
|
@@ -3767,12 +3672,11 @@ export const de_UpdateChannelReadMarkerCommand = async (output, context) => {
|
|
|
3767
3672
|
$metadata: deserializeMetadata(output),
|
|
3768
3673
|
});
|
|
3769
3674
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
}
|
|
3675
|
+
const doc = take(data, {
|
|
3676
|
+
ChannelArn: __expectString,
|
|
3677
|
+
SubChannelId: __expectString,
|
|
3678
|
+
});
|
|
3679
|
+
Object.assign(contents, doc);
|
|
3776
3680
|
return contents;
|
|
3777
3681
|
};
|
|
3778
3682
|
const de_UpdateChannelReadMarkerCommandError = async (output, context) => {
|
|
@@ -3805,24 +3709,22 @@ const de_UpdateChannelReadMarkerCommandError = async (output, context) => {
|
|
|
3805
3709
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3806
3710
|
default:
|
|
3807
3711
|
const parsedBody = parsedOutput.body;
|
|
3808
|
-
throwDefaultError({
|
|
3712
|
+
return throwDefaultError({
|
|
3809
3713
|
output,
|
|
3810
3714
|
parsedBody,
|
|
3811
|
-
exceptionCtor: __BaseException,
|
|
3812
3715
|
errorCode,
|
|
3813
3716
|
});
|
|
3814
3717
|
}
|
|
3815
3718
|
};
|
|
3816
|
-
const
|
|
3719
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
3817
3720
|
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
3818
3721
|
const contents = map({});
|
|
3819
3722
|
const data = parsedOutput.body;
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
}
|
|
3723
|
+
const doc = take(data, {
|
|
3724
|
+
Code: __expectString,
|
|
3725
|
+
Message: __expectString,
|
|
3726
|
+
});
|
|
3727
|
+
Object.assign(contents, doc);
|
|
3826
3728
|
const exception = new BadRequestException({
|
|
3827
3729
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3828
3730
|
...contents,
|
|
@@ -3832,12 +3734,11 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
3832
3734
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
3833
3735
|
const contents = map({});
|
|
3834
3736
|
const data = parsedOutput.body;
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
}
|
|
3737
|
+
const doc = take(data, {
|
|
3738
|
+
Code: __expectString,
|
|
3739
|
+
Message: __expectString,
|
|
3740
|
+
});
|
|
3741
|
+
Object.assign(contents, doc);
|
|
3841
3742
|
const exception = new ConflictException({
|
|
3842
3743
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3843
3744
|
...contents,
|
|
@@ -3847,12 +3748,11 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
3847
3748
|
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
3848
3749
|
const contents = map({});
|
|
3849
3750
|
const data = parsedOutput.body;
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
}
|
|
3751
|
+
const doc = take(data, {
|
|
3752
|
+
Code: __expectString,
|
|
3753
|
+
Message: __expectString,
|
|
3754
|
+
});
|
|
3755
|
+
Object.assign(contents, doc);
|
|
3856
3756
|
const exception = new ForbiddenException({
|
|
3857
3757
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3858
3758
|
...contents,
|
|
@@ -3862,12 +3762,11 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
|
3862
3762
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3863
3763
|
const contents = map({});
|
|
3864
3764
|
const data = parsedOutput.body;
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
}
|
|
3765
|
+
const doc = take(data, {
|
|
3766
|
+
Code: __expectString,
|
|
3767
|
+
Message: __expectString,
|
|
3768
|
+
});
|
|
3769
|
+
Object.assign(contents, doc);
|
|
3871
3770
|
const exception = new NotFoundException({
|
|
3872
3771
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3873
3772
|
...contents,
|
|
@@ -3877,12 +3776,11 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
3877
3776
|
const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3878
3777
|
const contents = map({});
|
|
3879
3778
|
const data = parsedOutput.body;
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
}
|
|
3779
|
+
const doc = take(data, {
|
|
3780
|
+
Code: __expectString,
|
|
3781
|
+
Message: __expectString,
|
|
3782
|
+
});
|
|
3783
|
+
Object.assign(contents, doc);
|
|
3886
3784
|
const exception = new ResourceLimitExceededException({
|
|
3887
3785
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3888
3786
|
...contents,
|
|
@@ -3892,12 +3790,11 @@ const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
3892
3790
|
const de_ServiceFailureExceptionRes = async (parsedOutput, context) => {
|
|
3893
3791
|
const contents = map({});
|
|
3894
3792
|
const data = parsedOutput.body;
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
}
|
|
3793
|
+
const doc = take(data, {
|
|
3794
|
+
Code: __expectString,
|
|
3795
|
+
Message: __expectString,
|
|
3796
|
+
});
|
|
3797
|
+
Object.assign(contents, doc);
|
|
3901
3798
|
const exception = new ServiceFailureException({
|
|
3902
3799
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3903
3800
|
...contents,
|
|
@@ -3907,12 +3804,11 @@ const de_ServiceFailureExceptionRes = async (parsedOutput, context) => {
|
|
|
3907
3804
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
3908
3805
|
const contents = map({});
|
|
3909
3806
|
const data = parsedOutput.body;
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
}
|
|
3807
|
+
const doc = take(data, {
|
|
3808
|
+
Code: __expectString,
|
|
3809
|
+
Message: __expectString,
|
|
3810
|
+
});
|
|
3811
|
+
Object.assign(contents, doc);
|
|
3916
3812
|
const exception = new ServiceUnavailableException({
|
|
3917
3813
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3918
3814
|
...contents,
|
|
@@ -3922,12 +3818,11 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
3922
3818
|
const de_ThrottledClientExceptionRes = async (parsedOutput, context) => {
|
|
3923
3819
|
const contents = map({});
|
|
3924
3820
|
const data = parsedOutput.body;
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
}
|
|
3821
|
+
const doc = take(data, {
|
|
3822
|
+
Code: __expectString,
|
|
3823
|
+
Message: __expectString,
|
|
3824
|
+
});
|
|
3825
|
+
Object.assign(contents, doc);
|
|
3931
3826
|
const exception = new ThrottledClientException({
|
|
3932
3827
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3933
3828
|
...contents,
|
|
@@ -3937,660 +3832,164 @@ const de_ThrottledClientExceptionRes = async (parsedOutput, context) => {
|
|
|
3937
3832
|
const de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => {
|
|
3938
3833
|
const contents = map({});
|
|
3939
3834
|
const data = parsedOutput.body;
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
}
|
|
3835
|
+
const doc = take(data, {
|
|
3836
|
+
Code: __expectString,
|
|
3837
|
+
Message: __expectString,
|
|
3838
|
+
});
|
|
3839
|
+
Object.assign(contents, doc);
|
|
3946
3840
|
const exception = new UnauthorizedClientException({
|
|
3947
3841
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3948
3842
|
...contents,
|
|
3949
3843
|
});
|
|
3950
3844
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3951
3845
|
};
|
|
3952
|
-
const se_ChannelMemberArns = (input, context) => {
|
|
3953
|
-
return input
|
|
3954
|
-
.filter((e) => e != null)
|
|
3955
|
-
.map((entry) => {
|
|
3956
|
-
return entry;
|
|
3957
|
-
});
|
|
3958
|
-
};
|
|
3959
|
-
const se_ChannelMembershipPreferences = (input, context) => {
|
|
3960
|
-
return {
|
|
3961
|
-
...(input.PushNotifications != null && {
|
|
3962
|
-
PushNotifications: se_PushNotificationPreferences(input.PushNotifications, context),
|
|
3963
|
-
}),
|
|
3964
|
-
};
|
|
3965
|
-
};
|
|
3966
|
-
const se_ChannelMessageCallback = (input, context) => {
|
|
3967
|
-
return {
|
|
3968
|
-
...(input.Content != null && { Content: input.Content }),
|
|
3969
|
-
...(input.ContentType != null && { ContentType: input.ContentType }),
|
|
3970
|
-
...(input.MessageAttributes != null && {
|
|
3971
|
-
MessageAttributes: se_MessageAttributeMap(input.MessageAttributes, context),
|
|
3972
|
-
}),
|
|
3973
|
-
...(input.MessageId != null && { MessageId: input.MessageId }),
|
|
3974
|
-
...(input.Metadata != null && { Metadata: input.Metadata }),
|
|
3975
|
-
...(input.PushNotification != null && {
|
|
3976
|
-
PushNotification: se_PushNotificationConfiguration(input.PushNotification, context),
|
|
3977
|
-
}),
|
|
3978
|
-
...(input.SubChannelId != null && { SubChannelId: input.SubChannelId }),
|
|
3979
|
-
};
|
|
3980
|
-
};
|
|
3981
|
-
const se_ChannelModeratorArns = (input, context) => {
|
|
3982
|
-
return input
|
|
3983
|
-
.filter((e) => e != null)
|
|
3984
|
-
.map((entry) => {
|
|
3985
|
-
return entry;
|
|
3986
|
-
});
|
|
3987
|
-
};
|
|
3988
|
-
const se_ElasticChannelConfiguration = (input, context) => {
|
|
3989
|
-
return {
|
|
3990
|
-
...(input.MaximumSubChannels != null && { MaximumSubChannels: input.MaximumSubChannels }),
|
|
3991
|
-
...(input.MinimumMembershipPercentage != null && {
|
|
3992
|
-
MinimumMembershipPercentage: input.MinimumMembershipPercentage,
|
|
3993
|
-
}),
|
|
3994
|
-
...(input.TargetMembershipsPerSubChannel != null && {
|
|
3995
|
-
TargetMembershipsPerSubChannel: input.TargetMembershipsPerSubChannel,
|
|
3996
|
-
}),
|
|
3997
|
-
};
|
|
3998
|
-
};
|
|
3999
|
-
const se_ExpirationSettings = (input, context) => {
|
|
4000
|
-
return {
|
|
4001
|
-
...(input.ExpirationCriterion != null && { ExpirationCriterion: input.ExpirationCriterion }),
|
|
4002
|
-
...(input.ExpirationDays != null && { ExpirationDays: input.ExpirationDays }),
|
|
4003
|
-
};
|
|
4004
|
-
};
|
|
4005
|
-
const se_LambdaConfiguration = (input, context) => {
|
|
4006
|
-
return {
|
|
4007
|
-
...(input.InvocationType != null && { InvocationType: input.InvocationType }),
|
|
4008
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4009
|
-
};
|
|
4010
|
-
};
|
|
4011
|
-
const se_MemberArns = (input, context) => {
|
|
4012
|
-
return input
|
|
4013
|
-
.filter((e) => e != null)
|
|
4014
|
-
.map((entry) => {
|
|
4015
|
-
return entry;
|
|
4016
|
-
});
|
|
4017
|
-
};
|
|
4018
|
-
const se_MessageAttributeMap = (input, context) => {
|
|
4019
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
4020
|
-
if (value === null) {
|
|
4021
|
-
return acc;
|
|
4022
|
-
}
|
|
4023
|
-
acc[key] = se_MessageAttributeValue(value, context);
|
|
4024
|
-
return acc;
|
|
4025
|
-
}, {});
|
|
4026
|
-
};
|
|
4027
|
-
const se_MessageAttributeStringValues = (input, context) => {
|
|
4028
|
-
return input
|
|
4029
|
-
.filter((e) => e != null)
|
|
4030
|
-
.map((entry) => {
|
|
4031
|
-
return entry;
|
|
4032
|
-
});
|
|
4033
|
-
};
|
|
4034
|
-
const se_MessageAttributeValue = (input, context) => {
|
|
4035
|
-
return {
|
|
4036
|
-
...(input.StringValues != null && { StringValues: se_MessageAttributeStringValues(input.StringValues, context) }),
|
|
4037
|
-
};
|
|
4038
|
-
};
|
|
4039
|
-
const se_Processor = (input, context) => {
|
|
4040
|
-
return {
|
|
4041
|
-
...(input.Configuration != null && { Configuration: se_ProcessorConfiguration(input.Configuration, context) }),
|
|
4042
|
-
...(input.ExecutionOrder != null && { ExecutionOrder: input.ExecutionOrder }),
|
|
4043
|
-
...(input.FallbackAction != null && { FallbackAction: input.FallbackAction }),
|
|
4044
|
-
...(input.Name != null && { Name: input.Name }),
|
|
4045
|
-
};
|
|
4046
|
-
};
|
|
4047
|
-
const se_ProcessorConfiguration = (input, context) => {
|
|
4048
|
-
return {
|
|
4049
|
-
...(input.Lambda != null && { Lambda: se_LambdaConfiguration(input.Lambda, context) }),
|
|
4050
|
-
};
|
|
4051
|
-
};
|
|
4052
|
-
const se_ProcessorList = (input, context) => {
|
|
4053
|
-
return input
|
|
4054
|
-
.filter((e) => e != null)
|
|
4055
|
-
.map((entry) => {
|
|
4056
|
-
return se_Processor(entry, context);
|
|
4057
|
-
});
|
|
4058
|
-
};
|
|
4059
|
-
const se_PushNotificationConfiguration = (input, context) => {
|
|
4060
|
-
return {
|
|
4061
|
-
...(input.Body != null && { Body: input.Body }),
|
|
4062
|
-
...(input.Title != null && { Title: input.Title }),
|
|
4063
|
-
...(input.Type != null && { Type: input.Type }),
|
|
4064
|
-
};
|
|
4065
|
-
};
|
|
4066
|
-
const se_PushNotificationPreferences = (input, context) => {
|
|
4067
|
-
return {
|
|
4068
|
-
...(input.AllowNotifications != null && { AllowNotifications: input.AllowNotifications }),
|
|
4069
|
-
...(input.FilterRule != null && { FilterRule: input.FilterRule }),
|
|
4070
|
-
};
|
|
4071
|
-
};
|
|
4072
|
-
const se_SearchField = (input, context) => {
|
|
4073
|
-
return {
|
|
4074
|
-
...(input.Key != null && { Key: input.Key }),
|
|
4075
|
-
...(input.Operator != null && { Operator: input.Operator }),
|
|
4076
|
-
...(input.Values != null && { Values: se_SearchFieldValues(input.Values, context) }),
|
|
4077
|
-
};
|
|
4078
|
-
};
|
|
4079
|
-
const se_SearchFields = (input, context) => {
|
|
4080
|
-
return input
|
|
4081
|
-
.filter((e) => e != null)
|
|
4082
|
-
.map((entry) => {
|
|
4083
|
-
return se_SearchField(entry, context);
|
|
4084
|
-
});
|
|
4085
|
-
};
|
|
4086
|
-
const se_SearchFieldValues = (input, context) => {
|
|
4087
|
-
return input
|
|
4088
|
-
.filter((e) => e != null)
|
|
4089
|
-
.map((entry) => {
|
|
4090
|
-
return entry;
|
|
4091
|
-
});
|
|
4092
|
-
};
|
|
4093
|
-
const se_StreamingConfiguration = (input, context) => {
|
|
4094
|
-
return {
|
|
4095
|
-
...(input.DataType != null && { DataType: input.DataType }),
|
|
4096
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4097
|
-
};
|
|
4098
|
-
};
|
|
4099
|
-
const se_StreamingConfigurationList = (input, context) => {
|
|
4100
|
-
return input
|
|
4101
|
-
.filter((e) => e != null)
|
|
4102
|
-
.map((entry) => {
|
|
4103
|
-
return se_StreamingConfiguration(entry, context);
|
|
4104
|
-
});
|
|
4105
|
-
};
|
|
4106
|
-
const se_Tag = (input, context) => {
|
|
4107
|
-
return {
|
|
4108
|
-
...(input.Key != null && { Key: input.Key }),
|
|
4109
|
-
...(input.Value != null && { Value: input.Value }),
|
|
4110
|
-
};
|
|
4111
|
-
};
|
|
4112
|
-
const se_TagKeyList = (input, context) => {
|
|
4113
|
-
return input
|
|
4114
|
-
.filter((e) => e != null)
|
|
4115
|
-
.map((entry) => {
|
|
4116
|
-
return entry;
|
|
4117
|
-
});
|
|
4118
|
-
};
|
|
4119
|
-
const se_TagList = (input, context) => {
|
|
4120
|
-
return input
|
|
4121
|
-
.filter((e) => e != null)
|
|
4122
|
-
.map((entry) => {
|
|
4123
|
-
return se_Tag(entry, context);
|
|
4124
|
-
});
|
|
4125
|
-
};
|
|
4126
3846
|
const de_AppInstanceUserMembershipSummary = (output, context) => {
|
|
4127
|
-
return {
|
|
4128
|
-
ReadMarkerTimestamp:
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
SubChannelId: __expectString(output.SubChannelId),
|
|
4132
|
-
Type: __expectString(output.Type),
|
|
4133
|
-
};
|
|
4134
|
-
};
|
|
4135
|
-
const de_BatchChannelMemberships = (output, context) => {
|
|
4136
|
-
return {
|
|
4137
|
-
ChannelArn: __expectString(output.ChannelArn),
|
|
4138
|
-
InvitedBy: output.InvitedBy != null ? de_Identity(output.InvitedBy, context) : undefined,
|
|
4139
|
-
Members: output.Members != null ? de_Members(output.Members, context) : undefined,
|
|
4140
|
-
SubChannelId: __expectString(output.SubChannelId),
|
|
4141
|
-
Type: __expectString(output.Type),
|
|
4142
|
-
};
|
|
4143
|
-
};
|
|
4144
|
-
const de_BatchCreateChannelMembershipError = (output, context) => {
|
|
4145
|
-
return {
|
|
4146
|
-
ErrorCode: __expectString(output.ErrorCode),
|
|
4147
|
-
ErrorMessage: __expectString(output.ErrorMessage),
|
|
4148
|
-
MemberArn: __expectString(output.MemberArn),
|
|
4149
|
-
};
|
|
4150
|
-
};
|
|
4151
|
-
const de_BatchCreateChannelMembershipErrors = (output, context) => {
|
|
4152
|
-
const retVal = (output || [])
|
|
4153
|
-
.filter((e) => e != null)
|
|
4154
|
-
.map((entry) => {
|
|
4155
|
-
if (entry === null) {
|
|
4156
|
-
return null;
|
|
4157
|
-
}
|
|
4158
|
-
return de_BatchCreateChannelMembershipError(entry, context);
|
|
3847
|
+
return take(output, {
|
|
3848
|
+
ReadMarkerTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3849
|
+
SubChannelId: __expectString,
|
|
3850
|
+
Type: __expectString,
|
|
4159
3851
|
});
|
|
4160
|
-
return retVal;
|
|
4161
3852
|
};
|
|
4162
3853
|
const de_Channel = (output, context) => {
|
|
4163
|
-
return {
|
|
4164
|
-
ChannelArn: __expectString
|
|
4165
|
-
ChannelFlowArn: __expectString
|
|
4166
|
-
CreatedBy:
|
|
4167
|
-
CreatedTimestamp:
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
: undefined,
|
|
4177
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
4178
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
4179
|
-
: undefined,
|
|
4180
|
-
Metadata: __expectString(output.Metadata),
|
|
4181
|
-
Mode: __expectString(output.Mode),
|
|
4182
|
-
Name: __expectString(output.Name),
|
|
4183
|
-
Privacy: __expectString(output.Privacy),
|
|
4184
|
-
};
|
|
4185
|
-
};
|
|
4186
|
-
const de_ChannelAssociatedWithFlowSummary = (output, context) => {
|
|
4187
|
-
return {
|
|
4188
|
-
ChannelArn: __expectString(output.ChannelArn),
|
|
4189
|
-
Metadata: __expectString(output.Metadata),
|
|
4190
|
-
Mode: __expectString(output.Mode),
|
|
4191
|
-
Name: __expectString(output.Name),
|
|
4192
|
-
Privacy: __expectString(output.Privacy),
|
|
4193
|
-
};
|
|
4194
|
-
};
|
|
4195
|
-
const de_ChannelAssociatedWithFlowSummaryList = (output, context) => {
|
|
4196
|
-
const retVal = (output || [])
|
|
4197
|
-
.filter((e) => e != null)
|
|
4198
|
-
.map((entry) => {
|
|
4199
|
-
if (entry === null) {
|
|
4200
|
-
return null;
|
|
4201
|
-
}
|
|
4202
|
-
return de_ChannelAssociatedWithFlowSummary(entry, context);
|
|
3854
|
+
return take(output, {
|
|
3855
|
+
ChannelArn: __expectString,
|
|
3856
|
+
ChannelFlowArn: __expectString,
|
|
3857
|
+
CreatedBy: _json,
|
|
3858
|
+
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3859
|
+
ElasticChannelConfiguration: _json,
|
|
3860
|
+
ExpirationSettings: _json,
|
|
3861
|
+
LastMessageTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3862
|
+
LastUpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3863
|
+
Metadata: __expectString,
|
|
3864
|
+
Mode: __expectString,
|
|
3865
|
+
Name: __expectString,
|
|
3866
|
+
Privacy: __expectString,
|
|
4203
3867
|
});
|
|
4204
|
-
return retVal;
|
|
4205
3868
|
};
|
|
4206
3869
|
const de_ChannelBan = (output, context) => {
|
|
4207
|
-
return {
|
|
4208
|
-
ChannelArn: __expectString
|
|
4209
|
-
CreatedBy:
|
|
4210
|
-
CreatedTimestamp:
|
|
4211
|
-
|
|
4212
|
-
: undefined,
|
|
4213
|
-
Member: output.Member != null ? de_Identity(output.Member, context) : undefined,
|
|
4214
|
-
};
|
|
4215
|
-
};
|
|
4216
|
-
const de_ChannelBanSummary = (output, context) => {
|
|
4217
|
-
return {
|
|
4218
|
-
Member: output.Member != null ? de_Identity(output.Member, context) : undefined,
|
|
4219
|
-
};
|
|
4220
|
-
};
|
|
4221
|
-
const de_ChannelBanSummaryList = (output, context) => {
|
|
4222
|
-
const retVal = (output || [])
|
|
4223
|
-
.filter((e) => e != null)
|
|
4224
|
-
.map((entry) => {
|
|
4225
|
-
if (entry === null) {
|
|
4226
|
-
return null;
|
|
4227
|
-
}
|
|
4228
|
-
return de_ChannelBanSummary(entry, context);
|
|
3870
|
+
return take(output, {
|
|
3871
|
+
ChannelArn: __expectString,
|
|
3872
|
+
CreatedBy: _json,
|
|
3873
|
+
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3874
|
+
Member: _json,
|
|
4229
3875
|
});
|
|
4230
|
-
return retVal;
|
|
4231
3876
|
};
|
|
4232
3877
|
const de_ChannelFlow = (output, context) => {
|
|
4233
|
-
return {
|
|
4234
|
-
ChannelFlowArn: __expectString
|
|
4235
|
-
CreatedTimestamp:
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
4240
|
-
: undefined,
|
|
4241
|
-
Name: __expectString(output.Name),
|
|
4242
|
-
Processors: output.Processors != null ? de_ProcessorList(output.Processors, context) : undefined,
|
|
4243
|
-
};
|
|
4244
|
-
};
|
|
4245
|
-
const de_ChannelFlowSummary = (output, context) => {
|
|
4246
|
-
return {
|
|
4247
|
-
ChannelFlowArn: __expectString(output.ChannelFlowArn),
|
|
4248
|
-
Name: __expectString(output.Name),
|
|
4249
|
-
Processors: output.Processors != null ? de_ProcessorList(output.Processors, context) : undefined,
|
|
4250
|
-
};
|
|
4251
|
-
};
|
|
4252
|
-
const de_ChannelFlowSummaryList = (output, context) => {
|
|
4253
|
-
const retVal = (output || [])
|
|
4254
|
-
.filter((e) => e != null)
|
|
4255
|
-
.map((entry) => {
|
|
4256
|
-
if (entry === null) {
|
|
4257
|
-
return null;
|
|
4258
|
-
}
|
|
4259
|
-
return de_ChannelFlowSummary(entry, context);
|
|
3878
|
+
return take(output, {
|
|
3879
|
+
ChannelFlowArn: __expectString,
|
|
3880
|
+
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3881
|
+
LastUpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3882
|
+
Name: __expectString,
|
|
3883
|
+
Processors: _json,
|
|
4260
3884
|
});
|
|
4261
|
-
return retVal;
|
|
4262
3885
|
};
|
|
4263
3886
|
const de_ChannelMembership = (output, context) => {
|
|
4264
|
-
return {
|
|
4265
|
-
ChannelArn: __expectString
|
|
4266
|
-
CreatedTimestamp:
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
Member: output.Member != null ? de_Identity(output.Member, context) : undefined,
|
|
4274
|
-
SubChannelId: __expectString(output.SubChannelId),
|
|
4275
|
-
Type: __expectString(output.Type),
|
|
4276
|
-
};
|
|
3887
|
+
return take(output, {
|
|
3888
|
+
ChannelArn: __expectString,
|
|
3889
|
+
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3890
|
+
InvitedBy: _json,
|
|
3891
|
+
LastUpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3892
|
+
Member: _json,
|
|
3893
|
+
SubChannelId: __expectString,
|
|
3894
|
+
Type: __expectString,
|
|
3895
|
+
});
|
|
4277
3896
|
};
|
|
4278
3897
|
const de_ChannelMembershipForAppInstanceUserSummary = (output, context) => {
|
|
4279
|
-
return {
|
|
4280
|
-
AppInstanceUserMembershipSummary:
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
ChannelSummary: output.ChannelSummary != null ? de_ChannelSummary(output.ChannelSummary, context) : undefined,
|
|
4284
|
-
};
|
|
3898
|
+
return take(output, {
|
|
3899
|
+
AppInstanceUserMembershipSummary: (_) => de_AppInstanceUserMembershipSummary(_, context),
|
|
3900
|
+
ChannelSummary: (_) => de_ChannelSummary(_, context),
|
|
3901
|
+
});
|
|
4285
3902
|
};
|
|
4286
3903
|
const de_ChannelMembershipForAppInstanceUserSummaryList = (output, context) => {
|
|
4287
3904
|
const retVal = (output || [])
|
|
4288
3905
|
.filter((e) => e != null)
|
|
4289
3906
|
.map((entry) => {
|
|
4290
|
-
if (entry === null) {
|
|
4291
|
-
return null;
|
|
4292
|
-
}
|
|
4293
3907
|
return de_ChannelMembershipForAppInstanceUserSummary(entry, context);
|
|
4294
3908
|
});
|
|
4295
3909
|
return retVal;
|
|
4296
3910
|
};
|
|
4297
|
-
const de_ChannelMembershipPreferences = (output, context) => {
|
|
4298
|
-
return {
|
|
4299
|
-
PushNotifications: output.PushNotifications != null ? de_PushNotificationPreferences(output.PushNotifications, context) : undefined,
|
|
4300
|
-
};
|
|
4301
|
-
};
|
|
4302
|
-
const de_ChannelMembershipSummary = (output, context) => {
|
|
4303
|
-
return {
|
|
4304
|
-
Member: output.Member != null ? de_Identity(output.Member, context) : undefined,
|
|
4305
|
-
};
|
|
4306
|
-
};
|
|
4307
|
-
const de_ChannelMembershipSummaryList = (output, context) => {
|
|
4308
|
-
const retVal = (output || [])
|
|
4309
|
-
.filter((e) => e != null)
|
|
4310
|
-
.map((entry) => {
|
|
4311
|
-
if (entry === null) {
|
|
4312
|
-
return null;
|
|
4313
|
-
}
|
|
4314
|
-
return de_ChannelMembershipSummary(entry, context);
|
|
4315
|
-
});
|
|
4316
|
-
return retVal;
|
|
4317
|
-
};
|
|
4318
3911
|
const de_ChannelMessage = (output, context) => {
|
|
4319
|
-
return {
|
|
4320
|
-
ChannelArn: __expectString
|
|
4321
|
-
Content: __expectString
|
|
4322
|
-
ContentType: __expectString
|
|
4323
|
-
CreatedTimestamp:
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
Redacted: __expectBoolean(output.Redacted),
|
|
4337
|
-
Sender: output.Sender != null ? de_Identity(output.Sender, context) : undefined,
|
|
4338
|
-
Status: output.Status != null ? de_ChannelMessageStatusStructure(output.Status, context) : undefined,
|
|
4339
|
-
SubChannelId: __expectString(output.SubChannelId),
|
|
4340
|
-
Type: __expectString(output.Type),
|
|
4341
|
-
};
|
|
4342
|
-
};
|
|
4343
|
-
const de_ChannelMessageStatusStructure = (output, context) => {
|
|
4344
|
-
return {
|
|
4345
|
-
Detail: __expectString(output.Detail),
|
|
4346
|
-
Value: __expectString(output.Value),
|
|
4347
|
-
};
|
|
3912
|
+
return take(output, {
|
|
3913
|
+
ChannelArn: __expectString,
|
|
3914
|
+
Content: __expectString,
|
|
3915
|
+
ContentType: __expectString,
|
|
3916
|
+
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3917
|
+
LastEditedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3918
|
+
LastUpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3919
|
+
MessageAttributes: _json,
|
|
3920
|
+
MessageId: __expectString,
|
|
3921
|
+
Metadata: __expectString,
|
|
3922
|
+
Persistence: __expectString,
|
|
3923
|
+
Redacted: __expectBoolean,
|
|
3924
|
+
Sender: _json,
|
|
3925
|
+
Status: _json,
|
|
3926
|
+
SubChannelId: __expectString,
|
|
3927
|
+
Type: __expectString,
|
|
3928
|
+
});
|
|
4348
3929
|
};
|
|
4349
3930
|
const de_ChannelMessageSummary = (output, context) => {
|
|
4350
|
-
return {
|
|
4351
|
-
Content: __expectString
|
|
4352
|
-
ContentType: __expectString
|
|
4353
|
-
CreatedTimestamp:
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
Metadata: __expectString(output.Metadata),
|
|
4365
|
-
Redacted: __expectBoolean(output.Redacted),
|
|
4366
|
-
Sender: output.Sender != null ? de_Identity(output.Sender, context) : undefined,
|
|
4367
|
-
Status: output.Status != null ? de_ChannelMessageStatusStructure(output.Status, context) : undefined,
|
|
4368
|
-
Type: __expectString(output.Type),
|
|
4369
|
-
};
|
|
3931
|
+
return take(output, {
|
|
3932
|
+
Content: __expectString,
|
|
3933
|
+
ContentType: __expectString,
|
|
3934
|
+
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3935
|
+
LastEditedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3936
|
+
LastUpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3937
|
+
MessageAttributes: _json,
|
|
3938
|
+
MessageId: __expectString,
|
|
3939
|
+
Metadata: __expectString,
|
|
3940
|
+
Redacted: __expectBoolean,
|
|
3941
|
+
Sender: _json,
|
|
3942
|
+
Status: _json,
|
|
3943
|
+
Type: __expectString,
|
|
3944
|
+
});
|
|
4370
3945
|
};
|
|
4371
3946
|
const de_ChannelMessageSummaryList = (output, context) => {
|
|
4372
3947
|
const retVal = (output || [])
|
|
4373
3948
|
.filter((e) => e != null)
|
|
4374
3949
|
.map((entry) => {
|
|
4375
|
-
if (entry === null) {
|
|
4376
|
-
return null;
|
|
4377
|
-
}
|
|
4378
3950
|
return de_ChannelMessageSummary(entry, context);
|
|
4379
3951
|
});
|
|
4380
3952
|
return retVal;
|
|
4381
3953
|
};
|
|
4382
3954
|
const de_ChannelModeratedByAppInstanceUserSummary = (output, context) => {
|
|
4383
|
-
return {
|
|
4384
|
-
ChannelSummary:
|
|
4385
|
-
};
|
|
3955
|
+
return take(output, {
|
|
3956
|
+
ChannelSummary: (_) => de_ChannelSummary(_, context),
|
|
3957
|
+
});
|
|
4386
3958
|
};
|
|
4387
3959
|
const de_ChannelModeratedByAppInstanceUserSummaryList = (output, context) => {
|
|
4388
3960
|
const retVal = (output || [])
|
|
4389
3961
|
.filter((e) => e != null)
|
|
4390
3962
|
.map((entry) => {
|
|
4391
|
-
if (entry === null) {
|
|
4392
|
-
return null;
|
|
4393
|
-
}
|
|
4394
3963
|
return de_ChannelModeratedByAppInstanceUserSummary(entry, context);
|
|
4395
3964
|
});
|
|
4396
3965
|
return retVal;
|
|
4397
3966
|
};
|
|
4398
3967
|
const de_ChannelModerator = (output, context) => {
|
|
4399
|
-
return {
|
|
4400
|
-
ChannelArn: __expectString
|
|
4401
|
-
CreatedBy:
|
|
4402
|
-
CreatedTimestamp:
|
|
4403
|
-
|
|
4404
|
-
: undefined,
|
|
4405
|
-
Moderator: output.Moderator != null ? de_Identity(output.Moderator, context) : undefined,
|
|
4406
|
-
};
|
|
4407
|
-
};
|
|
4408
|
-
const de_ChannelModeratorSummary = (output, context) => {
|
|
4409
|
-
return {
|
|
4410
|
-
Moderator: output.Moderator != null ? de_Identity(output.Moderator, context) : undefined,
|
|
4411
|
-
};
|
|
4412
|
-
};
|
|
4413
|
-
const de_ChannelModeratorSummaryList = (output, context) => {
|
|
4414
|
-
const retVal = (output || [])
|
|
4415
|
-
.filter((e) => e != null)
|
|
4416
|
-
.map((entry) => {
|
|
4417
|
-
if (entry === null) {
|
|
4418
|
-
return null;
|
|
4419
|
-
}
|
|
4420
|
-
return de_ChannelModeratorSummary(entry, context);
|
|
3968
|
+
return take(output, {
|
|
3969
|
+
ChannelArn: __expectString,
|
|
3970
|
+
CreatedBy: _json,
|
|
3971
|
+
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3972
|
+
Moderator: _json,
|
|
4421
3973
|
});
|
|
4422
|
-
return retVal;
|
|
4423
3974
|
};
|
|
4424
3975
|
const de_ChannelSummary = (output, context) => {
|
|
4425
|
-
return {
|
|
4426
|
-
ChannelArn: __expectString
|
|
4427
|
-
LastMessageTimestamp:
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
Privacy: __expectString(output.Privacy),
|
|
4434
|
-
};
|
|
3976
|
+
return take(output, {
|
|
3977
|
+
ChannelArn: __expectString,
|
|
3978
|
+
LastMessageTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3979
|
+
Metadata: __expectString,
|
|
3980
|
+
Mode: __expectString,
|
|
3981
|
+
Name: __expectString,
|
|
3982
|
+
Privacy: __expectString,
|
|
3983
|
+
});
|
|
4435
3984
|
};
|
|
4436
3985
|
const de_ChannelSummaryList = (output, context) => {
|
|
4437
3986
|
const retVal = (output || [])
|
|
4438
3987
|
.filter((e) => e != null)
|
|
4439
3988
|
.map((entry) => {
|
|
4440
|
-
if (entry === null) {
|
|
4441
|
-
return null;
|
|
4442
|
-
}
|
|
4443
3989
|
return de_ChannelSummary(entry, context);
|
|
4444
3990
|
});
|
|
4445
3991
|
return retVal;
|
|
4446
3992
|
};
|
|
4447
|
-
const de_ElasticChannelConfiguration = (output, context) => {
|
|
4448
|
-
return {
|
|
4449
|
-
MaximumSubChannels: __expectInt32(output.MaximumSubChannels),
|
|
4450
|
-
MinimumMembershipPercentage: __expectInt32(output.MinimumMembershipPercentage),
|
|
4451
|
-
TargetMembershipsPerSubChannel: __expectInt32(output.TargetMembershipsPerSubChannel),
|
|
4452
|
-
};
|
|
4453
|
-
};
|
|
4454
|
-
const de_ExpirationSettings = (output, context) => {
|
|
4455
|
-
return {
|
|
4456
|
-
ExpirationCriterion: __expectString(output.ExpirationCriterion),
|
|
4457
|
-
ExpirationDays: __expectInt32(output.ExpirationDays),
|
|
4458
|
-
};
|
|
4459
|
-
};
|
|
4460
|
-
const de_Identity = (output, context) => {
|
|
4461
|
-
return {
|
|
4462
|
-
Arn: __expectString(output.Arn),
|
|
4463
|
-
Name: __expectString(output.Name),
|
|
4464
|
-
};
|
|
4465
|
-
};
|
|
4466
|
-
const de_LambdaConfiguration = (output, context) => {
|
|
4467
|
-
return {
|
|
4468
|
-
InvocationType: __expectString(output.InvocationType),
|
|
4469
|
-
ResourceArn: __expectString(output.ResourceArn),
|
|
4470
|
-
};
|
|
4471
|
-
};
|
|
4472
|
-
const de_Members = (output, context) => {
|
|
4473
|
-
const retVal = (output || [])
|
|
4474
|
-
.filter((e) => e != null)
|
|
4475
|
-
.map((entry) => {
|
|
4476
|
-
if (entry === null) {
|
|
4477
|
-
return null;
|
|
4478
|
-
}
|
|
4479
|
-
return de_Identity(entry, context);
|
|
4480
|
-
});
|
|
4481
|
-
return retVal;
|
|
4482
|
-
};
|
|
4483
|
-
const de_MessageAttributeMap = (output, context) => {
|
|
4484
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4485
|
-
if (value === null) {
|
|
4486
|
-
return acc;
|
|
4487
|
-
}
|
|
4488
|
-
acc[key] = de_MessageAttributeValue(value, context);
|
|
4489
|
-
return acc;
|
|
4490
|
-
}, {});
|
|
4491
|
-
};
|
|
4492
|
-
const de_MessageAttributeStringValues = (output, context) => {
|
|
4493
|
-
const retVal = (output || [])
|
|
4494
|
-
.filter((e) => e != null)
|
|
4495
|
-
.map((entry) => {
|
|
4496
|
-
if (entry === null) {
|
|
4497
|
-
return null;
|
|
4498
|
-
}
|
|
4499
|
-
return __expectString(entry);
|
|
4500
|
-
});
|
|
4501
|
-
return retVal;
|
|
4502
|
-
};
|
|
4503
|
-
const de_MessageAttributeValue = (output, context) => {
|
|
4504
|
-
return {
|
|
4505
|
-
StringValues: output.StringValues != null ? de_MessageAttributeStringValues(output.StringValues, context) : undefined,
|
|
4506
|
-
};
|
|
4507
|
-
};
|
|
4508
|
-
const de_MessagingSessionEndpoint = (output, context) => {
|
|
4509
|
-
return {
|
|
4510
|
-
Url: __expectString(output.Url),
|
|
4511
|
-
};
|
|
4512
|
-
};
|
|
4513
|
-
const de_Processor = (output, context) => {
|
|
4514
|
-
return {
|
|
4515
|
-
Configuration: output.Configuration != null ? de_ProcessorConfiguration(output.Configuration, context) : undefined,
|
|
4516
|
-
ExecutionOrder: __expectInt32(output.ExecutionOrder),
|
|
4517
|
-
FallbackAction: __expectString(output.FallbackAction),
|
|
4518
|
-
Name: __expectString(output.Name),
|
|
4519
|
-
};
|
|
4520
|
-
};
|
|
4521
|
-
const de_ProcessorConfiguration = (output, context) => {
|
|
4522
|
-
return {
|
|
4523
|
-
Lambda: output.Lambda != null ? de_LambdaConfiguration(output.Lambda, context) : undefined,
|
|
4524
|
-
};
|
|
4525
|
-
};
|
|
4526
|
-
const de_ProcessorList = (output, context) => {
|
|
4527
|
-
const retVal = (output || [])
|
|
4528
|
-
.filter((e) => e != null)
|
|
4529
|
-
.map((entry) => {
|
|
4530
|
-
if (entry === null) {
|
|
4531
|
-
return null;
|
|
4532
|
-
}
|
|
4533
|
-
return de_Processor(entry, context);
|
|
4534
|
-
});
|
|
4535
|
-
return retVal;
|
|
4536
|
-
};
|
|
4537
|
-
const de_PushNotificationPreferences = (output, context) => {
|
|
4538
|
-
return {
|
|
4539
|
-
AllowNotifications: __expectString(output.AllowNotifications),
|
|
4540
|
-
FilterRule: __expectString(output.FilterRule),
|
|
4541
|
-
};
|
|
4542
|
-
};
|
|
4543
|
-
const de_StreamingConfiguration = (output, context) => {
|
|
4544
|
-
return {
|
|
4545
|
-
DataType: __expectString(output.DataType),
|
|
4546
|
-
ResourceArn: __expectString(output.ResourceArn),
|
|
4547
|
-
};
|
|
4548
|
-
};
|
|
4549
|
-
const de_StreamingConfigurationList = (output, context) => {
|
|
4550
|
-
const retVal = (output || [])
|
|
4551
|
-
.filter((e) => e != null)
|
|
4552
|
-
.map((entry) => {
|
|
4553
|
-
if (entry === null) {
|
|
4554
|
-
return null;
|
|
4555
|
-
}
|
|
4556
|
-
return de_StreamingConfiguration(entry, context);
|
|
4557
|
-
});
|
|
4558
|
-
return retVal;
|
|
4559
|
-
};
|
|
4560
|
-
const de_SubChannelSummary = (output, context) => {
|
|
4561
|
-
return {
|
|
4562
|
-
MembershipCount: __expectInt32(output.MembershipCount),
|
|
4563
|
-
SubChannelId: __expectString(output.SubChannelId),
|
|
4564
|
-
};
|
|
4565
|
-
};
|
|
4566
|
-
const de_SubChannelSummaryList = (output, context) => {
|
|
4567
|
-
const retVal = (output || [])
|
|
4568
|
-
.filter((e) => e != null)
|
|
4569
|
-
.map((entry) => {
|
|
4570
|
-
if (entry === null) {
|
|
4571
|
-
return null;
|
|
4572
|
-
}
|
|
4573
|
-
return de_SubChannelSummary(entry, context);
|
|
4574
|
-
});
|
|
4575
|
-
return retVal;
|
|
4576
|
-
};
|
|
4577
|
-
const de_Tag = (output, context) => {
|
|
4578
|
-
return {
|
|
4579
|
-
Key: __expectString(output.Key),
|
|
4580
|
-
Value: __expectString(output.Value),
|
|
4581
|
-
};
|
|
4582
|
-
};
|
|
4583
|
-
const de_TagList = (output, context) => {
|
|
4584
|
-
const retVal = (output || [])
|
|
4585
|
-
.filter((e) => e != null)
|
|
4586
|
-
.map((entry) => {
|
|
4587
|
-
if (entry === null) {
|
|
4588
|
-
return null;
|
|
4589
|
-
}
|
|
4590
|
-
return de_Tag(entry, context);
|
|
4591
|
-
});
|
|
4592
|
-
return retVal;
|
|
4593
|
-
};
|
|
4594
3993
|
const deserializeMetadata = (output) => ({
|
|
4595
3994
|
httpStatusCode: output.statusCode,
|
|
4596
3995
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|