@aws-sdk/client-appconfig 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
|
@@ -68,16 +68,16 @@ using your favorite package manager:
|
|
|
68
68
|
|
|
69
69
|
The AWS SDK is modulized by clients and commands.
|
|
70
70
|
To send a request, you only need to import the `AppConfigClient` and
|
|
71
|
-
the commands you need, for example `
|
|
71
|
+
the commands you need, for example `ListApplicationsCommand`:
|
|
72
72
|
|
|
73
73
|
```js
|
|
74
74
|
// ES5 example
|
|
75
|
-
const { AppConfigClient,
|
|
75
|
+
const { AppConfigClient, ListApplicationsCommand } = require("@aws-sdk/client-appconfig");
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
```ts
|
|
79
79
|
// ES6+ example
|
|
80
|
-
import { AppConfigClient,
|
|
80
|
+
import { AppConfigClient, ListApplicationsCommand } from "@aws-sdk/client-appconfig";
|
|
81
81
|
```
|
|
82
82
|
|
|
83
83
|
### Usage
|
|
@@ -96,7 +96,7 @@ const client = new AppConfigClient({ region: "REGION" });
|
|
|
96
96
|
const params = {
|
|
97
97
|
/** input parameters */
|
|
98
98
|
};
|
|
99
|
-
const command = new
|
|
99
|
+
const command = new ListApplicationsCommand(params);
|
|
100
100
|
```
|
|
101
101
|
|
|
102
102
|
#### Async/await
|
|
@@ -175,7 +175,7 @@ const client = new AWS.AppConfig({ region: "REGION" });
|
|
|
175
175
|
|
|
176
176
|
// async/await.
|
|
177
177
|
try {
|
|
178
|
-
const data = await client.
|
|
178
|
+
const data = await client.listApplications(params);
|
|
179
179
|
// process data.
|
|
180
180
|
} catch (error) {
|
|
181
181
|
// error handling.
|
|
@@ -183,7 +183,7 @@ try {
|
|
|
183
183
|
|
|
184
184
|
// Promises.
|
|
185
185
|
client
|
|
186
|
-
.
|
|
186
|
+
.listApplications(params)
|
|
187
187
|
.then((data) => {
|
|
188
188
|
// process data.
|
|
189
189
|
})
|
|
@@ -192,7 +192,7 @@ client
|
|
|
192
192
|
});
|
|
193
193
|
|
|
194
194
|
// callbacks.
|
|
195
|
-
client.
|
|
195
|
+
client.listApplications(params, (err, data) => {
|
|
196
196
|
// process err and data.
|
|
197
197
|
});
|
|
198
198
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-appconfig",
|
|
3
3
|
"description": "AWS SDK for JavaScript Appconfig 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",
|