@aws-sdk/client-interconnect 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, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, 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, defaultInterconnectHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { AcceptConnectionProposal$, CreateConnection$, DeleteConnection$, DescribeConnectionProposal$, GetConnection$, GetEnvironment$, ListAttachPoints$, ListConnections$, ListEnvironments$, ListTagsForResource$, TagResource$, UntagResource$, UpdateConnection$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { InterconnectServiceException } = require("./models/InterconnectServiceException");
18
- exports.InterconnectServiceException = InterconnectServiceException;
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_0Protocol } = require("@aws-sdk/core/protocols");
16
+ const { Sha256 } = require("@smithy/core/checksum");
17
+
18
+ const defaultInterconnectHttpAuthSchemeParametersProvider = 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: "interconnect",
31
+ region: authParameters.region,
32
+ },
33
+ propertiesExtractor: (config, context) => ({
34
+ signingProperties: {
35
+ config,
36
+ context,
37
+ },
38
+ }),
39
+ };
40
+ }
41
+ const defaultInterconnectHttpAuthSchemeProvider = (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, {
@@ -29,6 +66,579 @@ const commonParams = {
29
66
  Region: { type: "builtInParams", name: "region" },
30
67
  };
31
68
 
69
+ var version = "3.1076.0";
70
+ var packageInfo = {
71
+ version: version};
72
+
73
+ const a = "isSet", b = { "ref": "Endpoint" }, c = [{ "ref": "Region" }];
74
+ const _data = {
75
+ conditions: [
76
+ [a, [b]],
77
+ [a, c],
78
+ ["aws.partition", c, "PartitionResult"],
79
+ ["booleanEquals", [{ ref: "UseFIPS" }, true]]
80
+ ],
81
+ results: [
82
+ [-1],
83
+ [-1, "Invalid Configuration: FIPS and custom endpoint are not supported"],
84
+ [b, {}],
85
+ ["https://interconnect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", {}],
86
+ ["https://interconnect.{Region}.{PartitionResult#dualStackDnsSuffix}", {}],
87
+ [-1, "Invalid Configuration: Missing Region"]
88
+ ]
89
+ };
90
+ const root = 2;
91
+ const r = 100_000_000;
92
+ const nodes = new Int32Array([
93
+ -1, 1, -1,
94
+ 0, 6, 3,
95
+ 1, 4, r + 5,
96
+ 2, 5, r + 5,
97
+ 3, r + 3, r + 4,
98
+ 3, r + 1, r + 2,
99
+ ]);
100
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
101
+
102
+ const cache = new EndpointCache({
103
+ size: 50,
104
+ params: ["Endpoint", "Region", "UseFIPS"],
105
+ });
106
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
107
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
108
+ endpointParams: endpointParams,
109
+ logger: context.logger,
110
+ }));
111
+ };
112
+ customEndpointFunctions.aws = awsEndpointFunctions;
113
+
114
+ class InterconnectServiceException extends ServiceException {
115
+ constructor(options) {
116
+ super(options);
117
+ Object.setPrototypeOf(this, InterconnectServiceException.prototype);
118
+ }
119
+ }
120
+
121
+ class AccessDeniedException extends InterconnectServiceException {
122
+ name = "AccessDeniedException";
123
+ $fault = "client";
124
+ constructor(opts) {
125
+ super({
126
+ name: "AccessDeniedException",
127
+ $fault: "client",
128
+ ...opts,
129
+ });
130
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
131
+ }
132
+ }
133
+ class InterconnectClientException extends InterconnectServiceException {
134
+ name = "InterconnectClientException";
135
+ $fault = "client";
136
+ constructor(opts) {
137
+ super({
138
+ name: "InterconnectClientException",
139
+ $fault: "client",
140
+ ...opts,
141
+ });
142
+ Object.setPrototypeOf(this, InterconnectClientException.prototype);
143
+ }
144
+ }
145
+ class InterconnectServerException extends InterconnectServiceException {
146
+ name = "InterconnectServerException";
147
+ $fault = "server";
148
+ constructor(opts) {
149
+ super({
150
+ name: "InterconnectServerException",
151
+ $fault: "server",
152
+ ...opts,
153
+ });
154
+ Object.setPrototypeOf(this, InterconnectServerException.prototype);
155
+ }
156
+ }
157
+ class InterconnectValidationException extends InterconnectServiceException {
158
+ name = "InterconnectValidationException";
159
+ $fault = "client";
160
+ constructor(opts) {
161
+ super({
162
+ name: "InterconnectValidationException",
163
+ $fault: "client",
164
+ ...opts,
165
+ });
166
+ Object.setPrototypeOf(this, InterconnectValidationException.prototype);
167
+ }
168
+ }
169
+ class ResourceNotFoundException extends InterconnectServiceException {
170
+ name = "ResourceNotFoundException";
171
+ $fault = "client";
172
+ constructor(opts) {
173
+ super({
174
+ name: "ResourceNotFoundException",
175
+ $fault: "client",
176
+ ...opts,
177
+ });
178
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
179
+ }
180
+ }
181
+ class ServiceQuotaExceededException extends InterconnectServiceException {
182
+ name = "ServiceQuotaExceededException";
183
+ $fault = "client";
184
+ constructor(opts) {
185
+ super({
186
+ name: "ServiceQuotaExceededException",
187
+ $fault: "client",
188
+ ...opts,
189
+ });
190
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
191
+ }
192
+ }
193
+ class ThrottlingException extends InterconnectServiceException {
194
+ name = "ThrottlingException";
195
+ $fault = "client";
196
+ constructor(opts) {
197
+ super({
198
+ name: "ThrottlingException",
199
+ $fault: "client",
200
+ ...opts,
201
+ });
202
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
203
+ }
204
+ }
205
+
206
+ const _ACP = "AcceptConnectionProposal";
207
+ const _ACPR = "AcceptConnectionProposalRequest";
208
+ const _ACPRc = "AcceptConnectionProposalResponse";
209
+ const _ADE = "AccessDeniedException";
210
+ const _AK = "ActivationKey";
211
+ const _AP = "AttachPoint";
212
+ const _APD = "AttachPointDescriptor";
213
+ const _APDL = "AttachPointDescriptorList";
214
+ const _B = "Bandwidths";
215
+ const _C = "Connection";
216
+ const _CC = "CreateConnection";
217
+ const _CCR = "CreateConnectionRequest";
218
+ const _CCRr = "CreateConnectionResponse";
219
+ const _CS = "ConnectionSummary";
220
+ const _CSL = "ConnectionSummariesList";
221
+ const _DC = "DeleteConnection";
222
+ const _DCP = "DescribeConnectionProposal";
223
+ const _DCPR = "DescribeConnectionProposalRequest";
224
+ const _DCPRe = "DescribeConnectionProposalResponse";
225
+ const _DCR = "DeleteConnectionRequest";
226
+ const _DCRe = "DeleteConnectionResponse";
227
+ const _E = "Environment";
228
+ const _EL = "EnvironmentList";
229
+ const _GC = "GetConnection";
230
+ const _GCR = "GetConnectionRequest";
231
+ const _GCRe = "GetConnectionResponse";
232
+ const _GE = "GetEnvironment";
233
+ const _GER = "GetEnvironmentRequest";
234
+ const _GERe = "GetEnvironmentResponse";
235
+ const _ICE = "InterconnectClientException";
236
+ const _ISE = "InterconnectServerException";
237
+ const _IVE = "InterconnectValidationException";
238
+ const _LAP = "ListAttachPoints";
239
+ const _LAPR = "ListAttachPointsRequest";
240
+ const _LAPRi = "ListAttachPointsResponse";
241
+ const _LC = "ListConnections";
242
+ const _LCR = "ListConnectionsRequest";
243
+ const _LCRi = "ListConnectionsResponse";
244
+ const _LE = "ListEnvironments";
245
+ const _LER = "ListEnvironmentsRequest";
246
+ const _LERi = "ListEnvironmentsResponse";
247
+ const _LTFR = "ListTagsForResource";
248
+ const _LTFRR = "ListTagsForResourceRequest";
249
+ const _LTFRRi = "ListTagsForResourceResponse";
250
+ const _P = "Provider";
251
+ const _RAI = "RemoteAccountIdentifier";
252
+ const _RNFE = "ResourceNotFoundException";
253
+ const _SQEE = "ServiceQuotaExceededException";
254
+ const _TE = "ThrottlingException";
255
+ const _TR = "TagResource";
256
+ const _TRR = "TagResourceRequest";
257
+ const _TRRa = "TagResourceResponse";
258
+ const _UC = "UpdateConnection";
259
+ const _UCR = "UpdateConnectionRequest";
260
+ const _UCRp = "UpdateConnectionResponse";
261
+ const _UR = "UntagResource";
262
+ const _URR = "UntagResourceRequest";
263
+ const _URRn = "UntagResourceResponse";
264
+ const _a = "available";
265
+ const _aK = "activationKey";
266
+ const _aP = "attachPoint";
267
+ const _aPU = "activationPageUrl";
268
+ const _aPt = "attachPoints";
269
+ const _ar = "arn";
270
+ const _b = "bandwidth";
271
+ const _bT = "billingTier";
272
+ const _ba = "bandwidths";
273
+ const _c = "client";
274
+ const _cSP = "cloudServiceProvider";
275
+ const _cT = "clientToken";
276
+ const _co = "connection";
277
+ const _con = "connections";
278
+ const _d = "description";
279
+ const _dCG = "directConnectGateway";
280
+ const _e = "error";
281
+ const _eI = "environmentId";
282
+ const _en = "environment";
283
+ const _env = "environments";
284
+ const _hE = "httpError";
285
+ const _i = "identifier";
286
+ const _id = "id";
287
+ const _l = "location";
288
+ const _lMP = "lastMileProvider";
289
+ const _m = "message";
290
+ const _mR = "maxResults";
291
+ const _n = "name";
292
+ const _nT = "nextToken";
293
+ const _oA = "ownerAccount";
294
+ const _p = "provider";
295
+ const _rA = "remoteAccount";
296
+ const _rIT = "remoteIdentifierType";
297
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.interconnect";
298
+ const _sI = "sharedId";
299
+ const _se = "server";
300
+ const _st = "state";
301
+ const _su = "supported";
302
+ const _t = "tags";
303
+ const _tK = "tagKeys";
304
+ const _ty = "type";
305
+ const n0 = "com.amazonaws.interconnect";
306
+ const _s_registry = TypeRegistry.for(_s);
307
+ var InterconnectServiceException$ = [-3, _s, "InterconnectServiceException", 0, [], []];
308
+ _s_registry.registerError(InterconnectServiceException$, InterconnectServiceException);
309
+ const n0_registry = TypeRegistry.for(n0);
310
+ var AccessDeniedException$ = [-3, n0, _ADE,
311
+ { [_e]: _c, [_hE]: 403 },
312
+ [_m],
313
+ [0]
314
+ ];
315
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
316
+ var InterconnectClientException$ = [-3, n0, _ICE,
317
+ { [_e]: _c, [_hE]: 400 },
318
+ [_m],
319
+ [0], 1
320
+ ];
321
+ n0_registry.registerError(InterconnectClientException$, InterconnectClientException);
322
+ var InterconnectServerException$ = [-3, n0, _ISE,
323
+ { [_e]: _se, [_hE]: 500 },
324
+ [_m],
325
+ [0], 1
326
+ ];
327
+ n0_registry.registerError(InterconnectServerException$, InterconnectServerException);
328
+ var InterconnectValidationException$ = [-3, n0, _IVE,
329
+ { [_e]: _c, [_hE]: 400 },
330
+ [_m],
331
+ [0], 1
332
+ ];
333
+ n0_registry.registerError(InterconnectValidationException$, InterconnectValidationException);
334
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
335
+ { [_e]: _c, [_hE]: 404 },
336
+ [_m],
337
+ [0]
338
+ ];
339
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
340
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
341
+ { [_e]: _c, [_hE]: 402 },
342
+ [_m],
343
+ [0]
344
+ ];
345
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
346
+ var ThrottlingException$ = [-3, n0, _TE,
347
+ { [_e]: _c, [_hE]: 429 },
348
+ [_m],
349
+ [0]
350
+ ];
351
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
352
+ const errorTypeRegistries = [
353
+ _s_registry,
354
+ n0_registry,
355
+ ];
356
+ var ActivationKey = [0, n0, _AK, 8, 0];
357
+ var AcceptConnectionProposalRequest$ = [3, n0, _ACPR,
358
+ 0,
359
+ [_aP, _aK, _d, _t, _cT],
360
+ [() => AttachPoint$, [() => ActivationKey, 0], 0, 128 | 0, [0, 4]], 2
361
+ ];
362
+ var AcceptConnectionProposalResponse$ = [3, n0, _ACPRc,
363
+ 0,
364
+ [_co],
365
+ [[() => Connection$, 0]]
366
+ ];
367
+ var AttachPointDescriptor$ = [3, n0, _APD,
368
+ 0,
369
+ [_ty, _i, _n],
370
+ [0, 0, 0], 3
371
+ ];
372
+ var Bandwidths$ = [3, n0, _B,
373
+ 0,
374
+ [_a, _su],
375
+ [64 | 0, 64 | 0]
376
+ ];
377
+ var Connection$ = [3, n0, _C,
378
+ 0,
379
+ [_id, _ar, _d, _b, _aP, _eI, _p, _l, _ty, _st, _sI, _oA, _aK, _bT, _t],
380
+ [0, 0, 0, 0, () => AttachPoint$, 0, () => Provider$, 0, 0, 0, 0, 0, [() => ActivationKey, 0], 1, 128 | 0], 13
381
+ ];
382
+ var ConnectionSummary$ = [3, n0, _CS,
383
+ 0,
384
+ [_id, _ar, _d, _b, _aP, _eI, _p, _l, _ty, _st, _sI, _bT],
385
+ [0, 0, 0, 0, () => AttachPoint$, 0, () => Provider$, 0, 0, 0, 0, 1], 11
386
+ ];
387
+ var CreateConnectionRequest$ = [3, n0, _CCR,
388
+ 0,
389
+ [_b, _aP, _eI, _d, _rA, _t, _cT],
390
+ [0, () => AttachPoint$, 0, 0, () => RemoteAccountIdentifier$, 128 | 0, [0, 4]], 3
391
+ ];
392
+ var CreateConnectionResponse$ = [3, n0, _CCRr,
393
+ 0,
394
+ [_co],
395
+ [[() => Connection$, 0]]
396
+ ];
397
+ var DeleteConnectionRequest$ = [3, n0, _DCR,
398
+ 0,
399
+ [_i, _cT],
400
+ [0, [0, 4]], 1
401
+ ];
402
+ var DeleteConnectionResponse$ = [3, n0, _DCRe,
403
+ 0,
404
+ [_co],
405
+ [[() => Connection$, 0]], 1
406
+ ];
407
+ var DescribeConnectionProposalRequest$ = [3, n0, _DCPR,
408
+ 0,
409
+ [_aK],
410
+ [[() => ActivationKey, 0]], 1
411
+ ];
412
+ var DescribeConnectionProposalResponse$ = [3, n0, _DCPRe,
413
+ 0,
414
+ [_b, _eI, _p, _l],
415
+ [0, 0, () => Provider$, 0], 4
416
+ ];
417
+ var Environment$ = [3, n0, _E,
418
+ 0,
419
+ [_p, _l, _eI, _st, _ba, _ty, _aPU, _rIT],
420
+ [() => Provider$, 0, 0, 0, () => Bandwidths$, 0, 0, 0], 6
421
+ ];
422
+ var GetConnectionRequest$ = [3, n0, _GCR,
423
+ 0,
424
+ [_i],
425
+ [0], 1
426
+ ];
427
+ var GetConnectionResponse$ = [3, n0, _GCRe,
428
+ 0,
429
+ [_co],
430
+ [[() => Connection$, 0]]
431
+ ];
432
+ var GetEnvironmentRequest$ = [3, n0, _GER,
433
+ 0,
434
+ [_id],
435
+ [0], 1
436
+ ];
437
+ var GetEnvironmentResponse$ = [3, n0, _GERe,
438
+ 0,
439
+ [_en],
440
+ [() => Environment$], 1
441
+ ];
442
+ var ListAttachPointsRequest$ = [3, n0, _LAPR,
443
+ 0,
444
+ [_eI, _mR, _nT],
445
+ [0, 1, 0], 1
446
+ ];
447
+ var ListAttachPointsResponse$ = [3, n0, _LAPRi,
448
+ 0,
449
+ [_aPt, _nT],
450
+ [() => AttachPointDescriptorList, 0], 1
451
+ ];
452
+ var ListConnectionsRequest$ = [3, n0, _LCR,
453
+ 0,
454
+ [_mR, _nT, _st, _eI, _p, _aP],
455
+ [1, 0, 0, 0, () => Provider$, () => AttachPoint$]
456
+ ];
457
+ var ListConnectionsResponse$ = [3, n0, _LCRi,
458
+ 0,
459
+ [_con, _nT],
460
+ [() => ConnectionSummariesList, 0]
461
+ ];
462
+ var ListEnvironmentsRequest$ = [3, n0, _LER,
463
+ 0,
464
+ [_mR, _nT, _p, _l],
465
+ [1, 0, () => Provider$, 0]
466
+ ];
467
+ var ListEnvironmentsResponse$ = [3, n0, _LERi,
468
+ 0,
469
+ [_env, _nT],
470
+ [() => EnvironmentList, 0], 1
471
+ ];
472
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
473
+ 0,
474
+ [_ar],
475
+ [0], 1
476
+ ];
477
+ var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
478
+ 0,
479
+ [_t],
480
+ [128 | 0]
481
+ ];
482
+ var TagResourceRequest$ = [3, n0, _TRR,
483
+ 0,
484
+ [_ar, _t],
485
+ [0, 128 | 0], 2
486
+ ];
487
+ var TagResourceResponse$ = [3, n0, _TRRa,
488
+ 0,
489
+ [],
490
+ []
491
+ ];
492
+ var UntagResourceRequest$ = [3, n0, _URR,
493
+ 0,
494
+ [_ar, _tK],
495
+ [0, 64 | 0], 2
496
+ ];
497
+ var UntagResourceResponse$ = [3, n0, _URRn,
498
+ 0,
499
+ [],
500
+ []
501
+ ];
502
+ var UpdateConnectionRequest$ = [3, n0, _UCR,
503
+ 0,
504
+ [_i, _d, _b, _cT],
505
+ [0, 0, 0, [0, 4]], 1
506
+ ];
507
+ var UpdateConnectionResponse$ = [3, n0, _UCRp,
508
+ 0,
509
+ [_co],
510
+ [[() => Connection$, 0]]
511
+ ];
512
+ var AttachPointDescriptorList = [1, n0, _APDL,
513
+ 0, () => AttachPointDescriptor$
514
+ ];
515
+ var ConnectionSummariesList = [1, n0, _CSL,
516
+ 0, () => ConnectionSummary$
517
+ ];
518
+ var EnvironmentList = [1, n0, _EL,
519
+ 0, () => Environment$
520
+ ];
521
+ var AttachPoint$ = [4, n0, _AP,
522
+ 0,
523
+ [_dCG, _ar],
524
+ [0, 0]
525
+ ];
526
+ var Provider$ = [4, n0, _P,
527
+ 0,
528
+ [_cSP, _lMP],
529
+ [0, 0]
530
+ ];
531
+ var RemoteAccountIdentifier$ = [4, n0, _RAI,
532
+ 0,
533
+ [_i],
534
+ [0]
535
+ ];
536
+ var AcceptConnectionProposal$ = [9, n0, _ACP,
537
+ 2, () => AcceptConnectionProposalRequest$, () => AcceptConnectionProposalResponse$
538
+ ];
539
+ var CreateConnection$ = [9, n0, _CC,
540
+ 2, () => CreateConnectionRequest$, () => CreateConnectionResponse$
541
+ ];
542
+ var DeleteConnection$ = [9, n0, _DC,
543
+ 2, () => DeleteConnectionRequest$, () => DeleteConnectionResponse$
544
+ ];
545
+ var DescribeConnectionProposal$ = [9, n0, _DCP,
546
+ 0, () => DescribeConnectionProposalRequest$, () => DescribeConnectionProposalResponse$
547
+ ];
548
+ var GetConnection$ = [9, n0, _GC,
549
+ 0, () => GetConnectionRequest$, () => GetConnectionResponse$
550
+ ];
551
+ var GetEnvironment$ = [9, n0, _GE,
552
+ 0, () => GetEnvironmentRequest$, () => GetEnvironmentResponse$
553
+ ];
554
+ var ListAttachPoints$ = [9, n0, _LAP,
555
+ 0, () => ListAttachPointsRequest$, () => ListAttachPointsResponse$
556
+ ];
557
+ var ListConnections$ = [9, n0, _LC,
558
+ 0, () => ListConnectionsRequest$, () => ListConnectionsResponse$
559
+ ];
560
+ var ListEnvironments$ = [9, n0, _LE,
561
+ 0, () => ListEnvironmentsRequest$, () => ListEnvironmentsResponse$
562
+ ];
563
+ var ListTagsForResource$ = [9, n0, _LTFR,
564
+ 0, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
565
+ ];
566
+ var TagResource$ = [9, n0, _TR,
567
+ 0, () => TagResourceRequest$, () => TagResourceResponse$
568
+ ];
569
+ var UntagResource$ = [9, n0, _UR,
570
+ 0, () => UntagResourceRequest$, () => UntagResourceResponse$
571
+ ];
572
+ var UpdateConnection$ = [9, n0, _UC,
573
+ 2, () => UpdateConnectionRequest$, () => UpdateConnectionResponse$
574
+ ];
575
+
576
+ const getRuntimeConfig$1 = (config) => {
577
+ return {
578
+ apiVersion: "2022-07-26",
579
+ base64Decoder: config?.base64Decoder ?? fromBase64,
580
+ base64Encoder: config?.base64Encoder ?? toBase64,
581
+ disableHostPrefix: config?.disableHostPrefix ?? false,
582
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
583
+ extensions: config?.extensions ?? [],
584
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultInterconnectHttpAuthSchemeProvider,
585
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
586
+ {
587
+ schemeId: "aws.auth#sigv4",
588
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
589
+ signer: new AwsSdkSigV4Signer(),
590
+ },
591
+ ],
592
+ logger: config?.logger ?? new NoOpLogger(),
593
+ protocol: config?.protocol ?? AwsJson1_0Protocol,
594
+ protocolSettings: config?.protocolSettings ?? {
595
+ defaultNamespace: "com.amazonaws.interconnect",
596
+ errorTypeRegistries,
597
+ version: "2022-07-26",
598
+ serviceTarget: "Interconnect",
599
+ },
600
+ serviceId: config?.serviceId ?? "Interconnect",
601
+ sha256: config?.sha256 ?? Sha256,
602
+ urlParser: config?.urlParser ?? parseUrl,
603
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
604
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
605
+ };
606
+ };
607
+
608
+ const getRuntimeConfig = (config) => {
609
+ emitWarningIfUnsupportedVersion(process.version);
610
+ const defaultsMode = resolveDefaultsModeConfig(config);
611
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
612
+ const clientSharedValues = getRuntimeConfig$1(config);
613
+ emitWarningIfUnsupportedVersion$1(process.version);
614
+ const loaderConfig = {
615
+ profile: config?.profile,
616
+ logger: clientSharedValues.logger,
617
+ };
618
+ return {
619
+ ...clientSharedValues,
620
+ ...config,
621
+ runtime: "node",
622
+ defaultsMode,
623
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
624
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
625
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
626
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
627
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
628
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
629
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
630
+ retryMode: config?.retryMode ??
631
+ loadConfig({
632
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
633
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
634
+ }, config),
635
+ streamCollector: config?.streamCollector ?? streamCollector,
636
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
637
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
638
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
639
+ };
640
+ };
641
+
32
642
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
33
643
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
34
644
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -400,25 +1010,89 @@ const EnvironmentState = {
400
1010
  UNAVAILABLE: "unavailable",
401
1011
  };
402
1012
 
1013
+ exports.AcceptConnectionProposal$ = AcceptConnectionProposal$;
403
1014
  exports.AcceptConnectionProposalCommand = AcceptConnectionProposalCommand;
1015
+ exports.AcceptConnectionProposalRequest$ = AcceptConnectionProposalRequest$;
1016
+ exports.AcceptConnectionProposalResponse$ = AcceptConnectionProposalResponse$;
1017
+ exports.AccessDeniedException = AccessDeniedException;
1018
+ exports.AccessDeniedException$ = AccessDeniedException$;
1019
+ exports.AttachPoint$ = AttachPoint$;
1020
+ exports.AttachPointDescriptor$ = AttachPointDescriptor$;
404
1021
  exports.AttachPointType = AttachPointType;
1022
+ exports.Bandwidths$ = Bandwidths$;
1023
+ exports.Connection$ = Connection$;
405
1024
  exports.ConnectionState = ConnectionState;
1025
+ exports.ConnectionSummary$ = ConnectionSummary$;
1026
+ exports.CreateConnection$ = CreateConnection$;
406
1027
  exports.CreateConnectionCommand = CreateConnectionCommand;
1028
+ exports.CreateConnectionRequest$ = CreateConnectionRequest$;
1029
+ exports.CreateConnectionResponse$ = CreateConnectionResponse$;
1030
+ exports.DeleteConnection$ = DeleteConnection$;
407
1031
  exports.DeleteConnectionCommand = DeleteConnectionCommand;
1032
+ exports.DeleteConnectionRequest$ = DeleteConnectionRequest$;
1033
+ exports.DeleteConnectionResponse$ = DeleteConnectionResponse$;
1034
+ exports.DescribeConnectionProposal$ = DescribeConnectionProposal$;
408
1035
  exports.DescribeConnectionProposalCommand = DescribeConnectionProposalCommand;
1036
+ exports.DescribeConnectionProposalRequest$ = DescribeConnectionProposalRequest$;
1037
+ exports.DescribeConnectionProposalResponse$ = DescribeConnectionProposalResponse$;
1038
+ exports.Environment$ = Environment$;
409
1039
  exports.EnvironmentState = EnvironmentState;
1040
+ exports.GetConnection$ = GetConnection$;
410
1041
  exports.GetConnectionCommand = GetConnectionCommand;
1042
+ exports.GetConnectionRequest$ = GetConnectionRequest$;
1043
+ exports.GetConnectionResponse$ = GetConnectionResponse$;
1044
+ exports.GetEnvironment$ = GetEnvironment$;
411
1045
  exports.GetEnvironmentCommand = GetEnvironmentCommand;
1046
+ exports.GetEnvironmentRequest$ = GetEnvironmentRequest$;
1047
+ exports.GetEnvironmentResponse$ = GetEnvironmentResponse$;
412
1048
  exports.Interconnect = Interconnect;
413
1049
  exports.InterconnectClient = InterconnectClient;
1050
+ exports.InterconnectClientException = InterconnectClientException;
1051
+ exports.InterconnectClientException$ = InterconnectClientException$;
1052
+ exports.InterconnectServerException = InterconnectServerException;
1053
+ exports.InterconnectServerException$ = InterconnectServerException$;
1054
+ exports.InterconnectServiceException = InterconnectServiceException;
1055
+ exports.InterconnectServiceException$ = InterconnectServiceException$;
1056
+ exports.InterconnectValidationException = InterconnectValidationException;
1057
+ exports.InterconnectValidationException$ = InterconnectValidationException$;
1058
+ exports.ListAttachPoints$ = ListAttachPoints$;
414
1059
  exports.ListAttachPointsCommand = ListAttachPointsCommand;
1060
+ exports.ListAttachPointsRequest$ = ListAttachPointsRequest$;
1061
+ exports.ListAttachPointsResponse$ = ListAttachPointsResponse$;
1062
+ exports.ListConnections$ = ListConnections$;
415
1063
  exports.ListConnectionsCommand = ListConnectionsCommand;
1064
+ exports.ListConnectionsRequest$ = ListConnectionsRequest$;
1065
+ exports.ListConnectionsResponse$ = ListConnectionsResponse$;
1066
+ exports.ListEnvironments$ = ListEnvironments$;
416
1067
  exports.ListEnvironmentsCommand = ListEnvironmentsCommand;
1068
+ exports.ListEnvironmentsRequest$ = ListEnvironmentsRequest$;
1069
+ exports.ListEnvironmentsResponse$ = ListEnvironmentsResponse$;
1070
+ exports.ListTagsForResource$ = ListTagsForResource$;
417
1071
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1072
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
1073
+ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
1074
+ exports.Provider$ = Provider$;
1075
+ exports.RemoteAccountIdentifier$ = RemoteAccountIdentifier$;
418
1076
  exports.RemoteAccountIdentifierType = RemoteAccountIdentifierType;
1077
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1078
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
1079
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1080
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
1081
+ exports.TagResource$ = TagResource$;
419
1082
  exports.TagResourceCommand = TagResourceCommand;
1083
+ exports.TagResourceRequest$ = TagResourceRequest$;
1084
+ exports.TagResourceResponse$ = TagResourceResponse$;
1085
+ exports.ThrottlingException = ThrottlingException;
1086
+ exports.ThrottlingException$ = ThrottlingException$;
1087
+ exports.UntagResource$ = UntagResource$;
420
1088
  exports.UntagResourceCommand = UntagResourceCommand;
1089
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
1090
+ exports.UntagResourceResponse$ = UntagResourceResponse$;
1091
+ exports.UpdateConnection$ = UpdateConnection$;
421
1092
  exports.UpdateConnectionCommand = UpdateConnectionCommand;
1093
+ exports.UpdateConnectionRequest$ = UpdateConnectionRequest$;
1094
+ exports.UpdateConnectionResponse$ = UpdateConnectionResponse$;
1095
+ exports.errorTypeRegistries = errorTypeRegistries;
422
1096
  exports.paginateListAttachPoints = paginateListAttachPoints;
423
1097
  exports.paginateListConnections = paginateListConnections;
424
1098
  exports.paginateListEnvironments = paginateListEnvironments;