@aws-sdk/client-ivs-realtime 3.451.0 → 3.453.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/README.md +184 -5
- package/dist-cjs/IVSRealTime.js +24 -0
- package/dist-cjs/commands/CreateEncoderConfigurationCommand.js +51 -0
- package/dist-cjs/commands/CreateStorageConfigurationCommand.js +51 -0
- package/dist-cjs/commands/DeleteEncoderConfigurationCommand.js +51 -0
- package/dist-cjs/commands/DeleteStorageConfigurationCommand.js +51 -0
- package/dist-cjs/commands/GetCompositionCommand.js +51 -0
- package/dist-cjs/commands/GetEncoderConfigurationCommand.js +51 -0
- package/dist-cjs/commands/GetStorageConfigurationCommand.js +51 -0
- package/dist-cjs/commands/ListCompositionsCommand.js +51 -0
- package/dist-cjs/commands/ListEncoderConfigurationsCommand.js +51 -0
- package/dist-cjs/commands/ListStorageConfigurationsCommand.js +51 -0
- package/dist-cjs/commands/StartCompositionCommand.js +51 -0
- package/dist-cjs/commands/StopCompositionCommand.js +51 -0
- package/dist-cjs/commands/index.js +12 -0
- package/dist-cjs/models/models_0.js +51 -33
- package/dist-cjs/pagination/ListCompositionsPaginator.js +29 -0
- package/dist-cjs/pagination/ListEncoderConfigurationsPaginator.js +29 -0
- package/dist-cjs/pagination/ListStorageConfigurationsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1036 -101
- package/dist-es/IVSRealTime.js +24 -0
- package/dist-es/commands/CreateEncoderConfigurationCommand.js +47 -0
- package/dist-es/commands/CreateStorageConfigurationCommand.js +47 -0
- package/dist-es/commands/DeleteEncoderConfigurationCommand.js +47 -0
- package/dist-es/commands/DeleteStorageConfigurationCommand.js +47 -0
- package/dist-es/commands/GetCompositionCommand.js +47 -0
- package/dist-es/commands/GetEncoderConfigurationCommand.js +47 -0
- package/dist-es/commands/GetStorageConfigurationCommand.js +47 -0
- package/dist-es/commands/ListCompositionsCommand.js +47 -0
- package/dist-es/commands/ListEncoderConfigurationsCommand.js +47 -0
- package/dist-es/commands/ListStorageConfigurationsCommand.js +47 -0
- package/dist-es/commands/StartCompositionCommand.js +47 -0
- package/dist-es/commands/StopCompositionCommand.js +47 -0
- package/dist-es/commands/index.js +12 -0
- package/dist-es/models/models_0.js +48 -30
- package/dist-es/pagination/ListCompositionsPaginator.js +25 -0
- package/dist-es/pagination/ListEncoderConfigurationsPaginator.js +25 -0
- package/dist-es/pagination/ListStorageConfigurationsPaginator.js +25 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +1002 -92
- package/dist-types/IVSRealTime.d.ts +172 -5
- package/dist-types/IVSRealTimeClient.d.ts +102 -7
- package/dist-types/commands/CreateEncoderConfigurationCommand.d.ts +115 -0
- package/dist-types/commands/CreateStorageConfigurationCommand.d.ts +111 -0
- package/dist-types/commands/DeleteEncoderConfigurationCommand.d.ts +90 -0
- package/dist-types/commands/DeleteStorageConfigurationCommand.d.ts +92 -0
- package/dist-types/commands/GetCompositionCommand.d.ts +134 -0
- package/dist-types/commands/GetEncoderConfigurationCommand.d.ts +103 -0
- package/dist-types/commands/GetStorageConfigurationCommand.d.ts +100 -0
- package/dist-types/commands/ListCompositionsCommand.d.ts +112 -0
- package/dist-types/commands/ListEncoderConfigurationsCommand.d.ts +99 -0
- package/dist-types/commands/ListStorageConfigurationsCommand.d.ts +102 -0
- package/dist-types/commands/StartCompositionCommand.d.ts +187 -0
- package/dist-types/commands/StopCompositionCommand.d.ts +90 -0
- package/dist-types/commands/index.d.ts +12 -0
- package/dist-types/index.d.ts +88 -5
- package/dist-types/models/models_0.d.ts +908 -92
- package/dist-types/pagination/ListCompositionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListEncoderConfigurationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListStorageConfigurationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +108 -0
- package/dist-types/ts3.4/IVSRealTime.d.ts +204 -0
- package/dist-types/ts3.4/IVSRealTimeClient.d.ts +72 -0
- package/dist-types/ts3.4/commands/CreateEncoderConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateStorageConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteEncoderConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteStorageConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetCompositionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetEncoderConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetStorageConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListCompositionsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListEncoderConfigurationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListStorageConfigurationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartCompositionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/StopCompositionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +12 -0
- package/dist-types/ts3.4/models/models_0.d.ts +234 -34
- package/dist-types/ts3.4/pagination/ListCompositionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListEncoderConfigurationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListStorageConfigurationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +144 -0
- package/package.json +4 -2
|
@@ -1,10 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_StartCompositionCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStorageConfigurationsCommand = exports.de_ListStageSessionsCommand = exports.de_ListStagesCommand = exports.de_ListParticipantsCommand = exports.de_ListParticipantEventsCommand = exports.de_ListEncoderConfigurationsCommand = exports.de_ListCompositionsCommand = exports.de_GetStorageConfigurationCommand = exports.de_GetStageSessionCommand = exports.de_GetStageCommand = exports.de_GetParticipantCommand = exports.de_GetEncoderConfigurationCommand = exports.de_GetCompositionCommand = exports.de_DisconnectParticipantCommand = exports.de_DeleteStorageConfigurationCommand = exports.de_DeleteStageCommand = exports.de_DeleteEncoderConfigurationCommand = exports.de_CreateStorageConfigurationCommand = exports.de_CreateStageCommand = exports.de_CreateParticipantTokenCommand = exports.de_CreateEncoderConfigurationCommand = exports.se_UpdateStageCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopCompositionCommand = exports.se_StartCompositionCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStorageConfigurationsCommand = exports.se_ListStageSessionsCommand = exports.se_ListStagesCommand = exports.se_ListParticipantsCommand = exports.se_ListParticipantEventsCommand = exports.se_ListEncoderConfigurationsCommand = exports.se_ListCompositionsCommand = exports.se_GetStorageConfigurationCommand = exports.se_GetStageSessionCommand = exports.se_GetStageCommand = exports.se_GetParticipantCommand = exports.se_GetEncoderConfigurationCommand = exports.se_GetCompositionCommand = exports.se_DisconnectParticipantCommand = exports.se_DeleteStorageConfigurationCommand = exports.se_DeleteStageCommand = exports.se_DeleteEncoderConfigurationCommand = exports.se_CreateStorageConfigurationCommand = exports.se_CreateStageCommand = exports.se_CreateParticipantTokenCommand = exports.se_CreateEncoderConfigurationCommand = void 0;
|
|
4
|
+
exports.de_UpdateStageCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopCompositionCommand = void 0;
|
|
4
5
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
const uuid_1 = require("uuid");
|
|
6
8
|
const IVSRealTimeServiceException_1 = require("../models/IVSRealTimeServiceException");
|
|
7
9
|
const models_0_1 = require("../models/models_0");
|
|
10
|
+
const se_CreateEncoderConfigurationCommand = async (input, context) => {
|
|
11
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
12
|
+
const headers = {
|
|
13
|
+
"content-type": "application/json",
|
|
14
|
+
};
|
|
15
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateEncoderConfiguration";
|
|
16
|
+
let body;
|
|
17
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
|
+
name: [],
|
|
19
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
20
|
+
video: (_) => se_Video(_, context),
|
|
21
|
+
}));
|
|
22
|
+
return new protocol_http_1.HttpRequest({
|
|
23
|
+
protocol,
|
|
24
|
+
hostname,
|
|
25
|
+
port,
|
|
26
|
+
method: "POST",
|
|
27
|
+
headers,
|
|
28
|
+
path: resolvedPath,
|
|
29
|
+
body,
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
exports.se_CreateEncoderConfigurationCommand = se_CreateEncoderConfigurationCommand;
|
|
8
33
|
const se_CreateParticipantTokenCommand = async (input, context) => {
|
|
9
34
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
35
|
const headers = {
|
|
@@ -53,6 +78,50 @@ const se_CreateStageCommand = async (input, context) => {
|
|
|
53
78
|
});
|
|
54
79
|
};
|
|
55
80
|
exports.se_CreateStageCommand = se_CreateStageCommand;
|
|
81
|
+
const se_CreateStorageConfigurationCommand = async (input, context) => {
|
|
82
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
83
|
+
const headers = {
|
|
84
|
+
"content-type": "application/json",
|
|
85
|
+
};
|
|
86
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateStorageConfiguration";
|
|
87
|
+
let body;
|
|
88
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
89
|
+
name: [],
|
|
90
|
+
s3: (_) => (0, smithy_client_1._json)(_),
|
|
91
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
92
|
+
}));
|
|
93
|
+
return new protocol_http_1.HttpRequest({
|
|
94
|
+
protocol,
|
|
95
|
+
hostname,
|
|
96
|
+
port,
|
|
97
|
+
method: "POST",
|
|
98
|
+
headers,
|
|
99
|
+
path: resolvedPath,
|
|
100
|
+
body,
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
exports.se_CreateStorageConfigurationCommand = se_CreateStorageConfigurationCommand;
|
|
104
|
+
const se_DeleteEncoderConfigurationCommand = async (input, context) => {
|
|
105
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
106
|
+
const headers = {
|
|
107
|
+
"content-type": "application/json",
|
|
108
|
+
};
|
|
109
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteEncoderConfiguration";
|
|
110
|
+
let body;
|
|
111
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
112
|
+
arn: [],
|
|
113
|
+
}));
|
|
114
|
+
return new protocol_http_1.HttpRequest({
|
|
115
|
+
protocol,
|
|
116
|
+
hostname,
|
|
117
|
+
port,
|
|
118
|
+
method: "POST",
|
|
119
|
+
headers,
|
|
120
|
+
path: resolvedPath,
|
|
121
|
+
body,
|
|
122
|
+
});
|
|
123
|
+
};
|
|
124
|
+
exports.se_DeleteEncoderConfigurationCommand = se_DeleteEncoderConfigurationCommand;
|
|
56
125
|
const se_DeleteStageCommand = async (input, context) => {
|
|
57
126
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
58
127
|
const headers = {
|
|
@@ -74,6 +143,27 @@ const se_DeleteStageCommand = async (input, context) => {
|
|
|
74
143
|
});
|
|
75
144
|
};
|
|
76
145
|
exports.se_DeleteStageCommand = se_DeleteStageCommand;
|
|
146
|
+
const se_DeleteStorageConfigurationCommand = async (input, context) => {
|
|
147
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
148
|
+
const headers = {
|
|
149
|
+
"content-type": "application/json",
|
|
150
|
+
};
|
|
151
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteStorageConfiguration";
|
|
152
|
+
let body;
|
|
153
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
154
|
+
arn: [],
|
|
155
|
+
}));
|
|
156
|
+
return new protocol_http_1.HttpRequest({
|
|
157
|
+
protocol,
|
|
158
|
+
hostname,
|
|
159
|
+
port,
|
|
160
|
+
method: "POST",
|
|
161
|
+
headers,
|
|
162
|
+
path: resolvedPath,
|
|
163
|
+
body,
|
|
164
|
+
});
|
|
165
|
+
};
|
|
166
|
+
exports.se_DeleteStorageConfigurationCommand = se_DeleteStorageConfigurationCommand;
|
|
77
167
|
const se_DisconnectParticipantCommand = async (input, context) => {
|
|
78
168
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
79
169
|
const headers = {
|
|
@@ -97,6 +187,48 @@ const se_DisconnectParticipantCommand = async (input, context) => {
|
|
|
97
187
|
});
|
|
98
188
|
};
|
|
99
189
|
exports.se_DisconnectParticipantCommand = se_DisconnectParticipantCommand;
|
|
190
|
+
const se_GetCompositionCommand = async (input, context) => {
|
|
191
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
192
|
+
const headers = {
|
|
193
|
+
"content-type": "application/json",
|
|
194
|
+
};
|
|
195
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetComposition";
|
|
196
|
+
let body;
|
|
197
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
198
|
+
arn: [],
|
|
199
|
+
}));
|
|
200
|
+
return new protocol_http_1.HttpRequest({
|
|
201
|
+
protocol,
|
|
202
|
+
hostname,
|
|
203
|
+
port,
|
|
204
|
+
method: "POST",
|
|
205
|
+
headers,
|
|
206
|
+
path: resolvedPath,
|
|
207
|
+
body,
|
|
208
|
+
});
|
|
209
|
+
};
|
|
210
|
+
exports.se_GetCompositionCommand = se_GetCompositionCommand;
|
|
211
|
+
const se_GetEncoderConfigurationCommand = async (input, context) => {
|
|
212
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
213
|
+
const headers = {
|
|
214
|
+
"content-type": "application/json",
|
|
215
|
+
};
|
|
216
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetEncoderConfiguration";
|
|
217
|
+
let body;
|
|
218
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
219
|
+
arn: [],
|
|
220
|
+
}));
|
|
221
|
+
return new protocol_http_1.HttpRequest({
|
|
222
|
+
protocol,
|
|
223
|
+
hostname,
|
|
224
|
+
port,
|
|
225
|
+
method: "POST",
|
|
226
|
+
headers,
|
|
227
|
+
path: resolvedPath,
|
|
228
|
+
body,
|
|
229
|
+
});
|
|
230
|
+
};
|
|
231
|
+
exports.se_GetEncoderConfigurationCommand = se_GetEncoderConfigurationCommand;
|
|
100
232
|
const se_GetParticipantCommand = async (input, context) => {
|
|
101
233
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
102
234
|
const headers = {
|
|
@@ -163,6 +295,73 @@ const se_GetStageSessionCommand = async (input, context) => {
|
|
|
163
295
|
});
|
|
164
296
|
};
|
|
165
297
|
exports.se_GetStageSessionCommand = se_GetStageSessionCommand;
|
|
298
|
+
const se_GetStorageConfigurationCommand = async (input, context) => {
|
|
299
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
300
|
+
const headers = {
|
|
301
|
+
"content-type": "application/json",
|
|
302
|
+
};
|
|
303
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetStorageConfiguration";
|
|
304
|
+
let body;
|
|
305
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
306
|
+
arn: [],
|
|
307
|
+
}));
|
|
308
|
+
return new protocol_http_1.HttpRequest({
|
|
309
|
+
protocol,
|
|
310
|
+
hostname,
|
|
311
|
+
port,
|
|
312
|
+
method: "POST",
|
|
313
|
+
headers,
|
|
314
|
+
path: resolvedPath,
|
|
315
|
+
body,
|
|
316
|
+
});
|
|
317
|
+
};
|
|
318
|
+
exports.se_GetStorageConfigurationCommand = se_GetStorageConfigurationCommand;
|
|
319
|
+
const se_ListCompositionsCommand = async (input, context) => {
|
|
320
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
321
|
+
const headers = {
|
|
322
|
+
"content-type": "application/json",
|
|
323
|
+
};
|
|
324
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListCompositions";
|
|
325
|
+
let body;
|
|
326
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
327
|
+
filterByEncoderConfigurationArn: [],
|
|
328
|
+
filterByStageArn: [],
|
|
329
|
+
maxResults: [],
|
|
330
|
+
nextToken: [],
|
|
331
|
+
}));
|
|
332
|
+
return new protocol_http_1.HttpRequest({
|
|
333
|
+
protocol,
|
|
334
|
+
hostname,
|
|
335
|
+
port,
|
|
336
|
+
method: "POST",
|
|
337
|
+
headers,
|
|
338
|
+
path: resolvedPath,
|
|
339
|
+
body,
|
|
340
|
+
});
|
|
341
|
+
};
|
|
342
|
+
exports.se_ListCompositionsCommand = se_ListCompositionsCommand;
|
|
343
|
+
const se_ListEncoderConfigurationsCommand = async (input, context) => {
|
|
344
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
345
|
+
const headers = {
|
|
346
|
+
"content-type": "application/json",
|
|
347
|
+
};
|
|
348
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListEncoderConfigurations";
|
|
349
|
+
let body;
|
|
350
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
351
|
+
maxResults: [],
|
|
352
|
+
nextToken: [],
|
|
353
|
+
}));
|
|
354
|
+
return new protocol_http_1.HttpRequest({
|
|
355
|
+
protocol,
|
|
356
|
+
hostname,
|
|
357
|
+
port,
|
|
358
|
+
method: "POST",
|
|
359
|
+
headers,
|
|
360
|
+
path: resolvedPath,
|
|
361
|
+
body,
|
|
362
|
+
});
|
|
363
|
+
};
|
|
364
|
+
exports.se_ListEncoderConfigurationsCommand = se_ListEncoderConfigurationsCommand;
|
|
166
365
|
const se_ListParticipantEventsCommand = async (input, context) => {
|
|
167
366
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
168
367
|
const headers = {
|
|
@@ -260,6 +459,28 @@ const se_ListStageSessionsCommand = async (input, context) => {
|
|
|
260
459
|
});
|
|
261
460
|
};
|
|
262
461
|
exports.se_ListStageSessionsCommand = se_ListStageSessionsCommand;
|
|
462
|
+
const se_ListStorageConfigurationsCommand = async (input, context) => {
|
|
463
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
464
|
+
const headers = {
|
|
465
|
+
"content-type": "application/json",
|
|
466
|
+
};
|
|
467
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListStorageConfigurations";
|
|
468
|
+
let body;
|
|
469
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
470
|
+
maxResults: [],
|
|
471
|
+
nextToken: [],
|
|
472
|
+
}));
|
|
473
|
+
return new protocol_http_1.HttpRequest({
|
|
474
|
+
protocol,
|
|
475
|
+
hostname,
|
|
476
|
+
port,
|
|
477
|
+
method: "POST",
|
|
478
|
+
headers,
|
|
479
|
+
path: resolvedPath,
|
|
480
|
+
body,
|
|
481
|
+
});
|
|
482
|
+
};
|
|
483
|
+
exports.se_ListStorageConfigurationsCommand = se_ListStorageConfigurationsCommand;
|
|
263
484
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
264
485
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
265
486
|
const headers = {};
|
|
@@ -277,6 +498,52 @@ const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
277
498
|
});
|
|
278
499
|
};
|
|
279
500
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
501
|
+
const se_StartCompositionCommand = async (input, context) => {
|
|
502
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
503
|
+
const headers = {
|
|
504
|
+
"content-type": "application/json",
|
|
505
|
+
};
|
|
506
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartComposition";
|
|
507
|
+
let body;
|
|
508
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
509
|
+
destinations: (_) => (0, smithy_client_1._json)(_),
|
|
510
|
+
idempotencyToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
511
|
+
layout: (_) => (0, smithy_client_1._json)(_),
|
|
512
|
+
stageArn: [],
|
|
513
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
514
|
+
}));
|
|
515
|
+
return new protocol_http_1.HttpRequest({
|
|
516
|
+
protocol,
|
|
517
|
+
hostname,
|
|
518
|
+
port,
|
|
519
|
+
method: "POST",
|
|
520
|
+
headers,
|
|
521
|
+
path: resolvedPath,
|
|
522
|
+
body,
|
|
523
|
+
});
|
|
524
|
+
};
|
|
525
|
+
exports.se_StartCompositionCommand = se_StartCompositionCommand;
|
|
526
|
+
const se_StopCompositionCommand = async (input, context) => {
|
|
527
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
528
|
+
const headers = {
|
|
529
|
+
"content-type": "application/json",
|
|
530
|
+
};
|
|
531
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StopComposition";
|
|
532
|
+
let body;
|
|
533
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
534
|
+
arn: [],
|
|
535
|
+
}));
|
|
536
|
+
return new protocol_http_1.HttpRequest({
|
|
537
|
+
protocol,
|
|
538
|
+
hostname,
|
|
539
|
+
port,
|
|
540
|
+
method: "POST",
|
|
541
|
+
headers,
|
|
542
|
+
path: resolvedPath,
|
|
543
|
+
body,
|
|
544
|
+
});
|
|
545
|
+
};
|
|
546
|
+
exports.se_StopCompositionCommand = se_StopCompositionCommand;
|
|
280
547
|
const se_TagResourceCommand = async (input, context) => {
|
|
281
548
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
282
549
|
const headers = {
|
|
@@ -345,22 +612,22 @@ const se_UpdateStageCommand = async (input, context) => {
|
|
|
345
612
|
});
|
|
346
613
|
};
|
|
347
614
|
exports.se_UpdateStageCommand = se_UpdateStageCommand;
|
|
348
|
-
const
|
|
615
|
+
const de_CreateEncoderConfigurationCommand = async (output, context) => {
|
|
349
616
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
350
|
-
return
|
|
617
|
+
return de_CreateEncoderConfigurationCommandError(output, context);
|
|
351
618
|
}
|
|
352
619
|
const contents = (0, smithy_client_1.map)({
|
|
353
620
|
$metadata: deserializeMetadata(output),
|
|
354
621
|
});
|
|
355
622
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
356
623
|
const doc = (0, smithy_client_1.take)(data, {
|
|
357
|
-
|
|
624
|
+
encoderConfiguration: (_) => de_EncoderConfiguration(_, context),
|
|
358
625
|
});
|
|
359
626
|
Object.assign(contents, doc);
|
|
360
627
|
return contents;
|
|
361
628
|
};
|
|
362
|
-
exports.
|
|
363
|
-
const
|
|
629
|
+
exports.de_CreateEncoderConfigurationCommand = de_CreateEncoderConfigurationCommand;
|
|
630
|
+
const de_CreateEncoderConfigurationCommandError = async (output, context) => {
|
|
364
631
|
const parsedOutput = {
|
|
365
632
|
...output,
|
|
366
633
|
body: await parseErrorBody(output.body, context),
|
|
@@ -370,15 +637,552 @@ const de_CreateParticipantTokenCommandError = async (output, context) => {
|
|
|
370
637
|
case "AccessDeniedException":
|
|
371
638
|
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
372
639
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
640
|
+
case "ConflictException":
|
|
641
|
+
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
642
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
643
|
+
case "InternalServerException":
|
|
644
|
+
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
645
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
373
646
|
case "PendingVerification":
|
|
374
647
|
case "com.amazonaws.ivsrealtime#PendingVerification":
|
|
375
648
|
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
376
649
|
case "ResourceNotFoundException":
|
|
377
650
|
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
378
651
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
379
|
-
case "ServiceQuotaExceededException":
|
|
380
|
-
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
381
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
652
|
+
case "ServiceQuotaExceededException":
|
|
653
|
+
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
654
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
655
|
+
case "ValidationException":
|
|
656
|
+
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
657
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
658
|
+
default:
|
|
659
|
+
const parsedBody = parsedOutput.body;
|
|
660
|
+
return throwDefaultError({
|
|
661
|
+
output,
|
|
662
|
+
parsedBody,
|
|
663
|
+
errorCode,
|
|
664
|
+
});
|
|
665
|
+
}
|
|
666
|
+
};
|
|
667
|
+
const de_CreateParticipantTokenCommand = async (output, context) => {
|
|
668
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
669
|
+
return de_CreateParticipantTokenCommandError(output, context);
|
|
670
|
+
}
|
|
671
|
+
const contents = (0, smithy_client_1.map)({
|
|
672
|
+
$metadata: deserializeMetadata(output),
|
|
673
|
+
});
|
|
674
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
675
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
676
|
+
participantToken: (_) => de_ParticipantToken(_, context),
|
|
677
|
+
});
|
|
678
|
+
Object.assign(contents, doc);
|
|
679
|
+
return contents;
|
|
680
|
+
};
|
|
681
|
+
exports.de_CreateParticipantTokenCommand = de_CreateParticipantTokenCommand;
|
|
682
|
+
const de_CreateParticipantTokenCommandError = async (output, context) => {
|
|
683
|
+
const parsedOutput = {
|
|
684
|
+
...output,
|
|
685
|
+
body: await parseErrorBody(output.body, context),
|
|
686
|
+
};
|
|
687
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
688
|
+
switch (errorCode) {
|
|
689
|
+
case "AccessDeniedException":
|
|
690
|
+
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
691
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
692
|
+
case "PendingVerification":
|
|
693
|
+
case "com.amazonaws.ivsrealtime#PendingVerification":
|
|
694
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
695
|
+
case "ResourceNotFoundException":
|
|
696
|
+
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
697
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
698
|
+
case "ServiceQuotaExceededException":
|
|
699
|
+
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
700
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
701
|
+
case "ValidationException":
|
|
702
|
+
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
703
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
704
|
+
default:
|
|
705
|
+
const parsedBody = parsedOutput.body;
|
|
706
|
+
return throwDefaultError({
|
|
707
|
+
output,
|
|
708
|
+
parsedBody,
|
|
709
|
+
errorCode,
|
|
710
|
+
});
|
|
711
|
+
}
|
|
712
|
+
};
|
|
713
|
+
const de_CreateStageCommand = async (output, context) => {
|
|
714
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
715
|
+
return de_CreateStageCommandError(output, context);
|
|
716
|
+
}
|
|
717
|
+
const contents = (0, smithy_client_1.map)({
|
|
718
|
+
$metadata: deserializeMetadata(output),
|
|
719
|
+
});
|
|
720
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
721
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
722
|
+
participantTokens: (_) => de_ParticipantTokenList(_, context),
|
|
723
|
+
stage: smithy_client_1._json,
|
|
724
|
+
});
|
|
725
|
+
Object.assign(contents, doc);
|
|
726
|
+
return contents;
|
|
727
|
+
};
|
|
728
|
+
exports.de_CreateStageCommand = de_CreateStageCommand;
|
|
729
|
+
const de_CreateStageCommandError = async (output, context) => {
|
|
730
|
+
const parsedOutput = {
|
|
731
|
+
...output,
|
|
732
|
+
body: await parseErrorBody(output.body, context),
|
|
733
|
+
};
|
|
734
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
735
|
+
switch (errorCode) {
|
|
736
|
+
case "AccessDeniedException":
|
|
737
|
+
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
738
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
739
|
+
case "PendingVerification":
|
|
740
|
+
case "com.amazonaws.ivsrealtime#PendingVerification":
|
|
741
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
742
|
+
case "ServiceQuotaExceededException":
|
|
743
|
+
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
744
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
745
|
+
case "ValidationException":
|
|
746
|
+
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
747
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
748
|
+
default:
|
|
749
|
+
const parsedBody = parsedOutput.body;
|
|
750
|
+
return throwDefaultError({
|
|
751
|
+
output,
|
|
752
|
+
parsedBody,
|
|
753
|
+
errorCode,
|
|
754
|
+
});
|
|
755
|
+
}
|
|
756
|
+
};
|
|
757
|
+
const de_CreateStorageConfigurationCommand = async (output, context) => {
|
|
758
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
759
|
+
return de_CreateStorageConfigurationCommandError(output, context);
|
|
760
|
+
}
|
|
761
|
+
const contents = (0, smithy_client_1.map)({
|
|
762
|
+
$metadata: deserializeMetadata(output),
|
|
763
|
+
});
|
|
764
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
765
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
766
|
+
storageConfiguration: smithy_client_1._json,
|
|
767
|
+
});
|
|
768
|
+
Object.assign(contents, doc);
|
|
769
|
+
return contents;
|
|
770
|
+
};
|
|
771
|
+
exports.de_CreateStorageConfigurationCommand = de_CreateStorageConfigurationCommand;
|
|
772
|
+
const de_CreateStorageConfigurationCommandError = async (output, context) => {
|
|
773
|
+
const parsedOutput = {
|
|
774
|
+
...output,
|
|
775
|
+
body: await parseErrorBody(output.body, context),
|
|
776
|
+
};
|
|
777
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
778
|
+
switch (errorCode) {
|
|
779
|
+
case "AccessDeniedException":
|
|
780
|
+
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
781
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
782
|
+
case "ConflictException":
|
|
783
|
+
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
784
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
785
|
+
case "InternalServerException":
|
|
786
|
+
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
787
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
788
|
+
case "PendingVerification":
|
|
789
|
+
case "com.amazonaws.ivsrealtime#PendingVerification":
|
|
790
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
791
|
+
case "ResourceNotFoundException":
|
|
792
|
+
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
793
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
794
|
+
case "ServiceQuotaExceededException":
|
|
795
|
+
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
796
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
797
|
+
case "ValidationException":
|
|
798
|
+
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
799
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
800
|
+
default:
|
|
801
|
+
const parsedBody = parsedOutput.body;
|
|
802
|
+
return throwDefaultError({
|
|
803
|
+
output,
|
|
804
|
+
parsedBody,
|
|
805
|
+
errorCode,
|
|
806
|
+
});
|
|
807
|
+
}
|
|
808
|
+
};
|
|
809
|
+
const de_DeleteEncoderConfigurationCommand = async (output, context) => {
|
|
810
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
811
|
+
return de_DeleteEncoderConfigurationCommandError(output, context);
|
|
812
|
+
}
|
|
813
|
+
const contents = (0, smithy_client_1.map)({
|
|
814
|
+
$metadata: deserializeMetadata(output),
|
|
815
|
+
});
|
|
816
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
817
|
+
return contents;
|
|
818
|
+
};
|
|
819
|
+
exports.de_DeleteEncoderConfigurationCommand = de_DeleteEncoderConfigurationCommand;
|
|
820
|
+
const de_DeleteEncoderConfigurationCommandError = async (output, context) => {
|
|
821
|
+
const parsedOutput = {
|
|
822
|
+
...output,
|
|
823
|
+
body: await parseErrorBody(output.body, context),
|
|
824
|
+
};
|
|
825
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
826
|
+
switch (errorCode) {
|
|
827
|
+
case "AccessDeniedException":
|
|
828
|
+
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
829
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
830
|
+
case "ConflictException":
|
|
831
|
+
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
832
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
833
|
+
case "InternalServerException":
|
|
834
|
+
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
835
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
836
|
+
case "ResourceNotFoundException":
|
|
837
|
+
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
838
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
839
|
+
case "ServiceQuotaExceededException":
|
|
840
|
+
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
841
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
842
|
+
case "ValidationException":
|
|
843
|
+
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
844
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
845
|
+
default:
|
|
846
|
+
const parsedBody = parsedOutput.body;
|
|
847
|
+
return throwDefaultError({
|
|
848
|
+
output,
|
|
849
|
+
parsedBody,
|
|
850
|
+
errorCode,
|
|
851
|
+
});
|
|
852
|
+
}
|
|
853
|
+
};
|
|
854
|
+
const de_DeleteStageCommand = async (output, context) => {
|
|
855
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
856
|
+
return de_DeleteStageCommandError(output, context);
|
|
857
|
+
}
|
|
858
|
+
const contents = (0, smithy_client_1.map)({
|
|
859
|
+
$metadata: deserializeMetadata(output),
|
|
860
|
+
});
|
|
861
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
862
|
+
return contents;
|
|
863
|
+
};
|
|
864
|
+
exports.de_DeleteStageCommand = de_DeleteStageCommand;
|
|
865
|
+
const de_DeleteStageCommandError = async (output, context) => {
|
|
866
|
+
const parsedOutput = {
|
|
867
|
+
...output,
|
|
868
|
+
body: await parseErrorBody(output.body, context),
|
|
869
|
+
};
|
|
870
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
871
|
+
switch (errorCode) {
|
|
872
|
+
case "AccessDeniedException":
|
|
873
|
+
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
874
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
875
|
+
case "ConflictException":
|
|
876
|
+
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
877
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
878
|
+
case "PendingVerification":
|
|
879
|
+
case "com.amazonaws.ivsrealtime#PendingVerification":
|
|
880
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
881
|
+
case "ResourceNotFoundException":
|
|
882
|
+
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
883
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
884
|
+
case "ValidationException":
|
|
885
|
+
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
886
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
887
|
+
default:
|
|
888
|
+
const parsedBody = parsedOutput.body;
|
|
889
|
+
return throwDefaultError({
|
|
890
|
+
output,
|
|
891
|
+
parsedBody,
|
|
892
|
+
errorCode,
|
|
893
|
+
});
|
|
894
|
+
}
|
|
895
|
+
};
|
|
896
|
+
const de_DeleteStorageConfigurationCommand = async (output, context) => {
|
|
897
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
898
|
+
return de_DeleteStorageConfigurationCommandError(output, context);
|
|
899
|
+
}
|
|
900
|
+
const contents = (0, smithy_client_1.map)({
|
|
901
|
+
$metadata: deserializeMetadata(output),
|
|
902
|
+
});
|
|
903
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
904
|
+
return contents;
|
|
905
|
+
};
|
|
906
|
+
exports.de_DeleteStorageConfigurationCommand = de_DeleteStorageConfigurationCommand;
|
|
907
|
+
const de_DeleteStorageConfigurationCommandError = async (output, context) => {
|
|
908
|
+
const parsedOutput = {
|
|
909
|
+
...output,
|
|
910
|
+
body: await parseErrorBody(output.body, context),
|
|
911
|
+
};
|
|
912
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
913
|
+
switch (errorCode) {
|
|
914
|
+
case "AccessDeniedException":
|
|
915
|
+
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
916
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
917
|
+
case "ConflictException":
|
|
918
|
+
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
919
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
920
|
+
case "InternalServerException":
|
|
921
|
+
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
922
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
923
|
+
case "ResourceNotFoundException":
|
|
924
|
+
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
925
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
926
|
+
case "ServiceQuotaExceededException":
|
|
927
|
+
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
928
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
929
|
+
case "ValidationException":
|
|
930
|
+
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
931
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
932
|
+
default:
|
|
933
|
+
const parsedBody = parsedOutput.body;
|
|
934
|
+
return throwDefaultError({
|
|
935
|
+
output,
|
|
936
|
+
parsedBody,
|
|
937
|
+
errorCode,
|
|
938
|
+
});
|
|
939
|
+
}
|
|
940
|
+
};
|
|
941
|
+
const de_DisconnectParticipantCommand = async (output, context) => {
|
|
942
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
943
|
+
return de_DisconnectParticipantCommandError(output, context);
|
|
944
|
+
}
|
|
945
|
+
const contents = (0, smithy_client_1.map)({
|
|
946
|
+
$metadata: deserializeMetadata(output),
|
|
947
|
+
});
|
|
948
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
949
|
+
return contents;
|
|
950
|
+
};
|
|
951
|
+
exports.de_DisconnectParticipantCommand = de_DisconnectParticipantCommand;
|
|
952
|
+
const de_DisconnectParticipantCommandError = async (output, context) => {
|
|
953
|
+
const parsedOutput = {
|
|
954
|
+
...output,
|
|
955
|
+
body: await parseErrorBody(output.body, context),
|
|
956
|
+
};
|
|
957
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
958
|
+
switch (errorCode) {
|
|
959
|
+
case "AccessDeniedException":
|
|
960
|
+
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
961
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
962
|
+
case "PendingVerification":
|
|
963
|
+
case "com.amazonaws.ivsrealtime#PendingVerification":
|
|
964
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
965
|
+
case "ResourceNotFoundException":
|
|
966
|
+
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
967
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
968
|
+
case "ValidationException":
|
|
969
|
+
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
970
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
971
|
+
default:
|
|
972
|
+
const parsedBody = parsedOutput.body;
|
|
973
|
+
return throwDefaultError({
|
|
974
|
+
output,
|
|
975
|
+
parsedBody,
|
|
976
|
+
errorCode,
|
|
977
|
+
});
|
|
978
|
+
}
|
|
979
|
+
};
|
|
980
|
+
const de_GetCompositionCommand = async (output, context) => {
|
|
981
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
982
|
+
return de_GetCompositionCommandError(output, context);
|
|
983
|
+
}
|
|
984
|
+
const contents = (0, smithy_client_1.map)({
|
|
985
|
+
$metadata: deserializeMetadata(output),
|
|
986
|
+
});
|
|
987
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
988
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
989
|
+
composition: (_) => de_Composition(_, context),
|
|
990
|
+
});
|
|
991
|
+
Object.assign(contents, doc);
|
|
992
|
+
return contents;
|
|
993
|
+
};
|
|
994
|
+
exports.de_GetCompositionCommand = de_GetCompositionCommand;
|
|
995
|
+
const de_GetCompositionCommandError = async (output, context) => {
|
|
996
|
+
const parsedOutput = {
|
|
997
|
+
...output,
|
|
998
|
+
body: await parseErrorBody(output.body, context),
|
|
999
|
+
};
|
|
1000
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1001
|
+
switch (errorCode) {
|
|
1002
|
+
case "AccessDeniedException":
|
|
1003
|
+
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
1004
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1005
|
+
case "ConflictException":
|
|
1006
|
+
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
1007
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1008
|
+
case "InternalServerException":
|
|
1009
|
+
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
1010
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1011
|
+
case "ResourceNotFoundException":
|
|
1012
|
+
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
1013
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1014
|
+
case "ServiceQuotaExceededException":
|
|
1015
|
+
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
1016
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1017
|
+
case "ValidationException":
|
|
1018
|
+
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
1019
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1020
|
+
default:
|
|
1021
|
+
const parsedBody = parsedOutput.body;
|
|
1022
|
+
return throwDefaultError({
|
|
1023
|
+
output,
|
|
1024
|
+
parsedBody,
|
|
1025
|
+
errorCode,
|
|
1026
|
+
});
|
|
1027
|
+
}
|
|
1028
|
+
};
|
|
1029
|
+
const de_GetEncoderConfigurationCommand = async (output, context) => {
|
|
1030
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1031
|
+
return de_GetEncoderConfigurationCommandError(output, context);
|
|
1032
|
+
}
|
|
1033
|
+
const contents = (0, smithy_client_1.map)({
|
|
1034
|
+
$metadata: deserializeMetadata(output),
|
|
1035
|
+
});
|
|
1036
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1037
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1038
|
+
encoderConfiguration: (_) => de_EncoderConfiguration(_, context),
|
|
1039
|
+
});
|
|
1040
|
+
Object.assign(contents, doc);
|
|
1041
|
+
return contents;
|
|
1042
|
+
};
|
|
1043
|
+
exports.de_GetEncoderConfigurationCommand = de_GetEncoderConfigurationCommand;
|
|
1044
|
+
const de_GetEncoderConfigurationCommandError = async (output, context) => {
|
|
1045
|
+
const parsedOutput = {
|
|
1046
|
+
...output,
|
|
1047
|
+
body: await parseErrorBody(output.body, context),
|
|
1048
|
+
};
|
|
1049
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1050
|
+
switch (errorCode) {
|
|
1051
|
+
case "AccessDeniedException":
|
|
1052
|
+
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
1053
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1054
|
+
case "ConflictException":
|
|
1055
|
+
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
1056
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1057
|
+
case "InternalServerException":
|
|
1058
|
+
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
1059
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1060
|
+
case "ResourceNotFoundException":
|
|
1061
|
+
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
1062
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1063
|
+
case "ServiceQuotaExceededException":
|
|
1064
|
+
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
1065
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1066
|
+
case "ValidationException":
|
|
1067
|
+
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
1068
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1069
|
+
default:
|
|
1070
|
+
const parsedBody = parsedOutput.body;
|
|
1071
|
+
return throwDefaultError({
|
|
1072
|
+
output,
|
|
1073
|
+
parsedBody,
|
|
1074
|
+
errorCode,
|
|
1075
|
+
});
|
|
1076
|
+
}
|
|
1077
|
+
};
|
|
1078
|
+
const de_GetParticipantCommand = async (output, context) => {
|
|
1079
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1080
|
+
return de_GetParticipantCommandError(output, context);
|
|
1081
|
+
}
|
|
1082
|
+
const contents = (0, smithy_client_1.map)({
|
|
1083
|
+
$metadata: deserializeMetadata(output),
|
|
1084
|
+
});
|
|
1085
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1086
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1087
|
+
participant: (_) => de_Participant(_, context),
|
|
1088
|
+
});
|
|
1089
|
+
Object.assign(contents, doc);
|
|
1090
|
+
return contents;
|
|
1091
|
+
};
|
|
1092
|
+
exports.de_GetParticipantCommand = de_GetParticipantCommand;
|
|
1093
|
+
const de_GetParticipantCommandError = async (output, context) => {
|
|
1094
|
+
const parsedOutput = {
|
|
1095
|
+
...output,
|
|
1096
|
+
body: await parseErrorBody(output.body, context),
|
|
1097
|
+
};
|
|
1098
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1099
|
+
switch (errorCode) {
|
|
1100
|
+
case "AccessDeniedException":
|
|
1101
|
+
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
1102
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1103
|
+
case "ResourceNotFoundException":
|
|
1104
|
+
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
1105
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1106
|
+
case "ValidationException":
|
|
1107
|
+
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
1108
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1109
|
+
default:
|
|
1110
|
+
const parsedBody = parsedOutput.body;
|
|
1111
|
+
return throwDefaultError({
|
|
1112
|
+
output,
|
|
1113
|
+
parsedBody,
|
|
1114
|
+
errorCode,
|
|
1115
|
+
});
|
|
1116
|
+
}
|
|
1117
|
+
};
|
|
1118
|
+
const de_GetStageCommand = async (output, context) => {
|
|
1119
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1120
|
+
return de_GetStageCommandError(output, context);
|
|
1121
|
+
}
|
|
1122
|
+
const contents = (0, smithy_client_1.map)({
|
|
1123
|
+
$metadata: deserializeMetadata(output),
|
|
1124
|
+
});
|
|
1125
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1126
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1127
|
+
stage: smithy_client_1._json,
|
|
1128
|
+
});
|
|
1129
|
+
Object.assign(contents, doc);
|
|
1130
|
+
return contents;
|
|
1131
|
+
};
|
|
1132
|
+
exports.de_GetStageCommand = de_GetStageCommand;
|
|
1133
|
+
const de_GetStageCommandError = async (output, context) => {
|
|
1134
|
+
const parsedOutput = {
|
|
1135
|
+
...output,
|
|
1136
|
+
body: await parseErrorBody(output.body, context),
|
|
1137
|
+
};
|
|
1138
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1139
|
+
switch (errorCode) {
|
|
1140
|
+
case "AccessDeniedException":
|
|
1141
|
+
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
1142
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1143
|
+
case "ResourceNotFoundException":
|
|
1144
|
+
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
1145
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1146
|
+
case "ValidationException":
|
|
1147
|
+
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
1148
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1149
|
+
default:
|
|
1150
|
+
const parsedBody = parsedOutput.body;
|
|
1151
|
+
return throwDefaultError({
|
|
1152
|
+
output,
|
|
1153
|
+
parsedBody,
|
|
1154
|
+
errorCode,
|
|
1155
|
+
});
|
|
1156
|
+
}
|
|
1157
|
+
};
|
|
1158
|
+
const de_GetStageSessionCommand = async (output, context) => {
|
|
1159
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1160
|
+
return de_GetStageSessionCommandError(output, context);
|
|
1161
|
+
}
|
|
1162
|
+
const contents = (0, smithy_client_1.map)({
|
|
1163
|
+
$metadata: deserializeMetadata(output),
|
|
1164
|
+
});
|
|
1165
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1166
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1167
|
+
stageSession: (_) => de_StageSession(_, context),
|
|
1168
|
+
});
|
|
1169
|
+
Object.assign(contents, doc);
|
|
1170
|
+
return contents;
|
|
1171
|
+
};
|
|
1172
|
+
exports.de_GetStageSessionCommand = de_GetStageSessionCommand;
|
|
1173
|
+
const de_GetStageSessionCommandError = async (output, context) => {
|
|
1174
|
+
const parsedOutput = {
|
|
1175
|
+
...output,
|
|
1176
|
+
body: await parseErrorBody(output.body, context),
|
|
1177
|
+
};
|
|
1178
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1179
|
+
switch (errorCode) {
|
|
1180
|
+
case "AccessDeniedException":
|
|
1181
|
+
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
1182
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1183
|
+
case "ResourceNotFoundException":
|
|
1184
|
+
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
1185
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
382
1186
|
case "ValidationException":
|
|
383
1187
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
384
1188
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -391,23 +1195,22 @@ const de_CreateParticipantTokenCommandError = async (output, context) => {
|
|
|
391
1195
|
});
|
|
392
1196
|
}
|
|
393
1197
|
};
|
|
394
|
-
const
|
|
1198
|
+
const de_GetStorageConfigurationCommand = async (output, context) => {
|
|
395
1199
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
396
|
-
return
|
|
1200
|
+
return de_GetStorageConfigurationCommandError(output, context);
|
|
397
1201
|
}
|
|
398
1202
|
const contents = (0, smithy_client_1.map)({
|
|
399
1203
|
$metadata: deserializeMetadata(output),
|
|
400
1204
|
});
|
|
401
1205
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
402
1206
|
const doc = (0, smithy_client_1.take)(data, {
|
|
403
|
-
|
|
404
|
-
stage: smithy_client_1._json,
|
|
1207
|
+
storageConfiguration: smithy_client_1._json,
|
|
405
1208
|
});
|
|
406
1209
|
Object.assign(contents, doc);
|
|
407
1210
|
return contents;
|
|
408
1211
|
};
|
|
409
|
-
exports.
|
|
410
|
-
const
|
|
1212
|
+
exports.de_GetStorageConfigurationCommand = de_GetStorageConfigurationCommand;
|
|
1213
|
+
const de_GetStorageConfigurationCommandError = async (output, context) => {
|
|
411
1214
|
const parsedOutput = {
|
|
412
1215
|
...output,
|
|
413
1216
|
body: await parseErrorBody(output.body, context),
|
|
@@ -417,9 +1220,15 @@ const de_CreateStageCommandError = async (output, context) => {
|
|
|
417
1220
|
case "AccessDeniedException":
|
|
418
1221
|
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
419
1222
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
420
|
-
case "
|
|
421
|
-
case "com.amazonaws.ivsrealtime#
|
|
422
|
-
throw await
|
|
1223
|
+
case "ConflictException":
|
|
1224
|
+
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
1225
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1226
|
+
case "InternalServerException":
|
|
1227
|
+
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
1228
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1229
|
+
case "ResourceNotFoundException":
|
|
1230
|
+
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
1231
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
423
1232
|
case "ServiceQuotaExceededException":
|
|
424
1233
|
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
425
1234
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
@@ -435,18 +1244,23 @@ const de_CreateStageCommandError = async (output, context) => {
|
|
|
435
1244
|
});
|
|
436
1245
|
}
|
|
437
1246
|
};
|
|
438
|
-
const
|
|
1247
|
+
const de_ListCompositionsCommand = async (output, context) => {
|
|
439
1248
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
440
|
-
return
|
|
1249
|
+
return de_ListCompositionsCommandError(output, context);
|
|
441
1250
|
}
|
|
442
1251
|
const contents = (0, smithy_client_1.map)({
|
|
443
1252
|
$metadata: deserializeMetadata(output),
|
|
444
1253
|
});
|
|
445
|
-
|
|
1254
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1255
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1256
|
+
compositions: (_) => de_CompositionSummaryList(_, context),
|
|
1257
|
+
nextToken: smithy_client_1.expectString,
|
|
1258
|
+
});
|
|
1259
|
+
Object.assign(contents, doc);
|
|
446
1260
|
return contents;
|
|
447
1261
|
};
|
|
448
|
-
exports.
|
|
449
|
-
const
|
|
1262
|
+
exports.de_ListCompositionsCommand = de_ListCompositionsCommand;
|
|
1263
|
+
const de_ListCompositionsCommandError = async (output, context) => {
|
|
450
1264
|
const parsedOutput = {
|
|
451
1265
|
...output,
|
|
452
1266
|
body: await parseErrorBody(output.body, context),
|
|
@@ -459,12 +1273,12 @@ const de_DeleteStageCommandError = async (output, context) => {
|
|
|
459
1273
|
case "ConflictException":
|
|
460
1274
|
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
461
1275
|
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
462
|
-
case "
|
|
463
|
-
case "com.amazonaws.ivsrealtime#
|
|
464
|
-
throw await
|
|
465
|
-
case "
|
|
466
|
-
case "com.amazonaws.ivsrealtime#
|
|
467
|
-
throw await
|
|
1276
|
+
case "InternalServerException":
|
|
1277
|
+
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
1278
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1279
|
+
case "ServiceQuotaExceededException":
|
|
1280
|
+
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
1281
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
468
1282
|
case "ValidationException":
|
|
469
1283
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
470
1284
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -477,18 +1291,23 @@ const de_DeleteStageCommandError = async (output, context) => {
|
|
|
477
1291
|
});
|
|
478
1292
|
}
|
|
479
1293
|
};
|
|
480
|
-
const
|
|
1294
|
+
const de_ListEncoderConfigurationsCommand = async (output, context) => {
|
|
481
1295
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
482
|
-
return
|
|
1296
|
+
return de_ListEncoderConfigurationsCommandError(output, context);
|
|
483
1297
|
}
|
|
484
1298
|
const contents = (0, smithy_client_1.map)({
|
|
485
1299
|
$metadata: deserializeMetadata(output),
|
|
486
1300
|
});
|
|
487
|
-
|
|
1301
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1302
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1303
|
+
encoderConfigurations: smithy_client_1._json,
|
|
1304
|
+
nextToken: smithy_client_1.expectString,
|
|
1305
|
+
});
|
|
1306
|
+
Object.assign(contents, doc);
|
|
488
1307
|
return contents;
|
|
489
1308
|
};
|
|
490
|
-
exports.
|
|
491
|
-
const
|
|
1309
|
+
exports.de_ListEncoderConfigurationsCommand = de_ListEncoderConfigurationsCommand;
|
|
1310
|
+
const de_ListEncoderConfigurationsCommandError = async (output, context) => {
|
|
492
1311
|
const parsedOutput = {
|
|
493
1312
|
...output,
|
|
494
1313
|
body: await parseErrorBody(output.body, context),
|
|
@@ -498,12 +1317,15 @@ const de_DisconnectParticipantCommandError = async (output, context) => {
|
|
|
498
1317
|
case "AccessDeniedException":
|
|
499
1318
|
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
500
1319
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
501
|
-
case "
|
|
502
|
-
case "com.amazonaws.ivsrealtime#
|
|
503
|
-
throw await
|
|
504
|
-
case "
|
|
505
|
-
case "com.amazonaws.ivsrealtime#
|
|
506
|
-
throw await
|
|
1320
|
+
case "ConflictException":
|
|
1321
|
+
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
1322
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1323
|
+
case "InternalServerException":
|
|
1324
|
+
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
1325
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1326
|
+
case "ServiceQuotaExceededException":
|
|
1327
|
+
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
1328
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
507
1329
|
case "ValidationException":
|
|
508
1330
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
509
1331
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -516,22 +1338,23 @@ const de_DisconnectParticipantCommandError = async (output, context) => {
|
|
|
516
1338
|
});
|
|
517
1339
|
}
|
|
518
1340
|
};
|
|
519
|
-
const
|
|
1341
|
+
const de_ListParticipantEventsCommand = async (output, context) => {
|
|
520
1342
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
521
|
-
return
|
|
1343
|
+
return de_ListParticipantEventsCommandError(output, context);
|
|
522
1344
|
}
|
|
523
1345
|
const contents = (0, smithy_client_1.map)({
|
|
524
1346
|
$metadata: deserializeMetadata(output),
|
|
525
1347
|
});
|
|
526
1348
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
527
1349
|
const doc = (0, smithy_client_1.take)(data, {
|
|
528
|
-
|
|
1350
|
+
events: (_) => de_EventList(_, context),
|
|
1351
|
+
nextToken: smithy_client_1.expectString,
|
|
529
1352
|
});
|
|
530
1353
|
Object.assign(contents, doc);
|
|
531
1354
|
return contents;
|
|
532
1355
|
};
|
|
533
|
-
exports.
|
|
534
|
-
const
|
|
1356
|
+
exports.de_ListParticipantEventsCommand = de_ListParticipantEventsCommand;
|
|
1357
|
+
const de_ListParticipantEventsCommandError = async (output, context) => {
|
|
535
1358
|
const parsedOutput = {
|
|
536
1359
|
...output,
|
|
537
1360
|
body: await parseErrorBody(output.body, context),
|
|
@@ -541,9 +1364,6 @@ const de_GetParticipantCommandError = async (output, context) => {
|
|
|
541
1364
|
case "AccessDeniedException":
|
|
542
1365
|
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
543
1366
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
544
|
-
case "ResourceNotFoundException":
|
|
545
|
-
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
546
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
547
1367
|
case "ValidationException":
|
|
548
1368
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
549
1369
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -556,22 +1376,23 @@ const de_GetParticipantCommandError = async (output, context) => {
|
|
|
556
1376
|
});
|
|
557
1377
|
}
|
|
558
1378
|
};
|
|
559
|
-
const
|
|
1379
|
+
const de_ListParticipantsCommand = async (output, context) => {
|
|
560
1380
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
561
|
-
return
|
|
1381
|
+
return de_ListParticipantsCommandError(output, context);
|
|
562
1382
|
}
|
|
563
1383
|
const contents = (0, smithy_client_1.map)({
|
|
564
1384
|
$metadata: deserializeMetadata(output),
|
|
565
1385
|
});
|
|
566
1386
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
567
1387
|
const doc = (0, smithy_client_1.take)(data, {
|
|
568
|
-
|
|
1388
|
+
nextToken: smithy_client_1.expectString,
|
|
1389
|
+
participants: (_) => de_ParticipantList(_, context),
|
|
569
1390
|
});
|
|
570
1391
|
Object.assign(contents, doc);
|
|
571
1392
|
return contents;
|
|
572
1393
|
};
|
|
573
|
-
exports.
|
|
574
|
-
const
|
|
1394
|
+
exports.de_ListParticipantsCommand = de_ListParticipantsCommand;
|
|
1395
|
+
const de_ListParticipantsCommandError = async (output, context) => {
|
|
575
1396
|
const parsedOutput = {
|
|
576
1397
|
...output,
|
|
577
1398
|
body: await parseErrorBody(output.body, context),
|
|
@@ -581,9 +1402,6 @@ const de_GetStageCommandError = async (output, context) => {
|
|
|
581
1402
|
case "AccessDeniedException":
|
|
582
1403
|
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
583
1404
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
584
|
-
case "ResourceNotFoundException":
|
|
585
|
-
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
586
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
587
1405
|
case "ValidationException":
|
|
588
1406
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
589
1407
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -596,22 +1414,23 @@ const de_GetStageCommandError = async (output, context) => {
|
|
|
596
1414
|
});
|
|
597
1415
|
}
|
|
598
1416
|
};
|
|
599
|
-
const
|
|
1417
|
+
const de_ListStagesCommand = async (output, context) => {
|
|
600
1418
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
601
|
-
return
|
|
1419
|
+
return de_ListStagesCommandError(output, context);
|
|
602
1420
|
}
|
|
603
1421
|
const contents = (0, smithy_client_1.map)({
|
|
604
1422
|
$metadata: deserializeMetadata(output),
|
|
605
1423
|
});
|
|
606
1424
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
607
1425
|
const doc = (0, smithy_client_1.take)(data, {
|
|
608
|
-
|
|
1426
|
+
nextToken: smithy_client_1.expectString,
|
|
1427
|
+
stages: smithy_client_1._json,
|
|
609
1428
|
});
|
|
610
1429
|
Object.assign(contents, doc);
|
|
611
1430
|
return contents;
|
|
612
1431
|
};
|
|
613
|
-
exports.
|
|
614
|
-
const
|
|
1432
|
+
exports.de_ListStagesCommand = de_ListStagesCommand;
|
|
1433
|
+
const de_ListStagesCommandError = async (output, context) => {
|
|
615
1434
|
const parsedOutput = {
|
|
616
1435
|
...output,
|
|
617
1436
|
body: await parseErrorBody(output.body, context),
|
|
@@ -621,9 +1440,9 @@ const de_GetStageSessionCommandError = async (output, context) => {
|
|
|
621
1440
|
case "AccessDeniedException":
|
|
622
1441
|
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
623
1442
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
624
|
-
case "
|
|
625
|
-
case "com.amazonaws.ivsrealtime#
|
|
626
|
-
throw await
|
|
1443
|
+
case "ConflictException":
|
|
1444
|
+
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
1445
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
627
1446
|
case "ValidationException":
|
|
628
1447
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
629
1448
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -636,23 +1455,23 @@ const de_GetStageSessionCommandError = async (output, context) => {
|
|
|
636
1455
|
});
|
|
637
1456
|
}
|
|
638
1457
|
};
|
|
639
|
-
const
|
|
1458
|
+
const de_ListStageSessionsCommand = async (output, context) => {
|
|
640
1459
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
641
|
-
return
|
|
1460
|
+
return de_ListStageSessionsCommandError(output, context);
|
|
642
1461
|
}
|
|
643
1462
|
const contents = (0, smithy_client_1.map)({
|
|
644
1463
|
$metadata: deserializeMetadata(output),
|
|
645
1464
|
});
|
|
646
1465
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
647
1466
|
const doc = (0, smithy_client_1.take)(data, {
|
|
648
|
-
events: (_) => de_EventList(_, context),
|
|
649
1467
|
nextToken: smithy_client_1.expectString,
|
|
1468
|
+
stageSessions: (_) => de_StageSessionList(_, context),
|
|
650
1469
|
});
|
|
651
1470
|
Object.assign(contents, doc);
|
|
652
1471
|
return contents;
|
|
653
1472
|
};
|
|
654
|
-
exports.
|
|
655
|
-
const
|
|
1473
|
+
exports.de_ListStageSessionsCommand = de_ListStageSessionsCommand;
|
|
1474
|
+
const de_ListStageSessionsCommandError = async (output, context) => {
|
|
656
1475
|
const parsedOutput = {
|
|
657
1476
|
...output,
|
|
658
1477
|
body: await parseErrorBody(output.body, context),
|
|
@@ -674,9 +1493,9 @@ const de_ListParticipantEventsCommandError = async (output, context) => {
|
|
|
674
1493
|
});
|
|
675
1494
|
}
|
|
676
1495
|
};
|
|
677
|
-
const
|
|
1496
|
+
const de_ListStorageConfigurationsCommand = async (output, context) => {
|
|
678
1497
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
679
|
-
return
|
|
1498
|
+
return de_ListStorageConfigurationsCommandError(output, context);
|
|
680
1499
|
}
|
|
681
1500
|
const contents = (0, smithy_client_1.map)({
|
|
682
1501
|
$metadata: deserializeMetadata(output),
|
|
@@ -684,13 +1503,13 @@ const de_ListParticipantsCommand = async (output, context) => {
|
|
|
684
1503
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
685
1504
|
const doc = (0, smithy_client_1.take)(data, {
|
|
686
1505
|
nextToken: smithy_client_1.expectString,
|
|
687
|
-
|
|
1506
|
+
storageConfigurations: smithy_client_1._json,
|
|
688
1507
|
});
|
|
689
1508
|
Object.assign(contents, doc);
|
|
690
1509
|
return contents;
|
|
691
1510
|
};
|
|
692
|
-
exports.
|
|
693
|
-
const
|
|
1511
|
+
exports.de_ListStorageConfigurationsCommand = de_ListStorageConfigurationsCommand;
|
|
1512
|
+
const de_ListStorageConfigurationsCommandError = async (output, context) => {
|
|
694
1513
|
const parsedOutput = {
|
|
695
1514
|
...output,
|
|
696
1515
|
body: await parseErrorBody(output.body, context),
|
|
@@ -700,6 +1519,15 @@ const de_ListParticipantsCommandError = async (output, context) => {
|
|
|
700
1519
|
case "AccessDeniedException":
|
|
701
1520
|
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
702
1521
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1522
|
+
case "ConflictException":
|
|
1523
|
+
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
1524
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1525
|
+
case "InternalServerException":
|
|
1526
|
+
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
1527
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1528
|
+
case "ServiceQuotaExceededException":
|
|
1529
|
+
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
1530
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
703
1531
|
case "ValidationException":
|
|
704
1532
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
705
1533
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -712,35 +1540,34 @@ const de_ListParticipantsCommandError = async (output, context) => {
|
|
|
712
1540
|
});
|
|
713
1541
|
}
|
|
714
1542
|
};
|
|
715
|
-
const
|
|
1543
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
716
1544
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
717
|
-
return
|
|
1545
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
718
1546
|
}
|
|
719
1547
|
const contents = (0, smithy_client_1.map)({
|
|
720
1548
|
$metadata: deserializeMetadata(output),
|
|
721
1549
|
});
|
|
722
1550
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
723
1551
|
const doc = (0, smithy_client_1.take)(data, {
|
|
724
|
-
|
|
725
|
-
stages: smithy_client_1._json,
|
|
1552
|
+
tags: smithy_client_1._json,
|
|
726
1553
|
});
|
|
727
1554
|
Object.assign(contents, doc);
|
|
728
1555
|
return contents;
|
|
729
1556
|
};
|
|
730
|
-
exports.
|
|
731
|
-
const
|
|
1557
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1558
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
732
1559
|
const parsedOutput = {
|
|
733
1560
|
...output,
|
|
734
1561
|
body: await parseErrorBody(output.body, context),
|
|
735
1562
|
};
|
|
736
1563
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
737
1564
|
switch (errorCode) {
|
|
738
|
-
case "
|
|
739
|
-
case "com.amazonaws.ivsrealtime#
|
|
740
|
-
throw await
|
|
741
|
-
case "
|
|
742
|
-
case "com.amazonaws.ivsrealtime#
|
|
743
|
-
throw await
|
|
1565
|
+
case "InternalServerException":
|
|
1566
|
+
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
1567
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1568
|
+
case "ResourceNotFoundException":
|
|
1569
|
+
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
1570
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
744
1571
|
case "ValidationException":
|
|
745
1572
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
746
1573
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -753,23 +1580,22 @@ const de_ListStagesCommandError = async (output, context) => {
|
|
|
753
1580
|
});
|
|
754
1581
|
}
|
|
755
1582
|
};
|
|
756
|
-
const
|
|
1583
|
+
const de_StartCompositionCommand = async (output, context) => {
|
|
757
1584
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
758
|
-
return
|
|
1585
|
+
return de_StartCompositionCommandError(output, context);
|
|
759
1586
|
}
|
|
760
1587
|
const contents = (0, smithy_client_1.map)({
|
|
761
1588
|
$metadata: deserializeMetadata(output),
|
|
762
1589
|
});
|
|
763
1590
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
764
1591
|
const doc = (0, smithy_client_1.take)(data, {
|
|
765
|
-
|
|
766
|
-
stageSessions: (_) => de_StageSessionList(_, context),
|
|
1592
|
+
composition: (_) => de_Composition(_, context),
|
|
767
1593
|
});
|
|
768
1594
|
Object.assign(contents, doc);
|
|
769
1595
|
return contents;
|
|
770
1596
|
};
|
|
771
|
-
exports.
|
|
772
|
-
const
|
|
1597
|
+
exports.de_StartCompositionCommand = de_StartCompositionCommand;
|
|
1598
|
+
const de_StartCompositionCommandError = async (output, context) => {
|
|
773
1599
|
const parsedOutput = {
|
|
774
1600
|
...output,
|
|
775
1601
|
body: await parseErrorBody(output.body, context),
|
|
@@ -779,6 +1605,21 @@ const de_ListStageSessionsCommandError = async (output, context) => {
|
|
|
779
1605
|
case "AccessDeniedException":
|
|
780
1606
|
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
781
1607
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1608
|
+
case "ConflictException":
|
|
1609
|
+
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
1610
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1611
|
+
case "InternalServerException":
|
|
1612
|
+
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
1613
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1614
|
+
case "PendingVerification":
|
|
1615
|
+
case "com.amazonaws.ivsrealtime#PendingVerification":
|
|
1616
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
1617
|
+
case "ResourceNotFoundException":
|
|
1618
|
+
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
1619
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1620
|
+
case "ServiceQuotaExceededException":
|
|
1621
|
+
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
1622
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
782
1623
|
case "ValidationException":
|
|
783
1624
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
784
1625
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -791,34 +1632,39 @@ const de_ListStageSessionsCommandError = async (output, context) => {
|
|
|
791
1632
|
});
|
|
792
1633
|
}
|
|
793
1634
|
};
|
|
794
|
-
const
|
|
1635
|
+
const de_StopCompositionCommand = async (output, context) => {
|
|
795
1636
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
796
|
-
return
|
|
1637
|
+
return de_StopCompositionCommandError(output, context);
|
|
797
1638
|
}
|
|
798
1639
|
const contents = (0, smithy_client_1.map)({
|
|
799
1640
|
$metadata: deserializeMetadata(output),
|
|
800
1641
|
});
|
|
801
|
-
|
|
802
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
803
|
-
tags: smithy_client_1._json,
|
|
804
|
-
});
|
|
805
|
-
Object.assign(contents, doc);
|
|
1642
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
806
1643
|
return contents;
|
|
807
1644
|
};
|
|
808
|
-
exports.
|
|
809
|
-
const
|
|
1645
|
+
exports.de_StopCompositionCommand = de_StopCompositionCommand;
|
|
1646
|
+
const de_StopCompositionCommandError = async (output, context) => {
|
|
810
1647
|
const parsedOutput = {
|
|
811
1648
|
...output,
|
|
812
1649
|
body: await parseErrorBody(output.body, context),
|
|
813
1650
|
};
|
|
814
1651
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
815
1652
|
switch (errorCode) {
|
|
1653
|
+
case "AccessDeniedException":
|
|
1654
|
+
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
1655
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1656
|
+
case "ConflictException":
|
|
1657
|
+
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
1658
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
816
1659
|
case "InternalServerException":
|
|
817
1660
|
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
818
1661
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
819
1662
|
case "ResourceNotFoundException":
|
|
820
1663
|
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
821
1664
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1665
|
+
case "ServiceQuotaExceededException":
|
|
1666
|
+
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
1667
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
822
1668
|
case "ValidationException":
|
|
823
1669
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
824
1670
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -1041,6 +1887,87 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
1041
1887
|
});
|
|
1042
1888
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1043
1889
|
};
|
|
1890
|
+
const se_Video = (input, context) => {
|
|
1891
|
+
return (0, smithy_client_1.take)(input, {
|
|
1892
|
+
bitrate: [],
|
|
1893
|
+
framerate: smithy_client_1.serializeFloat,
|
|
1894
|
+
height: [],
|
|
1895
|
+
width: [],
|
|
1896
|
+
});
|
|
1897
|
+
};
|
|
1898
|
+
const de_Composition = (output, context) => {
|
|
1899
|
+
return (0, smithy_client_1.take)(output, {
|
|
1900
|
+
arn: smithy_client_1.expectString,
|
|
1901
|
+
destinations: (_) => de_DestinationList(_, context),
|
|
1902
|
+
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1903
|
+
layout: smithy_client_1._json,
|
|
1904
|
+
stageArn: smithy_client_1.expectString,
|
|
1905
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1906
|
+
state: smithy_client_1.expectString,
|
|
1907
|
+
tags: smithy_client_1._json,
|
|
1908
|
+
});
|
|
1909
|
+
};
|
|
1910
|
+
const de_CompositionSummary = (output, context) => {
|
|
1911
|
+
return (0, smithy_client_1.take)(output, {
|
|
1912
|
+
arn: smithy_client_1.expectString,
|
|
1913
|
+
destinations: (_) => de_DestinationSummaryList(_, context),
|
|
1914
|
+
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1915
|
+
stageArn: smithy_client_1.expectString,
|
|
1916
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1917
|
+
state: smithy_client_1.expectString,
|
|
1918
|
+
tags: smithy_client_1._json,
|
|
1919
|
+
});
|
|
1920
|
+
};
|
|
1921
|
+
const de_CompositionSummaryList = (output, context) => {
|
|
1922
|
+
const retVal = (output || [])
|
|
1923
|
+
.filter((e) => e != null)
|
|
1924
|
+
.map((entry) => {
|
|
1925
|
+
return de_CompositionSummary(entry, context);
|
|
1926
|
+
});
|
|
1927
|
+
return retVal;
|
|
1928
|
+
};
|
|
1929
|
+
const de_Destination = (output, context) => {
|
|
1930
|
+
return (0, smithy_client_1.take)(output, {
|
|
1931
|
+
configuration: smithy_client_1._json,
|
|
1932
|
+
detail: smithy_client_1._json,
|
|
1933
|
+
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1934
|
+
id: smithy_client_1.expectString,
|
|
1935
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1936
|
+
state: smithy_client_1.expectString,
|
|
1937
|
+
});
|
|
1938
|
+
};
|
|
1939
|
+
const de_DestinationList = (output, context) => {
|
|
1940
|
+
const retVal = (output || [])
|
|
1941
|
+
.filter((e) => e != null)
|
|
1942
|
+
.map((entry) => {
|
|
1943
|
+
return de_Destination(entry, context);
|
|
1944
|
+
});
|
|
1945
|
+
return retVal;
|
|
1946
|
+
};
|
|
1947
|
+
const de_DestinationSummary = (output, context) => {
|
|
1948
|
+
return (0, smithy_client_1.take)(output, {
|
|
1949
|
+
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1950
|
+
id: smithy_client_1.expectString,
|
|
1951
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1952
|
+
state: smithy_client_1.expectString,
|
|
1953
|
+
});
|
|
1954
|
+
};
|
|
1955
|
+
const de_DestinationSummaryList = (output, context) => {
|
|
1956
|
+
const retVal = (output || [])
|
|
1957
|
+
.filter((e) => e != null)
|
|
1958
|
+
.map((entry) => {
|
|
1959
|
+
return de_DestinationSummary(entry, context);
|
|
1960
|
+
});
|
|
1961
|
+
return retVal;
|
|
1962
|
+
};
|
|
1963
|
+
const de_EncoderConfiguration = (output, context) => {
|
|
1964
|
+
return (0, smithy_client_1.take)(output, {
|
|
1965
|
+
arn: smithy_client_1.expectString,
|
|
1966
|
+
name: smithy_client_1.expectString,
|
|
1967
|
+
tags: smithy_client_1._json,
|
|
1968
|
+
video: (_) => de_Video(_, context),
|
|
1969
|
+
});
|
|
1970
|
+
};
|
|
1044
1971
|
const de_Event = (output, context) => {
|
|
1045
1972
|
return (0, smithy_client_1.take)(output, {
|
|
1046
1973
|
errorCode: smithy_client_1.expectString,
|
|
@@ -1132,6 +2059,14 @@ const de_StageSessionSummary = (output, context) => {
|
|
|
1132
2059
|
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1133
2060
|
});
|
|
1134
2061
|
};
|
|
2062
|
+
const de_Video = (output, context) => {
|
|
2063
|
+
return (0, smithy_client_1.take)(output, {
|
|
2064
|
+
bitrate: smithy_client_1.expectInt32,
|
|
2065
|
+
framerate: smithy_client_1.limitedParseFloat32,
|
|
2066
|
+
height: smithy_client_1.expectInt32,
|
|
2067
|
+
width: smithy_client_1.expectInt32,
|
|
2068
|
+
});
|
|
2069
|
+
};
|
|
1135
2070
|
const deserializeMetadata = (output) => ({
|
|
1136
2071
|
httpStatusCode: output.statusCode,
|
|
1137
2072
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|