@aws-sdk/client-ec2-instance-connect 3.414.0 → 3.421.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/README.md CHANGED
@@ -25,19 +25,16 @@ using your favorite package manager:
25
25
 
26
26
  The AWS SDK is modulized by clients and commands.
27
27
  To send a request, you only need to import the `EC2InstanceConnectClient` and
28
- the commands you need, for example `SendSerialConsoleSSHPublicKeyCommand`:
28
+ the commands you need, for example `SendSSHPublicKeyCommand`:
29
29
 
30
30
  ```js
31
31
  // ES5 example
32
- const {
33
- EC2InstanceConnectClient,
34
- SendSerialConsoleSSHPublicKeyCommand,
35
- } = require("@aws-sdk/client-ec2-instance-connect");
32
+ const { EC2InstanceConnectClient, SendSSHPublicKeyCommand } = require("@aws-sdk/client-ec2-instance-connect");
36
33
  ```
37
34
 
38
35
  ```ts
39
36
  // ES6+ example
40
- import { EC2InstanceConnectClient, SendSerialConsoleSSHPublicKeyCommand } from "@aws-sdk/client-ec2-instance-connect";
37
+ import { EC2InstanceConnectClient, SendSSHPublicKeyCommand } from "@aws-sdk/client-ec2-instance-connect";
41
38
  ```
42
39
 
43
40
  ### Usage
@@ -56,7 +53,7 @@ const client = new EC2InstanceConnectClient({ region: "REGION" });
56
53
  const params = {
57
54
  /** input parameters */
58
55
  };
59
- const command = new SendSerialConsoleSSHPublicKeyCommand(params);
56
+ const command = new SendSSHPublicKeyCommand(params);
60
57
  ```
61
58
 
62
59
  #### Async/await
@@ -135,7 +132,7 @@ const client = new AWS.EC2InstanceConnect({ region: "REGION" });
135
132
 
136
133
  // async/await.
137
134
  try {
138
- const data = await client.sendSerialConsoleSSHPublicKey(params);
135
+ const data = await client.sendSSHPublicKey(params);
139
136
  // process data.
140
137
  } catch (error) {
141
138
  // error handling.
@@ -143,7 +140,7 @@ try {
143
140
 
144
141
  // Promises.
145
142
  client
146
- .sendSerialConsoleSSHPublicKey(params)
143
+ .sendSSHPublicKey(params)
147
144
  .then((data) => {
148
145
  // process data.
149
146
  })
@@ -152,7 +149,7 @@ client
152
149
  });
153
150
 
154
151
  // callbacks.
155
- client.sendSerialConsoleSSHPublicKey(params, (err, data) => {
152
+ client.sendSSHPublicKey(params, (err, data) => {
156
153
  // process err and data.
157
154
  });
158
155
  ```
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
8
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
10
  class SendSSHPublicKeyCommand extends smithy_client_1.Command {
10
11
  static getEndpointParameterInstructions() {
@@ -32,6 +33,10 @@ class SendSSHPublicKeyCommand extends smithy_client_1.Command {
32
33
  commandName,
33
34
  inputFilterSensitiveLog: (_) => _,
34
35
  outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "AWSEC2InstanceConnectService",
38
+ operation: "SendSSHPublicKey",
39
+ },
35
40
  };
36
41
  const { requestHandler } = configuration;
37
42
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
8
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
10
  class SendSerialConsoleSSHPublicKeyCommand extends smithy_client_1.Command {
10
11
  static getEndpointParameterInstructions() {
@@ -32,6 +33,10 @@ class SendSerialConsoleSSHPublicKeyCommand extends smithy_client_1.Command {
32
33
  commandName,
33
34
  inputFilterSensitiveLog: (_) => _,
34
35
  outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "AWSEC2InstanceConnectService",
38
+ operation: "SendSerialConsoleSSHPublicKey",
39
+ },
35
40
  };
36
41
  const { requestHandler } = configuration;
37
42
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
5
  import { de_SendSSHPublicKeyCommand, se_SendSSHPublicKeyCommand } from "../protocols/Aws_json1_1";
5
6
  export { $Command };
6
7
  export class SendSSHPublicKeyCommand extends $Command {
@@ -29,6 +30,10 @@ export class SendSSHPublicKeyCommand extends $Command {
29
30
  commandName,
30
31
  inputFilterSensitiveLog: (_) => _,
31
32
  outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AWSEC2InstanceConnectService",
35
+ operation: "SendSSHPublicKey",
36
+ },
32
37
  };
33
38
  const { requestHandler } = configuration;
34
39
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
5
  import { de_SendSerialConsoleSSHPublicKeyCommand, se_SendSerialConsoleSSHPublicKeyCommand, } from "../protocols/Aws_json1_1";
5
6
  export { $Command };
6
7
  export class SendSerialConsoleSSHPublicKeyCommand extends $Command {
@@ -29,6 +30,10 @@ export class SendSerialConsoleSSHPublicKeyCommand extends $Command {
29
30
  commandName,
30
31
  inputFilterSensitiveLog: (_) => _,
31
32
  outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AWSEC2InstanceConnectService",
35
+ operation: "SendSerialConsoleSSHPublicKey",
36
+ },
32
37
  };
33
38
  const { requestHandler } = configuration;
34
39
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
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.414.0",
4
+ "version": "3.421.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,39 +21,39 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.414.0",
25
- "@aws-sdk/credential-provider-node": "3.414.0",
26
- "@aws-sdk/middleware-host-header": "3.413.0",
27
- "@aws-sdk/middleware-logger": "3.413.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.413.0",
29
- "@aws-sdk/middleware-signing": "3.413.0",
30
- "@aws-sdk/middleware-user-agent": "3.413.0",
31
- "@aws-sdk/region-config-resolver": "3.413.0",
32
- "@aws-sdk/types": "3.413.0",
33
- "@aws-sdk/util-endpoints": "3.413.0",
34
- "@aws-sdk/util-user-agent-browser": "3.413.0",
35
- "@aws-sdk/util-user-agent-node": "3.413.0",
36
- "@smithy/config-resolver": "^2.0.8",
37
- "@smithy/fetch-http-handler": "^2.1.3",
38
- "@smithy/hash-node": "^2.0.7",
39
- "@smithy/invalid-dependency": "^2.0.7",
40
- "@smithy/middleware-content-length": "^2.0.9",
41
- "@smithy/middleware-endpoint": "^2.0.7",
42
- "@smithy/middleware-retry": "^2.0.10",
43
- "@smithy/middleware-serde": "^2.0.7",
44
- "@smithy/middleware-stack": "^2.0.0",
45
- "@smithy/node-config-provider": "^2.0.10",
46
- "@smithy/node-http-handler": "^2.1.3",
47
- "@smithy/protocol-http": "^3.0.3",
48
- "@smithy/smithy-client": "^2.1.4",
49
- "@smithy/types": "^2.3.1",
50
- "@smithy/url-parser": "^2.0.7",
24
+ "@aws-sdk/client-sts": "3.421.0",
25
+ "@aws-sdk/credential-provider-node": "3.421.0",
26
+ "@aws-sdk/middleware-host-header": "3.418.0",
27
+ "@aws-sdk/middleware-logger": "3.418.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.418.0",
29
+ "@aws-sdk/middleware-signing": "3.418.0",
30
+ "@aws-sdk/middleware-user-agent": "3.418.0",
31
+ "@aws-sdk/region-config-resolver": "3.418.0",
32
+ "@aws-sdk/types": "3.418.0",
33
+ "@aws-sdk/util-endpoints": "3.418.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.418.0",
35
+ "@aws-sdk/util-user-agent-node": "3.418.0",
36
+ "@smithy/config-resolver": "^2.0.10",
37
+ "@smithy/fetch-http-handler": "^2.1.5",
38
+ "@smithy/hash-node": "^2.0.9",
39
+ "@smithy/invalid-dependency": "^2.0.9",
40
+ "@smithy/middleware-content-length": "^2.0.11",
41
+ "@smithy/middleware-endpoint": "^2.0.9",
42
+ "@smithy/middleware-retry": "^2.0.12",
43
+ "@smithy/middleware-serde": "^2.0.9",
44
+ "@smithy/middleware-stack": "^2.0.2",
45
+ "@smithy/node-config-provider": "^2.0.12",
46
+ "@smithy/node-http-handler": "^2.1.5",
47
+ "@smithy/protocol-http": "^3.0.5",
48
+ "@smithy/smithy-client": "^2.1.6",
49
+ "@smithy/types": "^2.3.3",
50
+ "@smithy/url-parser": "^2.0.9",
51
51
  "@smithy/util-base64": "^2.0.0",
52
52
  "@smithy/util-body-length-browser": "^2.0.0",
53
53
  "@smithy/util-body-length-node": "^2.1.0",
54
- "@smithy/util-defaults-mode-browser": "^2.0.8",
55
- "@smithy/util-defaults-mode-node": "^2.0.10",
56
- "@smithy/util-retry": "^2.0.0",
54
+ "@smithy/util-defaults-mode-browser": "^2.0.10",
55
+ "@smithy/util-defaults-mode-node": "^2.0.12",
56
+ "@smithy/util-retry": "^2.0.2",
57
57
  "@smithy/util-utf8": "^2.0.0",
58
58
  "tslib": "^2.5.0"
59
59
  },