@aws-sdk/client-wafv2 3.419.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
|
@@ -81,16 +81,16 @@ using your favorite package manager:
|
|
|
81
81
|
|
|
82
82
|
The AWS SDK is modulized by clients and commands.
|
|
83
83
|
To send a request, you only need to import the `WAFV2Client` and
|
|
84
|
-
the commands you need, for example `
|
|
84
|
+
the commands you need, for example `ListAPIKeysCommand`:
|
|
85
85
|
|
|
86
86
|
```js
|
|
87
87
|
// ES5 example
|
|
88
|
-
const { WAFV2Client,
|
|
88
|
+
const { WAFV2Client, ListAPIKeysCommand } = require("@aws-sdk/client-wafv2");
|
|
89
89
|
```
|
|
90
90
|
|
|
91
91
|
```ts
|
|
92
92
|
// ES6+ example
|
|
93
|
-
import { WAFV2Client,
|
|
93
|
+
import { WAFV2Client, ListAPIKeysCommand } from "@aws-sdk/client-wafv2";
|
|
94
94
|
```
|
|
95
95
|
|
|
96
96
|
### Usage
|
|
@@ -109,7 +109,7 @@ const client = new WAFV2Client({ region: "REGION" });
|
|
|
109
109
|
const params = {
|
|
110
110
|
/** input parameters */
|
|
111
111
|
};
|
|
112
|
-
const command = new
|
|
112
|
+
const command = new ListAPIKeysCommand(params);
|
|
113
113
|
```
|
|
114
114
|
|
|
115
115
|
#### Async/await
|
|
@@ -188,7 +188,7 @@ const client = new AWS.WAFV2({ region: "REGION" });
|
|
|
188
188
|
|
|
189
189
|
// async/await.
|
|
190
190
|
try {
|
|
191
|
-
const data = await client.
|
|
191
|
+
const data = await client.listAPIKeys(params);
|
|
192
192
|
// process data.
|
|
193
193
|
} catch (error) {
|
|
194
194
|
// error handling.
|
|
@@ -196,7 +196,7 @@ try {
|
|
|
196
196
|
|
|
197
197
|
// Promises.
|
|
198
198
|
client
|
|
199
|
-
.
|
|
199
|
+
.listAPIKeys(params)
|
|
200
200
|
.then((data) => {
|
|
201
201
|
// process data.
|
|
202
202
|
})
|
|
@@ -205,7 +205,7 @@ client
|
|
|
205
205
|
});
|
|
206
206
|
|
|
207
207
|
// callbacks.
|
|
208
|
-
client.
|
|
208
|
+
client.listAPIKeys(params, (err, data) => {
|
|
209
209
|
// process err and data.
|
|
210
210
|
});
|
|
211
211
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-wafv2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Wafv2 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",
|