@aws-sdk/client-waf-regional 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.
Files changed (2) hide show
  1. package/README.md +7 -7
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -33,16 +33,16 @@ using your favorite package manager:
33
33
 
34
34
  The AWS SDK is modulized by clients and commands.
35
35
  To send a request, you only need to import the `WAFRegionalClient` and
36
- the commands you need, for example `AssociateWebACLCommand`:
36
+ the commands you need, for example `ListIPSetsCommand`:
37
37
 
38
38
  ```js
39
39
  // ES5 example
40
- const { WAFRegionalClient, AssociateWebACLCommand } = require("@aws-sdk/client-waf-regional");
40
+ const { WAFRegionalClient, ListIPSetsCommand } = require("@aws-sdk/client-waf-regional");
41
41
  ```
42
42
 
43
43
  ```ts
44
44
  // ES6+ example
45
- import { WAFRegionalClient, AssociateWebACLCommand } from "@aws-sdk/client-waf-regional";
45
+ import { WAFRegionalClient, ListIPSetsCommand } from "@aws-sdk/client-waf-regional";
46
46
  ```
47
47
 
48
48
  ### Usage
@@ -61,7 +61,7 @@ const client = new WAFRegionalClient({ region: "REGION" });
61
61
  const params = {
62
62
  /** input parameters */
63
63
  };
64
- const command = new AssociateWebACLCommand(params);
64
+ const command = new ListIPSetsCommand(params);
65
65
  ```
66
66
 
67
67
  #### Async/await
@@ -140,7 +140,7 @@ const client = new AWS.WAFRegional({ region: "REGION" });
140
140
 
141
141
  // async/await.
142
142
  try {
143
- const data = await client.associateWebACL(params);
143
+ const data = await client.listIPSets(params);
144
144
  // process data.
145
145
  } catch (error) {
146
146
  // error handling.
@@ -148,7 +148,7 @@ try {
148
148
 
149
149
  // Promises.
150
150
  client
151
- .associateWebACL(params)
151
+ .listIPSets(params)
152
152
  .then((data) => {
153
153
  // process data.
154
154
  })
@@ -157,7 +157,7 @@ client
157
157
  });
158
158
 
159
159
  // callbacks.
160
- client.associateWebACL(params, (err, data) => {
160
+ client.listIPSets(params, (err, data) => {
161
161
  // process err and data.
162
162
  });
163
163
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-waf-regional",
3
3
  "description": "AWS SDK for JavaScript Waf Regional Client for Node.js, Browser and React Native",
4
- "version": "3.418.0",
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.418.0",
25
- "@aws-sdk/credential-provider-node": "3.418.0",
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",