@aws-sdk/client-cloud9 3.418.0 → 3.423.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
|
@@ -90,16 +90,16 @@ using your favorite package manager:
|
|
|
90
90
|
|
|
91
91
|
The AWS SDK is modulized by clients and commands.
|
|
92
92
|
To send a request, you only need to import the `Cloud9Client` and
|
|
93
|
-
the commands you need, for example `
|
|
93
|
+
the commands you need, for example `ListEnvironmentsCommand`:
|
|
94
94
|
|
|
95
95
|
```js
|
|
96
96
|
// ES5 example
|
|
97
|
-
const { Cloud9Client,
|
|
97
|
+
const { Cloud9Client, ListEnvironmentsCommand } = require("@aws-sdk/client-cloud9");
|
|
98
98
|
```
|
|
99
99
|
|
|
100
100
|
```ts
|
|
101
101
|
// ES6+ example
|
|
102
|
-
import { Cloud9Client,
|
|
102
|
+
import { Cloud9Client, ListEnvironmentsCommand } from "@aws-sdk/client-cloud9";
|
|
103
103
|
```
|
|
104
104
|
|
|
105
105
|
### Usage
|
|
@@ -118,7 +118,7 @@ const client = new Cloud9Client({ region: "REGION" });
|
|
|
118
118
|
const params = {
|
|
119
119
|
/** input parameters */
|
|
120
120
|
};
|
|
121
|
-
const command = new
|
|
121
|
+
const command = new ListEnvironmentsCommand(params);
|
|
122
122
|
```
|
|
123
123
|
|
|
124
124
|
#### Async/await
|
|
@@ -197,7 +197,7 @@ const client = new AWS.Cloud9({ region: "REGION" });
|
|
|
197
197
|
|
|
198
198
|
// async/await.
|
|
199
199
|
try {
|
|
200
|
-
const data = await client.
|
|
200
|
+
const data = await client.listEnvironments(params);
|
|
201
201
|
// process data.
|
|
202
202
|
} catch (error) {
|
|
203
203
|
// error handling.
|
|
@@ -205,7 +205,7 @@ try {
|
|
|
205
205
|
|
|
206
206
|
// Promises.
|
|
207
207
|
client
|
|
208
|
-
.
|
|
208
|
+
.listEnvironments(params)
|
|
209
209
|
.then((data) => {
|
|
210
210
|
// process data.
|
|
211
211
|
})
|
|
@@ -214,7 +214,7 @@ client
|
|
|
214
214
|
});
|
|
215
215
|
|
|
216
216
|
// callbacks.
|
|
217
|
-
client.
|
|
217
|
+
client.listEnvironments(params, (err, data) => {
|
|
218
218
|
// process err and data.
|
|
219
219
|
});
|
|
220
220
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloud9",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloud9 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.423.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.423.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.423.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",
|