@aws-sdk/client-kinesis-video 3.80.0 → 3.83.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/CHANGELOG.md +27 -0
- package/dist-cjs/KinesisVideo.js +60 -0
- package/dist-cjs/commands/DescribeImageGenerationConfigurationCommand.js +36 -0
- package/dist-cjs/commands/DescribeNotificationConfigurationCommand.js +36 -0
- package/dist-cjs/commands/UpdateImageGenerationConfigurationCommand.js +36 -0
- package/dist-cjs/commands/UpdateNotificationConfigurationCommand.js +36 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +109 -2
- package/dist-cjs/protocols/Aws_restJson1.js +393 -1
- package/dist-es/KinesisVideo.js +60 -0
- package/dist-es/commands/DescribeImageGenerationConfigurationCommand.js +39 -0
- package/dist-es/commands/DescribeNotificationConfigurationCommand.js +39 -0
- package/dist-es/commands/UpdateImageGenerationConfigurationCommand.js +39 -0
- package/dist-es/commands/UpdateNotificationConfigurationCommand.js +39 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +82 -0
- package/dist-es/protocols/Aws_restJson1.js +468 -1
- package/dist-types/KinesisVideo.d.ts +37 -9
- package/dist-types/KinesisVideoClient.d.ts +6 -2
- package/dist-types/commands/DescribeImageGenerationConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/DescribeNotificationConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/GetSignalingChannelEndpointCommand.d.ts +2 -2
- package/dist-types/commands/ListSignalingChannelsCommand.d.ts +2 -2
- package/dist-types/commands/TagResourceCommand.d.ts +2 -2
- package/dist-types/commands/TagStreamCommand.d.ts +3 -3
- package/dist-types/commands/UpdateImageGenerationConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/UpdateNotificationConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +264 -10
- package/dist-types/protocols/Aws_restJson1.d.ts +12 -0
- package/dist-types/ts3.4/KinesisVideo.d.ts +20 -0
- package/dist-types/ts3.4/KinesisVideoClient.d.ts +6 -2
- package/dist-types/ts3.4/commands/DescribeImageGenerationConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeNotificationConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateImageGenerationConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateNotificationConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +153 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +5 -5
|
@@ -2,7 +2,7 @@ import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
3
|
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { KinesisVideoServiceException as __BaseException } from "../models/KinesisVideoServiceException";
|
|
5
|
-
import { AccessDeniedException, AccountChannelLimitExceededException, AccountStreamLimitExceededException, ClientLimitExceededException, DeviceStreamLimitExceededException, InvalidArgumentException, InvalidDeviceException, InvalidResourceFormatException, NotAuthorizedException, ResourceInUseException, ResourceNotFoundException, TagsPerResourceExceededLimitException, VersionMismatchException, } from "../models/models_0";
|
|
5
|
+
import { AccessDeniedException, AccountChannelLimitExceededException, AccountStreamLimitExceededException, ClientLimitExceededException, DeviceStreamLimitExceededException, InvalidArgumentException, InvalidDeviceException, InvalidResourceFormatException, NoDataRetentionException, NotAuthorizedException, ResourceInUseException, ResourceNotFoundException, TagsPerResourceExceededLimitException, VersionMismatchException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_restJson1CreateSignalingChannelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
7
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
8
8
|
return __generator(this, function (_c) {
|
|
@@ -107,6 +107,54 @@ export var serializeAws_restJson1DeleteStreamCommand = function (input, context)
|
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
109
|
}); };
|
|
110
|
+
export var serializeAws_restJson1DescribeImageGenerationConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
111
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
112
|
+
return __generator(this, function (_c) {
|
|
113
|
+
switch (_c.label) {
|
|
114
|
+
case 0: return [4, context.endpoint()];
|
|
115
|
+
case 1:
|
|
116
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
117
|
+
headers = {
|
|
118
|
+
"content-type": "application/json",
|
|
119
|
+
};
|
|
120
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/describeImageGenerationConfiguration";
|
|
121
|
+
body = JSON.stringify(__assign(__assign({}, (input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName })));
|
|
122
|
+
return [2, new __HttpRequest({
|
|
123
|
+
protocol: protocol,
|
|
124
|
+
hostname: hostname,
|
|
125
|
+
port: port,
|
|
126
|
+
method: "POST",
|
|
127
|
+
headers: headers,
|
|
128
|
+
path: resolvedPath,
|
|
129
|
+
body: body,
|
|
130
|
+
})];
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
}); };
|
|
134
|
+
export var serializeAws_restJson1DescribeNotificationConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
135
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
136
|
+
return __generator(this, function (_c) {
|
|
137
|
+
switch (_c.label) {
|
|
138
|
+
case 0: return [4, context.endpoint()];
|
|
139
|
+
case 1:
|
|
140
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
141
|
+
headers = {
|
|
142
|
+
"content-type": "application/json",
|
|
143
|
+
};
|
|
144
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/describeNotificationConfiguration";
|
|
145
|
+
body = JSON.stringify(__assign(__assign({}, (input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName })));
|
|
146
|
+
return [2, new __HttpRequest({
|
|
147
|
+
protocol: protocol,
|
|
148
|
+
hostname: hostname,
|
|
149
|
+
port: port,
|
|
150
|
+
method: "POST",
|
|
151
|
+
headers: headers,
|
|
152
|
+
path: resolvedPath,
|
|
153
|
+
body: body,
|
|
154
|
+
})];
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
}); };
|
|
110
158
|
export var serializeAws_restJson1DescribeSignalingChannelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
111
159
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
112
160
|
return __generator(this, function (_c) {
|
|
@@ -434,6 +482,60 @@ export var serializeAws_restJson1UpdateDataRetentionCommand = function (input, c
|
|
|
434
482
|
}
|
|
435
483
|
});
|
|
436
484
|
}); };
|
|
485
|
+
export var serializeAws_restJson1UpdateImageGenerationConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
486
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
487
|
+
return __generator(this, function (_c) {
|
|
488
|
+
switch (_c.label) {
|
|
489
|
+
case 0: return [4, context.endpoint()];
|
|
490
|
+
case 1:
|
|
491
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
492
|
+
headers = {
|
|
493
|
+
"content-type": "application/json",
|
|
494
|
+
};
|
|
495
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/updateImageGenerationConfiguration";
|
|
496
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.ImageGenerationConfiguration !== undefined &&
|
|
497
|
+
input.ImageGenerationConfiguration !== null && {
|
|
498
|
+
ImageGenerationConfiguration: serializeAws_restJson1ImageGenerationConfiguration(input.ImageGenerationConfiguration, context),
|
|
499
|
+
})), (input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName })));
|
|
500
|
+
return [2, new __HttpRequest({
|
|
501
|
+
protocol: protocol,
|
|
502
|
+
hostname: hostname,
|
|
503
|
+
port: port,
|
|
504
|
+
method: "POST",
|
|
505
|
+
headers: headers,
|
|
506
|
+
path: resolvedPath,
|
|
507
|
+
body: body,
|
|
508
|
+
})];
|
|
509
|
+
}
|
|
510
|
+
});
|
|
511
|
+
}); };
|
|
512
|
+
export var serializeAws_restJson1UpdateNotificationConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
513
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
514
|
+
return __generator(this, function (_c) {
|
|
515
|
+
switch (_c.label) {
|
|
516
|
+
case 0: return [4, context.endpoint()];
|
|
517
|
+
case 1:
|
|
518
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
519
|
+
headers = {
|
|
520
|
+
"content-type": "application/json",
|
|
521
|
+
};
|
|
522
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/updateNotificationConfiguration";
|
|
523
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.NotificationConfiguration !== undefined &&
|
|
524
|
+
input.NotificationConfiguration !== null && {
|
|
525
|
+
NotificationConfiguration: serializeAws_restJson1NotificationConfiguration(input.NotificationConfiguration, context),
|
|
526
|
+
})), (input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName })));
|
|
527
|
+
return [2, new __HttpRequest({
|
|
528
|
+
protocol: protocol,
|
|
529
|
+
hostname: hostname,
|
|
530
|
+
port: port,
|
|
531
|
+
method: "POST",
|
|
532
|
+
headers: headers,
|
|
533
|
+
path: resolvedPath,
|
|
534
|
+
body: body,
|
|
535
|
+
})];
|
|
536
|
+
}
|
|
537
|
+
});
|
|
538
|
+
}); };
|
|
437
539
|
export var serializeAws_restJson1UpdateSignalingChannelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
438
540
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
439
541
|
return __generator(this, function (_c) {
|
|
@@ -783,6 +885,142 @@ var deserializeAws_restJson1DeleteStreamCommandError = function (output, context
|
|
|
783
885
|
}
|
|
784
886
|
});
|
|
785
887
|
}); };
|
|
888
|
+
export var deserializeAws_restJson1DescribeImageGenerationConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
889
|
+
var contents, data, _a, _b;
|
|
890
|
+
return __generator(this, function (_c) {
|
|
891
|
+
switch (_c.label) {
|
|
892
|
+
case 0:
|
|
893
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
894
|
+
return [2, deserializeAws_restJson1DescribeImageGenerationConfigurationCommandError(output, context)];
|
|
895
|
+
}
|
|
896
|
+
contents = {
|
|
897
|
+
$metadata: deserializeMetadata(output),
|
|
898
|
+
ImageGenerationConfiguration: undefined,
|
|
899
|
+
};
|
|
900
|
+
_a = __expectNonNull;
|
|
901
|
+
_b = __expectObject;
|
|
902
|
+
return [4, parseBody(output.body, context)];
|
|
903
|
+
case 1:
|
|
904
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
905
|
+
if (data.ImageGenerationConfiguration !== undefined && data.ImageGenerationConfiguration !== null) {
|
|
906
|
+
contents.ImageGenerationConfiguration = deserializeAws_restJson1ImageGenerationConfiguration(data.ImageGenerationConfiguration, context);
|
|
907
|
+
}
|
|
908
|
+
return [2, Promise.resolve(contents)];
|
|
909
|
+
}
|
|
910
|
+
});
|
|
911
|
+
}); };
|
|
912
|
+
var deserializeAws_restJson1DescribeImageGenerationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
913
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
914
|
+
var _c;
|
|
915
|
+
return __generator(this, function (_d) {
|
|
916
|
+
switch (_d.label) {
|
|
917
|
+
case 0:
|
|
918
|
+
_a = [__assign({}, output)];
|
|
919
|
+
_c = {};
|
|
920
|
+
return [4, parseBody(output.body, context)];
|
|
921
|
+
case 1:
|
|
922
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
923
|
+
errorCode = "UnknownError";
|
|
924
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
925
|
+
_b = errorCode;
|
|
926
|
+
switch (_b) {
|
|
927
|
+
case "AccessDeniedException": return [3, 2];
|
|
928
|
+
case "com.amazonaws.kinesisvideo#AccessDeniedException": return [3, 2];
|
|
929
|
+
case "ClientLimitExceededException": return [3, 4];
|
|
930
|
+
case "com.amazonaws.kinesisvideo#ClientLimitExceededException": return [3, 4];
|
|
931
|
+
case "InvalidArgumentException": return [3, 6];
|
|
932
|
+
case "com.amazonaws.kinesisvideo#InvalidArgumentException": return [3, 6];
|
|
933
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
934
|
+
case "com.amazonaws.kinesisvideo#ResourceNotFoundException": return [3, 8];
|
|
935
|
+
}
|
|
936
|
+
return [3, 10];
|
|
937
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
938
|
+
case 3: throw _d.sent();
|
|
939
|
+
case 4: return [4, deserializeAws_restJson1ClientLimitExceededExceptionResponse(parsedOutput, context)];
|
|
940
|
+
case 5: throw _d.sent();
|
|
941
|
+
case 6: return [4, deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
942
|
+
case 7: throw _d.sent();
|
|
943
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
944
|
+
case 9: throw _d.sent();
|
|
945
|
+
case 10:
|
|
946
|
+
parsedBody = parsedOutput.body;
|
|
947
|
+
response = new __BaseException({
|
|
948
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
949
|
+
$fault: "client",
|
|
950
|
+
$metadata: deserializeMetadata(output),
|
|
951
|
+
});
|
|
952
|
+
throw __decorateServiceException(response, parsedBody);
|
|
953
|
+
}
|
|
954
|
+
});
|
|
955
|
+
}); };
|
|
956
|
+
export var deserializeAws_restJson1DescribeNotificationConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
957
|
+
var contents, data, _a, _b;
|
|
958
|
+
return __generator(this, function (_c) {
|
|
959
|
+
switch (_c.label) {
|
|
960
|
+
case 0:
|
|
961
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
962
|
+
return [2, deserializeAws_restJson1DescribeNotificationConfigurationCommandError(output, context)];
|
|
963
|
+
}
|
|
964
|
+
contents = {
|
|
965
|
+
$metadata: deserializeMetadata(output),
|
|
966
|
+
NotificationConfiguration: undefined,
|
|
967
|
+
};
|
|
968
|
+
_a = __expectNonNull;
|
|
969
|
+
_b = __expectObject;
|
|
970
|
+
return [4, parseBody(output.body, context)];
|
|
971
|
+
case 1:
|
|
972
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
973
|
+
if (data.NotificationConfiguration !== undefined && data.NotificationConfiguration !== null) {
|
|
974
|
+
contents.NotificationConfiguration = deserializeAws_restJson1NotificationConfiguration(data.NotificationConfiguration, context);
|
|
975
|
+
}
|
|
976
|
+
return [2, Promise.resolve(contents)];
|
|
977
|
+
}
|
|
978
|
+
});
|
|
979
|
+
}); };
|
|
980
|
+
var deserializeAws_restJson1DescribeNotificationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
981
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
982
|
+
var _c;
|
|
983
|
+
return __generator(this, function (_d) {
|
|
984
|
+
switch (_d.label) {
|
|
985
|
+
case 0:
|
|
986
|
+
_a = [__assign({}, output)];
|
|
987
|
+
_c = {};
|
|
988
|
+
return [4, parseBody(output.body, context)];
|
|
989
|
+
case 1:
|
|
990
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
991
|
+
errorCode = "UnknownError";
|
|
992
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
993
|
+
_b = errorCode;
|
|
994
|
+
switch (_b) {
|
|
995
|
+
case "AccessDeniedException": return [3, 2];
|
|
996
|
+
case "com.amazonaws.kinesisvideo#AccessDeniedException": return [3, 2];
|
|
997
|
+
case "ClientLimitExceededException": return [3, 4];
|
|
998
|
+
case "com.amazonaws.kinesisvideo#ClientLimitExceededException": return [3, 4];
|
|
999
|
+
case "InvalidArgumentException": return [3, 6];
|
|
1000
|
+
case "com.amazonaws.kinesisvideo#InvalidArgumentException": return [3, 6];
|
|
1001
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1002
|
+
case "com.amazonaws.kinesisvideo#ResourceNotFoundException": return [3, 8];
|
|
1003
|
+
}
|
|
1004
|
+
return [3, 10];
|
|
1005
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1006
|
+
case 3: throw _d.sent();
|
|
1007
|
+
case 4: return [4, deserializeAws_restJson1ClientLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1008
|
+
case 5: throw _d.sent();
|
|
1009
|
+
case 6: return [4, deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
1010
|
+
case 7: throw _d.sent();
|
|
1011
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1012
|
+
case 9: throw _d.sent();
|
|
1013
|
+
case 10:
|
|
1014
|
+
parsedBody = parsedOutput.body;
|
|
1015
|
+
response = new __BaseException({
|
|
1016
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1017
|
+
$fault: "client",
|
|
1018
|
+
$metadata: deserializeMetadata(output),
|
|
1019
|
+
});
|
|
1020
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1021
|
+
}
|
|
1022
|
+
});
|
|
1023
|
+
}); };
|
|
786
1024
|
export var deserializeAws_restJson1DescribeSignalingChannelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
787
1025
|
var contents, data, _a, _b;
|
|
788
1026
|
return __generator(this, function (_c) {
|
|
@@ -1673,6 +1911,146 @@ var deserializeAws_restJson1UpdateDataRetentionCommandError = function (output,
|
|
|
1673
1911
|
}
|
|
1674
1912
|
});
|
|
1675
1913
|
}); };
|
|
1914
|
+
export var deserializeAws_restJson1UpdateImageGenerationConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1915
|
+
var contents;
|
|
1916
|
+
return __generator(this, function (_a) {
|
|
1917
|
+
switch (_a.label) {
|
|
1918
|
+
case 0:
|
|
1919
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1920
|
+
return [2, deserializeAws_restJson1UpdateImageGenerationConfigurationCommandError(output, context)];
|
|
1921
|
+
}
|
|
1922
|
+
contents = {
|
|
1923
|
+
$metadata: deserializeMetadata(output),
|
|
1924
|
+
};
|
|
1925
|
+
return [4, collectBody(output.body, context)];
|
|
1926
|
+
case 1:
|
|
1927
|
+
_a.sent();
|
|
1928
|
+
return [2, Promise.resolve(contents)];
|
|
1929
|
+
}
|
|
1930
|
+
});
|
|
1931
|
+
}); };
|
|
1932
|
+
var deserializeAws_restJson1UpdateImageGenerationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1933
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1934
|
+
var _c;
|
|
1935
|
+
return __generator(this, function (_d) {
|
|
1936
|
+
switch (_d.label) {
|
|
1937
|
+
case 0:
|
|
1938
|
+
_a = [__assign({}, output)];
|
|
1939
|
+
_c = {};
|
|
1940
|
+
return [4, parseBody(output.body, context)];
|
|
1941
|
+
case 1:
|
|
1942
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1943
|
+
errorCode = "UnknownError";
|
|
1944
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1945
|
+
_b = errorCode;
|
|
1946
|
+
switch (_b) {
|
|
1947
|
+
case "AccessDeniedException": return [3, 2];
|
|
1948
|
+
case "com.amazonaws.kinesisvideo#AccessDeniedException": return [3, 2];
|
|
1949
|
+
case "ClientLimitExceededException": return [3, 4];
|
|
1950
|
+
case "com.amazonaws.kinesisvideo#ClientLimitExceededException": return [3, 4];
|
|
1951
|
+
case "InvalidArgumentException": return [3, 6];
|
|
1952
|
+
case "com.amazonaws.kinesisvideo#InvalidArgumentException": return [3, 6];
|
|
1953
|
+
case "NoDataRetentionException": return [3, 8];
|
|
1954
|
+
case "com.amazonaws.kinesisvideo#NoDataRetentionException": return [3, 8];
|
|
1955
|
+
case "ResourceInUseException": return [3, 10];
|
|
1956
|
+
case "com.amazonaws.kinesisvideo#ResourceInUseException": return [3, 10];
|
|
1957
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
1958
|
+
case "com.amazonaws.kinesisvideo#ResourceNotFoundException": return [3, 12];
|
|
1959
|
+
}
|
|
1960
|
+
return [3, 14];
|
|
1961
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1962
|
+
case 3: throw _d.sent();
|
|
1963
|
+
case 4: return [4, deserializeAws_restJson1ClientLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1964
|
+
case 5: throw _d.sent();
|
|
1965
|
+
case 6: return [4, deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
1966
|
+
case 7: throw _d.sent();
|
|
1967
|
+
case 8: return [4, deserializeAws_restJson1NoDataRetentionExceptionResponse(parsedOutput, context)];
|
|
1968
|
+
case 9: throw _d.sent();
|
|
1969
|
+
case 10: return [4, deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1970
|
+
case 11: throw _d.sent();
|
|
1971
|
+
case 12: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1972
|
+
case 13: throw _d.sent();
|
|
1973
|
+
case 14:
|
|
1974
|
+
parsedBody = parsedOutput.body;
|
|
1975
|
+
response = new __BaseException({
|
|
1976
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1977
|
+
$fault: "client",
|
|
1978
|
+
$metadata: deserializeMetadata(output),
|
|
1979
|
+
});
|
|
1980
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1981
|
+
}
|
|
1982
|
+
});
|
|
1983
|
+
}); };
|
|
1984
|
+
export var deserializeAws_restJson1UpdateNotificationConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1985
|
+
var contents;
|
|
1986
|
+
return __generator(this, function (_a) {
|
|
1987
|
+
switch (_a.label) {
|
|
1988
|
+
case 0:
|
|
1989
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1990
|
+
return [2, deserializeAws_restJson1UpdateNotificationConfigurationCommandError(output, context)];
|
|
1991
|
+
}
|
|
1992
|
+
contents = {
|
|
1993
|
+
$metadata: deserializeMetadata(output),
|
|
1994
|
+
};
|
|
1995
|
+
return [4, collectBody(output.body, context)];
|
|
1996
|
+
case 1:
|
|
1997
|
+
_a.sent();
|
|
1998
|
+
return [2, Promise.resolve(contents)];
|
|
1999
|
+
}
|
|
2000
|
+
});
|
|
2001
|
+
}); };
|
|
2002
|
+
var deserializeAws_restJson1UpdateNotificationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2003
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2004
|
+
var _c;
|
|
2005
|
+
return __generator(this, function (_d) {
|
|
2006
|
+
switch (_d.label) {
|
|
2007
|
+
case 0:
|
|
2008
|
+
_a = [__assign({}, output)];
|
|
2009
|
+
_c = {};
|
|
2010
|
+
return [4, parseBody(output.body, context)];
|
|
2011
|
+
case 1:
|
|
2012
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2013
|
+
errorCode = "UnknownError";
|
|
2014
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2015
|
+
_b = errorCode;
|
|
2016
|
+
switch (_b) {
|
|
2017
|
+
case "AccessDeniedException": return [3, 2];
|
|
2018
|
+
case "com.amazonaws.kinesisvideo#AccessDeniedException": return [3, 2];
|
|
2019
|
+
case "ClientLimitExceededException": return [3, 4];
|
|
2020
|
+
case "com.amazonaws.kinesisvideo#ClientLimitExceededException": return [3, 4];
|
|
2021
|
+
case "InvalidArgumentException": return [3, 6];
|
|
2022
|
+
case "com.amazonaws.kinesisvideo#InvalidArgumentException": return [3, 6];
|
|
2023
|
+
case "NoDataRetentionException": return [3, 8];
|
|
2024
|
+
case "com.amazonaws.kinesisvideo#NoDataRetentionException": return [3, 8];
|
|
2025
|
+
case "ResourceInUseException": return [3, 10];
|
|
2026
|
+
case "com.amazonaws.kinesisvideo#ResourceInUseException": return [3, 10];
|
|
2027
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
2028
|
+
case "com.amazonaws.kinesisvideo#ResourceNotFoundException": return [3, 12];
|
|
2029
|
+
}
|
|
2030
|
+
return [3, 14];
|
|
2031
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2032
|
+
case 3: throw _d.sent();
|
|
2033
|
+
case 4: return [4, deserializeAws_restJson1ClientLimitExceededExceptionResponse(parsedOutput, context)];
|
|
2034
|
+
case 5: throw _d.sent();
|
|
2035
|
+
case 6: return [4, deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
2036
|
+
case 7: throw _d.sent();
|
|
2037
|
+
case 8: return [4, deserializeAws_restJson1NoDataRetentionExceptionResponse(parsedOutput, context)];
|
|
2038
|
+
case 9: throw _d.sent();
|
|
2039
|
+
case 10: return [4, deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
2040
|
+
case 11: throw _d.sent();
|
|
2041
|
+
case 12: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2042
|
+
case 13: throw _d.sent();
|
|
2043
|
+
case 14:
|
|
2044
|
+
parsedBody = parsedOutput.body;
|
|
2045
|
+
response = new __BaseException({
|
|
2046
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2047
|
+
$fault: "client",
|
|
2048
|
+
$metadata: deserializeMetadata(output),
|
|
2049
|
+
});
|
|
2050
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2051
|
+
}
|
|
2052
|
+
});
|
|
2053
|
+
}); };
|
|
1676
2054
|
export var deserializeAws_restJson1UpdateSignalingChannelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1677
2055
|
var contents;
|
|
1678
2056
|
return __generator(this, function (_a) {
|
|
@@ -1909,6 +2287,18 @@ var deserializeAws_restJson1InvalidResourceFormatExceptionResponse = function (p
|
|
|
1909
2287
|
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1910
2288
|
});
|
|
1911
2289
|
}); };
|
|
2290
|
+
var deserializeAws_restJson1NoDataRetentionExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2291
|
+
var contents, data, exception;
|
|
2292
|
+
return __generator(this, function (_a) {
|
|
2293
|
+
contents = {};
|
|
2294
|
+
data = parsedOutput.body;
|
|
2295
|
+
if (data.Message !== undefined && data.Message !== null) {
|
|
2296
|
+
contents.Message = __expectString(data.Message);
|
|
2297
|
+
}
|
|
2298
|
+
exception = new NoDataRetentionException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2299
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2300
|
+
});
|
|
2301
|
+
}); };
|
|
1912
2302
|
var deserializeAws_restJson1NotAuthorizedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1913
2303
|
var contents, data, exception;
|
|
1914
2304
|
return __generator(this, function (_a) {
|
|
@@ -1974,6 +2364,29 @@ var serializeAws_restJson1ChannelNameCondition = function (input, context) {
|
|
|
1974
2364
|
input.ComparisonOperator !== null && { ComparisonOperator: input.ComparisonOperator })), (input.ComparisonValue !== undefined &&
|
|
1975
2365
|
input.ComparisonValue !== null && { ComparisonValue: input.ComparisonValue }));
|
|
1976
2366
|
};
|
|
2367
|
+
var serializeAws_restJson1FormatConfig = function (input, context) {
|
|
2368
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
2369
|
+
var _b;
|
|
2370
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2371
|
+
if (value === null) {
|
|
2372
|
+
return acc;
|
|
2373
|
+
}
|
|
2374
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
2375
|
+
}, {});
|
|
2376
|
+
};
|
|
2377
|
+
var serializeAws_restJson1ImageGenerationConfiguration = function (input, context) {
|
|
2378
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DestinationConfig !== undefined &&
|
|
2379
|
+
input.DestinationConfig !== null && {
|
|
2380
|
+
DestinationConfig: serializeAws_restJson1ImageGenerationDestinationConfig(input.DestinationConfig, context),
|
|
2381
|
+
})), (input.Format !== undefined && input.Format !== null && { Format: input.Format })), (input.FormatConfig !== undefined &&
|
|
2382
|
+
input.FormatConfig !== null && { FormatConfig: serializeAws_restJson1FormatConfig(input.FormatConfig, context) })), (input.HeightPixels !== undefined && input.HeightPixels !== null && { HeightPixels: input.HeightPixels })), (input.ImageSelectorType !== undefined &&
|
|
2383
|
+
input.ImageSelectorType !== null && { ImageSelectorType: input.ImageSelectorType })), (input.SamplingInterval !== undefined &&
|
|
2384
|
+
input.SamplingInterval !== null && { SamplingInterval: input.SamplingInterval })), (input.Status !== undefined && input.Status !== null && { Status: input.Status })), (input.WidthPixels !== undefined && input.WidthPixels !== null && { WidthPixels: input.WidthPixels }));
|
|
2385
|
+
};
|
|
2386
|
+
var serializeAws_restJson1ImageGenerationDestinationConfig = function (input, context) {
|
|
2387
|
+
return __assign(__assign({}, (input.DestinationRegion !== undefined &&
|
|
2388
|
+
input.DestinationRegion !== null && { DestinationRegion: input.DestinationRegion })), (input.Uri !== undefined && input.Uri !== null && { Uri: input.Uri }));
|
|
2389
|
+
};
|
|
1977
2390
|
var serializeAws_restJson1ListOfProtocols = function (input, context) {
|
|
1978
2391
|
return input
|
|
1979
2392
|
.filter(function (e) { return e != null; })
|
|
@@ -1984,6 +2397,15 @@ var serializeAws_restJson1ListOfProtocols = function (input, context) {
|
|
|
1984
2397
|
return entry;
|
|
1985
2398
|
});
|
|
1986
2399
|
};
|
|
2400
|
+
var serializeAws_restJson1NotificationConfiguration = function (input, context) {
|
|
2401
|
+
return __assign(__assign({}, (input.DestinationConfig !== undefined &&
|
|
2402
|
+
input.DestinationConfig !== null && {
|
|
2403
|
+
DestinationConfig: serializeAws_restJson1NotificationDestinationConfig(input.DestinationConfig, context),
|
|
2404
|
+
})), (input.Status !== undefined && input.Status !== null && { Status: input.Status }));
|
|
2405
|
+
};
|
|
2406
|
+
var serializeAws_restJson1NotificationDestinationConfig = function (input, context) {
|
|
2407
|
+
return __assign({}, (input.Uri !== undefined && input.Uri !== null && { Uri: input.Uri }));
|
|
2408
|
+
};
|
|
1987
2409
|
var serializeAws_restJson1ResourceTags = function (input, context) {
|
|
1988
2410
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
1989
2411
|
var _b;
|
|
@@ -2066,6 +2488,51 @@ var deserializeAws_restJson1ChannelInfoList = function (output, context) {
|
|
|
2066
2488
|
});
|
|
2067
2489
|
return retVal;
|
|
2068
2490
|
};
|
|
2491
|
+
var deserializeAws_restJson1FormatConfig = function (output, context) {
|
|
2492
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2493
|
+
var _b;
|
|
2494
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2495
|
+
if (value === null) {
|
|
2496
|
+
return acc;
|
|
2497
|
+
}
|
|
2498
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
2499
|
+
}, {});
|
|
2500
|
+
};
|
|
2501
|
+
var deserializeAws_restJson1ImageGenerationConfiguration = function (output, context) {
|
|
2502
|
+
return {
|
|
2503
|
+
DestinationConfig: output.DestinationConfig !== undefined && output.DestinationConfig !== null
|
|
2504
|
+
? deserializeAws_restJson1ImageGenerationDestinationConfig(output.DestinationConfig, context)
|
|
2505
|
+
: undefined,
|
|
2506
|
+
Format: __expectString(output.Format),
|
|
2507
|
+
FormatConfig: output.FormatConfig !== undefined && output.FormatConfig !== null
|
|
2508
|
+
? deserializeAws_restJson1FormatConfig(output.FormatConfig, context)
|
|
2509
|
+
: undefined,
|
|
2510
|
+
HeightPixels: __expectInt32(output.HeightPixels),
|
|
2511
|
+
ImageSelectorType: __expectString(output.ImageSelectorType),
|
|
2512
|
+
SamplingInterval: __expectInt32(output.SamplingInterval),
|
|
2513
|
+
Status: __expectString(output.Status),
|
|
2514
|
+
WidthPixels: __expectInt32(output.WidthPixels),
|
|
2515
|
+
};
|
|
2516
|
+
};
|
|
2517
|
+
var deserializeAws_restJson1ImageGenerationDestinationConfig = function (output, context) {
|
|
2518
|
+
return {
|
|
2519
|
+
DestinationRegion: __expectString(output.DestinationRegion),
|
|
2520
|
+
Uri: __expectString(output.Uri),
|
|
2521
|
+
};
|
|
2522
|
+
};
|
|
2523
|
+
var deserializeAws_restJson1NotificationConfiguration = function (output, context) {
|
|
2524
|
+
return {
|
|
2525
|
+
DestinationConfig: output.DestinationConfig !== undefined && output.DestinationConfig !== null
|
|
2526
|
+
? deserializeAws_restJson1NotificationDestinationConfig(output.DestinationConfig, context)
|
|
2527
|
+
: undefined,
|
|
2528
|
+
Status: __expectString(output.Status),
|
|
2529
|
+
};
|
|
2530
|
+
};
|
|
2531
|
+
var deserializeAws_restJson1NotificationDestinationConfig = function (output, context) {
|
|
2532
|
+
return {
|
|
2533
|
+
Uri: __expectString(output.Uri),
|
|
2534
|
+
};
|
|
2535
|
+
};
|
|
2069
2536
|
var deserializeAws_restJson1ResourceEndpointList = function (output, context) {
|
|
2070
2537
|
var retVal = (output || [])
|
|
2071
2538
|
.filter(function (e) { return e != null; })
|
|
@@ -3,6 +3,8 @@ import { CreateSignalingChannelCommandInput, CreateSignalingChannelCommandOutput
|
|
|
3
3
|
import { CreateStreamCommandInput, CreateStreamCommandOutput } from "./commands/CreateStreamCommand";
|
|
4
4
|
import { DeleteSignalingChannelCommandInput, DeleteSignalingChannelCommandOutput } from "./commands/DeleteSignalingChannelCommand";
|
|
5
5
|
import { DeleteStreamCommandInput, DeleteStreamCommandOutput } from "./commands/DeleteStreamCommand";
|
|
6
|
+
import { DescribeImageGenerationConfigurationCommandInput, DescribeImageGenerationConfigurationCommandOutput } from "./commands/DescribeImageGenerationConfigurationCommand";
|
|
7
|
+
import { DescribeNotificationConfigurationCommandInput, DescribeNotificationConfigurationCommandOutput } from "./commands/DescribeNotificationConfigurationCommand";
|
|
6
8
|
import { DescribeSignalingChannelCommandInput, DescribeSignalingChannelCommandOutput } from "./commands/DescribeSignalingChannelCommand";
|
|
7
9
|
import { DescribeStreamCommandInput, DescribeStreamCommandOutput } from "./commands/DescribeStreamCommand";
|
|
8
10
|
import { GetDataEndpointCommandInput, GetDataEndpointCommandOutput } from "./commands/GetDataEndpointCommand";
|
|
@@ -16,6 +18,8 @@ import { TagStreamCommandInput, TagStreamCommandOutput } from "./commands/TagStr
|
|
|
16
18
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
17
19
|
import { UntagStreamCommandInput, UntagStreamCommandOutput } from "./commands/UntagStreamCommand";
|
|
18
20
|
import { UpdateDataRetentionCommandInput, UpdateDataRetentionCommandOutput } from "./commands/UpdateDataRetentionCommand";
|
|
21
|
+
import { UpdateImageGenerationConfigurationCommandInput, UpdateImageGenerationConfigurationCommandOutput } from "./commands/UpdateImageGenerationConfigurationCommand";
|
|
22
|
+
import { UpdateNotificationConfigurationCommandInput, UpdateNotificationConfigurationCommandOutput } from "./commands/UpdateNotificationConfigurationCommand";
|
|
19
23
|
import { UpdateSignalingChannelCommandInput, UpdateSignalingChannelCommandOutput } from "./commands/UpdateSignalingChannelCommand";
|
|
20
24
|
import { UpdateStreamCommandInput, UpdateStreamCommandOutput } from "./commands/UpdateStreamCommand";
|
|
21
25
|
import { KinesisVideoClient } from "./KinesisVideoClient";
|
|
@@ -68,6 +72,18 @@ export declare class KinesisVideo extends KinesisVideoClient {
|
|
|
68
72
|
deleteStream(args: DeleteStreamCommandInput, options?: __HttpHandlerOptions): Promise<DeleteStreamCommandOutput>;
|
|
69
73
|
deleteStream(args: DeleteStreamCommandInput, cb: (err: any, data?: DeleteStreamCommandOutput) => void): void;
|
|
70
74
|
deleteStream(args: DeleteStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteStreamCommandOutput) => void): void;
|
|
75
|
+
/**
|
|
76
|
+
* <p>Gets the <code>ImageGenerationConfiguration</code> for a given Kinesis video stream.</p>
|
|
77
|
+
*/
|
|
78
|
+
describeImageGenerationConfiguration(args: DescribeImageGenerationConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DescribeImageGenerationConfigurationCommandOutput>;
|
|
79
|
+
describeImageGenerationConfiguration(args: DescribeImageGenerationConfigurationCommandInput, cb: (err: any, data?: DescribeImageGenerationConfigurationCommandOutput) => void): void;
|
|
80
|
+
describeImageGenerationConfiguration(args: DescribeImageGenerationConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeImageGenerationConfigurationCommandOutput) => void): void;
|
|
81
|
+
/**
|
|
82
|
+
* <p>Gets the <code>NotificationConfiguration</code> for a given Kinesis video stream.</p>
|
|
83
|
+
*/
|
|
84
|
+
describeNotificationConfiguration(args: DescribeNotificationConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DescribeNotificationConfigurationCommandOutput>;
|
|
85
|
+
describeNotificationConfiguration(args: DescribeNotificationConfigurationCommandInput, cb: (err: any, data?: DescribeNotificationConfigurationCommandOutput) => void): void;
|
|
86
|
+
describeNotificationConfiguration(args: DescribeNotificationConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeNotificationConfigurationCommandOutput) => void): void;
|
|
71
87
|
/**
|
|
72
88
|
* <p>Returns the most current information about the signaling channel. You must specify
|
|
73
89
|
* either the name or the Amazon Resource Name (ARN) of the channel that you want to
|
|
@@ -113,16 +129,16 @@ export declare class KinesisVideo extends KinesisVideoClient {
|
|
|
113
129
|
* <code>Role</code> determines the messaging permissions. A <code>MASTER</code> role
|
|
114
130
|
* results in this API generating an endpoint that a client can use to communicate with any
|
|
115
131
|
* of the viewers on the channel. A <code>VIEWER</code> role results in this API generating
|
|
116
|
-
* an endpoint that a client can use to communicate only with a
|
|
117
|
-
*
|
|
132
|
+
* an endpoint that a client can use to communicate only with a <code>MASTER</code>.
|
|
133
|
+
* </p>
|
|
118
134
|
*/
|
|
119
135
|
getSignalingChannelEndpoint(args: GetSignalingChannelEndpointCommandInput, options?: __HttpHandlerOptions): Promise<GetSignalingChannelEndpointCommandOutput>;
|
|
120
136
|
getSignalingChannelEndpoint(args: GetSignalingChannelEndpointCommandInput, cb: (err: any, data?: GetSignalingChannelEndpointCommandOutput) => void): void;
|
|
121
137
|
getSignalingChannelEndpoint(args: GetSignalingChannelEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSignalingChannelEndpointCommandOutput) => void): void;
|
|
122
138
|
/**
|
|
123
139
|
* <p>Returns an array of <code>ChannelInfo</code> objects. Each object describes a
|
|
124
|
-
* signaling channel. To retrieve only those channels that satisfy a specific condition,
|
|
125
|
-
* specify a <code>ChannelNameCondition</code>.</p>
|
|
140
|
+
* signaling channel. To retrieve only those channels that satisfy a specific condition,
|
|
141
|
+
* you can specify a <code>ChannelNameCondition</code>.</p>
|
|
126
142
|
*/
|
|
127
143
|
listSignalingChannels(args: ListSignalingChannelsCommandInput, options?: __HttpHandlerOptions): Promise<ListSignalingChannelsCommandOutput>;
|
|
128
144
|
listSignalingChannels(args: ListSignalingChannelsCommandInput, cb: (err: any, data?: ListSignalingChannelsCommandOutput) => void): void;
|
|
@@ -151,10 +167,10 @@ export declare class KinesisVideo extends KinesisVideoClient {
|
|
|
151
167
|
listTagsForStream(args: ListTagsForStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForStreamCommandOutput) => void): void;
|
|
152
168
|
/**
|
|
153
169
|
* <p>Adds one or more tags to a signaling channel. A <i>tag</i> is a
|
|
154
|
-
* key-value pair (the value is optional) that you can define and assign to
|
|
170
|
+
* key-value pair (the value is optional) that you can define and assign to Amazon Web Services resources.
|
|
155
171
|
* If you specify a tag that already exists, the tag value is replaced with the value that
|
|
156
172
|
* you specify in the request. For more information, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html">Using Cost Allocation
|
|
157
|
-
* Tags</a> in the <i>
|
|
173
|
+
* Tags</a> in the <i>Billing and Cost Management and Cost Management User
|
|
158
174
|
* Guide</i>.</p>
|
|
159
175
|
*/
|
|
160
176
|
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
@@ -162,15 +178,15 @@ export declare class KinesisVideo extends KinesisVideoClient {
|
|
|
162
178
|
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
163
179
|
/**
|
|
164
180
|
* <p>Adds one or more tags to a stream. A <i>tag</i> is a key-value pair
|
|
165
|
-
* (the value is optional) that you can define and assign to
|
|
181
|
+
* (the value is optional) that you can define and assign to Amazon Web Services resources. If you specify
|
|
166
182
|
* a tag that already exists, the tag value is replaced with the value that you specify in
|
|
167
183
|
* the request. For more information, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html">Using Cost Allocation
|
|
168
|
-
* Tags</a> in the <i>
|
|
184
|
+
* Tags</a> in the <i>Billing and Cost Management and Cost Management User Guide</i>. </p>
|
|
169
185
|
* <p>You must provide either the <code>StreamName</code> or the
|
|
170
186
|
* <code>StreamARN</code>.</p>
|
|
171
187
|
* <p>This operation requires permission for the <code>KinesisVideo:TagStream</code>
|
|
172
188
|
* action.</p>
|
|
173
|
-
* <p>Kinesis video
|
|
189
|
+
* <p>A Kinesis video stream can support up to 50 tags.</p>
|
|
174
190
|
*/
|
|
175
191
|
tagStream(args: TagStreamCommandInput, options?: __HttpHandlerOptions): Promise<TagStreamCommandOutput>;
|
|
176
192
|
tagStream(args: TagStreamCommandInput, cb: (err: any, data?: TagStreamCommandOutput) => void): void;
|
|
@@ -225,6 +241,18 @@ export declare class KinesisVideo extends KinesisVideoClient {
|
|
|
225
241
|
updateDataRetention(args: UpdateDataRetentionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateDataRetentionCommandOutput>;
|
|
226
242
|
updateDataRetention(args: UpdateDataRetentionCommandInput, cb: (err: any, data?: UpdateDataRetentionCommandOutput) => void): void;
|
|
227
243
|
updateDataRetention(args: UpdateDataRetentionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDataRetentionCommandOutput) => void): void;
|
|
244
|
+
/**
|
|
245
|
+
* <p>Updates the <code>StreamInfo</code> and <code>ImageProcessingConfiguration</code> fields.</p>
|
|
246
|
+
*/
|
|
247
|
+
updateImageGenerationConfiguration(args: UpdateImageGenerationConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateImageGenerationConfigurationCommandOutput>;
|
|
248
|
+
updateImageGenerationConfiguration(args: UpdateImageGenerationConfigurationCommandInput, cb: (err: any, data?: UpdateImageGenerationConfigurationCommandOutput) => void): void;
|
|
249
|
+
updateImageGenerationConfiguration(args: UpdateImageGenerationConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateImageGenerationConfigurationCommandOutput) => void): void;
|
|
250
|
+
/**
|
|
251
|
+
* <p>Updates the notification information for a stream.</p>
|
|
252
|
+
*/
|
|
253
|
+
updateNotificationConfiguration(args: UpdateNotificationConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateNotificationConfigurationCommandOutput>;
|
|
254
|
+
updateNotificationConfiguration(args: UpdateNotificationConfigurationCommandInput, cb: (err: any, data?: UpdateNotificationConfigurationCommandOutput) => void): void;
|
|
255
|
+
updateNotificationConfiguration(args: UpdateNotificationConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateNotificationConfigurationCommandOutput) => void): void;
|
|
228
256
|
/**
|
|
229
257
|
* <p>Updates the existing signaling channel. This is an asynchronous operation and takes
|
|
230
258
|
* time to complete. </p>
|