@aws-sdk/client-budgets 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
|
@@ -65,16 +65,16 @@ using your favorite package manager:
|
|
|
65
65
|
|
|
66
66
|
The AWS SDK is modulized by clients and commands.
|
|
67
67
|
To send a request, you only need to import the `BudgetsClient` and
|
|
68
|
-
the commands you need, for example `
|
|
68
|
+
the commands you need, for example `DescribeBudgetsCommand`:
|
|
69
69
|
|
|
70
70
|
```js
|
|
71
71
|
// ES5 example
|
|
72
|
-
const { BudgetsClient,
|
|
72
|
+
const { BudgetsClient, DescribeBudgetsCommand } = require("@aws-sdk/client-budgets");
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
```ts
|
|
76
76
|
// ES6+ example
|
|
77
|
-
import { BudgetsClient,
|
|
77
|
+
import { BudgetsClient, DescribeBudgetsCommand } from "@aws-sdk/client-budgets";
|
|
78
78
|
```
|
|
79
79
|
|
|
80
80
|
### Usage
|
|
@@ -93,7 +93,7 @@ const client = new BudgetsClient({ region: "REGION" });
|
|
|
93
93
|
const params = {
|
|
94
94
|
/** input parameters */
|
|
95
95
|
};
|
|
96
|
-
const command = new
|
|
96
|
+
const command = new DescribeBudgetsCommand(params);
|
|
97
97
|
```
|
|
98
98
|
|
|
99
99
|
#### Async/await
|
|
@@ -172,7 +172,7 @@ const client = new AWS.Budgets({ region: "REGION" });
|
|
|
172
172
|
|
|
173
173
|
// async/await.
|
|
174
174
|
try {
|
|
175
|
-
const data = await client.
|
|
175
|
+
const data = await client.describeBudgets(params);
|
|
176
176
|
// process data.
|
|
177
177
|
} catch (error) {
|
|
178
178
|
// error handling.
|
|
@@ -180,7 +180,7 @@ try {
|
|
|
180
180
|
|
|
181
181
|
// Promises.
|
|
182
182
|
client
|
|
183
|
-
.
|
|
183
|
+
.describeBudgets(params)
|
|
184
184
|
.then((data) => {
|
|
185
185
|
// process data.
|
|
186
186
|
})
|
|
@@ -189,7 +189,7 @@ client
|
|
|
189
189
|
});
|
|
190
190
|
|
|
191
191
|
// callbacks.
|
|
192
|
-
client.
|
|
192
|
+
client.describeBudgets(params, (err, data) => {
|
|
193
193
|
// process err and data.
|
|
194
194
|
});
|
|
195
195
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-budgets",
|
|
3
3
|
"description": "AWS SDK for JavaScript Budgets 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",
|