@aws-sdk/client-keyspacesstreams 3.934.0 → 3.935.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
@@ -127,11 +127,6 @@ let AccessDeniedException$1 = class AccessDeniedException extends KeyspacesStrea
127
127
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
128
128
  }
129
129
  };
130
- const OriginType = {
131
- REPLICATION: "REPLICATION",
132
- TTL: "TTL",
133
- USER: "USER",
134
- };
135
130
  let InternalServerException$1 = class InternalServerException extends KeyspacesStreamsServiceException$1 {
136
131
  name = "InternalServerException";
137
132
  $fault = "server";
@@ -168,12 +163,6 @@ let ThrottlingException$1 = class ThrottlingException extends KeyspacesStreamsSe
168
163
  Object.setPrototypeOf(this, ThrottlingException.prototype);
169
164
  }
170
165
  };
171
- const ValidationExceptionType = {
172
- ExpiredIterator: "ExpiredIterator",
173
- ExpiredNextToken: "ExpiredNextToken",
174
- InvalidFormat: "InvalidFormat",
175
- TrimmedDataAccess: "TrimmedDataAccess",
176
- };
177
166
  let ValidationException$1 = class ValidationException extends KeyspacesStreamsServiceException$1 {
178
167
  name = "ValidationException";
179
168
  $fault = "client";
@@ -188,27 +177,6 @@ let ValidationException$1 = class ValidationException extends KeyspacesStreamsSe
188
177
  this.errorCode = opts.errorCode;
189
178
  }
190
179
  };
191
- const ShardIteratorType = {
192
- AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER",
193
- AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER",
194
- LATEST: "LATEST",
195
- TRIM_HORIZON: "TRIM_HORIZON",
196
- };
197
- const ShardFilterType = {
198
- CHILD_SHARDS: "CHILD_SHARDS",
199
- };
200
- const StreamStatus = {
201
- DISABLED: "DISABLED",
202
- DISABLING: "DISABLING",
203
- ENABLED: "ENABLED",
204
- ENABLING: "ENABLING",
205
- };
206
- const StreamViewType = {
207
- KEYS_ONLY: "KEYS_ONLY",
208
- NEW_AND_OLD_IMAGES: "NEW_AND_OLD_IMAGES",
209
- NEW_IMAGE: "NEW_IMAGE",
210
- OLD_IMAGE: "OLD_IMAGE",
211
- };
212
180
 
213
181
  const _ADE = "AccessDeniedException";
214
182
  const _GR = "GetRecords";
@@ -585,6 +553,39 @@ const paginateGetStream = core.createPaginator(KeyspacesStreamsClient, GetStream
585
553
 
586
554
  const paginateListStreams = core.createPaginator(KeyspacesStreamsClient, ListStreamsCommand, "nextToken", "nextToken", "maxResults");
587
555
 
556
+ const OriginType = {
557
+ REPLICATION: "REPLICATION",
558
+ TTL: "TTL",
559
+ USER: "USER",
560
+ };
561
+ const ValidationExceptionType = {
562
+ ExpiredIterator: "ExpiredIterator",
563
+ ExpiredNextToken: "ExpiredNextToken",
564
+ InvalidFormat: "InvalidFormat",
565
+ TrimmedDataAccess: "TrimmedDataAccess",
566
+ };
567
+ const ShardIteratorType = {
568
+ AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER",
569
+ AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER",
570
+ LATEST: "LATEST",
571
+ TRIM_HORIZON: "TRIM_HORIZON",
572
+ };
573
+ const ShardFilterType = {
574
+ CHILD_SHARDS: "CHILD_SHARDS",
575
+ };
576
+ const StreamStatus = {
577
+ DISABLED: "DISABLED",
578
+ DISABLING: "DISABLING",
579
+ ENABLED: "ENABLED",
580
+ ENABLING: "ENABLING",
581
+ };
582
+ const StreamViewType = {
583
+ KEYS_ONLY: "KEYS_ONLY",
584
+ NEW_AND_OLD_IMAGES: "NEW_AND_OLD_IMAGES",
585
+ NEW_IMAGE: "NEW_IMAGE",
586
+ OLD_IMAGE: "OLD_IMAGE",
587
+ };
588
+
588
589
  Object.defineProperty(exports, "$Command", {
589
590
  enumerable: true,
590
591
  get: function () { return smithyClient.Command; }
package/dist-es/index.js CHANGED
@@ -2,5 +2,6 @@ export * from "./KeyspacesStreamsClient";
2
2
  export * from "./KeyspacesStreams";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
- export * from "./models";
5
+ export * from "./models/enums";
6
+ export * from "./models/errors";
6
7
  export { KeyspacesStreamsServiceException } from "./models/KeyspacesStreamsServiceException";
@@ -0,0 +1,32 @@
1
+ export const OriginType = {
2
+ REPLICATION: "REPLICATION",
3
+ TTL: "TTL",
4
+ USER: "USER",
5
+ };
6
+ export const ValidationExceptionType = {
7
+ ExpiredIterator: "ExpiredIterator",
8
+ ExpiredNextToken: "ExpiredNextToken",
9
+ InvalidFormat: "InvalidFormat",
10
+ TrimmedDataAccess: "TrimmedDataAccess",
11
+ };
12
+ export const ShardIteratorType = {
13
+ AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER",
14
+ AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER",
15
+ LATEST: "LATEST",
16
+ TRIM_HORIZON: "TRIM_HORIZON",
17
+ };
18
+ export const ShardFilterType = {
19
+ CHILD_SHARDS: "CHILD_SHARDS",
20
+ };
21
+ export const StreamStatus = {
22
+ DISABLED: "DISABLED",
23
+ DISABLING: "DISABLING",
24
+ ENABLED: "ENABLED",
25
+ ENABLING: "ENABLING",
26
+ };
27
+ export const StreamViewType = {
28
+ KEYS_ONLY: "KEYS_ONLY",
29
+ NEW_AND_OLD_IMAGES: "NEW_AND_OLD_IMAGES",
30
+ NEW_IMAGE: "NEW_IMAGE",
31
+ OLD_IMAGE: "OLD_IMAGE",
32
+ };
@@ -0,0 +1,63 @@
1
+ import { KeyspacesStreamsServiceException as __BaseException } from "./KeyspacesStreamsServiceException";
2
+ export class AccessDeniedException extends __BaseException {
3
+ name = "AccessDeniedException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "AccessDeniedException",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
+ }
13
+ }
14
+ export class InternalServerException extends __BaseException {
15
+ name = "InternalServerException";
16
+ $fault = "server";
17
+ constructor(opts) {
18
+ super({
19
+ name: "InternalServerException",
20
+ $fault: "server",
21
+ ...opts,
22
+ });
23
+ Object.setPrototypeOf(this, InternalServerException.prototype);
24
+ }
25
+ }
26
+ export class ResourceNotFoundException extends __BaseException {
27
+ name = "ResourceNotFoundException";
28
+ $fault = "client";
29
+ constructor(opts) {
30
+ super({
31
+ name: "ResourceNotFoundException",
32
+ $fault: "client",
33
+ ...opts,
34
+ });
35
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
36
+ }
37
+ }
38
+ export class ThrottlingException extends __BaseException {
39
+ name = "ThrottlingException";
40
+ $fault = "client";
41
+ constructor(opts) {
42
+ super({
43
+ name: "ThrottlingException",
44
+ $fault: "client",
45
+ ...opts,
46
+ });
47
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
48
+ }
49
+ }
50
+ export class ValidationException extends __BaseException {
51
+ name = "ValidationException";
52
+ $fault = "client";
53
+ errorCode;
54
+ constructor(opts) {
55
+ super({
56
+ name: "ValidationException",
57
+ $fault: "client",
58
+ ...opts,
59
+ });
60
+ Object.setPrototypeOf(this, ValidationException.prototype);
61
+ this.errorCode = opts.errorCode;
62
+ }
63
+ }
@@ -1,95 +1 @@
1
- import { KeyspacesStreamsServiceException as __BaseException } from "./KeyspacesStreamsServiceException";
2
- export class AccessDeniedException extends __BaseException {
3
- name = "AccessDeniedException";
4
- $fault = "client";
5
- constructor(opts) {
6
- super({
7
- name: "AccessDeniedException",
8
- $fault: "client",
9
- ...opts,
10
- });
11
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
- }
13
- }
14
- export const OriginType = {
15
- REPLICATION: "REPLICATION",
16
- TTL: "TTL",
17
- USER: "USER",
18
- };
19
- export class InternalServerException extends __BaseException {
20
- name = "InternalServerException";
21
- $fault = "server";
22
- constructor(opts) {
23
- super({
24
- name: "InternalServerException",
25
- $fault: "server",
26
- ...opts,
27
- });
28
- Object.setPrototypeOf(this, InternalServerException.prototype);
29
- }
30
- }
31
- export class ResourceNotFoundException extends __BaseException {
32
- name = "ResourceNotFoundException";
33
- $fault = "client";
34
- constructor(opts) {
35
- super({
36
- name: "ResourceNotFoundException",
37
- $fault: "client",
38
- ...opts,
39
- });
40
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
41
- }
42
- }
43
- export class ThrottlingException extends __BaseException {
44
- name = "ThrottlingException";
45
- $fault = "client";
46
- constructor(opts) {
47
- super({
48
- name: "ThrottlingException",
49
- $fault: "client",
50
- ...opts,
51
- });
52
- Object.setPrototypeOf(this, ThrottlingException.prototype);
53
- }
54
- }
55
- export const ValidationExceptionType = {
56
- ExpiredIterator: "ExpiredIterator",
57
- ExpiredNextToken: "ExpiredNextToken",
58
- InvalidFormat: "InvalidFormat",
59
- TrimmedDataAccess: "TrimmedDataAccess",
60
- };
61
- export class ValidationException extends __BaseException {
62
- name = "ValidationException";
63
- $fault = "client";
64
- errorCode;
65
- constructor(opts) {
66
- super({
67
- name: "ValidationException",
68
- $fault: "client",
69
- ...opts,
70
- });
71
- Object.setPrototypeOf(this, ValidationException.prototype);
72
- this.errorCode = opts.errorCode;
73
- }
74
- }
75
- export const ShardIteratorType = {
76
- AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER",
77
- AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER",
78
- LATEST: "LATEST",
79
- TRIM_HORIZON: "TRIM_HORIZON",
80
- };
81
- export const ShardFilterType = {
82
- CHILD_SHARDS: "CHILD_SHARDS",
83
- };
84
- export const StreamStatus = {
85
- DISABLED: "DISABLED",
86
- DISABLING: "DISABLING",
87
- ENABLED: "ENABLED",
88
- ENABLING: "ENABLING",
89
- };
90
- export const StreamViewType = {
91
- KEYS_ONLY: "KEYS_ONLY",
92
- NEW_AND_OLD_IMAGES: "NEW_AND_OLD_IMAGES",
93
- NEW_IMAGE: "NEW_IMAGE",
94
- OLD_IMAGE: "OLD_IMAGE",
95
- };
1
+ export {};
@@ -106,7 +106,7 @@ const _vTa = "varintT";
106
106
  const _wT = "writeTime";
107
107
  const n0 = "com.amazonaws.keyspacesstreams";
108
108
  import { TypeRegistry } from "@smithy/core/schema";
109
- import { AccessDeniedException as __AccessDeniedException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/index";
109
+ import { AccessDeniedException as __AccessDeniedException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/errors";
110
110
  import { KeyspacesStreamsServiceException as __KeyspacesStreamsServiceException } from "../models/KeyspacesStreamsServiceException";
111
111
  export var AccessDeniedException = [
112
112
  -3,
@@ -10,5 +10,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
10
10
  export type { KeyspacesStreamsExtensionConfiguration } from "./extensionConfiguration";
11
11
  export * from "./commands";
12
12
  export * from "./pagination";
13
- export * from "./models";
13
+ export * from "./models/enums";
14
+ export * from "./models/errors";
15
+ export type * from "./models/models_0";
14
16
  export { KeyspacesStreamsServiceException } from "./models/KeyspacesStreamsServiceException";
@@ -0,0 +1,80 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const OriginType: {
6
+ readonly REPLICATION: "REPLICATION";
7
+ readonly TTL: "TTL";
8
+ readonly USER: "USER";
9
+ };
10
+ /**
11
+ * @public
12
+ */
13
+ export type OriginType = (typeof OriginType)[keyof typeof OriginType];
14
+ /**
15
+ * @public
16
+ * @enum
17
+ */
18
+ export declare const ValidationExceptionType: {
19
+ readonly ExpiredIterator: "ExpiredIterator";
20
+ readonly ExpiredNextToken: "ExpiredNextToken";
21
+ readonly InvalidFormat: "InvalidFormat";
22
+ readonly TrimmedDataAccess: "TrimmedDataAccess";
23
+ };
24
+ /**
25
+ * @public
26
+ */
27
+ export type ValidationExceptionType = (typeof ValidationExceptionType)[keyof typeof ValidationExceptionType];
28
+ /**
29
+ * @public
30
+ * @enum
31
+ */
32
+ export declare const ShardIteratorType: {
33
+ readonly AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER";
34
+ readonly AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER";
35
+ readonly LATEST: "LATEST";
36
+ readonly TRIM_HORIZON: "TRIM_HORIZON";
37
+ };
38
+ /**
39
+ * @public
40
+ */
41
+ export type ShardIteratorType = (typeof ShardIteratorType)[keyof typeof ShardIteratorType];
42
+ /**
43
+ * @public
44
+ * @enum
45
+ */
46
+ export declare const ShardFilterType: {
47
+ readonly CHILD_SHARDS: "CHILD_SHARDS";
48
+ };
49
+ /**
50
+ * @public
51
+ */
52
+ export type ShardFilterType = (typeof ShardFilterType)[keyof typeof ShardFilterType];
53
+ /**
54
+ * @public
55
+ * @enum
56
+ */
57
+ export declare const StreamStatus: {
58
+ readonly DISABLED: "DISABLED";
59
+ readonly DISABLING: "DISABLING";
60
+ readonly ENABLED: "ENABLED";
61
+ readonly ENABLING: "ENABLING";
62
+ };
63
+ /**
64
+ * @public
65
+ */
66
+ export type StreamStatus = (typeof StreamStatus)[keyof typeof StreamStatus];
67
+ /**
68
+ * @public
69
+ * @enum
70
+ */
71
+ export declare const StreamViewType: {
72
+ readonly KEYS_ONLY: "KEYS_ONLY";
73
+ readonly NEW_AND_OLD_IMAGES: "NEW_AND_OLD_IMAGES";
74
+ readonly NEW_IMAGE: "NEW_IMAGE";
75
+ readonly OLD_IMAGE: "OLD_IMAGE";
76
+ };
77
+ /**
78
+ * @public
79
+ */
80
+ export type StreamViewType = (typeof StreamViewType)[keyof typeof StreamViewType];
@@ -0,0 +1,68 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { ValidationExceptionType } from "./enums";
3
+ import { KeyspacesStreamsServiceException as __BaseException } from "./KeyspacesStreamsServiceException";
4
+ /**
5
+ * <p>You don't have sufficient access permissions to perform this operation. </p> <p>This exception occurs when your IAM user or role lacks the required permissions to access the Amazon Keyspaces resource or perform the requested action. Check your IAM policies and ensure they grant the necessary permissions.</p>
6
+ * @public
7
+ */
8
+ export declare class AccessDeniedException extends __BaseException {
9
+ readonly name: "AccessDeniedException";
10
+ readonly $fault: "client";
11
+ /**
12
+ * @internal
13
+ */
14
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
15
+ }
16
+ /**
17
+ * <p>The Amazon Keyspaces service encountered an unexpected error while processing the request. </p> <p>This internal server error is not related to your request parameters. Retry your request after a brief delay. If the issue persists, contact Amazon Web Services Support with details of your request to help identify and resolve the problem.</p>
18
+ * @public
19
+ */
20
+ export declare class InternalServerException extends __BaseException {
21
+ readonly name: "InternalServerException";
22
+ readonly $fault: "server";
23
+ /**
24
+ * @internal
25
+ */
26
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
27
+ }
28
+ /**
29
+ * <p>The requested resource doesn't exist or could not be found. </p> <p>This exception occurs when you attempt to access a keyspace, table, stream, or other Amazon Keyspaces resource that doesn't exist or that has been deleted. Verify that the resource identifier is correct and that the resource exists in your account.</p>
30
+ * @public
31
+ */
32
+ export declare class ResourceNotFoundException extends __BaseException {
33
+ readonly name: "ResourceNotFoundException";
34
+ readonly $fault: "client";
35
+ /**
36
+ * @internal
37
+ */
38
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
39
+ }
40
+ /**
41
+ * <p>The request rate is too high and exceeds the service's throughput limits. </p> <p>This exception occurs when you send too many requests in a short period of time. Implement exponential backoff in your retry strategy to handle this exception. Reducing your request frequency or distributing requests more evenly can help avoid throughput exceptions.</p>
42
+ * @public
43
+ */
44
+ export declare class ThrottlingException extends __BaseException {
45
+ readonly name: "ThrottlingException";
46
+ readonly $fault: "client";
47
+ /**
48
+ * @internal
49
+ */
50
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
51
+ }
52
+ /**
53
+ * <p>The request validation failed because one or more input parameters failed validation. </p> <p>This exception occurs when there are syntax errors in the request, field constraints are violated, or required parameters are missing. To help you fix the issue, the exception message provides details about which parameter failed and why.</p>
54
+ * @public
55
+ */
56
+ export declare class ValidationException extends __BaseException {
57
+ readonly name: "ValidationException";
58
+ readonly $fault: "client";
59
+ /**
60
+ * <p>An error occurred validating your request. See the error message for details.</p>
61
+ * @public
62
+ */
63
+ errorCode?: ValidationExceptionType | undefined;
64
+ /**
65
+ * @internal
66
+ */
67
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
68
+ }
@@ -1,17 +1,4 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { KeyspacesStreamsServiceException as __BaseException } from "./KeyspacesStreamsServiceException";
3
- /**
4
- * <p>You don't have sufficient access permissions to perform this operation. </p> <p>This exception occurs when your IAM user or role lacks the required permissions to access the Amazon Keyspaces resource or perform the requested action. Check your IAM policies and ensure they grant the necessary permissions.</p>
5
- * @public
6
- */
7
- export declare class AccessDeniedException extends __BaseException {
8
- readonly name: "AccessDeniedException";
9
- readonly $fault: "client";
10
- /**
11
- * @internal
12
- */
13
- constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
14
- }
1
+ import { OriginType, ShardFilterType, ShardIteratorType, StreamStatus, StreamViewType } from "./enums";
15
2
  /**
16
3
  * @public
17
4
  */
@@ -43,100 +30,6 @@ export interface KeyspacesMetadata {
43
30
  */
44
31
  writeTime?: string | undefined;
45
32
  }
46
- /**
47
- * @public
48
- * @enum
49
- */
50
- export declare const OriginType: {
51
- readonly REPLICATION: "REPLICATION";
52
- readonly TTL: "TTL";
53
- readonly USER: "USER";
54
- };
55
- /**
56
- * @public
57
- */
58
- export type OriginType = (typeof OriginType)[keyof typeof OriginType];
59
- /**
60
- * <p>The Amazon Keyspaces service encountered an unexpected error while processing the request. </p> <p>This internal server error is not related to your request parameters. Retry your request after a brief delay. If the issue persists, contact Amazon Web Services Support with details of your request to help identify and resolve the problem.</p>
61
- * @public
62
- */
63
- export declare class InternalServerException extends __BaseException {
64
- readonly name: "InternalServerException";
65
- readonly $fault: "server";
66
- /**
67
- * @internal
68
- */
69
- constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
70
- }
71
- /**
72
- * <p>The requested resource doesn't exist or could not be found. </p> <p>This exception occurs when you attempt to access a keyspace, table, stream, or other Amazon Keyspaces resource that doesn't exist or that has been deleted. Verify that the resource identifier is correct and that the resource exists in your account.</p>
73
- * @public
74
- */
75
- export declare class ResourceNotFoundException extends __BaseException {
76
- readonly name: "ResourceNotFoundException";
77
- readonly $fault: "client";
78
- /**
79
- * @internal
80
- */
81
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
82
- }
83
- /**
84
- * <p>The request rate is too high and exceeds the service's throughput limits. </p> <p>This exception occurs when you send too many requests in a short period of time. Implement exponential backoff in your retry strategy to handle this exception. Reducing your request frequency or distributing requests more evenly can help avoid throughput exceptions.</p>
85
- * @public
86
- */
87
- export declare class ThrottlingException extends __BaseException {
88
- readonly name: "ThrottlingException";
89
- readonly $fault: "client";
90
- /**
91
- * @internal
92
- */
93
- constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
94
- }
95
- /**
96
- * @public
97
- * @enum
98
- */
99
- export declare const ValidationExceptionType: {
100
- readonly ExpiredIterator: "ExpiredIterator";
101
- readonly ExpiredNextToken: "ExpiredNextToken";
102
- readonly InvalidFormat: "InvalidFormat";
103
- readonly TrimmedDataAccess: "TrimmedDataAccess";
104
- };
105
- /**
106
- * @public
107
- */
108
- export type ValidationExceptionType = (typeof ValidationExceptionType)[keyof typeof ValidationExceptionType];
109
- /**
110
- * <p>The request validation failed because one or more input parameters failed validation. </p> <p>This exception occurs when there are syntax errors in the request, field constraints are violated, or required parameters are missing. To help you fix the issue, the exception message provides details about which parameter failed and why.</p>
111
- * @public
112
- */
113
- export declare class ValidationException extends __BaseException {
114
- readonly name: "ValidationException";
115
- readonly $fault: "client";
116
- /**
117
- * <p>An error occurred validating your request. See the error message for details.</p>
118
- * @public
119
- */
120
- errorCode?: ValidationExceptionType | undefined;
121
- /**
122
- * @internal
123
- */
124
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
125
- }
126
- /**
127
- * @public
128
- * @enum
129
- */
130
- export declare const ShardIteratorType: {
131
- readonly AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER";
132
- readonly AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER";
133
- readonly LATEST: "LATEST";
134
- readonly TRIM_HORIZON: "TRIM_HORIZON";
135
- };
136
- /**
137
- * @public
138
- */
139
- export type ShardIteratorType = (typeof ShardIteratorType)[keyof typeof ShardIteratorType];
140
33
  /**
141
34
  * @public
142
35
  */
@@ -172,17 +65,6 @@ export interface GetShardIteratorOutput {
172
65
  */
173
66
  shardIterator?: string | undefined;
174
67
  }
175
- /**
176
- * @public
177
- * @enum
178
- */
179
- export declare const ShardFilterType: {
180
- readonly CHILD_SHARDS: "CHILD_SHARDS";
181
- };
182
- /**
183
- * @public
184
- */
185
- export type ShardFilterType = (typeof ShardFilterType)[keyof typeof ShardFilterType];
186
68
  /**
187
69
  * <p>A filter used to limit the shards returned by a <code>GetStream</code> operation.</p>
188
70
  * @public
@@ -261,34 +143,6 @@ export interface Shard {
261
143
  */
262
144
  parentShardIds?: string[] | undefined;
263
145
  }
264
- /**
265
- * @public
266
- * @enum
267
- */
268
- export declare const StreamStatus: {
269
- readonly DISABLED: "DISABLED";
270
- readonly DISABLING: "DISABLING";
271
- readonly ENABLED: "ENABLED";
272
- readonly ENABLING: "ENABLING";
273
- };
274
- /**
275
- * @public
276
- */
277
- export type StreamStatus = (typeof StreamStatus)[keyof typeof StreamStatus];
278
- /**
279
- * @public
280
- * @enum
281
- */
282
- export declare const StreamViewType: {
283
- readonly KEYS_ONLY: "KEYS_ONLY";
284
- readonly NEW_AND_OLD_IMAGES: "NEW_AND_OLD_IMAGES";
285
- readonly NEW_IMAGE: "NEW_IMAGE";
286
- readonly OLD_IMAGE: "OLD_IMAGE";
287
- };
288
- /**
289
- * @public
290
- */
291
- export type StreamViewType = (typeof StreamViewType)[keyof typeof StreamViewType];
292
146
  /**
293
147
  * @public
294
148
  */
@@ -5,5 +5,7 @@ export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { KeyspacesStreamsExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./pagination";
8
- export * from "./models";
8
+ export * from "./models/enums";
9
+ export * from "./models/errors";
10
+ export * from "./models/models_0";
9
11
  export { KeyspacesStreamsServiceException } from "./models/KeyspacesStreamsServiceException";
@@ -0,0 +1,42 @@
1
+ export declare const OriginType: {
2
+ readonly REPLICATION: "REPLICATION";
3
+ readonly TTL: "TTL";
4
+ readonly USER: "USER";
5
+ };
6
+ export type OriginType = (typeof OriginType)[keyof typeof OriginType];
7
+ export declare const ValidationExceptionType: {
8
+ readonly ExpiredIterator: "ExpiredIterator";
9
+ readonly ExpiredNextToken: "ExpiredNextToken";
10
+ readonly InvalidFormat: "InvalidFormat";
11
+ readonly TrimmedDataAccess: "TrimmedDataAccess";
12
+ };
13
+ export type ValidationExceptionType =
14
+ (typeof ValidationExceptionType)[keyof typeof ValidationExceptionType];
15
+ export declare const ShardIteratorType: {
16
+ readonly AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER";
17
+ readonly AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER";
18
+ readonly LATEST: "LATEST";
19
+ readonly TRIM_HORIZON: "TRIM_HORIZON";
20
+ };
21
+ export type ShardIteratorType =
22
+ (typeof ShardIteratorType)[keyof typeof ShardIteratorType];
23
+ export declare const ShardFilterType: {
24
+ readonly CHILD_SHARDS: "CHILD_SHARDS";
25
+ };
26
+ export type ShardFilterType =
27
+ (typeof ShardFilterType)[keyof typeof ShardFilterType];
28
+ export declare const StreamStatus: {
29
+ readonly DISABLED: "DISABLED";
30
+ readonly DISABLING: "DISABLING";
31
+ readonly ENABLED: "ENABLED";
32
+ readonly ENABLING: "ENABLING";
33
+ };
34
+ export type StreamStatus = (typeof StreamStatus)[keyof typeof StreamStatus];
35
+ export declare const StreamViewType: {
36
+ readonly KEYS_ONLY: "KEYS_ONLY";
37
+ readonly NEW_AND_OLD_IMAGES: "NEW_AND_OLD_IMAGES";
38
+ readonly NEW_IMAGE: "NEW_IMAGE";
39
+ readonly OLD_IMAGE: "OLD_IMAGE";
40
+ };
41
+ export type StreamViewType =
42
+ (typeof StreamViewType)[keyof typeof StreamViewType];
@@ -0,0 +1,39 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { ValidationExceptionType } from "./enums";
3
+ import { KeyspacesStreamsServiceException as __BaseException } from "./KeyspacesStreamsServiceException";
4
+ export declare class AccessDeniedException extends __BaseException {
5
+ readonly name: "AccessDeniedException";
6
+ readonly $fault: "client";
7
+ constructor(
8
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
9
+ );
10
+ }
11
+ export declare class InternalServerException extends __BaseException {
12
+ readonly name: "InternalServerException";
13
+ readonly $fault: "server";
14
+ constructor(
15
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
16
+ );
17
+ }
18
+ export declare class ResourceNotFoundException extends __BaseException {
19
+ readonly name: "ResourceNotFoundException";
20
+ readonly $fault: "client";
21
+ constructor(
22
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
23
+ );
24
+ }
25
+ export declare class ThrottlingException extends __BaseException {
26
+ readonly name: "ThrottlingException";
27
+ readonly $fault: "client";
28
+ constructor(
29
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
30
+ );
31
+ }
32
+ export declare class ValidationException extends __BaseException {
33
+ readonly name: "ValidationException";
34
+ readonly $fault: "client";
35
+ errorCode?: ValidationExceptionType | undefined;
36
+ constructor(
37
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
38
+ );
39
+ }
@@ -1,12 +1,10 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { KeyspacesStreamsServiceException as __BaseException } from "./KeyspacesStreamsServiceException";
3
- export declare class AccessDeniedException extends __BaseException {
4
- readonly name: "AccessDeniedException";
5
- readonly $fault: "client";
6
- constructor(
7
- opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
8
- );
9
- }
1
+ import {
2
+ OriginType,
3
+ ShardFilterType,
4
+ ShardIteratorType,
5
+ StreamStatus,
6
+ StreamViewType,
7
+ } from "./enums";
10
8
  export interface GetRecordsInput {
11
9
  shardIterator: string | undefined;
12
10
  maxResults?: number | undefined;
@@ -15,57 +13,6 @@ export interface KeyspacesMetadata {
15
13
  expirationTime?: string | undefined;
16
14
  writeTime?: string | undefined;
17
15
  }
18
- export declare const OriginType: {
19
- readonly REPLICATION: "REPLICATION";
20
- readonly TTL: "TTL";
21
- readonly USER: "USER";
22
- };
23
- export type OriginType = (typeof OriginType)[keyof typeof OriginType];
24
- export declare class InternalServerException extends __BaseException {
25
- readonly name: "InternalServerException";
26
- readonly $fault: "server";
27
- constructor(
28
- opts: __ExceptionOptionType<InternalServerException, __BaseException>
29
- );
30
- }
31
- export declare class ResourceNotFoundException extends __BaseException {
32
- readonly name: "ResourceNotFoundException";
33
- readonly $fault: "client";
34
- constructor(
35
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
36
- );
37
- }
38
- export declare class ThrottlingException extends __BaseException {
39
- readonly name: "ThrottlingException";
40
- readonly $fault: "client";
41
- constructor(
42
- opts: __ExceptionOptionType<ThrottlingException, __BaseException>
43
- );
44
- }
45
- export declare const ValidationExceptionType: {
46
- readonly ExpiredIterator: "ExpiredIterator";
47
- readonly ExpiredNextToken: "ExpiredNextToken";
48
- readonly InvalidFormat: "InvalidFormat";
49
- readonly TrimmedDataAccess: "TrimmedDataAccess";
50
- };
51
- export type ValidationExceptionType =
52
- (typeof ValidationExceptionType)[keyof typeof ValidationExceptionType];
53
- export declare class ValidationException extends __BaseException {
54
- readonly name: "ValidationException";
55
- readonly $fault: "client";
56
- errorCode?: ValidationExceptionType | undefined;
57
- constructor(
58
- opts: __ExceptionOptionType<ValidationException, __BaseException>
59
- );
60
- }
61
- export declare const ShardIteratorType: {
62
- readonly AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER";
63
- readonly AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER";
64
- readonly LATEST: "LATEST";
65
- readonly TRIM_HORIZON: "TRIM_HORIZON";
66
- };
67
- export type ShardIteratorType =
68
- (typeof ShardIteratorType)[keyof typeof ShardIteratorType];
69
16
  export interface GetShardIteratorInput {
70
17
  streamArn: string | undefined;
71
18
  shardId: string | undefined;
@@ -75,11 +22,6 @@ export interface GetShardIteratorInput {
75
22
  export interface GetShardIteratorOutput {
76
23
  shardIterator?: string | undefined;
77
24
  }
78
- export declare const ShardFilterType: {
79
- readonly CHILD_SHARDS: "CHILD_SHARDS";
80
- };
81
- export type ShardFilterType =
82
- (typeof ShardFilterType)[keyof typeof ShardFilterType];
83
25
  export interface ShardFilter {
84
26
  type?: ShardFilterType | undefined;
85
27
  shardId?: string | undefined;
@@ -99,21 +41,6 @@ export interface Shard {
99
41
  sequenceNumberRange?: SequenceNumberRange | undefined;
100
42
  parentShardIds?: string[] | undefined;
101
43
  }
102
- export declare const StreamStatus: {
103
- readonly DISABLED: "DISABLED";
104
- readonly DISABLING: "DISABLING";
105
- readonly ENABLED: "ENABLED";
106
- readonly ENABLING: "ENABLING";
107
- };
108
- export type StreamStatus = (typeof StreamStatus)[keyof typeof StreamStatus];
109
- export declare const StreamViewType: {
110
- readonly KEYS_ONLY: "KEYS_ONLY";
111
- readonly NEW_AND_OLD_IMAGES: "NEW_AND_OLD_IMAGES";
112
- readonly NEW_IMAGE: "NEW_IMAGE";
113
- readonly OLD_IMAGE: "OLD_IMAGE";
114
- };
115
- export type StreamViewType =
116
- (typeof StreamViewType)[keyof typeof StreamViewType];
117
44
  export interface GetStreamOutput {
118
45
  streamArn: string | undefined;
119
46
  streamLabel: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-keyspacesstreams",
3
3
  "description": "AWS SDK for JavaScript Keyspacesstreams Client for Node.js, Browser and React Native",
4
- "version": "3.934.0",
4
+ "version": "3.935.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-keyspacesstreams",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.934.0",
24
- "@aws-sdk/credential-provider-node": "3.934.0",
23
+ "@aws-sdk/core": "3.935.0",
24
+ "@aws-sdk/credential-provider-node": "3.935.0",
25
25
  "@aws-sdk/middleware-host-header": "3.930.0",
26
26
  "@aws-sdk/middleware-logger": "3.930.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.933.0",
28
- "@aws-sdk/middleware-user-agent": "3.934.0",
28
+ "@aws-sdk/middleware-user-agent": "3.935.0",
29
29
  "@aws-sdk/region-config-resolver": "3.930.0",
30
30
  "@aws-sdk/types": "3.930.0",
31
31
  "@aws-sdk/util-endpoints": "3.930.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.930.0",
33
- "@aws-sdk/util-user-agent-node": "3.934.0",
33
+ "@aws-sdk/util-user-agent-node": "3.935.0",
34
34
  "@smithy/config-resolver": "^4.4.3",
35
- "@smithy/core": "^3.18.2",
35
+ "@smithy/core": "^3.18.5",
36
36
  "@smithy/fetch-http-handler": "^5.3.6",
37
37
  "@smithy/hash-node": "^4.2.5",
38
38
  "@smithy/invalid-dependency": "^4.2.5",
39
39
  "@smithy/middleware-content-length": "^4.2.5",
40
- "@smithy/middleware-endpoint": "^4.3.9",
41
- "@smithy/middleware-retry": "^4.4.9",
42
- "@smithy/middleware-serde": "^4.2.5",
40
+ "@smithy/middleware-endpoint": "^4.3.12",
41
+ "@smithy/middleware-retry": "^4.4.12",
42
+ "@smithy/middleware-serde": "^4.2.6",
43
43
  "@smithy/middleware-stack": "^4.2.5",
44
44
  "@smithy/node-config-provider": "^4.3.5",
45
45
  "@smithy/node-http-handler": "^4.4.5",
46
46
  "@smithy/protocol-http": "^5.3.5",
47
- "@smithy/smithy-client": "^4.9.5",
47
+ "@smithy/smithy-client": "^4.9.8",
48
48
  "@smithy/types": "^4.9.0",
49
49
  "@smithy/url-parser": "^4.2.5",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.8",
54
- "@smithy/util-defaults-mode-node": "^4.2.11",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.11",
54
+ "@smithy/util-defaults-mode-node": "^4.2.14",
55
55
  "@smithy/util-endpoints": "^3.2.5",
56
56
  "@smithy/util-middleware": "^4.2.5",
57
57
  "@smithy/util-retry": "^4.2.5",
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";