@aws-sdk/client-dynamodb-streams 3.504.0 → 3.507.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/dist-cjs/index.js +15 -84
- package/dist-es/protocols/Aws_json1_0.js +14 -83
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -323,7 +323,7 @@ var se_ListStreamsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
323
323
|
}, "se_ListStreamsCommand");
|
|
324
324
|
var de_DescribeStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
325
325
|
if (output.statusCode >= 300) {
|
|
326
|
-
return
|
|
326
|
+
return de_CommandError(output, context);
|
|
327
327
|
}
|
|
328
328
|
const data = await parseBody(output.body, context);
|
|
329
329
|
let contents = {};
|
|
@@ -334,31 +334,9 @@ var de_DescribeStreamCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
334
334
|
};
|
|
335
335
|
return response;
|
|
336
336
|
}, "de_DescribeStreamCommand");
|
|
337
|
-
var de_DescribeStreamCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
338
|
-
const parsedOutput = {
|
|
339
|
-
...output,
|
|
340
|
-
body: await parseErrorBody(output.body, context)
|
|
341
|
-
};
|
|
342
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
343
|
-
switch (errorCode) {
|
|
344
|
-
case "InternalServerError":
|
|
345
|
-
case "com.amazonaws.dynamodbstreams#InternalServerError":
|
|
346
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
347
|
-
case "ResourceNotFoundException":
|
|
348
|
-
case "com.amazonaws.dynamodbstreams#ResourceNotFoundException":
|
|
349
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
350
|
-
default:
|
|
351
|
-
const parsedBody = parsedOutput.body;
|
|
352
|
-
return throwDefaultError({
|
|
353
|
-
output,
|
|
354
|
-
parsedBody,
|
|
355
|
-
errorCode
|
|
356
|
-
});
|
|
357
|
-
}
|
|
358
|
-
}, "de_DescribeStreamCommandError");
|
|
359
337
|
var de_GetRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
360
338
|
if (output.statusCode >= 300) {
|
|
361
|
-
return
|
|
339
|
+
return de_CommandError(output, context);
|
|
362
340
|
}
|
|
363
341
|
const data = await parseBody(output.body, context);
|
|
364
342
|
let contents = {};
|
|
@@ -369,40 +347,9 @@ var de_GetRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
369
347
|
};
|
|
370
348
|
return response;
|
|
371
349
|
}, "de_GetRecordsCommand");
|
|
372
|
-
var de_GetRecordsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
373
|
-
const parsedOutput = {
|
|
374
|
-
...output,
|
|
375
|
-
body: await parseErrorBody(output.body, context)
|
|
376
|
-
};
|
|
377
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
378
|
-
switch (errorCode) {
|
|
379
|
-
case "ExpiredIteratorException":
|
|
380
|
-
case "com.amazonaws.dynamodbstreams#ExpiredIteratorException":
|
|
381
|
-
throw await de_ExpiredIteratorExceptionRes(parsedOutput, context);
|
|
382
|
-
case "InternalServerError":
|
|
383
|
-
case "com.amazonaws.dynamodbstreams#InternalServerError":
|
|
384
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
385
|
-
case "LimitExceededException":
|
|
386
|
-
case "com.amazonaws.dynamodbstreams#LimitExceededException":
|
|
387
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
388
|
-
case "ResourceNotFoundException":
|
|
389
|
-
case "com.amazonaws.dynamodbstreams#ResourceNotFoundException":
|
|
390
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
391
|
-
case "TrimmedDataAccessException":
|
|
392
|
-
case "com.amazonaws.dynamodbstreams#TrimmedDataAccessException":
|
|
393
|
-
throw await de_TrimmedDataAccessExceptionRes(parsedOutput, context);
|
|
394
|
-
default:
|
|
395
|
-
const parsedBody = parsedOutput.body;
|
|
396
|
-
return throwDefaultError({
|
|
397
|
-
output,
|
|
398
|
-
parsedBody,
|
|
399
|
-
errorCode
|
|
400
|
-
});
|
|
401
|
-
}
|
|
402
|
-
}, "de_GetRecordsCommandError");
|
|
403
350
|
var de_GetShardIteratorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
404
351
|
if (output.statusCode >= 300) {
|
|
405
|
-
return
|
|
352
|
+
return de_CommandError(output, context);
|
|
406
353
|
}
|
|
407
354
|
const data = await parseBody(output.body, context);
|
|
408
355
|
let contents = {};
|
|
@@ -413,34 +360,9 @@ var de_GetShardIteratorCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
413
360
|
};
|
|
414
361
|
return response;
|
|
415
362
|
}, "de_GetShardIteratorCommand");
|
|
416
|
-
var de_GetShardIteratorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
417
|
-
const parsedOutput = {
|
|
418
|
-
...output,
|
|
419
|
-
body: await parseErrorBody(output.body, context)
|
|
420
|
-
};
|
|
421
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
422
|
-
switch (errorCode) {
|
|
423
|
-
case "InternalServerError":
|
|
424
|
-
case "com.amazonaws.dynamodbstreams#InternalServerError":
|
|
425
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
426
|
-
case "ResourceNotFoundException":
|
|
427
|
-
case "com.amazonaws.dynamodbstreams#ResourceNotFoundException":
|
|
428
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
429
|
-
case "TrimmedDataAccessException":
|
|
430
|
-
case "com.amazonaws.dynamodbstreams#TrimmedDataAccessException":
|
|
431
|
-
throw await de_TrimmedDataAccessExceptionRes(parsedOutput, context);
|
|
432
|
-
default:
|
|
433
|
-
const parsedBody = parsedOutput.body;
|
|
434
|
-
return throwDefaultError({
|
|
435
|
-
output,
|
|
436
|
-
parsedBody,
|
|
437
|
-
errorCode
|
|
438
|
-
});
|
|
439
|
-
}
|
|
440
|
-
}, "de_GetShardIteratorCommandError");
|
|
441
363
|
var de_ListStreamsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
442
364
|
if (output.statusCode >= 300) {
|
|
443
|
-
return
|
|
365
|
+
return de_CommandError(output, context);
|
|
444
366
|
}
|
|
445
367
|
const data = await parseBody(output.body, context);
|
|
446
368
|
let contents = {};
|
|
@@ -451,7 +373,7 @@ var de_ListStreamsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
451
373
|
};
|
|
452
374
|
return response;
|
|
453
375
|
}, "de_ListStreamsCommand");
|
|
454
|
-
var
|
|
376
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
455
377
|
const parsedOutput = {
|
|
456
378
|
...output,
|
|
457
379
|
body: await parseErrorBody(output.body, context)
|
|
@@ -464,6 +386,15 @@ var de_ListStreamsCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
464
386
|
case "ResourceNotFoundException":
|
|
465
387
|
case "com.amazonaws.dynamodbstreams#ResourceNotFoundException":
|
|
466
388
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
389
|
+
case "ExpiredIteratorException":
|
|
390
|
+
case "com.amazonaws.dynamodbstreams#ExpiredIteratorException":
|
|
391
|
+
throw await de_ExpiredIteratorExceptionRes(parsedOutput, context);
|
|
392
|
+
case "LimitExceededException":
|
|
393
|
+
case "com.amazonaws.dynamodbstreams#LimitExceededException":
|
|
394
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
395
|
+
case "TrimmedDataAccessException":
|
|
396
|
+
case "com.amazonaws.dynamodbstreams#TrimmedDataAccessException":
|
|
397
|
+
throw await de_TrimmedDataAccessExceptionRes(parsedOutput, context);
|
|
467
398
|
default:
|
|
468
399
|
const parsedBody = parsedOutput.body;
|
|
469
400
|
return throwDefaultError({
|
|
@@ -472,7 +403,7 @@ var de_ListStreamsCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
472
403
|
errorCode
|
|
473
404
|
});
|
|
474
405
|
}
|
|
475
|
-
}, "
|
|
406
|
+
}, "de_CommandError");
|
|
476
407
|
var de_ExpiredIteratorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
477
408
|
const body = parsedOutput.body;
|
|
478
409
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -29,7 +29,7 @@ export const se_ListStreamsCommand = async (input, context) => {
|
|
|
29
29
|
};
|
|
30
30
|
export const de_DescribeStreamCommand = async (output, context) => {
|
|
31
31
|
if (output.statusCode >= 300) {
|
|
32
|
-
return
|
|
32
|
+
return de_CommandError(output, context);
|
|
33
33
|
}
|
|
34
34
|
const data = await parseBody(output.body, context);
|
|
35
35
|
let contents = {};
|
|
@@ -40,31 +40,9 @@ export const de_DescribeStreamCommand = async (output, context) => {
|
|
|
40
40
|
};
|
|
41
41
|
return response;
|
|
42
42
|
};
|
|
43
|
-
const de_DescribeStreamCommandError = async (output, context) => {
|
|
44
|
-
const parsedOutput = {
|
|
45
|
-
...output,
|
|
46
|
-
body: await parseErrorBody(output.body, context),
|
|
47
|
-
};
|
|
48
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
49
|
-
switch (errorCode) {
|
|
50
|
-
case "InternalServerError":
|
|
51
|
-
case "com.amazonaws.dynamodbstreams#InternalServerError":
|
|
52
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
53
|
-
case "ResourceNotFoundException":
|
|
54
|
-
case "com.amazonaws.dynamodbstreams#ResourceNotFoundException":
|
|
55
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
56
|
-
default:
|
|
57
|
-
const parsedBody = parsedOutput.body;
|
|
58
|
-
return throwDefaultError({
|
|
59
|
-
output,
|
|
60
|
-
parsedBody,
|
|
61
|
-
errorCode,
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
43
|
export const de_GetRecordsCommand = async (output, context) => {
|
|
66
44
|
if (output.statusCode >= 300) {
|
|
67
|
-
return
|
|
45
|
+
return de_CommandError(output, context);
|
|
68
46
|
}
|
|
69
47
|
const data = await parseBody(output.body, context);
|
|
70
48
|
let contents = {};
|
|
@@ -75,40 +53,9 @@ export const de_GetRecordsCommand = async (output, context) => {
|
|
|
75
53
|
};
|
|
76
54
|
return response;
|
|
77
55
|
};
|
|
78
|
-
const de_GetRecordsCommandError = async (output, context) => {
|
|
79
|
-
const parsedOutput = {
|
|
80
|
-
...output,
|
|
81
|
-
body: await parseErrorBody(output.body, context),
|
|
82
|
-
};
|
|
83
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
84
|
-
switch (errorCode) {
|
|
85
|
-
case "ExpiredIteratorException":
|
|
86
|
-
case "com.amazonaws.dynamodbstreams#ExpiredIteratorException":
|
|
87
|
-
throw await de_ExpiredIteratorExceptionRes(parsedOutput, context);
|
|
88
|
-
case "InternalServerError":
|
|
89
|
-
case "com.amazonaws.dynamodbstreams#InternalServerError":
|
|
90
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
91
|
-
case "LimitExceededException":
|
|
92
|
-
case "com.amazonaws.dynamodbstreams#LimitExceededException":
|
|
93
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
94
|
-
case "ResourceNotFoundException":
|
|
95
|
-
case "com.amazonaws.dynamodbstreams#ResourceNotFoundException":
|
|
96
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
97
|
-
case "TrimmedDataAccessException":
|
|
98
|
-
case "com.amazonaws.dynamodbstreams#TrimmedDataAccessException":
|
|
99
|
-
throw await de_TrimmedDataAccessExceptionRes(parsedOutput, context);
|
|
100
|
-
default:
|
|
101
|
-
const parsedBody = parsedOutput.body;
|
|
102
|
-
return throwDefaultError({
|
|
103
|
-
output,
|
|
104
|
-
parsedBody,
|
|
105
|
-
errorCode,
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
56
|
export const de_GetShardIteratorCommand = async (output, context) => {
|
|
110
57
|
if (output.statusCode >= 300) {
|
|
111
|
-
return
|
|
58
|
+
return de_CommandError(output, context);
|
|
112
59
|
}
|
|
113
60
|
const data = await parseBody(output.body, context);
|
|
114
61
|
let contents = {};
|
|
@@ -119,34 +66,9 @@ export const de_GetShardIteratorCommand = async (output, context) => {
|
|
|
119
66
|
};
|
|
120
67
|
return response;
|
|
121
68
|
};
|
|
122
|
-
const de_GetShardIteratorCommandError = async (output, context) => {
|
|
123
|
-
const parsedOutput = {
|
|
124
|
-
...output,
|
|
125
|
-
body: await parseErrorBody(output.body, context),
|
|
126
|
-
};
|
|
127
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
128
|
-
switch (errorCode) {
|
|
129
|
-
case "InternalServerError":
|
|
130
|
-
case "com.amazonaws.dynamodbstreams#InternalServerError":
|
|
131
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
132
|
-
case "ResourceNotFoundException":
|
|
133
|
-
case "com.amazonaws.dynamodbstreams#ResourceNotFoundException":
|
|
134
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
135
|
-
case "TrimmedDataAccessException":
|
|
136
|
-
case "com.amazonaws.dynamodbstreams#TrimmedDataAccessException":
|
|
137
|
-
throw await de_TrimmedDataAccessExceptionRes(parsedOutput, context);
|
|
138
|
-
default:
|
|
139
|
-
const parsedBody = parsedOutput.body;
|
|
140
|
-
return throwDefaultError({
|
|
141
|
-
output,
|
|
142
|
-
parsedBody,
|
|
143
|
-
errorCode,
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
69
|
export const de_ListStreamsCommand = async (output, context) => {
|
|
148
70
|
if (output.statusCode >= 300) {
|
|
149
|
-
return
|
|
71
|
+
return de_CommandError(output, context);
|
|
150
72
|
}
|
|
151
73
|
const data = await parseBody(output.body, context);
|
|
152
74
|
let contents = {};
|
|
@@ -157,7 +79,7 @@ export const de_ListStreamsCommand = async (output, context) => {
|
|
|
157
79
|
};
|
|
158
80
|
return response;
|
|
159
81
|
};
|
|
160
|
-
const
|
|
82
|
+
const de_CommandError = async (output, context) => {
|
|
161
83
|
const parsedOutput = {
|
|
162
84
|
...output,
|
|
163
85
|
body: await parseErrorBody(output.body, context),
|
|
@@ -170,6 +92,15 @@ const de_ListStreamsCommandError = async (output, context) => {
|
|
|
170
92
|
case "ResourceNotFoundException":
|
|
171
93
|
case "com.amazonaws.dynamodbstreams#ResourceNotFoundException":
|
|
172
94
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
95
|
+
case "ExpiredIteratorException":
|
|
96
|
+
case "com.amazonaws.dynamodbstreams#ExpiredIteratorException":
|
|
97
|
+
throw await de_ExpiredIteratorExceptionRes(parsedOutput, context);
|
|
98
|
+
case "LimitExceededException":
|
|
99
|
+
case "com.amazonaws.dynamodbstreams#LimitExceededException":
|
|
100
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
101
|
+
case "TrimmedDataAccessException":
|
|
102
|
+
case "com.amazonaws.dynamodbstreams#TrimmedDataAccessException":
|
|
103
|
+
throw await de_TrimmedDataAccessExceptionRes(parsedOutput, context);
|
|
173
104
|
default:
|
|
174
105
|
const parsedBody = parsedOutput.body;
|
|
175
106
|
return throwDefaultError({
|
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.507.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-dynamodb-streams",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.507.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|