@aws-sdk/client-ec2-instance-connect 3.716.0 → 3.723.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
@@ -138,7 +138,14 @@ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions
138
138
  }, "resolveRuntimeExtensions");
139
139
 
140
140
  // src/EC2InstanceConnectClient.ts
141
- var _EC2InstanceConnectClient = class _EC2InstanceConnectClient extends import_smithy_client.Client {
141
+ var EC2InstanceConnectClient = class extends import_smithy_client.Client {
142
+ static {
143
+ __name(this, "EC2InstanceConnectClient");
144
+ }
145
+ /**
146
+ * The resolved configuration of EC2InstanceConnectClient class. This is resolved and normalized from the {@link EC2InstanceConnectClientConfig | constructor configuration interface}.
147
+ */
148
+ config;
142
149
  constructor(...[configuration]) {
143
150
  const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
144
151
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -148,7 +155,7 @@ var _EC2InstanceConnectClient = class _EC2InstanceConnectClient extends import_s
148
155
  const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
149
156
  const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
150
157
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
151
- const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
158
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
152
159
  super(_config_8);
153
160
  this.config = _config_8;
154
161
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
@@ -176,8 +183,6 @@ var _EC2InstanceConnectClient = class _EC2InstanceConnectClient extends import_s
176
183
  super.destroy();
177
184
  }
178
185
  };
179
- __name(_EC2InstanceConnectClient, "EC2InstanceConnectClient");
180
- var EC2InstanceConnectClient = _EC2InstanceConnectClient;
181
186
 
182
187
  // src/EC2InstanceConnect.ts
183
188
 
@@ -194,7 +199,10 @@ var import_core2 = require("@aws-sdk/core");
194
199
 
195
200
  // src/models/EC2InstanceConnectServiceException.ts
196
201
 
197
- var _EC2InstanceConnectServiceException = class _EC2InstanceConnectServiceException extends import_smithy_client.ServiceException {
202
+ var EC2InstanceConnectServiceException = class _EC2InstanceConnectServiceException extends import_smithy_client.ServiceException {
203
+ static {
204
+ __name(this, "EC2InstanceConnectServiceException");
205
+ }
198
206
  /**
199
207
  * @internal
200
208
  */
@@ -203,11 +211,15 @@ var _EC2InstanceConnectServiceException = class _EC2InstanceConnectServiceExcept
203
211
  Object.setPrototypeOf(this, _EC2InstanceConnectServiceException.prototype);
204
212
  }
205
213
  };
206
- __name(_EC2InstanceConnectServiceException, "EC2InstanceConnectServiceException");
207
- var EC2InstanceConnectServiceException = _EC2InstanceConnectServiceException;
208
214
 
209
215
  // src/models/models_0.ts
210
- var _AuthException = class _AuthException extends EC2InstanceConnectServiceException {
216
+ var AuthException = class _AuthException extends EC2InstanceConnectServiceException {
217
+ static {
218
+ __name(this, "AuthException");
219
+ }
220
+ name = "AuthException";
221
+ $fault = "client";
222
+ Message;
211
223
  /**
212
224
  * @internal
213
225
  */
@@ -217,15 +229,17 @@ var _AuthException = class _AuthException extends EC2InstanceConnectServiceExcep
217
229
  $fault: "client",
218
230
  ...opts
219
231
  });
220
- this.name = "AuthException";
221
- this.$fault = "client";
222
232
  Object.setPrototypeOf(this, _AuthException.prototype);
223
233
  this.Message = opts.Message;
224
234
  }
225
235
  };
226
- __name(_AuthException, "AuthException");
227
- var AuthException = _AuthException;
228
- var _EC2InstanceNotFoundException = class _EC2InstanceNotFoundException extends EC2InstanceConnectServiceException {
236
+ var EC2InstanceNotFoundException = class _EC2InstanceNotFoundException extends EC2InstanceConnectServiceException {
237
+ static {
238
+ __name(this, "EC2InstanceNotFoundException");
239
+ }
240
+ name = "EC2InstanceNotFoundException";
241
+ $fault = "client";
242
+ Message;
229
243
  /**
230
244
  * @internal
231
245
  */
@@ -235,15 +249,17 @@ var _EC2InstanceNotFoundException = class _EC2InstanceNotFoundException extends
235
249
  $fault: "client",
236
250
  ...opts
237
251
  });
238
- this.name = "EC2InstanceNotFoundException";
239
- this.$fault = "client";
240
252
  Object.setPrototypeOf(this, _EC2InstanceNotFoundException.prototype);
241
253
  this.Message = opts.Message;
242
254
  }
243
255
  };
244
- __name(_EC2InstanceNotFoundException, "EC2InstanceNotFoundException");
245
- var EC2InstanceNotFoundException = _EC2InstanceNotFoundException;
246
- var _EC2InstanceStateInvalidException = class _EC2InstanceStateInvalidException extends EC2InstanceConnectServiceException {
256
+ var EC2InstanceStateInvalidException = class _EC2InstanceStateInvalidException extends EC2InstanceConnectServiceException {
257
+ static {
258
+ __name(this, "EC2InstanceStateInvalidException");
259
+ }
260
+ name = "EC2InstanceStateInvalidException";
261
+ $fault = "client";
262
+ Message;
247
263
  /**
248
264
  * @internal
249
265
  */
@@ -253,15 +269,17 @@ var _EC2InstanceStateInvalidException = class _EC2InstanceStateInvalidException
253
269
  $fault: "client",
254
270
  ...opts
255
271
  });
256
- this.name = "EC2InstanceStateInvalidException";
257
- this.$fault = "client";
258
272
  Object.setPrototypeOf(this, _EC2InstanceStateInvalidException.prototype);
259
273
  this.Message = opts.Message;
260
274
  }
261
275
  };
262
- __name(_EC2InstanceStateInvalidException, "EC2InstanceStateInvalidException");
263
- var EC2InstanceStateInvalidException = _EC2InstanceStateInvalidException;
264
- var _EC2InstanceTypeInvalidException = class _EC2InstanceTypeInvalidException extends EC2InstanceConnectServiceException {
276
+ var EC2InstanceTypeInvalidException = class _EC2InstanceTypeInvalidException extends EC2InstanceConnectServiceException {
277
+ static {
278
+ __name(this, "EC2InstanceTypeInvalidException");
279
+ }
280
+ name = "EC2InstanceTypeInvalidException";
281
+ $fault = "client";
282
+ Message;
265
283
  /**
266
284
  * @internal
267
285
  */
@@ -271,15 +289,17 @@ var _EC2InstanceTypeInvalidException = class _EC2InstanceTypeInvalidException ex
271
289
  $fault: "client",
272
290
  ...opts
273
291
  });
274
- this.name = "EC2InstanceTypeInvalidException";
275
- this.$fault = "client";
276
292
  Object.setPrototypeOf(this, _EC2InstanceTypeInvalidException.prototype);
277
293
  this.Message = opts.Message;
278
294
  }
279
295
  };
280
- __name(_EC2InstanceTypeInvalidException, "EC2InstanceTypeInvalidException");
281
- var EC2InstanceTypeInvalidException = _EC2InstanceTypeInvalidException;
282
- var _EC2InstanceUnavailableException = class _EC2InstanceUnavailableException extends EC2InstanceConnectServiceException {
296
+ var EC2InstanceUnavailableException = class _EC2InstanceUnavailableException extends EC2InstanceConnectServiceException {
297
+ static {
298
+ __name(this, "EC2InstanceUnavailableException");
299
+ }
300
+ name = "EC2InstanceUnavailableException";
301
+ $fault = "server";
302
+ Message;
283
303
  /**
284
304
  * @internal
285
305
  */
@@ -289,15 +309,17 @@ var _EC2InstanceUnavailableException = class _EC2InstanceUnavailableException ex
289
309
  $fault: "server",
290
310
  ...opts
291
311
  });
292
- this.name = "EC2InstanceUnavailableException";
293
- this.$fault = "server";
294
312
  Object.setPrototypeOf(this, _EC2InstanceUnavailableException.prototype);
295
313
  this.Message = opts.Message;
296
314
  }
297
315
  };
298
- __name(_EC2InstanceUnavailableException, "EC2InstanceUnavailableException");
299
- var EC2InstanceUnavailableException = _EC2InstanceUnavailableException;
300
- var _InvalidArgsException = class _InvalidArgsException extends EC2InstanceConnectServiceException {
316
+ var InvalidArgsException = class _InvalidArgsException extends EC2InstanceConnectServiceException {
317
+ static {
318
+ __name(this, "InvalidArgsException");
319
+ }
320
+ name = "InvalidArgsException";
321
+ $fault = "client";
322
+ Message;
301
323
  /**
302
324
  * @internal
303
325
  */
@@ -307,15 +329,17 @@ var _InvalidArgsException = class _InvalidArgsException extends EC2InstanceConne
307
329
  $fault: "client",
308
330
  ...opts
309
331
  });
310
- this.name = "InvalidArgsException";
311
- this.$fault = "client";
312
332
  Object.setPrototypeOf(this, _InvalidArgsException.prototype);
313
333
  this.Message = opts.Message;
314
334
  }
315
335
  };
316
- __name(_InvalidArgsException, "InvalidArgsException");
317
- var InvalidArgsException = _InvalidArgsException;
318
- var _SerialConsoleAccessDisabledException = class _SerialConsoleAccessDisabledException extends EC2InstanceConnectServiceException {
336
+ var SerialConsoleAccessDisabledException = class _SerialConsoleAccessDisabledException extends EC2InstanceConnectServiceException {
337
+ static {
338
+ __name(this, "SerialConsoleAccessDisabledException");
339
+ }
340
+ name = "SerialConsoleAccessDisabledException";
341
+ $fault = "client";
342
+ Message;
319
343
  /**
320
344
  * @internal
321
345
  */
@@ -325,15 +349,17 @@ var _SerialConsoleAccessDisabledException = class _SerialConsoleAccessDisabledEx
325
349
  $fault: "client",
326
350
  ...opts
327
351
  });
328
- this.name = "SerialConsoleAccessDisabledException";
329
- this.$fault = "client";
330
352
  Object.setPrototypeOf(this, _SerialConsoleAccessDisabledException.prototype);
331
353
  this.Message = opts.Message;
332
354
  }
333
355
  };
334
- __name(_SerialConsoleAccessDisabledException, "SerialConsoleAccessDisabledException");
335
- var SerialConsoleAccessDisabledException = _SerialConsoleAccessDisabledException;
336
- var _SerialConsoleSessionLimitExceededException = class _SerialConsoleSessionLimitExceededException extends EC2InstanceConnectServiceException {
356
+ var SerialConsoleSessionLimitExceededException = class _SerialConsoleSessionLimitExceededException extends EC2InstanceConnectServiceException {
357
+ static {
358
+ __name(this, "SerialConsoleSessionLimitExceededException");
359
+ }
360
+ name = "SerialConsoleSessionLimitExceededException";
361
+ $fault = "client";
362
+ Message;
337
363
  /**
338
364
  * @internal
339
365
  */
@@ -343,15 +369,17 @@ var _SerialConsoleSessionLimitExceededException = class _SerialConsoleSessionLim
343
369
  $fault: "client",
344
370
  ...opts
345
371
  });
346
- this.name = "SerialConsoleSessionLimitExceededException";
347
- this.$fault = "client";
348
372
  Object.setPrototypeOf(this, _SerialConsoleSessionLimitExceededException.prototype);
349
373
  this.Message = opts.Message;
350
374
  }
351
375
  };
352
- __name(_SerialConsoleSessionLimitExceededException, "SerialConsoleSessionLimitExceededException");
353
- var SerialConsoleSessionLimitExceededException = _SerialConsoleSessionLimitExceededException;
354
- var _SerialConsoleSessionUnavailableException = class _SerialConsoleSessionUnavailableException extends EC2InstanceConnectServiceException {
376
+ var SerialConsoleSessionUnavailableException = class _SerialConsoleSessionUnavailableException extends EC2InstanceConnectServiceException {
377
+ static {
378
+ __name(this, "SerialConsoleSessionUnavailableException");
379
+ }
380
+ name = "SerialConsoleSessionUnavailableException";
381
+ $fault = "server";
382
+ Message;
355
383
  /**
356
384
  * @internal
357
385
  */
@@ -361,15 +389,17 @@ var _SerialConsoleSessionUnavailableException = class _SerialConsoleSessionUnava
361
389
  $fault: "server",
362
390
  ...opts
363
391
  });
364
- this.name = "SerialConsoleSessionUnavailableException";
365
- this.$fault = "server";
366
392
  Object.setPrototypeOf(this, _SerialConsoleSessionUnavailableException.prototype);
367
393
  this.Message = opts.Message;
368
394
  }
369
395
  };
370
- __name(_SerialConsoleSessionUnavailableException, "SerialConsoleSessionUnavailableException");
371
- var SerialConsoleSessionUnavailableException = _SerialConsoleSessionUnavailableException;
372
- var _SerialConsoleSessionUnsupportedException = class _SerialConsoleSessionUnsupportedException extends EC2InstanceConnectServiceException {
396
+ var SerialConsoleSessionUnsupportedException = class _SerialConsoleSessionUnsupportedException extends EC2InstanceConnectServiceException {
397
+ static {
398
+ __name(this, "SerialConsoleSessionUnsupportedException");
399
+ }
400
+ name = "SerialConsoleSessionUnsupportedException";
401
+ $fault = "client";
402
+ Message;
373
403
  /**
374
404
  * @internal
375
405
  */
@@ -379,15 +409,17 @@ var _SerialConsoleSessionUnsupportedException = class _SerialConsoleSessionUnsup
379
409
  $fault: "client",
380
410
  ...opts
381
411
  });
382
- this.name = "SerialConsoleSessionUnsupportedException";
383
- this.$fault = "client";
384
412
  Object.setPrototypeOf(this, _SerialConsoleSessionUnsupportedException.prototype);
385
413
  this.Message = opts.Message;
386
414
  }
387
415
  };
388
- __name(_SerialConsoleSessionUnsupportedException, "SerialConsoleSessionUnsupportedException");
389
- var SerialConsoleSessionUnsupportedException = _SerialConsoleSessionUnsupportedException;
390
- var _ServiceException = class _ServiceException extends EC2InstanceConnectServiceException {
416
+ var ServiceException = class _ServiceException extends EC2InstanceConnectServiceException {
417
+ static {
418
+ __name(this, "ServiceException");
419
+ }
420
+ name = "ServiceException";
421
+ $fault = "server";
422
+ Message;
391
423
  /**
392
424
  * @internal
393
425
  */
@@ -397,15 +429,17 @@ var _ServiceException = class _ServiceException extends EC2InstanceConnectServic
397
429
  $fault: "server",
398
430
  ...opts
399
431
  });
400
- this.name = "ServiceException";
401
- this.$fault = "server";
402
432
  Object.setPrototypeOf(this, _ServiceException.prototype);
403
433
  this.Message = opts.Message;
404
434
  }
405
435
  };
406
- __name(_ServiceException, "ServiceException");
407
- var ServiceException = _ServiceException;
408
- var _ThrottlingException = class _ThrottlingException extends EC2InstanceConnectServiceException {
436
+ var ThrottlingException = class _ThrottlingException extends EC2InstanceConnectServiceException {
437
+ static {
438
+ __name(this, "ThrottlingException");
439
+ }
440
+ name = "ThrottlingException";
441
+ $fault = "client";
442
+ Message;
409
443
  /**
410
444
  * @internal
411
445
  */
@@ -415,14 +449,10 @@ var _ThrottlingException = class _ThrottlingException extends EC2InstanceConnect
415
449
  $fault: "client",
416
450
  ...opts
417
451
  });
418
- this.name = "ThrottlingException";
419
- this.$fault = "client";
420
452
  Object.setPrototypeOf(this, _ThrottlingException.prototype);
421
453
  this.Message = opts.Message;
422
454
  }
423
455
  };
424
- __name(_ThrottlingException, "ThrottlingException");
425
- var ThrottlingException = _ThrottlingException;
426
456
 
427
457
  // src/protocols/Aws_json1_1.ts
428
458
  var se_SendSerialConsoleSSHPublicKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
@@ -657,39 +687,42 @@ function sharedHeaders(operation) {
657
687
  __name(sharedHeaders, "sharedHeaders");
658
688
 
659
689
  // src/commands/SendSerialConsoleSSHPublicKeyCommand.ts
660
- var _SendSerialConsoleSSHPublicKeyCommand = class _SendSerialConsoleSSHPublicKeyCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
690
+ var SendSerialConsoleSSHPublicKeyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
661
691
  return [
662
692
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
663
693
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
664
694
  ];
665
695
  }).s("AWSEC2InstanceConnectService", "SendSerialConsoleSSHPublicKey", {}).n("EC2InstanceConnectClient", "SendSerialConsoleSSHPublicKeyCommand").f(void 0, void 0).ser(se_SendSerialConsoleSSHPublicKeyCommand).de(de_SendSerialConsoleSSHPublicKeyCommand).build() {
696
+ static {
697
+ __name(this, "SendSerialConsoleSSHPublicKeyCommand");
698
+ }
666
699
  };
667
- __name(_SendSerialConsoleSSHPublicKeyCommand, "SendSerialConsoleSSHPublicKeyCommand");
668
- var SendSerialConsoleSSHPublicKeyCommand = _SendSerialConsoleSSHPublicKeyCommand;
669
700
 
670
701
  // src/commands/SendSSHPublicKeyCommand.ts
671
702
 
672
703
 
673
704
 
674
- var _SendSSHPublicKeyCommand = class _SendSSHPublicKeyCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
705
+ var SendSSHPublicKeyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
675
706
  return [
676
707
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
677
708
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
678
709
  ];
679
710
  }).s("AWSEC2InstanceConnectService", "SendSSHPublicKey", {}).n("EC2InstanceConnectClient", "SendSSHPublicKeyCommand").f(void 0, void 0).ser(se_SendSSHPublicKeyCommand).de(de_SendSSHPublicKeyCommand).build() {
711
+ static {
712
+ __name(this, "SendSSHPublicKeyCommand");
713
+ }
680
714
  };
681
- __name(_SendSSHPublicKeyCommand, "SendSSHPublicKeyCommand");
682
- var SendSSHPublicKeyCommand = _SendSSHPublicKeyCommand;
683
715
 
684
716
  // src/EC2InstanceConnect.ts
685
717
  var commands = {
686
718
  SendSerialConsoleSSHPublicKeyCommand,
687
719
  SendSSHPublicKeyCommand
688
720
  };
689
- var _EC2InstanceConnect = class _EC2InstanceConnect extends EC2InstanceConnectClient {
721
+ var EC2InstanceConnect = class extends EC2InstanceConnectClient {
722
+ static {
723
+ __name(this, "EC2InstanceConnect");
724
+ }
690
725
  };
691
- __name(_EC2InstanceConnect, "EC2InstanceConnect");
692
- var EC2InstanceConnect = _EC2InstanceConnect;
693
726
  (0, import_smithy_client.createAggregatedClient)(commands, EC2InstanceConnect);
694
727
  // Annotate the CommonJS export names for ESM import in node:
695
728
 
@@ -14,6 +14,7 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
14
14
  import { resolveRuntimeExtensions } from "./runtimeExtensions";
15
15
  export { __Client };
16
16
  export class EC2InstanceConnectClient extends __Client {
17
+ config;
17
18
  constructor(...[configuration]) {
18
19
  const _config_0 = __getRuntimeConfig(configuration || {});
19
20
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -1,156 +1,168 @@
1
1
  import { EC2InstanceConnectServiceException as __BaseException } from "./EC2InstanceConnectServiceException";
2
2
  export class AuthException extends __BaseException {
3
+ name = "AuthException";
4
+ $fault = "client";
5
+ Message;
3
6
  constructor(opts) {
4
7
  super({
5
8
  name: "AuthException",
6
9
  $fault: "client",
7
10
  ...opts,
8
11
  });
9
- this.name = "AuthException";
10
- this.$fault = "client";
11
12
  Object.setPrototypeOf(this, AuthException.prototype);
12
13
  this.Message = opts.Message;
13
14
  }
14
15
  }
15
16
  export class EC2InstanceNotFoundException extends __BaseException {
17
+ name = "EC2InstanceNotFoundException";
18
+ $fault = "client";
19
+ Message;
16
20
  constructor(opts) {
17
21
  super({
18
22
  name: "EC2InstanceNotFoundException",
19
23
  $fault: "client",
20
24
  ...opts,
21
25
  });
22
- this.name = "EC2InstanceNotFoundException";
23
- this.$fault = "client";
24
26
  Object.setPrototypeOf(this, EC2InstanceNotFoundException.prototype);
25
27
  this.Message = opts.Message;
26
28
  }
27
29
  }
28
30
  export class EC2InstanceStateInvalidException extends __BaseException {
31
+ name = "EC2InstanceStateInvalidException";
32
+ $fault = "client";
33
+ Message;
29
34
  constructor(opts) {
30
35
  super({
31
36
  name: "EC2InstanceStateInvalidException",
32
37
  $fault: "client",
33
38
  ...opts,
34
39
  });
35
- this.name = "EC2InstanceStateInvalidException";
36
- this.$fault = "client";
37
40
  Object.setPrototypeOf(this, EC2InstanceStateInvalidException.prototype);
38
41
  this.Message = opts.Message;
39
42
  }
40
43
  }
41
44
  export class EC2InstanceTypeInvalidException extends __BaseException {
45
+ name = "EC2InstanceTypeInvalidException";
46
+ $fault = "client";
47
+ Message;
42
48
  constructor(opts) {
43
49
  super({
44
50
  name: "EC2InstanceTypeInvalidException",
45
51
  $fault: "client",
46
52
  ...opts,
47
53
  });
48
- this.name = "EC2InstanceTypeInvalidException";
49
- this.$fault = "client";
50
54
  Object.setPrototypeOf(this, EC2InstanceTypeInvalidException.prototype);
51
55
  this.Message = opts.Message;
52
56
  }
53
57
  }
54
58
  export class EC2InstanceUnavailableException extends __BaseException {
59
+ name = "EC2InstanceUnavailableException";
60
+ $fault = "server";
61
+ Message;
55
62
  constructor(opts) {
56
63
  super({
57
64
  name: "EC2InstanceUnavailableException",
58
65
  $fault: "server",
59
66
  ...opts,
60
67
  });
61
- this.name = "EC2InstanceUnavailableException";
62
- this.$fault = "server";
63
68
  Object.setPrototypeOf(this, EC2InstanceUnavailableException.prototype);
64
69
  this.Message = opts.Message;
65
70
  }
66
71
  }
67
72
  export class InvalidArgsException extends __BaseException {
73
+ name = "InvalidArgsException";
74
+ $fault = "client";
75
+ Message;
68
76
  constructor(opts) {
69
77
  super({
70
78
  name: "InvalidArgsException",
71
79
  $fault: "client",
72
80
  ...opts,
73
81
  });
74
- this.name = "InvalidArgsException";
75
- this.$fault = "client";
76
82
  Object.setPrototypeOf(this, InvalidArgsException.prototype);
77
83
  this.Message = opts.Message;
78
84
  }
79
85
  }
80
86
  export class SerialConsoleAccessDisabledException extends __BaseException {
87
+ name = "SerialConsoleAccessDisabledException";
88
+ $fault = "client";
89
+ Message;
81
90
  constructor(opts) {
82
91
  super({
83
92
  name: "SerialConsoleAccessDisabledException",
84
93
  $fault: "client",
85
94
  ...opts,
86
95
  });
87
- this.name = "SerialConsoleAccessDisabledException";
88
- this.$fault = "client";
89
96
  Object.setPrototypeOf(this, SerialConsoleAccessDisabledException.prototype);
90
97
  this.Message = opts.Message;
91
98
  }
92
99
  }
93
100
  export class SerialConsoleSessionLimitExceededException extends __BaseException {
101
+ name = "SerialConsoleSessionLimitExceededException";
102
+ $fault = "client";
103
+ Message;
94
104
  constructor(opts) {
95
105
  super({
96
106
  name: "SerialConsoleSessionLimitExceededException",
97
107
  $fault: "client",
98
108
  ...opts,
99
109
  });
100
- this.name = "SerialConsoleSessionLimitExceededException";
101
- this.$fault = "client";
102
110
  Object.setPrototypeOf(this, SerialConsoleSessionLimitExceededException.prototype);
103
111
  this.Message = opts.Message;
104
112
  }
105
113
  }
106
114
  export class SerialConsoleSessionUnavailableException extends __BaseException {
115
+ name = "SerialConsoleSessionUnavailableException";
116
+ $fault = "server";
117
+ Message;
107
118
  constructor(opts) {
108
119
  super({
109
120
  name: "SerialConsoleSessionUnavailableException",
110
121
  $fault: "server",
111
122
  ...opts,
112
123
  });
113
- this.name = "SerialConsoleSessionUnavailableException";
114
- this.$fault = "server";
115
124
  Object.setPrototypeOf(this, SerialConsoleSessionUnavailableException.prototype);
116
125
  this.Message = opts.Message;
117
126
  }
118
127
  }
119
128
  export class SerialConsoleSessionUnsupportedException extends __BaseException {
129
+ name = "SerialConsoleSessionUnsupportedException";
130
+ $fault = "client";
131
+ Message;
120
132
  constructor(opts) {
121
133
  super({
122
134
  name: "SerialConsoleSessionUnsupportedException",
123
135
  $fault: "client",
124
136
  ...opts,
125
137
  });
126
- this.name = "SerialConsoleSessionUnsupportedException";
127
- this.$fault = "client";
128
138
  Object.setPrototypeOf(this, SerialConsoleSessionUnsupportedException.prototype);
129
139
  this.Message = opts.Message;
130
140
  }
131
141
  }
132
142
  export class ServiceException extends __BaseException {
143
+ name = "ServiceException";
144
+ $fault = "server";
145
+ Message;
133
146
  constructor(opts) {
134
147
  super({
135
148
  name: "ServiceException",
136
149
  $fault: "server",
137
150
  ...opts,
138
151
  });
139
- this.name = "ServiceException";
140
- this.$fault = "server";
141
152
  Object.setPrototypeOf(this, ServiceException.prototype);
142
153
  this.Message = opts.Message;
143
154
  }
144
155
  }
145
156
  export class ThrottlingException extends __BaseException {
157
+ name = "ThrottlingException";
158
+ $fault = "client";
159
+ Message;
146
160
  constructor(opts) {
147
161
  super({
148
162
  name: "ThrottlingException",
149
163
  $fault: "client",
150
164
  ...opts,
151
165
  });
152
- this.name = "ThrottlingException";
153
- this.$fault = "client";
154
166
  Object.setPrototypeOf(this, ThrottlingException.prototype);
155
167
  this.Message = opts.Message;
156
168
  }
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: EC2InstanceConnectClientConfig)
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: EC2InstanceConnectClientConfig)
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<string>;
@@ -22,7 +22,7 @@ export declare const getRuntimeConfig: (config: EC2InstanceConnectClientConfig)
22
22
  region: string | import("@smithy/types").Provider<any>;
23
23
  profile?: string | undefined;
24
24
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
25
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
26
26
  maxAttempts: number | import("@smithy/types").Provider<number>;
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
@@ -31,7 +31,7 @@ export declare const getRuntimeConfig: (config: EC2InstanceConnectClientConfig)
31
31
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
32
32
  userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
33
33
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
34
- endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
34
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
35
35
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
36
36
  logger?: import("@smithy/types").Logger | undefined;
37
37
  }) => import("@smithy/types").EndpointV2;
@@ -8,9 +8,11 @@ export declare const getRuntimeConfig: (
8
8
  import("@smithy/smithy-client").ResolvedDefaultsMode
9
9
  >;
10
10
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
11
- credentialDefaultProvider: (
12
- input: any
13
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
11
+ credentialDefaultProvider:
12
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
13
+ | ((
14
+ _: unknown
15
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
14
16
  defaultUserAgentProvider: (
15
17
  config?:
16
18
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
@@ -8,13 +8,15 @@ export declare const getRuntimeConfig: (
8
8
  import("@smithy/smithy-client").ResolvedDefaultsMode
9
9
  >;
10
10
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
11
- credentialDefaultProvider: (
12
- init?:
13
- | import("@aws-sdk/credential-provider-node").DefaultProviderInit
14
- | undefined
15
- ) => import("@smithy/types").MemoizedProvider<
16
- import("@smithy/types").AwsCredentialIdentity
17
- >;
11
+ credentialDefaultProvider:
12
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
13
+ | ((
14
+ init?:
15
+ | import("@aws-sdk/credential-provider-node").DefaultProviderInit
16
+ | undefined
17
+ ) => import("@smithy/types").MemoizedProvider<
18
+ import("@smithy/types").AwsCredentialIdentity
19
+ >);
18
20
  defaultUserAgentProvider: (
19
21
  config?:
20
22
  | import("@aws-sdk/util-user-agent-node").PreviouslyResolved
@@ -30,9 +30,11 @@ export declare const getRuntimeConfig: (
30
30
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
31
31
  | undefined
32
32
  ) => Promise<import("@smithy/types").UserAgent>;
33
- credentialDefaultProvider: (
34
- input: any
35
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
33
+ credentialDefaultProvider:
34
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
35
+ | ((
36
+ _: unknown
37
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
36
38
  maxAttempts: number | import("@smithy/types").Provider<number>;
37
39
  retryMode: string | import("@smithy/types").Provider<string>;
38
40
  logger: import("@smithy/types").Logger;
@@ -52,11 +54,21 @@ export declare const getRuntimeConfig: (
52
54
  | import("@smithy/types").RetryStrategyV2
53
55
  | undefined;
54
56
  endpoint?:
55
- | string
56
- | import("@smithy/types").Endpoint
57
- | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
58
- | import("@smithy/types").EndpointV2
59
- | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
57
+ | ((
58
+ | string
59
+ | import("@smithy/types").Endpoint
60
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
61
+ | import("@smithy/types").EndpointV2
62
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
63
+ ) &
64
+ (
65
+ | string
66
+ | import("@smithy/types").Provider<string>
67
+ | import("@smithy/types").Endpoint
68
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
69
+ | import("@smithy/types").EndpointV2
70
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
71
+ ))
60
72
  | undefined;
61
73
  endpointProvider: (
62
74
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ec2-instance-connect",
3
3
  "description": "AWS SDK for JavaScript Ec2 Instance Connect Client for Node.js, Browser and React Native",
4
- "version": "3.716.0",
4
+ "version": "3.723.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-ec2-instance-connect",
@@ -20,56 +20,56 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.716.0",
24
- "@aws-sdk/client-sts": "3.716.0",
25
- "@aws-sdk/core": "3.716.0",
26
- "@aws-sdk/credential-provider-node": "3.716.0",
27
- "@aws-sdk/middleware-host-header": "3.714.0",
28
- "@aws-sdk/middleware-logger": "3.714.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.714.0",
30
- "@aws-sdk/middleware-user-agent": "3.716.0",
31
- "@aws-sdk/region-config-resolver": "3.714.0",
32
- "@aws-sdk/types": "3.714.0",
33
- "@aws-sdk/util-endpoints": "3.714.0",
34
- "@aws-sdk/util-user-agent-browser": "3.714.0",
35
- "@aws-sdk/util-user-agent-node": "3.716.0",
36
- "@smithy/config-resolver": "^3.0.13",
37
- "@smithy/core": "^2.5.5",
38
- "@smithy/fetch-http-handler": "^4.1.2",
39
- "@smithy/hash-node": "^3.0.11",
40
- "@smithy/invalid-dependency": "^3.0.11",
41
- "@smithy/middleware-content-length": "^3.0.13",
42
- "@smithy/middleware-endpoint": "^3.2.6",
43
- "@smithy/middleware-retry": "^3.0.31",
44
- "@smithy/middleware-serde": "^3.0.11",
45
- "@smithy/middleware-stack": "^3.0.11",
46
- "@smithy/node-config-provider": "^3.1.12",
47
- "@smithy/node-http-handler": "^3.3.2",
48
- "@smithy/protocol-http": "^4.1.8",
49
- "@smithy/smithy-client": "^3.5.1",
50
- "@smithy/types": "^3.7.2",
51
- "@smithy/url-parser": "^3.0.11",
52
- "@smithy/util-base64": "^3.0.0",
53
- "@smithy/util-body-length-browser": "^3.0.0",
54
- "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.31",
56
- "@smithy/util-defaults-mode-node": "^3.0.31",
57
- "@smithy/util-endpoints": "^2.1.7",
58
- "@smithy/util-middleware": "^3.0.11",
59
- "@smithy/util-retry": "^3.0.11",
60
- "@smithy/util-utf8": "^3.0.0",
23
+ "@aws-sdk/client-sso-oidc": "3.723.0",
24
+ "@aws-sdk/client-sts": "3.723.0",
25
+ "@aws-sdk/core": "3.723.0",
26
+ "@aws-sdk/credential-provider-node": "3.723.0",
27
+ "@aws-sdk/middleware-host-header": "3.723.0",
28
+ "@aws-sdk/middleware-logger": "3.723.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.723.0",
30
+ "@aws-sdk/middleware-user-agent": "3.723.0",
31
+ "@aws-sdk/region-config-resolver": "3.723.0",
32
+ "@aws-sdk/types": "3.723.0",
33
+ "@aws-sdk/util-endpoints": "3.723.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.723.0",
35
+ "@aws-sdk/util-user-agent-node": "3.723.0",
36
+ "@smithy/config-resolver": "^4.0.0",
37
+ "@smithy/core": "^3.0.0",
38
+ "@smithy/fetch-http-handler": "^5.0.0",
39
+ "@smithy/hash-node": "^4.0.0",
40
+ "@smithy/invalid-dependency": "^4.0.0",
41
+ "@smithy/middleware-content-length": "^4.0.0",
42
+ "@smithy/middleware-endpoint": "^4.0.0",
43
+ "@smithy/middleware-retry": "^4.0.0",
44
+ "@smithy/middleware-serde": "^4.0.0",
45
+ "@smithy/middleware-stack": "^4.0.0",
46
+ "@smithy/node-config-provider": "^4.0.0",
47
+ "@smithy/node-http-handler": "^4.0.0",
48
+ "@smithy/protocol-http": "^5.0.0",
49
+ "@smithy/smithy-client": "^4.0.0",
50
+ "@smithy/types": "^4.0.0",
51
+ "@smithy/url-parser": "^4.0.0",
52
+ "@smithy/util-base64": "^4.0.0",
53
+ "@smithy/util-body-length-browser": "^4.0.0",
54
+ "@smithy/util-body-length-node": "^4.0.0",
55
+ "@smithy/util-defaults-mode-browser": "^4.0.0",
56
+ "@smithy/util-defaults-mode-node": "^4.0.0",
57
+ "@smithy/util-endpoints": "^3.0.0",
58
+ "@smithy/util-middleware": "^4.0.0",
59
+ "@smithy/util-retry": "^4.0.0",
60
+ "@smithy/util-utf8": "^4.0.0",
61
61
  "tslib": "^2.6.2"
62
62
  },
63
63
  "devDependencies": {
64
- "@tsconfig/node16": "16.1.3",
65
- "@types/node": "^16.18.96",
64
+ "@tsconfig/node18": "18.2.4",
65
+ "@types/node": "^18.19.69",
66
66
  "concurrently": "7.0.0",
67
67
  "downlevel-dts": "0.10.1",
68
68
  "rimraf": "3.0.2",
69
- "typescript": "~4.9.5"
69
+ "typescript": "~5.2.2"
70
70
  },
71
71
  "engines": {
72
- "node": ">=16.0.0"
72
+ "node": ">=18.0.0"
73
73
  },
74
74
  "typesVersions": {
75
75
  "<4.0": {