@aws-sdk/client-keyspacesstreams 3.1074.0 → 3.1076.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 +549 -15
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -1
- package/package.json +8 -8
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -29
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/KeyspacesStreamsServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -63
- package/dist-cjs/runtimeConfig.browser.js +0 -32
- package/dist-cjs/runtimeConfig.js +0 -45
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -38
- package/dist-cjs/schemas/schemas_0.js +0 -309
package/dist-cjs/index.js
CHANGED
|
@@ -1,21 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
1
|
+
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
2
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
4
|
-
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
5
4
|
exports.$Command = Command;
|
|
6
5
|
exports.__Client = Client;
|
|
7
|
-
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
-
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
-
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
-
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
-
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
-
const {
|
|
13
|
-
const {
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
|
+
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
8
|
+
const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
9
|
+
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
10
|
+
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
|
+
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
|
+
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
13
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
|
|
14
|
+
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
15
|
+
const { AwsJson1_0Protocol } = require("@aws-sdk/core/protocols");
|
|
16
|
+
|
|
17
|
+
const defaultKeyspacesStreamsHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
18
|
+
return {
|
|
19
|
+
operation: getSmithyContext(context).operation,
|
|
20
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
21
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
22
|
+
})(),
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
26
|
+
return {
|
|
27
|
+
schemeId: "aws.auth#sigv4",
|
|
28
|
+
signingProperties: {
|
|
29
|
+
name: "cassandra",
|
|
30
|
+
region: authParameters.region,
|
|
31
|
+
},
|
|
32
|
+
propertiesExtractor: (config, context) => ({
|
|
33
|
+
signingProperties: {
|
|
34
|
+
config,
|
|
35
|
+
context,
|
|
36
|
+
},
|
|
37
|
+
}),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
const defaultKeyspacesStreamsHttpAuthSchemeProvider = (authParameters) => {
|
|
41
|
+
const options = [];
|
|
42
|
+
switch (authParameters.operation) {
|
|
43
|
+
default: {
|
|
44
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return options;
|
|
48
|
+
};
|
|
49
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
50
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
51
|
+
return Object.assign(config_0, {
|
|
52
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
53
|
+
});
|
|
54
|
+
};
|
|
19
55
|
|
|
20
56
|
const resolveClientEndpointParameters = (options) => {
|
|
21
57
|
return Object.assign(options, {
|
|
@@ -29,6 +65,468 @@ const commonParams = {
|
|
|
29
65
|
Region: { type: "builtInParams", name: "region" },
|
|
30
66
|
};
|
|
31
67
|
|
|
68
|
+
var version = "3.1075.0";
|
|
69
|
+
var packageInfo = {
|
|
70
|
+
version: version};
|
|
71
|
+
|
|
72
|
+
const a = "isSet", b = { "ref": "Endpoint" }, c = [{ "ref": "Region" }];
|
|
73
|
+
const _data = {
|
|
74
|
+
conditions: [
|
|
75
|
+
[a, [b]],
|
|
76
|
+
[a, c],
|
|
77
|
+
["aws.partition", c, "PartitionResult"],
|
|
78
|
+
["booleanEquals", [{ ref: "UseFIPS" }, true]]
|
|
79
|
+
],
|
|
80
|
+
results: [
|
|
81
|
+
[-1],
|
|
82
|
+
[-1, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
83
|
+
[b, {}],
|
|
84
|
+
["https://cassandra-streams-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", {}],
|
|
85
|
+
["https://cassandra-streams.{Region}.{PartitionResult#dualStackDnsSuffix}", {}],
|
|
86
|
+
[-1, "Invalid Configuration: Missing Region"]
|
|
87
|
+
]
|
|
88
|
+
};
|
|
89
|
+
const root = 2;
|
|
90
|
+
const r = 100_000_000;
|
|
91
|
+
const nodes = new Int32Array([
|
|
92
|
+
-1, 1, -1,
|
|
93
|
+
0, 6, 3,
|
|
94
|
+
1, 4, r + 5,
|
|
95
|
+
2, 5, r + 5,
|
|
96
|
+
3, r + 3, r + 4,
|
|
97
|
+
3, r + 1, r + 2,
|
|
98
|
+
]);
|
|
99
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
100
|
+
|
|
101
|
+
const cache = new EndpointCache({
|
|
102
|
+
size: 50,
|
|
103
|
+
params: ["Endpoint", "Region", "UseFIPS"],
|
|
104
|
+
});
|
|
105
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
106
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
107
|
+
endpointParams: endpointParams,
|
|
108
|
+
logger: context.logger,
|
|
109
|
+
}));
|
|
110
|
+
};
|
|
111
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
112
|
+
|
|
113
|
+
class KeyspacesStreamsServiceException extends ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, KeyspacesStreamsServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
class AccessDeniedException extends KeyspacesStreamsServiceException {
|
|
121
|
+
name = "AccessDeniedException";
|
|
122
|
+
$fault = "client";
|
|
123
|
+
constructor(opts) {
|
|
124
|
+
super({
|
|
125
|
+
name: "AccessDeniedException",
|
|
126
|
+
$fault: "client",
|
|
127
|
+
...opts,
|
|
128
|
+
});
|
|
129
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
class InternalServerException extends KeyspacesStreamsServiceException {
|
|
133
|
+
name = "InternalServerException";
|
|
134
|
+
$fault = "server";
|
|
135
|
+
constructor(opts) {
|
|
136
|
+
super({
|
|
137
|
+
name: "InternalServerException",
|
|
138
|
+
$fault: "server",
|
|
139
|
+
...opts,
|
|
140
|
+
});
|
|
141
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
class ResourceNotFoundException extends KeyspacesStreamsServiceException {
|
|
145
|
+
name = "ResourceNotFoundException";
|
|
146
|
+
$fault = "client";
|
|
147
|
+
constructor(opts) {
|
|
148
|
+
super({
|
|
149
|
+
name: "ResourceNotFoundException",
|
|
150
|
+
$fault: "client",
|
|
151
|
+
...opts,
|
|
152
|
+
});
|
|
153
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
class ThrottlingException extends KeyspacesStreamsServiceException {
|
|
157
|
+
name = "ThrottlingException";
|
|
158
|
+
$fault = "client";
|
|
159
|
+
constructor(opts) {
|
|
160
|
+
super({
|
|
161
|
+
name: "ThrottlingException",
|
|
162
|
+
$fault: "client",
|
|
163
|
+
...opts,
|
|
164
|
+
});
|
|
165
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
class ValidationException extends KeyspacesStreamsServiceException {
|
|
169
|
+
name = "ValidationException";
|
|
170
|
+
$fault = "client";
|
|
171
|
+
errorCode;
|
|
172
|
+
constructor(opts) {
|
|
173
|
+
super({
|
|
174
|
+
name: "ValidationException",
|
|
175
|
+
$fault: "client",
|
|
176
|
+
...opts,
|
|
177
|
+
});
|
|
178
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
179
|
+
this.errorCode = opts.errorCode;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
const _ADE = "AccessDeniedException";
|
|
184
|
+
const _GR = "GetRecords";
|
|
185
|
+
const _GRI = "GetRecordsInput";
|
|
186
|
+
const _GRO = "GetRecordsOutput";
|
|
187
|
+
const _GS = "GetStream";
|
|
188
|
+
const _GSI = "GetStreamInput";
|
|
189
|
+
const _GSII = "GetShardIteratorInput";
|
|
190
|
+
const _GSIO = "GetShardIteratorOutput";
|
|
191
|
+
const _GSIe = "GetShardIterator";
|
|
192
|
+
const _GSO = "GetStreamOutput";
|
|
193
|
+
const _ID = "IteratorDescription";
|
|
194
|
+
const _ISE = "InternalServerException";
|
|
195
|
+
const _KC = "KeyspacesCell";
|
|
196
|
+
const _KCL = "KeyspacesCellList";
|
|
197
|
+
const _KCM = "KeyspacesCellMap";
|
|
198
|
+
const _KCMD = "KeyspacesCellMapDefinition";
|
|
199
|
+
const _KCV = "KeyspacesCellValue";
|
|
200
|
+
const _KCe = "KeyspacesCells";
|
|
201
|
+
const _KKM = "KeyspacesKeysMap";
|
|
202
|
+
const _KM = "KeyspacesMetadata";
|
|
203
|
+
const _KR = "KeyspacesRow";
|
|
204
|
+
const _KUM = "KeyspacesUdtMap";
|
|
205
|
+
const _LS = "ListStreams";
|
|
206
|
+
const _LSI = "ListStreamsInput";
|
|
207
|
+
const _LSO = "ListStreamsOutput";
|
|
208
|
+
const _R = "Record";
|
|
209
|
+
const _RL = "RecordList";
|
|
210
|
+
const _RNFE = "ResourceNotFoundException";
|
|
211
|
+
const _S = "Shard";
|
|
212
|
+
const _SDL = "ShardDescriptionList";
|
|
213
|
+
const _SF = "ShardFilter";
|
|
214
|
+
const _SL = "StreamList";
|
|
215
|
+
const _SNR = "SequenceNumberRange";
|
|
216
|
+
const _St = "Stream";
|
|
217
|
+
const _TE = "ThrottlingException";
|
|
218
|
+
const _VE = "ValidationException";
|
|
219
|
+
const _aQE = "awsQueryError";
|
|
220
|
+
const _aT = "asciiT";
|
|
221
|
+
const _bT = "bigintT";
|
|
222
|
+
const _bTl = "blobT";
|
|
223
|
+
const _bTo = "boolT";
|
|
224
|
+
const _c = "client";
|
|
225
|
+
const _cA = "createdAt";
|
|
226
|
+
const _cK = "clusteringKeys";
|
|
227
|
+
const _cR = "changeRecords";
|
|
228
|
+
const _cRDT = "creationRequestDateTime";
|
|
229
|
+
const _cT = "counterT";
|
|
230
|
+
const _dT = "dateT";
|
|
231
|
+
const _dTe = "decimalT";
|
|
232
|
+
const _dTo = "doubleT";
|
|
233
|
+
const _dTu = "durationT";
|
|
234
|
+
const _e = "error";
|
|
235
|
+
const _eC = "errorCode";
|
|
236
|
+
const _eSN = "endingSequenceNumber";
|
|
237
|
+
const _eT = "expirationTime";
|
|
238
|
+
const _eV = "eventVersion";
|
|
239
|
+
const _fT = "floatT";
|
|
240
|
+
const _hE = "httpError";
|
|
241
|
+
const _iD = "iteratorDescription";
|
|
242
|
+
const _iP = "iteratorPosition";
|
|
243
|
+
const _iT = "inetT";
|
|
244
|
+
const _iTn = "intT";
|
|
245
|
+
const _k = "key";
|
|
246
|
+
const _kN = "keyspaceName";
|
|
247
|
+
const _lT = "listT";
|
|
248
|
+
const _m = "message";
|
|
249
|
+
const _mR = "maxResults";
|
|
250
|
+
const _mT = "mapT";
|
|
251
|
+
const _me = "metadata";
|
|
252
|
+
const _nI = "newImage";
|
|
253
|
+
const _nSI = "nextShardIterator";
|
|
254
|
+
const _nT = "nextToken";
|
|
255
|
+
const _o = "origin";
|
|
256
|
+
const _oI = "oldImage";
|
|
257
|
+
const _pK = "partitionKeys";
|
|
258
|
+
const _pSI = "parentShardIds";
|
|
259
|
+
const _rM = "rowMetadata";
|
|
260
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.keyspacesstreams";
|
|
261
|
+
const _sA = "streamArn";
|
|
262
|
+
const _sC = "staticCells";
|
|
263
|
+
const _sF = "shardFilter";
|
|
264
|
+
const _sI = "shardIterator";
|
|
265
|
+
const _sIT = "shardIteratorType";
|
|
266
|
+
const _sIh = "shardId";
|
|
267
|
+
const _sL = "streamLabel";
|
|
268
|
+
const _sN = "sequenceNumber";
|
|
269
|
+
const _sNR = "sequenceNumberRange";
|
|
270
|
+
const _sS = "streamStatus";
|
|
271
|
+
const _sSN = "startingSequenceNumber";
|
|
272
|
+
const _sT = "setT";
|
|
273
|
+
const _sTm = "smallintT";
|
|
274
|
+
const _sVT = "streamViewType";
|
|
275
|
+
const _se = "server";
|
|
276
|
+
const _sh = "shards";
|
|
277
|
+
const _st = "streams";
|
|
278
|
+
const _t = "type";
|
|
279
|
+
const _tN = "tableName";
|
|
280
|
+
const _tT = "textT";
|
|
281
|
+
const _tTi = "timeT";
|
|
282
|
+
const _tTim = "timestampT";
|
|
283
|
+
const _tTime = "timeuuidT";
|
|
284
|
+
const _tTin = "tinyintT";
|
|
285
|
+
const _tTu = "tupleT";
|
|
286
|
+
const _uT = "uuidT";
|
|
287
|
+
const _uTd = "udtT";
|
|
288
|
+
const _v = "value";
|
|
289
|
+
const _vC = "valueCells";
|
|
290
|
+
const _vT = "varcharT";
|
|
291
|
+
const _vTa = "varintT";
|
|
292
|
+
const _wT = "writeTime";
|
|
293
|
+
const n0 = "com.amazonaws.keyspacesstreams";
|
|
294
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
295
|
+
var KeyspacesStreamsServiceException$ = [-3, _s, "KeyspacesStreamsServiceException", 0, [], []];
|
|
296
|
+
_s_registry.registerError(KeyspacesStreamsServiceException$, KeyspacesStreamsServiceException);
|
|
297
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
298
|
+
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
299
|
+
{ [_aQE]: [`AccessDeniedException`, 403], [_e]: _c, [_hE]: 403 },
|
|
300
|
+
[_m],
|
|
301
|
+
[0]
|
|
302
|
+
];
|
|
303
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
304
|
+
var InternalServerException$ = [-3, n0, _ISE,
|
|
305
|
+
{ [_aQE]: [`InternalServerException`, 500], [_e]: _se, [_hE]: 500 },
|
|
306
|
+
[_m],
|
|
307
|
+
[0]
|
|
308
|
+
];
|
|
309
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
310
|
+
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
311
|
+
{ [_aQE]: [`ResourceNotFoundException`, 404], [_e]: _c, [_hE]: 404 },
|
|
312
|
+
[_m],
|
|
313
|
+
[0]
|
|
314
|
+
];
|
|
315
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
316
|
+
var ThrottlingException$ = [-3, n0, _TE,
|
|
317
|
+
{ [_aQE]: [`ThrottlingException`, 429], [_e]: _c, [_hE]: 429 },
|
|
318
|
+
[_m],
|
|
319
|
+
[0]
|
|
320
|
+
];
|
|
321
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
322
|
+
var ValidationException$ = [-3, n0, _VE,
|
|
323
|
+
{ [_aQE]: [`ValidationException`, 400], [_e]: _c, [_hE]: 400 },
|
|
324
|
+
[_m, _eC],
|
|
325
|
+
[0, 0]
|
|
326
|
+
];
|
|
327
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
328
|
+
const errorTypeRegistries = [
|
|
329
|
+
_s_registry,
|
|
330
|
+
n0_registry,
|
|
331
|
+
];
|
|
332
|
+
var GetRecordsInput$ = [3, n0, _GRI,
|
|
333
|
+
0,
|
|
334
|
+
[_sI, _mR],
|
|
335
|
+
[0, 1], 1
|
|
336
|
+
];
|
|
337
|
+
var GetRecordsOutput$ = [3, n0, _GRO,
|
|
338
|
+
0,
|
|
339
|
+
[_cR, _nSI, _iD],
|
|
340
|
+
[() => RecordList, 0, () => IteratorDescription$]
|
|
341
|
+
];
|
|
342
|
+
var GetShardIteratorInput$ = [3, n0, _GSII,
|
|
343
|
+
0,
|
|
344
|
+
[_sA, _sIh, _sIT, _sN],
|
|
345
|
+
[0, 0, 0, 0], 3
|
|
346
|
+
];
|
|
347
|
+
var GetShardIteratorOutput$ = [3, n0, _GSIO,
|
|
348
|
+
0,
|
|
349
|
+
[_sI],
|
|
350
|
+
[0]
|
|
351
|
+
];
|
|
352
|
+
var GetStreamInput$ = [3, n0, _GSI,
|
|
353
|
+
0,
|
|
354
|
+
[_sA, _mR, _sF, _nT],
|
|
355
|
+
[0, 1, () => ShardFilter$, 0], 1
|
|
356
|
+
];
|
|
357
|
+
var GetStreamOutput$ = [3, n0, _GSO,
|
|
358
|
+
0,
|
|
359
|
+
[_sA, _sL, _sS, _sVT, _cRDT, _kN, _tN, _sh, _nT],
|
|
360
|
+
[0, 0, 0, 0, 4, 0, 0, () => ShardDescriptionList, 0], 7
|
|
361
|
+
];
|
|
362
|
+
var IteratorDescription$ = [3, n0, _ID,
|
|
363
|
+
0,
|
|
364
|
+
[_iP],
|
|
365
|
+
[0]
|
|
366
|
+
];
|
|
367
|
+
var KeyspacesCell$ = [3, n0, _KC,
|
|
368
|
+
0,
|
|
369
|
+
[_v, _me],
|
|
370
|
+
[() => KeyspacesCellValue$, () => KeyspacesMetadata$]
|
|
371
|
+
];
|
|
372
|
+
var KeyspacesCellMapDefinition$ = [3, n0, _KCMD,
|
|
373
|
+
0,
|
|
374
|
+
[_k, _v, _me],
|
|
375
|
+
[() => KeyspacesCellValue$, () => KeyspacesCellValue$, () => KeyspacesMetadata$]
|
|
376
|
+
];
|
|
377
|
+
var KeyspacesMetadata$ = [3, n0, _KM,
|
|
378
|
+
0,
|
|
379
|
+
[_eT, _wT],
|
|
380
|
+
[0, 0]
|
|
381
|
+
];
|
|
382
|
+
var KeyspacesRow$ = [3, n0, _KR,
|
|
383
|
+
0,
|
|
384
|
+
[_vC, _sC, _rM],
|
|
385
|
+
[() => KeyspacesCells, () => KeyspacesCells, () => KeyspacesMetadata$]
|
|
386
|
+
];
|
|
387
|
+
var ListStreamsInput$ = [3, n0, _LSI,
|
|
388
|
+
0,
|
|
389
|
+
[_kN, _tN, _mR, _nT],
|
|
390
|
+
[0, 0, 1, 0]
|
|
391
|
+
];
|
|
392
|
+
var ListStreamsOutput$ = [3, n0, _LSO,
|
|
393
|
+
0,
|
|
394
|
+
[_st, _nT],
|
|
395
|
+
[() => StreamList, 0]
|
|
396
|
+
];
|
|
397
|
+
var _Record$ = [3, n0, _R,
|
|
398
|
+
0,
|
|
399
|
+
[_eV, _cA, _o, _pK, _cK, _nI, _oI, _sN],
|
|
400
|
+
[0, 4, 0, () => KeyspacesKeysMap, () => KeyspacesKeysMap, () => KeyspacesRow$, () => KeyspacesRow$, 0]
|
|
401
|
+
];
|
|
402
|
+
var SequenceNumberRange$ = [3, n0, _SNR,
|
|
403
|
+
0,
|
|
404
|
+
[_sSN, _eSN],
|
|
405
|
+
[0, 0]
|
|
406
|
+
];
|
|
407
|
+
var Shard$ = [3, n0, _S,
|
|
408
|
+
0,
|
|
409
|
+
[_sIh, _sNR, _pSI],
|
|
410
|
+
[0, () => SequenceNumberRange$, 64 | 0]
|
|
411
|
+
];
|
|
412
|
+
var ShardFilter$ = [3, n0, _SF,
|
|
413
|
+
0,
|
|
414
|
+
[_t, _sIh],
|
|
415
|
+
[0, 0]
|
|
416
|
+
];
|
|
417
|
+
var _Stream$ = [3, n0, _St,
|
|
418
|
+
0,
|
|
419
|
+
[_sA, _kN, _tN, _sL],
|
|
420
|
+
[0, 0, 0, 0], 4
|
|
421
|
+
];
|
|
422
|
+
var KeyspacesCellList = [1, n0, _KCL,
|
|
423
|
+
0, () => KeyspacesCell$
|
|
424
|
+
];
|
|
425
|
+
var KeyspacesCellMap = [1, n0, _KCM,
|
|
426
|
+
0, () => KeyspacesCellMapDefinition$
|
|
427
|
+
];
|
|
428
|
+
var RecordList = [1, n0, _RL,
|
|
429
|
+
0, () => _Record$
|
|
430
|
+
];
|
|
431
|
+
var ShardDescriptionList = [1, n0, _SDL,
|
|
432
|
+
0, () => Shard$
|
|
433
|
+
];
|
|
434
|
+
var StreamList = [1, n0, _SL,
|
|
435
|
+
0, () => _Stream$
|
|
436
|
+
];
|
|
437
|
+
var KeyspacesCells = [2, n0, _KCe,
|
|
438
|
+
0, 0, () => KeyspacesCell$
|
|
439
|
+
];
|
|
440
|
+
var KeyspacesKeysMap = [2, n0, _KKM,
|
|
441
|
+
0, 0, () => KeyspacesCellValue$
|
|
442
|
+
];
|
|
443
|
+
var KeyspacesUdtMap = [2, n0, _KUM,
|
|
444
|
+
0, 0, () => KeyspacesCell$
|
|
445
|
+
];
|
|
446
|
+
var KeyspacesCellValue$ = [4, n0, _KCV,
|
|
447
|
+
0,
|
|
448
|
+
[_aT, _bT, _bTl, _bTo, _cT, _dT, _dTe, _dTo, _dTu, _fT, _iT, _iTn, _lT, _mT, _sT, _sTm, _tT, _tTi, _tTim, _tTime, _tTin, _tTu, _uT, _vT, _vTa, _uTd],
|
|
449
|
+
[0, 0, 21, 2, 0, 0, 0, 0, 0, 0, 0, 0, () => KeyspacesCellList, () => KeyspacesCellMap, () => KeyspacesCellList, 0, 0, 0, 0, 0, 0, () => KeyspacesCellList, 0, 0, 0, () => KeyspacesUdtMap]
|
|
450
|
+
];
|
|
451
|
+
var GetRecords$ = [9, n0, _GR,
|
|
452
|
+
0, () => GetRecordsInput$, () => GetRecordsOutput$
|
|
453
|
+
];
|
|
454
|
+
var GetShardIterator$ = [9, n0, _GSIe,
|
|
455
|
+
0, () => GetShardIteratorInput$, () => GetShardIteratorOutput$
|
|
456
|
+
];
|
|
457
|
+
var GetStream$ = [9, n0, _GS,
|
|
458
|
+
0, () => GetStreamInput$, () => GetStreamOutput$
|
|
459
|
+
];
|
|
460
|
+
var ListStreams$ = [9, n0, _LS,
|
|
461
|
+
0, () => ListStreamsInput$, () => ListStreamsOutput$
|
|
462
|
+
];
|
|
463
|
+
|
|
464
|
+
const getRuntimeConfig$1 = (config) => {
|
|
465
|
+
return {
|
|
466
|
+
apiVersion: "2024-09-09",
|
|
467
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
468
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
469
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
470
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
471
|
+
extensions: config?.extensions ?? [],
|
|
472
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultKeyspacesStreamsHttpAuthSchemeProvider,
|
|
473
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
474
|
+
{
|
|
475
|
+
schemeId: "aws.auth#sigv4",
|
|
476
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
477
|
+
signer: new AwsSdkSigV4Signer(),
|
|
478
|
+
},
|
|
479
|
+
],
|
|
480
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
481
|
+
protocol: config?.protocol ?? AwsJson1_0Protocol,
|
|
482
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
483
|
+
defaultNamespace: "com.amazonaws.keyspacesstreams",
|
|
484
|
+
errorTypeRegistries,
|
|
485
|
+
version: "2024-09-09",
|
|
486
|
+
serviceTarget: "KeyspacesStreams",
|
|
487
|
+
},
|
|
488
|
+
serviceId: config?.serviceId ?? "KeyspacesStreams",
|
|
489
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
490
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
491
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
492
|
+
};
|
|
493
|
+
};
|
|
494
|
+
|
|
495
|
+
const getRuntimeConfig = (config) => {
|
|
496
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
497
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
498
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
499
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
500
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
501
|
+
const loaderConfig = {
|
|
502
|
+
profile: config?.profile,
|
|
503
|
+
logger: clientSharedValues.logger,
|
|
504
|
+
};
|
|
505
|
+
return {
|
|
506
|
+
...clientSharedValues,
|
|
507
|
+
...config,
|
|
508
|
+
runtime: "node",
|
|
509
|
+
defaultsMode,
|
|
510
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
511
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
512
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
513
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
514
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
515
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
516
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
517
|
+
retryMode: config?.retryMode ??
|
|
518
|
+
loadConfig({
|
|
519
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
520
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
521
|
+
}, config),
|
|
522
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
523
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
524
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
525
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
526
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
527
|
+
};
|
|
528
|
+
};
|
|
529
|
+
|
|
32
530
|
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
33
531
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
34
532
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -212,18 +710,54 @@ const StreamViewType = {
|
|
|
212
710
|
OLD_IMAGE: "OLD_IMAGE",
|
|
213
711
|
};
|
|
214
712
|
|
|
713
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
714
|
+
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
715
|
+
exports.GetRecords$ = GetRecords$;
|
|
215
716
|
exports.GetRecordsCommand = GetRecordsCommand;
|
|
717
|
+
exports.GetRecordsInput$ = GetRecordsInput$;
|
|
718
|
+
exports.GetRecordsOutput$ = GetRecordsOutput$;
|
|
719
|
+
exports.GetShardIterator$ = GetShardIterator$;
|
|
216
720
|
exports.GetShardIteratorCommand = GetShardIteratorCommand;
|
|
721
|
+
exports.GetShardIteratorInput$ = GetShardIteratorInput$;
|
|
722
|
+
exports.GetShardIteratorOutput$ = GetShardIteratorOutput$;
|
|
723
|
+
exports.GetStream$ = GetStream$;
|
|
217
724
|
exports.GetStreamCommand = GetStreamCommand;
|
|
725
|
+
exports.GetStreamInput$ = GetStreamInput$;
|
|
726
|
+
exports.GetStreamOutput$ = GetStreamOutput$;
|
|
727
|
+
exports.InternalServerException = InternalServerException;
|
|
728
|
+
exports.InternalServerException$ = InternalServerException$;
|
|
729
|
+
exports.IteratorDescription$ = IteratorDescription$;
|
|
218
730
|
exports.IteratorPosition = IteratorPosition;
|
|
731
|
+
exports.KeyspacesCell$ = KeyspacesCell$;
|
|
732
|
+
exports.KeyspacesCellMapDefinition$ = KeyspacesCellMapDefinition$;
|
|
733
|
+
exports.KeyspacesCellValue$ = KeyspacesCellValue$;
|
|
734
|
+
exports.KeyspacesMetadata$ = KeyspacesMetadata$;
|
|
735
|
+
exports.KeyspacesRow$ = KeyspacesRow$;
|
|
219
736
|
exports.KeyspacesStreams = KeyspacesStreams;
|
|
220
737
|
exports.KeyspacesStreamsClient = KeyspacesStreamsClient;
|
|
738
|
+
exports.KeyspacesStreamsServiceException = KeyspacesStreamsServiceException;
|
|
739
|
+
exports.KeyspacesStreamsServiceException$ = KeyspacesStreamsServiceException$;
|
|
740
|
+
exports.ListStreams$ = ListStreams$;
|
|
221
741
|
exports.ListStreamsCommand = ListStreamsCommand;
|
|
742
|
+
exports.ListStreamsInput$ = ListStreamsInput$;
|
|
743
|
+
exports.ListStreamsOutput$ = ListStreamsOutput$;
|
|
222
744
|
exports.OriginType = OriginType;
|
|
745
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
746
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
747
|
+
exports.SequenceNumberRange$ = SequenceNumberRange$;
|
|
748
|
+
exports.Shard$ = Shard$;
|
|
749
|
+
exports.ShardFilter$ = ShardFilter$;
|
|
223
750
|
exports.ShardFilterType = ShardFilterType;
|
|
224
751
|
exports.ShardIteratorType = ShardIteratorType;
|
|
225
752
|
exports.StreamStatus = StreamStatus;
|
|
226
753
|
exports.StreamViewType = StreamViewType;
|
|
754
|
+
exports.ThrottlingException = ThrottlingException;
|
|
755
|
+
exports.ThrottlingException$ = ThrottlingException$;
|
|
756
|
+
exports.ValidationException = ValidationException;
|
|
757
|
+
exports.ValidationException$ = ValidationException$;
|
|
227
758
|
exports.ValidationExceptionType = ValidationExceptionType;
|
|
759
|
+
exports._Record$ = _Record$;
|
|
760
|
+
exports._Stream$ = _Stream$;
|
|
761
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|
|
228
762
|
exports.paginateGetStream = paginateGetStream;
|
|
229
763
|
exports.paginateListStreams = paginateListStreams;
|
|
@@ -14,7 +14,7 @@ export declare const getRuntimeConfig: (config: KeyspacesStreamsClientConfig) =>
|
|
|
14
14
|
requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
|
|
15
15
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
16
|
sha256: import("@smithy/types").HashConstructor;
|
|
17
|
-
streamCollector: import("
|
|
17
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
18
18
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
19
19
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
20
20
|
cacheMiddleware?: boolean | undefined;
|
|
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: KeyspacesStreamsClientConfig) =>
|
|
|
15
15
|
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
16
16
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
17
17
|
sha256: import("@smithy/types").HashConstructor;
|
|
18
|
-
streamCollector: import("
|
|
18
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
19
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
20
20
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
21
21
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: KeyspacesStreamsClientConfig) =>
|
|
|
15
15
|
apiVersion: string;
|
|
16
16
|
urlParser: import("@smithy/types").UrlParser;
|
|
17
17
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
18
|
-
streamCollector: import("
|
|
18
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
19
|
base64Decoder: import("@smithy/types").Decoder;
|
|
20
20
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
21
21
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -23,7 +23,13 @@ export declare const getRuntimeConfig: (
|
|
|
23
23
|
| RequestHandler;
|
|
24
24
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
25
25
|
sha256: import("@smithy/types").HashConstructor;
|
|
26
|
-
streamCollector:
|
|
26
|
+
streamCollector: (
|
|
27
|
+
stream:
|
|
28
|
+
| import("stream").Readable
|
|
29
|
+
| import("stream/web").ReadableStream
|
|
30
|
+
| ReadableStream
|
|
31
|
+
| Blob
|
|
32
|
+
) => Promise<Uint8Array>;
|
|
27
33
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
28
34
|
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
29
35
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
@@ -24,7 +24,13 @@ export declare const getRuntimeConfig: (
|
|
|
24
24
|
| import("@smithy/core/protocols").HttpHandler<any>;
|
|
25
25
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
26
26
|
sha256: import("@smithy/types").HashConstructor;
|
|
27
|
-
streamCollector:
|
|
27
|
+
streamCollector: (
|
|
28
|
+
stream:
|
|
29
|
+
| import("stream").Readable
|
|
30
|
+
| import("stream/web").ReadableStream
|
|
31
|
+
| ReadableStream
|
|
32
|
+
| Blob
|
|
33
|
+
) => Promise<Uint8Array>;
|
|
28
34
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
29
35
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
30
36
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -22,7 +22,13 @@ export declare const getRuntimeConfig: (
|
|
|
22
22
|
apiVersion: string;
|
|
23
23
|
urlParser: import("@smithy/types").UrlParser;
|
|
24
24
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
25
|
-
streamCollector:
|
|
25
|
+
streamCollector: (
|
|
26
|
+
stream:
|
|
27
|
+
| import("stream").Readable
|
|
28
|
+
| import("stream/web").ReadableStream
|
|
29
|
+
| ReadableStream
|
|
30
|
+
| Blob
|
|
31
|
+
) => Promise<Uint8Array>;
|
|
26
32
|
base64Decoder: import("@smithy/types").Decoder;
|
|
27
33
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
28
34
|
utf8Decoder: import("@smithy/types").Decoder;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-keyspacesstreams",
|
|
3
3
|
"description": "AWS SDK for JavaScript Keyspacesstreams Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1076.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.974.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/types": "^3.973.
|
|
27
|
-
"@smithy/core": "^3.
|
|
28
|
-
"@smithy/fetch-http-handler": "^5.
|
|
29
|
-
"@smithy/node-http-handler": "^4.
|
|
30
|
-
"@smithy/types": "^4.
|
|
24
|
+
"@aws-sdk/core": "^3.974.24",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.59",
|
|
26
|
+
"@aws-sdk/types": "^3.973.14",
|
|
27
|
+
"@smithy/core": "^3.27.0",
|
|
28
|
+
"@smithy/fetch-http-handler": "^5.6.0",
|
|
29
|
+
"@smithy/node-http-handler": "^4.9.0",
|
|
30
|
+
"@smithy/types": "^4.15.0",
|
|
31
31
|
"tslib": "^2.6.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
-
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
3
|
-
exports.defaultKeyspacesStreamsHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
|
-
return {
|
|
5
|
-
operation: getSmithyContext(context).operation,
|
|
6
|
-
region: await normalizeProvider(config.region)() || (() => {
|
|
7
|
-
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
8
|
-
})(),
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
12
|
-
return {
|
|
13
|
-
schemeId: "aws.auth#sigv4",
|
|
14
|
-
signingProperties: {
|
|
15
|
-
name: "cassandra",
|
|
16
|
-
region: authParameters.region,
|
|
17
|
-
},
|
|
18
|
-
propertiesExtractor: (config, context) => ({
|
|
19
|
-
signingProperties: {
|
|
20
|
-
config,
|
|
21
|
-
context,
|
|
22
|
-
},
|
|
23
|
-
}),
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
exports.defaultKeyspacesStreamsHttpAuthSchemeProvider = (authParameters) => {
|
|
27
|
-
const options = [];
|
|
28
|
-
switch (authParameters.operation) {
|
|
29
|
-
default: {
|
|
30
|
-
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return options;
|
|
34
|
-
};
|
|
35
|
-
exports.resolveHttpAuthSchemeConfig = (config) => {
|
|
36
|
-
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
37
|
-
return Object.assign(config_0, {
|
|
38
|
-
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
39
|
-
});
|
|
40
|
-
};
|
package/dist-cjs/endpoint/bdd.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
2
|
-
const a = "isSet", b = { "ref": "Endpoint" }, c = [{ "ref": "Region" }];
|
|
3
|
-
const _data = {
|
|
4
|
-
conditions: [
|
|
5
|
-
[a, [b]],
|
|
6
|
-
[a, c],
|
|
7
|
-
["aws.partition", c, "PartitionResult"],
|
|
8
|
-
["booleanEquals", [{ ref: "UseFIPS" }, true]]
|
|
9
|
-
],
|
|
10
|
-
results: [
|
|
11
|
-
[-1],
|
|
12
|
-
[-1, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
13
|
-
[b, {}],
|
|
14
|
-
["https://cassandra-streams-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", {}],
|
|
15
|
-
["https://cassandra-streams.{Region}.{PartitionResult#dualStackDnsSuffix}", {}],
|
|
16
|
-
[-1, "Invalid Configuration: Missing Region"]
|
|
17
|
-
]
|
|
18
|
-
};
|
|
19
|
-
const root = 2;
|
|
20
|
-
const r = 100_000_000;
|
|
21
|
-
const nodes = new Int32Array([
|
|
22
|
-
-1, 1, -1,
|
|
23
|
-
0, 6, 3,
|
|
24
|
-
1, 4, r + 5,
|
|
25
|
-
2, 5, r + 5,
|
|
26
|
-
3, r + 3, r + 4,
|
|
27
|
-
3, r + 1, r + 2,
|
|
28
|
-
]);
|
|
29
|
-
exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const { awsEndpointFunctions } = require("@aws-sdk/core/client");
|
|
2
|
-
const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
|
|
3
|
-
const { bdd } = require("./bdd");
|
|
4
|
-
const cache = new EndpointCache({
|
|
5
|
-
size: 50,
|
|
6
|
-
params: ["Endpoint", "Region", "UseFIPS"],
|
|
7
|
-
});
|
|
8
|
-
exports.defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
-
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
10
|
-
endpointParams: endpointParams,
|
|
11
|
-
logger: context.logger,
|
|
12
|
-
}));
|
|
13
|
-
};
|
|
14
|
-
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
-
exports.__ServiceException = __ServiceException;
|
|
3
|
-
exports.KeyspacesStreamsServiceException = class KeyspacesStreamsServiceException extends __ServiceException {
|
|
4
|
-
constructor(options) {
|
|
5
|
-
super(options);
|
|
6
|
-
Object.setPrototypeOf(this, KeyspacesStreamsServiceException.prototype);
|
|
7
|
-
}
|
|
8
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
const { KeyspacesStreamsServiceException: __BaseException } = require("./KeyspacesStreamsServiceException");
|
|
2
|
-
exports.AccessDeniedException = class AccessDeniedException extends __BaseException {
|
|
3
|
-
name = "AccessDeniedException";
|
|
4
|
-
$fault = "client";
|
|
5
|
-
constructor(opts) {
|
|
6
|
-
super({
|
|
7
|
-
name: "AccessDeniedException",
|
|
8
|
-
$fault: "client",
|
|
9
|
-
...opts,
|
|
10
|
-
});
|
|
11
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
exports.InternalServerException = class InternalServerException extends __BaseException {
|
|
15
|
-
name = "InternalServerException";
|
|
16
|
-
$fault = "server";
|
|
17
|
-
constructor(opts) {
|
|
18
|
-
super({
|
|
19
|
-
name: "InternalServerException",
|
|
20
|
-
$fault: "server",
|
|
21
|
-
...opts,
|
|
22
|
-
});
|
|
23
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
|
|
27
|
-
name = "ResourceNotFoundException";
|
|
28
|
-
$fault = "client";
|
|
29
|
-
constructor(opts) {
|
|
30
|
-
super({
|
|
31
|
-
name: "ResourceNotFoundException",
|
|
32
|
-
$fault: "client",
|
|
33
|
-
...opts,
|
|
34
|
-
});
|
|
35
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
exports.ThrottlingException = class ThrottlingException extends __BaseException {
|
|
39
|
-
name = "ThrottlingException";
|
|
40
|
-
$fault = "client";
|
|
41
|
-
constructor(opts) {
|
|
42
|
-
super({
|
|
43
|
-
name: "ThrottlingException",
|
|
44
|
-
$fault: "client",
|
|
45
|
-
...opts,
|
|
46
|
-
});
|
|
47
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
exports.ValidationException = class ValidationException extends __BaseException {
|
|
51
|
-
name = "ValidationException";
|
|
52
|
-
$fault = "client";
|
|
53
|
-
errorCode;
|
|
54
|
-
constructor(opts) {
|
|
55
|
-
super({
|
|
56
|
-
name: "ValidationException",
|
|
57
|
-
$fault: "client",
|
|
58
|
-
...opts,
|
|
59
|
-
});
|
|
60
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
61
|
-
this.errorCode = opts.errorCode;
|
|
62
|
-
}
|
|
63
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
const packageInfo = require("../package.json");
|
|
2
|
-
const { Sha256 } = require("@aws-crypto/sha256-browser");
|
|
3
|
-
const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
|
|
4
|
-
const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
5
|
-
const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
6
|
-
const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
|
|
7
|
-
const { calculateBodyLength } = require("@smithy/core/serde");
|
|
8
|
-
const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
|
|
9
|
-
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
10
|
-
const getRuntimeConfig = (config) => {
|
|
11
|
-
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
12
|
-
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
13
|
-
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
14
|
-
return {
|
|
15
|
-
...clientSharedValues,
|
|
16
|
-
...config,
|
|
17
|
-
runtime: "browser",
|
|
18
|
-
defaultsMode,
|
|
19
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
20
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
21
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
22
|
-
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
23
|
-
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
|
-
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
-
sha256: config?.sha256 ?? Sha256,
|
|
27
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
const packageInfo = require("../package.json");
|
|
2
|
-
const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
|
|
3
|
-
const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
4
|
-
const { defaultProvider: credentialDefaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
5
|
-
const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
6
|
-
const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
7
|
-
const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
|
|
8
|
-
const { calculateBodyLength, Hash } = require("@smithy/core/serde");
|
|
9
|
-
const { NodeHttpHandler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
|
|
10
|
-
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
11
|
-
const getRuntimeConfig = (config) => {
|
|
12
|
-
emitWarningIfUnsupportedVersion(process.version);
|
|
13
|
-
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
14
|
-
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
15
|
-
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
-
awsCheckVersion(process.version);
|
|
17
|
-
const loaderConfig = {
|
|
18
|
-
profile: config?.profile,
|
|
19
|
-
logger: clientSharedValues.logger,
|
|
20
|
-
};
|
|
21
|
-
return {
|
|
22
|
-
...clientSharedValues,
|
|
23
|
-
...config,
|
|
24
|
-
runtime: "node",
|
|
25
|
-
defaultsMode,
|
|
26
|
-
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
27
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
28
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
29
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
30
|
-
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
31
|
-
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
32
|
-
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
33
|
-
retryMode: config?.retryMode ??
|
|
34
|
-
loadNodeConfig({
|
|
35
|
-
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
36
|
-
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
37
|
-
}, config),
|
|
38
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
39
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
40
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
41
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
42
|
-
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const { Sha256 } = require("@aws-crypto/sha256-js");
|
|
2
|
-
const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
|
|
3
|
-
const getRuntimeConfig = (config) => {
|
|
4
|
-
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
-
return {
|
|
6
|
-
...browserDefaults,
|
|
7
|
-
...config,
|
|
8
|
-
runtime: "react-native",
|
|
9
|
-
sha256: config?.sha256 ?? Sha256,
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
-
const { AwsJson1_0Protocol } = require("@aws-sdk/core/protocols");
|
|
3
|
-
const { NoOpLogger } = require("@smithy/core/client");
|
|
4
|
-
const { parseUrl } = require("@smithy/core/protocols");
|
|
5
|
-
const { fromBase64, fromUtf8, toBase64, toUtf8 } = require("@smithy/core/serde");
|
|
6
|
-
const { defaultKeyspacesStreamsHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
|
|
7
|
-
const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
|
|
8
|
-
const { errorTypeRegistries } = require("./schemas/schemas_0");
|
|
9
|
-
exports.getRuntimeConfig = (config) => {
|
|
10
|
-
return {
|
|
11
|
-
apiVersion: "2024-09-09",
|
|
12
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
13
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
14
|
-
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
15
|
-
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
16
|
-
extensions: config?.extensions ?? [],
|
|
17
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultKeyspacesStreamsHttpAuthSchemeProvider,
|
|
18
|
-
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
19
|
-
{
|
|
20
|
-
schemeId: "aws.auth#sigv4",
|
|
21
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
22
|
-
signer: new AwsSdkSigV4Signer(),
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
-
protocol: config?.protocol ?? AwsJson1_0Protocol,
|
|
27
|
-
protocolSettings: config?.protocolSettings ?? {
|
|
28
|
-
defaultNamespace: "com.amazonaws.keyspacesstreams",
|
|
29
|
-
errorTypeRegistries,
|
|
30
|
-
version: "2024-09-09",
|
|
31
|
-
serviceTarget: "KeyspacesStreams",
|
|
32
|
-
},
|
|
33
|
-
serviceId: config?.serviceId ?? "KeyspacesStreams",
|
|
34
|
-
urlParser: config?.urlParser ?? parseUrl,
|
|
35
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
36
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
37
|
-
};
|
|
38
|
-
};
|
|
@@ -1,309 +0,0 @@
|
|
|
1
|
-
const _ADE = "AccessDeniedException";
|
|
2
|
-
const _GR = "GetRecords";
|
|
3
|
-
const _GRI = "GetRecordsInput";
|
|
4
|
-
const _GRO = "GetRecordsOutput";
|
|
5
|
-
const _GS = "GetStream";
|
|
6
|
-
const _GSI = "GetStreamInput";
|
|
7
|
-
const _GSII = "GetShardIteratorInput";
|
|
8
|
-
const _GSIO = "GetShardIteratorOutput";
|
|
9
|
-
const _GSIe = "GetShardIterator";
|
|
10
|
-
const _GSO = "GetStreamOutput";
|
|
11
|
-
const _ID = "IteratorDescription";
|
|
12
|
-
const _ISE = "InternalServerException";
|
|
13
|
-
const _KC = "KeyspacesCell";
|
|
14
|
-
const _KCL = "KeyspacesCellList";
|
|
15
|
-
const _KCM = "KeyspacesCellMap";
|
|
16
|
-
const _KCMD = "KeyspacesCellMapDefinition";
|
|
17
|
-
const _KCV = "KeyspacesCellValue";
|
|
18
|
-
const _KCe = "KeyspacesCells";
|
|
19
|
-
const _KKM = "KeyspacesKeysMap";
|
|
20
|
-
const _KM = "KeyspacesMetadata";
|
|
21
|
-
const _KR = "KeyspacesRow";
|
|
22
|
-
const _KUM = "KeyspacesUdtMap";
|
|
23
|
-
const _LS = "ListStreams";
|
|
24
|
-
const _LSI = "ListStreamsInput";
|
|
25
|
-
const _LSO = "ListStreamsOutput";
|
|
26
|
-
const _R = "Record";
|
|
27
|
-
const _RL = "RecordList";
|
|
28
|
-
const _RNFE = "ResourceNotFoundException";
|
|
29
|
-
const _S = "Shard";
|
|
30
|
-
const _SDL = "ShardDescriptionList";
|
|
31
|
-
const _SF = "ShardFilter";
|
|
32
|
-
const _SL = "StreamList";
|
|
33
|
-
const _SNR = "SequenceNumberRange";
|
|
34
|
-
const _St = "Stream";
|
|
35
|
-
const _TE = "ThrottlingException";
|
|
36
|
-
const _VE = "ValidationException";
|
|
37
|
-
const _aQE = "awsQueryError";
|
|
38
|
-
const _aT = "asciiT";
|
|
39
|
-
const _bT = "bigintT";
|
|
40
|
-
const _bTl = "blobT";
|
|
41
|
-
const _bTo = "boolT";
|
|
42
|
-
const _c = "client";
|
|
43
|
-
const _cA = "createdAt";
|
|
44
|
-
const _cK = "clusteringKeys";
|
|
45
|
-
const _cR = "changeRecords";
|
|
46
|
-
const _cRDT = "creationRequestDateTime";
|
|
47
|
-
const _cT = "counterT";
|
|
48
|
-
const _dT = "dateT";
|
|
49
|
-
const _dTe = "decimalT";
|
|
50
|
-
const _dTo = "doubleT";
|
|
51
|
-
const _dTu = "durationT";
|
|
52
|
-
const _e = "error";
|
|
53
|
-
const _eC = "errorCode";
|
|
54
|
-
const _eSN = "endingSequenceNumber";
|
|
55
|
-
const _eT = "expirationTime";
|
|
56
|
-
const _eV = "eventVersion";
|
|
57
|
-
const _fT = "floatT";
|
|
58
|
-
const _hE = "httpError";
|
|
59
|
-
const _iD = "iteratorDescription";
|
|
60
|
-
const _iP = "iteratorPosition";
|
|
61
|
-
const _iT = "inetT";
|
|
62
|
-
const _iTn = "intT";
|
|
63
|
-
const _k = "key";
|
|
64
|
-
const _kN = "keyspaceName";
|
|
65
|
-
const _lT = "listT";
|
|
66
|
-
const _m = "message";
|
|
67
|
-
const _mR = "maxResults";
|
|
68
|
-
const _mT = "mapT";
|
|
69
|
-
const _me = "metadata";
|
|
70
|
-
const _nI = "newImage";
|
|
71
|
-
const _nSI = "nextShardIterator";
|
|
72
|
-
const _nT = "nextToken";
|
|
73
|
-
const _o = "origin";
|
|
74
|
-
const _oI = "oldImage";
|
|
75
|
-
const _pK = "partitionKeys";
|
|
76
|
-
const _pSI = "parentShardIds";
|
|
77
|
-
const _rM = "rowMetadata";
|
|
78
|
-
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.keyspacesstreams";
|
|
79
|
-
const _sA = "streamArn";
|
|
80
|
-
const _sC = "staticCells";
|
|
81
|
-
const _sF = "shardFilter";
|
|
82
|
-
const _sI = "shardIterator";
|
|
83
|
-
const _sIT = "shardIteratorType";
|
|
84
|
-
const _sIh = "shardId";
|
|
85
|
-
const _sL = "streamLabel";
|
|
86
|
-
const _sN = "sequenceNumber";
|
|
87
|
-
const _sNR = "sequenceNumberRange";
|
|
88
|
-
const _sS = "streamStatus";
|
|
89
|
-
const _sSN = "startingSequenceNumber";
|
|
90
|
-
const _sT = "setT";
|
|
91
|
-
const _sTm = "smallintT";
|
|
92
|
-
const _sVT = "streamViewType";
|
|
93
|
-
const _se = "server";
|
|
94
|
-
const _sh = "shards";
|
|
95
|
-
const _st = "streams";
|
|
96
|
-
const _t = "type";
|
|
97
|
-
const _tN = "tableName";
|
|
98
|
-
const _tT = "textT";
|
|
99
|
-
const _tTi = "timeT";
|
|
100
|
-
const _tTim = "timestampT";
|
|
101
|
-
const _tTime = "timeuuidT";
|
|
102
|
-
const _tTin = "tinyintT";
|
|
103
|
-
const _tTu = "tupleT";
|
|
104
|
-
const _uT = "uuidT";
|
|
105
|
-
const _uTd = "udtT";
|
|
106
|
-
const _v = "value";
|
|
107
|
-
const _vC = "valueCells";
|
|
108
|
-
const _vT = "varcharT";
|
|
109
|
-
const _vTa = "varintT";
|
|
110
|
-
const _wT = "writeTime";
|
|
111
|
-
const n0 = "com.amazonaws.keyspacesstreams";
|
|
112
|
-
const { TypeRegistry } = require("@smithy/core/schema");
|
|
113
|
-
const { AccessDeniedException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException } = require("../models/errors");
|
|
114
|
-
const { KeyspacesStreamsServiceException } = require("../models/KeyspacesStreamsServiceException");
|
|
115
|
-
const _s_registry = TypeRegistry.for(_s);
|
|
116
|
-
const KeyspacesStreamsServiceException$ = [-3, _s, "KeyspacesStreamsServiceException", 0, [], []];
|
|
117
|
-
exports.KeyspacesStreamsServiceException$ = KeyspacesStreamsServiceException$;
|
|
118
|
-
_s_registry.registerError(KeyspacesStreamsServiceException$, KeyspacesStreamsServiceException);
|
|
119
|
-
const n0_registry = TypeRegistry.for(n0);
|
|
120
|
-
const AccessDeniedException$ = [-3, n0, _ADE,
|
|
121
|
-
{ [_aQE]: [`AccessDeniedException`, 403], [_e]: _c, [_hE]: 403 },
|
|
122
|
-
[_m],
|
|
123
|
-
[0]
|
|
124
|
-
];
|
|
125
|
-
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
126
|
-
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
127
|
-
const InternalServerException$ = [-3, n0, _ISE,
|
|
128
|
-
{ [_aQE]: [`InternalServerException`, 500], [_e]: _se, [_hE]: 500 },
|
|
129
|
-
[_m],
|
|
130
|
-
[0]
|
|
131
|
-
];
|
|
132
|
-
exports.InternalServerException$ = InternalServerException$;
|
|
133
|
-
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
134
|
-
const ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
135
|
-
{ [_aQE]: [`ResourceNotFoundException`, 404], [_e]: _c, [_hE]: 404 },
|
|
136
|
-
[_m],
|
|
137
|
-
[0]
|
|
138
|
-
];
|
|
139
|
-
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
140
|
-
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
141
|
-
const ThrottlingException$ = [-3, n0, _TE,
|
|
142
|
-
{ [_aQE]: [`ThrottlingException`, 429], [_e]: _c, [_hE]: 429 },
|
|
143
|
-
[_m],
|
|
144
|
-
[0]
|
|
145
|
-
];
|
|
146
|
-
exports.ThrottlingException$ = ThrottlingException$;
|
|
147
|
-
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
148
|
-
const ValidationException$ = [-3, n0, _VE,
|
|
149
|
-
{ [_aQE]: [`ValidationException`, 400], [_e]: _c, [_hE]: 400 },
|
|
150
|
-
[_m, _eC],
|
|
151
|
-
[0, 0]
|
|
152
|
-
];
|
|
153
|
-
exports.ValidationException$ = ValidationException$;
|
|
154
|
-
n0_registry.registerError(ValidationException$, ValidationException);
|
|
155
|
-
exports.errorTypeRegistries = [
|
|
156
|
-
_s_registry,
|
|
157
|
-
n0_registry,
|
|
158
|
-
];
|
|
159
|
-
const GetRecordsInput$ = [3, n0, _GRI,
|
|
160
|
-
0,
|
|
161
|
-
[_sI, _mR],
|
|
162
|
-
[0, 1], 1
|
|
163
|
-
];
|
|
164
|
-
exports.GetRecordsInput$ = GetRecordsInput$;
|
|
165
|
-
const GetRecordsOutput$ = [3, n0, _GRO,
|
|
166
|
-
0,
|
|
167
|
-
[_cR, _nSI, _iD],
|
|
168
|
-
[() => RecordList, 0, () => IteratorDescription$]
|
|
169
|
-
];
|
|
170
|
-
exports.GetRecordsOutput$ = GetRecordsOutput$;
|
|
171
|
-
const GetShardIteratorInput$ = [3, n0, _GSII,
|
|
172
|
-
0,
|
|
173
|
-
[_sA, _sIh, _sIT, _sN],
|
|
174
|
-
[0, 0, 0, 0], 3
|
|
175
|
-
];
|
|
176
|
-
exports.GetShardIteratorInput$ = GetShardIteratorInput$;
|
|
177
|
-
const GetShardIteratorOutput$ = [3, n0, _GSIO,
|
|
178
|
-
0,
|
|
179
|
-
[_sI],
|
|
180
|
-
[0]
|
|
181
|
-
];
|
|
182
|
-
exports.GetShardIteratorOutput$ = GetShardIteratorOutput$;
|
|
183
|
-
const GetStreamInput$ = [3, n0, _GSI,
|
|
184
|
-
0,
|
|
185
|
-
[_sA, _mR, _sF, _nT],
|
|
186
|
-
[0, 1, () => ShardFilter$, 0], 1
|
|
187
|
-
];
|
|
188
|
-
exports.GetStreamInput$ = GetStreamInput$;
|
|
189
|
-
const GetStreamOutput$ = [3, n0, _GSO,
|
|
190
|
-
0,
|
|
191
|
-
[_sA, _sL, _sS, _sVT, _cRDT, _kN, _tN, _sh, _nT],
|
|
192
|
-
[0, 0, 0, 0, 4, 0, 0, () => ShardDescriptionList, 0], 7
|
|
193
|
-
];
|
|
194
|
-
exports.GetStreamOutput$ = GetStreamOutput$;
|
|
195
|
-
const IteratorDescription$ = [3, n0, _ID,
|
|
196
|
-
0,
|
|
197
|
-
[_iP],
|
|
198
|
-
[0]
|
|
199
|
-
];
|
|
200
|
-
exports.IteratorDescription$ = IteratorDescription$;
|
|
201
|
-
const KeyspacesCell$ = [3, n0, _KC,
|
|
202
|
-
0,
|
|
203
|
-
[_v, _me],
|
|
204
|
-
[() => KeyspacesCellValue$, () => KeyspacesMetadata$]
|
|
205
|
-
];
|
|
206
|
-
exports.KeyspacesCell$ = KeyspacesCell$;
|
|
207
|
-
const KeyspacesCellMapDefinition$ = [3, n0, _KCMD,
|
|
208
|
-
0,
|
|
209
|
-
[_k, _v, _me],
|
|
210
|
-
[() => KeyspacesCellValue$, () => KeyspacesCellValue$, () => KeyspacesMetadata$]
|
|
211
|
-
];
|
|
212
|
-
exports.KeyspacesCellMapDefinition$ = KeyspacesCellMapDefinition$;
|
|
213
|
-
const KeyspacesMetadata$ = [3, n0, _KM,
|
|
214
|
-
0,
|
|
215
|
-
[_eT, _wT],
|
|
216
|
-
[0, 0]
|
|
217
|
-
];
|
|
218
|
-
exports.KeyspacesMetadata$ = KeyspacesMetadata$;
|
|
219
|
-
const KeyspacesRow$ = [3, n0, _KR,
|
|
220
|
-
0,
|
|
221
|
-
[_vC, _sC, _rM],
|
|
222
|
-
[() => KeyspacesCells, () => KeyspacesCells, () => KeyspacesMetadata$]
|
|
223
|
-
];
|
|
224
|
-
exports.KeyspacesRow$ = KeyspacesRow$;
|
|
225
|
-
const ListStreamsInput$ = [3, n0, _LSI,
|
|
226
|
-
0,
|
|
227
|
-
[_kN, _tN, _mR, _nT],
|
|
228
|
-
[0, 0, 1, 0]
|
|
229
|
-
];
|
|
230
|
-
exports.ListStreamsInput$ = ListStreamsInput$;
|
|
231
|
-
const ListStreamsOutput$ = [3, n0, _LSO,
|
|
232
|
-
0,
|
|
233
|
-
[_st, _nT],
|
|
234
|
-
[() => StreamList, 0]
|
|
235
|
-
];
|
|
236
|
-
exports.ListStreamsOutput$ = ListStreamsOutput$;
|
|
237
|
-
const _Record$ = [3, n0, _R,
|
|
238
|
-
0,
|
|
239
|
-
[_eV, _cA, _o, _pK, _cK, _nI, _oI, _sN],
|
|
240
|
-
[0, 4, 0, () => KeyspacesKeysMap, () => KeyspacesKeysMap, () => KeyspacesRow$, () => KeyspacesRow$, 0]
|
|
241
|
-
];
|
|
242
|
-
exports._Record$ = _Record$;
|
|
243
|
-
const SequenceNumberRange$ = [3, n0, _SNR,
|
|
244
|
-
0,
|
|
245
|
-
[_sSN, _eSN],
|
|
246
|
-
[0, 0]
|
|
247
|
-
];
|
|
248
|
-
exports.SequenceNumberRange$ = SequenceNumberRange$;
|
|
249
|
-
const Shard$ = [3, n0, _S,
|
|
250
|
-
0,
|
|
251
|
-
[_sIh, _sNR, _pSI],
|
|
252
|
-
[0, () => SequenceNumberRange$, 64 | 0]
|
|
253
|
-
];
|
|
254
|
-
exports.Shard$ = Shard$;
|
|
255
|
-
const ShardFilter$ = [3, n0, _SF,
|
|
256
|
-
0,
|
|
257
|
-
[_t, _sIh],
|
|
258
|
-
[0, 0]
|
|
259
|
-
];
|
|
260
|
-
exports.ShardFilter$ = ShardFilter$;
|
|
261
|
-
const _Stream$ = [3, n0, _St,
|
|
262
|
-
0,
|
|
263
|
-
[_sA, _kN, _tN, _sL],
|
|
264
|
-
[0, 0, 0, 0], 4
|
|
265
|
-
];
|
|
266
|
-
exports._Stream$ = _Stream$;
|
|
267
|
-
var KeyspacesCellList = [1, n0, _KCL,
|
|
268
|
-
0, () => KeyspacesCell$
|
|
269
|
-
];
|
|
270
|
-
var KeyspacesCellMap = [1, n0, _KCM,
|
|
271
|
-
0, () => KeyspacesCellMapDefinition$
|
|
272
|
-
];
|
|
273
|
-
var RecordList = [1, n0, _RL,
|
|
274
|
-
0, () => _Record$
|
|
275
|
-
];
|
|
276
|
-
var ShardDescriptionList = [1, n0, _SDL,
|
|
277
|
-
0, () => Shard$
|
|
278
|
-
];
|
|
279
|
-
var ShardIdList = 64 | 0;
|
|
280
|
-
var StreamList = [1, n0, _SL,
|
|
281
|
-
0, () => _Stream$
|
|
282
|
-
];
|
|
283
|
-
var KeyspacesCells = [2, n0, _KCe,
|
|
284
|
-
0, 0, () => KeyspacesCell$
|
|
285
|
-
];
|
|
286
|
-
var KeyspacesKeysMap = [2, n0, _KKM,
|
|
287
|
-
0, 0, () => KeyspacesCellValue$
|
|
288
|
-
];
|
|
289
|
-
var KeyspacesUdtMap = [2, n0, _KUM,
|
|
290
|
-
0, 0, () => KeyspacesCell$
|
|
291
|
-
];
|
|
292
|
-
const KeyspacesCellValue$ = [4, n0, _KCV,
|
|
293
|
-
0,
|
|
294
|
-
[_aT, _bT, _bTl, _bTo, _cT, _dT, _dTe, _dTo, _dTu, _fT, _iT, _iTn, _lT, _mT, _sT, _sTm, _tT, _tTi, _tTim, _tTime, _tTin, _tTu, _uT, _vT, _vTa, _uTd],
|
|
295
|
-
[0, 0, 21, 2, 0, 0, 0, 0, 0, 0, 0, 0, () => KeyspacesCellList, () => KeyspacesCellMap, () => KeyspacesCellList, 0, 0, 0, 0, 0, 0, () => KeyspacesCellList, 0, 0, 0, () => KeyspacesUdtMap]
|
|
296
|
-
];
|
|
297
|
-
exports.KeyspacesCellValue$ = KeyspacesCellValue$;
|
|
298
|
-
exports.GetRecords$ = [9, n0, _GR,
|
|
299
|
-
0, () => GetRecordsInput$, () => GetRecordsOutput$
|
|
300
|
-
];
|
|
301
|
-
exports.GetShardIterator$ = [9, n0, _GSIe,
|
|
302
|
-
0, () => GetShardIteratorInput$, () => GetShardIteratorOutput$
|
|
303
|
-
];
|
|
304
|
-
exports.GetStream$ = [9, n0, _GS,
|
|
305
|
-
0, () => GetStreamInput$, () => GetStreamOutput$
|
|
306
|
-
];
|
|
307
|
-
exports.ListStreams$ = [9, n0, _LS,
|
|
308
|
-
0, () => ListStreamsInput$, () => ListStreamsOutput$
|
|
309
|
-
];
|