@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeAws_restJson1UpdateStreamCommand = exports.deserializeAws_restJson1UpdateSignalingChannelCommand = exports.deserializeAws_restJson1UpdateDataRetentionCommand = exports.deserializeAws_restJson1UntagStreamCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagStreamCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListTagsForStreamCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListStreamsCommand = exports.deserializeAws_restJson1ListSignalingChannelsCommand = exports.deserializeAws_restJson1GetSignalingChannelEndpointCommand = exports.deserializeAws_restJson1GetDataEndpointCommand = exports.deserializeAws_restJson1DescribeStreamCommand = exports.deserializeAws_restJson1DescribeSignalingChannelCommand = exports.deserializeAws_restJson1DeleteStreamCommand = exports.deserializeAws_restJson1DeleteSignalingChannelCommand = exports.deserializeAws_restJson1CreateStreamCommand = exports.deserializeAws_restJson1CreateSignalingChannelCommand = exports.serializeAws_restJson1UpdateStreamCommand = exports.serializeAws_restJson1UpdateSignalingChannelCommand = exports.serializeAws_restJson1UpdateDataRetentionCommand = exports.serializeAws_restJson1UntagStreamCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagStreamCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ListTagsForStreamCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListStreamsCommand = exports.serializeAws_restJson1ListSignalingChannelsCommand = exports.serializeAws_restJson1GetSignalingChannelEndpointCommand = exports.serializeAws_restJson1GetDataEndpointCommand = exports.serializeAws_restJson1DescribeStreamCommand = exports.serializeAws_restJson1DescribeSignalingChannelCommand = exports.serializeAws_restJson1DeleteStreamCommand = exports.serializeAws_restJson1DeleteSignalingChannelCommand = exports.serializeAws_restJson1CreateStreamCommand = exports.serializeAws_restJson1CreateSignalingChannelCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1UpdateStreamCommand = exports.deserializeAws_restJson1UpdateSignalingChannelCommand = exports.deserializeAws_restJson1UpdateNotificationConfigurationCommand = exports.deserializeAws_restJson1UpdateImageGenerationConfigurationCommand = exports.deserializeAws_restJson1UpdateDataRetentionCommand = exports.deserializeAws_restJson1UntagStreamCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagStreamCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListTagsForStreamCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListStreamsCommand = exports.deserializeAws_restJson1ListSignalingChannelsCommand = exports.deserializeAws_restJson1GetSignalingChannelEndpointCommand = exports.deserializeAws_restJson1GetDataEndpointCommand = exports.deserializeAws_restJson1DescribeStreamCommand = exports.deserializeAws_restJson1DescribeSignalingChannelCommand = exports.deserializeAws_restJson1DescribeNotificationConfigurationCommand = exports.deserializeAws_restJson1DescribeImageGenerationConfigurationCommand = exports.deserializeAws_restJson1DeleteStreamCommand = exports.deserializeAws_restJson1DeleteSignalingChannelCommand = exports.deserializeAws_restJson1CreateStreamCommand = exports.deserializeAws_restJson1CreateSignalingChannelCommand = exports.serializeAws_restJson1UpdateStreamCommand = exports.serializeAws_restJson1UpdateSignalingChannelCommand = exports.serializeAws_restJson1UpdateNotificationConfigurationCommand = exports.serializeAws_restJson1UpdateImageGenerationConfigurationCommand = exports.serializeAws_restJson1UpdateDataRetentionCommand = exports.serializeAws_restJson1UntagStreamCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagStreamCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ListTagsForStreamCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListStreamsCommand = exports.serializeAws_restJson1ListSignalingChannelsCommand = exports.serializeAws_restJson1GetSignalingChannelEndpointCommand = exports.serializeAws_restJson1GetDataEndpointCommand = exports.serializeAws_restJson1DescribeStreamCommand = exports.serializeAws_restJson1DescribeSignalingChannelCommand = exports.serializeAws_restJson1DescribeNotificationConfigurationCommand = exports.serializeAws_restJson1DescribeImageGenerationConfigurationCommand = exports.serializeAws_restJson1DeleteStreamCommand = exports.serializeAws_restJson1DeleteSignalingChannelCommand = exports.serializeAws_restJson1CreateStreamCommand = exports.serializeAws_restJson1CreateSignalingChannelCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const KinesisVideoServiceException_1 = require("../models/KinesisVideoServiceException");
|
|
@@ -107,6 +107,50 @@ const serializeAws_restJson1DeleteStreamCommand = async (input, context) => {
|
|
|
107
107
|
});
|
|
108
108
|
};
|
|
109
109
|
exports.serializeAws_restJson1DeleteStreamCommand = serializeAws_restJson1DeleteStreamCommand;
|
|
110
|
+
const serializeAws_restJson1DescribeImageGenerationConfigurationCommand = async (input, context) => {
|
|
111
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
112
|
+
const headers = {
|
|
113
|
+
"content-type": "application/json",
|
|
114
|
+
};
|
|
115
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/describeImageGenerationConfiguration";
|
|
116
|
+
let body;
|
|
117
|
+
body = JSON.stringify({
|
|
118
|
+
...(input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN }),
|
|
119
|
+
...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
|
|
120
|
+
});
|
|
121
|
+
return new protocol_http_1.HttpRequest({
|
|
122
|
+
protocol,
|
|
123
|
+
hostname,
|
|
124
|
+
port,
|
|
125
|
+
method: "POST",
|
|
126
|
+
headers,
|
|
127
|
+
path: resolvedPath,
|
|
128
|
+
body,
|
|
129
|
+
});
|
|
130
|
+
};
|
|
131
|
+
exports.serializeAws_restJson1DescribeImageGenerationConfigurationCommand = serializeAws_restJson1DescribeImageGenerationConfigurationCommand;
|
|
132
|
+
const serializeAws_restJson1DescribeNotificationConfigurationCommand = async (input, context) => {
|
|
133
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
134
|
+
const headers = {
|
|
135
|
+
"content-type": "application/json",
|
|
136
|
+
};
|
|
137
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/describeNotificationConfiguration";
|
|
138
|
+
let body;
|
|
139
|
+
body = JSON.stringify({
|
|
140
|
+
...(input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN }),
|
|
141
|
+
...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
|
|
142
|
+
});
|
|
143
|
+
return new protocol_http_1.HttpRequest({
|
|
144
|
+
protocol,
|
|
145
|
+
hostname,
|
|
146
|
+
port,
|
|
147
|
+
method: "POST",
|
|
148
|
+
headers,
|
|
149
|
+
path: resolvedPath,
|
|
150
|
+
body,
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
exports.serializeAws_restJson1DescribeNotificationConfigurationCommand = serializeAws_restJson1DescribeNotificationConfigurationCommand;
|
|
110
154
|
const serializeAws_restJson1DescribeSignalingChannelCommand = async (input, context) => {
|
|
111
155
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
112
156
|
const headers = {
|
|
@@ -417,6 +461,58 @@ const serializeAws_restJson1UpdateDataRetentionCommand = async (input, context)
|
|
|
417
461
|
});
|
|
418
462
|
};
|
|
419
463
|
exports.serializeAws_restJson1UpdateDataRetentionCommand = serializeAws_restJson1UpdateDataRetentionCommand;
|
|
464
|
+
const serializeAws_restJson1UpdateImageGenerationConfigurationCommand = async (input, context) => {
|
|
465
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
466
|
+
const headers = {
|
|
467
|
+
"content-type": "application/json",
|
|
468
|
+
};
|
|
469
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/updateImageGenerationConfiguration";
|
|
470
|
+
let body;
|
|
471
|
+
body = JSON.stringify({
|
|
472
|
+
...(input.ImageGenerationConfiguration !== undefined &&
|
|
473
|
+
input.ImageGenerationConfiguration !== null && {
|
|
474
|
+
ImageGenerationConfiguration: serializeAws_restJson1ImageGenerationConfiguration(input.ImageGenerationConfiguration, context),
|
|
475
|
+
}),
|
|
476
|
+
...(input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN }),
|
|
477
|
+
...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
|
|
478
|
+
});
|
|
479
|
+
return new protocol_http_1.HttpRequest({
|
|
480
|
+
protocol,
|
|
481
|
+
hostname,
|
|
482
|
+
port,
|
|
483
|
+
method: "POST",
|
|
484
|
+
headers,
|
|
485
|
+
path: resolvedPath,
|
|
486
|
+
body,
|
|
487
|
+
});
|
|
488
|
+
};
|
|
489
|
+
exports.serializeAws_restJson1UpdateImageGenerationConfigurationCommand = serializeAws_restJson1UpdateImageGenerationConfigurationCommand;
|
|
490
|
+
const serializeAws_restJson1UpdateNotificationConfigurationCommand = async (input, context) => {
|
|
491
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
492
|
+
const headers = {
|
|
493
|
+
"content-type": "application/json",
|
|
494
|
+
};
|
|
495
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/updateNotificationConfiguration";
|
|
496
|
+
let body;
|
|
497
|
+
body = JSON.stringify({
|
|
498
|
+
...(input.NotificationConfiguration !== undefined &&
|
|
499
|
+
input.NotificationConfiguration !== null && {
|
|
500
|
+
NotificationConfiguration: serializeAws_restJson1NotificationConfiguration(input.NotificationConfiguration, context),
|
|
501
|
+
}),
|
|
502
|
+
...(input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN }),
|
|
503
|
+
...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
|
|
504
|
+
});
|
|
505
|
+
return new protocol_http_1.HttpRequest({
|
|
506
|
+
protocol,
|
|
507
|
+
hostname,
|
|
508
|
+
port,
|
|
509
|
+
method: "POST",
|
|
510
|
+
headers,
|
|
511
|
+
path: resolvedPath,
|
|
512
|
+
body,
|
|
513
|
+
});
|
|
514
|
+
};
|
|
515
|
+
exports.serializeAws_restJson1UpdateNotificationConfigurationCommand = serializeAws_restJson1UpdateNotificationConfigurationCommand;
|
|
420
516
|
const serializeAws_restJson1UpdateSignalingChannelCommand = async (input, context) => {
|
|
421
517
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
422
518
|
const headers = {
|
|
@@ -673,6 +769,98 @@ const deserializeAws_restJson1DeleteStreamCommandError = async (output, context)
|
|
|
673
769
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
674
770
|
}
|
|
675
771
|
};
|
|
772
|
+
const deserializeAws_restJson1DescribeImageGenerationConfigurationCommand = async (output, context) => {
|
|
773
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
774
|
+
return deserializeAws_restJson1DescribeImageGenerationConfigurationCommandError(output, context);
|
|
775
|
+
}
|
|
776
|
+
const contents = {
|
|
777
|
+
$metadata: deserializeMetadata(output),
|
|
778
|
+
ImageGenerationConfiguration: undefined,
|
|
779
|
+
};
|
|
780
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
781
|
+
if (data.ImageGenerationConfiguration !== undefined && data.ImageGenerationConfiguration !== null) {
|
|
782
|
+
contents.ImageGenerationConfiguration = deserializeAws_restJson1ImageGenerationConfiguration(data.ImageGenerationConfiguration, context);
|
|
783
|
+
}
|
|
784
|
+
return Promise.resolve(contents);
|
|
785
|
+
};
|
|
786
|
+
exports.deserializeAws_restJson1DescribeImageGenerationConfigurationCommand = deserializeAws_restJson1DescribeImageGenerationConfigurationCommand;
|
|
787
|
+
const deserializeAws_restJson1DescribeImageGenerationConfigurationCommandError = async (output, context) => {
|
|
788
|
+
const parsedOutput = {
|
|
789
|
+
...output,
|
|
790
|
+
body: await parseBody(output.body, context),
|
|
791
|
+
};
|
|
792
|
+
let response;
|
|
793
|
+
let errorCode = "UnknownError";
|
|
794
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
795
|
+
switch (errorCode) {
|
|
796
|
+
case "AccessDeniedException":
|
|
797
|
+
case "com.amazonaws.kinesisvideo#AccessDeniedException":
|
|
798
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
799
|
+
case "ClientLimitExceededException":
|
|
800
|
+
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
801
|
+
throw await deserializeAws_restJson1ClientLimitExceededExceptionResponse(parsedOutput, context);
|
|
802
|
+
case "InvalidArgumentException":
|
|
803
|
+
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
804
|
+
throw await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
805
|
+
case "ResourceNotFoundException":
|
|
806
|
+
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
807
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
808
|
+
default:
|
|
809
|
+
const parsedBody = parsedOutput.body;
|
|
810
|
+
response = new KinesisVideoServiceException_1.KinesisVideoServiceException({
|
|
811
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
812
|
+
$fault: "client",
|
|
813
|
+
$metadata: deserializeMetadata(output),
|
|
814
|
+
});
|
|
815
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
816
|
+
}
|
|
817
|
+
};
|
|
818
|
+
const deserializeAws_restJson1DescribeNotificationConfigurationCommand = async (output, context) => {
|
|
819
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
820
|
+
return deserializeAws_restJson1DescribeNotificationConfigurationCommandError(output, context);
|
|
821
|
+
}
|
|
822
|
+
const contents = {
|
|
823
|
+
$metadata: deserializeMetadata(output),
|
|
824
|
+
NotificationConfiguration: undefined,
|
|
825
|
+
};
|
|
826
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
827
|
+
if (data.NotificationConfiguration !== undefined && data.NotificationConfiguration !== null) {
|
|
828
|
+
contents.NotificationConfiguration = deserializeAws_restJson1NotificationConfiguration(data.NotificationConfiguration, context);
|
|
829
|
+
}
|
|
830
|
+
return Promise.resolve(contents);
|
|
831
|
+
};
|
|
832
|
+
exports.deserializeAws_restJson1DescribeNotificationConfigurationCommand = deserializeAws_restJson1DescribeNotificationConfigurationCommand;
|
|
833
|
+
const deserializeAws_restJson1DescribeNotificationConfigurationCommandError = async (output, context) => {
|
|
834
|
+
const parsedOutput = {
|
|
835
|
+
...output,
|
|
836
|
+
body: await parseBody(output.body, context),
|
|
837
|
+
};
|
|
838
|
+
let response;
|
|
839
|
+
let errorCode = "UnknownError";
|
|
840
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
841
|
+
switch (errorCode) {
|
|
842
|
+
case "AccessDeniedException":
|
|
843
|
+
case "com.amazonaws.kinesisvideo#AccessDeniedException":
|
|
844
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
845
|
+
case "ClientLimitExceededException":
|
|
846
|
+
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
847
|
+
throw await deserializeAws_restJson1ClientLimitExceededExceptionResponse(parsedOutput, context);
|
|
848
|
+
case "InvalidArgumentException":
|
|
849
|
+
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
850
|
+
throw await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
851
|
+
case "ResourceNotFoundException":
|
|
852
|
+
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
853
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
854
|
+
default:
|
|
855
|
+
const parsedBody = parsedOutput.body;
|
|
856
|
+
response = new KinesisVideoServiceException_1.KinesisVideoServiceException({
|
|
857
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
858
|
+
$fault: "client",
|
|
859
|
+
$metadata: deserializeMetadata(output),
|
|
860
|
+
});
|
|
861
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
862
|
+
}
|
|
863
|
+
};
|
|
676
864
|
const deserializeAws_restJson1DescribeSignalingChannelCommand = async (output, context) => {
|
|
677
865
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
678
866
|
return deserializeAws_restJson1DescribeSignalingChannelCommandError(output, context);
|
|
@@ -1282,6 +1470,102 @@ const deserializeAws_restJson1UpdateDataRetentionCommandError = async (output, c
|
|
|
1282
1470
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1283
1471
|
}
|
|
1284
1472
|
};
|
|
1473
|
+
const deserializeAws_restJson1UpdateImageGenerationConfigurationCommand = async (output, context) => {
|
|
1474
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1475
|
+
return deserializeAws_restJson1UpdateImageGenerationConfigurationCommandError(output, context);
|
|
1476
|
+
}
|
|
1477
|
+
const contents = {
|
|
1478
|
+
$metadata: deserializeMetadata(output),
|
|
1479
|
+
};
|
|
1480
|
+
await collectBody(output.body, context);
|
|
1481
|
+
return Promise.resolve(contents);
|
|
1482
|
+
};
|
|
1483
|
+
exports.deserializeAws_restJson1UpdateImageGenerationConfigurationCommand = deserializeAws_restJson1UpdateImageGenerationConfigurationCommand;
|
|
1484
|
+
const deserializeAws_restJson1UpdateImageGenerationConfigurationCommandError = async (output, context) => {
|
|
1485
|
+
const parsedOutput = {
|
|
1486
|
+
...output,
|
|
1487
|
+
body: await parseBody(output.body, context),
|
|
1488
|
+
};
|
|
1489
|
+
let response;
|
|
1490
|
+
let errorCode = "UnknownError";
|
|
1491
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1492
|
+
switch (errorCode) {
|
|
1493
|
+
case "AccessDeniedException":
|
|
1494
|
+
case "com.amazonaws.kinesisvideo#AccessDeniedException":
|
|
1495
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1496
|
+
case "ClientLimitExceededException":
|
|
1497
|
+
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
1498
|
+
throw await deserializeAws_restJson1ClientLimitExceededExceptionResponse(parsedOutput, context);
|
|
1499
|
+
case "InvalidArgumentException":
|
|
1500
|
+
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
1501
|
+
throw await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1502
|
+
case "NoDataRetentionException":
|
|
1503
|
+
case "com.amazonaws.kinesisvideo#NoDataRetentionException":
|
|
1504
|
+
throw await deserializeAws_restJson1NoDataRetentionExceptionResponse(parsedOutput, context);
|
|
1505
|
+
case "ResourceInUseException":
|
|
1506
|
+
case "com.amazonaws.kinesisvideo#ResourceInUseException":
|
|
1507
|
+
throw await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1508
|
+
case "ResourceNotFoundException":
|
|
1509
|
+
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
1510
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1511
|
+
default:
|
|
1512
|
+
const parsedBody = parsedOutput.body;
|
|
1513
|
+
response = new KinesisVideoServiceException_1.KinesisVideoServiceException({
|
|
1514
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1515
|
+
$fault: "client",
|
|
1516
|
+
$metadata: deserializeMetadata(output),
|
|
1517
|
+
});
|
|
1518
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1519
|
+
}
|
|
1520
|
+
};
|
|
1521
|
+
const deserializeAws_restJson1UpdateNotificationConfigurationCommand = async (output, context) => {
|
|
1522
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1523
|
+
return deserializeAws_restJson1UpdateNotificationConfigurationCommandError(output, context);
|
|
1524
|
+
}
|
|
1525
|
+
const contents = {
|
|
1526
|
+
$metadata: deserializeMetadata(output),
|
|
1527
|
+
};
|
|
1528
|
+
await collectBody(output.body, context);
|
|
1529
|
+
return Promise.resolve(contents);
|
|
1530
|
+
};
|
|
1531
|
+
exports.deserializeAws_restJson1UpdateNotificationConfigurationCommand = deserializeAws_restJson1UpdateNotificationConfigurationCommand;
|
|
1532
|
+
const deserializeAws_restJson1UpdateNotificationConfigurationCommandError = async (output, context) => {
|
|
1533
|
+
const parsedOutput = {
|
|
1534
|
+
...output,
|
|
1535
|
+
body: await parseBody(output.body, context),
|
|
1536
|
+
};
|
|
1537
|
+
let response;
|
|
1538
|
+
let errorCode = "UnknownError";
|
|
1539
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1540
|
+
switch (errorCode) {
|
|
1541
|
+
case "AccessDeniedException":
|
|
1542
|
+
case "com.amazonaws.kinesisvideo#AccessDeniedException":
|
|
1543
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1544
|
+
case "ClientLimitExceededException":
|
|
1545
|
+
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
1546
|
+
throw await deserializeAws_restJson1ClientLimitExceededExceptionResponse(parsedOutput, context);
|
|
1547
|
+
case "InvalidArgumentException":
|
|
1548
|
+
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
1549
|
+
throw await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1550
|
+
case "NoDataRetentionException":
|
|
1551
|
+
case "com.amazonaws.kinesisvideo#NoDataRetentionException":
|
|
1552
|
+
throw await deserializeAws_restJson1NoDataRetentionExceptionResponse(parsedOutput, context);
|
|
1553
|
+
case "ResourceInUseException":
|
|
1554
|
+
case "com.amazonaws.kinesisvideo#ResourceInUseException":
|
|
1555
|
+
throw await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1556
|
+
case "ResourceNotFoundException":
|
|
1557
|
+
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
1558
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1559
|
+
default:
|
|
1560
|
+
const parsedBody = parsedOutput.body;
|
|
1561
|
+
response = new KinesisVideoServiceException_1.KinesisVideoServiceException({
|
|
1562
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1563
|
+
$fault: "client",
|
|
1564
|
+
$metadata: deserializeMetadata(output),
|
|
1565
|
+
});
|
|
1566
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1567
|
+
}
|
|
1568
|
+
};
|
|
1285
1569
|
const deserializeAws_restJson1UpdateSignalingChannelCommand = async (output, context) => {
|
|
1286
1570
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1287
1571
|
return deserializeAws_restJson1UpdateSignalingChannelCommandError(output, context);
|
|
@@ -1474,6 +1758,18 @@ const deserializeAws_restJson1InvalidResourceFormatExceptionResponse = async (pa
|
|
|
1474
1758
|
});
|
|
1475
1759
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1476
1760
|
};
|
|
1761
|
+
const deserializeAws_restJson1NoDataRetentionExceptionResponse = async (parsedOutput, context) => {
|
|
1762
|
+
const contents = {};
|
|
1763
|
+
const data = parsedOutput.body;
|
|
1764
|
+
if (data.Message !== undefined && data.Message !== null) {
|
|
1765
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1766
|
+
}
|
|
1767
|
+
const exception = new models_0_1.NoDataRetentionException({
|
|
1768
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1769
|
+
...contents,
|
|
1770
|
+
});
|
|
1771
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1772
|
+
};
|
|
1477
1773
|
const deserializeAws_restJson1NotAuthorizedExceptionResponse = async (parsedOutput, context) => {
|
|
1478
1774
|
const contents = {};
|
|
1479
1775
|
const data = parsedOutput.body;
|
|
@@ -1542,6 +1838,42 @@ const serializeAws_restJson1ChannelNameCondition = (input, context) => {
|
|
|
1542
1838
|
input.ComparisonValue !== null && { ComparisonValue: input.ComparisonValue }),
|
|
1543
1839
|
};
|
|
1544
1840
|
};
|
|
1841
|
+
const serializeAws_restJson1FormatConfig = (input, context) => {
|
|
1842
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1843
|
+
if (value === null) {
|
|
1844
|
+
return acc;
|
|
1845
|
+
}
|
|
1846
|
+
return {
|
|
1847
|
+
...acc,
|
|
1848
|
+
[key]: value,
|
|
1849
|
+
};
|
|
1850
|
+
}, {});
|
|
1851
|
+
};
|
|
1852
|
+
const serializeAws_restJson1ImageGenerationConfiguration = (input, context) => {
|
|
1853
|
+
return {
|
|
1854
|
+
...(input.DestinationConfig !== undefined &&
|
|
1855
|
+
input.DestinationConfig !== null && {
|
|
1856
|
+
DestinationConfig: serializeAws_restJson1ImageGenerationDestinationConfig(input.DestinationConfig, context),
|
|
1857
|
+
}),
|
|
1858
|
+
...(input.Format !== undefined && input.Format !== null && { Format: input.Format }),
|
|
1859
|
+
...(input.FormatConfig !== undefined &&
|
|
1860
|
+
input.FormatConfig !== null && { FormatConfig: serializeAws_restJson1FormatConfig(input.FormatConfig, context) }),
|
|
1861
|
+
...(input.HeightPixels !== undefined && input.HeightPixels !== null && { HeightPixels: input.HeightPixels }),
|
|
1862
|
+
...(input.ImageSelectorType !== undefined &&
|
|
1863
|
+
input.ImageSelectorType !== null && { ImageSelectorType: input.ImageSelectorType }),
|
|
1864
|
+
...(input.SamplingInterval !== undefined &&
|
|
1865
|
+
input.SamplingInterval !== null && { SamplingInterval: input.SamplingInterval }),
|
|
1866
|
+
...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
|
|
1867
|
+
...(input.WidthPixels !== undefined && input.WidthPixels !== null && { WidthPixels: input.WidthPixels }),
|
|
1868
|
+
};
|
|
1869
|
+
};
|
|
1870
|
+
const serializeAws_restJson1ImageGenerationDestinationConfig = (input, context) => {
|
|
1871
|
+
return {
|
|
1872
|
+
...(input.DestinationRegion !== undefined &&
|
|
1873
|
+
input.DestinationRegion !== null && { DestinationRegion: input.DestinationRegion }),
|
|
1874
|
+
...(input.Uri !== undefined && input.Uri !== null && { Uri: input.Uri }),
|
|
1875
|
+
};
|
|
1876
|
+
};
|
|
1545
1877
|
const serializeAws_restJson1ListOfProtocols = (input, context) => {
|
|
1546
1878
|
return input
|
|
1547
1879
|
.filter((e) => e != null)
|
|
@@ -1552,6 +1884,20 @@ const serializeAws_restJson1ListOfProtocols = (input, context) => {
|
|
|
1552
1884
|
return entry;
|
|
1553
1885
|
});
|
|
1554
1886
|
};
|
|
1887
|
+
const serializeAws_restJson1NotificationConfiguration = (input, context) => {
|
|
1888
|
+
return {
|
|
1889
|
+
...(input.DestinationConfig !== undefined &&
|
|
1890
|
+
input.DestinationConfig !== null && {
|
|
1891
|
+
DestinationConfig: serializeAws_restJson1NotificationDestinationConfig(input.DestinationConfig, context),
|
|
1892
|
+
}),
|
|
1893
|
+
...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
|
|
1894
|
+
};
|
|
1895
|
+
};
|
|
1896
|
+
const serializeAws_restJson1NotificationDestinationConfig = (input, context) => {
|
|
1897
|
+
return {
|
|
1898
|
+
...(input.Uri !== undefined && input.Uri !== null && { Uri: input.Uri }),
|
|
1899
|
+
};
|
|
1900
|
+
};
|
|
1555
1901
|
const serializeAws_restJson1ResourceTags = (input, context) => {
|
|
1556
1902
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1557
1903
|
if (value === null) {
|
|
@@ -1646,6 +1992,52 @@ const deserializeAws_restJson1ChannelInfoList = (output, context) => {
|
|
|
1646
1992
|
});
|
|
1647
1993
|
return retVal;
|
|
1648
1994
|
};
|
|
1995
|
+
const deserializeAws_restJson1FormatConfig = (output, context) => {
|
|
1996
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1997
|
+
if (value === null) {
|
|
1998
|
+
return acc;
|
|
1999
|
+
}
|
|
2000
|
+
return {
|
|
2001
|
+
...acc,
|
|
2002
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
2003
|
+
};
|
|
2004
|
+
}, {});
|
|
2005
|
+
};
|
|
2006
|
+
const deserializeAws_restJson1ImageGenerationConfiguration = (output, context) => {
|
|
2007
|
+
return {
|
|
2008
|
+
DestinationConfig: output.DestinationConfig !== undefined && output.DestinationConfig !== null
|
|
2009
|
+
? deserializeAws_restJson1ImageGenerationDestinationConfig(output.DestinationConfig, context)
|
|
2010
|
+
: undefined,
|
|
2011
|
+
Format: (0, smithy_client_1.expectString)(output.Format),
|
|
2012
|
+
FormatConfig: output.FormatConfig !== undefined && output.FormatConfig !== null
|
|
2013
|
+
? deserializeAws_restJson1FormatConfig(output.FormatConfig, context)
|
|
2014
|
+
: undefined,
|
|
2015
|
+
HeightPixels: (0, smithy_client_1.expectInt32)(output.HeightPixels),
|
|
2016
|
+
ImageSelectorType: (0, smithy_client_1.expectString)(output.ImageSelectorType),
|
|
2017
|
+
SamplingInterval: (0, smithy_client_1.expectInt32)(output.SamplingInterval),
|
|
2018
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2019
|
+
WidthPixels: (0, smithy_client_1.expectInt32)(output.WidthPixels),
|
|
2020
|
+
};
|
|
2021
|
+
};
|
|
2022
|
+
const deserializeAws_restJson1ImageGenerationDestinationConfig = (output, context) => {
|
|
2023
|
+
return {
|
|
2024
|
+
DestinationRegion: (0, smithy_client_1.expectString)(output.DestinationRegion),
|
|
2025
|
+
Uri: (0, smithy_client_1.expectString)(output.Uri),
|
|
2026
|
+
};
|
|
2027
|
+
};
|
|
2028
|
+
const deserializeAws_restJson1NotificationConfiguration = (output, context) => {
|
|
2029
|
+
return {
|
|
2030
|
+
DestinationConfig: output.DestinationConfig !== undefined && output.DestinationConfig !== null
|
|
2031
|
+
? deserializeAws_restJson1NotificationDestinationConfig(output.DestinationConfig, context)
|
|
2032
|
+
: undefined,
|
|
2033
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2034
|
+
};
|
|
2035
|
+
};
|
|
2036
|
+
const deserializeAws_restJson1NotificationDestinationConfig = (output, context) => {
|
|
2037
|
+
return {
|
|
2038
|
+
Uri: (0, smithy_client_1.expectString)(output.Uri),
|
|
2039
|
+
};
|
|
2040
|
+
};
|
|
1649
2041
|
const deserializeAws_restJson1ResourceEndpointList = (output, context) => {
|
|
1650
2042
|
const retVal = (output || [])
|
|
1651
2043
|
.filter((e) => e != null)
|
package/dist-es/KinesisVideo.js
CHANGED
|
@@ -3,6 +3,8 @@ import { CreateSignalingChannelCommand, } from "./commands/CreateSignalingChanne
|
|
|
3
3
|
import { CreateStreamCommand, } from "./commands/CreateStreamCommand";
|
|
4
4
|
import { DeleteSignalingChannelCommand, } from "./commands/DeleteSignalingChannelCommand";
|
|
5
5
|
import { DeleteStreamCommand, } from "./commands/DeleteStreamCommand";
|
|
6
|
+
import { DescribeImageGenerationConfigurationCommand, } from "./commands/DescribeImageGenerationConfigurationCommand";
|
|
7
|
+
import { DescribeNotificationConfigurationCommand, } from "./commands/DescribeNotificationConfigurationCommand";
|
|
6
8
|
import { DescribeSignalingChannelCommand, } from "./commands/DescribeSignalingChannelCommand";
|
|
7
9
|
import { DescribeStreamCommand, } from "./commands/DescribeStreamCommand";
|
|
8
10
|
import { GetDataEndpointCommand, } from "./commands/GetDataEndpointCommand";
|
|
@@ -16,6 +18,8 @@ import { TagStreamCommand } from "./commands/TagStreamCommand";
|
|
|
16
18
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
17
19
|
import { UntagStreamCommand } from "./commands/UntagStreamCommand";
|
|
18
20
|
import { UpdateDataRetentionCommand, } from "./commands/UpdateDataRetentionCommand";
|
|
21
|
+
import { UpdateImageGenerationConfigurationCommand, } from "./commands/UpdateImageGenerationConfigurationCommand";
|
|
22
|
+
import { UpdateNotificationConfigurationCommand, } from "./commands/UpdateNotificationConfigurationCommand";
|
|
19
23
|
import { UpdateSignalingChannelCommand, } from "./commands/UpdateSignalingChannelCommand";
|
|
20
24
|
import { UpdateStreamCommand, } from "./commands/UpdateStreamCommand";
|
|
21
25
|
import { KinesisVideoClient } from "./KinesisVideoClient";
|
|
@@ -80,6 +84,34 @@ var KinesisVideo = (function (_super) {
|
|
|
80
84
|
return this.send(command, optionsOrCb);
|
|
81
85
|
}
|
|
82
86
|
};
|
|
87
|
+
KinesisVideo.prototype.describeImageGenerationConfiguration = function (args, optionsOrCb, cb) {
|
|
88
|
+
var command = new DescribeImageGenerationConfigurationCommand(args);
|
|
89
|
+
if (typeof optionsOrCb === "function") {
|
|
90
|
+
this.send(command, optionsOrCb);
|
|
91
|
+
}
|
|
92
|
+
else if (typeof cb === "function") {
|
|
93
|
+
if (typeof optionsOrCb !== "object")
|
|
94
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
95
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
return this.send(command, optionsOrCb);
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
KinesisVideo.prototype.describeNotificationConfiguration = function (args, optionsOrCb, cb) {
|
|
102
|
+
var command = new DescribeNotificationConfigurationCommand(args);
|
|
103
|
+
if (typeof optionsOrCb === "function") {
|
|
104
|
+
this.send(command, optionsOrCb);
|
|
105
|
+
}
|
|
106
|
+
else if (typeof cb === "function") {
|
|
107
|
+
if (typeof optionsOrCb !== "object")
|
|
108
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
109
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
return this.send(command, optionsOrCb);
|
|
113
|
+
}
|
|
114
|
+
};
|
|
83
115
|
KinesisVideo.prototype.describeSignalingChannel = function (args, optionsOrCb, cb) {
|
|
84
116
|
var command = new DescribeSignalingChannelCommand(args);
|
|
85
117
|
if (typeof optionsOrCb === "function") {
|
|
@@ -262,6 +294,34 @@ var KinesisVideo = (function (_super) {
|
|
|
262
294
|
return this.send(command, optionsOrCb);
|
|
263
295
|
}
|
|
264
296
|
};
|
|
297
|
+
KinesisVideo.prototype.updateImageGenerationConfiguration = function (args, optionsOrCb, cb) {
|
|
298
|
+
var command = new UpdateImageGenerationConfigurationCommand(args);
|
|
299
|
+
if (typeof optionsOrCb === "function") {
|
|
300
|
+
this.send(command, optionsOrCb);
|
|
301
|
+
}
|
|
302
|
+
else if (typeof cb === "function") {
|
|
303
|
+
if (typeof optionsOrCb !== "object")
|
|
304
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
305
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
306
|
+
}
|
|
307
|
+
else {
|
|
308
|
+
return this.send(command, optionsOrCb);
|
|
309
|
+
}
|
|
310
|
+
};
|
|
311
|
+
KinesisVideo.prototype.updateNotificationConfiguration = function (args, optionsOrCb, cb) {
|
|
312
|
+
var command = new UpdateNotificationConfigurationCommand(args);
|
|
313
|
+
if (typeof optionsOrCb === "function") {
|
|
314
|
+
this.send(command, optionsOrCb);
|
|
315
|
+
}
|
|
316
|
+
else if (typeof cb === "function") {
|
|
317
|
+
if (typeof optionsOrCb !== "object")
|
|
318
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
319
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
320
|
+
}
|
|
321
|
+
else {
|
|
322
|
+
return this.send(command, optionsOrCb);
|
|
323
|
+
}
|
|
324
|
+
};
|
|
265
325
|
KinesisVideo.prototype.updateSignalingChannel = function (args, optionsOrCb, cb) {
|
|
266
326
|
var command = new UpdateSignalingChannelCommand(args);
|
|
267
327
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DescribeImageGenerationConfigurationInput, DescribeImageGenerationConfigurationOutput, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DescribeImageGenerationConfigurationCommand, serializeAws_restJson1DescribeImageGenerationConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var DescribeImageGenerationConfigurationCommand = (function (_super) {
|
|
7
|
+
__extends(DescribeImageGenerationConfigurationCommand, _super);
|
|
8
|
+
function DescribeImageGenerationConfigurationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DescribeImageGenerationConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "KinesisVideoClient";
|
|
18
|
+
var commandName = "DescribeImageGenerationConfigurationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DescribeImageGenerationConfigurationInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DescribeImageGenerationConfigurationOutput.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DescribeImageGenerationConfigurationCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1DescribeImageGenerationConfigurationCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DescribeImageGenerationConfigurationCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1DescribeImageGenerationConfigurationCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DescribeImageGenerationConfigurationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribeImageGenerationConfigurationCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DescribeNotificationConfigurationInput, DescribeNotificationConfigurationOutput } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DescribeNotificationConfigurationCommand, serializeAws_restJson1DescribeNotificationConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var DescribeNotificationConfigurationCommand = (function (_super) {
|
|
7
|
+
__extends(DescribeNotificationConfigurationCommand, _super);
|
|
8
|
+
function DescribeNotificationConfigurationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DescribeNotificationConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "KinesisVideoClient";
|
|
18
|
+
var commandName = "DescribeNotificationConfigurationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DescribeNotificationConfigurationInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DescribeNotificationConfigurationOutput.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DescribeNotificationConfigurationCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1DescribeNotificationConfigurationCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DescribeNotificationConfigurationCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1DescribeNotificationConfigurationCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DescribeNotificationConfigurationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribeNotificationConfigurationCommand };
|