@aws-sdk/client-dynamodb-streams 3.1168.0 → 3.1170.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 +204 -50
- package/dist-es/DynamoDBStreamsClient.js +10 -8
- package/dist-es/commandBuilder.js +7 -1
- package/dist-es/commands/GetRecordsCommand.js +2 -2
- package/dist-es/commands/ListStreamsCommand.js +2 -2
- package/dist-es/endpoint/EndpointParameters.js +2 -0
- package/dist-es/endpoint/bdd.js +171 -37
- package/dist-es/endpoint/endpointResolver.js +10 -1
- package/dist-es/runtimeConfig.browser.js +2 -0
- package/dist-es/runtimeConfig.js +2 -0
- package/dist-types/DynamoDBStreamsClient.d.ts +7 -2
- package/dist-types/commandBuilder.d.ts +8 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +16 -2
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/DynamoDBStreamsClient.d.ts +8 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +16 -2
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +8 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
const { NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS, resolveAccountIdEndpointModeConfig } = require("@aws-sdk/core/account-id-endpoint");
|
|
1
2
|
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, getDefaultSocketTimeout, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
2
3
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
|
|
3
4
|
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
|
|
@@ -64,44 +65,78 @@ const resolveClientEndpointParameters = (options) => {
|
|
|
64
65
|
};
|
|
65
66
|
const commonParams = {
|
|
66
67
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
68
|
+
AccountId: { type: "builtInParams", name: "accountId" },
|
|
67
69
|
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
68
70
|
Region: { type: "builtInParams", name: "region" },
|
|
69
71
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
72
|
+
AccountIdEndpointMode: { type: "builtInParams", name: "accountIdEndpointMode" },
|
|
70
73
|
};
|
|
71
74
|
|
|
72
|
-
var version = "3.
|
|
75
|
+
var version = "3.1169.0";
|
|
73
76
|
var packageInfo = {
|
|
74
77
|
version: version};
|
|
75
78
|
|
|
76
|
-
const
|
|
77
|
-
const a = -1, b = true, c =
|
|
79
|
+
const G = "ref", H = "argv";
|
|
80
|
+
const a = -1, b = true, c = false, d = "isSet", e = "PartitionResult", f = "booleanEquals", g = "getAttr", h = "stringEquals", i = "aws.parseArn", j = (n) => "ParsedArn_ssa_" + n + "", k = "service", l = "dynamodb", m = "isValidHostLabel", n = "accountId", o = (n) => "https://{ParsedArn_ssa_" + n + "#accountId}.streams-ddb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", p = (n) => "https://{ParsedArn_ssa_" + n + "#accountId}.streams-ddb-fips.{Region}.{PartitionResult#dnsSuffix}", q = (n) => "https://{ParsedArn_ssa_" + n + "#accountId}.streams-ddb.{Region}.{PartitionResult#dualStackDnsSuffix}", s = (n) => "https://{ParsedArn_ssa_" + n + "#accountId}.streams-ddb.{Region}.{PartitionResult#dnsSuffix}", t = { [G]: e }, u = { [G]: "AccountIdEndpointMode" }, v = { [G]: "Region" }, w = { "fn": g, [H]: [t, "name"] }, x = { "fn": g, [H]: [{ [G]: "ParsedArn_ssa_2" }, "region"] }, y = { [G]: "ParsedArn_ssa_2" }, z = { "fn": g, [H]: [{ [G]: "ParsedArn_ssa_1" }, "region"] }, A = { [G]: "ParsedArn_ssa_1" }, B = { [G]: "AccountId" }, C = {}, D = [v], E = [{ [G]: "StreamArn" }], F = [{ [G]: "ShardIterator" }];
|
|
78
81
|
const _data = {
|
|
79
82
|
conditions: [
|
|
80
|
-
[
|
|
81
|
-
[
|
|
82
|
-
["aws.partition",
|
|
83
|
-
[
|
|
84
|
-
[f, [
|
|
85
|
-
[f, [
|
|
86
|
-
[f, [
|
|
87
|
-
[
|
|
88
|
-
[
|
|
89
|
-
[
|
|
83
|
+
[d, [{ [G]: "Endpoint" }]],
|
|
84
|
+
[d, D],
|
|
85
|
+
["aws.partition", D, e],
|
|
86
|
+
[f, [{ [G]: "UseFIPS" }, b]],
|
|
87
|
+
[f, [{ [G]: "UseDualStack" }, b]],
|
|
88
|
+
[f, [{ fn: g, [H]: [t, "supportsDualStack"] }, b]],
|
|
89
|
+
[f, [{ fn: g, [H]: [t, "supportsFIPS"] }, b]],
|
|
90
|
+
[d, [u]],
|
|
91
|
+
[h, [v, "me-south-1"]],
|
|
92
|
+
[h, [v, "me-central-1"]],
|
|
93
|
+
[h, [w, "aws-us-gov"]],
|
|
94
|
+
[h, [w, "aws"]],
|
|
95
|
+
[h, [w, "aws-cn"]],
|
|
96
|
+
[h, [u, "disabled"]],
|
|
97
|
+
[d, E],
|
|
98
|
+
[i, E, j(2)],
|
|
99
|
+
[h, [x, v]],
|
|
100
|
+
[h, [{ fn: g, [H]: [y, k] }, l]],
|
|
101
|
+
[m, [{ fn: g, [H]: [y, n] }, c]],
|
|
102
|
+
[m, [x, c]],
|
|
103
|
+
[d, F],
|
|
104
|
+
[i, F, j(1)],
|
|
105
|
+
[h, [z, v]],
|
|
106
|
+
[h, [{ fn: g, [H]: [A, k] }, l]],
|
|
107
|
+
[m, [z, c]],
|
|
108
|
+
[m, [{ fn: g, [H]: [A, n] }, c]],
|
|
109
|
+
[d, [B]],
|
|
110
|
+
[h, [u, "required"]],
|
|
111
|
+
[m, [B, c]]
|
|
90
112
|
],
|
|
91
113
|
results: [
|
|
92
114
|
[a],
|
|
93
115
|
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
94
116
|
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
95
|
-
[
|
|
96
|
-
["
|
|
97
|
-
["https://streams-dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
98
|
-
[
|
|
99
|
-
[
|
|
117
|
+
["{Endpoint}", C],
|
|
118
|
+
[a, "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this region"],
|
|
119
|
+
["https://streams-dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", C],
|
|
120
|
+
[o(2), C],
|
|
121
|
+
[o(1), C],
|
|
122
|
+
["https://{AccountId}.streams-ddb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", C],
|
|
123
|
+
[a, "Credentials-sourced account ID parameter is invalid"],
|
|
124
|
+
[a, "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded"],
|
|
100
125
|
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
101
|
-
["https://streams.dynamodb
|
|
126
|
+
["https://streams.dynamodb.{Region}.{PartitionResult#dnsSuffix}", C],
|
|
127
|
+
[p(2), C],
|
|
128
|
+
[p(1), C],
|
|
129
|
+
["https://{AccountId}.streams-ddb-fips.{Region}.{PartitionResult#dnsSuffix}", C],
|
|
130
|
+
["https://streams.dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}", C],
|
|
102
131
|
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
103
|
-
["https://streams
|
|
132
|
+
["https://streams-dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}", C],
|
|
133
|
+
[q(2), C],
|
|
134
|
+
[q(1), C],
|
|
135
|
+
["https://{AccountId}.streams-ddb.{Region}.{PartitionResult#dualStackDnsSuffix}", C],
|
|
104
136
|
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
137
|
+
[s(2), C],
|
|
138
|
+
[s(1), C],
|
|
139
|
+
["https://{AccountId}.streams-ddb.{Region}.{PartitionResult#dnsSuffix}", C],
|
|
105
140
|
[a, "Invalid Configuration: Missing Region"]
|
|
106
141
|
]
|
|
107
142
|
};
|
|
@@ -109,30 +144,141 @@ const root = 2;
|
|
|
109
144
|
const r = 100_000_000;
|
|
110
145
|
const nodes = new Int32Array([
|
|
111
146
|
-1, 1, -1,
|
|
112
|
-
0,
|
|
113
|
-
1, 4, r +
|
|
114
|
-
2, 5, r +
|
|
115
|
-
3,
|
|
116
|
-
4,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
147
|
+
0, 120, 3,
|
|
148
|
+
1, 4, r + 26,
|
|
149
|
+
2, 5, r + 26,
|
|
150
|
+
3, 52, 6,
|
|
151
|
+
4, 28, 7,
|
|
152
|
+
7, 8, r + 12,
|
|
153
|
+
8, 94, 9,
|
|
154
|
+
9, 94, 10,
|
|
155
|
+
10, 13, 11,
|
|
156
|
+
11, 13, 12,
|
|
157
|
+
12, 13, 94,
|
|
158
|
+
13, 91, 14,
|
|
159
|
+
14, 15, 20,
|
|
160
|
+
15, 16, 20,
|
|
161
|
+
16, 17, 20,
|
|
162
|
+
17, 18, 20,
|
|
163
|
+
18, 19, 20,
|
|
164
|
+
19, r + 23, 20,
|
|
165
|
+
20, 21, 26,
|
|
166
|
+
21, 22, 26,
|
|
167
|
+
22, 23, 26,
|
|
168
|
+
23, 24, 26,
|
|
169
|
+
24, 25, 26,
|
|
170
|
+
25, r + 24, 26,
|
|
171
|
+
26, 27, 91,
|
|
172
|
+
28, r + 25, r + 9,
|
|
173
|
+
5, 29, r + 22,
|
|
174
|
+
7, 30, r + 18,
|
|
175
|
+
8, 51, 31,
|
|
176
|
+
9, 51, 32,
|
|
177
|
+
10, 35, 33,
|
|
178
|
+
11, 35, 34,
|
|
179
|
+
12, 35, 51,
|
|
180
|
+
13, 50, 36,
|
|
181
|
+
14, 37, 42,
|
|
182
|
+
15, 38, 42,
|
|
183
|
+
16, 39, 42,
|
|
184
|
+
17, 40, 42,
|
|
185
|
+
18, 41, 42,
|
|
186
|
+
19, r + 19, 42,
|
|
187
|
+
20, 43, 48,
|
|
188
|
+
21, 44, 48,
|
|
189
|
+
22, 45, 48,
|
|
190
|
+
23, 46, 48,
|
|
191
|
+
24, 47, 48,
|
|
192
|
+
25, r + 20, 48,
|
|
193
|
+
26, 49, 50,
|
|
194
|
+
28, r + 21, r + 9,
|
|
195
|
+
27, r + 10, r + 18,
|
|
196
|
+
27, r + 4, r + 18,
|
|
197
|
+
4, 95, 53,
|
|
198
|
+
6, 54, r + 17,
|
|
199
|
+
7, 56, 55,
|
|
200
|
+
10, r + 12, r + 16,
|
|
201
|
+
8, 92, 57,
|
|
202
|
+
9, 92, 58,
|
|
203
|
+
10, 76, 59,
|
|
204
|
+
11, 61, 60,
|
|
205
|
+
12, 61, 93,
|
|
206
|
+
13, 75, 62,
|
|
207
|
+
14, 63, 68,
|
|
208
|
+
15, 64, 68,
|
|
209
|
+
16, 65, 68,
|
|
210
|
+
17, 66, 68,
|
|
211
|
+
18, 67, 68,
|
|
212
|
+
19, r + 13, 68,
|
|
213
|
+
20, 69, 74,
|
|
214
|
+
21, 70, 74,
|
|
215
|
+
22, 71, 74,
|
|
216
|
+
23, 72, 74,
|
|
217
|
+
24, 73, 74,
|
|
218
|
+
25, r + 14, 74,
|
|
219
|
+
26, 90, 75,
|
|
220
|
+
27, r + 10, r + 16,
|
|
221
|
+
13, 91, 77,
|
|
222
|
+
14, 78, 83,
|
|
223
|
+
15, 79, 83,
|
|
224
|
+
16, 80, 83,
|
|
225
|
+
17, 81, 83,
|
|
226
|
+
18, 82, 83,
|
|
227
|
+
19, r + 13, 83,
|
|
228
|
+
20, 84, 89,
|
|
229
|
+
21, 85, 89,
|
|
230
|
+
22, 86, 89,
|
|
231
|
+
23, 87, 89,
|
|
232
|
+
24, 88, 89,
|
|
233
|
+
25, r + 14, 89,
|
|
234
|
+
26, 90, 91,
|
|
235
|
+
28, r + 15, r + 9,
|
|
236
|
+
27, r + 10, r + 12,
|
|
237
|
+
10, 94, 93,
|
|
238
|
+
27, r + 4, r + 16,
|
|
239
|
+
27, r + 4, r + 12,
|
|
240
|
+
5, 96, r + 11,
|
|
241
|
+
6, 97, r + 11,
|
|
242
|
+
7, 98, r + 5,
|
|
243
|
+
8, 119, 99,
|
|
244
|
+
9, 119, 100,
|
|
245
|
+
10, 103, 101,
|
|
246
|
+
11, 103, 102,
|
|
247
|
+
12, 103, 119,
|
|
248
|
+
13, 118, 104,
|
|
249
|
+
14, 105, 110,
|
|
250
|
+
15, 106, 110,
|
|
251
|
+
16, 107, 110,
|
|
252
|
+
17, 108, 110,
|
|
253
|
+
18, 109, 110,
|
|
254
|
+
19, r + 6, 110,
|
|
255
|
+
20, 111, 116,
|
|
256
|
+
21, 112, 116,
|
|
257
|
+
22, 113, 116,
|
|
258
|
+
23, 114, 116,
|
|
259
|
+
24, 115, 116,
|
|
260
|
+
25, r + 7, 116,
|
|
261
|
+
26, 117, 118,
|
|
262
|
+
28, r + 8, r + 9,
|
|
263
|
+
27, r + 10, r + 5,
|
|
264
|
+
27, r + 4, r + 5,
|
|
265
|
+
3, r + 1, 121,
|
|
266
|
+
4, r + 2, r + 3,
|
|
130
267
|
]);
|
|
131
268
|
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
132
269
|
|
|
133
270
|
const cache = new EndpointCache({
|
|
134
271
|
size: 50,
|
|
135
|
-
params: [
|
|
272
|
+
params: [
|
|
273
|
+
"AccountId",
|
|
274
|
+
"AccountIdEndpointMode",
|
|
275
|
+
"Endpoint",
|
|
276
|
+
"Region",
|
|
277
|
+
"ShardIterator",
|
|
278
|
+
"StreamArn",
|
|
279
|
+
"UseDualStack",
|
|
280
|
+
"UseFIPS",
|
|
281
|
+
],
|
|
136
282
|
});
|
|
137
283
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
138
284
|
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
@@ -515,6 +661,7 @@ const getRuntimeConfig = (config) => {
|
|
|
515
661
|
...config,
|
|
516
662
|
runtime: "node",
|
|
517
663
|
defaultsMode,
|
|
664
|
+
accountIdEndpointMode: config?.accountIdEndpointMode ?? loadConfig(NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS, loaderConfig),
|
|
518
665
|
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
519
666
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
520
667
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
@@ -587,14 +734,15 @@ class DynamoDBStreamsClient extends Client {
|
|
|
587
734
|
super(_config_0);
|
|
588
735
|
this.initConfig = _config_0;
|
|
589
736
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
590
|
-
const _config_2 =
|
|
591
|
-
const _config_3 =
|
|
592
|
-
const _config_4 =
|
|
593
|
-
const _config_5 =
|
|
594
|
-
const _config_6 =
|
|
595
|
-
const _config_7 =
|
|
596
|
-
const _config_8 =
|
|
597
|
-
|
|
737
|
+
const _config_2 = resolveAccountIdEndpointModeConfig(_config_1);
|
|
738
|
+
const _config_3 = resolveUserAgentConfig(_config_2);
|
|
739
|
+
const _config_4 = resolveRetryConfig(_config_3, { defaultBaseDelay: 25, defaultMaxAttempts: 4 });
|
|
740
|
+
const _config_5 = resolveRegionConfig(_config_4);
|
|
741
|
+
const _config_6 = resolveHostHeaderConfig(_config_5);
|
|
742
|
+
const _config_7 = resolveEndpointConfig(_config_6);
|
|
743
|
+
const _config_8 = resolveHttpAuthSchemeConfig(_config_7);
|
|
744
|
+
const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
|
|
745
|
+
this.config = _config_9;
|
|
598
746
|
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
599
747
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
600
748
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
@@ -616,19 +764,25 @@ class DynamoDBStreamsClient extends Client {
|
|
|
616
764
|
}
|
|
617
765
|
|
|
618
766
|
const command = makeBuilder(commonParams, "DynamoDBStreams_20120810", "DynamoDBStreamsClient", getEndpointPlugin);
|
|
619
|
-
const _ep0 = {
|
|
767
|
+
const _ep0 = {
|
|
768
|
+
StreamArn: { type: "contextParams", name: "StreamArn" },
|
|
769
|
+
};
|
|
770
|
+
const _ep1 = {
|
|
771
|
+
ShardIterator: { type: "contextParams", name: "ShardIterator" },
|
|
772
|
+
};
|
|
773
|
+
const _ep2 = {};
|
|
620
774
|
const _mw0 = (Command, cs, config, o) => [];
|
|
621
775
|
|
|
622
776
|
class DescribeStreamCommand extends command(_ep0, _mw0, "DescribeStream", DescribeStream$) {
|
|
623
777
|
}
|
|
624
778
|
|
|
625
|
-
class GetRecordsCommand extends command(
|
|
779
|
+
class GetRecordsCommand extends command(_ep1, _mw0, "GetRecords", GetRecords$) {
|
|
626
780
|
}
|
|
627
781
|
|
|
628
782
|
class GetShardIteratorCommand extends command(_ep0, _mw0, "GetShardIterator", GetShardIterator$) {
|
|
629
783
|
}
|
|
630
784
|
|
|
631
|
-
class ListStreamsCommand extends command(
|
|
785
|
+
class ListStreamsCommand extends command(_ep2, _mw0, "ListStreams", ListStreams$) {
|
|
632
786
|
}
|
|
633
787
|
|
|
634
788
|
const commands = {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { resolveAccountIdEndpointModeConfig, } from "@aws-sdk/core/account-id-endpoint";
|
|
1
2
|
import { getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, getUserAgentPlugin, resolveHostHeaderConfig, resolveUserAgentConfig, } from "@aws-sdk/core/client";
|
|
2
3
|
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
3
4
|
import { Client as __Client, } from "@smithy/core/client";
|
|
@@ -18,14 +19,15 @@ export class DynamoDBStreamsClient extends __Client {
|
|
|
18
19
|
super(_config_0);
|
|
19
20
|
this.initConfig = _config_0;
|
|
20
21
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
21
|
-
const _config_2 =
|
|
22
|
-
const _config_3 =
|
|
23
|
-
const _config_4 =
|
|
24
|
-
const _config_5 =
|
|
25
|
-
const _config_6 =
|
|
26
|
-
const _config_7 =
|
|
27
|
-
const _config_8 =
|
|
28
|
-
|
|
22
|
+
const _config_2 = resolveAccountIdEndpointModeConfig(_config_1);
|
|
23
|
+
const _config_3 = resolveUserAgentConfig(_config_2);
|
|
24
|
+
const _config_4 = resolveRetryConfig(_config_3, { defaultBaseDelay: 25, defaultMaxAttempts: 4 });
|
|
25
|
+
const _config_5 = resolveRegionConfig(_config_4);
|
|
26
|
+
const _config_6 = resolveHostHeaderConfig(_config_5);
|
|
27
|
+
const _config_7 = resolveEndpointConfig(_config_6);
|
|
28
|
+
const _config_8 = resolveHttpAuthSchemeConfig(_config_7);
|
|
29
|
+
const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
|
|
30
|
+
this.config = _config_9;
|
|
29
31
|
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
30
32
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
31
33
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
@@ -2,5 +2,11 @@ import { makeBuilder } from "@smithy/core/client";
|
|
|
2
2
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
3
|
import { commonParams } from "./endpoint/EndpointParameters";
|
|
4
4
|
export const command = makeBuilder(commonParams, "DynamoDBStreams_20120810", "DynamoDBStreamsClient", getEndpointPlugin);
|
|
5
|
-
export const _ep0 = {
|
|
5
|
+
export const _ep0 = {
|
|
6
|
+
StreamArn: { type: "contextParams", name: "StreamArn" },
|
|
7
|
+
};
|
|
8
|
+
export const _ep1 = {
|
|
9
|
+
ShardIterator: { type: "contextParams", name: "ShardIterator" },
|
|
10
|
+
};
|
|
11
|
+
export const _ep2 = {};
|
|
6
12
|
export const _mw0 = (Command, cs, config, o) => [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ep1, _mw0, command } from "../commandBuilder";
|
|
2
2
|
import { GetRecords$ } from "../schemas/schemas_0";
|
|
3
|
-
export class GetRecordsCommand extends command(
|
|
3
|
+
export class GetRecordsCommand extends command(_ep1, _mw0, "GetRecords", GetRecords$) {
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ep2, _mw0, command } from "../commandBuilder";
|
|
2
2
|
import { ListStreams$ } from "../schemas/schemas_0";
|
|
3
|
-
export class ListStreamsCommand extends command(
|
|
3
|
+
export class ListStreamsCommand extends command(_ep2, _mw0, "ListStreams", ListStreams$) {
|
|
4
4
|
}
|
|
@@ -7,7 +7,9 @@ export const resolveClientEndpointParameters = (options) => {
|
|
|
7
7
|
};
|
|
8
8
|
export const commonParams = {
|
|
9
9
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
AccountId: { type: "builtInParams", name: "accountId" },
|
|
10
11
|
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
12
|
Region: { type: "builtInParams", name: "region" },
|
|
12
13
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
AccountIdEndpointMode: { type: "builtInParams", name: "accountIdEndpointMode" },
|
|
13
15
|
};
|
package/dist-es/endpoint/bdd.js
CHANGED
|
@@ -1,33 +1,65 @@
|
|
|
1
1
|
import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
|
|
2
|
-
const
|
|
3
|
-
const a = -1, b = true, c =
|
|
2
|
+
const G = "ref", H = "argv";
|
|
3
|
+
const a = -1, b = true, c = false, d = "isSet", e = "PartitionResult", f = "booleanEquals", g = "getAttr", h = "stringEquals", i = "aws.parseArn", j = (n) => "ParsedArn_ssa_" + n + "", k = "service", l = "dynamodb", m = "isValidHostLabel", n = "accountId", o = (n) => "https://{ParsedArn_ssa_" + n + "#accountId}.streams-ddb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", p = (n) => "https://{ParsedArn_ssa_" + n + "#accountId}.streams-ddb-fips.{Region}.{PartitionResult#dnsSuffix}", q = (n) => "https://{ParsedArn_ssa_" + n + "#accountId}.streams-ddb.{Region}.{PartitionResult#dualStackDnsSuffix}", s = (n) => "https://{ParsedArn_ssa_" + n + "#accountId}.streams-ddb.{Region}.{PartitionResult#dnsSuffix}", t = { [G]: e }, u = { [G]: "AccountIdEndpointMode" }, v = { [G]: "Region" }, w = { "fn": g, [H]: [t, "name"] }, x = { "fn": g, [H]: [{ [G]: "ParsedArn_ssa_2" }, "region"] }, y = { [G]: "ParsedArn_ssa_2" }, z = { "fn": g, [H]: [{ [G]: "ParsedArn_ssa_1" }, "region"] }, A = { [G]: "ParsedArn_ssa_1" }, B = { [G]: "AccountId" }, C = {}, D = [v], E = [{ [G]: "StreamArn" }], F = [{ [G]: "ShardIterator" }];
|
|
4
4
|
const _data = {
|
|
5
5
|
conditions: [
|
|
6
|
-
[
|
|
7
|
-
[
|
|
8
|
-
["aws.partition",
|
|
9
|
-
[
|
|
10
|
-
[f, [
|
|
11
|
-
[f, [
|
|
12
|
-
[f, [
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
6
|
+
[d, [{ [G]: "Endpoint" }]],
|
|
7
|
+
[d, D],
|
|
8
|
+
["aws.partition", D, e],
|
|
9
|
+
[f, [{ [G]: "UseFIPS" }, b]],
|
|
10
|
+
[f, [{ [G]: "UseDualStack" }, b]],
|
|
11
|
+
[f, [{ fn: g, [H]: [t, "supportsDualStack"] }, b]],
|
|
12
|
+
[f, [{ fn: g, [H]: [t, "supportsFIPS"] }, b]],
|
|
13
|
+
[d, [u]],
|
|
14
|
+
[h, [v, "me-south-1"]],
|
|
15
|
+
[h, [v, "me-central-1"]],
|
|
16
|
+
[h, [w, "aws-us-gov"]],
|
|
17
|
+
[h, [w, "aws"]],
|
|
18
|
+
[h, [w, "aws-cn"]],
|
|
19
|
+
[h, [u, "disabled"]],
|
|
20
|
+
[d, E],
|
|
21
|
+
[i, E, j(2)],
|
|
22
|
+
[h, [x, v]],
|
|
23
|
+
[h, [{ fn: g, [H]: [y, k] }, l]],
|
|
24
|
+
[m, [{ fn: g, [H]: [y, n] }, c]],
|
|
25
|
+
[m, [x, c]],
|
|
26
|
+
[d, F],
|
|
27
|
+
[i, F, j(1)],
|
|
28
|
+
[h, [z, v]],
|
|
29
|
+
[h, [{ fn: g, [H]: [A, k] }, l]],
|
|
30
|
+
[m, [z, c]],
|
|
31
|
+
[m, [{ fn: g, [H]: [A, n] }, c]],
|
|
32
|
+
[d, [B]],
|
|
33
|
+
[h, [u, "required"]],
|
|
34
|
+
[m, [B, c]]
|
|
16
35
|
],
|
|
17
36
|
results: [
|
|
18
37
|
[a],
|
|
19
38
|
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
20
39
|
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
21
|
-
[
|
|
22
|
-
["
|
|
23
|
-
["https://streams-dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
24
|
-
[
|
|
25
|
-
[
|
|
40
|
+
["{Endpoint}", C],
|
|
41
|
+
[a, "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this region"],
|
|
42
|
+
["https://streams-dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", C],
|
|
43
|
+
[o(2), C],
|
|
44
|
+
[o(1), C],
|
|
45
|
+
["https://{AccountId}.streams-ddb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", C],
|
|
46
|
+
[a, "Credentials-sourced account ID parameter is invalid"],
|
|
47
|
+
[a, "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded"],
|
|
26
48
|
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
27
|
-
["https://streams.dynamodb
|
|
49
|
+
["https://streams.dynamodb.{Region}.{PartitionResult#dnsSuffix}", C],
|
|
50
|
+
[p(2), C],
|
|
51
|
+
[p(1), C],
|
|
52
|
+
["https://{AccountId}.streams-ddb-fips.{Region}.{PartitionResult#dnsSuffix}", C],
|
|
53
|
+
["https://streams.dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}", C],
|
|
28
54
|
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
29
|
-
["https://streams
|
|
55
|
+
["https://streams-dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}", C],
|
|
56
|
+
[q(2), C],
|
|
57
|
+
[q(1), C],
|
|
58
|
+
["https://{AccountId}.streams-ddb.{Region}.{PartitionResult#dualStackDnsSuffix}", C],
|
|
30
59
|
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
60
|
+
[s(2), C],
|
|
61
|
+
[s(1), C],
|
|
62
|
+
["https://{AccountId}.streams-ddb.{Region}.{PartitionResult#dnsSuffix}", C],
|
|
31
63
|
[a, "Invalid Configuration: Missing Region"]
|
|
32
64
|
]
|
|
33
65
|
};
|
|
@@ -35,23 +67,125 @@ const root = 2;
|
|
|
35
67
|
const r = 100_000_000;
|
|
36
68
|
const nodes = new Int32Array([
|
|
37
69
|
-1, 1, -1,
|
|
38
|
-
0,
|
|
39
|
-
1, 4, r +
|
|
40
|
-
2, 5, r +
|
|
41
|
-
3,
|
|
42
|
-
4,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
70
|
+
0, 120, 3,
|
|
71
|
+
1, 4, r + 26,
|
|
72
|
+
2, 5, r + 26,
|
|
73
|
+
3, 52, 6,
|
|
74
|
+
4, 28, 7,
|
|
75
|
+
7, 8, r + 12,
|
|
76
|
+
8, 94, 9,
|
|
77
|
+
9, 94, 10,
|
|
78
|
+
10, 13, 11,
|
|
79
|
+
11, 13, 12,
|
|
80
|
+
12, 13, 94,
|
|
81
|
+
13, 91, 14,
|
|
82
|
+
14, 15, 20,
|
|
83
|
+
15, 16, 20,
|
|
84
|
+
16, 17, 20,
|
|
85
|
+
17, 18, 20,
|
|
86
|
+
18, 19, 20,
|
|
87
|
+
19, r + 23, 20,
|
|
88
|
+
20, 21, 26,
|
|
89
|
+
21, 22, 26,
|
|
90
|
+
22, 23, 26,
|
|
91
|
+
23, 24, 26,
|
|
92
|
+
24, 25, 26,
|
|
93
|
+
25, r + 24, 26,
|
|
94
|
+
26, 27, 91,
|
|
95
|
+
28, r + 25, r + 9,
|
|
96
|
+
5, 29, r + 22,
|
|
97
|
+
7, 30, r + 18,
|
|
98
|
+
8, 51, 31,
|
|
99
|
+
9, 51, 32,
|
|
100
|
+
10, 35, 33,
|
|
101
|
+
11, 35, 34,
|
|
102
|
+
12, 35, 51,
|
|
103
|
+
13, 50, 36,
|
|
104
|
+
14, 37, 42,
|
|
105
|
+
15, 38, 42,
|
|
106
|
+
16, 39, 42,
|
|
107
|
+
17, 40, 42,
|
|
108
|
+
18, 41, 42,
|
|
109
|
+
19, r + 19, 42,
|
|
110
|
+
20, 43, 48,
|
|
111
|
+
21, 44, 48,
|
|
112
|
+
22, 45, 48,
|
|
113
|
+
23, 46, 48,
|
|
114
|
+
24, 47, 48,
|
|
115
|
+
25, r + 20, 48,
|
|
116
|
+
26, 49, 50,
|
|
117
|
+
28, r + 21, r + 9,
|
|
118
|
+
27, r + 10, r + 18,
|
|
119
|
+
27, r + 4, r + 18,
|
|
120
|
+
4, 95, 53,
|
|
121
|
+
6, 54, r + 17,
|
|
122
|
+
7, 56, 55,
|
|
123
|
+
10, r + 12, r + 16,
|
|
124
|
+
8, 92, 57,
|
|
125
|
+
9, 92, 58,
|
|
126
|
+
10, 76, 59,
|
|
127
|
+
11, 61, 60,
|
|
128
|
+
12, 61, 93,
|
|
129
|
+
13, 75, 62,
|
|
130
|
+
14, 63, 68,
|
|
131
|
+
15, 64, 68,
|
|
132
|
+
16, 65, 68,
|
|
133
|
+
17, 66, 68,
|
|
134
|
+
18, 67, 68,
|
|
135
|
+
19, r + 13, 68,
|
|
136
|
+
20, 69, 74,
|
|
137
|
+
21, 70, 74,
|
|
138
|
+
22, 71, 74,
|
|
139
|
+
23, 72, 74,
|
|
140
|
+
24, 73, 74,
|
|
141
|
+
25, r + 14, 74,
|
|
142
|
+
26, 90, 75,
|
|
143
|
+
27, r + 10, r + 16,
|
|
144
|
+
13, 91, 77,
|
|
145
|
+
14, 78, 83,
|
|
146
|
+
15, 79, 83,
|
|
147
|
+
16, 80, 83,
|
|
148
|
+
17, 81, 83,
|
|
149
|
+
18, 82, 83,
|
|
150
|
+
19, r + 13, 83,
|
|
151
|
+
20, 84, 89,
|
|
152
|
+
21, 85, 89,
|
|
153
|
+
22, 86, 89,
|
|
154
|
+
23, 87, 89,
|
|
155
|
+
24, 88, 89,
|
|
156
|
+
25, r + 14, 89,
|
|
157
|
+
26, 90, 91,
|
|
158
|
+
28, r + 15, r + 9,
|
|
159
|
+
27, r + 10, r + 12,
|
|
160
|
+
10, 94, 93,
|
|
161
|
+
27, r + 4, r + 16,
|
|
162
|
+
27, r + 4, r + 12,
|
|
163
|
+
5, 96, r + 11,
|
|
164
|
+
6, 97, r + 11,
|
|
165
|
+
7, 98, r + 5,
|
|
166
|
+
8, 119, 99,
|
|
167
|
+
9, 119, 100,
|
|
168
|
+
10, 103, 101,
|
|
169
|
+
11, 103, 102,
|
|
170
|
+
12, 103, 119,
|
|
171
|
+
13, 118, 104,
|
|
172
|
+
14, 105, 110,
|
|
173
|
+
15, 106, 110,
|
|
174
|
+
16, 107, 110,
|
|
175
|
+
17, 108, 110,
|
|
176
|
+
18, 109, 110,
|
|
177
|
+
19, r + 6, 110,
|
|
178
|
+
20, 111, 116,
|
|
179
|
+
21, 112, 116,
|
|
180
|
+
22, 113, 116,
|
|
181
|
+
23, 114, 116,
|
|
182
|
+
24, 115, 116,
|
|
183
|
+
25, r + 7, 116,
|
|
184
|
+
26, 117, 118,
|
|
185
|
+
28, r + 8, r + 9,
|
|
186
|
+
27, r + 10, r + 5,
|
|
187
|
+
27, r + 4, r + 5,
|
|
188
|
+
3, r + 1, 121,
|
|
189
|
+
4, r + 2, r + 3,
|
|
56
190
|
]);
|
|
57
191
|
export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -3,7 +3,16 @@ import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/
|
|
|
3
3
|
import { bdd } from "./bdd";
|
|
4
4
|
const cache = new EndpointCache({
|
|
5
5
|
size: 50,
|
|
6
|
-
params: [
|
|
6
|
+
params: [
|
|
7
|
+
"AccountId",
|
|
8
|
+
"AccountIdEndpointMode",
|
|
9
|
+
"Endpoint",
|
|
10
|
+
"Region",
|
|
11
|
+
"ShardIterator",
|
|
12
|
+
"StreamArn",
|
|
13
|
+
"UseDualStack",
|
|
14
|
+
"UseFIPS",
|
|
15
|
+
],
|
|
7
16
|
});
|
|
8
17
|
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
18
|
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
+
import { DEFAULT_ACCOUNT_ID_ENDPOINT_MODE } from "@aws-sdk/core/account-id-endpoint";
|
|
2
3
|
import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
|
|
3
4
|
import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
4
5
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
@@ -15,6 +16,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
15
16
|
...config,
|
|
16
17
|
runtime: "browser",
|
|
17
18
|
defaultsMode,
|
|
19
|
+
accountIdEndpointMode: config?.accountIdEndpointMode ?? (() => Promise.resolve(DEFAULT_ACCOUNT_ID_ENDPOINT_MODE)),
|
|
18
20
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
19
21
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
20
22
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
+
import { NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS } from "@aws-sdk/core/account-id-endpoint";
|
|
2
3
|
import { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion as awsCheckVersion, getDefaultSocketTimeout, NODE_APP_ID_CONFIG_OPTIONS, } from "@aws-sdk/core/client";
|
|
3
4
|
import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core/httpAuthSchemes";
|
|
4
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
@@ -23,6 +24,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
23
24
|
...config,
|
|
24
25
|
runtime: "node",
|
|
25
26
|
defaultsMode,
|
|
27
|
+
accountIdEndpointMode: config?.accountIdEndpointMode ?? loadNodeConfig(NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS, loaderConfig),
|
|
26
28
|
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
27
29
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
28
30
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AccountIdEndpointMode, AccountIdEndpointModeInputConfig, AccountIdEndpointModeResolvedConfig } from "@aws-sdk/core/account-id-endpoint";
|
|
1
2
|
import { type HostHeaderInputConfig, type HostHeaderResolvedConfig, type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/core/client";
|
|
2
3
|
import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/core/client";
|
|
3
4
|
import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/core/config";
|
|
@@ -115,6 +116,10 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
115
116
|
*
|
|
116
117
|
*/
|
|
117
118
|
profile?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Defines if the AWS AccountId will be used for endpoint routing.
|
|
121
|
+
*/
|
|
122
|
+
accountIdEndpointMode?: AccountIdEndpointMode | __Provider<AccountIdEndpointMode>;
|
|
118
123
|
/**
|
|
119
124
|
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
120
125
|
* @internal
|
|
@@ -153,7 +158,7 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
153
158
|
/**
|
|
154
159
|
* @public
|
|
155
160
|
*/
|
|
156
|
-
export type DynamoDBStreamsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
|
|
161
|
+
export type DynamoDBStreamsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & AccountIdEndpointModeInputConfig & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
|
|
157
162
|
/**
|
|
158
163
|
* @public
|
|
159
164
|
*
|
|
@@ -164,7 +169,7 @@ export interface DynamoDBStreamsClientConfig extends DynamoDBStreamsClientConfig
|
|
|
164
169
|
/**
|
|
165
170
|
* @public
|
|
166
171
|
*/
|
|
167
|
-
export type DynamoDBStreamsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
|
|
172
|
+
export type DynamoDBStreamsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & AccountIdEndpointModeResolvedConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
|
|
168
173
|
/**
|
|
169
174
|
* @public
|
|
170
175
|
*
|
|
@@ -12,6 +12,14 @@ export declare const command: <I extends ServiceInputTypes, O extends ServiceOut
|
|
|
12
12
|
* @internal
|
|
13
13
|
*/
|
|
14
14
|
export declare const _ep0: EndpointParameterInstructions;
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const _ep1: EndpointParameterInstructions;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export declare const _ep2: EndpointParameterInstructions;
|
|
15
23
|
/**
|
|
16
24
|
* @internal
|
|
17
25
|
*/
|
|
@@ -3,10 +3,12 @@ import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2,
|
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
5
5
|
export interface ClientInputEndpointParameters {
|
|
6
|
+
region?: string | undefined | Provider<string | undefined>;
|
|
6
7
|
useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
7
8
|
useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
8
9
|
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
9
|
-
|
|
10
|
+
accountId?: string | undefined | Provider<string | undefined>;
|
|
11
|
+
accountIdEndpointMode?: string | undefined | Provider<string | undefined>;
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
12
14
|
* @public
|
|
@@ -26,6 +28,10 @@ export declare const commonParams: {
|
|
|
26
28
|
readonly type: "builtInParams";
|
|
27
29
|
readonly name: "useFipsEndpoint";
|
|
28
30
|
};
|
|
31
|
+
readonly AccountId: {
|
|
32
|
+
readonly type: "builtInParams";
|
|
33
|
+
readonly name: "accountId";
|
|
34
|
+
};
|
|
29
35
|
readonly Endpoint: {
|
|
30
36
|
readonly type: "builtInParams";
|
|
31
37
|
readonly name: "endpoint";
|
|
@@ -38,13 +44,21 @@ export declare const commonParams: {
|
|
|
38
44
|
readonly type: "builtInParams";
|
|
39
45
|
readonly name: "useDualstackEndpoint";
|
|
40
46
|
};
|
|
47
|
+
readonly AccountIdEndpointMode: {
|
|
48
|
+
readonly type: "builtInParams";
|
|
49
|
+
readonly name: "accountIdEndpointMode";
|
|
50
|
+
};
|
|
41
51
|
};
|
|
42
52
|
/**
|
|
43
53
|
* @internal
|
|
44
54
|
*/
|
|
45
55
|
export interface EndpointParameters extends __EndpointParameters {
|
|
56
|
+
Region?: string | undefined;
|
|
46
57
|
UseDualStack?: boolean | undefined;
|
|
47
58
|
UseFIPS?: boolean | undefined;
|
|
48
59
|
Endpoint?: string | undefined;
|
|
49
|
-
|
|
60
|
+
AccountId?: string | undefined;
|
|
61
|
+
AccountIdEndpointMode?: string | undefined;
|
|
62
|
+
StreamArn?: string | undefined;
|
|
63
|
+
ShardIterator?: string | undefined;
|
|
50
64
|
}
|
|
@@ -20,6 +20,7 @@ export declare const getRuntimeConfig: (config: DynamoDBStreamsClientConfig) =>
|
|
|
20
20
|
signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
|
|
21
21
|
disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
|
|
22
22
|
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
23
|
+
accountId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
23
24
|
apiVersion: string;
|
|
24
25
|
base64Decoder: import("@smithy/types").Decoder;
|
|
25
26
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -44,6 +45,7 @@ export declare const getRuntimeConfig: (config: DynamoDBStreamsClientConfig) =>
|
|
|
44
45
|
profile?: string;
|
|
45
46
|
runtime: string;
|
|
46
47
|
defaultsMode: import("@smithy/types").Provider<import("@smithy/core/client").ResolvedDefaultsMode>;
|
|
48
|
+
accountIdEndpointMode: "disabled" | "preferred" | "required" | (() => Promise<string>);
|
|
47
49
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
48
50
|
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
49
51
|
defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
@@ -18,6 +18,7 @@ export declare const getRuntimeConfig: (config: DynamoDBStreamsClientConfig) =>
|
|
|
18
18
|
signingRegion?: string;
|
|
19
19
|
signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
|
|
20
20
|
disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
|
|
21
|
+
accountId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
21
22
|
apiVersion: string;
|
|
22
23
|
base64Decoder: import("@smithy/types").Decoder;
|
|
23
24
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -41,6 +42,7 @@ export declare const getRuntimeConfig: (config: DynamoDBStreamsClientConfig) =>
|
|
|
41
42
|
utf8Encoder: (input: Uint8Array | string) => string;
|
|
42
43
|
runtime: string;
|
|
43
44
|
defaultsMode: import("@smithy/types").Provider<import("@smithy/core/client").ResolvedDefaultsMode>;
|
|
45
|
+
accountIdEndpointMode: "disabled" | "preferred" | "required" | import("@smithy/types").Provider<import("@aws-sdk/core/account-id-endpoint").AccountIdEndpointMode>;
|
|
44
46
|
authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
|
|
45
47
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
46
48
|
credentialDefaultProvider: ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit) => import("@aws-sdk/credential-provider-node").MemoizedRuntimeConfigAwsCredentialIdentityProvider) | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider);
|
|
@@ -19,6 +19,7 @@ export declare const getRuntimeConfig: (config: DynamoDBStreamsClientConfig) =>
|
|
|
19
19
|
signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
|
|
20
20
|
disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
|
|
21
21
|
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
22
|
+
accountId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
22
23
|
apiVersion: string;
|
|
23
24
|
base64Decoder: import("@smithy/types").Decoder;
|
|
24
25
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -42,6 +43,7 @@ export declare const getRuntimeConfig: (config: DynamoDBStreamsClientConfig) =>
|
|
|
42
43
|
utf8Encoder: (input: Uint8Array | string) => string;
|
|
43
44
|
profile?: string;
|
|
44
45
|
defaultsMode: import("@smithy/types").Provider<import("@smithy/core/client").DefaultsMode> | import("@smithy/core/client").DefaultsMode;
|
|
46
|
+
accountIdEndpointMode: "disabled" | "preferred" | "required" | (() => Promise<string>);
|
|
45
47
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
46
48
|
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
47
49
|
defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AccountIdEndpointMode,
|
|
3
|
+
AccountIdEndpointModeInputConfig,
|
|
4
|
+
AccountIdEndpointModeResolvedConfig,
|
|
5
|
+
} from "@aws-sdk/core/account-id-endpoint";
|
|
1
6
|
import {
|
|
2
7
|
HostHeaderInputConfig,
|
|
3
8
|
HostHeaderResolvedConfig,
|
|
@@ -77,6 +82,7 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
77
82
|
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
78
83
|
region?: string | __Provider<string>;
|
|
79
84
|
profile?: string;
|
|
85
|
+
accountIdEndpointMode?: AccountIdEndpointMode | __Provider<AccountIdEndpointMode>;
|
|
80
86
|
defaultUserAgentProvider?: __Provider<__UserAgent>;
|
|
81
87
|
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
82
88
|
maxAttempts?: number | __Provider<number>;
|
|
@@ -87,6 +93,7 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
87
93
|
}
|
|
88
94
|
export type DynamoDBStreamsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
|
|
89
95
|
ClientDefaults &
|
|
96
|
+
AccountIdEndpointModeInputConfig &
|
|
90
97
|
UserAgentInputConfig &
|
|
91
98
|
RetryInputConfig &
|
|
92
99
|
RegionInputConfig &
|
|
@@ -99,6 +106,7 @@ export type DynamoDBStreamsClientResolvedConfigType =
|
|
|
99
106
|
__SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
100
107
|
Required<ClientDefaults> &
|
|
101
108
|
RuntimeExtensionsConfig &
|
|
109
|
+
AccountIdEndpointModeResolvedConfig &
|
|
102
110
|
UserAgentResolvedConfig &
|
|
103
111
|
RetryResolvedConfig &
|
|
104
112
|
RegionResolvedConfig &
|
|
@@ -37,4 +37,6 @@ export declare const command: <I extends ServiceInputTypes, O extends ServiceOut
|
|
|
37
37
|
getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
38
38
|
};
|
|
39
39
|
export declare const _ep0: EndpointParameterInstructions;
|
|
40
|
+
export declare const _ep1: EndpointParameterInstructions;
|
|
41
|
+
export declare const _ep2: EndpointParameterInstructions;
|
|
40
42
|
export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
Provider,
|
|
6
6
|
} from "@smithy/types";
|
|
7
7
|
export interface ClientInputEndpointParameters {
|
|
8
|
+
region?: string | undefined | Provider<string | undefined>;
|
|
8
9
|
useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
9
10
|
useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
10
11
|
endpoint?:
|
|
@@ -14,7 +15,8 @@ export interface ClientInputEndpointParameters {
|
|
|
14
15
|
| Provider<Endpoint>
|
|
15
16
|
| EndpointV2
|
|
16
17
|
| Provider<EndpointV2>;
|
|
17
|
-
|
|
18
|
+
accountId?: string | undefined | Provider<string | undefined>;
|
|
19
|
+
accountIdEndpointMode?: string | undefined | Provider<string | undefined>;
|
|
18
20
|
}
|
|
19
21
|
export type ClientResolvedEndpointParameters = Pick<
|
|
20
22
|
ClientInputEndpointParameters,
|
|
@@ -30,6 +32,10 @@ export declare const commonParams: {
|
|
|
30
32
|
readonly type: "builtInParams";
|
|
31
33
|
readonly name: "useFipsEndpoint";
|
|
32
34
|
};
|
|
35
|
+
readonly AccountId: {
|
|
36
|
+
readonly type: "builtInParams";
|
|
37
|
+
readonly name: "accountId";
|
|
38
|
+
};
|
|
33
39
|
readonly Endpoint: {
|
|
34
40
|
readonly type: "builtInParams";
|
|
35
41
|
readonly name: "endpoint";
|
|
@@ -42,10 +48,18 @@ export declare const commonParams: {
|
|
|
42
48
|
readonly type: "builtInParams";
|
|
43
49
|
readonly name: "useDualstackEndpoint";
|
|
44
50
|
};
|
|
51
|
+
readonly AccountIdEndpointMode: {
|
|
52
|
+
readonly type: "builtInParams";
|
|
53
|
+
readonly name: "accountIdEndpointMode";
|
|
54
|
+
};
|
|
45
55
|
};
|
|
46
56
|
export interface EndpointParameters extends __EndpointParameters {
|
|
57
|
+
Region?: string | undefined;
|
|
47
58
|
UseDualStack?: boolean | undefined;
|
|
48
59
|
UseFIPS?: boolean | undefined;
|
|
49
60
|
Endpoint?: string | undefined;
|
|
50
|
-
|
|
61
|
+
AccountId?: string | undefined;
|
|
62
|
+
AccountIdEndpointMode?: string | undefined;
|
|
63
|
+
StreamArn?: string | undefined;
|
|
64
|
+
ShardIterator?: string | undefined;
|
|
51
65
|
}
|
|
@@ -42,6 +42,7 @@ export declare const getRuntimeConfig: (config: DynamoDBStreamsClientConfig) =>
|
|
|
42
42
|
) => import("@smithy/types").RequestSigner;
|
|
43
43
|
disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
|
|
44
44
|
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
45
|
+
accountId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
45
46
|
apiVersion: string;
|
|
46
47
|
base64Decoder: import("@smithy/types").Decoder;
|
|
47
48
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -74,6 +75,7 @@ export declare const getRuntimeConfig: (config: DynamoDBStreamsClientConfig) =>
|
|
|
74
75
|
defaultsMode: import("@smithy/types").Provider<
|
|
75
76
|
import("@smithy/core/client").ResolvedDefaultsMode
|
|
76
77
|
>;
|
|
78
|
+
accountIdEndpointMode: "disabled" | "preferred" | "required" | (() => Promise<string>);
|
|
77
79
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
78
80
|
credentialDefaultProvider:
|
|
79
81
|
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
|
@@ -40,6 +40,7 @@ export declare const getRuntimeConfig: (config: DynamoDBStreamsClientConfig) =>
|
|
|
40
40
|
import("@smithy/signature-v4").SignatureV4CryptoInit,
|
|
41
41
|
) => import("@smithy/types").RequestSigner;
|
|
42
42
|
disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
|
|
43
|
+
accountId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
43
44
|
apiVersion: string;
|
|
44
45
|
base64Decoder: import("@smithy/types").Decoder;
|
|
45
46
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -71,6 +72,13 @@ export declare const getRuntimeConfig: (config: DynamoDBStreamsClientConfig) =>
|
|
|
71
72
|
defaultsMode: import("@smithy/types").Provider<
|
|
72
73
|
import("@smithy/core/client").ResolvedDefaultsMode
|
|
73
74
|
>;
|
|
75
|
+
accountIdEndpointMode:
|
|
76
|
+
| "disabled"
|
|
77
|
+
| "preferred"
|
|
78
|
+
| "required"
|
|
79
|
+
| import("@smithy/types").Provider<
|
|
80
|
+
import("@aws-sdk/core/account-id-endpoint").AccountIdEndpointMode
|
|
81
|
+
>;
|
|
74
82
|
authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
|
|
75
83
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
76
84
|
credentialDefaultProvider:
|
|
@@ -41,6 +41,7 @@ export declare const getRuntimeConfig: (config: DynamoDBStreamsClientConfig) =>
|
|
|
41
41
|
) => import("@smithy/types").RequestSigner;
|
|
42
42
|
disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
|
|
43
43
|
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
44
|
+
accountId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
44
45
|
apiVersion: string;
|
|
45
46
|
base64Decoder: import("@smithy/types").Decoder;
|
|
46
47
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -72,6 +73,7 @@ export declare const getRuntimeConfig: (config: DynamoDBStreamsClientConfig) =>
|
|
|
72
73
|
defaultsMode:
|
|
73
74
|
| import("@smithy/types").Provider<import("@smithy/core/client").DefaultsMode>
|
|
74
75
|
| import("@smithy/core/client").DefaultsMode;
|
|
76
|
+
accountIdEndpointMode: "disabled" | "preferred" | "required" | (() => Promise<string>);
|
|
75
77
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
76
78
|
credentialDefaultProvider:
|
|
77
79
|
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-dynamodb-streams",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1170.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Dynamodb Streams Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-dynamodb-streams",
|
|
6
6
|
"license": "Apache-2.0",
|