@aws-sdk/client-keyspacesstreams 3.891.0 → 3.894.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 +853 -10
- package/package.json +19 -19
- package/dist-cjs/KeyspacesStreams.js +0 -19
- package/dist-cjs/KeyspacesStreamsClient.js +0 -52
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
- package/dist-cjs/commands/GetRecordsCommand.js +0 -26
- package/dist-cjs/commands/GetShardIteratorCommand.js +0 -26
- package/dist-cjs/commands/GetStreamCommand.js +0 -26
- package/dist-cjs/commands/ListStreamsCommand.js +0 -26
- package/dist-cjs/commands/index.js +0 -7
- package/dist-cjs/endpoint/EndpointParameters.js +0 -15
- package/dist-cjs/extensionConfiguration.js +0 -2
- package/dist-cjs/models/KeyspacesStreamsServiceException.js +0 -12
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/models/models_0.js +0 -159
- package/dist-cjs/pagination/GetStreamPaginator.js +0 -7
- package/dist-cjs/pagination/Interfaces.js +0 -2
- package/dist-cjs/pagination/ListStreamsPaginator.js +0 -7
- package/dist-cjs/pagination/index.js +0 -6
- package/dist-cjs/protocols/Aws_json1_0.js +0 -392
- package/dist-cjs/runtimeExtensions.js +0 -13
package/dist-cjs/index.js
CHANGED
|
@@ -1,11 +1,854 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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" }
|
|
73
|
+
};
|
|
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
|
+
}
|
|
186
|
+
};
|
|
187
|
+
|
|
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");
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
// src/models/KeyspacesStreamsServiceException.ts
|
|
202
|
+
|
|
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
|
+
}
|
|
214
|
+
};
|
|
215
|
+
|
|
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
|
|
231
|
+
});
|
|
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
|
|
254
|
+
});
|
|
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
|
|
272
|
+
});
|
|
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
|
|
290
|
+
});
|
|
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
|
|
319
|
+
});
|
|
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)
|
|
655
|
+
};
|
|
656
|
+
}
|
|
657
|
+
if (output.udtT != null) {
|
|
658
|
+
return {
|
|
659
|
+
udtT: de_KeyspacesUdtMap(output.udtT, context)
|
|
660
|
+
};
|
|
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
|
+
}
|
|
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
|
+
|
|
763
|
+
|
|
764
|
+
|
|
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
|
+
|
|
793
|
+
|
|
794
|
+
|
|
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
|
+
}
|
|
804
|
+
};
|
|
805
|
+
|
|
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
|
|
825
|
+
|
|
826
|
+
var paginateListStreams = (0, import_core.createPaginator)(KeyspacesStreamsClient, ListStreamsCommand, "nextToken", "nextToken", "maxResults");
|
|
827
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
828
|
+
|
|
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
|
|
853
|
+
});
|
|
854
|
+
|