@aws-sdk/client-kinesis-video 3.359.0 → 3.361.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 +16 -0
- package/dist-cjs/KinesisVideo.js +4 -0
- package/dist-cjs/commands/DeleteEdgeConfigurationCommand.js +46 -0
- package/dist-cjs/commands/ListEdgeAgentConfigurationsCommand.js +47 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +38 -15
- package/dist-cjs/pagination/ListEdgeAgentConfigurationsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +172 -2
- package/dist-es/KinesisVideo.js +4 -0
- package/dist-es/commands/DeleteEdgeConfigurationCommand.js +42 -0
- package/dist-es/commands/ListEdgeAgentConfigurationsCommand.js +43 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +34 -13
- package/dist-es/pagination/ListEdgeAgentConfigurationsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +166 -0
- package/dist-types/KinesisVideo.d.ts +14 -0
- package/dist-types/KinesisVideoClient.d.ts +4 -2
- package/dist-types/commands/DeleteEdgeConfigurationCommand.d.ts +91 -0
- package/dist-types/commands/DescribeEdgeConfigurationCommand.d.ts +20 -4
- package/dist-types/commands/DescribeMappedResourceConfigurationCommand.d.ts +1 -2
- package/dist-types/commands/ListEdgeAgentConfigurationsCommand.d.ts +123 -0
- package/dist-types/commands/StartEdgeConfigurationUpdateCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +217 -32
- package/dist-types/pagination/ListEdgeAgentConfigurationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/KinesisVideo.d.ts +34 -0
- package/dist-types/ts3.4/KinesisVideoClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/DeleteEdgeConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListEdgeAgentConfigurationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +76 -15
- package/dist-types/ts3.4/pagination/ListEdgeAgentConfigurationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -218,6 +218,14 @@ CreateStream
|
|
|
218
218
|
|
|
219
219
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis-video/classes/createstreamcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis-video/interfaces/createstreamcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis-video/interfaces/createstreamcommandoutput.html)
|
|
220
220
|
|
|
221
|
+
</details>
|
|
222
|
+
<details>
|
|
223
|
+
<summary>
|
|
224
|
+
DeleteEdgeConfiguration
|
|
225
|
+
</summary>
|
|
226
|
+
|
|
227
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis-video/classes/deleteedgeconfigurationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis-video/interfaces/deleteedgeconfigurationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis-video/interfaces/deleteedgeconfigurationcommandoutput.html)
|
|
228
|
+
|
|
221
229
|
</details>
|
|
222
230
|
<details>
|
|
223
231
|
<summary>
|
|
@@ -306,6 +314,14 @@ GetSignalingChannelEndpoint
|
|
|
306
314
|
|
|
307
315
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis-video/classes/getsignalingchannelendpointcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis-video/interfaces/getsignalingchannelendpointcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis-video/interfaces/getsignalingchannelendpointcommandoutput.html)
|
|
308
316
|
|
|
317
|
+
</details>
|
|
318
|
+
<details>
|
|
319
|
+
<summary>
|
|
320
|
+
ListEdgeAgentConfigurations
|
|
321
|
+
</summary>
|
|
322
|
+
|
|
323
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis-video/classes/listedgeagentconfigurationscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis-video/interfaces/listedgeagentconfigurationscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis-video/interfaces/listedgeagentconfigurationscommandoutput.html)
|
|
324
|
+
|
|
309
325
|
</details>
|
|
310
326
|
<details>
|
|
311
327
|
<summary>
|
package/dist-cjs/KinesisVideo.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.KinesisVideo = void 0;
|
|
|
4
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
5
|
const CreateSignalingChannelCommand_1 = require("./commands/CreateSignalingChannelCommand");
|
|
6
6
|
const CreateStreamCommand_1 = require("./commands/CreateStreamCommand");
|
|
7
|
+
const DeleteEdgeConfigurationCommand_1 = require("./commands/DeleteEdgeConfigurationCommand");
|
|
7
8
|
const DeleteSignalingChannelCommand_1 = require("./commands/DeleteSignalingChannelCommand");
|
|
8
9
|
const DeleteStreamCommand_1 = require("./commands/DeleteStreamCommand");
|
|
9
10
|
const DescribeEdgeConfigurationCommand_1 = require("./commands/DescribeEdgeConfigurationCommand");
|
|
@@ -15,6 +16,7 @@ const DescribeSignalingChannelCommand_1 = require("./commands/DescribeSignalingC
|
|
|
15
16
|
const DescribeStreamCommand_1 = require("./commands/DescribeStreamCommand");
|
|
16
17
|
const GetDataEndpointCommand_1 = require("./commands/GetDataEndpointCommand");
|
|
17
18
|
const GetSignalingChannelEndpointCommand_1 = require("./commands/GetSignalingChannelEndpointCommand");
|
|
19
|
+
const ListEdgeAgentConfigurationsCommand_1 = require("./commands/ListEdgeAgentConfigurationsCommand");
|
|
18
20
|
const ListSignalingChannelsCommand_1 = require("./commands/ListSignalingChannelsCommand");
|
|
19
21
|
const ListStreamsCommand_1 = require("./commands/ListStreamsCommand");
|
|
20
22
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
@@ -34,6 +36,7 @@ const KinesisVideoClient_1 = require("./KinesisVideoClient");
|
|
|
34
36
|
const commands = {
|
|
35
37
|
CreateSignalingChannelCommand: CreateSignalingChannelCommand_1.CreateSignalingChannelCommand,
|
|
36
38
|
CreateStreamCommand: CreateStreamCommand_1.CreateStreamCommand,
|
|
39
|
+
DeleteEdgeConfigurationCommand: DeleteEdgeConfigurationCommand_1.DeleteEdgeConfigurationCommand,
|
|
37
40
|
DeleteSignalingChannelCommand: DeleteSignalingChannelCommand_1.DeleteSignalingChannelCommand,
|
|
38
41
|
DeleteStreamCommand: DeleteStreamCommand_1.DeleteStreamCommand,
|
|
39
42
|
DescribeEdgeConfigurationCommand: DescribeEdgeConfigurationCommand_1.DescribeEdgeConfigurationCommand,
|
|
@@ -45,6 +48,7 @@ const commands = {
|
|
|
45
48
|
DescribeStreamCommand: DescribeStreamCommand_1.DescribeStreamCommand,
|
|
46
49
|
GetDataEndpointCommand: GetDataEndpointCommand_1.GetDataEndpointCommand,
|
|
47
50
|
GetSignalingChannelEndpointCommand: GetSignalingChannelEndpointCommand_1.GetSignalingChannelEndpointCommand,
|
|
51
|
+
ListEdgeAgentConfigurationsCommand: ListEdgeAgentConfigurationsCommand_1.ListEdgeAgentConfigurationsCommand,
|
|
48
52
|
ListSignalingChannelsCommand: ListSignalingChannelsCommand_1.ListSignalingChannelsCommand,
|
|
49
53
|
ListStreamsCommand: ListStreamsCommand_1.ListStreamsCommand,
|
|
50
54
|
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteEdgeConfigurationCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class DeleteEdgeConfigurationCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteEdgeConfigurationCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "KinesisVideoClient";
|
|
28
|
+
const commandName = "DeleteEdgeConfigurationCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.se_DeleteEdgeConfigurationCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.de_DeleteEdgeConfigurationCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DeleteEdgeConfigurationCommand = DeleteEdgeConfigurationCommand;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListEdgeAgentConfigurationsCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class ListEdgeAgentConfigurationsCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListEdgeAgentConfigurationsCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "KinesisVideoClient";
|
|
29
|
+
const commandName = "ListEdgeAgentConfigurationsCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: models_0_1.ListEdgeAgentConfigurationsOutputFilterSensitiveLog,
|
|
36
|
+
};
|
|
37
|
+
const { requestHandler } = configuration;
|
|
38
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
39
|
+
}
|
|
40
|
+
serialize(input, context) {
|
|
41
|
+
return (0, Aws_restJson1_1.se_ListEdgeAgentConfigurationsCommand)(input, context);
|
|
42
|
+
}
|
|
43
|
+
deserialize(output, context) {
|
|
44
|
+
return (0, Aws_restJson1_1.de_ListEdgeAgentConfigurationsCommand)(output, context);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.ListEdgeAgentConfigurationsCommand = ListEdgeAgentConfigurationsCommand;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./CreateSignalingChannelCommand"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./CreateStreamCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./DeleteEdgeConfigurationCommand"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./DeleteSignalingChannelCommand"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./DeleteStreamCommand"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./DescribeEdgeConfigurationCommand"), exports);
|
|
@@ -14,6 +15,7 @@ tslib_1.__exportStar(require("./DescribeSignalingChannelCommand"), exports);
|
|
|
14
15
|
tslib_1.__exportStar(require("./DescribeStreamCommand"), exports);
|
|
15
16
|
tslib_1.__exportStar(require("./GetDataEndpointCommand"), exports);
|
|
16
17
|
tslib_1.__exportStar(require("./GetSignalingChannelEndpointCommand"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./ListEdgeAgentConfigurationsCommand"), exports);
|
|
17
19
|
tslib_1.__exportStar(require("./ListSignalingChannelsCommand"), exports);
|
|
18
20
|
tslib_1.__exportStar(require("./ListStreamsCommand"), exports);
|
|
19
21
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const q = "
|
|
5
|
-
const a =
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://kinesisvideo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://kinesisvideo-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://kinesisvideo.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://kinesisvideo.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StartEdgeConfigurationUpdateOutputFilterSensitiveLog = exports.StartEdgeConfigurationUpdateInputFilterSensitiveLog = exports.DescribeEdgeConfigurationOutputFilterSensitiveLog = exports.EdgeConfigFilterSensitiveLog = exports.RecorderConfigFilterSensitiveLog = exports.MediaSourceConfigFilterSensitiveLog = exports.UpdateDataRetentionOperation = exports.NoDataRetentionException = exports.InvalidResourceFormatException = exports.MediaStorageConfigurationStatus = exports.ImageSelectorType = exports.FormatConfigKey = exports.Format = exports.
|
|
3
|
+
exports.StartEdgeConfigurationUpdateOutputFilterSensitiveLog = exports.StartEdgeConfigurationUpdateInputFilterSensitiveLog = exports.ListEdgeAgentConfigurationsOutputFilterSensitiveLog = exports.ListEdgeAgentConfigurationsEdgeConfigFilterSensitiveLog = exports.DescribeEdgeConfigurationOutputFilterSensitiveLog = exports.EdgeConfigFilterSensitiveLog = exports.RecorderConfigFilterSensitiveLog = exports.MediaSourceConfigFilterSensitiveLog = exports.UpdateDataRetentionOperation = exports.NoDataRetentionException = exports.InvalidResourceFormatException = exports.MediaStorageConfigurationStatus = exports.ImageSelectorType = exports.FormatConfigKey = exports.Format = exports.SyncStatus = exports.MediaUriType = exports.UploaderStatus = exports.RecorderStatus = exports.StrategyOnFullSize = exports.NotAuthorizedException = exports.VersionMismatchException = exports.StreamEdgeConfigurationNotFoundException = exports.ResourceNotFoundException = exports.InvalidDeviceException = exports.DeviceStreamLimitExceededException = exports.TagsPerResourceExceededLimitException = exports.ResourceInUseException = exports.InvalidArgumentException = exports.ConfigurationStatus = exports.ClientLimitExceededException = exports.ChannelRole = exports.ChannelProtocol = exports.ComparisonOperator = exports.ChannelType = exports.Status = exports.APIName = exports.AccountStreamLimitExceededException = exports.AccountChannelLimitExceededException = exports.AccessDeniedException = void 0;
|
|
4
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
5
|
const KinesisVideoServiceException_1 = require("./KinesisVideoServiceException");
|
|
6
6
|
class AccessDeniedException extends KinesisVideoServiceException_1.KinesisVideoServiceException {
|
|
@@ -179,6 +179,20 @@ class ResourceNotFoundException extends KinesisVideoServiceException_1.KinesisVi
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
182
|
+
class StreamEdgeConfigurationNotFoundException extends KinesisVideoServiceException_1.KinesisVideoServiceException {
|
|
183
|
+
constructor(opts) {
|
|
184
|
+
super({
|
|
185
|
+
name: "StreamEdgeConfigurationNotFoundException",
|
|
186
|
+
$fault: "client",
|
|
187
|
+
...opts,
|
|
188
|
+
});
|
|
189
|
+
this.name = "StreamEdgeConfigurationNotFoundException";
|
|
190
|
+
this.$fault = "client";
|
|
191
|
+
Object.setPrototypeOf(this, StreamEdgeConfigurationNotFoundException.prototype);
|
|
192
|
+
this.Message = opts.Message;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
exports.StreamEdgeConfigurationNotFoundException = StreamEdgeConfigurationNotFoundException;
|
|
182
196
|
class VersionMismatchException extends KinesisVideoServiceException_1.KinesisVideoServiceException {
|
|
183
197
|
constructor(opts) {
|
|
184
198
|
super({
|
|
@@ -211,6 +225,16 @@ exports.StrategyOnFullSize = {
|
|
|
211
225
|
DELETE_OLDEST_MEDIA: "DELETE_OLDEST_MEDIA",
|
|
212
226
|
DENY_NEW_MEDIA: "DENY_NEW_MEDIA",
|
|
213
227
|
};
|
|
228
|
+
exports.RecorderStatus = {
|
|
229
|
+
SUCCESS: "SUCCESS",
|
|
230
|
+
SYSTEM_ERROR: "SYSTEM_ERROR",
|
|
231
|
+
USER_ERROR: "USER_ERROR",
|
|
232
|
+
};
|
|
233
|
+
exports.UploaderStatus = {
|
|
234
|
+
SUCCESS: "SUCCESS",
|
|
235
|
+
SYSTEM_ERROR: "SYSTEM_ERROR",
|
|
236
|
+
USER_ERROR: "USER_ERROR",
|
|
237
|
+
};
|
|
214
238
|
exports.MediaUriType = {
|
|
215
239
|
FILE_URI: "FILE_URI",
|
|
216
240
|
RTSP_URI: "RTSP_URI",
|
|
@@ -219,24 +243,11 @@ exports.SyncStatus = {
|
|
|
219
243
|
ACKNOWLEDGED: "ACKNOWLEDGED",
|
|
220
244
|
DELETE_FAILED: "DELETE_FAILED",
|
|
221
245
|
DELETING: "DELETING",
|
|
246
|
+
DELETING_ACKNOWLEDGED: "DELETING_ACKNOWLEDGED",
|
|
222
247
|
IN_SYNC: "IN_SYNC",
|
|
223
248
|
SYNCING: "SYNCING",
|
|
224
249
|
SYNC_FAILED: "SYNC_FAILED",
|
|
225
250
|
};
|
|
226
|
-
class StreamEdgeConfigurationNotFoundException extends KinesisVideoServiceException_1.KinesisVideoServiceException {
|
|
227
|
-
constructor(opts) {
|
|
228
|
-
super({
|
|
229
|
-
name: "StreamEdgeConfigurationNotFoundException",
|
|
230
|
-
$fault: "client",
|
|
231
|
-
...opts,
|
|
232
|
-
});
|
|
233
|
-
this.name = "StreamEdgeConfigurationNotFoundException";
|
|
234
|
-
this.$fault = "client";
|
|
235
|
-
Object.setPrototypeOf(this, StreamEdgeConfigurationNotFoundException.prototype);
|
|
236
|
-
this.Message = opts.Message;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
exports.StreamEdgeConfigurationNotFoundException = StreamEdgeConfigurationNotFoundException;
|
|
240
251
|
exports.Format = {
|
|
241
252
|
JPEG: "JPEG",
|
|
242
253
|
PNG: "PNG",
|
|
@@ -304,6 +315,18 @@ const DescribeEdgeConfigurationOutputFilterSensitiveLog = (obj) => ({
|
|
|
304
315
|
...(obj.EdgeConfig && { EdgeConfig: (0, exports.EdgeConfigFilterSensitiveLog)(obj.EdgeConfig) }),
|
|
305
316
|
});
|
|
306
317
|
exports.DescribeEdgeConfigurationOutputFilterSensitiveLog = DescribeEdgeConfigurationOutputFilterSensitiveLog;
|
|
318
|
+
const ListEdgeAgentConfigurationsEdgeConfigFilterSensitiveLog = (obj) => ({
|
|
319
|
+
...obj,
|
|
320
|
+
...(obj.EdgeConfig && { EdgeConfig: (0, exports.EdgeConfigFilterSensitiveLog)(obj.EdgeConfig) }),
|
|
321
|
+
});
|
|
322
|
+
exports.ListEdgeAgentConfigurationsEdgeConfigFilterSensitiveLog = ListEdgeAgentConfigurationsEdgeConfigFilterSensitiveLog;
|
|
323
|
+
const ListEdgeAgentConfigurationsOutputFilterSensitiveLog = (obj) => ({
|
|
324
|
+
...obj,
|
|
325
|
+
...(obj.EdgeConfigs && {
|
|
326
|
+
EdgeConfigs: obj.EdgeConfigs.map((item) => (0, exports.ListEdgeAgentConfigurationsEdgeConfigFilterSensitiveLog)(item)),
|
|
327
|
+
}),
|
|
328
|
+
});
|
|
329
|
+
exports.ListEdgeAgentConfigurationsOutputFilterSensitiveLog = ListEdgeAgentConfigurationsOutputFilterSensitiveLog;
|
|
307
330
|
const StartEdgeConfigurationUpdateInputFilterSensitiveLog = (obj) => ({
|
|
308
331
|
...obj,
|
|
309
332
|
...(obj.EdgeConfig && { EdgeConfig: (0, exports.EdgeConfigFilterSensitiveLog)(obj.EdgeConfig) }),
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListEdgeAgentConfigurations = void 0;
|
|
4
|
+
const ListEdgeAgentConfigurationsCommand_1 = require("../commands/ListEdgeAgentConfigurationsCommand");
|
|
5
|
+
const KinesisVideoClient_1 = require("../KinesisVideoClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListEdgeAgentConfigurationsCommand_1.ListEdgeAgentConfigurationsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListEdgeAgentConfigurations(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.NextToken = token;
|
|
15
|
+
input["MaxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof KinesisVideoClient_1.KinesisVideoClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected KinesisVideo | KinesisVideoClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.NextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListEdgeAgentConfigurations = paginateListEdgeAgentConfigurations;
|
|
@@ -3,5 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./DescribeMappedResourceConfigurationPaginator"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./ListEdgeAgentConfigurationsPaginator"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./ListSignalingChannelsPaginator"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./ListStreamsPaginator"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_UpdateStreamCommand = exports.de_UpdateSignalingChannelCommand = exports.de_UpdateNotificationConfigurationCommand = exports.de_UpdateMediaStorageConfigurationCommand = exports.de_UpdateImageGenerationConfigurationCommand = exports.de_UpdateDataRetentionCommand = void 0;
|
|
3
|
+
exports.de_StartEdgeConfigurationUpdateCommand = exports.de_ListTagsForStreamCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStreamsCommand = exports.de_ListSignalingChannelsCommand = exports.de_ListEdgeAgentConfigurationsCommand = exports.de_GetSignalingChannelEndpointCommand = exports.de_GetDataEndpointCommand = exports.de_DescribeStreamCommand = exports.de_DescribeSignalingChannelCommand = exports.de_DescribeNotificationConfigurationCommand = exports.de_DescribeMediaStorageConfigurationCommand = exports.de_DescribeMappedResourceConfigurationCommand = exports.de_DescribeImageGenerationConfigurationCommand = exports.de_DescribeEdgeConfigurationCommand = exports.de_DeleteStreamCommand = exports.de_DeleteSignalingChannelCommand = exports.de_DeleteEdgeConfigurationCommand = exports.de_CreateStreamCommand = exports.de_CreateSignalingChannelCommand = exports.se_UpdateStreamCommand = exports.se_UpdateSignalingChannelCommand = exports.se_UpdateNotificationConfigurationCommand = exports.se_UpdateMediaStorageConfigurationCommand = exports.se_UpdateImageGenerationConfigurationCommand = exports.se_UpdateDataRetentionCommand = exports.se_UntagStreamCommand = exports.se_UntagResourceCommand = exports.se_TagStreamCommand = exports.se_TagResourceCommand = exports.se_StartEdgeConfigurationUpdateCommand = exports.se_ListTagsForStreamCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStreamsCommand = exports.se_ListSignalingChannelsCommand = exports.se_ListEdgeAgentConfigurationsCommand = exports.se_GetSignalingChannelEndpointCommand = exports.se_GetDataEndpointCommand = exports.se_DescribeStreamCommand = exports.se_DescribeSignalingChannelCommand = exports.se_DescribeNotificationConfigurationCommand = exports.se_DescribeMediaStorageConfigurationCommand = exports.se_DescribeMappedResourceConfigurationCommand = exports.se_DescribeImageGenerationConfigurationCommand = exports.se_DescribeEdgeConfigurationCommand = exports.se_DeleteStreamCommand = exports.se_DeleteSignalingChannelCommand = exports.se_DeleteEdgeConfigurationCommand = exports.se_CreateStreamCommand = exports.se_CreateSignalingChannelCommand = void 0;
|
|
4
|
+
exports.de_UpdateStreamCommand = exports.de_UpdateSignalingChannelCommand = exports.de_UpdateNotificationConfigurationCommand = exports.de_UpdateMediaStorageConfigurationCommand = exports.de_UpdateImageGenerationConfigurationCommand = exports.de_UpdateDataRetentionCommand = exports.de_UntagStreamCommand = exports.de_UntagResourceCommand = exports.de_TagStreamCommand = exports.de_TagResourceCommand = void 0;
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
7
|
const KinesisVideoServiceException_1 = require("../models/KinesisVideoServiceException");
|
|
@@ -56,6 +56,28 @@ const se_CreateStreamCommand = async (input, context) => {
|
|
|
56
56
|
});
|
|
57
57
|
};
|
|
58
58
|
exports.se_CreateStreamCommand = se_CreateStreamCommand;
|
|
59
|
+
const se_DeleteEdgeConfigurationCommand = async (input, context) => {
|
|
60
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
61
|
+
const headers = {
|
|
62
|
+
"content-type": "application/json",
|
|
63
|
+
};
|
|
64
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteEdgeConfiguration";
|
|
65
|
+
let body;
|
|
66
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
67
|
+
StreamARN: [],
|
|
68
|
+
StreamName: [],
|
|
69
|
+
}));
|
|
70
|
+
return new protocol_http_1.HttpRequest({
|
|
71
|
+
protocol,
|
|
72
|
+
hostname,
|
|
73
|
+
port,
|
|
74
|
+
method: "POST",
|
|
75
|
+
headers,
|
|
76
|
+
path: resolvedPath,
|
|
77
|
+
body,
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
exports.se_DeleteEdgeConfigurationCommand = se_DeleteEdgeConfigurationCommand;
|
|
59
81
|
const se_DeleteSignalingChannelCommand = async (input, context) => {
|
|
60
82
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
61
83
|
const headers = {
|
|
@@ -301,6 +323,29 @@ const se_GetSignalingChannelEndpointCommand = async (input, context) => {
|
|
|
301
323
|
});
|
|
302
324
|
};
|
|
303
325
|
exports.se_GetSignalingChannelEndpointCommand = se_GetSignalingChannelEndpointCommand;
|
|
326
|
+
const se_ListEdgeAgentConfigurationsCommand = async (input, context) => {
|
|
327
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
328
|
+
const headers = {
|
|
329
|
+
"content-type": "application/json",
|
|
330
|
+
};
|
|
331
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listEdgeAgentConfigurations";
|
|
332
|
+
let body;
|
|
333
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
334
|
+
HubDeviceArn: [],
|
|
335
|
+
MaxResults: [],
|
|
336
|
+
NextToken: [],
|
|
337
|
+
}));
|
|
338
|
+
return new protocol_http_1.HttpRequest({
|
|
339
|
+
protocol,
|
|
340
|
+
hostname,
|
|
341
|
+
port,
|
|
342
|
+
method: "POST",
|
|
343
|
+
headers,
|
|
344
|
+
path: resolvedPath,
|
|
345
|
+
body,
|
|
346
|
+
});
|
|
347
|
+
};
|
|
348
|
+
exports.se_ListEdgeAgentConfigurationsCommand = se_ListEdgeAgentConfigurationsCommand;
|
|
304
349
|
const se_ListSignalingChannelsCommand = async (input, context) => {
|
|
305
350
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
306
351
|
const headers = {
|
|
@@ -747,6 +792,48 @@ const de_CreateStreamCommandError = async (output, context) => {
|
|
|
747
792
|
});
|
|
748
793
|
}
|
|
749
794
|
};
|
|
795
|
+
const de_DeleteEdgeConfigurationCommand = async (output, context) => {
|
|
796
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
797
|
+
return de_DeleteEdgeConfigurationCommandError(output, context);
|
|
798
|
+
}
|
|
799
|
+
const contents = (0, smithy_client_1.map)({
|
|
800
|
+
$metadata: deserializeMetadata(output),
|
|
801
|
+
});
|
|
802
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
803
|
+
return contents;
|
|
804
|
+
};
|
|
805
|
+
exports.de_DeleteEdgeConfigurationCommand = de_DeleteEdgeConfigurationCommand;
|
|
806
|
+
const de_DeleteEdgeConfigurationCommandError = async (output, context) => {
|
|
807
|
+
const parsedOutput = {
|
|
808
|
+
...output,
|
|
809
|
+
body: await parseErrorBody(output.body, context),
|
|
810
|
+
};
|
|
811
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
812
|
+
switch (errorCode) {
|
|
813
|
+
case "AccessDeniedException":
|
|
814
|
+
case "com.amazonaws.kinesisvideo#AccessDeniedException":
|
|
815
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
816
|
+
case "ClientLimitExceededException":
|
|
817
|
+
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
818
|
+
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
819
|
+
case "InvalidArgumentException":
|
|
820
|
+
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
821
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
822
|
+
case "ResourceNotFoundException":
|
|
823
|
+
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
824
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
825
|
+
case "StreamEdgeConfigurationNotFoundException":
|
|
826
|
+
case "com.amazonaws.kinesisvideo#StreamEdgeConfigurationNotFoundException":
|
|
827
|
+
throw await de_StreamEdgeConfigurationNotFoundExceptionRes(parsedOutput, context);
|
|
828
|
+
default:
|
|
829
|
+
const parsedBody = parsedOutput.body;
|
|
830
|
+
return throwDefaultError({
|
|
831
|
+
output,
|
|
832
|
+
parsedBody,
|
|
833
|
+
errorCode,
|
|
834
|
+
});
|
|
835
|
+
}
|
|
836
|
+
};
|
|
750
837
|
const de_DeleteSignalingChannelCommand = async (output, context) => {
|
|
751
838
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
752
839
|
return de_DeleteSignalingChannelCommandError(output, context);
|
|
@@ -847,6 +934,7 @@ const de_DescribeEdgeConfigurationCommand = async (output, context) => {
|
|
|
847
934
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
848
935
|
const doc = (0, smithy_client_1.take)(data, {
|
|
849
936
|
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
937
|
+
EdgeAgentStatus: (_) => de_EdgeAgentStatus(_, context),
|
|
850
938
|
EdgeConfig: smithy_client_1._json,
|
|
851
939
|
FailedStatusDetails: smithy_client_1.expectString,
|
|
852
940
|
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
@@ -1237,6 +1325,47 @@ const de_GetSignalingChannelEndpointCommandError = async (output, context) => {
|
|
|
1237
1325
|
});
|
|
1238
1326
|
}
|
|
1239
1327
|
};
|
|
1328
|
+
const de_ListEdgeAgentConfigurationsCommand = async (output, context) => {
|
|
1329
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1330
|
+
return de_ListEdgeAgentConfigurationsCommandError(output, context);
|
|
1331
|
+
}
|
|
1332
|
+
const contents = (0, smithy_client_1.map)({
|
|
1333
|
+
$metadata: deserializeMetadata(output),
|
|
1334
|
+
});
|
|
1335
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1336
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1337
|
+
EdgeConfigs: (_) => de_ListEdgeAgentConfigurationsEdgeConfigList(_, context),
|
|
1338
|
+
NextToken: smithy_client_1.expectString,
|
|
1339
|
+
});
|
|
1340
|
+
Object.assign(contents, doc);
|
|
1341
|
+
return contents;
|
|
1342
|
+
};
|
|
1343
|
+
exports.de_ListEdgeAgentConfigurationsCommand = de_ListEdgeAgentConfigurationsCommand;
|
|
1344
|
+
const de_ListEdgeAgentConfigurationsCommandError = async (output, context) => {
|
|
1345
|
+
const parsedOutput = {
|
|
1346
|
+
...output,
|
|
1347
|
+
body: await parseErrorBody(output.body, context),
|
|
1348
|
+
};
|
|
1349
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1350
|
+
switch (errorCode) {
|
|
1351
|
+
case "ClientLimitExceededException":
|
|
1352
|
+
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
1353
|
+
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
1354
|
+
case "InvalidArgumentException":
|
|
1355
|
+
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
1356
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1357
|
+
case "NotAuthorizedException":
|
|
1358
|
+
case "com.amazonaws.kinesisvideo#NotAuthorizedException":
|
|
1359
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1360
|
+
default:
|
|
1361
|
+
const parsedBody = parsedOutput.body;
|
|
1362
|
+
return throwDefaultError({
|
|
1363
|
+
output,
|
|
1364
|
+
parsedBody,
|
|
1365
|
+
errorCode,
|
|
1366
|
+
});
|
|
1367
|
+
}
|
|
1368
|
+
};
|
|
1240
1369
|
const de_ListSignalingChannelsCommand = async (output, context) => {
|
|
1241
1370
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1242
1371
|
return de_ListSignalingChannelsCommandError(output, context);
|
|
@@ -2115,6 +2244,47 @@ const de_ChannelInfoList = (output, context) => {
|
|
|
2115
2244
|
});
|
|
2116
2245
|
return retVal;
|
|
2117
2246
|
};
|
|
2247
|
+
const de_EdgeAgentStatus = (output, context) => {
|
|
2248
|
+
return (0, smithy_client_1.take)(output, {
|
|
2249
|
+
LastRecorderStatus: (_) => de_LastRecorderStatus(_, context),
|
|
2250
|
+
LastUploaderStatus: (_) => de_LastUploaderStatus(_, context),
|
|
2251
|
+
});
|
|
2252
|
+
};
|
|
2253
|
+
const de_LastRecorderStatus = (output, context) => {
|
|
2254
|
+
return (0, smithy_client_1.take)(output, {
|
|
2255
|
+
JobStatusDetails: smithy_client_1.expectString,
|
|
2256
|
+
LastCollectedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2257
|
+
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2258
|
+
RecorderStatus: smithy_client_1.expectString,
|
|
2259
|
+
});
|
|
2260
|
+
};
|
|
2261
|
+
const de_LastUploaderStatus = (output, context) => {
|
|
2262
|
+
return (0, smithy_client_1.take)(output, {
|
|
2263
|
+
JobStatusDetails: smithy_client_1.expectString,
|
|
2264
|
+
LastCollectedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2265
|
+
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2266
|
+
UploaderStatus: smithy_client_1.expectString,
|
|
2267
|
+
});
|
|
2268
|
+
};
|
|
2269
|
+
const de_ListEdgeAgentConfigurationsEdgeConfig = (output, context) => {
|
|
2270
|
+
return (0, smithy_client_1.take)(output, {
|
|
2271
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2272
|
+
EdgeConfig: smithy_client_1._json,
|
|
2273
|
+
FailedStatusDetails: smithy_client_1.expectString,
|
|
2274
|
+
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2275
|
+
StreamARN: smithy_client_1.expectString,
|
|
2276
|
+
StreamName: smithy_client_1.expectString,
|
|
2277
|
+
SyncStatus: smithy_client_1.expectString,
|
|
2278
|
+
});
|
|
2279
|
+
};
|
|
2280
|
+
const de_ListEdgeAgentConfigurationsEdgeConfigList = (output, context) => {
|
|
2281
|
+
const retVal = (output || [])
|
|
2282
|
+
.filter((e) => e != null)
|
|
2283
|
+
.map((entry) => {
|
|
2284
|
+
return de_ListEdgeAgentConfigurationsEdgeConfig(entry, context);
|
|
2285
|
+
});
|
|
2286
|
+
return retVal;
|
|
2287
|
+
};
|
|
2118
2288
|
const de_StreamInfo = (output, context) => {
|
|
2119
2289
|
return (0, smithy_client_1.take)(output, {
|
|
2120
2290
|
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
package/dist-es/KinesisVideo.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { CreateSignalingChannelCommand, } from "./commands/CreateSignalingChannelCommand";
|
|
3
3
|
import { CreateStreamCommand, } from "./commands/CreateStreamCommand";
|
|
4
|
+
import { DeleteEdgeConfigurationCommand, } from "./commands/DeleteEdgeConfigurationCommand";
|
|
4
5
|
import { DeleteSignalingChannelCommand, } from "./commands/DeleteSignalingChannelCommand";
|
|
5
6
|
import { DeleteStreamCommand, } from "./commands/DeleteStreamCommand";
|
|
6
7
|
import { DescribeEdgeConfigurationCommand, } from "./commands/DescribeEdgeConfigurationCommand";
|
|
@@ -12,6 +13,7 @@ import { DescribeSignalingChannelCommand, } from "./commands/DescribeSignalingCh
|
|
|
12
13
|
import { DescribeStreamCommand, } from "./commands/DescribeStreamCommand";
|
|
13
14
|
import { GetDataEndpointCommand, } from "./commands/GetDataEndpointCommand";
|
|
14
15
|
import { GetSignalingChannelEndpointCommand, } from "./commands/GetSignalingChannelEndpointCommand";
|
|
16
|
+
import { ListEdgeAgentConfigurationsCommand, } from "./commands/ListEdgeAgentConfigurationsCommand";
|
|
15
17
|
import { ListSignalingChannelsCommand, } from "./commands/ListSignalingChannelsCommand";
|
|
16
18
|
import { ListStreamsCommand } from "./commands/ListStreamsCommand";
|
|
17
19
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
@@ -31,6 +33,7 @@ import { KinesisVideoClient } from "./KinesisVideoClient";
|
|
|
31
33
|
const commands = {
|
|
32
34
|
CreateSignalingChannelCommand,
|
|
33
35
|
CreateStreamCommand,
|
|
36
|
+
DeleteEdgeConfigurationCommand,
|
|
34
37
|
DeleteSignalingChannelCommand,
|
|
35
38
|
DeleteStreamCommand,
|
|
36
39
|
DescribeEdgeConfigurationCommand,
|
|
@@ -42,6 +45,7 @@ const commands = {
|
|
|
42
45
|
DescribeStreamCommand,
|
|
43
46
|
GetDataEndpointCommand,
|
|
44
47
|
GetSignalingChannelEndpointCommand,
|
|
48
|
+
ListEdgeAgentConfigurationsCommand,
|
|
45
49
|
ListSignalingChannelsCommand,
|
|
46
50
|
ListStreamsCommand,
|
|
47
51
|
ListTagsForResourceCommand,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { de_DeleteEdgeConfigurationCommand, se_DeleteEdgeConfigurationCommand } from "../protocols/Aws_restJson1";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class DeleteEdgeConfigurationCommand 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, DeleteEdgeConfigurationCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "KinesisVideoClient";
|
|
25
|
+
const commandName = "DeleteEdgeConfigurationCommand";
|
|
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_DeleteEdgeConfigurationCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_DeleteEdgeConfigurationCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|