@aws-sdk/client-dynamodb-streams 3.301.0 → 3.306.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.
@@ -2,25 +2,22 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AttributeValue = exports.ShardIteratorType = exports.TrimmedDataAccessException = exports.LimitExceededException = exports.OperationType = exports.ExpiredIteratorException = exports.ResourceNotFoundException = exports.InternalServerError = exports.StreamViewType = exports.StreamStatus = exports.KeyType = void 0;
4
4
  const DynamoDBStreamsServiceException_1 = require("./DynamoDBStreamsServiceException");
5
- var KeyType;
6
- (function (KeyType) {
7
- KeyType["HASH"] = "HASH";
8
- KeyType["RANGE"] = "RANGE";
9
- })(KeyType = exports.KeyType || (exports.KeyType = {}));
10
- var StreamStatus;
11
- (function (StreamStatus) {
12
- StreamStatus["DISABLED"] = "DISABLED";
13
- StreamStatus["DISABLING"] = "DISABLING";
14
- StreamStatus["ENABLED"] = "ENABLED";
15
- StreamStatus["ENABLING"] = "ENABLING";
16
- })(StreamStatus = exports.StreamStatus || (exports.StreamStatus = {}));
17
- var StreamViewType;
18
- (function (StreamViewType) {
19
- StreamViewType["KEYS_ONLY"] = "KEYS_ONLY";
20
- StreamViewType["NEW_AND_OLD_IMAGES"] = "NEW_AND_OLD_IMAGES";
21
- StreamViewType["NEW_IMAGE"] = "NEW_IMAGE";
22
- StreamViewType["OLD_IMAGE"] = "OLD_IMAGE";
23
- })(StreamViewType = exports.StreamViewType || (exports.StreamViewType = {}));
5
+ exports.KeyType = {
6
+ HASH: "HASH",
7
+ RANGE: "RANGE",
8
+ };
9
+ exports.StreamStatus = {
10
+ DISABLED: "DISABLED",
11
+ DISABLING: "DISABLING",
12
+ ENABLED: "ENABLED",
13
+ ENABLING: "ENABLING",
14
+ };
15
+ exports.StreamViewType = {
16
+ KEYS_ONLY: "KEYS_ONLY",
17
+ NEW_AND_OLD_IMAGES: "NEW_AND_OLD_IMAGES",
18
+ NEW_IMAGE: "NEW_IMAGE",
19
+ OLD_IMAGE: "OLD_IMAGE",
20
+ };
24
21
  class InternalServerError extends DynamoDBStreamsServiceException_1.DynamoDBStreamsServiceException {
25
22
  constructor(opts) {
26
23
  super({
@@ -60,12 +57,11 @@ class ExpiredIteratorException extends DynamoDBStreamsServiceException_1.DynamoD
60
57
  }
61
58
  }
62
59
  exports.ExpiredIteratorException = ExpiredIteratorException;
63
- var OperationType;
64
- (function (OperationType) {
65
- OperationType["INSERT"] = "INSERT";
66
- OperationType["MODIFY"] = "MODIFY";
67
- OperationType["REMOVE"] = "REMOVE";
68
- })(OperationType = exports.OperationType || (exports.OperationType = {}));
60
+ exports.OperationType = {
61
+ INSERT: "INSERT",
62
+ MODIFY: "MODIFY",
63
+ REMOVE: "REMOVE",
64
+ };
69
65
  class LimitExceededException extends DynamoDBStreamsServiceException_1.DynamoDBStreamsServiceException {
70
66
  constructor(opts) {
71
67
  super({
@@ -92,13 +88,12 @@ class TrimmedDataAccessException extends DynamoDBStreamsServiceException_1.Dynam
92
88
  }
93
89
  }
94
90
  exports.TrimmedDataAccessException = TrimmedDataAccessException;
95
- var ShardIteratorType;
96
- (function (ShardIteratorType) {
97
- ShardIteratorType["AFTER_SEQUENCE_NUMBER"] = "AFTER_SEQUENCE_NUMBER";
98
- ShardIteratorType["AT_SEQUENCE_NUMBER"] = "AT_SEQUENCE_NUMBER";
99
- ShardIteratorType["LATEST"] = "LATEST";
100
- ShardIteratorType["TRIM_HORIZON"] = "TRIM_HORIZON";
101
- })(ShardIteratorType = exports.ShardIteratorType || (exports.ShardIteratorType = {}));
91
+ exports.ShardIteratorType = {
92
+ AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER",
93
+ AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER",
94
+ LATEST: "LATEST",
95
+ TRIM_HORIZON: "TRIM_HORIZON",
96
+ };
102
97
  var AttributeValue;
103
98
  (function (AttributeValue) {
104
99
  AttributeValue.visit = (value, visitor) => {
@@ -1,23 +1,20 @@
1
1
  import { DynamoDBStreamsServiceException as __BaseException } from "./DynamoDBStreamsServiceException";
2
- export var KeyType;
3
- (function (KeyType) {
4
- KeyType["HASH"] = "HASH";
5
- KeyType["RANGE"] = "RANGE";
6
- })(KeyType || (KeyType = {}));
7
- export var StreamStatus;
8
- (function (StreamStatus) {
9
- StreamStatus["DISABLED"] = "DISABLED";
10
- StreamStatus["DISABLING"] = "DISABLING";
11
- StreamStatus["ENABLED"] = "ENABLED";
12
- StreamStatus["ENABLING"] = "ENABLING";
13
- })(StreamStatus || (StreamStatus = {}));
14
- export var StreamViewType;
15
- (function (StreamViewType) {
16
- StreamViewType["KEYS_ONLY"] = "KEYS_ONLY";
17
- StreamViewType["NEW_AND_OLD_IMAGES"] = "NEW_AND_OLD_IMAGES";
18
- StreamViewType["NEW_IMAGE"] = "NEW_IMAGE";
19
- StreamViewType["OLD_IMAGE"] = "OLD_IMAGE";
20
- })(StreamViewType || (StreamViewType = {}));
2
+ export const KeyType = {
3
+ HASH: "HASH",
4
+ RANGE: "RANGE",
5
+ };
6
+ export const StreamStatus = {
7
+ DISABLED: "DISABLED",
8
+ DISABLING: "DISABLING",
9
+ ENABLED: "ENABLED",
10
+ ENABLING: "ENABLING",
11
+ };
12
+ export const StreamViewType = {
13
+ KEYS_ONLY: "KEYS_ONLY",
14
+ NEW_AND_OLD_IMAGES: "NEW_AND_OLD_IMAGES",
15
+ NEW_IMAGE: "NEW_IMAGE",
16
+ OLD_IMAGE: "OLD_IMAGE",
17
+ };
21
18
  export class InternalServerError extends __BaseException {
22
19
  constructor(opts) {
23
20
  super({
@@ -54,12 +51,11 @@ export class ExpiredIteratorException extends __BaseException {
54
51
  Object.setPrototypeOf(this, ExpiredIteratorException.prototype);
55
52
  }
56
53
  }
57
- export var OperationType;
58
- (function (OperationType) {
59
- OperationType["INSERT"] = "INSERT";
60
- OperationType["MODIFY"] = "MODIFY";
61
- OperationType["REMOVE"] = "REMOVE";
62
- })(OperationType || (OperationType = {}));
54
+ export const OperationType = {
55
+ INSERT: "INSERT",
56
+ MODIFY: "MODIFY",
57
+ REMOVE: "REMOVE",
58
+ };
63
59
  export class LimitExceededException extends __BaseException {
64
60
  constructor(opts) {
65
61
  super({
@@ -84,13 +80,12 @@ export class TrimmedDataAccessException extends __BaseException {
84
80
  Object.setPrototypeOf(this, TrimmedDataAccessException.prototype);
85
81
  }
86
82
  }
87
- export var ShardIteratorType;
88
- (function (ShardIteratorType) {
89
- ShardIteratorType["AFTER_SEQUENCE_NUMBER"] = "AFTER_SEQUENCE_NUMBER";
90
- ShardIteratorType["AT_SEQUENCE_NUMBER"] = "AT_SEQUENCE_NUMBER";
91
- ShardIteratorType["LATEST"] = "LATEST";
92
- ShardIteratorType["TRIM_HORIZON"] = "TRIM_HORIZON";
93
- })(ShardIteratorType || (ShardIteratorType = {}));
83
+ export const ShardIteratorType = {
84
+ AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER",
85
+ AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER",
86
+ LATEST: "LATEST",
87
+ TRIM_HORIZON: "TRIM_HORIZON",
88
+ };
94
89
  export var AttributeValue;
95
90
  (function (AttributeValue) {
96
91
  AttributeValue.visit = (value, visitor) => {
@@ -21,11 +21,16 @@ export interface DescribeStreamInput {
21
21
  }
22
22
  /**
23
23
  * @public
24
+ * @enum
24
25
  */
25
- export declare enum KeyType {
26
- HASH = "HASH",
27
- RANGE = "RANGE"
28
- }
26
+ export declare const KeyType: {
27
+ readonly HASH: "HASH";
28
+ readonly RANGE: "RANGE";
29
+ };
30
+ /**
31
+ * @public
32
+ */
33
+ export type KeyType = (typeof KeyType)[keyof typeof KeyType];
29
34
  /**
30
35
  * @public
31
36
  * <p>Represents <i>a single element</i> of a key schema. A key schema specifies
@@ -104,22 +109,32 @@ export interface Shard {
104
109
  }
105
110
  /**
106
111
  * @public
112
+ * @enum
107
113
  */
108
- export declare enum StreamStatus {
109
- DISABLED = "DISABLED",
110
- DISABLING = "DISABLING",
111
- ENABLED = "ENABLED",
112
- ENABLING = "ENABLING"
113
- }
114
+ export declare const StreamStatus: {
115
+ readonly DISABLED: "DISABLED";
116
+ readonly DISABLING: "DISABLING";
117
+ readonly ENABLED: "ENABLED";
118
+ readonly ENABLING: "ENABLING";
119
+ };
114
120
  /**
115
121
  * @public
116
122
  */
117
- export declare enum StreamViewType {
118
- KEYS_ONLY = "KEYS_ONLY",
119
- NEW_AND_OLD_IMAGES = "NEW_AND_OLD_IMAGES",
120
- NEW_IMAGE = "NEW_IMAGE",
121
- OLD_IMAGE = "OLD_IMAGE"
122
- }
123
+ export type StreamStatus = (typeof StreamStatus)[keyof typeof StreamStatus];
124
+ /**
125
+ * @public
126
+ * @enum
127
+ */
128
+ export declare const StreamViewType: {
129
+ readonly KEYS_ONLY: "KEYS_ONLY";
130
+ readonly NEW_AND_OLD_IMAGES: "NEW_AND_OLD_IMAGES";
131
+ readonly NEW_IMAGE: "NEW_IMAGE";
132
+ readonly OLD_IMAGE: "OLD_IMAGE";
133
+ };
134
+ /**
135
+ * @public
136
+ */
137
+ export type StreamViewType = (typeof StreamViewType)[keyof typeof StreamViewType];
123
138
  /**
124
139
  * @public
125
140
  * <p>Represents all of the data describing a particular stream.</p>
@@ -284,12 +299,17 @@ export interface GetRecordsInput {
284
299
  }
285
300
  /**
286
301
  * @public
302
+ * @enum
287
303
  */
288
- export declare enum OperationType {
289
- INSERT = "INSERT",
290
- MODIFY = "MODIFY",
291
- REMOVE = "REMOVE"
292
- }
304
+ export declare const OperationType: {
305
+ readonly INSERT: "INSERT";
306
+ readonly MODIFY: "MODIFY";
307
+ readonly REMOVE: "REMOVE";
308
+ };
309
+ /**
310
+ * @public
311
+ */
312
+ export type OperationType = (typeof OperationType)[keyof typeof OperationType];
293
313
  /**
294
314
  * @public
295
315
  * <p>Contains details about the type of identity that made the request.</p>
@@ -352,13 +372,18 @@ export declare class TrimmedDataAccessException extends __BaseException {
352
372
  }
353
373
  /**
354
374
  * @public
375
+ * @enum
355
376
  */
356
- export declare enum ShardIteratorType {
357
- AFTER_SEQUENCE_NUMBER = "AFTER_SEQUENCE_NUMBER",
358
- AT_SEQUENCE_NUMBER = "AT_SEQUENCE_NUMBER",
359
- LATEST = "LATEST",
360
- TRIM_HORIZON = "TRIM_HORIZON"
361
- }
377
+ export declare const ShardIteratorType: {
378
+ readonly AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER";
379
+ readonly AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER";
380
+ readonly LATEST: "LATEST";
381
+ readonly TRIM_HORIZON: "TRIM_HORIZON";
382
+ };
383
+ /**
384
+ * @public
385
+ */
386
+ export type ShardIteratorType = (typeof ShardIteratorType)[keyof typeof ShardIteratorType];
362
387
  /**
363
388
  * @public
364
389
  * <p>Represents the input of a <code>GetShardIterator</code> operation.</p>
@@ -5,10 +5,11 @@ export interface DescribeStreamInput {
5
5
  Limit?: number;
6
6
  ExclusiveStartShardId?: string;
7
7
  }
8
- export declare enum KeyType {
9
- HASH = "HASH",
10
- RANGE = "RANGE",
11
- }
8
+ export declare const KeyType: {
9
+ readonly HASH: "HASH";
10
+ readonly RANGE: "RANGE";
11
+ };
12
+ export type KeyType = (typeof KeyType)[keyof typeof KeyType];
12
13
  export interface KeySchemaElement {
13
14
  AttributeName: string | undefined;
14
15
  KeyType: KeyType | string | undefined;
@@ -22,18 +23,21 @@ export interface Shard {
22
23
  SequenceNumberRange?: SequenceNumberRange;
23
24
  ParentShardId?: string;
24
25
  }
25
- export declare enum StreamStatus {
26
- DISABLED = "DISABLED",
27
- DISABLING = "DISABLING",
28
- ENABLED = "ENABLED",
29
- ENABLING = "ENABLING",
30
- }
31
- export declare enum StreamViewType {
32
- KEYS_ONLY = "KEYS_ONLY",
33
- NEW_AND_OLD_IMAGES = "NEW_AND_OLD_IMAGES",
34
- NEW_IMAGE = "NEW_IMAGE",
35
- OLD_IMAGE = "OLD_IMAGE",
36
- }
26
+ export declare const StreamStatus: {
27
+ readonly DISABLED: "DISABLED";
28
+ readonly DISABLING: "DISABLING";
29
+ readonly ENABLED: "ENABLED";
30
+ readonly ENABLING: "ENABLING";
31
+ };
32
+ export type StreamStatus = (typeof StreamStatus)[keyof typeof StreamStatus];
33
+ export declare const StreamViewType: {
34
+ readonly KEYS_ONLY: "KEYS_ONLY";
35
+ readonly NEW_AND_OLD_IMAGES: "NEW_AND_OLD_IMAGES";
36
+ readonly NEW_IMAGE: "NEW_IMAGE";
37
+ readonly OLD_IMAGE: "OLD_IMAGE";
38
+ };
39
+ export type StreamViewType =
40
+ (typeof StreamViewType)[keyof typeof StreamViewType];
37
41
  export interface StreamDescription {
38
42
  StreamArn?: string;
39
43
  StreamLabel?: string;
@@ -73,11 +77,12 @@ export interface GetRecordsInput {
73
77
  ShardIterator: string | undefined;
74
78
  Limit?: number;
75
79
  }
76
- export declare enum OperationType {
77
- INSERT = "INSERT",
78
- MODIFY = "MODIFY",
79
- REMOVE = "REMOVE",
80
- }
80
+ export declare const OperationType: {
81
+ readonly INSERT: "INSERT";
82
+ readonly MODIFY: "MODIFY";
83
+ readonly REMOVE: "REMOVE";
84
+ };
85
+ export type OperationType = (typeof OperationType)[keyof typeof OperationType];
81
86
  export interface Identity {
82
87
  PrincipalId?: string;
83
88
  Type?: string;
@@ -96,12 +101,14 @@ export declare class TrimmedDataAccessException extends __BaseException {
96
101
  opts: __ExceptionOptionType<TrimmedDataAccessException, __BaseException>
97
102
  );
98
103
  }
99
- export declare enum ShardIteratorType {
100
- AFTER_SEQUENCE_NUMBER = "AFTER_SEQUENCE_NUMBER",
101
- AT_SEQUENCE_NUMBER = "AT_SEQUENCE_NUMBER",
102
- LATEST = "LATEST",
103
- TRIM_HORIZON = "TRIM_HORIZON",
104
- }
104
+ export declare const ShardIteratorType: {
105
+ readonly AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER";
106
+ readonly AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER";
107
+ readonly LATEST: "LATEST";
108
+ readonly TRIM_HORIZON: "TRIM_HORIZON";
109
+ };
110
+ export type ShardIteratorType =
111
+ (typeof ShardIteratorType)[keyof typeof ShardIteratorType];
105
112
  export interface GetShardIteratorInput {
106
113
  StreamArn: string | undefined;
107
114
  ShardId: string | undefined;
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.301.0",
4
+ "version": "3.306.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,42 +21,42 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.301.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.301.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.306.0",
25
+ "@aws-sdk/config-resolver": "3.306.0",
26
+ "@aws-sdk/credential-provider-node": "3.306.0",
27
+ "@aws-sdk/fetch-http-handler": "3.306.0",
28
+ "@aws-sdk/hash-node": "3.306.0",
29
+ "@aws-sdk/invalid-dependency": "3.306.0",
30
+ "@aws-sdk/middleware-content-length": "3.306.0",
31
+ "@aws-sdk/middleware-endpoint": "3.306.0",
32
+ "@aws-sdk/middleware-host-header": "3.306.0",
33
+ "@aws-sdk/middleware-logger": "3.306.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.306.0",
35
+ "@aws-sdk/middleware-retry": "3.306.0",
36
+ "@aws-sdk/middleware-serde": "3.306.0",
37
+ "@aws-sdk/middleware-signing": "3.306.0",
38
+ "@aws-sdk/middleware-stack": "3.306.0",
39
+ "@aws-sdk/middleware-user-agent": "3.306.0",
40
+ "@aws-sdk/node-config-provider": "3.306.0",
41
+ "@aws-sdk/node-http-handler": "3.306.0",
42
+ "@aws-sdk/protocol-http": "3.306.0",
43
+ "@aws-sdk/smithy-client": "3.306.0",
44
+ "@aws-sdk/types": "3.306.0",
45
+ "@aws-sdk/url-parser": "3.306.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.306.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.306.0",
51
+ "@aws-sdk/util-endpoints": "3.306.0",
52
+ "@aws-sdk/util-retry": "3.306.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.306.0",
54
+ "@aws-sdk/util-user-agent-node": "3.306.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
59
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
60
60
  "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^14.14.31",
62
62
  "concurrently": "7.0.0",