@aws-sdk/client-chime-sdk-media-pipelines 3.404.0 → 3.408.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -0
- package/dist-cjs/ChimeSDKMediaPipelines.js +12 -0
- package/dist-cjs/commands/GetSpeakerSearchTaskCommand.js +46 -0
- package/dist-cjs/commands/GetVoiceToneAnalysisTaskCommand.js +46 -0
- package/dist-cjs/commands/StartSpeakerSearchTaskCommand.js +47 -0
- package/dist-cjs/commands/StartVoiceToneAnalysisTaskCommand.js +47 -0
- package/dist-cjs/commands/StopSpeakerSearchTaskCommand.js +46 -0
- package/dist-cjs/commands/StopVoiceToneAnalysisTaskCommand.js +46 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/models/models_0.js +23 -1
- package/dist-cjs/protocols/Aws_restJson1.js +478 -1
- package/dist-es/ChimeSDKMediaPipelines.js +12 -0
- package/dist-es/commands/GetSpeakerSearchTaskCommand.js +42 -0
- package/dist-es/commands/GetVoiceToneAnalysisTaskCommand.js +42 -0
- package/dist-es/commands/StartSpeakerSearchTaskCommand.js +43 -0
- package/dist-es/commands/StartVoiceToneAnalysisTaskCommand.js +43 -0
- package/dist-es/commands/StopSpeakerSearchTaskCommand.js +42 -0
- package/dist-es/commands/StopVoiceToneAnalysisTaskCommand.js +42 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/models/models_0.js +20 -0
- package/dist-es/protocols/Aws_restJson1.js +465 -0
- package/dist-types/ChimeSDKMediaPipelines.d.ts +42 -0
- package/dist-types/ChimeSDKMediaPipelinesClient.d.ts +8 -2
- package/dist-types/commands/DeleteMediaPipelineCommand.d.ts +4 -0
- package/dist-types/commands/GetSpeakerSearchTaskCommand.d.ts +100 -0
- package/dist-types/commands/GetVoiceToneAnalysisTaskCommand.d.ts +100 -0
- package/dist-types/commands/StartSpeakerSearchTaskCommand.d.ts +114 -0
- package/dist-types/commands/StartVoiceToneAnalysisTaskCommand.d.ts +116 -0
- package/dist-types/commands/StopSpeakerSearchTaskCommand.d.ts +97 -0
- package/dist-types/commands/StopVoiceToneAnalysisTaskCommand.d.ts +97 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +263 -2
- package/dist-types/protocols/Aws_restJson1.d.ts +54 -0
- package/dist-types/ts3.4/ChimeSDKMediaPipelines.d.ts +102 -0
- package/dist-types/ts3.4/ChimeSDKMediaPipelinesClient.d.ts +36 -0
- package/dist-types/ts3.4/commands/GetSpeakerSearchTaskCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetVoiceToneAnalysisTaskCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartSpeakerSearchTaskCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartVoiceToneAnalysisTaskCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StopSpeakerSearchTaskCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/StopVoiceToneAnalysisTaskCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +78 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -0
- package/package.json +15 -15
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateMediaInsightsPipelineStatusCommand = exports.de_UpdateMediaInsightsPipelineConfigurationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListMediaPipelinesCommand = exports.de_ListMediaInsightsPipelineConfigurationsCommand = exports.de_ListMediaCapturePipelinesCommand = exports.de_GetMediaPipelineCommand = exports.de_GetMediaInsightsPipelineConfigurationCommand = exports.de_GetMediaCapturePipelineCommand = exports.de_DeleteMediaPipelineCommand = exports.de_DeleteMediaInsightsPipelineConfigurationCommand = exports.de_DeleteMediaCapturePipelineCommand = exports.de_CreateMediaLiveConnectorPipelineCommand = exports.de_CreateMediaInsightsPipelineConfigurationCommand = exports.de_CreateMediaInsightsPipelineCommand = exports.de_CreateMediaConcatenationPipelineCommand = exports.de_CreateMediaCapturePipelineCommand = exports.se_UpdateMediaInsightsPipelineStatusCommand = exports.se_UpdateMediaInsightsPipelineConfigurationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListMediaPipelinesCommand = exports.se_ListMediaInsightsPipelineConfigurationsCommand = exports.se_ListMediaCapturePipelinesCommand = exports.se_GetMediaPipelineCommand = exports.se_GetMediaInsightsPipelineConfigurationCommand = exports.se_GetMediaCapturePipelineCommand = exports.se_DeleteMediaPipelineCommand = exports.se_DeleteMediaInsightsPipelineConfigurationCommand = exports.se_DeleteMediaCapturePipelineCommand = exports.se_CreateMediaLiveConnectorPipelineCommand = exports.se_CreateMediaInsightsPipelineConfigurationCommand = exports.se_CreateMediaInsightsPipelineCommand = exports.se_CreateMediaConcatenationPipelineCommand = exports.se_CreateMediaCapturePipelineCommand = void 0;
|
|
3
|
+
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_ListMediaInsightsPipelineConfigurationsCommand = exports.de_ListMediaCapturePipelinesCommand = exports.de_GetVoiceToneAnalysisTaskCommand = exports.de_GetSpeakerSearchTaskCommand = exports.de_GetMediaPipelineCommand = exports.de_GetMediaInsightsPipelineConfigurationCommand = exports.de_GetMediaCapturePipelineCommand = exports.de_DeleteMediaPipelineCommand = exports.de_DeleteMediaInsightsPipelineConfigurationCommand = exports.de_DeleteMediaCapturePipelineCommand = exports.de_CreateMediaLiveConnectorPipelineCommand = exports.de_CreateMediaInsightsPipelineConfigurationCommand = exports.de_CreateMediaInsightsPipelineCommand = exports.de_CreateMediaConcatenationPipelineCommand = exports.de_CreateMediaCapturePipelineCommand = 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_ListMediaInsightsPipelineConfigurationsCommand = exports.se_ListMediaCapturePipelinesCommand = exports.se_GetVoiceToneAnalysisTaskCommand = exports.se_GetSpeakerSearchTaskCommand = exports.se_GetMediaPipelineCommand = exports.se_GetMediaInsightsPipelineConfigurationCommand = exports.se_GetMediaCapturePipelineCommand = exports.se_DeleteMediaPipelineCommand = exports.se_DeleteMediaInsightsPipelineConfigurationCommand = exports.se_DeleteMediaCapturePipelineCommand = exports.se_CreateMediaLiveConnectorPipelineCommand = exports.se_CreateMediaInsightsPipelineConfigurationCommand = exports.se_CreateMediaInsightsPipelineCommand = exports.se_CreateMediaConcatenationPipelineCommand = exports.se_CreateMediaCapturePipelineCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
@@ -240,6 +240,44 @@ const se_GetMediaPipelineCommand = async (input, context) => {
|
|
|
240
240
|
});
|
|
241
241
|
};
|
|
242
242
|
exports.se_GetMediaPipelineCommand = se_GetMediaPipelineCommand;
|
|
243
|
+
const se_GetSpeakerSearchTaskCommand = async (input, context) => {
|
|
244
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
245
|
+
const headers = {};
|
|
246
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
247
|
+
"/media-insights-pipelines/{Identifier}/speaker-search-tasks/{SpeakerSearchTaskId}";
|
|
248
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
|
|
249
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SpeakerSearchTaskId", () => input.SpeakerSearchTaskId, "{SpeakerSearchTaskId}", false);
|
|
250
|
+
let body;
|
|
251
|
+
return new protocol_http_1.HttpRequest({
|
|
252
|
+
protocol,
|
|
253
|
+
hostname,
|
|
254
|
+
port,
|
|
255
|
+
method: "GET",
|
|
256
|
+
headers,
|
|
257
|
+
path: resolvedPath,
|
|
258
|
+
body,
|
|
259
|
+
});
|
|
260
|
+
};
|
|
261
|
+
exports.se_GetSpeakerSearchTaskCommand = se_GetSpeakerSearchTaskCommand;
|
|
262
|
+
const se_GetVoiceToneAnalysisTaskCommand = async (input, context) => {
|
|
263
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
264
|
+
const headers = {};
|
|
265
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
266
|
+
"/media-insights-pipelines/{Identifier}/voice-tone-analysis-tasks/{VoiceToneAnalysisTaskId}";
|
|
267
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
|
|
268
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceToneAnalysisTaskId", () => input.VoiceToneAnalysisTaskId, "{VoiceToneAnalysisTaskId}", false);
|
|
269
|
+
let body;
|
|
270
|
+
return new protocol_http_1.HttpRequest({
|
|
271
|
+
protocol,
|
|
272
|
+
hostname,
|
|
273
|
+
port,
|
|
274
|
+
method: "GET",
|
|
275
|
+
headers,
|
|
276
|
+
path: resolvedPath,
|
|
277
|
+
body,
|
|
278
|
+
});
|
|
279
|
+
};
|
|
280
|
+
exports.se_GetVoiceToneAnalysisTaskCommand = se_GetVoiceToneAnalysisTaskCommand;
|
|
243
281
|
const se_ListMediaCapturePipelinesCommand = async (input, context) => {
|
|
244
282
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
245
283
|
const headers = {};
|
|
@@ -323,6 +361,110 @@ const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
323
361
|
});
|
|
324
362
|
};
|
|
325
363
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
364
|
+
const se_StartSpeakerSearchTaskCommand = async (input, context) => {
|
|
365
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
366
|
+
const headers = {
|
|
367
|
+
"content-type": "application/json",
|
|
368
|
+
};
|
|
369
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
370
|
+
"/media-insights-pipelines/{Identifier}/speaker-search-tasks";
|
|
371
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
|
|
372
|
+
const query = (0, smithy_client_1.map)({
|
|
373
|
+
operation: [, "start"],
|
|
374
|
+
});
|
|
375
|
+
let body;
|
|
376
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
377
|
+
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
378
|
+
KinesisVideoStreamSourceTaskConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
379
|
+
VoiceProfileDomainArn: [],
|
|
380
|
+
}));
|
|
381
|
+
return new protocol_http_1.HttpRequest({
|
|
382
|
+
protocol,
|
|
383
|
+
hostname,
|
|
384
|
+
port,
|
|
385
|
+
method: "POST",
|
|
386
|
+
headers,
|
|
387
|
+
path: resolvedPath,
|
|
388
|
+
query,
|
|
389
|
+
body,
|
|
390
|
+
});
|
|
391
|
+
};
|
|
392
|
+
exports.se_StartSpeakerSearchTaskCommand = se_StartSpeakerSearchTaskCommand;
|
|
393
|
+
const se_StartVoiceToneAnalysisTaskCommand = async (input, context) => {
|
|
394
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
395
|
+
const headers = {
|
|
396
|
+
"content-type": "application/json",
|
|
397
|
+
};
|
|
398
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
399
|
+
"/media-insights-pipelines/{Identifier}/voice-tone-analysis-tasks";
|
|
400
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
|
|
401
|
+
const query = (0, smithy_client_1.map)({
|
|
402
|
+
operation: [, "start"],
|
|
403
|
+
});
|
|
404
|
+
let body;
|
|
405
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
406
|
+
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
407
|
+
KinesisVideoStreamSourceTaskConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
408
|
+
LanguageCode: [],
|
|
409
|
+
}));
|
|
410
|
+
return new protocol_http_1.HttpRequest({
|
|
411
|
+
protocol,
|
|
412
|
+
hostname,
|
|
413
|
+
port,
|
|
414
|
+
method: "POST",
|
|
415
|
+
headers,
|
|
416
|
+
path: resolvedPath,
|
|
417
|
+
query,
|
|
418
|
+
body,
|
|
419
|
+
});
|
|
420
|
+
};
|
|
421
|
+
exports.se_StartVoiceToneAnalysisTaskCommand = se_StartVoiceToneAnalysisTaskCommand;
|
|
422
|
+
const se_StopSpeakerSearchTaskCommand = async (input, context) => {
|
|
423
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
424
|
+
const headers = {};
|
|
425
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
426
|
+
"/media-insights-pipelines/{Identifier}/speaker-search-tasks/{SpeakerSearchTaskId}";
|
|
427
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
|
|
428
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SpeakerSearchTaskId", () => input.SpeakerSearchTaskId, "{SpeakerSearchTaskId}", false);
|
|
429
|
+
const query = (0, smithy_client_1.map)({
|
|
430
|
+
operation: [, "stop"],
|
|
431
|
+
});
|
|
432
|
+
let body;
|
|
433
|
+
return new protocol_http_1.HttpRequest({
|
|
434
|
+
protocol,
|
|
435
|
+
hostname,
|
|
436
|
+
port,
|
|
437
|
+
method: "POST",
|
|
438
|
+
headers,
|
|
439
|
+
path: resolvedPath,
|
|
440
|
+
query,
|
|
441
|
+
body,
|
|
442
|
+
});
|
|
443
|
+
};
|
|
444
|
+
exports.se_StopSpeakerSearchTaskCommand = se_StopSpeakerSearchTaskCommand;
|
|
445
|
+
const se_StopVoiceToneAnalysisTaskCommand = async (input, context) => {
|
|
446
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
447
|
+
const headers = {};
|
|
448
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
449
|
+
"/media-insights-pipelines/{Identifier}/voice-tone-analysis-tasks/{VoiceToneAnalysisTaskId}";
|
|
450
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
|
|
451
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceToneAnalysisTaskId", () => input.VoiceToneAnalysisTaskId, "{VoiceToneAnalysisTaskId}", false);
|
|
452
|
+
const query = (0, smithy_client_1.map)({
|
|
453
|
+
operation: [, "stop"],
|
|
454
|
+
});
|
|
455
|
+
let body;
|
|
456
|
+
return new protocol_http_1.HttpRequest({
|
|
457
|
+
protocol,
|
|
458
|
+
hostname,
|
|
459
|
+
port,
|
|
460
|
+
method: "POST",
|
|
461
|
+
headers,
|
|
462
|
+
path: resolvedPath,
|
|
463
|
+
query,
|
|
464
|
+
body,
|
|
465
|
+
});
|
|
466
|
+
};
|
|
467
|
+
exports.se_StopVoiceToneAnalysisTaskCommand = se_StopVoiceToneAnalysisTaskCommand;
|
|
326
468
|
const se_TagResourceCommand = async (input, context) => {
|
|
327
469
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
328
470
|
const headers = {
|
|
@@ -809,6 +951,9 @@ const de_DeleteMediaPipelineCommandError = async (output, context) => {
|
|
|
809
951
|
case "BadRequestException":
|
|
810
952
|
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
811
953
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
954
|
+
case "ConflictException":
|
|
955
|
+
case "com.amazonaws.chimesdkmediapipelines#ConflictException":
|
|
956
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
812
957
|
case "ForbiddenException":
|
|
813
958
|
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
814
959
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
@@ -992,6 +1137,110 @@ const de_GetMediaPipelineCommandError = async (output, context) => {
|
|
|
992
1137
|
});
|
|
993
1138
|
}
|
|
994
1139
|
};
|
|
1140
|
+
const de_GetSpeakerSearchTaskCommand = async (output, context) => {
|
|
1141
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1142
|
+
return de_GetSpeakerSearchTaskCommandError(output, context);
|
|
1143
|
+
}
|
|
1144
|
+
const contents = (0, smithy_client_1.map)({
|
|
1145
|
+
$metadata: deserializeMetadata(output),
|
|
1146
|
+
});
|
|
1147
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1148
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1149
|
+
SpeakerSearchTask: (_) => de_SpeakerSearchTask(_, context),
|
|
1150
|
+
});
|
|
1151
|
+
Object.assign(contents, doc);
|
|
1152
|
+
return contents;
|
|
1153
|
+
};
|
|
1154
|
+
exports.de_GetSpeakerSearchTaskCommand = de_GetSpeakerSearchTaskCommand;
|
|
1155
|
+
const de_GetSpeakerSearchTaskCommandError = async (output, context) => {
|
|
1156
|
+
const parsedOutput = {
|
|
1157
|
+
...output,
|
|
1158
|
+
body: await parseErrorBody(output.body, context),
|
|
1159
|
+
};
|
|
1160
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1161
|
+
switch (errorCode) {
|
|
1162
|
+
case "BadRequestException":
|
|
1163
|
+
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1164
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1165
|
+
case "ForbiddenException":
|
|
1166
|
+
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1167
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1168
|
+
case "NotFoundException":
|
|
1169
|
+
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1170
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1171
|
+
case "ServiceFailureException":
|
|
1172
|
+
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1173
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1174
|
+
case "ServiceUnavailableException":
|
|
1175
|
+
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1176
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1177
|
+
case "ThrottledClientException":
|
|
1178
|
+
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1179
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1180
|
+
case "UnauthorizedClientException":
|
|
1181
|
+
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1182
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1183
|
+
default:
|
|
1184
|
+
const parsedBody = parsedOutput.body;
|
|
1185
|
+
return throwDefaultError({
|
|
1186
|
+
output,
|
|
1187
|
+
parsedBody,
|
|
1188
|
+
errorCode,
|
|
1189
|
+
});
|
|
1190
|
+
}
|
|
1191
|
+
};
|
|
1192
|
+
const de_GetVoiceToneAnalysisTaskCommand = async (output, context) => {
|
|
1193
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1194
|
+
return de_GetVoiceToneAnalysisTaskCommandError(output, context);
|
|
1195
|
+
}
|
|
1196
|
+
const contents = (0, smithy_client_1.map)({
|
|
1197
|
+
$metadata: deserializeMetadata(output),
|
|
1198
|
+
});
|
|
1199
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1200
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1201
|
+
VoiceToneAnalysisTask: (_) => de_VoiceToneAnalysisTask(_, context),
|
|
1202
|
+
});
|
|
1203
|
+
Object.assign(contents, doc);
|
|
1204
|
+
return contents;
|
|
1205
|
+
};
|
|
1206
|
+
exports.de_GetVoiceToneAnalysisTaskCommand = de_GetVoiceToneAnalysisTaskCommand;
|
|
1207
|
+
const de_GetVoiceToneAnalysisTaskCommandError = async (output, context) => {
|
|
1208
|
+
const parsedOutput = {
|
|
1209
|
+
...output,
|
|
1210
|
+
body: await parseErrorBody(output.body, context),
|
|
1211
|
+
};
|
|
1212
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1213
|
+
switch (errorCode) {
|
|
1214
|
+
case "BadRequestException":
|
|
1215
|
+
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1216
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1217
|
+
case "ForbiddenException":
|
|
1218
|
+
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1219
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1220
|
+
case "NotFoundException":
|
|
1221
|
+
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1222
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1223
|
+
case "ServiceFailureException":
|
|
1224
|
+
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1225
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1226
|
+
case "ServiceUnavailableException":
|
|
1227
|
+
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1228
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1229
|
+
case "ThrottledClientException":
|
|
1230
|
+
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1231
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1232
|
+
case "UnauthorizedClientException":
|
|
1233
|
+
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1234
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1235
|
+
default:
|
|
1236
|
+
const parsedBody = parsedOutput.body;
|
|
1237
|
+
return throwDefaultError({
|
|
1238
|
+
output,
|
|
1239
|
+
parsedBody,
|
|
1240
|
+
errorCode,
|
|
1241
|
+
});
|
|
1242
|
+
}
|
|
1243
|
+
};
|
|
995
1244
|
const de_ListMediaCapturePipelinesCommand = async (output, context) => {
|
|
996
1245
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
997
1246
|
return de_ListMediaCapturePipelinesCommandError(output, context);
|
|
@@ -1203,6 +1452,218 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1203
1452
|
});
|
|
1204
1453
|
}
|
|
1205
1454
|
};
|
|
1455
|
+
const de_StartSpeakerSearchTaskCommand = async (output, context) => {
|
|
1456
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1457
|
+
return de_StartSpeakerSearchTaskCommandError(output, context);
|
|
1458
|
+
}
|
|
1459
|
+
const contents = (0, smithy_client_1.map)({
|
|
1460
|
+
$metadata: deserializeMetadata(output),
|
|
1461
|
+
});
|
|
1462
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1463
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1464
|
+
SpeakerSearchTask: (_) => de_SpeakerSearchTask(_, context),
|
|
1465
|
+
});
|
|
1466
|
+
Object.assign(contents, doc);
|
|
1467
|
+
return contents;
|
|
1468
|
+
};
|
|
1469
|
+
exports.de_StartSpeakerSearchTaskCommand = de_StartSpeakerSearchTaskCommand;
|
|
1470
|
+
const de_StartSpeakerSearchTaskCommandError = async (output, context) => {
|
|
1471
|
+
const parsedOutput = {
|
|
1472
|
+
...output,
|
|
1473
|
+
body: await parseErrorBody(output.body, context),
|
|
1474
|
+
};
|
|
1475
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1476
|
+
switch (errorCode) {
|
|
1477
|
+
case "BadRequestException":
|
|
1478
|
+
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1479
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1480
|
+
case "ConflictException":
|
|
1481
|
+
case "com.amazonaws.chimesdkmediapipelines#ConflictException":
|
|
1482
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1483
|
+
case "ForbiddenException":
|
|
1484
|
+
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1485
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1486
|
+
case "NotFoundException":
|
|
1487
|
+
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1488
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1489
|
+
case "ServiceFailureException":
|
|
1490
|
+
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1491
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1492
|
+
case "ServiceUnavailableException":
|
|
1493
|
+
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1494
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1495
|
+
case "ThrottledClientException":
|
|
1496
|
+
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1497
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1498
|
+
case "UnauthorizedClientException":
|
|
1499
|
+
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1500
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1501
|
+
default:
|
|
1502
|
+
const parsedBody = parsedOutput.body;
|
|
1503
|
+
return throwDefaultError({
|
|
1504
|
+
output,
|
|
1505
|
+
parsedBody,
|
|
1506
|
+
errorCode,
|
|
1507
|
+
});
|
|
1508
|
+
}
|
|
1509
|
+
};
|
|
1510
|
+
const de_StartVoiceToneAnalysisTaskCommand = async (output, context) => {
|
|
1511
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1512
|
+
return de_StartVoiceToneAnalysisTaskCommandError(output, context);
|
|
1513
|
+
}
|
|
1514
|
+
const contents = (0, smithy_client_1.map)({
|
|
1515
|
+
$metadata: deserializeMetadata(output),
|
|
1516
|
+
});
|
|
1517
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1518
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1519
|
+
VoiceToneAnalysisTask: (_) => de_VoiceToneAnalysisTask(_, context),
|
|
1520
|
+
});
|
|
1521
|
+
Object.assign(contents, doc);
|
|
1522
|
+
return contents;
|
|
1523
|
+
};
|
|
1524
|
+
exports.de_StartVoiceToneAnalysisTaskCommand = de_StartVoiceToneAnalysisTaskCommand;
|
|
1525
|
+
const de_StartVoiceToneAnalysisTaskCommandError = async (output, context) => {
|
|
1526
|
+
const parsedOutput = {
|
|
1527
|
+
...output,
|
|
1528
|
+
body: await parseErrorBody(output.body, context),
|
|
1529
|
+
};
|
|
1530
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1531
|
+
switch (errorCode) {
|
|
1532
|
+
case "BadRequestException":
|
|
1533
|
+
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1534
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1535
|
+
case "ConflictException":
|
|
1536
|
+
case "com.amazonaws.chimesdkmediapipelines#ConflictException":
|
|
1537
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1538
|
+
case "ForbiddenException":
|
|
1539
|
+
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1540
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1541
|
+
case "NotFoundException":
|
|
1542
|
+
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1543
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1544
|
+
case "ServiceFailureException":
|
|
1545
|
+
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1546
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1547
|
+
case "ServiceUnavailableException":
|
|
1548
|
+
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1549
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1550
|
+
case "ThrottledClientException":
|
|
1551
|
+
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1552
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1553
|
+
case "UnauthorizedClientException":
|
|
1554
|
+
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1555
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1556
|
+
default:
|
|
1557
|
+
const parsedBody = parsedOutput.body;
|
|
1558
|
+
return throwDefaultError({
|
|
1559
|
+
output,
|
|
1560
|
+
parsedBody,
|
|
1561
|
+
errorCode,
|
|
1562
|
+
});
|
|
1563
|
+
}
|
|
1564
|
+
};
|
|
1565
|
+
const de_StopSpeakerSearchTaskCommand = async (output, context) => {
|
|
1566
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1567
|
+
return de_StopSpeakerSearchTaskCommandError(output, context);
|
|
1568
|
+
}
|
|
1569
|
+
const contents = (0, smithy_client_1.map)({
|
|
1570
|
+
$metadata: deserializeMetadata(output),
|
|
1571
|
+
});
|
|
1572
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1573
|
+
return contents;
|
|
1574
|
+
};
|
|
1575
|
+
exports.de_StopSpeakerSearchTaskCommand = de_StopSpeakerSearchTaskCommand;
|
|
1576
|
+
const de_StopSpeakerSearchTaskCommandError = async (output, context) => {
|
|
1577
|
+
const parsedOutput = {
|
|
1578
|
+
...output,
|
|
1579
|
+
body: await parseErrorBody(output.body, context),
|
|
1580
|
+
};
|
|
1581
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1582
|
+
switch (errorCode) {
|
|
1583
|
+
case "BadRequestException":
|
|
1584
|
+
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1585
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1586
|
+
case "ConflictException":
|
|
1587
|
+
case "com.amazonaws.chimesdkmediapipelines#ConflictException":
|
|
1588
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1589
|
+
case "ForbiddenException":
|
|
1590
|
+
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1591
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1592
|
+
case "NotFoundException":
|
|
1593
|
+
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1594
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1595
|
+
case "ServiceFailureException":
|
|
1596
|
+
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1597
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1598
|
+
case "ServiceUnavailableException":
|
|
1599
|
+
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1600
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1601
|
+
case "ThrottledClientException":
|
|
1602
|
+
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1603
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1604
|
+
case "UnauthorizedClientException":
|
|
1605
|
+
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1606
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1607
|
+
default:
|
|
1608
|
+
const parsedBody = parsedOutput.body;
|
|
1609
|
+
return throwDefaultError({
|
|
1610
|
+
output,
|
|
1611
|
+
parsedBody,
|
|
1612
|
+
errorCode,
|
|
1613
|
+
});
|
|
1614
|
+
}
|
|
1615
|
+
};
|
|
1616
|
+
const de_StopVoiceToneAnalysisTaskCommand = async (output, context) => {
|
|
1617
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1618
|
+
return de_StopVoiceToneAnalysisTaskCommandError(output, context);
|
|
1619
|
+
}
|
|
1620
|
+
const contents = (0, smithy_client_1.map)({
|
|
1621
|
+
$metadata: deserializeMetadata(output),
|
|
1622
|
+
});
|
|
1623
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1624
|
+
return contents;
|
|
1625
|
+
};
|
|
1626
|
+
exports.de_StopVoiceToneAnalysisTaskCommand = de_StopVoiceToneAnalysisTaskCommand;
|
|
1627
|
+
const de_StopVoiceToneAnalysisTaskCommandError = async (output, context) => {
|
|
1628
|
+
const parsedOutput = {
|
|
1629
|
+
...output,
|
|
1630
|
+
body: await parseErrorBody(output.body, context),
|
|
1631
|
+
};
|
|
1632
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1633
|
+
switch (errorCode) {
|
|
1634
|
+
case "BadRequestException":
|
|
1635
|
+
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1636
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1637
|
+
case "ConflictException":
|
|
1638
|
+
case "com.amazonaws.chimesdkmediapipelines#ConflictException":
|
|
1639
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1640
|
+
case "ForbiddenException":
|
|
1641
|
+
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1642
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1643
|
+
case "NotFoundException":
|
|
1644
|
+
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1645
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1646
|
+
case "ServiceFailureException":
|
|
1647
|
+
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1648
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1649
|
+
case "ServiceUnavailableException":
|
|
1650
|
+
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1651
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1652
|
+
case "ThrottledClientException":
|
|
1653
|
+
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1654
|
+
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1655
|
+
case "UnauthorizedClientException":
|
|
1656
|
+
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1657
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1658
|
+
default:
|
|
1659
|
+
const parsedBody = parsedOutput.body;
|
|
1660
|
+
return throwDefaultError({
|
|
1661
|
+
output,
|
|
1662
|
+
parsedBody,
|
|
1663
|
+
errorCode,
|
|
1664
|
+
});
|
|
1665
|
+
}
|
|
1666
|
+
};
|
|
1206
1667
|
const de_TagResourceCommand = async (output, context) => {
|
|
1207
1668
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1208
1669
|
return de_TagResourceCommandError(output, context);
|
|
@@ -1641,12 +2102,28 @@ const de_MediaPipeline = (output, context) => {
|
|
|
1641
2102
|
MediaLiveConnectorPipeline: (_) => de_MediaLiveConnectorPipeline(_, context),
|
|
1642
2103
|
});
|
|
1643
2104
|
};
|
|
2105
|
+
const de_SpeakerSearchTask = (output, context) => {
|
|
2106
|
+
return (0, smithy_client_1.take)(output, {
|
|
2107
|
+
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2108
|
+
SpeakerSearchTaskId: smithy_client_1.expectString,
|
|
2109
|
+
SpeakerSearchTaskStatus: smithy_client_1.expectString,
|
|
2110
|
+
UpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2111
|
+
});
|
|
2112
|
+
};
|
|
1644
2113
|
const de_TimestampRange = (output, context) => {
|
|
1645
2114
|
return (0, smithy_client_1.take)(output, {
|
|
1646
2115
|
EndTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1647
2116
|
StartTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1648
2117
|
});
|
|
1649
2118
|
};
|
|
2119
|
+
const de_VoiceToneAnalysisTask = (output, context) => {
|
|
2120
|
+
return (0, smithy_client_1.take)(output, {
|
|
2121
|
+
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2122
|
+
UpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2123
|
+
VoiceToneAnalysisTaskId: smithy_client_1.expectString,
|
|
2124
|
+
VoiceToneAnalysisTaskStatus: smithy_client_1.expectString,
|
|
2125
|
+
});
|
|
2126
|
+
};
|
|
1650
2127
|
const deserializeMetadata = (output) => ({
|
|
1651
2128
|
httpStatusCode: output.statusCode,
|
|
1652
2129
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -11,10 +11,16 @@ import { DeleteMediaPipelineCommand, } from "./commands/DeleteMediaPipelineComma
|
|
|
11
11
|
import { GetMediaCapturePipelineCommand, } from "./commands/GetMediaCapturePipelineCommand";
|
|
12
12
|
import { GetMediaInsightsPipelineConfigurationCommand, } from "./commands/GetMediaInsightsPipelineConfigurationCommand";
|
|
13
13
|
import { GetMediaPipelineCommand, } from "./commands/GetMediaPipelineCommand";
|
|
14
|
+
import { GetSpeakerSearchTaskCommand, } from "./commands/GetSpeakerSearchTaskCommand";
|
|
15
|
+
import { GetVoiceToneAnalysisTaskCommand, } from "./commands/GetVoiceToneAnalysisTaskCommand";
|
|
14
16
|
import { ListMediaCapturePipelinesCommand, } from "./commands/ListMediaCapturePipelinesCommand";
|
|
15
17
|
import { ListMediaInsightsPipelineConfigurationsCommand, } from "./commands/ListMediaInsightsPipelineConfigurationsCommand";
|
|
16
18
|
import { ListMediaPipelinesCommand, } from "./commands/ListMediaPipelinesCommand";
|
|
17
19
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
20
|
+
import { StartSpeakerSearchTaskCommand, } from "./commands/StartSpeakerSearchTaskCommand";
|
|
21
|
+
import { StartVoiceToneAnalysisTaskCommand, } from "./commands/StartVoiceToneAnalysisTaskCommand";
|
|
22
|
+
import { StopSpeakerSearchTaskCommand, } from "./commands/StopSpeakerSearchTaskCommand";
|
|
23
|
+
import { StopVoiceToneAnalysisTaskCommand, } from "./commands/StopVoiceToneAnalysisTaskCommand";
|
|
18
24
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
19
25
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
20
26
|
import { UpdateMediaInsightsPipelineConfigurationCommand, } from "./commands/UpdateMediaInsightsPipelineConfigurationCommand";
|
|
@@ -31,10 +37,16 @@ const commands = {
|
|
|
31
37
|
GetMediaCapturePipelineCommand,
|
|
32
38
|
GetMediaInsightsPipelineConfigurationCommand,
|
|
33
39
|
GetMediaPipelineCommand,
|
|
40
|
+
GetSpeakerSearchTaskCommand,
|
|
41
|
+
GetVoiceToneAnalysisTaskCommand,
|
|
34
42
|
ListMediaCapturePipelinesCommand,
|
|
35
43
|
ListMediaInsightsPipelineConfigurationsCommand,
|
|
36
44
|
ListMediaPipelinesCommand,
|
|
37
45
|
ListTagsForResourceCommand,
|
|
46
|
+
StartSpeakerSearchTaskCommand,
|
|
47
|
+
StartVoiceToneAnalysisTaskCommand,
|
|
48
|
+
StopSpeakerSearchTaskCommand,
|
|
49
|
+
StopVoiceToneAnalysisTaskCommand,
|
|
38
50
|
TagResourceCommand,
|
|
39
51
|
UntagResourceCommand,
|
|
40
52
|
UpdateMediaInsightsPipelineConfigurationCommand,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { de_GetSpeakerSearchTaskCommand, se_GetSpeakerSearchTaskCommand } from "../protocols/Aws_restJson1";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class GetSpeakerSearchTaskCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetSpeakerSearchTaskCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ChimeSDKMediaPipelinesClient";
|
|
25
|
+
const commandName = "GetSpeakerSearchTaskCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_GetSpeakerSearchTaskCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_GetSpeakerSearchTaskCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { de_GetVoiceToneAnalysisTaskCommand, se_GetVoiceToneAnalysisTaskCommand } from "../protocols/Aws_restJson1";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class GetVoiceToneAnalysisTaskCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetVoiceToneAnalysisTaskCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ChimeSDKMediaPipelinesClient";
|
|
25
|
+
const commandName = "GetVoiceToneAnalysisTaskCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_GetVoiceToneAnalysisTaskCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_GetVoiceToneAnalysisTaskCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|