@aws-sdk/client-iotsecuretunneling 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, 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, defaultIoTSecureTunnelingHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { CloseTunnel$, DescribeTunnel$, ListTagsForResource$, ListTunnels$, OpenTunnel$, RotateTunnelAccessToken$, TagResource$, UntagResource$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { IoTSecureTunnelingServiceException } = require("./models/IoTSecureTunnelingServiceException");
18
- exports.IoTSecureTunnelingServiceException = IoTSecureTunnelingServiceException;
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 { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
16
+ const { Sha256 } = require("@smithy/core/checksum");
17
+
18
+ const defaultIoTSecureTunnelingHttpAuthSchemeParametersProvider = 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: "IoTSecuredTunneling",
31
+ region: authParameters.region,
32
+ },
33
+ propertiesExtractor: (config, context) => ({
34
+ signingProperties: {
35
+ config,
36
+ context,
37
+ },
38
+ }),
39
+ };
40
+ }
41
+ const defaultIoTSecureTunnelingHttpAuthSchemeProvider = (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,411 @@ 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 m = "ref";
76
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = { [m]: "Endpoint" }, i = { [m]: d }, j = { "fn": f, "argv": [i, "name"] }, k = {}, l = [{ [m]: "Region" }];
77
+ const _data = {
78
+ conditions: [
79
+ [c, [h]],
80
+ [c, l],
81
+ ["aws.partition", l, d],
82
+ [e, [{ [m]: "UseFIPS" }, b]],
83
+ [e, [{ [m]: "UseDualStack" }, b]],
84
+ [e, [{ fn: f, argv: [i, "supportsDualStack"] }, b]],
85
+ [e, [{ fn: f, argv: [i, "supportsFIPS"] }, b]],
86
+ [g, [j, "aws"]],
87
+ [g, [j, "aws-cn"]],
88
+ [g, [j, "aws-us-gov"]]
89
+ ],
90
+ results: [
91
+ [a],
92
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
93
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
94
+ [h, k],
95
+ ["https://api.iot-tunneling-fips.{Region}.api.aws", k],
96
+ ["https://api.iot-tunneling-fips.{Region}.api.amazonwebservices.com.cn", k],
97
+ ["https://api.tunneling.iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
98
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
99
+ ["https://api.tunneling.iot-fips.{Region}.{PartitionResult#dnsSuffix}", k],
100
+ [a, "FIPS is enabled but this partition does not support FIPS"],
101
+ ["https://api.iot-tunneling.{Region}.api.aws", k],
102
+ ["https://api.iot-tunneling.{Region}.api.amazonwebservices.com.cn", k],
103
+ ["https://api.tunneling.iot.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
104
+ [a, "DualStack is enabled but this partition does not support DualStack"],
105
+ ["https://api.tunneling.iot.{Region}.{PartitionResult#dnsSuffix}", k],
106
+ [a, "Invalid Configuration: Missing Region"]
107
+ ]
108
+ };
109
+ const root = 2;
110
+ const r = 100_000_000;
111
+ const nodes = new Int32Array([
112
+ -1, 1, -1,
113
+ 0, 18, 3,
114
+ 1, 4, r + 15,
115
+ 2, 5, r + 15,
116
+ 3, 11, 6,
117
+ 4, 7, r + 14,
118
+ 5, 8, r + 13,
119
+ 7, r + 10, 9,
120
+ 8, r + 11, 10,
121
+ 9, r + 10, r + 12,
122
+ 4, 13, 12,
123
+ 6, r + 8, r + 9,
124
+ 5, 14, r + 7,
125
+ 6, 15, r + 7,
126
+ 7, r + 4, 16,
127
+ 8, r + 5, 17,
128
+ 9, r + 4, r + 6,
129
+ 3, r + 1, 19,
130
+ 4, r + 2, r + 3,
131
+ ]);
132
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
133
+
134
+ const cache = new EndpointCache({
135
+ size: 50,
136
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
137
+ });
138
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
139
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
140
+ endpointParams: endpointParams,
141
+ logger: context.logger,
142
+ }));
143
+ };
144
+ customEndpointFunctions.aws = awsEndpointFunctions;
145
+
146
+ class IoTSecureTunnelingServiceException extends ServiceException {
147
+ constructor(options) {
148
+ super(options);
149
+ Object.setPrototypeOf(this, IoTSecureTunnelingServiceException.prototype);
150
+ }
151
+ }
152
+
153
+ class ResourceNotFoundException extends IoTSecureTunnelingServiceException {
154
+ name = "ResourceNotFoundException";
155
+ $fault = "client";
156
+ constructor(opts) {
157
+ super({
158
+ name: "ResourceNotFoundException",
159
+ $fault: "client",
160
+ ...opts,
161
+ });
162
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
163
+ }
164
+ }
165
+ class LimitExceededException extends IoTSecureTunnelingServiceException {
166
+ name = "LimitExceededException";
167
+ $fault = "client";
168
+ constructor(opts) {
169
+ super({
170
+ name: "LimitExceededException",
171
+ $fault: "client",
172
+ ...opts,
173
+ });
174
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
175
+ }
176
+ }
177
+
178
+ const _CAT = "ClientAccessToken";
179
+ const _CS = "ConnectionState";
180
+ const _CT = "CloseTunnel";
181
+ const _CTR = "CloseTunnelRequest";
182
+ const _CTRl = "CloseTunnelResponse";
183
+ const _DC = "DestinationConfig";
184
+ const _DT = "DescribeTunnel";
185
+ const _DTR = "DescribeTunnelRequest";
186
+ const _DTRe = "DescribeTunnelResponse";
187
+ const _LEE = "LimitExceededException";
188
+ const _LT = "ListTunnels";
189
+ const _LTFR = "ListTagsForResource";
190
+ const _LTFRR = "ListTagsForResourceRequest";
191
+ const _LTFRRi = "ListTagsForResourceResponse";
192
+ const _LTR = "ListTunnelsRequest";
193
+ const _LTRi = "ListTunnelsResponse";
194
+ const _OT = "OpenTunnel";
195
+ const _OTR = "OpenTunnelRequest";
196
+ const _OTRp = "OpenTunnelResponse";
197
+ const _RNFE = "ResourceNotFoundException";
198
+ const _RTAT = "RotateTunnelAccessToken";
199
+ const _RTATR = "RotateTunnelAccessTokenRequest";
200
+ const _RTATRo = "RotateTunnelAccessTokenResponse";
201
+ const _T = "Tag";
202
+ const _TC = "TimeoutConfig";
203
+ const _TL = "TagList";
204
+ const _TR = "TagResource";
205
+ const _TRR = "TagResourceRequest";
206
+ const _TRRa = "TagResourceResponse";
207
+ const _TS = "TunnelSummary";
208
+ const _TSL = "TunnelSummaryList";
209
+ const _Tu = "Tunnel";
210
+ const _UR = "UntagResource";
211
+ const _URR = "UntagResourceRequest";
212
+ const _URRn = "UntagResourceResponse";
213
+ const _aQE = "awsQueryError";
214
+ const _c = "client";
215
+ const _cA = "createdAt";
216
+ const _cM = "clientMode";
217
+ const _d = "delete";
218
+ const _dAT = "destinationAccessToken";
219
+ const _dC = "destinationConfig";
220
+ const _dCS = "destinationConnectionState";
221
+ const _de = "description";
222
+ const _e = "error";
223
+ const _h = "http";
224
+ const _hE = "httpError";
225
+ const _hQ = "httpQuery";
226
+ const _k = "key";
227
+ const _lUA = "lastUpdatedAt";
228
+ const _m = "message";
229
+ const _mLTM = "maxLifetimeTimeoutMinutes";
230
+ const _mR = "maxResults";
231
+ const _nT = "nextToken";
232
+ const _rA = "resourceArn";
233
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.iotsecuretunneling";
234
+ const _sAT = "sourceAccessToken";
235
+ const _sCS = "sourceConnectionState";
236
+ const _se = "services";
237
+ const _st = "status";
238
+ const _t = "tunnel";
239
+ const _tA = "tunnelArn";
240
+ const _tC = "timeoutConfig";
241
+ const _tI = "tunnelId";
242
+ const _tK = "tagKeys";
243
+ const _tN = "thingName";
244
+ const _tS = "tunnelSummaries";
245
+ const _ta = "tags";
246
+ const _v = "value";
247
+ const n0 = "com.amazonaws.iotsecuretunneling";
248
+ const _s_registry = TypeRegistry.for(_s);
249
+ var IoTSecureTunnelingServiceException$ = [-3, _s, "IoTSecureTunnelingServiceException", 0, [], []];
250
+ _s_registry.registerError(IoTSecureTunnelingServiceException$, IoTSecureTunnelingServiceException);
251
+ const n0_registry = TypeRegistry.for(n0);
252
+ var LimitExceededException$ = [-3, n0, _LEE,
253
+ { [_aQE]: [`LimitExceededException`, 403], [_e]: _c, [_hE]: 403 },
254
+ [_m],
255
+ [0]
256
+ ];
257
+ n0_registry.registerError(LimitExceededException$, LimitExceededException);
258
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
259
+ { [_aQE]: [`ResourceNotFoundException`, 404], [_e]: _c, [_hE]: 404 },
260
+ [_m],
261
+ [0]
262
+ ];
263
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
264
+ const errorTypeRegistries = [
265
+ _s_registry,
266
+ n0_registry,
267
+ ];
268
+ var ClientAccessToken = [0, n0, _CAT, 8, 0];
269
+ var CloseTunnelRequest$ = [3, n0, _CTR,
270
+ 0,
271
+ [_tI, _d],
272
+ [[0, 1], [2, { [_hQ]: _d }]], 1
273
+ ];
274
+ var CloseTunnelResponse$ = [3, n0, _CTRl,
275
+ 0,
276
+ [],
277
+ []
278
+ ];
279
+ var ConnectionState$ = [3, n0, _CS,
280
+ 0,
281
+ [_st, _lUA],
282
+ [0, 4]
283
+ ];
284
+ var DescribeTunnelRequest$ = [3, n0, _DTR,
285
+ 0,
286
+ [_tI],
287
+ [[0, 1]], 1
288
+ ];
289
+ var DescribeTunnelResponse$ = [3, n0, _DTRe,
290
+ 0,
291
+ [_t],
292
+ [() => Tunnel$]
293
+ ];
294
+ var DestinationConfig$ = [3, n0, _DC,
295
+ 0,
296
+ [_se, _tN],
297
+ [64 | 0, 0], 1
298
+ ];
299
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
300
+ 0,
301
+ [_rA],
302
+ [[0, { [_hQ]: _rA }]], 1
303
+ ];
304
+ var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
305
+ 0,
306
+ [_ta],
307
+ [() => TagList]
308
+ ];
309
+ var ListTunnelsRequest$ = [3, n0, _LTR,
310
+ 0,
311
+ [_tN, _mR, _nT],
312
+ [[0, { [_hQ]: _tN }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]]
313
+ ];
314
+ var ListTunnelsResponse$ = [3, n0, _LTRi,
315
+ 0,
316
+ [_tS, _nT],
317
+ [() => TunnelSummaryList, 0]
318
+ ];
319
+ var OpenTunnelRequest$ = [3, n0, _OTR,
320
+ 0,
321
+ [_de, _ta, _dC, _tC],
322
+ [0, () => TagList, () => DestinationConfig$, () => TimeoutConfig$]
323
+ ];
324
+ var OpenTunnelResponse$ = [3, n0, _OTRp,
325
+ 0,
326
+ [_tI, _tA, _sAT, _dAT],
327
+ [0, 0, [() => ClientAccessToken, 0], [() => ClientAccessToken, 0]]
328
+ ];
329
+ var RotateTunnelAccessTokenRequest$ = [3, n0, _RTATR,
330
+ 0,
331
+ [_tI, _cM, _dC],
332
+ [[0, 1], 0, () => DestinationConfig$], 2
333
+ ];
334
+ var RotateTunnelAccessTokenResponse$ = [3, n0, _RTATRo,
335
+ 0,
336
+ [_tA, _sAT, _dAT],
337
+ [0, [() => ClientAccessToken, 0], [() => ClientAccessToken, 0]]
338
+ ];
339
+ var Tag$ = [3, n0, _T,
340
+ 0,
341
+ [_k, _v],
342
+ [0, 0], 2
343
+ ];
344
+ var TagResourceRequest$ = [3, n0, _TRR,
345
+ 0,
346
+ [_rA, _ta],
347
+ [0, () => TagList], 2
348
+ ];
349
+ var TagResourceResponse$ = [3, n0, _TRRa,
350
+ 0,
351
+ [],
352
+ []
353
+ ];
354
+ var TimeoutConfig$ = [3, n0, _TC,
355
+ 0,
356
+ [_mLTM],
357
+ [1]
358
+ ];
359
+ var Tunnel$ = [3, n0, _Tu,
360
+ 0,
361
+ [_tI, _tA, _st, _sCS, _dCS, _de, _dC, _tC, _ta, _cA, _lUA],
362
+ [0, 0, 0, () => ConnectionState$, () => ConnectionState$, 0, () => DestinationConfig$, () => TimeoutConfig$, () => TagList, 4, 4]
363
+ ];
364
+ var TunnelSummary$ = [3, n0, _TS,
365
+ 0,
366
+ [_tI, _tA, _st, _de, _cA, _lUA],
367
+ [0, 0, 0, 0, 4, 4]
368
+ ];
369
+ var UntagResourceRequest$ = [3, n0, _URR,
370
+ 0,
371
+ [_rA, _tK],
372
+ [0, 64 | 0], 2
373
+ ];
374
+ var UntagResourceResponse$ = [3, n0, _URRn,
375
+ 0,
376
+ [],
377
+ []
378
+ ];
379
+ var TagList = [1, n0, _TL,
380
+ 0, () => Tag$
381
+ ];
382
+ var TunnelSummaryList = [1, n0, _TSL,
383
+ 0, () => TunnelSummary$
384
+ ];
385
+ var CloseTunnel$ = [9, n0, _CT,
386
+ { [_h]: ["DELETE", "/tunnels/{tunnelId}", 200] }, () => CloseTunnelRequest$, () => CloseTunnelResponse$
387
+ ];
388
+ var DescribeTunnel$ = [9, n0, _DT,
389
+ { [_h]: ["GET", "/tunnels/{tunnelId}", 200] }, () => DescribeTunnelRequest$, () => DescribeTunnelResponse$
390
+ ];
391
+ var ListTagsForResource$ = [9, n0, _LTFR,
392
+ { [_h]: ["GET", "/tags", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
393
+ ];
394
+ var ListTunnels$ = [9, n0, _LT,
395
+ { [_h]: ["GET", "/tunnels", 200] }, () => ListTunnelsRequest$, () => ListTunnelsResponse$
396
+ ];
397
+ var OpenTunnel$ = [9, n0, _OT,
398
+ { [_h]: ["POST", "/tunnels", 200] }, () => OpenTunnelRequest$, () => OpenTunnelResponse$
399
+ ];
400
+ var RotateTunnelAccessToken$ = [9, n0, _RTAT,
401
+ { [_h]: ["POST", "/tunnel/{tunnelId}/rotate", 200] }, () => RotateTunnelAccessTokenRequest$, () => RotateTunnelAccessTokenResponse$
402
+ ];
403
+ var TagResource$ = [9, n0, _TR,
404
+ { [_h]: ["POST", "/tags", 200] }, () => TagResourceRequest$, () => TagResourceResponse$
405
+ ];
406
+ var UntagResource$ = [9, n0, _UR,
407
+ { [_h]: ["POST", "/untag", 200] }, () => UntagResourceRequest$, () => UntagResourceResponse$
408
+ ];
409
+
410
+ const getRuntimeConfig$1 = (config) => {
411
+ return {
412
+ apiVersion: "2018-10-05",
413
+ base64Decoder: config?.base64Decoder ?? fromBase64,
414
+ base64Encoder: config?.base64Encoder ?? toBase64,
415
+ disableHostPrefix: config?.disableHostPrefix ?? false,
416
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
417
+ extensions: config?.extensions ?? [],
418
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultIoTSecureTunnelingHttpAuthSchemeProvider,
419
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
420
+ {
421
+ schemeId: "aws.auth#sigv4",
422
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
423
+ signer: new AwsSdkSigV4Signer(),
424
+ },
425
+ ],
426
+ logger: config?.logger ?? new NoOpLogger(),
427
+ protocol: config?.protocol ?? AwsJson1_1Protocol,
428
+ protocolSettings: config?.protocolSettings ?? {
429
+ defaultNamespace: "com.amazonaws.iotsecuretunneling",
430
+ errorTypeRegistries,
431
+ version: "2018-10-05",
432
+ serviceTarget: "IoTSecuredTunneling",
433
+ },
434
+ serviceId: config?.serviceId ?? "IoTSecureTunneling",
435
+ sha256: config?.sha256 ?? Sha256,
436
+ urlParser: config?.urlParser ?? parseUrl,
437
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
438
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
439
+ };
440
+ };
441
+
442
+ const getRuntimeConfig = (config) => {
443
+ emitWarningIfUnsupportedVersion(process.version);
444
+ const defaultsMode = resolveDefaultsModeConfig(config);
445
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
446
+ const clientSharedValues = getRuntimeConfig$1(config);
447
+ emitWarningIfUnsupportedVersion$1(process.version);
448
+ const loaderConfig = {
449
+ profile: config?.profile,
450
+ logger: clientSharedValues.logger,
451
+ };
452
+ return {
453
+ ...clientSharedValues,
454
+ ...config,
455
+ runtime: "node",
456
+ defaultsMode,
457
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
458
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
459
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
460
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
461
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
462
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
463
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
464
+ retryMode: config?.retryMode ??
465
+ loadConfig({
466
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
467
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
468
+ }, config),
469
+ streamCollector: config?.streamCollector ?? streamCollector,
470
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
471
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
472
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
473
+ };
474
+ };
475
+
34
476
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
477
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
478
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -241,16 +683,53 @@ const TunnelStatus = {
241
683
  };
242
684
 
243
685
  exports.ClientMode = ClientMode;
686
+ exports.CloseTunnel$ = CloseTunnel$;
244
687
  exports.CloseTunnelCommand = CloseTunnelCommand;
688
+ exports.CloseTunnelRequest$ = CloseTunnelRequest$;
689
+ exports.CloseTunnelResponse$ = CloseTunnelResponse$;
690
+ exports.ConnectionState$ = ConnectionState$;
245
691
  exports.ConnectionStatus = ConnectionStatus;
692
+ exports.DescribeTunnel$ = DescribeTunnel$;
246
693
  exports.DescribeTunnelCommand = DescribeTunnelCommand;
694
+ exports.DescribeTunnelRequest$ = DescribeTunnelRequest$;
695
+ exports.DescribeTunnelResponse$ = DescribeTunnelResponse$;
696
+ exports.DestinationConfig$ = DestinationConfig$;
247
697
  exports.IoTSecureTunneling = IoTSecureTunneling;
248
698
  exports.IoTSecureTunnelingClient = IoTSecureTunnelingClient;
699
+ exports.IoTSecureTunnelingServiceException = IoTSecureTunnelingServiceException;
700
+ exports.IoTSecureTunnelingServiceException$ = IoTSecureTunnelingServiceException$;
701
+ exports.LimitExceededException = LimitExceededException;
702
+ exports.LimitExceededException$ = LimitExceededException$;
703
+ exports.ListTagsForResource$ = ListTagsForResource$;
249
704
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
705
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
706
+ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
707
+ exports.ListTunnels$ = ListTunnels$;
250
708
  exports.ListTunnelsCommand = ListTunnelsCommand;
709
+ exports.ListTunnelsRequest$ = ListTunnelsRequest$;
710
+ exports.ListTunnelsResponse$ = ListTunnelsResponse$;
711
+ exports.OpenTunnel$ = OpenTunnel$;
251
712
  exports.OpenTunnelCommand = OpenTunnelCommand;
713
+ exports.OpenTunnelRequest$ = OpenTunnelRequest$;
714
+ exports.OpenTunnelResponse$ = OpenTunnelResponse$;
715
+ exports.ResourceNotFoundException = ResourceNotFoundException;
716
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
717
+ exports.RotateTunnelAccessToken$ = RotateTunnelAccessToken$;
252
718
  exports.RotateTunnelAccessTokenCommand = RotateTunnelAccessTokenCommand;
719
+ exports.RotateTunnelAccessTokenRequest$ = RotateTunnelAccessTokenRequest$;
720
+ exports.RotateTunnelAccessTokenResponse$ = RotateTunnelAccessTokenResponse$;
721
+ exports.Tag$ = Tag$;
722
+ exports.TagResource$ = TagResource$;
253
723
  exports.TagResourceCommand = TagResourceCommand;
724
+ exports.TagResourceRequest$ = TagResourceRequest$;
725
+ exports.TagResourceResponse$ = TagResourceResponse$;
726
+ exports.TimeoutConfig$ = TimeoutConfig$;
727
+ exports.Tunnel$ = Tunnel$;
254
728
  exports.TunnelStatus = TunnelStatus;
729
+ exports.TunnelSummary$ = TunnelSummary$;
730
+ exports.UntagResource$ = UntagResource$;
255
731
  exports.UntagResourceCommand = UntagResourceCommand;
732
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
733
+ exports.UntagResourceResponse$ = UntagResourceResponse$;
734
+ exports.errorTypeRegistries = errorTypeRegistries;
256
735
  exports.paginateListTunnels = paginateListTunnels;
@@ -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 { AwsJson1_1Protocol } 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: "IoTSecuredTunneling",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "IoTSecureTunneling",
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: IoTSecureTunnelingClientConfig)
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: IoTSecureTunnelingClientConfig)
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: IoTSecureTunnelingClientConfig)
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: IoTSecureTunnelingClientConfig)
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 { IoTSecureTunnelingClientConfig } from "./IoTSecureTunnelingClient"
4
4
  */
5
5
  export declare const getRuntimeConfig: (config: IoTSecureTunnelingClientConfig) => {
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").AwsJson1_1Protocol;
@@ -13,9 +12,10 @@ export declare const getRuntimeConfig: (config: IoTSecureTunnelingClientConfig)
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;
@@ -21,6 +21,7 @@ export declare const getRuntimeConfig: (config: IoTSecureTunnelingClientConfig)
21
21
  defaultNamespace?: string;
22
22
  };
23
23
  serviceId: string;
24
+ sha256: import("@smithy/types").HashConstructor;
24
25
  urlParser: import("@smithy/types").UrlParser;
25
26
  utf8Decoder: import("@smithy/types").Decoder;
26
27
  utf8Encoder: (input: Uint8Array | string) => string;