@aws-sdk/client-ec2-instance-connect 3.952.0 → 3.954.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
@@ -110,14 +110,14 @@ class EC2InstanceConnectClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- let EC2InstanceConnectServiceException$1 = class EC2InstanceConnectServiceException extends smithyClient.ServiceException {
113
+ class EC2InstanceConnectServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, EC2InstanceConnectServiceException.prototype);
117
117
  }
118
- };
118
+ }
119
119
 
120
- let AuthException$1 = class AuthException extends EC2InstanceConnectServiceException$1 {
120
+ class AuthException extends EC2InstanceConnectServiceException {
121
121
  name = "AuthException";
122
122
  $fault = "client";
123
123
  Message;
@@ -130,8 +130,8 @@ let AuthException$1 = class AuthException extends EC2InstanceConnectServiceExcep
130
130
  Object.setPrototypeOf(this, AuthException.prototype);
131
131
  this.Message = opts.Message;
132
132
  }
133
- };
134
- let EC2InstanceNotFoundException$1 = class EC2InstanceNotFoundException extends EC2InstanceConnectServiceException$1 {
133
+ }
134
+ class EC2InstanceNotFoundException extends EC2InstanceConnectServiceException {
135
135
  name = "EC2InstanceNotFoundException";
136
136
  $fault = "client";
137
137
  Message;
@@ -144,8 +144,8 @@ let EC2InstanceNotFoundException$1 = class EC2InstanceNotFoundException extends
144
144
  Object.setPrototypeOf(this, EC2InstanceNotFoundException.prototype);
145
145
  this.Message = opts.Message;
146
146
  }
147
- };
148
- let EC2InstanceStateInvalidException$1 = class EC2InstanceStateInvalidException extends EC2InstanceConnectServiceException$1 {
147
+ }
148
+ class EC2InstanceStateInvalidException extends EC2InstanceConnectServiceException {
149
149
  name = "EC2InstanceStateInvalidException";
150
150
  $fault = "client";
151
151
  Message;
@@ -158,8 +158,8 @@ let EC2InstanceStateInvalidException$1 = class EC2InstanceStateInvalidException
158
158
  Object.setPrototypeOf(this, EC2InstanceStateInvalidException.prototype);
159
159
  this.Message = opts.Message;
160
160
  }
161
- };
162
- let EC2InstanceTypeInvalidException$1 = class EC2InstanceTypeInvalidException extends EC2InstanceConnectServiceException$1 {
161
+ }
162
+ class EC2InstanceTypeInvalidException extends EC2InstanceConnectServiceException {
163
163
  name = "EC2InstanceTypeInvalidException";
164
164
  $fault = "client";
165
165
  Message;
@@ -172,8 +172,8 @@ let EC2InstanceTypeInvalidException$1 = class EC2InstanceTypeInvalidException ex
172
172
  Object.setPrototypeOf(this, EC2InstanceTypeInvalidException.prototype);
173
173
  this.Message = opts.Message;
174
174
  }
175
- };
176
- let EC2InstanceUnavailableException$1 = class EC2InstanceUnavailableException extends EC2InstanceConnectServiceException$1 {
175
+ }
176
+ class EC2InstanceUnavailableException extends EC2InstanceConnectServiceException {
177
177
  name = "EC2InstanceUnavailableException";
178
178
  $fault = "server";
179
179
  Message;
@@ -186,8 +186,8 @@ let EC2InstanceUnavailableException$1 = class EC2InstanceUnavailableException ex
186
186
  Object.setPrototypeOf(this, EC2InstanceUnavailableException.prototype);
187
187
  this.Message = opts.Message;
188
188
  }
189
- };
190
- let InvalidArgsException$1 = class InvalidArgsException extends EC2InstanceConnectServiceException$1 {
189
+ }
190
+ class InvalidArgsException extends EC2InstanceConnectServiceException {
191
191
  name = "InvalidArgsException";
192
192
  $fault = "client";
193
193
  Message;
@@ -200,8 +200,8 @@ let InvalidArgsException$1 = class InvalidArgsException extends EC2InstanceConne
200
200
  Object.setPrototypeOf(this, InvalidArgsException.prototype);
201
201
  this.Message = opts.Message;
202
202
  }
203
- };
204
- let SerialConsoleAccessDisabledException$1 = class SerialConsoleAccessDisabledException extends EC2InstanceConnectServiceException$1 {
203
+ }
204
+ class SerialConsoleAccessDisabledException extends EC2InstanceConnectServiceException {
205
205
  name = "SerialConsoleAccessDisabledException";
206
206
  $fault = "client";
207
207
  Message;
@@ -214,8 +214,8 @@ let SerialConsoleAccessDisabledException$1 = class SerialConsoleAccessDisabledEx
214
214
  Object.setPrototypeOf(this, SerialConsoleAccessDisabledException.prototype);
215
215
  this.Message = opts.Message;
216
216
  }
217
- };
218
- let SerialConsoleSessionLimitExceededException$1 = class SerialConsoleSessionLimitExceededException extends EC2InstanceConnectServiceException$1 {
217
+ }
218
+ class SerialConsoleSessionLimitExceededException extends EC2InstanceConnectServiceException {
219
219
  name = "SerialConsoleSessionLimitExceededException";
220
220
  $fault = "client";
221
221
  Message;
@@ -228,8 +228,8 @@ let SerialConsoleSessionLimitExceededException$1 = class SerialConsoleSessionLim
228
228
  Object.setPrototypeOf(this, SerialConsoleSessionLimitExceededException.prototype);
229
229
  this.Message = opts.Message;
230
230
  }
231
- };
232
- let SerialConsoleSessionUnavailableException$1 = class SerialConsoleSessionUnavailableException extends EC2InstanceConnectServiceException$1 {
231
+ }
232
+ class SerialConsoleSessionUnavailableException extends EC2InstanceConnectServiceException {
233
233
  name = "SerialConsoleSessionUnavailableException";
234
234
  $fault = "server";
235
235
  Message;
@@ -242,8 +242,8 @@ let SerialConsoleSessionUnavailableException$1 = class SerialConsoleSessionUnava
242
242
  Object.setPrototypeOf(this, SerialConsoleSessionUnavailableException.prototype);
243
243
  this.Message = opts.Message;
244
244
  }
245
- };
246
- let SerialConsoleSessionUnsupportedException$1 = class SerialConsoleSessionUnsupportedException extends EC2InstanceConnectServiceException$1 {
245
+ }
246
+ class SerialConsoleSessionUnsupportedException extends EC2InstanceConnectServiceException {
247
247
  name = "SerialConsoleSessionUnsupportedException";
248
248
  $fault = "client";
249
249
  Message;
@@ -256,8 +256,8 @@ let SerialConsoleSessionUnsupportedException$1 = class SerialConsoleSessionUnsup
256
256
  Object.setPrototypeOf(this, SerialConsoleSessionUnsupportedException.prototype);
257
257
  this.Message = opts.Message;
258
258
  }
259
- };
260
- let ServiceException$1 = class ServiceException extends EC2InstanceConnectServiceException$1 {
259
+ }
260
+ class ServiceException extends EC2InstanceConnectServiceException {
261
261
  name = "ServiceException";
262
262
  $fault = "server";
263
263
  Message;
@@ -270,8 +270,8 @@ let ServiceException$1 = class ServiceException extends EC2InstanceConnectServic
270
270
  Object.setPrototypeOf(this, ServiceException.prototype);
271
271
  this.Message = opts.Message;
272
272
  }
273
- };
274
- let ThrottlingException$1 = class ThrottlingException extends EC2InstanceConnectServiceException$1 {
273
+ }
274
+ class ThrottlingException extends EC2InstanceConnectServiceException {
275
275
  name = "ThrottlingException";
276
276
  $fault = "client";
277
277
  Message;
@@ -284,7 +284,7 @@ let ThrottlingException$1 = class ThrottlingException extends EC2InstanceConnect
284
284
  Object.setPrototypeOf(this, ThrottlingException.prototype);
285
285
  this.Message = opts.Message;
286
286
  }
287
- };
287
+ }
288
288
 
289
289
  const _AE = "AuthException";
290
290
  const _AZ = "AvailabilityZone";
@@ -319,7 +319,7 @@ const _hE = "httpError";
319
319
  const _s = "server";
320
320
  const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.ec2instanceconnect";
321
321
  const n0 = "com.amazonaws.ec2instanceconnect";
322
- var AuthException = [
322
+ var AuthException$ = [
323
323
  -3,
324
324
  n0,
325
325
  _AE,
@@ -327,8 +327,8 @@ var AuthException = [
327
327
  [_M],
328
328
  [0],
329
329
  ];
330
- schema.TypeRegistry.for(n0).registerError(AuthException, AuthException$1);
331
- var EC2InstanceNotFoundException = [
330
+ schema.TypeRegistry.for(n0).registerError(AuthException$, AuthException);
331
+ var EC2InstanceNotFoundException$ = [
332
332
  -3,
333
333
  n0,
334
334
  _ECINFE,
@@ -336,8 +336,8 @@ var EC2InstanceNotFoundException = [
336
336
  [_M],
337
337
  [0],
338
338
  ];
339
- schema.TypeRegistry.for(n0).registerError(EC2InstanceNotFoundException, EC2InstanceNotFoundException$1);
340
- var EC2InstanceStateInvalidException = [
339
+ schema.TypeRegistry.for(n0).registerError(EC2InstanceNotFoundException$, EC2InstanceNotFoundException);
340
+ var EC2InstanceStateInvalidException$ = [
341
341
  -3,
342
342
  n0,
343
343
  _ECISIE,
@@ -345,8 +345,8 @@ var EC2InstanceStateInvalidException = [
345
345
  [_M],
346
346
  [0],
347
347
  ];
348
- schema.TypeRegistry.for(n0).registerError(EC2InstanceStateInvalidException, EC2InstanceStateInvalidException$1);
349
- var EC2InstanceTypeInvalidException = [
348
+ schema.TypeRegistry.for(n0).registerError(EC2InstanceStateInvalidException$, EC2InstanceStateInvalidException);
349
+ var EC2InstanceTypeInvalidException$ = [
350
350
  -3,
351
351
  n0,
352
352
  _ECITIE,
@@ -354,8 +354,8 @@ var EC2InstanceTypeInvalidException = [
354
354
  [_M],
355
355
  [0],
356
356
  ];
357
- schema.TypeRegistry.for(n0).registerError(EC2InstanceTypeInvalidException, EC2InstanceTypeInvalidException$1);
358
- var EC2InstanceUnavailableException = [
357
+ schema.TypeRegistry.for(n0).registerError(EC2InstanceTypeInvalidException$, EC2InstanceTypeInvalidException);
358
+ var EC2InstanceUnavailableException$ = [
359
359
  -3,
360
360
  n0,
361
361
  _ECIUE,
@@ -363,8 +363,8 @@ var EC2InstanceUnavailableException = [
363
363
  [_M],
364
364
  [0],
365
365
  ];
366
- schema.TypeRegistry.for(n0).registerError(EC2InstanceUnavailableException, EC2InstanceUnavailableException$1);
367
- var InvalidArgsException = [
366
+ schema.TypeRegistry.for(n0).registerError(EC2InstanceUnavailableException$, EC2InstanceUnavailableException);
367
+ var InvalidArgsException$ = [
368
368
  -3,
369
369
  n0,
370
370
  _IAE,
@@ -372,8 +372,8 @@ var InvalidArgsException = [
372
372
  [_M],
373
373
  [0],
374
374
  ];
375
- schema.TypeRegistry.for(n0).registerError(InvalidArgsException, InvalidArgsException$1);
376
- var SendSerialConsoleSSHPublicKeyRequest = [
375
+ schema.TypeRegistry.for(n0).registerError(InvalidArgsException$, InvalidArgsException);
376
+ var SendSerialConsoleSSHPublicKeyRequest$ = [
377
377
  3,
378
378
  n0,
379
379
  _SSCSSHPKR,
@@ -381,8 +381,8 @@ var SendSerialConsoleSSHPublicKeyRequest = [
381
381
  [_II, _SP, _SSHPK],
382
382
  [0, 1, 0],
383
383
  ];
384
- var SendSerialConsoleSSHPublicKeyResponse = [3, n0, _SSCSSHPKRe, 0, [_RI, _S], [0, 2]];
385
- var SendSSHPublicKeyRequest = [
384
+ var SendSerialConsoleSSHPublicKeyResponse$ = [3, n0, _SSCSSHPKRe, 0, [_RI, _S], [0, 2]];
385
+ var SendSSHPublicKeyRequest$ = [
386
386
  3,
387
387
  n0,
388
388
  _SSSHPKR,
@@ -390,8 +390,8 @@ var SendSSHPublicKeyRequest = [
390
390
  [_II, _IOSU, _SSHPK, _AZ],
391
391
  [0, 0, 0, 0],
392
392
  ];
393
- var SendSSHPublicKeyResponse = [3, n0, _SSSHPKRe, 0, [_RI, _S], [0, 2]];
394
- var SerialConsoleAccessDisabledException = [
393
+ var SendSSHPublicKeyResponse$ = [3, n0, _SSSHPKRe, 0, [_RI, _S], [0, 2]];
394
+ var SerialConsoleAccessDisabledException$ = [
395
395
  -3,
396
396
  n0,
397
397
  _SCADE,
@@ -399,8 +399,8 @@ var SerialConsoleAccessDisabledException = [
399
399
  [_M],
400
400
  [0],
401
401
  ];
402
- schema.TypeRegistry.for(n0).registerError(SerialConsoleAccessDisabledException, SerialConsoleAccessDisabledException$1);
403
- var SerialConsoleSessionLimitExceededException = [
402
+ schema.TypeRegistry.for(n0).registerError(SerialConsoleAccessDisabledException$, SerialConsoleAccessDisabledException);
403
+ var SerialConsoleSessionLimitExceededException$ = [
404
404
  -3,
405
405
  n0,
406
406
  _SCSLEE,
@@ -408,8 +408,8 @@ var SerialConsoleSessionLimitExceededException = [
408
408
  [_M],
409
409
  [0],
410
410
  ];
411
- schema.TypeRegistry.for(n0).registerError(SerialConsoleSessionLimitExceededException, SerialConsoleSessionLimitExceededException$1);
412
- var SerialConsoleSessionUnavailableException = [
411
+ schema.TypeRegistry.for(n0).registerError(SerialConsoleSessionLimitExceededException$, SerialConsoleSessionLimitExceededException);
412
+ var SerialConsoleSessionUnavailableException$ = [
413
413
  -3,
414
414
  n0,
415
415
  _SCSUE,
@@ -417,8 +417,8 @@ var SerialConsoleSessionUnavailableException = [
417
417
  [_M],
418
418
  [0],
419
419
  ];
420
- schema.TypeRegistry.for(n0).registerError(SerialConsoleSessionUnavailableException, SerialConsoleSessionUnavailableException$1);
421
- var SerialConsoleSessionUnsupportedException = [
420
+ schema.TypeRegistry.for(n0).registerError(SerialConsoleSessionUnavailableException$, SerialConsoleSessionUnavailableException);
421
+ var SerialConsoleSessionUnsupportedException$ = [
422
422
  -3,
423
423
  n0,
424
424
  _SCSUEe,
@@ -426,8 +426,8 @@ var SerialConsoleSessionUnsupportedException = [
426
426
  [_M],
427
427
  [0],
428
428
  ];
429
- schema.TypeRegistry.for(n0).registerError(SerialConsoleSessionUnsupportedException, SerialConsoleSessionUnsupportedException$1);
430
- var ServiceException = [
429
+ schema.TypeRegistry.for(n0).registerError(SerialConsoleSessionUnsupportedException$, SerialConsoleSessionUnsupportedException);
430
+ var ServiceException$ = [
431
431
  -3,
432
432
  n0,
433
433
  _SE,
@@ -435,8 +435,8 @@ var ServiceException = [
435
435
  [_M],
436
436
  [0],
437
437
  ];
438
- schema.TypeRegistry.for(n0).registerError(ServiceException, ServiceException$1);
439
- var ThrottlingException = [
438
+ schema.TypeRegistry.for(n0).registerError(ServiceException$, ServiceException);
439
+ var ThrottlingException$ = [
440
440
  -3,
441
441
  n0,
442
442
  _TE,
@@ -444,8 +444,8 @@ var ThrottlingException = [
444
444
  [_M],
445
445
  [0],
446
446
  ];
447
- schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
448
- var EC2InstanceConnectServiceException = [
447
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
448
+ var EC2InstanceConnectServiceException$ = [
449
449
  -3,
450
450
  _sm,
451
451
  "EC2InstanceConnectServiceException",
@@ -453,22 +453,22 @@ var EC2InstanceConnectServiceException = [
453
453
  [],
454
454
  [],
455
455
  ];
456
- schema.TypeRegistry.for(_sm).registerError(EC2InstanceConnectServiceException, EC2InstanceConnectServiceException$1);
457
- var SendSerialConsoleSSHPublicKey = [
456
+ schema.TypeRegistry.for(_sm).registerError(EC2InstanceConnectServiceException$, EC2InstanceConnectServiceException);
457
+ var SendSerialConsoleSSHPublicKey$ = [
458
458
  9,
459
459
  n0,
460
460
  _SSCSSHPK,
461
461
  0,
462
- () => SendSerialConsoleSSHPublicKeyRequest,
463
- () => SendSerialConsoleSSHPublicKeyResponse,
462
+ () => SendSerialConsoleSSHPublicKeyRequest$,
463
+ () => SendSerialConsoleSSHPublicKeyResponse$,
464
464
  ];
465
- var SendSSHPublicKey = [
465
+ var SendSSHPublicKey$ = [
466
466
  9,
467
467
  n0,
468
468
  _SSSHPK,
469
469
  0,
470
- () => SendSSHPublicKeyRequest,
471
- () => SendSSHPublicKeyResponse,
470
+ () => SendSSHPublicKeyRequest$,
471
+ () => SendSSHPublicKeyResponse$,
472
472
  ];
473
473
 
474
474
  class SendSerialConsoleSSHPublicKeyCommand extends smithyClient.Command
@@ -479,7 +479,7 @@ class SendSerialConsoleSSHPublicKeyCommand extends smithyClient.Command
479
479
  })
480
480
  .s("AWSEC2InstanceConnectService", "SendSerialConsoleSSHPublicKey", {})
481
481
  .n("EC2InstanceConnectClient", "SendSerialConsoleSSHPublicKeyCommand")
482
- .sc(SendSerialConsoleSSHPublicKey)
482
+ .sc(SendSerialConsoleSSHPublicKey$)
483
483
  .build() {
484
484
  }
485
485
 
@@ -491,7 +491,7 @@ class SendSSHPublicKeyCommand extends smithyClient.Command
491
491
  })
492
492
  .s("AWSEC2InstanceConnectService", "SendSSHPublicKey", {})
493
493
  .n("EC2InstanceConnectClient", "SendSSHPublicKeyCommand")
494
- .sc(SendSSHPublicKey)
494
+ .sc(SendSSHPublicKey$)
495
495
  .build() {
496
496
  }
497
497
 
@@ -511,20 +511,39 @@ Object.defineProperty(exports, "__Client", {
511
511
  enumerable: true,
512
512
  get: function () { return smithyClient.Client; }
513
513
  });
514
- exports.AuthException = AuthException$1;
514
+ exports.AuthException = AuthException;
515
+ exports.AuthException$ = AuthException$;
515
516
  exports.EC2InstanceConnect = EC2InstanceConnect;
516
517
  exports.EC2InstanceConnectClient = EC2InstanceConnectClient;
517
- exports.EC2InstanceConnectServiceException = EC2InstanceConnectServiceException$1;
518
- exports.EC2InstanceNotFoundException = EC2InstanceNotFoundException$1;
519
- exports.EC2InstanceStateInvalidException = EC2InstanceStateInvalidException$1;
520
- exports.EC2InstanceTypeInvalidException = EC2InstanceTypeInvalidException$1;
521
- exports.EC2InstanceUnavailableException = EC2InstanceUnavailableException$1;
522
- exports.InvalidArgsException = InvalidArgsException$1;
518
+ exports.EC2InstanceConnectServiceException = EC2InstanceConnectServiceException;
519
+ exports.EC2InstanceConnectServiceException$ = EC2InstanceConnectServiceException$;
520
+ exports.EC2InstanceNotFoundException = EC2InstanceNotFoundException;
521
+ exports.EC2InstanceNotFoundException$ = EC2InstanceNotFoundException$;
522
+ exports.EC2InstanceStateInvalidException = EC2InstanceStateInvalidException;
523
+ exports.EC2InstanceStateInvalidException$ = EC2InstanceStateInvalidException$;
524
+ exports.EC2InstanceTypeInvalidException = EC2InstanceTypeInvalidException;
525
+ exports.EC2InstanceTypeInvalidException$ = EC2InstanceTypeInvalidException$;
526
+ exports.EC2InstanceUnavailableException = EC2InstanceUnavailableException;
527
+ exports.EC2InstanceUnavailableException$ = EC2InstanceUnavailableException$;
528
+ exports.InvalidArgsException = InvalidArgsException;
529
+ exports.InvalidArgsException$ = InvalidArgsException$;
530
+ exports.SendSSHPublicKey$ = SendSSHPublicKey$;
523
531
  exports.SendSSHPublicKeyCommand = SendSSHPublicKeyCommand;
532
+ exports.SendSSHPublicKeyRequest$ = SendSSHPublicKeyRequest$;
533
+ exports.SendSSHPublicKeyResponse$ = SendSSHPublicKeyResponse$;
534
+ exports.SendSerialConsoleSSHPublicKey$ = SendSerialConsoleSSHPublicKey$;
524
535
  exports.SendSerialConsoleSSHPublicKeyCommand = SendSerialConsoleSSHPublicKeyCommand;
525
- exports.SerialConsoleAccessDisabledException = SerialConsoleAccessDisabledException$1;
526
- exports.SerialConsoleSessionLimitExceededException = SerialConsoleSessionLimitExceededException$1;
527
- exports.SerialConsoleSessionUnavailableException = SerialConsoleSessionUnavailableException$1;
528
- exports.SerialConsoleSessionUnsupportedException = SerialConsoleSessionUnsupportedException$1;
529
- exports.ServiceException = ServiceException$1;
530
- exports.ThrottlingException = ThrottlingException$1;
536
+ exports.SendSerialConsoleSSHPublicKeyRequest$ = SendSerialConsoleSSHPublicKeyRequest$;
537
+ exports.SendSerialConsoleSSHPublicKeyResponse$ = SendSerialConsoleSSHPublicKeyResponse$;
538
+ exports.SerialConsoleAccessDisabledException = SerialConsoleAccessDisabledException;
539
+ exports.SerialConsoleAccessDisabledException$ = SerialConsoleAccessDisabledException$;
540
+ exports.SerialConsoleSessionLimitExceededException = SerialConsoleSessionLimitExceededException;
541
+ exports.SerialConsoleSessionLimitExceededException$ = SerialConsoleSessionLimitExceededException$;
542
+ exports.SerialConsoleSessionUnavailableException = SerialConsoleSessionUnavailableException;
543
+ exports.SerialConsoleSessionUnavailableException$ = SerialConsoleSessionUnavailableException$;
544
+ exports.SerialConsoleSessionUnsupportedException = SerialConsoleSessionUnsupportedException;
545
+ exports.SerialConsoleSessionUnsupportedException$ = SerialConsoleSessionUnsupportedException$;
546
+ exports.ServiceException = ServiceException;
547
+ exports.ServiceException$ = ServiceException$;
548
+ exports.ThrottlingException = ThrottlingException;
549
+ exports.ThrottlingException$ = ThrottlingException$;
@@ -26,12 +26,12 @@ const getRuntimeConfig = (config) => {
26
26
  },
27
27
  ],
28
28
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
29
- protocol: config?.protocol ??
30
- new protocols_1.AwsJson1_1Protocol({
31
- defaultNamespace: "com.amazonaws.ec2instanceconnect",
32
- serviceTarget: "AWSEC2InstanceConnectService",
33
- awsQueryCompatible: false,
34
- }),
29
+ protocol: config?.protocol ?? protocols_1.AwsJson1_1Protocol,
30
+ protocolSettings: config?.protocolSettings ?? {
31
+ defaultNamespace: "com.amazonaws.ec2instanceconnect",
32
+ version: "2018-04-02",
33
+ serviceTarget: "AWSEC2InstanceConnectService",
34
+ },
35
35
  serviceId: config?.serviceId ?? "EC2 Instance Connect",
36
36
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
37
37
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { SendSSHPublicKey } from "../schemas/schemas_0";
4
+ import { SendSSHPublicKey$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class SendSSHPublicKeyCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class SendSSHPublicKeyCommand extends $Command
11
11
  })
12
12
  .s("AWSEC2InstanceConnectService", "SendSSHPublicKey", {})
13
13
  .n("EC2InstanceConnectClient", "SendSSHPublicKeyCommand")
14
- .sc(SendSSHPublicKey)
14
+ .sc(SendSSHPublicKey$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { SendSerialConsoleSSHPublicKey } from "../schemas/schemas_0";
4
+ import { SendSerialConsoleSSHPublicKey$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class SendSerialConsoleSSHPublicKeyCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class SendSerialConsoleSSHPublicKeyCommand extends $Command
11
11
  })
12
12
  .s("AWSEC2InstanceConnectService", "SendSerialConsoleSSHPublicKey", {})
13
13
  .n("EC2InstanceConnectClient", "SendSerialConsoleSSHPublicKeyCommand")
14
- .sc(SendSerialConsoleSSHPublicKey)
14
+ .sc(SendSerialConsoleSSHPublicKey$)
15
15
  .build() {
16
16
  }
package/dist-es/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from "./EC2InstanceConnectClient";
2
2
  export * from "./EC2InstanceConnect";
3
3
  export * from "./commands";
4
+ export * from "./schemas/schemas_0";
4
5
  export * from "./models/errors";
5
6
  export { EC2InstanceConnectServiceException } from "./models/EC2InstanceConnectServiceException";
@@ -23,12 +23,12 @@ export const getRuntimeConfig = (config) => {
23
23
  },
24
24
  ],
25
25
  logger: config?.logger ?? new NoOpLogger(),
26
- protocol: config?.protocol ??
27
- new AwsJson1_1Protocol({
28
- defaultNamespace: "com.amazonaws.ec2instanceconnect",
29
- serviceTarget: "AWSEC2InstanceConnectService",
30
- awsQueryCompatible: false,
31
- }),
26
+ protocol: config?.protocol ?? AwsJson1_1Protocol,
27
+ protocolSettings: config?.protocolSettings ?? {
28
+ defaultNamespace: "com.amazonaws.ec2instanceconnect",
29
+ version: "2018-04-02",
30
+ serviceTarget: "AWSEC2InstanceConnectService",
31
+ },
32
32
  serviceId: config?.serviceId ?? "EC2 Instance Connect",
33
33
  urlParser: config?.urlParser ?? parseUrl,
34
34
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
@@ -32,9 +32,9 @@ const _s = "server";
32
32
  const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.ec2instanceconnect";
33
33
  const n0 = "com.amazonaws.ec2instanceconnect";
34
34
  import { TypeRegistry } from "@smithy/core/schema";
35
- import { EC2InstanceConnectServiceException as __EC2InstanceConnectServiceException } from "../models/EC2InstanceConnectServiceException";
36
- import { AuthException as __AuthException, EC2InstanceNotFoundException as __EC2InstanceNotFoundException, EC2InstanceStateInvalidException as __EC2InstanceStateInvalidException, EC2InstanceTypeInvalidException as __EC2InstanceTypeInvalidException, EC2InstanceUnavailableException as __EC2InstanceUnavailableException, InvalidArgsException as __InvalidArgsException, SerialConsoleAccessDisabledException as __SerialConsoleAccessDisabledException, SerialConsoleSessionLimitExceededException as __SerialConsoleSessionLimitExceededException, SerialConsoleSessionUnavailableException as __SerialConsoleSessionUnavailableException, SerialConsoleSessionUnsupportedException as __SerialConsoleSessionUnsupportedException, ServiceException as __ServiceException, ThrottlingException as __ThrottlingException, } from "../models/errors";
37
- export var AuthException = [
35
+ import { EC2InstanceConnectServiceException } from "../models/EC2InstanceConnectServiceException";
36
+ import { AuthException, EC2InstanceNotFoundException, EC2InstanceStateInvalidException, EC2InstanceTypeInvalidException, EC2InstanceUnavailableException, InvalidArgsException, SerialConsoleAccessDisabledException, SerialConsoleSessionLimitExceededException, SerialConsoleSessionUnavailableException, SerialConsoleSessionUnsupportedException, ServiceException, ThrottlingException, } from "../models/errors";
37
+ export var AuthException$ = [
38
38
  -3,
39
39
  n0,
40
40
  _AE,
@@ -42,8 +42,8 @@ export var AuthException = [
42
42
  [_M],
43
43
  [0],
44
44
  ];
45
- TypeRegistry.for(n0).registerError(AuthException, __AuthException);
46
- export var EC2InstanceNotFoundException = [
45
+ TypeRegistry.for(n0).registerError(AuthException$, AuthException);
46
+ export var EC2InstanceNotFoundException$ = [
47
47
  -3,
48
48
  n0,
49
49
  _ECINFE,
@@ -51,8 +51,8 @@ export var EC2InstanceNotFoundException = [
51
51
  [_M],
52
52
  [0],
53
53
  ];
54
- TypeRegistry.for(n0).registerError(EC2InstanceNotFoundException, __EC2InstanceNotFoundException);
55
- export var EC2InstanceStateInvalidException = [
54
+ TypeRegistry.for(n0).registerError(EC2InstanceNotFoundException$, EC2InstanceNotFoundException);
55
+ export var EC2InstanceStateInvalidException$ = [
56
56
  -3,
57
57
  n0,
58
58
  _ECISIE,
@@ -60,8 +60,8 @@ export var EC2InstanceStateInvalidException = [
60
60
  [_M],
61
61
  [0],
62
62
  ];
63
- TypeRegistry.for(n0).registerError(EC2InstanceStateInvalidException, __EC2InstanceStateInvalidException);
64
- export var EC2InstanceTypeInvalidException = [
63
+ TypeRegistry.for(n0).registerError(EC2InstanceStateInvalidException$, EC2InstanceStateInvalidException);
64
+ export var EC2InstanceTypeInvalidException$ = [
65
65
  -3,
66
66
  n0,
67
67
  _ECITIE,
@@ -69,8 +69,8 @@ export var EC2InstanceTypeInvalidException = [
69
69
  [_M],
70
70
  [0],
71
71
  ];
72
- TypeRegistry.for(n0).registerError(EC2InstanceTypeInvalidException, __EC2InstanceTypeInvalidException);
73
- export var EC2InstanceUnavailableException = [
72
+ TypeRegistry.for(n0).registerError(EC2InstanceTypeInvalidException$, EC2InstanceTypeInvalidException);
73
+ export var EC2InstanceUnavailableException$ = [
74
74
  -3,
75
75
  n0,
76
76
  _ECIUE,
@@ -78,8 +78,8 @@ export var EC2InstanceUnavailableException = [
78
78
  [_M],
79
79
  [0],
80
80
  ];
81
- TypeRegistry.for(n0).registerError(EC2InstanceUnavailableException, __EC2InstanceUnavailableException);
82
- export var InvalidArgsException = [
81
+ TypeRegistry.for(n0).registerError(EC2InstanceUnavailableException$, EC2InstanceUnavailableException);
82
+ export var InvalidArgsException$ = [
83
83
  -3,
84
84
  n0,
85
85
  _IAE,
@@ -87,8 +87,8 @@ export var InvalidArgsException = [
87
87
  [_M],
88
88
  [0],
89
89
  ];
90
- TypeRegistry.for(n0).registerError(InvalidArgsException, __InvalidArgsException);
91
- export var SendSerialConsoleSSHPublicKeyRequest = [
90
+ TypeRegistry.for(n0).registerError(InvalidArgsException$, InvalidArgsException);
91
+ export var SendSerialConsoleSSHPublicKeyRequest$ = [
92
92
  3,
93
93
  n0,
94
94
  _SSCSSHPKR,
@@ -96,8 +96,8 @@ export var SendSerialConsoleSSHPublicKeyRequest = [
96
96
  [_II, _SP, _SSHPK],
97
97
  [0, 1, 0],
98
98
  ];
99
- export var SendSerialConsoleSSHPublicKeyResponse = [3, n0, _SSCSSHPKRe, 0, [_RI, _S], [0, 2]];
100
- export var SendSSHPublicKeyRequest = [
99
+ export var SendSerialConsoleSSHPublicKeyResponse$ = [3, n0, _SSCSSHPKRe, 0, [_RI, _S], [0, 2]];
100
+ export var SendSSHPublicKeyRequest$ = [
101
101
  3,
102
102
  n0,
103
103
  _SSSHPKR,
@@ -105,8 +105,8 @@ export var SendSSHPublicKeyRequest = [
105
105
  [_II, _IOSU, _SSHPK, _AZ],
106
106
  [0, 0, 0, 0],
107
107
  ];
108
- export var SendSSHPublicKeyResponse = [3, n0, _SSSHPKRe, 0, [_RI, _S], [0, 2]];
109
- export var SerialConsoleAccessDisabledException = [
108
+ export var SendSSHPublicKeyResponse$ = [3, n0, _SSSHPKRe, 0, [_RI, _S], [0, 2]];
109
+ export var SerialConsoleAccessDisabledException$ = [
110
110
  -3,
111
111
  n0,
112
112
  _SCADE,
@@ -114,8 +114,8 @@ export var SerialConsoleAccessDisabledException = [
114
114
  [_M],
115
115
  [0],
116
116
  ];
117
- TypeRegistry.for(n0).registerError(SerialConsoleAccessDisabledException, __SerialConsoleAccessDisabledException);
118
- export var SerialConsoleSessionLimitExceededException = [
117
+ TypeRegistry.for(n0).registerError(SerialConsoleAccessDisabledException$, SerialConsoleAccessDisabledException);
118
+ export var SerialConsoleSessionLimitExceededException$ = [
119
119
  -3,
120
120
  n0,
121
121
  _SCSLEE,
@@ -123,8 +123,8 @@ export var SerialConsoleSessionLimitExceededException = [
123
123
  [_M],
124
124
  [0],
125
125
  ];
126
- TypeRegistry.for(n0).registerError(SerialConsoleSessionLimitExceededException, __SerialConsoleSessionLimitExceededException);
127
- export var SerialConsoleSessionUnavailableException = [
126
+ TypeRegistry.for(n0).registerError(SerialConsoleSessionLimitExceededException$, SerialConsoleSessionLimitExceededException);
127
+ export var SerialConsoleSessionUnavailableException$ = [
128
128
  -3,
129
129
  n0,
130
130
  _SCSUE,
@@ -132,8 +132,8 @@ export var SerialConsoleSessionUnavailableException = [
132
132
  [_M],
133
133
  [0],
134
134
  ];
135
- TypeRegistry.for(n0).registerError(SerialConsoleSessionUnavailableException, __SerialConsoleSessionUnavailableException);
136
- export var SerialConsoleSessionUnsupportedException = [
135
+ TypeRegistry.for(n0).registerError(SerialConsoleSessionUnavailableException$, SerialConsoleSessionUnavailableException);
136
+ export var SerialConsoleSessionUnsupportedException$ = [
137
137
  -3,
138
138
  n0,
139
139
  _SCSUEe,
@@ -141,8 +141,8 @@ export var SerialConsoleSessionUnsupportedException = [
141
141
  [_M],
142
142
  [0],
143
143
  ];
144
- TypeRegistry.for(n0).registerError(SerialConsoleSessionUnsupportedException, __SerialConsoleSessionUnsupportedException);
145
- export var ServiceException = [
144
+ TypeRegistry.for(n0).registerError(SerialConsoleSessionUnsupportedException$, SerialConsoleSessionUnsupportedException);
145
+ export var ServiceException$ = [
146
146
  -3,
147
147
  n0,
148
148
  _SE,
@@ -150,8 +150,8 @@ export var ServiceException = [
150
150
  [_M],
151
151
  [0],
152
152
  ];
153
- TypeRegistry.for(n0).registerError(ServiceException, __ServiceException);
154
- export var ThrottlingException = [
153
+ TypeRegistry.for(n0).registerError(ServiceException$, ServiceException);
154
+ export var ThrottlingException$ = [
155
155
  -3,
156
156
  n0,
157
157
  _TE,
@@ -159,8 +159,8 @@ export var ThrottlingException = [
159
159
  [_M],
160
160
  [0],
161
161
  ];
162
- TypeRegistry.for(n0).registerError(ThrottlingException, __ThrottlingException);
163
- export var EC2InstanceConnectServiceException = [
162
+ TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
163
+ export var EC2InstanceConnectServiceException$ = [
164
164
  -3,
165
165
  _sm,
166
166
  "EC2InstanceConnectServiceException",
@@ -168,20 +168,20 @@ export var EC2InstanceConnectServiceException = [
168
168
  [],
169
169
  [],
170
170
  ];
171
- TypeRegistry.for(_sm).registerError(EC2InstanceConnectServiceException, __EC2InstanceConnectServiceException);
172
- export var SendSerialConsoleSSHPublicKey = [
171
+ TypeRegistry.for(_sm).registerError(EC2InstanceConnectServiceException$, EC2InstanceConnectServiceException);
172
+ export var SendSerialConsoleSSHPublicKey$ = [
173
173
  9,
174
174
  n0,
175
175
  _SSCSSHPK,
176
176
  0,
177
- () => SendSerialConsoleSSHPublicKeyRequest,
178
- () => SendSerialConsoleSSHPublicKeyResponse,
177
+ () => SendSerialConsoleSSHPublicKeyRequest$,
178
+ () => SendSerialConsoleSSHPublicKeyResponse$,
179
179
  ];
180
- export var SendSSHPublicKey = [
180
+ export var SendSSHPublicKey$ = [
181
181
  9,
182
182
  n0,
183
183
  _SSSHPK,
184
184
  0,
185
- () => SendSSHPublicKeyRequest,
186
- () => SendSSHPublicKeyResponse,
185
+ () => SendSSHPublicKeyRequest$,
186
+ () => SendSSHPublicKeyResponse$,
187
187
  ];
@@ -5,7 +5,7 @@ import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/m
5
5
  import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/middleware-retry";
6
6
  import type { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
7
  import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/smithy-client";
8
- import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type ChecksumConstructor as __ChecksumConstructor, type ClientProtocol, type Decoder as __Decoder, type Encoder as __Encoder, type HashConstructor as __HashConstructor, type HttpHandlerOptions as __HttpHandlerOptions, type HttpRequest, type HttpResponse, type Logger as __Logger, type Provider as __Provider, type StreamCollector as __StreamCollector, type UrlParser as __UrlParser, AwsCredentialIdentityProvider, Provider, UserAgent as __UserAgent } from "@smithy/types";
8
+ import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type ChecksumConstructor as __ChecksumConstructor, type Decoder as __Decoder, type Encoder as __Encoder, type HashConstructor as __HashConstructor, type HttpHandlerOptions as __HttpHandlerOptions, type Logger as __Logger, type Provider as __Provider, type StreamCollector as __StreamCollector, type UrlParser as __UrlParser, AwsCredentialIdentityProvider, Provider, UserAgent as __UserAgent } from "@smithy/types";
9
9
  import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
10
  import { SendSerialConsoleSSHPublicKeyCommandInput, SendSerialConsoleSSHPublicKeyCommandOutput } from "./commands/SendSerialConsoleSSHPublicKeyCommand";
11
11
  import { SendSSHPublicKeyCommandInput, SendSSHPublicKeyCommandOutput } from "./commands/SendSSHPublicKeyCommand";
@@ -143,15 +143,6 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
143
143
  * Optional extensions
144
144
  */
145
145
  extensions?: RuntimeExtension[];
146
- /**
147
- * The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
148
- * may be overridden. A default will always be set by the client.
149
- * Available options depend on the service's supported protocols and will not be validated by
150
- * the client.
151
- * @alpha
152
- *
153
- */
154
- protocol?: ClientProtocol<HttpRequest, HttpResponse>;
155
146
  /**
156
147
  * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
157
148
  */
@@ -18,6 +18,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
18
18
  export type { RuntimeExtension } from "./runtimeExtensions";
19
19
  export type { EC2InstanceConnectExtensionConfiguration } from "./extensionConfiguration";
20
20
  export * from "./commands";
21
+ export * from "./schemas/schemas_0";
21
22
  export * from "./models/errors";
22
23
  export type * from "./models/models_0";
23
24
  export { EC2InstanceConnectServiceException } from "./models/EC2InstanceConnectServiceException";
@@ -17,8 +17,13 @@ export declare const getRuntimeConfig: (config: EC2InstanceConnectClientConfig)
17
17
  streamCollector: import("@smithy/types").StreamCollector;
18
18
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
19
19
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
20
- apiVersion: string;
21
20
  cacheMiddleware?: boolean | undefined;
21
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsJson1_1Protocol;
22
+ protocolSettings: {
23
+ defaultNamespace?: string;
24
+ [setting: string]: unknown;
25
+ };
26
+ apiVersion: string;
22
27
  urlParser: import("@smithy/types").UrlParser;
23
28
  base64Decoder: import("@smithy/types").Decoder;
24
29
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -29,7 +34,6 @@ export declare const getRuntimeConfig: (config: EC2InstanceConnectClientConfig)
29
34
  profile?: string;
30
35
  logger: import("@smithy/types").Logger;
31
36
  extensions: import("./runtimeExtensions").RuntimeExtension[];
32
- protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
33
37
  customUserAgent?: string | import("@smithy/types").UserAgent;
34
38
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
35
39
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
@@ -19,8 +19,13 @@ export declare const getRuntimeConfig: (config: EC2InstanceConnectClientConfig)
19
19
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
20
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
22
- apiVersion: string;
23
22
  cacheMiddleware?: boolean | undefined;
23
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsJson1_1Protocol;
24
+ protocolSettings: {
25
+ defaultNamespace?: string;
26
+ [setting: string]: unknown;
27
+ };
28
+ apiVersion: string;
24
29
  urlParser: import("@smithy/types").UrlParser;
25
30
  base64Decoder: import("@smithy/types").Decoder;
26
31
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -31,7 +36,6 @@ export declare const getRuntimeConfig: (config: EC2InstanceConnectClientConfig)
31
36
  profile?: string;
32
37
  logger: import("@smithy/types").Logger;
33
38
  extensions: import("./runtimeExtensions").RuntimeExtension[];
34
- protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
35
39
  customUserAgent?: string | import("@smithy/types").UserAgent;
36
40
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
37
41
  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;
@@ -6,8 +6,13 @@ export declare const getRuntimeConfig: (config: EC2InstanceConnectClientConfig)
6
6
  runtime: string;
7
7
  sha256: import("@smithy/types").HashConstructor;
8
8
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
- apiVersion: string;
10
9
  cacheMiddleware?: boolean;
10
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsJson1_1Protocol;
11
+ protocolSettings: {
12
+ defaultNamespace?: string;
13
+ [setting: string]: unknown;
14
+ };
15
+ apiVersion: string;
11
16
  urlParser: import("@smithy/types").UrlParser;
12
17
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
13
18
  streamCollector: import("@smithy/types").StreamCollector;
@@ -27,7 +32,6 @@ export declare const getRuntimeConfig: (config: EC2InstanceConnectClientConfig)
27
32
  retryMode: string | import("@smithy/types").Provider<string>;
28
33
  logger: import("@smithy/types").Logger;
29
34
  extensions: import("./runtimeExtensions").RuntimeExtension[];
30
- protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
31
35
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
32
36
  customUserAgent?: string | import("@smithy/types").UserAgent;
33
37
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
@@ -1,3 +1,4 @@
1
+ import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
1
2
  import type { EC2InstanceConnectClientConfig } from "./EC2InstanceConnectClient";
2
3
  /**
3
4
  * @internal
@@ -14,7 +15,11 @@ export declare const getRuntimeConfig: (config: EC2InstanceConnectClientConfig)
14
15
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").EC2InstanceConnectHttpAuthSchemeProvider;
15
16
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
16
17
  logger: import("@smithy/types").Logger;
17
- protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
18
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof AwsJson1_1Protocol;
19
+ protocolSettings: {
20
+ [setting: string]: unknown;
21
+ defaultNamespace?: string;
22
+ };
18
23
  serviceId: string;
19
24
  urlParser: import("@smithy/types").UrlParser;
20
25
  utf8Decoder: import("@smithy/types").Decoder;
@@ -1,20 +1,20 @@
1
1
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
2
- export declare var AuthException: StaticErrorSchema;
3
- export declare var EC2InstanceNotFoundException: StaticErrorSchema;
4
- export declare var EC2InstanceStateInvalidException: StaticErrorSchema;
5
- export declare var EC2InstanceTypeInvalidException: StaticErrorSchema;
6
- export declare var EC2InstanceUnavailableException: StaticErrorSchema;
7
- export declare var InvalidArgsException: StaticErrorSchema;
8
- export declare var SendSerialConsoleSSHPublicKeyRequest: StaticStructureSchema;
9
- export declare var SendSerialConsoleSSHPublicKeyResponse: StaticStructureSchema;
10
- export declare var SendSSHPublicKeyRequest: StaticStructureSchema;
11
- export declare var SendSSHPublicKeyResponse: StaticStructureSchema;
12
- export declare var SerialConsoleAccessDisabledException: StaticErrorSchema;
13
- export declare var SerialConsoleSessionLimitExceededException: StaticErrorSchema;
14
- export declare var SerialConsoleSessionUnavailableException: StaticErrorSchema;
15
- export declare var SerialConsoleSessionUnsupportedException: StaticErrorSchema;
16
- export declare var ServiceException: StaticErrorSchema;
17
- export declare var ThrottlingException: StaticErrorSchema;
18
- export declare var EC2InstanceConnectServiceException: StaticErrorSchema;
19
- export declare var SendSerialConsoleSSHPublicKey: StaticOperationSchema;
20
- export declare var SendSSHPublicKey: StaticOperationSchema;
2
+ export declare var AuthException$: StaticErrorSchema;
3
+ export declare var EC2InstanceNotFoundException$: StaticErrorSchema;
4
+ export declare var EC2InstanceStateInvalidException$: StaticErrorSchema;
5
+ export declare var EC2InstanceTypeInvalidException$: StaticErrorSchema;
6
+ export declare var EC2InstanceUnavailableException$: StaticErrorSchema;
7
+ export declare var InvalidArgsException$: StaticErrorSchema;
8
+ export declare var SendSerialConsoleSSHPublicKeyRequest$: StaticStructureSchema;
9
+ export declare var SendSerialConsoleSSHPublicKeyResponse$: StaticStructureSchema;
10
+ export declare var SendSSHPublicKeyRequest$: StaticStructureSchema;
11
+ export declare var SendSSHPublicKeyResponse$: StaticStructureSchema;
12
+ export declare var SerialConsoleAccessDisabledException$: StaticErrorSchema;
13
+ export declare var SerialConsoleSessionLimitExceededException$: StaticErrorSchema;
14
+ export declare var SerialConsoleSessionUnavailableException$: StaticErrorSchema;
15
+ export declare var SerialConsoleSessionUnsupportedException$: StaticErrorSchema;
16
+ export declare var ServiceException$: StaticErrorSchema;
17
+ export declare var ThrottlingException$: StaticErrorSchema;
18
+ export declare var EC2InstanceConnectServiceException$: StaticErrorSchema;
19
+ export declare var SendSerialConsoleSSHPublicKey$: StaticOperationSchema;
20
+ export declare var SendSSHPublicKey$: StaticOperationSchema;
@@ -29,13 +29,10 @@ import {
29
29
  BodyLengthCalculator as __BodyLengthCalculator,
30
30
  CheckOptionalClientConfig as __CheckOptionalClientConfig,
31
31
  ChecksumConstructor as __ChecksumConstructor,
32
- ClientProtocol,
33
32
  Decoder as __Decoder,
34
33
  Encoder as __Encoder,
35
34
  HashConstructor as __HashConstructor,
36
35
  HttpHandlerOptions as __HttpHandlerOptions,
37
- HttpRequest,
38
- HttpResponse,
39
36
  Logger as __Logger,
40
37
  Provider as __Provider,
41
38
  StreamCollector as __StreamCollector,
@@ -93,7 +90,6 @@ export interface ClientDefaults
93
90
  retryMode?: string | __Provider<string>;
94
91
  logger?: __Logger;
95
92
  extensions?: RuntimeExtension[];
96
- protocol?: ClientProtocol<HttpRequest, HttpResponse>;
97
93
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
98
94
  }
99
95
  export type EC2InstanceConnectClientConfigType = Partial<
@@ -4,6 +4,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
4
  export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { EC2InstanceConnectExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
+ export * from "./schemas/schemas_0";
7
8
  export * from "./models/errors";
8
9
  export * from "./models/models_0";
9
10
  export { EC2InstanceConnectServiceException } from "./models/EC2InstanceConnectServiceException";
@@ -28,8 +28,16 @@ export declare const getRuntimeConfig: (
28
28
  (boolean | import("@smithy/types").Provider<boolean | undefined>);
29
29
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
30
30
  (boolean | import("@smithy/types").Provider<boolean | undefined>);
31
- apiVersion: string;
32
31
  cacheMiddleware?: boolean | undefined;
32
+ protocol:
33
+ | import("@smithy/types").ClientProtocol<any, any>
34
+ | import("@smithy/types").ClientProtocolCtor<any, any>
35
+ | typeof import("@aws-sdk/core").AwsJson1_1Protocol;
36
+ protocolSettings: {
37
+ defaultNamespace?: string;
38
+ [setting: string]: unknown;
39
+ };
40
+ apiVersion: string;
33
41
  urlParser: import("@smithy/types").UrlParser;
34
42
  base64Decoder: import("@smithy/types").Decoder;
35
43
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -40,10 +48,6 @@ export declare const getRuntimeConfig: (
40
48
  profile?: string;
41
49
  logger: import("@smithy/types").Logger;
42
50
  extensions: import("./runtimeExtensions").RuntimeExtension[];
43
- protocol: import("@smithy/types").ClientProtocol<
44
- import("@smithy/types").HttpRequest,
45
- import("@smithy/types").HttpResponse
46
- >;
47
51
  customUserAgent?: string | import("@smithy/types").UserAgent;
48
52
  userAgentAppId?:
49
53
  | string
@@ -28,8 +28,16 @@ export declare const getRuntimeConfig: (
28
28
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
29
29
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
30
30
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
31
- apiVersion: string;
32
31
  cacheMiddleware?: boolean | undefined;
32
+ protocol:
33
+ | import("@smithy/types").ClientProtocol<any, any>
34
+ | import("@smithy/types").ClientProtocolCtor<any, any>
35
+ | typeof import("@aws-sdk/core").AwsJson1_1Protocol;
36
+ protocolSettings: {
37
+ defaultNamespace?: string;
38
+ [setting: string]: unknown;
39
+ };
40
+ apiVersion: string;
33
41
  urlParser: import("@smithy/types").UrlParser;
34
42
  base64Decoder: import("@smithy/types").Decoder;
35
43
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -40,10 +48,6 @@ export declare const getRuntimeConfig: (
40
48
  profile?: string;
41
49
  logger: import("@smithy/types").Logger;
42
50
  extensions: import("./runtimeExtensions").RuntimeExtension[];
43
- protocol: import("@smithy/types").ClientProtocol<
44
- import("@smithy/types").HttpRequest,
45
- import("@smithy/types").HttpResponse
46
- >;
47
51
  customUserAgent?: string | import("@smithy/types").UserAgent;
48
52
  retryStrategy?:
49
53
  | import("@smithy/types").RetryStrategy
@@ -10,8 +10,16 @@ export declare const getRuntimeConfig: (
10
10
  | Record<string, unknown>
11
11
  | import("@smithy/protocol-http").HttpHandler<any>
12
12
  | import("@smithy/fetch-http-handler").FetchHttpHandler;
13
- apiVersion: string;
14
13
  cacheMiddleware?: boolean;
14
+ protocol:
15
+ | import("@smithy/types").ClientProtocol<any, any>
16
+ | import("@smithy/types").ClientProtocolCtor<any, any>
17
+ | typeof import("@aws-sdk/core").AwsJson1_1Protocol;
18
+ protocolSettings: {
19
+ defaultNamespace?: string;
20
+ [setting: string]: unknown;
21
+ };
22
+ apiVersion: string;
15
23
  urlParser: import("@smithy/types").UrlParser;
16
24
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
17
25
  streamCollector: import("@smithy/types").StreamCollector;
@@ -39,10 +47,6 @@ export declare const getRuntimeConfig: (
39
47
  retryMode: string | import("@smithy/types").Provider<string>;
40
48
  logger: import("@smithy/types").Logger;
41
49
  extensions: import("./runtimeExtensions").RuntimeExtension[];
42
- protocol: import("@smithy/types").ClientProtocol<
43
- import("@smithy/types").HttpRequest,
44
- import("@smithy/types").HttpResponse
45
- >;
46
50
  defaultsMode:
47
51
  | import("@smithy/smithy-client").DefaultsMode
48
52
  | import("@smithy/types").Provider<
@@ -1,3 +1,4 @@
1
+ import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
1
2
  import { EC2InstanceConnectClientConfig } from "./EC2InstanceConnectClient";
2
3
  export declare const getRuntimeConfig: (
3
4
  config: EC2InstanceConnectClientConfig
@@ -16,10 +17,14 @@ export declare const getRuntimeConfig: (
16
17
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").EC2InstanceConnectHttpAuthSchemeProvider;
17
18
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
18
19
  logger: import("@smithy/types").Logger;
19
- protocol: import("@smithy/types").ClientProtocol<
20
- import("@smithy/types").HttpRequest,
21
- import("@smithy/types").HttpResponse
22
- >;
20
+ protocol:
21
+ | import("@smithy/types").ClientProtocol<any, any>
22
+ | import("@smithy/types").ClientProtocolCtor<any, any>
23
+ | typeof AwsJson1_1Protocol;
24
+ protocolSettings: {
25
+ [setting: string]: unknown;
26
+ defaultNamespace?: string;
27
+ };
23
28
  serviceId: string;
24
29
  urlParser: import("@smithy/types").UrlParser;
25
30
  utf8Decoder: import("@smithy/types").Decoder;
@@ -3,22 +3,22 @@ import {
3
3
  StaticOperationSchema,
4
4
  StaticStructureSchema,
5
5
  } from "@smithy/types";
6
- export declare var AuthException: StaticErrorSchema;
7
- export declare var EC2InstanceNotFoundException: StaticErrorSchema;
8
- export declare var EC2InstanceStateInvalidException: StaticErrorSchema;
9
- export declare var EC2InstanceTypeInvalidException: StaticErrorSchema;
10
- export declare var EC2InstanceUnavailableException: StaticErrorSchema;
11
- export declare var InvalidArgsException: StaticErrorSchema;
12
- export declare var SendSerialConsoleSSHPublicKeyRequest: StaticStructureSchema;
13
- export declare var SendSerialConsoleSSHPublicKeyResponse: StaticStructureSchema;
14
- export declare var SendSSHPublicKeyRequest: StaticStructureSchema;
15
- export declare var SendSSHPublicKeyResponse: StaticStructureSchema;
16
- export declare var SerialConsoleAccessDisabledException: StaticErrorSchema;
17
- export declare var SerialConsoleSessionLimitExceededException: StaticErrorSchema;
18
- export declare var SerialConsoleSessionUnavailableException: StaticErrorSchema;
19
- export declare var SerialConsoleSessionUnsupportedException: StaticErrorSchema;
20
- export declare var ServiceException: StaticErrorSchema;
21
- export declare var ThrottlingException: StaticErrorSchema;
22
- export declare var EC2InstanceConnectServiceException: StaticErrorSchema;
23
- export declare var SendSerialConsoleSSHPublicKey: StaticOperationSchema;
24
- export declare var SendSSHPublicKey: StaticOperationSchema;
6
+ export declare var AuthException$: StaticErrorSchema;
7
+ export declare var EC2InstanceNotFoundException$: StaticErrorSchema;
8
+ export declare var EC2InstanceStateInvalidException$: StaticErrorSchema;
9
+ export declare var EC2InstanceTypeInvalidException$: StaticErrorSchema;
10
+ export declare var EC2InstanceUnavailableException$: StaticErrorSchema;
11
+ export declare var InvalidArgsException$: StaticErrorSchema;
12
+ export declare var SendSerialConsoleSSHPublicKeyRequest$: StaticStructureSchema;
13
+ export declare var SendSerialConsoleSSHPublicKeyResponse$: StaticStructureSchema;
14
+ export declare var SendSSHPublicKeyRequest$: StaticStructureSchema;
15
+ export declare var SendSSHPublicKeyResponse$: StaticStructureSchema;
16
+ export declare var SerialConsoleAccessDisabledException$: StaticErrorSchema;
17
+ export declare var SerialConsoleSessionLimitExceededException$: StaticErrorSchema;
18
+ export declare var SerialConsoleSessionUnavailableException$: StaticErrorSchema;
19
+ export declare var SerialConsoleSessionUnsupportedException$: StaticErrorSchema;
20
+ export declare var ServiceException$: StaticErrorSchema;
21
+ export declare var ThrottlingException$: StaticErrorSchema;
22
+ export declare var EC2InstanceConnectServiceException$: StaticErrorSchema;
23
+ export declare var SendSerialConsoleSSHPublicKey$: StaticOperationSchema;
24
+ export declare var SendSSHPublicKey$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,9 +1,9 @@
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.952.0",
4
+ "version": "3.954.0",
5
5
  "scripts": {
6
- "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
+ "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-ec2-instance-connect",
8
8
  "build:es": "tsc -p tsconfig.es.json",
9
9
  "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
@@ -21,41 +21,41 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "3.947.0",
25
- "@aws-sdk/credential-provider-node": "3.952.0",
26
- "@aws-sdk/middleware-host-header": "3.936.0",
27
- "@aws-sdk/middleware-logger": "3.936.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.948.0",
29
- "@aws-sdk/middleware-user-agent": "3.947.0",
30
- "@aws-sdk/region-config-resolver": "3.936.0",
31
- "@aws-sdk/types": "3.936.0",
32
- "@aws-sdk/util-endpoints": "3.936.0",
33
- "@aws-sdk/util-user-agent-browser": "3.936.0",
34
- "@aws-sdk/util-user-agent-node": "3.947.0",
35
- "@smithy/config-resolver": "^4.4.3",
36
- "@smithy/core": "^3.18.7",
37
- "@smithy/fetch-http-handler": "^5.3.6",
38
- "@smithy/hash-node": "^4.2.5",
39
- "@smithy/invalid-dependency": "^4.2.5",
40
- "@smithy/middleware-content-length": "^4.2.5",
41
- "@smithy/middleware-endpoint": "^4.3.14",
42
- "@smithy/middleware-retry": "^4.4.14",
43
- "@smithy/middleware-serde": "^4.2.6",
44
- "@smithy/middleware-stack": "^4.2.5",
45
- "@smithy/node-config-provider": "^4.3.5",
46
- "@smithy/node-http-handler": "^4.4.5",
47
- "@smithy/protocol-http": "^5.3.5",
48
- "@smithy/smithy-client": "^4.9.10",
49
- "@smithy/types": "^4.9.0",
50
- "@smithy/url-parser": "^4.2.5",
24
+ "@aws-sdk/core": "3.954.0",
25
+ "@aws-sdk/credential-provider-node": "3.954.0",
26
+ "@aws-sdk/middleware-host-header": "3.953.0",
27
+ "@aws-sdk/middleware-logger": "3.953.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.953.0",
29
+ "@aws-sdk/middleware-user-agent": "3.954.0",
30
+ "@aws-sdk/region-config-resolver": "3.953.0",
31
+ "@aws-sdk/types": "3.953.0",
32
+ "@aws-sdk/util-endpoints": "3.953.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.953.0",
34
+ "@aws-sdk/util-user-agent-node": "3.954.0",
35
+ "@smithy/config-resolver": "^4.4.4",
36
+ "@smithy/core": "^3.19.0",
37
+ "@smithy/fetch-http-handler": "^5.3.7",
38
+ "@smithy/hash-node": "^4.2.6",
39
+ "@smithy/invalid-dependency": "^4.2.6",
40
+ "@smithy/middleware-content-length": "^4.2.6",
41
+ "@smithy/middleware-endpoint": "^4.4.0",
42
+ "@smithy/middleware-retry": "^4.4.16",
43
+ "@smithy/middleware-serde": "^4.2.7",
44
+ "@smithy/middleware-stack": "^4.2.6",
45
+ "@smithy/node-config-provider": "^4.3.6",
46
+ "@smithy/node-http-handler": "^4.4.6",
47
+ "@smithy/protocol-http": "^5.3.6",
48
+ "@smithy/smithy-client": "^4.10.1",
49
+ "@smithy/types": "^4.10.0",
50
+ "@smithy/url-parser": "^4.2.6",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.13",
55
- "@smithy/util-defaults-mode-node": "^4.2.16",
56
- "@smithy/util-endpoints": "^3.2.5",
57
- "@smithy/util-middleware": "^4.2.5",
58
- "@smithy/util-retry": "^4.2.5",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.15",
55
+ "@smithy/util-defaults-mode-node": "^4.2.18",
56
+ "@smithy/util-endpoints": "^3.2.6",
57
+ "@smithy/util-middleware": "^4.2.6",
58
+ "@smithy/util-retry": "^4.2.6",
59
59
  "@smithy/util-utf8": "^4.2.0",
60
60
  "tslib": "^2.6.2"
61
61
  },