@aws-sdk/client-kinesis-video-media 3.52.0 → 3.54.1

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,33 @@
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.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-kinesis-video-media
9
+
10
+
11
+
12
+
13
+
14
+ # [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-kinesis-video-media
17
+
18
+
19
+
20
+
21
+
22
+ # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-kinesis-video-media
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KinesisVideoMediaServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./KinesisVideoMedia"), exports);
5
6
  tslib_1.__exportStar(require("./KinesisVideoMediaClient"), exports);
6
7
  tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
9
+ var KinesisVideoMediaServiceException_1 = require("./models/KinesisVideoMediaServiceException");
10
+ Object.defineProperty(exports, "KinesisVideoMediaServiceException", { enumerable: true, get: function () { return KinesisVideoMediaServiceException_1.KinesisVideoMediaServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KinesisVideoMediaServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class KinesisVideoMediaServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, KinesisVideoMediaServiceException.prototype);
9
+ }
10
+ }
11
+ exports.KinesisVideoMediaServiceException = KinesisVideoMediaServiceException;
@@ -1,6 +1,35 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetMediaOutput = exports.GetMediaInput = exports.StartSelector = exports.StartSelectorType = void 0;
3
+ exports.ResourceNotFoundException = exports.NotAuthorizedException = exports.InvalidEndpointException = exports.InvalidArgumentException = exports.GetMediaOutput = exports.GetMediaInput = exports.StartSelector = exports.StartSelectorType = exports.ConnectionLimitExceededException = exports.ClientLimitExceededException = void 0;
4
+ const KinesisVideoMediaServiceException_1 = require("./KinesisVideoMediaServiceException");
5
+ class ClientLimitExceededException extends KinesisVideoMediaServiceException_1.KinesisVideoMediaServiceException {
6
+ constructor(opts) {
7
+ super({
8
+ name: "ClientLimitExceededException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ this.name = "ClientLimitExceededException";
13
+ this.$fault = "client";
14
+ Object.setPrototypeOf(this, ClientLimitExceededException.prototype);
15
+ this.Message = opts.Message;
16
+ }
17
+ }
18
+ exports.ClientLimitExceededException = ClientLimitExceededException;
19
+ class ConnectionLimitExceededException extends KinesisVideoMediaServiceException_1.KinesisVideoMediaServiceException {
20
+ constructor(opts) {
21
+ super({
22
+ name: "ConnectionLimitExceededException",
23
+ $fault: "client",
24
+ ...opts,
25
+ });
26
+ this.name = "ConnectionLimitExceededException";
27
+ this.$fault = "client";
28
+ Object.setPrototypeOf(this, ConnectionLimitExceededException.prototype);
29
+ this.Message = opts.Message;
30
+ }
31
+ }
32
+ exports.ConnectionLimitExceededException = ConnectionLimitExceededException;
4
33
  var StartSelectorType;
5
34
  (function (StartSelectorType) {
6
35
  StartSelectorType["CONTINUATION_TOKEN"] = "CONTINUATION_TOKEN";
@@ -28,3 +57,59 @@ var GetMediaOutput;
28
57
  ...obj,
29
58
  });
30
59
  })(GetMediaOutput = exports.GetMediaOutput || (exports.GetMediaOutput = {}));
60
+ class InvalidArgumentException extends KinesisVideoMediaServiceException_1.KinesisVideoMediaServiceException {
61
+ constructor(opts) {
62
+ super({
63
+ name: "InvalidArgumentException",
64
+ $fault: "client",
65
+ ...opts,
66
+ });
67
+ this.name = "InvalidArgumentException";
68
+ this.$fault = "client";
69
+ Object.setPrototypeOf(this, InvalidArgumentException.prototype);
70
+ this.Message = opts.Message;
71
+ }
72
+ }
73
+ exports.InvalidArgumentException = InvalidArgumentException;
74
+ class InvalidEndpointException extends KinesisVideoMediaServiceException_1.KinesisVideoMediaServiceException {
75
+ constructor(opts) {
76
+ super({
77
+ name: "InvalidEndpointException",
78
+ $fault: "client",
79
+ ...opts,
80
+ });
81
+ this.name = "InvalidEndpointException";
82
+ this.$fault = "client";
83
+ Object.setPrototypeOf(this, InvalidEndpointException.prototype);
84
+ this.Message = opts.Message;
85
+ }
86
+ }
87
+ exports.InvalidEndpointException = InvalidEndpointException;
88
+ class NotAuthorizedException extends KinesisVideoMediaServiceException_1.KinesisVideoMediaServiceException {
89
+ constructor(opts) {
90
+ super({
91
+ name: "NotAuthorizedException",
92
+ $fault: "client",
93
+ ...opts,
94
+ });
95
+ this.name = "NotAuthorizedException";
96
+ this.$fault = "client";
97
+ Object.setPrototypeOf(this, NotAuthorizedException.prototype);
98
+ this.Message = opts.Message;
99
+ }
100
+ }
101
+ exports.NotAuthorizedException = NotAuthorizedException;
102
+ class ResourceNotFoundException extends KinesisVideoMediaServiceException_1.KinesisVideoMediaServiceException {
103
+ constructor(opts) {
104
+ super({
105
+ name: "ResourceNotFoundException",
106
+ $fault: "client",
107
+ ...opts,
108
+ });
109
+ this.name = "ResourceNotFoundException";
110
+ this.$fault = "client";
111
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
112
+ this.Message = opts.Message;
113
+ }
114
+ }
115
+ exports.ResourceNotFoundException = ResourceNotFoundException;
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.deserializeAws_restJson1GetMediaCommand = exports.serializeAws_restJson1GetMediaCommand = 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
+ const KinesisVideoMediaServiceException_1 = require("../models/KinesisVideoMediaServiceException");
7
+ const models_0_1 = require("../models/models_0");
6
8
  const serializeAws_restJson1GetMediaCommand = async (input, context) => {
7
9
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
8
10
  const headers = {
@@ -57,145 +59,103 @@ const deserializeAws_restJson1GetMediaCommandError = async (output, context) =>
57
59
  switch (errorCode) {
58
60
  case "ClientLimitExceededException":
59
61
  case "com.amazonaws.kinesisvideomedia#ClientLimitExceededException":
60
- response = {
61
- ...(await deserializeAws_restJson1ClientLimitExceededExceptionResponse(parsedOutput, context)),
62
- name: errorCode,
63
- $metadata: deserializeMetadata(output),
64
- };
65
- break;
62
+ throw await deserializeAws_restJson1ClientLimitExceededExceptionResponse(parsedOutput, context);
66
63
  case "ConnectionLimitExceededException":
67
64
  case "com.amazonaws.kinesisvideomedia#ConnectionLimitExceededException":
68
- response = {
69
- ...(await deserializeAws_restJson1ConnectionLimitExceededExceptionResponse(parsedOutput, context)),
70
- name: errorCode,
71
- $metadata: deserializeMetadata(output),
72
- };
73
- break;
65
+ throw await deserializeAws_restJson1ConnectionLimitExceededExceptionResponse(parsedOutput, context);
74
66
  case "InvalidArgumentException":
75
67
  case "com.amazonaws.kinesisvideomedia#InvalidArgumentException":
76
- response = {
77
- ...(await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context)),
78
- name: errorCode,
79
- $metadata: deserializeMetadata(output),
80
- };
81
- break;
68
+ throw await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context);
82
69
  case "InvalidEndpointException":
83
70
  case "com.amazonaws.kinesisvideomedia#InvalidEndpointException":
84
- response = {
85
- ...(await deserializeAws_restJson1InvalidEndpointExceptionResponse(parsedOutput, context)),
86
- name: errorCode,
87
- $metadata: deserializeMetadata(output),
88
- };
89
- break;
71
+ throw await deserializeAws_restJson1InvalidEndpointExceptionResponse(parsedOutput, context);
90
72
  case "NotAuthorizedException":
91
73
  case "com.amazonaws.kinesisvideomedia#NotAuthorizedException":
92
- response = {
93
- ...(await deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context)),
94
- name: errorCode,
95
- $metadata: deserializeMetadata(output),
96
- };
97
- break;
74
+ throw await deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context);
98
75
  case "ResourceNotFoundException":
99
76
  case "com.amazonaws.kinesisvideomedia#ResourceNotFoundException":
100
- response = {
101
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
102
- name: errorCode,
103
- $metadata: deserializeMetadata(output),
104
- };
105
- break;
77
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
106
78
  default:
107
79
  const parsedBody = parsedOutput.body;
108
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
109
- response = {
110
- ...parsedBody,
111
- name: `${errorCode}`,
112
- message: parsedBody.message || parsedBody.Message || errorCode,
80
+ response = new KinesisVideoMediaServiceException_1.KinesisVideoMediaServiceException({
81
+ name: parsedBody.code || parsedBody.Code || errorCode,
113
82
  $fault: "client",
114
83
  $metadata: deserializeMetadata(output),
115
- };
84
+ });
85
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
116
86
  }
117
- const message = response.message || response.Message || errorCode;
118
- response.message = message;
119
- delete response.Message;
120
- return Promise.reject(Object.assign(new Error(message), response));
121
87
  };
122
88
  const deserializeAws_restJson1ClientLimitExceededExceptionResponse = async (parsedOutput, context) => {
123
- const contents = {
124
- name: "ClientLimitExceededException",
125
- $fault: "client",
126
- $metadata: deserializeMetadata(parsedOutput),
127
- Message: undefined,
128
- };
89
+ const contents = {};
129
90
  const data = parsedOutput.body;
130
91
  if (data.Message !== undefined && data.Message !== null) {
131
92
  contents.Message = smithy_client_1.expectString(data.Message);
132
93
  }
133
- return contents;
94
+ const exception = new models_0_1.ClientLimitExceededException({
95
+ $metadata: deserializeMetadata(parsedOutput),
96
+ ...contents,
97
+ });
98
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
134
99
  };
135
100
  const deserializeAws_restJson1ConnectionLimitExceededExceptionResponse = async (parsedOutput, context) => {
136
- const contents = {
137
- name: "ConnectionLimitExceededException",
138
- $fault: "client",
139
- $metadata: deserializeMetadata(parsedOutput),
140
- Message: undefined,
141
- };
101
+ const contents = {};
142
102
  const data = parsedOutput.body;
143
103
  if (data.Message !== undefined && data.Message !== null) {
144
104
  contents.Message = smithy_client_1.expectString(data.Message);
145
105
  }
146
- return contents;
106
+ const exception = new models_0_1.ConnectionLimitExceededException({
107
+ $metadata: deserializeMetadata(parsedOutput),
108
+ ...contents,
109
+ });
110
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
147
111
  };
148
112
  const deserializeAws_restJson1InvalidArgumentExceptionResponse = async (parsedOutput, context) => {
149
- const contents = {
150
- name: "InvalidArgumentException",
151
- $fault: "client",
152
- $metadata: deserializeMetadata(parsedOutput),
153
- Message: undefined,
154
- };
113
+ const contents = {};
155
114
  const data = parsedOutput.body;
156
115
  if (data.Message !== undefined && data.Message !== null) {
157
116
  contents.Message = smithy_client_1.expectString(data.Message);
158
117
  }
159
- return contents;
118
+ const exception = new models_0_1.InvalidArgumentException({
119
+ $metadata: deserializeMetadata(parsedOutput),
120
+ ...contents,
121
+ });
122
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
160
123
  };
161
124
  const deserializeAws_restJson1InvalidEndpointExceptionResponse = async (parsedOutput, context) => {
162
- const contents = {
163
- name: "InvalidEndpointException",
164
- $fault: "client",
165
- $metadata: deserializeMetadata(parsedOutput),
166
- Message: undefined,
167
- };
125
+ const contents = {};
168
126
  const data = parsedOutput.body;
169
127
  if (data.Message !== undefined && data.Message !== null) {
170
128
  contents.Message = smithy_client_1.expectString(data.Message);
171
129
  }
172
- return contents;
130
+ const exception = new models_0_1.InvalidEndpointException({
131
+ $metadata: deserializeMetadata(parsedOutput),
132
+ ...contents,
133
+ });
134
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
173
135
  };
174
136
  const deserializeAws_restJson1NotAuthorizedExceptionResponse = async (parsedOutput, context) => {
175
- const contents = {
176
- name: "NotAuthorizedException",
177
- $fault: "client",
178
- $metadata: deserializeMetadata(parsedOutput),
179
- Message: undefined,
180
- };
137
+ const contents = {};
181
138
  const data = parsedOutput.body;
182
139
  if (data.Message !== undefined && data.Message !== null) {
183
140
  contents.Message = smithy_client_1.expectString(data.Message);
184
141
  }
185
- return contents;
142
+ const exception = new models_0_1.NotAuthorizedException({
143
+ $metadata: deserializeMetadata(parsedOutput),
144
+ ...contents,
145
+ });
146
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
186
147
  };
187
148
  const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
188
- const contents = {
189
- name: "ResourceNotFoundException",
190
- $fault: "client",
191
- $metadata: deserializeMetadata(parsedOutput),
192
- Message: undefined,
193
- };
149
+ const contents = {};
194
150
  const data = parsedOutput.body;
195
151
  if (data.Message !== undefined && data.Message !== null) {
196
152
  contents.Message = smithy_client_1.expectString(data.Message);
197
153
  }
198
- return contents;
154
+ const exception = new models_0_1.ResourceNotFoundException({
155
+ $metadata: deserializeMetadata(parsedOutput),
156
+ ...contents,
157
+ });
158
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
199
159
  };
200
160
  const serializeAws_restJson1StartSelector = (input, context) => {
201
161
  return {
package/dist-es/index.js CHANGED
@@ -2,3 +2,4 @@ export * from "./KinesisVideoMedia";
2
2
  export * from "./KinesisVideoMediaClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { KinesisVideoMediaServiceException } from "./models/KinesisVideoMediaServiceException";
@@ -0,0 +1,12 @@
1
+ import { __extends } from "tslib";
2
+ import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
+ var KinesisVideoMediaServiceException = (function (_super) {
4
+ __extends(KinesisVideoMediaServiceException, _super);
5
+ function KinesisVideoMediaServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, KinesisVideoMediaServiceException.prototype);
8
+ return _this;
9
+ }
10
+ return KinesisVideoMediaServiceException;
11
+ }(__ServiceException));
12
+ export { KinesisVideoMediaServiceException };
@@ -1,4 +1,31 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __extends } from "tslib";
2
+ import { KinesisVideoMediaServiceException as __BaseException } from "./KinesisVideoMediaServiceException";
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;
12
+ }
13
+ return ClientLimitExceededException;
14
+ }(__BaseException));
15
+ export { ClientLimitExceededException };
16
+ var ConnectionLimitExceededException = (function (_super) {
17
+ __extends(ConnectionLimitExceededException, _super);
18
+ function ConnectionLimitExceededException(opts) {
19
+ var _this = _super.call(this, __assign({ name: "ConnectionLimitExceededException", $fault: "client" }, opts)) || this;
20
+ _this.name = "ConnectionLimitExceededException";
21
+ _this.$fault = "client";
22
+ Object.setPrototypeOf(_this, ConnectionLimitExceededException.prototype);
23
+ _this.Message = opts.Message;
24
+ return _this;
25
+ }
26
+ return ConnectionLimitExceededException;
27
+ }(__BaseException));
28
+ export { ConnectionLimitExceededException };
2
29
  export var StartSelectorType;
3
30
  (function (StartSelectorType) {
4
31
  StartSelectorType["CONTINUATION_TOKEN"] = "CONTINUATION_TOKEN";
@@ -20,3 +47,55 @@ export var GetMediaOutput;
20
47
  (function (GetMediaOutput) {
21
48
  GetMediaOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
22
49
  })(GetMediaOutput || (GetMediaOutput = {}));
50
+ var InvalidArgumentException = (function (_super) {
51
+ __extends(InvalidArgumentException, _super);
52
+ function InvalidArgumentException(opts) {
53
+ var _this = _super.call(this, __assign({ name: "InvalidArgumentException", $fault: "client" }, opts)) || this;
54
+ _this.name = "InvalidArgumentException";
55
+ _this.$fault = "client";
56
+ Object.setPrototypeOf(_this, InvalidArgumentException.prototype);
57
+ _this.Message = opts.Message;
58
+ return _this;
59
+ }
60
+ return InvalidArgumentException;
61
+ }(__BaseException));
62
+ export { InvalidArgumentException };
63
+ var InvalidEndpointException = (function (_super) {
64
+ __extends(InvalidEndpointException, _super);
65
+ function InvalidEndpointException(opts) {
66
+ var _this = _super.call(this, __assign({ name: "InvalidEndpointException", $fault: "client" }, opts)) || this;
67
+ _this.name = "InvalidEndpointException";
68
+ _this.$fault = "client";
69
+ Object.setPrototypeOf(_this, InvalidEndpointException.prototype);
70
+ _this.Message = opts.Message;
71
+ return _this;
72
+ }
73
+ return InvalidEndpointException;
74
+ }(__BaseException));
75
+ export { InvalidEndpointException };
76
+ var NotAuthorizedException = (function (_super) {
77
+ __extends(NotAuthorizedException, _super);
78
+ function NotAuthorizedException(opts) {
79
+ var _this = _super.call(this, __assign({ name: "NotAuthorizedException", $fault: "client" }, opts)) || this;
80
+ _this.name = "NotAuthorizedException";
81
+ _this.$fault = "client";
82
+ Object.setPrototypeOf(_this, NotAuthorizedException.prototype);
83
+ _this.Message = opts.Message;
84
+ return _this;
85
+ }
86
+ return NotAuthorizedException;
87
+ }(__BaseException));
88
+ export { NotAuthorizedException };
89
+ var ResourceNotFoundException = (function (_super) {
90
+ __extends(ResourceNotFoundException, _super);
91
+ function ResourceNotFoundException(opts) {
92
+ var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
93
+ _this.name = "ResourceNotFoundException";
94
+ _this.$fault = "client";
95
+ Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
96
+ _this.Message = opts.Message;
97
+ return _this;
98
+ }
99
+ return ResourceNotFoundException;
100
+ }(__BaseException));
101
+ export { ResourceNotFoundException };
@@ -1,6 +1,8 @@
1
1
  import { __assign, __awaiter, __generator } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { expectString as __expectString } from "@aws-sdk/smithy-client";
3
+ import { decorateServiceException as __decorateServiceException, expectString as __expectString, } from "@aws-sdk/smithy-client";
4
+ import { KinesisVideoMediaServiceException as __BaseException } from "../models/KinesisVideoMediaServiceException";
5
+ import { ClientLimitExceededException, ConnectionLimitExceededException, InvalidArgumentException, InvalidEndpointException, NotAuthorizedException, ResourceNotFoundException, } from "../models/models_0";
4
6
  export var serializeAws_restJson1GetMediaCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
5
7
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
6
8
  return __generator(this, function (_c) {
@@ -48,16 +50,16 @@ export var deserializeAws_restJson1GetMediaCommand = function (output, context)
48
50
  });
49
51
  }); };
50
52
  var deserializeAws_restJson1GetMediaCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
51
- var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
52
- var _j;
53
- return __generator(this, function (_k) {
54
- switch (_k.label) {
53
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
54
+ var _c;
55
+ return __generator(this, function (_d) {
56
+ switch (_d.label) {
55
57
  case 0:
56
58
  _a = [__assign({}, output)];
57
- _j = {};
59
+ _c = {};
58
60
  return [4, parseBody(output.body, context)];
59
61
  case 1:
60
- parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
62
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
61
63
  errorCode = "UnknownError";
62
64
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
63
65
  _b = errorCode;
@@ -76,149 +78,99 @@ var deserializeAws_restJson1GetMediaCommandError = function (output, context) {
76
78
  case "com.amazonaws.kinesisvideomedia#ResourceNotFoundException": return [3, 12];
77
79
  }
78
80
  return [3, 14];
79
- case 2:
80
- _c = [{}];
81
- return [4, deserializeAws_restJson1ClientLimitExceededExceptionResponse(parsedOutput, context)];
82
- case 3:
83
- response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
84
- return [3, 15];
85
- case 4:
86
- _d = [{}];
87
- return [4, deserializeAws_restJson1ConnectionLimitExceededExceptionResponse(parsedOutput, context)];
88
- case 5:
89
- response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
90
- return [3, 15];
91
- case 6:
92
- _e = [{}];
93
- return [4, deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context)];
94
- case 7:
95
- response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
96
- return [3, 15];
97
- case 8:
98
- _f = [{}];
99
- return [4, deserializeAws_restJson1InvalidEndpointExceptionResponse(parsedOutput, context)];
100
- case 9:
101
- response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
102
- return [3, 15];
103
- case 10:
104
- _g = [{}];
105
- return [4, deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context)];
106
- case 11:
107
- response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
108
- return [3, 15];
109
- case 12:
110
- _h = [{}];
111
- return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
112
- case 13:
113
- response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
114
- return [3, 15];
81
+ case 2: return [4, deserializeAws_restJson1ClientLimitExceededExceptionResponse(parsedOutput, context)];
82
+ case 3: throw _d.sent();
83
+ case 4: return [4, deserializeAws_restJson1ConnectionLimitExceededExceptionResponse(parsedOutput, context)];
84
+ case 5: throw _d.sent();
85
+ case 6: return [4, deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context)];
86
+ case 7: throw _d.sent();
87
+ case 8: return [4, deserializeAws_restJson1InvalidEndpointExceptionResponse(parsedOutput, context)];
88
+ case 9: throw _d.sent();
89
+ case 10: return [4, deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context)];
90
+ case 11: throw _d.sent();
91
+ case 12: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
92
+ case 13: throw _d.sent();
115
93
  case 14:
116
94
  parsedBody = parsedOutput.body;
117
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
118
- response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
119
- _k.label = 15;
120
- case 15:
121
- message = response.message || response.Message || errorCode;
122
- response.message = message;
123
- delete response.Message;
124
- return [2, Promise.reject(Object.assign(new Error(message), response))];
95
+ response = new __BaseException({
96
+ name: parsedBody.code || parsedBody.Code || errorCode,
97
+ $fault: "client",
98
+ $metadata: deserializeMetadata(output),
99
+ });
100
+ throw __decorateServiceException(response, parsedBody);
125
101
  }
126
102
  });
127
103
  }); };
128
104
  var deserializeAws_restJson1ClientLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
129
- var contents, data;
105
+ var contents, data, exception;
130
106
  return __generator(this, function (_a) {
131
- contents = {
132
- name: "ClientLimitExceededException",
133
- $fault: "client",
134
- $metadata: deserializeMetadata(parsedOutput),
135
- Message: undefined,
136
- };
107
+ contents = {};
137
108
  data = parsedOutput.body;
138
109
  if (data.Message !== undefined && data.Message !== null) {
139
110
  contents.Message = __expectString(data.Message);
140
111
  }
141
- return [2, contents];
112
+ exception = new ClientLimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
113
+ return [2, __decorateServiceException(exception, parsedOutput.body)];
142
114
  });
143
115
  }); };
144
116
  var deserializeAws_restJson1ConnectionLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
145
- var contents, data;
117
+ var contents, data, exception;
146
118
  return __generator(this, function (_a) {
147
- contents = {
148
- name: "ConnectionLimitExceededException",
149
- $fault: "client",
150
- $metadata: deserializeMetadata(parsedOutput),
151
- Message: undefined,
152
- };
119
+ contents = {};
153
120
  data = parsedOutput.body;
154
121
  if (data.Message !== undefined && data.Message !== null) {
155
122
  contents.Message = __expectString(data.Message);
156
123
  }
157
- return [2, contents];
124
+ exception = new ConnectionLimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
125
+ return [2, __decorateServiceException(exception, parsedOutput.body)];
158
126
  });
159
127
  }); };
160
128
  var deserializeAws_restJson1InvalidArgumentExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
161
- var contents, data;
129
+ var contents, data, exception;
162
130
  return __generator(this, function (_a) {
163
- contents = {
164
- name: "InvalidArgumentException",
165
- $fault: "client",
166
- $metadata: deserializeMetadata(parsedOutput),
167
- Message: undefined,
168
- };
131
+ contents = {};
169
132
  data = parsedOutput.body;
170
133
  if (data.Message !== undefined && data.Message !== null) {
171
134
  contents.Message = __expectString(data.Message);
172
135
  }
173
- return [2, contents];
136
+ exception = new InvalidArgumentException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
137
+ return [2, __decorateServiceException(exception, parsedOutput.body)];
174
138
  });
175
139
  }); };
176
140
  var deserializeAws_restJson1InvalidEndpointExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
177
- var contents, data;
141
+ var contents, data, exception;
178
142
  return __generator(this, function (_a) {
179
- contents = {
180
- name: "InvalidEndpointException",
181
- $fault: "client",
182
- $metadata: deserializeMetadata(parsedOutput),
183
- Message: undefined,
184
- };
143
+ contents = {};
185
144
  data = parsedOutput.body;
186
145
  if (data.Message !== undefined && data.Message !== null) {
187
146
  contents.Message = __expectString(data.Message);
188
147
  }
189
- return [2, contents];
148
+ exception = new InvalidEndpointException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
149
+ return [2, __decorateServiceException(exception, parsedOutput.body)];
190
150
  });
191
151
  }); };
192
152
  var deserializeAws_restJson1NotAuthorizedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
193
- var contents, data;
153
+ var contents, data, exception;
194
154
  return __generator(this, function (_a) {
195
- contents = {
196
- name: "NotAuthorizedException",
197
- $fault: "client",
198
- $metadata: deserializeMetadata(parsedOutput),
199
- Message: undefined,
200
- };
155
+ contents = {};
201
156
  data = parsedOutput.body;
202
157
  if (data.Message !== undefined && data.Message !== null) {
203
158
  contents.Message = __expectString(data.Message);
204
159
  }
205
- return [2, contents];
160
+ exception = new NotAuthorizedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
161
+ return [2, __decorateServiceException(exception, parsedOutput.body)];
206
162
  });
207
163
  }); };
208
164
  var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
209
- var contents, data;
165
+ var contents, data, exception;
210
166
  return __generator(this, function (_a) {
211
- contents = {
212
- name: "ResourceNotFoundException",
213
- $fault: "client",
214
- $metadata: deserializeMetadata(parsedOutput),
215
- Message: undefined,
216
- };
167
+ contents = {};
217
168
  data = parsedOutput.body;
218
169
  if (data.Message !== undefined && data.Message !== null) {
219
170
  contents.Message = __expectString(data.Message);
220
171
  }
221
- return [2, contents];
172
+ exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
173
+ return [2, __decorateServiceException(exception, parsedOutput.body)];
222
174
  });
223
175
  }); };
224
176
  var serializeAws_restJson1StartSelector = function (input, context) {
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { GetMediaCommandInput, GetMediaCommandOutput } from "./commands/GetMediaCommand";
10
10
  export declare type ServiceInputTypes = GetMediaCommandInput;
11
11
  export declare type ServiceOutputTypes = GetMediaCommandOutput;
@@ -29,7 +29,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
29
29
  * A function that can calculate the length of a request body.
30
30
  * @internal
31
31
  */
32
- bodyLengthChecker?: (body: any) => number | undefined;
32
+ bodyLengthChecker?: __BodyLengthCalculator;
33
33
  /**
34
34
  * A function that converts a stream into an array of bytes.
35
35
  * @internal
@@ -2,3 +2,4 @@ export * from "./KinesisVideoMedia";
2
2
  export * from "./KinesisVideoMediaClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { KinesisVideoMediaServiceException } from "./models/KinesisVideoMediaServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from KinesisVideoMedia service.
4
+ */
5
+ export declare class KinesisVideoMediaServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,23 +1,32 @@
1
1
  /// <reference types="node" />
2
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
3
3
  import { Readable } from "stream";
4
+ import { KinesisVideoMediaServiceException as __BaseException } from "./KinesisVideoMediaServiceException";
4
5
  /**
5
6
  * <p>Kinesis Video Streams has throttled the request because you have exceeded the limit of
6
7
  * allowed client calls. Try making the call later.</p>
7
8
  */
8
- export interface ClientLimitExceededException extends __SmithyException, $MetadataBearer {
9
- name: "ClientLimitExceededException";
10
- $fault: "client";
9
+ export declare class ClientLimitExceededException extends __BaseException {
10
+ readonly name: "ClientLimitExceededException";
11
+ readonly $fault: "client";
11
12
  Message?: string;
13
+ /**
14
+ * @internal
15
+ */
16
+ constructor(opts: __ExceptionOptionType<ClientLimitExceededException, __BaseException>);
12
17
  }
13
18
  /**
14
19
  * <p>Kinesis Video Streams has throttled the request because you have exceeded the limit of
15
20
  * allowed client connections.</p>
16
21
  */
17
- export interface ConnectionLimitExceededException extends __SmithyException, $MetadataBearer {
18
- name: "ConnectionLimitExceededException";
19
- $fault: "client";
22
+ export declare class ConnectionLimitExceededException extends __BaseException {
23
+ readonly name: "ConnectionLimitExceededException";
24
+ readonly $fault: "client";
20
25
  Message?: string;
26
+ /**
27
+ * @internal
28
+ */
29
+ constructor(opts: __ExceptionOptionType<ConnectionLimitExceededException, __BaseException>);
21
30
  }
22
31
  export declare enum StartSelectorType {
23
32
  CONTINUATION_TOKEN = "CONTINUATION_TOKEN",
@@ -212,10 +221,14 @@ export declare namespace GetMediaOutput {
212
221
  /**
213
222
  * <p>The value for this input parameter is invalid.</p>
214
223
  */
215
- export interface InvalidArgumentException extends __SmithyException, $MetadataBearer {
216
- name: "InvalidArgumentException";
217
- $fault: "client";
224
+ export declare class InvalidArgumentException extends __BaseException {
225
+ readonly name: "InvalidArgumentException";
226
+ readonly $fault: "client";
218
227
  Message?: string;
228
+ /**
229
+ * @internal
230
+ */
231
+ constructor(opts: __ExceptionOptionType<InvalidArgumentException, __BaseException>);
219
232
  }
220
233
  /**
221
234
  * <p> Status Code: 400, Caller used wrong endpoint to write data to a stream. On receiving
@@ -223,25 +236,37 @@ export interface InvalidArgumentException extends __SmithyException, $MetadataBe
223
236
  * <code>AccessMode</code> set to "READ" and use the endpoint Kinesis Video returns in the next
224
237
  * <code>GetMedia</code> call. </p>
225
238
  */
226
- export interface InvalidEndpointException extends __SmithyException, $MetadataBearer {
227
- name: "InvalidEndpointException";
228
- $fault: "client";
239
+ export declare class InvalidEndpointException extends __BaseException {
240
+ readonly name: "InvalidEndpointException";
241
+ readonly $fault: "client";
229
242
  Message?: string;
243
+ /**
244
+ * @internal
245
+ */
246
+ constructor(opts: __ExceptionOptionType<InvalidEndpointException, __BaseException>);
230
247
  }
231
248
  /**
232
249
  * <p>Status Code: 403, The caller is not authorized to perform an operation on the given
233
250
  * stream, or the token has expired.</p>
234
251
  */
235
- export interface NotAuthorizedException extends __SmithyException, $MetadataBearer {
236
- name: "NotAuthorizedException";
237
- $fault: "client";
252
+ export declare class NotAuthorizedException extends __BaseException {
253
+ readonly name: "NotAuthorizedException";
254
+ readonly $fault: "client";
238
255
  Message?: string;
256
+ /**
257
+ * @internal
258
+ */
259
+ constructor(opts: __ExceptionOptionType<NotAuthorizedException, __BaseException>);
239
260
  }
240
261
  /**
241
262
  * <p>Status Code: 404, The stream with the given name does not exist.</p>
242
263
  */
243
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
244
- name: "ResourceNotFoundException";
245
- $fault: "client";
264
+ export declare class ResourceNotFoundException extends __BaseException {
265
+ readonly name: "ResourceNotFoundException";
266
+ readonly $fault: "client";
246
267
  Message?: string;
268
+ /**
269
+ * @internal
270
+ */
271
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
247
272
  }
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: KinesisVideoMediaClientConfig) =
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: KinesisVideoMediaClientConfig) =
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: KinesisVideoMediaClientConfig) =
8
8
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
9
9
  apiVersion: string;
10
10
  urlParser: import("@aws-sdk/types").UrlParser;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  streamCollector: import("@aws-sdk/types").StreamCollector;
13
13
  base64Decoder: import("@aws-sdk/types").Decoder;
14
14
  base64Encoder: import("@aws-sdk/types").Encoder;
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { GetMediaCommandInput, GetMediaCommandOutput } from "./commands/GetMediaCommand";
10
10
  export declare type ServiceInputTypes = GetMediaCommandInput;
11
11
  export declare type ServiceOutputTypes = GetMediaCommandOutput;
@@ -17,7 +17,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
17
17
 
18
18
  urlParser?: __UrlParser;
19
19
 
20
- bodyLengthChecker?: (body: any) => number | undefined;
20
+ bodyLengthChecker?: __BodyLengthCalculator;
21
21
 
22
22
  streamCollector?: __StreamCollector;
23
23
 
@@ -2,3 +2,4 @@ export * from "./KinesisVideoMedia";
2
2
  export * from "./KinesisVideoMediaClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { KinesisVideoMediaServiceException } from "./models/KinesisVideoMediaServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class KinesisVideoMediaServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,17 +1,22 @@
1
1
 
2
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
3
3
  import { Readable } from "stream";
4
+ import { KinesisVideoMediaServiceException as __BaseException } from "./KinesisVideoMediaServiceException";
4
5
 
5
- export interface ClientLimitExceededException extends __SmithyException, $MetadataBearer {
6
- name: "ClientLimitExceededException";
7
- $fault: "client";
6
+ export declare class ClientLimitExceededException extends __BaseException {
7
+ readonly name: "ClientLimitExceededException";
8
+ readonly $fault: "client";
8
9
  Message?: string;
10
+
11
+ constructor(opts: __ExceptionOptionType<ClientLimitExceededException, __BaseException>);
9
12
  }
10
13
 
11
- export interface ConnectionLimitExceededException extends __SmithyException, $MetadataBearer {
12
- name: "ConnectionLimitExceededException";
13
- $fault: "client";
14
+ export declare class ConnectionLimitExceededException extends __BaseException {
15
+ readonly name: "ConnectionLimitExceededException";
16
+ readonly $fault: "client";
14
17
  Message?: string;
18
+
19
+ constructor(opts: __ExceptionOptionType<ConnectionLimitExceededException, __BaseException>);
15
20
  }
16
21
  export declare enum StartSelectorType {
17
22
  CONTINUATION_TOKEN = "CONTINUATION_TOKEN",
@@ -59,26 +64,34 @@ export declare namespace GetMediaOutput {
59
64
  const filterSensitiveLog: (obj: GetMediaOutput) => any;
60
65
  }
61
66
 
62
- export interface InvalidArgumentException extends __SmithyException, $MetadataBearer {
63
- name: "InvalidArgumentException";
64
- $fault: "client";
67
+ export declare class InvalidArgumentException extends __BaseException {
68
+ readonly name: "InvalidArgumentException";
69
+ readonly $fault: "client";
65
70
  Message?: string;
71
+
72
+ constructor(opts: __ExceptionOptionType<InvalidArgumentException, __BaseException>);
66
73
  }
67
74
 
68
- export interface InvalidEndpointException extends __SmithyException, $MetadataBearer {
69
- name: "InvalidEndpointException";
70
- $fault: "client";
75
+ export declare class InvalidEndpointException extends __BaseException {
76
+ readonly name: "InvalidEndpointException";
77
+ readonly $fault: "client";
71
78
  Message?: string;
79
+
80
+ constructor(opts: __ExceptionOptionType<InvalidEndpointException, __BaseException>);
72
81
  }
73
82
 
74
- export interface NotAuthorizedException extends __SmithyException, $MetadataBearer {
75
- name: "NotAuthorizedException";
76
- $fault: "client";
83
+ export declare class NotAuthorizedException extends __BaseException {
84
+ readonly name: "NotAuthorizedException";
85
+ readonly $fault: "client";
77
86
  Message?: string;
87
+
88
+ constructor(opts: __ExceptionOptionType<NotAuthorizedException, __BaseException>);
78
89
  }
79
90
 
80
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
81
- name: "ResourceNotFoundException";
82
- $fault: "client";
91
+ export declare class ResourceNotFoundException extends __BaseException {
92
+ readonly name: "ResourceNotFoundException";
93
+ readonly $fault: "client";
83
94
  Message?: string;
95
+
96
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
84
97
  }
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: KinesisVideoMediaClientConfig) =
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: KinesisVideoMediaClientConfig) =
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: KinesisVideoMediaClientConfig) =
6
6
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
7
7
  apiVersion: string;
8
8
  urlParser: import("@aws-sdk/types").UrlParser;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  streamCollector: import("@aws-sdk/types").StreamCollector;
11
11
  base64Decoder: import("@aws-sdk/types").Decoder;
12
12
  base64Encoder: import("@aws-sdk/types").Encoder;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kinesis-video-media",
3
3
  "description": "AWS SDK for JavaScript Kinesis Video Media Client for Node.js, Browser and React Native",
4
- "version": "3.52.0",
4
+ "version": "3.54.1",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,34 +18,34 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.52.0",
22
- "@aws-sdk/config-resolver": "3.52.0",
23
- "@aws-sdk/credential-provider-node": "3.52.0",
24
- "@aws-sdk/fetch-http-handler": "3.52.0",
25
- "@aws-sdk/hash-node": "3.52.0",
26
- "@aws-sdk/invalid-dependency": "3.52.0",
27
- "@aws-sdk/middleware-content-length": "3.52.0",
28
- "@aws-sdk/middleware-host-header": "3.52.0",
29
- "@aws-sdk/middleware-logger": "3.52.0",
30
- "@aws-sdk/middleware-retry": "3.52.0",
31
- "@aws-sdk/middleware-serde": "3.52.0",
32
- "@aws-sdk/middleware-signing": "3.52.0",
33
- "@aws-sdk/middleware-stack": "3.52.0",
34
- "@aws-sdk/middleware-user-agent": "3.52.0",
35
- "@aws-sdk/node-config-provider": "3.52.0",
36
- "@aws-sdk/node-http-handler": "3.52.0",
37
- "@aws-sdk/protocol-http": "3.52.0",
38
- "@aws-sdk/smithy-client": "3.52.0",
39
- "@aws-sdk/types": "3.52.0",
40
- "@aws-sdk/url-parser": "3.52.0",
21
+ "@aws-sdk/client-sts": "3.54.1",
22
+ "@aws-sdk/config-resolver": "3.54.1",
23
+ "@aws-sdk/credential-provider-node": "3.54.1",
24
+ "@aws-sdk/fetch-http-handler": "3.54.1",
25
+ "@aws-sdk/hash-node": "3.54.1",
26
+ "@aws-sdk/invalid-dependency": "3.54.1",
27
+ "@aws-sdk/middleware-content-length": "3.54.1",
28
+ "@aws-sdk/middleware-host-header": "3.54.1",
29
+ "@aws-sdk/middleware-logger": "3.54.1",
30
+ "@aws-sdk/middleware-retry": "3.54.1",
31
+ "@aws-sdk/middleware-serde": "3.54.1",
32
+ "@aws-sdk/middleware-signing": "3.54.1",
33
+ "@aws-sdk/middleware-stack": "3.54.1",
34
+ "@aws-sdk/middleware-user-agent": "3.54.1",
35
+ "@aws-sdk/node-config-provider": "3.54.1",
36
+ "@aws-sdk/node-http-handler": "3.54.1",
37
+ "@aws-sdk/protocol-http": "3.54.1",
38
+ "@aws-sdk/smithy-client": "3.54.1",
39
+ "@aws-sdk/types": "3.54.1",
40
+ "@aws-sdk/url-parser": "3.54.1",
41
41
  "@aws-sdk/util-base64-browser": "3.52.0",
42
42
  "@aws-sdk/util-base64-node": "3.52.0",
43
- "@aws-sdk/util-body-length-browser": "3.52.0",
44
- "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.52.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.52.0",
47
- "@aws-sdk/util-user-agent-browser": "3.52.0",
48
- "@aws-sdk/util-user-agent-node": "3.52.0",
43
+ "@aws-sdk/util-body-length-browser": "3.54.0",
44
+ "@aws-sdk/util-body-length-node": "3.54.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.54.1",
46
+ "@aws-sdk/util-defaults-mode-node": "3.54.1",
47
+ "@aws-sdk/util-user-agent-browser": "3.54.1",
48
+ "@aws-sdk/util-user-agent-node": "3.54.1",
49
49
  "@aws-sdk/util-utf8-browser": "3.52.0",
50
50
  "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "tslib": "^2.3.0"