@aws-sdk/client-chime-sdk-messaging 3.303.0 → 3.309.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/commands/AssociateChannelFlowCommand.js +2 -2
- package/dist-cjs/commands/BatchCreateChannelMembershipCommand.js +2 -2
- package/dist-cjs/commands/ChannelFlowCallbackCommand.js +2 -2
- package/dist-cjs/commands/CreateChannelBanCommand.js +2 -2
- package/dist-cjs/commands/CreateChannelCommand.js +2 -2
- package/dist-cjs/commands/CreateChannelFlowCommand.js +2 -2
- package/dist-cjs/commands/CreateChannelMembershipCommand.js +2 -2
- package/dist-cjs/commands/CreateChannelModeratorCommand.js +2 -2
- package/dist-cjs/commands/DeleteChannelBanCommand.js +2 -2
- package/dist-cjs/commands/DeleteChannelCommand.js +2 -2
- package/dist-cjs/commands/DeleteChannelFlowCommand.js +2 -2
- package/dist-cjs/commands/DeleteChannelMembershipCommand.js +2 -2
- package/dist-cjs/commands/DeleteChannelMessageCommand.js +2 -2
- package/dist-cjs/commands/DeleteChannelModeratorCommand.js +2 -2
- package/dist-cjs/commands/DeleteMessagingStreamingConfigurationsCommand.js +2 -2
- package/dist-cjs/commands/DescribeChannelBanCommand.js +2 -2
- package/dist-cjs/commands/DescribeChannelCommand.js +2 -2
- package/dist-cjs/commands/DescribeChannelFlowCommand.js +2 -2
- package/dist-cjs/commands/DescribeChannelMembershipCommand.js +2 -2
- package/dist-cjs/commands/DescribeChannelMembershipForAppInstanceUserCommand.js +2 -2
- package/dist-cjs/commands/DescribeChannelModeratedByAppInstanceUserCommand.js +2 -2
- package/dist-cjs/commands/DescribeChannelModeratorCommand.js +2 -2
- package/dist-cjs/commands/DisassociateChannelFlowCommand.js +2 -2
- package/dist-cjs/commands/GetChannelMembershipPreferencesCommand.js +2 -2
- package/dist-cjs/commands/GetChannelMessageCommand.js +2 -2
- package/dist-cjs/commands/GetChannelMessageStatusCommand.js +2 -2
- package/dist-cjs/commands/GetMessagingSessionEndpointCommand.js +2 -2
- package/dist-cjs/commands/GetMessagingStreamingConfigurationsCommand.js +2 -2
- package/dist-cjs/commands/ListChannelBansCommand.js +2 -2
- package/dist-cjs/commands/ListChannelFlowsCommand.js +2 -2
- package/dist-cjs/commands/ListChannelMembershipsCommand.js +2 -2
- package/dist-cjs/commands/ListChannelMembershipsForAppInstanceUserCommand.js +2 -2
- package/dist-cjs/commands/ListChannelMessagesCommand.js +2 -2
- package/dist-cjs/commands/ListChannelModeratorsCommand.js +2 -2
- package/dist-cjs/commands/ListChannelsAssociatedWithChannelFlowCommand.js +2 -2
- package/dist-cjs/commands/ListChannelsCommand.js +2 -2
- package/dist-cjs/commands/ListChannelsModeratedByAppInstanceUserCommand.js +2 -2
- package/dist-cjs/commands/ListSubChannelsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/PutChannelExpirationSettingsCommand.js +2 -2
- package/dist-cjs/commands/PutChannelMembershipPreferencesCommand.js +2 -2
- package/dist-cjs/commands/PutMessagingStreamingConfigurationsCommand.js +2 -2
- package/dist-cjs/commands/RedactChannelMessageCommand.js +2 -2
- package/dist-cjs/commands/SearchChannelsCommand.js +2 -2
- package/dist-cjs/commands/SendChannelMessageCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateChannelCommand.js +2 -2
- package/dist-cjs/commands/UpdateChannelFlowCommand.js +2 -2
- package/dist-cjs/commands/UpdateChannelMessageCommand.js +2 -2
- package/dist-cjs/commands/UpdateChannelReadMarkerCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +842 -868
- package/dist-es/commands/AssociateChannelFlowCommand.js +3 -3
- package/dist-es/commands/BatchCreateChannelMembershipCommand.js +3 -3
- package/dist-es/commands/ChannelFlowCallbackCommand.js +3 -3
- package/dist-es/commands/CreateChannelBanCommand.js +3 -3
- package/dist-es/commands/CreateChannelCommand.js +3 -3
- package/dist-es/commands/CreateChannelFlowCommand.js +3 -3
- package/dist-es/commands/CreateChannelMembershipCommand.js +3 -3
- package/dist-es/commands/CreateChannelModeratorCommand.js +3 -3
- package/dist-es/commands/DeleteChannelBanCommand.js +3 -3
- package/dist-es/commands/DeleteChannelCommand.js +3 -3
- package/dist-es/commands/DeleteChannelFlowCommand.js +3 -3
- package/dist-es/commands/DeleteChannelMembershipCommand.js +3 -3
- package/dist-es/commands/DeleteChannelMessageCommand.js +3 -3
- package/dist-es/commands/DeleteChannelModeratorCommand.js +3 -3
- package/dist-es/commands/DeleteMessagingStreamingConfigurationsCommand.js +3 -3
- package/dist-es/commands/DescribeChannelBanCommand.js +3 -3
- package/dist-es/commands/DescribeChannelCommand.js +3 -3
- package/dist-es/commands/DescribeChannelFlowCommand.js +3 -3
- package/dist-es/commands/DescribeChannelMembershipCommand.js +3 -3
- package/dist-es/commands/DescribeChannelMembershipForAppInstanceUserCommand.js +3 -3
- package/dist-es/commands/DescribeChannelModeratedByAppInstanceUserCommand.js +3 -3
- package/dist-es/commands/DescribeChannelModeratorCommand.js +3 -3
- package/dist-es/commands/DisassociateChannelFlowCommand.js +3 -3
- package/dist-es/commands/GetChannelMembershipPreferencesCommand.js +3 -3
- package/dist-es/commands/GetChannelMessageCommand.js +3 -3
- package/dist-es/commands/GetChannelMessageStatusCommand.js +3 -3
- package/dist-es/commands/GetMessagingSessionEndpointCommand.js +3 -3
- package/dist-es/commands/GetMessagingStreamingConfigurationsCommand.js +3 -3
- package/dist-es/commands/ListChannelBansCommand.js +3 -3
- package/dist-es/commands/ListChannelFlowsCommand.js +3 -3
- package/dist-es/commands/ListChannelMembershipsCommand.js +3 -3
- package/dist-es/commands/ListChannelMembershipsForAppInstanceUserCommand.js +3 -3
- package/dist-es/commands/ListChannelMessagesCommand.js +3 -3
- package/dist-es/commands/ListChannelModeratorsCommand.js +3 -3
- package/dist-es/commands/ListChannelsAssociatedWithChannelFlowCommand.js +3 -3
- package/dist-es/commands/ListChannelsCommand.js +3 -3
- package/dist-es/commands/ListChannelsModeratedByAppInstanceUserCommand.js +3 -3
- package/dist-es/commands/ListSubChannelsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/PutChannelExpirationSettingsCommand.js +3 -3
- package/dist-es/commands/PutChannelMembershipPreferencesCommand.js +3 -3
- package/dist-es/commands/PutMessagingStreamingConfigurationsCommand.js +3 -3
- package/dist-es/commands/RedactChannelMessageCommand.js +3 -3
- package/dist-es/commands/SearchChannelsCommand.js +3 -3
- package/dist-es/commands/SendChannelMessageCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateChannelCommand.js +3 -3
- package/dist-es/commands/UpdateChannelFlowCommand.js +3 -3
- package/dist-es/commands/UpdateChannelMessageCommand.js +3 -3
- package/dist-es/commands/UpdateChannelReadMarkerCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +737 -763
- package/dist-types/protocols/Aws_restJson1.d.ts +408 -102
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +102 -102
- package/package.json +29 -29
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
3
|
+
exports.se_UpdateChannelMessageCommand = exports.se_UpdateChannelFlowCommand = exports.se_UpdateChannelCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SendChannelMessageCommand = exports.se_SearchChannelsCommand = exports.se_RedactChannelMessageCommand = exports.se_PutMessagingStreamingConfigurationsCommand = exports.se_PutChannelMembershipPreferencesCommand = exports.se_PutChannelExpirationSettingsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSubChannelsCommand = exports.se_ListChannelsModeratedByAppInstanceUserCommand = exports.se_ListChannelsAssociatedWithChannelFlowCommand = exports.se_ListChannelsCommand = exports.se_ListChannelModeratorsCommand = exports.se_ListChannelMessagesCommand = exports.se_ListChannelMembershipsForAppInstanceUserCommand = exports.se_ListChannelMembershipsCommand = exports.se_ListChannelFlowsCommand = exports.se_ListChannelBansCommand = exports.se_GetMessagingStreamingConfigurationsCommand = exports.se_GetMessagingSessionEndpointCommand = exports.se_GetChannelMessageStatusCommand = exports.se_GetChannelMessageCommand = exports.se_GetChannelMembershipPreferencesCommand = exports.se_DisassociateChannelFlowCommand = exports.se_DescribeChannelModeratorCommand = exports.se_DescribeChannelModeratedByAppInstanceUserCommand = exports.se_DescribeChannelMembershipForAppInstanceUserCommand = exports.se_DescribeChannelMembershipCommand = exports.se_DescribeChannelFlowCommand = exports.se_DescribeChannelBanCommand = exports.se_DescribeChannelCommand = exports.se_DeleteMessagingStreamingConfigurationsCommand = exports.se_DeleteChannelModeratorCommand = exports.se_DeleteChannelMessageCommand = exports.se_DeleteChannelMembershipCommand = exports.se_DeleteChannelFlowCommand = exports.se_DeleteChannelBanCommand = exports.se_DeleteChannelCommand = exports.se_CreateChannelModeratorCommand = exports.se_CreateChannelMembershipCommand = exports.se_CreateChannelFlowCommand = exports.se_CreateChannelBanCommand = exports.se_CreateChannelCommand = exports.se_ChannelFlowCallbackCommand = exports.se_BatchCreateChannelMembershipCommand = exports.se_AssociateChannelFlowCommand = void 0;
|
|
4
|
+
exports.de_UpdateChannelFlowCommand = exports.de_UpdateChannelCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SendChannelMessageCommand = exports.de_SearchChannelsCommand = exports.de_RedactChannelMessageCommand = exports.de_PutMessagingStreamingConfigurationsCommand = exports.de_PutChannelMembershipPreferencesCommand = exports.de_PutChannelExpirationSettingsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSubChannelsCommand = exports.de_ListChannelsModeratedByAppInstanceUserCommand = exports.de_ListChannelsAssociatedWithChannelFlowCommand = exports.de_ListChannelsCommand = exports.de_ListChannelModeratorsCommand = exports.de_ListChannelMessagesCommand = exports.de_ListChannelMembershipsForAppInstanceUserCommand = exports.de_ListChannelMembershipsCommand = exports.de_ListChannelFlowsCommand = exports.de_ListChannelBansCommand = exports.de_GetMessagingStreamingConfigurationsCommand = exports.de_GetMessagingSessionEndpointCommand = exports.de_GetChannelMessageStatusCommand = exports.de_GetChannelMessageCommand = exports.de_GetChannelMembershipPreferencesCommand = exports.de_DisassociateChannelFlowCommand = exports.de_DescribeChannelModeratorCommand = exports.de_DescribeChannelModeratedByAppInstanceUserCommand = exports.de_DescribeChannelMembershipForAppInstanceUserCommand = exports.de_DescribeChannelMembershipCommand = exports.de_DescribeChannelFlowCommand = exports.de_DescribeChannelBanCommand = exports.de_DescribeChannelCommand = exports.de_DeleteMessagingStreamingConfigurationsCommand = exports.de_DeleteChannelModeratorCommand = exports.de_DeleteChannelMessageCommand = exports.de_DeleteChannelMembershipCommand = exports.de_DeleteChannelFlowCommand = exports.de_DeleteChannelBanCommand = exports.de_DeleteChannelCommand = exports.de_CreateChannelModeratorCommand = exports.de_CreateChannelMembershipCommand = exports.de_CreateChannelFlowCommand = exports.de_CreateChannelBanCommand = exports.de_CreateChannelCommand = exports.de_ChannelFlowCallbackCommand = exports.de_BatchCreateChannelMembershipCommand = exports.de_AssociateChannelFlowCommand = exports.se_UpdateChannelReadMarkerCommand = void 0;
|
|
5
|
+
exports.de_UpdateChannelReadMarkerCommand = exports.de_UpdateChannelMessageCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
9
9
|
const ChimeSDKMessagingServiceException_1 = require("../models/ChimeSDKMessagingServiceException");
|
|
10
10
|
const models_0_1 = require("../models/models_0");
|
|
11
|
-
const
|
|
11
|
+
const se_AssociateChannelFlowCommand = async (input, context) => {
|
|
12
12
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
13
13
|
const headers = map({}, isSerializableHeaderValue, {
|
|
14
14
|
"content-type": "application/json",
|
|
@@ -30,8 +30,8 @@ const serializeAws_restJson1AssociateChannelFlowCommand = async (input, context)
|
|
|
30
30
|
body,
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
|
-
exports.
|
|
34
|
-
const
|
|
33
|
+
exports.se_AssociateChannelFlowCommand = se_AssociateChannelFlowCommand;
|
|
34
|
+
const se_BatchCreateChannelMembershipCommand = async (input, context) => {
|
|
35
35
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
36
36
|
const headers = map({}, isSerializableHeaderValue, {
|
|
37
37
|
"content-type": "application/json",
|
|
@@ -44,7 +44,7 @@ const serializeAws_restJson1BatchCreateChannelMembershipCommand = async (input,
|
|
|
44
44
|
});
|
|
45
45
|
let body;
|
|
46
46
|
body = JSON.stringify({
|
|
47
|
-
...(input.MemberArns != null && { MemberArns:
|
|
47
|
+
...(input.MemberArns != null && { MemberArns: se_MemberArns(input.MemberArns, context) }),
|
|
48
48
|
...(input.SubChannelId != null && { SubChannelId: input.SubChannelId }),
|
|
49
49
|
...(input.Type != null && { Type: input.Type }),
|
|
50
50
|
});
|
|
@@ -59,8 +59,8 @@ const serializeAws_restJson1BatchCreateChannelMembershipCommand = async (input,
|
|
|
59
59
|
body,
|
|
60
60
|
});
|
|
61
61
|
};
|
|
62
|
-
exports.
|
|
63
|
-
const
|
|
62
|
+
exports.se_BatchCreateChannelMembershipCommand = se_BatchCreateChannelMembershipCommand;
|
|
63
|
+
const se_ChannelFlowCallbackCommand = async (input, context) => {
|
|
64
64
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
65
65
|
const headers = {
|
|
66
66
|
"content-type": "application/json",
|
|
@@ -73,9 +73,7 @@ const serializeAws_restJson1ChannelFlowCallbackCommand = async (input, context)
|
|
|
73
73
|
let body;
|
|
74
74
|
body = JSON.stringify({
|
|
75
75
|
CallbackId: input.CallbackId ?? (0, uuid_1.v4)(),
|
|
76
|
-
...(input.ChannelMessage != null && {
|
|
77
|
-
ChannelMessage: serializeAws_restJson1ChannelMessageCallback(input.ChannelMessage, context),
|
|
78
|
-
}),
|
|
76
|
+
...(input.ChannelMessage != null && { ChannelMessage: se_ChannelMessageCallback(input.ChannelMessage, context) }),
|
|
79
77
|
...(input.DeleteResource != null && { DeleteResource: input.DeleteResource }),
|
|
80
78
|
});
|
|
81
79
|
return new protocol_http_1.HttpRequest({
|
|
@@ -89,8 +87,8 @@ const serializeAws_restJson1ChannelFlowCallbackCommand = async (input, context)
|
|
|
89
87
|
body,
|
|
90
88
|
});
|
|
91
89
|
};
|
|
92
|
-
exports.
|
|
93
|
-
const
|
|
90
|
+
exports.se_ChannelFlowCallbackCommand = se_ChannelFlowCallbackCommand;
|
|
91
|
+
const se_CreateChannelCommand = async (input, context) => {
|
|
94
92
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
95
93
|
const headers = map({}, isSerializableHeaderValue, {
|
|
96
94
|
"content-type": "application/json",
|
|
@@ -103,20 +101,18 @@ const serializeAws_restJson1CreateChannelCommand = async (input, context) => {
|
|
|
103
101
|
...(input.ChannelId != null && { ChannelId: input.ChannelId }),
|
|
104
102
|
ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
|
|
105
103
|
...(input.ElasticChannelConfiguration != null && {
|
|
106
|
-
ElasticChannelConfiguration:
|
|
104
|
+
ElasticChannelConfiguration: se_ElasticChannelConfiguration(input.ElasticChannelConfiguration, context),
|
|
107
105
|
}),
|
|
108
106
|
...(input.ExpirationSettings != null && {
|
|
109
|
-
ExpirationSettings:
|
|
107
|
+
ExpirationSettings: se_ExpirationSettings(input.ExpirationSettings, context),
|
|
110
108
|
}),
|
|
111
|
-
...(input.MemberArns != null && { MemberArns:
|
|
109
|
+
...(input.MemberArns != null && { MemberArns: se_ChannelMemberArns(input.MemberArns, context) }),
|
|
112
110
|
...(input.Metadata != null && { Metadata: input.Metadata }),
|
|
113
111
|
...(input.Mode != null && { Mode: input.Mode }),
|
|
114
|
-
...(input.ModeratorArns != null && {
|
|
115
|
-
ModeratorArns: serializeAws_restJson1ChannelModeratorArns(input.ModeratorArns, context),
|
|
116
|
-
}),
|
|
112
|
+
...(input.ModeratorArns != null && { ModeratorArns: se_ChannelModeratorArns(input.ModeratorArns, context) }),
|
|
117
113
|
...(input.Name != null && { Name: input.Name }),
|
|
118
114
|
...(input.Privacy != null && { Privacy: input.Privacy }),
|
|
119
|
-
...(input.Tags != null && { Tags:
|
|
115
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
120
116
|
});
|
|
121
117
|
return new protocol_http_1.HttpRequest({
|
|
122
118
|
protocol,
|
|
@@ -128,8 +124,8 @@ const serializeAws_restJson1CreateChannelCommand = async (input, context) => {
|
|
|
128
124
|
body,
|
|
129
125
|
});
|
|
130
126
|
};
|
|
131
|
-
exports.
|
|
132
|
-
const
|
|
127
|
+
exports.se_CreateChannelCommand = se_CreateChannelCommand;
|
|
128
|
+
const se_CreateChannelBanCommand = async (input, context) => {
|
|
133
129
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
134
130
|
const headers = map({}, isSerializableHeaderValue, {
|
|
135
131
|
"content-type": "application/json",
|
|
@@ -151,8 +147,8 @@ const serializeAws_restJson1CreateChannelBanCommand = async (input, context) =>
|
|
|
151
147
|
body,
|
|
152
148
|
});
|
|
153
149
|
};
|
|
154
|
-
exports.
|
|
155
|
-
const
|
|
150
|
+
exports.se_CreateChannelBanCommand = se_CreateChannelBanCommand;
|
|
151
|
+
const se_CreateChannelFlowCommand = async (input, context) => {
|
|
156
152
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
157
153
|
const headers = {
|
|
158
154
|
"content-type": "application/json",
|
|
@@ -163,8 +159,8 @@ const serializeAws_restJson1CreateChannelFlowCommand = async (input, context) =>
|
|
|
163
159
|
...(input.AppInstanceArn != null && { AppInstanceArn: input.AppInstanceArn }),
|
|
164
160
|
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
165
161
|
...(input.Name != null && { Name: input.Name }),
|
|
166
|
-
...(input.Processors != null && { Processors:
|
|
167
|
-
...(input.Tags != null && { Tags:
|
|
162
|
+
...(input.Processors != null && { Processors: se_ProcessorList(input.Processors, context) }),
|
|
163
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
168
164
|
});
|
|
169
165
|
return new protocol_http_1.HttpRequest({
|
|
170
166
|
protocol,
|
|
@@ -176,8 +172,8 @@ const serializeAws_restJson1CreateChannelFlowCommand = async (input, context) =>
|
|
|
176
172
|
body,
|
|
177
173
|
});
|
|
178
174
|
};
|
|
179
|
-
exports.
|
|
180
|
-
const
|
|
175
|
+
exports.se_CreateChannelFlowCommand = se_CreateChannelFlowCommand;
|
|
176
|
+
const se_CreateChannelMembershipCommand = async (input, context) => {
|
|
181
177
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
182
178
|
const headers = map({}, isSerializableHeaderValue, {
|
|
183
179
|
"content-type": "application/json",
|
|
@@ -201,8 +197,8 @@ const serializeAws_restJson1CreateChannelMembershipCommand = async (input, conte
|
|
|
201
197
|
body,
|
|
202
198
|
});
|
|
203
199
|
};
|
|
204
|
-
exports.
|
|
205
|
-
const
|
|
200
|
+
exports.se_CreateChannelMembershipCommand = se_CreateChannelMembershipCommand;
|
|
201
|
+
const se_CreateChannelModeratorCommand = async (input, context) => {
|
|
206
202
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
207
203
|
const headers = map({}, isSerializableHeaderValue, {
|
|
208
204
|
"content-type": "application/json",
|
|
@@ -224,8 +220,8 @@ const serializeAws_restJson1CreateChannelModeratorCommand = async (input, contex
|
|
|
224
220
|
body,
|
|
225
221
|
});
|
|
226
222
|
};
|
|
227
|
-
exports.
|
|
228
|
-
const
|
|
223
|
+
exports.se_CreateChannelModeratorCommand = se_CreateChannelModeratorCommand;
|
|
224
|
+
const se_DeleteChannelCommand = async (input, context) => {
|
|
229
225
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
230
226
|
const headers = map({}, isSerializableHeaderValue, {
|
|
231
227
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
@@ -247,8 +243,8 @@ const serializeAws_restJson1DeleteChannelCommand = async (input, context) => {
|
|
|
247
243
|
body,
|
|
248
244
|
});
|
|
249
245
|
};
|
|
250
|
-
exports.
|
|
251
|
-
const
|
|
246
|
+
exports.se_DeleteChannelCommand = se_DeleteChannelCommand;
|
|
247
|
+
const se_DeleteChannelBanCommand = async (input, context) => {
|
|
252
248
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
253
249
|
const headers = map({}, isSerializableHeaderValue, {
|
|
254
250
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
@@ -267,8 +263,8 @@ const serializeAws_restJson1DeleteChannelBanCommand = async (input, context) =>
|
|
|
267
263
|
body,
|
|
268
264
|
});
|
|
269
265
|
};
|
|
270
|
-
exports.
|
|
271
|
-
const
|
|
266
|
+
exports.se_DeleteChannelBanCommand = se_DeleteChannelBanCommand;
|
|
267
|
+
const se_DeleteChannelFlowCommand = async (input, context) => {
|
|
272
268
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
273
269
|
const headers = {};
|
|
274
270
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel-flows/{ChannelFlowArn}";
|
|
@@ -284,8 +280,8 @@ const serializeAws_restJson1DeleteChannelFlowCommand = async (input, context) =>
|
|
|
284
280
|
body,
|
|
285
281
|
});
|
|
286
282
|
};
|
|
287
|
-
exports.
|
|
288
|
-
const
|
|
283
|
+
exports.se_DeleteChannelFlowCommand = se_DeleteChannelFlowCommand;
|
|
284
|
+
const se_DeleteChannelMembershipCommand = async (input, context) => {
|
|
289
285
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
290
286
|
const headers = map({}, isSerializableHeaderValue, {
|
|
291
287
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
@@ -309,8 +305,8 @@ const serializeAws_restJson1DeleteChannelMembershipCommand = async (input, conte
|
|
|
309
305
|
body,
|
|
310
306
|
});
|
|
311
307
|
};
|
|
312
|
-
exports.
|
|
313
|
-
const
|
|
308
|
+
exports.se_DeleteChannelMembershipCommand = se_DeleteChannelMembershipCommand;
|
|
309
|
+
const se_DeleteChannelMessageCommand = async (input, context) => {
|
|
314
310
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
315
311
|
const headers = map({}, isSerializableHeaderValue, {
|
|
316
312
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
@@ -334,8 +330,8 @@ const serializeAws_restJson1DeleteChannelMessageCommand = async (input, context)
|
|
|
334
330
|
body,
|
|
335
331
|
});
|
|
336
332
|
};
|
|
337
|
-
exports.
|
|
338
|
-
const
|
|
333
|
+
exports.se_DeleteChannelMessageCommand = se_DeleteChannelMessageCommand;
|
|
334
|
+
const se_DeleteChannelModeratorCommand = async (input, context) => {
|
|
339
335
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
340
336
|
const headers = map({}, isSerializableHeaderValue, {
|
|
341
337
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
@@ -355,8 +351,8 @@ const serializeAws_restJson1DeleteChannelModeratorCommand = async (input, contex
|
|
|
355
351
|
body,
|
|
356
352
|
});
|
|
357
353
|
};
|
|
358
|
-
exports.
|
|
359
|
-
const
|
|
354
|
+
exports.se_DeleteChannelModeratorCommand = se_DeleteChannelModeratorCommand;
|
|
355
|
+
const se_DeleteMessagingStreamingConfigurationsCommand = async (input, context) => {
|
|
360
356
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
361
357
|
const headers = {};
|
|
362
358
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -373,8 +369,8 @@ const serializeAws_restJson1DeleteMessagingStreamingConfigurationsCommand = asyn
|
|
|
373
369
|
body,
|
|
374
370
|
});
|
|
375
371
|
};
|
|
376
|
-
exports.
|
|
377
|
-
const
|
|
372
|
+
exports.se_DeleteMessagingStreamingConfigurationsCommand = se_DeleteMessagingStreamingConfigurationsCommand;
|
|
373
|
+
const se_DescribeChannelCommand = async (input, context) => {
|
|
378
374
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
379
375
|
const headers = map({}, isSerializableHeaderValue, {
|
|
380
376
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
@@ -392,8 +388,8 @@ const serializeAws_restJson1DescribeChannelCommand = async (input, context) => {
|
|
|
392
388
|
body,
|
|
393
389
|
});
|
|
394
390
|
};
|
|
395
|
-
exports.
|
|
396
|
-
const
|
|
391
|
+
exports.se_DescribeChannelCommand = se_DescribeChannelCommand;
|
|
392
|
+
const se_DescribeChannelBanCommand = async (input, context) => {
|
|
397
393
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
398
394
|
const headers = map({}, isSerializableHeaderValue, {
|
|
399
395
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
@@ -412,8 +408,8 @@ const serializeAws_restJson1DescribeChannelBanCommand = async (input, context) =
|
|
|
412
408
|
body,
|
|
413
409
|
});
|
|
414
410
|
};
|
|
415
|
-
exports.
|
|
416
|
-
const
|
|
411
|
+
exports.se_DescribeChannelBanCommand = se_DescribeChannelBanCommand;
|
|
412
|
+
const se_DescribeChannelFlowCommand = async (input, context) => {
|
|
417
413
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
418
414
|
const headers = {};
|
|
419
415
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel-flows/{ChannelFlowArn}";
|
|
@@ -429,8 +425,8 @@ const serializeAws_restJson1DescribeChannelFlowCommand = async (input, context)
|
|
|
429
425
|
body,
|
|
430
426
|
});
|
|
431
427
|
};
|
|
432
|
-
exports.
|
|
433
|
-
const
|
|
428
|
+
exports.se_DescribeChannelFlowCommand = se_DescribeChannelFlowCommand;
|
|
429
|
+
const se_DescribeChannelMembershipCommand = async (input, context) => {
|
|
434
430
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
435
431
|
const headers = map({}, isSerializableHeaderValue, {
|
|
436
432
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
@@ -454,8 +450,8 @@ const serializeAws_restJson1DescribeChannelMembershipCommand = async (input, con
|
|
|
454
450
|
body,
|
|
455
451
|
});
|
|
456
452
|
};
|
|
457
|
-
exports.
|
|
458
|
-
const
|
|
453
|
+
exports.se_DescribeChannelMembershipCommand = se_DescribeChannelMembershipCommand;
|
|
454
|
+
const se_DescribeChannelMembershipForAppInstanceUserCommand = async (input, context) => {
|
|
459
455
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
460
456
|
const headers = map({}, isSerializableHeaderValue, {
|
|
461
457
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
@@ -478,8 +474,8 @@ const serializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand =
|
|
|
478
474
|
body,
|
|
479
475
|
});
|
|
480
476
|
};
|
|
481
|
-
exports.
|
|
482
|
-
const
|
|
477
|
+
exports.se_DescribeChannelMembershipForAppInstanceUserCommand = se_DescribeChannelMembershipForAppInstanceUserCommand;
|
|
478
|
+
const se_DescribeChannelModeratedByAppInstanceUserCommand = async (input, context) => {
|
|
483
479
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
484
480
|
const headers = map({}, isSerializableHeaderValue, {
|
|
485
481
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
@@ -502,8 +498,8 @@ const serializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommand = a
|
|
|
502
498
|
body,
|
|
503
499
|
});
|
|
504
500
|
};
|
|
505
|
-
exports.
|
|
506
|
-
const
|
|
501
|
+
exports.se_DescribeChannelModeratedByAppInstanceUserCommand = se_DescribeChannelModeratedByAppInstanceUserCommand;
|
|
502
|
+
const se_DescribeChannelModeratorCommand = async (input, context) => {
|
|
507
503
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
508
504
|
const headers = map({}, isSerializableHeaderValue, {
|
|
509
505
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
@@ -523,8 +519,8 @@ const serializeAws_restJson1DescribeChannelModeratorCommand = async (input, cont
|
|
|
523
519
|
body,
|
|
524
520
|
});
|
|
525
521
|
};
|
|
526
|
-
exports.
|
|
527
|
-
const
|
|
522
|
+
exports.se_DescribeChannelModeratorCommand = se_DescribeChannelModeratorCommand;
|
|
523
|
+
const se_DisassociateChannelFlowCommand = async (input, context) => {
|
|
528
524
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
529
525
|
const headers = map({}, isSerializableHeaderValue, {
|
|
530
526
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
@@ -544,8 +540,8 @@ const serializeAws_restJson1DisassociateChannelFlowCommand = async (input, conte
|
|
|
544
540
|
body,
|
|
545
541
|
});
|
|
546
542
|
};
|
|
547
|
-
exports.
|
|
548
|
-
const
|
|
543
|
+
exports.se_DisassociateChannelFlowCommand = se_DisassociateChannelFlowCommand;
|
|
544
|
+
const se_GetChannelMembershipPreferencesCommand = async (input, context) => {
|
|
549
545
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
550
546
|
const headers = map({}, isSerializableHeaderValue, {
|
|
551
547
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
@@ -565,8 +561,8 @@ const serializeAws_restJson1GetChannelMembershipPreferencesCommand = async (inpu
|
|
|
565
561
|
body,
|
|
566
562
|
});
|
|
567
563
|
};
|
|
568
|
-
exports.
|
|
569
|
-
const
|
|
564
|
+
exports.se_GetChannelMembershipPreferencesCommand = se_GetChannelMembershipPreferencesCommand;
|
|
565
|
+
const se_GetChannelMessageCommand = async (input, context) => {
|
|
570
566
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
571
567
|
const headers = map({}, isSerializableHeaderValue, {
|
|
572
568
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
@@ -590,8 +586,8 @@ const serializeAws_restJson1GetChannelMessageCommand = async (input, context) =>
|
|
|
590
586
|
body,
|
|
591
587
|
});
|
|
592
588
|
};
|
|
593
|
-
exports.
|
|
594
|
-
const
|
|
589
|
+
exports.se_GetChannelMessageCommand = se_GetChannelMessageCommand;
|
|
590
|
+
const se_GetChannelMessageStatusCommand = async (input, context) => {
|
|
595
591
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
596
592
|
const headers = map({}, isSerializableHeaderValue, {
|
|
597
593
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
@@ -616,8 +612,8 @@ const serializeAws_restJson1GetChannelMessageStatusCommand = async (input, conte
|
|
|
616
612
|
body,
|
|
617
613
|
});
|
|
618
614
|
};
|
|
619
|
-
exports.
|
|
620
|
-
const
|
|
615
|
+
exports.se_GetChannelMessageStatusCommand = se_GetChannelMessageStatusCommand;
|
|
616
|
+
const se_GetMessagingSessionEndpointCommand = async (input, context) => {
|
|
621
617
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
622
618
|
const headers = {
|
|
623
619
|
"content-type": "application/json",
|
|
@@ -635,8 +631,8 @@ const serializeAws_restJson1GetMessagingSessionEndpointCommand = async (input, c
|
|
|
635
631
|
body,
|
|
636
632
|
});
|
|
637
633
|
};
|
|
638
|
-
exports.
|
|
639
|
-
const
|
|
634
|
+
exports.se_GetMessagingSessionEndpointCommand = se_GetMessagingSessionEndpointCommand;
|
|
635
|
+
const se_GetMessagingStreamingConfigurationsCommand = async (input, context) => {
|
|
640
636
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
641
637
|
const headers = {};
|
|
642
638
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -653,8 +649,8 @@ const serializeAws_restJson1GetMessagingStreamingConfigurationsCommand = async (
|
|
|
653
649
|
body,
|
|
654
650
|
});
|
|
655
651
|
};
|
|
656
|
-
exports.
|
|
657
|
-
const
|
|
652
|
+
exports.se_GetMessagingStreamingConfigurationsCommand = se_GetMessagingStreamingConfigurationsCommand;
|
|
653
|
+
const se_ListChannelBansCommand = async (input, context) => {
|
|
658
654
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
659
655
|
const headers = map({}, isSerializableHeaderValue, {
|
|
660
656
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
@@ -677,8 +673,8 @@ const serializeAws_restJson1ListChannelBansCommand = async (input, context) => {
|
|
|
677
673
|
body,
|
|
678
674
|
});
|
|
679
675
|
};
|
|
680
|
-
exports.
|
|
681
|
-
const
|
|
676
|
+
exports.se_ListChannelBansCommand = se_ListChannelBansCommand;
|
|
677
|
+
const se_ListChannelFlowsCommand = async (input, context) => {
|
|
682
678
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
683
679
|
const headers = {};
|
|
684
680
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel-flows";
|
|
@@ -699,8 +695,8 @@ const serializeAws_restJson1ListChannelFlowsCommand = async (input, context) =>
|
|
|
699
695
|
body,
|
|
700
696
|
});
|
|
701
697
|
};
|
|
702
|
-
exports.
|
|
703
|
-
const
|
|
698
|
+
exports.se_ListChannelFlowsCommand = se_ListChannelFlowsCommand;
|
|
699
|
+
const se_ListChannelMembershipsCommand = async (input, context) => {
|
|
704
700
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
705
701
|
const headers = map({}, isSerializableHeaderValue, {
|
|
706
702
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
@@ -725,8 +721,8 @@ const serializeAws_restJson1ListChannelMembershipsCommand = async (input, contex
|
|
|
725
721
|
body,
|
|
726
722
|
});
|
|
727
723
|
};
|
|
728
|
-
exports.
|
|
729
|
-
const
|
|
724
|
+
exports.se_ListChannelMembershipsCommand = se_ListChannelMembershipsCommand;
|
|
725
|
+
const se_ListChannelMembershipsForAppInstanceUserCommand = async (input, context) => {
|
|
730
726
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
731
727
|
const headers = map({}, isSerializableHeaderValue, {
|
|
732
728
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
@@ -750,8 +746,8 @@ const serializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommand = as
|
|
|
750
746
|
body,
|
|
751
747
|
});
|
|
752
748
|
};
|
|
753
|
-
exports.
|
|
754
|
-
const
|
|
749
|
+
exports.se_ListChannelMembershipsForAppInstanceUserCommand = se_ListChannelMembershipsForAppInstanceUserCommand;
|
|
750
|
+
const se_ListChannelMessagesCommand = async (input, context) => {
|
|
755
751
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
756
752
|
const headers = map({}, isSerializableHeaderValue, {
|
|
757
753
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
@@ -784,8 +780,8 @@ const serializeAws_restJson1ListChannelMessagesCommand = async (input, context)
|
|
|
784
780
|
body,
|
|
785
781
|
});
|
|
786
782
|
};
|
|
787
|
-
exports.
|
|
788
|
-
const
|
|
783
|
+
exports.se_ListChannelMessagesCommand = se_ListChannelMessagesCommand;
|
|
784
|
+
const se_ListChannelModeratorsCommand = async (input, context) => {
|
|
789
785
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
790
786
|
const headers = map({}, isSerializableHeaderValue, {
|
|
791
787
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
@@ -808,8 +804,8 @@ const serializeAws_restJson1ListChannelModeratorsCommand = async (input, context
|
|
|
808
804
|
body,
|
|
809
805
|
});
|
|
810
806
|
};
|
|
811
|
-
exports.
|
|
812
|
-
const
|
|
807
|
+
exports.se_ListChannelModeratorsCommand = se_ListChannelModeratorsCommand;
|
|
808
|
+
const se_ListChannelsCommand = async (input, context) => {
|
|
813
809
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
814
810
|
const headers = map({}, isSerializableHeaderValue, {
|
|
815
811
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
@@ -833,8 +829,8 @@ const serializeAws_restJson1ListChannelsCommand = async (input, context) => {
|
|
|
833
829
|
body,
|
|
834
830
|
});
|
|
835
831
|
};
|
|
836
|
-
exports.
|
|
837
|
-
const
|
|
832
|
+
exports.se_ListChannelsCommand = se_ListChannelsCommand;
|
|
833
|
+
const se_ListChannelsAssociatedWithChannelFlowCommand = async (input, context) => {
|
|
838
834
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
839
835
|
const headers = {};
|
|
840
836
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
|
|
@@ -856,8 +852,8 @@ const serializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommand = async
|
|
|
856
852
|
body,
|
|
857
853
|
});
|
|
858
854
|
};
|
|
859
|
-
exports.
|
|
860
|
-
const
|
|
855
|
+
exports.se_ListChannelsAssociatedWithChannelFlowCommand = se_ListChannelsAssociatedWithChannelFlowCommand;
|
|
856
|
+
const se_ListChannelsModeratedByAppInstanceUserCommand = async (input, context) => {
|
|
861
857
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
862
858
|
const headers = map({}, isSerializableHeaderValue, {
|
|
863
859
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
@@ -881,8 +877,8 @@ const serializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand = asyn
|
|
|
881
877
|
body,
|
|
882
878
|
});
|
|
883
879
|
};
|
|
884
|
-
exports.
|
|
885
|
-
const
|
|
880
|
+
exports.se_ListChannelsModeratedByAppInstanceUserCommand = se_ListChannelsModeratedByAppInstanceUserCommand;
|
|
881
|
+
const se_ListSubChannelsCommand = async (input, context) => {
|
|
886
882
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
887
883
|
const headers = map({}, isSerializableHeaderValue, {
|
|
888
884
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
@@ -905,8 +901,8 @@ const serializeAws_restJson1ListSubChannelsCommand = async (input, context) => {
|
|
|
905
901
|
body,
|
|
906
902
|
});
|
|
907
903
|
};
|
|
908
|
-
exports.
|
|
909
|
-
const
|
|
904
|
+
exports.se_ListSubChannelsCommand = se_ListSubChannelsCommand;
|
|
905
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
910
906
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
911
907
|
const headers = {};
|
|
912
908
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
@@ -925,8 +921,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
925
921
|
body,
|
|
926
922
|
});
|
|
927
923
|
};
|
|
928
|
-
exports.
|
|
929
|
-
const
|
|
924
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
925
|
+
const se_PutChannelExpirationSettingsCommand = async (input, context) => {
|
|
930
926
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
931
927
|
const headers = map({}, isSerializableHeaderValue, {
|
|
932
928
|
"content-type": "application/json",
|
|
@@ -938,7 +934,7 @@ const serializeAws_restJson1PutChannelExpirationSettingsCommand = async (input,
|
|
|
938
934
|
let body;
|
|
939
935
|
body = JSON.stringify({
|
|
940
936
|
...(input.ExpirationSettings != null && {
|
|
941
|
-
ExpirationSettings:
|
|
937
|
+
ExpirationSettings: se_ExpirationSettings(input.ExpirationSettings, context),
|
|
942
938
|
}),
|
|
943
939
|
});
|
|
944
940
|
return new protocol_http_1.HttpRequest({
|
|
@@ -951,8 +947,8 @@ const serializeAws_restJson1PutChannelExpirationSettingsCommand = async (input,
|
|
|
951
947
|
body,
|
|
952
948
|
});
|
|
953
949
|
};
|
|
954
|
-
exports.
|
|
955
|
-
const
|
|
950
|
+
exports.se_PutChannelExpirationSettingsCommand = se_PutChannelExpirationSettingsCommand;
|
|
951
|
+
const se_PutChannelMembershipPreferencesCommand = async (input, context) => {
|
|
956
952
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
957
953
|
const headers = map({}, isSerializableHeaderValue, {
|
|
958
954
|
"content-type": "application/json",
|
|
@@ -964,9 +960,7 @@ const serializeAws_restJson1PutChannelMembershipPreferencesCommand = async (inpu
|
|
|
964
960
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
965
961
|
let body;
|
|
966
962
|
body = JSON.stringify({
|
|
967
|
-
...(input.Preferences != null && {
|
|
968
|
-
Preferences: serializeAws_restJson1ChannelMembershipPreferences(input.Preferences, context),
|
|
969
|
-
}),
|
|
963
|
+
...(input.Preferences != null && { Preferences: se_ChannelMembershipPreferences(input.Preferences, context) }),
|
|
970
964
|
});
|
|
971
965
|
return new protocol_http_1.HttpRequest({
|
|
972
966
|
protocol,
|
|
@@ -978,8 +972,8 @@ const serializeAws_restJson1PutChannelMembershipPreferencesCommand = async (inpu
|
|
|
978
972
|
body,
|
|
979
973
|
});
|
|
980
974
|
};
|
|
981
|
-
exports.
|
|
982
|
-
const
|
|
975
|
+
exports.se_PutChannelMembershipPreferencesCommand = se_PutChannelMembershipPreferencesCommand;
|
|
976
|
+
const se_PutMessagingStreamingConfigurationsCommand = async (input, context) => {
|
|
983
977
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
984
978
|
const headers = {
|
|
985
979
|
"content-type": "application/json",
|
|
@@ -990,7 +984,7 @@ const serializeAws_restJson1PutMessagingStreamingConfigurationsCommand = async (
|
|
|
990
984
|
let body;
|
|
991
985
|
body = JSON.stringify({
|
|
992
986
|
...(input.StreamingConfigurations != null && {
|
|
993
|
-
StreamingConfigurations:
|
|
987
|
+
StreamingConfigurations: se_StreamingConfigurationList(input.StreamingConfigurations, context),
|
|
994
988
|
}),
|
|
995
989
|
});
|
|
996
990
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1003,8 +997,8 @@ const serializeAws_restJson1PutMessagingStreamingConfigurationsCommand = async (
|
|
|
1003
997
|
body,
|
|
1004
998
|
});
|
|
1005
999
|
};
|
|
1006
|
-
exports.
|
|
1007
|
-
const
|
|
1000
|
+
exports.se_PutMessagingStreamingConfigurationsCommand = se_PutMessagingStreamingConfigurationsCommand;
|
|
1001
|
+
const se_RedactChannelMessageCommand = async (input, context) => {
|
|
1008
1002
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1009
1003
|
const headers = map({}, isSerializableHeaderValue, {
|
|
1010
1004
|
"content-type": "application/json",
|
|
@@ -1032,8 +1026,8 @@ const serializeAws_restJson1RedactChannelMessageCommand = async (input, context)
|
|
|
1032
1026
|
body,
|
|
1033
1027
|
});
|
|
1034
1028
|
};
|
|
1035
|
-
exports.
|
|
1036
|
-
const
|
|
1029
|
+
exports.se_RedactChannelMessageCommand = se_RedactChannelMessageCommand;
|
|
1030
|
+
const se_SearchChannelsCommand = async (input, context) => {
|
|
1037
1031
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1038
1032
|
const headers = map({}, isSerializableHeaderValue, {
|
|
1039
1033
|
"content-type": "application/json",
|
|
@@ -1047,7 +1041,7 @@ const serializeAws_restJson1SearchChannelsCommand = async (input, context) => {
|
|
|
1047
1041
|
});
|
|
1048
1042
|
let body;
|
|
1049
1043
|
body = JSON.stringify({
|
|
1050
|
-
...(input.Fields != null && { Fields:
|
|
1044
|
+
...(input.Fields != null && { Fields: se_SearchFields(input.Fields, context) }),
|
|
1051
1045
|
});
|
|
1052
1046
|
return new protocol_http_1.HttpRequest({
|
|
1053
1047
|
protocol,
|
|
@@ -1060,8 +1054,8 @@ const serializeAws_restJson1SearchChannelsCommand = async (input, context) => {
|
|
|
1060
1054
|
body,
|
|
1061
1055
|
});
|
|
1062
1056
|
};
|
|
1063
|
-
exports.
|
|
1064
|
-
const
|
|
1057
|
+
exports.se_SearchChannelsCommand = se_SearchChannelsCommand;
|
|
1058
|
+
const se_SendChannelMessageCommand = async (input, context) => {
|
|
1065
1059
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1066
1060
|
const headers = map({}, isSerializableHeaderValue, {
|
|
1067
1061
|
"content-type": "application/json",
|
|
@@ -1075,12 +1069,12 @@ const serializeAws_restJson1SendChannelMessageCommand = async (input, context) =
|
|
|
1075
1069
|
...(input.Content != null && { Content: input.Content }),
|
|
1076
1070
|
...(input.ContentType != null && { ContentType: input.ContentType }),
|
|
1077
1071
|
...(input.MessageAttributes != null && {
|
|
1078
|
-
MessageAttributes:
|
|
1072
|
+
MessageAttributes: se_MessageAttributeMap(input.MessageAttributes, context),
|
|
1079
1073
|
}),
|
|
1080
1074
|
...(input.Metadata != null && { Metadata: input.Metadata }),
|
|
1081
1075
|
...(input.Persistence != null && { Persistence: input.Persistence }),
|
|
1082
1076
|
...(input.PushNotification != null && {
|
|
1083
|
-
PushNotification:
|
|
1077
|
+
PushNotification: se_PushNotificationConfiguration(input.PushNotification, context),
|
|
1084
1078
|
}),
|
|
1085
1079
|
...(input.SubChannelId != null && { SubChannelId: input.SubChannelId }),
|
|
1086
1080
|
...(input.Type != null && { Type: input.Type }),
|
|
@@ -1095,8 +1089,8 @@ const serializeAws_restJson1SendChannelMessageCommand = async (input, context) =
|
|
|
1095
1089
|
body,
|
|
1096
1090
|
});
|
|
1097
1091
|
};
|
|
1098
|
-
exports.
|
|
1099
|
-
const
|
|
1092
|
+
exports.se_SendChannelMessageCommand = se_SendChannelMessageCommand;
|
|
1093
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
1100
1094
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1101
1095
|
const headers = {
|
|
1102
1096
|
"content-type": "application/json",
|
|
@@ -1108,7 +1102,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1108
1102
|
let body;
|
|
1109
1103
|
body = JSON.stringify({
|
|
1110
1104
|
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1111
|
-
...(input.Tags != null && { Tags:
|
|
1105
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1112
1106
|
});
|
|
1113
1107
|
return new protocol_http_1.HttpRequest({
|
|
1114
1108
|
protocol,
|
|
@@ -1121,8 +1115,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1121
1115
|
body,
|
|
1122
1116
|
});
|
|
1123
1117
|
};
|
|
1124
|
-
exports.
|
|
1125
|
-
const
|
|
1118
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
1119
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
1126
1120
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1127
1121
|
const headers = {
|
|
1128
1122
|
"content-type": "application/json",
|
|
@@ -1134,7 +1128,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
1134
1128
|
let body;
|
|
1135
1129
|
body = JSON.stringify({
|
|
1136
1130
|
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1137
|
-
...(input.TagKeys != null && { TagKeys:
|
|
1131
|
+
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
1138
1132
|
});
|
|
1139
1133
|
return new protocol_http_1.HttpRequest({
|
|
1140
1134
|
protocol,
|
|
@@ -1147,8 +1141,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
1147
1141
|
body,
|
|
1148
1142
|
});
|
|
1149
1143
|
};
|
|
1150
|
-
exports.
|
|
1151
|
-
const
|
|
1144
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
1145
|
+
const se_UpdateChannelCommand = async (input, context) => {
|
|
1152
1146
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1153
1147
|
const headers = map({}, isSerializableHeaderValue, {
|
|
1154
1148
|
"content-type": "application/json",
|
|
@@ -1172,8 +1166,8 @@ const serializeAws_restJson1UpdateChannelCommand = async (input, context) => {
|
|
|
1172
1166
|
body,
|
|
1173
1167
|
});
|
|
1174
1168
|
};
|
|
1175
|
-
exports.
|
|
1176
|
-
const
|
|
1169
|
+
exports.se_UpdateChannelCommand = se_UpdateChannelCommand;
|
|
1170
|
+
const se_UpdateChannelFlowCommand = async (input, context) => {
|
|
1177
1171
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1178
1172
|
const headers = {
|
|
1179
1173
|
"content-type": "application/json",
|
|
@@ -1183,7 +1177,7 @@ const serializeAws_restJson1UpdateChannelFlowCommand = async (input, context) =>
|
|
|
1183
1177
|
let body;
|
|
1184
1178
|
body = JSON.stringify({
|
|
1185
1179
|
...(input.Name != null && { Name: input.Name }),
|
|
1186
|
-
...(input.Processors != null && { Processors:
|
|
1180
|
+
...(input.Processors != null && { Processors: se_ProcessorList(input.Processors, context) }),
|
|
1187
1181
|
});
|
|
1188
1182
|
return new protocol_http_1.HttpRequest({
|
|
1189
1183
|
protocol,
|
|
@@ -1195,8 +1189,8 @@ const serializeAws_restJson1UpdateChannelFlowCommand = async (input, context) =>
|
|
|
1195
1189
|
body,
|
|
1196
1190
|
});
|
|
1197
1191
|
};
|
|
1198
|
-
exports.
|
|
1199
|
-
const
|
|
1192
|
+
exports.se_UpdateChannelFlowCommand = se_UpdateChannelFlowCommand;
|
|
1193
|
+
const se_UpdateChannelMessageCommand = async (input, context) => {
|
|
1200
1194
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1201
1195
|
const headers = map({}, isSerializableHeaderValue, {
|
|
1202
1196
|
"content-type": "application/json",
|
|
@@ -1223,8 +1217,8 @@ const serializeAws_restJson1UpdateChannelMessageCommand = async (input, context)
|
|
|
1223
1217
|
body,
|
|
1224
1218
|
});
|
|
1225
1219
|
};
|
|
1226
|
-
exports.
|
|
1227
|
-
const
|
|
1220
|
+
exports.se_UpdateChannelMessageCommand = se_UpdateChannelMessageCommand;
|
|
1221
|
+
const se_UpdateChannelReadMarkerCommand = async (input, context) => {
|
|
1228
1222
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1229
1223
|
const headers = map({}, isSerializableHeaderValue, {
|
|
1230
1224
|
"content-type": "application/json",
|
|
@@ -1246,10 +1240,10 @@ const serializeAws_restJson1UpdateChannelReadMarkerCommand = async (input, conte
|
|
|
1246
1240
|
body,
|
|
1247
1241
|
});
|
|
1248
1242
|
};
|
|
1249
|
-
exports.
|
|
1250
|
-
const
|
|
1243
|
+
exports.se_UpdateChannelReadMarkerCommand = se_UpdateChannelReadMarkerCommand;
|
|
1244
|
+
const de_AssociateChannelFlowCommand = async (output, context) => {
|
|
1251
1245
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1252
|
-
return
|
|
1246
|
+
return de_AssociateChannelFlowCommandError(output, context);
|
|
1253
1247
|
}
|
|
1254
1248
|
const contents = map({
|
|
1255
1249
|
$metadata: deserializeMetadata(output),
|
|
@@ -1257,8 +1251,8 @@ const deserializeAws_restJson1AssociateChannelFlowCommand = async (output, conte
|
|
|
1257
1251
|
await collectBody(output.body, context);
|
|
1258
1252
|
return contents;
|
|
1259
1253
|
};
|
|
1260
|
-
exports.
|
|
1261
|
-
const
|
|
1254
|
+
exports.de_AssociateChannelFlowCommand = de_AssociateChannelFlowCommand;
|
|
1255
|
+
const de_AssociateChannelFlowCommandError = async (output, context) => {
|
|
1262
1256
|
const parsedOutput = {
|
|
1263
1257
|
...output,
|
|
1264
1258
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1267,28 +1261,28 @@ const deserializeAws_restJson1AssociateChannelFlowCommandError = async (output,
|
|
|
1267
1261
|
switch (errorCode) {
|
|
1268
1262
|
case "BadRequestException":
|
|
1269
1263
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1270
|
-
throw await
|
|
1264
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1271
1265
|
case "ConflictException":
|
|
1272
1266
|
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1273
|
-
throw await
|
|
1267
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1274
1268
|
case "ForbiddenException":
|
|
1275
1269
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1276
|
-
throw await
|
|
1270
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1277
1271
|
case "NotFoundException":
|
|
1278
1272
|
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
1279
|
-
throw await
|
|
1273
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1280
1274
|
case "ServiceFailureException":
|
|
1281
1275
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1282
|
-
throw await
|
|
1276
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1283
1277
|
case "ServiceUnavailableException":
|
|
1284
1278
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1285
|
-
throw await
|
|
1279
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1286
1280
|
case "ThrottledClientException":
|
|
1287
1281
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1288
|
-
throw await
|
|
1282
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1289
1283
|
case "UnauthorizedClientException":
|
|
1290
1284
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1291
|
-
throw await
|
|
1285
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1292
1286
|
default:
|
|
1293
1287
|
const parsedBody = parsedOutput.body;
|
|
1294
1288
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1299,24 +1293,24 @@ const deserializeAws_restJson1AssociateChannelFlowCommandError = async (output,
|
|
|
1299
1293
|
});
|
|
1300
1294
|
}
|
|
1301
1295
|
};
|
|
1302
|
-
const
|
|
1296
|
+
const de_BatchCreateChannelMembershipCommand = async (output, context) => {
|
|
1303
1297
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1304
|
-
return
|
|
1298
|
+
return de_BatchCreateChannelMembershipCommandError(output, context);
|
|
1305
1299
|
}
|
|
1306
1300
|
const contents = map({
|
|
1307
1301
|
$metadata: deserializeMetadata(output),
|
|
1308
1302
|
});
|
|
1309
1303
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1310
1304
|
if (data.BatchChannelMemberships != null) {
|
|
1311
|
-
contents.BatchChannelMemberships =
|
|
1305
|
+
contents.BatchChannelMemberships = de_BatchChannelMemberships(data.BatchChannelMemberships, context);
|
|
1312
1306
|
}
|
|
1313
1307
|
if (data.Errors != null) {
|
|
1314
|
-
contents.Errors =
|
|
1308
|
+
contents.Errors = de_BatchCreateChannelMembershipErrors(data.Errors, context);
|
|
1315
1309
|
}
|
|
1316
1310
|
return contents;
|
|
1317
1311
|
};
|
|
1318
|
-
exports.
|
|
1319
|
-
const
|
|
1312
|
+
exports.de_BatchCreateChannelMembershipCommand = de_BatchCreateChannelMembershipCommand;
|
|
1313
|
+
const de_BatchCreateChannelMembershipCommandError = async (output, context) => {
|
|
1320
1314
|
const parsedOutput = {
|
|
1321
1315
|
...output,
|
|
1322
1316
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1325,28 +1319,28 @@ const deserializeAws_restJson1BatchCreateChannelMembershipCommandError = async (
|
|
|
1325
1319
|
switch (errorCode) {
|
|
1326
1320
|
case "BadRequestException":
|
|
1327
1321
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1328
|
-
throw await
|
|
1322
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1329
1323
|
case "ForbiddenException":
|
|
1330
1324
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1331
|
-
throw await
|
|
1325
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1332
1326
|
case "NotFoundException":
|
|
1333
1327
|
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
1334
|
-
throw await
|
|
1328
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1335
1329
|
case "ResourceLimitExceededException":
|
|
1336
1330
|
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
1337
|
-
throw await
|
|
1331
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1338
1332
|
case "ServiceFailureException":
|
|
1339
1333
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1340
|
-
throw await
|
|
1334
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1341
1335
|
case "ServiceUnavailableException":
|
|
1342
1336
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1343
|
-
throw await
|
|
1337
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1344
1338
|
case "ThrottledClientException":
|
|
1345
1339
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1346
|
-
throw await
|
|
1340
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1347
1341
|
case "UnauthorizedClientException":
|
|
1348
1342
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1349
|
-
throw await
|
|
1343
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1350
1344
|
default:
|
|
1351
1345
|
const parsedBody = parsedOutput.body;
|
|
1352
1346
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1357,9 +1351,9 @@ const deserializeAws_restJson1BatchCreateChannelMembershipCommandError = async (
|
|
|
1357
1351
|
});
|
|
1358
1352
|
}
|
|
1359
1353
|
};
|
|
1360
|
-
const
|
|
1354
|
+
const de_ChannelFlowCallbackCommand = async (output, context) => {
|
|
1361
1355
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1362
|
-
return
|
|
1356
|
+
return de_ChannelFlowCallbackCommandError(output, context);
|
|
1363
1357
|
}
|
|
1364
1358
|
const contents = map({
|
|
1365
1359
|
$metadata: deserializeMetadata(output),
|
|
@@ -1373,8 +1367,8 @@ const deserializeAws_restJson1ChannelFlowCallbackCommand = async (output, contex
|
|
|
1373
1367
|
}
|
|
1374
1368
|
return contents;
|
|
1375
1369
|
};
|
|
1376
|
-
exports.
|
|
1377
|
-
const
|
|
1370
|
+
exports.de_ChannelFlowCallbackCommand = de_ChannelFlowCallbackCommand;
|
|
1371
|
+
const de_ChannelFlowCallbackCommandError = async (output, context) => {
|
|
1378
1372
|
const parsedOutput = {
|
|
1379
1373
|
...output,
|
|
1380
1374
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1383,25 +1377,25 @@ const deserializeAws_restJson1ChannelFlowCallbackCommandError = async (output, c
|
|
|
1383
1377
|
switch (errorCode) {
|
|
1384
1378
|
case "BadRequestException":
|
|
1385
1379
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1386
|
-
throw await
|
|
1380
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1387
1381
|
case "ConflictException":
|
|
1388
1382
|
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1389
|
-
throw await
|
|
1383
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1390
1384
|
case "ForbiddenException":
|
|
1391
1385
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1392
|
-
throw await
|
|
1386
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1393
1387
|
case "ServiceFailureException":
|
|
1394
1388
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1395
|
-
throw await
|
|
1389
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1396
1390
|
case "ServiceUnavailableException":
|
|
1397
1391
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1398
|
-
throw await
|
|
1392
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1399
1393
|
case "ThrottledClientException":
|
|
1400
1394
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1401
|
-
throw await
|
|
1395
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1402
1396
|
case "UnauthorizedClientException":
|
|
1403
1397
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1404
|
-
throw await
|
|
1398
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1405
1399
|
default:
|
|
1406
1400
|
const parsedBody = parsedOutput.body;
|
|
1407
1401
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1412,9 +1406,9 @@ const deserializeAws_restJson1ChannelFlowCallbackCommandError = async (output, c
|
|
|
1412
1406
|
});
|
|
1413
1407
|
}
|
|
1414
1408
|
};
|
|
1415
|
-
const
|
|
1409
|
+
const de_CreateChannelCommand = async (output, context) => {
|
|
1416
1410
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1417
|
-
return
|
|
1411
|
+
return de_CreateChannelCommandError(output, context);
|
|
1418
1412
|
}
|
|
1419
1413
|
const contents = map({
|
|
1420
1414
|
$metadata: deserializeMetadata(output),
|
|
@@ -1425,8 +1419,8 @@ const deserializeAws_restJson1CreateChannelCommand = async (output, context) =>
|
|
|
1425
1419
|
}
|
|
1426
1420
|
return contents;
|
|
1427
1421
|
};
|
|
1428
|
-
exports.
|
|
1429
|
-
const
|
|
1422
|
+
exports.de_CreateChannelCommand = de_CreateChannelCommand;
|
|
1423
|
+
const de_CreateChannelCommandError = async (output, context) => {
|
|
1430
1424
|
const parsedOutput = {
|
|
1431
1425
|
...output,
|
|
1432
1426
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1435,28 +1429,28 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
|
|
|
1435
1429
|
switch (errorCode) {
|
|
1436
1430
|
case "BadRequestException":
|
|
1437
1431
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1438
|
-
throw await
|
|
1432
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1439
1433
|
case "ConflictException":
|
|
1440
1434
|
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1441
|
-
throw await
|
|
1435
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1442
1436
|
case "ForbiddenException":
|
|
1443
1437
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1444
|
-
throw await
|
|
1438
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1445
1439
|
case "ResourceLimitExceededException":
|
|
1446
1440
|
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
1447
|
-
throw await
|
|
1441
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1448
1442
|
case "ServiceFailureException":
|
|
1449
1443
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1450
|
-
throw await
|
|
1444
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1451
1445
|
case "ServiceUnavailableException":
|
|
1452
1446
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1453
|
-
throw await
|
|
1447
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1454
1448
|
case "ThrottledClientException":
|
|
1455
1449
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1456
|
-
throw await
|
|
1450
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1457
1451
|
case "UnauthorizedClientException":
|
|
1458
1452
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1459
|
-
throw await
|
|
1453
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1460
1454
|
default:
|
|
1461
1455
|
const parsedBody = parsedOutput.body;
|
|
1462
1456
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1467,9 +1461,9 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
|
|
|
1467
1461
|
});
|
|
1468
1462
|
}
|
|
1469
1463
|
};
|
|
1470
|
-
const
|
|
1464
|
+
const de_CreateChannelBanCommand = async (output, context) => {
|
|
1471
1465
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1472
|
-
return
|
|
1466
|
+
return de_CreateChannelBanCommandError(output, context);
|
|
1473
1467
|
}
|
|
1474
1468
|
const contents = map({
|
|
1475
1469
|
$metadata: deserializeMetadata(output),
|
|
@@ -1479,12 +1473,12 @@ const deserializeAws_restJson1CreateChannelBanCommand = async (output, context)
|
|
|
1479
1473
|
contents.ChannelArn = (0, smithy_client_1.expectString)(data.ChannelArn);
|
|
1480
1474
|
}
|
|
1481
1475
|
if (data.Member != null) {
|
|
1482
|
-
contents.Member =
|
|
1476
|
+
contents.Member = de_Identity(data.Member, context);
|
|
1483
1477
|
}
|
|
1484
1478
|
return contents;
|
|
1485
1479
|
};
|
|
1486
|
-
exports.
|
|
1487
|
-
const
|
|
1480
|
+
exports.de_CreateChannelBanCommand = de_CreateChannelBanCommand;
|
|
1481
|
+
const de_CreateChannelBanCommandError = async (output, context) => {
|
|
1488
1482
|
const parsedOutput = {
|
|
1489
1483
|
...output,
|
|
1490
1484
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1493,28 +1487,28 @@ const deserializeAws_restJson1CreateChannelBanCommandError = async (output, cont
|
|
|
1493
1487
|
switch (errorCode) {
|
|
1494
1488
|
case "BadRequestException":
|
|
1495
1489
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1496
|
-
throw await
|
|
1490
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1497
1491
|
case "ConflictException":
|
|
1498
1492
|
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1499
|
-
throw await
|
|
1493
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1500
1494
|
case "ForbiddenException":
|
|
1501
1495
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1502
|
-
throw await
|
|
1496
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1503
1497
|
case "ResourceLimitExceededException":
|
|
1504
1498
|
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
1505
|
-
throw await
|
|
1499
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1506
1500
|
case "ServiceFailureException":
|
|
1507
1501
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1508
|
-
throw await
|
|
1502
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1509
1503
|
case "ServiceUnavailableException":
|
|
1510
1504
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1511
|
-
throw await
|
|
1505
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1512
1506
|
case "ThrottledClientException":
|
|
1513
1507
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1514
|
-
throw await
|
|
1508
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1515
1509
|
case "UnauthorizedClientException":
|
|
1516
1510
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1517
|
-
throw await
|
|
1511
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1518
1512
|
default:
|
|
1519
1513
|
const parsedBody = parsedOutput.body;
|
|
1520
1514
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1525,9 +1519,9 @@ const deserializeAws_restJson1CreateChannelBanCommandError = async (output, cont
|
|
|
1525
1519
|
});
|
|
1526
1520
|
}
|
|
1527
1521
|
};
|
|
1528
|
-
const
|
|
1522
|
+
const de_CreateChannelFlowCommand = async (output, context) => {
|
|
1529
1523
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1530
|
-
return
|
|
1524
|
+
return de_CreateChannelFlowCommandError(output, context);
|
|
1531
1525
|
}
|
|
1532
1526
|
const contents = map({
|
|
1533
1527
|
$metadata: deserializeMetadata(output),
|
|
@@ -1538,8 +1532,8 @@ const deserializeAws_restJson1CreateChannelFlowCommand = async (output, context)
|
|
|
1538
1532
|
}
|
|
1539
1533
|
return contents;
|
|
1540
1534
|
};
|
|
1541
|
-
exports.
|
|
1542
|
-
const
|
|
1535
|
+
exports.de_CreateChannelFlowCommand = de_CreateChannelFlowCommand;
|
|
1536
|
+
const de_CreateChannelFlowCommandError = async (output, context) => {
|
|
1543
1537
|
const parsedOutput = {
|
|
1544
1538
|
...output,
|
|
1545
1539
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1548,28 +1542,28 @@ const deserializeAws_restJson1CreateChannelFlowCommandError = async (output, con
|
|
|
1548
1542
|
switch (errorCode) {
|
|
1549
1543
|
case "BadRequestException":
|
|
1550
1544
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1551
|
-
throw await
|
|
1545
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1552
1546
|
case "ConflictException":
|
|
1553
1547
|
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1554
|
-
throw await
|
|
1548
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1555
1549
|
case "ForbiddenException":
|
|
1556
1550
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1557
|
-
throw await
|
|
1551
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1558
1552
|
case "ResourceLimitExceededException":
|
|
1559
1553
|
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
1560
|
-
throw await
|
|
1554
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1561
1555
|
case "ServiceFailureException":
|
|
1562
1556
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1563
|
-
throw await
|
|
1557
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1564
1558
|
case "ServiceUnavailableException":
|
|
1565
1559
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1566
|
-
throw await
|
|
1560
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1567
1561
|
case "ThrottledClientException":
|
|
1568
1562
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1569
|
-
throw await
|
|
1563
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1570
1564
|
case "UnauthorizedClientException":
|
|
1571
1565
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1572
|
-
throw await
|
|
1566
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1573
1567
|
default:
|
|
1574
1568
|
const parsedBody = parsedOutput.body;
|
|
1575
1569
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1580,9 +1574,9 @@ const deserializeAws_restJson1CreateChannelFlowCommandError = async (output, con
|
|
|
1580
1574
|
});
|
|
1581
1575
|
}
|
|
1582
1576
|
};
|
|
1583
|
-
const
|
|
1577
|
+
const de_CreateChannelMembershipCommand = async (output, context) => {
|
|
1584
1578
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1585
|
-
return
|
|
1579
|
+
return de_CreateChannelMembershipCommandError(output, context);
|
|
1586
1580
|
}
|
|
1587
1581
|
const contents = map({
|
|
1588
1582
|
$metadata: deserializeMetadata(output),
|
|
@@ -1592,15 +1586,15 @@ const deserializeAws_restJson1CreateChannelMembershipCommand = async (output, co
|
|
|
1592
1586
|
contents.ChannelArn = (0, smithy_client_1.expectString)(data.ChannelArn);
|
|
1593
1587
|
}
|
|
1594
1588
|
if (data.Member != null) {
|
|
1595
|
-
contents.Member =
|
|
1589
|
+
contents.Member = de_Identity(data.Member, context);
|
|
1596
1590
|
}
|
|
1597
1591
|
if (data.SubChannelId != null) {
|
|
1598
1592
|
contents.SubChannelId = (0, smithy_client_1.expectString)(data.SubChannelId);
|
|
1599
1593
|
}
|
|
1600
1594
|
return contents;
|
|
1601
1595
|
};
|
|
1602
|
-
exports.
|
|
1603
|
-
const
|
|
1596
|
+
exports.de_CreateChannelMembershipCommand = de_CreateChannelMembershipCommand;
|
|
1597
|
+
const de_CreateChannelMembershipCommandError = async (output, context) => {
|
|
1604
1598
|
const parsedOutput = {
|
|
1605
1599
|
...output,
|
|
1606
1600
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1609,31 +1603,31 @@ const deserializeAws_restJson1CreateChannelMembershipCommandError = async (outpu
|
|
|
1609
1603
|
switch (errorCode) {
|
|
1610
1604
|
case "BadRequestException":
|
|
1611
1605
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1612
|
-
throw await
|
|
1606
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1613
1607
|
case "ConflictException":
|
|
1614
1608
|
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1615
|
-
throw await
|
|
1609
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1616
1610
|
case "ForbiddenException":
|
|
1617
1611
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1618
|
-
throw await
|
|
1612
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1619
1613
|
case "NotFoundException":
|
|
1620
1614
|
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
1621
|
-
throw await
|
|
1615
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1622
1616
|
case "ResourceLimitExceededException":
|
|
1623
1617
|
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
1624
|
-
throw await
|
|
1618
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1625
1619
|
case "ServiceFailureException":
|
|
1626
1620
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1627
|
-
throw await
|
|
1621
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1628
1622
|
case "ServiceUnavailableException":
|
|
1629
1623
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1630
|
-
throw await
|
|
1624
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1631
1625
|
case "ThrottledClientException":
|
|
1632
1626
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1633
|
-
throw await
|
|
1627
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1634
1628
|
case "UnauthorizedClientException":
|
|
1635
1629
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1636
|
-
throw await
|
|
1630
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1637
1631
|
default:
|
|
1638
1632
|
const parsedBody = parsedOutput.body;
|
|
1639
1633
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1644,9 +1638,9 @@ const deserializeAws_restJson1CreateChannelMembershipCommandError = async (outpu
|
|
|
1644
1638
|
});
|
|
1645
1639
|
}
|
|
1646
1640
|
};
|
|
1647
|
-
const
|
|
1641
|
+
const de_CreateChannelModeratorCommand = async (output, context) => {
|
|
1648
1642
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1649
|
-
return
|
|
1643
|
+
return de_CreateChannelModeratorCommandError(output, context);
|
|
1650
1644
|
}
|
|
1651
1645
|
const contents = map({
|
|
1652
1646
|
$metadata: deserializeMetadata(output),
|
|
@@ -1656,12 +1650,12 @@ const deserializeAws_restJson1CreateChannelModeratorCommand = async (output, con
|
|
|
1656
1650
|
contents.ChannelArn = (0, smithy_client_1.expectString)(data.ChannelArn);
|
|
1657
1651
|
}
|
|
1658
1652
|
if (data.ChannelModerator != null) {
|
|
1659
|
-
contents.ChannelModerator =
|
|
1653
|
+
contents.ChannelModerator = de_Identity(data.ChannelModerator, context);
|
|
1660
1654
|
}
|
|
1661
1655
|
return contents;
|
|
1662
1656
|
};
|
|
1663
|
-
exports.
|
|
1664
|
-
const
|
|
1657
|
+
exports.de_CreateChannelModeratorCommand = de_CreateChannelModeratorCommand;
|
|
1658
|
+
const de_CreateChannelModeratorCommandError = async (output, context) => {
|
|
1665
1659
|
const parsedOutput = {
|
|
1666
1660
|
...output,
|
|
1667
1661
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1670,28 +1664,28 @@ const deserializeAws_restJson1CreateChannelModeratorCommandError = async (output
|
|
|
1670
1664
|
switch (errorCode) {
|
|
1671
1665
|
case "BadRequestException":
|
|
1672
1666
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1673
|
-
throw await
|
|
1667
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1674
1668
|
case "ConflictException":
|
|
1675
1669
|
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1676
|
-
throw await
|
|
1670
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1677
1671
|
case "ForbiddenException":
|
|
1678
1672
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1679
|
-
throw await
|
|
1673
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1680
1674
|
case "ResourceLimitExceededException":
|
|
1681
1675
|
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
1682
|
-
throw await
|
|
1676
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1683
1677
|
case "ServiceFailureException":
|
|
1684
1678
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1685
|
-
throw await
|
|
1679
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1686
1680
|
case "ServiceUnavailableException":
|
|
1687
1681
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1688
|
-
throw await
|
|
1682
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1689
1683
|
case "ThrottledClientException":
|
|
1690
1684
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1691
|
-
throw await
|
|
1685
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1692
1686
|
case "UnauthorizedClientException":
|
|
1693
1687
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1694
|
-
throw await
|
|
1688
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1695
1689
|
default:
|
|
1696
1690
|
const parsedBody = parsedOutput.body;
|
|
1697
1691
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1702,9 +1696,9 @@ const deserializeAws_restJson1CreateChannelModeratorCommandError = async (output
|
|
|
1702
1696
|
});
|
|
1703
1697
|
}
|
|
1704
1698
|
};
|
|
1705
|
-
const
|
|
1699
|
+
const de_DeleteChannelCommand = async (output, context) => {
|
|
1706
1700
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1707
|
-
return
|
|
1701
|
+
return de_DeleteChannelCommandError(output, context);
|
|
1708
1702
|
}
|
|
1709
1703
|
const contents = map({
|
|
1710
1704
|
$metadata: deserializeMetadata(output),
|
|
@@ -1712,8 +1706,8 @@ const deserializeAws_restJson1DeleteChannelCommand = async (output, context) =>
|
|
|
1712
1706
|
await collectBody(output.body, context);
|
|
1713
1707
|
return contents;
|
|
1714
1708
|
};
|
|
1715
|
-
exports.
|
|
1716
|
-
const
|
|
1709
|
+
exports.de_DeleteChannelCommand = de_DeleteChannelCommand;
|
|
1710
|
+
const de_DeleteChannelCommandError = async (output, context) => {
|
|
1717
1711
|
const parsedOutput = {
|
|
1718
1712
|
...output,
|
|
1719
1713
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1722,22 +1716,22 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (output, context
|
|
|
1722
1716
|
switch (errorCode) {
|
|
1723
1717
|
case "BadRequestException":
|
|
1724
1718
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1725
|
-
throw await
|
|
1719
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1726
1720
|
case "ForbiddenException":
|
|
1727
1721
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1728
|
-
throw await
|
|
1722
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1729
1723
|
case "ServiceFailureException":
|
|
1730
1724
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1731
|
-
throw await
|
|
1725
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1732
1726
|
case "ServiceUnavailableException":
|
|
1733
1727
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1734
|
-
throw await
|
|
1728
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1735
1729
|
case "ThrottledClientException":
|
|
1736
1730
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1737
|
-
throw await
|
|
1731
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1738
1732
|
case "UnauthorizedClientException":
|
|
1739
1733
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1740
|
-
throw await
|
|
1734
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1741
1735
|
default:
|
|
1742
1736
|
const parsedBody = parsedOutput.body;
|
|
1743
1737
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1748,9 +1742,9 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (output, context
|
|
|
1748
1742
|
});
|
|
1749
1743
|
}
|
|
1750
1744
|
};
|
|
1751
|
-
const
|
|
1745
|
+
const de_DeleteChannelBanCommand = async (output, context) => {
|
|
1752
1746
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1753
|
-
return
|
|
1747
|
+
return de_DeleteChannelBanCommandError(output, context);
|
|
1754
1748
|
}
|
|
1755
1749
|
const contents = map({
|
|
1756
1750
|
$metadata: deserializeMetadata(output),
|
|
@@ -1758,8 +1752,8 @@ const deserializeAws_restJson1DeleteChannelBanCommand = async (output, context)
|
|
|
1758
1752
|
await collectBody(output.body, context);
|
|
1759
1753
|
return contents;
|
|
1760
1754
|
};
|
|
1761
|
-
exports.
|
|
1762
|
-
const
|
|
1755
|
+
exports.de_DeleteChannelBanCommand = de_DeleteChannelBanCommand;
|
|
1756
|
+
const de_DeleteChannelBanCommandError = async (output, context) => {
|
|
1763
1757
|
const parsedOutput = {
|
|
1764
1758
|
...output,
|
|
1765
1759
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1768,22 +1762,22 @@ const deserializeAws_restJson1DeleteChannelBanCommandError = async (output, cont
|
|
|
1768
1762
|
switch (errorCode) {
|
|
1769
1763
|
case "BadRequestException":
|
|
1770
1764
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1771
|
-
throw await
|
|
1765
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1772
1766
|
case "ForbiddenException":
|
|
1773
1767
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1774
|
-
throw await
|
|
1768
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1775
1769
|
case "ServiceFailureException":
|
|
1776
1770
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1777
|
-
throw await
|
|
1771
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1778
1772
|
case "ServiceUnavailableException":
|
|
1779
1773
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1780
|
-
throw await
|
|
1774
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1781
1775
|
case "ThrottledClientException":
|
|
1782
1776
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1783
|
-
throw await
|
|
1777
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1784
1778
|
case "UnauthorizedClientException":
|
|
1785
1779
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1786
|
-
throw await
|
|
1780
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1787
1781
|
default:
|
|
1788
1782
|
const parsedBody = parsedOutput.body;
|
|
1789
1783
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1794,9 +1788,9 @@ const deserializeAws_restJson1DeleteChannelBanCommandError = async (output, cont
|
|
|
1794
1788
|
});
|
|
1795
1789
|
}
|
|
1796
1790
|
};
|
|
1797
|
-
const
|
|
1791
|
+
const de_DeleteChannelFlowCommand = async (output, context) => {
|
|
1798
1792
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1799
|
-
return
|
|
1793
|
+
return de_DeleteChannelFlowCommandError(output, context);
|
|
1800
1794
|
}
|
|
1801
1795
|
const contents = map({
|
|
1802
1796
|
$metadata: deserializeMetadata(output),
|
|
@@ -1804,8 +1798,8 @@ const deserializeAws_restJson1DeleteChannelFlowCommand = async (output, context)
|
|
|
1804
1798
|
await collectBody(output.body, context);
|
|
1805
1799
|
return contents;
|
|
1806
1800
|
};
|
|
1807
|
-
exports.
|
|
1808
|
-
const
|
|
1801
|
+
exports.de_DeleteChannelFlowCommand = de_DeleteChannelFlowCommand;
|
|
1802
|
+
const de_DeleteChannelFlowCommandError = async (output, context) => {
|
|
1809
1803
|
const parsedOutput = {
|
|
1810
1804
|
...output,
|
|
1811
1805
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1814,25 +1808,25 @@ const deserializeAws_restJson1DeleteChannelFlowCommandError = async (output, con
|
|
|
1814
1808
|
switch (errorCode) {
|
|
1815
1809
|
case "BadRequestException":
|
|
1816
1810
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1817
|
-
throw await
|
|
1811
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1818
1812
|
case "ConflictException":
|
|
1819
1813
|
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1820
|
-
throw await
|
|
1814
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1821
1815
|
case "ForbiddenException":
|
|
1822
1816
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1823
|
-
throw await
|
|
1817
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1824
1818
|
case "ServiceFailureException":
|
|
1825
1819
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1826
|
-
throw await
|
|
1820
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1827
1821
|
case "ServiceUnavailableException":
|
|
1828
1822
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1829
|
-
throw await
|
|
1823
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1830
1824
|
case "ThrottledClientException":
|
|
1831
1825
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1832
|
-
throw await
|
|
1826
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1833
1827
|
case "UnauthorizedClientException":
|
|
1834
1828
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1835
|
-
throw await
|
|
1829
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1836
1830
|
default:
|
|
1837
1831
|
const parsedBody = parsedOutput.body;
|
|
1838
1832
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1843,9 +1837,9 @@ const deserializeAws_restJson1DeleteChannelFlowCommandError = async (output, con
|
|
|
1843
1837
|
});
|
|
1844
1838
|
}
|
|
1845
1839
|
};
|
|
1846
|
-
const
|
|
1840
|
+
const de_DeleteChannelMembershipCommand = async (output, context) => {
|
|
1847
1841
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1848
|
-
return
|
|
1842
|
+
return de_DeleteChannelMembershipCommandError(output, context);
|
|
1849
1843
|
}
|
|
1850
1844
|
const contents = map({
|
|
1851
1845
|
$metadata: deserializeMetadata(output),
|
|
@@ -1853,8 +1847,8 @@ const deserializeAws_restJson1DeleteChannelMembershipCommand = async (output, co
|
|
|
1853
1847
|
await collectBody(output.body, context);
|
|
1854
1848
|
return contents;
|
|
1855
1849
|
};
|
|
1856
|
-
exports.
|
|
1857
|
-
const
|
|
1850
|
+
exports.de_DeleteChannelMembershipCommand = de_DeleteChannelMembershipCommand;
|
|
1851
|
+
const de_DeleteChannelMembershipCommandError = async (output, context) => {
|
|
1858
1852
|
const parsedOutput = {
|
|
1859
1853
|
...output,
|
|
1860
1854
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1863,25 +1857,25 @@ const deserializeAws_restJson1DeleteChannelMembershipCommandError = async (outpu
|
|
|
1863
1857
|
switch (errorCode) {
|
|
1864
1858
|
case "BadRequestException":
|
|
1865
1859
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1866
|
-
throw await
|
|
1860
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1867
1861
|
case "ConflictException":
|
|
1868
1862
|
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1869
|
-
throw await
|
|
1863
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1870
1864
|
case "ForbiddenException":
|
|
1871
1865
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1872
|
-
throw await
|
|
1866
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1873
1867
|
case "ServiceFailureException":
|
|
1874
1868
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1875
|
-
throw await
|
|
1869
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1876
1870
|
case "ServiceUnavailableException":
|
|
1877
1871
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1878
|
-
throw await
|
|
1872
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1879
1873
|
case "ThrottledClientException":
|
|
1880
1874
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1881
|
-
throw await
|
|
1875
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1882
1876
|
case "UnauthorizedClientException":
|
|
1883
1877
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1884
|
-
throw await
|
|
1878
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1885
1879
|
default:
|
|
1886
1880
|
const parsedBody = parsedOutput.body;
|
|
1887
1881
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1892,9 +1886,9 @@ const deserializeAws_restJson1DeleteChannelMembershipCommandError = async (outpu
|
|
|
1892
1886
|
});
|
|
1893
1887
|
}
|
|
1894
1888
|
};
|
|
1895
|
-
const
|
|
1889
|
+
const de_DeleteChannelMessageCommand = async (output, context) => {
|
|
1896
1890
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1897
|
-
return
|
|
1891
|
+
return de_DeleteChannelMessageCommandError(output, context);
|
|
1898
1892
|
}
|
|
1899
1893
|
const contents = map({
|
|
1900
1894
|
$metadata: deserializeMetadata(output),
|
|
@@ -1902,8 +1896,8 @@ const deserializeAws_restJson1DeleteChannelMessageCommand = async (output, conte
|
|
|
1902
1896
|
await collectBody(output.body, context);
|
|
1903
1897
|
return contents;
|
|
1904
1898
|
};
|
|
1905
|
-
exports.
|
|
1906
|
-
const
|
|
1899
|
+
exports.de_DeleteChannelMessageCommand = de_DeleteChannelMessageCommand;
|
|
1900
|
+
const de_DeleteChannelMessageCommandError = async (output, context) => {
|
|
1907
1901
|
const parsedOutput = {
|
|
1908
1902
|
...output,
|
|
1909
1903
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1912,22 +1906,22 @@ const deserializeAws_restJson1DeleteChannelMessageCommandError = async (output,
|
|
|
1912
1906
|
switch (errorCode) {
|
|
1913
1907
|
case "BadRequestException":
|
|
1914
1908
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1915
|
-
throw await
|
|
1909
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1916
1910
|
case "ForbiddenException":
|
|
1917
1911
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1918
|
-
throw await
|
|
1912
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1919
1913
|
case "ServiceFailureException":
|
|
1920
1914
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1921
|
-
throw await
|
|
1915
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1922
1916
|
case "ServiceUnavailableException":
|
|
1923
1917
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1924
|
-
throw await
|
|
1918
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1925
1919
|
case "ThrottledClientException":
|
|
1926
1920
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1927
|
-
throw await
|
|
1921
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1928
1922
|
case "UnauthorizedClientException":
|
|
1929
1923
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1930
|
-
throw await
|
|
1924
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1931
1925
|
default:
|
|
1932
1926
|
const parsedBody = parsedOutput.body;
|
|
1933
1927
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1938,9 +1932,9 @@ const deserializeAws_restJson1DeleteChannelMessageCommandError = async (output,
|
|
|
1938
1932
|
});
|
|
1939
1933
|
}
|
|
1940
1934
|
};
|
|
1941
|
-
const
|
|
1935
|
+
const de_DeleteChannelModeratorCommand = async (output, context) => {
|
|
1942
1936
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1943
|
-
return
|
|
1937
|
+
return de_DeleteChannelModeratorCommandError(output, context);
|
|
1944
1938
|
}
|
|
1945
1939
|
const contents = map({
|
|
1946
1940
|
$metadata: deserializeMetadata(output),
|
|
@@ -1948,8 +1942,8 @@ const deserializeAws_restJson1DeleteChannelModeratorCommand = async (output, con
|
|
|
1948
1942
|
await collectBody(output.body, context);
|
|
1949
1943
|
return contents;
|
|
1950
1944
|
};
|
|
1951
|
-
exports.
|
|
1952
|
-
const
|
|
1945
|
+
exports.de_DeleteChannelModeratorCommand = de_DeleteChannelModeratorCommand;
|
|
1946
|
+
const de_DeleteChannelModeratorCommandError = async (output, context) => {
|
|
1953
1947
|
const parsedOutput = {
|
|
1954
1948
|
...output,
|
|
1955
1949
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1958,22 +1952,22 @@ const deserializeAws_restJson1DeleteChannelModeratorCommandError = async (output
|
|
|
1958
1952
|
switch (errorCode) {
|
|
1959
1953
|
case "BadRequestException":
|
|
1960
1954
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1961
|
-
throw await
|
|
1955
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1962
1956
|
case "ForbiddenException":
|
|
1963
1957
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1964
|
-
throw await
|
|
1958
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1965
1959
|
case "ServiceFailureException":
|
|
1966
1960
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1967
|
-
throw await
|
|
1961
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1968
1962
|
case "ServiceUnavailableException":
|
|
1969
1963
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1970
|
-
throw await
|
|
1964
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1971
1965
|
case "ThrottledClientException":
|
|
1972
1966
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1973
|
-
throw await
|
|
1967
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1974
1968
|
case "UnauthorizedClientException":
|
|
1975
1969
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1976
|
-
throw await
|
|
1970
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1977
1971
|
default:
|
|
1978
1972
|
const parsedBody = parsedOutput.body;
|
|
1979
1973
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1984,9 +1978,9 @@ const deserializeAws_restJson1DeleteChannelModeratorCommandError = async (output
|
|
|
1984
1978
|
});
|
|
1985
1979
|
}
|
|
1986
1980
|
};
|
|
1987
|
-
const
|
|
1981
|
+
const de_DeleteMessagingStreamingConfigurationsCommand = async (output, context) => {
|
|
1988
1982
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1989
|
-
return
|
|
1983
|
+
return de_DeleteMessagingStreamingConfigurationsCommandError(output, context);
|
|
1990
1984
|
}
|
|
1991
1985
|
const contents = map({
|
|
1992
1986
|
$metadata: deserializeMetadata(output),
|
|
@@ -1994,8 +1988,8 @@ const deserializeAws_restJson1DeleteMessagingStreamingConfigurationsCommand = as
|
|
|
1994
1988
|
await collectBody(output.body, context);
|
|
1995
1989
|
return contents;
|
|
1996
1990
|
};
|
|
1997
|
-
exports.
|
|
1998
|
-
const
|
|
1991
|
+
exports.de_DeleteMessagingStreamingConfigurationsCommand = de_DeleteMessagingStreamingConfigurationsCommand;
|
|
1992
|
+
const de_DeleteMessagingStreamingConfigurationsCommandError = async (output, context) => {
|
|
1999
1993
|
const parsedOutput = {
|
|
2000
1994
|
...output,
|
|
2001
1995
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2004,19 +1998,19 @@ const deserializeAws_restJson1DeleteMessagingStreamingConfigurationsCommandError
|
|
|
2004
1998
|
switch (errorCode) {
|
|
2005
1999
|
case "ForbiddenException":
|
|
2006
2000
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2007
|
-
throw await
|
|
2001
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2008
2002
|
case "ServiceFailureException":
|
|
2009
2003
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2010
|
-
throw await
|
|
2004
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2011
2005
|
case "ServiceUnavailableException":
|
|
2012
2006
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2013
|
-
throw await
|
|
2007
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2014
2008
|
case "ThrottledClientException":
|
|
2015
2009
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2016
|
-
throw await
|
|
2010
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2017
2011
|
case "UnauthorizedClientException":
|
|
2018
2012
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2019
|
-
throw await
|
|
2013
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2020
2014
|
default:
|
|
2021
2015
|
const parsedBody = parsedOutput.body;
|
|
2022
2016
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2027,21 +2021,21 @@ const deserializeAws_restJson1DeleteMessagingStreamingConfigurationsCommandError
|
|
|
2027
2021
|
});
|
|
2028
2022
|
}
|
|
2029
2023
|
};
|
|
2030
|
-
const
|
|
2024
|
+
const de_DescribeChannelCommand = async (output, context) => {
|
|
2031
2025
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2032
|
-
return
|
|
2026
|
+
return de_DescribeChannelCommandError(output, context);
|
|
2033
2027
|
}
|
|
2034
2028
|
const contents = map({
|
|
2035
2029
|
$metadata: deserializeMetadata(output),
|
|
2036
2030
|
});
|
|
2037
2031
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2038
2032
|
if (data.Channel != null) {
|
|
2039
|
-
contents.Channel =
|
|
2033
|
+
contents.Channel = de_Channel(data.Channel, context);
|
|
2040
2034
|
}
|
|
2041
2035
|
return contents;
|
|
2042
2036
|
};
|
|
2043
|
-
exports.
|
|
2044
|
-
const
|
|
2037
|
+
exports.de_DescribeChannelCommand = de_DescribeChannelCommand;
|
|
2038
|
+
const de_DescribeChannelCommandError = async (output, context) => {
|
|
2045
2039
|
const parsedOutput = {
|
|
2046
2040
|
...output,
|
|
2047
2041
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2050,22 +2044,22 @@ const deserializeAws_restJson1DescribeChannelCommandError = async (output, conte
|
|
|
2050
2044
|
switch (errorCode) {
|
|
2051
2045
|
case "BadRequestException":
|
|
2052
2046
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2053
|
-
throw await
|
|
2047
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2054
2048
|
case "ForbiddenException":
|
|
2055
2049
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2056
|
-
throw await
|
|
2050
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2057
2051
|
case "ServiceFailureException":
|
|
2058
2052
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2059
|
-
throw await
|
|
2053
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2060
2054
|
case "ServiceUnavailableException":
|
|
2061
2055
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2062
|
-
throw await
|
|
2056
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2063
2057
|
case "ThrottledClientException":
|
|
2064
2058
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2065
|
-
throw await
|
|
2059
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2066
2060
|
case "UnauthorizedClientException":
|
|
2067
2061
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2068
|
-
throw await
|
|
2062
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2069
2063
|
default:
|
|
2070
2064
|
const parsedBody = parsedOutput.body;
|
|
2071
2065
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2076,21 +2070,21 @@ const deserializeAws_restJson1DescribeChannelCommandError = async (output, conte
|
|
|
2076
2070
|
});
|
|
2077
2071
|
}
|
|
2078
2072
|
};
|
|
2079
|
-
const
|
|
2073
|
+
const de_DescribeChannelBanCommand = async (output, context) => {
|
|
2080
2074
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2081
|
-
return
|
|
2075
|
+
return de_DescribeChannelBanCommandError(output, context);
|
|
2082
2076
|
}
|
|
2083
2077
|
const contents = map({
|
|
2084
2078
|
$metadata: deserializeMetadata(output),
|
|
2085
2079
|
});
|
|
2086
2080
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2087
2081
|
if (data.ChannelBan != null) {
|
|
2088
|
-
contents.ChannelBan =
|
|
2082
|
+
contents.ChannelBan = de_ChannelBan(data.ChannelBan, context);
|
|
2089
2083
|
}
|
|
2090
2084
|
return contents;
|
|
2091
2085
|
};
|
|
2092
|
-
exports.
|
|
2093
|
-
const
|
|
2086
|
+
exports.de_DescribeChannelBanCommand = de_DescribeChannelBanCommand;
|
|
2087
|
+
const de_DescribeChannelBanCommandError = async (output, context) => {
|
|
2094
2088
|
const parsedOutput = {
|
|
2095
2089
|
...output,
|
|
2096
2090
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2099,25 +2093,25 @@ const deserializeAws_restJson1DescribeChannelBanCommandError = async (output, co
|
|
|
2099
2093
|
switch (errorCode) {
|
|
2100
2094
|
case "BadRequestException":
|
|
2101
2095
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2102
|
-
throw await
|
|
2096
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2103
2097
|
case "ForbiddenException":
|
|
2104
2098
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2105
|
-
throw await
|
|
2099
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2106
2100
|
case "NotFoundException":
|
|
2107
2101
|
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
2108
|
-
throw await
|
|
2102
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2109
2103
|
case "ServiceFailureException":
|
|
2110
2104
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2111
|
-
throw await
|
|
2105
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2112
2106
|
case "ServiceUnavailableException":
|
|
2113
2107
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2114
|
-
throw await
|
|
2108
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2115
2109
|
case "ThrottledClientException":
|
|
2116
2110
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2117
|
-
throw await
|
|
2111
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2118
2112
|
case "UnauthorizedClientException":
|
|
2119
2113
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2120
|
-
throw await
|
|
2114
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2121
2115
|
default:
|
|
2122
2116
|
const parsedBody = parsedOutput.body;
|
|
2123
2117
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2128,21 +2122,21 @@ const deserializeAws_restJson1DescribeChannelBanCommandError = async (output, co
|
|
|
2128
2122
|
});
|
|
2129
2123
|
}
|
|
2130
2124
|
};
|
|
2131
|
-
const
|
|
2125
|
+
const de_DescribeChannelFlowCommand = async (output, context) => {
|
|
2132
2126
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2133
|
-
return
|
|
2127
|
+
return de_DescribeChannelFlowCommandError(output, context);
|
|
2134
2128
|
}
|
|
2135
2129
|
const contents = map({
|
|
2136
2130
|
$metadata: deserializeMetadata(output),
|
|
2137
2131
|
});
|
|
2138
2132
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2139
2133
|
if (data.ChannelFlow != null) {
|
|
2140
|
-
contents.ChannelFlow =
|
|
2134
|
+
contents.ChannelFlow = de_ChannelFlow(data.ChannelFlow, context);
|
|
2141
2135
|
}
|
|
2142
2136
|
return contents;
|
|
2143
2137
|
};
|
|
2144
|
-
exports.
|
|
2145
|
-
const
|
|
2138
|
+
exports.de_DescribeChannelFlowCommand = de_DescribeChannelFlowCommand;
|
|
2139
|
+
const de_DescribeChannelFlowCommandError = async (output, context) => {
|
|
2146
2140
|
const parsedOutput = {
|
|
2147
2141
|
...output,
|
|
2148
2142
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2151,22 +2145,22 @@ const deserializeAws_restJson1DescribeChannelFlowCommandError = async (output, c
|
|
|
2151
2145
|
switch (errorCode) {
|
|
2152
2146
|
case "BadRequestException":
|
|
2153
2147
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2154
|
-
throw await
|
|
2148
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2155
2149
|
case "ForbiddenException":
|
|
2156
2150
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2157
|
-
throw await
|
|
2151
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2158
2152
|
case "ServiceFailureException":
|
|
2159
2153
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2160
|
-
throw await
|
|
2154
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2161
2155
|
case "ServiceUnavailableException":
|
|
2162
2156
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2163
|
-
throw await
|
|
2157
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2164
2158
|
case "ThrottledClientException":
|
|
2165
2159
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2166
|
-
throw await
|
|
2160
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2167
2161
|
case "UnauthorizedClientException":
|
|
2168
2162
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2169
|
-
throw await
|
|
2163
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2170
2164
|
default:
|
|
2171
2165
|
const parsedBody = parsedOutput.body;
|
|
2172
2166
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2177,21 +2171,21 @@ const deserializeAws_restJson1DescribeChannelFlowCommandError = async (output, c
|
|
|
2177
2171
|
});
|
|
2178
2172
|
}
|
|
2179
2173
|
};
|
|
2180
|
-
const
|
|
2174
|
+
const de_DescribeChannelMembershipCommand = async (output, context) => {
|
|
2181
2175
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2182
|
-
return
|
|
2176
|
+
return de_DescribeChannelMembershipCommandError(output, context);
|
|
2183
2177
|
}
|
|
2184
2178
|
const contents = map({
|
|
2185
2179
|
$metadata: deserializeMetadata(output),
|
|
2186
2180
|
});
|
|
2187
2181
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2188
2182
|
if (data.ChannelMembership != null) {
|
|
2189
|
-
contents.ChannelMembership =
|
|
2183
|
+
contents.ChannelMembership = de_ChannelMembership(data.ChannelMembership, context);
|
|
2190
2184
|
}
|
|
2191
2185
|
return contents;
|
|
2192
2186
|
};
|
|
2193
|
-
exports.
|
|
2194
|
-
const
|
|
2187
|
+
exports.de_DescribeChannelMembershipCommand = de_DescribeChannelMembershipCommand;
|
|
2188
|
+
const de_DescribeChannelMembershipCommandError = async (output, context) => {
|
|
2195
2189
|
const parsedOutput = {
|
|
2196
2190
|
...output,
|
|
2197
2191
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2200,25 +2194,25 @@ const deserializeAws_restJson1DescribeChannelMembershipCommandError = async (out
|
|
|
2200
2194
|
switch (errorCode) {
|
|
2201
2195
|
case "BadRequestException":
|
|
2202
2196
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2203
|
-
throw await
|
|
2197
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2204
2198
|
case "ForbiddenException":
|
|
2205
2199
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2206
|
-
throw await
|
|
2200
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2207
2201
|
case "NotFoundException":
|
|
2208
2202
|
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
2209
|
-
throw await
|
|
2203
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2210
2204
|
case "ServiceFailureException":
|
|
2211
2205
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2212
|
-
throw await
|
|
2206
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2213
2207
|
case "ServiceUnavailableException":
|
|
2214
2208
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2215
|
-
throw await
|
|
2209
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2216
2210
|
case "ThrottledClientException":
|
|
2217
2211
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2218
|
-
throw await
|
|
2212
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2219
2213
|
case "UnauthorizedClientException":
|
|
2220
2214
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2221
|
-
throw await
|
|
2215
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2222
2216
|
default:
|
|
2223
2217
|
const parsedBody = parsedOutput.body;
|
|
2224
2218
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2229,21 +2223,21 @@ const deserializeAws_restJson1DescribeChannelMembershipCommandError = async (out
|
|
|
2229
2223
|
});
|
|
2230
2224
|
}
|
|
2231
2225
|
};
|
|
2232
|
-
const
|
|
2226
|
+
const de_DescribeChannelMembershipForAppInstanceUserCommand = async (output, context) => {
|
|
2233
2227
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2234
|
-
return
|
|
2228
|
+
return de_DescribeChannelMembershipForAppInstanceUserCommandError(output, context);
|
|
2235
2229
|
}
|
|
2236
2230
|
const contents = map({
|
|
2237
2231
|
$metadata: deserializeMetadata(output),
|
|
2238
2232
|
});
|
|
2239
2233
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2240
2234
|
if (data.ChannelMembership != null) {
|
|
2241
|
-
contents.ChannelMembership =
|
|
2235
|
+
contents.ChannelMembership = de_ChannelMembershipForAppInstanceUserSummary(data.ChannelMembership, context);
|
|
2242
2236
|
}
|
|
2243
2237
|
return contents;
|
|
2244
2238
|
};
|
|
2245
|
-
exports.
|
|
2246
|
-
const
|
|
2239
|
+
exports.de_DescribeChannelMembershipForAppInstanceUserCommand = de_DescribeChannelMembershipForAppInstanceUserCommand;
|
|
2240
|
+
const de_DescribeChannelMembershipForAppInstanceUserCommandError = async (output, context) => {
|
|
2247
2241
|
const parsedOutput = {
|
|
2248
2242
|
...output,
|
|
2249
2243
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2252,22 +2246,22 @@ const deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand
|
|
|
2252
2246
|
switch (errorCode) {
|
|
2253
2247
|
case "BadRequestException":
|
|
2254
2248
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2255
|
-
throw await
|
|
2249
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2256
2250
|
case "ForbiddenException":
|
|
2257
2251
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2258
|
-
throw await
|
|
2252
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2259
2253
|
case "ServiceFailureException":
|
|
2260
2254
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2261
|
-
throw await
|
|
2255
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2262
2256
|
case "ServiceUnavailableException":
|
|
2263
2257
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2264
|
-
throw await
|
|
2258
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2265
2259
|
case "ThrottledClientException":
|
|
2266
2260
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2267
|
-
throw await
|
|
2261
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2268
2262
|
case "UnauthorizedClientException":
|
|
2269
2263
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2270
|
-
throw await
|
|
2264
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2271
2265
|
default:
|
|
2272
2266
|
const parsedBody = parsedOutput.body;
|
|
2273
2267
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2278,21 +2272,21 @@ const deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand
|
|
|
2278
2272
|
});
|
|
2279
2273
|
}
|
|
2280
2274
|
};
|
|
2281
|
-
const
|
|
2275
|
+
const de_DescribeChannelModeratedByAppInstanceUserCommand = async (output, context) => {
|
|
2282
2276
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2283
|
-
return
|
|
2277
|
+
return de_DescribeChannelModeratedByAppInstanceUserCommandError(output, context);
|
|
2284
2278
|
}
|
|
2285
2279
|
const contents = map({
|
|
2286
2280
|
$metadata: deserializeMetadata(output),
|
|
2287
2281
|
});
|
|
2288
2282
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2289
2283
|
if (data.Channel != null) {
|
|
2290
|
-
contents.Channel =
|
|
2284
|
+
contents.Channel = de_ChannelModeratedByAppInstanceUserSummary(data.Channel, context);
|
|
2291
2285
|
}
|
|
2292
2286
|
return contents;
|
|
2293
2287
|
};
|
|
2294
|
-
exports.
|
|
2295
|
-
const
|
|
2288
|
+
exports.de_DescribeChannelModeratedByAppInstanceUserCommand = de_DescribeChannelModeratedByAppInstanceUserCommand;
|
|
2289
|
+
const de_DescribeChannelModeratedByAppInstanceUserCommandError = async (output, context) => {
|
|
2296
2290
|
const parsedOutput = {
|
|
2297
2291
|
...output,
|
|
2298
2292
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2301,22 +2295,22 @@ const deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommandEr
|
|
|
2301
2295
|
switch (errorCode) {
|
|
2302
2296
|
case "BadRequestException":
|
|
2303
2297
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2304
|
-
throw await
|
|
2298
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2305
2299
|
case "ForbiddenException":
|
|
2306
2300
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2307
|
-
throw await
|
|
2301
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2308
2302
|
case "ServiceFailureException":
|
|
2309
2303
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2310
|
-
throw await
|
|
2304
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2311
2305
|
case "ServiceUnavailableException":
|
|
2312
2306
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2313
|
-
throw await
|
|
2307
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2314
2308
|
case "ThrottledClientException":
|
|
2315
2309
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2316
|
-
throw await
|
|
2310
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2317
2311
|
case "UnauthorizedClientException":
|
|
2318
2312
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2319
|
-
throw await
|
|
2313
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2320
2314
|
default:
|
|
2321
2315
|
const parsedBody = parsedOutput.body;
|
|
2322
2316
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2327,21 +2321,21 @@ const deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommandEr
|
|
|
2327
2321
|
});
|
|
2328
2322
|
}
|
|
2329
2323
|
};
|
|
2330
|
-
const
|
|
2324
|
+
const de_DescribeChannelModeratorCommand = async (output, context) => {
|
|
2331
2325
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2332
|
-
return
|
|
2326
|
+
return de_DescribeChannelModeratorCommandError(output, context);
|
|
2333
2327
|
}
|
|
2334
2328
|
const contents = map({
|
|
2335
2329
|
$metadata: deserializeMetadata(output),
|
|
2336
2330
|
});
|
|
2337
2331
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2338
2332
|
if (data.ChannelModerator != null) {
|
|
2339
|
-
contents.ChannelModerator =
|
|
2333
|
+
contents.ChannelModerator = de_ChannelModerator(data.ChannelModerator, context);
|
|
2340
2334
|
}
|
|
2341
2335
|
return contents;
|
|
2342
2336
|
};
|
|
2343
|
-
exports.
|
|
2344
|
-
const
|
|
2337
|
+
exports.de_DescribeChannelModeratorCommand = de_DescribeChannelModeratorCommand;
|
|
2338
|
+
const de_DescribeChannelModeratorCommandError = async (output, context) => {
|
|
2345
2339
|
const parsedOutput = {
|
|
2346
2340
|
...output,
|
|
2347
2341
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2350,25 +2344,25 @@ const deserializeAws_restJson1DescribeChannelModeratorCommandError = async (outp
|
|
|
2350
2344
|
switch (errorCode) {
|
|
2351
2345
|
case "BadRequestException":
|
|
2352
2346
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2353
|
-
throw await
|
|
2347
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2354
2348
|
case "ForbiddenException":
|
|
2355
2349
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2356
|
-
throw await
|
|
2350
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2357
2351
|
case "NotFoundException":
|
|
2358
2352
|
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
2359
|
-
throw await
|
|
2353
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2360
2354
|
case "ServiceFailureException":
|
|
2361
2355
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2362
|
-
throw await
|
|
2356
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2363
2357
|
case "ServiceUnavailableException":
|
|
2364
2358
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2365
|
-
throw await
|
|
2359
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2366
2360
|
case "ThrottledClientException":
|
|
2367
2361
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2368
|
-
throw await
|
|
2362
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2369
2363
|
case "UnauthorizedClientException":
|
|
2370
2364
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2371
|
-
throw await
|
|
2365
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2372
2366
|
default:
|
|
2373
2367
|
const parsedBody = parsedOutput.body;
|
|
2374
2368
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2379,9 +2373,9 @@ const deserializeAws_restJson1DescribeChannelModeratorCommandError = async (outp
|
|
|
2379
2373
|
});
|
|
2380
2374
|
}
|
|
2381
2375
|
};
|
|
2382
|
-
const
|
|
2376
|
+
const de_DisassociateChannelFlowCommand = async (output, context) => {
|
|
2383
2377
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2384
|
-
return
|
|
2378
|
+
return de_DisassociateChannelFlowCommandError(output, context);
|
|
2385
2379
|
}
|
|
2386
2380
|
const contents = map({
|
|
2387
2381
|
$metadata: deserializeMetadata(output),
|
|
@@ -2389,8 +2383,8 @@ const deserializeAws_restJson1DisassociateChannelFlowCommand = async (output, co
|
|
|
2389
2383
|
await collectBody(output.body, context);
|
|
2390
2384
|
return contents;
|
|
2391
2385
|
};
|
|
2392
|
-
exports.
|
|
2393
|
-
const
|
|
2386
|
+
exports.de_DisassociateChannelFlowCommand = de_DisassociateChannelFlowCommand;
|
|
2387
|
+
const de_DisassociateChannelFlowCommandError = async (output, context) => {
|
|
2394
2388
|
const parsedOutput = {
|
|
2395
2389
|
...output,
|
|
2396
2390
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2399,28 +2393,28 @@ const deserializeAws_restJson1DisassociateChannelFlowCommandError = async (outpu
|
|
|
2399
2393
|
switch (errorCode) {
|
|
2400
2394
|
case "BadRequestException":
|
|
2401
2395
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2402
|
-
throw await
|
|
2396
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2403
2397
|
case "ConflictException":
|
|
2404
2398
|
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
2405
|
-
throw await
|
|
2399
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2406
2400
|
case "ForbiddenException":
|
|
2407
2401
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2408
|
-
throw await
|
|
2402
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2409
2403
|
case "NotFoundException":
|
|
2410
2404
|
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
2411
|
-
throw await
|
|
2405
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2412
2406
|
case "ServiceFailureException":
|
|
2413
2407
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2414
|
-
throw await
|
|
2408
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2415
2409
|
case "ServiceUnavailableException":
|
|
2416
2410
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2417
|
-
throw await
|
|
2411
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2418
2412
|
case "ThrottledClientException":
|
|
2419
2413
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2420
|
-
throw await
|
|
2414
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2421
2415
|
case "UnauthorizedClientException":
|
|
2422
2416
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2423
|
-
throw await
|
|
2417
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2424
2418
|
default:
|
|
2425
2419
|
const parsedBody = parsedOutput.body;
|
|
2426
2420
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2431,9 +2425,9 @@ const deserializeAws_restJson1DisassociateChannelFlowCommandError = async (outpu
|
|
|
2431
2425
|
});
|
|
2432
2426
|
}
|
|
2433
2427
|
};
|
|
2434
|
-
const
|
|
2428
|
+
const de_GetChannelMembershipPreferencesCommand = async (output, context) => {
|
|
2435
2429
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2436
|
-
return
|
|
2430
|
+
return de_GetChannelMembershipPreferencesCommandError(output, context);
|
|
2437
2431
|
}
|
|
2438
2432
|
const contents = map({
|
|
2439
2433
|
$metadata: deserializeMetadata(output),
|
|
@@ -2443,15 +2437,15 @@ const deserializeAws_restJson1GetChannelMembershipPreferencesCommand = async (ou
|
|
|
2443
2437
|
contents.ChannelArn = (0, smithy_client_1.expectString)(data.ChannelArn);
|
|
2444
2438
|
}
|
|
2445
2439
|
if (data.Member != null) {
|
|
2446
|
-
contents.Member =
|
|
2440
|
+
contents.Member = de_Identity(data.Member, context);
|
|
2447
2441
|
}
|
|
2448
2442
|
if (data.Preferences != null) {
|
|
2449
|
-
contents.Preferences =
|
|
2443
|
+
contents.Preferences = de_ChannelMembershipPreferences(data.Preferences, context);
|
|
2450
2444
|
}
|
|
2451
2445
|
return contents;
|
|
2452
2446
|
};
|
|
2453
|
-
exports.
|
|
2454
|
-
const
|
|
2447
|
+
exports.de_GetChannelMembershipPreferencesCommand = de_GetChannelMembershipPreferencesCommand;
|
|
2448
|
+
const de_GetChannelMembershipPreferencesCommandError = async (output, context) => {
|
|
2455
2449
|
const parsedOutput = {
|
|
2456
2450
|
...output,
|
|
2457
2451
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2460,22 +2454,22 @@ const deserializeAws_restJson1GetChannelMembershipPreferencesCommandError = asyn
|
|
|
2460
2454
|
switch (errorCode) {
|
|
2461
2455
|
case "BadRequestException":
|
|
2462
2456
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2463
|
-
throw await
|
|
2457
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2464
2458
|
case "ForbiddenException":
|
|
2465
2459
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2466
|
-
throw await
|
|
2460
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2467
2461
|
case "ServiceFailureException":
|
|
2468
2462
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2469
|
-
throw await
|
|
2463
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2470
2464
|
case "ServiceUnavailableException":
|
|
2471
2465
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2472
|
-
throw await
|
|
2466
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2473
2467
|
case "ThrottledClientException":
|
|
2474
2468
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2475
|
-
throw await
|
|
2469
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2476
2470
|
case "UnauthorizedClientException":
|
|
2477
2471
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2478
|
-
throw await
|
|
2472
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2479
2473
|
default:
|
|
2480
2474
|
const parsedBody = parsedOutput.body;
|
|
2481
2475
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2486,21 +2480,21 @@ const deserializeAws_restJson1GetChannelMembershipPreferencesCommandError = asyn
|
|
|
2486
2480
|
});
|
|
2487
2481
|
}
|
|
2488
2482
|
};
|
|
2489
|
-
const
|
|
2483
|
+
const de_GetChannelMessageCommand = async (output, context) => {
|
|
2490
2484
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2491
|
-
return
|
|
2485
|
+
return de_GetChannelMessageCommandError(output, context);
|
|
2492
2486
|
}
|
|
2493
2487
|
const contents = map({
|
|
2494
2488
|
$metadata: deserializeMetadata(output),
|
|
2495
2489
|
});
|
|
2496
2490
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2497
2491
|
if (data.ChannelMessage != null) {
|
|
2498
|
-
contents.ChannelMessage =
|
|
2492
|
+
contents.ChannelMessage = de_ChannelMessage(data.ChannelMessage, context);
|
|
2499
2493
|
}
|
|
2500
2494
|
return contents;
|
|
2501
2495
|
};
|
|
2502
|
-
exports.
|
|
2503
|
-
const
|
|
2496
|
+
exports.de_GetChannelMessageCommand = de_GetChannelMessageCommand;
|
|
2497
|
+
const de_GetChannelMessageCommandError = async (output, context) => {
|
|
2504
2498
|
const parsedOutput = {
|
|
2505
2499
|
...output,
|
|
2506
2500
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2509,25 +2503,25 @@ const deserializeAws_restJson1GetChannelMessageCommandError = async (output, con
|
|
|
2509
2503
|
switch (errorCode) {
|
|
2510
2504
|
case "BadRequestException":
|
|
2511
2505
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2512
|
-
throw await
|
|
2506
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2513
2507
|
case "ForbiddenException":
|
|
2514
2508
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2515
|
-
throw await
|
|
2509
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2516
2510
|
case "NotFoundException":
|
|
2517
2511
|
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
2518
|
-
throw await
|
|
2512
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2519
2513
|
case "ServiceFailureException":
|
|
2520
2514
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2521
|
-
throw await
|
|
2515
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2522
2516
|
case "ServiceUnavailableException":
|
|
2523
2517
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2524
|
-
throw await
|
|
2518
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2525
2519
|
case "ThrottledClientException":
|
|
2526
2520
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2527
|
-
throw await
|
|
2521
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2528
2522
|
case "UnauthorizedClientException":
|
|
2529
2523
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2530
|
-
throw await
|
|
2524
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2531
2525
|
default:
|
|
2532
2526
|
const parsedBody = parsedOutput.body;
|
|
2533
2527
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2538,21 +2532,21 @@ const deserializeAws_restJson1GetChannelMessageCommandError = async (output, con
|
|
|
2538
2532
|
});
|
|
2539
2533
|
}
|
|
2540
2534
|
};
|
|
2541
|
-
const
|
|
2535
|
+
const de_GetChannelMessageStatusCommand = async (output, context) => {
|
|
2542
2536
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2543
|
-
return
|
|
2537
|
+
return de_GetChannelMessageStatusCommandError(output, context);
|
|
2544
2538
|
}
|
|
2545
2539
|
const contents = map({
|
|
2546
2540
|
$metadata: deserializeMetadata(output),
|
|
2547
2541
|
});
|
|
2548
2542
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2549
2543
|
if (data.Status != null) {
|
|
2550
|
-
contents.Status =
|
|
2544
|
+
contents.Status = de_ChannelMessageStatusStructure(data.Status, context);
|
|
2551
2545
|
}
|
|
2552
2546
|
return contents;
|
|
2553
2547
|
};
|
|
2554
|
-
exports.
|
|
2555
|
-
const
|
|
2548
|
+
exports.de_GetChannelMessageStatusCommand = de_GetChannelMessageStatusCommand;
|
|
2549
|
+
const de_GetChannelMessageStatusCommandError = async (output, context) => {
|
|
2556
2550
|
const parsedOutput = {
|
|
2557
2551
|
...output,
|
|
2558
2552
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2561,22 +2555,22 @@ const deserializeAws_restJson1GetChannelMessageStatusCommandError = async (outpu
|
|
|
2561
2555
|
switch (errorCode) {
|
|
2562
2556
|
case "BadRequestException":
|
|
2563
2557
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2564
|
-
throw await
|
|
2558
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2565
2559
|
case "ForbiddenException":
|
|
2566
2560
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2567
|
-
throw await
|
|
2561
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2568
2562
|
case "ServiceFailureException":
|
|
2569
2563
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2570
|
-
throw await
|
|
2564
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2571
2565
|
case "ServiceUnavailableException":
|
|
2572
2566
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2573
|
-
throw await
|
|
2567
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2574
2568
|
case "ThrottledClientException":
|
|
2575
2569
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2576
|
-
throw await
|
|
2570
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2577
2571
|
case "UnauthorizedClientException":
|
|
2578
2572
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2579
|
-
throw await
|
|
2573
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2580
2574
|
default:
|
|
2581
2575
|
const parsedBody = parsedOutput.body;
|
|
2582
2576
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2587,21 +2581,21 @@ const deserializeAws_restJson1GetChannelMessageStatusCommandError = async (outpu
|
|
|
2587
2581
|
});
|
|
2588
2582
|
}
|
|
2589
2583
|
};
|
|
2590
|
-
const
|
|
2584
|
+
const de_GetMessagingSessionEndpointCommand = async (output, context) => {
|
|
2591
2585
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2592
|
-
return
|
|
2586
|
+
return de_GetMessagingSessionEndpointCommandError(output, context);
|
|
2593
2587
|
}
|
|
2594
2588
|
const contents = map({
|
|
2595
2589
|
$metadata: deserializeMetadata(output),
|
|
2596
2590
|
});
|
|
2597
2591
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2598
2592
|
if (data.Endpoint != null) {
|
|
2599
|
-
contents.Endpoint =
|
|
2593
|
+
contents.Endpoint = de_MessagingSessionEndpoint(data.Endpoint, context);
|
|
2600
2594
|
}
|
|
2601
2595
|
return contents;
|
|
2602
2596
|
};
|
|
2603
|
-
exports.
|
|
2604
|
-
const
|
|
2597
|
+
exports.de_GetMessagingSessionEndpointCommand = de_GetMessagingSessionEndpointCommand;
|
|
2598
|
+
const de_GetMessagingSessionEndpointCommandError = async (output, context) => {
|
|
2605
2599
|
const parsedOutput = {
|
|
2606
2600
|
...output,
|
|
2607
2601
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2610,19 +2604,19 @@ const deserializeAws_restJson1GetMessagingSessionEndpointCommandError = async (o
|
|
|
2610
2604
|
switch (errorCode) {
|
|
2611
2605
|
case "ForbiddenException":
|
|
2612
2606
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2613
|
-
throw await
|
|
2607
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2614
2608
|
case "ServiceFailureException":
|
|
2615
2609
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2616
|
-
throw await
|
|
2610
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2617
2611
|
case "ServiceUnavailableException":
|
|
2618
2612
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2619
|
-
throw await
|
|
2613
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2620
2614
|
case "ThrottledClientException":
|
|
2621
2615
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2622
|
-
throw await
|
|
2616
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2623
2617
|
case "UnauthorizedClientException":
|
|
2624
2618
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2625
|
-
throw await
|
|
2619
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2626
2620
|
default:
|
|
2627
2621
|
const parsedBody = parsedOutput.body;
|
|
2628
2622
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2633,21 +2627,21 @@ const deserializeAws_restJson1GetMessagingSessionEndpointCommandError = async (o
|
|
|
2633
2627
|
});
|
|
2634
2628
|
}
|
|
2635
2629
|
};
|
|
2636
|
-
const
|
|
2630
|
+
const de_GetMessagingStreamingConfigurationsCommand = async (output, context) => {
|
|
2637
2631
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2638
|
-
return
|
|
2632
|
+
return de_GetMessagingStreamingConfigurationsCommandError(output, context);
|
|
2639
2633
|
}
|
|
2640
2634
|
const contents = map({
|
|
2641
2635
|
$metadata: deserializeMetadata(output),
|
|
2642
2636
|
});
|
|
2643
2637
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2644
2638
|
if (data.StreamingConfigurations != null) {
|
|
2645
|
-
contents.StreamingConfigurations =
|
|
2639
|
+
contents.StreamingConfigurations = de_StreamingConfigurationList(data.StreamingConfigurations, context);
|
|
2646
2640
|
}
|
|
2647
2641
|
return contents;
|
|
2648
2642
|
};
|
|
2649
|
-
exports.
|
|
2650
|
-
const
|
|
2643
|
+
exports.de_GetMessagingStreamingConfigurationsCommand = de_GetMessagingStreamingConfigurationsCommand;
|
|
2644
|
+
const de_GetMessagingStreamingConfigurationsCommandError = async (output, context) => {
|
|
2651
2645
|
const parsedOutput = {
|
|
2652
2646
|
...output,
|
|
2653
2647
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2656,25 +2650,25 @@ const deserializeAws_restJson1GetMessagingStreamingConfigurationsCommandError =
|
|
|
2656
2650
|
switch (errorCode) {
|
|
2657
2651
|
case "BadRequestException":
|
|
2658
2652
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2659
|
-
throw await
|
|
2653
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2660
2654
|
case "ForbiddenException":
|
|
2661
2655
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2662
|
-
throw await
|
|
2656
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2663
2657
|
case "NotFoundException":
|
|
2664
2658
|
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
2665
|
-
throw await
|
|
2659
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2666
2660
|
case "ServiceFailureException":
|
|
2667
2661
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2668
|
-
throw await
|
|
2662
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2669
2663
|
case "ServiceUnavailableException":
|
|
2670
2664
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2671
|
-
throw await
|
|
2665
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2672
2666
|
case "ThrottledClientException":
|
|
2673
2667
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2674
|
-
throw await
|
|
2668
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2675
2669
|
case "UnauthorizedClientException":
|
|
2676
2670
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2677
|
-
throw await
|
|
2671
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2678
2672
|
default:
|
|
2679
2673
|
const parsedBody = parsedOutput.body;
|
|
2680
2674
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2685,9 +2679,9 @@ const deserializeAws_restJson1GetMessagingStreamingConfigurationsCommandError =
|
|
|
2685
2679
|
});
|
|
2686
2680
|
}
|
|
2687
2681
|
};
|
|
2688
|
-
const
|
|
2682
|
+
const de_ListChannelBansCommand = async (output, context) => {
|
|
2689
2683
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2690
|
-
return
|
|
2684
|
+
return de_ListChannelBansCommandError(output, context);
|
|
2691
2685
|
}
|
|
2692
2686
|
const contents = map({
|
|
2693
2687
|
$metadata: deserializeMetadata(output),
|
|
@@ -2697,15 +2691,15 @@ const deserializeAws_restJson1ListChannelBansCommand = async (output, context) =
|
|
|
2697
2691
|
contents.ChannelArn = (0, smithy_client_1.expectString)(data.ChannelArn);
|
|
2698
2692
|
}
|
|
2699
2693
|
if (data.ChannelBans != null) {
|
|
2700
|
-
contents.ChannelBans =
|
|
2694
|
+
contents.ChannelBans = de_ChannelBanSummaryList(data.ChannelBans, context);
|
|
2701
2695
|
}
|
|
2702
2696
|
if (data.NextToken != null) {
|
|
2703
2697
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2704
2698
|
}
|
|
2705
2699
|
return contents;
|
|
2706
2700
|
};
|
|
2707
|
-
exports.
|
|
2708
|
-
const
|
|
2701
|
+
exports.de_ListChannelBansCommand = de_ListChannelBansCommand;
|
|
2702
|
+
const de_ListChannelBansCommandError = async (output, context) => {
|
|
2709
2703
|
const parsedOutput = {
|
|
2710
2704
|
...output,
|
|
2711
2705
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2714,22 +2708,22 @@ const deserializeAws_restJson1ListChannelBansCommandError = async (output, conte
|
|
|
2714
2708
|
switch (errorCode) {
|
|
2715
2709
|
case "BadRequestException":
|
|
2716
2710
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2717
|
-
throw await
|
|
2711
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2718
2712
|
case "ForbiddenException":
|
|
2719
2713
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2720
|
-
throw await
|
|
2714
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2721
2715
|
case "ServiceFailureException":
|
|
2722
2716
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2723
|
-
throw await
|
|
2717
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2724
2718
|
case "ServiceUnavailableException":
|
|
2725
2719
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2726
|
-
throw await
|
|
2720
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2727
2721
|
case "ThrottledClientException":
|
|
2728
2722
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2729
|
-
throw await
|
|
2723
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2730
2724
|
case "UnauthorizedClientException":
|
|
2731
2725
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2732
|
-
throw await
|
|
2726
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2733
2727
|
default:
|
|
2734
2728
|
const parsedBody = parsedOutput.body;
|
|
2735
2729
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2740,24 +2734,24 @@ const deserializeAws_restJson1ListChannelBansCommandError = async (output, conte
|
|
|
2740
2734
|
});
|
|
2741
2735
|
}
|
|
2742
2736
|
};
|
|
2743
|
-
const
|
|
2737
|
+
const de_ListChannelFlowsCommand = async (output, context) => {
|
|
2744
2738
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2745
|
-
return
|
|
2739
|
+
return de_ListChannelFlowsCommandError(output, context);
|
|
2746
2740
|
}
|
|
2747
2741
|
const contents = map({
|
|
2748
2742
|
$metadata: deserializeMetadata(output),
|
|
2749
2743
|
});
|
|
2750
2744
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2751
2745
|
if (data.ChannelFlows != null) {
|
|
2752
|
-
contents.ChannelFlows =
|
|
2746
|
+
contents.ChannelFlows = de_ChannelFlowSummaryList(data.ChannelFlows, context);
|
|
2753
2747
|
}
|
|
2754
2748
|
if (data.NextToken != null) {
|
|
2755
2749
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2756
2750
|
}
|
|
2757
2751
|
return contents;
|
|
2758
2752
|
};
|
|
2759
|
-
exports.
|
|
2760
|
-
const
|
|
2753
|
+
exports.de_ListChannelFlowsCommand = de_ListChannelFlowsCommand;
|
|
2754
|
+
const de_ListChannelFlowsCommandError = async (output, context) => {
|
|
2761
2755
|
const parsedOutput = {
|
|
2762
2756
|
...output,
|
|
2763
2757
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2766,22 +2760,22 @@ const deserializeAws_restJson1ListChannelFlowsCommandError = async (output, cont
|
|
|
2766
2760
|
switch (errorCode) {
|
|
2767
2761
|
case "BadRequestException":
|
|
2768
2762
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2769
|
-
throw await
|
|
2763
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2770
2764
|
case "ForbiddenException":
|
|
2771
2765
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2772
|
-
throw await
|
|
2766
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2773
2767
|
case "ServiceFailureException":
|
|
2774
2768
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2775
|
-
throw await
|
|
2769
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2776
2770
|
case "ServiceUnavailableException":
|
|
2777
2771
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2778
|
-
throw await
|
|
2772
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2779
2773
|
case "ThrottledClientException":
|
|
2780
2774
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2781
|
-
throw await
|
|
2775
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2782
2776
|
case "UnauthorizedClientException":
|
|
2783
2777
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2784
|
-
throw await
|
|
2778
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2785
2779
|
default:
|
|
2786
2780
|
const parsedBody = parsedOutput.body;
|
|
2787
2781
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2792,9 +2786,9 @@ const deserializeAws_restJson1ListChannelFlowsCommandError = async (output, cont
|
|
|
2792
2786
|
});
|
|
2793
2787
|
}
|
|
2794
2788
|
};
|
|
2795
|
-
const
|
|
2789
|
+
const de_ListChannelMembershipsCommand = async (output, context) => {
|
|
2796
2790
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2797
|
-
return
|
|
2791
|
+
return de_ListChannelMembershipsCommandError(output, context);
|
|
2798
2792
|
}
|
|
2799
2793
|
const contents = map({
|
|
2800
2794
|
$metadata: deserializeMetadata(output),
|
|
@@ -2804,15 +2798,15 @@ const deserializeAws_restJson1ListChannelMembershipsCommand = async (output, con
|
|
|
2804
2798
|
contents.ChannelArn = (0, smithy_client_1.expectString)(data.ChannelArn);
|
|
2805
2799
|
}
|
|
2806
2800
|
if (data.ChannelMemberships != null) {
|
|
2807
|
-
contents.ChannelMemberships =
|
|
2801
|
+
contents.ChannelMemberships = de_ChannelMembershipSummaryList(data.ChannelMemberships, context);
|
|
2808
2802
|
}
|
|
2809
2803
|
if (data.NextToken != null) {
|
|
2810
2804
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2811
2805
|
}
|
|
2812
2806
|
return contents;
|
|
2813
2807
|
};
|
|
2814
|
-
exports.
|
|
2815
|
-
const
|
|
2808
|
+
exports.de_ListChannelMembershipsCommand = de_ListChannelMembershipsCommand;
|
|
2809
|
+
const de_ListChannelMembershipsCommandError = async (output, context) => {
|
|
2816
2810
|
const parsedOutput = {
|
|
2817
2811
|
...output,
|
|
2818
2812
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2821,22 +2815,22 @@ const deserializeAws_restJson1ListChannelMembershipsCommandError = async (output
|
|
|
2821
2815
|
switch (errorCode) {
|
|
2822
2816
|
case "BadRequestException":
|
|
2823
2817
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2824
|
-
throw await
|
|
2818
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2825
2819
|
case "ForbiddenException":
|
|
2826
2820
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2827
|
-
throw await
|
|
2821
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2828
2822
|
case "ServiceFailureException":
|
|
2829
2823
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2830
|
-
throw await
|
|
2824
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2831
2825
|
case "ServiceUnavailableException":
|
|
2832
2826
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2833
|
-
throw await
|
|
2827
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2834
2828
|
case "ThrottledClientException":
|
|
2835
2829
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2836
|
-
throw await
|
|
2830
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2837
2831
|
case "UnauthorizedClientException":
|
|
2838
2832
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2839
|
-
throw await
|
|
2833
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2840
2834
|
default:
|
|
2841
2835
|
const parsedBody = parsedOutput.body;
|
|
2842
2836
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2847,24 +2841,24 @@ const deserializeAws_restJson1ListChannelMembershipsCommandError = async (output
|
|
|
2847
2841
|
});
|
|
2848
2842
|
}
|
|
2849
2843
|
};
|
|
2850
|
-
const
|
|
2844
|
+
const de_ListChannelMembershipsForAppInstanceUserCommand = async (output, context) => {
|
|
2851
2845
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2852
|
-
return
|
|
2846
|
+
return de_ListChannelMembershipsForAppInstanceUserCommandError(output, context);
|
|
2853
2847
|
}
|
|
2854
2848
|
const contents = map({
|
|
2855
2849
|
$metadata: deserializeMetadata(output),
|
|
2856
2850
|
});
|
|
2857
2851
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2858
2852
|
if (data.ChannelMemberships != null) {
|
|
2859
|
-
contents.ChannelMemberships =
|
|
2853
|
+
contents.ChannelMemberships = de_ChannelMembershipForAppInstanceUserSummaryList(data.ChannelMemberships, context);
|
|
2860
2854
|
}
|
|
2861
2855
|
if (data.NextToken != null) {
|
|
2862
2856
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2863
2857
|
}
|
|
2864
2858
|
return contents;
|
|
2865
2859
|
};
|
|
2866
|
-
exports.
|
|
2867
|
-
const
|
|
2860
|
+
exports.de_ListChannelMembershipsForAppInstanceUserCommand = de_ListChannelMembershipsForAppInstanceUserCommand;
|
|
2861
|
+
const de_ListChannelMembershipsForAppInstanceUserCommandError = async (output, context) => {
|
|
2868
2862
|
const parsedOutput = {
|
|
2869
2863
|
...output,
|
|
2870
2864
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2873,22 +2867,22 @@ const deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommandErr
|
|
|
2873
2867
|
switch (errorCode) {
|
|
2874
2868
|
case "BadRequestException":
|
|
2875
2869
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2876
|
-
throw await
|
|
2870
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2877
2871
|
case "ForbiddenException":
|
|
2878
2872
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2879
|
-
throw await
|
|
2873
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2880
2874
|
case "ServiceFailureException":
|
|
2881
2875
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2882
|
-
throw await
|
|
2876
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2883
2877
|
case "ServiceUnavailableException":
|
|
2884
2878
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2885
|
-
throw await
|
|
2879
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2886
2880
|
case "ThrottledClientException":
|
|
2887
2881
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2888
|
-
throw await
|
|
2882
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2889
2883
|
case "UnauthorizedClientException":
|
|
2890
2884
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2891
|
-
throw await
|
|
2885
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2892
2886
|
default:
|
|
2893
2887
|
const parsedBody = parsedOutput.body;
|
|
2894
2888
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2899,9 +2893,9 @@ const deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommandErr
|
|
|
2899
2893
|
});
|
|
2900
2894
|
}
|
|
2901
2895
|
};
|
|
2902
|
-
const
|
|
2896
|
+
const de_ListChannelMessagesCommand = async (output, context) => {
|
|
2903
2897
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2904
|
-
return
|
|
2898
|
+
return de_ListChannelMessagesCommandError(output, context);
|
|
2905
2899
|
}
|
|
2906
2900
|
const contents = map({
|
|
2907
2901
|
$metadata: deserializeMetadata(output),
|
|
@@ -2911,7 +2905,7 @@ const deserializeAws_restJson1ListChannelMessagesCommand = async (output, contex
|
|
|
2911
2905
|
contents.ChannelArn = (0, smithy_client_1.expectString)(data.ChannelArn);
|
|
2912
2906
|
}
|
|
2913
2907
|
if (data.ChannelMessages != null) {
|
|
2914
|
-
contents.ChannelMessages =
|
|
2908
|
+
contents.ChannelMessages = de_ChannelMessageSummaryList(data.ChannelMessages, context);
|
|
2915
2909
|
}
|
|
2916
2910
|
if (data.NextToken != null) {
|
|
2917
2911
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
@@ -2921,8 +2915,8 @@ const deserializeAws_restJson1ListChannelMessagesCommand = async (output, contex
|
|
|
2921
2915
|
}
|
|
2922
2916
|
return contents;
|
|
2923
2917
|
};
|
|
2924
|
-
exports.
|
|
2925
|
-
const
|
|
2918
|
+
exports.de_ListChannelMessagesCommand = de_ListChannelMessagesCommand;
|
|
2919
|
+
const de_ListChannelMessagesCommandError = async (output, context) => {
|
|
2926
2920
|
const parsedOutput = {
|
|
2927
2921
|
...output,
|
|
2928
2922
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2931,22 +2925,22 @@ const deserializeAws_restJson1ListChannelMessagesCommandError = async (output, c
|
|
|
2931
2925
|
switch (errorCode) {
|
|
2932
2926
|
case "BadRequestException":
|
|
2933
2927
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2934
|
-
throw await
|
|
2928
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2935
2929
|
case "ForbiddenException":
|
|
2936
2930
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2937
|
-
throw await
|
|
2931
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2938
2932
|
case "ServiceFailureException":
|
|
2939
2933
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2940
|
-
throw await
|
|
2934
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2941
2935
|
case "ServiceUnavailableException":
|
|
2942
2936
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2943
|
-
throw await
|
|
2937
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2944
2938
|
case "ThrottledClientException":
|
|
2945
2939
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2946
|
-
throw await
|
|
2940
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2947
2941
|
case "UnauthorizedClientException":
|
|
2948
2942
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2949
|
-
throw await
|
|
2943
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2950
2944
|
default:
|
|
2951
2945
|
const parsedBody = parsedOutput.body;
|
|
2952
2946
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2957,9 +2951,9 @@ const deserializeAws_restJson1ListChannelMessagesCommandError = async (output, c
|
|
|
2957
2951
|
});
|
|
2958
2952
|
}
|
|
2959
2953
|
};
|
|
2960
|
-
const
|
|
2954
|
+
const de_ListChannelModeratorsCommand = async (output, context) => {
|
|
2961
2955
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2962
|
-
return
|
|
2956
|
+
return de_ListChannelModeratorsCommandError(output, context);
|
|
2963
2957
|
}
|
|
2964
2958
|
const contents = map({
|
|
2965
2959
|
$metadata: deserializeMetadata(output),
|
|
@@ -2969,15 +2963,15 @@ const deserializeAws_restJson1ListChannelModeratorsCommand = async (output, cont
|
|
|
2969
2963
|
contents.ChannelArn = (0, smithy_client_1.expectString)(data.ChannelArn);
|
|
2970
2964
|
}
|
|
2971
2965
|
if (data.ChannelModerators != null) {
|
|
2972
|
-
contents.ChannelModerators =
|
|
2966
|
+
contents.ChannelModerators = de_ChannelModeratorSummaryList(data.ChannelModerators, context);
|
|
2973
2967
|
}
|
|
2974
2968
|
if (data.NextToken != null) {
|
|
2975
2969
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2976
2970
|
}
|
|
2977
2971
|
return contents;
|
|
2978
2972
|
};
|
|
2979
|
-
exports.
|
|
2980
|
-
const
|
|
2973
|
+
exports.de_ListChannelModeratorsCommand = de_ListChannelModeratorsCommand;
|
|
2974
|
+
const de_ListChannelModeratorsCommandError = async (output, context) => {
|
|
2981
2975
|
const parsedOutput = {
|
|
2982
2976
|
...output,
|
|
2983
2977
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2986,22 +2980,22 @@ const deserializeAws_restJson1ListChannelModeratorsCommandError = async (output,
|
|
|
2986
2980
|
switch (errorCode) {
|
|
2987
2981
|
case "BadRequestException":
|
|
2988
2982
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2989
|
-
throw await
|
|
2983
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2990
2984
|
case "ForbiddenException":
|
|
2991
2985
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2992
|
-
throw await
|
|
2986
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2993
2987
|
case "ServiceFailureException":
|
|
2994
2988
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2995
|
-
throw await
|
|
2989
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2996
2990
|
case "ServiceUnavailableException":
|
|
2997
2991
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2998
|
-
throw await
|
|
2992
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2999
2993
|
case "ThrottledClientException":
|
|
3000
2994
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3001
|
-
throw await
|
|
2995
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3002
2996
|
case "UnauthorizedClientException":
|
|
3003
2997
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3004
|
-
throw await
|
|
2998
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3005
2999
|
default:
|
|
3006
3000
|
const parsedBody = parsedOutput.body;
|
|
3007
3001
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3012,24 +3006,24 @@ const deserializeAws_restJson1ListChannelModeratorsCommandError = async (output,
|
|
|
3012
3006
|
});
|
|
3013
3007
|
}
|
|
3014
3008
|
};
|
|
3015
|
-
const
|
|
3009
|
+
const de_ListChannelsCommand = async (output, context) => {
|
|
3016
3010
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3017
|
-
return
|
|
3011
|
+
return de_ListChannelsCommandError(output, context);
|
|
3018
3012
|
}
|
|
3019
3013
|
const contents = map({
|
|
3020
3014
|
$metadata: deserializeMetadata(output),
|
|
3021
3015
|
});
|
|
3022
3016
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3023
3017
|
if (data.Channels != null) {
|
|
3024
|
-
contents.Channels =
|
|
3018
|
+
contents.Channels = de_ChannelSummaryList(data.Channels, context);
|
|
3025
3019
|
}
|
|
3026
3020
|
if (data.NextToken != null) {
|
|
3027
3021
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
3028
3022
|
}
|
|
3029
3023
|
return contents;
|
|
3030
3024
|
};
|
|
3031
|
-
exports.
|
|
3032
|
-
const
|
|
3025
|
+
exports.de_ListChannelsCommand = de_ListChannelsCommand;
|
|
3026
|
+
const de_ListChannelsCommandError = async (output, context) => {
|
|
3033
3027
|
const parsedOutput = {
|
|
3034
3028
|
...output,
|
|
3035
3029
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3038,22 +3032,22 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
|
|
|
3038
3032
|
switch (errorCode) {
|
|
3039
3033
|
case "BadRequestException":
|
|
3040
3034
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3041
|
-
throw await
|
|
3035
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3042
3036
|
case "ForbiddenException":
|
|
3043
3037
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3044
|
-
throw await
|
|
3038
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3045
3039
|
case "ServiceFailureException":
|
|
3046
3040
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3047
|
-
throw await
|
|
3041
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3048
3042
|
case "ServiceUnavailableException":
|
|
3049
3043
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3050
|
-
throw await
|
|
3044
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3051
3045
|
case "ThrottledClientException":
|
|
3052
3046
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3053
|
-
throw await
|
|
3047
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3054
3048
|
case "UnauthorizedClientException":
|
|
3055
3049
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3056
|
-
throw await
|
|
3050
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3057
3051
|
default:
|
|
3058
3052
|
const parsedBody = parsedOutput.body;
|
|
3059
3053
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3064,24 +3058,24 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
|
|
|
3064
3058
|
});
|
|
3065
3059
|
}
|
|
3066
3060
|
};
|
|
3067
|
-
const
|
|
3061
|
+
const de_ListChannelsAssociatedWithChannelFlowCommand = async (output, context) => {
|
|
3068
3062
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3069
|
-
return
|
|
3063
|
+
return de_ListChannelsAssociatedWithChannelFlowCommandError(output, context);
|
|
3070
3064
|
}
|
|
3071
3065
|
const contents = map({
|
|
3072
3066
|
$metadata: deserializeMetadata(output),
|
|
3073
3067
|
});
|
|
3074
3068
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3075
3069
|
if (data.Channels != null) {
|
|
3076
|
-
contents.Channels =
|
|
3070
|
+
contents.Channels = de_ChannelAssociatedWithFlowSummaryList(data.Channels, context);
|
|
3077
3071
|
}
|
|
3078
3072
|
if (data.NextToken != null) {
|
|
3079
3073
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
3080
3074
|
}
|
|
3081
3075
|
return contents;
|
|
3082
3076
|
};
|
|
3083
|
-
exports.
|
|
3084
|
-
const
|
|
3077
|
+
exports.de_ListChannelsAssociatedWithChannelFlowCommand = de_ListChannelsAssociatedWithChannelFlowCommand;
|
|
3078
|
+
const de_ListChannelsAssociatedWithChannelFlowCommandError = async (output, context) => {
|
|
3085
3079
|
const parsedOutput = {
|
|
3086
3080
|
...output,
|
|
3087
3081
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3090,22 +3084,22 @@ const deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommandError
|
|
|
3090
3084
|
switch (errorCode) {
|
|
3091
3085
|
case "BadRequestException":
|
|
3092
3086
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3093
|
-
throw await
|
|
3087
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3094
3088
|
case "ForbiddenException":
|
|
3095
3089
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3096
|
-
throw await
|
|
3090
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3097
3091
|
case "ServiceFailureException":
|
|
3098
3092
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3099
|
-
throw await
|
|
3093
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3100
3094
|
case "ServiceUnavailableException":
|
|
3101
3095
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3102
|
-
throw await
|
|
3096
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3103
3097
|
case "ThrottledClientException":
|
|
3104
3098
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3105
|
-
throw await
|
|
3099
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3106
3100
|
case "UnauthorizedClientException":
|
|
3107
3101
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3108
|
-
throw await
|
|
3102
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3109
3103
|
default:
|
|
3110
3104
|
const parsedBody = parsedOutput.body;
|
|
3111
3105
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3116,24 +3110,24 @@ const deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommandError
|
|
|
3116
3110
|
});
|
|
3117
3111
|
}
|
|
3118
3112
|
};
|
|
3119
|
-
const
|
|
3113
|
+
const de_ListChannelsModeratedByAppInstanceUserCommand = async (output, context) => {
|
|
3120
3114
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3121
|
-
return
|
|
3115
|
+
return de_ListChannelsModeratedByAppInstanceUserCommandError(output, context);
|
|
3122
3116
|
}
|
|
3123
3117
|
const contents = map({
|
|
3124
3118
|
$metadata: deserializeMetadata(output),
|
|
3125
3119
|
});
|
|
3126
3120
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3127
3121
|
if (data.Channels != null) {
|
|
3128
|
-
contents.Channels =
|
|
3122
|
+
contents.Channels = de_ChannelModeratedByAppInstanceUserSummaryList(data.Channels, context);
|
|
3129
3123
|
}
|
|
3130
3124
|
if (data.NextToken != null) {
|
|
3131
3125
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
3132
3126
|
}
|
|
3133
3127
|
return contents;
|
|
3134
3128
|
};
|
|
3135
|
-
exports.
|
|
3136
|
-
const
|
|
3129
|
+
exports.de_ListChannelsModeratedByAppInstanceUserCommand = de_ListChannelsModeratedByAppInstanceUserCommand;
|
|
3130
|
+
const de_ListChannelsModeratedByAppInstanceUserCommandError = async (output, context) => {
|
|
3137
3131
|
const parsedOutput = {
|
|
3138
3132
|
...output,
|
|
3139
3133
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3142,22 +3136,22 @@ const deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError
|
|
|
3142
3136
|
switch (errorCode) {
|
|
3143
3137
|
case "BadRequestException":
|
|
3144
3138
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3145
|
-
throw await
|
|
3139
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3146
3140
|
case "ForbiddenException":
|
|
3147
3141
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3148
|
-
throw await
|
|
3142
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3149
3143
|
case "ServiceFailureException":
|
|
3150
3144
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3151
|
-
throw await
|
|
3145
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3152
3146
|
case "ServiceUnavailableException":
|
|
3153
3147
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3154
|
-
throw await
|
|
3148
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3155
3149
|
case "ThrottledClientException":
|
|
3156
3150
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3157
|
-
throw await
|
|
3151
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3158
3152
|
case "UnauthorizedClientException":
|
|
3159
3153
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3160
|
-
throw await
|
|
3154
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3161
3155
|
default:
|
|
3162
3156
|
const parsedBody = parsedOutput.body;
|
|
3163
3157
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3168,9 +3162,9 @@ const deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError
|
|
|
3168
3162
|
});
|
|
3169
3163
|
}
|
|
3170
3164
|
};
|
|
3171
|
-
const
|
|
3165
|
+
const de_ListSubChannelsCommand = async (output, context) => {
|
|
3172
3166
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3173
|
-
return
|
|
3167
|
+
return de_ListSubChannelsCommandError(output, context);
|
|
3174
3168
|
}
|
|
3175
3169
|
const contents = map({
|
|
3176
3170
|
$metadata: deserializeMetadata(output),
|
|
@@ -3183,12 +3177,12 @@ const deserializeAws_restJson1ListSubChannelsCommand = async (output, context) =
|
|
|
3183
3177
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
3184
3178
|
}
|
|
3185
3179
|
if (data.SubChannels != null) {
|
|
3186
|
-
contents.SubChannels =
|
|
3180
|
+
contents.SubChannels = de_SubChannelSummaryList(data.SubChannels, context);
|
|
3187
3181
|
}
|
|
3188
3182
|
return contents;
|
|
3189
3183
|
};
|
|
3190
|
-
exports.
|
|
3191
|
-
const
|
|
3184
|
+
exports.de_ListSubChannelsCommand = de_ListSubChannelsCommand;
|
|
3185
|
+
const de_ListSubChannelsCommandError = async (output, context) => {
|
|
3192
3186
|
const parsedOutput = {
|
|
3193
3187
|
...output,
|
|
3194
3188
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3197,22 +3191,22 @@ const deserializeAws_restJson1ListSubChannelsCommandError = async (output, conte
|
|
|
3197
3191
|
switch (errorCode) {
|
|
3198
3192
|
case "BadRequestException":
|
|
3199
3193
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3200
|
-
throw await
|
|
3194
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3201
3195
|
case "ForbiddenException":
|
|
3202
3196
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3203
|
-
throw await
|
|
3197
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3204
3198
|
case "ServiceFailureException":
|
|
3205
3199
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3206
|
-
throw await
|
|
3200
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3207
3201
|
case "ServiceUnavailableException":
|
|
3208
3202
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3209
|
-
throw await
|
|
3203
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3210
3204
|
case "ThrottledClientException":
|
|
3211
3205
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3212
|
-
throw await
|
|
3206
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3213
3207
|
case "UnauthorizedClientException":
|
|
3214
3208
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3215
|
-
throw await
|
|
3209
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3216
3210
|
default:
|
|
3217
3211
|
const parsedBody = parsedOutput.body;
|
|
3218
3212
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3223,21 +3217,21 @@ const deserializeAws_restJson1ListSubChannelsCommandError = async (output, conte
|
|
|
3223
3217
|
});
|
|
3224
3218
|
}
|
|
3225
3219
|
};
|
|
3226
|
-
const
|
|
3220
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
3227
3221
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3228
|
-
return
|
|
3222
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
3229
3223
|
}
|
|
3230
3224
|
const contents = map({
|
|
3231
3225
|
$metadata: deserializeMetadata(output),
|
|
3232
3226
|
});
|
|
3233
3227
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3234
3228
|
if (data.Tags != null) {
|
|
3235
|
-
contents.Tags =
|
|
3229
|
+
contents.Tags = de_TagList(data.Tags, context);
|
|
3236
3230
|
}
|
|
3237
3231
|
return contents;
|
|
3238
3232
|
};
|
|
3239
|
-
exports.
|
|
3240
|
-
const
|
|
3233
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
3234
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
3241
3235
|
const parsedOutput = {
|
|
3242
3236
|
...output,
|
|
3243
3237
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3246,22 +3240,22 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
3246
3240
|
switch (errorCode) {
|
|
3247
3241
|
case "BadRequestException":
|
|
3248
3242
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3249
|
-
throw await
|
|
3243
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3250
3244
|
case "ForbiddenException":
|
|
3251
3245
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3252
|
-
throw await
|
|
3246
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3253
3247
|
case "ServiceFailureException":
|
|
3254
3248
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3255
|
-
throw await
|
|
3249
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3256
3250
|
case "ServiceUnavailableException":
|
|
3257
3251
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3258
|
-
throw await
|
|
3252
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3259
3253
|
case "ThrottledClientException":
|
|
3260
3254
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3261
|
-
throw await
|
|
3255
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3262
3256
|
case "UnauthorizedClientException":
|
|
3263
3257
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3264
|
-
throw await
|
|
3258
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3265
3259
|
default:
|
|
3266
3260
|
const parsedBody = parsedOutput.body;
|
|
3267
3261
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3272,9 +3266,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
3272
3266
|
});
|
|
3273
3267
|
}
|
|
3274
3268
|
};
|
|
3275
|
-
const
|
|
3269
|
+
const de_PutChannelExpirationSettingsCommand = async (output, context) => {
|
|
3276
3270
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3277
|
-
return
|
|
3271
|
+
return de_PutChannelExpirationSettingsCommandError(output, context);
|
|
3278
3272
|
}
|
|
3279
3273
|
const contents = map({
|
|
3280
3274
|
$metadata: deserializeMetadata(output),
|
|
@@ -3284,12 +3278,12 @@ const deserializeAws_restJson1PutChannelExpirationSettingsCommand = async (outpu
|
|
|
3284
3278
|
contents.ChannelArn = (0, smithy_client_1.expectString)(data.ChannelArn);
|
|
3285
3279
|
}
|
|
3286
3280
|
if (data.ExpirationSettings != null) {
|
|
3287
|
-
contents.ExpirationSettings =
|
|
3281
|
+
contents.ExpirationSettings = de_ExpirationSettings(data.ExpirationSettings, context);
|
|
3288
3282
|
}
|
|
3289
3283
|
return contents;
|
|
3290
3284
|
};
|
|
3291
|
-
exports.
|
|
3292
|
-
const
|
|
3285
|
+
exports.de_PutChannelExpirationSettingsCommand = de_PutChannelExpirationSettingsCommand;
|
|
3286
|
+
const de_PutChannelExpirationSettingsCommandError = async (output, context) => {
|
|
3293
3287
|
const parsedOutput = {
|
|
3294
3288
|
...output,
|
|
3295
3289
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3298,25 +3292,25 @@ const deserializeAws_restJson1PutChannelExpirationSettingsCommandError = async (
|
|
|
3298
3292
|
switch (errorCode) {
|
|
3299
3293
|
case "BadRequestException":
|
|
3300
3294
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3301
|
-
throw await
|
|
3295
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3302
3296
|
case "ConflictException":
|
|
3303
3297
|
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
3304
|
-
throw await
|
|
3298
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3305
3299
|
case "ForbiddenException":
|
|
3306
3300
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3307
|
-
throw await
|
|
3301
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3308
3302
|
case "ServiceFailureException":
|
|
3309
3303
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3310
|
-
throw await
|
|
3304
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3311
3305
|
case "ServiceUnavailableException":
|
|
3312
3306
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3313
|
-
throw await
|
|
3307
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3314
3308
|
case "ThrottledClientException":
|
|
3315
3309
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3316
|
-
throw await
|
|
3310
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3317
3311
|
case "UnauthorizedClientException":
|
|
3318
3312
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3319
|
-
throw await
|
|
3313
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3320
3314
|
default:
|
|
3321
3315
|
const parsedBody = parsedOutput.body;
|
|
3322
3316
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3327,9 +3321,9 @@ const deserializeAws_restJson1PutChannelExpirationSettingsCommandError = async (
|
|
|
3327
3321
|
});
|
|
3328
3322
|
}
|
|
3329
3323
|
};
|
|
3330
|
-
const
|
|
3324
|
+
const de_PutChannelMembershipPreferencesCommand = async (output, context) => {
|
|
3331
3325
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3332
|
-
return
|
|
3326
|
+
return de_PutChannelMembershipPreferencesCommandError(output, context);
|
|
3333
3327
|
}
|
|
3334
3328
|
const contents = map({
|
|
3335
3329
|
$metadata: deserializeMetadata(output),
|
|
@@ -3339,15 +3333,15 @@ const deserializeAws_restJson1PutChannelMembershipPreferencesCommand = async (ou
|
|
|
3339
3333
|
contents.ChannelArn = (0, smithy_client_1.expectString)(data.ChannelArn);
|
|
3340
3334
|
}
|
|
3341
3335
|
if (data.Member != null) {
|
|
3342
|
-
contents.Member =
|
|
3336
|
+
contents.Member = de_Identity(data.Member, context);
|
|
3343
3337
|
}
|
|
3344
3338
|
if (data.Preferences != null) {
|
|
3345
|
-
contents.Preferences =
|
|
3339
|
+
contents.Preferences = de_ChannelMembershipPreferences(data.Preferences, context);
|
|
3346
3340
|
}
|
|
3347
3341
|
return contents;
|
|
3348
3342
|
};
|
|
3349
|
-
exports.
|
|
3350
|
-
const
|
|
3343
|
+
exports.de_PutChannelMembershipPreferencesCommand = de_PutChannelMembershipPreferencesCommand;
|
|
3344
|
+
const de_PutChannelMembershipPreferencesCommandError = async (output, context) => {
|
|
3351
3345
|
const parsedOutput = {
|
|
3352
3346
|
...output,
|
|
3353
3347
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3356,25 +3350,25 @@ const deserializeAws_restJson1PutChannelMembershipPreferencesCommandError = asyn
|
|
|
3356
3350
|
switch (errorCode) {
|
|
3357
3351
|
case "BadRequestException":
|
|
3358
3352
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3359
|
-
throw await
|
|
3353
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3360
3354
|
case "ConflictException":
|
|
3361
3355
|
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
3362
|
-
throw await
|
|
3356
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3363
3357
|
case "ForbiddenException":
|
|
3364
3358
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3365
|
-
throw await
|
|
3359
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3366
3360
|
case "ServiceFailureException":
|
|
3367
3361
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3368
|
-
throw await
|
|
3362
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3369
3363
|
case "ServiceUnavailableException":
|
|
3370
3364
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3371
|
-
throw await
|
|
3365
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3372
3366
|
case "ThrottledClientException":
|
|
3373
3367
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3374
|
-
throw await
|
|
3368
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3375
3369
|
case "UnauthorizedClientException":
|
|
3376
3370
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3377
|
-
throw await
|
|
3371
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3378
3372
|
default:
|
|
3379
3373
|
const parsedBody = parsedOutput.body;
|
|
3380
3374
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3385,21 +3379,21 @@ const deserializeAws_restJson1PutChannelMembershipPreferencesCommandError = asyn
|
|
|
3385
3379
|
});
|
|
3386
3380
|
}
|
|
3387
3381
|
};
|
|
3388
|
-
const
|
|
3382
|
+
const de_PutMessagingStreamingConfigurationsCommand = async (output, context) => {
|
|
3389
3383
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3390
|
-
return
|
|
3384
|
+
return de_PutMessagingStreamingConfigurationsCommandError(output, context);
|
|
3391
3385
|
}
|
|
3392
3386
|
const contents = map({
|
|
3393
3387
|
$metadata: deserializeMetadata(output),
|
|
3394
3388
|
});
|
|
3395
3389
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3396
3390
|
if (data.StreamingConfigurations != null) {
|
|
3397
|
-
contents.StreamingConfigurations =
|
|
3391
|
+
contents.StreamingConfigurations = de_StreamingConfigurationList(data.StreamingConfigurations, context);
|
|
3398
3392
|
}
|
|
3399
3393
|
return contents;
|
|
3400
3394
|
};
|
|
3401
|
-
exports.
|
|
3402
|
-
const
|
|
3395
|
+
exports.de_PutMessagingStreamingConfigurationsCommand = de_PutMessagingStreamingConfigurationsCommand;
|
|
3396
|
+
const de_PutMessagingStreamingConfigurationsCommandError = async (output, context) => {
|
|
3403
3397
|
const parsedOutput = {
|
|
3404
3398
|
...output,
|
|
3405
3399
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3408,28 +3402,28 @@ const deserializeAws_restJson1PutMessagingStreamingConfigurationsCommandError =
|
|
|
3408
3402
|
switch (errorCode) {
|
|
3409
3403
|
case "BadRequestException":
|
|
3410
3404
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3411
|
-
throw await
|
|
3405
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3412
3406
|
case "ConflictException":
|
|
3413
3407
|
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
3414
|
-
throw await
|
|
3408
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3415
3409
|
case "ForbiddenException":
|
|
3416
3410
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3417
|
-
throw await
|
|
3411
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3418
3412
|
case "NotFoundException":
|
|
3419
3413
|
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
3420
|
-
throw await
|
|
3414
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3421
3415
|
case "ServiceFailureException":
|
|
3422
3416
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3423
|
-
throw await
|
|
3417
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3424
3418
|
case "ServiceUnavailableException":
|
|
3425
3419
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3426
|
-
throw await
|
|
3420
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3427
3421
|
case "ThrottledClientException":
|
|
3428
3422
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3429
|
-
throw await
|
|
3423
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3430
3424
|
case "UnauthorizedClientException":
|
|
3431
3425
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3432
|
-
throw await
|
|
3426
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3433
3427
|
default:
|
|
3434
3428
|
const parsedBody = parsedOutput.body;
|
|
3435
3429
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3440,9 +3434,9 @@ const deserializeAws_restJson1PutMessagingStreamingConfigurationsCommandError =
|
|
|
3440
3434
|
});
|
|
3441
3435
|
}
|
|
3442
3436
|
};
|
|
3443
|
-
const
|
|
3437
|
+
const de_RedactChannelMessageCommand = async (output, context) => {
|
|
3444
3438
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3445
|
-
return
|
|
3439
|
+
return de_RedactChannelMessageCommandError(output, context);
|
|
3446
3440
|
}
|
|
3447
3441
|
const contents = map({
|
|
3448
3442
|
$metadata: deserializeMetadata(output),
|
|
@@ -3459,8 +3453,8 @@ const deserializeAws_restJson1RedactChannelMessageCommand = async (output, conte
|
|
|
3459
3453
|
}
|
|
3460
3454
|
return contents;
|
|
3461
3455
|
};
|
|
3462
|
-
exports.
|
|
3463
|
-
const
|
|
3456
|
+
exports.de_RedactChannelMessageCommand = de_RedactChannelMessageCommand;
|
|
3457
|
+
const de_RedactChannelMessageCommandError = async (output, context) => {
|
|
3464
3458
|
const parsedOutput = {
|
|
3465
3459
|
...output,
|
|
3466
3460
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3469,25 +3463,25 @@ const deserializeAws_restJson1RedactChannelMessageCommandError = async (output,
|
|
|
3469
3463
|
switch (errorCode) {
|
|
3470
3464
|
case "BadRequestException":
|
|
3471
3465
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3472
|
-
throw await
|
|
3466
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3473
3467
|
case "ConflictException":
|
|
3474
3468
|
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
3475
|
-
throw await
|
|
3469
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3476
3470
|
case "ForbiddenException":
|
|
3477
3471
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3478
|
-
throw await
|
|
3472
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3479
3473
|
case "ServiceFailureException":
|
|
3480
3474
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3481
|
-
throw await
|
|
3475
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3482
3476
|
case "ServiceUnavailableException":
|
|
3483
3477
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3484
|
-
throw await
|
|
3478
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3485
3479
|
case "ThrottledClientException":
|
|
3486
3480
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3487
|
-
throw await
|
|
3481
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3488
3482
|
case "UnauthorizedClientException":
|
|
3489
3483
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3490
|
-
throw await
|
|
3484
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3491
3485
|
default:
|
|
3492
3486
|
const parsedBody = parsedOutput.body;
|
|
3493
3487
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3498,24 +3492,24 @@ const deserializeAws_restJson1RedactChannelMessageCommandError = async (output,
|
|
|
3498
3492
|
});
|
|
3499
3493
|
}
|
|
3500
3494
|
};
|
|
3501
|
-
const
|
|
3495
|
+
const de_SearchChannelsCommand = async (output, context) => {
|
|
3502
3496
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3503
|
-
return
|
|
3497
|
+
return de_SearchChannelsCommandError(output, context);
|
|
3504
3498
|
}
|
|
3505
3499
|
const contents = map({
|
|
3506
3500
|
$metadata: deserializeMetadata(output),
|
|
3507
3501
|
});
|
|
3508
3502
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3509
3503
|
if (data.Channels != null) {
|
|
3510
|
-
contents.Channels =
|
|
3504
|
+
contents.Channels = de_ChannelSummaryList(data.Channels, context);
|
|
3511
3505
|
}
|
|
3512
3506
|
if (data.NextToken != null) {
|
|
3513
3507
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
3514
3508
|
}
|
|
3515
3509
|
return contents;
|
|
3516
3510
|
};
|
|
3517
|
-
exports.
|
|
3518
|
-
const
|
|
3511
|
+
exports.de_SearchChannelsCommand = de_SearchChannelsCommand;
|
|
3512
|
+
const de_SearchChannelsCommandError = async (output, context) => {
|
|
3519
3513
|
const parsedOutput = {
|
|
3520
3514
|
...output,
|
|
3521
3515
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3524,22 +3518,22 @@ const deserializeAws_restJson1SearchChannelsCommandError = async (output, contex
|
|
|
3524
3518
|
switch (errorCode) {
|
|
3525
3519
|
case "BadRequestException":
|
|
3526
3520
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3527
|
-
throw await
|
|
3521
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3528
3522
|
case "ForbiddenException":
|
|
3529
3523
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3530
|
-
throw await
|
|
3524
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3531
3525
|
case "ServiceFailureException":
|
|
3532
3526
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3533
|
-
throw await
|
|
3527
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3534
3528
|
case "ServiceUnavailableException":
|
|
3535
3529
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3536
|
-
throw await
|
|
3530
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3537
3531
|
case "ThrottledClientException":
|
|
3538
3532
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3539
|
-
throw await
|
|
3533
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3540
3534
|
case "UnauthorizedClientException":
|
|
3541
3535
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3542
|
-
throw await
|
|
3536
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3543
3537
|
default:
|
|
3544
3538
|
const parsedBody = parsedOutput.body;
|
|
3545
3539
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3550,9 +3544,9 @@ const deserializeAws_restJson1SearchChannelsCommandError = async (output, contex
|
|
|
3550
3544
|
});
|
|
3551
3545
|
}
|
|
3552
3546
|
};
|
|
3553
|
-
const
|
|
3547
|
+
const de_SendChannelMessageCommand = async (output, context) => {
|
|
3554
3548
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
3555
|
-
return
|
|
3549
|
+
return de_SendChannelMessageCommandError(output, context);
|
|
3556
3550
|
}
|
|
3557
3551
|
const contents = map({
|
|
3558
3552
|
$metadata: deserializeMetadata(output),
|
|
@@ -3565,15 +3559,15 @@ const deserializeAws_restJson1SendChannelMessageCommand = async (output, context
|
|
|
3565
3559
|
contents.MessageId = (0, smithy_client_1.expectString)(data.MessageId);
|
|
3566
3560
|
}
|
|
3567
3561
|
if (data.Status != null) {
|
|
3568
|
-
contents.Status =
|
|
3562
|
+
contents.Status = de_ChannelMessageStatusStructure(data.Status, context);
|
|
3569
3563
|
}
|
|
3570
3564
|
if (data.SubChannelId != null) {
|
|
3571
3565
|
contents.SubChannelId = (0, smithy_client_1.expectString)(data.SubChannelId);
|
|
3572
3566
|
}
|
|
3573
3567
|
return contents;
|
|
3574
3568
|
};
|
|
3575
|
-
exports.
|
|
3576
|
-
const
|
|
3569
|
+
exports.de_SendChannelMessageCommand = de_SendChannelMessageCommand;
|
|
3570
|
+
const de_SendChannelMessageCommandError = async (output, context) => {
|
|
3577
3571
|
const parsedOutput = {
|
|
3578
3572
|
...output,
|
|
3579
3573
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3582,25 +3576,25 @@ const deserializeAws_restJson1SendChannelMessageCommandError = async (output, co
|
|
|
3582
3576
|
switch (errorCode) {
|
|
3583
3577
|
case "BadRequestException":
|
|
3584
3578
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3585
|
-
throw await
|
|
3579
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3586
3580
|
case "ConflictException":
|
|
3587
3581
|
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
3588
|
-
throw await
|
|
3582
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3589
3583
|
case "ForbiddenException":
|
|
3590
3584
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3591
|
-
throw await
|
|
3585
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3592
3586
|
case "ServiceFailureException":
|
|
3593
3587
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3594
|
-
throw await
|
|
3588
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3595
3589
|
case "ServiceUnavailableException":
|
|
3596
3590
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3597
|
-
throw await
|
|
3591
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3598
3592
|
case "ThrottledClientException":
|
|
3599
3593
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3600
|
-
throw await
|
|
3594
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3601
3595
|
case "UnauthorizedClientException":
|
|
3602
3596
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3603
|
-
throw await
|
|
3597
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3604
3598
|
default:
|
|
3605
3599
|
const parsedBody = parsedOutput.body;
|
|
3606
3600
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3611,9 +3605,9 @@ const deserializeAws_restJson1SendChannelMessageCommandError = async (output, co
|
|
|
3611
3605
|
});
|
|
3612
3606
|
}
|
|
3613
3607
|
};
|
|
3614
|
-
const
|
|
3608
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
3615
3609
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3616
|
-
return
|
|
3610
|
+
return de_TagResourceCommandError(output, context);
|
|
3617
3611
|
}
|
|
3618
3612
|
const contents = map({
|
|
3619
3613
|
$metadata: deserializeMetadata(output),
|
|
@@ -3621,8 +3615,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
3621
3615
|
await collectBody(output.body, context);
|
|
3622
3616
|
return contents;
|
|
3623
3617
|
};
|
|
3624
|
-
exports.
|
|
3625
|
-
const
|
|
3618
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
3619
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
3626
3620
|
const parsedOutput = {
|
|
3627
3621
|
...output,
|
|
3628
3622
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3631,25 +3625,25 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3631
3625
|
switch (errorCode) {
|
|
3632
3626
|
case "BadRequestException":
|
|
3633
3627
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3634
|
-
throw await
|
|
3628
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3635
3629
|
case "ForbiddenException":
|
|
3636
3630
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3637
|
-
throw await
|
|
3631
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3638
3632
|
case "ResourceLimitExceededException":
|
|
3639
3633
|
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
3640
|
-
throw await
|
|
3634
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
3641
3635
|
case "ServiceFailureException":
|
|
3642
3636
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3643
|
-
throw await
|
|
3637
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3644
3638
|
case "ServiceUnavailableException":
|
|
3645
3639
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3646
|
-
throw await
|
|
3640
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3647
3641
|
case "ThrottledClientException":
|
|
3648
3642
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3649
|
-
throw await
|
|
3643
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3650
3644
|
case "UnauthorizedClientException":
|
|
3651
3645
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3652
|
-
throw await
|
|
3646
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3653
3647
|
default:
|
|
3654
3648
|
const parsedBody = parsedOutput.body;
|
|
3655
3649
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3660,9 +3654,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3660
3654
|
});
|
|
3661
3655
|
}
|
|
3662
3656
|
};
|
|
3663
|
-
const
|
|
3657
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
3664
3658
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3665
|
-
return
|
|
3659
|
+
return de_UntagResourceCommandError(output, context);
|
|
3666
3660
|
}
|
|
3667
3661
|
const contents = map({
|
|
3668
3662
|
$metadata: deserializeMetadata(output),
|
|
@@ -3670,8 +3664,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
3670
3664
|
await collectBody(output.body, context);
|
|
3671
3665
|
return contents;
|
|
3672
3666
|
};
|
|
3673
|
-
exports.
|
|
3674
|
-
const
|
|
3667
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
3668
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
3675
3669
|
const parsedOutput = {
|
|
3676
3670
|
...output,
|
|
3677
3671
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3680,22 +3674,22 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3680
3674
|
switch (errorCode) {
|
|
3681
3675
|
case "BadRequestException":
|
|
3682
3676
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3683
|
-
throw await
|
|
3677
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3684
3678
|
case "ForbiddenException":
|
|
3685
3679
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3686
|
-
throw await
|
|
3680
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3687
3681
|
case "ServiceFailureException":
|
|
3688
3682
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3689
|
-
throw await
|
|
3683
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3690
3684
|
case "ServiceUnavailableException":
|
|
3691
3685
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3692
|
-
throw await
|
|
3686
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3693
3687
|
case "ThrottledClientException":
|
|
3694
3688
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3695
|
-
throw await
|
|
3689
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3696
3690
|
case "UnauthorizedClientException":
|
|
3697
3691
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3698
|
-
throw await
|
|
3692
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3699
3693
|
default:
|
|
3700
3694
|
const parsedBody = parsedOutput.body;
|
|
3701
3695
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3706,9 +3700,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3706
3700
|
});
|
|
3707
3701
|
}
|
|
3708
3702
|
};
|
|
3709
|
-
const
|
|
3703
|
+
const de_UpdateChannelCommand = async (output, context) => {
|
|
3710
3704
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3711
|
-
return
|
|
3705
|
+
return de_UpdateChannelCommandError(output, context);
|
|
3712
3706
|
}
|
|
3713
3707
|
const contents = map({
|
|
3714
3708
|
$metadata: deserializeMetadata(output),
|
|
@@ -3719,8 +3713,8 @@ const deserializeAws_restJson1UpdateChannelCommand = async (output, context) =>
|
|
|
3719
3713
|
}
|
|
3720
3714
|
return contents;
|
|
3721
3715
|
};
|
|
3722
|
-
exports.
|
|
3723
|
-
const
|
|
3716
|
+
exports.de_UpdateChannelCommand = de_UpdateChannelCommand;
|
|
3717
|
+
const de_UpdateChannelCommandError = async (output, context) => {
|
|
3724
3718
|
const parsedOutput = {
|
|
3725
3719
|
...output,
|
|
3726
3720
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3729,25 +3723,25 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
|
|
|
3729
3723
|
switch (errorCode) {
|
|
3730
3724
|
case "BadRequestException":
|
|
3731
3725
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3732
|
-
throw await
|
|
3726
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3733
3727
|
case "ConflictException":
|
|
3734
3728
|
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
3735
|
-
throw await
|
|
3729
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3736
3730
|
case "ForbiddenException":
|
|
3737
3731
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3738
|
-
throw await
|
|
3732
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3739
3733
|
case "ServiceFailureException":
|
|
3740
3734
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3741
|
-
throw await
|
|
3735
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3742
3736
|
case "ServiceUnavailableException":
|
|
3743
3737
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3744
|
-
throw await
|
|
3738
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3745
3739
|
case "ThrottledClientException":
|
|
3746
3740
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3747
|
-
throw await
|
|
3741
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3748
3742
|
case "UnauthorizedClientException":
|
|
3749
3743
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3750
|
-
throw await
|
|
3744
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3751
3745
|
default:
|
|
3752
3746
|
const parsedBody = parsedOutput.body;
|
|
3753
3747
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3758,9 +3752,9 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
|
|
|
3758
3752
|
});
|
|
3759
3753
|
}
|
|
3760
3754
|
};
|
|
3761
|
-
const
|
|
3755
|
+
const de_UpdateChannelFlowCommand = async (output, context) => {
|
|
3762
3756
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3763
|
-
return
|
|
3757
|
+
return de_UpdateChannelFlowCommandError(output, context);
|
|
3764
3758
|
}
|
|
3765
3759
|
const contents = map({
|
|
3766
3760
|
$metadata: deserializeMetadata(output),
|
|
@@ -3771,8 +3765,8 @@ const deserializeAws_restJson1UpdateChannelFlowCommand = async (output, context)
|
|
|
3771
3765
|
}
|
|
3772
3766
|
return contents;
|
|
3773
3767
|
};
|
|
3774
|
-
exports.
|
|
3775
|
-
const
|
|
3768
|
+
exports.de_UpdateChannelFlowCommand = de_UpdateChannelFlowCommand;
|
|
3769
|
+
const de_UpdateChannelFlowCommandError = async (output, context) => {
|
|
3776
3770
|
const parsedOutput = {
|
|
3777
3771
|
...output,
|
|
3778
3772
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3781,25 +3775,25 @@ const deserializeAws_restJson1UpdateChannelFlowCommandError = async (output, con
|
|
|
3781
3775
|
switch (errorCode) {
|
|
3782
3776
|
case "BadRequestException":
|
|
3783
3777
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3784
|
-
throw await
|
|
3778
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3785
3779
|
case "ConflictException":
|
|
3786
3780
|
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
3787
|
-
throw await
|
|
3781
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3788
3782
|
case "ForbiddenException":
|
|
3789
3783
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3790
|
-
throw await
|
|
3784
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3791
3785
|
case "ServiceFailureException":
|
|
3792
3786
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3793
|
-
throw await
|
|
3787
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3794
3788
|
case "ServiceUnavailableException":
|
|
3795
3789
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3796
|
-
throw await
|
|
3790
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3797
3791
|
case "ThrottledClientException":
|
|
3798
3792
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3799
|
-
throw await
|
|
3793
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3800
3794
|
case "UnauthorizedClientException":
|
|
3801
3795
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3802
|
-
throw await
|
|
3796
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3803
3797
|
default:
|
|
3804
3798
|
const parsedBody = parsedOutput.body;
|
|
3805
3799
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3810,9 +3804,9 @@ const deserializeAws_restJson1UpdateChannelFlowCommandError = async (output, con
|
|
|
3810
3804
|
});
|
|
3811
3805
|
}
|
|
3812
3806
|
};
|
|
3813
|
-
const
|
|
3807
|
+
const de_UpdateChannelMessageCommand = async (output, context) => {
|
|
3814
3808
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3815
|
-
return
|
|
3809
|
+
return de_UpdateChannelMessageCommandError(output, context);
|
|
3816
3810
|
}
|
|
3817
3811
|
const contents = map({
|
|
3818
3812
|
$metadata: deserializeMetadata(output),
|
|
@@ -3825,15 +3819,15 @@ const deserializeAws_restJson1UpdateChannelMessageCommand = async (output, conte
|
|
|
3825
3819
|
contents.MessageId = (0, smithy_client_1.expectString)(data.MessageId);
|
|
3826
3820
|
}
|
|
3827
3821
|
if (data.Status != null) {
|
|
3828
|
-
contents.Status =
|
|
3822
|
+
contents.Status = de_ChannelMessageStatusStructure(data.Status, context);
|
|
3829
3823
|
}
|
|
3830
3824
|
if (data.SubChannelId != null) {
|
|
3831
3825
|
contents.SubChannelId = (0, smithy_client_1.expectString)(data.SubChannelId);
|
|
3832
3826
|
}
|
|
3833
3827
|
return contents;
|
|
3834
3828
|
};
|
|
3835
|
-
exports.
|
|
3836
|
-
const
|
|
3829
|
+
exports.de_UpdateChannelMessageCommand = de_UpdateChannelMessageCommand;
|
|
3830
|
+
const de_UpdateChannelMessageCommandError = async (output, context) => {
|
|
3837
3831
|
const parsedOutput = {
|
|
3838
3832
|
...output,
|
|
3839
3833
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3842,25 +3836,25 @@ const deserializeAws_restJson1UpdateChannelMessageCommandError = async (output,
|
|
|
3842
3836
|
switch (errorCode) {
|
|
3843
3837
|
case "BadRequestException":
|
|
3844
3838
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3845
|
-
throw await
|
|
3839
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3846
3840
|
case "ConflictException":
|
|
3847
3841
|
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
3848
|
-
throw await
|
|
3842
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3849
3843
|
case "ForbiddenException":
|
|
3850
3844
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3851
|
-
throw await
|
|
3845
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3852
3846
|
case "ServiceFailureException":
|
|
3853
3847
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3854
|
-
throw await
|
|
3848
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3855
3849
|
case "ServiceUnavailableException":
|
|
3856
3850
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3857
|
-
throw await
|
|
3851
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3858
3852
|
case "ThrottledClientException":
|
|
3859
3853
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3860
|
-
throw await
|
|
3854
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3861
3855
|
case "UnauthorizedClientException":
|
|
3862
3856
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3863
|
-
throw await
|
|
3857
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3864
3858
|
default:
|
|
3865
3859
|
const parsedBody = parsedOutput.body;
|
|
3866
3860
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3871,9 +3865,9 @@ const deserializeAws_restJson1UpdateChannelMessageCommandError = async (output,
|
|
|
3871
3865
|
});
|
|
3872
3866
|
}
|
|
3873
3867
|
};
|
|
3874
|
-
const
|
|
3868
|
+
const de_UpdateChannelReadMarkerCommand = async (output, context) => {
|
|
3875
3869
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3876
|
-
return
|
|
3870
|
+
return de_UpdateChannelReadMarkerCommandError(output, context);
|
|
3877
3871
|
}
|
|
3878
3872
|
const contents = map({
|
|
3879
3873
|
$metadata: deserializeMetadata(output),
|
|
@@ -3887,8 +3881,8 @@ const deserializeAws_restJson1UpdateChannelReadMarkerCommand = async (output, co
|
|
|
3887
3881
|
}
|
|
3888
3882
|
return contents;
|
|
3889
3883
|
};
|
|
3890
|
-
exports.
|
|
3891
|
-
const
|
|
3884
|
+
exports.de_UpdateChannelReadMarkerCommand = de_UpdateChannelReadMarkerCommand;
|
|
3885
|
+
const de_UpdateChannelReadMarkerCommandError = async (output, context) => {
|
|
3892
3886
|
const parsedOutput = {
|
|
3893
3887
|
...output,
|
|
3894
3888
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3897,25 +3891,25 @@ const deserializeAws_restJson1UpdateChannelReadMarkerCommandError = async (outpu
|
|
|
3897
3891
|
switch (errorCode) {
|
|
3898
3892
|
case "BadRequestException":
|
|
3899
3893
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3900
|
-
throw await
|
|
3894
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3901
3895
|
case "ConflictException":
|
|
3902
3896
|
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
3903
|
-
throw await
|
|
3897
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3904
3898
|
case "ForbiddenException":
|
|
3905
3899
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3906
|
-
throw await
|
|
3900
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3907
3901
|
case "ServiceFailureException":
|
|
3908
3902
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3909
|
-
throw await
|
|
3903
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3910
3904
|
case "ServiceUnavailableException":
|
|
3911
3905
|
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3912
|
-
throw await
|
|
3906
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3913
3907
|
case "ThrottledClientException":
|
|
3914
3908
|
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3915
|
-
throw await
|
|
3909
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3916
3910
|
case "UnauthorizedClientException":
|
|
3917
3911
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3918
|
-
throw await
|
|
3912
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3919
3913
|
default:
|
|
3920
3914
|
const parsedBody = parsedOutput.body;
|
|
3921
3915
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3927,7 +3921,7 @@ const deserializeAws_restJson1UpdateChannelReadMarkerCommandError = async (outpu
|
|
|
3927
3921
|
}
|
|
3928
3922
|
};
|
|
3929
3923
|
const map = smithy_client_1.map;
|
|
3930
|
-
const
|
|
3924
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
3931
3925
|
const contents = map({});
|
|
3932
3926
|
const data = parsedOutput.body;
|
|
3933
3927
|
if (data.Code != null) {
|
|
@@ -3942,7 +3936,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
3942
3936
|
});
|
|
3943
3937
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3944
3938
|
};
|
|
3945
|
-
const
|
|
3939
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
3946
3940
|
const contents = map({});
|
|
3947
3941
|
const data = parsedOutput.body;
|
|
3948
3942
|
if (data.Code != null) {
|
|
@@ -3957,7 +3951,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
3957
3951
|
});
|
|
3958
3952
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3959
3953
|
};
|
|
3960
|
-
const
|
|
3954
|
+
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
3961
3955
|
const contents = map({});
|
|
3962
3956
|
const data = parsedOutput.body;
|
|
3963
3957
|
if (data.Code != null) {
|
|
@@ -3972,7 +3966,7 @@ const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput,
|
|
|
3972
3966
|
});
|
|
3973
3967
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3974
3968
|
};
|
|
3975
|
-
const
|
|
3969
|
+
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3976
3970
|
const contents = map({});
|
|
3977
3971
|
const data = parsedOutput.body;
|
|
3978
3972
|
if (data.Code != null) {
|
|
@@ -3987,7 +3981,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
|
|
|
3987
3981
|
});
|
|
3988
3982
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3989
3983
|
};
|
|
3990
|
-
const
|
|
3984
|
+
const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3991
3985
|
const contents = map({});
|
|
3992
3986
|
const data = parsedOutput.body;
|
|
3993
3987
|
if (data.Code != null) {
|
|
@@ -4002,7 +3996,7 @@ const deserializeAws_restJson1ResourceLimitExceededExceptionResponse = async (pa
|
|
|
4002
3996
|
});
|
|
4003
3997
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4004
3998
|
};
|
|
4005
|
-
const
|
|
3999
|
+
const de_ServiceFailureExceptionRes = async (parsedOutput, context) => {
|
|
4006
4000
|
const contents = map({});
|
|
4007
4001
|
const data = parsedOutput.body;
|
|
4008
4002
|
if (data.Code != null) {
|
|
@@ -4017,7 +4011,7 @@ const deserializeAws_restJson1ServiceFailureExceptionResponse = async (parsedOut
|
|
|
4017
4011
|
});
|
|
4018
4012
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4019
4013
|
};
|
|
4020
|
-
const
|
|
4014
|
+
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
4021
4015
|
const contents = map({});
|
|
4022
4016
|
const data = parsedOutput.body;
|
|
4023
4017
|
if (data.Code != null) {
|
|
@@ -4032,7 +4026,7 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
|
|
|
4032
4026
|
});
|
|
4033
4027
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4034
4028
|
};
|
|
4035
|
-
const
|
|
4029
|
+
const de_ThrottledClientExceptionRes = async (parsedOutput, context) => {
|
|
4036
4030
|
const contents = map({});
|
|
4037
4031
|
const data = parsedOutput.body;
|
|
4038
4032
|
if (data.Code != null) {
|
|
@@ -4047,7 +4041,7 @@ const deserializeAws_restJson1ThrottledClientExceptionResponse = async (parsedOu
|
|
|
4047
4041
|
});
|
|
4048
4042
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4049
4043
|
};
|
|
4050
|
-
const
|
|
4044
|
+
const de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => {
|
|
4051
4045
|
const contents = map({});
|
|
4052
4046
|
const data = parsedOutput.body;
|
|
4053
4047
|
if (data.Code != null) {
|
|
@@ -4062,43 +4056,43 @@ const deserializeAws_restJson1UnauthorizedClientExceptionResponse = async (parse
|
|
|
4062
4056
|
});
|
|
4063
4057
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4064
4058
|
};
|
|
4065
|
-
const
|
|
4059
|
+
const se_ChannelMemberArns = (input, context) => {
|
|
4066
4060
|
return input
|
|
4067
4061
|
.filter((e) => e != null)
|
|
4068
4062
|
.map((entry) => {
|
|
4069
4063
|
return entry;
|
|
4070
4064
|
});
|
|
4071
4065
|
};
|
|
4072
|
-
const
|
|
4066
|
+
const se_ChannelMembershipPreferences = (input, context) => {
|
|
4073
4067
|
return {
|
|
4074
4068
|
...(input.PushNotifications != null && {
|
|
4075
|
-
PushNotifications:
|
|
4069
|
+
PushNotifications: se_PushNotificationPreferences(input.PushNotifications, context),
|
|
4076
4070
|
}),
|
|
4077
4071
|
};
|
|
4078
4072
|
};
|
|
4079
|
-
const
|
|
4073
|
+
const se_ChannelMessageCallback = (input, context) => {
|
|
4080
4074
|
return {
|
|
4081
4075
|
...(input.Content != null && { Content: input.Content }),
|
|
4082
4076
|
...(input.ContentType != null && { ContentType: input.ContentType }),
|
|
4083
4077
|
...(input.MessageAttributes != null && {
|
|
4084
|
-
MessageAttributes:
|
|
4078
|
+
MessageAttributes: se_MessageAttributeMap(input.MessageAttributes, context),
|
|
4085
4079
|
}),
|
|
4086
4080
|
...(input.MessageId != null && { MessageId: input.MessageId }),
|
|
4087
4081
|
...(input.Metadata != null && { Metadata: input.Metadata }),
|
|
4088
4082
|
...(input.PushNotification != null && {
|
|
4089
|
-
PushNotification:
|
|
4083
|
+
PushNotification: se_PushNotificationConfiguration(input.PushNotification, context),
|
|
4090
4084
|
}),
|
|
4091
4085
|
...(input.SubChannelId != null && { SubChannelId: input.SubChannelId }),
|
|
4092
4086
|
};
|
|
4093
4087
|
};
|
|
4094
|
-
const
|
|
4088
|
+
const se_ChannelModeratorArns = (input, context) => {
|
|
4095
4089
|
return input
|
|
4096
4090
|
.filter((e) => e != null)
|
|
4097
4091
|
.map((entry) => {
|
|
4098
4092
|
return entry;
|
|
4099
4093
|
});
|
|
4100
4094
|
};
|
|
4101
|
-
const
|
|
4095
|
+
const se_ElasticChannelConfiguration = (input, context) => {
|
|
4102
4096
|
return {
|
|
4103
4097
|
...(input.MaximumSubChannels != null && { MaximumSubChannels: input.MaximumSubChannels }),
|
|
4104
4098
|
...(input.MinimumMembershipPercentage != null && {
|
|
@@ -4109,138 +4103,134 @@ const serializeAws_restJson1ElasticChannelConfiguration = (input, context) => {
|
|
|
4109
4103
|
}),
|
|
4110
4104
|
};
|
|
4111
4105
|
};
|
|
4112
|
-
const
|
|
4106
|
+
const se_ExpirationSettings = (input, context) => {
|
|
4113
4107
|
return {
|
|
4114
4108
|
...(input.ExpirationCriterion != null && { ExpirationCriterion: input.ExpirationCriterion }),
|
|
4115
4109
|
...(input.ExpirationDays != null && { ExpirationDays: input.ExpirationDays }),
|
|
4116
4110
|
};
|
|
4117
4111
|
};
|
|
4118
|
-
const
|
|
4112
|
+
const se_LambdaConfiguration = (input, context) => {
|
|
4119
4113
|
return {
|
|
4120
4114
|
...(input.InvocationType != null && { InvocationType: input.InvocationType }),
|
|
4121
4115
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4122
4116
|
};
|
|
4123
4117
|
};
|
|
4124
|
-
const
|
|
4118
|
+
const se_MemberArns = (input, context) => {
|
|
4125
4119
|
return input
|
|
4126
4120
|
.filter((e) => e != null)
|
|
4127
4121
|
.map((entry) => {
|
|
4128
4122
|
return entry;
|
|
4129
4123
|
});
|
|
4130
4124
|
};
|
|
4131
|
-
const
|
|
4125
|
+
const se_MessageAttributeMap = (input, context) => {
|
|
4132
4126
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
4133
4127
|
if (value === null) {
|
|
4134
4128
|
return acc;
|
|
4135
4129
|
}
|
|
4136
|
-
acc[key] =
|
|
4130
|
+
acc[key] = se_MessageAttributeValue(value, context);
|
|
4137
4131
|
return acc;
|
|
4138
4132
|
}, {});
|
|
4139
4133
|
};
|
|
4140
|
-
const
|
|
4134
|
+
const se_MessageAttributeStringValues = (input, context) => {
|
|
4141
4135
|
return input
|
|
4142
4136
|
.filter((e) => e != null)
|
|
4143
4137
|
.map((entry) => {
|
|
4144
4138
|
return entry;
|
|
4145
4139
|
});
|
|
4146
4140
|
};
|
|
4147
|
-
const
|
|
4141
|
+
const se_MessageAttributeValue = (input, context) => {
|
|
4148
4142
|
return {
|
|
4149
|
-
...(input.StringValues != null && {
|
|
4150
|
-
StringValues: serializeAws_restJson1MessageAttributeStringValues(input.StringValues, context),
|
|
4151
|
-
}),
|
|
4143
|
+
...(input.StringValues != null && { StringValues: se_MessageAttributeStringValues(input.StringValues, context) }),
|
|
4152
4144
|
};
|
|
4153
4145
|
};
|
|
4154
|
-
const
|
|
4146
|
+
const se_Processor = (input, context) => {
|
|
4155
4147
|
return {
|
|
4156
|
-
...(input.Configuration != null && {
|
|
4157
|
-
Configuration: serializeAws_restJson1ProcessorConfiguration(input.Configuration, context),
|
|
4158
|
-
}),
|
|
4148
|
+
...(input.Configuration != null && { Configuration: se_ProcessorConfiguration(input.Configuration, context) }),
|
|
4159
4149
|
...(input.ExecutionOrder != null && { ExecutionOrder: input.ExecutionOrder }),
|
|
4160
4150
|
...(input.FallbackAction != null && { FallbackAction: input.FallbackAction }),
|
|
4161
4151
|
...(input.Name != null && { Name: input.Name }),
|
|
4162
4152
|
};
|
|
4163
4153
|
};
|
|
4164
|
-
const
|
|
4154
|
+
const se_ProcessorConfiguration = (input, context) => {
|
|
4165
4155
|
return {
|
|
4166
|
-
...(input.Lambda != null && { Lambda:
|
|
4156
|
+
...(input.Lambda != null && { Lambda: se_LambdaConfiguration(input.Lambda, context) }),
|
|
4167
4157
|
};
|
|
4168
4158
|
};
|
|
4169
|
-
const
|
|
4159
|
+
const se_ProcessorList = (input, context) => {
|
|
4170
4160
|
return input
|
|
4171
4161
|
.filter((e) => e != null)
|
|
4172
4162
|
.map((entry) => {
|
|
4173
|
-
return
|
|
4163
|
+
return se_Processor(entry, context);
|
|
4174
4164
|
});
|
|
4175
4165
|
};
|
|
4176
|
-
const
|
|
4166
|
+
const se_PushNotificationConfiguration = (input, context) => {
|
|
4177
4167
|
return {
|
|
4178
4168
|
...(input.Body != null && { Body: input.Body }),
|
|
4179
4169
|
...(input.Title != null && { Title: input.Title }),
|
|
4180
4170
|
...(input.Type != null && { Type: input.Type }),
|
|
4181
4171
|
};
|
|
4182
4172
|
};
|
|
4183
|
-
const
|
|
4173
|
+
const se_PushNotificationPreferences = (input, context) => {
|
|
4184
4174
|
return {
|
|
4185
4175
|
...(input.AllowNotifications != null && { AllowNotifications: input.AllowNotifications }),
|
|
4186
4176
|
...(input.FilterRule != null && { FilterRule: input.FilterRule }),
|
|
4187
4177
|
};
|
|
4188
4178
|
};
|
|
4189
|
-
const
|
|
4179
|
+
const se_SearchField = (input, context) => {
|
|
4190
4180
|
return {
|
|
4191
4181
|
...(input.Key != null && { Key: input.Key }),
|
|
4192
4182
|
...(input.Operator != null && { Operator: input.Operator }),
|
|
4193
|
-
...(input.Values != null && { Values:
|
|
4183
|
+
...(input.Values != null && { Values: se_SearchFieldValues(input.Values, context) }),
|
|
4194
4184
|
};
|
|
4195
4185
|
};
|
|
4196
|
-
const
|
|
4186
|
+
const se_SearchFields = (input, context) => {
|
|
4197
4187
|
return input
|
|
4198
4188
|
.filter((e) => e != null)
|
|
4199
4189
|
.map((entry) => {
|
|
4200
|
-
return
|
|
4190
|
+
return se_SearchField(entry, context);
|
|
4201
4191
|
});
|
|
4202
4192
|
};
|
|
4203
|
-
const
|
|
4193
|
+
const se_SearchFieldValues = (input, context) => {
|
|
4204
4194
|
return input
|
|
4205
4195
|
.filter((e) => e != null)
|
|
4206
4196
|
.map((entry) => {
|
|
4207
4197
|
return entry;
|
|
4208
4198
|
});
|
|
4209
4199
|
};
|
|
4210
|
-
const
|
|
4200
|
+
const se_StreamingConfiguration = (input, context) => {
|
|
4211
4201
|
return {
|
|
4212
4202
|
...(input.DataType != null && { DataType: input.DataType }),
|
|
4213
4203
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4214
4204
|
};
|
|
4215
4205
|
};
|
|
4216
|
-
const
|
|
4206
|
+
const se_StreamingConfigurationList = (input, context) => {
|
|
4217
4207
|
return input
|
|
4218
4208
|
.filter((e) => e != null)
|
|
4219
4209
|
.map((entry) => {
|
|
4220
|
-
return
|
|
4210
|
+
return se_StreamingConfiguration(entry, context);
|
|
4221
4211
|
});
|
|
4222
4212
|
};
|
|
4223
|
-
const
|
|
4213
|
+
const se_Tag = (input, context) => {
|
|
4224
4214
|
return {
|
|
4225
4215
|
...(input.Key != null && { Key: input.Key }),
|
|
4226
4216
|
...(input.Value != null && { Value: input.Value }),
|
|
4227
4217
|
};
|
|
4228
4218
|
};
|
|
4229
|
-
const
|
|
4219
|
+
const se_TagKeyList = (input, context) => {
|
|
4230
4220
|
return input
|
|
4231
4221
|
.filter((e) => e != null)
|
|
4232
4222
|
.map((entry) => {
|
|
4233
4223
|
return entry;
|
|
4234
4224
|
});
|
|
4235
4225
|
};
|
|
4236
|
-
const
|
|
4226
|
+
const se_TagList = (input, context) => {
|
|
4237
4227
|
return input
|
|
4238
4228
|
.filter((e) => e != null)
|
|
4239
4229
|
.map((entry) => {
|
|
4240
|
-
return
|
|
4230
|
+
return se_Tag(entry, context);
|
|
4241
4231
|
});
|
|
4242
4232
|
};
|
|
4243
|
-
const
|
|
4233
|
+
const de_AppInstanceUserMembershipSummary = (output, context) => {
|
|
4244
4234
|
return {
|
|
4245
4235
|
ReadMarkerTimestamp: output.ReadMarkerTimestamp != null
|
|
4246
4236
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReadMarkerTimestamp)))
|
|
@@ -4249,47 +4239,45 @@ const deserializeAws_restJson1AppInstanceUserMembershipSummary = (output, contex
|
|
|
4249
4239
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4250
4240
|
};
|
|
4251
4241
|
};
|
|
4252
|
-
const
|
|
4242
|
+
const de_BatchChannelMemberships = (output, context) => {
|
|
4253
4243
|
return {
|
|
4254
4244
|
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
4255
|
-
InvitedBy: output.InvitedBy != null ?
|
|
4256
|
-
Members: output.Members != null ?
|
|
4245
|
+
InvitedBy: output.InvitedBy != null ? de_Identity(output.InvitedBy, context) : undefined,
|
|
4246
|
+
Members: output.Members != null ? de_Members(output.Members, context) : undefined,
|
|
4257
4247
|
SubChannelId: (0, smithy_client_1.expectString)(output.SubChannelId),
|
|
4258
4248
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4259
4249
|
};
|
|
4260
4250
|
};
|
|
4261
|
-
const
|
|
4251
|
+
const de_BatchCreateChannelMembershipError = (output, context) => {
|
|
4262
4252
|
return {
|
|
4263
4253
|
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
4264
4254
|
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
4265
4255
|
MemberArn: (0, smithy_client_1.expectString)(output.MemberArn),
|
|
4266
4256
|
};
|
|
4267
4257
|
};
|
|
4268
|
-
const
|
|
4258
|
+
const de_BatchCreateChannelMembershipErrors = (output, context) => {
|
|
4269
4259
|
const retVal = (output || [])
|
|
4270
4260
|
.filter((e) => e != null)
|
|
4271
4261
|
.map((entry) => {
|
|
4272
4262
|
if (entry === null) {
|
|
4273
4263
|
return null;
|
|
4274
4264
|
}
|
|
4275
|
-
return
|
|
4265
|
+
return de_BatchCreateChannelMembershipError(entry, context);
|
|
4276
4266
|
});
|
|
4277
4267
|
return retVal;
|
|
4278
4268
|
};
|
|
4279
|
-
const
|
|
4269
|
+
const de_Channel = (output, context) => {
|
|
4280
4270
|
return {
|
|
4281
4271
|
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
4282
4272
|
ChannelFlowArn: (0, smithy_client_1.expectString)(output.ChannelFlowArn),
|
|
4283
|
-
CreatedBy: output.CreatedBy != null ?
|
|
4273
|
+
CreatedBy: output.CreatedBy != null ? de_Identity(output.CreatedBy, context) : undefined,
|
|
4284
4274
|
CreatedTimestamp: output.CreatedTimestamp != null
|
|
4285
4275
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
4286
4276
|
: undefined,
|
|
4287
4277
|
ElasticChannelConfiguration: output.ElasticChannelConfiguration != null
|
|
4288
|
-
?
|
|
4289
|
-
: undefined,
|
|
4290
|
-
ExpirationSettings: output.ExpirationSettings != null
|
|
4291
|
-
? deserializeAws_restJson1ExpirationSettings(output.ExpirationSettings, context)
|
|
4278
|
+
? de_ElasticChannelConfiguration(output.ElasticChannelConfiguration, context)
|
|
4292
4279
|
: undefined,
|
|
4280
|
+
ExpirationSettings: output.ExpirationSettings != null ? de_ExpirationSettings(output.ExpirationSettings, context) : undefined,
|
|
4293
4281
|
LastMessageTimestamp: output.LastMessageTimestamp != null
|
|
4294
4282
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastMessageTimestamp)))
|
|
4295
4283
|
: undefined,
|
|
@@ -4302,7 +4290,7 @@ const deserializeAws_restJson1Channel = (output, context) => {
|
|
|
4302
4290
|
Privacy: (0, smithy_client_1.expectString)(output.Privacy),
|
|
4303
4291
|
};
|
|
4304
4292
|
};
|
|
4305
|
-
const
|
|
4293
|
+
const de_ChannelAssociatedWithFlowSummary = (output, context) => {
|
|
4306
4294
|
return {
|
|
4307
4295
|
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
4308
4296
|
Metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
@@ -4311,44 +4299,44 @@ const deserializeAws_restJson1ChannelAssociatedWithFlowSummary = (output, contex
|
|
|
4311
4299
|
Privacy: (0, smithy_client_1.expectString)(output.Privacy),
|
|
4312
4300
|
};
|
|
4313
4301
|
};
|
|
4314
|
-
const
|
|
4302
|
+
const de_ChannelAssociatedWithFlowSummaryList = (output, context) => {
|
|
4315
4303
|
const retVal = (output || [])
|
|
4316
4304
|
.filter((e) => e != null)
|
|
4317
4305
|
.map((entry) => {
|
|
4318
4306
|
if (entry === null) {
|
|
4319
4307
|
return null;
|
|
4320
4308
|
}
|
|
4321
|
-
return
|
|
4309
|
+
return de_ChannelAssociatedWithFlowSummary(entry, context);
|
|
4322
4310
|
});
|
|
4323
4311
|
return retVal;
|
|
4324
4312
|
};
|
|
4325
|
-
const
|
|
4313
|
+
const de_ChannelBan = (output, context) => {
|
|
4326
4314
|
return {
|
|
4327
4315
|
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
4328
|
-
CreatedBy: output.CreatedBy != null ?
|
|
4316
|
+
CreatedBy: output.CreatedBy != null ? de_Identity(output.CreatedBy, context) : undefined,
|
|
4329
4317
|
CreatedTimestamp: output.CreatedTimestamp != null
|
|
4330
4318
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
4331
4319
|
: undefined,
|
|
4332
|
-
Member: output.Member != null ?
|
|
4320
|
+
Member: output.Member != null ? de_Identity(output.Member, context) : undefined,
|
|
4333
4321
|
};
|
|
4334
4322
|
};
|
|
4335
|
-
const
|
|
4323
|
+
const de_ChannelBanSummary = (output, context) => {
|
|
4336
4324
|
return {
|
|
4337
|
-
Member: output.Member != null ?
|
|
4325
|
+
Member: output.Member != null ? de_Identity(output.Member, context) : undefined,
|
|
4338
4326
|
};
|
|
4339
4327
|
};
|
|
4340
|
-
const
|
|
4328
|
+
const de_ChannelBanSummaryList = (output, context) => {
|
|
4341
4329
|
const retVal = (output || [])
|
|
4342
4330
|
.filter((e) => e != null)
|
|
4343
4331
|
.map((entry) => {
|
|
4344
4332
|
if (entry === null) {
|
|
4345
4333
|
return null;
|
|
4346
4334
|
}
|
|
4347
|
-
return
|
|
4335
|
+
return de_ChannelBanSummary(entry, context);
|
|
4348
4336
|
});
|
|
4349
4337
|
return retVal;
|
|
4350
4338
|
};
|
|
4351
|
-
const
|
|
4339
|
+
const de_ChannelFlow = (output, context) => {
|
|
4352
4340
|
return {
|
|
4353
4341
|
ChannelFlowArn: (0, smithy_client_1.expectString)(output.ChannelFlowArn),
|
|
4354
4342
|
CreatedTimestamp: output.CreatedTimestamp != null
|
|
@@ -4358,87 +4346,83 @@ const deserializeAws_restJson1ChannelFlow = (output, context) => {
|
|
|
4358
4346
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
4359
4347
|
: undefined,
|
|
4360
4348
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4361
|
-
Processors: output.Processors != null ?
|
|
4349
|
+
Processors: output.Processors != null ? de_ProcessorList(output.Processors, context) : undefined,
|
|
4362
4350
|
};
|
|
4363
4351
|
};
|
|
4364
|
-
const
|
|
4352
|
+
const de_ChannelFlowSummary = (output, context) => {
|
|
4365
4353
|
return {
|
|
4366
4354
|
ChannelFlowArn: (0, smithy_client_1.expectString)(output.ChannelFlowArn),
|
|
4367
4355
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4368
|
-
Processors: output.Processors != null ?
|
|
4356
|
+
Processors: output.Processors != null ? de_ProcessorList(output.Processors, context) : undefined,
|
|
4369
4357
|
};
|
|
4370
4358
|
};
|
|
4371
|
-
const
|
|
4359
|
+
const de_ChannelFlowSummaryList = (output, context) => {
|
|
4372
4360
|
const retVal = (output || [])
|
|
4373
4361
|
.filter((e) => e != null)
|
|
4374
4362
|
.map((entry) => {
|
|
4375
4363
|
if (entry === null) {
|
|
4376
4364
|
return null;
|
|
4377
4365
|
}
|
|
4378
|
-
return
|
|
4366
|
+
return de_ChannelFlowSummary(entry, context);
|
|
4379
4367
|
});
|
|
4380
4368
|
return retVal;
|
|
4381
4369
|
};
|
|
4382
|
-
const
|
|
4370
|
+
const de_ChannelMembership = (output, context) => {
|
|
4383
4371
|
return {
|
|
4384
4372
|
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
4385
4373
|
CreatedTimestamp: output.CreatedTimestamp != null
|
|
4386
4374
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
4387
4375
|
: undefined,
|
|
4388
|
-
InvitedBy: output.InvitedBy != null ?
|
|
4376
|
+
InvitedBy: output.InvitedBy != null ? de_Identity(output.InvitedBy, context) : undefined,
|
|
4389
4377
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
4390
4378
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
4391
4379
|
: undefined,
|
|
4392
|
-
Member: output.Member != null ?
|
|
4380
|
+
Member: output.Member != null ? de_Identity(output.Member, context) : undefined,
|
|
4393
4381
|
SubChannelId: (0, smithy_client_1.expectString)(output.SubChannelId),
|
|
4394
4382
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4395
4383
|
};
|
|
4396
4384
|
};
|
|
4397
|
-
const
|
|
4385
|
+
const de_ChannelMembershipForAppInstanceUserSummary = (output, context) => {
|
|
4398
4386
|
return {
|
|
4399
4387
|
AppInstanceUserMembershipSummary: output.AppInstanceUserMembershipSummary != null
|
|
4400
|
-
?
|
|
4401
|
-
: undefined,
|
|
4402
|
-
ChannelSummary: output.ChannelSummary != null
|
|
4403
|
-
? deserializeAws_restJson1ChannelSummary(output.ChannelSummary, context)
|
|
4388
|
+
? de_AppInstanceUserMembershipSummary(output.AppInstanceUserMembershipSummary, context)
|
|
4404
4389
|
: undefined,
|
|
4390
|
+
ChannelSummary: output.ChannelSummary != null ? de_ChannelSummary(output.ChannelSummary, context) : undefined,
|
|
4405
4391
|
};
|
|
4406
4392
|
};
|
|
4407
|
-
const
|
|
4393
|
+
const de_ChannelMembershipForAppInstanceUserSummaryList = (output, context) => {
|
|
4408
4394
|
const retVal = (output || [])
|
|
4409
4395
|
.filter((e) => e != null)
|
|
4410
4396
|
.map((entry) => {
|
|
4411
4397
|
if (entry === null) {
|
|
4412
4398
|
return null;
|
|
4413
4399
|
}
|
|
4414
|
-
return
|
|
4400
|
+
return de_ChannelMembershipForAppInstanceUserSummary(entry, context);
|
|
4415
4401
|
});
|
|
4416
4402
|
return retVal;
|
|
4417
4403
|
};
|
|
4418
|
-
const
|
|
4404
|
+
const de_ChannelMembershipPreferences = (output, context) => {
|
|
4419
4405
|
return {
|
|
4420
|
-
PushNotifications: output.PushNotifications != null
|
|
4421
|
-
? deserializeAws_restJson1PushNotificationPreferences(output.PushNotifications, context)
|
|
4422
|
-
: undefined,
|
|
4406
|
+
PushNotifications: output.PushNotifications != null ? de_PushNotificationPreferences(output.PushNotifications, context) : undefined,
|
|
4423
4407
|
};
|
|
4424
4408
|
};
|
|
4425
|
-
const
|
|
4409
|
+
const de_ChannelMembershipSummary = (output, context) => {
|
|
4426
4410
|
return {
|
|
4427
|
-
Member: output.Member != null ?
|
|
4411
|
+
Member: output.Member != null ? de_Identity(output.Member, context) : undefined,
|
|
4428
4412
|
};
|
|
4429
4413
|
};
|
|
4430
|
-
const
|
|
4414
|
+
const de_ChannelMembershipSummaryList = (output, context) => {
|
|
4431
4415
|
const retVal = (output || [])
|
|
4432
4416
|
.filter((e) => e != null)
|
|
4433
4417
|
.map((entry) => {
|
|
4434
4418
|
if (entry === null) {
|
|
4435
4419
|
return null;
|
|
4436
4420
|
}
|
|
4437
|
-
return
|
|
4421
|
+
return de_ChannelMembershipSummary(entry, context);
|
|
4438
4422
|
});
|
|
4439
4423
|
return retVal;
|
|
4440
4424
|
};
|
|
4441
|
-
const
|
|
4425
|
+
const de_ChannelMessage = (output, context) => {
|
|
4442
4426
|
return {
|
|
4443
4427
|
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
4444
4428
|
Content: (0, smithy_client_1.expectString)(output.Content),
|
|
@@ -4452,26 +4436,24 @@ const deserializeAws_restJson1ChannelMessage = (output, context) => {
|
|
|
4452
4436
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
4453
4437
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
4454
4438
|
: undefined,
|
|
4455
|
-
MessageAttributes: output.MessageAttributes != null
|
|
4456
|
-
? deserializeAws_restJson1MessageAttributeMap(output.MessageAttributes, context)
|
|
4457
|
-
: undefined,
|
|
4439
|
+
MessageAttributes: output.MessageAttributes != null ? de_MessageAttributeMap(output.MessageAttributes, context) : undefined,
|
|
4458
4440
|
MessageId: (0, smithy_client_1.expectString)(output.MessageId),
|
|
4459
4441
|
Metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
4460
4442
|
Persistence: (0, smithy_client_1.expectString)(output.Persistence),
|
|
4461
4443
|
Redacted: (0, smithy_client_1.expectBoolean)(output.Redacted),
|
|
4462
|
-
Sender: output.Sender != null ?
|
|
4463
|
-
Status: output.Status != null ?
|
|
4444
|
+
Sender: output.Sender != null ? de_Identity(output.Sender, context) : undefined,
|
|
4445
|
+
Status: output.Status != null ? de_ChannelMessageStatusStructure(output.Status, context) : undefined,
|
|
4464
4446
|
SubChannelId: (0, smithy_client_1.expectString)(output.SubChannelId),
|
|
4465
4447
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4466
4448
|
};
|
|
4467
4449
|
};
|
|
4468
|
-
const
|
|
4450
|
+
const de_ChannelMessageStatusStructure = (output, context) => {
|
|
4469
4451
|
return {
|
|
4470
4452
|
Detail: (0, smithy_client_1.expectString)(output.Detail),
|
|
4471
4453
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
4472
4454
|
};
|
|
4473
4455
|
};
|
|
4474
|
-
const
|
|
4456
|
+
const de_ChannelMessageSummary = (output, context) => {
|
|
4475
4457
|
return {
|
|
4476
4458
|
Content: (0, smithy_client_1.expectString)(output.Content),
|
|
4477
4459
|
ContentType: (0, smithy_client_1.expectString)(output.ContentType),
|
|
@@ -4484,73 +4466,69 @@ const deserializeAws_restJson1ChannelMessageSummary = (output, context) => {
|
|
|
4484
4466
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
4485
4467
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
4486
4468
|
: undefined,
|
|
4487
|
-
MessageAttributes: output.MessageAttributes != null
|
|
4488
|
-
? deserializeAws_restJson1MessageAttributeMap(output.MessageAttributes, context)
|
|
4489
|
-
: undefined,
|
|
4469
|
+
MessageAttributes: output.MessageAttributes != null ? de_MessageAttributeMap(output.MessageAttributes, context) : undefined,
|
|
4490
4470
|
MessageId: (0, smithy_client_1.expectString)(output.MessageId),
|
|
4491
4471
|
Metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
4492
4472
|
Redacted: (0, smithy_client_1.expectBoolean)(output.Redacted),
|
|
4493
|
-
Sender: output.Sender != null ?
|
|
4494
|
-
Status: output.Status != null ?
|
|
4473
|
+
Sender: output.Sender != null ? de_Identity(output.Sender, context) : undefined,
|
|
4474
|
+
Status: output.Status != null ? de_ChannelMessageStatusStructure(output.Status, context) : undefined,
|
|
4495
4475
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4496
4476
|
};
|
|
4497
4477
|
};
|
|
4498
|
-
const
|
|
4478
|
+
const de_ChannelMessageSummaryList = (output, context) => {
|
|
4499
4479
|
const retVal = (output || [])
|
|
4500
4480
|
.filter((e) => e != null)
|
|
4501
4481
|
.map((entry) => {
|
|
4502
4482
|
if (entry === null) {
|
|
4503
4483
|
return null;
|
|
4504
4484
|
}
|
|
4505
|
-
return
|
|
4485
|
+
return de_ChannelMessageSummary(entry, context);
|
|
4506
4486
|
});
|
|
4507
4487
|
return retVal;
|
|
4508
4488
|
};
|
|
4509
|
-
const
|
|
4489
|
+
const de_ChannelModeratedByAppInstanceUserSummary = (output, context) => {
|
|
4510
4490
|
return {
|
|
4511
|
-
ChannelSummary: output.ChannelSummary != null
|
|
4512
|
-
? deserializeAws_restJson1ChannelSummary(output.ChannelSummary, context)
|
|
4513
|
-
: undefined,
|
|
4491
|
+
ChannelSummary: output.ChannelSummary != null ? de_ChannelSummary(output.ChannelSummary, context) : undefined,
|
|
4514
4492
|
};
|
|
4515
4493
|
};
|
|
4516
|
-
const
|
|
4494
|
+
const de_ChannelModeratedByAppInstanceUserSummaryList = (output, context) => {
|
|
4517
4495
|
const retVal = (output || [])
|
|
4518
4496
|
.filter((e) => e != null)
|
|
4519
4497
|
.map((entry) => {
|
|
4520
4498
|
if (entry === null) {
|
|
4521
4499
|
return null;
|
|
4522
4500
|
}
|
|
4523
|
-
return
|
|
4501
|
+
return de_ChannelModeratedByAppInstanceUserSummary(entry, context);
|
|
4524
4502
|
});
|
|
4525
4503
|
return retVal;
|
|
4526
4504
|
};
|
|
4527
|
-
const
|
|
4505
|
+
const de_ChannelModerator = (output, context) => {
|
|
4528
4506
|
return {
|
|
4529
4507
|
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
4530
|
-
CreatedBy: output.CreatedBy != null ?
|
|
4508
|
+
CreatedBy: output.CreatedBy != null ? de_Identity(output.CreatedBy, context) : undefined,
|
|
4531
4509
|
CreatedTimestamp: output.CreatedTimestamp != null
|
|
4532
4510
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
4533
4511
|
: undefined,
|
|
4534
|
-
Moderator: output.Moderator != null ?
|
|
4512
|
+
Moderator: output.Moderator != null ? de_Identity(output.Moderator, context) : undefined,
|
|
4535
4513
|
};
|
|
4536
4514
|
};
|
|
4537
|
-
const
|
|
4515
|
+
const de_ChannelModeratorSummary = (output, context) => {
|
|
4538
4516
|
return {
|
|
4539
|
-
Moderator: output.Moderator != null ?
|
|
4517
|
+
Moderator: output.Moderator != null ? de_Identity(output.Moderator, context) : undefined,
|
|
4540
4518
|
};
|
|
4541
4519
|
};
|
|
4542
|
-
const
|
|
4520
|
+
const de_ChannelModeratorSummaryList = (output, context) => {
|
|
4543
4521
|
const retVal = (output || [])
|
|
4544
4522
|
.filter((e) => e != null)
|
|
4545
4523
|
.map((entry) => {
|
|
4546
4524
|
if (entry === null) {
|
|
4547
4525
|
return null;
|
|
4548
4526
|
}
|
|
4549
|
-
return
|
|
4527
|
+
return de_ChannelModeratorSummary(entry, context);
|
|
4550
4528
|
});
|
|
4551
4529
|
return retVal;
|
|
4552
4530
|
};
|
|
4553
|
-
const
|
|
4531
|
+
const de_ChannelSummary = (output, context) => {
|
|
4554
4532
|
return {
|
|
4555
4533
|
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
4556
4534
|
LastMessageTimestamp: output.LastMessageTimestamp != null
|
|
@@ -4562,63 +4540,63 @@ const deserializeAws_restJson1ChannelSummary = (output, context) => {
|
|
|
4562
4540
|
Privacy: (0, smithy_client_1.expectString)(output.Privacy),
|
|
4563
4541
|
};
|
|
4564
4542
|
};
|
|
4565
|
-
const
|
|
4543
|
+
const de_ChannelSummaryList = (output, context) => {
|
|
4566
4544
|
const retVal = (output || [])
|
|
4567
4545
|
.filter((e) => e != null)
|
|
4568
4546
|
.map((entry) => {
|
|
4569
4547
|
if (entry === null) {
|
|
4570
4548
|
return null;
|
|
4571
4549
|
}
|
|
4572
|
-
return
|
|
4550
|
+
return de_ChannelSummary(entry, context);
|
|
4573
4551
|
});
|
|
4574
4552
|
return retVal;
|
|
4575
4553
|
};
|
|
4576
|
-
const
|
|
4554
|
+
const de_ElasticChannelConfiguration = (output, context) => {
|
|
4577
4555
|
return {
|
|
4578
4556
|
MaximumSubChannels: (0, smithy_client_1.expectInt32)(output.MaximumSubChannels),
|
|
4579
4557
|
MinimumMembershipPercentage: (0, smithy_client_1.expectInt32)(output.MinimumMembershipPercentage),
|
|
4580
4558
|
TargetMembershipsPerSubChannel: (0, smithy_client_1.expectInt32)(output.TargetMembershipsPerSubChannel),
|
|
4581
4559
|
};
|
|
4582
4560
|
};
|
|
4583
|
-
const
|
|
4561
|
+
const de_ExpirationSettings = (output, context) => {
|
|
4584
4562
|
return {
|
|
4585
4563
|
ExpirationCriterion: (0, smithy_client_1.expectString)(output.ExpirationCriterion),
|
|
4586
4564
|
ExpirationDays: (0, smithy_client_1.expectInt32)(output.ExpirationDays),
|
|
4587
4565
|
};
|
|
4588
4566
|
};
|
|
4589
|
-
const
|
|
4567
|
+
const de_Identity = (output, context) => {
|
|
4590
4568
|
return {
|
|
4591
4569
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4592
4570
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4593
4571
|
};
|
|
4594
4572
|
};
|
|
4595
|
-
const
|
|
4573
|
+
const de_LambdaConfiguration = (output, context) => {
|
|
4596
4574
|
return {
|
|
4597
4575
|
InvocationType: (0, smithy_client_1.expectString)(output.InvocationType),
|
|
4598
4576
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
4599
4577
|
};
|
|
4600
4578
|
};
|
|
4601
|
-
const
|
|
4579
|
+
const de_Members = (output, context) => {
|
|
4602
4580
|
const retVal = (output || [])
|
|
4603
4581
|
.filter((e) => e != null)
|
|
4604
4582
|
.map((entry) => {
|
|
4605
4583
|
if (entry === null) {
|
|
4606
4584
|
return null;
|
|
4607
4585
|
}
|
|
4608
|
-
return
|
|
4586
|
+
return de_Identity(entry, context);
|
|
4609
4587
|
});
|
|
4610
4588
|
return retVal;
|
|
4611
4589
|
};
|
|
4612
|
-
const
|
|
4590
|
+
const de_MessageAttributeMap = (output, context) => {
|
|
4613
4591
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4614
4592
|
if (value === null) {
|
|
4615
4593
|
return acc;
|
|
4616
4594
|
}
|
|
4617
|
-
acc[key] =
|
|
4595
|
+
acc[key] = de_MessageAttributeValue(value, context);
|
|
4618
4596
|
return acc;
|
|
4619
4597
|
}, {});
|
|
4620
4598
|
};
|
|
4621
|
-
const
|
|
4599
|
+
const de_MessageAttributeStringValues = (output, context) => {
|
|
4622
4600
|
const retVal = (output || [])
|
|
4623
4601
|
.filter((e) => e != null)
|
|
4624
4602
|
.map((entry) => {
|
|
@@ -4629,98 +4607,94 @@ const deserializeAws_restJson1MessageAttributeStringValues = (output, context) =
|
|
|
4629
4607
|
});
|
|
4630
4608
|
return retVal;
|
|
4631
4609
|
};
|
|
4632
|
-
const
|
|
4610
|
+
const de_MessageAttributeValue = (output, context) => {
|
|
4633
4611
|
return {
|
|
4634
|
-
StringValues: output.StringValues != null
|
|
4635
|
-
? deserializeAws_restJson1MessageAttributeStringValues(output.StringValues, context)
|
|
4636
|
-
: undefined,
|
|
4612
|
+
StringValues: output.StringValues != null ? de_MessageAttributeStringValues(output.StringValues, context) : undefined,
|
|
4637
4613
|
};
|
|
4638
4614
|
};
|
|
4639
|
-
const
|
|
4615
|
+
const de_MessagingSessionEndpoint = (output, context) => {
|
|
4640
4616
|
return {
|
|
4641
4617
|
Url: (0, smithy_client_1.expectString)(output.Url),
|
|
4642
4618
|
};
|
|
4643
4619
|
};
|
|
4644
|
-
const
|
|
4620
|
+
const de_Processor = (output, context) => {
|
|
4645
4621
|
return {
|
|
4646
|
-
Configuration: output.Configuration != null
|
|
4647
|
-
? deserializeAws_restJson1ProcessorConfiguration(output.Configuration, context)
|
|
4648
|
-
: undefined,
|
|
4622
|
+
Configuration: output.Configuration != null ? de_ProcessorConfiguration(output.Configuration, context) : undefined,
|
|
4649
4623
|
ExecutionOrder: (0, smithy_client_1.expectInt32)(output.ExecutionOrder),
|
|
4650
4624
|
FallbackAction: (0, smithy_client_1.expectString)(output.FallbackAction),
|
|
4651
4625
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4652
4626
|
};
|
|
4653
4627
|
};
|
|
4654
|
-
const
|
|
4628
|
+
const de_ProcessorConfiguration = (output, context) => {
|
|
4655
4629
|
return {
|
|
4656
|
-
Lambda: output.Lambda != null ?
|
|
4630
|
+
Lambda: output.Lambda != null ? de_LambdaConfiguration(output.Lambda, context) : undefined,
|
|
4657
4631
|
};
|
|
4658
4632
|
};
|
|
4659
|
-
const
|
|
4633
|
+
const de_ProcessorList = (output, context) => {
|
|
4660
4634
|
const retVal = (output || [])
|
|
4661
4635
|
.filter((e) => e != null)
|
|
4662
4636
|
.map((entry) => {
|
|
4663
4637
|
if (entry === null) {
|
|
4664
4638
|
return null;
|
|
4665
4639
|
}
|
|
4666
|
-
return
|
|
4640
|
+
return de_Processor(entry, context);
|
|
4667
4641
|
});
|
|
4668
4642
|
return retVal;
|
|
4669
4643
|
};
|
|
4670
|
-
const
|
|
4644
|
+
const de_PushNotificationPreferences = (output, context) => {
|
|
4671
4645
|
return {
|
|
4672
4646
|
AllowNotifications: (0, smithy_client_1.expectString)(output.AllowNotifications),
|
|
4673
4647
|
FilterRule: (0, smithy_client_1.expectString)(output.FilterRule),
|
|
4674
4648
|
};
|
|
4675
4649
|
};
|
|
4676
|
-
const
|
|
4650
|
+
const de_StreamingConfiguration = (output, context) => {
|
|
4677
4651
|
return {
|
|
4678
4652
|
DataType: (0, smithy_client_1.expectString)(output.DataType),
|
|
4679
4653
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
4680
4654
|
};
|
|
4681
4655
|
};
|
|
4682
|
-
const
|
|
4656
|
+
const de_StreamingConfigurationList = (output, context) => {
|
|
4683
4657
|
const retVal = (output || [])
|
|
4684
4658
|
.filter((e) => e != null)
|
|
4685
4659
|
.map((entry) => {
|
|
4686
4660
|
if (entry === null) {
|
|
4687
4661
|
return null;
|
|
4688
4662
|
}
|
|
4689
|
-
return
|
|
4663
|
+
return de_StreamingConfiguration(entry, context);
|
|
4690
4664
|
});
|
|
4691
4665
|
return retVal;
|
|
4692
4666
|
};
|
|
4693
|
-
const
|
|
4667
|
+
const de_SubChannelSummary = (output, context) => {
|
|
4694
4668
|
return {
|
|
4695
4669
|
MembershipCount: (0, smithy_client_1.expectInt32)(output.MembershipCount),
|
|
4696
4670
|
SubChannelId: (0, smithy_client_1.expectString)(output.SubChannelId),
|
|
4697
4671
|
};
|
|
4698
4672
|
};
|
|
4699
|
-
const
|
|
4673
|
+
const de_SubChannelSummaryList = (output, context) => {
|
|
4700
4674
|
const retVal = (output || [])
|
|
4701
4675
|
.filter((e) => e != null)
|
|
4702
4676
|
.map((entry) => {
|
|
4703
4677
|
if (entry === null) {
|
|
4704
4678
|
return null;
|
|
4705
4679
|
}
|
|
4706
|
-
return
|
|
4680
|
+
return de_SubChannelSummary(entry, context);
|
|
4707
4681
|
});
|
|
4708
4682
|
return retVal;
|
|
4709
4683
|
};
|
|
4710
|
-
const
|
|
4684
|
+
const de_Tag = (output, context) => {
|
|
4711
4685
|
return {
|
|
4712
4686
|
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
4713
4687
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
4714
4688
|
};
|
|
4715
4689
|
};
|
|
4716
|
-
const
|
|
4690
|
+
const de_TagList = (output, context) => {
|
|
4717
4691
|
const retVal = (output || [])
|
|
4718
4692
|
.filter((e) => e != null)
|
|
4719
4693
|
.map((entry) => {
|
|
4720
4694
|
if (entry === null) {
|
|
4721
4695
|
return null;
|
|
4722
4696
|
}
|
|
4723
|
-
return
|
|
4697
|
+
return de_Tag(entry, context);
|
|
4724
4698
|
});
|
|
4725
4699
|
return retVal;
|
|
4726
4700
|
};
|