@aws-sdk/client-ec2-instance-connect 3.418.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 +7 -10
- package/package.json +3 -3
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 `
|
|
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,
|
|
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
|
|
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.
|
|
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
|
-
.
|
|
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.
|
|
152
|
+
client.sendSSHPublicKey(params, (err, data) => {
|
|
156
153
|
// process err and data.
|
|
157
154
|
});
|
|
158
155
|
```
|
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.
|
|
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,8 +21,8 @@
|
|
|
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.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.421.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.421.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.418.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.418.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.418.0",
|