@aws-sdk/client-ec2-instance-connect 3.1136.0 → 3.1138.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
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1135.0";
72
+ var version = "3.1137.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -340,10 +340,10 @@ const _hE = "httpError";
340
340
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.ec2instanceconnect";
341
341
  const _se = "server";
342
342
  const n0 = "com.amazonaws.ec2instanceconnect";
343
- const _s_registry = TypeRegistry.for(_s);
343
+ const _s_registry = new TypeRegistry(_s);
344
344
  var EC2InstanceConnectServiceException$ = [-3, _s, "EC2InstanceConnectServiceException", 0, [], []];
345
345
  _s_registry.registerError(EC2InstanceConnectServiceException$, EC2InstanceConnectServiceException);
346
- const n0_registry = TypeRegistry.for(n0);
346
+ const n0_registry = new TypeRegistry(n0);
347
347
  var AuthException$ = [-3, n0, _AE,
348
348
  { [_aQE]: [`Forbidden`, 403], [_e]: _c, [_hE]: 403 },
349
349
  [_M],
@@ -34,10 +34,10 @@ const n0 = "com.amazonaws.ec2instanceconnect";
34
34
  import { TypeRegistry } from "@smithy/core/schema";
35
35
  import { EC2InstanceConnectServiceException } from "../models/EC2InstanceConnectServiceException";
36
36
  import { AuthException, EC2InstanceNotFoundException, EC2InstanceStateInvalidException, EC2InstanceTypeInvalidException, EC2InstanceUnavailableException, InvalidArgsException, SerialConsoleAccessDisabledException, SerialConsoleSessionLimitExceededException, SerialConsoleSessionUnavailableException, SerialConsoleSessionUnsupportedException, ServiceException, ThrottlingException, } from "../models/errors";
37
- const _s_registry = TypeRegistry.for(_s);
37
+ const _s_registry = new TypeRegistry(_s);
38
38
  export var EC2InstanceConnectServiceException$ = [-3, _s, "EC2InstanceConnectServiceException", 0, [], []];
39
39
  _s_registry.registerError(EC2InstanceConnectServiceException$, EC2InstanceConnectServiceException);
40
- const n0_registry = TypeRegistry.for(n0);
40
+ const n0_registry = new TypeRegistry(n0);
41
41
  export var AuthException$ = [-3, n0, _AE,
42
42
  { [_aQE]: [`Forbidden`, 403], [_e]: _c, [_hE]: 403 },
43
43
  [_M],
@@ -1,20 +1,26 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder } from "@smithy/types";
2
2
  import { type SendSerialConsoleSSHPublicKeyCommandInput, type SendSerialConsoleSSHPublicKeyCommandOutput } from "./commands/SendSerialConsoleSSHPublicKeyCommand";
3
3
  import { type SendSSHPublicKeyCommandInput, type SendSSHPublicKeyCommandOutput } from "./commands/SendSSHPublicKeyCommand";
4
4
  import { EC2InstanceConnectClient } from "./EC2InstanceConnectClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export interface EC2InstanceConnectRequestOptions extends __HttpHandlerOptions {
9
+ metricsRecorder?: __MetricsRecorder<unknown>;
10
+ }
5
11
  export interface EC2InstanceConnect {
6
12
  /**
7
13
  * @see {@link SendSerialConsoleSSHPublicKeyCommand}
8
14
  */
9
- sendSerialConsoleSSHPublicKey(args: SendSerialConsoleSSHPublicKeyCommandInput, options?: __HttpHandlerOptions): Promise<SendSerialConsoleSSHPublicKeyCommandOutput>;
15
+ sendSerialConsoleSSHPublicKey(args: SendSerialConsoleSSHPublicKeyCommandInput, options?: EC2InstanceConnectRequestOptions): Promise<SendSerialConsoleSSHPublicKeyCommandOutput>;
10
16
  sendSerialConsoleSSHPublicKey(args: SendSerialConsoleSSHPublicKeyCommandInput, cb: (err: any, data?: SendSerialConsoleSSHPublicKeyCommandOutput) => void): void;
11
- sendSerialConsoleSSHPublicKey(args: SendSerialConsoleSSHPublicKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendSerialConsoleSSHPublicKeyCommandOutput) => void): void;
17
+ sendSerialConsoleSSHPublicKey(args: SendSerialConsoleSSHPublicKeyCommandInput, options: EC2InstanceConnectRequestOptions, cb: (err: any, data?: SendSerialConsoleSSHPublicKeyCommandOutput) => void): void;
12
18
  /**
13
19
  * @see {@link SendSSHPublicKeyCommand}
14
20
  */
15
- sendSSHPublicKey(args: SendSSHPublicKeyCommandInput, options?: __HttpHandlerOptions): Promise<SendSSHPublicKeyCommandOutput>;
21
+ sendSSHPublicKey(args: SendSSHPublicKeyCommandInput, options?: EC2InstanceConnectRequestOptions): Promise<SendSSHPublicKeyCommandOutput>;
16
22
  sendSSHPublicKey(args: SendSSHPublicKeyCommandInput, cb: (err: any, data?: SendSSHPublicKeyCommandOutput) => void): void;
17
- sendSSHPublicKey(args: SendSSHPublicKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendSSHPublicKeyCommandOutput) => void): void;
23
+ sendSSHPublicKey(args: SendSSHPublicKeyCommandInput, options: EC2InstanceConnectRequestOptions, cb: (err: any, data?: SendSSHPublicKeyCommandOutput) => void): void;
18
24
  }
19
25
  /**
20
26
  * <p>This is the <i> Amazon EC2 Instance Connect API Reference</i>. It
@@ -1,4 +1,7 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ MetricsRecorder as __MetricsRecorder,
4
+ } from "@smithy/types";
2
5
  import {
3
6
  SendSerialConsoleSSHPublicKeyCommandInput,
4
7
  SendSerialConsoleSSHPublicKeyCommandOutput,
@@ -8,10 +11,13 @@ import {
8
11
  SendSSHPublicKeyCommandOutput,
9
12
  } from "./commands/SendSSHPublicKeyCommand";
10
13
  import { EC2InstanceConnectClient } from "./EC2InstanceConnectClient";
14
+ export interface EC2InstanceConnectRequestOptions extends __HttpHandlerOptions {
15
+ metricsRecorder?: __MetricsRecorder<unknown>;
16
+ }
11
17
  export interface EC2InstanceConnect {
12
18
  sendSerialConsoleSSHPublicKey(
13
19
  args: SendSerialConsoleSSHPublicKeyCommandInput,
14
- options?: __HttpHandlerOptions,
20
+ options?: EC2InstanceConnectRequestOptions,
15
21
  ): Promise<SendSerialConsoleSSHPublicKeyCommandOutput>;
16
22
  sendSerialConsoleSSHPublicKey(
17
23
  args: SendSerialConsoleSSHPublicKeyCommandInput,
@@ -19,12 +25,12 @@ export interface EC2InstanceConnect {
19
25
  ): void;
20
26
  sendSerialConsoleSSHPublicKey(
21
27
  args: SendSerialConsoleSSHPublicKeyCommandInput,
22
- options: __HttpHandlerOptions,
28
+ options: EC2InstanceConnectRequestOptions,
23
29
  cb: (err: any, data?: SendSerialConsoleSSHPublicKeyCommandOutput) => void,
24
30
  ): void;
25
31
  sendSSHPublicKey(
26
32
  args: SendSSHPublicKeyCommandInput,
27
- options?: __HttpHandlerOptions,
33
+ options?: EC2InstanceConnectRequestOptions,
28
34
  ): Promise<SendSSHPublicKeyCommandOutput>;
29
35
  sendSSHPublicKey(
30
36
  args: SendSSHPublicKeyCommandInput,
@@ -32,7 +38,7 @@ export interface EC2InstanceConnect {
32
38
  ): void;
33
39
  sendSSHPublicKey(
34
40
  args: SendSSHPublicKeyCommandInput,
35
- options: __HttpHandlerOptions,
41
+ options: EC2InstanceConnectRequestOptions,
36
42
  cb: (err: any, data?: SendSSHPublicKeyCommandOutput) => void,
37
43
  ): void;
38
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ec2-instance-connect",
3
- "version": "3.1136.0",
3
+ "version": "3.1138.0",
4
4
  "description": "AWS SDK for JavaScript Ec2 Instance Connect Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ec2-instance-connect",
6
6
  "license": "Apache-2.0",
@@ -46,13 +46,13 @@
46
46
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.978.0",
50
- "@aws-sdk/credential-provider-node": "^3.972.83",
51
- "@aws-sdk/types": "^3.974.5",
52
- "@smithy/core": "^3.33.3",
53
- "@smithy/fetch-http-handler": "^5.7.2",
54
- "@smithy/node-http-handler": "^4.11.3",
55
- "@smithy/types": "^4.17.2",
49
+ "@aws-sdk/core": "^3.978.1",
50
+ "@aws-sdk/credential-provider-node": "^3.972.84",
51
+ "@aws-sdk/types": "^3.974.6",
52
+ "@smithy/core": "^3.35.0",
53
+ "@smithy/fetch-http-handler": "^5.8.0",
54
+ "@smithy/node-http-handler": "^4.12.1",
55
+ "@smithy/types": "^4.19.0",
56
56
  "tslib": "^2.6.2"
57
57
  },
58
58
  "devDependencies": {