@aws-sdk/client-codedeploy 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
|
@@ -115,16 +115,16 @@ using your favorite package manager:
|
|
|
115
115
|
|
|
116
116
|
The AWS SDK is modulized by clients and commands.
|
|
117
117
|
To send a request, you only need to import the `CodeDeployClient` and
|
|
118
|
-
the commands you need, for example `
|
|
118
|
+
the commands you need, for example `ListApplicationsCommand`:
|
|
119
119
|
|
|
120
120
|
```js
|
|
121
121
|
// ES5 example
|
|
122
|
-
const { CodeDeployClient,
|
|
122
|
+
const { CodeDeployClient, ListApplicationsCommand } = require("@aws-sdk/client-codedeploy");
|
|
123
123
|
```
|
|
124
124
|
|
|
125
125
|
```ts
|
|
126
126
|
// ES6+ example
|
|
127
|
-
import { CodeDeployClient,
|
|
127
|
+
import { CodeDeployClient, ListApplicationsCommand } from "@aws-sdk/client-codedeploy";
|
|
128
128
|
```
|
|
129
129
|
|
|
130
130
|
### Usage
|
|
@@ -143,7 +143,7 @@ const client = new CodeDeployClient({ region: "REGION" });
|
|
|
143
143
|
const params = {
|
|
144
144
|
/** input parameters */
|
|
145
145
|
};
|
|
146
|
-
const command = new
|
|
146
|
+
const command = new ListApplicationsCommand(params);
|
|
147
147
|
```
|
|
148
148
|
|
|
149
149
|
#### Async/await
|
|
@@ -222,7 +222,7 @@ const client = new AWS.CodeDeploy({ region: "REGION" });
|
|
|
222
222
|
|
|
223
223
|
// async/await.
|
|
224
224
|
try {
|
|
225
|
-
const data = await client.
|
|
225
|
+
const data = await client.listApplications(params);
|
|
226
226
|
// process data.
|
|
227
227
|
} catch (error) {
|
|
228
228
|
// error handling.
|
|
@@ -230,7 +230,7 @@ try {
|
|
|
230
230
|
|
|
231
231
|
// Promises.
|
|
232
232
|
client
|
|
233
|
-
.
|
|
233
|
+
.listApplications(params)
|
|
234
234
|
.then((data) => {
|
|
235
235
|
// process data.
|
|
236
236
|
})
|
|
@@ -239,7 +239,7 @@ client
|
|
|
239
239
|
});
|
|
240
240
|
|
|
241
241
|
// callbacks.
|
|
242
|
-
client.
|
|
242
|
+
client.listApplications(params, (err, data) => {
|
|
243
243
|
// process err and data.
|
|
244
244
|
});
|
|
245
245
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-codedeploy",
|
|
3
3
|
"description": "AWS SDK for JavaScript Codedeploy 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",
|