@aws-sdk/client-kinesis-video-signaling 3.181.0 → 3.183.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 CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-kinesis-video-signaling
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
7
15
 
8
16
 
@@ -1,40 +1,33 @@
1
- import { __extends } from "tslib";
2
1
  import { GetIceServerConfigCommand, } from "./commands/GetIceServerConfigCommand";
3
2
  import { SendAlexaOfferToMasterCommand, } from "./commands/SendAlexaOfferToMasterCommand";
4
3
  import { KinesisVideoSignalingClient } from "./KinesisVideoSignalingClient";
5
- var KinesisVideoSignaling = (function (_super) {
6
- __extends(KinesisVideoSignaling, _super);
7
- function KinesisVideoSignaling() {
8
- return _super !== null && _super.apply(this, arguments) || this;
9
- }
10
- KinesisVideoSignaling.prototype.getIceServerConfig = function (args, optionsOrCb, cb) {
11
- var command = new GetIceServerConfigCommand(args);
4
+ export class KinesisVideoSignaling extends KinesisVideoSignalingClient {
5
+ getIceServerConfig(args, optionsOrCb, cb) {
6
+ const command = new GetIceServerConfigCommand(args);
12
7
  if (typeof optionsOrCb === "function") {
13
8
  this.send(command, optionsOrCb);
14
9
  }
15
10
  else if (typeof cb === "function") {
16
11
  if (typeof optionsOrCb !== "object")
17
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
12
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
18
13
  this.send(command, optionsOrCb || {}, cb);
19
14
  }
20
15
  else {
21
16
  return this.send(command, optionsOrCb);
22
17
  }
23
- };
24
- KinesisVideoSignaling.prototype.sendAlexaOfferToMaster = function (args, optionsOrCb, cb) {
25
- var command = new SendAlexaOfferToMasterCommand(args);
18
+ }
19
+ sendAlexaOfferToMaster(args, optionsOrCb, cb) {
20
+ const command = new SendAlexaOfferToMasterCommand(args);
26
21
  if (typeof optionsOrCb === "function") {
27
22
  this.send(command, optionsOrCb);
28
23
  }
29
24
  else if (typeof cb === "function") {
30
25
  if (typeof optionsOrCb !== "object")
31
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
26
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
32
27
  this.send(command, optionsOrCb || {}, cb);
33
28
  }
34
29
  else {
35
30
  return this.send(command, optionsOrCb);
36
31
  }
37
- };
38
- return KinesisVideoSignaling;
39
- }(KinesisVideoSignalingClient));
40
- export { KinesisVideoSignaling };
32
+ }
33
+ }
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,32 +8,27 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var KinesisVideoSignalingClient = (function (_super) {
13
- __extends(KinesisVideoSignalingClient, _super);
14
- function KinesisVideoSignalingClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- _this.middlewareStack.use(getOmitRetryHeadersPlugin(_this.config));
33
- return _this;
11
+ export class KinesisVideoSignalingClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
29
+ this.middlewareStack.use(getOmitRetryHeadersPlugin(this.config));
34
30
  }
35
- KinesisVideoSignalingClient.prototype.destroy = function () {
36
- _super.prototype.destroy.call(this);
37
- };
38
- return KinesisVideoSignalingClient;
39
- }(__Client));
40
- export { KinesisVideoSignalingClient };
31
+ destroy() {
32
+ super.destroy();
33
+ }
34
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetIceServerConfigRequestFilterSensitiveLog, GetIceServerConfigResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetIceServerConfigCommand, serializeAws_restJson1GetIceServerConfigCommand, } from "../protocols/Aws_restJson1";
6
- var GetIceServerConfigCommand = (function (_super) {
7
- __extends(GetIceServerConfigCommand, _super);
8
- function GetIceServerConfigCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetIceServerConfigCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetIceServerConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "KinesisVideoSignalingClient";
18
- var commandName = "GetIceServerConfigCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "KinesisVideoSignalingClient";
15
+ const commandName = "GetIceServerConfigCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetIceServerConfigRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetIceServerConfigResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetIceServerConfigCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetIceServerConfigCommand(input, context);
33
- };
34
- GetIceServerConfigCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetIceServerConfigCommand(output, context);
36
- };
37
- return GetIceServerConfigCommand;
38
- }($Command));
39
- export { GetIceServerConfigCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { SendAlexaOfferToMasterRequestFilterSensitiveLog, SendAlexaOfferToMasterResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1SendAlexaOfferToMasterCommand, serializeAws_restJson1SendAlexaOfferToMasterCommand, } from "../protocols/Aws_restJson1";
6
- var SendAlexaOfferToMasterCommand = (function (_super) {
7
- __extends(SendAlexaOfferToMasterCommand, _super);
8
- function SendAlexaOfferToMasterCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class SendAlexaOfferToMasterCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- SendAlexaOfferToMasterCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "KinesisVideoSignalingClient";
18
- var commandName = "SendAlexaOfferToMasterCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "KinesisVideoSignalingClient";
15
+ const commandName = "SendAlexaOfferToMasterCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: SendAlexaOfferToMasterRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: SendAlexaOfferToMasterResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- SendAlexaOfferToMasterCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1SendAlexaOfferToMasterCommand(input, context);
33
- };
34
- SendAlexaOfferToMasterCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1SendAlexaOfferToMasterCommand(output, context);
36
- };
37
- return SendAlexaOfferToMasterCommand;
38
- }($Command));
39
- export { SendAlexaOfferToMasterCommand };
31
+ }
32
+ }
@@ -1,7 +1,6 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {};
4
- var partitionHash = {
2
+ const regionHash = {};
3
+ const partitionHash = {
5
4
  aws: {
6
5
  regions: [
7
6
  "af-south-1",
@@ -121,8 +120,9 @@ var partitionHash = {
121
120
  ],
122
121
  },
123
122
  };
124
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
125
- return __generator(this, function (_a) {
126
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "kinesisvideo", regionHash: regionHash, partitionHash: partitionHash }))];
127
- });
128
- }); };
123
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
124
+ ...options,
125
+ signingService: "kinesisvideo",
126
+ regionHash,
127
+ partitionHash,
128
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var KinesisVideoSignalingServiceException = (function (_super) {
4
- __extends(KinesisVideoSignalingServiceException, _super);
5
- function KinesisVideoSignalingServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, KinesisVideoSignalingServiceException.prototype);
8
- return _this;
2
+ export class KinesisVideoSignalingServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, KinesisVideoSignalingServiceException.prototype);
9
6
  }
10
- return KinesisVideoSignalingServiceException;
11
- }(__ServiceException));
12
- export { KinesisVideoSignalingServiceException };
7
+ }
@@ -1,87 +1,96 @@
1
- import { __assign, __extends } from "tslib";
2
1
  import { KinesisVideoSignalingServiceException as __BaseException } from "./KinesisVideoSignalingServiceException";
3
- var ClientLimitExceededException = (function (_super) {
4
- __extends(ClientLimitExceededException, _super);
5
- function ClientLimitExceededException(opts) {
6
- var _this = _super.call(this, __assign({ name: "ClientLimitExceededException", $fault: "client" }, opts)) || this;
7
- _this.name = "ClientLimitExceededException";
8
- _this.$fault = "client";
9
- Object.setPrototypeOf(_this, ClientLimitExceededException.prototype);
10
- _this.Message = opts.Message;
11
- return _this;
2
+ export class ClientLimitExceededException extends __BaseException {
3
+ constructor(opts) {
4
+ super({
5
+ name: "ClientLimitExceededException",
6
+ $fault: "client",
7
+ ...opts,
8
+ });
9
+ this.name = "ClientLimitExceededException";
10
+ this.$fault = "client";
11
+ Object.setPrototypeOf(this, ClientLimitExceededException.prototype);
12
+ this.Message = opts.Message;
12
13
  }
13
- return ClientLimitExceededException;
14
- }(__BaseException));
15
- export { ClientLimitExceededException };
14
+ }
16
15
  export var Service;
17
16
  (function (Service) {
18
17
  Service["TURN"] = "TURN";
19
18
  })(Service || (Service = {}));
20
- var InvalidArgumentException = (function (_super) {
21
- __extends(InvalidArgumentException, _super);
22
- function InvalidArgumentException(opts) {
23
- var _this = _super.call(this, __assign({ name: "InvalidArgumentException", $fault: "client" }, opts)) || this;
24
- _this.name = "InvalidArgumentException";
25
- _this.$fault = "client";
26
- Object.setPrototypeOf(_this, InvalidArgumentException.prototype);
27
- _this.Message = opts.Message;
28
- return _this;
19
+ export class InvalidArgumentException extends __BaseException {
20
+ constructor(opts) {
21
+ super({
22
+ name: "InvalidArgumentException",
23
+ $fault: "client",
24
+ ...opts,
25
+ });
26
+ this.name = "InvalidArgumentException";
27
+ this.$fault = "client";
28
+ Object.setPrototypeOf(this, InvalidArgumentException.prototype);
29
+ this.Message = opts.Message;
29
30
  }
30
- return InvalidArgumentException;
31
- }(__BaseException));
32
- export { InvalidArgumentException };
33
- var InvalidClientException = (function (_super) {
34
- __extends(InvalidClientException, _super);
35
- function InvalidClientException(opts) {
36
- var _this = _super.call(this, __assign({ name: "InvalidClientException", $fault: "client" }, opts)) || this;
37
- _this.name = "InvalidClientException";
38
- _this.$fault = "client";
39
- Object.setPrototypeOf(_this, InvalidClientException.prototype);
40
- return _this;
31
+ }
32
+ export class InvalidClientException extends __BaseException {
33
+ constructor(opts) {
34
+ super({
35
+ name: "InvalidClientException",
36
+ $fault: "client",
37
+ ...opts,
38
+ });
39
+ this.name = "InvalidClientException";
40
+ this.$fault = "client";
41
+ Object.setPrototypeOf(this, InvalidClientException.prototype);
41
42
  }
42
- return InvalidClientException;
43
- }(__BaseException));
44
- export { InvalidClientException };
45
- var NotAuthorizedException = (function (_super) {
46
- __extends(NotAuthorizedException, _super);
47
- function NotAuthorizedException(opts) {
48
- var _this = _super.call(this, __assign({ name: "NotAuthorizedException", $fault: "client" }, opts)) || this;
49
- _this.name = "NotAuthorizedException";
50
- _this.$fault = "client";
51
- Object.setPrototypeOf(_this, NotAuthorizedException.prototype);
52
- _this.Message = opts.Message;
53
- return _this;
43
+ }
44
+ export class NotAuthorizedException extends __BaseException {
45
+ constructor(opts) {
46
+ super({
47
+ name: "NotAuthorizedException",
48
+ $fault: "client",
49
+ ...opts,
50
+ });
51
+ this.name = "NotAuthorizedException";
52
+ this.$fault = "client";
53
+ Object.setPrototypeOf(this, NotAuthorizedException.prototype);
54
+ this.Message = opts.Message;
54
55
  }
55
- return NotAuthorizedException;
56
- }(__BaseException));
57
- export { NotAuthorizedException };
58
- var ResourceNotFoundException = (function (_super) {
59
- __extends(ResourceNotFoundException, _super);
60
- function ResourceNotFoundException(opts) {
61
- var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
62
- _this.name = "ResourceNotFoundException";
63
- _this.$fault = "client";
64
- Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
65
- _this.Message = opts.Message;
66
- return _this;
56
+ }
57
+ export class ResourceNotFoundException extends __BaseException {
58
+ constructor(opts) {
59
+ super({
60
+ name: "ResourceNotFoundException",
61
+ $fault: "client",
62
+ ...opts,
63
+ });
64
+ this.name = "ResourceNotFoundException";
65
+ this.$fault = "client";
66
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
67
+ this.Message = opts.Message;
67
68
  }
68
- return ResourceNotFoundException;
69
- }(__BaseException));
70
- export { ResourceNotFoundException };
71
- var SessionExpiredException = (function (_super) {
72
- __extends(SessionExpiredException, _super);
73
- function SessionExpiredException(opts) {
74
- var _this = _super.call(this, __assign({ name: "SessionExpiredException", $fault: "client" }, opts)) || this;
75
- _this.name = "SessionExpiredException";
76
- _this.$fault = "client";
77
- Object.setPrototypeOf(_this, SessionExpiredException.prototype);
78
- return _this;
69
+ }
70
+ export class SessionExpiredException extends __BaseException {
71
+ constructor(opts) {
72
+ super({
73
+ name: "SessionExpiredException",
74
+ $fault: "client",
75
+ ...opts,
76
+ });
77
+ this.name = "SessionExpiredException";
78
+ this.$fault = "client";
79
+ Object.setPrototypeOf(this, SessionExpiredException.prototype);
79
80
  }
80
- return SessionExpiredException;
81
- }(__BaseException));
82
- export { SessionExpiredException };
83
- export var GetIceServerConfigRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
84
- export var IceServerFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
85
- export var GetIceServerConfigResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
86
- export var SendAlexaOfferToMasterRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
87
- export var SendAlexaOfferToMasterResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
81
+ }
82
+ export const GetIceServerConfigRequestFilterSensitiveLog = (obj) => ({
83
+ ...obj,
84
+ });
85
+ export const IceServerFilterSensitiveLog = (obj) => ({
86
+ ...obj,
87
+ });
88
+ export const GetIceServerConfigResponseFilterSensitiveLog = (obj) => ({
89
+ ...obj,
90
+ });
91
+ export const SendAlexaOfferToMasterRequestFilterSensitiveLog = (obj) => ({
92
+ ...obj,
93
+ });
94
+ export const SendAlexaOfferToMasterResponseFilterSensitiveLog = (obj) => ({
95
+ ...obj,
96
+ });