@aws-sdk/client-securityhub 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
@@ -70,16 +70,16 @@ using your favorite package manager:
70
70
 
71
71
  The AWS SDK is modulized by clients and commands.
72
72
  To send a request, you only need to import the `SecurityHubClient` and
73
- the commands you need, for example `AcceptAdministratorInvitationCommand`:
73
+ the commands you need, for example `ListMembersCommand`:
74
74
 
75
75
  ```js
76
76
  // ES5 example
77
- const { SecurityHubClient, AcceptAdministratorInvitationCommand } = require("@aws-sdk/client-securityhub");
77
+ const { SecurityHubClient, ListMembersCommand } = require("@aws-sdk/client-securityhub");
78
78
  ```
79
79
 
80
80
  ```ts
81
81
  // ES6+ example
82
- import { SecurityHubClient, AcceptAdministratorInvitationCommand } from "@aws-sdk/client-securityhub";
82
+ import { SecurityHubClient, ListMembersCommand } from "@aws-sdk/client-securityhub";
83
83
  ```
84
84
 
85
85
  ### Usage
@@ -98,7 +98,7 @@ const client = new SecurityHubClient({ region: "REGION" });
98
98
  const params = {
99
99
  /** input parameters */
100
100
  };
101
- const command = new AcceptAdministratorInvitationCommand(params);
101
+ const command = new ListMembersCommand(params);
102
102
  ```
103
103
 
104
104
  #### Async/await
@@ -177,7 +177,7 @@ const client = new AWS.SecurityHub({ region: "REGION" });
177
177
 
178
178
  // async/await.
179
179
  try {
180
- const data = await client.acceptAdministratorInvitation(params);
180
+ const data = await client.listMembers(params);
181
181
  // process data.
182
182
  } catch (error) {
183
183
  // error handling.
@@ -185,7 +185,7 @@ try {
185
185
 
186
186
  // Promises.
187
187
  client
188
- .acceptAdministratorInvitation(params)
188
+ .listMembers(params)
189
189
  .then((data) => {
190
190
  // process data.
191
191
  })
@@ -194,7 +194,7 @@ client
194
194
  });
195
195
 
196
196
  // callbacks.
197
- client.acceptAdministratorInvitation(params, (err, data) => {
197
+ client.listMembers(params, (err, data) => {
198
198
  // process err and data.
199
199
  });
200
200
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-securityhub",
3
3
  "description": "AWS SDK for JavaScript Securityhub 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",