@aws-sdk/client-marketplace-metering 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
|
@@ -87,16 +87,16 @@ using your favorite package manager:
|
|
|
87
87
|
|
|
88
88
|
The AWS SDK is modulized by clients and commands.
|
|
89
89
|
To send a request, you only need to import the `MarketplaceMeteringClient` and
|
|
90
|
-
the commands you need, for example `
|
|
90
|
+
the commands you need, for example `ResolveCustomerCommand`:
|
|
91
91
|
|
|
92
92
|
```js
|
|
93
93
|
// ES5 example
|
|
94
|
-
const { MarketplaceMeteringClient,
|
|
94
|
+
const { MarketplaceMeteringClient, ResolveCustomerCommand } = require("@aws-sdk/client-marketplace-metering");
|
|
95
95
|
```
|
|
96
96
|
|
|
97
97
|
```ts
|
|
98
98
|
// ES6+ example
|
|
99
|
-
import { MarketplaceMeteringClient,
|
|
99
|
+
import { MarketplaceMeteringClient, ResolveCustomerCommand } from "@aws-sdk/client-marketplace-metering";
|
|
100
100
|
```
|
|
101
101
|
|
|
102
102
|
### Usage
|
|
@@ -115,7 +115,7 @@ const client = new MarketplaceMeteringClient({ region: "REGION" });
|
|
|
115
115
|
const params = {
|
|
116
116
|
/** input parameters */
|
|
117
117
|
};
|
|
118
|
-
const command = new
|
|
118
|
+
const command = new ResolveCustomerCommand(params);
|
|
119
119
|
```
|
|
120
120
|
|
|
121
121
|
#### Async/await
|
|
@@ -194,7 +194,7 @@ const client = new AWS.MarketplaceMetering({ region: "REGION" });
|
|
|
194
194
|
|
|
195
195
|
// async/await.
|
|
196
196
|
try {
|
|
197
|
-
const data = await client.
|
|
197
|
+
const data = await client.resolveCustomer(params);
|
|
198
198
|
// process data.
|
|
199
199
|
} catch (error) {
|
|
200
200
|
// error handling.
|
|
@@ -202,7 +202,7 @@ try {
|
|
|
202
202
|
|
|
203
203
|
// Promises.
|
|
204
204
|
client
|
|
205
|
-
.
|
|
205
|
+
.resolveCustomer(params)
|
|
206
206
|
.then((data) => {
|
|
207
207
|
// process data.
|
|
208
208
|
})
|
|
@@ -211,7 +211,7 @@ client
|
|
|
211
211
|
});
|
|
212
212
|
|
|
213
213
|
// callbacks.
|
|
214
|
-
client.
|
|
214
|
+
client.resolveCustomer(params, (err, data) => {
|
|
215
215
|
// process err and data.
|
|
216
216
|
});
|
|
217
217
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-marketplace-metering",
|
|
3
3
|
"description": "AWS SDK for JavaScript Marketplace Metering 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",
|