@aws-sdk/client-interconnect 3.1068.0 → 3.1069.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.
@@ -1,17 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveHttpAuthSchemeConfig = exports.defaultInterconnectHttpAuthSchemeProvider = exports.defaultInterconnectHttpAuthSchemeParametersProvider = void 0;
4
- const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
- const client_1 = require("@smithy/core/client");
6
- const defaultInterconnectHttpAuthSchemeParametersProvider = async (config, context, input) => {
1
+ const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
2
+ const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
3
+ exports.defaultInterconnectHttpAuthSchemeParametersProvider = async (config, context, input) => {
7
4
  return {
8
- operation: (0, client_1.getSmithyContext)(context).operation,
9
- region: await (0, client_1.normalizeProvider)(config.region)() || (() => {
5
+ operation: getSmithyContext(context).operation,
6
+ region: await normalizeProvider(config.region)() || (() => {
10
7
  throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
11
8
  })(),
12
9
  };
13
10
  };
14
- exports.defaultInterconnectHttpAuthSchemeParametersProvider = defaultInterconnectHttpAuthSchemeParametersProvider;
15
11
  function createAwsAuthSigv4HttpAuthOption(authParameters) {
16
12
  return {
17
13
  schemeId: "aws.auth#sigv4",
@@ -27,7 +23,7 @@ function createAwsAuthSigv4HttpAuthOption(authParameters) {
27
23
  }),
28
24
  };
29
25
  }
30
- const defaultInterconnectHttpAuthSchemeProvider = (authParameters) => {
26
+ exports.defaultInterconnectHttpAuthSchemeProvider = (authParameters) => {
31
27
  const options = [];
32
28
  switch (authParameters.operation) {
33
29
  default: {
@@ -36,11 +32,9 @@ const defaultInterconnectHttpAuthSchemeProvider = (authParameters) => {
36
32
  }
37
33
  return options;
38
34
  };
39
- exports.defaultInterconnectHttpAuthSchemeProvider = defaultInterconnectHttpAuthSchemeProvider;
40
- const resolveHttpAuthSchemeConfig = (config) => {
41
- const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
35
+ exports.resolveHttpAuthSchemeConfig = (config) => {
36
+ const config_0 = resolveAwsSdkSigV4Config(config);
42
37
  return Object.assign(config_0, {
43
- authSchemePreference: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
38
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
44
39
  });
45
40
  };
46
- exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bdd = void 0;
4
- const endpoints_1 = require("@smithy/core/endpoints");
1
+ const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
5
2
  const a = "isSet", b = { "ref": "Endpoint" }, c = [{ "ref": "Region" }];
6
3
  const _data = {
7
4
  conditions: [
@@ -29,4 +26,4 @@ const nodes = new Int32Array([
29
26
  3, r + 3, r + 4,
30
27
  3, r + 1, r + 2,
31
28
  ]);
32
- exports.bdd = endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
29
+ exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -1,18 +1,14 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultEndpointResolver = void 0;
4
- const client_1 = require("@aws-sdk/core/client");
5
- const endpoints_1 = require("@smithy/core/endpoints");
6
- const bdd_1 = require("./bdd");
7
- const cache = new endpoints_1.EndpointCache({
1
+ const { awsEndpointFunctions } = require("@aws-sdk/core/client");
2
+ const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
3
+ const { bdd } = require("./bdd");
4
+ const cache = new EndpointCache({
8
5
  size: 50,
9
6
  params: ["Endpoint", "Region", "UseFIPS"],
10
7
  });
11
- const defaultEndpointResolver = (endpointParams, context = {}) => {
12
- return cache.get(endpointParams, () => (0, endpoints_1.decideEndpoint)(bdd_1.bdd, {
8
+ exports.defaultEndpointResolver = (endpointParams, context = {}) => {
9
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
13
10
  endpointParams: endpointParams,
14
11
  logger: context.logger,
15
12
  }));
16
13
  };
17
- exports.defaultEndpointResolver = defaultEndpointResolver;
18
- endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
14
+ customEndpointFunctions.aws = awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -1,18 +1,21 @@
1
- 'use strict';
2
-
3
- var client$1 = require('@aws-sdk/core/client');
4
- var core = require('@smithy/core');
5
- var client = require('@smithy/core/client');
6
- var config = require('@smithy/core/config');
7
- var endpoints = require('@smithy/core/endpoints');
8
- var protocols = require('@smithy/core/protocols');
9
- var retry = require('@smithy/core/retry');
10
- var schema = require('@smithy/core/schema');
11
- var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
12
- var runtimeConfig = require('./runtimeConfig');
13
- var schemas_0 = require('./schemas/schemas_0');
14
- var errors = require('./models/errors');
15
- var InterconnectServiceException = require('./models/InterconnectServiceException');
1
+ var __exportStar = (m, e) => { Object.assign(e, m); };
2
+ const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
+ const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
+ const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
5
+ exports.$Command = Command;
6
+ 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;
16
19
 
17
20
  const resolveClientEndpointParameters = (options) => {
18
21
  return Object.assign(options, {
@@ -66,219 +69,219 @@ const resolveHttpAuthRuntimeConfig = (config) => {
66
69
  };
67
70
 
68
71
  const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
69
- const extensionConfiguration = Object.assign(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
72
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
70
73
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
71
- return Object.assign(runtimeConfig, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
74
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
72
75
  };
73
76
 
74
- class InterconnectClient extends client.Client {
77
+ class InterconnectClient extends Client {
75
78
  config;
76
79
  constructor(...[configuration]) {
77
- const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
80
+ const _config_0 = getRuntimeConfig(configuration || {});
78
81
  super(_config_0);
79
82
  this.initConfig = _config_0;
80
83
  const _config_1 = resolveClientEndpointParameters(_config_0);
81
- const _config_2 = client$1.resolveUserAgentConfig(_config_1);
82
- const _config_3 = retry.resolveRetryConfig(_config_2);
83
- const _config_4 = config.resolveRegionConfig(_config_3);
84
- const _config_5 = client$1.resolveHostHeaderConfig(_config_4);
85
- const _config_6 = endpoints.resolveEndpointConfig(_config_5);
86
- const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
84
+ const _config_2 = resolveUserAgentConfig(_config_1);
85
+ const _config_3 = resolveRetryConfig(_config_2);
86
+ const _config_4 = resolveRegionConfig(_config_3);
87
+ const _config_5 = resolveHostHeaderConfig(_config_4);
88
+ const _config_6 = resolveEndpointConfig(_config_5);
89
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
87
90
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
88
91
  this.config = _config_8;
89
- this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
90
- this.middlewareStack.use(client$1.getUserAgentPlugin(this.config));
91
- this.middlewareStack.use(retry.getRetryPlugin(this.config));
92
- this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
93
- this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config));
94
- this.middlewareStack.use(client$1.getLoggerPlugin(this.config));
95
- this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config));
96
- this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
97
- httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultInterconnectHttpAuthSchemeParametersProvider,
98
- identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
92
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
93
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
94
+ this.middlewareStack.use(getRetryPlugin(this.config));
95
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
96
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
97
+ this.middlewareStack.use(getLoggerPlugin(this.config));
98
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
99
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
100
+ httpAuthSchemeParametersProvider: defaultInterconnectHttpAuthSchemeParametersProvider,
101
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
99
102
  "aws.auth#sigv4": config.credentials,
100
103
  }),
101
104
  }));
102
- this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
105
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
103
106
  }
104
107
  destroy() {
105
108
  super.destroy();
106
109
  }
107
110
  }
108
111
 
109
- class AcceptConnectionProposalCommand extends client.Command
112
+ class AcceptConnectionProposalCommand extends Command
110
113
  .classBuilder()
111
114
  .ep(commonParams)
112
115
  .m(function (Command, cs, config, o) {
113
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
116
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
114
117
  })
115
118
  .s("Interconnect", "AcceptConnectionProposal", {})
116
119
  .n("InterconnectClient", "AcceptConnectionProposalCommand")
117
- .sc(schemas_0.AcceptConnectionProposal$)
120
+ .sc(AcceptConnectionProposal$)
118
121
  .build() {
119
122
  }
120
123
 
121
- class CreateConnectionCommand extends client.Command
124
+ class CreateConnectionCommand extends Command
122
125
  .classBuilder()
123
126
  .ep(commonParams)
124
127
  .m(function (Command, cs, config, o) {
125
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
128
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
126
129
  })
127
130
  .s("Interconnect", "CreateConnection", {})
128
131
  .n("InterconnectClient", "CreateConnectionCommand")
129
- .sc(schemas_0.CreateConnection$)
132
+ .sc(CreateConnection$)
130
133
  .build() {
131
134
  }
132
135
 
133
- class DeleteConnectionCommand extends client.Command
136
+ class DeleteConnectionCommand extends Command
134
137
  .classBuilder()
135
138
  .ep(commonParams)
136
139
  .m(function (Command, cs, config, o) {
137
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
140
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
138
141
  })
139
142
  .s("Interconnect", "DeleteConnection", {})
140
143
  .n("InterconnectClient", "DeleteConnectionCommand")
141
- .sc(schemas_0.DeleteConnection$)
144
+ .sc(DeleteConnection$)
142
145
  .build() {
143
146
  }
144
147
 
145
- class DescribeConnectionProposalCommand extends client.Command
148
+ class DescribeConnectionProposalCommand extends Command
146
149
  .classBuilder()
147
150
  .ep(commonParams)
148
151
  .m(function (Command, cs, config, o) {
149
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
152
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
150
153
  })
151
154
  .s("Interconnect", "DescribeConnectionProposal", {})
152
155
  .n("InterconnectClient", "DescribeConnectionProposalCommand")
153
- .sc(schemas_0.DescribeConnectionProposal$)
156
+ .sc(DescribeConnectionProposal$)
154
157
  .build() {
155
158
  }
156
159
 
157
- class GetConnectionCommand extends client.Command
160
+ class GetConnectionCommand extends Command
158
161
  .classBuilder()
159
162
  .ep(commonParams)
160
163
  .m(function (Command, cs, config, o) {
161
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
164
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
162
165
  })
163
166
  .s("Interconnect", "GetConnection", {})
164
167
  .n("InterconnectClient", "GetConnectionCommand")
165
- .sc(schemas_0.GetConnection$)
168
+ .sc(GetConnection$)
166
169
  .build() {
167
170
  }
168
171
 
169
- class GetEnvironmentCommand extends client.Command
172
+ class GetEnvironmentCommand extends Command
170
173
  .classBuilder()
171
174
  .ep(commonParams)
172
175
  .m(function (Command, cs, config, o) {
173
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
176
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
174
177
  })
175
178
  .s("Interconnect", "GetEnvironment", {})
176
179
  .n("InterconnectClient", "GetEnvironmentCommand")
177
- .sc(schemas_0.GetEnvironment$)
180
+ .sc(GetEnvironment$)
178
181
  .build() {
179
182
  }
180
183
 
181
- class ListAttachPointsCommand extends client.Command
184
+ class ListAttachPointsCommand extends Command
182
185
  .classBuilder()
183
186
  .ep(commonParams)
184
187
  .m(function (Command, cs, config, o) {
185
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
188
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
186
189
  })
187
190
  .s("Interconnect", "ListAttachPoints", {})
188
191
  .n("InterconnectClient", "ListAttachPointsCommand")
189
- .sc(schemas_0.ListAttachPoints$)
192
+ .sc(ListAttachPoints$)
190
193
  .build() {
191
194
  }
192
195
 
193
- class ListConnectionsCommand extends client.Command
196
+ class ListConnectionsCommand extends Command
194
197
  .classBuilder()
195
198
  .ep(commonParams)
196
199
  .m(function (Command, cs, config, o) {
197
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
200
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
198
201
  })
199
202
  .s("Interconnect", "ListConnections", {})
200
203
  .n("InterconnectClient", "ListConnectionsCommand")
201
- .sc(schemas_0.ListConnections$)
204
+ .sc(ListConnections$)
202
205
  .build() {
203
206
  }
204
207
 
205
- class ListEnvironmentsCommand extends client.Command
208
+ class ListEnvironmentsCommand extends Command
206
209
  .classBuilder()
207
210
  .ep(commonParams)
208
211
  .m(function (Command, cs, config, o) {
209
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
212
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
210
213
  })
211
214
  .s("Interconnect", "ListEnvironments", {})
212
215
  .n("InterconnectClient", "ListEnvironmentsCommand")
213
- .sc(schemas_0.ListEnvironments$)
216
+ .sc(ListEnvironments$)
214
217
  .build() {
215
218
  }
216
219
 
217
- class ListTagsForResourceCommand extends client.Command
220
+ class ListTagsForResourceCommand extends Command
218
221
  .classBuilder()
219
222
  .ep(commonParams)
220
223
  .m(function (Command, cs, config, o) {
221
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
224
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
222
225
  })
223
226
  .s("Interconnect", "ListTagsForResource", {})
224
227
  .n("InterconnectClient", "ListTagsForResourceCommand")
225
- .sc(schemas_0.ListTagsForResource$)
228
+ .sc(ListTagsForResource$)
226
229
  .build() {
227
230
  }
228
231
 
229
- class TagResourceCommand extends client.Command
232
+ class TagResourceCommand extends Command
230
233
  .classBuilder()
231
234
  .ep(commonParams)
232
235
  .m(function (Command, cs, config, o) {
233
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
236
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
234
237
  })
235
238
  .s("Interconnect", "TagResource", {})
236
239
  .n("InterconnectClient", "TagResourceCommand")
237
- .sc(schemas_0.TagResource$)
240
+ .sc(TagResource$)
238
241
  .build() {
239
242
  }
240
243
 
241
- class UntagResourceCommand extends client.Command
244
+ class UntagResourceCommand extends Command
242
245
  .classBuilder()
243
246
  .ep(commonParams)
244
247
  .m(function (Command, cs, config, o) {
245
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
248
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
246
249
  })
247
250
  .s("Interconnect", "UntagResource", {})
248
251
  .n("InterconnectClient", "UntagResourceCommand")
249
- .sc(schemas_0.UntagResource$)
252
+ .sc(UntagResource$)
250
253
  .build() {
251
254
  }
252
255
 
253
- class UpdateConnectionCommand extends client.Command
256
+ class UpdateConnectionCommand extends Command
254
257
  .classBuilder()
255
258
  .ep(commonParams)
256
259
  .m(function (Command, cs, config, o) {
257
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
260
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
258
261
  })
259
262
  .s("Interconnect", "UpdateConnection", {})
260
263
  .n("InterconnectClient", "UpdateConnectionCommand")
261
- .sc(schemas_0.UpdateConnection$)
264
+ .sc(UpdateConnection$)
262
265
  .build() {
263
266
  }
264
267
 
265
- const paginateListAttachPoints = core.createPaginator(InterconnectClient, ListAttachPointsCommand, "nextToken", "nextToken", "maxResults");
268
+ const paginateListAttachPoints = createPaginator(InterconnectClient, ListAttachPointsCommand, "nextToken", "nextToken", "maxResults");
266
269
 
267
- const paginateListConnections = core.createPaginator(InterconnectClient, ListConnectionsCommand, "nextToken", "nextToken", "maxResults");
270
+ const paginateListConnections = createPaginator(InterconnectClient, ListConnectionsCommand, "nextToken", "nextToken", "maxResults");
268
271
 
269
- const paginateListEnvironments = core.createPaginator(InterconnectClient, ListEnvironmentsCommand, "nextToken", "nextToken", "maxResults");
272
+ const paginateListEnvironments = createPaginator(InterconnectClient, ListEnvironmentsCommand, "nextToken", "nextToken", "maxResults");
270
273
 
271
- const checkState$1 = async (client$1, input) => {
274
+ const checkState$1 = async (client, input) => {
272
275
  let reason;
273
276
  try {
274
- let result = await client$1.send(new GetConnectionCommand(input));
277
+ let result = await client.send(new GetConnectionCommand(input));
275
278
  reason = result;
276
279
  try {
277
280
  const returnComparator = () => {
278
281
  return result.connection.state;
279
282
  };
280
283
  if (returnComparator() === "available") {
281
- return { state: client.WaiterState.SUCCESS, reason };
284
+ return { state: WaiterState.SUCCESS, reason };
282
285
  }
283
286
  }
284
287
  catch (e) { }
@@ -287,7 +290,7 @@ const checkState$1 = async (client$1, input) => {
287
290
  return result.connection.state;
288
291
  };
289
292
  if (returnComparator() === "deleted") {
290
- return { state: client.WaiterState.FAILURE, reason };
293
+ return { state: WaiterState.FAILURE, reason };
291
294
  }
292
295
  }
293
296
  catch (e) { }
@@ -296,7 +299,7 @@ const checkState$1 = async (client$1, input) => {
296
299
  return result.connection.state;
297
300
  };
298
301
  if (returnComparator() === "down") {
299
- return { state: client.WaiterState.FAILURE, reason };
302
+ return { state: WaiterState.FAILURE, reason };
300
303
  }
301
304
  }
302
305
  catch (e) { }
@@ -304,29 +307,29 @@ const checkState$1 = async (client$1, input) => {
304
307
  catch (exception) {
305
308
  reason = exception;
306
309
  }
307
- return { state: client.WaiterState.RETRY, reason };
310
+ return { state: WaiterState.RETRY, reason };
308
311
  };
309
312
  const waitForConnectionAvailable = async (params, input) => {
310
313
  const serviceDefaults = { minDelay: 30, maxDelay: 120 };
311
- return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
314
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
312
315
  };
313
316
  const waitUntilConnectionAvailable = async (params, input) => {
314
317
  const serviceDefaults = { minDelay: 30, maxDelay: 120 };
315
- const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
316
- return client.checkExceptions(result);
318
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
319
+ return checkExceptions(result);
317
320
  };
318
321
 
319
- const checkState = async (client$1, input) => {
322
+ const checkState = async (client, input) => {
320
323
  let reason;
321
324
  try {
322
- let result = await client$1.send(new GetConnectionCommand(input));
325
+ let result = await client.send(new GetConnectionCommand(input));
323
326
  reason = result;
324
327
  try {
325
328
  const returnComparator = () => {
326
329
  return result.connection.state;
327
330
  };
328
331
  if (returnComparator() === "deleted") {
329
- return { state: client.WaiterState.SUCCESS, reason };
332
+ return { state: WaiterState.SUCCESS, reason };
330
333
  }
331
334
  }
332
335
  catch (e) { }
@@ -334,16 +337,16 @@ const checkState = async (client$1, input) => {
334
337
  catch (exception) {
335
338
  reason = exception;
336
339
  }
337
- return { state: client.WaiterState.RETRY, reason };
340
+ return { state: WaiterState.RETRY, reason };
338
341
  };
339
342
  const waitForConnectionDeleted = async (params, input) => {
340
343
  const serviceDefaults = { minDelay: 30, maxDelay: 120 };
341
- return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
344
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
342
345
  };
343
346
  const waitUntilConnectionDeleted = async (params, input) => {
344
347
  const serviceDefaults = { minDelay: 30, maxDelay: 120 };
345
- const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
346
- return client.checkExceptions(result);
348
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
349
+ return checkExceptions(result);
347
350
  };
348
351
 
349
352
  const commands = {
@@ -372,7 +375,7 @@ const waiters = {
372
375
  };
373
376
  class Interconnect extends InterconnectClient {
374
377
  }
375
- client.createAggregatedClient(commands, Interconnect, { paginators, waiters });
378
+ createAggregatedClient(commands, Interconnect, { paginators, waiters });
376
379
 
377
380
  const ConnectionState = {
378
381
  AVAILABLE: "available",
@@ -397,9 +400,6 @@ const EnvironmentState = {
397
400
  UNAVAILABLE: "unavailable",
398
401
  };
399
402
 
400
- exports.$Command = client.Command;
401
- exports.__Client = client.Client;
402
- exports.InterconnectServiceException = InterconnectServiceException.InterconnectServiceException;
403
403
  exports.AcceptConnectionProposalCommand = AcceptConnectionProposalCommand;
404
404
  exports.AttachPointType = AttachPointType;
405
405
  exports.ConnectionState = ConnectionState;
@@ -426,23 +426,3 @@ exports.waitForConnectionAvailable = waitForConnectionAvailable;
426
426
  exports.waitForConnectionDeleted = waitForConnectionDeleted;
427
427
  exports.waitUntilConnectionAvailable = waitUntilConnectionAvailable;
428
428
  exports.waitUntilConnectionDeleted = waitUntilConnectionDeleted;
429
- Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
430
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
431
- Object.defineProperty(exports, '__proto__', {
432
- enumerable: true,
433
- value: schemas_0['__proto__']
434
- });
435
-
436
- Object.keys(schemas_0).forEach(function (k) {
437
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
438
- });
439
- Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
440
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
441
- Object.defineProperty(exports, '__proto__', {
442
- enumerable: true,
443
- value: errors['__proto__']
444
- });
445
-
446
- Object.keys(errors).forEach(function (k) {
447
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
448
- });
@@ -1,12 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InterconnectServiceException = exports.__ServiceException = void 0;
4
- const client_1 = require("@smithy/core/client");
5
- Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
6
- class InterconnectServiceException extends client_1.ServiceException {
1
+ const { ServiceException: __ServiceException } = require("@smithy/core/client");
2
+ exports.__ServiceException = __ServiceException;
3
+ exports.InterconnectServiceException = class InterconnectServiceException extends __ServiceException {
7
4
  constructor(options) {
8
5
  super(options);
9
6
  Object.setPrototypeOf(this, InterconnectServiceException.prototype);
10
7
  }
11
- }
12
- exports.InterconnectServiceException = InterconnectServiceException;
8
+ };
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InterconnectValidationException = exports.InterconnectServerException = exports.InterconnectClientException = exports.AccessDeniedException = void 0;
4
- const InterconnectServiceException_1 = require("./InterconnectServiceException");
5
- class AccessDeniedException extends InterconnectServiceException_1.InterconnectServiceException {
1
+ const { InterconnectServiceException: __BaseException } = require("./InterconnectServiceException");
2
+ exports.AccessDeniedException = class AccessDeniedException extends __BaseException {
6
3
  name = "AccessDeniedException";
7
4
  $fault = "client";
8
5
  constructor(opts) {
@@ -13,9 +10,8 @@ class AccessDeniedException extends InterconnectServiceException_1.InterconnectS
13
10
  });
14
11
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
12
  }
16
- }
17
- exports.AccessDeniedException = AccessDeniedException;
18
- class InterconnectClientException extends InterconnectServiceException_1.InterconnectServiceException {
13
+ };
14
+ exports.InterconnectClientException = class InterconnectClientException extends __BaseException {
19
15
  name = "InterconnectClientException";
20
16
  $fault = "client";
21
17
  constructor(opts) {
@@ -26,9 +22,8 @@ class InterconnectClientException extends InterconnectServiceException_1.Interco
26
22
  });
27
23
  Object.setPrototypeOf(this, InterconnectClientException.prototype);
28
24
  }
29
- }
30
- exports.InterconnectClientException = InterconnectClientException;
31
- class InterconnectServerException extends InterconnectServiceException_1.InterconnectServiceException {
25
+ };
26
+ exports.InterconnectServerException = class InterconnectServerException extends __BaseException {
32
27
  name = "InterconnectServerException";
33
28
  $fault = "server";
34
29
  constructor(opts) {
@@ -39,9 +34,8 @@ class InterconnectServerException extends InterconnectServiceException_1.Interco
39
34
  });
40
35
  Object.setPrototypeOf(this, InterconnectServerException.prototype);
41
36
  }
42
- }
43
- exports.InterconnectServerException = InterconnectServerException;
44
- class InterconnectValidationException extends InterconnectServiceException_1.InterconnectServiceException {
37
+ };
38
+ exports.InterconnectValidationException = class InterconnectValidationException extends __BaseException {
45
39
  name = "InterconnectValidationException";
46
40
  $fault = "client";
47
41
  constructor(opts) {
@@ -52,9 +46,8 @@ class InterconnectValidationException extends InterconnectServiceException_1.Int
52
46
  });
53
47
  Object.setPrototypeOf(this, InterconnectValidationException.prototype);
54
48
  }
55
- }
56
- exports.InterconnectValidationException = InterconnectValidationException;
57
- class ResourceNotFoundException extends InterconnectServiceException_1.InterconnectServiceException {
49
+ };
50
+ exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
58
51
  name = "ResourceNotFoundException";
59
52
  $fault = "client";
60
53
  constructor(opts) {
@@ -65,9 +58,8 @@ class ResourceNotFoundException extends InterconnectServiceException_1.Interconn
65
58
  });
66
59
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
67
60
  }
68
- }
69
- exports.ResourceNotFoundException = ResourceNotFoundException;
70
- class ServiceQuotaExceededException extends InterconnectServiceException_1.InterconnectServiceException {
61
+ };
62
+ exports.ServiceQuotaExceededException = class ServiceQuotaExceededException extends __BaseException {
71
63
  name = "ServiceQuotaExceededException";
72
64
  $fault = "client";
73
65
  constructor(opts) {
@@ -78,9 +70,8 @@ class ServiceQuotaExceededException extends InterconnectServiceException_1.Inter
78
70
  });
79
71
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
80
72
  }
81
- }
82
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
83
- class ThrottlingException extends InterconnectServiceException_1.InterconnectServiceException {
73
+ };
74
+ exports.ThrottlingException = class ThrottlingException extends __BaseException {
84
75
  name = "ThrottlingException";
85
76
  $fault = "client";
86
77
  constructor(opts) {
@@ -91,5 +82,4 @@ class ThrottlingException extends InterconnectServiceException_1.InterconnectSer
91
82
  });
92
83
  Object.setPrototypeOf(this, ThrottlingException.prototype);
93
84
  }
94
- }
95
- exports.ThrottlingException = ThrottlingException;
85
+ };