@aws-sdk/client-codestar-connections 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 -7
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -103,16 +103,16 @@ using your favorite package manager:
|
|
|
103
103
|
|
|
104
104
|
The AWS SDK is modulized by clients and commands.
|
|
105
105
|
To send a request, you only need to import the `CodeStarConnectionsClient` and
|
|
106
|
-
the commands you need, for example `
|
|
106
|
+
the commands you need, for example `ListHostsCommand`:
|
|
107
107
|
|
|
108
108
|
```js
|
|
109
109
|
// ES5 example
|
|
110
|
-
const { CodeStarConnectionsClient,
|
|
110
|
+
const { CodeStarConnectionsClient, ListHostsCommand } = require("@aws-sdk/client-codestar-connections");
|
|
111
111
|
```
|
|
112
112
|
|
|
113
113
|
```ts
|
|
114
114
|
// ES6+ example
|
|
115
|
-
import { CodeStarConnectionsClient,
|
|
115
|
+
import { CodeStarConnectionsClient, ListHostsCommand } from "@aws-sdk/client-codestar-connections";
|
|
116
116
|
```
|
|
117
117
|
|
|
118
118
|
### Usage
|
|
@@ -131,7 +131,7 @@ const client = new CodeStarConnectionsClient({ region: "REGION" });
|
|
|
131
131
|
const params = {
|
|
132
132
|
/** input parameters */
|
|
133
133
|
};
|
|
134
|
-
const command = new
|
|
134
|
+
const command = new ListHostsCommand(params);
|
|
135
135
|
```
|
|
136
136
|
|
|
137
137
|
#### Async/await
|
|
@@ -210,7 +210,7 @@ const client = new AWS.CodeStarConnections({ region: "REGION" });
|
|
|
210
210
|
|
|
211
211
|
// async/await.
|
|
212
212
|
try {
|
|
213
|
-
const data = await client.
|
|
213
|
+
const data = await client.listHosts(params);
|
|
214
214
|
// process data.
|
|
215
215
|
} catch (error) {
|
|
216
216
|
// error handling.
|
|
@@ -218,7 +218,7 @@ try {
|
|
|
218
218
|
|
|
219
219
|
// Promises.
|
|
220
220
|
client
|
|
221
|
-
.
|
|
221
|
+
.listHosts(params)
|
|
222
222
|
.then((data) => {
|
|
223
223
|
// process data.
|
|
224
224
|
})
|
|
@@ -227,7 +227,7 @@ client
|
|
|
227
227
|
});
|
|
228
228
|
|
|
229
229
|
// callbacks.
|
|
230
|
-
client.
|
|
230
|
+
client.listHosts(params, (err, data) => {
|
|
231
231
|
// process err and data.
|
|
232
232
|
});
|
|
233
233
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-codestar-connections",
|
|
3
3
|
"description": "AWS SDK for JavaScript Codestar Connections 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",
|