@aws-sdk/client-dynamodb-streams 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 +544 -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 +9 -9
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -57
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/DynamoDBStreamsServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -61
- 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 -39
- package/dist-cjs/schemas/schemas_0.js +0 -279
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 } = 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 {
|
|
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, Retry, 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 defaultDynamoDBStreamsHttpAuthSchemeParametersProvider = 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: "dynamodb",
|
|
30
|
+
region: authParameters.region,
|
|
31
|
+
},
|
|
32
|
+
propertiesExtractor: (config, context) => ({
|
|
33
|
+
signingProperties: {
|
|
34
|
+
config,
|
|
35
|
+
context,
|
|
36
|
+
},
|
|
37
|
+
}),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
const defaultDynamoDBStreamsHttpAuthSchemeProvider = (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, {
|
|
@@ -31,6 +67,464 @@ const commonParams = {
|
|
|
31
67
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
32
68
|
};
|
|
33
69
|
|
|
70
|
+
var version = "3.1075.0";
|
|
71
|
+
var packageInfo = {
|
|
72
|
+
version: version};
|
|
73
|
+
|
|
74
|
+
const m = "ref";
|
|
75
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "stringEquals", g = "getAttr", h = { [m]: "Endpoint" }, i = { "fn": g, "argv": [{ [m]: d }, "name"] }, j = { [m]: d }, k = {}, l = [{ [m]: "Region" }];
|
|
76
|
+
const _data = {
|
|
77
|
+
conditions: [
|
|
78
|
+
[c, [h]],
|
|
79
|
+
[c, l],
|
|
80
|
+
["aws.partition", l, d],
|
|
81
|
+
[e, [{ [m]: "UseDualStack" }, b]],
|
|
82
|
+
[f, [i, "aws-us-gov"]],
|
|
83
|
+
[f, [i, "aws"]],
|
|
84
|
+
[f, [i, "aws-cn"]],
|
|
85
|
+
[e, [{ fn: g, argv: [j, "supportsDualStack"] }, b]],
|
|
86
|
+
[e, [{ [m]: "UseFIPS" }, b]],
|
|
87
|
+
[e, [{ fn: g, argv: [j, "supportsFIPS"] }, b]]
|
|
88
|
+
],
|
|
89
|
+
results: [
|
|
90
|
+
[a],
|
|
91
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
92
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
93
|
+
[h, k],
|
|
94
|
+
["https://streams-dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
95
|
+
["https://streams-dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
96
|
+
["https://streams.dynamodb.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
97
|
+
["https://streams.dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
98
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
99
|
+
["https://streams.dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
100
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
101
|
+
["https://streams.dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
102
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
103
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
104
|
+
]
|
|
105
|
+
};
|
|
106
|
+
const root = 2;
|
|
107
|
+
const r = 100_000_000;
|
|
108
|
+
const nodes = new Int32Array([
|
|
109
|
+
-1, 1, -1,
|
|
110
|
+
0, 17, 3,
|
|
111
|
+
1, 4, r + 13,
|
|
112
|
+
2, 5, r + 13,
|
|
113
|
+
3, 9, 6,
|
|
114
|
+
4, r + 6, 7,
|
|
115
|
+
8, 8, r + 6,
|
|
116
|
+
9, r + 9, r + 10,
|
|
117
|
+
4, 16, 10,
|
|
118
|
+
5, 16, 11,
|
|
119
|
+
6, 16, 12,
|
|
120
|
+
7, 14, 13,
|
|
121
|
+
8, r + 8, r + 12,
|
|
122
|
+
8, 15, r + 11,
|
|
123
|
+
9, r + 7, r + 8,
|
|
124
|
+
8, r + 5, r + 4,
|
|
125
|
+
3, 19, 18,
|
|
126
|
+
8, r + 1, r + 3,
|
|
127
|
+
8, r + 1, r + 2,
|
|
128
|
+
]);
|
|
129
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
130
|
+
|
|
131
|
+
const cache = new EndpointCache({
|
|
132
|
+
size: 50,
|
|
133
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
134
|
+
});
|
|
135
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
136
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
137
|
+
endpointParams: endpointParams,
|
|
138
|
+
logger: context.logger,
|
|
139
|
+
}));
|
|
140
|
+
};
|
|
141
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
142
|
+
|
|
143
|
+
class DynamoDBStreamsServiceException extends ServiceException {
|
|
144
|
+
constructor(options) {
|
|
145
|
+
super(options);
|
|
146
|
+
Object.setPrototypeOf(this, DynamoDBStreamsServiceException.prototype);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
class InternalServerError extends DynamoDBStreamsServiceException {
|
|
151
|
+
name = "InternalServerError";
|
|
152
|
+
$fault = "server";
|
|
153
|
+
constructor(opts) {
|
|
154
|
+
super({
|
|
155
|
+
name: "InternalServerError",
|
|
156
|
+
$fault: "server",
|
|
157
|
+
...opts,
|
|
158
|
+
});
|
|
159
|
+
Object.setPrototypeOf(this, InternalServerError.prototype);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
class ResourceNotFoundException extends DynamoDBStreamsServiceException {
|
|
163
|
+
name = "ResourceNotFoundException";
|
|
164
|
+
$fault = "client";
|
|
165
|
+
constructor(opts) {
|
|
166
|
+
super({
|
|
167
|
+
name: "ResourceNotFoundException",
|
|
168
|
+
$fault: "client",
|
|
169
|
+
...opts,
|
|
170
|
+
});
|
|
171
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
class ExpiredIteratorException extends DynamoDBStreamsServiceException {
|
|
175
|
+
name = "ExpiredIteratorException";
|
|
176
|
+
$fault = "client";
|
|
177
|
+
constructor(opts) {
|
|
178
|
+
super({
|
|
179
|
+
name: "ExpiredIteratorException",
|
|
180
|
+
$fault: "client",
|
|
181
|
+
...opts,
|
|
182
|
+
});
|
|
183
|
+
Object.setPrototypeOf(this, ExpiredIteratorException.prototype);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
class LimitExceededException extends DynamoDBStreamsServiceException {
|
|
187
|
+
name = "LimitExceededException";
|
|
188
|
+
$fault = "client";
|
|
189
|
+
constructor(opts) {
|
|
190
|
+
super({
|
|
191
|
+
name: "LimitExceededException",
|
|
192
|
+
$fault: "client",
|
|
193
|
+
...opts,
|
|
194
|
+
});
|
|
195
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
class TrimmedDataAccessException extends DynamoDBStreamsServiceException {
|
|
199
|
+
name = "TrimmedDataAccessException";
|
|
200
|
+
$fault = "client";
|
|
201
|
+
constructor(opts) {
|
|
202
|
+
super({
|
|
203
|
+
name: "TrimmedDataAccessException",
|
|
204
|
+
$fault: "client",
|
|
205
|
+
...opts,
|
|
206
|
+
});
|
|
207
|
+
Object.setPrototypeOf(this, TrimmedDataAccessException.prototype);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
const _ACDT = "ApproximateCreationDateTime";
|
|
212
|
+
const _AM = "AttributeMap";
|
|
213
|
+
const _AN = "AttributeName";
|
|
214
|
+
const _AV = "AttributeValue";
|
|
215
|
+
const _B = "B";
|
|
216
|
+
const _BOOL = "BOOL";
|
|
217
|
+
const _BS = "BS";
|
|
218
|
+
const _CRDT = "CreationRequestDateTime";
|
|
219
|
+
const _DS = "DescribeStream";
|
|
220
|
+
const _DSI = "DescribeStreamInput";
|
|
221
|
+
const _DSO = "DescribeStreamOutput";
|
|
222
|
+
const _EIE = "ExpiredIteratorException";
|
|
223
|
+
const _ESN = "EndingSequenceNumber";
|
|
224
|
+
const _ESSA = "ExclusiveStartStreamArn";
|
|
225
|
+
const _ESSI = "ExclusiveStartShardId";
|
|
226
|
+
const _GR = "GetRecords";
|
|
227
|
+
const _GRI = "GetRecordsInput";
|
|
228
|
+
const _GRO = "GetRecordsOutput";
|
|
229
|
+
const _GSI = "GetShardIterator";
|
|
230
|
+
const _GSII = "GetShardIteratorInput";
|
|
231
|
+
const _GSIO = "GetShardIteratorOutput";
|
|
232
|
+
const _I = "Identity";
|
|
233
|
+
const _ISE = "InternalServerError";
|
|
234
|
+
const _K = "Keys";
|
|
235
|
+
const _KS = "KeySchema";
|
|
236
|
+
const _KSE = "KeySchemaElement";
|
|
237
|
+
const _KT = "KeyType";
|
|
238
|
+
const _L = "Limit";
|
|
239
|
+
const _LAV = "ListAttributeValue";
|
|
240
|
+
const _LEE = "LimitExceededException";
|
|
241
|
+
const _LESA = "LastEvaluatedStreamArn";
|
|
242
|
+
const _LESI = "LastEvaluatedShardId";
|
|
243
|
+
const _LS = "ListStreams";
|
|
244
|
+
const _LSI = "ListStreamsInput";
|
|
245
|
+
const _LSO = "ListStreamsOutput";
|
|
246
|
+
const _L_ = "L";
|
|
247
|
+
const _M = "M";
|
|
248
|
+
const _MAV = "MapAttributeValue";
|
|
249
|
+
const _N = "N";
|
|
250
|
+
const _NI = "NewImage";
|
|
251
|
+
const _NS = "NS";
|
|
252
|
+
const _NSI = "NextShardIterator";
|
|
253
|
+
const _NULL = "NULL";
|
|
254
|
+
const _OI = "OldImage";
|
|
255
|
+
const _PI = "PrincipalId";
|
|
256
|
+
const _PSI = "ParentShardId";
|
|
257
|
+
const _R = "Records";
|
|
258
|
+
const _RL = "RecordList";
|
|
259
|
+
const _RNFE = "ResourceNotFoundException";
|
|
260
|
+
const _Re = "Record";
|
|
261
|
+
const _S = "Streams";
|
|
262
|
+
const _SA = "StreamArn";
|
|
263
|
+
const _SB = "SizeBytes";
|
|
264
|
+
const _SD = "StreamDescription";
|
|
265
|
+
const _SDL = "ShardDescriptionList";
|
|
266
|
+
const _SF = "ShardFilter";
|
|
267
|
+
const _SI = "ShardIterator";
|
|
268
|
+
const _SIT = "ShardIteratorType";
|
|
269
|
+
const _SIh = "ShardId";
|
|
270
|
+
const _SL = "StreamLabel";
|
|
271
|
+
const _SLt = "StreamList";
|
|
272
|
+
const _SN = "SequenceNumber";
|
|
273
|
+
const _SNR = "SequenceNumberRange";
|
|
274
|
+
const _SR = "StreamRecord";
|
|
275
|
+
const _SS = "StreamStatus";
|
|
276
|
+
const _SSN = "StartingSequenceNumber";
|
|
277
|
+
const _SS_ = "SS";
|
|
278
|
+
const _SVT = "StreamViewType";
|
|
279
|
+
const _S_ = "S";
|
|
280
|
+
const _Sh = "Shard";
|
|
281
|
+
const _Sha = "Shards";
|
|
282
|
+
const _St = "Stream";
|
|
283
|
+
const _T = "Type";
|
|
284
|
+
const _TDAE = "TrimmedDataAccessException";
|
|
285
|
+
const _TN = "TableName";
|
|
286
|
+
const _aR = "awsRegion";
|
|
287
|
+
const _c = "client";
|
|
288
|
+
const _d = "dynamodb";
|
|
289
|
+
const _e = "error";
|
|
290
|
+
const _eID = "eventID";
|
|
291
|
+
const _eN = "eventName";
|
|
292
|
+
const _eS = "eventSource";
|
|
293
|
+
const _eV = "eventVersion";
|
|
294
|
+
const _m = "message";
|
|
295
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.dynamodbstreams";
|
|
296
|
+
const _se = "server";
|
|
297
|
+
const _uI = "userIdentity";
|
|
298
|
+
const n0 = "com.amazonaws.dynamodbstreams";
|
|
299
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
300
|
+
var DynamoDBStreamsServiceException$ = [-3, _s, "DynamoDBStreamsServiceException", 0, [], []];
|
|
301
|
+
_s_registry.registerError(DynamoDBStreamsServiceException$, DynamoDBStreamsServiceException);
|
|
302
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
303
|
+
var ExpiredIteratorException$ = [-3, n0, _EIE,
|
|
304
|
+
{ [_e]: _c },
|
|
305
|
+
[_m],
|
|
306
|
+
[0]
|
|
307
|
+
];
|
|
308
|
+
n0_registry.registerError(ExpiredIteratorException$, ExpiredIteratorException);
|
|
309
|
+
var InternalServerError$ = [-3, n0, _ISE,
|
|
310
|
+
{ [_e]: _se },
|
|
311
|
+
[_m],
|
|
312
|
+
[0]
|
|
313
|
+
];
|
|
314
|
+
n0_registry.registerError(InternalServerError$, InternalServerError);
|
|
315
|
+
var LimitExceededException$ = [-3, n0, _LEE,
|
|
316
|
+
{ [_e]: _c },
|
|
317
|
+
[_m],
|
|
318
|
+
[0]
|
|
319
|
+
];
|
|
320
|
+
n0_registry.registerError(LimitExceededException$, LimitExceededException);
|
|
321
|
+
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
322
|
+
{ [_e]: _c },
|
|
323
|
+
[_m],
|
|
324
|
+
[0]
|
|
325
|
+
];
|
|
326
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
327
|
+
var TrimmedDataAccessException$ = [-3, n0, _TDAE,
|
|
328
|
+
{ [_e]: _c },
|
|
329
|
+
[_m],
|
|
330
|
+
[0]
|
|
331
|
+
];
|
|
332
|
+
n0_registry.registerError(TrimmedDataAccessException$, TrimmedDataAccessException);
|
|
333
|
+
const errorTypeRegistries = [
|
|
334
|
+
_s_registry,
|
|
335
|
+
n0_registry,
|
|
336
|
+
];
|
|
337
|
+
var DescribeStreamInput$ = [3, n0, _DSI,
|
|
338
|
+
0,
|
|
339
|
+
[_SA, _L, _ESSI, _SF],
|
|
340
|
+
[0, 1, 0, () => ShardFilter$], 1
|
|
341
|
+
];
|
|
342
|
+
var DescribeStreamOutput$ = [3, n0, _DSO,
|
|
343
|
+
0,
|
|
344
|
+
[_SD],
|
|
345
|
+
[() => StreamDescription$]
|
|
346
|
+
];
|
|
347
|
+
var GetRecordsInput$ = [3, n0, _GRI,
|
|
348
|
+
0,
|
|
349
|
+
[_SI, _L],
|
|
350
|
+
[0, 1], 1
|
|
351
|
+
];
|
|
352
|
+
var GetRecordsOutput$ = [3, n0, _GRO,
|
|
353
|
+
0,
|
|
354
|
+
[_R, _NSI],
|
|
355
|
+
[() => RecordList, 0]
|
|
356
|
+
];
|
|
357
|
+
var GetShardIteratorInput$ = [3, n0, _GSII,
|
|
358
|
+
0,
|
|
359
|
+
[_SA, _SIh, _SIT, _SN],
|
|
360
|
+
[0, 0, 0, 0], 3
|
|
361
|
+
];
|
|
362
|
+
var GetShardIteratorOutput$ = [3, n0, _GSIO,
|
|
363
|
+
0,
|
|
364
|
+
[_SI],
|
|
365
|
+
[0]
|
|
366
|
+
];
|
|
367
|
+
var Identity$ = [3, n0, _I,
|
|
368
|
+
0,
|
|
369
|
+
[_PI, _T],
|
|
370
|
+
[0, 0]
|
|
371
|
+
];
|
|
372
|
+
var KeySchemaElement$ = [3, n0, _KSE,
|
|
373
|
+
0,
|
|
374
|
+
[_AN, _KT],
|
|
375
|
+
[0, 0], 2
|
|
376
|
+
];
|
|
377
|
+
var ListStreamsInput$ = [3, n0, _LSI,
|
|
378
|
+
0,
|
|
379
|
+
[_TN, _L, _ESSA],
|
|
380
|
+
[0, 1, 0]
|
|
381
|
+
];
|
|
382
|
+
var ListStreamsOutput$ = [3, n0, _LSO,
|
|
383
|
+
0,
|
|
384
|
+
[_S, _LESA],
|
|
385
|
+
[() => StreamList, 0]
|
|
386
|
+
];
|
|
387
|
+
var _Record$ = [3, n0, _Re,
|
|
388
|
+
0,
|
|
389
|
+
[_eID, _eN, _eV, _eS, _aR, _d, _uI],
|
|
390
|
+
[0, 0, 0, 0, 0, () => StreamRecord$, () => Identity$]
|
|
391
|
+
];
|
|
392
|
+
var SequenceNumberRange$ = [3, n0, _SNR,
|
|
393
|
+
0,
|
|
394
|
+
[_SSN, _ESN],
|
|
395
|
+
[0, 0]
|
|
396
|
+
];
|
|
397
|
+
var Shard$ = [3, n0, _Sh,
|
|
398
|
+
0,
|
|
399
|
+
[_SIh, _SNR, _PSI],
|
|
400
|
+
[0, () => SequenceNumberRange$, 0]
|
|
401
|
+
];
|
|
402
|
+
var ShardFilter$ = [3, n0, _SF,
|
|
403
|
+
0,
|
|
404
|
+
[_T, _SIh],
|
|
405
|
+
[0, 0]
|
|
406
|
+
];
|
|
407
|
+
var _Stream$ = [3, n0, _St,
|
|
408
|
+
0,
|
|
409
|
+
[_SA, _TN, _SL],
|
|
410
|
+
[0, 0, 0]
|
|
411
|
+
];
|
|
412
|
+
var StreamDescription$ = [3, n0, _SD,
|
|
413
|
+
0,
|
|
414
|
+
[_SA, _SL, _SS, _SVT, _CRDT, _TN, _KS, _Sha, _LESI],
|
|
415
|
+
[0, 0, 0, 0, 4, 0, () => KeySchema, () => ShardDescriptionList, 0]
|
|
416
|
+
];
|
|
417
|
+
var StreamRecord$ = [3, n0, _SR,
|
|
418
|
+
0,
|
|
419
|
+
[_ACDT, _K, _NI, _OI, _SN, _SB, _SVT],
|
|
420
|
+
[4, () => AttributeMap, () => AttributeMap, () => AttributeMap, 0, 1, 0]
|
|
421
|
+
];
|
|
422
|
+
var KeySchema = [1, n0, _KS,
|
|
423
|
+
0, () => KeySchemaElement$
|
|
424
|
+
];
|
|
425
|
+
var ListAttributeValue = [1, n0, _LAV,
|
|
426
|
+
0, () => AttributeValue$
|
|
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, _SLt,
|
|
435
|
+
0, () => _Stream$
|
|
436
|
+
];
|
|
437
|
+
var AttributeMap = [2, n0, _AM,
|
|
438
|
+
0, 0, () => AttributeValue$
|
|
439
|
+
];
|
|
440
|
+
var MapAttributeValue = [2, n0, _MAV,
|
|
441
|
+
0, 0, () => AttributeValue$
|
|
442
|
+
];
|
|
443
|
+
var AttributeValue$ = [4, n0, _AV,
|
|
444
|
+
0,
|
|
445
|
+
[_S_, _N, _B, _SS_, _NS, _BS, _M, _L_, _NULL, _BOOL],
|
|
446
|
+
[0, 0, 21, 64 | 0, 64 | 0, 64 | 21, () => MapAttributeValue, () => ListAttributeValue, 2, 2]
|
|
447
|
+
];
|
|
448
|
+
var DescribeStream$ = [9, n0, _DS,
|
|
449
|
+
0, () => DescribeStreamInput$, () => DescribeStreamOutput$
|
|
450
|
+
];
|
|
451
|
+
var GetRecords$ = [9, n0, _GR,
|
|
452
|
+
0, () => GetRecordsInput$, () => GetRecordsOutput$
|
|
453
|
+
];
|
|
454
|
+
var GetShardIterator$ = [9, n0, _GSI,
|
|
455
|
+
0, () => GetShardIteratorInput$, () => GetShardIteratorOutput$
|
|
456
|
+
];
|
|
457
|
+
var ListStreams$ = [9, n0, _LS,
|
|
458
|
+
0, () => ListStreamsInput$, () => ListStreamsOutput$
|
|
459
|
+
];
|
|
460
|
+
|
|
461
|
+
const getRuntimeConfig$1 = (config) => {
|
|
462
|
+
return {
|
|
463
|
+
apiVersion: "2012-08-10",
|
|
464
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
465
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
466
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
467
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
468
|
+
extensions: config?.extensions ?? [],
|
|
469
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultDynamoDBStreamsHttpAuthSchemeProvider,
|
|
470
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
471
|
+
{
|
|
472
|
+
schemeId: "aws.auth#sigv4",
|
|
473
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
474
|
+
signer: new AwsSdkSigV4Signer(),
|
|
475
|
+
},
|
|
476
|
+
],
|
|
477
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
478
|
+
protocol: config?.protocol ?? AwsJson1_0Protocol,
|
|
479
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
480
|
+
defaultNamespace: "com.amazonaws.dynamodbstreams",
|
|
481
|
+
errorTypeRegistries,
|
|
482
|
+
xmlNamespace: "http://dynamodb.amazonaws.com/doc/2012-08-10/",
|
|
483
|
+
version: "2012-08-10",
|
|
484
|
+
serviceTarget: "DynamoDBStreams_20120810",
|
|
485
|
+
},
|
|
486
|
+
serviceId: config?.serviceId ?? "DynamoDB Streams",
|
|
487
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
488
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
489
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
|
|
493
|
+
const getRuntimeConfig = (config) => {
|
|
494
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
495
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
496
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
497
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
498
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
499
|
+
const loaderConfig = {
|
|
500
|
+
profile: config?.profile,
|
|
501
|
+
logger: clientSharedValues.logger,
|
|
502
|
+
};
|
|
503
|
+
return {
|
|
504
|
+
...clientSharedValues,
|
|
505
|
+
...config,
|
|
506
|
+
runtime: "node",
|
|
507
|
+
defaultsMode,
|
|
508
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
509
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
510
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
511
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
512
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(Retry.v2026 ? { ...NODE_MAX_ATTEMPT_CONFIG_OPTIONS, default: 4 } : NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
513
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
514
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
515
|
+
retryMode: config?.retryMode ??
|
|
516
|
+
loadConfig({
|
|
517
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
518
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
519
|
+
}, config),
|
|
520
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
521
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
522
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
523
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
524
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
525
|
+
};
|
|
526
|
+
};
|
|
527
|
+
|
|
34
528
|
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
529
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
530
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -200,15 +694,50 @@ const ShardIteratorType = {
|
|
|
200
694
|
TRIM_HORIZON: "TRIM_HORIZON",
|
|
201
695
|
};
|
|
202
696
|
|
|
697
|
+
exports.AttributeValue$ = AttributeValue$;
|
|
698
|
+
exports.DescribeStream$ = DescribeStream$;
|
|
203
699
|
exports.DescribeStreamCommand = DescribeStreamCommand;
|
|
700
|
+
exports.DescribeStreamInput$ = DescribeStreamInput$;
|
|
701
|
+
exports.DescribeStreamOutput$ = DescribeStreamOutput$;
|
|
204
702
|
exports.DynamoDBStreams = DynamoDBStreams;
|
|
205
703
|
exports.DynamoDBStreamsClient = DynamoDBStreamsClient;
|
|
704
|
+
exports.DynamoDBStreamsServiceException = DynamoDBStreamsServiceException;
|
|
705
|
+
exports.DynamoDBStreamsServiceException$ = DynamoDBStreamsServiceException$;
|
|
706
|
+
exports.ExpiredIteratorException = ExpiredIteratorException;
|
|
707
|
+
exports.ExpiredIteratorException$ = ExpiredIteratorException$;
|
|
708
|
+
exports.GetRecords$ = GetRecords$;
|
|
206
709
|
exports.GetRecordsCommand = GetRecordsCommand;
|
|
710
|
+
exports.GetRecordsInput$ = GetRecordsInput$;
|
|
711
|
+
exports.GetRecordsOutput$ = GetRecordsOutput$;
|
|
712
|
+
exports.GetShardIterator$ = GetShardIterator$;
|
|
207
713
|
exports.GetShardIteratorCommand = GetShardIteratorCommand;
|
|
714
|
+
exports.GetShardIteratorInput$ = GetShardIteratorInput$;
|
|
715
|
+
exports.GetShardIteratorOutput$ = GetShardIteratorOutput$;
|
|
716
|
+
exports.Identity$ = Identity$;
|
|
717
|
+
exports.InternalServerError = InternalServerError;
|
|
718
|
+
exports.InternalServerError$ = InternalServerError$;
|
|
719
|
+
exports.KeySchemaElement$ = KeySchemaElement$;
|
|
208
720
|
exports.KeyType = KeyType;
|
|
721
|
+
exports.LimitExceededException = LimitExceededException;
|
|
722
|
+
exports.LimitExceededException$ = LimitExceededException$;
|
|
723
|
+
exports.ListStreams$ = ListStreams$;
|
|
209
724
|
exports.ListStreamsCommand = ListStreamsCommand;
|
|
725
|
+
exports.ListStreamsInput$ = ListStreamsInput$;
|
|
726
|
+
exports.ListStreamsOutput$ = ListStreamsOutput$;
|
|
210
727
|
exports.OperationType = OperationType;
|
|
728
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
729
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
730
|
+
exports.SequenceNumberRange$ = SequenceNumberRange$;
|
|
731
|
+
exports.Shard$ = Shard$;
|
|
732
|
+
exports.ShardFilter$ = ShardFilter$;
|
|
211
733
|
exports.ShardFilterType = ShardFilterType;
|
|
212
734
|
exports.ShardIteratorType = ShardIteratorType;
|
|
735
|
+
exports.StreamDescription$ = StreamDescription$;
|
|
736
|
+
exports.StreamRecord$ = StreamRecord$;
|
|
213
737
|
exports.StreamStatus = StreamStatus;
|
|
214
738
|
exports.StreamViewType = StreamViewType;
|
|
739
|
+
exports.TrimmedDataAccessException = TrimmedDataAccessException;
|
|
740
|
+
exports.TrimmedDataAccessException$ = TrimmedDataAccessException$;
|
|
741
|
+
exports._Record$ = _Record$;
|
|
742
|
+
exports._Stream$ = _Stream$;
|
|
743
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|
|
@@ -14,7 +14,7 @@ export declare const getRuntimeConfig: (config: DynamoDBStreamsClientConfig) =>
|
|
|
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: DynamoDBStreamsClientConfig) =>
|
|
|
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: DynamoDBStreamsClientConfig) =>
|
|
|
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-dynamodb-streams",
|
|
3
3
|
"description": "AWS SDK for JavaScript Dynamodb Streams 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",
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
30
|
-
"@aws-sdk/core": "^3.974.
|
|
31
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
32
|
-
"@aws-sdk/types": "^3.973.
|
|
33
|
-
"@smithy/core": "^3.
|
|
34
|
-
"@smithy/fetch-http-handler": "^5.
|
|
35
|
-
"@smithy/node-http-handler": "^4.
|
|
36
|
-
"@smithy/types": "^4.
|
|
30
|
+
"@aws-sdk/core": "^3.974.24",
|
|
31
|
+
"@aws-sdk/credential-provider-node": "^3.972.59",
|
|
32
|
+
"@aws-sdk/types": "^3.973.14",
|
|
33
|
+
"@smithy/core": "^3.27.0",
|
|
34
|
+
"@smithy/fetch-http-handler": "^5.6.0",
|
|
35
|
+
"@smithy/node-http-handler": "^4.9.0",
|
|
36
|
+
"@smithy/types": "^4.15.0",
|
|
37
37
|
"tslib": "^2.6.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@smithy/snapshot-testing": "^2.
|
|
40
|
+
"@smithy/snapshot-testing": "^2.2.3",
|
|
41
41
|
"@tsconfig/node20": "20.1.8",
|
|
42
42
|
"@types/node": "^20.14.8",
|
|
43
43
|
"concurrently": "7.0.0",
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
-
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
3
|
-
exports.defaultDynamoDBStreamsHttpAuthSchemeParametersProvider = 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: "dynamodb",
|
|
16
|
-
region: authParameters.region,
|
|
17
|
-
},
|
|
18
|
-
propertiesExtractor: (config, context) => ({
|
|
19
|
-
signingProperties: {
|
|
20
|
-
config,
|
|
21
|
-
context,
|
|
22
|
-
},
|
|
23
|
-
}),
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
exports.defaultDynamoDBStreamsHttpAuthSchemeProvider = (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,57 +0,0 @@
|
|
|
1
|
-
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
2
|
-
const m = "ref";
|
|
3
|
-
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "stringEquals", g = "getAttr", h = { [m]: "Endpoint" }, i = { "fn": g, "argv": [{ [m]: d }, "name"] }, j = { [m]: d }, k = {}, l = [{ [m]: "Region" }];
|
|
4
|
-
const _data = {
|
|
5
|
-
conditions: [
|
|
6
|
-
[c, [h]],
|
|
7
|
-
[c, l],
|
|
8
|
-
["aws.partition", l, d],
|
|
9
|
-
[e, [{ [m]: "UseDualStack" }, b]],
|
|
10
|
-
[f, [i, "aws-us-gov"]],
|
|
11
|
-
[f, [i, "aws"]],
|
|
12
|
-
[f, [i, "aws-cn"]],
|
|
13
|
-
[e, [{ fn: g, argv: [j, "supportsDualStack"] }, b]],
|
|
14
|
-
[e, [{ [m]: "UseFIPS" }, b]],
|
|
15
|
-
[e, [{ fn: g, argv: [j, "supportsFIPS"] }, b]]
|
|
16
|
-
],
|
|
17
|
-
results: [
|
|
18
|
-
[a],
|
|
19
|
-
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
20
|
-
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
21
|
-
[h, k],
|
|
22
|
-
["https://streams-dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
23
|
-
["https://streams-dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
24
|
-
["https://streams.dynamodb.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
25
|
-
["https://streams.dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
26
|
-
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
27
|
-
["https://streams.dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
28
|
-
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
29
|
-
["https://streams.dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
30
|
-
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
31
|
-
[a, "Invalid Configuration: Missing Region"]
|
|
32
|
-
]
|
|
33
|
-
};
|
|
34
|
-
const root = 2;
|
|
35
|
-
const r = 100_000_000;
|
|
36
|
-
const nodes = new Int32Array([
|
|
37
|
-
-1, 1, -1,
|
|
38
|
-
0, 17, 3,
|
|
39
|
-
1, 4, r + 13,
|
|
40
|
-
2, 5, r + 13,
|
|
41
|
-
3, 9, 6,
|
|
42
|
-
4, r + 6, 7,
|
|
43
|
-
8, 8, r + 6,
|
|
44
|
-
9, r + 9, r + 10,
|
|
45
|
-
4, 16, 10,
|
|
46
|
-
5, 16, 11,
|
|
47
|
-
6, 16, 12,
|
|
48
|
-
7, 14, 13,
|
|
49
|
-
8, r + 8, r + 12,
|
|
50
|
-
8, 15, r + 11,
|
|
51
|
-
9, r + 7, r + 8,
|
|
52
|
-
8, r + 5, r + 4,
|
|
53
|
-
3, 19, 18,
|
|
54
|
-
8, r + 1, r + 3,
|
|
55
|
-
8, r + 1, r + 2,
|
|
56
|
-
]);
|
|
57
|
-
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", "UseDualStack", "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.DynamoDBStreamsServiceException = class DynamoDBStreamsServiceException extends __ServiceException {
|
|
4
|
-
constructor(options) {
|
|
5
|
-
super(options);
|
|
6
|
-
Object.setPrototypeOf(this, DynamoDBStreamsServiceException.prototype);
|
|
7
|
-
}
|
|
8
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
const { DynamoDBStreamsServiceException: __BaseException } = require("./DynamoDBStreamsServiceException");
|
|
2
|
-
exports.InternalServerError = class InternalServerError extends __BaseException {
|
|
3
|
-
name = "InternalServerError";
|
|
4
|
-
$fault = "server";
|
|
5
|
-
constructor(opts) {
|
|
6
|
-
super({
|
|
7
|
-
name: "InternalServerError",
|
|
8
|
-
$fault: "server",
|
|
9
|
-
...opts,
|
|
10
|
-
});
|
|
11
|
-
Object.setPrototypeOf(this, InternalServerError.prototype);
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
|
|
15
|
-
name = "ResourceNotFoundException";
|
|
16
|
-
$fault = "client";
|
|
17
|
-
constructor(opts) {
|
|
18
|
-
super({
|
|
19
|
-
name: "ResourceNotFoundException",
|
|
20
|
-
$fault: "client",
|
|
21
|
-
...opts,
|
|
22
|
-
});
|
|
23
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
exports.ExpiredIteratorException = class ExpiredIteratorException extends __BaseException {
|
|
27
|
-
name = "ExpiredIteratorException";
|
|
28
|
-
$fault = "client";
|
|
29
|
-
constructor(opts) {
|
|
30
|
-
super({
|
|
31
|
-
name: "ExpiredIteratorException",
|
|
32
|
-
$fault: "client",
|
|
33
|
-
...opts,
|
|
34
|
-
});
|
|
35
|
-
Object.setPrototypeOf(this, ExpiredIteratorException.prototype);
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
exports.LimitExceededException = class LimitExceededException extends __BaseException {
|
|
39
|
-
name = "LimitExceededException";
|
|
40
|
-
$fault = "client";
|
|
41
|
-
constructor(opts) {
|
|
42
|
-
super({
|
|
43
|
-
name: "LimitExceededException",
|
|
44
|
-
$fault: "client",
|
|
45
|
-
...opts,
|
|
46
|
-
});
|
|
47
|
-
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
exports.TrimmedDataAccessException = class TrimmedDataAccessException extends __BaseException {
|
|
51
|
-
name = "TrimmedDataAccessException";
|
|
52
|
-
$fault = "client";
|
|
53
|
-
constructor(opts) {
|
|
54
|
-
super({
|
|
55
|
-
name: "TrimmedDataAccessException",
|
|
56
|
-
$fault: "client",
|
|
57
|
-
...opts,
|
|
58
|
-
});
|
|
59
|
-
Object.setPrototypeOf(this, TrimmedDataAccessException.prototype);
|
|
60
|
-
}
|
|
61
|
-
};
|
|
@@ -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, Retry } = 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 ?? (Retry.v2026 ? 4 : 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, Retry } = 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(Retry.v2026 ? { ...NODE_MAX_ATTEMPT_CONFIG_OPTIONS, default: 4 } : 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,39 +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 { defaultDynamoDBStreamsHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
|
|
7
|
-
const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
|
|
8
|
-
const { errorTypeRegistries } = require("./schemas/schemas_0");
|
|
9
|
-
exports.getRuntimeConfig = (config) => {
|
|
10
|
-
return {
|
|
11
|
-
apiVersion: "2012-08-10",
|
|
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 ?? defaultDynamoDBStreamsHttpAuthSchemeProvider,
|
|
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.dynamodbstreams",
|
|
29
|
-
errorTypeRegistries,
|
|
30
|
-
xmlNamespace: "http://dynamodb.amazonaws.com/doc/2012-08-10/",
|
|
31
|
-
version: "2012-08-10",
|
|
32
|
-
serviceTarget: "DynamoDBStreams_20120810",
|
|
33
|
-
},
|
|
34
|
-
serviceId: config?.serviceId ?? "DynamoDB Streams",
|
|
35
|
-
urlParser: config?.urlParser ?? parseUrl,
|
|
36
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
37
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
38
|
-
};
|
|
39
|
-
};
|
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
const _ACDT = "ApproximateCreationDateTime";
|
|
2
|
-
const _AM = "AttributeMap";
|
|
3
|
-
const _AN = "AttributeName";
|
|
4
|
-
const _AV = "AttributeValue";
|
|
5
|
-
const _B = "B";
|
|
6
|
-
const _BOOL = "BOOL";
|
|
7
|
-
const _BS = "BS";
|
|
8
|
-
const _CRDT = "CreationRequestDateTime";
|
|
9
|
-
const _DS = "DescribeStream";
|
|
10
|
-
const _DSI = "DescribeStreamInput";
|
|
11
|
-
const _DSO = "DescribeStreamOutput";
|
|
12
|
-
const _EIE = "ExpiredIteratorException";
|
|
13
|
-
const _ESN = "EndingSequenceNumber";
|
|
14
|
-
const _ESSA = "ExclusiveStartStreamArn";
|
|
15
|
-
const _ESSI = "ExclusiveStartShardId";
|
|
16
|
-
const _GR = "GetRecords";
|
|
17
|
-
const _GRI = "GetRecordsInput";
|
|
18
|
-
const _GRO = "GetRecordsOutput";
|
|
19
|
-
const _GSI = "GetShardIterator";
|
|
20
|
-
const _GSII = "GetShardIteratorInput";
|
|
21
|
-
const _GSIO = "GetShardIteratorOutput";
|
|
22
|
-
const _I = "Identity";
|
|
23
|
-
const _ISE = "InternalServerError";
|
|
24
|
-
const _K = "Keys";
|
|
25
|
-
const _KS = "KeySchema";
|
|
26
|
-
const _KSE = "KeySchemaElement";
|
|
27
|
-
const _KT = "KeyType";
|
|
28
|
-
const _L = "Limit";
|
|
29
|
-
const _LAV = "ListAttributeValue";
|
|
30
|
-
const _LEE = "LimitExceededException";
|
|
31
|
-
const _LESA = "LastEvaluatedStreamArn";
|
|
32
|
-
const _LESI = "LastEvaluatedShardId";
|
|
33
|
-
const _LS = "ListStreams";
|
|
34
|
-
const _LSI = "ListStreamsInput";
|
|
35
|
-
const _LSO = "ListStreamsOutput";
|
|
36
|
-
const _L_ = "L";
|
|
37
|
-
const _M = "M";
|
|
38
|
-
const _MAV = "MapAttributeValue";
|
|
39
|
-
const _N = "N";
|
|
40
|
-
const _NI = "NewImage";
|
|
41
|
-
const _NS = "NS";
|
|
42
|
-
const _NSI = "NextShardIterator";
|
|
43
|
-
const _NULL = "NULL";
|
|
44
|
-
const _OI = "OldImage";
|
|
45
|
-
const _PI = "PrincipalId";
|
|
46
|
-
const _PSI = "ParentShardId";
|
|
47
|
-
const _R = "Records";
|
|
48
|
-
const _RL = "RecordList";
|
|
49
|
-
const _RNFE = "ResourceNotFoundException";
|
|
50
|
-
const _Re = "Record";
|
|
51
|
-
const _S = "Streams";
|
|
52
|
-
const _SA = "StreamArn";
|
|
53
|
-
const _SB = "SizeBytes";
|
|
54
|
-
const _SD = "StreamDescription";
|
|
55
|
-
const _SDL = "ShardDescriptionList";
|
|
56
|
-
const _SF = "ShardFilter";
|
|
57
|
-
const _SI = "ShardIterator";
|
|
58
|
-
const _SIT = "ShardIteratorType";
|
|
59
|
-
const _SIh = "ShardId";
|
|
60
|
-
const _SL = "StreamLabel";
|
|
61
|
-
const _SLt = "StreamList";
|
|
62
|
-
const _SN = "SequenceNumber";
|
|
63
|
-
const _SNR = "SequenceNumberRange";
|
|
64
|
-
const _SR = "StreamRecord";
|
|
65
|
-
const _SS = "StreamStatus";
|
|
66
|
-
const _SSN = "StartingSequenceNumber";
|
|
67
|
-
const _SS_ = "SS";
|
|
68
|
-
const _SVT = "StreamViewType";
|
|
69
|
-
const _S_ = "S";
|
|
70
|
-
const _Sh = "Shard";
|
|
71
|
-
const _Sha = "Shards";
|
|
72
|
-
const _St = "Stream";
|
|
73
|
-
const _T = "Type";
|
|
74
|
-
const _TDAE = "TrimmedDataAccessException";
|
|
75
|
-
const _TN = "TableName";
|
|
76
|
-
const _aR = "awsRegion";
|
|
77
|
-
const _c = "client";
|
|
78
|
-
const _d = "dynamodb";
|
|
79
|
-
const _e = "error";
|
|
80
|
-
const _eID = "eventID";
|
|
81
|
-
const _eN = "eventName";
|
|
82
|
-
const _eS = "eventSource";
|
|
83
|
-
const _eV = "eventVersion";
|
|
84
|
-
const _m = "message";
|
|
85
|
-
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.dynamodbstreams";
|
|
86
|
-
const _se = "server";
|
|
87
|
-
const _uI = "userIdentity";
|
|
88
|
-
const n0 = "com.amazonaws.dynamodbstreams";
|
|
89
|
-
const { TypeRegistry } = require("@smithy/core/schema");
|
|
90
|
-
const { DynamoDBStreamsServiceException } = require("../models/DynamoDBStreamsServiceException");
|
|
91
|
-
const { ExpiredIteratorException, InternalServerError, LimitExceededException, ResourceNotFoundException, TrimmedDataAccessException } = require("../models/errors");
|
|
92
|
-
const _s_registry = TypeRegistry.for(_s);
|
|
93
|
-
const DynamoDBStreamsServiceException$ = [-3, _s, "DynamoDBStreamsServiceException", 0, [], []];
|
|
94
|
-
exports.DynamoDBStreamsServiceException$ = DynamoDBStreamsServiceException$;
|
|
95
|
-
_s_registry.registerError(DynamoDBStreamsServiceException$, DynamoDBStreamsServiceException);
|
|
96
|
-
const n0_registry = TypeRegistry.for(n0);
|
|
97
|
-
const ExpiredIteratorException$ = [-3, n0, _EIE,
|
|
98
|
-
{ [_e]: _c },
|
|
99
|
-
[_m],
|
|
100
|
-
[0]
|
|
101
|
-
];
|
|
102
|
-
exports.ExpiredIteratorException$ = ExpiredIteratorException$;
|
|
103
|
-
n0_registry.registerError(ExpiredIteratorException$, ExpiredIteratorException);
|
|
104
|
-
const InternalServerError$ = [-3, n0, _ISE,
|
|
105
|
-
{ [_e]: _se },
|
|
106
|
-
[_m],
|
|
107
|
-
[0]
|
|
108
|
-
];
|
|
109
|
-
exports.InternalServerError$ = InternalServerError$;
|
|
110
|
-
n0_registry.registerError(InternalServerError$, InternalServerError);
|
|
111
|
-
const LimitExceededException$ = [-3, n0, _LEE,
|
|
112
|
-
{ [_e]: _c },
|
|
113
|
-
[_m],
|
|
114
|
-
[0]
|
|
115
|
-
];
|
|
116
|
-
exports.LimitExceededException$ = LimitExceededException$;
|
|
117
|
-
n0_registry.registerError(LimitExceededException$, LimitExceededException);
|
|
118
|
-
const ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
119
|
-
{ [_e]: _c },
|
|
120
|
-
[_m],
|
|
121
|
-
[0]
|
|
122
|
-
];
|
|
123
|
-
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
124
|
-
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
125
|
-
const TrimmedDataAccessException$ = [-3, n0, _TDAE,
|
|
126
|
-
{ [_e]: _c },
|
|
127
|
-
[_m],
|
|
128
|
-
[0]
|
|
129
|
-
];
|
|
130
|
-
exports.TrimmedDataAccessException$ = TrimmedDataAccessException$;
|
|
131
|
-
n0_registry.registerError(TrimmedDataAccessException$, TrimmedDataAccessException);
|
|
132
|
-
exports.errorTypeRegistries = [
|
|
133
|
-
_s_registry,
|
|
134
|
-
n0_registry,
|
|
135
|
-
];
|
|
136
|
-
const DescribeStreamInput$ = [3, n0, _DSI,
|
|
137
|
-
0,
|
|
138
|
-
[_SA, _L, _ESSI, _SF],
|
|
139
|
-
[0, 1, 0, () => ShardFilter$], 1
|
|
140
|
-
];
|
|
141
|
-
exports.DescribeStreamInput$ = DescribeStreamInput$;
|
|
142
|
-
const DescribeStreamOutput$ = [3, n0, _DSO,
|
|
143
|
-
0,
|
|
144
|
-
[_SD],
|
|
145
|
-
[() => StreamDescription$]
|
|
146
|
-
];
|
|
147
|
-
exports.DescribeStreamOutput$ = DescribeStreamOutput$;
|
|
148
|
-
const GetRecordsInput$ = [3, n0, _GRI,
|
|
149
|
-
0,
|
|
150
|
-
[_SI, _L],
|
|
151
|
-
[0, 1], 1
|
|
152
|
-
];
|
|
153
|
-
exports.GetRecordsInput$ = GetRecordsInput$;
|
|
154
|
-
const GetRecordsOutput$ = [3, n0, _GRO,
|
|
155
|
-
0,
|
|
156
|
-
[_R, _NSI],
|
|
157
|
-
[() => RecordList, 0]
|
|
158
|
-
];
|
|
159
|
-
exports.GetRecordsOutput$ = GetRecordsOutput$;
|
|
160
|
-
const GetShardIteratorInput$ = [3, n0, _GSII,
|
|
161
|
-
0,
|
|
162
|
-
[_SA, _SIh, _SIT, _SN],
|
|
163
|
-
[0, 0, 0, 0], 3
|
|
164
|
-
];
|
|
165
|
-
exports.GetShardIteratorInput$ = GetShardIteratorInput$;
|
|
166
|
-
const GetShardIteratorOutput$ = [3, n0, _GSIO,
|
|
167
|
-
0,
|
|
168
|
-
[_SI],
|
|
169
|
-
[0]
|
|
170
|
-
];
|
|
171
|
-
exports.GetShardIteratorOutput$ = GetShardIteratorOutput$;
|
|
172
|
-
const Identity$ = [3, n0, _I,
|
|
173
|
-
0,
|
|
174
|
-
[_PI, _T],
|
|
175
|
-
[0, 0]
|
|
176
|
-
];
|
|
177
|
-
exports.Identity$ = Identity$;
|
|
178
|
-
const KeySchemaElement$ = [3, n0, _KSE,
|
|
179
|
-
0,
|
|
180
|
-
[_AN, _KT],
|
|
181
|
-
[0, 0], 2
|
|
182
|
-
];
|
|
183
|
-
exports.KeySchemaElement$ = KeySchemaElement$;
|
|
184
|
-
const ListStreamsInput$ = [3, n0, _LSI,
|
|
185
|
-
0,
|
|
186
|
-
[_TN, _L, _ESSA],
|
|
187
|
-
[0, 1, 0]
|
|
188
|
-
];
|
|
189
|
-
exports.ListStreamsInput$ = ListStreamsInput$;
|
|
190
|
-
const ListStreamsOutput$ = [3, n0, _LSO,
|
|
191
|
-
0,
|
|
192
|
-
[_S, _LESA],
|
|
193
|
-
[() => StreamList, 0]
|
|
194
|
-
];
|
|
195
|
-
exports.ListStreamsOutput$ = ListStreamsOutput$;
|
|
196
|
-
const _Record$ = [3, n0, _Re,
|
|
197
|
-
0,
|
|
198
|
-
[_eID, _eN, _eV, _eS, _aR, _d, _uI],
|
|
199
|
-
[0, 0, 0, 0, 0, () => StreamRecord$, () => Identity$]
|
|
200
|
-
];
|
|
201
|
-
exports._Record$ = _Record$;
|
|
202
|
-
const SequenceNumberRange$ = [3, n0, _SNR,
|
|
203
|
-
0,
|
|
204
|
-
[_SSN, _ESN],
|
|
205
|
-
[0, 0]
|
|
206
|
-
];
|
|
207
|
-
exports.SequenceNumberRange$ = SequenceNumberRange$;
|
|
208
|
-
const Shard$ = [3, n0, _Sh,
|
|
209
|
-
0,
|
|
210
|
-
[_SIh, _SNR, _PSI],
|
|
211
|
-
[0, () => SequenceNumberRange$, 0]
|
|
212
|
-
];
|
|
213
|
-
exports.Shard$ = Shard$;
|
|
214
|
-
const ShardFilter$ = [3, n0, _SF,
|
|
215
|
-
0,
|
|
216
|
-
[_T, _SIh],
|
|
217
|
-
[0, 0]
|
|
218
|
-
];
|
|
219
|
-
exports.ShardFilter$ = ShardFilter$;
|
|
220
|
-
const _Stream$ = [3, n0, _St,
|
|
221
|
-
0,
|
|
222
|
-
[_SA, _TN, _SL],
|
|
223
|
-
[0, 0, 0]
|
|
224
|
-
];
|
|
225
|
-
exports._Stream$ = _Stream$;
|
|
226
|
-
const StreamDescription$ = [3, n0, _SD,
|
|
227
|
-
0,
|
|
228
|
-
[_SA, _SL, _SS, _SVT, _CRDT, _TN, _KS, _Sha, _LESI],
|
|
229
|
-
[0, 0, 0, 0, 4, 0, () => KeySchema, () => ShardDescriptionList, 0]
|
|
230
|
-
];
|
|
231
|
-
exports.StreamDescription$ = StreamDescription$;
|
|
232
|
-
const StreamRecord$ = [3, n0, _SR,
|
|
233
|
-
0,
|
|
234
|
-
[_ACDT, _K, _NI, _OI, _SN, _SB, _SVT],
|
|
235
|
-
[4, () => AttributeMap, () => AttributeMap, () => AttributeMap, 0, 1, 0]
|
|
236
|
-
];
|
|
237
|
-
exports.StreamRecord$ = StreamRecord$;
|
|
238
|
-
var BinarySetAttributeValue = 64 | 21;
|
|
239
|
-
var KeySchema = [1, n0, _KS,
|
|
240
|
-
0, () => KeySchemaElement$
|
|
241
|
-
];
|
|
242
|
-
var ListAttributeValue = [1, n0, _LAV,
|
|
243
|
-
0, () => AttributeValue$
|
|
244
|
-
];
|
|
245
|
-
var NumberSetAttributeValue = 64 | 0;
|
|
246
|
-
var RecordList = [1, n0, _RL,
|
|
247
|
-
0, () => _Record$
|
|
248
|
-
];
|
|
249
|
-
var ShardDescriptionList = [1, n0, _SDL,
|
|
250
|
-
0, () => Shard$
|
|
251
|
-
];
|
|
252
|
-
var StreamList = [1, n0, _SLt,
|
|
253
|
-
0, () => _Stream$
|
|
254
|
-
];
|
|
255
|
-
var StringSetAttributeValue = 64 | 0;
|
|
256
|
-
var AttributeMap = [2, n0, _AM,
|
|
257
|
-
0, 0, () => AttributeValue$
|
|
258
|
-
];
|
|
259
|
-
var MapAttributeValue = [2, n0, _MAV,
|
|
260
|
-
0, 0, () => AttributeValue$
|
|
261
|
-
];
|
|
262
|
-
const AttributeValue$ = [4, n0, _AV,
|
|
263
|
-
0,
|
|
264
|
-
[_S_, _N, _B, _SS_, _NS, _BS, _M, _L_, _NULL, _BOOL],
|
|
265
|
-
[0, 0, 21, 64 | 0, 64 | 0, 64 | 21, () => MapAttributeValue, () => ListAttributeValue, 2, 2]
|
|
266
|
-
];
|
|
267
|
-
exports.AttributeValue$ = AttributeValue$;
|
|
268
|
-
exports.DescribeStream$ = [9, n0, _DS,
|
|
269
|
-
0, () => DescribeStreamInput$, () => DescribeStreamOutput$
|
|
270
|
-
];
|
|
271
|
-
exports.GetRecords$ = [9, n0, _GR,
|
|
272
|
-
0, () => GetRecordsInput$, () => GetRecordsOutput$
|
|
273
|
-
];
|
|
274
|
-
exports.GetShardIterator$ = [9, n0, _GSI,
|
|
275
|
-
0, () => GetShardIteratorInput$, () => GetShardIteratorOutput$
|
|
276
|
-
];
|
|
277
|
-
exports.ListStreams$ = [9, n0, _LS,
|
|
278
|
-
0, () => ListStreamsInput$, () => ListStreamsOutput$
|
|
279
|
-
];
|