@aws-sdk/client-ec2 3.420.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 -7
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -49,16 +49,16 @@ using your favorite package manager:
|
|
|
49
49
|
|
|
50
50
|
The AWS SDK is modulized by clients and commands.
|
|
51
51
|
To send a request, you only need to import the `EC2Client` and
|
|
52
|
-
the commands you need, for example `
|
|
52
|
+
the commands you need, for example `ListImagesInRecycleBinCommand`:
|
|
53
53
|
|
|
54
54
|
```js
|
|
55
55
|
// ES5 example
|
|
56
|
-
const { EC2Client,
|
|
56
|
+
const { EC2Client, ListImagesInRecycleBinCommand } = require("@aws-sdk/client-ec2");
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
```ts
|
|
60
60
|
// ES6+ example
|
|
61
|
-
import { EC2Client,
|
|
61
|
+
import { EC2Client, ListImagesInRecycleBinCommand } from "@aws-sdk/client-ec2";
|
|
62
62
|
```
|
|
63
63
|
|
|
64
64
|
### Usage
|
|
@@ -77,7 +77,7 @@ const client = new EC2Client({ region: "REGION" });
|
|
|
77
77
|
const params = {
|
|
78
78
|
/** input parameters */
|
|
79
79
|
};
|
|
80
|
-
const command = new
|
|
80
|
+
const command = new ListImagesInRecycleBinCommand(params);
|
|
81
81
|
```
|
|
82
82
|
|
|
83
83
|
#### Async/await
|
|
@@ -156,7 +156,7 @@ const client = new AWS.EC2({ region: "REGION" });
|
|
|
156
156
|
|
|
157
157
|
// async/await.
|
|
158
158
|
try {
|
|
159
|
-
const data = await client.
|
|
159
|
+
const data = await client.listImagesInRecycleBin(params);
|
|
160
160
|
// process data.
|
|
161
161
|
} catch (error) {
|
|
162
162
|
// error handling.
|
|
@@ -164,7 +164,7 @@ try {
|
|
|
164
164
|
|
|
165
165
|
// Promises.
|
|
166
166
|
client
|
|
167
|
-
.
|
|
167
|
+
.listImagesInRecycleBin(params)
|
|
168
168
|
.then((data) => {
|
|
169
169
|
// process data.
|
|
170
170
|
})
|
|
@@ -173,7 +173,7 @@ client
|
|
|
173
173
|
});
|
|
174
174
|
|
|
175
175
|
// callbacks.
|
|
176
|
-
client.
|
|
176
|
+
client.listImagesInRecycleBin(params, (err, data) => {
|
|
177
177
|
// process err and data.
|
|
178
178
|
});
|
|
179
179
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ec2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ec2 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",
|