@aws-sdk/client-dynamodb-streams 3.533.0 → 3.540.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/endpoint/endpointResolver.js +4 -2
- package/dist-cjs/index.js +0 -3
- package/dist-es/endpoint/endpointResolver.js +3 -1
- package/dist-es/index.js +0 -1
- package/dist-types/DynamoDBStreams.d.ts +2 -1
- package/dist-types/DynamoDBStreamsClient.d.ts +1 -1
- package/dist-types/commands/DescribeStreamCommand.d.ts +2 -1
- package/dist-types/commands/GetRecordsCommand.d.ts +2 -1
- package/dist-types/commands/GetShardIteratorCommand.d.ts +2 -1
- package/dist-types/commands/ListStreamsCommand.d.ts +2 -1
- package/dist-types/index.d.ts +0 -1
- package/dist-types/models/models_0.d.ts +85 -85
- package/dist-types/ts3.4/DynamoDBStreams.d.ts +1 -0
- package/dist-types/ts3.4/commands/DescribeStreamCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetRecordsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetShardIteratorCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListStreamsCommand.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +0 -1
- package/package.json +40 -40
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultEndpointResolver = void 0;
|
|
4
|
-
const util_endpoints_1 = require("@
|
|
4
|
+
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
|
+
const util_endpoints_2 = require("@smithy/util-endpoints");
|
|
5
6
|
const ruleset_1 = require("./ruleset");
|
|
6
7
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
7
|
-
return (0,
|
|
8
|
+
return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
|
8
9
|
endpointParams: endpointParams,
|
|
9
10
|
logger: context.logger,
|
|
10
11
|
});
|
|
11
12
|
};
|
|
12
13
|
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
14
|
+
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
package/dist-cjs/index.js
CHANGED
|
@@ -743,9 +743,6 @@ var _DynamoDBStreams = class _DynamoDBStreams extends DynamoDBStreamsClient {
|
|
|
743
743
|
__name(_DynamoDBStreams, "DynamoDBStreams");
|
|
744
744
|
var DynamoDBStreams = _DynamoDBStreams;
|
|
745
745
|
(0, import_smithy_client.createAggregatedClient)(commands, DynamoDBStreams);
|
|
746
|
-
|
|
747
|
-
// src/index.ts
|
|
748
|
-
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
749
746
|
// Annotate the CommonJS export names for ESM import in node:
|
|
750
747
|
|
|
751
748
|
0 && (module.exports = {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
|
|
2
|
+
import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
|
|
2
3
|
import { ruleSet } from "./ruleset";
|
|
3
4
|
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
4
5
|
return resolveEndpoint(ruleSet, {
|
|
@@ -6,3 +7,4 @@ export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
|
6
7
|
logger: context.logger,
|
|
7
8
|
});
|
|
8
9
|
};
|
|
10
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
package/dist-es/index.js
CHANGED
|
@@ -26,17 +26,18 @@ export interface DynamoDBStreams {
|
|
|
26
26
|
/**
|
|
27
27
|
* @see {@link ListStreamsCommand}
|
|
28
28
|
*/
|
|
29
|
+
listStreams(): Promise<ListStreamsCommandOutput>;
|
|
29
30
|
listStreams(args: ListStreamsCommandInput, options?: __HttpHandlerOptions): Promise<ListStreamsCommandOutput>;
|
|
30
31
|
listStreams(args: ListStreamsCommandInput, cb: (err: any, data?: ListStreamsCommandOutput) => void): void;
|
|
31
32
|
listStreams(args: ListStreamsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListStreamsCommandOutput) => void): void;
|
|
32
33
|
}
|
|
33
34
|
/**
|
|
34
|
-
* @public
|
|
35
35
|
* <fullname>Amazon DynamoDB</fullname>
|
|
36
36
|
* <p>Amazon DynamoDB Streams provides API actions for accessing streams and processing
|
|
37
37
|
* stream records. To learn more about application development with Streams, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html">Capturing
|
|
38
38
|
* Table Activity with DynamoDB Streams</a> in the Amazon DynamoDB Developer
|
|
39
39
|
* Guide.</p>
|
|
40
|
+
* @public
|
|
40
41
|
*/
|
|
41
42
|
export declare class DynamoDBStreams extends DynamoDBStreamsClient implements DynamoDBStreams {
|
|
42
43
|
}
|
|
@@ -155,12 +155,12 @@ export type DynamoDBStreamsClientResolvedConfigType = __SmithyResolvedConfigurat
|
|
|
155
155
|
export interface DynamoDBStreamsClientResolvedConfig extends DynamoDBStreamsClientResolvedConfigType {
|
|
156
156
|
}
|
|
157
157
|
/**
|
|
158
|
-
* @public
|
|
159
158
|
* <fullname>Amazon DynamoDB</fullname>
|
|
160
159
|
* <p>Amazon DynamoDB Streams provides API actions for accessing streams and processing
|
|
161
160
|
* stream records. To learn more about application development with Streams, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html">Capturing
|
|
162
161
|
* Table Activity with DynamoDB Streams</a> in the Amazon DynamoDB Developer
|
|
163
162
|
* Guide.</p>
|
|
163
|
+
* @public
|
|
164
164
|
*/
|
|
165
165
|
export declare class DynamoDBStreamsClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, DynamoDBStreamsClientResolvedConfig> {
|
|
166
166
|
/**
|
|
@@ -22,10 +22,10 @@ export interface DescribeStreamCommandOutput extends DescribeStreamOutput, __Met
|
|
|
22
22
|
}
|
|
23
23
|
declare const DescribeStreamCommand_base: {
|
|
24
24
|
new (input: DescribeStreamCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeStreamCommandInput, DescribeStreamCommandOutput, DynamoDBStreamsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: DescribeStreamCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeStreamCommandInput, DescribeStreamCommandOutput, DynamoDBStreamsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Returns information about a stream, including the current status of the stream, its Amazon Resource Name (ARN), the composition of its shards, and its corresponding DynamoDB table.</p>
|
|
30
30
|
* <note>
|
|
31
31
|
* <p>You can call <code>DescribeStream</code> at a maximum rate of 10 times per second.</p>
|
|
@@ -95,6 +95,7 @@ declare const DescribeStreamCommand_base: {
|
|
|
95
95
|
* @throws {@link DynamoDBStreamsServiceException}
|
|
96
96
|
* <p>Base exception class for all service exceptions from DynamoDBStreams service.</p>
|
|
97
97
|
*
|
|
98
|
+
* @public
|
|
98
99
|
* @example To describe a stream with a given stream ARN
|
|
99
100
|
* ```javascript
|
|
100
101
|
* // The following example describes a stream with a given stream ARN.
|
|
@@ -22,10 +22,10 @@ export interface GetRecordsCommandOutput extends GetRecordsOutput, __MetadataBea
|
|
|
22
22
|
}
|
|
23
23
|
declare const GetRecordsCommand_base: {
|
|
24
24
|
new (input: GetRecordsCommandInput): import("@smithy/smithy-client").CommandImpl<GetRecordsCommandInput, GetRecordsCommandOutput, DynamoDBStreamsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: GetRecordsCommandInput): import("@smithy/smithy-client").CommandImpl<GetRecordsCommandInput, GetRecordsCommandOutput, DynamoDBStreamsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Retrieves the stream records from a given shard.</p>
|
|
30
30
|
* <p>Specify a shard iterator using the <code>ShardIterator</code> parameter. The shard iterator
|
|
31
31
|
* specifies the position in the shard from which you want to start reading stream records
|
|
@@ -177,6 +177,7 @@ declare const GetRecordsCommand_base: {
|
|
|
177
177
|
* @throws {@link DynamoDBStreamsServiceException}
|
|
178
178
|
* <p>Base exception class for all service exceptions from DynamoDBStreams service.</p>
|
|
179
179
|
*
|
|
180
|
+
* @public
|
|
180
181
|
* @example To retrieve all the stream records from a shard
|
|
181
182
|
* ```javascript
|
|
182
183
|
* // The following example retrieves all the stream records from a shard.
|
|
@@ -22,10 +22,10 @@ export interface GetShardIteratorCommandOutput extends GetShardIteratorOutput, _
|
|
|
22
22
|
}
|
|
23
23
|
declare const GetShardIteratorCommand_base: {
|
|
24
24
|
new (input: GetShardIteratorCommandInput): import("@smithy/smithy-client").CommandImpl<GetShardIteratorCommandInput, GetShardIteratorCommandOutput, DynamoDBStreamsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: GetShardIteratorCommandInput): import("@smithy/smithy-client").CommandImpl<GetShardIteratorCommandInput, GetShardIteratorCommandOutput, DynamoDBStreamsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Returns a shard iterator. A shard iterator provides information
|
|
30
30
|
* about how to retrieve the stream records from within a shard. Use
|
|
31
31
|
* the shard iterator in a subsequent
|
|
@@ -85,6 +85,7 @@ declare const GetShardIteratorCommand_base: {
|
|
|
85
85
|
* @throws {@link DynamoDBStreamsServiceException}
|
|
86
86
|
* <p>Base exception class for all service exceptions from DynamoDBStreams service.</p>
|
|
87
87
|
*
|
|
88
|
+
* @public
|
|
88
89
|
* @example To obtain a shard iterator for the provided stream ARN and shard ID
|
|
89
90
|
* ```javascript
|
|
90
91
|
* // The following example returns a shard iterator for the provided stream ARN and shard ID.
|
|
@@ -22,10 +22,10 @@ export interface ListStreamsCommandOutput extends ListStreamsOutput, __MetadataB
|
|
|
22
22
|
}
|
|
23
23
|
declare const ListStreamsCommand_base: {
|
|
24
24
|
new (input: ListStreamsCommandInput): import("@smithy/smithy-client").CommandImpl<ListStreamsCommandInput, ListStreamsCommandOutput, DynamoDBStreamsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (...[input]: [] | [ListStreamsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListStreamsCommandInput, ListStreamsCommandOutput, DynamoDBStreamsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Returns an array of stream ARNs associated with the current account and endpoint. If the
|
|
30
30
|
* <code>TableName</code> parameter is present, then <code>ListStreams</code> will return only the
|
|
31
31
|
* streams ARNs for that table.</p>
|
|
@@ -75,6 +75,7 @@ declare const ListStreamsCommand_base: {
|
|
|
75
75
|
* @throws {@link DynamoDBStreamsServiceException}
|
|
76
76
|
* <p>Base exception class for all service exceptions from DynamoDBStreams service.</p>
|
|
77
77
|
*
|
|
78
|
+
* @public
|
|
78
79
|
* @example To list all of the stream ARNs
|
|
79
80
|
* ```javascript
|
|
80
81
|
* // The following example lists all of the stream ARNs.
|
package/dist-types/index.d.ts
CHANGED
|
@@ -14,5 +14,4 @@ export { RuntimeExtension } from "./runtimeExtensions";
|
|
|
14
14
|
export { DynamoDBStreamsExtensionConfiguration } from "./extensionConfiguration";
|
|
15
15
|
export * from "./commands";
|
|
16
16
|
export * from "./models";
|
|
17
|
-
import "@aws-sdk/util-endpoints";
|
|
18
17
|
export { DynamoDBStreamsServiceException } from "./models/DynamoDBStreamsServiceException";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
2
|
import { DynamoDBStreamsServiceException as __BaseException } from "./DynamoDBStreamsServiceException";
|
|
3
3
|
/**
|
|
4
|
-
* @public
|
|
5
4
|
* <p>Represents the input of a <code>DescribeStream</code> operation.</p>
|
|
5
|
+
* @public
|
|
6
6
|
*/
|
|
7
7
|
export interface DescribeStreamInput {
|
|
8
8
|
/**
|
|
9
|
-
* @public
|
|
10
9
|
* <p>The Amazon Resource Name (ARN) for the stream.</p>
|
|
10
|
+
* @public
|
|
11
11
|
*/
|
|
12
12
|
StreamArn: string | undefined;
|
|
13
13
|
/**
|
|
14
|
-
* @public
|
|
15
14
|
* <p>The maximum number of shard objects to return. The upper limit is 100.</p>
|
|
15
|
+
* @public
|
|
16
16
|
*/
|
|
17
17
|
Limit?: number;
|
|
18
18
|
/**
|
|
19
|
-
* @public
|
|
20
19
|
* <p>The shard ID of the first item that this operation will evaluate. Use the value that was
|
|
21
20
|
* returned for <code>LastEvaluatedShardId</code> in the previous operation. </p>
|
|
21
|
+
* @public
|
|
22
22
|
*/
|
|
23
23
|
ExclusiveStartShardId?: string;
|
|
24
24
|
}
|
|
@@ -35,7 +35,6 @@ export declare const KeyType: {
|
|
|
35
35
|
*/
|
|
36
36
|
export type KeyType = (typeof KeyType)[keyof typeof KeyType];
|
|
37
37
|
/**
|
|
38
|
-
* @public
|
|
39
38
|
* <p>Represents <i>a single element</i> of a key schema. A key schema specifies
|
|
40
39
|
* the attributes that make up the primary key of a table, or the key attributes of an
|
|
41
40
|
* index.</p>
|
|
@@ -47,15 +46,15 @@ export type KeyType = (typeof KeyType)[keyof typeof KeyType];
|
|
|
47
46
|
* <p>A <code>KeySchemaElement</code> must be a scalar, top-level attribute (not a nested
|
|
48
47
|
* attribute). The data type must be one of String, Number, or Binary. The attribute cannot
|
|
49
48
|
* be nested within a List or a Map.</p>
|
|
49
|
+
* @public
|
|
50
50
|
*/
|
|
51
51
|
export interface KeySchemaElement {
|
|
52
52
|
/**
|
|
53
|
-
* @public
|
|
54
53
|
* <p>The name of a key attribute.</p>
|
|
54
|
+
* @public
|
|
55
55
|
*/
|
|
56
56
|
AttributeName: string | undefined;
|
|
57
57
|
/**
|
|
58
|
-
* @public
|
|
59
58
|
* <p>The role that this key attribute will assume:</p>
|
|
60
59
|
* <ul>
|
|
61
60
|
* <li>
|
|
@@ -77,43 +76,44 @@ export interface KeySchemaElement {
|
|
|
77
76
|
* stores items with the same partition key physically close together, in sorted order
|
|
78
77
|
* by the sort key value.</p>
|
|
79
78
|
* </note>
|
|
79
|
+
* @public
|
|
80
80
|
*/
|
|
81
81
|
KeyType: KeyType | undefined;
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
84
|
-
* @public
|
|
85
84
|
* <p>The beginning and ending sequence numbers for the stream records contained within a shard.</p>
|
|
85
|
+
* @public
|
|
86
86
|
*/
|
|
87
87
|
export interface SequenceNumberRange {
|
|
88
88
|
/**
|
|
89
|
-
* @public
|
|
90
89
|
* <p>The first sequence number for the stream records contained within a shard. String contains numeric characters only.</p>
|
|
90
|
+
* @public
|
|
91
91
|
*/
|
|
92
92
|
StartingSequenceNumber?: string;
|
|
93
93
|
/**
|
|
94
|
-
* @public
|
|
95
94
|
* <p>The last sequence number for the stream records contained within a shard. String contains numeric characters only.</p>
|
|
95
|
+
* @public
|
|
96
96
|
*/
|
|
97
97
|
EndingSequenceNumber?: string;
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
100
|
-
* @public
|
|
101
100
|
* <p>A uniquely identified group of stream records within a stream.</p>
|
|
101
|
+
* @public
|
|
102
102
|
*/
|
|
103
103
|
export interface Shard {
|
|
104
104
|
/**
|
|
105
|
-
* @public
|
|
106
105
|
* <p>The system-generated identifier for this shard.</p>
|
|
106
|
+
* @public
|
|
107
107
|
*/
|
|
108
108
|
ShardId?: string;
|
|
109
109
|
/**
|
|
110
|
-
* @public
|
|
111
110
|
* <p>The range of possible sequence numbers for the shard.</p>
|
|
111
|
+
* @public
|
|
112
112
|
*/
|
|
113
113
|
SequenceNumberRange?: SequenceNumberRange;
|
|
114
114
|
/**
|
|
115
|
-
* @public
|
|
116
115
|
* <p>The shard ID of the current shard's parent.</p>
|
|
116
|
+
* @public
|
|
117
117
|
*/
|
|
118
118
|
ParentShardId?: string;
|
|
119
119
|
}
|
|
@@ -146,17 +146,16 @@ export declare const StreamViewType: {
|
|
|
146
146
|
*/
|
|
147
147
|
export type StreamViewType = (typeof StreamViewType)[keyof typeof StreamViewType];
|
|
148
148
|
/**
|
|
149
|
-
* @public
|
|
150
149
|
* <p>Represents all of the data describing a particular stream.</p>
|
|
150
|
+
* @public
|
|
151
151
|
*/
|
|
152
152
|
export interface StreamDescription {
|
|
153
153
|
/**
|
|
154
|
-
* @public
|
|
155
154
|
* <p>The Amazon Resource Name (ARN) for the stream.</p>
|
|
155
|
+
* @public
|
|
156
156
|
*/
|
|
157
157
|
StreamArn?: string;
|
|
158
158
|
/**
|
|
159
|
-
* @public
|
|
160
159
|
* <p>A timestamp, in ISO 8601 format, for this stream.</p>
|
|
161
160
|
* <p>Note that <code>LatestStreamLabel</code> is not a unique identifier for the stream, because it is
|
|
162
161
|
* possible that a stream from another table might have the same timestamp. However, the
|
|
@@ -173,10 +172,10 @@ export interface StreamDescription {
|
|
|
173
172
|
* </p>
|
|
174
173
|
* </li>
|
|
175
174
|
* </ul>
|
|
175
|
+
* @public
|
|
176
176
|
*/
|
|
177
177
|
StreamLabel?: string;
|
|
178
178
|
/**
|
|
179
|
-
* @public
|
|
180
179
|
* <p>Indicates the current status of the stream:</p>
|
|
181
180
|
* <ul>
|
|
182
181
|
* <li>
|
|
@@ -196,10 +195,10 @@ export interface StreamDescription {
|
|
|
196
195
|
* <code>DISABLED</code> - the stream is disabled.</p>
|
|
197
196
|
* </li>
|
|
198
197
|
* </ul>
|
|
198
|
+
* @public
|
|
199
199
|
*/
|
|
200
200
|
StreamStatus?: StreamStatus;
|
|
201
201
|
/**
|
|
202
|
-
* @public
|
|
203
202
|
* <p>Indicates the format of the records within this stream:</p>
|
|
204
203
|
* <ul>
|
|
205
204
|
* <li>
|
|
@@ -219,53 +218,54 @@ export interface StreamDescription {
|
|
|
219
218
|
* <code>NEW_AND_OLD_IMAGES</code> - both the new and the old images of the items from the table.</p>
|
|
220
219
|
* </li>
|
|
221
220
|
* </ul>
|
|
221
|
+
* @public
|
|
222
222
|
*/
|
|
223
223
|
StreamViewType?: StreamViewType;
|
|
224
224
|
/**
|
|
225
|
-
* @public
|
|
226
225
|
* <p>The date and time when the request to create this stream was issued.</p>
|
|
226
|
+
* @public
|
|
227
227
|
*/
|
|
228
228
|
CreationRequestDateTime?: Date;
|
|
229
229
|
/**
|
|
230
|
-
* @public
|
|
231
230
|
* <p>The DynamoDB table with which the stream is associated.</p>
|
|
231
|
+
* @public
|
|
232
232
|
*/
|
|
233
233
|
TableName?: string;
|
|
234
234
|
/**
|
|
235
|
-
* @public
|
|
236
235
|
* <p>The key attribute(s) of the stream's DynamoDB table.</p>
|
|
236
|
+
* @public
|
|
237
237
|
*/
|
|
238
238
|
KeySchema?: KeySchemaElement[];
|
|
239
239
|
/**
|
|
240
|
-
* @public
|
|
241
240
|
* <p>The shards that comprise the stream.</p>
|
|
241
|
+
* @public
|
|
242
242
|
*/
|
|
243
243
|
Shards?: Shard[];
|
|
244
244
|
/**
|
|
245
|
-
* @public
|
|
246
245
|
* <p>The shard ID of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request.</p>
|
|
247
246
|
* <p>If <code>LastEvaluatedShardId</code> is empty, then the "last page" of results has been
|
|
248
247
|
* processed and there is currently no more data to be retrieved.</p>
|
|
249
248
|
* <p>If <code>LastEvaluatedShardId</code> is not empty, it does not necessarily mean that there is
|
|
250
249
|
* more data in the result set. The only way to know when you have reached the end of the result
|
|
251
250
|
* set is when <code>LastEvaluatedShardId</code> is empty.</p>
|
|
251
|
+
* @public
|
|
252
252
|
*/
|
|
253
253
|
LastEvaluatedShardId?: string;
|
|
254
254
|
}
|
|
255
255
|
/**
|
|
256
|
-
* @public
|
|
257
256
|
* <p>Represents the output of a <code>DescribeStream</code> operation.</p>
|
|
257
|
+
* @public
|
|
258
258
|
*/
|
|
259
259
|
export interface DescribeStreamOutput {
|
|
260
260
|
/**
|
|
261
|
-
* @public
|
|
262
261
|
* <p>A complete description of the stream, including its creation date and time, the DynamoDB table associated with the stream, the shard IDs within the stream, and the beginning and ending sequence numbers of stream records within the shards.</p>
|
|
262
|
+
* @public
|
|
263
263
|
*/
|
|
264
264
|
StreamDescription?: StreamDescription;
|
|
265
265
|
}
|
|
266
266
|
/**
|
|
267
|
-
* @public
|
|
268
267
|
* <p>An error occurred on the server side.</p>
|
|
268
|
+
* @public
|
|
269
269
|
*/
|
|
270
270
|
export declare class InternalServerError extends __BaseException {
|
|
271
271
|
readonly name: "InternalServerError";
|
|
@@ -276,10 +276,10 @@ export declare class InternalServerError extends __BaseException {
|
|
|
276
276
|
constructor(opts: __ExceptionOptionType<InternalServerError, __BaseException>);
|
|
277
277
|
}
|
|
278
278
|
/**
|
|
279
|
-
* @public
|
|
280
279
|
* <p>The operation tried to access a nonexistent table or index. The resource
|
|
281
280
|
* might not be specified correctly, or its status might not be
|
|
282
281
|
* <code>ACTIVE</code>.</p>
|
|
282
|
+
* @public
|
|
283
283
|
*/
|
|
284
284
|
export declare class ResourceNotFoundException extends __BaseException {
|
|
285
285
|
readonly name: "ResourceNotFoundException";
|
|
@@ -290,10 +290,10 @@ export declare class ResourceNotFoundException extends __BaseException {
|
|
|
290
290
|
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
291
291
|
}
|
|
292
292
|
/**
|
|
293
|
-
* @public
|
|
294
293
|
* <p>The shard iterator has expired and can no longer be used to retrieve stream records. A shard
|
|
295
294
|
* iterator expires 15 minutes after it is retrieved using the <code>GetShardIterator</code>
|
|
296
295
|
* action.</p>
|
|
296
|
+
* @public
|
|
297
297
|
*/
|
|
298
298
|
export declare class ExpiredIteratorException extends __BaseException {
|
|
299
299
|
readonly name: "ExpiredIteratorException";
|
|
@@ -304,18 +304,18 @@ export declare class ExpiredIteratorException extends __BaseException {
|
|
|
304
304
|
constructor(opts: __ExceptionOptionType<ExpiredIteratorException, __BaseException>);
|
|
305
305
|
}
|
|
306
306
|
/**
|
|
307
|
-
* @public
|
|
308
307
|
* <p>Represents the input of a <code>GetRecords</code> operation.</p>
|
|
308
|
+
* @public
|
|
309
309
|
*/
|
|
310
310
|
export interface GetRecordsInput {
|
|
311
311
|
/**
|
|
312
|
-
* @public
|
|
313
312
|
* <p>A shard iterator that was retrieved from a previous GetShardIterator operation. This iterator can be used to access the stream records in this shard.</p>
|
|
313
|
+
* @public
|
|
314
314
|
*/
|
|
315
315
|
ShardIterator: string | undefined;
|
|
316
316
|
/**
|
|
317
|
-
* @public
|
|
318
317
|
* <p>The maximum number of records to return from the shard. The upper limit is 1000.</p>
|
|
318
|
+
* @public
|
|
319
319
|
*/
|
|
320
320
|
Limit?: number;
|
|
321
321
|
}
|
|
@@ -333,24 +333,23 @@ export declare const OperationType: {
|
|
|
333
333
|
*/
|
|
334
334
|
export type OperationType = (typeof OperationType)[keyof typeof OperationType];
|
|
335
335
|
/**
|
|
336
|
-
* @public
|
|
337
336
|
* <p>Contains details about the type of identity that made the request.</p>
|
|
337
|
+
* @public
|
|
338
338
|
*/
|
|
339
339
|
export interface Identity {
|
|
340
340
|
/**
|
|
341
|
-
* @public
|
|
342
341
|
* <p>A unique identifier for the entity that made the call. For Time To Live, the
|
|
343
342
|
* principalId is "dynamodb.amazonaws.com".</p>
|
|
343
|
+
* @public
|
|
344
344
|
*/
|
|
345
345
|
PrincipalId?: string;
|
|
346
346
|
/**
|
|
347
|
-
* @public
|
|
348
347
|
* <p>The type of the identity. For Time To Live, the type is "Service".</p>
|
|
348
|
+
* @public
|
|
349
349
|
*/
|
|
350
350
|
Type?: string;
|
|
351
351
|
}
|
|
352
352
|
/**
|
|
353
|
-
* @public
|
|
354
353
|
* <p>There is no limit to the number of daily on-demand backups that can be taken. </p>
|
|
355
354
|
* <p>For most purposes, up to 500 simultaneous table operations are allowed per account. These operations
|
|
356
355
|
* include <code>CreateTable</code>, <code>UpdateTable</code>,
|
|
@@ -365,6 +364,7 @@ export interface Identity {
|
|
|
365
364
|
* <p>GetRecords was called with a value of more than 1000 for the limit request parameter.</p>
|
|
366
365
|
* <p>More than 2 processes are reading from the same streams shard at the same time. Exceeding
|
|
367
366
|
* this limit may result in request throttling.</p>
|
|
367
|
+
* @public
|
|
368
368
|
*/
|
|
369
369
|
export declare class LimitExceededException extends __BaseException {
|
|
370
370
|
readonly name: "LimitExceededException";
|
|
@@ -375,7 +375,6 @@ export declare class LimitExceededException extends __BaseException {
|
|
|
375
375
|
constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
|
|
376
376
|
}
|
|
377
377
|
/**
|
|
378
|
-
* @public
|
|
379
378
|
* <p>The operation attempted to read past the oldest stream record in a shard.</p>
|
|
380
379
|
* <p>In DynamoDB Streams, there is a 24 hour limit on data retention. Stream records whose age exceeds this limit are subject to removal (trimming) from the stream. You might receive a TrimmedDataAccessException if:</p>
|
|
381
380
|
* <ul>
|
|
@@ -388,6 +387,7 @@ export declare class LimitExceededException extends __BaseException {
|
|
|
388
387
|
* the iterator to access a record that no longer exists.</p>
|
|
389
388
|
* </li>
|
|
390
389
|
* </ul>
|
|
390
|
+
* @public
|
|
391
391
|
*/
|
|
392
392
|
export declare class TrimmedDataAccessException extends __BaseException {
|
|
393
393
|
readonly name: "TrimmedDataAccessException";
|
|
@@ -412,22 +412,21 @@ export declare const ShardIteratorType: {
|
|
|
412
412
|
*/
|
|
413
413
|
export type ShardIteratorType = (typeof ShardIteratorType)[keyof typeof ShardIteratorType];
|
|
414
414
|
/**
|
|
415
|
-
* @public
|
|
416
415
|
* <p>Represents the input of a <code>GetShardIterator</code> operation.</p>
|
|
416
|
+
* @public
|
|
417
417
|
*/
|
|
418
418
|
export interface GetShardIteratorInput {
|
|
419
419
|
/**
|
|
420
|
-
* @public
|
|
421
420
|
* <p>The Amazon Resource Name (ARN) for the stream.</p>
|
|
421
|
+
* @public
|
|
422
422
|
*/
|
|
423
423
|
StreamArn: string | undefined;
|
|
424
424
|
/**
|
|
425
|
-
* @public
|
|
426
425
|
* <p>The identifier of the shard. The iterator will be returned for this shard ID.</p>
|
|
426
|
+
* @public
|
|
427
427
|
*/
|
|
428
428
|
ShardId: string | undefined;
|
|
429
429
|
/**
|
|
430
|
-
* @public
|
|
431
430
|
* <p>Determines how the shard iterator is used to start reading stream records from the shard:</p>
|
|
432
431
|
* <ul>
|
|
433
432
|
* <li>
|
|
@@ -453,65 +452,65 @@ export interface GetShardIteratorInput {
|
|
|
453
452
|
* shard, so that you always read the most recent data in the shard.</p>
|
|
454
453
|
* </li>
|
|
455
454
|
* </ul>
|
|
455
|
+
* @public
|
|
456
456
|
*/
|
|
457
457
|
ShardIteratorType: ShardIteratorType | undefined;
|
|
458
458
|
/**
|
|
459
|
-
* @public
|
|
460
459
|
* <p>The sequence number of a stream record in the shard from which to start reading.</p>
|
|
460
|
+
* @public
|
|
461
461
|
*/
|
|
462
462
|
SequenceNumber?: string;
|
|
463
463
|
}
|
|
464
464
|
/**
|
|
465
|
-
* @public
|
|
466
465
|
* <p>Represents the output of a <code>GetShardIterator</code> operation.</p>
|
|
466
|
+
* @public
|
|
467
467
|
*/
|
|
468
468
|
export interface GetShardIteratorOutput {
|
|
469
469
|
/**
|
|
470
|
-
* @public
|
|
471
470
|
* <p>The position in the shard from which to start reading stream records sequentially. A shard iterator specifies this position using the sequence number of a stream record in a shard.</p>
|
|
471
|
+
* @public
|
|
472
472
|
*/
|
|
473
473
|
ShardIterator?: string;
|
|
474
474
|
}
|
|
475
475
|
/**
|
|
476
|
-
* @public
|
|
477
476
|
* <p>Represents the input of a <code>ListStreams</code> operation.</p>
|
|
477
|
+
* @public
|
|
478
478
|
*/
|
|
479
479
|
export interface ListStreamsInput {
|
|
480
480
|
/**
|
|
481
|
-
* @public
|
|
482
481
|
* <p>If this parameter is provided, then only the streams associated with this table name are returned.</p>
|
|
482
|
+
* @public
|
|
483
483
|
*/
|
|
484
484
|
TableName?: string;
|
|
485
485
|
/**
|
|
486
|
-
* @public
|
|
487
486
|
* <p>The maximum number of streams to return. The upper limit is 100.</p>
|
|
487
|
+
* @public
|
|
488
488
|
*/
|
|
489
489
|
Limit?: number;
|
|
490
490
|
/**
|
|
491
|
-
* @public
|
|
492
491
|
* <p>The ARN (Amazon Resource Name) of the first item that this operation will evaluate. Use the
|
|
493
492
|
* value that was returned for <code>LastEvaluatedStreamArn</code> in the previous operation.
|
|
494
493
|
* </p>
|
|
494
|
+
* @public
|
|
495
495
|
*/
|
|
496
496
|
ExclusiveStartStreamArn?: string;
|
|
497
497
|
}
|
|
498
498
|
/**
|
|
499
|
-
* @public
|
|
500
499
|
* <p>Represents all of the data describing a particular stream.</p>
|
|
500
|
+
* @public
|
|
501
501
|
*/
|
|
502
502
|
export interface _Stream {
|
|
503
503
|
/**
|
|
504
|
-
* @public
|
|
505
504
|
* <p>The Amazon Resource Name (ARN) for the stream.</p>
|
|
505
|
+
* @public
|
|
506
506
|
*/
|
|
507
507
|
StreamArn?: string;
|
|
508
508
|
/**
|
|
509
|
-
* @public
|
|
510
509
|
* <p>The DynamoDB table with which the stream is associated.</p>
|
|
510
|
+
* @public
|
|
511
511
|
*/
|
|
512
512
|
TableName?: string;
|
|
513
513
|
/**
|
|
514
|
-
* @public
|
|
515
514
|
* <p>A timestamp, in ISO 8601 format, for this stream.</p>
|
|
516
515
|
* <p>Note that <code>LatestStreamLabel</code> is not a unique identifier for the stream, because it is
|
|
517
516
|
* possible that a stream from another table might have the same timestamp. However, the
|
|
@@ -528,36 +527,37 @@ export interface _Stream {
|
|
|
528
527
|
* </p>
|
|
529
528
|
* </li>
|
|
530
529
|
* </ul>
|
|
530
|
+
* @public
|
|
531
531
|
*/
|
|
532
532
|
StreamLabel?: string;
|
|
533
533
|
}
|
|
534
534
|
/**
|
|
535
|
-
* @public
|
|
536
535
|
* <p>Represents the output of a <code>ListStreams</code> operation.</p>
|
|
536
|
+
* @public
|
|
537
537
|
*/
|
|
538
538
|
export interface ListStreamsOutput {
|
|
539
539
|
/**
|
|
540
|
-
* @public
|
|
541
540
|
* <p>A list of stream descriptors associated with the current account and endpoint.</p>
|
|
541
|
+
* @public
|
|
542
542
|
*/
|
|
543
543
|
Streams?: _Stream[];
|
|
544
544
|
/**
|
|
545
|
-
* @public
|
|
546
545
|
* <p>The stream ARN of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request.</p>
|
|
547
546
|
* <p>If <code>LastEvaluatedStreamArn</code> is empty, then the "last page" of results has been
|
|
548
547
|
* processed and there is no more data to be retrieved.</p>
|
|
549
548
|
* <p>If <code>LastEvaluatedStreamArn</code> is not empty, it does not necessarily mean that there
|
|
550
549
|
* is more data in the result set. The only way to know when you have reached the end of the
|
|
551
550
|
* result set is when <code>LastEvaluatedStreamArn</code> is empty.</p>
|
|
551
|
+
* @public
|
|
552
552
|
*/
|
|
553
553
|
LastEvaluatedStreamArn?: string;
|
|
554
554
|
}
|
|
555
555
|
/**
|
|
556
|
-
* @public
|
|
557
556
|
* <p>Represents the data for an attribute.</p>
|
|
558
557
|
* <p>Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.</p>
|
|
559
558
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes">Data Types</a> in the
|
|
560
559
|
* <i>Amazon DynamoDB Developer Guide</i>.</p>
|
|
560
|
+
* @public
|
|
561
561
|
*/
|
|
562
562
|
export type AttributeValue = AttributeValue.BMember | AttributeValue.BOOLMember | AttributeValue.BSMember | AttributeValue.LMember | AttributeValue.MMember | AttributeValue.NMember | AttributeValue.NSMember | AttributeValue.NULLMember | AttributeValue.SMember | AttributeValue.SSMember | AttributeValue.$UnknownMember;
|
|
563
563
|
/**
|
|
@@ -565,11 +565,11 @@ export type AttributeValue = AttributeValue.BMember | AttributeValue.BOOLMember
|
|
|
565
565
|
*/
|
|
566
566
|
export declare namespace AttributeValue {
|
|
567
567
|
/**
|
|
568
|
-
* @public
|
|
569
568
|
* <p>An attribute of type String. For example:</p>
|
|
570
569
|
* <p>
|
|
571
570
|
* <code>"S": "Hello"</code>
|
|
572
571
|
* </p>
|
|
572
|
+
* @public
|
|
573
573
|
*/
|
|
574
574
|
interface SMember {
|
|
575
575
|
S: string;
|
|
@@ -585,12 +585,12 @@ export declare namespace AttributeValue {
|
|
|
585
585
|
$unknown?: never;
|
|
586
586
|
}
|
|
587
587
|
/**
|
|
588
|
-
* @public
|
|
589
588
|
* <p>An attribute of type Number. For example:</p>
|
|
590
589
|
* <p>
|
|
591
590
|
* <code>"N": "123.45"</code>
|
|
592
591
|
* </p>
|
|
593
592
|
* <p>Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.</p>
|
|
593
|
+
* @public
|
|
594
594
|
*/
|
|
595
595
|
interface NMember {
|
|
596
596
|
S?: never;
|
|
@@ -606,11 +606,11 @@ export declare namespace AttributeValue {
|
|
|
606
606
|
$unknown?: never;
|
|
607
607
|
}
|
|
608
608
|
/**
|
|
609
|
-
* @public
|
|
610
609
|
* <p>An attribute of type Binary. For example:</p>
|
|
611
610
|
* <p>
|
|
612
611
|
* <code>"B": "dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk"</code>
|
|
613
612
|
* </p>
|
|
613
|
+
* @public
|
|
614
614
|
*/
|
|
615
615
|
interface BMember {
|
|
616
616
|
S?: never;
|
|
@@ -626,11 +626,11 @@ export declare namespace AttributeValue {
|
|
|
626
626
|
$unknown?: never;
|
|
627
627
|
}
|
|
628
628
|
/**
|
|
629
|
-
* @public
|
|
630
629
|
* <p>An attribute of type String Set. For example:</p>
|
|
631
630
|
* <p>
|
|
632
631
|
* <code>"SS": ["Giraffe", "Hippo" ,"Zebra"]</code>
|
|
633
632
|
* </p>
|
|
633
|
+
* @public
|
|
634
634
|
*/
|
|
635
635
|
interface SSMember {
|
|
636
636
|
S?: never;
|
|
@@ -646,12 +646,12 @@ export declare namespace AttributeValue {
|
|
|
646
646
|
$unknown?: never;
|
|
647
647
|
}
|
|
648
648
|
/**
|
|
649
|
-
* @public
|
|
650
649
|
* <p>An attribute of type Number Set. For example:</p>
|
|
651
650
|
* <p>
|
|
652
651
|
* <code>"NS": ["42.2", "-19", "7.5", "3.14"]</code>
|
|
653
652
|
* </p>
|
|
654
653
|
* <p>Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.</p>
|
|
654
|
+
* @public
|
|
655
655
|
*/
|
|
656
656
|
interface NSMember {
|
|
657
657
|
S?: never;
|
|
@@ -667,11 +667,11 @@ export declare namespace AttributeValue {
|
|
|
667
667
|
$unknown?: never;
|
|
668
668
|
}
|
|
669
669
|
/**
|
|
670
|
-
* @public
|
|
671
670
|
* <p>An attribute of type Binary Set. For example:</p>
|
|
672
671
|
* <p>
|
|
673
672
|
* <code>"BS": ["U3Vubnk=", "UmFpbnk=", "U25vd3k="]</code>
|
|
674
673
|
* </p>
|
|
674
|
+
* @public
|
|
675
675
|
*/
|
|
676
676
|
interface BSMember {
|
|
677
677
|
S?: never;
|
|
@@ -687,11 +687,11 @@ export declare namespace AttributeValue {
|
|
|
687
687
|
$unknown?: never;
|
|
688
688
|
}
|
|
689
689
|
/**
|
|
690
|
-
* @public
|
|
691
690
|
* <p>An attribute of type Map. For example:</p>
|
|
692
691
|
* <p>
|
|
693
692
|
* <code>"M": \{"Name": \{"S": "Joe"\}, "Age": \{"N": "35"\}\}</code>
|
|
694
693
|
* </p>
|
|
694
|
+
* @public
|
|
695
695
|
*/
|
|
696
696
|
interface MMember {
|
|
697
697
|
S?: never;
|
|
@@ -707,11 +707,11 @@ export declare namespace AttributeValue {
|
|
|
707
707
|
$unknown?: never;
|
|
708
708
|
}
|
|
709
709
|
/**
|
|
710
|
-
* @public
|
|
711
710
|
* <p>An attribute of type List. For example:</p>
|
|
712
711
|
* <p>
|
|
713
712
|
* <code>"L": [ \{"S": "Cookies"\} , \{"S": "Coffee"\}, \{"N": "3.14159"\}]</code>
|
|
714
713
|
* </p>
|
|
714
|
+
* @public
|
|
715
715
|
*/
|
|
716
716
|
interface LMember {
|
|
717
717
|
S?: never;
|
|
@@ -727,11 +727,11 @@ export declare namespace AttributeValue {
|
|
|
727
727
|
$unknown?: never;
|
|
728
728
|
}
|
|
729
729
|
/**
|
|
730
|
-
* @public
|
|
731
730
|
* <p>An attribute of type Null. For example:</p>
|
|
732
731
|
* <p>
|
|
733
732
|
* <code>"NULL": true</code>
|
|
734
733
|
* </p>
|
|
734
|
+
* @public
|
|
735
735
|
*/
|
|
736
736
|
interface NULLMember {
|
|
737
737
|
S?: never;
|
|
@@ -747,11 +747,11 @@ export declare namespace AttributeValue {
|
|
|
747
747
|
$unknown?: never;
|
|
748
748
|
}
|
|
749
749
|
/**
|
|
750
|
-
* @public
|
|
751
750
|
* <p>An attribute of type Boolean. For example:</p>
|
|
752
751
|
* <p>
|
|
753
752
|
* <code>"BOOL": true</code>
|
|
754
753
|
* </p>
|
|
754
|
+
* @public
|
|
755
755
|
*/
|
|
756
756
|
interface BOOLMember {
|
|
757
757
|
S?: never;
|
|
@@ -798,42 +798,41 @@ export declare namespace AttributeValue {
|
|
|
798
798
|
const visit: <T>(value: AttributeValue, visitor: Visitor<T>) => T;
|
|
799
799
|
}
|
|
800
800
|
/**
|
|
801
|
-
* @public
|
|
802
801
|
* <p>A description of a single data modification that was performed on an item in a DynamoDB table.</p>
|
|
802
|
+
* @public
|
|
803
803
|
*/
|
|
804
804
|
export interface StreamRecord {
|
|
805
805
|
/**
|
|
806
|
-
* @public
|
|
807
806
|
* <p>The approximate date and time when the stream record was created, in <a href="http://www.epochconverter.com/">UNIX epoch time</a> format and rounded down to the closest second.</p>
|
|
807
|
+
* @public
|
|
808
808
|
*/
|
|
809
809
|
ApproximateCreationDateTime?: Date;
|
|
810
810
|
/**
|
|
811
|
-
* @public
|
|
812
811
|
* <p>The primary key attribute(s) for the DynamoDB item that was modified.</p>
|
|
812
|
+
* @public
|
|
813
813
|
*/
|
|
814
814
|
Keys?: Record<string, AttributeValue>;
|
|
815
815
|
/**
|
|
816
|
-
* @public
|
|
817
816
|
* <p>The item in the DynamoDB table as it appeared after it was modified.</p>
|
|
817
|
+
* @public
|
|
818
818
|
*/
|
|
819
819
|
NewImage?: Record<string, AttributeValue>;
|
|
820
820
|
/**
|
|
821
|
-
* @public
|
|
822
821
|
* <p>The item in the DynamoDB table as it appeared before it was modified.</p>
|
|
822
|
+
* @public
|
|
823
823
|
*/
|
|
824
824
|
OldImage?: Record<string, AttributeValue>;
|
|
825
825
|
/**
|
|
826
|
-
* @public
|
|
827
826
|
* <p>The sequence number of the stream record.</p>
|
|
827
|
+
* @public
|
|
828
828
|
*/
|
|
829
829
|
SequenceNumber?: string;
|
|
830
830
|
/**
|
|
831
|
-
* @public
|
|
832
831
|
* <p>The size of the stream record, in bytes.</p>
|
|
832
|
+
* @public
|
|
833
833
|
*/
|
|
834
834
|
SizeBytes?: number;
|
|
835
835
|
/**
|
|
836
|
-
* @public
|
|
837
836
|
* <p>The type of data from the modified DynamoDB item that was captured in this stream record:</p>
|
|
838
837
|
* <ul>
|
|
839
838
|
* <li>
|
|
@@ -853,21 +852,21 @@ export interface StreamRecord {
|
|
|
853
852
|
* <code>NEW_AND_OLD_IMAGES</code> - both the new and the old item images of the item.</p>
|
|
854
853
|
* </li>
|
|
855
854
|
* </ul>
|
|
855
|
+
* @public
|
|
856
856
|
*/
|
|
857
857
|
StreamViewType?: StreamViewType;
|
|
858
858
|
}
|
|
859
859
|
/**
|
|
860
|
-
* @public
|
|
861
860
|
* <p>A description of a unique event within a stream.</p>
|
|
861
|
+
* @public
|
|
862
862
|
*/
|
|
863
863
|
export interface _Record {
|
|
864
864
|
/**
|
|
865
|
-
* @public
|
|
866
865
|
* <p>A globally unique identifier for the event that was recorded in this stream record.</p>
|
|
866
|
+
* @public
|
|
867
867
|
*/
|
|
868
868
|
eventID?: string;
|
|
869
869
|
/**
|
|
870
|
-
* @public
|
|
871
870
|
* <p>The type of data modification that was performed on the DynamoDB table:</p>
|
|
872
871
|
* <ul>
|
|
873
872
|
* <li>
|
|
@@ -883,33 +882,33 @@ export interface _Record {
|
|
|
883
882
|
* <code>REMOVE</code> - the item was deleted from the table</p>
|
|
884
883
|
* </li>
|
|
885
884
|
* </ul>
|
|
885
|
+
* @public
|
|
886
886
|
*/
|
|
887
887
|
eventName?: OperationType;
|
|
888
888
|
/**
|
|
889
|
-
* @public
|
|
890
889
|
* <p>The version number of the stream record format. This number is updated whenever the structure of <code>Record</code> is modified.</p>
|
|
891
890
|
* <p>Client applications must not assume that <code>eventVersion</code> will remain at a particular
|
|
892
891
|
* value, as this number is subject to change at any time. In general, <code>eventVersion</code> will
|
|
893
892
|
* only increase as the low-level DynamoDB Streams API evolves.</p>
|
|
893
|
+
* @public
|
|
894
894
|
*/
|
|
895
895
|
eventVersion?: string;
|
|
896
896
|
/**
|
|
897
|
-
* @public
|
|
898
897
|
* <p>The Amazon Web Services service from which the stream record originated. For DynamoDB Streams, this is <code>aws:dynamodb</code>.</p>
|
|
898
|
+
* @public
|
|
899
899
|
*/
|
|
900
900
|
eventSource?: string;
|
|
901
901
|
/**
|
|
902
|
-
* @public
|
|
903
902
|
* <p>The region in which the <code>GetRecords</code> request was received.</p>
|
|
903
|
+
* @public
|
|
904
904
|
*/
|
|
905
905
|
awsRegion?: string;
|
|
906
906
|
/**
|
|
907
|
-
* @public
|
|
908
907
|
* <p>The main body of the stream record, containing all of the DynamoDB-specific fields.</p>
|
|
908
|
+
* @public
|
|
909
909
|
*/
|
|
910
910
|
dynamodb?: StreamRecord;
|
|
911
911
|
/**
|
|
912
|
-
* @public
|
|
913
912
|
* <p>Items that are deleted by the Time to Live process after expiration have the following fields: </p>
|
|
914
913
|
* <ul>
|
|
915
914
|
* <li>
|
|
@@ -921,24 +920,25 @@ export interface _Record {
|
|
|
921
920
|
* <p>"dynamodb.amazonaws.com"</p>
|
|
922
921
|
* </li>
|
|
923
922
|
* </ul>
|
|
923
|
+
* @public
|
|
924
924
|
*/
|
|
925
925
|
userIdentity?: Identity;
|
|
926
926
|
}
|
|
927
927
|
/**
|
|
928
|
-
* @public
|
|
929
928
|
* <p>Represents the output of a <code>GetRecords</code> operation.</p>
|
|
929
|
+
* @public
|
|
930
930
|
*/
|
|
931
931
|
export interface GetRecordsOutput {
|
|
932
932
|
/**
|
|
933
|
-
* @public
|
|
934
933
|
* <p>The stream records from the shard, which were retrieved using the shard iterator.</p>
|
|
934
|
+
* @public
|
|
935
935
|
*/
|
|
936
936
|
Records?: _Record[];
|
|
937
937
|
/**
|
|
938
|
-
* @public
|
|
939
938
|
* <p>The next position in the shard from which to start sequentially reading stream records. If
|
|
940
939
|
* set to <code>null</code>, the shard has been closed and the requested iterator will not return
|
|
941
940
|
* any more data.</p>
|
|
941
|
+
* @public
|
|
942
942
|
*/
|
|
943
943
|
NextShardIterator?: string;
|
|
944
944
|
}
|
|
@@ -56,6 +56,7 @@ export interface DynamoDBStreams {
|
|
|
56
56
|
options: __HttpHandlerOptions,
|
|
57
57
|
cb: (err: any, data?: GetShardIteratorCommandOutput) => void
|
|
58
58
|
): void;
|
|
59
|
+
listStreams(): Promise<ListStreamsCommandOutput>;
|
|
59
60
|
listStreams(
|
|
60
61
|
args: ListStreamsCommandInput,
|
|
61
62
|
options?: __HttpHandlerOptions
|
|
@@ -21,6 +21,15 @@ declare const DescribeStreamCommand_base: {
|
|
|
21
21
|
ServiceInputTypes,
|
|
22
22
|
ServiceOutputTypes
|
|
23
23
|
>;
|
|
24
|
+
new (
|
|
25
|
+
__0_0: DescribeStreamCommandInput
|
|
26
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
27
|
+
DescribeStreamCommandInput,
|
|
28
|
+
DescribeStreamCommandOutput,
|
|
29
|
+
DynamoDBStreamsClientResolvedConfig,
|
|
30
|
+
ServiceInputTypes,
|
|
31
|
+
ServiceOutputTypes
|
|
32
|
+
>;
|
|
24
33
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
25
34
|
};
|
|
26
35
|
export declare class DescribeStreamCommand extends DescribeStreamCommand_base {}
|
|
@@ -21,6 +21,15 @@ declare const GetRecordsCommand_base: {
|
|
|
21
21
|
ServiceInputTypes,
|
|
22
22
|
ServiceOutputTypes
|
|
23
23
|
>;
|
|
24
|
+
new (
|
|
25
|
+
__0_0: GetRecordsCommandInput
|
|
26
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
27
|
+
GetRecordsCommandInput,
|
|
28
|
+
GetRecordsCommandOutput,
|
|
29
|
+
DynamoDBStreamsClientResolvedConfig,
|
|
30
|
+
ServiceInputTypes,
|
|
31
|
+
ServiceOutputTypes
|
|
32
|
+
>;
|
|
24
33
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
25
34
|
};
|
|
26
35
|
export declare class GetRecordsCommand extends GetRecordsCommand_base {}
|
|
@@ -24,6 +24,15 @@ declare const GetShardIteratorCommand_base: {
|
|
|
24
24
|
ServiceInputTypes,
|
|
25
25
|
ServiceOutputTypes
|
|
26
26
|
>;
|
|
27
|
+
new (
|
|
28
|
+
__0_0: GetShardIteratorCommandInput
|
|
29
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
30
|
+
GetShardIteratorCommandInput,
|
|
31
|
+
GetShardIteratorCommandOutput,
|
|
32
|
+
DynamoDBStreamsClientResolvedConfig,
|
|
33
|
+
ServiceInputTypes,
|
|
34
|
+
ServiceOutputTypes
|
|
35
|
+
>;
|
|
27
36
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
37
|
};
|
|
29
38
|
export declare class GetShardIteratorCommand extends GetShardIteratorCommand_base {}
|
|
@@ -21,6 +21,15 @@ declare const ListStreamsCommand_base: {
|
|
|
21
21
|
ServiceInputTypes,
|
|
22
22
|
ServiceOutputTypes
|
|
23
23
|
>;
|
|
24
|
+
new (
|
|
25
|
+
...[input]: [] | [ListStreamsCommandInput]
|
|
26
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
27
|
+
ListStreamsCommandInput,
|
|
28
|
+
ListStreamsCommandOutput,
|
|
29
|
+
DynamoDBStreamsClientResolvedConfig,
|
|
30
|
+
ServiceInputTypes,
|
|
31
|
+
ServiceOutputTypes
|
|
32
|
+
>;
|
|
24
33
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
25
34
|
};
|
|
26
35
|
export declare class ListStreamsCommand extends ListStreamsCommand_base {}
|
|
@@ -5,5 +5,4 @@ export { RuntimeExtension } from "./runtimeExtensions";
|
|
|
5
5
|
export { DynamoDBStreamsExtensionConfiguration } from "./extensionConfiguration";
|
|
6
6
|
export * from "./commands";
|
|
7
7
|
export * from "./models";
|
|
8
|
-
import "@aws-sdk/util-endpoints";
|
|
9
8
|
export { DynamoDBStreamsServiceException } from "./models/DynamoDBStreamsServiceException";
|
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.540.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,47 +20,47 @@
|
|
|
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.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
31
|
-
"@aws-sdk/types": "3.
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
-
"@smithy/config-resolver": "^2.
|
|
36
|
-
"@smithy/core": "^1.
|
|
37
|
-
"@smithy/fetch-http-handler": "^2.
|
|
38
|
-
"@smithy/hash-node": "^2.
|
|
39
|
-
"@smithy/invalid-dependency": "^2.
|
|
40
|
-
"@smithy/middleware-content-length": "^2.
|
|
41
|
-
"@smithy/middleware-endpoint": "^2.
|
|
42
|
-
"@smithy/middleware-retry": "^2.
|
|
43
|
-
"@smithy/middleware-serde": "^2.
|
|
44
|
-
"@smithy/middleware-stack": "^2.
|
|
45
|
-
"@smithy/node-config-provider": "^2.
|
|
46
|
-
"@smithy/node-http-handler": "^2.
|
|
47
|
-
"@smithy/protocol-http": "^3.
|
|
48
|
-
"@smithy/smithy-client": "^2.
|
|
49
|
-
"@smithy/types": "^2.
|
|
50
|
-
"@smithy/url-parser": "^2.
|
|
51
|
-
"@smithy/util-base64": "^2.
|
|
52
|
-
"@smithy/util-body-length-browser": "^2.
|
|
53
|
-
"@smithy/util-body-length-node": "^2.
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^2.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^2.
|
|
56
|
-
"@smithy/util-endpoints": "^1.
|
|
57
|
-
"@smithy/util-middleware": "^2.
|
|
58
|
-
"@smithy/util-retry": "^2.
|
|
59
|
-
"@smithy/util-utf8": "^2.
|
|
60
|
-
"tslib": "^2.
|
|
23
|
+
"@aws-sdk/client-sts": "3.540.0",
|
|
24
|
+
"@aws-sdk/core": "3.535.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.540.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.535.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.535.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.535.0",
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.540.0",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "3.535.0",
|
|
31
|
+
"@aws-sdk/types": "3.535.0",
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.540.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "3.535.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.535.0",
|
|
35
|
+
"@smithy/config-resolver": "^2.2.0",
|
|
36
|
+
"@smithy/core": "^1.4.0",
|
|
37
|
+
"@smithy/fetch-http-handler": "^2.5.0",
|
|
38
|
+
"@smithy/hash-node": "^2.2.0",
|
|
39
|
+
"@smithy/invalid-dependency": "^2.2.0",
|
|
40
|
+
"@smithy/middleware-content-length": "^2.2.0",
|
|
41
|
+
"@smithy/middleware-endpoint": "^2.5.0",
|
|
42
|
+
"@smithy/middleware-retry": "^2.2.0",
|
|
43
|
+
"@smithy/middleware-serde": "^2.3.0",
|
|
44
|
+
"@smithy/middleware-stack": "^2.2.0",
|
|
45
|
+
"@smithy/node-config-provider": "^2.3.0",
|
|
46
|
+
"@smithy/node-http-handler": "^2.5.0",
|
|
47
|
+
"@smithy/protocol-http": "^3.3.0",
|
|
48
|
+
"@smithy/smithy-client": "^2.5.0",
|
|
49
|
+
"@smithy/types": "^2.12.0",
|
|
50
|
+
"@smithy/url-parser": "^2.2.0",
|
|
51
|
+
"@smithy/util-base64": "^2.3.0",
|
|
52
|
+
"@smithy/util-body-length-browser": "^2.2.0",
|
|
53
|
+
"@smithy/util-body-length-node": "^2.3.0",
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^2.2.0",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^2.3.0",
|
|
56
|
+
"@smithy/util-endpoints": "^1.2.0",
|
|
57
|
+
"@smithy/util-middleware": "^2.2.0",
|
|
58
|
+
"@smithy/util-retry": "^2.2.0",
|
|
59
|
+
"@smithy/util-utf8": "^2.3.0",
|
|
60
|
+
"tslib": "^2.6.2"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@smithy/service-client-documentation-generator": "^2.
|
|
63
|
+
"@smithy/service-client-documentation-generator": "^2.2.0",
|
|
64
64
|
"@tsconfig/node14": "1.0.3",
|
|
65
65
|
"@types/node": "^14.14.31",
|
|
66
66
|
"concurrently": "7.0.0",
|