@aws-sdk/client-dynamodb-streams 3.141.0 → 3.142.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 +11 -0
- package/dist-cjs/protocols/Aws_json1_0.js +26 -38
- package/dist-es/protocols/Aws_json1_0.js +39 -39
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.142.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.141.0...v3.142.0) (2022-08-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **codegen:** general data mapping function ([#3830](https://github.com/aws/aws-sdk-js-v3/issues/3830)) ([9417eae](https://github.com/aws/aws-sdk-js-v3/commit/9417eae722806799fb4c15c07921574268c1165c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.141.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.140.0...v3.141.0) (2022-08-01)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -64,7 +64,6 @@ const deserializeAws_json1_0DescribeStreamCommandError = async (output, context)
|
|
|
64
64
|
...output,
|
|
65
65
|
body: await parseBody(output.body, context),
|
|
66
66
|
};
|
|
67
|
-
let response;
|
|
68
67
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
69
68
|
switch (errorCode) {
|
|
70
69
|
case "InternalServerError":
|
|
@@ -75,14 +74,12 @@ const deserializeAws_json1_0DescribeStreamCommandError = async (output, context)
|
|
|
75
74
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
76
75
|
default:
|
|
77
76
|
const parsedBody = parsedOutput.body;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
$metadata,
|
|
77
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
78
|
+
output,
|
|
79
|
+
parsedBody,
|
|
80
|
+
exceptionCtor: DynamoDBStreamsServiceException_1.DynamoDBStreamsServiceException,
|
|
81
|
+
errorCode,
|
|
84
82
|
});
|
|
85
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
86
83
|
}
|
|
87
84
|
};
|
|
88
85
|
const deserializeAws_json1_0GetRecordsCommand = async (output, context) => {
|
|
@@ -104,7 +101,6 @@ const deserializeAws_json1_0GetRecordsCommandError = async (output, context) =>
|
|
|
104
101
|
...output,
|
|
105
102
|
body: await parseBody(output.body, context),
|
|
106
103
|
};
|
|
107
|
-
let response;
|
|
108
104
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
109
105
|
switch (errorCode) {
|
|
110
106
|
case "ExpiredIteratorException":
|
|
@@ -124,14 +120,12 @@ const deserializeAws_json1_0GetRecordsCommandError = async (output, context) =>
|
|
|
124
120
|
throw await deserializeAws_json1_0TrimmedDataAccessExceptionResponse(parsedOutput, context);
|
|
125
121
|
default:
|
|
126
122
|
const parsedBody = parsedOutput.body;
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
$metadata,
|
|
123
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
124
|
+
output,
|
|
125
|
+
parsedBody,
|
|
126
|
+
exceptionCtor: DynamoDBStreamsServiceException_1.DynamoDBStreamsServiceException,
|
|
127
|
+
errorCode,
|
|
133
128
|
});
|
|
134
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
135
129
|
}
|
|
136
130
|
};
|
|
137
131
|
const deserializeAws_json1_0GetShardIteratorCommand = async (output, context) => {
|
|
@@ -153,7 +147,6 @@ const deserializeAws_json1_0GetShardIteratorCommandError = async (output, contex
|
|
|
153
147
|
...output,
|
|
154
148
|
body: await parseBody(output.body, context),
|
|
155
149
|
};
|
|
156
|
-
let response;
|
|
157
150
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
158
151
|
switch (errorCode) {
|
|
159
152
|
case "InternalServerError":
|
|
@@ -167,14 +160,12 @@ const deserializeAws_json1_0GetShardIteratorCommandError = async (output, contex
|
|
|
167
160
|
throw await deserializeAws_json1_0TrimmedDataAccessExceptionResponse(parsedOutput, context);
|
|
168
161
|
default:
|
|
169
162
|
const parsedBody = parsedOutput.body;
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
$metadata,
|
|
163
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
164
|
+
output,
|
|
165
|
+
parsedBody,
|
|
166
|
+
exceptionCtor: DynamoDBStreamsServiceException_1.DynamoDBStreamsServiceException,
|
|
167
|
+
errorCode,
|
|
176
168
|
});
|
|
177
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
178
169
|
}
|
|
179
170
|
};
|
|
180
171
|
const deserializeAws_json1_0ListStreamsCommand = async (output, context) => {
|
|
@@ -196,7 +187,6 @@ const deserializeAws_json1_0ListStreamsCommandError = async (output, context) =>
|
|
|
196
187
|
...output,
|
|
197
188
|
body: await parseBody(output.body, context),
|
|
198
189
|
};
|
|
199
|
-
let response;
|
|
200
190
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
201
191
|
switch (errorCode) {
|
|
202
192
|
case "InternalServerError":
|
|
@@ -207,14 +197,12 @@ const deserializeAws_json1_0ListStreamsCommandError = async (output, context) =>
|
|
|
207
197
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
208
198
|
default:
|
|
209
199
|
const parsedBody = parsedOutput.body;
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
$metadata,
|
|
200
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
201
|
+
output,
|
|
202
|
+
parsedBody,
|
|
203
|
+
exceptionCtor: DynamoDBStreamsServiceException_1.DynamoDBStreamsServiceException,
|
|
204
|
+
errorCode,
|
|
216
205
|
});
|
|
217
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
218
206
|
}
|
|
219
207
|
};
|
|
220
208
|
const deserializeAws_json1_0ExpiredIteratorExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -302,7 +290,7 @@ const deserializeAws_json1_0AttributeMap = (output, context) => {
|
|
|
302
290
|
}, {});
|
|
303
291
|
};
|
|
304
292
|
const deserializeAws_json1_0AttributeValue = (output, context) => {
|
|
305
|
-
if (output.B
|
|
293
|
+
if (output.B != null) {
|
|
306
294
|
return {
|
|
307
295
|
B: context.base64Decoder(output.B),
|
|
308
296
|
};
|
|
@@ -310,17 +298,17 @@ const deserializeAws_json1_0AttributeValue = (output, context) => {
|
|
|
310
298
|
if ((0, smithy_client_1.expectBoolean)(output.BOOL) !== undefined) {
|
|
311
299
|
return { BOOL: (0, smithy_client_1.expectBoolean)(output.BOOL) };
|
|
312
300
|
}
|
|
313
|
-
if (output.BS
|
|
301
|
+
if (output.BS != null) {
|
|
314
302
|
return {
|
|
315
303
|
BS: deserializeAws_json1_0BinarySetAttributeValue(output.BS, context),
|
|
316
304
|
};
|
|
317
305
|
}
|
|
318
|
-
if (output.L
|
|
306
|
+
if (output.L != null) {
|
|
319
307
|
return {
|
|
320
308
|
L: deserializeAws_json1_0ListAttributeValue(output.L, context),
|
|
321
309
|
};
|
|
322
310
|
}
|
|
323
|
-
if (output.M
|
|
311
|
+
if (output.M != null) {
|
|
324
312
|
return {
|
|
325
313
|
M: deserializeAws_json1_0MapAttributeValue(output.M, context),
|
|
326
314
|
};
|
|
@@ -328,7 +316,7 @@ const deserializeAws_json1_0AttributeValue = (output, context) => {
|
|
|
328
316
|
if ((0, smithy_client_1.expectString)(output.N) !== undefined) {
|
|
329
317
|
return { N: (0, smithy_client_1.expectString)(output.N) };
|
|
330
318
|
}
|
|
331
|
-
if (output.NS
|
|
319
|
+
if (output.NS != null) {
|
|
332
320
|
return {
|
|
333
321
|
NS: deserializeAws_json1_0NumberSetAttributeValue(output.NS, context),
|
|
334
322
|
};
|
|
@@ -339,7 +327,7 @@ const deserializeAws_json1_0AttributeValue = (output, context) => {
|
|
|
339
327
|
if ((0, smithy_client_1.expectString)(output.S) !== undefined) {
|
|
340
328
|
return { S: (0, smithy_client_1.expectString)(output.S) };
|
|
341
329
|
}
|
|
342
|
-
if (output.SS
|
|
330
|
+
if (output.SS != null) {
|
|
343
331
|
return {
|
|
344
332
|
SS: deserializeAws_json1_0StringSetAttributeValue(output.SS, context),
|
|
345
333
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, expectUnion as __expectUnion, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, expectUnion as __expectUnion, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { DynamoDBStreamsServiceException as __BaseException } from "../models/DynamoDBStreamsServiceException";
|
|
5
5
|
import { ExpiredIteratorException, InternalServerError, LimitExceededException, ResourceNotFoundException, TrimmedDataAccessException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_json1_0DescribeStreamCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -66,7 +66,7 @@ export var deserializeAws_json1_0DescribeStreamCommand = function (output, conte
|
|
|
66
66
|
});
|
|
67
67
|
}); };
|
|
68
68
|
var deserializeAws_json1_0DescribeStreamCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
69
|
-
var parsedOutput, _a,
|
|
69
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
70
70
|
var _c;
|
|
71
71
|
return __generator(this, function (_d) {
|
|
72
72
|
switch (_d.label) {
|
|
@@ -91,14 +91,14 @@ var deserializeAws_json1_0DescribeStreamCommandError = function (output, context
|
|
|
91
91
|
case 5: throw _d.sent();
|
|
92
92
|
case 6:
|
|
93
93
|
parsedBody = parsedOutput.body;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
$metadata: $metadata,
|
|
94
|
+
throwDefaultError({
|
|
95
|
+
output: output,
|
|
96
|
+
parsedBody: parsedBody,
|
|
97
|
+
exceptionCtor: __BaseException,
|
|
98
|
+
errorCode: errorCode,
|
|
100
99
|
});
|
|
101
|
-
|
|
100
|
+
_d.label = 7;
|
|
101
|
+
case 7: return [2];
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
104
|
}); };
|
|
@@ -121,7 +121,7 @@ export var deserializeAws_json1_0GetRecordsCommand = function (output, context)
|
|
|
121
121
|
});
|
|
122
122
|
}); };
|
|
123
123
|
var deserializeAws_json1_0GetRecordsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
124
|
-
var parsedOutput, _a,
|
|
124
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
125
125
|
var _c;
|
|
126
126
|
return __generator(this, function (_d) {
|
|
127
127
|
switch (_d.label) {
|
|
@@ -158,14 +158,14 @@ var deserializeAws_json1_0GetRecordsCommandError = function (output, context) {
|
|
|
158
158
|
case 11: throw _d.sent();
|
|
159
159
|
case 12:
|
|
160
160
|
parsedBody = parsedOutput.body;
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
$metadata: $metadata,
|
|
161
|
+
throwDefaultError({
|
|
162
|
+
output: output,
|
|
163
|
+
parsedBody: parsedBody,
|
|
164
|
+
exceptionCtor: __BaseException,
|
|
165
|
+
errorCode: errorCode,
|
|
167
166
|
});
|
|
168
|
-
|
|
167
|
+
_d.label = 13;
|
|
168
|
+
case 13: return [2];
|
|
169
169
|
}
|
|
170
170
|
});
|
|
171
171
|
}); };
|
|
@@ -188,7 +188,7 @@ export var deserializeAws_json1_0GetShardIteratorCommand = function (output, con
|
|
|
188
188
|
});
|
|
189
189
|
}); };
|
|
190
190
|
var deserializeAws_json1_0GetShardIteratorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
191
|
-
var parsedOutput, _a,
|
|
191
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
192
192
|
var _c;
|
|
193
193
|
return __generator(this, function (_d) {
|
|
194
194
|
switch (_d.label) {
|
|
@@ -217,14 +217,14 @@ var deserializeAws_json1_0GetShardIteratorCommandError = function (output, conte
|
|
|
217
217
|
case 7: throw _d.sent();
|
|
218
218
|
case 8:
|
|
219
219
|
parsedBody = parsedOutput.body;
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
$metadata: $metadata,
|
|
220
|
+
throwDefaultError({
|
|
221
|
+
output: output,
|
|
222
|
+
parsedBody: parsedBody,
|
|
223
|
+
exceptionCtor: __BaseException,
|
|
224
|
+
errorCode: errorCode,
|
|
226
225
|
});
|
|
227
|
-
|
|
226
|
+
_d.label = 9;
|
|
227
|
+
case 9: return [2];
|
|
228
228
|
}
|
|
229
229
|
});
|
|
230
230
|
}); };
|
|
@@ -247,7 +247,7 @@ export var deserializeAws_json1_0ListStreamsCommand = function (output, context)
|
|
|
247
247
|
});
|
|
248
248
|
}); };
|
|
249
249
|
var deserializeAws_json1_0ListStreamsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
250
|
-
var parsedOutput, _a,
|
|
250
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
251
251
|
var _c;
|
|
252
252
|
return __generator(this, function (_d) {
|
|
253
253
|
switch (_d.label) {
|
|
@@ -272,14 +272,14 @@ var deserializeAws_json1_0ListStreamsCommandError = function (output, context) {
|
|
|
272
272
|
case 5: throw _d.sent();
|
|
273
273
|
case 6:
|
|
274
274
|
parsedBody = parsedOutput.body;
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
$metadata: $metadata,
|
|
275
|
+
throwDefaultError({
|
|
276
|
+
output: output,
|
|
277
|
+
parsedBody: parsedBody,
|
|
278
|
+
exceptionCtor: __BaseException,
|
|
279
|
+
errorCode: errorCode,
|
|
281
280
|
});
|
|
282
|
-
|
|
281
|
+
_d.label = 7;
|
|
282
|
+
case 7: return [2];
|
|
283
283
|
}
|
|
284
284
|
});
|
|
285
285
|
}); };
|
|
@@ -351,7 +351,7 @@ var deserializeAws_json1_0AttributeMap = function (output, context) {
|
|
|
351
351
|
}, {});
|
|
352
352
|
};
|
|
353
353
|
var deserializeAws_json1_0AttributeValue = function (output, context) {
|
|
354
|
-
if (output.B
|
|
354
|
+
if (output.B != null) {
|
|
355
355
|
return {
|
|
356
356
|
B: context.base64Decoder(output.B),
|
|
357
357
|
};
|
|
@@ -359,17 +359,17 @@ var deserializeAws_json1_0AttributeValue = function (output, context) {
|
|
|
359
359
|
if (__expectBoolean(output.BOOL) !== undefined) {
|
|
360
360
|
return { BOOL: __expectBoolean(output.BOOL) };
|
|
361
361
|
}
|
|
362
|
-
if (output.BS
|
|
362
|
+
if (output.BS != null) {
|
|
363
363
|
return {
|
|
364
364
|
BS: deserializeAws_json1_0BinarySetAttributeValue(output.BS, context),
|
|
365
365
|
};
|
|
366
366
|
}
|
|
367
|
-
if (output.L
|
|
367
|
+
if (output.L != null) {
|
|
368
368
|
return {
|
|
369
369
|
L: deserializeAws_json1_0ListAttributeValue(output.L, context),
|
|
370
370
|
};
|
|
371
371
|
}
|
|
372
|
-
if (output.M
|
|
372
|
+
if (output.M != null) {
|
|
373
373
|
return {
|
|
374
374
|
M: deserializeAws_json1_0MapAttributeValue(output.M, context),
|
|
375
375
|
};
|
|
@@ -377,7 +377,7 @@ var deserializeAws_json1_0AttributeValue = function (output, context) {
|
|
|
377
377
|
if (__expectString(output.N) !== undefined) {
|
|
378
378
|
return { N: __expectString(output.N) };
|
|
379
379
|
}
|
|
380
|
-
if (output.NS
|
|
380
|
+
if (output.NS != null) {
|
|
381
381
|
return {
|
|
382
382
|
NS: deserializeAws_json1_0NumberSetAttributeValue(output.NS, context),
|
|
383
383
|
};
|
|
@@ -388,7 +388,7 @@ var deserializeAws_json1_0AttributeValue = function (output, context) {
|
|
|
388
388
|
if (__expectString(output.S) !== undefined) {
|
|
389
389
|
return { S: __expectString(output.S) };
|
|
390
390
|
}
|
|
391
|
-
if (output.SS
|
|
391
|
+
if (output.SS != null) {
|
|
392
392
|
return {
|
|
393
393
|
SS: deserializeAws_json1_0StringSetAttributeValue(output.SS, context),
|
|
394
394
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-dynamodb-streams",
|
|
3
3
|
"description": "AWS SDK for JavaScript Dynamodb Streams Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.142.0",
|
|
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,9 +18,9 @@
|
|
|
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.
|
|
21
|
+
"@aws-sdk/client-sts": "3.142.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.142.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.131.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.127.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
37
|
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
38
|
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
+
"@aws-sdk/smithy-client": "3.142.0",
|
|
40
40
|
"@aws-sdk/types": "3.127.0",
|
|
41
41
|
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.142.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.142.0",
|
|
48
48
|
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
49
|
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|