@aws-sdk/client-chime-sdk-media-pipelines 3.489.0 → 3.495.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/ChimeSDKMediaPipelines.js +1 -73
- package/dist-cjs/ChimeSDKMediaPipelinesClient.js +1 -43
- package/dist-cjs/commands/CreateMediaCapturePipelineCommand.js +1 -29
- package/dist-cjs/commands/CreateMediaConcatenationPipelineCommand.js +1 -29
- package/dist-cjs/commands/CreateMediaInsightsPipelineCommand.js +1 -29
- package/dist-cjs/commands/CreateMediaInsightsPipelineConfigurationCommand.js +1 -29
- package/dist-cjs/commands/CreateMediaLiveConnectorPipelineCommand.js +1 -29
- package/dist-cjs/commands/CreateMediaPipelineKinesisVideoStreamPoolCommand.js +1 -29
- package/dist-cjs/commands/CreateMediaStreamPipelineCommand.js +1 -29
- package/dist-cjs/commands/DeleteMediaCapturePipelineCommand.js +1 -28
- package/dist-cjs/commands/DeleteMediaInsightsPipelineConfigurationCommand.js +1 -28
- package/dist-cjs/commands/DeleteMediaPipelineCommand.js +1 -28
- package/dist-cjs/commands/DeleteMediaPipelineKinesisVideoStreamPoolCommand.js +1 -28
- package/dist-cjs/commands/GetMediaCapturePipelineCommand.js +1 -29
- package/dist-cjs/commands/GetMediaInsightsPipelineConfigurationCommand.js +1 -29
- package/dist-cjs/commands/GetMediaPipelineCommand.js +1 -29
- package/dist-cjs/commands/GetMediaPipelineKinesisVideoStreamPoolCommand.js +1 -29
- package/dist-cjs/commands/GetSpeakerSearchTaskCommand.js +1 -28
- package/dist-cjs/commands/GetVoiceToneAnalysisTaskCommand.js +1 -28
- package/dist-cjs/commands/ListMediaCapturePipelinesCommand.js +1 -28
- package/dist-cjs/commands/ListMediaInsightsPipelineConfigurationsCommand.js +1 -29
- package/dist-cjs/commands/ListMediaPipelineKinesisVideoStreamPoolsCommand.js +1 -29
- package/dist-cjs/commands/ListMediaPipelinesCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/StartSpeakerSearchTaskCommand.js +1 -29
- package/dist-cjs/commands/StartVoiceToneAnalysisTaskCommand.js +1 -29
- package/dist-cjs/commands/StopSpeakerSearchTaskCommand.js +1 -28
- package/dist-cjs/commands/StopVoiceToneAnalysisTaskCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateMediaInsightsPipelineConfigurationCommand.js +1 -29
- package/dist-cjs/commands/UpdateMediaInsightsPipelineStatusCommand.js +1 -28
- package/dist-cjs/commands/UpdateMediaPipelineKinesisVideoStreamPoolCommand.js +1 -29
- package/dist-cjs/commands/index.js +1 -34
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +4183 -11
- package/dist-cjs/models/ChimeSDKMediaPipelinesServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -765
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListMediaCapturePipelinesPaginator.js +1 -7
- package/dist-cjs/pagination/ListMediaInsightsPipelineConfigurationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListMediaPipelineKinesisVideoStreamPoolsPaginator.js +1 -7
- package/dist-cjs/pagination/ListMediaPipelinesPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -8
- package/dist-cjs/protocols/Aws_restJson1.js +1 -2416
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,2416 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_ListMediaInsightsPipelineConfigurationsCommand = exports.de_ListMediaCapturePipelinesCommand = exports.de_GetVoiceToneAnalysisTaskCommand = exports.de_GetSpeakerSearchTaskCommand = exports.de_GetMediaPipelineKinesisVideoStreamPoolCommand = exports.de_GetMediaPipelineCommand = exports.de_GetMediaInsightsPipelineConfigurationCommand = exports.de_GetMediaCapturePipelineCommand = exports.de_DeleteMediaPipelineKinesisVideoStreamPoolCommand = exports.de_DeleteMediaPipelineCommand = exports.de_DeleteMediaInsightsPipelineConfigurationCommand = exports.de_DeleteMediaCapturePipelineCommand = exports.de_CreateMediaStreamPipelineCommand = exports.de_CreateMediaPipelineKinesisVideoStreamPoolCommand = exports.de_CreateMediaLiveConnectorPipelineCommand = exports.de_CreateMediaInsightsPipelineConfigurationCommand = exports.de_CreateMediaInsightsPipelineCommand = exports.de_CreateMediaConcatenationPipelineCommand = exports.de_CreateMediaCapturePipelineCommand = exports.se_UpdateMediaPipelineKinesisVideoStreamPoolCommand = exports.se_UpdateMediaInsightsPipelineStatusCommand = exports.se_UpdateMediaInsightsPipelineConfigurationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopVoiceToneAnalysisTaskCommand = exports.se_StopSpeakerSearchTaskCommand = exports.se_StartVoiceToneAnalysisTaskCommand = exports.se_StartSpeakerSearchTaskCommand = exports.se_ListTagsForResourceCommand = exports.se_ListMediaPipelinesCommand = exports.se_ListMediaPipelineKinesisVideoStreamPoolsCommand = exports.se_ListMediaInsightsPipelineConfigurationsCommand = exports.se_ListMediaCapturePipelinesCommand = exports.se_GetVoiceToneAnalysisTaskCommand = exports.se_GetSpeakerSearchTaskCommand = exports.se_GetMediaPipelineKinesisVideoStreamPoolCommand = exports.se_GetMediaPipelineCommand = exports.se_GetMediaInsightsPipelineConfigurationCommand = exports.se_GetMediaCapturePipelineCommand = exports.se_DeleteMediaPipelineKinesisVideoStreamPoolCommand = exports.se_DeleteMediaPipelineCommand = exports.se_DeleteMediaInsightsPipelineConfigurationCommand = exports.se_DeleteMediaCapturePipelineCommand = exports.se_CreateMediaStreamPipelineCommand = exports.se_CreateMediaPipelineKinesisVideoStreamPoolCommand = exports.se_CreateMediaLiveConnectorPipelineCommand = exports.se_CreateMediaInsightsPipelineConfigurationCommand = exports.se_CreateMediaInsightsPipelineCommand = exports.se_CreateMediaConcatenationPipelineCommand = exports.se_CreateMediaCapturePipelineCommand = void 0;
|
|
4
|
-
exports.de_UpdateMediaPipelineKinesisVideoStreamPoolCommand = exports.de_UpdateMediaInsightsPipelineStatusCommand = exports.de_UpdateMediaInsightsPipelineConfigurationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopVoiceToneAnalysisTaskCommand = exports.de_StopSpeakerSearchTaskCommand = exports.de_StartVoiceToneAnalysisTaskCommand = exports.de_StartSpeakerSearchTaskCommand = exports.de_ListTagsForResourceCommand = exports.de_ListMediaPipelinesCommand = exports.de_ListMediaPipelineKinesisVideoStreamPoolsCommand = void 0;
|
|
5
|
-
const core_1 = require("@smithy/core");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const uuid_1 = require("uuid");
|
|
8
|
-
const ChimeSDKMediaPipelinesServiceException_1 = require("../models/ChimeSDKMediaPipelinesServiceException");
|
|
9
|
-
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const se_CreateMediaCapturePipelineCommand = async (input, context) => {
|
|
11
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
12
|
-
const headers = {
|
|
13
|
-
"content-type": "application/json",
|
|
14
|
-
};
|
|
15
|
-
b.bp("/sdk-media-capture-pipelines");
|
|
16
|
-
let body;
|
|
17
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
|
-
ChimeSdkMeetingConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
19
|
-
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
20
|
-
SinkArn: [],
|
|
21
|
-
SinkType: [],
|
|
22
|
-
SourceArn: [],
|
|
23
|
-
SourceType: [],
|
|
24
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
25
|
-
}));
|
|
26
|
-
b.m("POST").h(headers).b(body);
|
|
27
|
-
return b.build();
|
|
28
|
-
};
|
|
29
|
-
exports.se_CreateMediaCapturePipelineCommand = se_CreateMediaCapturePipelineCommand;
|
|
30
|
-
const se_CreateMediaConcatenationPipelineCommand = async (input, context) => {
|
|
31
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
32
|
-
const headers = {
|
|
33
|
-
"content-type": "application/json",
|
|
34
|
-
};
|
|
35
|
-
b.bp("/sdk-media-concatenation-pipelines");
|
|
36
|
-
let body;
|
|
37
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
38
|
-
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
39
|
-
Sinks: (_) => (0, smithy_client_1._json)(_),
|
|
40
|
-
Sources: (_) => (0, smithy_client_1._json)(_),
|
|
41
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
42
|
-
}));
|
|
43
|
-
b.m("POST").h(headers).b(body);
|
|
44
|
-
return b.build();
|
|
45
|
-
};
|
|
46
|
-
exports.se_CreateMediaConcatenationPipelineCommand = se_CreateMediaConcatenationPipelineCommand;
|
|
47
|
-
const se_CreateMediaInsightsPipelineCommand = async (input, context) => {
|
|
48
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
49
|
-
const headers = {
|
|
50
|
-
"content-type": "application/json",
|
|
51
|
-
};
|
|
52
|
-
b.bp("/media-insights-pipelines");
|
|
53
|
-
let body;
|
|
54
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
55
|
-
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
56
|
-
KinesisVideoStreamRecordingSourceRuntimeConfiguration: (_) => se_KinesisVideoStreamRecordingSourceRuntimeConfiguration(_, context),
|
|
57
|
-
KinesisVideoStreamSourceRuntimeConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
58
|
-
MediaInsightsPipelineConfigurationArn: [],
|
|
59
|
-
MediaInsightsRuntimeMetadata: (_) => (0, smithy_client_1._json)(_),
|
|
60
|
-
S3RecordingSinkRuntimeConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
61
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
62
|
-
}));
|
|
63
|
-
b.m("POST").h(headers).b(body);
|
|
64
|
-
return b.build();
|
|
65
|
-
};
|
|
66
|
-
exports.se_CreateMediaInsightsPipelineCommand = se_CreateMediaInsightsPipelineCommand;
|
|
67
|
-
const se_CreateMediaInsightsPipelineConfigurationCommand = async (input, context) => {
|
|
68
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
69
|
-
const headers = {
|
|
70
|
-
"content-type": "application/json",
|
|
71
|
-
};
|
|
72
|
-
b.bp("/media-insights-pipeline-configurations");
|
|
73
|
-
let body;
|
|
74
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
75
|
-
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
76
|
-
Elements: (_) => (0, smithy_client_1._json)(_),
|
|
77
|
-
MediaInsightsPipelineConfigurationName: [],
|
|
78
|
-
RealTimeAlertConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
79
|
-
ResourceAccessRoleArn: [],
|
|
80
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
81
|
-
}));
|
|
82
|
-
b.m("POST").h(headers).b(body);
|
|
83
|
-
return b.build();
|
|
84
|
-
};
|
|
85
|
-
exports.se_CreateMediaInsightsPipelineConfigurationCommand = se_CreateMediaInsightsPipelineConfigurationCommand;
|
|
86
|
-
const se_CreateMediaLiveConnectorPipelineCommand = async (input, context) => {
|
|
87
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
88
|
-
const headers = {
|
|
89
|
-
"content-type": "application/json",
|
|
90
|
-
};
|
|
91
|
-
b.bp("/sdk-media-live-connector-pipelines");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
94
|
-
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
95
|
-
Sinks: (_) => (0, smithy_client_1._json)(_),
|
|
96
|
-
Sources: (_) => (0, smithy_client_1._json)(_),
|
|
97
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
98
|
-
}));
|
|
99
|
-
b.m("POST").h(headers).b(body);
|
|
100
|
-
return b.build();
|
|
101
|
-
};
|
|
102
|
-
exports.se_CreateMediaLiveConnectorPipelineCommand = se_CreateMediaLiveConnectorPipelineCommand;
|
|
103
|
-
const se_CreateMediaPipelineKinesisVideoStreamPoolCommand = async (input, context) => {
|
|
104
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
105
|
-
const headers = {
|
|
106
|
-
"content-type": "application/json",
|
|
107
|
-
};
|
|
108
|
-
b.bp("/media-pipeline-kinesis-video-stream-pools");
|
|
109
|
-
let body;
|
|
110
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
111
|
-
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
112
|
-
PoolName: [],
|
|
113
|
-
StreamConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
114
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
115
|
-
}));
|
|
116
|
-
b.m("POST").h(headers).b(body);
|
|
117
|
-
return b.build();
|
|
118
|
-
};
|
|
119
|
-
exports.se_CreateMediaPipelineKinesisVideoStreamPoolCommand = se_CreateMediaPipelineKinesisVideoStreamPoolCommand;
|
|
120
|
-
const se_CreateMediaStreamPipelineCommand = async (input, context) => {
|
|
121
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
122
|
-
const headers = {
|
|
123
|
-
"content-type": "application/json",
|
|
124
|
-
};
|
|
125
|
-
b.bp("/sdk-media-stream-pipelines");
|
|
126
|
-
let body;
|
|
127
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
128
|
-
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
129
|
-
Sinks: (_) => (0, smithy_client_1._json)(_),
|
|
130
|
-
Sources: (_) => (0, smithy_client_1._json)(_),
|
|
131
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
132
|
-
}));
|
|
133
|
-
b.m("POST").h(headers).b(body);
|
|
134
|
-
return b.build();
|
|
135
|
-
};
|
|
136
|
-
exports.se_CreateMediaStreamPipelineCommand = se_CreateMediaStreamPipelineCommand;
|
|
137
|
-
const se_DeleteMediaCapturePipelineCommand = async (input, context) => {
|
|
138
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
139
|
-
const headers = {};
|
|
140
|
-
b.bp("/sdk-media-capture-pipelines/{MediaPipelineId}");
|
|
141
|
-
b.p("MediaPipelineId", () => input.MediaPipelineId, "{MediaPipelineId}", false);
|
|
142
|
-
let body;
|
|
143
|
-
b.m("DELETE").h(headers).b(body);
|
|
144
|
-
return b.build();
|
|
145
|
-
};
|
|
146
|
-
exports.se_DeleteMediaCapturePipelineCommand = se_DeleteMediaCapturePipelineCommand;
|
|
147
|
-
const se_DeleteMediaInsightsPipelineConfigurationCommand = async (input, context) => {
|
|
148
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
149
|
-
const headers = {};
|
|
150
|
-
b.bp("/media-insights-pipeline-configurations/{Identifier}");
|
|
151
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
152
|
-
let body;
|
|
153
|
-
b.m("DELETE").h(headers).b(body);
|
|
154
|
-
return b.build();
|
|
155
|
-
};
|
|
156
|
-
exports.se_DeleteMediaInsightsPipelineConfigurationCommand = se_DeleteMediaInsightsPipelineConfigurationCommand;
|
|
157
|
-
const se_DeleteMediaPipelineCommand = async (input, context) => {
|
|
158
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
159
|
-
const headers = {};
|
|
160
|
-
b.bp("/sdk-media-pipelines/{MediaPipelineId}");
|
|
161
|
-
b.p("MediaPipelineId", () => input.MediaPipelineId, "{MediaPipelineId}", false);
|
|
162
|
-
let body;
|
|
163
|
-
b.m("DELETE").h(headers).b(body);
|
|
164
|
-
return b.build();
|
|
165
|
-
};
|
|
166
|
-
exports.se_DeleteMediaPipelineCommand = se_DeleteMediaPipelineCommand;
|
|
167
|
-
const se_DeleteMediaPipelineKinesisVideoStreamPoolCommand = async (input, context) => {
|
|
168
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
169
|
-
const headers = {};
|
|
170
|
-
b.bp("/media-pipeline-kinesis-video-stream-pools/{Identifier}");
|
|
171
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
172
|
-
let body;
|
|
173
|
-
b.m("DELETE").h(headers).b(body);
|
|
174
|
-
return b.build();
|
|
175
|
-
};
|
|
176
|
-
exports.se_DeleteMediaPipelineKinesisVideoStreamPoolCommand = se_DeleteMediaPipelineKinesisVideoStreamPoolCommand;
|
|
177
|
-
const se_GetMediaCapturePipelineCommand = async (input, context) => {
|
|
178
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
179
|
-
const headers = {};
|
|
180
|
-
b.bp("/sdk-media-capture-pipelines/{MediaPipelineId}");
|
|
181
|
-
b.p("MediaPipelineId", () => input.MediaPipelineId, "{MediaPipelineId}", false);
|
|
182
|
-
let body;
|
|
183
|
-
b.m("GET").h(headers).b(body);
|
|
184
|
-
return b.build();
|
|
185
|
-
};
|
|
186
|
-
exports.se_GetMediaCapturePipelineCommand = se_GetMediaCapturePipelineCommand;
|
|
187
|
-
const se_GetMediaInsightsPipelineConfigurationCommand = async (input, context) => {
|
|
188
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
189
|
-
const headers = {};
|
|
190
|
-
b.bp("/media-insights-pipeline-configurations/{Identifier}");
|
|
191
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
192
|
-
let body;
|
|
193
|
-
b.m("GET").h(headers).b(body);
|
|
194
|
-
return b.build();
|
|
195
|
-
};
|
|
196
|
-
exports.se_GetMediaInsightsPipelineConfigurationCommand = se_GetMediaInsightsPipelineConfigurationCommand;
|
|
197
|
-
const se_GetMediaPipelineCommand = async (input, context) => {
|
|
198
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
199
|
-
const headers = {};
|
|
200
|
-
b.bp("/sdk-media-pipelines/{MediaPipelineId}");
|
|
201
|
-
b.p("MediaPipelineId", () => input.MediaPipelineId, "{MediaPipelineId}", false);
|
|
202
|
-
let body;
|
|
203
|
-
b.m("GET").h(headers).b(body);
|
|
204
|
-
return b.build();
|
|
205
|
-
};
|
|
206
|
-
exports.se_GetMediaPipelineCommand = se_GetMediaPipelineCommand;
|
|
207
|
-
const se_GetMediaPipelineKinesisVideoStreamPoolCommand = async (input, context) => {
|
|
208
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
209
|
-
const headers = {};
|
|
210
|
-
b.bp("/media-pipeline-kinesis-video-stream-pools/{Identifier}");
|
|
211
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
212
|
-
let body;
|
|
213
|
-
b.m("GET").h(headers).b(body);
|
|
214
|
-
return b.build();
|
|
215
|
-
};
|
|
216
|
-
exports.se_GetMediaPipelineKinesisVideoStreamPoolCommand = se_GetMediaPipelineKinesisVideoStreamPoolCommand;
|
|
217
|
-
const se_GetSpeakerSearchTaskCommand = async (input, context) => {
|
|
218
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
219
|
-
const headers = {};
|
|
220
|
-
b.bp("/media-insights-pipelines/{Identifier}/speaker-search-tasks/{SpeakerSearchTaskId}");
|
|
221
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
222
|
-
b.p("SpeakerSearchTaskId", () => input.SpeakerSearchTaskId, "{SpeakerSearchTaskId}", false);
|
|
223
|
-
let body;
|
|
224
|
-
b.m("GET").h(headers).b(body);
|
|
225
|
-
return b.build();
|
|
226
|
-
};
|
|
227
|
-
exports.se_GetSpeakerSearchTaskCommand = se_GetSpeakerSearchTaskCommand;
|
|
228
|
-
const se_GetVoiceToneAnalysisTaskCommand = async (input, context) => {
|
|
229
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
230
|
-
const headers = {};
|
|
231
|
-
b.bp("/media-insights-pipelines/{Identifier}/voice-tone-analysis-tasks/{VoiceToneAnalysisTaskId}");
|
|
232
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
233
|
-
b.p("VoiceToneAnalysisTaskId", () => input.VoiceToneAnalysisTaskId, "{VoiceToneAnalysisTaskId}", false);
|
|
234
|
-
let body;
|
|
235
|
-
b.m("GET").h(headers).b(body);
|
|
236
|
-
return b.build();
|
|
237
|
-
};
|
|
238
|
-
exports.se_GetVoiceToneAnalysisTaskCommand = se_GetVoiceToneAnalysisTaskCommand;
|
|
239
|
-
const se_ListMediaCapturePipelinesCommand = async (input, context) => {
|
|
240
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
241
|
-
const headers = {};
|
|
242
|
-
b.bp("/sdk-media-capture-pipelines");
|
|
243
|
-
const query = (0, smithy_client_1.map)({
|
|
244
|
-
[_nt]: [, input[_NT]],
|
|
245
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
246
|
-
});
|
|
247
|
-
let body;
|
|
248
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
249
|
-
return b.build();
|
|
250
|
-
};
|
|
251
|
-
exports.se_ListMediaCapturePipelinesCommand = se_ListMediaCapturePipelinesCommand;
|
|
252
|
-
const se_ListMediaInsightsPipelineConfigurationsCommand = async (input, context) => {
|
|
253
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
254
|
-
const headers = {};
|
|
255
|
-
b.bp("/media-insights-pipeline-configurations");
|
|
256
|
-
const query = (0, smithy_client_1.map)({
|
|
257
|
-
[_nt]: [, input[_NT]],
|
|
258
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
259
|
-
});
|
|
260
|
-
let body;
|
|
261
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
262
|
-
return b.build();
|
|
263
|
-
};
|
|
264
|
-
exports.se_ListMediaInsightsPipelineConfigurationsCommand = se_ListMediaInsightsPipelineConfigurationsCommand;
|
|
265
|
-
const se_ListMediaPipelineKinesisVideoStreamPoolsCommand = async (input, context) => {
|
|
266
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
267
|
-
const headers = {};
|
|
268
|
-
b.bp("/media-pipeline-kinesis-video-stream-pools");
|
|
269
|
-
const query = (0, smithy_client_1.map)({
|
|
270
|
-
[_nt]: [, input[_NT]],
|
|
271
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
272
|
-
});
|
|
273
|
-
let body;
|
|
274
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
275
|
-
return b.build();
|
|
276
|
-
};
|
|
277
|
-
exports.se_ListMediaPipelineKinesisVideoStreamPoolsCommand = se_ListMediaPipelineKinesisVideoStreamPoolsCommand;
|
|
278
|
-
const se_ListMediaPipelinesCommand = async (input, context) => {
|
|
279
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
280
|
-
const headers = {};
|
|
281
|
-
b.bp("/sdk-media-pipelines");
|
|
282
|
-
const query = (0, smithy_client_1.map)({
|
|
283
|
-
[_nt]: [, input[_NT]],
|
|
284
|
-
[_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
285
|
-
});
|
|
286
|
-
let body;
|
|
287
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
288
|
-
return b.build();
|
|
289
|
-
};
|
|
290
|
-
exports.se_ListMediaPipelinesCommand = se_ListMediaPipelinesCommand;
|
|
291
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
292
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
293
|
-
const headers = {};
|
|
294
|
-
b.bp("/tags");
|
|
295
|
-
const query = (0, smithy_client_1.map)({
|
|
296
|
-
[_a]: [, (0, smithy_client_1.expectNonNull)(input[_RARN], `ResourceARN`)],
|
|
297
|
-
});
|
|
298
|
-
let body;
|
|
299
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
300
|
-
return b.build();
|
|
301
|
-
};
|
|
302
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
303
|
-
const se_StartSpeakerSearchTaskCommand = async (input, context) => {
|
|
304
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
305
|
-
const headers = {
|
|
306
|
-
"content-type": "application/json",
|
|
307
|
-
};
|
|
308
|
-
b.bp("/media-insights-pipelines/{Identifier}/speaker-search-tasks");
|
|
309
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
310
|
-
const query = (0, smithy_client_1.map)({
|
|
311
|
-
[_o]: [, "start"],
|
|
312
|
-
});
|
|
313
|
-
let body;
|
|
314
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
315
|
-
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
316
|
-
KinesisVideoStreamSourceTaskConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
317
|
-
VoiceProfileDomainArn: [],
|
|
318
|
-
}));
|
|
319
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
320
|
-
return b.build();
|
|
321
|
-
};
|
|
322
|
-
exports.se_StartSpeakerSearchTaskCommand = se_StartSpeakerSearchTaskCommand;
|
|
323
|
-
const se_StartVoiceToneAnalysisTaskCommand = async (input, context) => {
|
|
324
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
325
|
-
const headers = {
|
|
326
|
-
"content-type": "application/json",
|
|
327
|
-
};
|
|
328
|
-
b.bp("/media-insights-pipelines/{Identifier}/voice-tone-analysis-tasks");
|
|
329
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
330
|
-
const query = (0, smithy_client_1.map)({
|
|
331
|
-
[_o]: [, "start"],
|
|
332
|
-
});
|
|
333
|
-
let body;
|
|
334
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
335
|
-
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
336
|
-
KinesisVideoStreamSourceTaskConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
337
|
-
LanguageCode: [],
|
|
338
|
-
}));
|
|
339
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
340
|
-
return b.build();
|
|
341
|
-
};
|
|
342
|
-
exports.se_StartVoiceToneAnalysisTaskCommand = se_StartVoiceToneAnalysisTaskCommand;
|
|
343
|
-
const se_StopSpeakerSearchTaskCommand = async (input, context) => {
|
|
344
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
345
|
-
const headers = {};
|
|
346
|
-
b.bp("/media-insights-pipelines/{Identifier}/speaker-search-tasks/{SpeakerSearchTaskId}");
|
|
347
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
348
|
-
b.p("SpeakerSearchTaskId", () => input.SpeakerSearchTaskId, "{SpeakerSearchTaskId}", false);
|
|
349
|
-
const query = (0, smithy_client_1.map)({
|
|
350
|
-
[_o]: [, "stop"],
|
|
351
|
-
});
|
|
352
|
-
let body;
|
|
353
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
354
|
-
return b.build();
|
|
355
|
-
};
|
|
356
|
-
exports.se_StopSpeakerSearchTaskCommand = se_StopSpeakerSearchTaskCommand;
|
|
357
|
-
const se_StopVoiceToneAnalysisTaskCommand = async (input, context) => {
|
|
358
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
359
|
-
const headers = {};
|
|
360
|
-
b.bp("/media-insights-pipelines/{Identifier}/voice-tone-analysis-tasks/{VoiceToneAnalysisTaskId}");
|
|
361
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
362
|
-
b.p("VoiceToneAnalysisTaskId", () => input.VoiceToneAnalysisTaskId, "{VoiceToneAnalysisTaskId}", false);
|
|
363
|
-
const query = (0, smithy_client_1.map)({
|
|
364
|
-
[_o]: [, "stop"],
|
|
365
|
-
});
|
|
366
|
-
let body;
|
|
367
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
368
|
-
return b.build();
|
|
369
|
-
};
|
|
370
|
-
exports.se_StopVoiceToneAnalysisTaskCommand = se_StopVoiceToneAnalysisTaskCommand;
|
|
371
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
372
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
373
|
-
const headers = {
|
|
374
|
-
"content-type": "application/json",
|
|
375
|
-
};
|
|
376
|
-
b.bp("/tags");
|
|
377
|
-
const query = (0, smithy_client_1.map)({
|
|
378
|
-
[_o]: [, "tag-resource"],
|
|
379
|
-
});
|
|
380
|
-
let body;
|
|
381
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
382
|
-
ResourceARN: [],
|
|
383
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
384
|
-
}));
|
|
385
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
386
|
-
return b.build();
|
|
387
|
-
};
|
|
388
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
389
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
390
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
391
|
-
const headers = {
|
|
392
|
-
"content-type": "application/json",
|
|
393
|
-
};
|
|
394
|
-
b.bp("/tags");
|
|
395
|
-
const query = (0, smithy_client_1.map)({
|
|
396
|
-
[_o]: [, "untag-resource"],
|
|
397
|
-
});
|
|
398
|
-
let body;
|
|
399
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
400
|
-
ResourceARN: [],
|
|
401
|
-
TagKeys: (_) => (0, smithy_client_1._json)(_),
|
|
402
|
-
}));
|
|
403
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
404
|
-
return b.build();
|
|
405
|
-
};
|
|
406
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
407
|
-
const se_UpdateMediaInsightsPipelineConfigurationCommand = async (input, context) => {
|
|
408
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
409
|
-
const headers = {
|
|
410
|
-
"content-type": "application/json",
|
|
411
|
-
};
|
|
412
|
-
b.bp("/media-insights-pipeline-configurations/{Identifier}");
|
|
413
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
414
|
-
let body;
|
|
415
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
416
|
-
Elements: (_) => (0, smithy_client_1._json)(_),
|
|
417
|
-
RealTimeAlertConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
418
|
-
ResourceAccessRoleArn: [],
|
|
419
|
-
}));
|
|
420
|
-
b.m("PUT").h(headers).b(body);
|
|
421
|
-
return b.build();
|
|
422
|
-
};
|
|
423
|
-
exports.se_UpdateMediaInsightsPipelineConfigurationCommand = se_UpdateMediaInsightsPipelineConfigurationCommand;
|
|
424
|
-
const se_UpdateMediaInsightsPipelineStatusCommand = async (input, context) => {
|
|
425
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
426
|
-
const headers = {
|
|
427
|
-
"content-type": "application/json",
|
|
428
|
-
};
|
|
429
|
-
b.bp("/media-insights-pipeline-status/{Identifier}");
|
|
430
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
431
|
-
let body;
|
|
432
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
433
|
-
UpdateStatus: [],
|
|
434
|
-
}));
|
|
435
|
-
b.m("PUT").h(headers).b(body);
|
|
436
|
-
return b.build();
|
|
437
|
-
};
|
|
438
|
-
exports.se_UpdateMediaInsightsPipelineStatusCommand = se_UpdateMediaInsightsPipelineStatusCommand;
|
|
439
|
-
const se_UpdateMediaPipelineKinesisVideoStreamPoolCommand = async (input, context) => {
|
|
440
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
441
|
-
const headers = {
|
|
442
|
-
"content-type": "application/json",
|
|
443
|
-
};
|
|
444
|
-
b.bp("/media-pipeline-kinesis-video-stream-pools/{Identifier}");
|
|
445
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
446
|
-
let body;
|
|
447
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
448
|
-
StreamConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
449
|
-
}));
|
|
450
|
-
b.m("PUT").h(headers).b(body);
|
|
451
|
-
return b.build();
|
|
452
|
-
};
|
|
453
|
-
exports.se_UpdateMediaPipelineKinesisVideoStreamPoolCommand = se_UpdateMediaPipelineKinesisVideoStreamPoolCommand;
|
|
454
|
-
const de_CreateMediaCapturePipelineCommand = async (output, context) => {
|
|
455
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
456
|
-
return de_CreateMediaCapturePipelineCommandError(output, context);
|
|
457
|
-
}
|
|
458
|
-
const contents = (0, smithy_client_1.map)({
|
|
459
|
-
$metadata: deserializeMetadata(output),
|
|
460
|
-
});
|
|
461
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
462
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
463
|
-
MediaCapturePipeline: (_) => de_MediaCapturePipeline(_, context),
|
|
464
|
-
});
|
|
465
|
-
Object.assign(contents, doc);
|
|
466
|
-
return contents;
|
|
467
|
-
};
|
|
468
|
-
exports.de_CreateMediaCapturePipelineCommand = de_CreateMediaCapturePipelineCommand;
|
|
469
|
-
const de_CreateMediaCapturePipelineCommandError = async (output, context) => {
|
|
470
|
-
const parsedOutput = {
|
|
471
|
-
...output,
|
|
472
|
-
body: await parseErrorBody(output.body, context),
|
|
473
|
-
};
|
|
474
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
475
|
-
switch (errorCode) {
|
|
476
|
-
case "BadRequestException":
|
|
477
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
478
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
479
|
-
case "ForbiddenException":
|
|
480
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
481
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
482
|
-
case "ResourceLimitExceededException":
|
|
483
|
-
case "com.amazonaws.chimesdkmediapipelines#ResourceLimitExceededException":
|
|
484
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
485
|
-
case "ServiceFailureException":
|
|
486
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
487
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
488
|
-
case "ServiceUnavailableException":
|
|
489
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
490
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
491
|
-
case "ThrottledClientException":
|
|
492
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
493
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
494
|
-
case "UnauthorizedClientException":
|
|
495
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
496
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
497
|
-
default:
|
|
498
|
-
const parsedBody = parsedOutput.body;
|
|
499
|
-
return throwDefaultError({
|
|
500
|
-
output,
|
|
501
|
-
parsedBody,
|
|
502
|
-
errorCode,
|
|
503
|
-
});
|
|
504
|
-
}
|
|
505
|
-
};
|
|
506
|
-
const de_CreateMediaConcatenationPipelineCommand = async (output, context) => {
|
|
507
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
508
|
-
return de_CreateMediaConcatenationPipelineCommandError(output, context);
|
|
509
|
-
}
|
|
510
|
-
const contents = (0, smithy_client_1.map)({
|
|
511
|
-
$metadata: deserializeMetadata(output),
|
|
512
|
-
});
|
|
513
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
514
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
515
|
-
MediaConcatenationPipeline: (_) => de_MediaConcatenationPipeline(_, context),
|
|
516
|
-
});
|
|
517
|
-
Object.assign(contents, doc);
|
|
518
|
-
return contents;
|
|
519
|
-
};
|
|
520
|
-
exports.de_CreateMediaConcatenationPipelineCommand = de_CreateMediaConcatenationPipelineCommand;
|
|
521
|
-
const de_CreateMediaConcatenationPipelineCommandError = async (output, context) => {
|
|
522
|
-
const parsedOutput = {
|
|
523
|
-
...output,
|
|
524
|
-
body: await parseErrorBody(output.body, context),
|
|
525
|
-
};
|
|
526
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
527
|
-
switch (errorCode) {
|
|
528
|
-
case "BadRequestException":
|
|
529
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
530
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
531
|
-
case "ForbiddenException":
|
|
532
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
533
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
534
|
-
case "ResourceLimitExceededException":
|
|
535
|
-
case "com.amazonaws.chimesdkmediapipelines#ResourceLimitExceededException":
|
|
536
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
537
|
-
case "ServiceFailureException":
|
|
538
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
539
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
540
|
-
case "ServiceUnavailableException":
|
|
541
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
542
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
543
|
-
case "ThrottledClientException":
|
|
544
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
545
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
546
|
-
case "UnauthorizedClientException":
|
|
547
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
548
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
549
|
-
default:
|
|
550
|
-
const parsedBody = parsedOutput.body;
|
|
551
|
-
return throwDefaultError({
|
|
552
|
-
output,
|
|
553
|
-
parsedBody,
|
|
554
|
-
errorCode,
|
|
555
|
-
});
|
|
556
|
-
}
|
|
557
|
-
};
|
|
558
|
-
const de_CreateMediaInsightsPipelineCommand = async (output, context) => {
|
|
559
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
560
|
-
return de_CreateMediaInsightsPipelineCommandError(output, context);
|
|
561
|
-
}
|
|
562
|
-
const contents = (0, smithy_client_1.map)({
|
|
563
|
-
$metadata: deserializeMetadata(output),
|
|
564
|
-
});
|
|
565
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
566
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
567
|
-
MediaInsightsPipeline: (_) => de_MediaInsightsPipeline(_, context),
|
|
568
|
-
});
|
|
569
|
-
Object.assign(contents, doc);
|
|
570
|
-
return contents;
|
|
571
|
-
};
|
|
572
|
-
exports.de_CreateMediaInsightsPipelineCommand = de_CreateMediaInsightsPipelineCommand;
|
|
573
|
-
const de_CreateMediaInsightsPipelineCommandError = async (output, context) => {
|
|
574
|
-
const parsedOutput = {
|
|
575
|
-
...output,
|
|
576
|
-
body: await parseErrorBody(output.body, context),
|
|
577
|
-
};
|
|
578
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
579
|
-
switch (errorCode) {
|
|
580
|
-
case "BadRequestException":
|
|
581
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
582
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
583
|
-
case "ForbiddenException":
|
|
584
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
585
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
586
|
-
case "NotFoundException":
|
|
587
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
588
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
589
|
-
case "ResourceLimitExceededException":
|
|
590
|
-
case "com.amazonaws.chimesdkmediapipelines#ResourceLimitExceededException":
|
|
591
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
592
|
-
case "ServiceFailureException":
|
|
593
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
594
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
595
|
-
case "ServiceUnavailableException":
|
|
596
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
597
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
598
|
-
case "ThrottledClientException":
|
|
599
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
600
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
601
|
-
case "UnauthorizedClientException":
|
|
602
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
603
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
604
|
-
default:
|
|
605
|
-
const parsedBody = parsedOutput.body;
|
|
606
|
-
return throwDefaultError({
|
|
607
|
-
output,
|
|
608
|
-
parsedBody,
|
|
609
|
-
errorCode,
|
|
610
|
-
});
|
|
611
|
-
}
|
|
612
|
-
};
|
|
613
|
-
const de_CreateMediaInsightsPipelineConfigurationCommand = async (output, context) => {
|
|
614
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
615
|
-
return de_CreateMediaInsightsPipelineConfigurationCommandError(output, context);
|
|
616
|
-
}
|
|
617
|
-
const contents = (0, smithy_client_1.map)({
|
|
618
|
-
$metadata: deserializeMetadata(output),
|
|
619
|
-
});
|
|
620
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
621
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
622
|
-
MediaInsightsPipelineConfiguration: (_) => de_MediaInsightsPipelineConfiguration(_, context),
|
|
623
|
-
});
|
|
624
|
-
Object.assign(contents, doc);
|
|
625
|
-
return contents;
|
|
626
|
-
};
|
|
627
|
-
exports.de_CreateMediaInsightsPipelineConfigurationCommand = de_CreateMediaInsightsPipelineConfigurationCommand;
|
|
628
|
-
const de_CreateMediaInsightsPipelineConfigurationCommandError = async (output, context) => {
|
|
629
|
-
const parsedOutput = {
|
|
630
|
-
...output,
|
|
631
|
-
body: await parseErrorBody(output.body, context),
|
|
632
|
-
};
|
|
633
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
634
|
-
switch (errorCode) {
|
|
635
|
-
case "BadRequestException":
|
|
636
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
637
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
638
|
-
case "ForbiddenException":
|
|
639
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
640
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
641
|
-
case "NotFoundException":
|
|
642
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
643
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
644
|
-
case "ResourceLimitExceededException":
|
|
645
|
-
case "com.amazonaws.chimesdkmediapipelines#ResourceLimitExceededException":
|
|
646
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
647
|
-
case "ServiceFailureException":
|
|
648
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
649
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
650
|
-
case "ServiceUnavailableException":
|
|
651
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
652
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
653
|
-
case "ThrottledClientException":
|
|
654
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
655
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
656
|
-
case "UnauthorizedClientException":
|
|
657
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
658
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
659
|
-
default:
|
|
660
|
-
const parsedBody = parsedOutput.body;
|
|
661
|
-
return throwDefaultError({
|
|
662
|
-
output,
|
|
663
|
-
parsedBody,
|
|
664
|
-
errorCode,
|
|
665
|
-
});
|
|
666
|
-
}
|
|
667
|
-
};
|
|
668
|
-
const de_CreateMediaLiveConnectorPipelineCommand = async (output, context) => {
|
|
669
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
670
|
-
return de_CreateMediaLiveConnectorPipelineCommandError(output, context);
|
|
671
|
-
}
|
|
672
|
-
const contents = (0, smithy_client_1.map)({
|
|
673
|
-
$metadata: deserializeMetadata(output),
|
|
674
|
-
});
|
|
675
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
676
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
677
|
-
MediaLiveConnectorPipeline: (_) => de_MediaLiveConnectorPipeline(_, context),
|
|
678
|
-
});
|
|
679
|
-
Object.assign(contents, doc);
|
|
680
|
-
return contents;
|
|
681
|
-
};
|
|
682
|
-
exports.de_CreateMediaLiveConnectorPipelineCommand = de_CreateMediaLiveConnectorPipelineCommand;
|
|
683
|
-
const de_CreateMediaLiveConnectorPipelineCommandError = async (output, context) => {
|
|
684
|
-
const parsedOutput = {
|
|
685
|
-
...output,
|
|
686
|
-
body: await parseErrorBody(output.body, context),
|
|
687
|
-
};
|
|
688
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
689
|
-
switch (errorCode) {
|
|
690
|
-
case "BadRequestException":
|
|
691
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
692
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
693
|
-
case "ForbiddenException":
|
|
694
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
695
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
696
|
-
case "ResourceLimitExceededException":
|
|
697
|
-
case "com.amazonaws.chimesdkmediapipelines#ResourceLimitExceededException":
|
|
698
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
699
|
-
case "ServiceFailureException":
|
|
700
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
701
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
702
|
-
case "ServiceUnavailableException":
|
|
703
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
704
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
705
|
-
case "ThrottledClientException":
|
|
706
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
707
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
708
|
-
case "UnauthorizedClientException":
|
|
709
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
710
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
711
|
-
default:
|
|
712
|
-
const parsedBody = parsedOutput.body;
|
|
713
|
-
return throwDefaultError({
|
|
714
|
-
output,
|
|
715
|
-
parsedBody,
|
|
716
|
-
errorCode,
|
|
717
|
-
});
|
|
718
|
-
}
|
|
719
|
-
};
|
|
720
|
-
const de_CreateMediaPipelineKinesisVideoStreamPoolCommand = async (output, context) => {
|
|
721
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
722
|
-
return de_CreateMediaPipelineKinesisVideoStreamPoolCommandError(output, context);
|
|
723
|
-
}
|
|
724
|
-
const contents = (0, smithy_client_1.map)({
|
|
725
|
-
$metadata: deserializeMetadata(output),
|
|
726
|
-
});
|
|
727
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
728
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
729
|
-
KinesisVideoStreamPoolConfiguration: (_) => de_KinesisVideoStreamPoolConfiguration(_, context),
|
|
730
|
-
});
|
|
731
|
-
Object.assign(contents, doc);
|
|
732
|
-
return contents;
|
|
733
|
-
};
|
|
734
|
-
exports.de_CreateMediaPipelineKinesisVideoStreamPoolCommand = de_CreateMediaPipelineKinesisVideoStreamPoolCommand;
|
|
735
|
-
const de_CreateMediaPipelineKinesisVideoStreamPoolCommandError = async (output, context) => {
|
|
736
|
-
const parsedOutput = {
|
|
737
|
-
...output,
|
|
738
|
-
body: await parseErrorBody(output.body, context),
|
|
739
|
-
};
|
|
740
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
741
|
-
switch (errorCode) {
|
|
742
|
-
case "BadRequestException":
|
|
743
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
744
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
745
|
-
case "ConflictException":
|
|
746
|
-
case "com.amazonaws.chimesdkmediapipelines#ConflictException":
|
|
747
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
748
|
-
case "ForbiddenException":
|
|
749
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
750
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
751
|
-
case "ResourceLimitExceededException":
|
|
752
|
-
case "com.amazonaws.chimesdkmediapipelines#ResourceLimitExceededException":
|
|
753
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
754
|
-
case "ServiceFailureException":
|
|
755
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
756
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
757
|
-
case "ServiceUnavailableException":
|
|
758
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
759
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
760
|
-
case "ThrottledClientException":
|
|
761
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
762
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
763
|
-
case "UnauthorizedClientException":
|
|
764
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
765
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
766
|
-
default:
|
|
767
|
-
const parsedBody = parsedOutput.body;
|
|
768
|
-
return throwDefaultError({
|
|
769
|
-
output,
|
|
770
|
-
parsedBody,
|
|
771
|
-
errorCode,
|
|
772
|
-
});
|
|
773
|
-
}
|
|
774
|
-
};
|
|
775
|
-
const de_CreateMediaStreamPipelineCommand = async (output, context) => {
|
|
776
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
777
|
-
return de_CreateMediaStreamPipelineCommandError(output, context);
|
|
778
|
-
}
|
|
779
|
-
const contents = (0, smithy_client_1.map)({
|
|
780
|
-
$metadata: deserializeMetadata(output),
|
|
781
|
-
});
|
|
782
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
783
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
784
|
-
MediaStreamPipeline: (_) => de_MediaStreamPipeline(_, context),
|
|
785
|
-
});
|
|
786
|
-
Object.assign(contents, doc);
|
|
787
|
-
return contents;
|
|
788
|
-
};
|
|
789
|
-
exports.de_CreateMediaStreamPipelineCommand = de_CreateMediaStreamPipelineCommand;
|
|
790
|
-
const de_CreateMediaStreamPipelineCommandError = async (output, context) => {
|
|
791
|
-
const parsedOutput = {
|
|
792
|
-
...output,
|
|
793
|
-
body: await parseErrorBody(output.body, context),
|
|
794
|
-
};
|
|
795
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
796
|
-
switch (errorCode) {
|
|
797
|
-
case "BadRequestException":
|
|
798
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
799
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
800
|
-
case "ForbiddenException":
|
|
801
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
802
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
803
|
-
case "NotFoundException":
|
|
804
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
805
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
806
|
-
case "ResourceLimitExceededException":
|
|
807
|
-
case "com.amazonaws.chimesdkmediapipelines#ResourceLimitExceededException":
|
|
808
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
809
|
-
case "ServiceFailureException":
|
|
810
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
811
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
812
|
-
case "ServiceUnavailableException":
|
|
813
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
814
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
815
|
-
case "ThrottledClientException":
|
|
816
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
817
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
818
|
-
case "UnauthorizedClientException":
|
|
819
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
820
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
821
|
-
default:
|
|
822
|
-
const parsedBody = parsedOutput.body;
|
|
823
|
-
return throwDefaultError({
|
|
824
|
-
output,
|
|
825
|
-
parsedBody,
|
|
826
|
-
errorCode,
|
|
827
|
-
});
|
|
828
|
-
}
|
|
829
|
-
};
|
|
830
|
-
const de_DeleteMediaCapturePipelineCommand = async (output, context) => {
|
|
831
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
832
|
-
return de_DeleteMediaCapturePipelineCommandError(output, context);
|
|
833
|
-
}
|
|
834
|
-
const contents = (0, smithy_client_1.map)({
|
|
835
|
-
$metadata: deserializeMetadata(output),
|
|
836
|
-
});
|
|
837
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
838
|
-
return contents;
|
|
839
|
-
};
|
|
840
|
-
exports.de_DeleteMediaCapturePipelineCommand = de_DeleteMediaCapturePipelineCommand;
|
|
841
|
-
const de_DeleteMediaCapturePipelineCommandError = async (output, context) => {
|
|
842
|
-
const parsedOutput = {
|
|
843
|
-
...output,
|
|
844
|
-
body: await parseErrorBody(output.body, context),
|
|
845
|
-
};
|
|
846
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
847
|
-
switch (errorCode) {
|
|
848
|
-
case "BadRequestException":
|
|
849
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
850
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
851
|
-
case "ForbiddenException":
|
|
852
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
853
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
854
|
-
case "NotFoundException":
|
|
855
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
856
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
857
|
-
case "ServiceFailureException":
|
|
858
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
859
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
860
|
-
case "ServiceUnavailableException":
|
|
861
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
862
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
863
|
-
case "ThrottledClientException":
|
|
864
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
865
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
866
|
-
case "UnauthorizedClientException":
|
|
867
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
868
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
869
|
-
default:
|
|
870
|
-
const parsedBody = parsedOutput.body;
|
|
871
|
-
return throwDefaultError({
|
|
872
|
-
output,
|
|
873
|
-
parsedBody,
|
|
874
|
-
errorCode,
|
|
875
|
-
});
|
|
876
|
-
}
|
|
877
|
-
};
|
|
878
|
-
const de_DeleteMediaInsightsPipelineConfigurationCommand = async (output, context) => {
|
|
879
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
880
|
-
return de_DeleteMediaInsightsPipelineConfigurationCommandError(output, context);
|
|
881
|
-
}
|
|
882
|
-
const contents = (0, smithy_client_1.map)({
|
|
883
|
-
$metadata: deserializeMetadata(output),
|
|
884
|
-
});
|
|
885
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
886
|
-
return contents;
|
|
887
|
-
};
|
|
888
|
-
exports.de_DeleteMediaInsightsPipelineConfigurationCommand = de_DeleteMediaInsightsPipelineConfigurationCommand;
|
|
889
|
-
const de_DeleteMediaInsightsPipelineConfigurationCommandError = async (output, context) => {
|
|
890
|
-
const parsedOutput = {
|
|
891
|
-
...output,
|
|
892
|
-
body: await parseErrorBody(output.body, context),
|
|
893
|
-
};
|
|
894
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
895
|
-
switch (errorCode) {
|
|
896
|
-
case "BadRequestException":
|
|
897
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
898
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
899
|
-
case "ConflictException":
|
|
900
|
-
case "com.amazonaws.chimesdkmediapipelines#ConflictException":
|
|
901
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
902
|
-
case "ForbiddenException":
|
|
903
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
904
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
905
|
-
case "NotFoundException":
|
|
906
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
907
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
908
|
-
case "ServiceFailureException":
|
|
909
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
910
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
911
|
-
case "ServiceUnavailableException":
|
|
912
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
913
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
914
|
-
case "ThrottledClientException":
|
|
915
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
916
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
917
|
-
case "UnauthorizedClientException":
|
|
918
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
919
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
920
|
-
default:
|
|
921
|
-
const parsedBody = parsedOutput.body;
|
|
922
|
-
return throwDefaultError({
|
|
923
|
-
output,
|
|
924
|
-
parsedBody,
|
|
925
|
-
errorCode,
|
|
926
|
-
});
|
|
927
|
-
}
|
|
928
|
-
};
|
|
929
|
-
const de_DeleteMediaPipelineCommand = async (output, context) => {
|
|
930
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
931
|
-
return de_DeleteMediaPipelineCommandError(output, context);
|
|
932
|
-
}
|
|
933
|
-
const contents = (0, smithy_client_1.map)({
|
|
934
|
-
$metadata: deserializeMetadata(output),
|
|
935
|
-
});
|
|
936
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
937
|
-
return contents;
|
|
938
|
-
};
|
|
939
|
-
exports.de_DeleteMediaPipelineCommand = de_DeleteMediaPipelineCommand;
|
|
940
|
-
const de_DeleteMediaPipelineCommandError = async (output, context) => {
|
|
941
|
-
const parsedOutput = {
|
|
942
|
-
...output,
|
|
943
|
-
body: await parseErrorBody(output.body, context),
|
|
944
|
-
};
|
|
945
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
946
|
-
switch (errorCode) {
|
|
947
|
-
case "BadRequestException":
|
|
948
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
949
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
950
|
-
case "ConflictException":
|
|
951
|
-
case "com.amazonaws.chimesdkmediapipelines#ConflictException":
|
|
952
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
953
|
-
case "ForbiddenException":
|
|
954
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
955
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
956
|
-
case "NotFoundException":
|
|
957
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
958
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
959
|
-
case "ServiceFailureException":
|
|
960
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
961
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
962
|
-
case "ServiceUnavailableException":
|
|
963
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
964
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
965
|
-
case "ThrottledClientException":
|
|
966
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
967
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
968
|
-
case "UnauthorizedClientException":
|
|
969
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
970
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
971
|
-
default:
|
|
972
|
-
const parsedBody = parsedOutput.body;
|
|
973
|
-
return throwDefaultError({
|
|
974
|
-
output,
|
|
975
|
-
parsedBody,
|
|
976
|
-
errorCode,
|
|
977
|
-
});
|
|
978
|
-
}
|
|
979
|
-
};
|
|
980
|
-
const de_DeleteMediaPipelineKinesisVideoStreamPoolCommand = async (output, context) => {
|
|
981
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
982
|
-
return de_DeleteMediaPipelineKinesisVideoStreamPoolCommandError(output, context);
|
|
983
|
-
}
|
|
984
|
-
const contents = (0, smithy_client_1.map)({
|
|
985
|
-
$metadata: deserializeMetadata(output),
|
|
986
|
-
});
|
|
987
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
988
|
-
return contents;
|
|
989
|
-
};
|
|
990
|
-
exports.de_DeleteMediaPipelineKinesisVideoStreamPoolCommand = de_DeleteMediaPipelineKinesisVideoStreamPoolCommand;
|
|
991
|
-
const de_DeleteMediaPipelineKinesisVideoStreamPoolCommandError = async (output, context) => {
|
|
992
|
-
const parsedOutput = {
|
|
993
|
-
...output,
|
|
994
|
-
body: await parseErrorBody(output.body, context),
|
|
995
|
-
};
|
|
996
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
997
|
-
switch (errorCode) {
|
|
998
|
-
case "BadRequestException":
|
|
999
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1000
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1001
|
-
case "ConflictException":
|
|
1002
|
-
case "com.amazonaws.chimesdkmediapipelines#ConflictException":
|
|
1003
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1004
|
-
case "ForbiddenException":
|
|
1005
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1006
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1007
|
-
case "NotFoundException":
|
|
1008
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1009
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1010
|
-
case "ServiceFailureException":
|
|
1011
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1012
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1013
|
-
case "ServiceUnavailableException":
|
|
1014
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1015
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "ThrottledClientException":
|
|
1017
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1018
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "UnauthorizedClientException":
|
|
1020
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1021
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1022
|
-
default:
|
|
1023
|
-
const parsedBody = parsedOutput.body;
|
|
1024
|
-
return throwDefaultError({
|
|
1025
|
-
output,
|
|
1026
|
-
parsedBody,
|
|
1027
|
-
errorCode,
|
|
1028
|
-
});
|
|
1029
|
-
}
|
|
1030
|
-
};
|
|
1031
|
-
const de_GetMediaCapturePipelineCommand = async (output, context) => {
|
|
1032
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1033
|
-
return de_GetMediaCapturePipelineCommandError(output, context);
|
|
1034
|
-
}
|
|
1035
|
-
const contents = (0, smithy_client_1.map)({
|
|
1036
|
-
$metadata: deserializeMetadata(output),
|
|
1037
|
-
});
|
|
1038
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1039
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1040
|
-
MediaCapturePipeline: (_) => de_MediaCapturePipeline(_, context),
|
|
1041
|
-
});
|
|
1042
|
-
Object.assign(contents, doc);
|
|
1043
|
-
return contents;
|
|
1044
|
-
};
|
|
1045
|
-
exports.de_GetMediaCapturePipelineCommand = de_GetMediaCapturePipelineCommand;
|
|
1046
|
-
const de_GetMediaCapturePipelineCommandError = async (output, context) => {
|
|
1047
|
-
const parsedOutput = {
|
|
1048
|
-
...output,
|
|
1049
|
-
body: await parseErrorBody(output.body, context),
|
|
1050
|
-
};
|
|
1051
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1052
|
-
switch (errorCode) {
|
|
1053
|
-
case "BadRequestException":
|
|
1054
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1055
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1056
|
-
case "ForbiddenException":
|
|
1057
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1058
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1059
|
-
case "NotFoundException":
|
|
1060
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1061
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1062
|
-
case "ServiceFailureException":
|
|
1063
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1064
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1065
|
-
case "ServiceUnavailableException":
|
|
1066
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1067
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1068
|
-
case "ThrottledClientException":
|
|
1069
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1070
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1071
|
-
case "UnauthorizedClientException":
|
|
1072
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1073
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1074
|
-
default:
|
|
1075
|
-
const parsedBody = parsedOutput.body;
|
|
1076
|
-
return throwDefaultError({
|
|
1077
|
-
output,
|
|
1078
|
-
parsedBody,
|
|
1079
|
-
errorCode,
|
|
1080
|
-
});
|
|
1081
|
-
}
|
|
1082
|
-
};
|
|
1083
|
-
const de_GetMediaInsightsPipelineConfigurationCommand = async (output, context) => {
|
|
1084
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1085
|
-
return de_GetMediaInsightsPipelineConfigurationCommandError(output, context);
|
|
1086
|
-
}
|
|
1087
|
-
const contents = (0, smithy_client_1.map)({
|
|
1088
|
-
$metadata: deserializeMetadata(output),
|
|
1089
|
-
});
|
|
1090
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1091
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1092
|
-
MediaInsightsPipelineConfiguration: (_) => de_MediaInsightsPipelineConfiguration(_, context),
|
|
1093
|
-
});
|
|
1094
|
-
Object.assign(contents, doc);
|
|
1095
|
-
return contents;
|
|
1096
|
-
};
|
|
1097
|
-
exports.de_GetMediaInsightsPipelineConfigurationCommand = de_GetMediaInsightsPipelineConfigurationCommand;
|
|
1098
|
-
const de_GetMediaInsightsPipelineConfigurationCommandError = async (output, context) => {
|
|
1099
|
-
const parsedOutput = {
|
|
1100
|
-
...output,
|
|
1101
|
-
body: await parseErrorBody(output.body, context),
|
|
1102
|
-
};
|
|
1103
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1104
|
-
switch (errorCode) {
|
|
1105
|
-
case "BadRequestException":
|
|
1106
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1107
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1108
|
-
case "ForbiddenException":
|
|
1109
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1110
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1111
|
-
case "NotFoundException":
|
|
1112
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1113
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "ServiceFailureException":
|
|
1115
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1116
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1117
|
-
case "ServiceUnavailableException":
|
|
1118
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1119
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1120
|
-
case "ThrottledClientException":
|
|
1121
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1122
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1123
|
-
case "UnauthorizedClientException":
|
|
1124
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1125
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1126
|
-
default:
|
|
1127
|
-
const parsedBody = parsedOutput.body;
|
|
1128
|
-
return throwDefaultError({
|
|
1129
|
-
output,
|
|
1130
|
-
parsedBody,
|
|
1131
|
-
errorCode,
|
|
1132
|
-
});
|
|
1133
|
-
}
|
|
1134
|
-
};
|
|
1135
|
-
const de_GetMediaPipelineCommand = async (output, context) => {
|
|
1136
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1137
|
-
return de_GetMediaPipelineCommandError(output, context);
|
|
1138
|
-
}
|
|
1139
|
-
const contents = (0, smithy_client_1.map)({
|
|
1140
|
-
$metadata: deserializeMetadata(output),
|
|
1141
|
-
});
|
|
1142
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1143
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1144
|
-
MediaPipeline: (_) => de_MediaPipeline(_, context),
|
|
1145
|
-
});
|
|
1146
|
-
Object.assign(contents, doc);
|
|
1147
|
-
return contents;
|
|
1148
|
-
};
|
|
1149
|
-
exports.de_GetMediaPipelineCommand = de_GetMediaPipelineCommand;
|
|
1150
|
-
const de_GetMediaPipelineCommandError = async (output, context) => {
|
|
1151
|
-
const parsedOutput = {
|
|
1152
|
-
...output,
|
|
1153
|
-
body: await parseErrorBody(output.body, context),
|
|
1154
|
-
};
|
|
1155
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1156
|
-
switch (errorCode) {
|
|
1157
|
-
case "BadRequestException":
|
|
1158
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1159
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1160
|
-
case "ForbiddenException":
|
|
1161
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1162
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1163
|
-
case "NotFoundException":
|
|
1164
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1165
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1166
|
-
case "ServiceFailureException":
|
|
1167
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1168
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1169
|
-
case "ServiceUnavailableException":
|
|
1170
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1171
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1172
|
-
case "ThrottledClientException":
|
|
1173
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1174
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1175
|
-
case "UnauthorizedClientException":
|
|
1176
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1177
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1178
|
-
default:
|
|
1179
|
-
const parsedBody = parsedOutput.body;
|
|
1180
|
-
return throwDefaultError({
|
|
1181
|
-
output,
|
|
1182
|
-
parsedBody,
|
|
1183
|
-
errorCode,
|
|
1184
|
-
});
|
|
1185
|
-
}
|
|
1186
|
-
};
|
|
1187
|
-
const de_GetMediaPipelineKinesisVideoStreamPoolCommand = async (output, context) => {
|
|
1188
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1189
|
-
return de_GetMediaPipelineKinesisVideoStreamPoolCommandError(output, context);
|
|
1190
|
-
}
|
|
1191
|
-
const contents = (0, smithy_client_1.map)({
|
|
1192
|
-
$metadata: deserializeMetadata(output),
|
|
1193
|
-
});
|
|
1194
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1195
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1196
|
-
KinesisVideoStreamPoolConfiguration: (_) => de_KinesisVideoStreamPoolConfiguration(_, context),
|
|
1197
|
-
});
|
|
1198
|
-
Object.assign(contents, doc);
|
|
1199
|
-
return contents;
|
|
1200
|
-
};
|
|
1201
|
-
exports.de_GetMediaPipelineKinesisVideoStreamPoolCommand = de_GetMediaPipelineKinesisVideoStreamPoolCommand;
|
|
1202
|
-
const de_GetMediaPipelineKinesisVideoStreamPoolCommandError = async (output, context) => {
|
|
1203
|
-
const parsedOutput = {
|
|
1204
|
-
...output,
|
|
1205
|
-
body: await parseErrorBody(output.body, context),
|
|
1206
|
-
};
|
|
1207
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1208
|
-
switch (errorCode) {
|
|
1209
|
-
case "BadRequestException":
|
|
1210
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1211
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1212
|
-
case "ForbiddenException":
|
|
1213
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1214
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1215
|
-
case "NotFoundException":
|
|
1216
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1217
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1218
|
-
case "ServiceFailureException":
|
|
1219
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1220
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1221
|
-
case "ServiceUnavailableException":
|
|
1222
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1223
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1224
|
-
case "ThrottledClientException":
|
|
1225
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1226
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1227
|
-
case "UnauthorizedClientException":
|
|
1228
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1229
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1230
|
-
default:
|
|
1231
|
-
const parsedBody = parsedOutput.body;
|
|
1232
|
-
return throwDefaultError({
|
|
1233
|
-
output,
|
|
1234
|
-
parsedBody,
|
|
1235
|
-
errorCode,
|
|
1236
|
-
});
|
|
1237
|
-
}
|
|
1238
|
-
};
|
|
1239
|
-
const de_GetSpeakerSearchTaskCommand = async (output, context) => {
|
|
1240
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1241
|
-
return de_GetSpeakerSearchTaskCommandError(output, context);
|
|
1242
|
-
}
|
|
1243
|
-
const contents = (0, smithy_client_1.map)({
|
|
1244
|
-
$metadata: deserializeMetadata(output),
|
|
1245
|
-
});
|
|
1246
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1247
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1248
|
-
SpeakerSearchTask: (_) => de_SpeakerSearchTask(_, context),
|
|
1249
|
-
});
|
|
1250
|
-
Object.assign(contents, doc);
|
|
1251
|
-
return contents;
|
|
1252
|
-
};
|
|
1253
|
-
exports.de_GetSpeakerSearchTaskCommand = de_GetSpeakerSearchTaskCommand;
|
|
1254
|
-
const de_GetSpeakerSearchTaskCommandError = async (output, context) => {
|
|
1255
|
-
const parsedOutput = {
|
|
1256
|
-
...output,
|
|
1257
|
-
body: await parseErrorBody(output.body, context),
|
|
1258
|
-
};
|
|
1259
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1260
|
-
switch (errorCode) {
|
|
1261
|
-
case "BadRequestException":
|
|
1262
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1263
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1264
|
-
case "ForbiddenException":
|
|
1265
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1266
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1267
|
-
case "NotFoundException":
|
|
1268
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1269
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1270
|
-
case "ServiceFailureException":
|
|
1271
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1272
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1273
|
-
case "ServiceUnavailableException":
|
|
1274
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1275
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1276
|
-
case "ThrottledClientException":
|
|
1277
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1278
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1279
|
-
case "UnauthorizedClientException":
|
|
1280
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1281
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1282
|
-
default:
|
|
1283
|
-
const parsedBody = parsedOutput.body;
|
|
1284
|
-
return throwDefaultError({
|
|
1285
|
-
output,
|
|
1286
|
-
parsedBody,
|
|
1287
|
-
errorCode,
|
|
1288
|
-
});
|
|
1289
|
-
}
|
|
1290
|
-
};
|
|
1291
|
-
const de_GetVoiceToneAnalysisTaskCommand = async (output, context) => {
|
|
1292
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1293
|
-
return de_GetVoiceToneAnalysisTaskCommandError(output, context);
|
|
1294
|
-
}
|
|
1295
|
-
const contents = (0, smithy_client_1.map)({
|
|
1296
|
-
$metadata: deserializeMetadata(output),
|
|
1297
|
-
});
|
|
1298
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1299
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1300
|
-
VoiceToneAnalysisTask: (_) => de_VoiceToneAnalysisTask(_, context),
|
|
1301
|
-
});
|
|
1302
|
-
Object.assign(contents, doc);
|
|
1303
|
-
return contents;
|
|
1304
|
-
};
|
|
1305
|
-
exports.de_GetVoiceToneAnalysisTaskCommand = de_GetVoiceToneAnalysisTaskCommand;
|
|
1306
|
-
const de_GetVoiceToneAnalysisTaskCommandError = async (output, context) => {
|
|
1307
|
-
const parsedOutput = {
|
|
1308
|
-
...output,
|
|
1309
|
-
body: await parseErrorBody(output.body, context),
|
|
1310
|
-
};
|
|
1311
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1312
|
-
switch (errorCode) {
|
|
1313
|
-
case "BadRequestException":
|
|
1314
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1315
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1316
|
-
case "ForbiddenException":
|
|
1317
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1318
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1319
|
-
case "NotFoundException":
|
|
1320
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1321
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1322
|
-
case "ServiceFailureException":
|
|
1323
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1324
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1325
|
-
case "ServiceUnavailableException":
|
|
1326
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1327
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1328
|
-
case "ThrottledClientException":
|
|
1329
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1330
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1331
|
-
case "UnauthorizedClientException":
|
|
1332
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1333
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1334
|
-
default:
|
|
1335
|
-
const parsedBody = parsedOutput.body;
|
|
1336
|
-
return throwDefaultError({
|
|
1337
|
-
output,
|
|
1338
|
-
parsedBody,
|
|
1339
|
-
errorCode,
|
|
1340
|
-
});
|
|
1341
|
-
}
|
|
1342
|
-
};
|
|
1343
|
-
const de_ListMediaCapturePipelinesCommand = async (output, context) => {
|
|
1344
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1345
|
-
return de_ListMediaCapturePipelinesCommandError(output, context);
|
|
1346
|
-
}
|
|
1347
|
-
const contents = (0, smithy_client_1.map)({
|
|
1348
|
-
$metadata: deserializeMetadata(output),
|
|
1349
|
-
});
|
|
1350
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1351
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1352
|
-
MediaCapturePipelines: smithy_client_1._json,
|
|
1353
|
-
NextToken: smithy_client_1.expectString,
|
|
1354
|
-
});
|
|
1355
|
-
Object.assign(contents, doc);
|
|
1356
|
-
return contents;
|
|
1357
|
-
};
|
|
1358
|
-
exports.de_ListMediaCapturePipelinesCommand = de_ListMediaCapturePipelinesCommand;
|
|
1359
|
-
const de_ListMediaCapturePipelinesCommandError = async (output, context) => {
|
|
1360
|
-
const parsedOutput = {
|
|
1361
|
-
...output,
|
|
1362
|
-
body: await parseErrorBody(output.body, context),
|
|
1363
|
-
};
|
|
1364
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1365
|
-
switch (errorCode) {
|
|
1366
|
-
case "BadRequestException":
|
|
1367
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1368
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1369
|
-
case "ForbiddenException":
|
|
1370
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1371
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1372
|
-
case "ResourceLimitExceededException":
|
|
1373
|
-
case "com.amazonaws.chimesdkmediapipelines#ResourceLimitExceededException":
|
|
1374
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1375
|
-
case "ServiceFailureException":
|
|
1376
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1377
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1378
|
-
case "ServiceUnavailableException":
|
|
1379
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1380
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1381
|
-
case "ThrottledClientException":
|
|
1382
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1383
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1384
|
-
case "UnauthorizedClientException":
|
|
1385
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1386
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1387
|
-
default:
|
|
1388
|
-
const parsedBody = parsedOutput.body;
|
|
1389
|
-
return throwDefaultError({
|
|
1390
|
-
output,
|
|
1391
|
-
parsedBody,
|
|
1392
|
-
errorCode,
|
|
1393
|
-
});
|
|
1394
|
-
}
|
|
1395
|
-
};
|
|
1396
|
-
const de_ListMediaInsightsPipelineConfigurationsCommand = async (output, context) => {
|
|
1397
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1398
|
-
return de_ListMediaInsightsPipelineConfigurationsCommandError(output, context);
|
|
1399
|
-
}
|
|
1400
|
-
const contents = (0, smithy_client_1.map)({
|
|
1401
|
-
$metadata: deserializeMetadata(output),
|
|
1402
|
-
});
|
|
1403
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1404
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1405
|
-
MediaInsightsPipelineConfigurations: smithy_client_1._json,
|
|
1406
|
-
NextToken: smithy_client_1.expectString,
|
|
1407
|
-
});
|
|
1408
|
-
Object.assign(contents, doc);
|
|
1409
|
-
return contents;
|
|
1410
|
-
};
|
|
1411
|
-
exports.de_ListMediaInsightsPipelineConfigurationsCommand = de_ListMediaInsightsPipelineConfigurationsCommand;
|
|
1412
|
-
const de_ListMediaInsightsPipelineConfigurationsCommandError = async (output, context) => {
|
|
1413
|
-
const parsedOutput = {
|
|
1414
|
-
...output,
|
|
1415
|
-
body: await parseErrorBody(output.body, context),
|
|
1416
|
-
};
|
|
1417
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1418
|
-
switch (errorCode) {
|
|
1419
|
-
case "BadRequestException":
|
|
1420
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1421
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1422
|
-
case "ForbiddenException":
|
|
1423
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1424
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1425
|
-
case "ResourceLimitExceededException":
|
|
1426
|
-
case "com.amazonaws.chimesdkmediapipelines#ResourceLimitExceededException":
|
|
1427
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1428
|
-
case "ServiceFailureException":
|
|
1429
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1430
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1431
|
-
case "ServiceUnavailableException":
|
|
1432
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1433
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1434
|
-
case "ThrottledClientException":
|
|
1435
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1436
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1437
|
-
case "UnauthorizedClientException":
|
|
1438
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1439
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1440
|
-
default:
|
|
1441
|
-
const parsedBody = parsedOutput.body;
|
|
1442
|
-
return throwDefaultError({
|
|
1443
|
-
output,
|
|
1444
|
-
parsedBody,
|
|
1445
|
-
errorCode,
|
|
1446
|
-
});
|
|
1447
|
-
}
|
|
1448
|
-
};
|
|
1449
|
-
const de_ListMediaPipelineKinesisVideoStreamPoolsCommand = async (output, context) => {
|
|
1450
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1451
|
-
return de_ListMediaPipelineKinesisVideoStreamPoolsCommandError(output, context);
|
|
1452
|
-
}
|
|
1453
|
-
const contents = (0, smithy_client_1.map)({
|
|
1454
|
-
$metadata: deserializeMetadata(output),
|
|
1455
|
-
});
|
|
1456
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1457
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1458
|
-
KinesisVideoStreamPools: smithy_client_1._json,
|
|
1459
|
-
NextToken: smithy_client_1.expectString,
|
|
1460
|
-
});
|
|
1461
|
-
Object.assign(contents, doc);
|
|
1462
|
-
return contents;
|
|
1463
|
-
};
|
|
1464
|
-
exports.de_ListMediaPipelineKinesisVideoStreamPoolsCommand = de_ListMediaPipelineKinesisVideoStreamPoolsCommand;
|
|
1465
|
-
const de_ListMediaPipelineKinesisVideoStreamPoolsCommandError = async (output, context) => {
|
|
1466
|
-
const parsedOutput = {
|
|
1467
|
-
...output,
|
|
1468
|
-
body: await parseErrorBody(output.body, context),
|
|
1469
|
-
};
|
|
1470
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1471
|
-
switch (errorCode) {
|
|
1472
|
-
case "BadRequestException":
|
|
1473
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1474
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1475
|
-
case "ForbiddenException":
|
|
1476
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1477
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1478
|
-
case "ResourceLimitExceededException":
|
|
1479
|
-
case "com.amazonaws.chimesdkmediapipelines#ResourceLimitExceededException":
|
|
1480
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1481
|
-
case "ServiceFailureException":
|
|
1482
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1483
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1484
|
-
case "ServiceUnavailableException":
|
|
1485
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1486
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1487
|
-
case "ThrottledClientException":
|
|
1488
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1489
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1490
|
-
case "UnauthorizedClientException":
|
|
1491
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1492
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1493
|
-
default:
|
|
1494
|
-
const parsedBody = parsedOutput.body;
|
|
1495
|
-
return throwDefaultError({
|
|
1496
|
-
output,
|
|
1497
|
-
parsedBody,
|
|
1498
|
-
errorCode,
|
|
1499
|
-
});
|
|
1500
|
-
}
|
|
1501
|
-
};
|
|
1502
|
-
const de_ListMediaPipelinesCommand = async (output, context) => {
|
|
1503
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1504
|
-
return de_ListMediaPipelinesCommandError(output, context);
|
|
1505
|
-
}
|
|
1506
|
-
const contents = (0, smithy_client_1.map)({
|
|
1507
|
-
$metadata: deserializeMetadata(output),
|
|
1508
|
-
});
|
|
1509
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1510
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1511
|
-
MediaPipelines: smithy_client_1._json,
|
|
1512
|
-
NextToken: smithy_client_1.expectString,
|
|
1513
|
-
});
|
|
1514
|
-
Object.assign(contents, doc);
|
|
1515
|
-
return contents;
|
|
1516
|
-
};
|
|
1517
|
-
exports.de_ListMediaPipelinesCommand = de_ListMediaPipelinesCommand;
|
|
1518
|
-
const de_ListMediaPipelinesCommandError = async (output, context) => {
|
|
1519
|
-
const parsedOutput = {
|
|
1520
|
-
...output,
|
|
1521
|
-
body: await parseErrorBody(output.body, context),
|
|
1522
|
-
};
|
|
1523
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1524
|
-
switch (errorCode) {
|
|
1525
|
-
case "BadRequestException":
|
|
1526
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1527
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1528
|
-
case "ForbiddenException":
|
|
1529
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1530
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1531
|
-
case "ResourceLimitExceededException":
|
|
1532
|
-
case "com.amazonaws.chimesdkmediapipelines#ResourceLimitExceededException":
|
|
1533
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1534
|
-
case "ServiceFailureException":
|
|
1535
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1536
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1537
|
-
case "ServiceUnavailableException":
|
|
1538
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1539
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1540
|
-
case "ThrottledClientException":
|
|
1541
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1542
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1543
|
-
case "UnauthorizedClientException":
|
|
1544
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1545
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1546
|
-
default:
|
|
1547
|
-
const parsedBody = parsedOutput.body;
|
|
1548
|
-
return throwDefaultError({
|
|
1549
|
-
output,
|
|
1550
|
-
parsedBody,
|
|
1551
|
-
errorCode,
|
|
1552
|
-
});
|
|
1553
|
-
}
|
|
1554
|
-
};
|
|
1555
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1556
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1557
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1558
|
-
}
|
|
1559
|
-
const contents = (0, smithy_client_1.map)({
|
|
1560
|
-
$metadata: deserializeMetadata(output),
|
|
1561
|
-
});
|
|
1562
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1563
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1564
|
-
Tags: smithy_client_1._json,
|
|
1565
|
-
});
|
|
1566
|
-
Object.assign(contents, doc);
|
|
1567
|
-
return contents;
|
|
1568
|
-
};
|
|
1569
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1570
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1571
|
-
const parsedOutput = {
|
|
1572
|
-
...output,
|
|
1573
|
-
body: await parseErrorBody(output.body, context),
|
|
1574
|
-
};
|
|
1575
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1576
|
-
switch (errorCode) {
|
|
1577
|
-
case "BadRequestException":
|
|
1578
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1579
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1580
|
-
case "ForbiddenException":
|
|
1581
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1582
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1583
|
-
case "NotFoundException":
|
|
1584
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1585
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1586
|
-
case "ServiceFailureException":
|
|
1587
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1588
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1589
|
-
case "ServiceUnavailableException":
|
|
1590
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1591
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1592
|
-
case "ThrottledClientException":
|
|
1593
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1594
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1595
|
-
case "UnauthorizedClientException":
|
|
1596
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1597
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1598
|
-
default:
|
|
1599
|
-
const parsedBody = parsedOutput.body;
|
|
1600
|
-
return throwDefaultError({
|
|
1601
|
-
output,
|
|
1602
|
-
parsedBody,
|
|
1603
|
-
errorCode,
|
|
1604
|
-
});
|
|
1605
|
-
}
|
|
1606
|
-
};
|
|
1607
|
-
const de_StartSpeakerSearchTaskCommand = async (output, context) => {
|
|
1608
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1609
|
-
return de_StartSpeakerSearchTaskCommandError(output, context);
|
|
1610
|
-
}
|
|
1611
|
-
const contents = (0, smithy_client_1.map)({
|
|
1612
|
-
$metadata: deserializeMetadata(output),
|
|
1613
|
-
});
|
|
1614
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1615
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1616
|
-
SpeakerSearchTask: (_) => de_SpeakerSearchTask(_, context),
|
|
1617
|
-
});
|
|
1618
|
-
Object.assign(contents, doc);
|
|
1619
|
-
return contents;
|
|
1620
|
-
};
|
|
1621
|
-
exports.de_StartSpeakerSearchTaskCommand = de_StartSpeakerSearchTaskCommand;
|
|
1622
|
-
const de_StartSpeakerSearchTaskCommandError = async (output, context) => {
|
|
1623
|
-
const parsedOutput = {
|
|
1624
|
-
...output,
|
|
1625
|
-
body: await parseErrorBody(output.body, context),
|
|
1626
|
-
};
|
|
1627
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1628
|
-
switch (errorCode) {
|
|
1629
|
-
case "BadRequestException":
|
|
1630
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1631
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1632
|
-
case "ConflictException":
|
|
1633
|
-
case "com.amazonaws.chimesdkmediapipelines#ConflictException":
|
|
1634
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1635
|
-
case "ForbiddenException":
|
|
1636
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1637
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1638
|
-
case "NotFoundException":
|
|
1639
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1640
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1641
|
-
case "ServiceFailureException":
|
|
1642
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1643
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1644
|
-
case "ServiceUnavailableException":
|
|
1645
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1646
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1647
|
-
case "ThrottledClientException":
|
|
1648
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1649
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1650
|
-
case "UnauthorizedClientException":
|
|
1651
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1652
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1653
|
-
default:
|
|
1654
|
-
const parsedBody = parsedOutput.body;
|
|
1655
|
-
return throwDefaultError({
|
|
1656
|
-
output,
|
|
1657
|
-
parsedBody,
|
|
1658
|
-
errorCode,
|
|
1659
|
-
});
|
|
1660
|
-
}
|
|
1661
|
-
};
|
|
1662
|
-
const de_StartVoiceToneAnalysisTaskCommand = async (output, context) => {
|
|
1663
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1664
|
-
return de_StartVoiceToneAnalysisTaskCommandError(output, context);
|
|
1665
|
-
}
|
|
1666
|
-
const contents = (0, smithy_client_1.map)({
|
|
1667
|
-
$metadata: deserializeMetadata(output),
|
|
1668
|
-
});
|
|
1669
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1670
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1671
|
-
VoiceToneAnalysisTask: (_) => de_VoiceToneAnalysisTask(_, context),
|
|
1672
|
-
});
|
|
1673
|
-
Object.assign(contents, doc);
|
|
1674
|
-
return contents;
|
|
1675
|
-
};
|
|
1676
|
-
exports.de_StartVoiceToneAnalysisTaskCommand = de_StartVoiceToneAnalysisTaskCommand;
|
|
1677
|
-
const de_StartVoiceToneAnalysisTaskCommandError = async (output, context) => {
|
|
1678
|
-
const parsedOutput = {
|
|
1679
|
-
...output,
|
|
1680
|
-
body: await parseErrorBody(output.body, context),
|
|
1681
|
-
};
|
|
1682
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1683
|
-
switch (errorCode) {
|
|
1684
|
-
case "BadRequestException":
|
|
1685
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1686
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1687
|
-
case "ConflictException":
|
|
1688
|
-
case "com.amazonaws.chimesdkmediapipelines#ConflictException":
|
|
1689
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1690
|
-
case "ForbiddenException":
|
|
1691
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1692
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1693
|
-
case "NotFoundException":
|
|
1694
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1695
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1696
|
-
case "ServiceFailureException":
|
|
1697
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1698
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1699
|
-
case "ServiceUnavailableException":
|
|
1700
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1701
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1702
|
-
case "ThrottledClientException":
|
|
1703
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1704
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1705
|
-
case "UnauthorizedClientException":
|
|
1706
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1707
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1708
|
-
default:
|
|
1709
|
-
const parsedBody = parsedOutput.body;
|
|
1710
|
-
return throwDefaultError({
|
|
1711
|
-
output,
|
|
1712
|
-
parsedBody,
|
|
1713
|
-
errorCode,
|
|
1714
|
-
});
|
|
1715
|
-
}
|
|
1716
|
-
};
|
|
1717
|
-
const de_StopSpeakerSearchTaskCommand = async (output, context) => {
|
|
1718
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1719
|
-
return de_StopSpeakerSearchTaskCommandError(output, context);
|
|
1720
|
-
}
|
|
1721
|
-
const contents = (0, smithy_client_1.map)({
|
|
1722
|
-
$metadata: deserializeMetadata(output),
|
|
1723
|
-
});
|
|
1724
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1725
|
-
return contents;
|
|
1726
|
-
};
|
|
1727
|
-
exports.de_StopSpeakerSearchTaskCommand = de_StopSpeakerSearchTaskCommand;
|
|
1728
|
-
const de_StopSpeakerSearchTaskCommandError = async (output, context) => {
|
|
1729
|
-
const parsedOutput = {
|
|
1730
|
-
...output,
|
|
1731
|
-
body: await parseErrorBody(output.body, context),
|
|
1732
|
-
};
|
|
1733
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1734
|
-
switch (errorCode) {
|
|
1735
|
-
case "BadRequestException":
|
|
1736
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1737
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1738
|
-
case "ConflictException":
|
|
1739
|
-
case "com.amazonaws.chimesdkmediapipelines#ConflictException":
|
|
1740
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1741
|
-
case "ForbiddenException":
|
|
1742
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1743
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1744
|
-
case "NotFoundException":
|
|
1745
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1746
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1747
|
-
case "ServiceFailureException":
|
|
1748
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1749
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1750
|
-
case "ServiceUnavailableException":
|
|
1751
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1752
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1753
|
-
case "ThrottledClientException":
|
|
1754
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1755
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1756
|
-
case "UnauthorizedClientException":
|
|
1757
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1758
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1759
|
-
default:
|
|
1760
|
-
const parsedBody = parsedOutput.body;
|
|
1761
|
-
return throwDefaultError({
|
|
1762
|
-
output,
|
|
1763
|
-
parsedBody,
|
|
1764
|
-
errorCode,
|
|
1765
|
-
});
|
|
1766
|
-
}
|
|
1767
|
-
};
|
|
1768
|
-
const de_StopVoiceToneAnalysisTaskCommand = async (output, context) => {
|
|
1769
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1770
|
-
return de_StopVoiceToneAnalysisTaskCommandError(output, context);
|
|
1771
|
-
}
|
|
1772
|
-
const contents = (0, smithy_client_1.map)({
|
|
1773
|
-
$metadata: deserializeMetadata(output),
|
|
1774
|
-
});
|
|
1775
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1776
|
-
return contents;
|
|
1777
|
-
};
|
|
1778
|
-
exports.de_StopVoiceToneAnalysisTaskCommand = de_StopVoiceToneAnalysisTaskCommand;
|
|
1779
|
-
const de_StopVoiceToneAnalysisTaskCommandError = async (output, context) => {
|
|
1780
|
-
const parsedOutput = {
|
|
1781
|
-
...output,
|
|
1782
|
-
body: await parseErrorBody(output.body, context),
|
|
1783
|
-
};
|
|
1784
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1785
|
-
switch (errorCode) {
|
|
1786
|
-
case "BadRequestException":
|
|
1787
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1788
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1789
|
-
case "ConflictException":
|
|
1790
|
-
case "com.amazonaws.chimesdkmediapipelines#ConflictException":
|
|
1791
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1792
|
-
case "ForbiddenException":
|
|
1793
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1794
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1795
|
-
case "NotFoundException":
|
|
1796
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1797
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1798
|
-
case "ServiceFailureException":
|
|
1799
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1800
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1801
|
-
case "ServiceUnavailableException":
|
|
1802
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1803
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1804
|
-
case "ThrottledClientException":
|
|
1805
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1806
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1807
|
-
case "UnauthorizedClientException":
|
|
1808
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1809
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1810
|
-
default:
|
|
1811
|
-
const parsedBody = parsedOutput.body;
|
|
1812
|
-
return throwDefaultError({
|
|
1813
|
-
output,
|
|
1814
|
-
parsedBody,
|
|
1815
|
-
errorCode,
|
|
1816
|
-
});
|
|
1817
|
-
}
|
|
1818
|
-
};
|
|
1819
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1820
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1821
|
-
return de_TagResourceCommandError(output, context);
|
|
1822
|
-
}
|
|
1823
|
-
const contents = (0, smithy_client_1.map)({
|
|
1824
|
-
$metadata: deserializeMetadata(output),
|
|
1825
|
-
});
|
|
1826
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1827
|
-
return contents;
|
|
1828
|
-
};
|
|
1829
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1830
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1831
|
-
const parsedOutput = {
|
|
1832
|
-
...output,
|
|
1833
|
-
body: await parseErrorBody(output.body, context),
|
|
1834
|
-
};
|
|
1835
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1836
|
-
switch (errorCode) {
|
|
1837
|
-
case "BadRequestException":
|
|
1838
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1839
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1840
|
-
case "ForbiddenException":
|
|
1841
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1842
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1843
|
-
case "NotFoundException":
|
|
1844
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1845
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1846
|
-
case "ServiceFailureException":
|
|
1847
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1848
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1849
|
-
case "ServiceUnavailableException":
|
|
1850
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1851
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1852
|
-
case "ThrottledClientException":
|
|
1853
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1854
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1855
|
-
case "UnauthorizedClientException":
|
|
1856
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1857
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1858
|
-
default:
|
|
1859
|
-
const parsedBody = parsedOutput.body;
|
|
1860
|
-
return throwDefaultError({
|
|
1861
|
-
output,
|
|
1862
|
-
parsedBody,
|
|
1863
|
-
errorCode,
|
|
1864
|
-
});
|
|
1865
|
-
}
|
|
1866
|
-
};
|
|
1867
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
1868
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1869
|
-
return de_UntagResourceCommandError(output, context);
|
|
1870
|
-
}
|
|
1871
|
-
const contents = (0, smithy_client_1.map)({
|
|
1872
|
-
$metadata: deserializeMetadata(output),
|
|
1873
|
-
});
|
|
1874
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1875
|
-
return contents;
|
|
1876
|
-
};
|
|
1877
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1878
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1879
|
-
const parsedOutput = {
|
|
1880
|
-
...output,
|
|
1881
|
-
body: await parseErrorBody(output.body, context),
|
|
1882
|
-
};
|
|
1883
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1884
|
-
switch (errorCode) {
|
|
1885
|
-
case "BadRequestException":
|
|
1886
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1887
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1888
|
-
case "ForbiddenException":
|
|
1889
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1890
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1891
|
-
case "NotFoundException":
|
|
1892
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1893
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1894
|
-
case "ServiceFailureException":
|
|
1895
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1896
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1897
|
-
case "ServiceUnavailableException":
|
|
1898
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1899
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1900
|
-
case "ThrottledClientException":
|
|
1901
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1902
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1903
|
-
case "UnauthorizedClientException":
|
|
1904
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1905
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1906
|
-
default:
|
|
1907
|
-
const parsedBody = parsedOutput.body;
|
|
1908
|
-
return throwDefaultError({
|
|
1909
|
-
output,
|
|
1910
|
-
parsedBody,
|
|
1911
|
-
errorCode,
|
|
1912
|
-
});
|
|
1913
|
-
}
|
|
1914
|
-
};
|
|
1915
|
-
const de_UpdateMediaInsightsPipelineConfigurationCommand = async (output, context) => {
|
|
1916
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1917
|
-
return de_UpdateMediaInsightsPipelineConfigurationCommandError(output, context);
|
|
1918
|
-
}
|
|
1919
|
-
const contents = (0, smithy_client_1.map)({
|
|
1920
|
-
$metadata: deserializeMetadata(output),
|
|
1921
|
-
});
|
|
1922
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1923
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1924
|
-
MediaInsightsPipelineConfiguration: (_) => de_MediaInsightsPipelineConfiguration(_, context),
|
|
1925
|
-
});
|
|
1926
|
-
Object.assign(contents, doc);
|
|
1927
|
-
return contents;
|
|
1928
|
-
};
|
|
1929
|
-
exports.de_UpdateMediaInsightsPipelineConfigurationCommand = de_UpdateMediaInsightsPipelineConfigurationCommand;
|
|
1930
|
-
const de_UpdateMediaInsightsPipelineConfigurationCommandError = async (output, context) => {
|
|
1931
|
-
const parsedOutput = {
|
|
1932
|
-
...output,
|
|
1933
|
-
body: await parseErrorBody(output.body, context),
|
|
1934
|
-
};
|
|
1935
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1936
|
-
switch (errorCode) {
|
|
1937
|
-
case "BadRequestException":
|
|
1938
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1939
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1940
|
-
case "ConflictException":
|
|
1941
|
-
case "com.amazonaws.chimesdkmediapipelines#ConflictException":
|
|
1942
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1943
|
-
case "ForbiddenException":
|
|
1944
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1945
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1946
|
-
case "NotFoundException":
|
|
1947
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1948
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1949
|
-
case "ServiceFailureException":
|
|
1950
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1951
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1952
|
-
case "ServiceUnavailableException":
|
|
1953
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1954
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1955
|
-
case "ThrottledClientException":
|
|
1956
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1957
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1958
|
-
case "UnauthorizedClientException":
|
|
1959
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1960
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1961
|
-
default:
|
|
1962
|
-
const parsedBody = parsedOutput.body;
|
|
1963
|
-
return throwDefaultError({
|
|
1964
|
-
output,
|
|
1965
|
-
parsedBody,
|
|
1966
|
-
errorCode,
|
|
1967
|
-
});
|
|
1968
|
-
}
|
|
1969
|
-
};
|
|
1970
|
-
const de_UpdateMediaInsightsPipelineStatusCommand = async (output, context) => {
|
|
1971
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1972
|
-
return de_UpdateMediaInsightsPipelineStatusCommandError(output, context);
|
|
1973
|
-
}
|
|
1974
|
-
const contents = (0, smithy_client_1.map)({
|
|
1975
|
-
$metadata: deserializeMetadata(output),
|
|
1976
|
-
});
|
|
1977
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1978
|
-
return contents;
|
|
1979
|
-
};
|
|
1980
|
-
exports.de_UpdateMediaInsightsPipelineStatusCommand = de_UpdateMediaInsightsPipelineStatusCommand;
|
|
1981
|
-
const de_UpdateMediaInsightsPipelineStatusCommandError = async (output, context) => {
|
|
1982
|
-
const parsedOutput = {
|
|
1983
|
-
...output,
|
|
1984
|
-
body: await parseErrorBody(output.body, context),
|
|
1985
|
-
};
|
|
1986
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1987
|
-
switch (errorCode) {
|
|
1988
|
-
case "BadRequestException":
|
|
1989
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1990
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1991
|
-
case "ConflictException":
|
|
1992
|
-
case "com.amazonaws.chimesdkmediapipelines#ConflictException":
|
|
1993
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1994
|
-
case "ForbiddenException":
|
|
1995
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1996
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1997
|
-
case "NotFoundException":
|
|
1998
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1999
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2000
|
-
case "ServiceFailureException":
|
|
2001
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
2002
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2003
|
-
case "ServiceUnavailableException":
|
|
2004
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
2005
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2006
|
-
case "ThrottledClientException":
|
|
2007
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
2008
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2009
|
-
case "UnauthorizedClientException":
|
|
2010
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
2011
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2012
|
-
default:
|
|
2013
|
-
const parsedBody = parsedOutput.body;
|
|
2014
|
-
return throwDefaultError({
|
|
2015
|
-
output,
|
|
2016
|
-
parsedBody,
|
|
2017
|
-
errorCode,
|
|
2018
|
-
});
|
|
2019
|
-
}
|
|
2020
|
-
};
|
|
2021
|
-
const de_UpdateMediaPipelineKinesisVideoStreamPoolCommand = async (output, context) => {
|
|
2022
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2023
|
-
return de_UpdateMediaPipelineKinesisVideoStreamPoolCommandError(output, context);
|
|
2024
|
-
}
|
|
2025
|
-
const contents = (0, smithy_client_1.map)({
|
|
2026
|
-
$metadata: deserializeMetadata(output),
|
|
2027
|
-
});
|
|
2028
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2029
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2030
|
-
KinesisVideoStreamPoolConfiguration: (_) => de_KinesisVideoStreamPoolConfiguration(_, context),
|
|
2031
|
-
});
|
|
2032
|
-
Object.assign(contents, doc);
|
|
2033
|
-
return contents;
|
|
2034
|
-
};
|
|
2035
|
-
exports.de_UpdateMediaPipelineKinesisVideoStreamPoolCommand = de_UpdateMediaPipelineKinesisVideoStreamPoolCommand;
|
|
2036
|
-
const de_UpdateMediaPipelineKinesisVideoStreamPoolCommandError = async (output, context) => {
|
|
2037
|
-
const parsedOutput = {
|
|
2038
|
-
...output,
|
|
2039
|
-
body: await parseErrorBody(output.body, context),
|
|
2040
|
-
};
|
|
2041
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2042
|
-
switch (errorCode) {
|
|
2043
|
-
case "BadRequestException":
|
|
2044
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
2045
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2046
|
-
case "ConflictException":
|
|
2047
|
-
case "com.amazonaws.chimesdkmediapipelines#ConflictException":
|
|
2048
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2049
|
-
case "ForbiddenException":
|
|
2050
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
2051
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2052
|
-
case "NotFoundException":
|
|
2053
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
2054
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2055
|
-
case "ServiceFailureException":
|
|
2056
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
2057
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2058
|
-
case "ServiceUnavailableException":
|
|
2059
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
2060
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2061
|
-
case "ThrottledClientException":
|
|
2062
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
2063
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2064
|
-
case "UnauthorizedClientException":
|
|
2065
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
2066
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2067
|
-
default:
|
|
2068
|
-
const parsedBody = parsedOutput.body;
|
|
2069
|
-
return throwDefaultError({
|
|
2070
|
-
output,
|
|
2071
|
-
parsedBody,
|
|
2072
|
-
errorCode,
|
|
2073
|
-
});
|
|
2074
|
-
}
|
|
2075
|
-
};
|
|
2076
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(ChimeSDKMediaPipelinesServiceException_1.ChimeSDKMediaPipelinesServiceException);
|
|
2077
|
-
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
2078
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2079
|
-
const data = parsedOutput.body;
|
|
2080
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2081
|
-
Code: smithy_client_1.expectString,
|
|
2082
|
-
Message: smithy_client_1.expectString,
|
|
2083
|
-
RequestId: smithy_client_1.expectString,
|
|
2084
|
-
});
|
|
2085
|
-
Object.assign(contents, doc);
|
|
2086
|
-
const exception = new models_0_1.BadRequestException({
|
|
2087
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2088
|
-
...contents,
|
|
2089
|
-
});
|
|
2090
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2091
|
-
};
|
|
2092
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2093
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2094
|
-
const data = parsedOutput.body;
|
|
2095
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2096
|
-
Code: smithy_client_1.expectString,
|
|
2097
|
-
Message: smithy_client_1.expectString,
|
|
2098
|
-
RequestId: smithy_client_1.expectString,
|
|
2099
|
-
});
|
|
2100
|
-
Object.assign(contents, doc);
|
|
2101
|
-
const exception = new models_0_1.ConflictException({
|
|
2102
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2103
|
-
...contents,
|
|
2104
|
-
});
|
|
2105
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2106
|
-
};
|
|
2107
|
-
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
2108
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2109
|
-
const data = parsedOutput.body;
|
|
2110
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2111
|
-
Code: smithy_client_1.expectString,
|
|
2112
|
-
Message: smithy_client_1.expectString,
|
|
2113
|
-
RequestId: smithy_client_1.expectString,
|
|
2114
|
-
});
|
|
2115
|
-
Object.assign(contents, doc);
|
|
2116
|
-
const exception = new models_0_1.ForbiddenException({
|
|
2117
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2118
|
-
...contents,
|
|
2119
|
-
});
|
|
2120
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2121
|
-
};
|
|
2122
|
-
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2123
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2124
|
-
const data = parsedOutput.body;
|
|
2125
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2126
|
-
Code: smithy_client_1.expectString,
|
|
2127
|
-
Message: smithy_client_1.expectString,
|
|
2128
|
-
RequestId: smithy_client_1.expectString,
|
|
2129
|
-
});
|
|
2130
|
-
Object.assign(contents, doc);
|
|
2131
|
-
const exception = new models_0_1.NotFoundException({
|
|
2132
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2133
|
-
...contents,
|
|
2134
|
-
});
|
|
2135
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2136
|
-
};
|
|
2137
|
-
const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2138
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2139
|
-
const data = parsedOutput.body;
|
|
2140
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2141
|
-
Code: smithy_client_1.expectString,
|
|
2142
|
-
Message: smithy_client_1.expectString,
|
|
2143
|
-
RequestId: smithy_client_1.expectString,
|
|
2144
|
-
});
|
|
2145
|
-
Object.assign(contents, doc);
|
|
2146
|
-
const exception = new models_0_1.ResourceLimitExceededException({
|
|
2147
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2148
|
-
...contents,
|
|
2149
|
-
});
|
|
2150
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2151
|
-
};
|
|
2152
|
-
const de_ServiceFailureExceptionRes = async (parsedOutput, context) => {
|
|
2153
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2154
|
-
const data = parsedOutput.body;
|
|
2155
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2156
|
-
Code: smithy_client_1.expectString,
|
|
2157
|
-
Message: smithy_client_1.expectString,
|
|
2158
|
-
RequestId: smithy_client_1.expectString,
|
|
2159
|
-
});
|
|
2160
|
-
Object.assign(contents, doc);
|
|
2161
|
-
const exception = new models_0_1.ServiceFailureException({
|
|
2162
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2163
|
-
...contents,
|
|
2164
|
-
});
|
|
2165
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2166
|
-
};
|
|
2167
|
-
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
2168
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2169
|
-
const data = parsedOutput.body;
|
|
2170
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2171
|
-
Code: smithy_client_1.expectString,
|
|
2172
|
-
Message: smithy_client_1.expectString,
|
|
2173
|
-
RequestId: smithy_client_1.expectString,
|
|
2174
|
-
});
|
|
2175
|
-
Object.assign(contents, doc);
|
|
2176
|
-
const exception = new models_0_1.ServiceUnavailableException({
|
|
2177
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2178
|
-
...contents,
|
|
2179
|
-
});
|
|
2180
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2181
|
-
};
|
|
2182
|
-
const de_ThrottledClientExceptionRes = async (parsedOutput, context) => {
|
|
2183
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2184
|
-
const data = parsedOutput.body;
|
|
2185
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2186
|
-
Code: smithy_client_1.expectString,
|
|
2187
|
-
Message: smithy_client_1.expectString,
|
|
2188
|
-
RequestId: smithy_client_1.expectString,
|
|
2189
|
-
});
|
|
2190
|
-
Object.assign(contents, doc);
|
|
2191
|
-
const exception = new models_0_1.ThrottledClientException({
|
|
2192
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2193
|
-
...contents,
|
|
2194
|
-
});
|
|
2195
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2196
|
-
};
|
|
2197
|
-
const de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => {
|
|
2198
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2199
|
-
const data = parsedOutput.body;
|
|
2200
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2201
|
-
Code: smithy_client_1.expectString,
|
|
2202
|
-
Message: smithy_client_1.expectString,
|
|
2203
|
-
RequestId: smithy_client_1.expectString,
|
|
2204
|
-
});
|
|
2205
|
-
Object.assign(contents, doc);
|
|
2206
|
-
const exception = new models_0_1.UnauthorizedClientException({
|
|
2207
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2208
|
-
...contents,
|
|
2209
|
-
});
|
|
2210
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2211
|
-
};
|
|
2212
|
-
const se_FragmentSelector = (input, context) => {
|
|
2213
|
-
return (0, smithy_client_1.take)(input, {
|
|
2214
|
-
FragmentSelectorType: [],
|
|
2215
|
-
TimestampRange: (_) => se_TimestampRange(_, context),
|
|
2216
|
-
});
|
|
2217
|
-
};
|
|
2218
|
-
const se_KinesisVideoStreamRecordingSourceRuntimeConfiguration = (input, context) => {
|
|
2219
|
-
return (0, smithy_client_1.take)(input, {
|
|
2220
|
-
FragmentSelector: (_) => se_FragmentSelector(_, context),
|
|
2221
|
-
Streams: smithy_client_1._json,
|
|
2222
|
-
});
|
|
2223
|
-
};
|
|
2224
|
-
const se_TimestampRange = (input, context) => {
|
|
2225
|
-
return (0, smithy_client_1.take)(input, {
|
|
2226
|
-
EndTimestamp: (_) => Math.round(_.getTime() / 1000),
|
|
2227
|
-
StartTimestamp: (_) => Math.round(_.getTime() / 1000),
|
|
2228
|
-
});
|
|
2229
|
-
};
|
|
2230
|
-
const de_FragmentSelector = (output, context) => {
|
|
2231
|
-
return (0, smithy_client_1.take)(output, {
|
|
2232
|
-
FragmentSelectorType: smithy_client_1.expectString,
|
|
2233
|
-
TimestampRange: (_) => de_TimestampRange(_, context),
|
|
2234
|
-
});
|
|
2235
|
-
};
|
|
2236
|
-
const de_KinesisVideoStreamPoolConfiguration = (output, context) => {
|
|
2237
|
-
return (0, smithy_client_1.take)(output, {
|
|
2238
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2239
|
-
PoolArn: smithy_client_1.expectString,
|
|
2240
|
-
PoolId: smithy_client_1.expectString,
|
|
2241
|
-
PoolName: smithy_client_1.expectString,
|
|
2242
|
-
PoolSize: smithy_client_1.expectInt32,
|
|
2243
|
-
PoolStatus: smithy_client_1.expectString,
|
|
2244
|
-
StreamConfiguration: smithy_client_1._json,
|
|
2245
|
-
UpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2246
|
-
});
|
|
2247
|
-
};
|
|
2248
|
-
const de_KinesisVideoStreamRecordingSourceRuntimeConfiguration = (output, context) => {
|
|
2249
|
-
return (0, smithy_client_1.take)(output, {
|
|
2250
|
-
FragmentSelector: (_) => de_FragmentSelector(_, context),
|
|
2251
|
-
Streams: smithy_client_1._json,
|
|
2252
|
-
});
|
|
2253
|
-
};
|
|
2254
|
-
const de_MediaCapturePipeline = (output, context) => {
|
|
2255
|
-
return (0, smithy_client_1.take)(output, {
|
|
2256
|
-
ChimeSdkMeetingConfiguration: smithy_client_1._json,
|
|
2257
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2258
|
-
MediaPipelineArn: smithy_client_1.expectString,
|
|
2259
|
-
MediaPipelineId: smithy_client_1.expectString,
|
|
2260
|
-
SinkArn: smithy_client_1.expectString,
|
|
2261
|
-
SinkType: smithy_client_1.expectString,
|
|
2262
|
-
SourceArn: smithy_client_1.expectString,
|
|
2263
|
-
SourceType: smithy_client_1.expectString,
|
|
2264
|
-
Status: smithy_client_1.expectString,
|
|
2265
|
-
UpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2266
|
-
});
|
|
2267
|
-
};
|
|
2268
|
-
const de_MediaConcatenationPipeline = (output, context) => {
|
|
2269
|
-
return (0, smithy_client_1.take)(output, {
|
|
2270
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2271
|
-
MediaPipelineArn: smithy_client_1.expectString,
|
|
2272
|
-
MediaPipelineId: smithy_client_1.expectString,
|
|
2273
|
-
Sinks: smithy_client_1._json,
|
|
2274
|
-
Sources: smithy_client_1._json,
|
|
2275
|
-
Status: smithy_client_1.expectString,
|
|
2276
|
-
UpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2277
|
-
});
|
|
2278
|
-
};
|
|
2279
|
-
const de_MediaInsightsPipeline = (output, context) => {
|
|
2280
|
-
return (0, smithy_client_1.take)(output, {
|
|
2281
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2282
|
-
ElementStatuses: smithy_client_1._json,
|
|
2283
|
-
KinesisVideoStreamRecordingSourceRuntimeConfiguration: (_) => de_KinesisVideoStreamRecordingSourceRuntimeConfiguration(_, context),
|
|
2284
|
-
KinesisVideoStreamSourceRuntimeConfiguration: smithy_client_1._json,
|
|
2285
|
-
MediaInsightsPipelineConfigurationArn: smithy_client_1.expectString,
|
|
2286
|
-
MediaInsightsRuntimeMetadata: smithy_client_1._json,
|
|
2287
|
-
MediaPipelineArn: smithy_client_1.expectString,
|
|
2288
|
-
MediaPipelineId: smithy_client_1.expectString,
|
|
2289
|
-
S3RecordingSinkRuntimeConfiguration: smithy_client_1._json,
|
|
2290
|
-
Status: smithy_client_1.expectString,
|
|
2291
|
-
});
|
|
2292
|
-
};
|
|
2293
|
-
const de_MediaInsightsPipelineConfiguration = (output, context) => {
|
|
2294
|
-
return (0, smithy_client_1.take)(output, {
|
|
2295
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2296
|
-
Elements: smithy_client_1._json,
|
|
2297
|
-
MediaInsightsPipelineConfigurationArn: smithy_client_1.expectString,
|
|
2298
|
-
MediaInsightsPipelineConfigurationId: smithy_client_1.expectString,
|
|
2299
|
-
MediaInsightsPipelineConfigurationName: smithy_client_1.expectString,
|
|
2300
|
-
RealTimeAlertConfiguration: smithy_client_1._json,
|
|
2301
|
-
ResourceAccessRoleArn: smithy_client_1.expectString,
|
|
2302
|
-
UpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2303
|
-
});
|
|
2304
|
-
};
|
|
2305
|
-
const de_MediaLiveConnectorPipeline = (output, context) => {
|
|
2306
|
-
return (0, smithy_client_1.take)(output, {
|
|
2307
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2308
|
-
MediaPipelineArn: smithy_client_1.expectString,
|
|
2309
|
-
MediaPipelineId: smithy_client_1.expectString,
|
|
2310
|
-
Sinks: smithy_client_1._json,
|
|
2311
|
-
Sources: smithy_client_1._json,
|
|
2312
|
-
Status: smithy_client_1.expectString,
|
|
2313
|
-
UpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2314
|
-
});
|
|
2315
|
-
};
|
|
2316
|
-
const de_MediaPipeline = (output, context) => {
|
|
2317
|
-
return (0, smithy_client_1.take)(output, {
|
|
2318
|
-
MediaCapturePipeline: (_) => de_MediaCapturePipeline(_, context),
|
|
2319
|
-
MediaConcatenationPipeline: (_) => de_MediaConcatenationPipeline(_, context),
|
|
2320
|
-
MediaInsightsPipeline: (_) => de_MediaInsightsPipeline(_, context),
|
|
2321
|
-
MediaLiveConnectorPipeline: (_) => de_MediaLiveConnectorPipeline(_, context),
|
|
2322
|
-
MediaStreamPipeline: (_) => de_MediaStreamPipeline(_, context),
|
|
2323
|
-
});
|
|
2324
|
-
};
|
|
2325
|
-
const de_MediaStreamPipeline = (output, context) => {
|
|
2326
|
-
return (0, smithy_client_1.take)(output, {
|
|
2327
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2328
|
-
MediaPipelineArn: smithy_client_1.expectString,
|
|
2329
|
-
MediaPipelineId: smithy_client_1.expectString,
|
|
2330
|
-
Sinks: smithy_client_1._json,
|
|
2331
|
-
Sources: smithy_client_1._json,
|
|
2332
|
-
Status: smithy_client_1.expectString,
|
|
2333
|
-
UpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2334
|
-
});
|
|
2335
|
-
};
|
|
2336
|
-
const de_SpeakerSearchTask = (output, context) => {
|
|
2337
|
-
return (0, smithy_client_1.take)(output, {
|
|
2338
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2339
|
-
SpeakerSearchTaskId: smithy_client_1.expectString,
|
|
2340
|
-
SpeakerSearchTaskStatus: smithy_client_1.expectString,
|
|
2341
|
-
UpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2342
|
-
});
|
|
2343
|
-
};
|
|
2344
|
-
const de_TimestampRange = (output, context) => {
|
|
2345
|
-
return (0, smithy_client_1.take)(output, {
|
|
2346
|
-
EndTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2347
|
-
StartTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2348
|
-
});
|
|
2349
|
-
};
|
|
2350
|
-
const de_VoiceToneAnalysisTask = (output, context) => {
|
|
2351
|
-
return (0, smithy_client_1.take)(output, {
|
|
2352
|
-
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2353
|
-
UpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2354
|
-
VoiceToneAnalysisTaskId: smithy_client_1.expectString,
|
|
2355
|
-
VoiceToneAnalysisTaskStatus: smithy_client_1.expectString,
|
|
2356
|
-
});
|
|
2357
|
-
};
|
|
2358
|
-
const deserializeMetadata = (output) => ({
|
|
2359
|
-
httpStatusCode: output.statusCode,
|
|
2360
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2361
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2362
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
2363
|
-
});
|
|
2364
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2365
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
2366
|
-
value !== null &&
|
|
2367
|
-
value !== "" &&
|
|
2368
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2369
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2370
|
-
const _MR = "MaxResults";
|
|
2371
|
-
const _NT = "NextToken";
|
|
2372
|
-
const _RARN = "ResourceARN";
|
|
2373
|
-
const _a = "arn";
|
|
2374
|
-
const _mr = "max-results";
|
|
2375
|
-
const _nt = "next-token";
|
|
2376
|
-
const _o = "operation";
|
|
2377
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2378
|
-
if (encoded.length) {
|
|
2379
|
-
return JSON.parse(encoded);
|
|
2380
|
-
}
|
|
2381
|
-
return {};
|
|
2382
|
-
});
|
|
2383
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2384
|
-
const value = await parseBody(errorBody, context);
|
|
2385
|
-
value.message = value.message ?? value.Message;
|
|
2386
|
-
return value;
|
|
2387
|
-
};
|
|
2388
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
2389
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2390
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
2391
|
-
let cleanValue = rawValue;
|
|
2392
|
-
if (typeof cleanValue === "number") {
|
|
2393
|
-
cleanValue = cleanValue.toString();
|
|
2394
|
-
}
|
|
2395
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2396
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2397
|
-
}
|
|
2398
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2399
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2400
|
-
}
|
|
2401
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2402
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2403
|
-
}
|
|
2404
|
-
return cleanValue;
|
|
2405
|
-
};
|
|
2406
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2407
|
-
if (headerKey !== undefined) {
|
|
2408
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2409
|
-
}
|
|
2410
|
-
if (data.code !== undefined) {
|
|
2411
|
-
return sanitizeErrorCode(data.code);
|
|
2412
|
-
}
|
|
2413
|
-
if (data["__type"] !== undefined) {
|
|
2414
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2415
|
-
}
|
|
2416
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|