@aws-sdk/client-dynamodb-streams 3.35.0 → 3.36.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.
Files changed (81) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist-cjs/DynamoDBStreams.js +0 -1
  3. package/dist-cjs/DynamoDBStreamsClient.js +0 -1
  4. package/dist-cjs/commands/DescribeStreamCommand.js +0 -1
  5. package/dist-cjs/commands/GetRecordsCommand.js +0 -1
  6. package/dist-cjs/commands/GetShardIteratorCommand.js +0 -1
  7. package/dist-cjs/commands/ListStreamsCommand.js +0 -1
  8. package/dist-cjs/endpoints.js +0 -1
  9. package/dist-cjs/index.js +0 -1
  10. package/dist-cjs/models/index.js +0 -1
  11. package/dist-cjs/models/models_0.js +0 -1
  12. package/dist-cjs/protocols/Aws_json1_0.js +0 -1
  13. package/dist-cjs/runtimeConfig.browser.js +2 -3
  14. package/dist-cjs/runtimeConfig.js +3 -4
  15. package/dist-cjs/runtimeConfig.native.js +0 -1
  16. package/dist-cjs/runtimeConfig.shared.js +0 -1
  17. package/dist-es/DynamoDBStreams.js +0 -1
  18. package/dist-es/DynamoDBStreamsClient.js +0 -1
  19. package/dist-es/commands/DescribeStreamCommand.js +0 -1
  20. package/dist-es/commands/GetRecordsCommand.js +0 -1
  21. package/dist-es/commands/GetShardIteratorCommand.js +0 -1
  22. package/dist-es/commands/ListStreamsCommand.js +0 -1
  23. package/dist-es/endpoints.js +0 -1
  24. package/dist-es/index.js +0 -1
  25. package/dist-es/models/index.js +0 -1
  26. package/dist-es/models/models_0.js +0 -1
  27. package/dist-es/protocols/Aws_json1_0.js +0 -1
  28. package/dist-es/runtimeConfig.browser.js +1 -2
  29. package/dist-es/runtimeConfig.js +2 -3
  30. package/dist-es/runtimeConfig.native.js +0 -1
  31. package/dist-es/runtimeConfig.shared.js +0 -1
  32. package/package.json +33 -30
  33. package/dist-cjs/DynamoDBStreams.js.map +0 -1
  34. package/dist-cjs/DynamoDBStreamsClient.js.map +0 -1
  35. package/dist-cjs/commands/DescribeStreamCommand.js.map +0 -1
  36. package/dist-cjs/commands/GetRecordsCommand.js.map +0 -1
  37. package/dist-cjs/commands/GetShardIteratorCommand.js.map +0 -1
  38. package/dist-cjs/commands/ListStreamsCommand.js.map +0 -1
  39. package/dist-cjs/endpoints.js.map +0 -1
  40. package/dist-cjs/index.js.map +0 -1
  41. package/dist-cjs/models/index.js.map +0 -1
  42. package/dist-cjs/models/models_0.js.map +0 -1
  43. package/dist-cjs/protocols/Aws_json1_0.js.map +0 -1
  44. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  45. package/dist-cjs/runtimeConfig.js.map +0 -1
  46. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  47. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  48. package/dist-es/DynamoDBStreams.js.map +0 -1
  49. package/dist-es/DynamoDBStreamsClient.js.map +0 -1
  50. package/dist-es/commands/DescribeStreamCommand.js.map +0 -1
  51. package/dist-es/commands/GetRecordsCommand.js.map +0 -1
  52. package/dist-es/commands/GetShardIteratorCommand.js.map +0 -1
  53. package/dist-es/commands/ListStreamsCommand.js.map +0 -1
  54. package/dist-es/endpoints.js.map +0 -1
  55. package/dist-es/index.js.map +0 -1
  56. package/dist-es/models/index.js.map +0 -1
  57. package/dist-es/models/models_0.js.map +0 -1
  58. package/dist-es/protocols/Aws_json1_0.js.map +0 -1
  59. package/dist-es/runtimeConfig.browser.js.map +0 -1
  60. package/dist-es/runtimeConfig.js.map +0 -1
  61. package/dist-es/runtimeConfig.native.js.map +0 -1
  62. package/dist-es/runtimeConfig.shared.js.map +0 -1
  63. package/jest.config.js +0 -4
  64. package/src/DynamoDBStreams.ts +0 -171
  65. package/src/DynamoDBStreamsClient.ts +0 -253
  66. package/src/commands/DescribeStreamCommand.ts +0 -103
  67. package/src/commands/GetRecordsCommand.ts +0 -105
  68. package/src/commands/GetShardIteratorCommand.ts +0 -102
  69. package/src/commands/ListStreamsCommand.ts +0 -100
  70. package/src/endpoints.ts +0 -96
  71. package/src/index.ts +0 -7
  72. package/src/models/index.ts +0 -1
  73. package/src/models/models_0.ts +0 -1132
  74. package/src/protocols/Aws_json1_0.ts +0 -918
  75. package/src/runtimeConfig.browser.ts +0 -41
  76. package/src/runtimeConfig.native.ts +0 -17
  77. package/src/runtimeConfig.shared.ts +0 -17
  78. package/src/runtimeConfig.ts +0 -46
  79. package/tsconfig.es.json +0 -10
  80. package/tsconfig.json +0 -33
  81. package/tsconfig.types.json +0 -9
@@ -1,105 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { DynamoDBStreamsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBStreamsClient";
15
- import { GetRecordsInput, GetRecordsOutput } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_0GetRecordsCommand,
18
- serializeAws_json1_0GetRecordsCommand,
19
- } from "../protocols/Aws_json1_0";
20
-
21
- export interface GetRecordsCommandInput extends GetRecordsInput {}
22
- export interface GetRecordsCommandOutput extends GetRecordsOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Retrieves the stream records from a given shard.</p>
26
- * <p>Specify a shard iterator using the <code>ShardIterator</code> parameter. The shard iterator
27
- * specifies the position in the shard from which you want to start reading stream records
28
- * sequentially. If there are no stream records available in the portion of the shard that the
29
- * iterator points to, <code>GetRecords</code> returns an empty list. Note that it might take
30
- * multiple calls to get to a portion of the shard that contains stream records.</p>
31
- * <note>
32
- * <p>
33
- * <code>GetRecords</code> can retrieve a maximum of 1 MB of data or 1000 stream records,
34
- * whichever comes first.</p>
35
- * </note>
36
- * @example
37
- * Use a bare-bones client and the command you need to make an API call.
38
- * ```javascript
39
- * import { DynamoDBStreamsClient, GetRecordsCommand } from "@aws-sdk/client-dynamodb-streams"; // ES Modules import
40
- * // const { DynamoDBStreamsClient, GetRecordsCommand } = require("@aws-sdk/client-dynamodb-streams"); // CommonJS import
41
- * const client = new DynamoDBStreamsClient(config);
42
- * const command = new GetRecordsCommand(input);
43
- * const response = await client.send(command);
44
- * ```
45
- *
46
- * @see {@link GetRecordsCommandInput} for command's `input` shape.
47
- * @see {@link GetRecordsCommandOutput} for command's `response` shape.
48
- * @see {@link DynamoDBStreamsClientResolvedConfig | config} for command's `input` shape.
49
- *
50
- */
51
- export class GetRecordsCommand extends $Command<
52
- GetRecordsCommandInput,
53
- GetRecordsCommandOutput,
54
- DynamoDBStreamsClientResolvedConfig
55
- > {
56
- // Start section: command_properties
57
- // End section: command_properties
58
-
59
- constructor(readonly input: GetRecordsCommandInput) {
60
- // Start section: command_constructor
61
- super();
62
- // End section: command_constructor
63
- }
64
-
65
- /**
66
- * @internal
67
- */
68
- resolveMiddleware(
69
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
70
- configuration: DynamoDBStreamsClientResolvedConfig,
71
- options?: __HttpHandlerOptions
72
- ): Handler<GetRecordsCommandInput, GetRecordsCommandOutput> {
73
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
74
-
75
- const stack = clientStack.concat(this.middlewareStack);
76
-
77
- const { logger } = configuration;
78
- const clientName = "DynamoDBStreamsClient";
79
- const commandName = "GetRecordsCommand";
80
- const handlerExecutionContext: HandlerExecutionContext = {
81
- logger,
82
- clientName,
83
- commandName,
84
- inputFilterSensitiveLog: GetRecordsInput.filterSensitiveLog,
85
- outputFilterSensitiveLog: GetRecordsOutput.filterSensitiveLog,
86
- };
87
- const { requestHandler } = configuration;
88
- return stack.resolve(
89
- (request: FinalizeHandlerArguments<any>) =>
90
- requestHandler.handle(request.request as __HttpRequest, options || {}),
91
- handlerExecutionContext
92
- );
93
- }
94
-
95
- private serialize(input: GetRecordsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
96
- return serializeAws_json1_0GetRecordsCommand(input, context);
97
- }
98
-
99
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetRecordsCommandOutput> {
100
- return deserializeAws_json1_0GetRecordsCommand(output, context);
101
- }
102
-
103
- // Start section: command_body_extra
104
- // End section: command_body_extra
105
- }
@@ -1,102 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { DynamoDBStreamsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBStreamsClient";
15
- import { GetShardIteratorInput, GetShardIteratorOutput } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_0GetShardIteratorCommand,
18
- serializeAws_json1_0GetShardIteratorCommand,
19
- } from "../protocols/Aws_json1_0";
20
-
21
- export interface GetShardIteratorCommandInput extends GetShardIteratorInput {}
22
- export interface GetShardIteratorCommandOutput extends GetShardIteratorOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Returns a shard iterator. A shard iterator provides information
26
- * about how to retrieve the stream records from within a shard. Use
27
- * the shard iterator in a subsequent
28
- * <code>GetRecords</code> request to read the stream records
29
- * from the shard.</p>
30
- * <note>
31
- * <p>A shard iterator expires 15 minutes after it is returned to the requester.</p>
32
- * </note>
33
- * @example
34
- * Use a bare-bones client and the command you need to make an API call.
35
- * ```javascript
36
- * import { DynamoDBStreamsClient, GetShardIteratorCommand } from "@aws-sdk/client-dynamodb-streams"; // ES Modules import
37
- * // const { DynamoDBStreamsClient, GetShardIteratorCommand } = require("@aws-sdk/client-dynamodb-streams"); // CommonJS import
38
- * const client = new DynamoDBStreamsClient(config);
39
- * const command = new GetShardIteratorCommand(input);
40
- * const response = await client.send(command);
41
- * ```
42
- *
43
- * @see {@link GetShardIteratorCommandInput} for command's `input` shape.
44
- * @see {@link GetShardIteratorCommandOutput} for command's `response` shape.
45
- * @see {@link DynamoDBStreamsClientResolvedConfig | config} for command's `input` shape.
46
- *
47
- */
48
- export class GetShardIteratorCommand extends $Command<
49
- GetShardIteratorCommandInput,
50
- GetShardIteratorCommandOutput,
51
- DynamoDBStreamsClientResolvedConfig
52
- > {
53
- // Start section: command_properties
54
- // End section: command_properties
55
-
56
- constructor(readonly input: GetShardIteratorCommandInput) {
57
- // Start section: command_constructor
58
- super();
59
- // End section: command_constructor
60
- }
61
-
62
- /**
63
- * @internal
64
- */
65
- resolveMiddleware(
66
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
67
- configuration: DynamoDBStreamsClientResolvedConfig,
68
- options?: __HttpHandlerOptions
69
- ): Handler<GetShardIteratorCommandInput, GetShardIteratorCommandOutput> {
70
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
71
-
72
- const stack = clientStack.concat(this.middlewareStack);
73
-
74
- const { logger } = configuration;
75
- const clientName = "DynamoDBStreamsClient";
76
- const commandName = "GetShardIteratorCommand";
77
- const handlerExecutionContext: HandlerExecutionContext = {
78
- logger,
79
- clientName,
80
- commandName,
81
- inputFilterSensitiveLog: GetShardIteratorInput.filterSensitiveLog,
82
- outputFilterSensitiveLog: GetShardIteratorOutput.filterSensitiveLog,
83
- };
84
- const { requestHandler } = configuration;
85
- return stack.resolve(
86
- (request: FinalizeHandlerArguments<any>) =>
87
- requestHandler.handle(request.request as __HttpRequest, options || {}),
88
- handlerExecutionContext
89
- );
90
- }
91
-
92
- private serialize(input: GetShardIteratorCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
93
- return serializeAws_json1_0GetShardIteratorCommand(input, context);
94
- }
95
-
96
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetShardIteratorCommandOutput> {
97
- return deserializeAws_json1_0GetShardIteratorCommand(output, context);
98
- }
99
-
100
- // Start section: command_body_extra
101
- // End section: command_body_extra
102
- }
@@ -1,100 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { DynamoDBStreamsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBStreamsClient";
15
- import { ListStreamsInput, ListStreamsOutput } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_0ListStreamsCommand,
18
- serializeAws_json1_0ListStreamsCommand,
19
- } from "../protocols/Aws_json1_0";
20
-
21
- export interface ListStreamsCommandInput extends ListStreamsInput {}
22
- export interface ListStreamsCommandOutput extends ListStreamsOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Returns an array of stream ARNs associated with the current account and endpoint. If the
26
- * <code>TableName</code> parameter is present, then <code>ListStreams</code> will return only the
27
- * streams ARNs for that table.</p>
28
- * <note>
29
- * <p>You can call <code>ListStreams</code> at a maximum rate of 5 times per second.</p>
30
- * </note>
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { DynamoDBStreamsClient, ListStreamsCommand } from "@aws-sdk/client-dynamodb-streams"; // ES Modules import
35
- * // const { DynamoDBStreamsClient, ListStreamsCommand } = require("@aws-sdk/client-dynamodb-streams"); // CommonJS import
36
- * const client = new DynamoDBStreamsClient(config);
37
- * const command = new ListStreamsCommand(input);
38
- * const response = await client.send(command);
39
- * ```
40
- *
41
- * @see {@link ListStreamsCommandInput} for command's `input` shape.
42
- * @see {@link ListStreamsCommandOutput} for command's `response` shape.
43
- * @see {@link DynamoDBStreamsClientResolvedConfig | config} for command's `input` shape.
44
- *
45
- */
46
- export class ListStreamsCommand extends $Command<
47
- ListStreamsCommandInput,
48
- ListStreamsCommandOutput,
49
- DynamoDBStreamsClientResolvedConfig
50
- > {
51
- // Start section: command_properties
52
- // End section: command_properties
53
-
54
- constructor(readonly input: ListStreamsCommandInput) {
55
- // Start section: command_constructor
56
- super();
57
- // End section: command_constructor
58
- }
59
-
60
- /**
61
- * @internal
62
- */
63
- resolveMiddleware(
64
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
65
- configuration: DynamoDBStreamsClientResolvedConfig,
66
- options?: __HttpHandlerOptions
67
- ): Handler<ListStreamsCommandInput, ListStreamsCommandOutput> {
68
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
69
-
70
- const stack = clientStack.concat(this.middlewareStack);
71
-
72
- const { logger } = configuration;
73
- const clientName = "DynamoDBStreamsClient";
74
- const commandName = "ListStreamsCommand";
75
- const handlerExecutionContext: HandlerExecutionContext = {
76
- logger,
77
- clientName,
78
- commandName,
79
- inputFilterSensitiveLog: ListStreamsInput.filterSensitiveLog,
80
- outputFilterSensitiveLog: ListStreamsOutput.filterSensitiveLog,
81
- };
82
- const { requestHandler } = configuration;
83
- return stack.resolve(
84
- (request: FinalizeHandlerArguments<any>) =>
85
- requestHandler.handle(request.request as __HttpRequest, options || {}),
86
- handlerExecutionContext
87
- );
88
- }
89
-
90
- private serialize(input: ListStreamsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
91
- return serializeAws_json1_0ListStreamsCommand(input, context);
92
- }
93
-
94
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListStreamsCommandOutput> {
95
- return deserializeAws_json1_0ListStreamsCommand(output, context);
96
- }
97
-
98
- // Start section: command_body_extra
99
- // End section: command_body_extra
100
- }
package/src/endpoints.ts DELETED
@@ -1,96 +0,0 @@
1
- import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
2
- import { RegionInfoProvider } from "@aws-sdk/types";
3
-
4
- const regionHash: RegionHash = {
5
- "ca-central-1-fips": {
6
- hostname: "dynamodb-fips.ca-central-1.amazonaws.com",
7
- signingRegion: "ca-central-1",
8
- },
9
- local: {
10
- hostname: "localhost:8000",
11
- signingRegion: "us-east-1",
12
- },
13
- "us-east-1-fips": {
14
- hostname: "dynamodb-fips.us-east-1.amazonaws.com",
15
- signingRegion: "us-east-1",
16
- },
17
- "us-east-2-fips": {
18
- hostname: "dynamodb-fips.us-east-2.amazonaws.com",
19
- signingRegion: "us-east-2",
20
- },
21
- "us-gov-east-1-fips": {
22
- hostname: "dynamodb.us-gov-east-1.amazonaws.com",
23
- signingRegion: "us-gov-east-1",
24
- },
25
- "us-gov-west-1-fips": {
26
- hostname: "dynamodb.us-gov-west-1.amazonaws.com",
27
- signingRegion: "us-gov-west-1",
28
- },
29
- "us-west-1-fips": {
30
- hostname: "dynamodb-fips.us-west-1.amazonaws.com",
31
- signingRegion: "us-west-1",
32
- },
33
- "us-west-2-fips": {
34
- hostname: "dynamodb-fips.us-west-2.amazonaws.com",
35
- signingRegion: "us-west-2",
36
- },
37
- };
38
-
39
- const partitionHash: PartitionHash = {
40
- aws: {
41
- regions: [
42
- "af-south-1",
43
- "ap-east-1",
44
- "ap-northeast-1",
45
- "ap-northeast-2",
46
- "ap-northeast-3",
47
- "ap-south-1",
48
- "ap-southeast-1",
49
- "ap-southeast-2",
50
- "ca-central-1",
51
- "ca-central-1-fips",
52
- "eu-central-1",
53
- "eu-north-1",
54
- "eu-south-1",
55
- "eu-west-1",
56
- "eu-west-2",
57
- "eu-west-3",
58
- "local",
59
- "me-south-1",
60
- "sa-east-1",
61
- "us-east-1",
62
- "us-east-1-fips",
63
- "us-east-2",
64
- "us-east-2-fips",
65
- "us-west-1",
66
- "us-west-1-fips",
67
- "us-west-2",
68
- "us-west-2-fips",
69
- ],
70
- hostname: "streams.dynamodb.{region}.amazonaws.com",
71
- },
72
- "aws-cn": {
73
- regions: ["cn-north-1", "cn-northwest-1"],
74
- hostname: "streams.dynamodb.{region}.amazonaws.com.cn",
75
- },
76
- "aws-iso": {
77
- regions: ["us-iso-east-1"],
78
- hostname: "streams.dynamodb.{region}.c2s.ic.gov",
79
- },
80
- "aws-iso-b": {
81
- regions: ["us-isob-east-1"],
82
- hostname: "streams.dynamodb.{region}.sc2s.sgov.gov",
83
- },
84
- "aws-us-gov": {
85
- regions: ["us-gov-east-1", "us-gov-east-1-fips", "us-gov-west-1", "us-gov-west-1-fips"],
86
- hostname: "streams.dynamodb.{region}.amazonaws.com",
87
- },
88
- };
89
-
90
- export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
91
- getRegionInfo(region, {
92
- ...options,
93
- signingService: "dynamodb",
94
- regionHash,
95
- partitionHash,
96
- });
package/src/index.ts DELETED
@@ -1,7 +0,0 @@
1
- export * from "./DynamoDBStreamsClient";
2
- export * from "./DynamoDBStreams";
3
- export * from "./commands/DescribeStreamCommand";
4
- export * from "./commands/GetRecordsCommand";
5
- export * from "./commands/GetShardIteratorCommand";
6
- export * from "./commands/ListStreamsCommand";
7
- export * from "./models/index";
@@ -1 +0,0 @@
1
- export * from "./models_0";