@aws-sdk/client-dynamodb-streams 3.1151.0 → 3.1152.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1150.0";
72
+ var version = "3.1151.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -288,9 +288,10 @@ const _S_ = "S";
288
288
  const _Sh = "Shard";
289
289
  const _Sha = "Shards";
290
290
  const _St = "Stream";
291
- const _T = "Type";
291
+ const _T = "Timestamp";
292
292
  const _TDAE = "TrimmedDataAccessException";
293
293
  const _TN = "TableName";
294
+ const _Ty = "Type";
294
295
  const _aR = "awsRegion";
295
296
  const _c = "client";
296
297
  const _d = "dynamodb";
@@ -364,8 +365,8 @@ var GetRecordsOutput$ = [3, n0, _GRO,
364
365
  ];
365
366
  var GetShardIteratorInput$ = [3, n0, _GSII,
366
367
  0,
367
- [_SA, _SIh, _SIT, _SN],
368
- [0, 0, 0, 0], 3
368
+ [_SA, _SIh, _SIT, _SN, _T],
369
+ [0, 0, 0, 0, 4], 3
369
370
  ];
370
371
  var GetShardIteratorOutput$ = [3, n0, _GSIO,
371
372
  0,
@@ -374,7 +375,7 @@ var GetShardIteratorOutput$ = [3, n0, _GSIO,
374
375
  ];
375
376
  var Identity$ = [3, n0, _I,
376
377
  0,
377
- [_PI, _T],
378
+ [_PI, _Ty],
378
379
  [0, 0]
379
380
  ];
380
381
  var KeySchemaElement$ = [3, n0, _KSE,
@@ -409,7 +410,7 @@ var Shard$ = [3, n0, _Sh,
409
410
  ];
410
411
  var ShardFilter$ = [3, n0, _SF,
411
412
  0,
412
- [_T, _SIh],
413
+ [_Ty, _SIh],
413
414
  [0, 0]
414
415
  ];
415
416
  var _Stream$ = [3, n0, _St,
@@ -666,6 +667,7 @@ const OperationType = {
666
667
  const ShardIteratorType = {
667
668
  AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER",
668
669
  AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER",
670
+ AT_TIMESTAMP: "AT_TIMESTAMP",
669
671
  LATEST: "LATEST",
670
672
  TRIM_HORIZON: "TRIM_HORIZON",
671
673
  };
@@ -25,6 +25,7 @@ export const OperationType = {
25
25
  export const ShardIteratorType = {
26
26
  AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER",
27
27
  AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER",
28
+ AT_TIMESTAMP: "AT_TIMESTAMP",
28
29
  LATEST: "LATEST",
29
30
  TRIM_HORIZON: "TRIM_HORIZON",
30
31
  };
@@ -70,9 +70,10 @@ const _S_ = "S";
70
70
  const _Sh = "Shard";
71
71
  const _Sha = "Shards";
72
72
  const _St = "Stream";
73
- const _T = "Type";
73
+ const _T = "Timestamp";
74
74
  const _TDAE = "TrimmedDataAccessException";
75
75
  const _TN = "TableName";
76
+ const _Ty = "Type";
76
77
  const _aR = "awsRegion";
77
78
  const _c = "client";
78
79
  const _d = "dynamodb";
@@ -149,8 +150,8 @@ export var GetRecordsOutput$ = [3, n0, _GRO,
149
150
  ];
150
151
  export var GetShardIteratorInput$ = [3, n0, _GSII,
151
152
  0,
152
- [_SA, _SIh, _SIT, _SN],
153
- [0, 0, 0, 0], 3
153
+ [_SA, _SIh, _SIT, _SN, _T],
154
+ [0, 0, 0, 0, 4], 3
154
155
  ];
155
156
  export var GetShardIteratorOutput$ = [3, n0, _GSIO,
156
157
  0,
@@ -159,7 +160,7 @@ export var GetShardIteratorOutput$ = [3, n0, _GSIO,
159
160
  ];
160
161
  export var Identity$ = [3, n0, _I,
161
162
  0,
162
- [_PI, _T],
163
+ [_PI, _Ty],
163
164
  [0, 0]
164
165
  ];
165
166
  export var KeySchemaElement$ = [3, n0, _KSE,
@@ -194,7 +195,7 @@ export var Shard$ = [3, n0, _Sh,
194
195
  ];
195
196
  export var ShardFilter$ = [3, n0, _SF,
196
197
  0,
197
- [_T, _SIh],
198
+ [_Ty, _SIh],
198
199
  [0, 0]
199
200
  ];
200
201
  export var _Stream$ = [3, n0, _St,
@@ -43,8 +43,9 @@ declare const GetShardIteratorCommand_base: {
43
43
  * const input = { // GetShardIteratorInput
44
44
  * StreamArn: "STRING_VALUE", // required
45
45
  * ShardId: "STRING_VALUE", // required
46
- * ShardIteratorType: "TRIM_HORIZON" || "LATEST" || "AT_SEQUENCE_NUMBER" || "AFTER_SEQUENCE_NUMBER", // required
46
+ * ShardIteratorType: "TRIM_HORIZON" || "LATEST" || "AT_SEQUENCE_NUMBER" || "AFTER_SEQUENCE_NUMBER" || "AT_TIMESTAMP", // required
47
47
  * SequenceNumber: "STRING_VALUE",
48
+ * Timestamp: new Date("TIMESTAMP"),
48
49
  * };
49
50
  * const command = new GetShardIteratorCommand(input);
50
51
  * const response = await client.send(command);
@@ -69,6 +69,7 @@ export type OperationType = (typeof OperationType)[keyof typeof OperationType];
69
69
  export declare const ShardIteratorType: {
70
70
  readonly AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER";
71
71
  readonly AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER";
72
+ readonly AT_TIMESTAMP: "AT_TIMESTAMP";
72
73
  readonly LATEST: "LATEST";
73
74
  readonly TRIM_HORIZON: "TRIM_HORIZON";
74
75
  };
@@ -322,6 +322,10 @@ export interface GetShardIteratorInput {
322
322
  * <code>LATEST</code> - Start reading just after the most recent stream record in the
323
323
  * shard, so that you always read the most recent data in the shard.</p>
324
324
  * </li>
325
+ * <li>
326
+ * <p>
327
+ * <code>AT_TIMESTAMP</code> - Start reading from the position denoted by a specific timestamp, provided in the parameter <code>Timestamp</code>.</p>
328
+ * </li>
325
329
  * </ul>
326
330
  * @public
327
331
  */
@@ -331,6 +335,18 @@ export interface GetShardIteratorInput {
331
335
  * @public
332
336
  */
333
337
  SequenceNumber?: string | undefined;
338
+ /**
339
+ * <p>The timestamp of the stream record from which to start reading. Used with shard
340
+ * iterator type <code>AT_TIMESTAMP</code>. A timestamp is the Unix epoch date with precision in
341
+ * milliseconds. For example, <code>1791316726.480</code>. The iterator points to the first stream record whose
342
+ * <code>ApproximateCreationDateTime</code> is at or after the specified timestamp. If no record
343
+ * with that exact timestamp exists, the iterator points to the next (later) record. If the
344
+ * timestamp is older than the current trim horizon, the iterator points to the oldest
345
+ * untrimmed stream record (<code>TRIM_HORIZON</code>). If the timestamp is in the future,
346
+ * the request returns a <code>ValidationException</code>.</p>
347
+ * @public
348
+ */
349
+ Timestamp?: Date | undefined;
334
350
  }
335
351
  /**
336
352
  * <p>Represents the output of a <code>GetShardIterator</code> operation.</p>
@@ -677,7 +693,8 @@ export declare namespace AttributeValue {
677
693
  */
678
694
  export interface StreamRecord {
679
695
  /**
680
- * <p>The approximate date and time when the stream record was created, in <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601</a> format and rounded down to the closest second.</p>
696
+ * <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.
697
+ * Some tools and SDKs may convert this value to a different format, such as <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601</a>.</p>
681
698
  * @public
682
699
  */
683
700
  ApproximateCreationDateTime?: Date | undefined;
@@ -30,6 +30,7 @@ export type OperationType = (typeof OperationType)[keyof typeof OperationType];
30
30
  export declare const ShardIteratorType: {
31
31
  readonly AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER";
32
32
  readonly AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER";
33
+ readonly AT_TIMESTAMP: "AT_TIMESTAMP";
33
34
  readonly LATEST: "LATEST";
34
35
  readonly TRIM_HORIZON: "TRIM_HORIZON";
35
36
  };
@@ -56,6 +56,7 @@ export interface GetShardIteratorInput {
56
56
  ShardId: string | undefined;
57
57
  ShardIteratorType: ShardIteratorType | undefined;
58
58
  SequenceNumber?: string | undefined;
59
+ Timestamp?: Date | undefined;
59
60
  }
60
61
  export interface GetShardIteratorOutput {
61
62
  ShardIterator?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-dynamodb-streams",
3
- "version": "3.1151.0",
3
+ "version": "3.1152.0",
4
4
  "description": "AWS SDK for JavaScript Dynamodb Streams Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-dynamodb-streams",
6
6
  "license": "Apache-2.0",