@aws-sdk/client-interconnect 3.1074.0 → 3.1076.0

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