@aws-sdk/client-keyspacesstreams 3.901.0 → 3.907.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist-cjs/index.js +723 -826
  2. package/package.json +6 -6
package/dist-cjs/index.js CHANGED
@@ -1,854 +1,751 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- AccessDeniedException: () => AccessDeniedException,
25
- GetRecordsCommand: () => GetRecordsCommand,
26
- GetShardIteratorCommand: () => GetShardIteratorCommand,
27
- GetStreamCommand: () => GetStreamCommand,
28
- InternalServerException: () => InternalServerException,
29
- KeyspacesCellValue: () => KeyspacesCellValue,
30
- KeyspacesStreams: () => KeyspacesStreams,
31
- KeyspacesStreamsClient: () => KeyspacesStreamsClient,
32
- KeyspacesStreamsServiceException: () => KeyspacesStreamsServiceException,
33
- ListStreamsCommand: () => ListStreamsCommand,
34
- OriginType: () => OriginType,
35
- ResourceNotFoundException: () => ResourceNotFoundException,
36
- ShardFilterType: () => ShardFilterType,
37
- ShardIteratorType: () => ShardIteratorType,
38
- StreamStatus: () => StreamStatus,
39
- StreamViewType: () => StreamViewType,
40
- ThrottlingException: () => ThrottlingException,
41
- ValidationException: () => ValidationException,
42
- ValidationExceptionType: () => ValidationExceptionType,
43
- __Client: () => import_smithy_client.Client,
44
- paginateGetStream: () => paginateGetStream,
45
- paginateListStreams: () => paginateListStreams
46
- });
47
- module.exports = __toCommonJS(index_exports);
48
-
49
- // src/KeyspacesStreamsClient.ts
50
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
51
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
52
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
53
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
54
- var import_config_resolver = require("@smithy/config-resolver");
55
- var import_core = require("@smithy/core");
56
- var import_middleware_content_length = require("@smithy/middleware-content-length");
57
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
58
- var import_middleware_retry = require("@smithy/middleware-retry");
59
-
60
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
61
-
62
- // src/endpoint/EndpointParameters.ts
63
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
64
- return Object.assign(options, {
65
- useFipsEndpoint: options.useFipsEndpoint ?? false,
66
- defaultSigningName: "cassandra"
67
- });
68
- }, "resolveClientEndpointParameters");
69
- var commonParams = {
70
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
71
- Endpoint: { type: "builtInParams", name: "endpoint" },
72
- Region: { type: "builtInParams", name: "region" }
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var middlewareContentLength = require('@smithy/middleware-content-length');
10
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
+ var middlewareRetry = require('@smithy/middleware-retry');
12
+ var smithyClient = require('@smithy/smithy-client');
13
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
+ var runtimeConfig = require('./runtimeConfig');
15
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
+ var protocolHttp = require('@smithy/protocol-http');
17
+ var middlewareSerde = require('@smithy/middleware-serde');
18
+ var core$1 = require('@aws-sdk/core');
19
+
20
+ const resolveClientEndpointParameters = (options) => {
21
+ return Object.assign(options, {
22
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
23
+ defaultSigningName: "cassandra",
24
+ });
73
25
  };
74
-
75
- // src/KeyspacesStreamsClient.ts
76
- var import_runtimeConfig = require("././runtimeConfig");
77
-
78
- // src/runtimeExtensions.ts
79
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
80
- var import_protocol_http = require("@smithy/protocol-http");
81
- var import_smithy_client = require("@smithy/smithy-client");
82
-
83
- // src/auth/httpAuthExtensionConfiguration.ts
84
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
85
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
86
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
87
- let _credentials = runtimeConfig.credentials;
88
- return {
89
- setHttpAuthScheme(httpAuthScheme) {
90
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
91
- if (index === -1) {
92
- _httpAuthSchemes.push(httpAuthScheme);
93
- } else {
94
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
95
- }
96
- },
97
- httpAuthSchemes() {
98
- return _httpAuthSchemes;
99
- },
100
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
101
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
102
- },
103
- httpAuthSchemeProvider() {
104
- return _httpAuthSchemeProvider;
105
- },
106
- setCredentials(credentials) {
107
- _credentials = credentials;
108
- },
109
- credentials() {
110
- return _credentials;
111
- }
112
- };
113
- }, "getHttpAuthExtensionConfiguration");
114
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
115
- return {
116
- httpAuthSchemes: config.httpAuthSchemes(),
117
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
118
- credentials: config.credentials()
119
- };
120
- }, "resolveHttpAuthRuntimeConfig");
121
-
122
- // src/runtimeExtensions.ts
123
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
124
- const extensionConfiguration = Object.assign(
125
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
126
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
127
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
128
- getHttpAuthExtensionConfiguration(runtimeConfig)
129
- );
130
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
131
- return Object.assign(
132
- runtimeConfig,
133
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
134
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
135
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
136
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
137
- );
138
- }, "resolveRuntimeExtensions");
139
-
140
- // src/KeyspacesStreamsClient.ts
141
- var KeyspacesStreamsClient = class extends import_smithy_client.Client {
142
- static {
143
- __name(this, "KeyspacesStreamsClient");
144
- }
145
- /**
146
- * The resolved configuration of KeyspacesStreamsClient class. This is resolved and normalized from the {@link KeyspacesStreamsClientConfig | constructor configuration interface}.
147
- */
148
- config;
149
- constructor(...[configuration]) {
150
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
151
- super(_config_0);
152
- this.initConfig = _config_0;
153
- const _config_1 = resolveClientEndpointParameters(_config_0);
154
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
155
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
156
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
157
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
158
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
159
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
160
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
161
- this.config = _config_8;
162
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
163
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
164
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
165
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
166
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
167
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
168
- this.middlewareStack.use(
169
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
170
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultKeyspacesStreamsHttpAuthSchemeParametersProvider,
171
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
172
- "aws.auth#sigv4": config.credentials
173
- }), "identityProviderConfigProvider")
174
- })
175
- );
176
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
177
- }
178
- /**
179
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
180
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
181
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
182
- */
183
- destroy() {
184
- super.destroy();
185
- }
26
+ const commonParams = {
27
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
28
+ Endpoint: { type: "builtInParams", name: "endpoint" },
29
+ Region: { type: "builtInParams", name: "region" },
186
30
  };
187
31
 
188
- // src/KeyspacesStreams.ts
189
-
190
-
191
- // src/commands/GetRecordsCommand.ts
192
-
193
- var import_middleware_serde = require("@smithy/middleware-serde");
194
-
195
-
196
- // src/protocols/Aws_json1_0.ts
197
- var import_core2 = require("@aws-sdk/core");
32
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
33
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
34
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
35
+ let _credentials = runtimeConfig.credentials;
36
+ return {
37
+ setHttpAuthScheme(httpAuthScheme) {
38
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
39
+ if (index === -1) {
40
+ _httpAuthSchemes.push(httpAuthScheme);
41
+ }
42
+ else {
43
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
44
+ }
45
+ },
46
+ httpAuthSchemes() {
47
+ return _httpAuthSchemes;
48
+ },
49
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
50
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
51
+ },
52
+ httpAuthSchemeProvider() {
53
+ return _httpAuthSchemeProvider;
54
+ },
55
+ setCredentials(credentials) {
56
+ _credentials = credentials;
57
+ },
58
+ credentials() {
59
+ return _credentials;
60
+ },
61
+ };
62
+ };
63
+ const resolveHttpAuthRuntimeConfig = (config) => {
64
+ return {
65
+ httpAuthSchemes: config.httpAuthSchemes(),
66
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
67
+ credentials: config.credentials(),
68
+ };
69
+ };
198
70
 
71
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
72
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
73
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
74
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
75
+ };
199
76
 
77
+ class KeyspacesStreamsClient extends smithyClient.Client {
78
+ config;
79
+ constructor(...[configuration]) {
80
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
81
+ super(_config_0);
82
+ this.initConfig = _config_0;
83
+ const _config_1 = resolveClientEndpointParameters(_config_0);
84
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
85
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
86
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
87
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
88
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
89
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
90
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
91
+ this.config = _config_8;
92
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
93
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
94
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
95
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
96
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
97
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
98
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
99
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultKeyspacesStreamsHttpAuthSchemeParametersProvider,
100
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
101
+ "aws.auth#sigv4": config.credentials,
102
+ }),
103
+ }));
104
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
105
+ }
106
+ destroy() {
107
+ super.destroy();
108
+ }
109
+ }
200
110
 
201
- // src/models/KeyspacesStreamsServiceException.ts
111
+ class KeyspacesStreamsServiceException extends smithyClient.ServiceException {
112
+ constructor(options) {
113
+ super(options);
114
+ Object.setPrototypeOf(this, KeyspacesStreamsServiceException.prototype);
115
+ }
116
+ }
202
117
 
203
- var KeyspacesStreamsServiceException = class _KeyspacesStreamsServiceException extends import_smithy_client.ServiceException {
204
- static {
205
- __name(this, "KeyspacesStreamsServiceException");
206
- }
207
- /**
208
- * @internal
209
- */
210
- constructor(options) {
211
- super(options);
212
- Object.setPrototypeOf(this, _KeyspacesStreamsServiceException.prototype);
213
- }
118
+ class AccessDeniedException extends KeyspacesStreamsServiceException {
119
+ name = "AccessDeniedException";
120
+ $fault = "client";
121
+ constructor(opts) {
122
+ super({
123
+ name: "AccessDeniedException",
124
+ $fault: "client",
125
+ ...opts,
126
+ });
127
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
128
+ }
129
+ }
130
+ const OriginType = {
131
+ REPLICATION: "REPLICATION",
132
+ TTL: "TTL",
133
+ USER: "USER",
134
+ };
135
+ class InternalServerException extends KeyspacesStreamsServiceException {
136
+ name = "InternalServerException";
137
+ $fault = "server";
138
+ constructor(opts) {
139
+ super({
140
+ name: "InternalServerException",
141
+ $fault: "server",
142
+ ...opts,
143
+ });
144
+ Object.setPrototypeOf(this, InternalServerException.prototype);
145
+ }
146
+ }
147
+ class ResourceNotFoundException extends KeyspacesStreamsServiceException {
148
+ name = "ResourceNotFoundException";
149
+ $fault = "client";
150
+ constructor(opts) {
151
+ super({
152
+ name: "ResourceNotFoundException",
153
+ $fault: "client",
154
+ ...opts,
155
+ });
156
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
157
+ }
158
+ }
159
+ class ThrottlingException extends KeyspacesStreamsServiceException {
160
+ name = "ThrottlingException";
161
+ $fault = "client";
162
+ constructor(opts) {
163
+ super({
164
+ name: "ThrottlingException",
165
+ $fault: "client",
166
+ ...opts,
167
+ });
168
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
169
+ }
170
+ }
171
+ const ValidationExceptionType = {
172
+ ExpiredIterator: "ExpiredIterator",
173
+ ExpiredNextToken: "ExpiredNextToken",
174
+ InvalidFormat: "InvalidFormat",
175
+ TrimmedDataAccess: "TrimmedDataAccess",
176
+ };
177
+ class ValidationException extends KeyspacesStreamsServiceException {
178
+ name = "ValidationException";
179
+ $fault = "client";
180
+ errorCode;
181
+ constructor(opts) {
182
+ super({
183
+ name: "ValidationException",
184
+ $fault: "client",
185
+ ...opts,
186
+ });
187
+ Object.setPrototypeOf(this, ValidationException.prototype);
188
+ this.errorCode = opts.errorCode;
189
+ }
190
+ }
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",
214
211
  };
212
+ exports.KeyspacesCellValue = void 0;
213
+ (function (KeyspacesCellValue) {
214
+ KeyspacesCellValue.visit = (value, visitor) => {
215
+ if (value.asciiT !== undefined)
216
+ return visitor.asciiT(value.asciiT);
217
+ if (value.bigintT !== undefined)
218
+ return visitor.bigintT(value.bigintT);
219
+ if (value.blobT !== undefined)
220
+ return visitor.blobT(value.blobT);
221
+ if (value.boolT !== undefined)
222
+ return visitor.boolT(value.boolT);
223
+ if (value.counterT !== undefined)
224
+ return visitor.counterT(value.counterT);
225
+ if (value.dateT !== undefined)
226
+ return visitor.dateT(value.dateT);
227
+ if (value.decimalT !== undefined)
228
+ return visitor.decimalT(value.decimalT);
229
+ if (value.doubleT !== undefined)
230
+ return visitor.doubleT(value.doubleT);
231
+ if (value.floatT !== undefined)
232
+ return visitor.floatT(value.floatT);
233
+ if (value.inetT !== undefined)
234
+ return visitor.inetT(value.inetT);
235
+ if (value.intT !== undefined)
236
+ return visitor.intT(value.intT);
237
+ if (value.listT !== undefined)
238
+ return visitor.listT(value.listT);
239
+ if (value.mapT !== undefined)
240
+ return visitor.mapT(value.mapT);
241
+ if (value.setT !== undefined)
242
+ return visitor.setT(value.setT);
243
+ if (value.smallintT !== undefined)
244
+ return visitor.smallintT(value.smallintT);
245
+ if (value.textT !== undefined)
246
+ return visitor.textT(value.textT);
247
+ if (value.timeT !== undefined)
248
+ return visitor.timeT(value.timeT);
249
+ if (value.timestampT !== undefined)
250
+ return visitor.timestampT(value.timestampT);
251
+ if (value.timeuuidT !== undefined)
252
+ return visitor.timeuuidT(value.timeuuidT);
253
+ if (value.tinyintT !== undefined)
254
+ return visitor.tinyintT(value.tinyintT);
255
+ if (value.tupleT !== undefined)
256
+ return visitor.tupleT(value.tupleT);
257
+ if (value.uuidT !== undefined)
258
+ return visitor.uuidT(value.uuidT);
259
+ if (value.varcharT !== undefined)
260
+ return visitor.varcharT(value.varcharT);
261
+ if (value.varintT !== undefined)
262
+ return visitor.varintT(value.varintT);
263
+ if (value.udtT !== undefined)
264
+ return visitor.udtT(value.udtT);
265
+ return visitor._(value.$unknown[0], value.$unknown[1]);
266
+ };
267
+ })(exports.KeyspacesCellValue || (exports.KeyspacesCellValue = {}));
215
268
 
216
- // src/models/models_0.ts
217
- var AccessDeniedException = class _AccessDeniedException extends KeyspacesStreamsServiceException {
218
- static {
219
- __name(this, "AccessDeniedException");
220
- }
221
- name = "AccessDeniedException";
222
- $fault = "client";
223
- /**
224
- * @internal
225
- */
226
- constructor(opts) {
227
- super({
228
- name: "AccessDeniedException",
229
- $fault: "client",
230
- ...opts
269
+ const se_GetRecordsCommand = async (input, context) => {
270
+ const headers = sharedHeaders("GetRecords");
271
+ let body;
272
+ body = JSON.stringify(smithyClient._json(input));
273
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
274
+ };
275
+ const se_GetShardIteratorCommand = async (input, context) => {
276
+ const headers = sharedHeaders("GetShardIterator");
277
+ let body;
278
+ body = JSON.stringify(smithyClient._json(input));
279
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
280
+ };
281
+ const se_GetStreamCommand = async (input, context) => {
282
+ const headers = sharedHeaders("GetStream");
283
+ let body;
284
+ body = JSON.stringify(smithyClient._json(input));
285
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
286
+ };
287
+ const se_ListStreamsCommand = async (input, context) => {
288
+ const headers = sharedHeaders("ListStreams");
289
+ let body;
290
+ body = JSON.stringify(smithyClient._json(input));
291
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
292
+ };
293
+ const de_GetRecordsCommand = async (output, context) => {
294
+ if (output.statusCode >= 300) {
295
+ return de_CommandError(output, context);
296
+ }
297
+ const data = await core$1.parseJsonBody(output.body, context);
298
+ let contents = {};
299
+ contents = de_GetRecordsOutput(data, context);
300
+ const response = {
301
+ $metadata: deserializeMetadata(output),
302
+ ...contents,
303
+ };
304
+ return response;
305
+ };
306
+ const de_GetShardIteratorCommand = async (output, context) => {
307
+ if (output.statusCode >= 300) {
308
+ return de_CommandError(output, context);
309
+ }
310
+ const data = await core$1.parseJsonBody(output.body, context);
311
+ let contents = {};
312
+ contents = smithyClient._json(data);
313
+ const response = {
314
+ $metadata: deserializeMetadata(output),
315
+ ...contents,
316
+ };
317
+ return response;
318
+ };
319
+ const de_GetStreamCommand = async (output, context) => {
320
+ if (output.statusCode >= 300) {
321
+ return de_CommandError(output, context);
322
+ }
323
+ const data = await core$1.parseJsonBody(output.body, context);
324
+ let contents = {};
325
+ contents = de_GetStreamOutput(data);
326
+ const response = {
327
+ $metadata: deserializeMetadata(output),
328
+ ...contents,
329
+ };
330
+ return response;
331
+ };
332
+ const de_ListStreamsCommand = async (output, context) => {
333
+ if (output.statusCode >= 300) {
334
+ return de_CommandError(output, context);
335
+ }
336
+ const data = await core$1.parseJsonBody(output.body, context);
337
+ let contents = {};
338
+ contents = smithyClient._json(data);
339
+ const response = {
340
+ $metadata: deserializeMetadata(output),
341
+ ...contents,
342
+ };
343
+ return response;
344
+ };
345
+ const de_CommandError = async (output, context) => {
346
+ const parsedOutput = {
347
+ ...output,
348
+ body: await core$1.parseJsonErrorBody(output.body, context),
349
+ };
350
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
351
+ switch (errorCode) {
352
+ case "AccessDeniedException":
353
+ case "com.amazonaws.keyspacesstreams#AccessDeniedException":
354
+ throw await de_AccessDeniedExceptionRes(parsedOutput);
355
+ case "InternalServerException":
356
+ case "com.amazonaws.keyspacesstreams#InternalServerException":
357
+ throw await de_InternalServerExceptionRes(parsedOutput);
358
+ case "ResourceNotFoundException":
359
+ case "com.amazonaws.keyspacesstreams#ResourceNotFoundException":
360
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput);
361
+ case "ThrottlingException":
362
+ case "com.amazonaws.keyspacesstreams#ThrottlingException":
363
+ throw await de_ThrottlingExceptionRes(parsedOutput);
364
+ case "ValidationException":
365
+ case "com.amazonaws.keyspacesstreams#ValidationException":
366
+ throw await de_ValidationExceptionRes(parsedOutput);
367
+ default:
368
+ const parsedBody = parsedOutput.body;
369
+ return throwDefaultError({
370
+ output,
371
+ parsedBody,
372
+ errorCode,
373
+ });
374
+ }
375
+ };
376
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
377
+ const body = parsedOutput.body;
378
+ const deserialized = smithyClient._json(body);
379
+ const exception = new AccessDeniedException({
380
+ $metadata: deserializeMetadata(parsedOutput),
381
+ ...deserialized,
231
382
  });
232
- Object.setPrototypeOf(this, _AccessDeniedException.prototype);
233
- }
234
- };
235
- var OriginType = {
236
- REPLICATION: "REPLICATION",
237
- TTL: "TTL",
238
- USER: "USER"
239
- };
240
- var InternalServerException = class _InternalServerException extends KeyspacesStreamsServiceException {
241
- static {
242
- __name(this, "InternalServerException");
243
- }
244
- name = "InternalServerException";
245
- $fault = "server";
246
- /**
247
- * @internal
248
- */
249
- constructor(opts) {
250
- super({
251
- name: "InternalServerException",
252
- $fault: "server",
253
- ...opts
383
+ return smithyClient.decorateServiceException(exception, body);
384
+ };
385
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
386
+ const body = parsedOutput.body;
387
+ const deserialized = smithyClient._json(body);
388
+ const exception = new InternalServerException({
389
+ $metadata: deserializeMetadata(parsedOutput),
390
+ ...deserialized,
254
391
  });
255
- Object.setPrototypeOf(this, _InternalServerException.prototype);
256
- }
257
- };
258
- var ResourceNotFoundException = class _ResourceNotFoundException extends KeyspacesStreamsServiceException {
259
- static {
260
- __name(this, "ResourceNotFoundException");
261
- }
262
- name = "ResourceNotFoundException";
263
- $fault = "client";
264
- /**
265
- * @internal
266
- */
267
- constructor(opts) {
268
- super({
269
- name: "ResourceNotFoundException",
270
- $fault: "client",
271
- ...opts
392
+ return smithyClient.decorateServiceException(exception, body);
393
+ };
394
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
395
+ const body = parsedOutput.body;
396
+ const deserialized = smithyClient._json(body);
397
+ const exception = new ResourceNotFoundException({
398
+ $metadata: deserializeMetadata(parsedOutput),
399
+ ...deserialized,
272
400
  });
273
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
274
- }
275
- };
276
- var ThrottlingException = class _ThrottlingException extends KeyspacesStreamsServiceException {
277
- static {
278
- __name(this, "ThrottlingException");
279
- }
280
- name = "ThrottlingException";
281
- $fault = "client";
282
- /**
283
- * @internal
284
- */
285
- constructor(opts) {
286
- super({
287
- name: "ThrottlingException",
288
- $fault: "client",
289
- ...opts
401
+ return smithyClient.decorateServiceException(exception, body);
402
+ };
403
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
404
+ const body = parsedOutput.body;
405
+ const deserialized = smithyClient._json(body);
406
+ const exception = new ThrottlingException({
407
+ $metadata: deserializeMetadata(parsedOutput),
408
+ ...deserialized,
290
409
  });
291
- Object.setPrototypeOf(this, _ThrottlingException.prototype);
292
- }
293
- };
294
- var ValidationExceptionType = {
295
- ExpiredIterator: "ExpiredIterator",
296
- ExpiredNextToken: "ExpiredNextToken",
297
- InvalidFormat: "InvalidFormat",
298
- TrimmedDataAccess: "TrimmedDataAccess"
299
- };
300
- var ValidationException = class _ValidationException extends KeyspacesStreamsServiceException {
301
- static {
302
- __name(this, "ValidationException");
303
- }
304
- name = "ValidationException";
305
- $fault = "client";
306
- /**
307
- * <p>An error occurred validating your request. See the error message for details.</p>
308
- * @public
309
- */
310
- errorCode;
311
- /**
312
- * @internal
313
- */
314
- constructor(opts) {
315
- super({
316
- name: "ValidationException",
317
- $fault: "client",
318
- ...opts
410
+ return smithyClient.decorateServiceException(exception, body);
411
+ };
412
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
413
+ const body = parsedOutput.body;
414
+ const deserialized = smithyClient._json(body);
415
+ const exception = new ValidationException({
416
+ $metadata: deserializeMetadata(parsedOutput),
417
+ ...deserialized,
319
418
  });
320
- Object.setPrototypeOf(this, _ValidationException.prototype);
321
- this.errorCode = opts.errorCode;
322
- }
323
- };
324
- var ShardIteratorType = {
325
- AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER",
326
- AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER",
327
- LATEST: "LATEST",
328
- TRIM_HORIZON: "TRIM_HORIZON"
329
- };
330
- var ShardFilterType = {
331
- CHILD_SHARDS: "CHILD_SHARDS"
332
- };
333
- var StreamStatus = {
334
- DISABLED: "DISABLED",
335
- DISABLING: "DISABLING",
336
- ENABLED: "ENABLED",
337
- ENABLING: "ENABLING"
338
- };
339
- var StreamViewType = {
340
- KEYS_ONLY: "KEYS_ONLY",
341
- NEW_AND_OLD_IMAGES: "NEW_AND_OLD_IMAGES",
342
- NEW_IMAGE: "NEW_IMAGE",
343
- OLD_IMAGE: "OLD_IMAGE"
344
- };
345
- var KeyspacesCellValue;
346
- ((KeyspacesCellValue3) => {
347
- KeyspacesCellValue3.visit = /* @__PURE__ */ __name((value, visitor) => {
348
- if (value.asciiT !== void 0) return visitor.asciiT(value.asciiT);
349
- if (value.bigintT !== void 0) return visitor.bigintT(value.bigintT);
350
- if (value.blobT !== void 0) return visitor.blobT(value.blobT);
351
- if (value.boolT !== void 0) return visitor.boolT(value.boolT);
352
- if (value.counterT !== void 0) return visitor.counterT(value.counterT);
353
- if (value.dateT !== void 0) return visitor.dateT(value.dateT);
354
- if (value.decimalT !== void 0) return visitor.decimalT(value.decimalT);
355
- if (value.doubleT !== void 0) return visitor.doubleT(value.doubleT);
356
- if (value.floatT !== void 0) return visitor.floatT(value.floatT);
357
- if (value.inetT !== void 0) return visitor.inetT(value.inetT);
358
- if (value.intT !== void 0) return visitor.intT(value.intT);
359
- if (value.listT !== void 0) return visitor.listT(value.listT);
360
- if (value.mapT !== void 0) return visitor.mapT(value.mapT);
361
- if (value.setT !== void 0) return visitor.setT(value.setT);
362
- if (value.smallintT !== void 0) return visitor.smallintT(value.smallintT);
363
- if (value.textT !== void 0) return visitor.textT(value.textT);
364
- if (value.timeT !== void 0) return visitor.timeT(value.timeT);
365
- if (value.timestampT !== void 0) return visitor.timestampT(value.timestampT);
366
- if (value.timeuuidT !== void 0) return visitor.timeuuidT(value.timeuuidT);
367
- if (value.tinyintT !== void 0) return visitor.tinyintT(value.tinyintT);
368
- if (value.tupleT !== void 0) return visitor.tupleT(value.tupleT);
369
- if (value.uuidT !== void 0) return visitor.uuidT(value.uuidT);
370
- if (value.varcharT !== void 0) return visitor.varcharT(value.varcharT);
371
- if (value.varintT !== void 0) return visitor.varintT(value.varintT);
372
- if (value.udtT !== void 0) return visitor.udtT(value.udtT);
373
- return visitor._(value.$unknown[0], value.$unknown[1]);
374
- }, "visit");
375
- })(KeyspacesCellValue || (KeyspacesCellValue = {}));
376
-
377
- // src/protocols/Aws_json1_0.ts
378
- var se_GetRecordsCommand = /* @__PURE__ */ __name(async (input, context) => {
379
- const headers = sharedHeaders("GetRecords");
380
- let body;
381
- body = JSON.stringify((0, import_smithy_client._json)(input));
382
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
383
- }, "se_GetRecordsCommand");
384
- var se_GetShardIteratorCommand = /* @__PURE__ */ __name(async (input, context) => {
385
- const headers = sharedHeaders("GetShardIterator");
386
- let body;
387
- body = JSON.stringify((0, import_smithy_client._json)(input));
388
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
389
- }, "se_GetShardIteratorCommand");
390
- var se_GetStreamCommand = /* @__PURE__ */ __name(async (input, context) => {
391
- const headers = sharedHeaders("GetStream");
392
- let body;
393
- body = JSON.stringify((0, import_smithy_client._json)(input));
394
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
395
- }, "se_GetStreamCommand");
396
- var se_ListStreamsCommand = /* @__PURE__ */ __name(async (input, context) => {
397
- const headers = sharedHeaders("ListStreams");
398
- let body;
399
- body = JSON.stringify((0, import_smithy_client._json)(input));
400
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
401
- }, "se_ListStreamsCommand");
402
- var de_GetRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
403
- if (output.statusCode >= 300) {
404
- return de_CommandError(output, context);
405
- }
406
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
407
- let contents = {};
408
- contents = de_GetRecordsOutput(data, context);
409
- const response = {
410
- $metadata: deserializeMetadata(output),
411
- ...contents
412
- };
413
- return response;
414
- }, "de_GetRecordsCommand");
415
- var de_GetShardIteratorCommand = /* @__PURE__ */ __name(async (output, context) => {
416
- if (output.statusCode >= 300) {
417
- return de_CommandError(output, context);
418
- }
419
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
420
- let contents = {};
421
- contents = (0, import_smithy_client._json)(data);
422
- const response = {
423
- $metadata: deserializeMetadata(output),
424
- ...contents
425
- };
426
- return response;
427
- }, "de_GetShardIteratorCommand");
428
- var de_GetStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
429
- if (output.statusCode >= 300) {
430
- return de_CommandError(output, context);
431
- }
432
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
433
- let contents = {};
434
- contents = de_GetStreamOutput(data, context);
435
- const response = {
436
- $metadata: deserializeMetadata(output),
437
- ...contents
438
- };
439
- return response;
440
- }, "de_GetStreamCommand");
441
- var de_ListStreamsCommand = /* @__PURE__ */ __name(async (output, context) => {
442
- if (output.statusCode >= 300) {
443
- return de_CommandError(output, context);
444
- }
445
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
446
- let contents = {};
447
- contents = (0, import_smithy_client._json)(data);
448
- const response = {
449
- $metadata: deserializeMetadata(output),
450
- ...contents
451
- };
452
- return response;
453
- }, "de_ListStreamsCommand");
454
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
455
- const parsedOutput = {
456
- ...output,
457
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
458
- };
459
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
460
- switch (errorCode) {
461
- case "AccessDeniedException":
462
- case "com.amazonaws.keyspacesstreams#AccessDeniedException":
463
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
464
- case "InternalServerException":
465
- case "com.amazonaws.keyspacesstreams#InternalServerException":
466
- throw await de_InternalServerExceptionRes(parsedOutput, context);
467
- case "ResourceNotFoundException":
468
- case "com.amazonaws.keyspacesstreams#ResourceNotFoundException":
469
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
470
- case "ThrottlingException":
471
- case "com.amazonaws.keyspacesstreams#ThrottlingException":
472
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
473
- case "ValidationException":
474
- case "com.amazonaws.keyspacesstreams#ValidationException":
475
- throw await de_ValidationExceptionRes(parsedOutput, context);
476
- default:
477
- const parsedBody = parsedOutput.body;
478
- return throwDefaultError({
479
- output,
480
- parsedBody,
481
- errorCode
482
- });
483
- }
484
- }, "de_CommandError");
485
- var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
486
- const body = parsedOutput.body;
487
- const deserialized = (0, import_smithy_client._json)(body);
488
- const exception = new AccessDeniedException({
489
- $metadata: deserializeMetadata(parsedOutput),
490
- ...deserialized
491
- });
492
- return (0, import_smithy_client.decorateServiceException)(exception, body);
493
- }, "de_AccessDeniedExceptionRes");
494
- var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
495
- const body = parsedOutput.body;
496
- const deserialized = (0, import_smithy_client._json)(body);
497
- const exception = new InternalServerException({
498
- $metadata: deserializeMetadata(parsedOutput),
499
- ...deserialized
500
- });
501
- return (0, import_smithy_client.decorateServiceException)(exception, body);
502
- }, "de_InternalServerExceptionRes");
503
- var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
504
- const body = parsedOutput.body;
505
- const deserialized = (0, import_smithy_client._json)(body);
506
- const exception = new ResourceNotFoundException({
507
- $metadata: deserializeMetadata(parsedOutput),
508
- ...deserialized
509
- });
510
- return (0, import_smithy_client.decorateServiceException)(exception, body);
511
- }, "de_ResourceNotFoundExceptionRes");
512
- var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
513
- const body = parsedOutput.body;
514
- const deserialized = (0, import_smithy_client._json)(body);
515
- const exception = new ThrottlingException({
516
- $metadata: deserializeMetadata(parsedOutput),
517
- ...deserialized
518
- });
519
- return (0, import_smithy_client.decorateServiceException)(exception, body);
520
- }, "de_ThrottlingExceptionRes");
521
- var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
522
- const body = parsedOutput.body;
523
- const deserialized = (0, import_smithy_client._json)(body);
524
- const exception = new ValidationException({
525
- $metadata: deserializeMetadata(parsedOutput),
526
- ...deserialized
527
- });
528
- return (0, import_smithy_client.decorateServiceException)(exception, body);
529
- }, "de_ValidationExceptionRes");
530
- var de_GetRecordsOutput = /* @__PURE__ */ __name((output, context) => {
531
- return (0, import_smithy_client.take)(output, {
532
- changeRecords: /* @__PURE__ */ __name((_) => de_RecordList(_, context), "changeRecords"),
533
- nextShardIterator: import_smithy_client.expectString
534
- });
535
- }, "de_GetRecordsOutput");
536
- var de_GetStreamOutput = /* @__PURE__ */ __name((output, context) => {
537
- return (0, import_smithy_client.take)(output, {
538
- creationRequestDateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationRequestDateTime"),
539
- keyspaceName: import_smithy_client.expectString,
540
- nextToken: import_smithy_client.expectString,
541
- shards: import_smithy_client._json,
542
- streamArn: import_smithy_client.expectString,
543
- streamLabel: import_smithy_client.expectString,
544
- streamStatus: import_smithy_client.expectString,
545
- streamViewType: import_smithy_client.expectString,
546
- tableName: import_smithy_client.expectString
547
- });
548
- }, "de_GetStreamOutput");
549
- var de_KeyspacesCell = /* @__PURE__ */ __name((output, context) => {
550
- return (0, import_smithy_client.take)(output, {
551
- metadata: import_smithy_client._json,
552
- value: /* @__PURE__ */ __name((_) => de_KeyspacesCellValue((0, import_core2.awsExpectUnion)(_), context), "value")
553
- });
554
- }, "de_KeyspacesCell");
555
- var de_KeyspacesCellList = /* @__PURE__ */ __name((output, context) => {
556
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
557
- return de_KeyspacesCell(entry, context);
558
- });
559
- return retVal;
560
- }, "de_KeyspacesCellList");
561
- var de_KeyspacesCellMap = /* @__PURE__ */ __name((output, context) => {
562
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
563
- return de_KeyspacesCellMapDefinition(entry, context);
564
- });
565
- return retVal;
566
- }, "de_KeyspacesCellMap");
567
- var de_KeyspacesCellMapDefinition = /* @__PURE__ */ __name((output, context) => {
568
- return (0, import_smithy_client.take)(output, {
569
- key: /* @__PURE__ */ __name((_) => de_KeyspacesCellValue((0, import_core2.awsExpectUnion)(_), context), "key"),
570
- metadata: import_smithy_client._json,
571
- value: /* @__PURE__ */ __name((_) => de_KeyspacesCellValue((0, import_core2.awsExpectUnion)(_), context), "value")
572
- });
573
- }, "de_KeyspacesCellMapDefinition");
574
- var de_KeyspacesCells = /* @__PURE__ */ __name((output, context) => {
575
- return Object.entries(output).reduce((acc, [key, value]) => {
576
- if (value === null) {
577
- return acc;
578
- }
579
- acc[key] = de_KeyspacesCell(value, context);
580
- return acc;
581
- }, {});
582
- }, "de_KeyspacesCells");
583
- var de_KeyspacesCellValue = /* @__PURE__ */ __name((output, context) => {
584
- if ((0, import_smithy_client.expectString)(output.asciiT) !== void 0) {
585
- return { asciiT: (0, import_smithy_client.expectString)(output.asciiT) };
586
- }
587
- if ((0, import_smithy_client.expectString)(output.bigintT) !== void 0) {
588
- return { bigintT: (0, import_smithy_client.expectString)(output.bigintT) };
589
- }
590
- if (output.blobT != null) {
591
- return {
592
- blobT: context.base64Decoder(output.blobT)
593
- };
594
- }
595
- if ((0, import_smithy_client.expectBoolean)(output.boolT) !== void 0) {
596
- return { boolT: (0, import_smithy_client.expectBoolean)(output.boolT) };
597
- }
598
- if ((0, import_smithy_client.expectString)(output.counterT) !== void 0) {
599
- return { counterT: (0, import_smithy_client.expectString)(output.counterT) };
600
- }
601
- if ((0, import_smithy_client.expectString)(output.dateT) !== void 0) {
602
- return { dateT: (0, import_smithy_client.expectString)(output.dateT) };
603
- }
604
- if ((0, import_smithy_client.expectString)(output.decimalT) !== void 0) {
605
- return { decimalT: (0, import_smithy_client.expectString)(output.decimalT) };
606
- }
607
- if ((0, import_smithy_client.expectString)(output.doubleT) !== void 0) {
608
- return { doubleT: (0, import_smithy_client.expectString)(output.doubleT) };
609
- }
610
- if ((0, import_smithy_client.expectString)(output.floatT) !== void 0) {
611
- return { floatT: (0, import_smithy_client.expectString)(output.floatT) };
612
- }
613
- if ((0, import_smithy_client.expectString)(output.inetT) !== void 0) {
614
- return { inetT: (0, import_smithy_client.expectString)(output.inetT) };
615
- }
616
- if ((0, import_smithy_client.expectString)(output.intT) !== void 0) {
617
- return { intT: (0, import_smithy_client.expectString)(output.intT) };
618
- }
619
- if (output.listT != null) {
620
- return {
621
- listT: de_KeyspacesCellList(output.listT, context)
622
- };
623
- }
624
- if (output.mapT != null) {
625
- return {
626
- mapT: de_KeyspacesCellMap(output.mapT, context)
627
- };
628
- }
629
- if (output.setT != null) {
630
- return {
631
- setT: de_KeyspacesCellList(output.setT, context)
632
- };
633
- }
634
- if ((0, import_smithy_client.expectString)(output.smallintT) !== void 0) {
635
- return { smallintT: (0, import_smithy_client.expectString)(output.smallintT) };
636
- }
637
- if ((0, import_smithy_client.expectString)(output.textT) !== void 0) {
638
- return { textT: (0, import_smithy_client.expectString)(output.textT) };
639
- }
640
- if ((0, import_smithy_client.expectString)(output.timeT) !== void 0) {
641
- return { timeT: (0, import_smithy_client.expectString)(output.timeT) };
642
- }
643
- if ((0, import_smithy_client.expectString)(output.timestampT) !== void 0) {
644
- return { timestampT: (0, import_smithy_client.expectString)(output.timestampT) };
645
- }
646
- if ((0, import_smithy_client.expectString)(output.timeuuidT) !== void 0) {
647
- return { timeuuidT: (0, import_smithy_client.expectString)(output.timeuuidT) };
648
- }
649
- if ((0, import_smithy_client.expectString)(output.tinyintT) !== void 0) {
650
- return { tinyintT: (0, import_smithy_client.expectString)(output.tinyintT) };
651
- }
652
- if (output.tupleT != null) {
653
- return {
654
- tupleT: de_KeyspacesCellList(output.tupleT, context)
419
+ return smithyClient.decorateServiceException(exception, body);
420
+ };
421
+ const de_GetRecordsOutput = (output, context) => {
422
+ return smithyClient.take(output, {
423
+ changeRecords: (_) => de_RecordList(_, context),
424
+ nextShardIterator: smithyClient.expectString,
425
+ });
426
+ };
427
+ const de_GetStreamOutput = (output, context) => {
428
+ return smithyClient.take(output, {
429
+ creationRequestDateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
430
+ keyspaceName: smithyClient.expectString,
431
+ nextToken: smithyClient.expectString,
432
+ shards: smithyClient._json,
433
+ streamArn: smithyClient.expectString,
434
+ streamLabel: smithyClient.expectString,
435
+ streamStatus: smithyClient.expectString,
436
+ streamViewType: smithyClient.expectString,
437
+ tableName: smithyClient.expectString,
438
+ });
439
+ };
440
+ const de_KeyspacesCell = (output, context) => {
441
+ return smithyClient.take(output, {
442
+ metadata: smithyClient._json,
443
+ value: (_) => de_KeyspacesCellValue(core$1.awsExpectUnion(_), context),
444
+ });
445
+ };
446
+ const de_KeyspacesCellList = (output, context) => {
447
+ const retVal = (output || [])
448
+ .filter((e) => e != null)
449
+ .map((entry) => {
450
+ return de_KeyspacesCell(entry, context);
451
+ });
452
+ return retVal;
453
+ };
454
+ const de_KeyspacesCellMap = (output, context) => {
455
+ const retVal = (output || [])
456
+ .filter((e) => e != null)
457
+ .map((entry) => {
458
+ return de_KeyspacesCellMapDefinition(entry, context);
459
+ });
460
+ return retVal;
461
+ };
462
+ const de_KeyspacesCellMapDefinition = (output, context) => {
463
+ return smithyClient.take(output, {
464
+ key: (_) => de_KeyspacesCellValue(core$1.awsExpectUnion(_), context),
465
+ metadata: smithyClient._json,
466
+ value: (_) => de_KeyspacesCellValue(core$1.awsExpectUnion(_), context),
467
+ });
468
+ };
469
+ const de_KeyspacesCells = (output, context) => {
470
+ return Object.entries(output).reduce((acc, [key, value]) => {
471
+ if (value === null) {
472
+ return acc;
473
+ }
474
+ acc[key] = de_KeyspacesCell(value, context);
475
+ return acc;
476
+ }, {});
477
+ };
478
+ const de_KeyspacesCellValue = (output, context) => {
479
+ if (smithyClient.expectString(output.asciiT) !== undefined) {
480
+ return { asciiT: smithyClient.expectString(output.asciiT) };
481
+ }
482
+ if (smithyClient.expectString(output.bigintT) !== undefined) {
483
+ return { bigintT: smithyClient.expectString(output.bigintT) };
484
+ }
485
+ if (output.blobT != null) {
486
+ return {
487
+ blobT: context.base64Decoder(output.blobT),
488
+ };
489
+ }
490
+ if (smithyClient.expectBoolean(output.boolT) !== undefined) {
491
+ return { boolT: smithyClient.expectBoolean(output.boolT) };
492
+ }
493
+ if (smithyClient.expectString(output.counterT) !== undefined) {
494
+ return { counterT: smithyClient.expectString(output.counterT) };
495
+ }
496
+ if (smithyClient.expectString(output.dateT) !== undefined) {
497
+ return { dateT: smithyClient.expectString(output.dateT) };
498
+ }
499
+ if (smithyClient.expectString(output.decimalT) !== undefined) {
500
+ return { decimalT: smithyClient.expectString(output.decimalT) };
501
+ }
502
+ if (smithyClient.expectString(output.doubleT) !== undefined) {
503
+ return { doubleT: smithyClient.expectString(output.doubleT) };
504
+ }
505
+ if (smithyClient.expectString(output.floatT) !== undefined) {
506
+ return { floatT: smithyClient.expectString(output.floatT) };
507
+ }
508
+ if (smithyClient.expectString(output.inetT) !== undefined) {
509
+ return { inetT: smithyClient.expectString(output.inetT) };
510
+ }
511
+ if (smithyClient.expectString(output.intT) !== undefined) {
512
+ return { intT: smithyClient.expectString(output.intT) };
513
+ }
514
+ if (output.listT != null) {
515
+ return {
516
+ listT: de_KeyspacesCellList(output.listT, context),
517
+ };
518
+ }
519
+ if (output.mapT != null) {
520
+ return {
521
+ mapT: de_KeyspacesCellMap(output.mapT, context),
522
+ };
523
+ }
524
+ if (output.setT != null) {
525
+ return {
526
+ setT: de_KeyspacesCellList(output.setT, context),
527
+ };
528
+ }
529
+ if (smithyClient.expectString(output.smallintT) !== undefined) {
530
+ return { smallintT: smithyClient.expectString(output.smallintT) };
531
+ }
532
+ if (smithyClient.expectString(output.textT) !== undefined) {
533
+ return { textT: smithyClient.expectString(output.textT) };
534
+ }
535
+ if (smithyClient.expectString(output.timeT) !== undefined) {
536
+ return { timeT: smithyClient.expectString(output.timeT) };
537
+ }
538
+ if (smithyClient.expectString(output.timestampT) !== undefined) {
539
+ return { timestampT: smithyClient.expectString(output.timestampT) };
540
+ }
541
+ if (smithyClient.expectString(output.timeuuidT) !== undefined) {
542
+ return { timeuuidT: smithyClient.expectString(output.timeuuidT) };
543
+ }
544
+ if (smithyClient.expectString(output.tinyintT) !== undefined) {
545
+ return { tinyintT: smithyClient.expectString(output.tinyintT) };
546
+ }
547
+ if (output.tupleT != null) {
548
+ return {
549
+ tupleT: de_KeyspacesCellList(output.tupleT, context),
550
+ };
551
+ }
552
+ if (output.udtT != null) {
553
+ return {
554
+ udtT: de_KeyspacesUdtMap(output.udtT, context),
555
+ };
556
+ }
557
+ if (smithyClient.expectString(output.uuidT) !== undefined) {
558
+ return { uuidT: smithyClient.expectString(output.uuidT) };
559
+ }
560
+ if (smithyClient.expectString(output.varcharT) !== undefined) {
561
+ return { varcharT: smithyClient.expectString(output.varcharT) };
562
+ }
563
+ if (smithyClient.expectString(output.varintT) !== undefined) {
564
+ return { varintT: smithyClient.expectString(output.varintT) };
565
+ }
566
+ return { $unknown: Object.entries(output)[0] };
567
+ };
568
+ const de_KeyspacesKeysMap = (output, context) => {
569
+ return Object.entries(output).reduce((acc, [key, value]) => {
570
+ if (value === null) {
571
+ return acc;
572
+ }
573
+ acc[key] = de_KeyspacesCellValue(core$1.awsExpectUnion(value), context);
574
+ return acc;
575
+ }, {});
576
+ };
577
+ const de_KeyspacesRow = (output, context) => {
578
+ return smithyClient.take(output, {
579
+ rowMetadata: smithyClient._json,
580
+ staticCells: (_) => de_KeyspacesCells(_, context),
581
+ valueCells: (_) => de_KeyspacesCells(_, context),
582
+ });
583
+ };
584
+ const de_KeyspacesUdtMap = (output, context) => {
585
+ return Object.entries(output).reduce((acc, [key, value]) => {
586
+ if (value === null) {
587
+ return acc;
588
+ }
589
+ acc[key] = de_KeyspacesCell(value, context);
590
+ return acc;
591
+ }, {});
592
+ };
593
+ const de__Record = (output, context) => {
594
+ return smithyClient.take(output, {
595
+ clusteringKeys: (_) => de_KeyspacesKeysMap(_, context),
596
+ createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
597
+ eventVersion: smithyClient.expectString,
598
+ newImage: (_) => de_KeyspacesRow(_, context),
599
+ oldImage: (_) => de_KeyspacesRow(_, context),
600
+ origin: smithyClient.expectString,
601
+ partitionKeys: (_) => de_KeyspacesKeysMap(_, context),
602
+ sequenceNumber: smithyClient.expectString,
603
+ });
604
+ };
605
+ const de_RecordList = (output, context) => {
606
+ const retVal = (output || [])
607
+ .filter((e) => e != null)
608
+ .map((entry) => {
609
+ return de__Record(entry, context);
610
+ });
611
+ return retVal;
612
+ };
613
+ const deserializeMetadata = (output) => ({
614
+ httpStatusCode: output.statusCode,
615
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
616
+ extendedRequestId: output.headers["x-amz-id-2"],
617
+ cfId: output.headers["x-amz-cf-id"],
618
+ });
619
+ const throwDefaultError = smithyClient.withBaseException(KeyspacesStreamsServiceException);
620
+ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
621
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
622
+ const contents = {
623
+ protocol,
624
+ hostname,
625
+ port,
626
+ method: "POST",
627
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
628
+ headers,
655
629
  };
656
- }
657
- if (output.udtT != null) {
630
+ if (body !== undefined) {
631
+ contents.body = body;
632
+ }
633
+ return new protocolHttp.HttpRequest(contents);
634
+ };
635
+ function sharedHeaders(operation) {
658
636
  return {
659
- udtT: de_KeyspacesUdtMap(output.udtT, context)
637
+ "content-type": "application/x-amz-json-1.0",
638
+ "x-amz-target": `KeyspacesStreams.${operation}`,
660
639
  };
661
- }
662
- if ((0, import_smithy_client.expectString)(output.uuidT) !== void 0) {
663
- return { uuidT: (0, import_smithy_client.expectString)(output.uuidT) };
664
- }
665
- if ((0, import_smithy_client.expectString)(output.varcharT) !== void 0) {
666
- return { varcharT: (0, import_smithy_client.expectString)(output.varcharT) };
667
- }
668
- if ((0, import_smithy_client.expectString)(output.varintT) !== void 0) {
669
- return { varintT: (0, import_smithy_client.expectString)(output.varintT) };
670
- }
671
- return { $unknown: Object.entries(output)[0] };
672
- }, "de_KeyspacesCellValue");
673
- var de_KeyspacesKeysMap = /* @__PURE__ */ __name((output, context) => {
674
- return Object.entries(output).reduce((acc, [key, value]) => {
675
- if (value === null) {
676
- return acc;
677
- }
678
- acc[key] = de_KeyspacesCellValue((0, import_core2.awsExpectUnion)(value), context);
679
- return acc;
680
- }, {});
681
- }, "de_KeyspacesKeysMap");
682
- var de_KeyspacesRow = /* @__PURE__ */ __name((output, context) => {
683
- return (0, import_smithy_client.take)(output, {
684
- rowMetadata: import_smithy_client._json,
685
- staticCells: /* @__PURE__ */ __name((_) => de_KeyspacesCells(_, context), "staticCells"),
686
- valueCells: /* @__PURE__ */ __name((_) => de_KeyspacesCells(_, context), "valueCells")
687
- });
688
- }, "de_KeyspacesRow");
689
- var de_KeyspacesUdtMap = /* @__PURE__ */ __name((output, context) => {
690
- return Object.entries(output).reduce((acc, [key, value]) => {
691
- if (value === null) {
692
- return acc;
693
- }
694
- acc[key] = de_KeyspacesCell(value, context);
695
- return acc;
696
- }, {});
697
- }, "de_KeyspacesUdtMap");
698
- var de__Record = /* @__PURE__ */ __name((output, context) => {
699
- return (0, import_smithy_client.take)(output, {
700
- clusteringKeys: /* @__PURE__ */ __name((_) => de_KeyspacesKeysMap(_, context), "clusteringKeys"),
701
- createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
702
- eventVersion: import_smithy_client.expectString,
703
- newImage: /* @__PURE__ */ __name((_) => de_KeyspacesRow(_, context), "newImage"),
704
- oldImage: /* @__PURE__ */ __name((_) => de_KeyspacesRow(_, context), "oldImage"),
705
- origin: import_smithy_client.expectString,
706
- partitionKeys: /* @__PURE__ */ __name((_) => de_KeyspacesKeysMap(_, context), "partitionKeys"),
707
- sequenceNumber: import_smithy_client.expectString
708
- });
709
- }, "de__Record");
710
- var de_RecordList = /* @__PURE__ */ __name((output, context) => {
711
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
712
- return de__Record(entry, context);
713
- });
714
- return retVal;
715
- }, "de_RecordList");
716
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
717
- httpStatusCode: output.statusCode,
718
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
719
- extendedRequestId: output.headers["x-amz-id-2"],
720
- cfId: output.headers["x-amz-cf-id"]
721
- }), "deserializeMetadata");
722
- var throwDefaultError = (0, import_smithy_client.withBaseException)(KeyspacesStreamsServiceException);
723
- var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
724
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
725
- const contents = {
726
- protocol,
727
- hostname,
728
- port,
729
- method: "POST",
730
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
731
- headers
732
- };
733
- if (resolvedHostname !== void 0) {
734
- contents.hostname = resolvedHostname;
735
- }
736
- if (body !== void 0) {
737
- contents.body = body;
738
- }
739
- return new import_protocol_http.HttpRequest(contents);
740
- }, "buildHttpRpcRequest");
741
- function sharedHeaders(operation) {
742
- return {
743
- "content-type": "application/x-amz-json-1.0",
744
- "x-amz-target": `KeyspacesStreams.${operation}`
745
- };
746
640
  }
747
- __name(sharedHeaders, "sharedHeaders");
748
-
749
- // src/commands/GetRecordsCommand.ts
750
- var GetRecordsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
751
- return [
752
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
753
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
754
- ];
755
- }).s("KeyspacesStreams", "GetRecords", {}).n("KeyspacesStreamsClient", "GetRecordsCommand").f(void 0, void 0).ser(se_GetRecordsCommand).de(de_GetRecordsCommand).build() {
756
- static {
757
- __name(this, "GetRecordsCommand");
758
- }
759
- };
760
-
761
- // src/commands/GetShardIteratorCommand.ts
762
641
 
642
+ class GetRecordsCommand extends smithyClient.Command
643
+ .classBuilder()
644
+ .ep(commonParams)
645
+ .m(function (Command, cs, config, o) {
646
+ return [
647
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
648
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
649
+ ];
650
+ })
651
+ .s("KeyspacesStreams", "GetRecords", {})
652
+ .n("KeyspacesStreamsClient", "GetRecordsCommand")
653
+ .f(void 0, void 0)
654
+ .ser(se_GetRecordsCommand)
655
+ .de(de_GetRecordsCommand)
656
+ .build() {
657
+ }
763
658
 
659
+ class GetShardIteratorCommand extends smithyClient.Command
660
+ .classBuilder()
661
+ .ep(commonParams)
662
+ .m(function (Command, cs, config, o) {
663
+ return [
664
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
665
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
666
+ ];
667
+ })
668
+ .s("KeyspacesStreams", "GetShardIterator", {})
669
+ .n("KeyspacesStreamsClient", "GetShardIteratorCommand")
670
+ .f(void 0, void 0)
671
+ .ser(se_GetShardIteratorCommand)
672
+ .de(de_GetShardIteratorCommand)
673
+ .build() {
674
+ }
764
675
 
765
- var GetShardIteratorCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
766
- return [
767
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
768
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
769
- ];
770
- }).s("KeyspacesStreams", "GetShardIterator", {}).n("KeyspacesStreamsClient", "GetShardIteratorCommand").f(void 0, void 0).ser(se_GetShardIteratorCommand).de(de_GetShardIteratorCommand).build() {
771
- static {
772
- __name(this, "GetShardIteratorCommand");
773
- }
774
- };
775
-
776
- // src/commands/GetStreamCommand.ts
777
-
778
-
779
-
780
- var GetStreamCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
781
- return [
782
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
783
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
784
- ];
785
- }).s("KeyspacesStreams", "GetStream", {}).n("KeyspacesStreamsClient", "GetStreamCommand").f(void 0, void 0).ser(se_GetStreamCommand).de(de_GetStreamCommand).build() {
786
- static {
787
- __name(this, "GetStreamCommand");
788
- }
789
- };
790
-
791
- // src/commands/ListStreamsCommand.ts
792
-
676
+ class GetStreamCommand extends smithyClient.Command
677
+ .classBuilder()
678
+ .ep(commonParams)
679
+ .m(function (Command, cs, config, o) {
680
+ return [
681
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
682
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
683
+ ];
684
+ })
685
+ .s("KeyspacesStreams", "GetStream", {})
686
+ .n("KeyspacesStreamsClient", "GetStreamCommand")
687
+ .f(void 0, void 0)
688
+ .ser(se_GetStreamCommand)
689
+ .de(de_GetStreamCommand)
690
+ .build() {
691
+ }
793
692
 
693
+ class ListStreamsCommand extends smithyClient.Command
694
+ .classBuilder()
695
+ .ep(commonParams)
696
+ .m(function (Command, cs, config, o) {
697
+ return [
698
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
699
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
700
+ ];
701
+ })
702
+ .s("KeyspacesStreams", "ListStreams", {})
703
+ .n("KeyspacesStreamsClient", "ListStreamsCommand")
704
+ .f(void 0, void 0)
705
+ .ser(se_ListStreamsCommand)
706
+ .de(de_ListStreamsCommand)
707
+ .build() {
708
+ }
794
709
 
795
- var ListStreamsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
796
- return [
797
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
798
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
799
- ];
800
- }).s("KeyspacesStreams", "ListStreams", {}).n("KeyspacesStreamsClient", "ListStreamsCommand").f(void 0, void 0).ser(se_ListStreamsCommand).de(de_ListStreamsCommand).build() {
801
- static {
802
- __name(this, "ListStreamsCommand");
803
- }
710
+ const commands = {
711
+ GetRecordsCommand,
712
+ GetShardIteratorCommand,
713
+ GetStreamCommand,
714
+ ListStreamsCommand,
804
715
  };
716
+ class KeyspacesStreams extends KeyspacesStreamsClient {
717
+ }
718
+ smithyClient.createAggregatedClient(commands, KeyspacesStreams);
805
719
 
806
- // src/KeyspacesStreams.ts
807
- var commands = {
808
- GetRecordsCommand,
809
- GetShardIteratorCommand,
810
- GetStreamCommand,
811
- ListStreamsCommand
812
- };
813
- var KeyspacesStreams = class extends KeyspacesStreamsClient {
814
- static {
815
- __name(this, "KeyspacesStreams");
816
- }
817
- };
818
- (0, import_smithy_client.createAggregatedClient)(commands, KeyspacesStreams);
819
-
820
- // src/pagination/GetStreamPaginator.ts
821
-
822
- var paginateGetStream = (0, import_core.createPaginator)(KeyspacesStreamsClient, GetStreamCommand, "nextToken", "nextToken", "maxResults");
823
-
824
- // src/pagination/ListStreamsPaginator.ts
720
+ const paginateGetStream = core.createPaginator(KeyspacesStreamsClient, GetStreamCommand, "nextToken", "nextToken", "maxResults");
825
721
 
826
- var paginateListStreams = (0, import_core.createPaginator)(KeyspacesStreamsClient, ListStreamsCommand, "nextToken", "nextToken", "maxResults");
827
- // Annotate the CommonJS export names for ESM import in node:
722
+ const paginateListStreams = core.createPaginator(KeyspacesStreamsClient, ListStreamsCommand, "nextToken", "nextToken", "maxResults");
828
723
 
829
- 0 && (module.exports = {
830
- KeyspacesStreamsServiceException,
831
- __Client,
832
- KeyspacesStreamsClient,
833
- KeyspacesStreams,
834
- $Command,
835
- GetRecordsCommand,
836
- GetShardIteratorCommand,
837
- GetStreamCommand,
838
- ListStreamsCommand,
839
- paginateGetStream,
840
- paginateListStreams,
841
- AccessDeniedException,
842
- OriginType,
843
- InternalServerException,
844
- ResourceNotFoundException,
845
- ThrottlingException,
846
- ValidationExceptionType,
847
- ValidationException,
848
- ShardIteratorType,
849
- ShardFilterType,
850
- StreamStatus,
851
- StreamViewType,
852
- KeyspacesCellValue
724
+ Object.defineProperty(exports, "$Command", {
725
+ enumerable: true,
726
+ get: function () { return smithyClient.Command; }
853
727
  });
854
-
728
+ Object.defineProperty(exports, "__Client", {
729
+ enumerable: true,
730
+ get: function () { return smithyClient.Client; }
731
+ });
732
+ exports.AccessDeniedException = AccessDeniedException;
733
+ exports.GetRecordsCommand = GetRecordsCommand;
734
+ exports.GetShardIteratorCommand = GetShardIteratorCommand;
735
+ exports.GetStreamCommand = GetStreamCommand;
736
+ exports.InternalServerException = InternalServerException;
737
+ exports.KeyspacesStreams = KeyspacesStreams;
738
+ exports.KeyspacesStreamsClient = KeyspacesStreamsClient;
739
+ exports.KeyspacesStreamsServiceException = KeyspacesStreamsServiceException;
740
+ exports.ListStreamsCommand = ListStreamsCommand;
741
+ exports.OriginType = OriginType;
742
+ exports.ResourceNotFoundException = ResourceNotFoundException;
743
+ exports.ShardFilterType = ShardFilterType;
744
+ exports.ShardIteratorType = ShardIteratorType;
745
+ exports.StreamStatus = StreamStatus;
746
+ exports.StreamViewType = StreamViewType;
747
+ exports.ThrottlingException = ThrottlingException;
748
+ exports.ValidationException = ValidationException;
749
+ exports.ValidationExceptionType = ValidationExceptionType;
750
+ exports.paginateGetStream = paginateGetStream;
751
+ exports.paginateListStreams = paginateListStreams;