@aws-sdk/client-dynamodb-streams 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-dynamodb-streams
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-dynamodb-streams
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-dynamodb-streams
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DynamoDBStreamsServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./DynamoDBStreams"), exports);
5
6
  tslib_1.__exportStar(require("./DynamoDBStreamsClient"), exports);
6
7
  tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
9
+ var DynamoDBStreamsServiceException_1 = require("./models/DynamoDBStreamsServiceException");
10
+ Object.defineProperty(exports, "DynamoDBStreamsServiceException", { enumerable: true, get: function () { return DynamoDBStreamsServiceException_1.DynamoDBStreamsServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DynamoDBStreamsServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class DynamoDBStreamsServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, DynamoDBStreamsServiceException.prototype);
9
+ }
10
+ }
11
+ exports.DynamoDBStreamsServiceException = DynamoDBStreamsServiceException;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetRecordsOutput = exports._Record = exports.StreamRecord = exports.AttributeValue = exports.ListStreamsOutput = exports._Stream = exports.ListStreamsInput = exports.GetShardIteratorOutput = exports.GetShardIteratorInput = exports.Identity = exports.GetRecordsInput = exports.DescribeStreamOutput = exports.StreamDescription = exports.Shard = exports.SequenceNumberRange = exports.KeySchemaElement = exports.DescribeStreamInput = void 0;
3
+ exports.GetRecordsOutput = exports._Record = exports.StreamRecord = exports.AttributeValue = exports.ListStreamsOutput = exports._Stream = exports.ListStreamsInput = exports.GetShardIteratorOutput = exports.GetShardIteratorInput = exports.TrimmedDataAccessException = exports.LimitExceededException = exports.Identity = exports.GetRecordsInput = exports.ExpiredIteratorException = exports.ResourceNotFoundException = exports.InternalServerError = exports.DescribeStreamOutput = exports.StreamDescription = exports.Shard = exports.SequenceNumberRange = exports.KeySchemaElement = exports.DescribeStreamInput = void 0;
4
+ const DynamoDBStreamsServiceException_1 = require("./DynamoDBStreamsServiceException");
4
5
  var DescribeStreamInput;
5
6
  (function (DescribeStreamInput) {
6
7
  DescribeStreamInput.filterSensitiveLog = (obj) => ({
@@ -37,6 +38,45 @@ var DescribeStreamOutput;
37
38
  ...obj,
38
39
  });
39
40
  })(DescribeStreamOutput = exports.DescribeStreamOutput || (exports.DescribeStreamOutput = {}));
41
+ class InternalServerError extends DynamoDBStreamsServiceException_1.DynamoDBStreamsServiceException {
42
+ constructor(opts) {
43
+ super({
44
+ name: "InternalServerError",
45
+ $fault: "server",
46
+ ...opts,
47
+ });
48
+ this.name = "InternalServerError";
49
+ this.$fault = "server";
50
+ Object.setPrototypeOf(this, InternalServerError.prototype);
51
+ }
52
+ }
53
+ exports.InternalServerError = InternalServerError;
54
+ class ResourceNotFoundException extends DynamoDBStreamsServiceException_1.DynamoDBStreamsServiceException {
55
+ constructor(opts) {
56
+ super({
57
+ name: "ResourceNotFoundException",
58
+ $fault: "client",
59
+ ...opts,
60
+ });
61
+ this.name = "ResourceNotFoundException";
62
+ this.$fault = "client";
63
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
64
+ }
65
+ }
66
+ exports.ResourceNotFoundException = ResourceNotFoundException;
67
+ class ExpiredIteratorException extends DynamoDBStreamsServiceException_1.DynamoDBStreamsServiceException {
68
+ constructor(opts) {
69
+ super({
70
+ name: "ExpiredIteratorException",
71
+ $fault: "client",
72
+ ...opts,
73
+ });
74
+ this.name = "ExpiredIteratorException";
75
+ this.$fault = "client";
76
+ Object.setPrototypeOf(this, ExpiredIteratorException.prototype);
77
+ }
78
+ }
79
+ exports.ExpiredIteratorException = ExpiredIteratorException;
40
80
  var GetRecordsInput;
41
81
  (function (GetRecordsInput) {
42
82
  GetRecordsInput.filterSensitiveLog = (obj) => ({
@@ -49,6 +89,32 @@ var Identity;
49
89
  ...obj,
50
90
  });
51
91
  })(Identity = exports.Identity || (exports.Identity = {}));
92
+ class LimitExceededException extends DynamoDBStreamsServiceException_1.DynamoDBStreamsServiceException {
93
+ constructor(opts) {
94
+ super({
95
+ name: "LimitExceededException",
96
+ $fault: "client",
97
+ ...opts,
98
+ });
99
+ this.name = "LimitExceededException";
100
+ this.$fault = "client";
101
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
102
+ }
103
+ }
104
+ exports.LimitExceededException = LimitExceededException;
105
+ class TrimmedDataAccessException extends DynamoDBStreamsServiceException_1.DynamoDBStreamsServiceException {
106
+ constructor(opts) {
107
+ super({
108
+ name: "TrimmedDataAccessException",
109
+ $fault: "client",
110
+ ...opts,
111
+ });
112
+ this.name = "TrimmedDataAccessException";
113
+ this.$fault = "client";
114
+ Object.setPrototypeOf(this, TrimmedDataAccessException.prototype);
115
+ }
116
+ }
117
+ exports.TrimmedDataAccessException = TrimmedDataAccessException;
52
118
  var GetShardIteratorInput;
53
119
  (function (GetShardIteratorInput) {
54
120
  GetShardIteratorInput.filterSensitiveLog = (obj) => ({
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.deserializeAws_json1_0ListStreamsCommand = exports.deserializeAws_json1_0GetShardIteratorCommand = exports.deserializeAws_json1_0GetRecordsCommand = exports.deserializeAws_json1_0DescribeStreamCommand = exports.serializeAws_json1_0ListStreamsCommand = exports.serializeAws_json1_0GetShardIteratorCommand = exports.serializeAws_json1_0GetRecordsCommand = exports.serializeAws_json1_0DescribeStreamCommand = 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 DynamoDBStreamsServiceException_1 = require("../models/DynamoDBStreamsServiceException");
7
+ const models_0_1 = require("../models/models_0");
6
8
  const serializeAws_json1_0DescribeStreamCommand = async (input, context) => {
7
9
  const headers = {
8
10
  "content-type": "application/x-amz-json-1.0",
@@ -68,35 +70,19 @@ const deserializeAws_json1_0DescribeStreamCommandError = async (output, context)
68
70
  switch (errorCode) {
69
71
  case "InternalServerError":
70
72
  case "com.amazonaws.dynamodbstreams#InternalServerError":
71
- response = {
72
- ...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
73
- name: errorCode,
74
- $metadata: deserializeMetadata(output),
75
- };
76
- break;
73
+ throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
77
74
  case "ResourceNotFoundException":
78
75
  case "com.amazonaws.dynamodbstreams#ResourceNotFoundException":
79
- response = {
80
- ...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
81
- name: errorCode,
82
- $metadata: deserializeMetadata(output),
83
- };
84
- break;
76
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
85
77
  default:
86
78
  const parsedBody = parsedOutput.body;
87
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
88
- response = {
89
- ...parsedBody,
90
- name: `${errorCode}`,
91
- message: parsedBody.message || parsedBody.Message || errorCode,
79
+ response = new DynamoDBStreamsServiceException_1.DynamoDBStreamsServiceException({
80
+ name: parsedBody.code || parsedBody.Code || errorCode,
92
81
  $fault: "client",
93
82
  $metadata: deserializeMetadata(output),
94
- };
83
+ });
84
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
95
85
  }
96
- const message = response.message || response.Message || errorCode;
97
- response.message = message;
98
- delete response.Message;
99
- return Promise.reject(Object.assign(new Error(message), response));
100
86
  };
101
87
  const deserializeAws_json1_0GetRecordsCommand = async (output, context) => {
102
88
  if (output.statusCode >= 300) {
@@ -123,59 +109,28 @@ const deserializeAws_json1_0GetRecordsCommandError = async (output, context) =>
123
109
  switch (errorCode) {
124
110
  case "ExpiredIteratorException":
125
111
  case "com.amazonaws.dynamodbstreams#ExpiredIteratorException":
126
- response = {
127
- ...(await deserializeAws_json1_0ExpiredIteratorExceptionResponse(parsedOutput, context)),
128
- name: errorCode,
129
- $metadata: deserializeMetadata(output),
130
- };
131
- break;
112
+ throw await deserializeAws_json1_0ExpiredIteratorExceptionResponse(parsedOutput, context);
132
113
  case "InternalServerError":
133
114
  case "com.amazonaws.dynamodbstreams#InternalServerError":
134
- response = {
135
- ...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
136
- name: errorCode,
137
- $metadata: deserializeMetadata(output),
138
- };
139
- break;
115
+ throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
140
116
  case "LimitExceededException":
141
117
  case "com.amazonaws.dynamodbstreams#LimitExceededException":
142
- response = {
143
- ...(await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)),
144
- name: errorCode,
145
- $metadata: deserializeMetadata(output),
146
- };
147
- break;
118
+ throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
148
119
  case "ResourceNotFoundException":
149
120
  case "com.amazonaws.dynamodbstreams#ResourceNotFoundException":
150
- response = {
151
- ...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
152
- name: errorCode,
153
- $metadata: deserializeMetadata(output),
154
- };
155
- break;
121
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
156
122
  case "TrimmedDataAccessException":
157
123
  case "com.amazonaws.dynamodbstreams#TrimmedDataAccessException":
158
- response = {
159
- ...(await deserializeAws_json1_0TrimmedDataAccessExceptionResponse(parsedOutput, context)),
160
- name: errorCode,
161
- $metadata: deserializeMetadata(output),
162
- };
163
- break;
124
+ throw await deserializeAws_json1_0TrimmedDataAccessExceptionResponse(parsedOutput, context);
164
125
  default:
165
126
  const parsedBody = parsedOutput.body;
166
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
167
- response = {
168
- ...parsedBody,
169
- name: `${errorCode}`,
170
- message: parsedBody.message || parsedBody.Message || errorCode,
127
+ response = new DynamoDBStreamsServiceException_1.DynamoDBStreamsServiceException({
128
+ name: parsedBody.code || parsedBody.Code || errorCode,
171
129
  $fault: "client",
172
130
  $metadata: deserializeMetadata(output),
173
- };
131
+ });
132
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
174
133
  }
175
- const message = response.message || response.Message || errorCode;
176
- response.message = message;
177
- delete response.Message;
178
- return Promise.reject(Object.assign(new Error(message), response));
179
134
  };
180
135
  const deserializeAws_json1_0GetShardIteratorCommand = async (output, context) => {
181
136
  if (output.statusCode >= 300) {
@@ -202,43 +157,22 @@ const deserializeAws_json1_0GetShardIteratorCommandError = async (output, contex
202
157
  switch (errorCode) {
203
158
  case "InternalServerError":
204
159
  case "com.amazonaws.dynamodbstreams#InternalServerError":
205
- response = {
206
- ...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
207
- name: errorCode,
208
- $metadata: deserializeMetadata(output),
209
- };
210
- break;
160
+ throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
211
161
  case "ResourceNotFoundException":
212
162
  case "com.amazonaws.dynamodbstreams#ResourceNotFoundException":
213
- response = {
214
- ...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
215
- name: errorCode,
216
- $metadata: deserializeMetadata(output),
217
- };
218
- break;
163
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
219
164
  case "TrimmedDataAccessException":
220
165
  case "com.amazonaws.dynamodbstreams#TrimmedDataAccessException":
221
- response = {
222
- ...(await deserializeAws_json1_0TrimmedDataAccessExceptionResponse(parsedOutput, context)),
223
- name: errorCode,
224
- $metadata: deserializeMetadata(output),
225
- };
226
- break;
166
+ throw await deserializeAws_json1_0TrimmedDataAccessExceptionResponse(parsedOutput, context);
227
167
  default:
228
168
  const parsedBody = parsedOutput.body;
229
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
230
- response = {
231
- ...parsedBody,
232
- name: `${errorCode}`,
233
- message: parsedBody.message || parsedBody.Message || errorCode,
169
+ response = new DynamoDBStreamsServiceException_1.DynamoDBStreamsServiceException({
170
+ name: parsedBody.code || parsedBody.Code || errorCode,
234
171
  $fault: "client",
235
172
  $metadata: deserializeMetadata(output),
236
- };
173
+ });
174
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
237
175
  }
238
- const message = response.message || response.Message || errorCode;
239
- response.message = message;
240
- delete response.Message;
241
- return Promise.reject(Object.assign(new Error(message), response));
242
176
  };
243
177
  const deserializeAws_json1_0ListStreamsCommand = async (output, context) => {
244
178
  if (output.statusCode >= 300) {
@@ -265,90 +199,64 @@ const deserializeAws_json1_0ListStreamsCommandError = async (output, context) =>
265
199
  switch (errorCode) {
266
200
  case "InternalServerError":
267
201
  case "com.amazonaws.dynamodbstreams#InternalServerError":
268
- response = {
269
- ...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
270
- name: errorCode,
271
- $metadata: deserializeMetadata(output),
272
- };
273
- break;
202
+ throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
274
203
  case "ResourceNotFoundException":
275
204
  case "com.amazonaws.dynamodbstreams#ResourceNotFoundException":
276
- response = {
277
- ...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
278
- name: errorCode,
279
- $metadata: deserializeMetadata(output),
280
- };
281
- break;
205
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
282
206
  default:
283
207
  const parsedBody = parsedOutput.body;
284
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
285
- response = {
286
- ...parsedBody,
287
- name: `${errorCode}`,
288
- message: parsedBody.message || parsedBody.Message || errorCode,
208
+ response = new DynamoDBStreamsServiceException_1.DynamoDBStreamsServiceException({
209
+ name: parsedBody.code || parsedBody.Code || errorCode,
289
210
  $fault: "client",
290
211
  $metadata: deserializeMetadata(output),
291
- };
212
+ });
213
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
292
214
  }
293
- const message = response.message || response.Message || errorCode;
294
- response.message = message;
295
- delete response.Message;
296
- return Promise.reject(Object.assign(new Error(message), response));
297
215
  };
298
216
  const deserializeAws_json1_0ExpiredIteratorExceptionResponse = async (parsedOutput, context) => {
299
217
  const body = parsedOutput.body;
300
218
  const deserialized = deserializeAws_json1_0ExpiredIteratorException(body, context);
301
- const contents = {
302
- name: "ExpiredIteratorException",
303
- $fault: "client",
219
+ const exception = new models_0_1.ExpiredIteratorException({
304
220
  $metadata: deserializeMetadata(parsedOutput),
305
221
  ...deserialized,
306
- };
307
- return contents;
222
+ });
223
+ return smithy_client_1.decorateServiceException(exception, body);
308
224
  };
309
225
  const deserializeAws_json1_0InternalServerErrorResponse = async (parsedOutput, context) => {
310
226
  const body = parsedOutput.body;
311
227
  const deserialized = deserializeAws_json1_0InternalServerError(body, context);
312
- const contents = {
313
- name: "InternalServerError",
314
- $fault: "server",
228
+ const exception = new models_0_1.InternalServerError({
315
229
  $metadata: deserializeMetadata(parsedOutput),
316
230
  ...deserialized,
317
- };
318
- return contents;
231
+ });
232
+ return smithy_client_1.decorateServiceException(exception, body);
319
233
  };
320
234
  const deserializeAws_json1_0LimitExceededExceptionResponse = async (parsedOutput, context) => {
321
235
  const body = parsedOutput.body;
322
236
  const deserialized = deserializeAws_json1_0LimitExceededException(body, context);
323
- const contents = {
324
- name: "LimitExceededException",
325
- $fault: "client",
237
+ const exception = new models_0_1.LimitExceededException({
326
238
  $metadata: deserializeMetadata(parsedOutput),
327
239
  ...deserialized,
328
- };
329
- return contents;
240
+ });
241
+ return smithy_client_1.decorateServiceException(exception, body);
330
242
  };
331
243
  const deserializeAws_json1_0ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
332
244
  const body = parsedOutput.body;
333
245
  const deserialized = deserializeAws_json1_0ResourceNotFoundException(body, context);
334
- const contents = {
335
- name: "ResourceNotFoundException",
336
- $fault: "client",
246
+ const exception = new models_0_1.ResourceNotFoundException({
337
247
  $metadata: deserializeMetadata(parsedOutput),
338
248
  ...deserialized,
339
- };
340
- return contents;
249
+ });
250
+ return smithy_client_1.decorateServiceException(exception, body);
341
251
  };
342
252
  const deserializeAws_json1_0TrimmedDataAccessExceptionResponse = async (parsedOutput, context) => {
343
253
  const body = parsedOutput.body;
344
254
  const deserialized = deserializeAws_json1_0TrimmedDataAccessException(body, context);
345
- const contents = {
346
- name: "TrimmedDataAccessException",
347
- $fault: "client",
255
+ const exception = new models_0_1.TrimmedDataAccessException({
348
256
  $metadata: deserializeMetadata(parsedOutput),
349
257
  ...deserialized,
350
- };
351
- return contents;
258
+ });
259
+ return smithy_client_1.decorateServiceException(exception, body);
352
260
  };
353
261
  const serializeAws_json1_0DescribeStreamInput = (input, context) => {
354
262
  return {
@@ -439,7 +347,7 @@ const deserializeAws_json1_0AttributeValue = (output, context) => {
439
347
  return { $unknown: Object.entries(output)[0] };
440
348
  };
441
349
  const deserializeAws_json1_0BinarySetAttributeValue = (output, context) => {
442
- return (output || [])
350
+ const retVal = (output || [])
443
351
  .filter((e) => e != null)
444
352
  .map((entry) => {
445
353
  if (entry === null) {
@@ -447,6 +355,7 @@ const deserializeAws_json1_0BinarySetAttributeValue = (output, context) => {
447
355
  }
448
356
  return context.base64Decoder(entry);
449
357
  });
358
+ return retVal;
450
359
  };
451
360
  const deserializeAws_json1_0DescribeStreamOutput = (output, context) => {
452
361
  return {
@@ -485,7 +394,7 @@ const deserializeAws_json1_0InternalServerError = (output, context) => {
485
394
  };
486
395
  };
487
396
  const deserializeAws_json1_0KeySchema = (output, context) => {
488
- return (output || [])
397
+ const retVal = (output || [])
489
398
  .filter((e) => e != null)
490
399
  .map((entry) => {
491
400
  if (entry === null) {
@@ -493,6 +402,7 @@ const deserializeAws_json1_0KeySchema = (output, context) => {
493
402
  }
494
403
  return deserializeAws_json1_0KeySchemaElement(entry, context);
495
404
  });
405
+ return retVal;
496
406
  };
497
407
  const deserializeAws_json1_0KeySchemaElement = (output, context) => {
498
408
  return {
@@ -506,7 +416,7 @@ const deserializeAws_json1_0LimitExceededException = (output, context) => {
506
416
  };
507
417
  };
508
418
  const deserializeAws_json1_0ListAttributeValue = (output, context) => {
509
- return (output || [])
419
+ const retVal = (output || [])
510
420
  .filter((e) => e != null)
511
421
  .map((entry) => {
512
422
  if (entry === null) {
@@ -514,6 +424,7 @@ const deserializeAws_json1_0ListAttributeValue = (output, context) => {
514
424
  }
515
425
  return deserializeAws_json1_0AttributeValue(smithy_client_1.expectUnion(entry), context);
516
426
  });
427
+ return retVal;
517
428
  };
518
429
  const deserializeAws_json1_0ListStreamsOutput = (output, context) => {
519
430
  return {
@@ -535,7 +446,7 @@ const deserializeAws_json1_0MapAttributeValue = (output, context) => {
535
446
  }, {});
536
447
  };
537
448
  const deserializeAws_json1_0NumberSetAttributeValue = (output, context) => {
538
- return (output || [])
449
+ const retVal = (output || [])
539
450
  .filter((e) => e != null)
540
451
  .map((entry) => {
541
452
  if (entry === null) {
@@ -543,6 +454,7 @@ const deserializeAws_json1_0NumberSetAttributeValue = (output, context) => {
543
454
  }
544
455
  return smithy_client_1.expectString(entry);
545
456
  });
457
+ return retVal;
546
458
  };
547
459
  const deserializeAws_json1_0_Record = (output, context) => {
548
460
  return {
@@ -560,7 +472,7 @@ const deserializeAws_json1_0_Record = (output, context) => {
560
472
  };
561
473
  };
562
474
  const deserializeAws_json1_0RecordList = (output, context) => {
563
- return (output || [])
475
+ const retVal = (output || [])
564
476
  .filter((e) => e != null)
565
477
  .map((entry) => {
566
478
  if (entry === null) {
@@ -568,6 +480,7 @@ const deserializeAws_json1_0RecordList = (output, context) => {
568
480
  }
569
481
  return deserializeAws_json1_0_Record(entry, context);
570
482
  });
483
+ return retVal;
571
484
  };
572
485
  const deserializeAws_json1_0ResourceNotFoundException = (output, context) => {
573
486
  return {
@@ -590,7 +503,7 @@ const deserializeAws_json1_0Shard = (output, context) => {
590
503
  };
591
504
  };
592
505
  const deserializeAws_json1_0ShardDescriptionList = (output, context) => {
593
- return (output || [])
506
+ const retVal = (output || [])
594
507
  .filter((e) => e != null)
595
508
  .map((entry) => {
596
509
  if (entry === null) {
@@ -598,6 +511,7 @@ const deserializeAws_json1_0ShardDescriptionList = (output, context) => {
598
511
  }
599
512
  return deserializeAws_json1_0Shard(entry, context);
600
513
  });
514
+ return retVal;
601
515
  };
602
516
  const deserializeAws_json1_0_Stream = (output, context) => {
603
517
  return {
@@ -626,7 +540,7 @@ const deserializeAws_json1_0StreamDescription = (output, context) => {
626
540
  };
627
541
  };
628
542
  const deserializeAws_json1_0StreamList = (output, context) => {
629
- return (output || [])
543
+ const retVal = (output || [])
630
544
  .filter((e) => e != null)
631
545
  .map((entry) => {
632
546
  if (entry === null) {
@@ -634,6 +548,7 @@ const deserializeAws_json1_0StreamList = (output, context) => {
634
548
  }
635
549
  return deserializeAws_json1_0_Stream(entry, context);
636
550
  });
551
+ return retVal;
637
552
  };
638
553
  const deserializeAws_json1_0StreamRecord = (output, context) => {
639
554
  return {
@@ -655,7 +570,7 @@ const deserializeAws_json1_0StreamRecord = (output, context) => {
655
570
  };
656
571
  };
657
572
  const deserializeAws_json1_0StringSetAttributeValue = (output, context) => {
658
- return (output || [])
573
+ const retVal = (output || [])
659
574
  .filter((e) => e != null)
660
575
  .map((entry) => {
661
576
  if (entry === null) {
@@ -663,6 +578,7 @@ const deserializeAws_json1_0StringSetAttributeValue = (output, context) => {
663
578
  }
664
579
  return smithy_client_1.expectString(entry);
665
580
  });
581
+ return retVal;
666
582
  };
667
583
  const deserializeAws_json1_0TrimmedDataAccessException = (output, context) => {
668
584
  return {
package/dist-es/index.js CHANGED
@@ -2,3 +2,4 @@ export * from "./DynamoDBStreams";
2
2
  export * from "./DynamoDBStreamsClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { DynamoDBStreamsServiceException } from "./models/DynamoDBStreamsServiceException";
@@ -0,0 +1,12 @@
1
+ import { __extends } from "tslib";
2
+ import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
+ var DynamoDBStreamsServiceException = (function (_super) {
4
+ __extends(DynamoDBStreamsServiceException, _super);
5
+ function DynamoDBStreamsServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, DynamoDBStreamsServiceException.prototype);
8
+ return _this;
9
+ }
10
+ return DynamoDBStreamsServiceException;
11
+ }(__ServiceException));
12
+ export { DynamoDBStreamsServiceException };
@@ -1,4 +1,5 @@
1
- import { __assign, __read } from "tslib";
1
+ import { __assign, __extends, __read } from "tslib";
2
+ import { DynamoDBStreamsServiceException as __BaseException } from "./DynamoDBStreamsServiceException";
2
3
  export var DescribeStreamInput;
3
4
  (function (DescribeStreamInput) {
4
5
  DescribeStreamInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -23,6 +24,42 @@ export var DescribeStreamOutput;
23
24
  (function (DescribeStreamOutput) {
24
25
  DescribeStreamOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
25
26
  })(DescribeStreamOutput || (DescribeStreamOutput = {}));
27
+ var InternalServerError = (function (_super) {
28
+ __extends(InternalServerError, _super);
29
+ function InternalServerError(opts) {
30
+ var _this = _super.call(this, __assign({ name: "InternalServerError", $fault: "server" }, opts)) || this;
31
+ _this.name = "InternalServerError";
32
+ _this.$fault = "server";
33
+ Object.setPrototypeOf(_this, InternalServerError.prototype);
34
+ return _this;
35
+ }
36
+ return InternalServerError;
37
+ }(__BaseException));
38
+ export { InternalServerError };
39
+ var ResourceNotFoundException = (function (_super) {
40
+ __extends(ResourceNotFoundException, _super);
41
+ function ResourceNotFoundException(opts) {
42
+ var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
43
+ _this.name = "ResourceNotFoundException";
44
+ _this.$fault = "client";
45
+ Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
46
+ return _this;
47
+ }
48
+ return ResourceNotFoundException;
49
+ }(__BaseException));
50
+ export { ResourceNotFoundException };
51
+ var ExpiredIteratorException = (function (_super) {
52
+ __extends(ExpiredIteratorException, _super);
53
+ function ExpiredIteratorException(opts) {
54
+ var _this = _super.call(this, __assign({ name: "ExpiredIteratorException", $fault: "client" }, opts)) || this;
55
+ _this.name = "ExpiredIteratorException";
56
+ _this.$fault = "client";
57
+ Object.setPrototypeOf(_this, ExpiredIteratorException.prototype);
58
+ return _this;
59
+ }
60
+ return ExpiredIteratorException;
61
+ }(__BaseException));
62
+ export { ExpiredIteratorException };
26
63
  export var GetRecordsInput;
27
64
  (function (GetRecordsInput) {
28
65
  GetRecordsInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -31,6 +68,30 @@ export var Identity;
31
68
  (function (Identity) {
32
69
  Identity.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
33
70
  })(Identity || (Identity = {}));
71
+ var LimitExceededException = (function (_super) {
72
+ __extends(LimitExceededException, _super);
73
+ function LimitExceededException(opts) {
74
+ var _this = _super.call(this, __assign({ name: "LimitExceededException", $fault: "client" }, opts)) || this;
75
+ _this.name = "LimitExceededException";
76
+ _this.$fault = "client";
77
+ Object.setPrototypeOf(_this, LimitExceededException.prototype);
78
+ return _this;
79
+ }
80
+ return LimitExceededException;
81
+ }(__BaseException));
82
+ export { LimitExceededException };
83
+ var TrimmedDataAccessException = (function (_super) {
84
+ __extends(TrimmedDataAccessException, _super);
85
+ function TrimmedDataAccessException(opts) {
86
+ var _this = _super.call(this, __assign({ name: "TrimmedDataAccessException", $fault: "client" }, opts)) || this;
87
+ _this.name = "TrimmedDataAccessException";
88
+ _this.$fault = "client";
89
+ Object.setPrototypeOf(_this, TrimmedDataAccessException.prototype);
90
+ return _this;
91
+ }
92
+ return TrimmedDataAccessException;
93
+ }(__BaseException));
94
+ export { TrimmedDataAccessException };
34
95
  export var GetShardIteratorInput;
35
96
  (function (GetShardIteratorInput) {
36
97
  GetShardIteratorInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };