@aws-sdk/client-ivs 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/BatchGetChannelCommand.js +2 -2
- package/dist-cjs/commands/BatchGetStreamKeyCommand.js +2 -2
- package/dist-cjs/commands/CreateChannelCommand.js +2 -2
- package/dist-cjs/commands/CreateRecordingConfigurationCommand.js +2 -2
- package/dist-cjs/commands/CreateStreamKeyCommand.js +2 -2
- package/dist-cjs/commands/DeleteChannelCommand.js +2 -2
- package/dist-cjs/commands/DeletePlaybackKeyPairCommand.js +2 -2
- package/dist-cjs/commands/DeleteRecordingConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DeleteStreamKeyCommand.js +2 -2
- package/dist-cjs/commands/GetChannelCommand.js +2 -2
- package/dist-cjs/commands/GetPlaybackKeyPairCommand.js +2 -2
- package/dist-cjs/commands/GetRecordingConfigurationCommand.js +2 -2
- package/dist-cjs/commands/GetStreamCommand.js +2 -2
- package/dist-cjs/commands/GetStreamKeyCommand.js +2 -2
- package/dist-cjs/commands/GetStreamSessionCommand.js +2 -2
- package/dist-cjs/commands/ImportPlaybackKeyPairCommand.js +2 -2
- package/dist-cjs/commands/ListChannelsCommand.js +2 -2
- package/dist-cjs/commands/ListPlaybackKeyPairsCommand.js +2 -2
- package/dist-cjs/commands/ListRecordingConfigurationsCommand.js +2 -2
- package/dist-cjs/commands/ListStreamKeysCommand.js +2 -2
- package/dist-cjs/commands/ListStreamSessionsCommand.js +2 -2
- package/dist-cjs/commands/ListStreamsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/PutMetadataCommand.js +2 -2
- package/dist-cjs/commands/StopStreamCommand.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/protocols/Aws_restJson1.js +379 -383
- package/dist-es/commands/BatchGetChannelCommand.js +3 -3
- package/dist-es/commands/BatchGetStreamKeyCommand.js +3 -3
- package/dist-es/commands/CreateChannelCommand.js +3 -3
- package/dist-es/commands/CreateRecordingConfigurationCommand.js +3 -3
- package/dist-es/commands/CreateStreamKeyCommand.js +3 -3
- package/dist-es/commands/DeleteChannelCommand.js +3 -3
- package/dist-es/commands/DeletePlaybackKeyPairCommand.js +3 -3
- package/dist-es/commands/DeleteRecordingConfigurationCommand.js +3 -3
- package/dist-es/commands/DeleteStreamKeyCommand.js +3 -3
- package/dist-es/commands/GetChannelCommand.js +3 -3
- package/dist-es/commands/GetPlaybackKeyPairCommand.js +3 -3
- package/dist-es/commands/GetRecordingConfigurationCommand.js +3 -3
- package/dist-es/commands/GetStreamCommand.js +3 -3
- package/dist-es/commands/GetStreamKeyCommand.js +3 -3
- package/dist-es/commands/GetStreamSessionCommand.js +3 -3
- package/dist-es/commands/ImportPlaybackKeyPairCommand.js +3 -3
- package/dist-es/commands/ListChannelsCommand.js +3 -3
- package/dist-es/commands/ListPlaybackKeyPairsCommand.js +3 -3
- package/dist-es/commands/ListRecordingConfigurationsCommand.js +3 -3
- package/dist-es/commands/ListStreamKeysCommand.js +3 -3
- package/dist-es/commands/ListStreamSessionsCommand.js +3 -3
- package/dist-es/commands/ListStreamsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/PutMetadataCommand.js +3 -3
- package/dist-es/commands/StopStreamCommand.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/protocols/Aws_restJson1.js +321 -325
- package/dist-types/protocols/Aws_restJson1.d.ts +224 -56
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +56 -56
- package/package.json +29 -29
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.de_ListStreamSessionsCommand = exports.de_ListStreamsCommand = exports.de_ListStreamKeysCommand = exports.de_ListRecordingConfigurationsCommand = exports.de_ListPlaybackKeyPairsCommand = exports.de_ListChannelsCommand = exports.de_ImportPlaybackKeyPairCommand = exports.de_GetStreamSessionCommand = exports.de_GetStreamKeyCommand = exports.de_GetStreamCommand = exports.de_GetRecordingConfigurationCommand = exports.de_GetPlaybackKeyPairCommand = exports.de_GetChannelCommand = exports.de_DeleteStreamKeyCommand = exports.de_DeleteRecordingConfigurationCommand = exports.de_DeletePlaybackKeyPairCommand = exports.de_DeleteChannelCommand = exports.de_CreateStreamKeyCommand = exports.de_CreateRecordingConfigurationCommand = exports.de_CreateChannelCommand = exports.de_BatchGetStreamKeyCommand = exports.de_BatchGetChannelCommand = exports.se_UpdateChannelCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopStreamCommand = exports.se_PutMetadataCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStreamSessionsCommand = exports.se_ListStreamsCommand = exports.se_ListStreamKeysCommand = exports.se_ListRecordingConfigurationsCommand = exports.se_ListPlaybackKeyPairsCommand = exports.se_ListChannelsCommand = exports.se_ImportPlaybackKeyPairCommand = exports.se_GetStreamSessionCommand = exports.se_GetStreamKeyCommand = exports.se_GetStreamCommand = exports.se_GetRecordingConfigurationCommand = exports.se_GetPlaybackKeyPairCommand = exports.se_GetChannelCommand = exports.se_DeleteStreamKeyCommand = exports.se_DeleteRecordingConfigurationCommand = exports.se_DeletePlaybackKeyPairCommand = exports.se_DeleteChannelCommand = exports.se_CreateStreamKeyCommand = exports.se_CreateRecordingConfigurationCommand = exports.se_CreateChannelCommand = exports.se_BatchGetStreamKeyCommand = exports.se_BatchGetChannelCommand = void 0;
|
|
4
|
+
exports.de_UpdateChannelCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopStreamCommand = exports.de_PutMetadataCommand = exports.de_ListTagsForResourceCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const IvsServiceException_1 = require("../models/IvsServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const
|
|
9
|
+
const se_BatchGetChannelCommand = async (input, context) => {
|
|
10
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
@@ -14,7 +14,7 @@ const serializeAws_restJson1BatchGetChannelCommand = async (input, context) => {
|
|
|
14
14
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGetChannel";
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify({
|
|
17
|
-
...(input.arns != null && { arns:
|
|
17
|
+
...(input.arns != null && { arns: se_ChannelArnList(input.arns, context) }),
|
|
18
18
|
});
|
|
19
19
|
return new protocol_http_1.HttpRequest({
|
|
20
20
|
protocol,
|
|
@@ -26,8 +26,8 @@ const serializeAws_restJson1BatchGetChannelCommand = async (input, context) => {
|
|
|
26
26
|
body,
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
|
-
exports.
|
|
30
|
-
const
|
|
29
|
+
exports.se_BatchGetChannelCommand = se_BatchGetChannelCommand;
|
|
30
|
+
const se_BatchGetStreamKeyCommand = async (input, context) => {
|
|
31
31
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
32
32
|
const headers = {
|
|
33
33
|
"content-type": "application/json",
|
|
@@ -35,7 +35,7 @@ const serializeAws_restJson1BatchGetStreamKeyCommand = async (input, context) =>
|
|
|
35
35
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGetStreamKey";
|
|
36
36
|
let body;
|
|
37
37
|
body = JSON.stringify({
|
|
38
|
-
...(input.arns != null && { arns:
|
|
38
|
+
...(input.arns != null && { arns: se_StreamKeyArnList(input.arns, context) }),
|
|
39
39
|
});
|
|
40
40
|
return new protocol_http_1.HttpRequest({
|
|
41
41
|
protocol,
|
|
@@ -47,8 +47,8 @@ const serializeAws_restJson1BatchGetStreamKeyCommand = async (input, context) =>
|
|
|
47
47
|
body,
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
|
-
exports.
|
|
51
|
-
const
|
|
50
|
+
exports.se_BatchGetStreamKeyCommand = se_BatchGetStreamKeyCommand;
|
|
51
|
+
const se_CreateChannelCommand = async (input, context) => {
|
|
52
52
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
53
53
|
const headers = {
|
|
54
54
|
"content-type": "application/json",
|
|
@@ -61,7 +61,7 @@ const serializeAws_restJson1CreateChannelCommand = async (input, context) => {
|
|
|
61
61
|
...(input.latencyMode != null && { latencyMode: input.latencyMode }),
|
|
62
62
|
...(input.name != null && { name: input.name }),
|
|
63
63
|
...(input.recordingConfigurationArn != null && { recordingConfigurationArn: input.recordingConfigurationArn }),
|
|
64
|
-
...(input.tags != null && { tags:
|
|
64
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
65
65
|
...(input.type != null && { type: input.type }),
|
|
66
66
|
});
|
|
67
67
|
return new protocol_http_1.HttpRequest({
|
|
@@ -74,8 +74,8 @@ const serializeAws_restJson1CreateChannelCommand = async (input, context) => {
|
|
|
74
74
|
body,
|
|
75
75
|
});
|
|
76
76
|
};
|
|
77
|
-
exports.
|
|
78
|
-
const
|
|
77
|
+
exports.se_CreateChannelCommand = se_CreateChannelCommand;
|
|
78
|
+
const se_CreateRecordingConfigurationCommand = async (input, context) => {
|
|
79
79
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
80
80
|
const headers = {
|
|
81
81
|
"content-type": "application/json",
|
|
@@ -84,15 +84,15 @@ const serializeAws_restJson1CreateRecordingConfigurationCommand = async (input,
|
|
|
84
84
|
let body;
|
|
85
85
|
body = JSON.stringify({
|
|
86
86
|
...(input.destinationConfiguration != null && {
|
|
87
|
-
destinationConfiguration:
|
|
87
|
+
destinationConfiguration: se_DestinationConfiguration(input.destinationConfiguration, context),
|
|
88
88
|
}),
|
|
89
89
|
...(input.name != null && { name: input.name }),
|
|
90
90
|
...(input.recordingReconnectWindowSeconds != null && {
|
|
91
91
|
recordingReconnectWindowSeconds: input.recordingReconnectWindowSeconds,
|
|
92
92
|
}),
|
|
93
|
-
...(input.tags != null && { tags:
|
|
93
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
94
94
|
...(input.thumbnailConfiguration != null && {
|
|
95
|
-
thumbnailConfiguration:
|
|
95
|
+
thumbnailConfiguration: se_ThumbnailConfiguration(input.thumbnailConfiguration, context),
|
|
96
96
|
}),
|
|
97
97
|
});
|
|
98
98
|
return new protocol_http_1.HttpRequest({
|
|
@@ -105,8 +105,8 @@ const serializeAws_restJson1CreateRecordingConfigurationCommand = async (input,
|
|
|
105
105
|
body,
|
|
106
106
|
});
|
|
107
107
|
};
|
|
108
|
-
exports.
|
|
109
|
-
const
|
|
108
|
+
exports.se_CreateRecordingConfigurationCommand = se_CreateRecordingConfigurationCommand;
|
|
109
|
+
const se_CreateStreamKeyCommand = async (input, context) => {
|
|
110
110
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
111
111
|
const headers = {
|
|
112
112
|
"content-type": "application/json",
|
|
@@ -115,7 +115,7 @@ const serializeAws_restJson1CreateStreamKeyCommand = async (input, context) => {
|
|
|
115
115
|
let body;
|
|
116
116
|
body = JSON.stringify({
|
|
117
117
|
...(input.channelArn != null && { channelArn: input.channelArn }),
|
|
118
|
-
...(input.tags != null && { tags:
|
|
118
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
119
119
|
});
|
|
120
120
|
return new protocol_http_1.HttpRequest({
|
|
121
121
|
protocol,
|
|
@@ -127,8 +127,8 @@ const serializeAws_restJson1CreateStreamKeyCommand = async (input, context) => {
|
|
|
127
127
|
body,
|
|
128
128
|
});
|
|
129
129
|
};
|
|
130
|
-
exports.
|
|
131
|
-
const
|
|
130
|
+
exports.se_CreateStreamKeyCommand = se_CreateStreamKeyCommand;
|
|
131
|
+
const se_DeleteChannelCommand = async (input, context) => {
|
|
132
132
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
133
133
|
const headers = {
|
|
134
134
|
"content-type": "application/json",
|
|
@@ -148,8 +148,8 @@ const serializeAws_restJson1DeleteChannelCommand = async (input, context) => {
|
|
|
148
148
|
body,
|
|
149
149
|
});
|
|
150
150
|
};
|
|
151
|
-
exports.
|
|
152
|
-
const
|
|
151
|
+
exports.se_DeleteChannelCommand = se_DeleteChannelCommand;
|
|
152
|
+
const se_DeletePlaybackKeyPairCommand = async (input, context) => {
|
|
153
153
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
154
154
|
const headers = {
|
|
155
155
|
"content-type": "application/json",
|
|
@@ -169,8 +169,8 @@ const serializeAws_restJson1DeletePlaybackKeyPairCommand = async (input, context
|
|
|
169
169
|
body,
|
|
170
170
|
});
|
|
171
171
|
};
|
|
172
|
-
exports.
|
|
173
|
-
const
|
|
172
|
+
exports.se_DeletePlaybackKeyPairCommand = se_DeletePlaybackKeyPairCommand;
|
|
173
|
+
const se_DeleteRecordingConfigurationCommand = async (input, context) => {
|
|
174
174
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
175
175
|
const headers = {
|
|
176
176
|
"content-type": "application/json",
|
|
@@ -190,8 +190,8 @@ const serializeAws_restJson1DeleteRecordingConfigurationCommand = async (input,
|
|
|
190
190
|
body,
|
|
191
191
|
});
|
|
192
192
|
};
|
|
193
|
-
exports.
|
|
194
|
-
const
|
|
193
|
+
exports.se_DeleteRecordingConfigurationCommand = se_DeleteRecordingConfigurationCommand;
|
|
194
|
+
const se_DeleteStreamKeyCommand = async (input, context) => {
|
|
195
195
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
196
196
|
const headers = {
|
|
197
197
|
"content-type": "application/json",
|
|
@@ -211,8 +211,8 @@ const serializeAws_restJson1DeleteStreamKeyCommand = async (input, context) => {
|
|
|
211
211
|
body,
|
|
212
212
|
});
|
|
213
213
|
};
|
|
214
|
-
exports.
|
|
215
|
-
const
|
|
214
|
+
exports.se_DeleteStreamKeyCommand = se_DeleteStreamKeyCommand;
|
|
215
|
+
const se_GetChannelCommand = async (input, context) => {
|
|
216
216
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
217
217
|
const headers = {
|
|
218
218
|
"content-type": "application/json",
|
|
@@ -232,8 +232,8 @@ const serializeAws_restJson1GetChannelCommand = async (input, context) => {
|
|
|
232
232
|
body,
|
|
233
233
|
});
|
|
234
234
|
};
|
|
235
|
-
exports.
|
|
236
|
-
const
|
|
235
|
+
exports.se_GetChannelCommand = se_GetChannelCommand;
|
|
236
|
+
const se_GetPlaybackKeyPairCommand = async (input, context) => {
|
|
237
237
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
238
238
|
const headers = {
|
|
239
239
|
"content-type": "application/json",
|
|
@@ -253,8 +253,8 @@ const serializeAws_restJson1GetPlaybackKeyPairCommand = async (input, context) =
|
|
|
253
253
|
body,
|
|
254
254
|
});
|
|
255
255
|
};
|
|
256
|
-
exports.
|
|
257
|
-
const
|
|
256
|
+
exports.se_GetPlaybackKeyPairCommand = se_GetPlaybackKeyPairCommand;
|
|
257
|
+
const se_GetRecordingConfigurationCommand = async (input, context) => {
|
|
258
258
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
259
259
|
const headers = {
|
|
260
260
|
"content-type": "application/json",
|
|
@@ -274,8 +274,8 @@ const serializeAws_restJson1GetRecordingConfigurationCommand = async (input, con
|
|
|
274
274
|
body,
|
|
275
275
|
});
|
|
276
276
|
};
|
|
277
|
-
exports.
|
|
278
|
-
const
|
|
277
|
+
exports.se_GetRecordingConfigurationCommand = se_GetRecordingConfigurationCommand;
|
|
278
|
+
const se_GetStreamCommand = async (input, context) => {
|
|
279
279
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
280
280
|
const headers = {
|
|
281
281
|
"content-type": "application/json",
|
|
@@ -295,8 +295,8 @@ const serializeAws_restJson1GetStreamCommand = async (input, context) => {
|
|
|
295
295
|
body,
|
|
296
296
|
});
|
|
297
297
|
};
|
|
298
|
-
exports.
|
|
299
|
-
const
|
|
298
|
+
exports.se_GetStreamCommand = se_GetStreamCommand;
|
|
299
|
+
const se_GetStreamKeyCommand = async (input, context) => {
|
|
300
300
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
301
301
|
const headers = {
|
|
302
302
|
"content-type": "application/json",
|
|
@@ -316,8 +316,8 @@ const serializeAws_restJson1GetStreamKeyCommand = async (input, context) => {
|
|
|
316
316
|
body,
|
|
317
317
|
});
|
|
318
318
|
};
|
|
319
|
-
exports.
|
|
320
|
-
const
|
|
319
|
+
exports.se_GetStreamKeyCommand = se_GetStreamKeyCommand;
|
|
320
|
+
const se_GetStreamSessionCommand = async (input, context) => {
|
|
321
321
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
322
322
|
const headers = {
|
|
323
323
|
"content-type": "application/json",
|
|
@@ -338,8 +338,8 @@ const serializeAws_restJson1GetStreamSessionCommand = async (input, context) =>
|
|
|
338
338
|
body,
|
|
339
339
|
});
|
|
340
340
|
};
|
|
341
|
-
exports.
|
|
342
|
-
const
|
|
341
|
+
exports.se_GetStreamSessionCommand = se_GetStreamSessionCommand;
|
|
342
|
+
const se_ImportPlaybackKeyPairCommand = async (input, context) => {
|
|
343
343
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
344
344
|
const headers = {
|
|
345
345
|
"content-type": "application/json",
|
|
@@ -349,7 +349,7 @@ const serializeAws_restJson1ImportPlaybackKeyPairCommand = async (input, context
|
|
|
349
349
|
body = JSON.stringify({
|
|
350
350
|
...(input.name != null && { name: input.name }),
|
|
351
351
|
...(input.publicKeyMaterial != null && { publicKeyMaterial: input.publicKeyMaterial }),
|
|
352
|
-
...(input.tags != null && { tags:
|
|
352
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
353
353
|
});
|
|
354
354
|
return new protocol_http_1.HttpRequest({
|
|
355
355
|
protocol,
|
|
@@ -361,8 +361,8 @@ const serializeAws_restJson1ImportPlaybackKeyPairCommand = async (input, context
|
|
|
361
361
|
body,
|
|
362
362
|
});
|
|
363
363
|
};
|
|
364
|
-
exports.
|
|
365
|
-
const
|
|
364
|
+
exports.se_ImportPlaybackKeyPairCommand = se_ImportPlaybackKeyPairCommand;
|
|
365
|
+
const se_ListChannelsCommand = async (input, context) => {
|
|
366
366
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
367
367
|
const headers = {
|
|
368
368
|
"content-type": "application/json",
|
|
@@ -387,8 +387,8 @@ const serializeAws_restJson1ListChannelsCommand = async (input, context) => {
|
|
|
387
387
|
body,
|
|
388
388
|
});
|
|
389
389
|
};
|
|
390
|
-
exports.
|
|
391
|
-
const
|
|
390
|
+
exports.se_ListChannelsCommand = se_ListChannelsCommand;
|
|
391
|
+
const se_ListPlaybackKeyPairsCommand = async (input, context) => {
|
|
392
392
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
393
393
|
const headers = {
|
|
394
394
|
"content-type": "application/json",
|
|
@@ -409,8 +409,8 @@ const serializeAws_restJson1ListPlaybackKeyPairsCommand = async (input, context)
|
|
|
409
409
|
body,
|
|
410
410
|
});
|
|
411
411
|
};
|
|
412
|
-
exports.
|
|
413
|
-
const
|
|
412
|
+
exports.se_ListPlaybackKeyPairsCommand = se_ListPlaybackKeyPairsCommand;
|
|
413
|
+
const se_ListRecordingConfigurationsCommand = async (input, context) => {
|
|
414
414
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
415
415
|
const headers = {
|
|
416
416
|
"content-type": "application/json",
|
|
@@ -431,8 +431,8 @@ const serializeAws_restJson1ListRecordingConfigurationsCommand = async (input, c
|
|
|
431
431
|
body,
|
|
432
432
|
});
|
|
433
433
|
};
|
|
434
|
-
exports.
|
|
435
|
-
const
|
|
434
|
+
exports.se_ListRecordingConfigurationsCommand = se_ListRecordingConfigurationsCommand;
|
|
435
|
+
const se_ListStreamKeysCommand = async (input, context) => {
|
|
436
436
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
437
437
|
const headers = {
|
|
438
438
|
"content-type": "application/json",
|
|
@@ -454,8 +454,8 @@ const serializeAws_restJson1ListStreamKeysCommand = async (input, context) => {
|
|
|
454
454
|
body,
|
|
455
455
|
});
|
|
456
456
|
};
|
|
457
|
-
exports.
|
|
458
|
-
const
|
|
457
|
+
exports.se_ListStreamKeysCommand = se_ListStreamKeysCommand;
|
|
458
|
+
const se_ListStreamsCommand = async (input, context) => {
|
|
459
459
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
460
460
|
const headers = {
|
|
461
461
|
"content-type": "application/json",
|
|
@@ -463,7 +463,7 @@ const serializeAws_restJson1ListStreamsCommand = async (input, context) => {
|
|
|
463
463
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListStreams";
|
|
464
464
|
let body;
|
|
465
465
|
body = JSON.stringify({
|
|
466
|
-
...(input.filterBy != null && { filterBy:
|
|
466
|
+
...(input.filterBy != null && { filterBy: se_StreamFilters(input.filterBy, context) }),
|
|
467
467
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
468
468
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
469
469
|
});
|
|
@@ -477,8 +477,8 @@ const serializeAws_restJson1ListStreamsCommand = async (input, context) => {
|
|
|
477
477
|
body,
|
|
478
478
|
});
|
|
479
479
|
};
|
|
480
|
-
exports.
|
|
481
|
-
const
|
|
480
|
+
exports.se_ListStreamsCommand = se_ListStreamsCommand;
|
|
481
|
+
const se_ListStreamSessionsCommand = async (input, context) => {
|
|
482
482
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
483
483
|
const headers = {
|
|
484
484
|
"content-type": "application/json",
|
|
@@ -500,8 +500,8 @@ const serializeAws_restJson1ListStreamSessionsCommand = async (input, context) =
|
|
|
500
500
|
body,
|
|
501
501
|
});
|
|
502
502
|
};
|
|
503
|
-
exports.
|
|
504
|
-
const
|
|
503
|
+
exports.se_ListStreamSessionsCommand = se_ListStreamSessionsCommand;
|
|
504
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
505
505
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
506
506
|
const headers = {};
|
|
507
507
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -517,8 +517,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
517
517
|
body,
|
|
518
518
|
});
|
|
519
519
|
};
|
|
520
|
-
exports.
|
|
521
|
-
const
|
|
520
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
521
|
+
const se_PutMetadataCommand = async (input, context) => {
|
|
522
522
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
523
523
|
const headers = {
|
|
524
524
|
"content-type": "application/json",
|
|
@@ -539,8 +539,8 @@ const serializeAws_restJson1PutMetadataCommand = async (input, context) => {
|
|
|
539
539
|
body,
|
|
540
540
|
});
|
|
541
541
|
};
|
|
542
|
-
exports.
|
|
543
|
-
const
|
|
542
|
+
exports.se_PutMetadataCommand = se_PutMetadataCommand;
|
|
543
|
+
const se_StopStreamCommand = async (input, context) => {
|
|
544
544
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
545
545
|
const headers = {
|
|
546
546
|
"content-type": "application/json",
|
|
@@ -560,8 +560,8 @@ const serializeAws_restJson1StopStreamCommand = async (input, context) => {
|
|
|
560
560
|
body,
|
|
561
561
|
});
|
|
562
562
|
};
|
|
563
|
-
exports.
|
|
564
|
-
const
|
|
563
|
+
exports.se_StopStreamCommand = se_StopStreamCommand;
|
|
564
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
565
565
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
566
566
|
const headers = {
|
|
567
567
|
"content-type": "application/json",
|
|
@@ -570,7 +570,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
570
570
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
571
571
|
let body;
|
|
572
572
|
body = JSON.stringify({
|
|
573
|
-
...(input.tags != null && { tags:
|
|
573
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
574
574
|
});
|
|
575
575
|
return new protocol_http_1.HttpRequest({
|
|
576
576
|
protocol,
|
|
@@ -582,8 +582,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
582
582
|
body,
|
|
583
583
|
});
|
|
584
584
|
};
|
|
585
|
-
exports.
|
|
586
|
-
const
|
|
585
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
586
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
587
587
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
588
588
|
const headers = {};
|
|
589
589
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -606,8 +606,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
606
606
|
body,
|
|
607
607
|
});
|
|
608
608
|
};
|
|
609
|
-
exports.
|
|
610
|
-
const
|
|
609
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
610
|
+
const se_UpdateChannelCommand = async (input, context) => {
|
|
611
611
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
612
612
|
const headers = {
|
|
613
613
|
"content-type": "application/json",
|
|
@@ -633,25 +633,25 @@ const serializeAws_restJson1UpdateChannelCommand = async (input, context) => {
|
|
|
633
633
|
body,
|
|
634
634
|
});
|
|
635
635
|
};
|
|
636
|
-
exports.
|
|
637
|
-
const
|
|
636
|
+
exports.se_UpdateChannelCommand = se_UpdateChannelCommand;
|
|
637
|
+
const de_BatchGetChannelCommand = async (output, context) => {
|
|
638
638
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
639
|
-
return
|
|
639
|
+
return de_BatchGetChannelCommandError(output, context);
|
|
640
640
|
}
|
|
641
641
|
const contents = map({
|
|
642
642
|
$metadata: deserializeMetadata(output),
|
|
643
643
|
});
|
|
644
644
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
645
645
|
if (data.channels != null) {
|
|
646
|
-
contents.channels =
|
|
646
|
+
contents.channels = de_Channels(data.channels, context);
|
|
647
647
|
}
|
|
648
648
|
if (data.errors != null) {
|
|
649
|
-
contents.errors =
|
|
649
|
+
contents.errors = de_BatchErrors(data.errors, context);
|
|
650
650
|
}
|
|
651
651
|
return contents;
|
|
652
652
|
};
|
|
653
|
-
exports.
|
|
654
|
-
const
|
|
653
|
+
exports.de_BatchGetChannelCommand = de_BatchGetChannelCommand;
|
|
654
|
+
const de_BatchGetChannelCommandError = async (output, context) => {
|
|
655
655
|
const parsedOutput = {
|
|
656
656
|
...output,
|
|
657
657
|
body: await parseErrorBody(output.body, context),
|
|
@@ -665,24 +665,24 @@ const deserializeAws_restJson1BatchGetChannelCommandError = async (output, conte
|
|
|
665
665
|
errorCode,
|
|
666
666
|
});
|
|
667
667
|
};
|
|
668
|
-
const
|
|
668
|
+
const de_BatchGetStreamKeyCommand = async (output, context) => {
|
|
669
669
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
670
|
-
return
|
|
670
|
+
return de_BatchGetStreamKeyCommandError(output, context);
|
|
671
671
|
}
|
|
672
672
|
const contents = map({
|
|
673
673
|
$metadata: deserializeMetadata(output),
|
|
674
674
|
});
|
|
675
675
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
676
676
|
if (data.errors != null) {
|
|
677
|
-
contents.errors =
|
|
677
|
+
contents.errors = de_BatchErrors(data.errors, context);
|
|
678
678
|
}
|
|
679
679
|
if (data.streamKeys != null) {
|
|
680
|
-
contents.streamKeys =
|
|
680
|
+
contents.streamKeys = de_StreamKeys(data.streamKeys, context);
|
|
681
681
|
}
|
|
682
682
|
return contents;
|
|
683
683
|
};
|
|
684
|
-
exports.
|
|
685
|
-
const
|
|
684
|
+
exports.de_BatchGetStreamKeyCommand = de_BatchGetStreamKeyCommand;
|
|
685
|
+
const de_BatchGetStreamKeyCommandError = async (output, context) => {
|
|
686
686
|
const parsedOutput = {
|
|
687
687
|
...output,
|
|
688
688
|
body: await parseErrorBody(output.body, context),
|
|
@@ -696,24 +696,24 @@ const deserializeAws_restJson1BatchGetStreamKeyCommandError = async (output, con
|
|
|
696
696
|
errorCode,
|
|
697
697
|
});
|
|
698
698
|
};
|
|
699
|
-
const
|
|
699
|
+
const de_CreateChannelCommand = async (output, context) => {
|
|
700
700
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
701
|
-
return
|
|
701
|
+
return de_CreateChannelCommandError(output, context);
|
|
702
702
|
}
|
|
703
703
|
const contents = map({
|
|
704
704
|
$metadata: deserializeMetadata(output),
|
|
705
705
|
});
|
|
706
706
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
707
707
|
if (data.channel != null) {
|
|
708
|
-
contents.channel =
|
|
708
|
+
contents.channel = de_Channel(data.channel, context);
|
|
709
709
|
}
|
|
710
710
|
if (data.streamKey != null) {
|
|
711
|
-
contents.streamKey =
|
|
711
|
+
contents.streamKey = de_StreamKey(data.streamKey, context);
|
|
712
712
|
}
|
|
713
713
|
return contents;
|
|
714
714
|
};
|
|
715
|
-
exports.
|
|
716
|
-
const
|
|
715
|
+
exports.de_CreateChannelCommand = de_CreateChannelCommand;
|
|
716
|
+
const de_CreateChannelCommandError = async (output, context) => {
|
|
717
717
|
const parsedOutput = {
|
|
718
718
|
...output,
|
|
719
719
|
body: await parseErrorBody(output.body, context),
|
|
@@ -722,19 +722,19 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
|
|
|
722
722
|
switch (errorCode) {
|
|
723
723
|
case "AccessDeniedException":
|
|
724
724
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
725
|
-
throw await
|
|
725
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
726
726
|
case "PendingVerification":
|
|
727
727
|
case "com.amazonaws.ivs#PendingVerification":
|
|
728
|
-
throw await
|
|
728
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
729
729
|
case "ResourceNotFoundException":
|
|
730
730
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
731
|
-
throw await
|
|
731
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
732
732
|
case "ServiceQuotaExceededException":
|
|
733
733
|
case "com.amazonaws.ivs#ServiceQuotaExceededException":
|
|
734
|
-
throw await
|
|
734
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
735
735
|
case "ValidationException":
|
|
736
736
|
case "com.amazonaws.ivs#ValidationException":
|
|
737
|
-
throw await
|
|
737
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
738
738
|
default:
|
|
739
739
|
const parsedBody = parsedOutput.body;
|
|
740
740
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -745,21 +745,21 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
|
|
|
745
745
|
});
|
|
746
746
|
}
|
|
747
747
|
};
|
|
748
|
-
const
|
|
748
|
+
const de_CreateRecordingConfigurationCommand = async (output, context) => {
|
|
749
749
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
750
|
-
return
|
|
750
|
+
return de_CreateRecordingConfigurationCommandError(output, context);
|
|
751
751
|
}
|
|
752
752
|
const contents = map({
|
|
753
753
|
$metadata: deserializeMetadata(output),
|
|
754
754
|
});
|
|
755
755
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
756
756
|
if (data.recordingConfiguration != null) {
|
|
757
|
-
contents.recordingConfiguration =
|
|
757
|
+
contents.recordingConfiguration = de_RecordingConfiguration(data.recordingConfiguration, context);
|
|
758
758
|
}
|
|
759
759
|
return contents;
|
|
760
760
|
};
|
|
761
|
-
exports.
|
|
762
|
-
const
|
|
761
|
+
exports.de_CreateRecordingConfigurationCommand = de_CreateRecordingConfigurationCommand;
|
|
762
|
+
const de_CreateRecordingConfigurationCommandError = async (output, context) => {
|
|
763
763
|
const parsedOutput = {
|
|
764
764
|
...output,
|
|
765
765
|
body: await parseErrorBody(output.body, context),
|
|
@@ -768,22 +768,22 @@ const deserializeAws_restJson1CreateRecordingConfigurationCommandError = async (
|
|
|
768
768
|
switch (errorCode) {
|
|
769
769
|
case "AccessDeniedException":
|
|
770
770
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
771
|
-
throw await
|
|
771
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
772
772
|
case "ConflictException":
|
|
773
773
|
case "com.amazonaws.ivs#ConflictException":
|
|
774
|
-
throw await
|
|
774
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
775
775
|
case "InternalServerException":
|
|
776
776
|
case "com.amazonaws.ivs#InternalServerException":
|
|
777
|
-
throw await
|
|
777
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
778
778
|
case "PendingVerification":
|
|
779
779
|
case "com.amazonaws.ivs#PendingVerification":
|
|
780
|
-
throw await
|
|
780
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
781
781
|
case "ServiceQuotaExceededException":
|
|
782
782
|
case "com.amazonaws.ivs#ServiceQuotaExceededException":
|
|
783
|
-
throw await
|
|
783
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
784
784
|
case "ValidationException":
|
|
785
785
|
case "com.amazonaws.ivs#ValidationException":
|
|
786
|
-
throw await
|
|
786
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
787
787
|
default:
|
|
788
788
|
const parsedBody = parsedOutput.body;
|
|
789
789
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -794,21 +794,21 @@ const deserializeAws_restJson1CreateRecordingConfigurationCommandError = async (
|
|
|
794
794
|
});
|
|
795
795
|
}
|
|
796
796
|
};
|
|
797
|
-
const
|
|
797
|
+
const de_CreateStreamKeyCommand = async (output, context) => {
|
|
798
798
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
799
|
-
return
|
|
799
|
+
return de_CreateStreamKeyCommandError(output, context);
|
|
800
800
|
}
|
|
801
801
|
const contents = map({
|
|
802
802
|
$metadata: deserializeMetadata(output),
|
|
803
803
|
});
|
|
804
804
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
805
805
|
if (data.streamKey != null) {
|
|
806
|
-
contents.streamKey =
|
|
806
|
+
contents.streamKey = de_StreamKey(data.streamKey, context);
|
|
807
807
|
}
|
|
808
808
|
return contents;
|
|
809
809
|
};
|
|
810
|
-
exports.
|
|
811
|
-
const
|
|
810
|
+
exports.de_CreateStreamKeyCommand = de_CreateStreamKeyCommand;
|
|
811
|
+
const de_CreateStreamKeyCommandError = async (output, context) => {
|
|
812
812
|
const parsedOutput = {
|
|
813
813
|
...output,
|
|
814
814
|
body: await parseErrorBody(output.body, context),
|
|
@@ -817,19 +817,19 @@ const deserializeAws_restJson1CreateStreamKeyCommandError = async (output, conte
|
|
|
817
817
|
switch (errorCode) {
|
|
818
818
|
case "AccessDeniedException":
|
|
819
819
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
820
|
-
throw await
|
|
820
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
821
821
|
case "PendingVerification":
|
|
822
822
|
case "com.amazonaws.ivs#PendingVerification":
|
|
823
|
-
throw await
|
|
823
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
824
824
|
case "ResourceNotFoundException":
|
|
825
825
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
826
|
-
throw await
|
|
826
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
827
827
|
case "ServiceQuotaExceededException":
|
|
828
828
|
case "com.amazonaws.ivs#ServiceQuotaExceededException":
|
|
829
|
-
throw await
|
|
829
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
830
830
|
case "ValidationException":
|
|
831
831
|
case "com.amazonaws.ivs#ValidationException":
|
|
832
|
-
throw await
|
|
832
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
833
833
|
default:
|
|
834
834
|
const parsedBody = parsedOutput.body;
|
|
835
835
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -840,9 +840,9 @@ const deserializeAws_restJson1CreateStreamKeyCommandError = async (output, conte
|
|
|
840
840
|
});
|
|
841
841
|
}
|
|
842
842
|
};
|
|
843
|
-
const
|
|
843
|
+
const de_DeleteChannelCommand = async (output, context) => {
|
|
844
844
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
845
|
-
return
|
|
845
|
+
return de_DeleteChannelCommandError(output, context);
|
|
846
846
|
}
|
|
847
847
|
const contents = map({
|
|
848
848
|
$metadata: deserializeMetadata(output),
|
|
@@ -850,8 +850,8 @@ const deserializeAws_restJson1DeleteChannelCommand = async (output, context) =>
|
|
|
850
850
|
await collectBody(output.body, context);
|
|
851
851
|
return contents;
|
|
852
852
|
};
|
|
853
|
-
exports.
|
|
854
|
-
const
|
|
853
|
+
exports.de_DeleteChannelCommand = de_DeleteChannelCommand;
|
|
854
|
+
const de_DeleteChannelCommandError = async (output, context) => {
|
|
855
855
|
const parsedOutput = {
|
|
856
856
|
...output,
|
|
857
857
|
body: await parseErrorBody(output.body, context),
|
|
@@ -860,19 +860,19 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (output, context
|
|
|
860
860
|
switch (errorCode) {
|
|
861
861
|
case "AccessDeniedException":
|
|
862
862
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
863
|
-
throw await
|
|
863
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
864
864
|
case "ConflictException":
|
|
865
865
|
case "com.amazonaws.ivs#ConflictException":
|
|
866
|
-
throw await
|
|
866
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
867
867
|
case "PendingVerification":
|
|
868
868
|
case "com.amazonaws.ivs#PendingVerification":
|
|
869
|
-
throw await
|
|
869
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
870
870
|
case "ResourceNotFoundException":
|
|
871
871
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
872
|
-
throw await
|
|
872
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
873
873
|
case "ValidationException":
|
|
874
874
|
case "com.amazonaws.ivs#ValidationException":
|
|
875
|
-
throw await
|
|
875
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
876
876
|
default:
|
|
877
877
|
const parsedBody = parsedOutput.body;
|
|
878
878
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -883,9 +883,9 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (output, context
|
|
|
883
883
|
});
|
|
884
884
|
}
|
|
885
885
|
};
|
|
886
|
-
const
|
|
886
|
+
const de_DeletePlaybackKeyPairCommand = async (output, context) => {
|
|
887
887
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
888
|
-
return
|
|
888
|
+
return de_DeletePlaybackKeyPairCommandError(output, context);
|
|
889
889
|
}
|
|
890
890
|
const contents = map({
|
|
891
891
|
$metadata: deserializeMetadata(output),
|
|
@@ -893,8 +893,8 @@ const deserializeAws_restJson1DeletePlaybackKeyPairCommand = async (output, cont
|
|
|
893
893
|
await collectBody(output.body, context);
|
|
894
894
|
return contents;
|
|
895
895
|
};
|
|
896
|
-
exports.
|
|
897
|
-
const
|
|
896
|
+
exports.de_DeletePlaybackKeyPairCommand = de_DeletePlaybackKeyPairCommand;
|
|
897
|
+
const de_DeletePlaybackKeyPairCommandError = async (output, context) => {
|
|
898
898
|
const parsedOutput = {
|
|
899
899
|
...output,
|
|
900
900
|
body: await parseErrorBody(output.body, context),
|
|
@@ -903,16 +903,16 @@ const deserializeAws_restJson1DeletePlaybackKeyPairCommandError = async (output,
|
|
|
903
903
|
switch (errorCode) {
|
|
904
904
|
case "AccessDeniedException":
|
|
905
905
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
906
|
-
throw await
|
|
906
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
907
907
|
case "PendingVerification":
|
|
908
908
|
case "com.amazonaws.ivs#PendingVerification":
|
|
909
|
-
throw await
|
|
909
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
910
910
|
case "ResourceNotFoundException":
|
|
911
911
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
912
|
-
throw await
|
|
912
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
913
913
|
case "ValidationException":
|
|
914
914
|
case "com.amazonaws.ivs#ValidationException":
|
|
915
|
-
throw await
|
|
915
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
916
916
|
default:
|
|
917
917
|
const parsedBody = parsedOutput.body;
|
|
918
918
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -923,9 +923,9 @@ const deserializeAws_restJson1DeletePlaybackKeyPairCommandError = async (output,
|
|
|
923
923
|
});
|
|
924
924
|
}
|
|
925
925
|
};
|
|
926
|
-
const
|
|
926
|
+
const de_DeleteRecordingConfigurationCommand = async (output, context) => {
|
|
927
927
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
928
|
-
return
|
|
928
|
+
return de_DeleteRecordingConfigurationCommandError(output, context);
|
|
929
929
|
}
|
|
930
930
|
const contents = map({
|
|
931
931
|
$metadata: deserializeMetadata(output),
|
|
@@ -933,8 +933,8 @@ const deserializeAws_restJson1DeleteRecordingConfigurationCommand = async (outpu
|
|
|
933
933
|
await collectBody(output.body, context);
|
|
934
934
|
return contents;
|
|
935
935
|
};
|
|
936
|
-
exports.
|
|
937
|
-
const
|
|
936
|
+
exports.de_DeleteRecordingConfigurationCommand = de_DeleteRecordingConfigurationCommand;
|
|
937
|
+
const de_DeleteRecordingConfigurationCommandError = async (output, context) => {
|
|
938
938
|
const parsedOutput = {
|
|
939
939
|
...output,
|
|
940
940
|
body: await parseErrorBody(output.body, context),
|
|
@@ -943,19 +943,19 @@ const deserializeAws_restJson1DeleteRecordingConfigurationCommandError = async (
|
|
|
943
943
|
switch (errorCode) {
|
|
944
944
|
case "AccessDeniedException":
|
|
945
945
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
946
|
-
throw await
|
|
946
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
947
947
|
case "ConflictException":
|
|
948
948
|
case "com.amazonaws.ivs#ConflictException":
|
|
949
|
-
throw await
|
|
949
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
950
950
|
case "InternalServerException":
|
|
951
951
|
case "com.amazonaws.ivs#InternalServerException":
|
|
952
|
-
throw await
|
|
952
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
953
953
|
case "ResourceNotFoundException":
|
|
954
954
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
955
|
-
throw await
|
|
955
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
956
956
|
case "ValidationException":
|
|
957
957
|
case "com.amazonaws.ivs#ValidationException":
|
|
958
|
-
throw await
|
|
958
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
959
959
|
default:
|
|
960
960
|
const parsedBody = parsedOutput.body;
|
|
961
961
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -966,9 +966,9 @@ const deserializeAws_restJson1DeleteRecordingConfigurationCommandError = async (
|
|
|
966
966
|
});
|
|
967
967
|
}
|
|
968
968
|
};
|
|
969
|
-
const
|
|
969
|
+
const de_DeleteStreamKeyCommand = async (output, context) => {
|
|
970
970
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
971
|
-
return
|
|
971
|
+
return de_DeleteStreamKeyCommandError(output, context);
|
|
972
972
|
}
|
|
973
973
|
const contents = map({
|
|
974
974
|
$metadata: deserializeMetadata(output),
|
|
@@ -976,8 +976,8 @@ const deserializeAws_restJson1DeleteStreamKeyCommand = async (output, context) =
|
|
|
976
976
|
await collectBody(output.body, context);
|
|
977
977
|
return contents;
|
|
978
978
|
};
|
|
979
|
-
exports.
|
|
980
|
-
const
|
|
979
|
+
exports.de_DeleteStreamKeyCommand = de_DeleteStreamKeyCommand;
|
|
980
|
+
const de_DeleteStreamKeyCommandError = async (output, context) => {
|
|
981
981
|
const parsedOutput = {
|
|
982
982
|
...output,
|
|
983
983
|
body: await parseErrorBody(output.body, context),
|
|
@@ -986,16 +986,16 @@ const deserializeAws_restJson1DeleteStreamKeyCommandError = async (output, conte
|
|
|
986
986
|
switch (errorCode) {
|
|
987
987
|
case "AccessDeniedException":
|
|
988
988
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
989
|
-
throw await
|
|
989
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
990
990
|
case "PendingVerification":
|
|
991
991
|
case "com.amazonaws.ivs#PendingVerification":
|
|
992
|
-
throw await
|
|
992
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
993
993
|
case "ResourceNotFoundException":
|
|
994
994
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
995
|
-
throw await
|
|
995
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
996
996
|
case "ValidationException":
|
|
997
997
|
case "com.amazonaws.ivs#ValidationException":
|
|
998
|
-
throw await
|
|
998
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
999
999
|
default:
|
|
1000
1000
|
const parsedBody = parsedOutput.body;
|
|
1001
1001
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1006,21 +1006,21 @@ const deserializeAws_restJson1DeleteStreamKeyCommandError = async (output, conte
|
|
|
1006
1006
|
});
|
|
1007
1007
|
}
|
|
1008
1008
|
};
|
|
1009
|
-
const
|
|
1009
|
+
const de_GetChannelCommand = async (output, context) => {
|
|
1010
1010
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1011
|
-
return
|
|
1011
|
+
return de_GetChannelCommandError(output, context);
|
|
1012
1012
|
}
|
|
1013
1013
|
const contents = map({
|
|
1014
1014
|
$metadata: deserializeMetadata(output),
|
|
1015
1015
|
});
|
|
1016
1016
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1017
1017
|
if (data.channel != null) {
|
|
1018
|
-
contents.channel =
|
|
1018
|
+
contents.channel = de_Channel(data.channel, context);
|
|
1019
1019
|
}
|
|
1020
1020
|
return contents;
|
|
1021
1021
|
};
|
|
1022
|
-
exports.
|
|
1023
|
-
const
|
|
1022
|
+
exports.de_GetChannelCommand = de_GetChannelCommand;
|
|
1023
|
+
const de_GetChannelCommandError = async (output, context) => {
|
|
1024
1024
|
const parsedOutput = {
|
|
1025
1025
|
...output,
|
|
1026
1026
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1029,13 +1029,13 @@ const deserializeAws_restJson1GetChannelCommandError = async (output, context) =
|
|
|
1029
1029
|
switch (errorCode) {
|
|
1030
1030
|
case "AccessDeniedException":
|
|
1031
1031
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1032
|
-
throw await
|
|
1032
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1033
1033
|
case "ResourceNotFoundException":
|
|
1034
1034
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1035
|
-
throw await
|
|
1035
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1036
1036
|
case "ValidationException":
|
|
1037
1037
|
case "com.amazonaws.ivs#ValidationException":
|
|
1038
|
-
throw await
|
|
1038
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1039
1039
|
default:
|
|
1040
1040
|
const parsedBody = parsedOutput.body;
|
|
1041
1041
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1046,21 +1046,21 @@ const deserializeAws_restJson1GetChannelCommandError = async (output, context) =
|
|
|
1046
1046
|
});
|
|
1047
1047
|
}
|
|
1048
1048
|
};
|
|
1049
|
-
const
|
|
1049
|
+
const de_GetPlaybackKeyPairCommand = async (output, context) => {
|
|
1050
1050
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1051
|
-
return
|
|
1051
|
+
return de_GetPlaybackKeyPairCommandError(output, context);
|
|
1052
1052
|
}
|
|
1053
1053
|
const contents = map({
|
|
1054
1054
|
$metadata: deserializeMetadata(output),
|
|
1055
1055
|
});
|
|
1056
1056
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1057
1057
|
if (data.keyPair != null) {
|
|
1058
|
-
contents.keyPair =
|
|
1058
|
+
contents.keyPair = de_PlaybackKeyPair(data.keyPair, context);
|
|
1059
1059
|
}
|
|
1060
1060
|
return contents;
|
|
1061
1061
|
};
|
|
1062
|
-
exports.
|
|
1063
|
-
const
|
|
1062
|
+
exports.de_GetPlaybackKeyPairCommand = de_GetPlaybackKeyPairCommand;
|
|
1063
|
+
const de_GetPlaybackKeyPairCommandError = async (output, context) => {
|
|
1064
1064
|
const parsedOutput = {
|
|
1065
1065
|
...output,
|
|
1066
1066
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1069,13 +1069,13 @@ const deserializeAws_restJson1GetPlaybackKeyPairCommandError = async (output, co
|
|
|
1069
1069
|
switch (errorCode) {
|
|
1070
1070
|
case "AccessDeniedException":
|
|
1071
1071
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1072
|
-
throw await
|
|
1072
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1073
1073
|
case "ResourceNotFoundException":
|
|
1074
1074
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1075
|
-
throw await
|
|
1075
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1076
1076
|
case "ValidationException":
|
|
1077
1077
|
case "com.amazonaws.ivs#ValidationException":
|
|
1078
|
-
throw await
|
|
1078
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1079
1079
|
default:
|
|
1080
1080
|
const parsedBody = parsedOutput.body;
|
|
1081
1081
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1086,21 +1086,21 @@ const deserializeAws_restJson1GetPlaybackKeyPairCommandError = async (output, co
|
|
|
1086
1086
|
});
|
|
1087
1087
|
}
|
|
1088
1088
|
};
|
|
1089
|
-
const
|
|
1089
|
+
const de_GetRecordingConfigurationCommand = async (output, context) => {
|
|
1090
1090
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1091
|
-
return
|
|
1091
|
+
return de_GetRecordingConfigurationCommandError(output, context);
|
|
1092
1092
|
}
|
|
1093
1093
|
const contents = map({
|
|
1094
1094
|
$metadata: deserializeMetadata(output),
|
|
1095
1095
|
});
|
|
1096
1096
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1097
1097
|
if (data.recordingConfiguration != null) {
|
|
1098
|
-
contents.recordingConfiguration =
|
|
1098
|
+
contents.recordingConfiguration = de_RecordingConfiguration(data.recordingConfiguration, context);
|
|
1099
1099
|
}
|
|
1100
1100
|
return contents;
|
|
1101
1101
|
};
|
|
1102
|
-
exports.
|
|
1103
|
-
const
|
|
1102
|
+
exports.de_GetRecordingConfigurationCommand = de_GetRecordingConfigurationCommand;
|
|
1103
|
+
const de_GetRecordingConfigurationCommandError = async (output, context) => {
|
|
1104
1104
|
const parsedOutput = {
|
|
1105
1105
|
...output,
|
|
1106
1106
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1109,16 +1109,16 @@ const deserializeAws_restJson1GetRecordingConfigurationCommandError = async (out
|
|
|
1109
1109
|
switch (errorCode) {
|
|
1110
1110
|
case "AccessDeniedException":
|
|
1111
1111
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1112
|
-
throw await
|
|
1112
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1113
1113
|
case "InternalServerException":
|
|
1114
1114
|
case "com.amazonaws.ivs#InternalServerException":
|
|
1115
|
-
throw await
|
|
1115
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1116
1116
|
case "ResourceNotFoundException":
|
|
1117
1117
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1118
|
-
throw await
|
|
1118
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1119
1119
|
case "ValidationException":
|
|
1120
1120
|
case "com.amazonaws.ivs#ValidationException":
|
|
1121
|
-
throw await
|
|
1121
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1122
1122
|
default:
|
|
1123
1123
|
const parsedBody = parsedOutput.body;
|
|
1124
1124
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1129,21 +1129,21 @@ const deserializeAws_restJson1GetRecordingConfigurationCommandError = async (out
|
|
|
1129
1129
|
});
|
|
1130
1130
|
}
|
|
1131
1131
|
};
|
|
1132
|
-
const
|
|
1132
|
+
const de_GetStreamCommand = async (output, context) => {
|
|
1133
1133
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1134
|
-
return
|
|
1134
|
+
return de_GetStreamCommandError(output, context);
|
|
1135
1135
|
}
|
|
1136
1136
|
const contents = map({
|
|
1137
1137
|
$metadata: deserializeMetadata(output),
|
|
1138
1138
|
});
|
|
1139
1139
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1140
1140
|
if (data.stream != null) {
|
|
1141
|
-
contents.stream =
|
|
1141
|
+
contents.stream = de__Stream(data.stream, context);
|
|
1142
1142
|
}
|
|
1143
1143
|
return contents;
|
|
1144
1144
|
};
|
|
1145
|
-
exports.
|
|
1146
|
-
const
|
|
1145
|
+
exports.de_GetStreamCommand = de_GetStreamCommand;
|
|
1146
|
+
const de_GetStreamCommandError = async (output, context) => {
|
|
1147
1147
|
const parsedOutput = {
|
|
1148
1148
|
...output,
|
|
1149
1149
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1152,16 +1152,16 @@ const deserializeAws_restJson1GetStreamCommandError = async (output, context) =>
|
|
|
1152
1152
|
switch (errorCode) {
|
|
1153
1153
|
case "AccessDeniedException":
|
|
1154
1154
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1155
|
-
throw await
|
|
1155
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1156
1156
|
case "ChannelNotBroadcasting":
|
|
1157
1157
|
case "com.amazonaws.ivs#ChannelNotBroadcasting":
|
|
1158
|
-
throw await
|
|
1158
|
+
throw await de_ChannelNotBroadcastingRes(parsedOutput, context);
|
|
1159
1159
|
case "ResourceNotFoundException":
|
|
1160
1160
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1161
|
-
throw await
|
|
1161
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1162
1162
|
case "ValidationException":
|
|
1163
1163
|
case "com.amazonaws.ivs#ValidationException":
|
|
1164
|
-
throw await
|
|
1164
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1165
1165
|
default:
|
|
1166
1166
|
const parsedBody = parsedOutput.body;
|
|
1167
1167
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1172,21 +1172,21 @@ const deserializeAws_restJson1GetStreamCommandError = async (output, context) =>
|
|
|
1172
1172
|
});
|
|
1173
1173
|
}
|
|
1174
1174
|
};
|
|
1175
|
-
const
|
|
1175
|
+
const de_GetStreamKeyCommand = async (output, context) => {
|
|
1176
1176
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1177
|
-
return
|
|
1177
|
+
return de_GetStreamKeyCommandError(output, context);
|
|
1178
1178
|
}
|
|
1179
1179
|
const contents = map({
|
|
1180
1180
|
$metadata: deserializeMetadata(output),
|
|
1181
1181
|
});
|
|
1182
1182
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1183
1183
|
if (data.streamKey != null) {
|
|
1184
|
-
contents.streamKey =
|
|
1184
|
+
contents.streamKey = de_StreamKey(data.streamKey, context);
|
|
1185
1185
|
}
|
|
1186
1186
|
return contents;
|
|
1187
1187
|
};
|
|
1188
|
-
exports.
|
|
1189
|
-
const
|
|
1188
|
+
exports.de_GetStreamKeyCommand = de_GetStreamKeyCommand;
|
|
1189
|
+
const de_GetStreamKeyCommandError = async (output, context) => {
|
|
1190
1190
|
const parsedOutput = {
|
|
1191
1191
|
...output,
|
|
1192
1192
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1195,13 +1195,13 @@ const deserializeAws_restJson1GetStreamKeyCommandError = async (output, context)
|
|
|
1195
1195
|
switch (errorCode) {
|
|
1196
1196
|
case "AccessDeniedException":
|
|
1197
1197
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1198
|
-
throw await
|
|
1198
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1199
1199
|
case "ResourceNotFoundException":
|
|
1200
1200
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1201
|
-
throw await
|
|
1201
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1202
1202
|
case "ValidationException":
|
|
1203
1203
|
case "com.amazonaws.ivs#ValidationException":
|
|
1204
|
-
throw await
|
|
1204
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1205
1205
|
default:
|
|
1206
1206
|
const parsedBody = parsedOutput.body;
|
|
1207
1207
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1212,21 +1212,21 @@ const deserializeAws_restJson1GetStreamKeyCommandError = async (output, context)
|
|
|
1212
1212
|
});
|
|
1213
1213
|
}
|
|
1214
1214
|
};
|
|
1215
|
-
const
|
|
1215
|
+
const de_GetStreamSessionCommand = async (output, context) => {
|
|
1216
1216
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1217
|
-
return
|
|
1217
|
+
return de_GetStreamSessionCommandError(output, context);
|
|
1218
1218
|
}
|
|
1219
1219
|
const contents = map({
|
|
1220
1220
|
$metadata: deserializeMetadata(output),
|
|
1221
1221
|
});
|
|
1222
1222
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1223
1223
|
if (data.streamSession != null) {
|
|
1224
|
-
contents.streamSession =
|
|
1224
|
+
contents.streamSession = de_StreamSession(data.streamSession, context);
|
|
1225
1225
|
}
|
|
1226
1226
|
return contents;
|
|
1227
1227
|
};
|
|
1228
|
-
exports.
|
|
1229
|
-
const
|
|
1228
|
+
exports.de_GetStreamSessionCommand = de_GetStreamSessionCommand;
|
|
1229
|
+
const de_GetStreamSessionCommandError = async (output, context) => {
|
|
1230
1230
|
const parsedOutput = {
|
|
1231
1231
|
...output,
|
|
1232
1232
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1235,13 +1235,13 @@ const deserializeAws_restJson1GetStreamSessionCommandError = async (output, cont
|
|
|
1235
1235
|
switch (errorCode) {
|
|
1236
1236
|
case "AccessDeniedException":
|
|
1237
1237
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1238
|
-
throw await
|
|
1238
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1239
1239
|
case "ResourceNotFoundException":
|
|
1240
1240
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1241
|
-
throw await
|
|
1241
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1242
1242
|
case "ValidationException":
|
|
1243
1243
|
case "com.amazonaws.ivs#ValidationException":
|
|
1244
|
-
throw await
|
|
1244
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1245
1245
|
default:
|
|
1246
1246
|
const parsedBody = parsedOutput.body;
|
|
1247
1247
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1252,21 +1252,21 @@ const deserializeAws_restJson1GetStreamSessionCommandError = async (output, cont
|
|
|
1252
1252
|
});
|
|
1253
1253
|
}
|
|
1254
1254
|
};
|
|
1255
|
-
const
|
|
1255
|
+
const de_ImportPlaybackKeyPairCommand = async (output, context) => {
|
|
1256
1256
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1257
|
-
return
|
|
1257
|
+
return de_ImportPlaybackKeyPairCommandError(output, context);
|
|
1258
1258
|
}
|
|
1259
1259
|
const contents = map({
|
|
1260
1260
|
$metadata: deserializeMetadata(output),
|
|
1261
1261
|
});
|
|
1262
1262
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1263
1263
|
if (data.keyPair != null) {
|
|
1264
|
-
contents.keyPair =
|
|
1264
|
+
contents.keyPair = de_PlaybackKeyPair(data.keyPair, context);
|
|
1265
1265
|
}
|
|
1266
1266
|
return contents;
|
|
1267
1267
|
};
|
|
1268
|
-
exports.
|
|
1269
|
-
const
|
|
1268
|
+
exports.de_ImportPlaybackKeyPairCommand = de_ImportPlaybackKeyPairCommand;
|
|
1269
|
+
const de_ImportPlaybackKeyPairCommandError = async (output, context) => {
|
|
1270
1270
|
const parsedOutput = {
|
|
1271
1271
|
...output,
|
|
1272
1272
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1275,19 +1275,19 @@ const deserializeAws_restJson1ImportPlaybackKeyPairCommandError = async (output,
|
|
|
1275
1275
|
switch (errorCode) {
|
|
1276
1276
|
case "AccessDeniedException":
|
|
1277
1277
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1278
|
-
throw await
|
|
1278
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1279
1279
|
case "ConflictException":
|
|
1280
1280
|
case "com.amazonaws.ivs#ConflictException":
|
|
1281
|
-
throw await
|
|
1281
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1282
1282
|
case "PendingVerification":
|
|
1283
1283
|
case "com.amazonaws.ivs#PendingVerification":
|
|
1284
|
-
throw await
|
|
1284
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
1285
1285
|
case "ServiceQuotaExceededException":
|
|
1286
1286
|
case "com.amazonaws.ivs#ServiceQuotaExceededException":
|
|
1287
|
-
throw await
|
|
1287
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1288
1288
|
case "ValidationException":
|
|
1289
1289
|
case "com.amazonaws.ivs#ValidationException":
|
|
1290
|
-
throw await
|
|
1290
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1291
1291
|
default:
|
|
1292
1292
|
const parsedBody = parsedOutput.body;
|
|
1293
1293
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1298,24 +1298,24 @@ const deserializeAws_restJson1ImportPlaybackKeyPairCommandError = async (output,
|
|
|
1298
1298
|
});
|
|
1299
1299
|
}
|
|
1300
1300
|
};
|
|
1301
|
-
const
|
|
1301
|
+
const de_ListChannelsCommand = async (output, context) => {
|
|
1302
1302
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1303
|
-
return
|
|
1303
|
+
return de_ListChannelsCommandError(output, context);
|
|
1304
1304
|
}
|
|
1305
1305
|
const contents = map({
|
|
1306
1306
|
$metadata: deserializeMetadata(output),
|
|
1307
1307
|
});
|
|
1308
1308
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1309
1309
|
if (data.channels != null) {
|
|
1310
|
-
contents.channels =
|
|
1310
|
+
contents.channels = de_ChannelList(data.channels, context);
|
|
1311
1311
|
}
|
|
1312
1312
|
if (data.nextToken != null) {
|
|
1313
1313
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1314
1314
|
}
|
|
1315
1315
|
return contents;
|
|
1316
1316
|
};
|
|
1317
|
-
exports.
|
|
1318
|
-
const
|
|
1317
|
+
exports.de_ListChannelsCommand = de_ListChannelsCommand;
|
|
1318
|
+
const de_ListChannelsCommandError = async (output, context) => {
|
|
1319
1319
|
const parsedOutput = {
|
|
1320
1320
|
...output,
|
|
1321
1321
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1324,13 +1324,13 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
|
|
|
1324
1324
|
switch (errorCode) {
|
|
1325
1325
|
case "AccessDeniedException":
|
|
1326
1326
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1327
|
-
throw await
|
|
1327
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1328
1328
|
case "ConflictException":
|
|
1329
1329
|
case "com.amazonaws.ivs#ConflictException":
|
|
1330
|
-
throw await
|
|
1330
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1331
1331
|
case "ValidationException":
|
|
1332
1332
|
case "com.amazonaws.ivs#ValidationException":
|
|
1333
|
-
throw await
|
|
1333
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1334
1334
|
default:
|
|
1335
1335
|
const parsedBody = parsedOutput.body;
|
|
1336
1336
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1341,24 +1341,24 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
|
|
|
1341
1341
|
});
|
|
1342
1342
|
}
|
|
1343
1343
|
};
|
|
1344
|
-
const
|
|
1344
|
+
const de_ListPlaybackKeyPairsCommand = async (output, context) => {
|
|
1345
1345
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1346
|
-
return
|
|
1346
|
+
return de_ListPlaybackKeyPairsCommandError(output, context);
|
|
1347
1347
|
}
|
|
1348
1348
|
const contents = map({
|
|
1349
1349
|
$metadata: deserializeMetadata(output),
|
|
1350
1350
|
});
|
|
1351
1351
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1352
1352
|
if (data.keyPairs != null) {
|
|
1353
|
-
contents.keyPairs =
|
|
1353
|
+
contents.keyPairs = de_PlaybackKeyPairList(data.keyPairs, context);
|
|
1354
1354
|
}
|
|
1355
1355
|
if (data.nextToken != null) {
|
|
1356
1356
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1357
1357
|
}
|
|
1358
1358
|
return contents;
|
|
1359
1359
|
};
|
|
1360
|
-
exports.
|
|
1361
|
-
const
|
|
1360
|
+
exports.de_ListPlaybackKeyPairsCommand = de_ListPlaybackKeyPairsCommand;
|
|
1361
|
+
const de_ListPlaybackKeyPairsCommandError = async (output, context) => {
|
|
1362
1362
|
const parsedOutput = {
|
|
1363
1363
|
...output,
|
|
1364
1364
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1367,10 +1367,10 @@ const deserializeAws_restJson1ListPlaybackKeyPairsCommandError = async (output,
|
|
|
1367
1367
|
switch (errorCode) {
|
|
1368
1368
|
case "AccessDeniedException":
|
|
1369
1369
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1370
|
-
throw await
|
|
1370
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1371
1371
|
case "ValidationException":
|
|
1372
1372
|
case "com.amazonaws.ivs#ValidationException":
|
|
1373
|
-
throw await
|
|
1373
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1374
1374
|
default:
|
|
1375
1375
|
const parsedBody = parsedOutput.body;
|
|
1376
1376
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1381,9 +1381,9 @@ const deserializeAws_restJson1ListPlaybackKeyPairsCommandError = async (output,
|
|
|
1381
1381
|
});
|
|
1382
1382
|
}
|
|
1383
1383
|
};
|
|
1384
|
-
const
|
|
1384
|
+
const de_ListRecordingConfigurationsCommand = async (output, context) => {
|
|
1385
1385
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1386
|
-
return
|
|
1386
|
+
return de_ListRecordingConfigurationsCommandError(output, context);
|
|
1387
1387
|
}
|
|
1388
1388
|
const contents = map({
|
|
1389
1389
|
$metadata: deserializeMetadata(output),
|
|
@@ -1393,12 +1393,12 @@ const deserializeAws_restJson1ListRecordingConfigurationsCommand = async (output
|
|
|
1393
1393
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1394
1394
|
}
|
|
1395
1395
|
if (data.recordingConfigurations != null) {
|
|
1396
|
-
contents.recordingConfigurations =
|
|
1396
|
+
contents.recordingConfigurations = de_RecordingConfigurationList(data.recordingConfigurations, context);
|
|
1397
1397
|
}
|
|
1398
1398
|
return contents;
|
|
1399
1399
|
};
|
|
1400
|
-
exports.
|
|
1401
|
-
const
|
|
1400
|
+
exports.de_ListRecordingConfigurationsCommand = de_ListRecordingConfigurationsCommand;
|
|
1401
|
+
const de_ListRecordingConfigurationsCommandError = async (output, context) => {
|
|
1402
1402
|
const parsedOutput = {
|
|
1403
1403
|
...output,
|
|
1404
1404
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1407,13 +1407,13 @@ const deserializeAws_restJson1ListRecordingConfigurationsCommandError = async (o
|
|
|
1407
1407
|
switch (errorCode) {
|
|
1408
1408
|
case "AccessDeniedException":
|
|
1409
1409
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1410
|
-
throw await
|
|
1410
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1411
1411
|
case "InternalServerException":
|
|
1412
1412
|
case "com.amazonaws.ivs#InternalServerException":
|
|
1413
|
-
throw await
|
|
1413
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1414
1414
|
case "ValidationException":
|
|
1415
1415
|
case "com.amazonaws.ivs#ValidationException":
|
|
1416
|
-
throw await
|
|
1416
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1417
1417
|
default:
|
|
1418
1418
|
const parsedBody = parsedOutput.body;
|
|
1419
1419
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1424,9 +1424,9 @@ const deserializeAws_restJson1ListRecordingConfigurationsCommandError = async (o
|
|
|
1424
1424
|
});
|
|
1425
1425
|
}
|
|
1426
1426
|
};
|
|
1427
|
-
const
|
|
1427
|
+
const de_ListStreamKeysCommand = async (output, context) => {
|
|
1428
1428
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1429
|
-
return
|
|
1429
|
+
return de_ListStreamKeysCommandError(output, context);
|
|
1430
1430
|
}
|
|
1431
1431
|
const contents = map({
|
|
1432
1432
|
$metadata: deserializeMetadata(output),
|
|
@@ -1436,12 +1436,12 @@ const deserializeAws_restJson1ListStreamKeysCommand = async (output, context) =>
|
|
|
1436
1436
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1437
1437
|
}
|
|
1438
1438
|
if (data.streamKeys != null) {
|
|
1439
|
-
contents.streamKeys =
|
|
1439
|
+
contents.streamKeys = de_StreamKeyList(data.streamKeys, context);
|
|
1440
1440
|
}
|
|
1441
1441
|
return contents;
|
|
1442
1442
|
};
|
|
1443
|
-
exports.
|
|
1444
|
-
const
|
|
1443
|
+
exports.de_ListStreamKeysCommand = de_ListStreamKeysCommand;
|
|
1444
|
+
const de_ListStreamKeysCommandError = async (output, context) => {
|
|
1445
1445
|
const parsedOutput = {
|
|
1446
1446
|
...output,
|
|
1447
1447
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1450,13 +1450,13 @@ const deserializeAws_restJson1ListStreamKeysCommandError = async (output, contex
|
|
|
1450
1450
|
switch (errorCode) {
|
|
1451
1451
|
case "AccessDeniedException":
|
|
1452
1452
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1453
|
-
throw await
|
|
1453
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1454
1454
|
case "ResourceNotFoundException":
|
|
1455
1455
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1456
|
-
throw await
|
|
1456
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1457
1457
|
case "ValidationException":
|
|
1458
1458
|
case "com.amazonaws.ivs#ValidationException":
|
|
1459
|
-
throw await
|
|
1459
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1460
1460
|
default:
|
|
1461
1461
|
const parsedBody = parsedOutput.body;
|
|
1462
1462
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1467,9 +1467,9 @@ const deserializeAws_restJson1ListStreamKeysCommandError = async (output, contex
|
|
|
1467
1467
|
});
|
|
1468
1468
|
}
|
|
1469
1469
|
};
|
|
1470
|
-
const
|
|
1470
|
+
const de_ListStreamsCommand = async (output, context) => {
|
|
1471
1471
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1472
|
-
return
|
|
1472
|
+
return de_ListStreamsCommandError(output, context);
|
|
1473
1473
|
}
|
|
1474
1474
|
const contents = map({
|
|
1475
1475
|
$metadata: deserializeMetadata(output),
|
|
@@ -1479,12 +1479,12 @@ const deserializeAws_restJson1ListStreamsCommand = async (output, context) => {
|
|
|
1479
1479
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1480
1480
|
}
|
|
1481
1481
|
if (data.streams != null) {
|
|
1482
|
-
contents.streams =
|
|
1482
|
+
contents.streams = de_StreamList(data.streams, context);
|
|
1483
1483
|
}
|
|
1484
1484
|
return contents;
|
|
1485
1485
|
};
|
|
1486
|
-
exports.
|
|
1487
|
-
const
|
|
1486
|
+
exports.de_ListStreamsCommand = de_ListStreamsCommand;
|
|
1487
|
+
const de_ListStreamsCommandError = async (output, context) => {
|
|
1488
1488
|
const parsedOutput = {
|
|
1489
1489
|
...output,
|
|
1490
1490
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1493,10 +1493,10 @@ const deserializeAws_restJson1ListStreamsCommandError = async (output, context)
|
|
|
1493
1493
|
switch (errorCode) {
|
|
1494
1494
|
case "AccessDeniedException":
|
|
1495
1495
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1496
|
-
throw await
|
|
1496
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1497
1497
|
case "ValidationException":
|
|
1498
1498
|
case "com.amazonaws.ivs#ValidationException":
|
|
1499
|
-
throw await
|
|
1499
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1500
1500
|
default:
|
|
1501
1501
|
const parsedBody = parsedOutput.body;
|
|
1502
1502
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1507,9 +1507,9 @@ const deserializeAws_restJson1ListStreamsCommandError = async (output, context)
|
|
|
1507
1507
|
});
|
|
1508
1508
|
}
|
|
1509
1509
|
};
|
|
1510
|
-
const
|
|
1510
|
+
const de_ListStreamSessionsCommand = async (output, context) => {
|
|
1511
1511
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1512
|
-
return
|
|
1512
|
+
return de_ListStreamSessionsCommandError(output, context);
|
|
1513
1513
|
}
|
|
1514
1514
|
const contents = map({
|
|
1515
1515
|
$metadata: deserializeMetadata(output),
|
|
@@ -1519,12 +1519,12 @@ const deserializeAws_restJson1ListStreamSessionsCommand = async (output, context
|
|
|
1519
1519
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1520
1520
|
}
|
|
1521
1521
|
if (data.streamSessions != null) {
|
|
1522
|
-
contents.streamSessions =
|
|
1522
|
+
contents.streamSessions = de_StreamSessionList(data.streamSessions, context);
|
|
1523
1523
|
}
|
|
1524
1524
|
return contents;
|
|
1525
1525
|
};
|
|
1526
|
-
exports.
|
|
1527
|
-
const
|
|
1526
|
+
exports.de_ListStreamSessionsCommand = de_ListStreamSessionsCommand;
|
|
1527
|
+
const de_ListStreamSessionsCommandError = async (output, context) => {
|
|
1528
1528
|
const parsedOutput = {
|
|
1529
1529
|
...output,
|
|
1530
1530
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1533,13 +1533,13 @@ const deserializeAws_restJson1ListStreamSessionsCommandError = async (output, co
|
|
|
1533
1533
|
switch (errorCode) {
|
|
1534
1534
|
case "AccessDeniedException":
|
|
1535
1535
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1536
|
-
throw await
|
|
1536
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1537
1537
|
case "ResourceNotFoundException":
|
|
1538
1538
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1539
|
-
throw await
|
|
1539
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1540
1540
|
case "ValidationException":
|
|
1541
1541
|
case "com.amazonaws.ivs#ValidationException":
|
|
1542
|
-
throw await
|
|
1542
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1543
1543
|
default:
|
|
1544
1544
|
const parsedBody = parsedOutput.body;
|
|
1545
1545
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1550,21 +1550,21 @@ const deserializeAws_restJson1ListStreamSessionsCommandError = async (output, co
|
|
|
1550
1550
|
});
|
|
1551
1551
|
}
|
|
1552
1552
|
};
|
|
1553
|
-
const
|
|
1553
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1554
1554
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1555
|
-
return
|
|
1555
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1556
1556
|
}
|
|
1557
1557
|
const contents = map({
|
|
1558
1558
|
$metadata: deserializeMetadata(output),
|
|
1559
1559
|
});
|
|
1560
1560
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1561
1561
|
if (data.tags != null) {
|
|
1562
|
-
contents.tags =
|
|
1562
|
+
contents.tags = de_Tags(data.tags, context);
|
|
1563
1563
|
}
|
|
1564
1564
|
return contents;
|
|
1565
1565
|
};
|
|
1566
|
-
exports.
|
|
1567
|
-
const
|
|
1566
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1567
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1568
1568
|
const parsedOutput = {
|
|
1569
1569
|
...output,
|
|
1570
1570
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1573,13 +1573,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1573
1573
|
switch (errorCode) {
|
|
1574
1574
|
case "InternalServerException":
|
|
1575
1575
|
case "com.amazonaws.ivs#InternalServerException":
|
|
1576
|
-
throw await
|
|
1576
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1577
1577
|
case "ResourceNotFoundException":
|
|
1578
1578
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1579
|
-
throw await
|
|
1579
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1580
1580
|
case "ValidationException":
|
|
1581
1581
|
case "com.amazonaws.ivs#ValidationException":
|
|
1582
|
-
throw await
|
|
1582
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1583
1583
|
default:
|
|
1584
1584
|
const parsedBody = parsedOutput.body;
|
|
1585
1585
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1590,9 +1590,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1590
1590
|
});
|
|
1591
1591
|
}
|
|
1592
1592
|
};
|
|
1593
|
-
const
|
|
1593
|
+
const de_PutMetadataCommand = async (output, context) => {
|
|
1594
1594
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1595
|
-
return
|
|
1595
|
+
return de_PutMetadataCommandError(output, context);
|
|
1596
1596
|
}
|
|
1597
1597
|
const contents = map({
|
|
1598
1598
|
$metadata: deserializeMetadata(output),
|
|
@@ -1600,8 +1600,8 @@ const deserializeAws_restJson1PutMetadataCommand = async (output, context) => {
|
|
|
1600
1600
|
await collectBody(output.body, context);
|
|
1601
1601
|
return contents;
|
|
1602
1602
|
};
|
|
1603
|
-
exports.
|
|
1604
|
-
const
|
|
1603
|
+
exports.de_PutMetadataCommand = de_PutMetadataCommand;
|
|
1604
|
+
const de_PutMetadataCommandError = async (output, context) => {
|
|
1605
1605
|
const parsedOutput = {
|
|
1606
1606
|
...output,
|
|
1607
1607
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1610,19 +1610,19 @@ const deserializeAws_restJson1PutMetadataCommandError = async (output, context)
|
|
|
1610
1610
|
switch (errorCode) {
|
|
1611
1611
|
case "AccessDeniedException":
|
|
1612
1612
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1613
|
-
throw await
|
|
1613
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1614
1614
|
case "ChannelNotBroadcasting":
|
|
1615
1615
|
case "com.amazonaws.ivs#ChannelNotBroadcasting":
|
|
1616
|
-
throw await
|
|
1616
|
+
throw await de_ChannelNotBroadcastingRes(parsedOutput, context);
|
|
1617
1617
|
case "ResourceNotFoundException":
|
|
1618
1618
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1619
|
-
throw await
|
|
1619
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1620
1620
|
case "ThrottlingException":
|
|
1621
1621
|
case "com.amazonaws.ivs#ThrottlingException":
|
|
1622
|
-
throw await
|
|
1622
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1623
1623
|
case "ValidationException":
|
|
1624
1624
|
case "com.amazonaws.ivs#ValidationException":
|
|
1625
|
-
throw await
|
|
1625
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1626
1626
|
default:
|
|
1627
1627
|
const parsedBody = parsedOutput.body;
|
|
1628
1628
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1633,9 +1633,9 @@ const deserializeAws_restJson1PutMetadataCommandError = async (output, context)
|
|
|
1633
1633
|
});
|
|
1634
1634
|
}
|
|
1635
1635
|
};
|
|
1636
|
-
const
|
|
1636
|
+
const de_StopStreamCommand = async (output, context) => {
|
|
1637
1637
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1638
|
-
return
|
|
1638
|
+
return de_StopStreamCommandError(output, context);
|
|
1639
1639
|
}
|
|
1640
1640
|
const contents = map({
|
|
1641
1641
|
$metadata: deserializeMetadata(output),
|
|
@@ -1643,8 +1643,8 @@ const deserializeAws_restJson1StopStreamCommand = async (output, context) => {
|
|
|
1643
1643
|
await collectBody(output.body, context);
|
|
1644
1644
|
return contents;
|
|
1645
1645
|
};
|
|
1646
|
-
exports.
|
|
1647
|
-
const
|
|
1646
|
+
exports.de_StopStreamCommand = de_StopStreamCommand;
|
|
1647
|
+
const de_StopStreamCommandError = async (output, context) => {
|
|
1648
1648
|
const parsedOutput = {
|
|
1649
1649
|
...output,
|
|
1650
1650
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1653,19 +1653,19 @@ const deserializeAws_restJson1StopStreamCommandError = async (output, context) =
|
|
|
1653
1653
|
switch (errorCode) {
|
|
1654
1654
|
case "AccessDeniedException":
|
|
1655
1655
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1656
|
-
throw await
|
|
1656
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1657
1657
|
case "ChannelNotBroadcasting":
|
|
1658
1658
|
case "com.amazonaws.ivs#ChannelNotBroadcasting":
|
|
1659
|
-
throw await
|
|
1659
|
+
throw await de_ChannelNotBroadcastingRes(parsedOutput, context);
|
|
1660
1660
|
case "ResourceNotFoundException":
|
|
1661
1661
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1662
|
-
throw await
|
|
1662
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1663
1663
|
case "StreamUnavailable":
|
|
1664
1664
|
case "com.amazonaws.ivs#StreamUnavailable":
|
|
1665
|
-
throw await
|
|
1665
|
+
throw await de_StreamUnavailableRes(parsedOutput, context);
|
|
1666
1666
|
case "ValidationException":
|
|
1667
1667
|
case "com.amazonaws.ivs#ValidationException":
|
|
1668
|
-
throw await
|
|
1668
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1669
1669
|
default:
|
|
1670
1670
|
const parsedBody = parsedOutput.body;
|
|
1671
1671
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1676,9 +1676,9 @@ const deserializeAws_restJson1StopStreamCommandError = async (output, context) =
|
|
|
1676
1676
|
});
|
|
1677
1677
|
}
|
|
1678
1678
|
};
|
|
1679
|
-
const
|
|
1679
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
1680
1680
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1681
|
-
return
|
|
1681
|
+
return de_TagResourceCommandError(output, context);
|
|
1682
1682
|
}
|
|
1683
1683
|
const contents = map({
|
|
1684
1684
|
$metadata: deserializeMetadata(output),
|
|
@@ -1686,8 +1686,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
1686
1686
|
await collectBody(output.body, context);
|
|
1687
1687
|
return contents;
|
|
1688
1688
|
};
|
|
1689
|
-
exports.
|
|
1690
|
-
const
|
|
1689
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1690
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1691
1691
|
const parsedOutput = {
|
|
1692
1692
|
...output,
|
|
1693
1693
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1696,13 +1696,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1696
1696
|
switch (errorCode) {
|
|
1697
1697
|
case "InternalServerException":
|
|
1698
1698
|
case "com.amazonaws.ivs#InternalServerException":
|
|
1699
|
-
throw await
|
|
1699
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1700
1700
|
case "ResourceNotFoundException":
|
|
1701
1701
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1702
|
-
throw await
|
|
1702
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1703
1703
|
case "ValidationException":
|
|
1704
1704
|
case "com.amazonaws.ivs#ValidationException":
|
|
1705
|
-
throw await
|
|
1705
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1706
1706
|
default:
|
|
1707
1707
|
const parsedBody = parsedOutput.body;
|
|
1708
1708
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1713,9 +1713,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1713
1713
|
});
|
|
1714
1714
|
}
|
|
1715
1715
|
};
|
|
1716
|
-
const
|
|
1716
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
1717
1717
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1718
|
-
return
|
|
1718
|
+
return de_UntagResourceCommandError(output, context);
|
|
1719
1719
|
}
|
|
1720
1720
|
const contents = map({
|
|
1721
1721
|
$metadata: deserializeMetadata(output),
|
|
@@ -1723,8 +1723,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
1723
1723
|
await collectBody(output.body, context);
|
|
1724
1724
|
return contents;
|
|
1725
1725
|
};
|
|
1726
|
-
exports.
|
|
1727
|
-
const
|
|
1726
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1727
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1728
1728
|
const parsedOutput = {
|
|
1729
1729
|
...output,
|
|
1730
1730
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1733,13 +1733,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1733
1733
|
switch (errorCode) {
|
|
1734
1734
|
case "InternalServerException":
|
|
1735
1735
|
case "com.amazonaws.ivs#InternalServerException":
|
|
1736
|
-
throw await
|
|
1736
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1737
1737
|
case "ResourceNotFoundException":
|
|
1738
1738
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1739
|
-
throw await
|
|
1739
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1740
1740
|
case "ValidationException":
|
|
1741
1741
|
case "com.amazonaws.ivs#ValidationException":
|
|
1742
|
-
throw await
|
|
1742
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1743
1743
|
default:
|
|
1744
1744
|
const parsedBody = parsedOutput.body;
|
|
1745
1745
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1750,21 +1750,21 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1750
1750
|
});
|
|
1751
1751
|
}
|
|
1752
1752
|
};
|
|
1753
|
-
const
|
|
1753
|
+
const de_UpdateChannelCommand = async (output, context) => {
|
|
1754
1754
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1755
|
-
return
|
|
1755
|
+
return de_UpdateChannelCommandError(output, context);
|
|
1756
1756
|
}
|
|
1757
1757
|
const contents = map({
|
|
1758
1758
|
$metadata: deserializeMetadata(output),
|
|
1759
1759
|
});
|
|
1760
1760
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1761
1761
|
if (data.channel != null) {
|
|
1762
|
-
contents.channel =
|
|
1762
|
+
contents.channel = de_Channel(data.channel, context);
|
|
1763
1763
|
}
|
|
1764
1764
|
return contents;
|
|
1765
1765
|
};
|
|
1766
|
-
exports.
|
|
1767
|
-
const
|
|
1766
|
+
exports.de_UpdateChannelCommand = de_UpdateChannelCommand;
|
|
1767
|
+
const de_UpdateChannelCommandError = async (output, context) => {
|
|
1768
1768
|
const parsedOutput = {
|
|
1769
1769
|
...output,
|
|
1770
1770
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1773,19 +1773,19 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
|
|
|
1773
1773
|
switch (errorCode) {
|
|
1774
1774
|
case "AccessDeniedException":
|
|
1775
1775
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1776
|
-
throw await
|
|
1776
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1777
1777
|
case "ConflictException":
|
|
1778
1778
|
case "com.amazonaws.ivs#ConflictException":
|
|
1779
|
-
throw await
|
|
1779
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1780
1780
|
case "PendingVerification":
|
|
1781
1781
|
case "com.amazonaws.ivs#PendingVerification":
|
|
1782
|
-
throw await
|
|
1782
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
1783
1783
|
case "ResourceNotFoundException":
|
|
1784
1784
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1785
|
-
throw await
|
|
1785
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1786
1786
|
case "ValidationException":
|
|
1787
1787
|
case "com.amazonaws.ivs#ValidationException":
|
|
1788
|
-
throw await
|
|
1788
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1789
1789
|
default:
|
|
1790
1790
|
const parsedBody = parsedOutput.body;
|
|
1791
1791
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1797,7 +1797,7 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
|
|
|
1797
1797
|
}
|
|
1798
1798
|
};
|
|
1799
1799
|
const map = smithy_client_1.map;
|
|
1800
|
-
const
|
|
1800
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1801
1801
|
const contents = map({});
|
|
1802
1802
|
const data = parsedOutput.body;
|
|
1803
1803
|
if (data.exceptionMessage != null) {
|
|
@@ -1809,7 +1809,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
1809
1809
|
});
|
|
1810
1810
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1811
1811
|
};
|
|
1812
|
-
const
|
|
1812
|
+
const de_ChannelNotBroadcastingRes = async (parsedOutput, context) => {
|
|
1813
1813
|
const contents = map({});
|
|
1814
1814
|
const data = parsedOutput.body;
|
|
1815
1815
|
if (data.exceptionMessage != null) {
|
|
@@ -1821,7 +1821,7 @@ const deserializeAws_restJson1ChannelNotBroadcastingResponse = async (parsedOutp
|
|
|
1821
1821
|
});
|
|
1822
1822
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1823
1823
|
};
|
|
1824
|
-
const
|
|
1824
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1825
1825
|
const contents = map({});
|
|
1826
1826
|
const data = parsedOutput.body;
|
|
1827
1827
|
if (data.exceptionMessage != null) {
|
|
@@ -1833,7 +1833,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
1833
1833
|
});
|
|
1834
1834
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1835
1835
|
};
|
|
1836
|
-
const
|
|
1836
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1837
1837
|
const contents = map({});
|
|
1838
1838
|
const data = parsedOutput.body;
|
|
1839
1839
|
if (data.exceptionMessage != null) {
|
|
@@ -1845,7 +1845,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
1845
1845
|
});
|
|
1846
1846
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1847
1847
|
};
|
|
1848
|
-
const
|
|
1848
|
+
const de_PendingVerificationRes = async (parsedOutput, context) => {
|
|
1849
1849
|
const contents = map({});
|
|
1850
1850
|
const data = parsedOutput.body;
|
|
1851
1851
|
if (data.exceptionMessage != null) {
|
|
@@ -1857,7 +1857,7 @@ const deserializeAws_restJson1PendingVerificationResponse = async (parsedOutput,
|
|
|
1857
1857
|
});
|
|
1858
1858
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1859
1859
|
};
|
|
1860
|
-
const
|
|
1860
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1861
1861
|
const contents = map({});
|
|
1862
1862
|
const data = parsedOutput.body;
|
|
1863
1863
|
if (data.exceptionMessage != null) {
|
|
@@ -1869,7 +1869,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
1869
1869
|
});
|
|
1870
1870
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1871
1871
|
};
|
|
1872
|
-
const
|
|
1872
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1873
1873
|
const contents = map({});
|
|
1874
1874
|
const data = parsedOutput.body;
|
|
1875
1875
|
if (data.exceptionMessage != null) {
|
|
@@ -1881,7 +1881,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
1881
1881
|
});
|
|
1882
1882
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1883
1883
|
};
|
|
1884
|
-
const
|
|
1884
|
+
const de_StreamUnavailableRes = async (parsedOutput, context) => {
|
|
1885
1885
|
const contents = map({});
|
|
1886
1886
|
const data = parsedOutput.body;
|
|
1887
1887
|
if (data.exceptionMessage != null) {
|
|
@@ -1893,7 +1893,7 @@ const deserializeAws_restJson1StreamUnavailableResponse = async (parsedOutput, c
|
|
|
1893
1893
|
});
|
|
1894
1894
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1895
1895
|
};
|
|
1896
|
-
const
|
|
1896
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1897
1897
|
const contents = map({});
|
|
1898
1898
|
const data = parsedOutput.body;
|
|
1899
1899
|
if (data.exceptionMessage != null) {
|
|
@@ -1905,7 +1905,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
1905
1905
|
});
|
|
1906
1906
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1907
1907
|
};
|
|
1908
|
-
const
|
|
1908
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1909
1909
|
const contents = map({});
|
|
1910
1910
|
const data = parsedOutput.body;
|
|
1911
1911
|
if (data.exceptionMessage != null) {
|
|
@@ -1917,36 +1917,36 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1917
1917
|
});
|
|
1918
1918
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1919
1919
|
};
|
|
1920
|
-
const
|
|
1920
|
+
const se_ChannelArnList = (input, context) => {
|
|
1921
1921
|
return input
|
|
1922
1922
|
.filter((e) => e != null)
|
|
1923
1923
|
.map((entry) => {
|
|
1924
1924
|
return entry;
|
|
1925
1925
|
});
|
|
1926
1926
|
};
|
|
1927
|
-
const
|
|
1927
|
+
const se_DestinationConfiguration = (input, context) => {
|
|
1928
1928
|
return {
|
|
1929
|
-
...(input.s3 != null && { s3:
|
|
1929
|
+
...(input.s3 != null && { s3: se_S3DestinationConfiguration(input.s3, context) }),
|
|
1930
1930
|
};
|
|
1931
1931
|
};
|
|
1932
|
-
const
|
|
1932
|
+
const se_S3DestinationConfiguration = (input, context) => {
|
|
1933
1933
|
return {
|
|
1934
1934
|
...(input.bucketName != null && { bucketName: input.bucketName }),
|
|
1935
1935
|
};
|
|
1936
1936
|
};
|
|
1937
|
-
const
|
|
1937
|
+
const se_StreamFilters = (input, context) => {
|
|
1938
1938
|
return {
|
|
1939
1939
|
...(input.health != null && { health: input.health }),
|
|
1940
1940
|
};
|
|
1941
1941
|
};
|
|
1942
|
-
const
|
|
1942
|
+
const se_StreamKeyArnList = (input, context) => {
|
|
1943
1943
|
return input
|
|
1944
1944
|
.filter((e) => e != null)
|
|
1945
1945
|
.map((entry) => {
|
|
1946
1946
|
return entry;
|
|
1947
1947
|
});
|
|
1948
1948
|
};
|
|
1949
|
-
const
|
|
1949
|
+
const se_Tags = (input, context) => {
|
|
1950
1950
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1951
1951
|
if (value === null) {
|
|
1952
1952
|
return acc;
|
|
@@ -1955,13 +1955,13 @@ const serializeAws_restJson1Tags = (input, context) => {
|
|
|
1955
1955
|
return acc;
|
|
1956
1956
|
}, {});
|
|
1957
1957
|
};
|
|
1958
|
-
const
|
|
1958
|
+
const se_ThumbnailConfiguration = (input, context) => {
|
|
1959
1959
|
return {
|
|
1960
1960
|
...(input.recordingMode != null && { recordingMode: input.recordingMode }),
|
|
1961
1961
|
...(input.targetIntervalSeconds != null && { targetIntervalSeconds: input.targetIntervalSeconds }),
|
|
1962
1962
|
};
|
|
1963
1963
|
};
|
|
1964
|
-
const
|
|
1964
|
+
const de_AudioConfiguration = (output, context) => {
|
|
1965
1965
|
return {
|
|
1966
1966
|
channels: (0, smithy_client_1.expectLong)(output.channels),
|
|
1967
1967
|
codec: (0, smithy_client_1.expectString)(output.codec),
|
|
@@ -1969,25 +1969,25 @@ const deserializeAws_restJson1AudioConfiguration = (output, context) => {
|
|
|
1969
1969
|
targetBitrate: (0, smithy_client_1.expectLong)(output.targetBitrate),
|
|
1970
1970
|
};
|
|
1971
1971
|
};
|
|
1972
|
-
const
|
|
1972
|
+
const de_BatchError = (output, context) => {
|
|
1973
1973
|
return {
|
|
1974
1974
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1975
1975
|
code: (0, smithy_client_1.expectString)(output.code),
|
|
1976
1976
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
1977
1977
|
};
|
|
1978
1978
|
};
|
|
1979
|
-
const
|
|
1979
|
+
const de_BatchErrors = (output, context) => {
|
|
1980
1980
|
const retVal = (output || [])
|
|
1981
1981
|
.filter((e) => e != null)
|
|
1982
1982
|
.map((entry) => {
|
|
1983
1983
|
if (entry === null) {
|
|
1984
1984
|
return null;
|
|
1985
1985
|
}
|
|
1986
|
-
return
|
|
1986
|
+
return de_BatchError(entry, context);
|
|
1987
1987
|
});
|
|
1988
1988
|
return retVal;
|
|
1989
1989
|
};
|
|
1990
|
-
const
|
|
1990
|
+
const de_Channel = (output, context) => {
|
|
1991
1991
|
return {
|
|
1992
1992
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1993
1993
|
authorized: (0, smithy_client_1.expectBoolean)(output.authorized),
|
|
@@ -1997,33 +1997,33 @@ const deserializeAws_restJson1Channel = (output, context) => {
|
|
|
1997
1997
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1998
1998
|
playbackUrl: (0, smithy_client_1.expectString)(output.playbackUrl),
|
|
1999
1999
|
recordingConfigurationArn: (0, smithy_client_1.expectString)(output.recordingConfigurationArn),
|
|
2000
|
-
tags: output.tags != null ?
|
|
2000
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2001
2001
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2002
2002
|
};
|
|
2003
2003
|
};
|
|
2004
|
-
const
|
|
2004
|
+
const de_ChannelList = (output, context) => {
|
|
2005
2005
|
const retVal = (output || [])
|
|
2006
2006
|
.filter((e) => e != null)
|
|
2007
2007
|
.map((entry) => {
|
|
2008
2008
|
if (entry === null) {
|
|
2009
2009
|
return null;
|
|
2010
2010
|
}
|
|
2011
|
-
return
|
|
2011
|
+
return de_ChannelSummary(entry, context);
|
|
2012
2012
|
});
|
|
2013
2013
|
return retVal;
|
|
2014
2014
|
};
|
|
2015
|
-
const
|
|
2015
|
+
const de_Channels = (output, context) => {
|
|
2016
2016
|
const retVal = (output || [])
|
|
2017
2017
|
.filter((e) => e != null)
|
|
2018
2018
|
.map((entry) => {
|
|
2019
2019
|
if (entry === null) {
|
|
2020
2020
|
return null;
|
|
2021
2021
|
}
|
|
2022
|
-
return
|
|
2022
|
+
return de_Channel(entry, context);
|
|
2023
2023
|
});
|
|
2024
2024
|
return retVal;
|
|
2025
2025
|
};
|
|
2026
|
-
const
|
|
2026
|
+
const de_ChannelSummary = (output, context) => {
|
|
2027
2027
|
return {
|
|
2028
2028
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2029
2029
|
authorized: (0, smithy_client_1.expectBoolean)(output.authorized),
|
|
@@ -2031,89 +2031,89 @@ const deserializeAws_restJson1ChannelSummary = (output, context) => {
|
|
|
2031
2031
|
latencyMode: (0, smithy_client_1.expectString)(output.latencyMode),
|
|
2032
2032
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2033
2033
|
recordingConfigurationArn: (0, smithy_client_1.expectString)(output.recordingConfigurationArn),
|
|
2034
|
-
tags: output.tags != null ?
|
|
2034
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2035
2035
|
};
|
|
2036
2036
|
};
|
|
2037
|
-
const
|
|
2037
|
+
const de_DestinationConfiguration = (output, context) => {
|
|
2038
2038
|
return {
|
|
2039
|
-
s3: output.s3 != null ?
|
|
2039
|
+
s3: output.s3 != null ? de_S3DestinationConfiguration(output.s3, context) : undefined,
|
|
2040
2040
|
};
|
|
2041
2041
|
};
|
|
2042
|
-
const
|
|
2042
|
+
const de_IngestConfiguration = (output, context) => {
|
|
2043
2043
|
return {
|
|
2044
|
-
audio: output.audio != null ?
|
|
2045
|
-
video: output.video != null ?
|
|
2044
|
+
audio: output.audio != null ? de_AudioConfiguration(output.audio, context) : undefined,
|
|
2045
|
+
video: output.video != null ? de_VideoConfiguration(output.video, context) : undefined,
|
|
2046
2046
|
};
|
|
2047
2047
|
};
|
|
2048
|
-
const
|
|
2048
|
+
const de_PlaybackKeyPair = (output, context) => {
|
|
2049
2049
|
return {
|
|
2050
2050
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2051
2051
|
fingerprint: (0, smithy_client_1.expectString)(output.fingerprint),
|
|
2052
2052
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2053
|
-
tags: output.tags != null ?
|
|
2053
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2054
2054
|
};
|
|
2055
2055
|
};
|
|
2056
|
-
const
|
|
2056
|
+
const de_PlaybackKeyPairList = (output, context) => {
|
|
2057
2057
|
const retVal = (output || [])
|
|
2058
2058
|
.filter((e) => e != null)
|
|
2059
2059
|
.map((entry) => {
|
|
2060
2060
|
if (entry === null) {
|
|
2061
2061
|
return null;
|
|
2062
2062
|
}
|
|
2063
|
-
return
|
|
2063
|
+
return de_PlaybackKeyPairSummary(entry, context);
|
|
2064
2064
|
});
|
|
2065
2065
|
return retVal;
|
|
2066
2066
|
};
|
|
2067
|
-
const
|
|
2067
|
+
const de_PlaybackKeyPairSummary = (output, context) => {
|
|
2068
2068
|
return {
|
|
2069
2069
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2070
2070
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2071
|
-
tags: output.tags != null ?
|
|
2071
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2072
2072
|
};
|
|
2073
2073
|
};
|
|
2074
|
-
const
|
|
2074
|
+
const de_RecordingConfiguration = (output, context) => {
|
|
2075
2075
|
return {
|
|
2076
2076
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2077
2077
|
destinationConfiguration: output.destinationConfiguration != null
|
|
2078
|
-
?
|
|
2078
|
+
? de_DestinationConfiguration(output.destinationConfiguration, context)
|
|
2079
2079
|
: undefined,
|
|
2080
2080
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2081
2081
|
recordingReconnectWindowSeconds: (0, smithy_client_1.expectInt32)(output.recordingReconnectWindowSeconds),
|
|
2082
2082
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
2083
|
-
tags: output.tags != null ?
|
|
2083
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2084
2084
|
thumbnailConfiguration: output.thumbnailConfiguration != null
|
|
2085
|
-
?
|
|
2085
|
+
? de_ThumbnailConfiguration(output.thumbnailConfiguration, context)
|
|
2086
2086
|
: undefined,
|
|
2087
2087
|
};
|
|
2088
2088
|
};
|
|
2089
|
-
const
|
|
2089
|
+
const de_RecordingConfigurationList = (output, context) => {
|
|
2090
2090
|
const retVal = (output || [])
|
|
2091
2091
|
.filter((e) => e != null)
|
|
2092
2092
|
.map((entry) => {
|
|
2093
2093
|
if (entry === null) {
|
|
2094
2094
|
return null;
|
|
2095
2095
|
}
|
|
2096
|
-
return
|
|
2096
|
+
return de_RecordingConfigurationSummary(entry, context);
|
|
2097
2097
|
});
|
|
2098
2098
|
return retVal;
|
|
2099
2099
|
};
|
|
2100
|
-
const
|
|
2100
|
+
const de_RecordingConfigurationSummary = (output, context) => {
|
|
2101
2101
|
return {
|
|
2102
2102
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2103
2103
|
destinationConfiguration: output.destinationConfiguration != null
|
|
2104
|
-
?
|
|
2104
|
+
? de_DestinationConfiguration(output.destinationConfiguration, context)
|
|
2105
2105
|
: undefined,
|
|
2106
2106
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2107
2107
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
2108
|
-
tags: output.tags != null ?
|
|
2108
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2109
2109
|
};
|
|
2110
2110
|
};
|
|
2111
|
-
const
|
|
2111
|
+
const de_S3DestinationConfiguration = (output, context) => {
|
|
2112
2112
|
return {
|
|
2113
2113
|
bucketName: (0, smithy_client_1.expectString)(output.bucketName),
|
|
2114
2114
|
};
|
|
2115
2115
|
};
|
|
2116
|
-
const
|
|
2116
|
+
const de__Stream = (output, context) => {
|
|
2117
2117
|
return {
|
|
2118
2118
|
channelArn: (0, smithy_client_1.expectString)(output.channelArn),
|
|
2119
2119
|
health: (0, smithy_client_1.expectString)(output.health),
|
|
@@ -2124,101 +2124,97 @@ const deserializeAws_restJson1_Stream = (output, context) => {
|
|
|
2124
2124
|
viewerCount: (0, smithy_client_1.expectLong)(output.viewerCount),
|
|
2125
2125
|
};
|
|
2126
2126
|
};
|
|
2127
|
-
const
|
|
2127
|
+
const de_StreamEvent = (output, context) => {
|
|
2128
2128
|
return {
|
|
2129
2129
|
eventTime: output.eventTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.eventTime)) : undefined,
|
|
2130
2130
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2131
2131
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2132
2132
|
};
|
|
2133
2133
|
};
|
|
2134
|
-
const
|
|
2134
|
+
const de_StreamEvents = (output, context) => {
|
|
2135
2135
|
const retVal = (output || [])
|
|
2136
2136
|
.filter((e) => e != null)
|
|
2137
2137
|
.map((entry) => {
|
|
2138
2138
|
if (entry === null) {
|
|
2139
2139
|
return null;
|
|
2140
2140
|
}
|
|
2141
|
-
return
|
|
2141
|
+
return de_StreamEvent(entry, context);
|
|
2142
2142
|
});
|
|
2143
2143
|
return retVal;
|
|
2144
2144
|
};
|
|
2145
|
-
const
|
|
2145
|
+
const de_StreamKey = (output, context) => {
|
|
2146
2146
|
return {
|
|
2147
2147
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2148
2148
|
channelArn: (0, smithy_client_1.expectString)(output.channelArn),
|
|
2149
|
-
tags: output.tags != null ?
|
|
2149
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2150
2150
|
value: (0, smithy_client_1.expectString)(output.value),
|
|
2151
2151
|
};
|
|
2152
2152
|
};
|
|
2153
|
-
const
|
|
2153
|
+
const de_StreamKeyList = (output, context) => {
|
|
2154
2154
|
const retVal = (output || [])
|
|
2155
2155
|
.filter((e) => e != null)
|
|
2156
2156
|
.map((entry) => {
|
|
2157
2157
|
if (entry === null) {
|
|
2158
2158
|
return null;
|
|
2159
2159
|
}
|
|
2160
|
-
return
|
|
2160
|
+
return de_StreamKeySummary(entry, context);
|
|
2161
2161
|
});
|
|
2162
2162
|
return retVal;
|
|
2163
2163
|
};
|
|
2164
|
-
const
|
|
2164
|
+
const de_StreamKeys = (output, context) => {
|
|
2165
2165
|
const retVal = (output || [])
|
|
2166
2166
|
.filter((e) => e != null)
|
|
2167
2167
|
.map((entry) => {
|
|
2168
2168
|
if (entry === null) {
|
|
2169
2169
|
return null;
|
|
2170
2170
|
}
|
|
2171
|
-
return
|
|
2171
|
+
return de_StreamKey(entry, context);
|
|
2172
2172
|
});
|
|
2173
2173
|
return retVal;
|
|
2174
2174
|
};
|
|
2175
|
-
const
|
|
2175
|
+
const de_StreamKeySummary = (output, context) => {
|
|
2176
2176
|
return {
|
|
2177
2177
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2178
2178
|
channelArn: (0, smithy_client_1.expectString)(output.channelArn),
|
|
2179
|
-
tags: output.tags != null ?
|
|
2179
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2180
2180
|
};
|
|
2181
2181
|
};
|
|
2182
|
-
const
|
|
2182
|
+
const de_StreamList = (output, context) => {
|
|
2183
2183
|
const retVal = (output || [])
|
|
2184
2184
|
.filter((e) => e != null)
|
|
2185
2185
|
.map((entry) => {
|
|
2186
2186
|
if (entry === null) {
|
|
2187
2187
|
return null;
|
|
2188
2188
|
}
|
|
2189
|
-
return
|
|
2189
|
+
return de_StreamSummary(entry, context);
|
|
2190
2190
|
});
|
|
2191
2191
|
return retVal;
|
|
2192
2192
|
};
|
|
2193
|
-
const
|
|
2193
|
+
const de_StreamSession = (output, context) => {
|
|
2194
2194
|
return {
|
|
2195
|
-
channel: output.channel != null ?
|
|
2195
|
+
channel: output.channel != null ? de_Channel(output.channel, context) : undefined,
|
|
2196
2196
|
endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.endTime)) : undefined,
|
|
2197
|
-
ingestConfiguration: output.ingestConfiguration != null
|
|
2198
|
-
? deserializeAws_restJson1IngestConfiguration(output.ingestConfiguration, context)
|
|
2199
|
-
: undefined,
|
|
2197
|
+
ingestConfiguration: output.ingestConfiguration != null ? de_IngestConfiguration(output.ingestConfiguration, context) : undefined,
|
|
2200
2198
|
recordingConfiguration: output.recordingConfiguration != null
|
|
2201
|
-
?
|
|
2199
|
+
? de_RecordingConfiguration(output.recordingConfiguration, context)
|
|
2202
2200
|
: undefined,
|
|
2203
2201
|
startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.startTime)) : undefined,
|
|
2204
2202
|
streamId: (0, smithy_client_1.expectString)(output.streamId),
|
|
2205
|
-
truncatedEvents: output.truncatedEvents != null
|
|
2206
|
-
? deserializeAws_restJson1StreamEvents(output.truncatedEvents, context)
|
|
2207
|
-
: undefined,
|
|
2203
|
+
truncatedEvents: output.truncatedEvents != null ? de_StreamEvents(output.truncatedEvents, context) : undefined,
|
|
2208
2204
|
};
|
|
2209
2205
|
};
|
|
2210
|
-
const
|
|
2206
|
+
const de_StreamSessionList = (output, context) => {
|
|
2211
2207
|
const retVal = (output || [])
|
|
2212
2208
|
.filter((e) => e != null)
|
|
2213
2209
|
.map((entry) => {
|
|
2214
2210
|
if (entry === null) {
|
|
2215
2211
|
return null;
|
|
2216
2212
|
}
|
|
2217
|
-
return
|
|
2213
|
+
return de_StreamSessionSummary(entry, context);
|
|
2218
2214
|
});
|
|
2219
2215
|
return retVal;
|
|
2220
2216
|
};
|
|
2221
|
-
const
|
|
2217
|
+
const de_StreamSessionSummary = (output, context) => {
|
|
2222
2218
|
return {
|
|
2223
2219
|
endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.endTime)) : undefined,
|
|
2224
2220
|
hasErrorEvent: (0, smithy_client_1.expectBoolean)(output.hasErrorEvent),
|
|
@@ -2226,7 +2222,7 @@ const deserializeAws_restJson1StreamSessionSummary = (output, context) => {
|
|
|
2226
2222
|
streamId: (0, smithy_client_1.expectString)(output.streamId),
|
|
2227
2223
|
};
|
|
2228
2224
|
};
|
|
2229
|
-
const
|
|
2225
|
+
const de_StreamSummary = (output, context) => {
|
|
2230
2226
|
return {
|
|
2231
2227
|
channelArn: (0, smithy_client_1.expectString)(output.channelArn),
|
|
2232
2228
|
health: (0, smithy_client_1.expectString)(output.health),
|
|
@@ -2236,7 +2232,7 @@ const deserializeAws_restJson1StreamSummary = (output, context) => {
|
|
|
2236
2232
|
viewerCount: (0, smithy_client_1.expectLong)(output.viewerCount),
|
|
2237
2233
|
};
|
|
2238
2234
|
};
|
|
2239
|
-
const
|
|
2235
|
+
const de_Tags = (output, context) => {
|
|
2240
2236
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2241
2237
|
if (value === null) {
|
|
2242
2238
|
return acc;
|
|
@@ -2245,13 +2241,13 @@ const deserializeAws_restJson1Tags = (output, context) => {
|
|
|
2245
2241
|
return acc;
|
|
2246
2242
|
}, {});
|
|
2247
2243
|
};
|
|
2248
|
-
const
|
|
2244
|
+
const de_ThumbnailConfiguration = (output, context) => {
|
|
2249
2245
|
return {
|
|
2250
2246
|
recordingMode: (0, smithy_client_1.expectString)(output.recordingMode),
|
|
2251
2247
|
targetIntervalSeconds: (0, smithy_client_1.expectLong)(output.targetIntervalSeconds),
|
|
2252
2248
|
};
|
|
2253
2249
|
};
|
|
2254
|
-
const
|
|
2250
|
+
const de_VideoConfiguration = (output, context) => {
|
|
2255
2251
|
return {
|
|
2256
2252
|
avcLevel: (0, smithy_client_1.expectString)(output.avcLevel),
|
|
2257
2253
|
avcProfile: (0, smithy_client_1.expectString)(output.avcProfile),
|