@aws-sdk/client-dynamodb-streams 3.180.0 → 3.183.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_json1_0.js +10 -4
- package/dist-es/DynamoDBStreams.js +18 -25
- package/dist-es/DynamoDBStreamsClient.js +22 -28
- package/dist-es/commands/DescribeStreamCommand.js +21 -28
- package/dist-es/commands/GetRecordsCommand.js +21 -28
- package/dist-es/commands/GetShardIteratorCommand.js +21 -28
- package/dist-es/commands/ListStreamsCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/DynamoDBStreamsServiceException.js +5 -10
- package/dist-es/models/models_0.js +131 -100
- package/dist-es/protocols/Aws_json1_0.js +359 -440
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-dynamodb-streams
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-dynamodb-streams
|
|
@@ -62,7 +62,7 @@ exports.deserializeAws_json1_0DescribeStreamCommand = deserializeAws_json1_0Desc
|
|
|
62
62
|
const deserializeAws_json1_0DescribeStreamCommandError = async (output, context) => {
|
|
63
63
|
const parsedOutput = {
|
|
64
64
|
...output,
|
|
65
|
-
body: await
|
|
65
|
+
body: await parseErrorBody(output.body, context),
|
|
66
66
|
};
|
|
67
67
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
68
68
|
switch (errorCode) {
|
|
@@ -99,7 +99,7 @@ exports.deserializeAws_json1_0GetRecordsCommand = deserializeAws_json1_0GetRecor
|
|
|
99
99
|
const deserializeAws_json1_0GetRecordsCommandError = async (output, context) => {
|
|
100
100
|
const parsedOutput = {
|
|
101
101
|
...output,
|
|
102
|
-
body: await
|
|
102
|
+
body: await parseErrorBody(output.body, context),
|
|
103
103
|
};
|
|
104
104
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
105
105
|
switch (errorCode) {
|
|
@@ -145,7 +145,7 @@ exports.deserializeAws_json1_0GetShardIteratorCommand = deserializeAws_json1_0Ge
|
|
|
145
145
|
const deserializeAws_json1_0GetShardIteratorCommandError = async (output, context) => {
|
|
146
146
|
const parsedOutput = {
|
|
147
147
|
...output,
|
|
148
|
-
body: await
|
|
148
|
+
body: await parseErrorBody(output.body, context),
|
|
149
149
|
};
|
|
150
150
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
151
151
|
switch (errorCode) {
|
|
@@ -185,7 +185,7 @@ exports.deserializeAws_json1_0ListStreamsCommand = deserializeAws_json1_0ListStr
|
|
|
185
185
|
const deserializeAws_json1_0ListStreamsCommandError = async (output, context) => {
|
|
186
186
|
const parsedOutput = {
|
|
187
187
|
...output,
|
|
188
|
-
body: await
|
|
188
|
+
body: await parseErrorBody(output.body, context),
|
|
189
189
|
};
|
|
190
190
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
191
191
|
switch (errorCode) {
|
|
@@ -595,6 +595,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
595
595
|
}
|
|
596
596
|
return {};
|
|
597
597
|
});
|
|
598
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
599
|
+
var _a;
|
|
600
|
+
const value = await parseBody(errorBody, context);
|
|
601
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
602
|
+
return value;
|
|
603
|
+
};
|
|
598
604
|
const loadRestJsonErrorCode = (output, data) => {
|
|
599
605
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
600
606
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -1,70 +1,63 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { DescribeStreamCommand, } from "./commands/DescribeStreamCommand";
|
|
3
2
|
import { GetRecordsCommand } from "./commands/GetRecordsCommand";
|
|
4
3
|
import { GetShardIteratorCommand, } from "./commands/GetShardIteratorCommand";
|
|
5
4
|
import { ListStreamsCommand } from "./commands/ListStreamsCommand";
|
|
6
5
|
import { DynamoDBStreamsClient } from "./DynamoDBStreamsClient";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
11
|
-
}
|
|
12
|
-
DynamoDBStreams.prototype.describeStream = function (args, optionsOrCb, cb) {
|
|
13
|
-
var command = new DescribeStreamCommand(args);
|
|
6
|
+
export class DynamoDBStreams extends DynamoDBStreamsClient {
|
|
7
|
+
describeStream(args, optionsOrCb, cb) {
|
|
8
|
+
const command = new DescribeStreamCommand(args);
|
|
14
9
|
if (typeof optionsOrCb === "function") {
|
|
15
10
|
this.send(command, optionsOrCb);
|
|
16
11
|
}
|
|
17
12
|
else if (typeof cb === "function") {
|
|
18
13
|
if (typeof optionsOrCb !== "object")
|
|
19
|
-
throw new Error(
|
|
14
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
20
15
|
this.send(command, optionsOrCb || {}, cb);
|
|
21
16
|
}
|
|
22
17
|
else {
|
|
23
18
|
return this.send(command, optionsOrCb);
|
|
24
19
|
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
}
|
|
21
|
+
getRecords(args, optionsOrCb, cb) {
|
|
22
|
+
const command = new GetRecordsCommand(args);
|
|
28
23
|
if (typeof optionsOrCb === "function") {
|
|
29
24
|
this.send(command, optionsOrCb);
|
|
30
25
|
}
|
|
31
26
|
else if (typeof cb === "function") {
|
|
32
27
|
if (typeof optionsOrCb !== "object")
|
|
33
|
-
throw new Error(
|
|
28
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
34
29
|
this.send(command, optionsOrCb || {}, cb);
|
|
35
30
|
}
|
|
36
31
|
else {
|
|
37
32
|
return this.send(command, optionsOrCb);
|
|
38
33
|
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
34
|
+
}
|
|
35
|
+
getShardIterator(args, optionsOrCb, cb) {
|
|
36
|
+
const command = new GetShardIteratorCommand(args);
|
|
42
37
|
if (typeof optionsOrCb === "function") {
|
|
43
38
|
this.send(command, optionsOrCb);
|
|
44
39
|
}
|
|
45
40
|
else if (typeof cb === "function") {
|
|
46
41
|
if (typeof optionsOrCb !== "object")
|
|
47
|
-
throw new Error(
|
|
42
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
48
43
|
this.send(command, optionsOrCb || {}, cb);
|
|
49
44
|
}
|
|
50
45
|
else {
|
|
51
46
|
return this.send(command, optionsOrCb);
|
|
52
47
|
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
48
|
+
}
|
|
49
|
+
listStreams(args, optionsOrCb, cb) {
|
|
50
|
+
const command = new ListStreamsCommand(args);
|
|
56
51
|
if (typeof optionsOrCb === "function") {
|
|
57
52
|
this.send(command, optionsOrCb);
|
|
58
53
|
}
|
|
59
54
|
else if (typeof cb === "function") {
|
|
60
55
|
if (typeof optionsOrCb !== "object")
|
|
61
|
-
throw new Error(
|
|
56
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
62
57
|
this.send(command, optionsOrCb || {}, cb);
|
|
63
58
|
}
|
|
64
59
|
else {
|
|
65
60
|
return this.send(command, optionsOrCb);
|
|
66
61
|
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
}(DynamoDBStreamsClient));
|
|
70
|
-
export { DynamoDBStreams };
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
2
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
3
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
9
8
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
9
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
10
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
-
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
-
return _this;
|
|
11
|
+
export class DynamoDBStreamsClient extends __Client {
|
|
12
|
+
constructor(configuration) {
|
|
13
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
14
|
+
const _config_1 = resolveRegionConfig(_config_0);
|
|
15
|
+
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
16
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
17
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
18
|
+
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
19
|
+
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
20
|
+
super(_config_6);
|
|
21
|
+
this.config = _config_6;
|
|
22
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
23
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
24
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
25
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
26
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
27
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
33
29
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}(__Client));
|
|
39
|
-
export { DynamoDBStreamsClient };
|
|
30
|
+
destroy() {
|
|
31
|
+
super.destroy();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { DescribeStreamInputFilterSensitiveLog, DescribeStreamOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_json1_0DescribeStreamCommand, serializeAws_json1_0DescribeStreamCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class DescribeStreamCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "DynamoDBStreamsClient";
|
|
15
|
+
const commandName = "DescribeStreamCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: DescribeStreamInputFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: DescribeStreamOutputFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
DescribeStreamCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_json1_0DescribeStreamCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_json1_0DescribeStreamCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { DescribeStreamCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { GetRecordsInputFilterSensitiveLog, GetRecordsOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_json1_0GetRecordsCommand, serializeAws_json1_0GetRecordsCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class GetRecordsCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "DynamoDBStreamsClient";
|
|
15
|
+
const commandName = "GetRecordsCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: GetRecordsInputFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: GetRecordsOutputFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
GetRecordsCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_json1_0GetRecordsCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_json1_0GetRecordsCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { GetRecordsCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { GetShardIteratorInputFilterSensitiveLog, GetShardIteratorOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_json1_0GetShardIteratorCommand, serializeAws_json1_0GetShardIteratorCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class GetShardIteratorCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "DynamoDBStreamsClient";
|
|
15
|
+
const commandName = "GetShardIteratorCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: GetShardIteratorInputFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: GetShardIteratorOutputFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
GetShardIteratorCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_json1_0GetShardIteratorCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_json1_0GetShardIteratorCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { GetShardIteratorCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { ListStreamsInputFilterSensitiveLog, ListStreamsOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_json1_0ListStreamsCommand, serializeAws_json1_0ListStreamsCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class ListStreamsCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "DynamoDBStreamsClient";
|
|
15
|
+
const commandName = "ListStreamsCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: ListStreamsInputFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: ListStreamsOutputFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
ListStreamsCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_json1_0ListStreamsCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_json1_0ListStreamsCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { ListStreamsCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
3
|
-
|
|
2
|
+
const regionHash = {
|
|
4
3
|
local: {
|
|
5
4
|
variants: [
|
|
6
5
|
{
|
|
@@ -27,7 +26,7 @@ var regionHash = {
|
|
|
27
26
|
],
|
|
28
27
|
},
|
|
29
28
|
};
|
|
30
|
-
|
|
29
|
+
const partitionHash = {
|
|
31
30
|
aws: {
|
|
32
31
|
regions: [
|
|
33
32
|
"af-south-1",
|
|
@@ -148,8 +147,9 @@ var partitionHash = {
|
|
|
148
147
|
],
|
|
149
148
|
},
|
|
150
149
|
};
|
|
151
|
-
export
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
150
|
+
export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
|
|
151
|
+
...options,
|
|
152
|
+
signingService: "dynamodb",
|
|
153
|
+
regionHash,
|
|
154
|
+
partitionHash,
|
|
155
|
+
});
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.setPrototypeOf(_this, DynamoDBStreamsServiceException.prototype);
|
|
8
|
-
return _this;
|
|
2
|
+
export class DynamoDBStreamsServiceException extends __ServiceException {
|
|
3
|
+
constructor(options) {
|
|
4
|
+
super(options);
|
|
5
|
+
Object.setPrototypeOf(this, DynamoDBStreamsServiceException.prototype);
|
|
9
6
|
}
|
|
10
|
-
|
|
11
|
-
}(__ServiceException));
|
|
12
|
-
export { DynamoDBStreamsServiceException };
|
|
7
|
+
}
|