@aws-sdk/client-ivs-realtime 3.451.0 → 3.454.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 +5 -3
|
@@ -1,7 +1,30 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
|
|
2
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
|
+
import { v4 as generateIdempotencyToken } from "uuid";
|
|
3
4
|
import { IVSRealTimeServiceException as __BaseException } from "../models/IVSRealTimeServiceException";
|
|
4
5
|
import { AccessDeniedException, ConflictException, InternalServerException, PendingVerification, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
|
|
6
|
+
export const se_CreateEncoderConfigurationCommand = async (input, context) => {
|
|
7
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
|
+
const headers = {
|
|
9
|
+
"content-type": "application/json",
|
|
10
|
+
};
|
|
11
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateEncoderConfiguration";
|
|
12
|
+
let body;
|
|
13
|
+
body = JSON.stringify(take(input, {
|
|
14
|
+
name: [],
|
|
15
|
+
tags: (_) => _json(_),
|
|
16
|
+
video: (_) => se_Video(_, context),
|
|
17
|
+
}));
|
|
18
|
+
return new __HttpRequest({
|
|
19
|
+
protocol,
|
|
20
|
+
hostname,
|
|
21
|
+
port,
|
|
22
|
+
method: "POST",
|
|
23
|
+
headers,
|
|
24
|
+
path: resolvedPath,
|
|
25
|
+
body,
|
|
26
|
+
});
|
|
27
|
+
};
|
|
5
28
|
export const se_CreateParticipantTokenCommand = async (input, context) => {
|
|
6
29
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
30
|
const headers = {
|
|
@@ -48,6 +71,48 @@ export const se_CreateStageCommand = async (input, context) => {
|
|
|
48
71
|
body,
|
|
49
72
|
});
|
|
50
73
|
};
|
|
74
|
+
export const se_CreateStorageConfigurationCommand = async (input, context) => {
|
|
75
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
76
|
+
const headers = {
|
|
77
|
+
"content-type": "application/json",
|
|
78
|
+
};
|
|
79
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateStorageConfiguration";
|
|
80
|
+
let body;
|
|
81
|
+
body = JSON.stringify(take(input, {
|
|
82
|
+
name: [],
|
|
83
|
+
s3: (_) => _json(_),
|
|
84
|
+
tags: (_) => _json(_),
|
|
85
|
+
}));
|
|
86
|
+
return new __HttpRequest({
|
|
87
|
+
protocol,
|
|
88
|
+
hostname,
|
|
89
|
+
port,
|
|
90
|
+
method: "POST",
|
|
91
|
+
headers,
|
|
92
|
+
path: resolvedPath,
|
|
93
|
+
body,
|
|
94
|
+
});
|
|
95
|
+
};
|
|
96
|
+
export const se_DeleteEncoderConfigurationCommand = async (input, context) => {
|
|
97
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
98
|
+
const headers = {
|
|
99
|
+
"content-type": "application/json",
|
|
100
|
+
};
|
|
101
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteEncoderConfiguration";
|
|
102
|
+
let body;
|
|
103
|
+
body = JSON.stringify(take(input, {
|
|
104
|
+
arn: [],
|
|
105
|
+
}));
|
|
106
|
+
return new __HttpRequest({
|
|
107
|
+
protocol,
|
|
108
|
+
hostname,
|
|
109
|
+
port,
|
|
110
|
+
method: "POST",
|
|
111
|
+
headers,
|
|
112
|
+
path: resolvedPath,
|
|
113
|
+
body,
|
|
114
|
+
});
|
|
115
|
+
};
|
|
51
116
|
export const se_DeleteStageCommand = async (input, context) => {
|
|
52
117
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
53
118
|
const headers = {
|
|
@@ -68,6 +133,26 @@ export const se_DeleteStageCommand = async (input, context) => {
|
|
|
68
133
|
body,
|
|
69
134
|
});
|
|
70
135
|
};
|
|
136
|
+
export const se_DeleteStorageConfigurationCommand = async (input, context) => {
|
|
137
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
138
|
+
const headers = {
|
|
139
|
+
"content-type": "application/json",
|
|
140
|
+
};
|
|
141
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteStorageConfiguration";
|
|
142
|
+
let body;
|
|
143
|
+
body = JSON.stringify(take(input, {
|
|
144
|
+
arn: [],
|
|
145
|
+
}));
|
|
146
|
+
return new __HttpRequest({
|
|
147
|
+
protocol,
|
|
148
|
+
hostname,
|
|
149
|
+
port,
|
|
150
|
+
method: "POST",
|
|
151
|
+
headers,
|
|
152
|
+
path: resolvedPath,
|
|
153
|
+
body,
|
|
154
|
+
});
|
|
155
|
+
};
|
|
71
156
|
export const se_DisconnectParticipantCommand = async (input, context) => {
|
|
72
157
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
73
158
|
const headers = {
|
|
@@ -90,6 +175,46 @@ export const se_DisconnectParticipantCommand = async (input, context) => {
|
|
|
90
175
|
body,
|
|
91
176
|
});
|
|
92
177
|
};
|
|
178
|
+
export const se_GetCompositionCommand = async (input, context) => {
|
|
179
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
180
|
+
const headers = {
|
|
181
|
+
"content-type": "application/json",
|
|
182
|
+
};
|
|
183
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetComposition";
|
|
184
|
+
let body;
|
|
185
|
+
body = JSON.stringify(take(input, {
|
|
186
|
+
arn: [],
|
|
187
|
+
}));
|
|
188
|
+
return new __HttpRequest({
|
|
189
|
+
protocol,
|
|
190
|
+
hostname,
|
|
191
|
+
port,
|
|
192
|
+
method: "POST",
|
|
193
|
+
headers,
|
|
194
|
+
path: resolvedPath,
|
|
195
|
+
body,
|
|
196
|
+
});
|
|
197
|
+
};
|
|
198
|
+
export const se_GetEncoderConfigurationCommand = async (input, context) => {
|
|
199
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
200
|
+
const headers = {
|
|
201
|
+
"content-type": "application/json",
|
|
202
|
+
};
|
|
203
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetEncoderConfiguration";
|
|
204
|
+
let body;
|
|
205
|
+
body = JSON.stringify(take(input, {
|
|
206
|
+
arn: [],
|
|
207
|
+
}));
|
|
208
|
+
return new __HttpRequest({
|
|
209
|
+
protocol,
|
|
210
|
+
hostname,
|
|
211
|
+
port,
|
|
212
|
+
method: "POST",
|
|
213
|
+
headers,
|
|
214
|
+
path: resolvedPath,
|
|
215
|
+
body,
|
|
216
|
+
});
|
|
217
|
+
};
|
|
93
218
|
export const se_GetParticipantCommand = async (input, context) => {
|
|
94
219
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
95
220
|
const headers = {
|
|
@@ -153,6 +278,70 @@ export const se_GetStageSessionCommand = async (input, context) => {
|
|
|
153
278
|
body,
|
|
154
279
|
});
|
|
155
280
|
};
|
|
281
|
+
export const se_GetStorageConfigurationCommand = async (input, context) => {
|
|
282
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
283
|
+
const headers = {
|
|
284
|
+
"content-type": "application/json",
|
|
285
|
+
};
|
|
286
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetStorageConfiguration";
|
|
287
|
+
let body;
|
|
288
|
+
body = JSON.stringify(take(input, {
|
|
289
|
+
arn: [],
|
|
290
|
+
}));
|
|
291
|
+
return new __HttpRequest({
|
|
292
|
+
protocol,
|
|
293
|
+
hostname,
|
|
294
|
+
port,
|
|
295
|
+
method: "POST",
|
|
296
|
+
headers,
|
|
297
|
+
path: resolvedPath,
|
|
298
|
+
body,
|
|
299
|
+
});
|
|
300
|
+
};
|
|
301
|
+
export const se_ListCompositionsCommand = async (input, context) => {
|
|
302
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
303
|
+
const headers = {
|
|
304
|
+
"content-type": "application/json",
|
|
305
|
+
};
|
|
306
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListCompositions";
|
|
307
|
+
let body;
|
|
308
|
+
body = JSON.stringify(take(input, {
|
|
309
|
+
filterByEncoderConfigurationArn: [],
|
|
310
|
+
filterByStageArn: [],
|
|
311
|
+
maxResults: [],
|
|
312
|
+
nextToken: [],
|
|
313
|
+
}));
|
|
314
|
+
return new __HttpRequest({
|
|
315
|
+
protocol,
|
|
316
|
+
hostname,
|
|
317
|
+
port,
|
|
318
|
+
method: "POST",
|
|
319
|
+
headers,
|
|
320
|
+
path: resolvedPath,
|
|
321
|
+
body,
|
|
322
|
+
});
|
|
323
|
+
};
|
|
324
|
+
export const se_ListEncoderConfigurationsCommand = async (input, context) => {
|
|
325
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
326
|
+
const headers = {
|
|
327
|
+
"content-type": "application/json",
|
|
328
|
+
};
|
|
329
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListEncoderConfigurations";
|
|
330
|
+
let body;
|
|
331
|
+
body = JSON.stringify(take(input, {
|
|
332
|
+
maxResults: [],
|
|
333
|
+
nextToken: [],
|
|
334
|
+
}));
|
|
335
|
+
return new __HttpRequest({
|
|
336
|
+
protocol,
|
|
337
|
+
hostname,
|
|
338
|
+
port,
|
|
339
|
+
method: "POST",
|
|
340
|
+
headers,
|
|
341
|
+
path: resolvedPath,
|
|
342
|
+
body,
|
|
343
|
+
});
|
|
344
|
+
};
|
|
156
345
|
export const se_ListParticipantEventsCommand = async (input, context) => {
|
|
157
346
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
158
347
|
const headers = {
|
|
@@ -246,6 +435,27 @@ export const se_ListStageSessionsCommand = async (input, context) => {
|
|
|
246
435
|
body,
|
|
247
436
|
});
|
|
248
437
|
};
|
|
438
|
+
export const se_ListStorageConfigurationsCommand = async (input, context) => {
|
|
439
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
440
|
+
const headers = {
|
|
441
|
+
"content-type": "application/json",
|
|
442
|
+
};
|
|
443
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListStorageConfigurations";
|
|
444
|
+
let body;
|
|
445
|
+
body = JSON.stringify(take(input, {
|
|
446
|
+
maxResults: [],
|
|
447
|
+
nextToken: [],
|
|
448
|
+
}));
|
|
449
|
+
return new __HttpRequest({
|
|
450
|
+
protocol,
|
|
451
|
+
hostname,
|
|
452
|
+
port,
|
|
453
|
+
method: "POST",
|
|
454
|
+
headers,
|
|
455
|
+
path: resolvedPath,
|
|
456
|
+
body,
|
|
457
|
+
});
|
|
458
|
+
};
|
|
249
459
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
250
460
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
251
461
|
const headers = {};
|
|
@@ -262,6 +472,50 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
262
472
|
body,
|
|
263
473
|
});
|
|
264
474
|
};
|
|
475
|
+
export const se_StartCompositionCommand = async (input, context) => {
|
|
476
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
477
|
+
const headers = {
|
|
478
|
+
"content-type": "application/json",
|
|
479
|
+
};
|
|
480
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartComposition";
|
|
481
|
+
let body;
|
|
482
|
+
body = JSON.stringify(take(input, {
|
|
483
|
+
destinations: (_) => _json(_),
|
|
484
|
+
idempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
485
|
+
layout: (_) => _json(_),
|
|
486
|
+
stageArn: [],
|
|
487
|
+
tags: (_) => _json(_),
|
|
488
|
+
}));
|
|
489
|
+
return new __HttpRequest({
|
|
490
|
+
protocol,
|
|
491
|
+
hostname,
|
|
492
|
+
port,
|
|
493
|
+
method: "POST",
|
|
494
|
+
headers,
|
|
495
|
+
path: resolvedPath,
|
|
496
|
+
body,
|
|
497
|
+
});
|
|
498
|
+
};
|
|
499
|
+
export const se_StopCompositionCommand = async (input, context) => {
|
|
500
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
501
|
+
const headers = {
|
|
502
|
+
"content-type": "application/json",
|
|
503
|
+
};
|
|
504
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StopComposition";
|
|
505
|
+
let body;
|
|
506
|
+
body = JSON.stringify(take(input, {
|
|
507
|
+
arn: [],
|
|
508
|
+
}));
|
|
509
|
+
return new __HttpRequest({
|
|
510
|
+
protocol,
|
|
511
|
+
hostname,
|
|
512
|
+
port,
|
|
513
|
+
method: "POST",
|
|
514
|
+
headers,
|
|
515
|
+
path: resolvedPath,
|
|
516
|
+
body,
|
|
517
|
+
});
|
|
518
|
+
};
|
|
265
519
|
export const se_TagResourceCommand = async (input, context) => {
|
|
266
520
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
267
521
|
const headers = {
|
|
@@ -327,21 +581,552 @@ export const se_UpdateStageCommand = async (input, context) => {
|
|
|
327
581
|
body,
|
|
328
582
|
});
|
|
329
583
|
};
|
|
330
|
-
export const
|
|
584
|
+
export const de_CreateEncoderConfigurationCommand = async (output, context) => {
|
|
585
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
586
|
+
return de_CreateEncoderConfigurationCommandError(output, context);
|
|
587
|
+
}
|
|
588
|
+
const contents = map({
|
|
589
|
+
$metadata: deserializeMetadata(output),
|
|
590
|
+
});
|
|
591
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
592
|
+
const doc = take(data, {
|
|
593
|
+
encoderConfiguration: (_) => de_EncoderConfiguration(_, context),
|
|
594
|
+
});
|
|
595
|
+
Object.assign(contents, doc);
|
|
596
|
+
return contents;
|
|
597
|
+
};
|
|
598
|
+
const de_CreateEncoderConfigurationCommandError = async (output, context) => {
|
|
599
|
+
const parsedOutput = {
|
|
600
|
+
...output,
|
|
601
|
+
body: await parseErrorBody(output.body, context),
|
|
602
|
+
};
|
|
603
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
604
|
+
switch (errorCode) {
|
|
605
|
+
case "AccessDeniedException":
|
|
606
|
+
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
607
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
608
|
+
case "ConflictException":
|
|
609
|
+
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
610
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
611
|
+
case "InternalServerException":
|
|
612
|
+
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
613
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
614
|
+
case "PendingVerification":
|
|
615
|
+
case "com.amazonaws.ivsrealtime#PendingVerification":
|
|
616
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
617
|
+
case "ResourceNotFoundException":
|
|
618
|
+
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
619
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
620
|
+
case "ServiceQuotaExceededException":
|
|
621
|
+
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
622
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
623
|
+
case "ValidationException":
|
|
624
|
+
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
625
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
626
|
+
default:
|
|
627
|
+
const parsedBody = parsedOutput.body;
|
|
628
|
+
return throwDefaultError({
|
|
629
|
+
output,
|
|
630
|
+
parsedBody,
|
|
631
|
+
errorCode,
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
};
|
|
635
|
+
export const de_CreateParticipantTokenCommand = async (output, context) => {
|
|
636
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
637
|
+
return de_CreateParticipantTokenCommandError(output, context);
|
|
638
|
+
}
|
|
639
|
+
const contents = map({
|
|
640
|
+
$metadata: deserializeMetadata(output),
|
|
641
|
+
});
|
|
642
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
643
|
+
const doc = take(data, {
|
|
644
|
+
participantToken: (_) => de_ParticipantToken(_, context),
|
|
645
|
+
});
|
|
646
|
+
Object.assign(contents, doc);
|
|
647
|
+
return contents;
|
|
648
|
+
};
|
|
649
|
+
const de_CreateParticipantTokenCommandError = async (output, context) => {
|
|
650
|
+
const parsedOutput = {
|
|
651
|
+
...output,
|
|
652
|
+
body: await parseErrorBody(output.body, context),
|
|
653
|
+
};
|
|
654
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
655
|
+
switch (errorCode) {
|
|
656
|
+
case "AccessDeniedException":
|
|
657
|
+
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
658
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
659
|
+
case "PendingVerification":
|
|
660
|
+
case "com.amazonaws.ivsrealtime#PendingVerification":
|
|
661
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
662
|
+
case "ResourceNotFoundException":
|
|
663
|
+
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
664
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
665
|
+
case "ServiceQuotaExceededException":
|
|
666
|
+
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
667
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
668
|
+
case "ValidationException":
|
|
669
|
+
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
670
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
671
|
+
default:
|
|
672
|
+
const parsedBody = parsedOutput.body;
|
|
673
|
+
return throwDefaultError({
|
|
674
|
+
output,
|
|
675
|
+
parsedBody,
|
|
676
|
+
errorCode,
|
|
677
|
+
});
|
|
678
|
+
}
|
|
679
|
+
};
|
|
680
|
+
export const de_CreateStageCommand = async (output, context) => {
|
|
681
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
682
|
+
return de_CreateStageCommandError(output, context);
|
|
683
|
+
}
|
|
684
|
+
const contents = map({
|
|
685
|
+
$metadata: deserializeMetadata(output),
|
|
686
|
+
});
|
|
687
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
688
|
+
const doc = take(data, {
|
|
689
|
+
participantTokens: (_) => de_ParticipantTokenList(_, context),
|
|
690
|
+
stage: _json,
|
|
691
|
+
});
|
|
692
|
+
Object.assign(contents, doc);
|
|
693
|
+
return contents;
|
|
694
|
+
};
|
|
695
|
+
const de_CreateStageCommandError = async (output, context) => {
|
|
696
|
+
const parsedOutput = {
|
|
697
|
+
...output,
|
|
698
|
+
body: await parseErrorBody(output.body, context),
|
|
699
|
+
};
|
|
700
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
701
|
+
switch (errorCode) {
|
|
702
|
+
case "AccessDeniedException":
|
|
703
|
+
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
704
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
705
|
+
case "PendingVerification":
|
|
706
|
+
case "com.amazonaws.ivsrealtime#PendingVerification":
|
|
707
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
708
|
+
case "ServiceQuotaExceededException":
|
|
709
|
+
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
710
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
711
|
+
case "ValidationException":
|
|
712
|
+
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
713
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
714
|
+
default:
|
|
715
|
+
const parsedBody = parsedOutput.body;
|
|
716
|
+
return throwDefaultError({
|
|
717
|
+
output,
|
|
718
|
+
parsedBody,
|
|
719
|
+
errorCode,
|
|
720
|
+
});
|
|
721
|
+
}
|
|
722
|
+
};
|
|
723
|
+
export const de_CreateStorageConfigurationCommand = async (output, context) => {
|
|
724
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
725
|
+
return de_CreateStorageConfigurationCommandError(output, context);
|
|
726
|
+
}
|
|
727
|
+
const contents = map({
|
|
728
|
+
$metadata: deserializeMetadata(output),
|
|
729
|
+
});
|
|
730
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
731
|
+
const doc = take(data, {
|
|
732
|
+
storageConfiguration: _json,
|
|
733
|
+
});
|
|
734
|
+
Object.assign(contents, doc);
|
|
735
|
+
return contents;
|
|
736
|
+
};
|
|
737
|
+
const de_CreateStorageConfigurationCommandError = async (output, context) => {
|
|
738
|
+
const parsedOutput = {
|
|
739
|
+
...output,
|
|
740
|
+
body: await parseErrorBody(output.body, context),
|
|
741
|
+
};
|
|
742
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
743
|
+
switch (errorCode) {
|
|
744
|
+
case "AccessDeniedException":
|
|
745
|
+
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
746
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
747
|
+
case "ConflictException":
|
|
748
|
+
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
749
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
750
|
+
case "InternalServerException":
|
|
751
|
+
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
752
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
753
|
+
case "PendingVerification":
|
|
754
|
+
case "com.amazonaws.ivsrealtime#PendingVerification":
|
|
755
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
756
|
+
case "ResourceNotFoundException":
|
|
757
|
+
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
758
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
759
|
+
case "ServiceQuotaExceededException":
|
|
760
|
+
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
761
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
762
|
+
case "ValidationException":
|
|
763
|
+
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
764
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
765
|
+
default:
|
|
766
|
+
const parsedBody = parsedOutput.body;
|
|
767
|
+
return throwDefaultError({
|
|
768
|
+
output,
|
|
769
|
+
parsedBody,
|
|
770
|
+
errorCode,
|
|
771
|
+
});
|
|
772
|
+
}
|
|
773
|
+
};
|
|
774
|
+
export const de_DeleteEncoderConfigurationCommand = async (output, context) => {
|
|
775
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
776
|
+
return de_DeleteEncoderConfigurationCommandError(output, context);
|
|
777
|
+
}
|
|
778
|
+
const contents = map({
|
|
779
|
+
$metadata: deserializeMetadata(output),
|
|
780
|
+
});
|
|
781
|
+
await collectBody(output.body, context);
|
|
782
|
+
return contents;
|
|
783
|
+
};
|
|
784
|
+
const de_DeleteEncoderConfigurationCommandError = async (output, context) => {
|
|
785
|
+
const parsedOutput = {
|
|
786
|
+
...output,
|
|
787
|
+
body: await parseErrorBody(output.body, context),
|
|
788
|
+
};
|
|
789
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
790
|
+
switch (errorCode) {
|
|
791
|
+
case "AccessDeniedException":
|
|
792
|
+
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
793
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
794
|
+
case "ConflictException":
|
|
795
|
+
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
796
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
797
|
+
case "InternalServerException":
|
|
798
|
+
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
799
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
800
|
+
case "ResourceNotFoundException":
|
|
801
|
+
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
802
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
803
|
+
case "ServiceQuotaExceededException":
|
|
804
|
+
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
805
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
806
|
+
case "ValidationException":
|
|
807
|
+
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
808
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
809
|
+
default:
|
|
810
|
+
const parsedBody = parsedOutput.body;
|
|
811
|
+
return throwDefaultError({
|
|
812
|
+
output,
|
|
813
|
+
parsedBody,
|
|
814
|
+
errorCode,
|
|
815
|
+
});
|
|
816
|
+
}
|
|
817
|
+
};
|
|
818
|
+
export const de_DeleteStageCommand = async (output, context) => {
|
|
819
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
820
|
+
return de_DeleteStageCommandError(output, context);
|
|
821
|
+
}
|
|
822
|
+
const contents = map({
|
|
823
|
+
$metadata: deserializeMetadata(output),
|
|
824
|
+
});
|
|
825
|
+
await collectBody(output.body, context);
|
|
826
|
+
return contents;
|
|
827
|
+
};
|
|
828
|
+
const de_DeleteStageCommandError = async (output, context) => {
|
|
829
|
+
const parsedOutput = {
|
|
830
|
+
...output,
|
|
831
|
+
body: await parseErrorBody(output.body, context),
|
|
832
|
+
};
|
|
833
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
834
|
+
switch (errorCode) {
|
|
835
|
+
case "AccessDeniedException":
|
|
836
|
+
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
837
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
838
|
+
case "ConflictException":
|
|
839
|
+
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
840
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
841
|
+
case "PendingVerification":
|
|
842
|
+
case "com.amazonaws.ivsrealtime#PendingVerification":
|
|
843
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
844
|
+
case "ResourceNotFoundException":
|
|
845
|
+
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
846
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
847
|
+
case "ValidationException":
|
|
848
|
+
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
849
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
850
|
+
default:
|
|
851
|
+
const parsedBody = parsedOutput.body;
|
|
852
|
+
return throwDefaultError({
|
|
853
|
+
output,
|
|
854
|
+
parsedBody,
|
|
855
|
+
errorCode,
|
|
856
|
+
});
|
|
857
|
+
}
|
|
858
|
+
};
|
|
859
|
+
export const de_DeleteStorageConfigurationCommand = async (output, context) => {
|
|
860
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
861
|
+
return de_DeleteStorageConfigurationCommandError(output, context);
|
|
862
|
+
}
|
|
863
|
+
const contents = map({
|
|
864
|
+
$metadata: deserializeMetadata(output),
|
|
865
|
+
});
|
|
866
|
+
await collectBody(output.body, context);
|
|
867
|
+
return contents;
|
|
868
|
+
};
|
|
869
|
+
const de_DeleteStorageConfigurationCommandError = async (output, context) => {
|
|
870
|
+
const parsedOutput = {
|
|
871
|
+
...output,
|
|
872
|
+
body: await parseErrorBody(output.body, context),
|
|
873
|
+
};
|
|
874
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
875
|
+
switch (errorCode) {
|
|
876
|
+
case "AccessDeniedException":
|
|
877
|
+
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
878
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
879
|
+
case "ConflictException":
|
|
880
|
+
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
881
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
882
|
+
case "InternalServerException":
|
|
883
|
+
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
884
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
885
|
+
case "ResourceNotFoundException":
|
|
886
|
+
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
887
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
888
|
+
case "ServiceQuotaExceededException":
|
|
889
|
+
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
890
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
891
|
+
case "ValidationException":
|
|
892
|
+
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
893
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
894
|
+
default:
|
|
895
|
+
const parsedBody = parsedOutput.body;
|
|
896
|
+
return throwDefaultError({
|
|
897
|
+
output,
|
|
898
|
+
parsedBody,
|
|
899
|
+
errorCode,
|
|
900
|
+
});
|
|
901
|
+
}
|
|
902
|
+
};
|
|
903
|
+
export const de_DisconnectParticipantCommand = async (output, context) => {
|
|
904
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
905
|
+
return de_DisconnectParticipantCommandError(output, context);
|
|
906
|
+
}
|
|
907
|
+
const contents = map({
|
|
908
|
+
$metadata: deserializeMetadata(output),
|
|
909
|
+
});
|
|
910
|
+
await collectBody(output.body, context);
|
|
911
|
+
return contents;
|
|
912
|
+
};
|
|
913
|
+
const de_DisconnectParticipantCommandError = async (output, context) => {
|
|
914
|
+
const parsedOutput = {
|
|
915
|
+
...output,
|
|
916
|
+
body: await parseErrorBody(output.body, context),
|
|
917
|
+
};
|
|
918
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
919
|
+
switch (errorCode) {
|
|
920
|
+
case "AccessDeniedException":
|
|
921
|
+
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
922
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
923
|
+
case "PendingVerification":
|
|
924
|
+
case "com.amazonaws.ivsrealtime#PendingVerification":
|
|
925
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
926
|
+
case "ResourceNotFoundException":
|
|
927
|
+
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
928
|
+
throw await de_ResourceNotFoundExceptionRes(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
|
+
export const de_GetCompositionCommand = async (output, context) => {
|
|
942
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
943
|
+
return de_GetCompositionCommandError(output, context);
|
|
944
|
+
}
|
|
945
|
+
const contents = map({
|
|
946
|
+
$metadata: deserializeMetadata(output),
|
|
947
|
+
});
|
|
948
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
949
|
+
const doc = take(data, {
|
|
950
|
+
composition: (_) => de_Composition(_, context),
|
|
951
|
+
});
|
|
952
|
+
Object.assign(contents, doc);
|
|
953
|
+
return contents;
|
|
954
|
+
};
|
|
955
|
+
const de_GetCompositionCommandError = async (output, context) => {
|
|
956
|
+
const parsedOutput = {
|
|
957
|
+
...output,
|
|
958
|
+
body: await parseErrorBody(output.body, context),
|
|
959
|
+
};
|
|
960
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
961
|
+
switch (errorCode) {
|
|
962
|
+
case "AccessDeniedException":
|
|
963
|
+
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
964
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
965
|
+
case "ConflictException":
|
|
966
|
+
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
967
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
968
|
+
case "InternalServerException":
|
|
969
|
+
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
970
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
971
|
+
case "ResourceNotFoundException":
|
|
972
|
+
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
973
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
974
|
+
case "ServiceQuotaExceededException":
|
|
975
|
+
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
976
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
977
|
+
case "ValidationException":
|
|
978
|
+
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
979
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
980
|
+
default:
|
|
981
|
+
const parsedBody = parsedOutput.body;
|
|
982
|
+
return throwDefaultError({
|
|
983
|
+
output,
|
|
984
|
+
parsedBody,
|
|
985
|
+
errorCode,
|
|
986
|
+
});
|
|
987
|
+
}
|
|
988
|
+
};
|
|
989
|
+
export const de_GetEncoderConfigurationCommand = async (output, context) => {
|
|
990
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
991
|
+
return de_GetEncoderConfigurationCommandError(output, context);
|
|
992
|
+
}
|
|
993
|
+
const contents = map({
|
|
994
|
+
$metadata: deserializeMetadata(output),
|
|
995
|
+
});
|
|
996
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
997
|
+
const doc = take(data, {
|
|
998
|
+
encoderConfiguration: (_) => de_EncoderConfiguration(_, context),
|
|
999
|
+
});
|
|
1000
|
+
Object.assign(contents, doc);
|
|
1001
|
+
return contents;
|
|
1002
|
+
};
|
|
1003
|
+
const de_GetEncoderConfigurationCommandError = async (output, context) => {
|
|
1004
|
+
const parsedOutput = {
|
|
1005
|
+
...output,
|
|
1006
|
+
body: await parseErrorBody(output.body, context),
|
|
1007
|
+
};
|
|
1008
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1009
|
+
switch (errorCode) {
|
|
1010
|
+
case "AccessDeniedException":
|
|
1011
|
+
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
1012
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1013
|
+
case "ConflictException":
|
|
1014
|
+
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
1015
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1016
|
+
case "InternalServerException":
|
|
1017
|
+
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
1018
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1019
|
+
case "ResourceNotFoundException":
|
|
1020
|
+
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
1021
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1022
|
+
case "ServiceQuotaExceededException":
|
|
1023
|
+
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
1024
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1025
|
+
case "ValidationException":
|
|
1026
|
+
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
1027
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1028
|
+
default:
|
|
1029
|
+
const parsedBody = parsedOutput.body;
|
|
1030
|
+
return throwDefaultError({
|
|
1031
|
+
output,
|
|
1032
|
+
parsedBody,
|
|
1033
|
+
errorCode,
|
|
1034
|
+
});
|
|
1035
|
+
}
|
|
1036
|
+
};
|
|
1037
|
+
export const de_GetParticipantCommand = async (output, context) => {
|
|
1038
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1039
|
+
return de_GetParticipantCommandError(output, context);
|
|
1040
|
+
}
|
|
1041
|
+
const contents = map({
|
|
1042
|
+
$metadata: deserializeMetadata(output),
|
|
1043
|
+
});
|
|
1044
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1045
|
+
const doc = take(data, {
|
|
1046
|
+
participant: (_) => de_Participant(_, context),
|
|
1047
|
+
});
|
|
1048
|
+
Object.assign(contents, doc);
|
|
1049
|
+
return contents;
|
|
1050
|
+
};
|
|
1051
|
+
const de_GetParticipantCommandError = async (output, context) => {
|
|
1052
|
+
const parsedOutput = {
|
|
1053
|
+
...output,
|
|
1054
|
+
body: await parseErrorBody(output.body, context),
|
|
1055
|
+
};
|
|
1056
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1057
|
+
switch (errorCode) {
|
|
1058
|
+
case "AccessDeniedException":
|
|
1059
|
+
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
1060
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1061
|
+
case "ResourceNotFoundException":
|
|
1062
|
+
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
1063
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1064
|
+
case "ValidationException":
|
|
1065
|
+
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
1066
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1067
|
+
default:
|
|
1068
|
+
const parsedBody = parsedOutput.body;
|
|
1069
|
+
return throwDefaultError({
|
|
1070
|
+
output,
|
|
1071
|
+
parsedBody,
|
|
1072
|
+
errorCode,
|
|
1073
|
+
});
|
|
1074
|
+
}
|
|
1075
|
+
};
|
|
1076
|
+
export const de_GetStageCommand = async (output, context) => {
|
|
1077
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1078
|
+
return de_GetStageCommandError(output, context);
|
|
1079
|
+
}
|
|
1080
|
+
const contents = map({
|
|
1081
|
+
$metadata: deserializeMetadata(output),
|
|
1082
|
+
});
|
|
1083
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1084
|
+
const doc = take(data, {
|
|
1085
|
+
stage: _json,
|
|
1086
|
+
});
|
|
1087
|
+
Object.assign(contents, doc);
|
|
1088
|
+
return contents;
|
|
1089
|
+
};
|
|
1090
|
+
const de_GetStageCommandError = async (output, context) => {
|
|
1091
|
+
const parsedOutput = {
|
|
1092
|
+
...output,
|
|
1093
|
+
body: await parseErrorBody(output.body, context),
|
|
1094
|
+
};
|
|
1095
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1096
|
+
switch (errorCode) {
|
|
1097
|
+
case "AccessDeniedException":
|
|
1098
|
+
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
1099
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1100
|
+
case "ResourceNotFoundException":
|
|
1101
|
+
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
1102
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1103
|
+
case "ValidationException":
|
|
1104
|
+
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
1105
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1106
|
+
default:
|
|
1107
|
+
const parsedBody = parsedOutput.body;
|
|
1108
|
+
return throwDefaultError({
|
|
1109
|
+
output,
|
|
1110
|
+
parsedBody,
|
|
1111
|
+
errorCode,
|
|
1112
|
+
});
|
|
1113
|
+
}
|
|
1114
|
+
};
|
|
1115
|
+
export const de_GetStageSessionCommand = async (output, context) => {
|
|
331
1116
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
332
|
-
return
|
|
1117
|
+
return de_GetStageSessionCommandError(output, context);
|
|
333
1118
|
}
|
|
334
1119
|
const contents = map({
|
|
335
1120
|
$metadata: deserializeMetadata(output),
|
|
336
1121
|
});
|
|
337
1122
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
338
1123
|
const doc = take(data, {
|
|
339
|
-
|
|
1124
|
+
stageSession: (_) => de_StageSession(_, context),
|
|
340
1125
|
});
|
|
341
1126
|
Object.assign(contents, doc);
|
|
342
1127
|
return contents;
|
|
343
1128
|
};
|
|
344
|
-
const
|
|
1129
|
+
const de_GetStageSessionCommandError = async (output, context) => {
|
|
345
1130
|
const parsedOutput = {
|
|
346
1131
|
...output,
|
|
347
1132
|
body: await parseErrorBody(output.body, context),
|
|
@@ -351,15 +1136,9 @@ const de_CreateParticipantTokenCommandError = async (output, context) => {
|
|
|
351
1136
|
case "AccessDeniedException":
|
|
352
1137
|
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
353
1138
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
354
|
-
case "PendingVerification":
|
|
355
|
-
case "com.amazonaws.ivsrealtime#PendingVerification":
|
|
356
|
-
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
357
1139
|
case "ResourceNotFoundException":
|
|
358
1140
|
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
359
1141
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
360
|
-
case "ServiceQuotaExceededException":
|
|
361
|
-
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
362
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
363
1142
|
case "ValidationException":
|
|
364
1143
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
365
1144
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -372,22 +1151,21 @@ const de_CreateParticipantTokenCommandError = async (output, context) => {
|
|
|
372
1151
|
});
|
|
373
1152
|
}
|
|
374
1153
|
};
|
|
375
|
-
export const
|
|
1154
|
+
export const de_GetStorageConfigurationCommand = async (output, context) => {
|
|
376
1155
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
377
|
-
return
|
|
1156
|
+
return de_GetStorageConfigurationCommandError(output, context);
|
|
378
1157
|
}
|
|
379
1158
|
const contents = map({
|
|
380
1159
|
$metadata: deserializeMetadata(output),
|
|
381
1160
|
});
|
|
382
1161
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
383
1162
|
const doc = take(data, {
|
|
384
|
-
|
|
385
|
-
stage: _json,
|
|
1163
|
+
storageConfiguration: _json,
|
|
386
1164
|
});
|
|
387
1165
|
Object.assign(contents, doc);
|
|
388
1166
|
return contents;
|
|
389
1167
|
};
|
|
390
|
-
const
|
|
1168
|
+
const de_GetStorageConfigurationCommandError = async (output, context) => {
|
|
391
1169
|
const parsedOutput = {
|
|
392
1170
|
...output,
|
|
393
1171
|
body: await parseErrorBody(output.body, context),
|
|
@@ -397,9 +1175,15 @@ const de_CreateStageCommandError = async (output, context) => {
|
|
|
397
1175
|
case "AccessDeniedException":
|
|
398
1176
|
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
399
1177
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
400
|
-
case "
|
|
401
|
-
case "com.amazonaws.ivsrealtime#
|
|
402
|
-
throw await
|
|
1178
|
+
case "ConflictException":
|
|
1179
|
+
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
1180
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1181
|
+
case "InternalServerException":
|
|
1182
|
+
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
1183
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1184
|
+
case "ResourceNotFoundException":
|
|
1185
|
+
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
1186
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
403
1187
|
case "ServiceQuotaExceededException":
|
|
404
1188
|
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
405
1189
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
@@ -415,17 +1199,22 @@ const de_CreateStageCommandError = async (output, context) => {
|
|
|
415
1199
|
});
|
|
416
1200
|
}
|
|
417
1201
|
};
|
|
418
|
-
export const
|
|
1202
|
+
export const de_ListCompositionsCommand = async (output, context) => {
|
|
419
1203
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
420
|
-
return
|
|
1204
|
+
return de_ListCompositionsCommandError(output, context);
|
|
421
1205
|
}
|
|
422
1206
|
const contents = map({
|
|
423
1207
|
$metadata: deserializeMetadata(output),
|
|
424
1208
|
});
|
|
425
|
-
await
|
|
1209
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1210
|
+
const doc = take(data, {
|
|
1211
|
+
compositions: (_) => de_CompositionSummaryList(_, context),
|
|
1212
|
+
nextToken: __expectString,
|
|
1213
|
+
});
|
|
1214
|
+
Object.assign(contents, doc);
|
|
426
1215
|
return contents;
|
|
427
1216
|
};
|
|
428
|
-
const
|
|
1217
|
+
const de_ListCompositionsCommandError = async (output, context) => {
|
|
429
1218
|
const parsedOutput = {
|
|
430
1219
|
...output,
|
|
431
1220
|
body: await parseErrorBody(output.body, context),
|
|
@@ -438,12 +1227,12 @@ const de_DeleteStageCommandError = async (output, context) => {
|
|
|
438
1227
|
case "ConflictException":
|
|
439
1228
|
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
440
1229
|
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
441
|
-
case "
|
|
442
|
-
case "com.amazonaws.ivsrealtime#
|
|
443
|
-
throw await
|
|
444
|
-
case "
|
|
445
|
-
case "com.amazonaws.ivsrealtime#
|
|
446
|
-
throw await
|
|
1230
|
+
case "InternalServerException":
|
|
1231
|
+
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
1232
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1233
|
+
case "ServiceQuotaExceededException":
|
|
1234
|
+
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
1235
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
447
1236
|
case "ValidationException":
|
|
448
1237
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
449
1238
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -456,17 +1245,22 @@ const de_DeleteStageCommandError = async (output, context) => {
|
|
|
456
1245
|
});
|
|
457
1246
|
}
|
|
458
1247
|
};
|
|
459
|
-
export const
|
|
1248
|
+
export const de_ListEncoderConfigurationsCommand = async (output, context) => {
|
|
460
1249
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
461
|
-
return
|
|
1250
|
+
return de_ListEncoderConfigurationsCommandError(output, context);
|
|
462
1251
|
}
|
|
463
1252
|
const contents = map({
|
|
464
1253
|
$metadata: deserializeMetadata(output),
|
|
465
1254
|
});
|
|
466
|
-
await
|
|
1255
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1256
|
+
const doc = take(data, {
|
|
1257
|
+
encoderConfigurations: _json,
|
|
1258
|
+
nextToken: __expectString,
|
|
1259
|
+
});
|
|
1260
|
+
Object.assign(contents, doc);
|
|
467
1261
|
return contents;
|
|
468
1262
|
};
|
|
469
|
-
const
|
|
1263
|
+
const de_ListEncoderConfigurationsCommandError = async (output, context) => {
|
|
470
1264
|
const parsedOutput = {
|
|
471
1265
|
...output,
|
|
472
1266
|
body: await parseErrorBody(output.body, context),
|
|
@@ -476,12 +1270,15 @@ const de_DisconnectParticipantCommandError = async (output, context) => {
|
|
|
476
1270
|
case "AccessDeniedException":
|
|
477
1271
|
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
478
1272
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
479
|
-
case "
|
|
480
|
-
case "com.amazonaws.ivsrealtime#
|
|
481
|
-
throw await
|
|
482
|
-
case "
|
|
483
|
-
case "com.amazonaws.ivsrealtime#
|
|
484
|
-
throw await
|
|
1273
|
+
case "ConflictException":
|
|
1274
|
+
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
1275
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
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);
|
|
485
1282
|
case "ValidationException":
|
|
486
1283
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
487
1284
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -494,21 +1291,22 @@ const de_DisconnectParticipantCommandError = async (output, context) => {
|
|
|
494
1291
|
});
|
|
495
1292
|
}
|
|
496
1293
|
};
|
|
497
|
-
export const
|
|
1294
|
+
export const de_ListParticipantEventsCommand = async (output, context) => {
|
|
498
1295
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
499
|
-
return
|
|
1296
|
+
return de_ListParticipantEventsCommandError(output, context);
|
|
500
1297
|
}
|
|
501
1298
|
const contents = map({
|
|
502
1299
|
$metadata: deserializeMetadata(output),
|
|
503
1300
|
});
|
|
504
1301
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
505
1302
|
const doc = take(data, {
|
|
506
|
-
|
|
1303
|
+
events: (_) => de_EventList(_, context),
|
|
1304
|
+
nextToken: __expectString,
|
|
507
1305
|
});
|
|
508
1306
|
Object.assign(contents, doc);
|
|
509
1307
|
return contents;
|
|
510
1308
|
};
|
|
511
|
-
const
|
|
1309
|
+
const de_ListParticipantEventsCommandError = async (output, context) => {
|
|
512
1310
|
const parsedOutput = {
|
|
513
1311
|
...output,
|
|
514
1312
|
body: await parseErrorBody(output.body, context),
|
|
@@ -518,9 +1316,6 @@ const de_GetParticipantCommandError = async (output, context) => {
|
|
|
518
1316
|
case "AccessDeniedException":
|
|
519
1317
|
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
520
1318
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
521
|
-
case "ResourceNotFoundException":
|
|
522
|
-
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
523
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
524
1319
|
case "ValidationException":
|
|
525
1320
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
526
1321
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -533,21 +1328,22 @@ const de_GetParticipantCommandError = async (output, context) => {
|
|
|
533
1328
|
});
|
|
534
1329
|
}
|
|
535
1330
|
};
|
|
536
|
-
export const
|
|
1331
|
+
export const de_ListParticipantsCommand = async (output, context) => {
|
|
537
1332
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
538
|
-
return
|
|
1333
|
+
return de_ListParticipantsCommandError(output, context);
|
|
539
1334
|
}
|
|
540
1335
|
const contents = map({
|
|
541
1336
|
$metadata: deserializeMetadata(output),
|
|
542
1337
|
});
|
|
543
1338
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
544
1339
|
const doc = take(data, {
|
|
545
|
-
|
|
1340
|
+
nextToken: __expectString,
|
|
1341
|
+
participants: (_) => de_ParticipantList(_, context),
|
|
546
1342
|
});
|
|
547
1343
|
Object.assign(contents, doc);
|
|
548
1344
|
return contents;
|
|
549
1345
|
};
|
|
550
|
-
const
|
|
1346
|
+
const de_ListParticipantsCommandError = async (output, context) => {
|
|
551
1347
|
const parsedOutput = {
|
|
552
1348
|
...output,
|
|
553
1349
|
body: await parseErrorBody(output.body, context),
|
|
@@ -557,9 +1353,6 @@ const de_GetStageCommandError = async (output, context) => {
|
|
|
557
1353
|
case "AccessDeniedException":
|
|
558
1354
|
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
559
1355
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
560
|
-
case "ResourceNotFoundException":
|
|
561
|
-
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
562
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
563
1356
|
case "ValidationException":
|
|
564
1357
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
565
1358
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -572,21 +1365,22 @@ const de_GetStageCommandError = async (output, context) => {
|
|
|
572
1365
|
});
|
|
573
1366
|
}
|
|
574
1367
|
};
|
|
575
|
-
export const
|
|
1368
|
+
export const de_ListStagesCommand = async (output, context) => {
|
|
576
1369
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
577
|
-
return
|
|
1370
|
+
return de_ListStagesCommandError(output, context);
|
|
578
1371
|
}
|
|
579
1372
|
const contents = map({
|
|
580
1373
|
$metadata: deserializeMetadata(output),
|
|
581
1374
|
});
|
|
582
1375
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
583
1376
|
const doc = take(data, {
|
|
584
|
-
|
|
1377
|
+
nextToken: __expectString,
|
|
1378
|
+
stages: _json,
|
|
585
1379
|
});
|
|
586
1380
|
Object.assign(contents, doc);
|
|
587
1381
|
return contents;
|
|
588
1382
|
};
|
|
589
|
-
const
|
|
1383
|
+
const de_ListStagesCommandError = async (output, context) => {
|
|
590
1384
|
const parsedOutput = {
|
|
591
1385
|
...output,
|
|
592
1386
|
body: await parseErrorBody(output.body, context),
|
|
@@ -596,9 +1390,9 @@ const de_GetStageSessionCommandError = async (output, context) => {
|
|
|
596
1390
|
case "AccessDeniedException":
|
|
597
1391
|
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
598
1392
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
599
|
-
case "
|
|
600
|
-
case "com.amazonaws.ivsrealtime#
|
|
601
|
-
throw await
|
|
1393
|
+
case "ConflictException":
|
|
1394
|
+
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
1395
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
602
1396
|
case "ValidationException":
|
|
603
1397
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
604
1398
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -611,22 +1405,22 @@ const de_GetStageSessionCommandError = async (output, context) => {
|
|
|
611
1405
|
});
|
|
612
1406
|
}
|
|
613
1407
|
};
|
|
614
|
-
export const
|
|
1408
|
+
export const de_ListStageSessionsCommand = async (output, context) => {
|
|
615
1409
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
616
|
-
return
|
|
1410
|
+
return de_ListStageSessionsCommandError(output, context);
|
|
617
1411
|
}
|
|
618
1412
|
const contents = map({
|
|
619
1413
|
$metadata: deserializeMetadata(output),
|
|
620
1414
|
});
|
|
621
1415
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
622
1416
|
const doc = take(data, {
|
|
623
|
-
events: (_) => de_EventList(_, context),
|
|
624
1417
|
nextToken: __expectString,
|
|
1418
|
+
stageSessions: (_) => de_StageSessionList(_, context),
|
|
625
1419
|
});
|
|
626
1420
|
Object.assign(contents, doc);
|
|
627
1421
|
return contents;
|
|
628
1422
|
};
|
|
629
|
-
const
|
|
1423
|
+
const de_ListStageSessionsCommandError = async (output, context) => {
|
|
630
1424
|
const parsedOutput = {
|
|
631
1425
|
...output,
|
|
632
1426
|
body: await parseErrorBody(output.body, context),
|
|
@@ -648,9 +1442,9 @@ const de_ListParticipantEventsCommandError = async (output, context) => {
|
|
|
648
1442
|
});
|
|
649
1443
|
}
|
|
650
1444
|
};
|
|
651
|
-
export const
|
|
1445
|
+
export const de_ListStorageConfigurationsCommand = async (output, context) => {
|
|
652
1446
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
653
|
-
return
|
|
1447
|
+
return de_ListStorageConfigurationsCommandError(output, context);
|
|
654
1448
|
}
|
|
655
1449
|
const contents = map({
|
|
656
1450
|
$metadata: deserializeMetadata(output),
|
|
@@ -658,12 +1452,12 @@ export const de_ListParticipantsCommand = async (output, context) => {
|
|
|
658
1452
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
659
1453
|
const doc = take(data, {
|
|
660
1454
|
nextToken: __expectString,
|
|
661
|
-
|
|
1455
|
+
storageConfigurations: _json,
|
|
662
1456
|
});
|
|
663
1457
|
Object.assign(contents, doc);
|
|
664
1458
|
return contents;
|
|
665
1459
|
};
|
|
666
|
-
const
|
|
1460
|
+
const de_ListStorageConfigurationsCommandError = async (output, context) => {
|
|
667
1461
|
const parsedOutput = {
|
|
668
1462
|
...output,
|
|
669
1463
|
body: await parseErrorBody(output.body, context),
|
|
@@ -673,6 +1467,15 @@ const de_ListParticipantsCommandError = async (output, context) => {
|
|
|
673
1467
|
case "AccessDeniedException":
|
|
674
1468
|
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
675
1469
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1470
|
+
case "ConflictException":
|
|
1471
|
+
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
1472
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1473
|
+
case "InternalServerException":
|
|
1474
|
+
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
1475
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1476
|
+
case "ServiceQuotaExceededException":
|
|
1477
|
+
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
1478
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
676
1479
|
case "ValidationException":
|
|
677
1480
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
678
1481
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -685,34 +1488,33 @@ const de_ListParticipantsCommandError = async (output, context) => {
|
|
|
685
1488
|
});
|
|
686
1489
|
}
|
|
687
1490
|
};
|
|
688
|
-
export const
|
|
1491
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
689
1492
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
690
|
-
return
|
|
1493
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
691
1494
|
}
|
|
692
1495
|
const contents = map({
|
|
693
1496
|
$metadata: deserializeMetadata(output),
|
|
694
1497
|
});
|
|
695
1498
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
696
1499
|
const doc = take(data, {
|
|
697
|
-
|
|
698
|
-
stages: _json,
|
|
1500
|
+
tags: _json,
|
|
699
1501
|
});
|
|
700
1502
|
Object.assign(contents, doc);
|
|
701
1503
|
return contents;
|
|
702
1504
|
};
|
|
703
|
-
const
|
|
1505
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
704
1506
|
const parsedOutput = {
|
|
705
1507
|
...output,
|
|
706
1508
|
body: await parseErrorBody(output.body, context),
|
|
707
1509
|
};
|
|
708
1510
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
709
1511
|
switch (errorCode) {
|
|
710
|
-
case "
|
|
711
|
-
case "com.amazonaws.ivsrealtime#
|
|
712
|
-
throw await
|
|
713
|
-
case "
|
|
714
|
-
case "com.amazonaws.ivsrealtime#
|
|
715
|
-
throw await
|
|
1512
|
+
case "InternalServerException":
|
|
1513
|
+
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
1514
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1515
|
+
case "ResourceNotFoundException":
|
|
1516
|
+
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
1517
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
716
1518
|
case "ValidationException":
|
|
717
1519
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
718
1520
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -725,22 +1527,21 @@ const de_ListStagesCommandError = async (output, context) => {
|
|
|
725
1527
|
});
|
|
726
1528
|
}
|
|
727
1529
|
};
|
|
728
|
-
export const
|
|
1530
|
+
export const de_StartCompositionCommand = async (output, context) => {
|
|
729
1531
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
730
|
-
return
|
|
1532
|
+
return de_StartCompositionCommandError(output, context);
|
|
731
1533
|
}
|
|
732
1534
|
const contents = map({
|
|
733
1535
|
$metadata: deserializeMetadata(output),
|
|
734
1536
|
});
|
|
735
1537
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
736
1538
|
const doc = take(data, {
|
|
737
|
-
|
|
738
|
-
stageSessions: (_) => de_StageSessionList(_, context),
|
|
1539
|
+
composition: (_) => de_Composition(_, context),
|
|
739
1540
|
});
|
|
740
1541
|
Object.assign(contents, doc);
|
|
741
1542
|
return contents;
|
|
742
1543
|
};
|
|
743
|
-
const
|
|
1544
|
+
const de_StartCompositionCommandError = async (output, context) => {
|
|
744
1545
|
const parsedOutput = {
|
|
745
1546
|
...output,
|
|
746
1547
|
body: await parseErrorBody(output.body, context),
|
|
@@ -750,6 +1551,21 @@ const de_ListStageSessionsCommandError = async (output, context) => {
|
|
|
750
1551
|
case "AccessDeniedException":
|
|
751
1552
|
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
752
1553
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1554
|
+
case "ConflictException":
|
|
1555
|
+
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
1556
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1557
|
+
case "InternalServerException":
|
|
1558
|
+
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
1559
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1560
|
+
case "PendingVerification":
|
|
1561
|
+
case "com.amazonaws.ivsrealtime#PendingVerification":
|
|
1562
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
1563
|
+
case "ResourceNotFoundException":
|
|
1564
|
+
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
1565
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1566
|
+
case "ServiceQuotaExceededException":
|
|
1567
|
+
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
1568
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
753
1569
|
case "ValidationException":
|
|
754
1570
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
755
1571
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -762,33 +1578,38 @@ const de_ListStageSessionsCommandError = async (output, context) => {
|
|
|
762
1578
|
});
|
|
763
1579
|
}
|
|
764
1580
|
};
|
|
765
|
-
export const
|
|
1581
|
+
export const de_StopCompositionCommand = async (output, context) => {
|
|
766
1582
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
767
|
-
return
|
|
1583
|
+
return de_StopCompositionCommandError(output, context);
|
|
768
1584
|
}
|
|
769
1585
|
const contents = map({
|
|
770
1586
|
$metadata: deserializeMetadata(output),
|
|
771
1587
|
});
|
|
772
|
-
|
|
773
|
-
const doc = take(data, {
|
|
774
|
-
tags: _json,
|
|
775
|
-
});
|
|
776
|
-
Object.assign(contents, doc);
|
|
1588
|
+
await collectBody(output.body, context);
|
|
777
1589
|
return contents;
|
|
778
1590
|
};
|
|
779
|
-
const
|
|
1591
|
+
const de_StopCompositionCommandError = async (output, context) => {
|
|
780
1592
|
const parsedOutput = {
|
|
781
1593
|
...output,
|
|
782
1594
|
body: await parseErrorBody(output.body, context),
|
|
783
1595
|
};
|
|
784
1596
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
785
1597
|
switch (errorCode) {
|
|
1598
|
+
case "AccessDeniedException":
|
|
1599
|
+
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
1600
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1601
|
+
case "ConflictException":
|
|
1602
|
+
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
1603
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
786
1604
|
case "InternalServerException":
|
|
787
1605
|
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
788
1606
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
789
1607
|
case "ResourceNotFoundException":
|
|
790
1608
|
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
791
1609
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1610
|
+
case "ServiceQuotaExceededException":
|
|
1611
|
+
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
1612
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
792
1613
|
case "ValidationException":
|
|
793
1614
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
794
1615
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -1008,6 +1829,87 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
1008
1829
|
});
|
|
1009
1830
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1010
1831
|
};
|
|
1832
|
+
const se_Video = (input, context) => {
|
|
1833
|
+
return take(input, {
|
|
1834
|
+
bitrate: [],
|
|
1835
|
+
framerate: __serializeFloat,
|
|
1836
|
+
height: [],
|
|
1837
|
+
width: [],
|
|
1838
|
+
});
|
|
1839
|
+
};
|
|
1840
|
+
const de_Composition = (output, context) => {
|
|
1841
|
+
return take(output, {
|
|
1842
|
+
arn: __expectString,
|
|
1843
|
+
destinations: (_) => de_DestinationList(_, context),
|
|
1844
|
+
endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1845
|
+
layout: _json,
|
|
1846
|
+
stageArn: __expectString,
|
|
1847
|
+
startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1848
|
+
state: __expectString,
|
|
1849
|
+
tags: _json,
|
|
1850
|
+
});
|
|
1851
|
+
};
|
|
1852
|
+
const de_CompositionSummary = (output, context) => {
|
|
1853
|
+
return take(output, {
|
|
1854
|
+
arn: __expectString,
|
|
1855
|
+
destinations: (_) => de_DestinationSummaryList(_, context),
|
|
1856
|
+
endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1857
|
+
stageArn: __expectString,
|
|
1858
|
+
startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1859
|
+
state: __expectString,
|
|
1860
|
+
tags: _json,
|
|
1861
|
+
});
|
|
1862
|
+
};
|
|
1863
|
+
const de_CompositionSummaryList = (output, context) => {
|
|
1864
|
+
const retVal = (output || [])
|
|
1865
|
+
.filter((e) => e != null)
|
|
1866
|
+
.map((entry) => {
|
|
1867
|
+
return de_CompositionSummary(entry, context);
|
|
1868
|
+
});
|
|
1869
|
+
return retVal;
|
|
1870
|
+
};
|
|
1871
|
+
const de_Destination = (output, context) => {
|
|
1872
|
+
return take(output, {
|
|
1873
|
+
configuration: _json,
|
|
1874
|
+
detail: _json,
|
|
1875
|
+
endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1876
|
+
id: __expectString,
|
|
1877
|
+
startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1878
|
+
state: __expectString,
|
|
1879
|
+
});
|
|
1880
|
+
};
|
|
1881
|
+
const de_DestinationList = (output, context) => {
|
|
1882
|
+
const retVal = (output || [])
|
|
1883
|
+
.filter((e) => e != null)
|
|
1884
|
+
.map((entry) => {
|
|
1885
|
+
return de_Destination(entry, context);
|
|
1886
|
+
});
|
|
1887
|
+
return retVal;
|
|
1888
|
+
};
|
|
1889
|
+
const de_DestinationSummary = (output, context) => {
|
|
1890
|
+
return take(output, {
|
|
1891
|
+
endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1892
|
+
id: __expectString,
|
|
1893
|
+
startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1894
|
+
state: __expectString,
|
|
1895
|
+
});
|
|
1896
|
+
};
|
|
1897
|
+
const de_DestinationSummaryList = (output, context) => {
|
|
1898
|
+
const retVal = (output || [])
|
|
1899
|
+
.filter((e) => e != null)
|
|
1900
|
+
.map((entry) => {
|
|
1901
|
+
return de_DestinationSummary(entry, context);
|
|
1902
|
+
});
|
|
1903
|
+
return retVal;
|
|
1904
|
+
};
|
|
1905
|
+
const de_EncoderConfiguration = (output, context) => {
|
|
1906
|
+
return take(output, {
|
|
1907
|
+
arn: __expectString,
|
|
1908
|
+
name: __expectString,
|
|
1909
|
+
tags: _json,
|
|
1910
|
+
video: (_) => de_Video(_, context),
|
|
1911
|
+
});
|
|
1912
|
+
};
|
|
1011
1913
|
const de_Event = (output, context) => {
|
|
1012
1914
|
return take(output, {
|
|
1013
1915
|
errorCode: __expectString,
|
|
@@ -1099,6 +2001,14 @@ const de_StageSessionSummary = (output, context) => {
|
|
|
1099
2001
|
startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1100
2002
|
});
|
|
1101
2003
|
};
|
|
2004
|
+
const de_Video = (output, context) => {
|
|
2005
|
+
return take(output, {
|
|
2006
|
+
bitrate: __expectInt32,
|
|
2007
|
+
framerate: __limitedParseFloat32,
|
|
2008
|
+
height: __expectInt32,
|
|
2009
|
+
width: __expectInt32,
|
|
2010
|
+
});
|
|
2011
|
+
};
|
|
1102
2012
|
const deserializeMetadata = (output) => ({
|
|
1103
2013
|
httpStatusCode: output.statusCode,
|
|
1104
2014
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|