@aws-sdk/client-network-firewall 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.
Files changed (2) hide show
  1. package/README.md +7 -7
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -100,16 +100,16 @@ using your favorite package manager:
100
100
 
101
101
  The AWS SDK is modulized by clients and commands.
102
102
  To send a request, you only need to import the `NetworkFirewallClient` and
103
- the commands you need, for example `AssociateFirewallPolicyCommand`:
103
+ the commands you need, for example `ListFirewallsCommand`:
104
104
 
105
105
  ```js
106
106
  // ES5 example
107
- const { NetworkFirewallClient, AssociateFirewallPolicyCommand } = require("@aws-sdk/client-network-firewall");
107
+ const { NetworkFirewallClient, ListFirewallsCommand } = require("@aws-sdk/client-network-firewall");
108
108
  ```
109
109
 
110
110
  ```ts
111
111
  // ES6+ example
112
- import { NetworkFirewallClient, AssociateFirewallPolicyCommand } from "@aws-sdk/client-network-firewall";
112
+ import { NetworkFirewallClient, ListFirewallsCommand } from "@aws-sdk/client-network-firewall";
113
113
  ```
114
114
 
115
115
  ### Usage
@@ -128,7 +128,7 @@ const client = new NetworkFirewallClient({ region: "REGION" });
128
128
  const params = {
129
129
  /** input parameters */
130
130
  };
131
- const command = new AssociateFirewallPolicyCommand(params);
131
+ const command = new ListFirewallsCommand(params);
132
132
  ```
133
133
 
134
134
  #### Async/await
@@ -207,7 +207,7 @@ const client = new AWS.NetworkFirewall({ region: "REGION" });
207
207
 
208
208
  // async/await.
209
209
  try {
210
- const data = await client.associateFirewallPolicy(params);
210
+ const data = await client.listFirewalls(params);
211
211
  // process data.
212
212
  } catch (error) {
213
213
  // error handling.
@@ -215,7 +215,7 @@ try {
215
215
 
216
216
  // Promises.
217
217
  client
218
- .associateFirewallPolicy(params)
218
+ .listFirewalls(params)
219
219
  .then((data) => {
220
220
  // process data.
221
221
  })
@@ -224,7 +224,7 @@ client
224
224
  });
225
225
 
226
226
  // callbacks.
227
- client.associateFirewallPolicy(params, (err, data) => {
227
+ client.listFirewalls(params, (err, data) => {
228
228
  // process err and data.
229
229
  });
230
230
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-network-firewall",
3
3
  "description": "AWS SDK for JavaScript Network Firewall Client for Node.js, Browser and React Native",
4
- "version": "3.418.0",
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.418.0",
25
- "@aws-sdk/credential-provider-node": "3.418.0",
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",