@aws-sdk/client-lambda-core 3.1075.0 → 3.1077.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 CHANGED
@@ -1,21 +1,58 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException: ServiceException$1, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultLambdaCoreHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { CreateNetworkConnector$, DeleteNetworkConnector$, GetNetworkConnector$, ListNetworkConnectors$, UpdateNetworkConnector$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { LambdaCoreServiceException } = require("./models/LambdaCoreServiceException");
18
- exports.LambdaCoreServiceException = LambdaCoreServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+ const { Sha256 } = require("@smithy/core/checksum");
17
+
18
+ const defaultLambdaCoreHttpAuthSchemeParametersProvider = async (config, context, input) => {
19
+ return {
20
+ operation: getSmithyContext(context).operation,
21
+ region: await normalizeProvider(config.region)() || (() => {
22
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
23
+ })(),
24
+ };
25
+ };
26
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
27
+ return {
28
+ schemeId: "aws.auth#sigv4",
29
+ signingProperties: {
30
+ name: "lambda",
31
+ region: authParameters.region,
32
+ },
33
+ propertiesExtractor: (config, context) => ({
34
+ signingProperties: {
35
+ config,
36
+ context,
37
+ },
38
+ }),
39
+ };
40
+ }
41
+ const defaultLambdaCoreHttpAuthSchemeProvider = (authParameters) => {
42
+ const options = [];
43
+ switch (authParameters.operation) {
44
+ default: {
45
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
46
+ }
47
+ }
48
+ return options;
49
+ };
50
+ const resolveHttpAuthSchemeConfig = (config) => {
51
+ const config_0 = resolveAwsSdkSigV4Config(config);
52
+ return Object.assign(config_0, {
53
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
54
+ });
55
+ };
19
56
 
20
57
  const resolveClientEndpointParameters = (options) => {
21
58
  return Object.assign(options, {
@@ -31,6 +68,427 @@ const commonParams = {
31
68
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
69
  };
33
70
 
71
+ var version = "3.1076.0";
72
+ var packageInfo = {
73
+ version: version};
74
+
75
+ const k = "ref";
76
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
77
+ const _data = {
78
+ conditions: [
79
+ [c, [g]],
80
+ [c, j],
81
+ ["aws.partition", j, d],
82
+ [e, [{ [k]: "UseFIPS" }, b]],
83
+ [e, [{ [k]: "UseDualStack" }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
85
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
86
+ ],
87
+ results: [
88
+ [a],
89
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
90
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
91
+ [g, i],
92
+ ["https://lambda-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
93
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
94
+ ["https://lambda-fips.{Region}.{PartitionResult#dnsSuffix}", i],
95
+ [a, "FIPS is enabled but this partition does not support FIPS"],
96
+ ["https://lambda.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
97
+ [a, "DualStack is enabled but this partition does not support DualStack"],
98
+ ["https://lambda.{Region}.{PartitionResult#dnsSuffix}", i],
99
+ [a, "Invalid Configuration: Missing Region"]
100
+ ]
101
+ };
102
+ const root = 2;
103
+ const r = 100_000_000;
104
+ const nodes = new Int32Array([
105
+ -1, 1, -1,
106
+ 0, 12, 3,
107
+ 1, 4, r + 11,
108
+ 2, 5, r + 11,
109
+ 3, 8, 6,
110
+ 4, 7, r + 10,
111
+ 5, r + 8, r + 9,
112
+ 4, 10, 9,
113
+ 6, r + 6, r + 7,
114
+ 5, 11, r + 5,
115
+ 6, r + 4, r + 5,
116
+ 3, r + 1, 13,
117
+ 4, r + 2, r + 3,
118
+ ]);
119
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
120
+
121
+ const cache = new EndpointCache({
122
+ size: 50,
123
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
124
+ });
125
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
126
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
127
+ endpointParams: endpointParams,
128
+ logger: context.logger,
129
+ }));
130
+ };
131
+ customEndpointFunctions.aws = awsEndpointFunctions;
132
+
133
+ class LambdaCoreServiceException extends ServiceException$1 {
134
+ constructor(options) {
135
+ super(options);
136
+ Object.setPrototypeOf(this, LambdaCoreServiceException.prototype);
137
+ }
138
+ }
139
+
140
+ class InvalidParameterValueException extends LambdaCoreServiceException {
141
+ name = "InvalidParameterValueException";
142
+ $fault = "client";
143
+ Type;
144
+ constructor(opts) {
145
+ super({
146
+ name: "InvalidParameterValueException",
147
+ $fault: "client",
148
+ ...opts,
149
+ });
150
+ Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
151
+ this.Type = opts.Type;
152
+ }
153
+ }
154
+ class NetworkConnectorLimitExceededException extends LambdaCoreServiceException {
155
+ name = "NetworkConnectorLimitExceededException";
156
+ $fault = "client";
157
+ Type;
158
+ constructor(opts) {
159
+ super({
160
+ name: "NetworkConnectorLimitExceededException",
161
+ $fault: "client",
162
+ ...opts,
163
+ });
164
+ Object.setPrototypeOf(this, NetworkConnectorLimitExceededException.prototype);
165
+ this.Type = opts.Type;
166
+ }
167
+ }
168
+ class ResourceConflictException extends LambdaCoreServiceException {
169
+ name = "ResourceConflictException";
170
+ $fault = "client";
171
+ Type;
172
+ constructor(opts) {
173
+ super({
174
+ name: "ResourceConflictException",
175
+ $fault: "client",
176
+ ...opts,
177
+ });
178
+ Object.setPrototypeOf(this, ResourceConflictException.prototype);
179
+ this.Type = opts.Type;
180
+ }
181
+ }
182
+ class ServiceException extends LambdaCoreServiceException {
183
+ name = "ServiceException";
184
+ $fault = "server";
185
+ Type;
186
+ Message;
187
+ constructor(opts) {
188
+ super({
189
+ name: "ServiceException",
190
+ $fault: "server",
191
+ ...opts,
192
+ });
193
+ Object.setPrototypeOf(this, ServiceException.prototype);
194
+ this.Type = opts.Type;
195
+ this.Message = opts.Message;
196
+ }
197
+ }
198
+ class TooManyRequestsException extends LambdaCoreServiceException {
199
+ name = "TooManyRequestsException";
200
+ $fault = "client";
201
+ retryAfterSeconds;
202
+ Type;
203
+ Reason;
204
+ constructor(opts) {
205
+ super({
206
+ name: "TooManyRequestsException",
207
+ $fault: "client",
208
+ ...opts,
209
+ });
210
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
211
+ this.retryAfterSeconds = opts.retryAfterSeconds;
212
+ this.Type = opts.Type;
213
+ this.Reason = opts.Reason;
214
+ }
215
+ }
216
+ class ResourceNotFoundException extends LambdaCoreServiceException {
217
+ name = "ResourceNotFoundException";
218
+ $fault = "client";
219
+ Type;
220
+ Message;
221
+ constructor(opts) {
222
+ super({
223
+ name: "ResourceNotFoundException",
224
+ $fault: "client",
225
+ ...opts,
226
+ });
227
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
228
+ this.Type = opts.Type;
229
+ this.Message = opts.Message;
230
+ }
231
+ }
232
+
233
+ const _A = "Arn";
234
+ const _ACRT = "AssociatedComputeResourceTypes";
235
+ const _C = "Configuration";
236
+ const _CNC = "CreateNetworkConnector";
237
+ const _CNCR = "CreateNetworkConnectorRequest";
238
+ const _CNCRr = "CreateNetworkConnectorResponse";
239
+ const _CT = "ClientToken";
240
+ const _DNC = "DeleteNetworkConnector";
241
+ const _DNCR = "DeleteNetworkConnectorRequest";
242
+ const _DNCRe = "DeleteNetworkConnectorResponse";
243
+ const _GNC = "GetNetworkConnector";
244
+ const _GNCR = "GetNetworkConnectorRequest";
245
+ const _GNCRe = "GetNetworkConnectorResponse";
246
+ const _I = "Id";
247
+ const _IPVE = "InvalidParameterValueException";
248
+ const _Id = "Identifier";
249
+ const _LM = "LastModified";
250
+ const _LNC = "ListNetworkConnectors";
251
+ const _LNCR = "ListNetworkConnectorsRequest";
252
+ const _LNCRi = "ListNetworkConnectorsResponse";
253
+ const _LUS = "LastUpdateStatus";
254
+ const _LUSR = "LastUpdateStatusReason";
255
+ const _LUSRC = "LastUpdateStatusReasonCode";
256
+ const _M = "Message";
257
+ const _MI = "MaxItems";
258
+ const _Ma = "Marker";
259
+ const _N = "Name";
260
+ const _NC = "NetworkConnectors";
261
+ const _NCC = "NetworkConnectorConfiguration";
262
+ const _NCL = "NetworkConnectorsList";
263
+ const _NCLEE = "NetworkConnectorLimitExceededException";
264
+ const _NCS = "NetworkConnectorSummary";
265
+ const _NCVEC = "NetworkConnectorVpcEgressConfiguration";
266
+ const _NM = "NextMarker";
267
+ const _NP = "NetworkProtocol";
268
+ const _OR = "OperatorRole";
269
+ const _R = "Reason";
270
+ const _RA = "Retry-After";
271
+ const _RCE = "ResourceConflictException";
272
+ const _RNFE = "ResourceNotFoundException";
273
+ const _S = "State";
274
+ const _SE = "ServiceException";
275
+ const _SGI = "SecurityGroupIds";
276
+ const _SI = "SubnetIds";
277
+ const _SR = "StateReason";
278
+ const _SRC = "StateReasonCode";
279
+ const _T = "Type";
280
+ const _TMRE = "TooManyRequestsException";
281
+ const _Ta = "Tags";
282
+ const _UNC = "UpdateNetworkConnector";
283
+ const _UNCR = "UpdateNetworkConnectorRequest";
284
+ const _UNCRp = "UpdateNetworkConnectorResponse";
285
+ const _V = "Version";
286
+ const _VEC = "VpcEgressConfiguration";
287
+ const _c = "client";
288
+ const _e = "error";
289
+ const _h = "http";
290
+ const _hE = "httpError";
291
+ const _hH = "httpHeader";
292
+ const _hQ = "httpQuery";
293
+ const _m = "message";
294
+ const _rAS = "retryAfterSeconds";
295
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.lambdacore";
296
+ const _se = "server";
297
+ const n0 = "com.amazonaws.lambdacore";
298
+ const _s_registry = TypeRegistry.for(_s);
299
+ var LambdaCoreServiceException$ = [-3, _s, "LambdaCoreServiceException", 0, [], []];
300
+ _s_registry.registerError(LambdaCoreServiceException$, LambdaCoreServiceException);
301
+ const n0_registry = TypeRegistry.for(n0);
302
+ var InvalidParameterValueException$ = [-3, n0, _IPVE,
303
+ { [_e]: _c, [_hE]: 400 },
304
+ [_T, _m],
305
+ [0, 0]
306
+ ];
307
+ n0_registry.registerError(InvalidParameterValueException$, InvalidParameterValueException);
308
+ var NetworkConnectorLimitExceededException$ = [-3, n0, _NCLEE,
309
+ { [_e]: _c, [_hE]: 400 },
310
+ [_T, _m],
311
+ [0, 0]
312
+ ];
313
+ n0_registry.registerError(NetworkConnectorLimitExceededException$, NetworkConnectorLimitExceededException);
314
+ var ResourceConflictException$ = [-3, n0, _RCE,
315
+ { [_e]: _c, [_hE]: 409 },
316
+ [_T, _m],
317
+ [0, 0]
318
+ ];
319
+ n0_registry.registerError(ResourceConflictException$, ResourceConflictException);
320
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
321
+ { [_e]: _c, [_hE]: 404 },
322
+ [_T, _M],
323
+ [0, 0]
324
+ ];
325
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
326
+ var ServiceException$ = [-3, n0, _SE,
327
+ { [_e]: _se, [_hE]: 500 },
328
+ [_T, _M],
329
+ [0, 0]
330
+ ];
331
+ n0_registry.registerError(ServiceException$, ServiceException);
332
+ var TooManyRequestsException$ = [-3, n0, _TMRE,
333
+ { [_e]: _c, [_hE]: 429 },
334
+ [_rAS, _T, _m, _R],
335
+ [[0, { [_hH]: _RA }], 0, 0, 0]
336
+ ];
337
+ n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
338
+ const errorTypeRegistries = [
339
+ _s_registry,
340
+ n0_registry,
341
+ ];
342
+ var CreateNetworkConnectorRequest$ = [3, n0, _CNCR,
343
+ 0,
344
+ [_N, _C, _OR, _CT, _Ta],
345
+ [0, () => NetworkConnectorConfiguration$, 0, [0, 4], 128 | 0], 2
346
+ ];
347
+ var CreateNetworkConnectorResponse$ = [3, n0, _CNCRr,
348
+ 0,
349
+ [_A, _N, _I, _C, _OR, _S],
350
+ [0, 0, 0, () => NetworkConnectorConfiguration$, 0, 0], 3
351
+ ];
352
+ var DeleteNetworkConnectorRequest$ = [3, n0, _DNCR,
353
+ 0,
354
+ [_Id],
355
+ [[0, 1]], 1
356
+ ];
357
+ var DeleteNetworkConnectorResponse$ = [3, n0, _DNCRe,
358
+ 0,
359
+ [_A, _N, _I, _C, _OR, _S],
360
+ [0, 0, 0, () => NetworkConnectorConfiguration$, 0, 0], 3
361
+ ];
362
+ var GetNetworkConnectorRequest$ = [3, n0, _GNCR,
363
+ 0,
364
+ [_Id],
365
+ [[0, 1]], 1
366
+ ];
367
+ var GetNetworkConnectorResponse$ = [3, n0, _GNCRe,
368
+ 0,
369
+ [_A, _N, _I, _V, _C, _OR, _S, _SR, _SRC, _LUS, _LUSR, _LUSRC, _LM],
370
+ [0, 0, 0, 1, () => NetworkConnectorConfiguration$, 0, 0, 0, 0, 0, 0, 0, 5], 3
371
+ ];
372
+ var ListNetworkConnectorsRequest$ = [3, n0, _LNCR,
373
+ 0,
374
+ [_S, _Ma, _MI],
375
+ [[0, { [_hQ]: _S }], [0, { [_hQ]: _Ma }], [1, { [_hQ]: _MI }]]
376
+ ];
377
+ var ListNetworkConnectorsResponse$ = [3, n0, _LNCRi,
378
+ 0,
379
+ [_NC, _NM],
380
+ [() => NetworkConnectorsList, 0], 1
381
+ ];
382
+ var NetworkConnectorSummary$ = [3, n0, _NCS,
383
+ 0,
384
+ [_A, _N, _I, _T, _S, _LM],
385
+ [0, 0, 0, 0, 0, 5], 4
386
+ ];
387
+ var NetworkConnectorVpcEgressConfiguration$ = [3, n0, _NCVEC,
388
+ 0,
389
+ [_SI, _SGI, _NP, _ACRT],
390
+ [64 | 0, 64 | 0, 0, 64 | 0]
391
+ ];
392
+ var UpdateNetworkConnectorRequest$ = [3, n0, _UNCR,
393
+ 0,
394
+ [_Id, _C, _OR, _CT],
395
+ [[0, 1], () => NetworkConnectorConfiguration$, 0, [0, 4]], 1
396
+ ];
397
+ var UpdateNetworkConnectorResponse$ = [3, n0, _UNCRp,
398
+ 0,
399
+ [_A, _N, _I, _OR, _C, _S, _LUS, _LUSR, _LM],
400
+ [0, 0, 0, 0, () => NetworkConnectorConfiguration$, 0, 0, 0, 5], 3
401
+ ];
402
+ var NetworkConnectorsList = [1, n0, _NCL,
403
+ 0, () => NetworkConnectorSummary$
404
+ ];
405
+ var NetworkConnectorConfiguration$ = [4, n0, _NCC,
406
+ 0,
407
+ [_VEC],
408
+ [() => NetworkConnectorVpcEgressConfiguration$]
409
+ ];
410
+ var CreateNetworkConnector$ = [9, n0, _CNC,
411
+ { [_h]: ["POST", "/2026-04-04/network-connectors", 202] }, () => CreateNetworkConnectorRequest$, () => CreateNetworkConnectorResponse$
412
+ ];
413
+ var DeleteNetworkConnector$ = [9, n0, _DNC,
414
+ { [_h]: ["DELETE", "/2026-04-04/network-connectors/{Identifier}", 202] }, () => DeleteNetworkConnectorRequest$, () => DeleteNetworkConnectorResponse$
415
+ ];
416
+ var GetNetworkConnector$ = [9, n0, _GNC,
417
+ { [_h]: ["GET", "/2026-04-04/network-connectors/{Identifier}", 200] }, () => GetNetworkConnectorRequest$, () => GetNetworkConnectorResponse$
418
+ ];
419
+ var ListNetworkConnectors$ = [9, n0, _LNC,
420
+ { [_h]: ["GET", "/2026-04-04/network-connectors", 200] }, () => ListNetworkConnectorsRequest$, () => ListNetworkConnectorsResponse$
421
+ ];
422
+ var UpdateNetworkConnector$ = [9, n0, _UNC,
423
+ { [_h]: ["PUT", "/2026-04-04/network-connectors/{Identifier}", 202] }, () => UpdateNetworkConnectorRequest$, () => UpdateNetworkConnectorResponse$
424
+ ];
425
+
426
+ const getRuntimeConfig$1 = (config) => {
427
+ return {
428
+ apiVersion: "2026-04-30",
429
+ base64Decoder: config?.base64Decoder ?? fromBase64,
430
+ base64Encoder: config?.base64Encoder ?? toBase64,
431
+ disableHostPrefix: config?.disableHostPrefix ?? false,
432
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
433
+ extensions: config?.extensions ?? [],
434
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultLambdaCoreHttpAuthSchemeProvider,
435
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
436
+ {
437
+ schemeId: "aws.auth#sigv4",
438
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
439
+ signer: new AwsSdkSigV4Signer(),
440
+ },
441
+ ],
442
+ logger: config?.logger ?? new NoOpLogger(),
443
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
444
+ protocolSettings: config?.protocolSettings ?? {
445
+ defaultNamespace: "com.amazonaws.lambdacore",
446
+ errorTypeRegistries,
447
+ version: "2026-04-30",
448
+ serviceTarget: "LambdaCoreApiService",
449
+ },
450
+ serviceId: config?.serviceId ?? "Lambda Core",
451
+ sha256: config?.sha256 ?? Sha256,
452
+ urlParser: config?.urlParser ?? parseUrl,
453
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
454
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
455
+ };
456
+ };
457
+
458
+ const getRuntimeConfig = (config) => {
459
+ emitWarningIfUnsupportedVersion(process.version);
460
+ const defaultsMode = resolveDefaultsModeConfig(config);
461
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
462
+ const clientSharedValues = getRuntimeConfig$1(config);
463
+ emitWarningIfUnsupportedVersion$1(process.version);
464
+ const loaderConfig = {
465
+ profile: config?.profile,
466
+ logger: clientSharedValues.logger,
467
+ };
468
+ return {
469
+ ...clientSharedValues,
470
+ ...config,
471
+ runtime: "node",
472
+ defaultsMode,
473
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
474
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
475
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
476
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
477
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
478
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
479
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
480
+ retryMode: config?.retryMode ??
481
+ loadConfig({
482
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
483
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
484
+ }, config),
485
+ streamCollector: config?.streamCollector ?? streamCollector,
486
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
487
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
488
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
489
+ };
490
+ };
491
+
34
492
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
493
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
494
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -238,18 +696,51 @@ const NetworkConnectorType = {
238
696
  };
239
697
 
240
698
  exports.ComputeResourceType = ComputeResourceType;
699
+ exports.CreateNetworkConnector$ = CreateNetworkConnector$;
241
700
  exports.CreateNetworkConnectorCommand = CreateNetworkConnectorCommand;
701
+ exports.CreateNetworkConnectorRequest$ = CreateNetworkConnectorRequest$;
702
+ exports.CreateNetworkConnectorResponse$ = CreateNetworkConnectorResponse$;
703
+ exports.DeleteNetworkConnector$ = DeleteNetworkConnector$;
242
704
  exports.DeleteNetworkConnectorCommand = DeleteNetworkConnectorCommand;
705
+ exports.DeleteNetworkConnectorRequest$ = DeleteNetworkConnectorRequest$;
706
+ exports.DeleteNetworkConnectorResponse$ = DeleteNetworkConnectorResponse$;
707
+ exports.GetNetworkConnector$ = GetNetworkConnector$;
243
708
  exports.GetNetworkConnectorCommand = GetNetworkConnectorCommand;
709
+ exports.GetNetworkConnectorRequest$ = GetNetworkConnectorRequest$;
710
+ exports.GetNetworkConnectorResponse$ = GetNetworkConnectorResponse$;
711
+ exports.InvalidParameterValueException = InvalidParameterValueException;
712
+ exports.InvalidParameterValueException$ = InvalidParameterValueException$;
244
713
  exports.LambdaCore = LambdaCore;
245
714
  exports.LambdaCoreClient = LambdaCoreClient;
715
+ exports.LambdaCoreServiceException = LambdaCoreServiceException;
716
+ exports.LambdaCoreServiceException$ = LambdaCoreServiceException$;
717
+ exports.ListNetworkConnectors$ = ListNetworkConnectors$;
246
718
  exports.ListNetworkConnectorsCommand = ListNetworkConnectorsCommand;
719
+ exports.ListNetworkConnectorsRequest$ = ListNetworkConnectorsRequest$;
720
+ exports.ListNetworkConnectorsResponse$ = ListNetworkConnectorsResponse$;
721
+ exports.NetworkConnectorConfiguration$ = NetworkConnectorConfiguration$;
247
722
  exports.NetworkConnectorLastUpdateStatus = NetworkConnectorLastUpdateStatus;
248
723
  exports.NetworkConnectorLastUpdateStatusReasonCode = NetworkConnectorLastUpdateStatusReasonCode;
724
+ exports.NetworkConnectorLimitExceededException = NetworkConnectorLimitExceededException;
725
+ exports.NetworkConnectorLimitExceededException$ = NetworkConnectorLimitExceededException$;
249
726
  exports.NetworkConnectorState = NetworkConnectorState;
250
727
  exports.NetworkConnectorStateReasonCode = NetworkConnectorStateReasonCode;
728
+ exports.NetworkConnectorSummary$ = NetworkConnectorSummary$;
251
729
  exports.NetworkConnectorType = NetworkConnectorType;
730
+ exports.NetworkConnectorVpcEgressConfiguration$ = NetworkConnectorVpcEgressConfiguration$;
252
731
  exports.NetworkProtocol = NetworkProtocol;
732
+ exports.ResourceConflictException = ResourceConflictException;
733
+ exports.ResourceConflictException$ = ResourceConflictException$;
734
+ exports.ResourceNotFoundException = ResourceNotFoundException;
735
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
736
+ exports.ServiceException = ServiceException;
737
+ exports.ServiceException$ = ServiceException$;
253
738
  exports.ThrottleReason = ThrottleReason;
739
+ exports.TooManyRequestsException = TooManyRequestsException;
740
+ exports.TooManyRequestsException$ = TooManyRequestsException$;
741
+ exports.UpdateNetworkConnector$ = UpdateNetworkConnector$;
254
742
  exports.UpdateNetworkConnectorCommand = UpdateNetworkConnectorCommand;
743
+ exports.UpdateNetworkConnectorRequest$ = UpdateNetworkConnectorRequest$;
744
+ exports.UpdateNetworkConnectorResponse$ = UpdateNetworkConnectorResponse$;
745
+ exports.errorTypeRegistries = errorTypeRegistries;
255
746
  exports.paginateListNetworkConnectors = paginateListNetworkConnectors;
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
31
32
  serviceTarget: "LambdaCoreApiService",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "Lambda Core",
35
+ sha256: config?.sha256 ?? Sha256,
34
36
  urlParser: config?.urlParser ?? parseUrl,
35
37
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
38
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -13,8 +13,7 @@ export declare const getRuntimeConfig: (config: LambdaCoreClientConfig) => {
13
13
  region: string | import("@smithy/types").Provider<any>;
14
14
  requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
15
15
  retryMode: string | import("@smithy/types").Provider<string>;
16
- sha256: import("@smithy/types").HashConstructor;
17
- streamCollector: import("@smithy/types").StreamCollector;
16
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
18
17
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
19
18
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
20
19
  cacheMiddleware?: boolean | undefined;
@@ -24,6 +23,7 @@ export declare const getRuntimeConfig: (config: LambdaCoreClientConfig) => {
24
23
  [setting: string]: unknown;
25
24
  };
26
25
  apiVersion: string;
26
+ sha256: import("@smithy/types").HashConstructor;
27
27
  urlParser: import("@smithy/types").UrlParser;
28
28
  base64Decoder: import("@smithy/types").Decoder;
29
29
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -14,8 +14,7 @@ export declare const getRuntimeConfig: (config: LambdaCoreClientConfig) => {
14
14
  region: string | import("@smithy/types").Provider<string>;
15
15
  requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
16
16
  retryMode: string | import("@smithy/types").Provider<string>;
17
- sha256: import("@smithy/types").HashConstructor;
18
- streamCollector: import("@smithy/types").StreamCollector;
17
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
19
18
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
19
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
20
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
@@ -26,6 +25,7 @@ export declare const getRuntimeConfig: (config: LambdaCoreClientConfig) => {
26
25
  [setting: string]: unknown;
27
26
  };
28
27
  apiVersion: string;
28
+ sha256: import("@smithy/types").HashConstructor;
29
29
  urlParser: import("@smithy/types").UrlParser;
30
30
  base64Decoder: import("@smithy/types").Decoder;
31
31
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -4,7 +4,6 @@ import type { LambdaCoreClientConfig } from "./LambdaCoreClient";
4
4
  */
5
5
  export declare const getRuntimeConfig: (config: LambdaCoreClientConfig) => {
6
6
  runtime: string;
7
- sha256: import("@smithy/types").HashConstructor;
8
7
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/core/protocols").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
8
  cacheMiddleware?: boolean;
10
9
  protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
@@ -13,9 +12,10 @@ export declare const getRuntimeConfig: (config: LambdaCoreClientConfig) => {
13
12
  [setting: string]: unknown;
14
13
  };
15
14
  apiVersion: string;
15
+ sha256: import("@smithy/types").HashConstructor;
16
16
  urlParser: import("@smithy/types").UrlParser;
17
17
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
18
- streamCollector: import("@smithy/types").StreamCollector;
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;