@aws-sdk/client-chime-sdk-media-pipelines 3.928.0 → 3.930.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.
Files changed (55) hide show
  1. package/dist-cjs/index.js +1749 -1789
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/ChimeSDKMediaPipelinesClient.js +2 -0
  4. package/dist-es/commands/CreateMediaCapturePipelineCommand.js +3 -10
  5. package/dist-es/commands/CreateMediaConcatenationPipelineCommand.js +3 -10
  6. package/dist-es/commands/CreateMediaInsightsPipelineCommand.js +3 -10
  7. package/dist-es/commands/CreateMediaInsightsPipelineConfigurationCommand.js +3 -10
  8. package/dist-es/commands/CreateMediaLiveConnectorPipelineCommand.js +3 -10
  9. package/dist-es/commands/CreateMediaPipelineKinesisVideoStreamPoolCommand.js +3 -10
  10. package/dist-es/commands/CreateMediaStreamPipelineCommand.js +3 -10
  11. package/dist-es/commands/DeleteMediaCapturePipelineCommand.js +3 -9
  12. package/dist-es/commands/DeleteMediaInsightsPipelineConfigurationCommand.js +3 -9
  13. package/dist-es/commands/DeleteMediaPipelineCommand.js +3 -9
  14. package/dist-es/commands/DeleteMediaPipelineKinesisVideoStreamPoolCommand.js +3 -9
  15. package/dist-es/commands/GetMediaCapturePipelineCommand.js +3 -10
  16. package/dist-es/commands/GetMediaInsightsPipelineConfigurationCommand.js +3 -10
  17. package/dist-es/commands/GetMediaPipelineCommand.js +3 -10
  18. package/dist-es/commands/GetMediaPipelineKinesisVideoStreamPoolCommand.js +3 -10
  19. package/dist-es/commands/GetSpeakerSearchTaskCommand.js +3 -9
  20. package/dist-es/commands/GetVoiceToneAnalysisTaskCommand.js +3 -9
  21. package/dist-es/commands/ListMediaCapturePipelinesCommand.js +3 -9
  22. package/dist-es/commands/ListMediaInsightsPipelineConfigurationsCommand.js +3 -10
  23. package/dist-es/commands/ListMediaPipelineKinesisVideoStreamPoolsCommand.js +3 -10
  24. package/dist-es/commands/ListMediaPipelinesCommand.js +3 -9
  25. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  26. package/dist-es/commands/StartSpeakerSearchTaskCommand.js +3 -10
  27. package/dist-es/commands/StartVoiceToneAnalysisTaskCommand.js +3 -10
  28. package/dist-es/commands/StopSpeakerSearchTaskCommand.js +3 -9
  29. package/dist-es/commands/StopVoiceToneAnalysisTaskCommand.js +3 -9
  30. package/dist-es/commands/TagResourceCommand.js +3 -9
  31. package/dist-es/commands/UntagResourceCommand.js +3 -9
  32. package/dist-es/commands/UpdateMediaInsightsPipelineConfigurationCommand.js +3 -10
  33. package/dist-es/commands/UpdateMediaInsightsPipelineStatusCommand.js +3 -9
  34. package/dist-es/commands/UpdateMediaPipelineKinesisVideoStreamPoolCommand.js +3 -10
  35. package/dist-es/models/models_0.js +0 -334
  36. package/dist-es/runtimeConfig.shared.js +2 -0
  37. package/dist-es/schemas/schemas_0.js +1668 -0
  38. package/dist-types/ChimeSDKMediaPipelinesClient.d.ts +10 -1
  39. package/dist-types/models/models_0.d.ts +0 -220
  40. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  41. package/dist-types/runtimeConfig.d.ts +1 -0
  42. package/dist-types/runtimeConfig.native.d.ts +1 -0
  43. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  44. package/dist-types/schemas/schemas_0.d.ts +203 -0
  45. package/dist-types/ts3.4/ChimeSDKMediaPipelinesClient.d.ts +4 -0
  46. package/dist-types/ts3.4/models/models_0.d.ts +0 -165
  47. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  48. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  49. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  50. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  51. package/dist-types/ts3.4/schemas/schemas_0.d.ts +210 -0
  52. package/package.json +33 -34
  53. package/dist-es/protocols/Aws_restJson1.js +0 -1164
  54. package/dist-types/protocols/Aws_restJson1.d.ts +0 -281
  55. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -377
@@ -1,1164 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
4
- import { v4 as generateIdempotencyToken } from "@smithy/uuid";
5
- import { ChimeSDKMediaPipelinesServiceException as __BaseException } from "../models/ChimeSDKMediaPipelinesServiceException";
6
- import { BadRequestException, ConflictException, ForbiddenException, NotFoundException, ResourceLimitExceededException, ServiceFailureException, ServiceUnavailableException, ThrottledClientException, UnauthorizedClientException, } from "../models/models_0";
7
- export const se_CreateMediaCapturePipelineCommand = async (input, context) => {
8
- const b = rb(input, context);
9
- const headers = {
10
- "content-type": "application/json",
11
- };
12
- b.bp("/sdk-media-capture-pipelines");
13
- let body;
14
- body = JSON.stringify(take(input, {
15
- ChimeSdkMeetingConfiguration: (_) => _json(_),
16
- ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
17
- SinkArn: [],
18
- SinkIamRoleArn: [],
19
- SinkType: [],
20
- SourceArn: [],
21
- SourceType: [],
22
- SseAwsKeyManagementParams: (_) => _json(_),
23
- Tags: (_) => _json(_),
24
- }));
25
- b.m("POST").h(headers).b(body);
26
- return b.build();
27
- };
28
- export const se_CreateMediaConcatenationPipelineCommand = async (input, context) => {
29
- const b = rb(input, context);
30
- const headers = {
31
- "content-type": "application/json",
32
- };
33
- b.bp("/sdk-media-concatenation-pipelines");
34
- let body;
35
- body = JSON.stringify(take(input, {
36
- ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
37
- Sinks: (_) => _json(_),
38
- Sources: (_) => _json(_),
39
- Tags: (_) => _json(_),
40
- }));
41
- b.m("POST").h(headers).b(body);
42
- return b.build();
43
- };
44
- export const se_CreateMediaInsightsPipelineCommand = async (input, context) => {
45
- const b = rb(input, context);
46
- const headers = {
47
- "content-type": "application/json",
48
- };
49
- b.bp("/media-insights-pipelines");
50
- let body;
51
- body = JSON.stringify(take(input, {
52
- ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
53
- KinesisVideoStreamRecordingSourceRuntimeConfiguration: (_) => se_KinesisVideoStreamRecordingSourceRuntimeConfiguration(_, context),
54
- KinesisVideoStreamSourceRuntimeConfiguration: (_) => _json(_),
55
- MediaInsightsPipelineConfigurationArn: [],
56
- MediaInsightsRuntimeMetadata: (_) => _json(_),
57
- S3RecordingSinkRuntimeConfiguration: (_) => _json(_),
58
- Tags: (_) => _json(_),
59
- }));
60
- b.m("POST").h(headers).b(body);
61
- return b.build();
62
- };
63
- export const se_CreateMediaInsightsPipelineConfigurationCommand = async (input, context) => {
64
- const b = rb(input, context);
65
- const headers = {
66
- "content-type": "application/json",
67
- };
68
- b.bp("/media-insights-pipeline-configurations");
69
- let body;
70
- body = JSON.stringify(take(input, {
71
- ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
72
- Elements: (_) => _json(_),
73
- MediaInsightsPipelineConfigurationName: [],
74
- RealTimeAlertConfiguration: (_) => _json(_),
75
- ResourceAccessRoleArn: [],
76
- Tags: (_) => _json(_),
77
- }));
78
- b.m("POST").h(headers).b(body);
79
- return b.build();
80
- };
81
- export const se_CreateMediaLiveConnectorPipelineCommand = async (input, context) => {
82
- const b = rb(input, context);
83
- const headers = {
84
- "content-type": "application/json",
85
- };
86
- b.bp("/sdk-media-live-connector-pipelines");
87
- let body;
88
- body = JSON.stringify(take(input, {
89
- ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
90
- Sinks: (_) => _json(_),
91
- Sources: (_) => _json(_),
92
- Tags: (_) => _json(_),
93
- }));
94
- b.m("POST").h(headers).b(body);
95
- return b.build();
96
- };
97
- export const se_CreateMediaPipelineKinesisVideoStreamPoolCommand = async (input, context) => {
98
- const b = rb(input, context);
99
- const headers = {
100
- "content-type": "application/json",
101
- };
102
- b.bp("/media-pipeline-kinesis-video-stream-pools");
103
- let body;
104
- body = JSON.stringify(take(input, {
105
- ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
106
- PoolName: [],
107
- StreamConfiguration: (_) => _json(_),
108
- Tags: (_) => _json(_),
109
- }));
110
- b.m("POST").h(headers).b(body);
111
- return b.build();
112
- };
113
- export const se_CreateMediaStreamPipelineCommand = async (input, context) => {
114
- const b = rb(input, context);
115
- const headers = {
116
- "content-type": "application/json",
117
- };
118
- b.bp("/sdk-media-stream-pipelines");
119
- let body;
120
- body = JSON.stringify(take(input, {
121
- ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
122
- Sinks: (_) => _json(_),
123
- Sources: (_) => _json(_),
124
- Tags: (_) => _json(_),
125
- }));
126
- b.m("POST").h(headers).b(body);
127
- return b.build();
128
- };
129
- export const se_DeleteMediaCapturePipelineCommand = async (input, context) => {
130
- const b = rb(input, context);
131
- const headers = {};
132
- b.bp("/sdk-media-capture-pipelines/{MediaPipelineId}");
133
- b.p("MediaPipelineId", () => input.MediaPipelineId, "{MediaPipelineId}", false);
134
- let body;
135
- b.m("DELETE").h(headers).b(body);
136
- return b.build();
137
- };
138
- export const se_DeleteMediaInsightsPipelineConfigurationCommand = async (input, context) => {
139
- const b = rb(input, context);
140
- const headers = {};
141
- b.bp("/media-insights-pipeline-configurations/{Identifier}");
142
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
143
- let body;
144
- b.m("DELETE").h(headers).b(body);
145
- return b.build();
146
- };
147
- export const se_DeleteMediaPipelineCommand = async (input, context) => {
148
- const b = rb(input, context);
149
- const headers = {};
150
- b.bp("/sdk-media-pipelines/{MediaPipelineId}");
151
- b.p("MediaPipelineId", () => input.MediaPipelineId, "{MediaPipelineId}", false);
152
- let body;
153
- b.m("DELETE").h(headers).b(body);
154
- return b.build();
155
- };
156
- export const se_DeleteMediaPipelineKinesisVideoStreamPoolCommand = async (input, context) => {
157
- const b = rb(input, context);
158
- const headers = {};
159
- b.bp("/media-pipeline-kinesis-video-stream-pools/{Identifier}");
160
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
161
- let body;
162
- b.m("DELETE").h(headers).b(body);
163
- return b.build();
164
- };
165
- export const se_GetMediaCapturePipelineCommand = async (input, context) => {
166
- const b = rb(input, context);
167
- const headers = {};
168
- b.bp("/sdk-media-capture-pipelines/{MediaPipelineId}");
169
- b.p("MediaPipelineId", () => input.MediaPipelineId, "{MediaPipelineId}", false);
170
- let body;
171
- b.m("GET").h(headers).b(body);
172
- return b.build();
173
- };
174
- export const se_GetMediaInsightsPipelineConfigurationCommand = async (input, context) => {
175
- const b = rb(input, context);
176
- const headers = {};
177
- b.bp("/media-insights-pipeline-configurations/{Identifier}");
178
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
179
- let body;
180
- b.m("GET").h(headers).b(body);
181
- return b.build();
182
- };
183
- export const se_GetMediaPipelineCommand = async (input, context) => {
184
- const b = rb(input, context);
185
- const headers = {};
186
- b.bp("/sdk-media-pipelines/{MediaPipelineId}");
187
- b.p("MediaPipelineId", () => input.MediaPipelineId, "{MediaPipelineId}", false);
188
- let body;
189
- b.m("GET").h(headers).b(body);
190
- return b.build();
191
- };
192
- export const se_GetMediaPipelineKinesisVideoStreamPoolCommand = async (input, context) => {
193
- const b = rb(input, context);
194
- const headers = {};
195
- b.bp("/media-pipeline-kinesis-video-stream-pools/{Identifier}");
196
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
197
- let body;
198
- b.m("GET").h(headers).b(body);
199
- return b.build();
200
- };
201
- export const se_GetSpeakerSearchTaskCommand = async (input, context) => {
202
- const b = rb(input, context);
203
- const headers = {};
204
- b.bp("/media-insights-pipelines/{Identifier}/speaker-search-tasks/{SpeakerSearchTaskId}");
205
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
206
- b.p("SpeakerSearchTaskId", () => input.SpeakerSearchTaskId, "{SpeakerSearchTaskId}", false);
207
- let body;
208
- b.m("GET").h(headers).b(body);
209
- return b.build();
210
- };
211
- export const se_GetVoiceToneAnalysisTaskCommand = async (input, context) => {
212
- const b = rb(input, context);
213
- const headers = {};
214
- b.bp("/media-insights-pipelines/{Identifier}/voice-tone-analysis-tasks/{VoiceToneAnalysisTaskId}");
215
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
216
- b.p("VoiceToneAnalysisTaskId", () => input.VoiceToneAnalysisTaskId, "{VoiceToneAnalysisTaskId}", false);
217
- let body;
218
- b.m("GET").h(headers).b(body);
219
- return b.build();
220
- };
221
- export const se_ListMediaCapturePipelinesCommand = async (input, context) => {
222
- const b = rb(input, context);
223
- const headers = {};
224
- b.bp("/sdk-media-capture-pipelines");
225
- const query = map({
226
- [_nt]: [, input[_NT]],
227
- [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
228
- });
229
- let body;
230
- b.m("GET").h(headers).q(query).b(body);
231
- return b.build();
232
- };
233
- export const se_ListMediaInsightsPipelineConfigurationsCommand = async (input, context) => {
234
- const b = rb(input, context);
235
- const headers = {};
236
- b.bp("/media-insights-pipeline-configurations");
237
- const query = map({
238
- [_nt]: [, input[_NT]],
239
- [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
240
- });
241
- let body;
242
- b.m("GET").h(headers).q(query).b(body);
243
- return b.build();
244
- };
245
- export const se_ListMediaPipelineKinesisVideoStreamPoolsCommand = async (input, context) => {
246
- const b = rb(input, context);
247
- const headers = {};
248
- b.bp("/media-pipeline-kinesis-video-stream-pools");
249
- const query = map({
250
- [_nt]: [, input[_NT]],
251
- [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
252
- });
253
- let body;
254
- b.m("GET").h(headers).q(query).b(body);
255
- return b.build();
256
- };
257
- export const se_ListMediaPipelinesCommand = async (input, context) => {
258
- const b = rb(input, context);
259
- const headers = {};
260
- b.bp("/sdk-media-pipelines");
261
- const query = map({
262
- [_nt]: [, input[_NT]],
263
- [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
264
- });
265
- let body;
266
- b.m("GET").h(headers).q(query).b(body);
267
- return b.build();
268
- };
269
- export const se_ListTagsForResourceCommand = async (input, context) => {
270
- const b = rb(input, context);
271
- const headers = {};
272
- b.bp("/tags");
273
- const query = map({
274
- [_a]: [, __expectNonNull(input[_RARN], `ResourceARN`)],
275
- });
276
- let body;
277
- b.m("GET").h(headers).q(query).b(body);
278
- return b.build();
279
- };
280
- export const se_StartSpeakerSearchTaskCommand = async (input, context) => {
281
- const b = rb(input, context);
282
- const headers = {
283
- "content-type": "application/json",
284
- };
285
- b.bp("/media-insights-pipelines/{Identifier}/speaker-search-tasks");
286
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
287
- const query = map({
288
- [_o]: [, "start"],
289
- });
290
- let body;
291
- body = JSON.stringify(take(input, {
292
- ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
293
- KinesisVideoStreamSourceTaskConfiguration: (_) => _json(_),
294
- VoiceProfileDomainArn: [],
295
- }));
296
- b.m("POST").h(headers).q(query).b(body);
297
- return b.build();
298
- };
299
- export const se_StartVoiceToneAnalysisTaskCommand = async (input, context) => {
300
- const b = rb(input, context);
301
- const headers = {
302
- "content-type": "application/json",
303
- };
304
- b.bp("/media-insights-pipelines/{Identifier}/voice-tone-analysis-tasks");
305
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
306
- const query = map({
307
- [_o]: [, "start"],
308
- });
309
- let body;
310
- body = JSON.stringify(take(input, {
311
- ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
312
- KinesisVideoStreamSourceTaskConfiguration: (_) => _json(_),
313
- LanguageCode: [],
314
- }));
315
- b.m("POST").h(headers).q(query).b(body);
316
- return b.build();
317
- };
318
- export const se_StopSpeakerSearchTaskCommand = async (input, context) => {
319
- const b = rb(input, context);
320
- const headers = {};
321
- b.bp("/media-insights-pipelines/{Identifier}/speaker-search-tasks/{SpeakerSearchTaskId}");
322
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
323
- b.p("SpeakerSearchTaskId", () => input.SpeakerSearchTaskId, "{SpeakerSearchTaskId}", false);
324
- const query = map({
325
- [_o]: [, "stop"],
326
- });
327
- let body;
328
- b.m("POST").h(headers).q(query).b(body);
329
- return b.build();
330
- };
331
- export const se_StopVoiceToneAnalysisTaskCommand = async (input, context) => {
332
- const b = rb(input, context);
333
- const headers = {};
334
- b.bp("/media-insights-pipelines/{Identifier}/voice-tone-analysis-tasks/{VoiceToneAnalysisTaskId}");
335
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
336
- b.p("VoiceToneAnalysisTaskId", () => input.VoiceToneAnalysisTaskId, "{VoiceToneAnalysisTaskId}", false);
337
- const query = map({
338
- [_o]: [, "stop"],
339
- });
340
- let body;
341
- b.m("POST").h(headers).q(query).b(body);
342
- return b.build();
343
- };
344
- export const se_TagResourceCommand = async (input, context) => {
345
- const b = rb(input, context);
346
- const headers = {
347
- "content-type": "application/json",
348
- };
349
- b.bp("/tags");
350
- const query = map({
351
- [_o]: [, "tag-resource"],
352
- });
353
- let body;
354
- body = JSON.stringify(take(input, {
355
- ResourceARN: [],
356
- Tags: (_) => _json(_),
357
- }));
358
- b.m("POST").h(headers).q(query).b(body);
359
- return b.build();
360
- };
361
- export const se_UntagResourceCommand = async (input, context) => {
362
- const b = rb(input, context);
363
- const headers = {
364
- "content-type": "application/json",
365
- };
366
- b.bp("/tags");
367
- const query = map({
368
- [_o]: [, "untag-resource"],
369
- });
370
- let body;
371
- body = JSON.stringify(take(input, {
372
- ResourceARN: [],
373
- TagKeys: (_) => _json(_),
374
- }));
375
- b.m("POST").h(headers).q(query).b(body);
376
- return b.build();
377
- };
378
- export const se_UpdateMediaInsightsPipelineConfigurationCommand = async (input, context) => {
379
- const b = rb(input, context);
380
- const headers = {
381
- "content-type": "application/json",
382
- };
383
- b.bp("/media-insights-pipeline-configurations/{Identifier}");
384
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
385
- let body;
386
- body = JSON.stringify(take(input, {
387
- Elements: (_) => _json(_),
388
- RealTimeAlertConfiguration: (_) => _json(_),
389
- ResourceAccessRoleArn: [],
390
- }));
391
- b.m("PUT").h(headers).b(body);
392
- return b.build();
393
- };
394
- export const se_UpdateMediaInsightsPipelineStatusCommand = async (input, context) => {
395
- const b = rb(input, context);
396
- const headers = {
397
- "content-type": "application/json",
398
- };
399
- b.bp("/media-insights-pipeline-status/{Identifier}");
400
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
401
- let body;
402
- body = JSON.stringify(take(input, {
403
- UpdateStatus: [],
404
- }));
405
- b.m("PUT").h(headers).b(body);
406
- return b.build();
407
- };
408
- export const se_UpdateMediaPipelineKinesisVideoStreamPoolCommand = async (input, context) => {
409
- const b = rb(input, context);
410
- const headers = {
411
- "content-type": "application/json",
412
- };
413
- b.bp("/media-pipeline-kinesis-video-stream-pools/{Identifier}");
414
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
415
- let body;
416
- body = JSON.stringify(take(input, {
417
- StreamConfiguration: (_) => _json(_),
418
- }));
419
- b.m("PUT").h(headers).b(body);
420
- return b.build();
421
- };
422
- export const de_CreateMediaCapturePipelineCommand = async (output, context) => {
423
- if (output.statusCode !== 201 && output.statusCode >= 300) {
424
- return de_CommandError(output, context);
425
- }
426
- const contents = map({
427
- $metadata: deserializeMetadata(output),
428
- });
429
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
430
- const doc = take(data, {
431
- MediaCapturePipeline: (_) => de_MediaCapturePipeline(_, context),
432
- });
433
- Object.assign(contents, doc);
434
- return contents;
435
- };
436
- export const de_CreateMediaConcatenationPipelineCommand = async (output, context) => {
437
- if (output.statusCode !== 201 && output.statusCode >= 300) {
438
- return de_CommandError(output, context);
439
- }
440
- const contents = map({
441
- $metadata: deserializeMetadata(output),
442
- });
443
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
444
- const doc = take(data, {
445
- MediaConcatenationPipeline: (_) => de_MediaConcatenationPipeline(_, context),
446
- });
447
- Object.assign(contents, doc);
448
- return contents;
449
- };
450
- export const de_CreateMediaInsightsPipelineCommand = async (output, context) => {
451
- if (output.statusCode !== 201 && output.statusCode >= 300) {
452
- return de_CommandError(output, context);
453
- }
454
- const contents = map({
455
- $metadata: deserializeMetadata(output),
456
- });
457
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
458
- const doc = take(data, {
459
- MediaInsightsPipeline: (_) => de_MediaInsightsPipeline(_, context),
460
- });
461
- Object.assign(contents, doc);
462
- return contents;
463
- };
464
- export const de_CreateMediaInsightsPipelineConfigurationCommand = async (output, context) => {
465
- if (output.statusCode !== 201 && output.statusCode >= 300) {
466
- return de_CommandError(output, context);
467
- }
468
- const contents = map({
469
- $metadata: deserializeMetadata(output),
470
- });
471
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
472
- const doc = take(data, {
473
- MediaInsightsPipelineConfiguration: (_) => de_MediaInsightsPipelineConfiguration(_, context),
474
- });
475
- Object.assign(contents, doc);
476
- return contents;
477
- };
478
- export const de_CreateMediaLiveConnectorPipelineCommand = async (output, context) => {
479
- if (output.statusCode !== 201 && output.statusCode >= 300) {
480
- return de_CommandError(output, context);
481
- }
482
- const contents = map({
483
- $metadata: deserializeMetadata(output),
484
- });
485
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
486
- const doc = take(data, {
487
- MediaLiveConnectorPipeline: (_) => de_MediaLiveConnectorPipeline(_, context),
488
- });
489
- Object.assign(contents, doc);
490
- return contents;
491
- };
492
- export const de_CreateMediaPipelineKinesisVideoStreamPoolCommand = async (output, context) => {
493
- if (output.statusCode !== 201 && output.statusCode >= 300) {
494
- return de_CommandError(output, context);
495
- }
496
- const contents = map({
497
- $metadata: deserializeMetadata(output),
498
- });
499
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
500
- const doc = take(data, {
501
- KinesisVideoStreamPoolConfiguration: (_) => de_KinesisVideoStreamPoolConfiguration(_, context),
502
- });
503
- Object.assign(contents, doc);
504
- return contents;
505
- };
506
- export const de_CreateMediaStreamPipelineCommand = async (output, context) => {
507
- if (output.statusCode !== 201 && output.statusCode >= 300) {
508
- return de_CommandError(output, context);
509
- }
510
- const contents = map({
511
- $metadata: deserializeMetadata(output),
512
- });
513
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
514
- const doc = take(data, {
515
- MediaStreamPipeline: (_) => de_MediaStreamPipeline(_, context),
516
- });
517
- Object.assign(contents, doc);
518
- return contents;
519
- };
520
- export const de_DeleteMediaCapturePipelineCommand = async (output, context) => {
521
- if (output.statusCode !== 204 && output.statusCode >= 300) {
522
- return de_CommandError(output, context);
523
- }
524
- const contents = map({
525
- $metadata: deserializeMetadata(output),
526
- });
527
- await collectBody(output.body, context);
528
- return contents;
529
- };
530
- export const de_DeleteMediaInsightsPipelineConfigurationCommand = async (output, context) => {
531
- if (output.statusCode !== 204 && output.statusCode >= 300) {
532
- return de_CommandError(output, context);
533
- }
534
- const contents = map({
535
- $metadata: deserializeMetadata(output),
536
- });
537
- await collectBody(output.body, context);
538
- return contents;
539
- };
540
- export const de_DeleteMediaPipelineCommand = async (output, context) => {
541
- if (output.statusCode !== 204 && output.statusCode >= 300) {
542
- return de_CommandError(output, context);
543
- }
544
- const contents = map({
545
- $metadata: deserializeMetadata(output),
546
- });
547
- await collectBody(output.body, context);
548
- return contents;
549
- };
550
- export const de_DeleteMediaPipelineKinesisVideoStreamPoolCommand = async (output, context) => {
551
- if (output.statusCode !== 204 && output.statusCode >= 300) {
552
- return de_CommandError(output, context);
553
- }
554
- const contents = map({
555
- $metadata: deserializeMetadata(output),
556
- });
557
- await collectBody(output.body, context);
558
- return contents;
559
- };
560
- export const de_GetMediaCapturePipelineCommand = async (output, context) => {
561
- if (output.statusCode !== 200 && output.statusCode >= 300) {
562
- return de_CommandError(output, context);
563
- }
564
- const contents = map({
565
- $metadata: deserializeMetadata(output),
566
- });
567
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
568
- const doc = take(data, {
569
- MediaCapturePipeline: (_) => de_MediaCapturePipeline(_, context),
570
- });
571
- Object.assign(contents, doc);
572
- return contents;
573
- };
574
- export const de_GetMediaInsightsPipelineConfigurationCommand = async (output, context) => {
575
- if (output.statusCode !== 200 && output.statusCode >= 300) {
576
- return de_CommandError(output, context);
577
- }
578
- const contents = map({
579
- $metadata: deserializeMetadata(output),
580
- });
581
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
582
- const doc = take(data, {
583
- MediaInsightsPipelineConfiguration: (_) => de_MediaInsightsPipelineConfiguration(_, context),
584
- });
585
- Object.assign(contents, doc);
586
- return contents;
587
- };
588
- export const de_GetMediaPipelineCommand = async (output, context) => {
589
- if (output.statusCode !== 200 && output.statusCode >= 300) {
590
- return de_CommandError(output, context);
591
- }
592
- const contents = map({
593
- $metadata: deserializeMetadata(output),
594
- });
595
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
596
- const doc = take(data, {
597
- MediaPipeline: (_) => de_MediaPipeline(_, context),
598
- });
599
- Object.assign(contents, doc);
600
- return contents;
601
- };
602
- export const de_GetMediaPipelineKinesisVideoStreamPoolCommand = async (output, context) => {
603
- if (output.statusCode !== 200 && output.statusCode >= 300) {
604
- return de_CommandError(output, context);
605
- }
606
- const contents = map({
607
- $metadata: deserializeMetadata(output),
608
- });
609
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
610
- const doc = take(data, {
611
- KinesisVideoStreamPoolConfiguration: (_) => de_KinesisVideoStreamPoolConfiguration(_, context),
612
- });
613
- Object.assign(contents, doc);
614
- return contents;
615
- };
616
- export const de_GetSpeakerSearchTaskCommand = async (output, context) => {
617
- if (output.statusCode !== 200 && output.statusCode >= 300) {
618
- return de_CommandError(output, context);
619
- }
620
- const contents = map({
621
- $metadata: deserializeMetadata(output),
622
- });
623
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
624
- const doc = take(data, {
625
- SpeakerSearchTask: (_) => de_SpeakerSearchTask(_, context),
626
- });
627
- Object.assign(contents, doc);
628
- return contents;
629
- };
630
- export const de_GetVoiceToneAnalysisTaskCommand = async (output, context) => {
631
- if (output.statusCode !== 200 && output.statusCode >= 300) {
632
- return de_CommandError(output, context);
633
- }
634
- const contents = map({
635
- $metadata: deserializeMetadata(output),
636
- });
637
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
638
- const doc = take(data, {
639
- VoiceToneAnalysisTask: (_) => de_VoiceToneAnalysisTask(_, context),
640
- });
641
- Object.assign(contents, doc);
642
- return contents;
643
- };
644
- export const de_ListMediaCapturePipelinesCommand = async (output, context) => {
645
- if (output.statusCode !== 200 && output.statusCode >= 300) {
646
- return de_CommandError(output, context);
647
- }
648
- const contents = map({
649
- $metadata: deserializeMetadata(output),
650
- });
651
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
652
- const doc = take(data, {
653
- MediaCapturePipelines: _json,
654
- NextToken: __expectString,
655
- });
656
- Object.assign(contents, doc);
657
- return contents;
658
- };
659
- export const de_ListMediaInsightsPipelineConfigurationsCommand = async (output, context) => {
660
- if (output.statusCode !== 200 && output.statusCode >= 300) {
661
- return de_CommandError(output, context);
662
- }
663
- const contents = map({
664
- $metadata: deserializeMetadata(output),
665
- });
666
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
667
- const doc = take(data, {
668
- MediaInsightsPipelineConfigurations: _json,
669
- NextToken: __expectString,
670
- });
671
- Object.assign(contents, doc);
672
- return contents;
673
- };
674
- export const de_ListMediaPipelineKinesisVideoStreamPoolsCommand = async (output, context) => {
675
- if (output.statusCode !== 200 && output.statusCode >= 300) {
676
- return de_CommandError(output, context);
677
- }
678
- const contents = map({
679
- $metadata: deserializeMetadata(output),
680
- });
681
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
682
- const doc = take(data, {
683
- KinesisVideoStreamPools: _json,
684
- NextToken: __expectString,
685
- });
686
- Object.assign(contents, doc);
687
- return contents;
688
- };
689
- export const de_ListMediaPipelinesCommand = async (output, context) => {
690
- if (output.statusCode !== 200 && output.statusCode >= 300) {
691
- return de_CommandError(output, context);
692
- }
693
- const contents = map({
694
- $metadata: deserializeMetadata(output),
695
- });
696
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
697
- const doc = take(data, {
698
- MediaPipelines: _json,
699
- NextToken: __expectString,
700
- });
701
- Object.assign(contents, doc);
702
- return contents;
703
- };
704
- export const de_ListTagsForResourceCommand = async (output, context) => {
705
- if (output.statusCode !== 200 && output.statusCode >= 300) {
706
- return de_CommandError(output, context);
707
- }
708
- const contents = map({
709
- $metadata: deserializeMetadata(output),
710
- });
711
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
712
- const doc = take(data, {
713
- Tags: _json,
714
- });
715
- Object.assign(contents, doc);
716
- return contents;
717
- };
718
- export const de_StartSpeakerSearchTaskCommand = async (output, context) => {
719
- if (output.statusCode !== 201 && output.statusCode >= 300) {
720
- return de_CommandError(output, context);
721
- }
722
- const contents = map({
723
- $metadata: deserializeMetadata(output),
724
- });
725
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
726
- const doc = take(data, {
727
- SpeakerSearchTask: (_) => de_SpeakerSearchTask(_, context),
728
- });
729
- Object.assign(contents, doc);
730
- return contents;
731
- };
732
- export const de_StartVoiceToneAnalysisTaskCommand = async (output, context) => {
733
- if (output.statusCode !== 201 && output.statusCode >= 300) {
734
- return de_CommandError(output, context);
735
- }
736
- const contents = map({
737
- $metadata: deserializeMetadata(output),
738
- });
739
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
740
- const doc = take(data, {
741
- VoiceToneAnalysisTask: (_) => de_VoiceToneAnalysisTask(_, context),
742
- });
743
- Object.assign(contents, doc);
744
- return contents;
745
- };
746
- export const de_StopSpeakerSearchTaskCommand = async (output, context) => {
747
- if (output.statusCode !== 204 && output.statusCode >= 300) {
748
- return de_CommandError(output, context);
749
- }
750
- const contents = map({
751
- $metadata: deserializeMetadata(output),
752
- });
753
- await collectBody(output.body, context);
754
- return contents;
755
- };
756
- export const de_StopVoiceToneAnalysisTaskCommand = async (output, context) => {
757
- if (output.statusCode !== 204 && output.statusCode >= 300) {
758
- return de_CommandError(output, context);
759
- }
760
- const contents = map({
761
- $metadata: deserializeMetadata(output),
762
- });
763
- await collectBody(output.body, context);
764
- return contents;
765
- };
766
- export const de_TagResourceCommand = async (output, context) => {
767
- if (output.statusCode !== 204 && output.statusCode >= 300) {
768
- return de_CommandError(output, context);
769
- }
770
- const contents = map({
771
- $metadata: deserializeMetadata(output),
772
- });
773
- await collectBody(output.body, context);
774
- return contents;
775
- };
776
- export const de_UntagResourceCommand = async (output, context) => {
777
- if (output.statusCode !== 204 && output.statusCode >= 300) {
778
- return de_CommandError(output, context);
779
- }
780
- const contents = map({
781
- $metadata: deserializeMetadata(output),
782
- });
783
- await collectBody(output.body, context);
784
- return contents;
785
- };
786
- export const de_UpdateMediaInsightsPipelineConfigurationCommand = async (output, context) => {
787
- if (output.statusCode !== 200 && output.statusCode >= 300) {
788
- return de_CommandError(output, context);
789
- }
790
- const contents = map({
791
- $metadata: deserializeMetadata(output),
792
- });
793
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
794
- const doc = take(data, {
795
- MediaInsightsPipelineConfiguration: (_) => de_MediaInsightsPipelineConfiguration(_, context),
796
- });
797
- Object.assign(contents, doc);
798
- return contents;
799
- };
800
- export const de_UpdateMediaInsightsPipelineStatusCommand = async (output, context) => {
801
- if (output.statusCode !== 200 && output.statusCode >= 300) {
802
- return de_CommandError(output, context);
803
- }
804
- const contents = map({
805
- $metadata: deserializeMetadata(output),
806
- });
807
- await collectBody(output.body, context);
808
- return contents;
809
- };
810
- export const de_UpdateMediaPipelineKinesisVideoStreamPoolCommand = async (output, context) => {
811
- if (output.statusCode !== 200 && output.statusCode >= 300) {
812
- return de_CommandError(output, context);
813
- }
814
- const contents = map({
815
- $metadata: deserializeMetadata(output),
816
- });
817
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
818
- const doc = take(data, {
819
- KinesisVideoStreamPoolConfiguration: (_) => de_KinesisVideoStreamPoolConfiguration(_, context),
820
- });
821
- Object.assign(contents, doc);
822
- return contents;
823
- };
824
- const de_CommandError = async (output, context) => {
825
- const parsedOutput = {
826
- ...output,
827
- body: await parseErrorBody(output.body, context),
828
- };
829
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
830
- switch (errorCode) {
831
- case "BadRequestException":
832
- case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
833
- throw await de_BadRequestExceptionRes(parsedOutput, context);
834
- case "ForbiddenException":
835
- case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
836
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
837
- case "ResourceLimitExceededException":
838
- case "com.amazonaws.chimesdkmediapipelines#ResourceLimitExceededException":
839
- throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
840
- case "ServiceFailureException":
841
- case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
842
- throw await de_ServiceFailureExceptionRes(parsedOutput, context);
843
- case "ServiceUnavailableException":
844
- case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
845
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
846
- case "ThrottledClientException":
847
- case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
848
- throw await de_ThrottledClientExceptionRes(parsedOutput, context);
849
- case "UnauthorizedClientException":
850
- case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
851
- throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
852
- case "NotFoundException":
853
- case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
854
- throw await de_NotFoundExceptionRes(parsedOutput, context);
855
- case "ConflictException":
856
- case "com.amazonaws.chimesdkmediapipelines#ConflictException":
857
- throw await de_ConflictExceptionRes(parsedOutput, context);
858
- default:
859
- const parsedBody = parsedOutput.body;
860
- return throwDefaultError({
861
- output,
862
- parsedBody,
863
- errorCode,
864
- });
865
- }
866
- };
867
- const throwDefaultError = withBaseException(__BaseException);
868
- const de_BadRequestExceptionRes = async (parsedOutput, context) => {
869
- const contents = map({});
870
- const data = parsedOutput.body;
871
- const doc = take(data, {
872
- Code: __expectString,
873
- Message: __expectString,
874
- RequestId: __expectString,
875
- });
876
- Object.assign(contents, doc);
877
- const exception = new BadRequestException({
878
- $metadata: deserializeMetadata(parsedOutput),
879
- ...contents,
880
- });
881
- return __decorateServiceException(exception, parsedOutput.body);
882
- };
883
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
884
- const contents = map({});
885
- const data = parsedOutput.body;
886
- const doc = take(data, {
887
- Code: __expectString,
888
- Message: __expectString,
889
- RequestId: __expectString,
890
- });
891
- Object.assign(contents, doc);
892
- const exception = new ConflictException({
893
- $metadata: deserializeMetadata(parsedOutput),
894
- ...contents,
895
- });
896
- return __decorateServiceException(exception, parsedOutput.body);
897
- };
898
- const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
899
- const contents = map({});
900
- const data = parsedOutput.body;
901
- const doc = take(data, {
902
- Code: __expectString,
903
- Message: __expectString,
904
- RequestId: __expectString,
905
- });
906
- Object.assign(contents, doc);
907
- const exception = new ForbiddenException({
908
- $metadata: deserializeMetadata(parsedOutput),
909
- ...contents,
910
- });
911
- return __decorateServiceException(exception, parsedOutput.body);
912
- };
913
- const de_NotFoundExceptionRes = async (parsedOutput, context) => {
914
- const contents = map({});
915
- const data = parsedOutput.body;
916
- const doc = take(data, {
917
- Code: __expectString,
918
- Message: __expectString,
919
- RequestId: __expectString,
920
- });
921
- Object.assign(contents, doc);
922
- const exception = new NotFoundException({
923
- $metadata: deserializeMetadata(parsedOutput),
924
- ...contents,
925
- });
926
- return __decorateServiceException(exception, parsedOutput.body);
927
- };
928
- const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
929
- const contents = map({});
930
- const data = parsedOutput.body;
931
- const doc = take(data, {
932
- Code: __expectString,
933
- Message: __expectString,
934
- RequestId: __expectString,
935
- });
936
- Object.assign(contents, doc);
937
- const exception = new ResourceLimitExceededException({
938
- $metadata: deserializeMetadata(parsedOutput),
939
- ...contents,
940
- });
941
- return __decorateServiceException(exception, parsedOutput.body);
942
- };
943
- const de_ServiceFailureExceptionRes = async (parsedOutput, context) => {
944
- const contents = map({});
945
- const data = parsedOutput.body;
946
- const doc = take(data, {
947
- Code: __expectString,
948
- Message: __expectString,
949
- RequestId: __expectString,
950
- });
951
- Object.assign(contents, doc);
952
- const exception = new ServiceFailureException({
953
- $metadata: deserializeMetadata(parsedOutput),
954
- ...contents,
955
- });
956
- return __decorateServiceException(exception, parsedOutput.body);
957
- };
958
- const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
959
- const contents = map({});
960
- const data = parsedOutput.body;
961
- const doc = take(data, {
962
- Code: __expectString,
963
- Message: __expectString,
964
- RequestId: __expectString,
965
- });
966
- Object.assign(contents, doc);
967
- const exception = new ServiceUnavailableException({
968
- $metadata: deserializeMetadata(parsedOutput),
969
- ...contents,
970
- });
971
- return __decorateServiceException(exception, parsedOutput.body);
972
- };
973
- const de_ThrottledClientExceptionRes = async (parsedOutput, context) => {
974
- const contents = map({});
975
- const data = parsedOutput.body;
976
- const doc = take(data, {
977
- Code: __expectString,
978
- Message: __expectString,
979
- RequestId: __expectString,
980
- });
981
- Object.assign(contents, doc);
982
- const exception = new ThrottledClientException({
983
- $metadata: deserializeMetadata(parsedOutput),
984
- ...contents,
985
- });
986
- return __decorateServiceException(exception, parsedOutput.body);
987
- };
988
- const de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => {
989
- const contents = map({});
990
- const data = parsedOutput.body;
991
- const doc = take(data, {
992
- Code: __expectString,
993
- Message: __expectString,
994
- RequestId: __expectString,
995
- });
996
- Object.assign(contents, doc);
997
- const exception = new UnauthorizedClientException({
998
- $metadata: deserializeMetadata(parsedOutput),
999
- ...contents,
1000
- });
1001
- return __decorateServiceException(exception, parsedOutput.body);
1002
- };
1003
- const se_FragmentSelector = (input, context) => {
1004
- return take(input, {
1005
- FragmentSelectorType: [],
1006
- TimestampRange: (_) => se_TimestampRange(_, context),
1007
- });
1008
- };
1009
- const se_KinesisVideoStreamRecordingSourceRuntimeConfiguration = (input, context) => {
1010
- return take(input, {
1011
- FragmentSelector: (_) => se_FragmentSelector(_, context),
1012
- Streams: _json,
1013
- });
1014
- };
1015
- const se_TimestampRange = (input, context) => {
1016
- return take(input, {
1017
- EndTimestamp: (_) => _.getTime() / 1_000,
1018
- StartTimestamp: (_) => _.getTime() / 1_000,
1019
- });
1020
- };
1021
- const de_FragmentSelector = (output, context) => {
1022
- return take(output, {
1023
- FragmentSelectorType: __expectString,
1024
- TimestampRange: (_) => de_TimestampRange(_, context),
1025
- });
1026
- };
1027
- const de_KinesisVideoStreamPoolConfiguration = (output, context) => {
1028
- return take(output, {
1029
- CreatedTimestamp: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1030
- PoolArn: __expectString,
1031
- PoolId: __expectString,
1032
- PoolName: __expectString,
1033
- PoolSize: __expectInt32,
1034
- PoolStatus: __expectString,
1035
- StreamConfiguration: _json,
1036
- UpdatedTimestamp: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1037
- });
1038
- };
1039
- const de_KinesisVideoStreamRecordingSourceRuntimeConfiguration = (output, context) => {
1040
- return take(output, {
1041
- FragmentSelector: (_) => de_FragmentSelector(_, context),
1042
- Streams: _json,
1043
- });
1044
- };
1045
- const de_MediaCapturePipeline = (output, context) => {
1046
- return take(output, {
1047
- ChimeSdkMeetingConfiguration: _json,
1048
- CreatedTimestamp: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1049
- MediaPipelineArn: __expectString,
1050
- MediaPipelineId: __expectString,
1051
- SinkArn: __expectString,
1052
- SinkIamRoleArn: __expectString,
1053
- SinkType: __expectString,
1054
- SourceArn: __expectString,
1055
- SourceType: __expectString,
1056
- SseAwsKeyManagementParams: _json,
1057
- Status: __expectString,
1058
- UpdatedTimestamp: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1059
- });
1060
- };
1061
- const de_MediaConcatenationPipeline = (output, context) => {
1062
- return take(output, {
1063
- CreatedTimestamp: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1064
- MediaPipelineArn: __expectString,
1065
- MediaPipelineId: __expectString,
1066
- Sinks: _json,
1067
- Sources: _json,
1068
- Status: __expectString,
1069
- UpdatedTimestamp: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1070
- });
1071
- };
1072
- const de_MediaInsightsPipeline = (output, context) => {
1073
- return take(output, {
1074
- CreatedTimestamp: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1075
- ElementStatuses: _json,
1076
- KinesisVideoStreamRecordingSourceRuntimeConfiguration: (_) => de_KinesisVideoStreamRecordingSourceRuntimeConfiguration(_, context),
1077
- KinesisVideoStreamSourceRuntimeConfiguration: _json,
1078
- MediaInsightsPipelineConfigurationArn: __expectString,
1079
- MediaInsightsRuntimeMetadata: _json,
1080
- MediaPipelineArn: __expectString,
1081
- MediaPipelineId: __expectString,
1082
- S3RecordingSinkRuntimeConfiguration: _json,
1083
- Status: __expectString,
1084
- });
1085
- };
1086
- const de_MediaInsightsPipelineConfiguration = (output, context) => {
1087
- return take(output, {
1088
- CreatedTimestamp: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1089
- Elements: _json,
1090
- MediaInsightsPipelineConfigurationArn: __expectString,
1091
- MediaInsightsPipelineConfigurationId: __expectString,
1092
- MediaInsightsPipelineConfigurationName: __expectString,
1093
- RealTimeAlertConfiguration: _json,
1094
- ResourceAccessRoleArn: __expectString,
1095
- UpdatedTimestamp: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1096
- });
1097
- };
1098
- const de_MediaLiveConnectorPipeline = (output, context) => {
1099
- return take(output, {
1100
- CreatedTimestamp: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1101
- MediaPipelineArn: __expectString,
1102
- MediaPipelineId: __expectString,
1103
- Sinks: _json,
1104
- Sources: _json,
1105
- Status: __expectString,
1106
- UpdatedTimestamp: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1107
- });
1108
- };
1109
- const de_MediaPipeline = (output, context) => {
1110
- return take(output, {
1111
- MediaCapturePipeline: (_) => de_MediaCapturePipeline(_, context),
1112
- MediaConcatenationPipeline: (_) => de_MediaConcatenationPipeline(_, context),
1113
- MediaInsightsPipeline: (_) => de_MediaInsightsPipeline(_, context),
1114
- MediaLiveConnectorPipeline: (_) => de_MediaLiveConnectorPipeline(_, context),
1115
- MediaStreamPipeline: (_) => de_MediaStreamPipeline(_, context),
1116
- });
1117
- };
1118
- const de_MediaStreamPipeline = (output, context) => {
1119
- return take(output, {
1120
- CreatedTimestamp: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1121
- MediaPipelineArn: __expectString,
1122
- MediaPipelineId: __expectString,
1123
- Sinks: _json,
1124
- Sources: _json,
1125
- Status: __expectString,
1126
- UpdatedTimestamp: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1127
- });
1128
- };
1129
- const de_SpeakerSearchTask = (output, context) => {
1130
- return take(output, {
1131
- CreatedTimestamp: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1132
- SpeakerSearchTaskId: __expectString,
1133
- SpeakerSearchTaskStatus: __expectString,
1134
- UpdatedTimestamp: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1135
- });
1136
- };
1137
- const de_TimestampRange = (output, context) => {
1138
- return take(output, {
1139
- EndTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1140
- StartTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1141
- });
1142
- };
1143
- const de_VoiceToneAnalysisTask = (output, context) => {
1144
- return take(output, {
1145
- CreatedTimestamp: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1146
- UpdatedTimestamp: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1147
- VoiceToneAnalysisTaskId: __expectString,
1148
- VoiceToneAnalysisTaskStatus: __expectString,
1149
- });
1150
- };
1151
- const deserializeMetadata = (output) => ({
1152
- httpStatusCode: output.statusCode,
1153
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1154
- extendedRequestId: output.headers["x-amz-id-2"],
1155
- cfId: output.headers["x-amz-cf-id"],
1156
- });
1157
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1158
- const _MR = "MaxResults";
1159
- const _NT = "NextToken";
1160
- const _RARN = "ResourceARN";
1161
- const _a = "arn";
1162
- const _mr = "max-results";
1163
- const _nt = "next-token";
1164
- const _o = "operation";