@aws-sdk/client-health 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
@@ -66,16 +66,16 @@ using your favorite package manager:
66
66
 
67
67
  The AWS SDK is modulized by clients and commands.
68
68
  To send a request, you only need to import the `HealthClient` and
69
- the commands you need, for example `DescribeAffectedAccountsForOrganizationCommand`:
69
+ the commands you need, for example `DescribeEventsCommand`:
70
70
 
71
71
  ```js
72
72
  // ES5 example
73
- const { HealthClient, DescribeAffectedAccountsForOrganizationCommand } = require("@aws-sdk/client-health");
73
+ const { HealthClient, DescribeEventsCommand } = require("@aws-sdk/client-health");
74
74
  ```
75
75
 
76
76
  ```ts
77
77
  // ES6+ example
78
- import { HealthClient, DescribeAffectedAccountsForOrganizationCommand } from "@aws-sdk/client-health";
78
+ import { HealthClient, DescribeEventsCommand } from "@aws-sdk/client-health";
79
79
  ```
80
80
 
81
81
  ### Usage
@@ -94,7 +94,7 @@ const client = new HealthClient({ region: "REGION" });
94
94
  const params = {
95
95
  /** input parameters */
96
96
  };
97
- const command = new DescribeAffectedAccountsForOrganizationCommand(params);
97
+ const command = new DescribeEventsCommand(params);
98
98
  ```
99
99
 
100
100
  #### Async/await
@@ -173,7 +173,7 @@ const client = new AWS.Health({ region: "REGION" });
173
173
 
174
174
  // async/await.
175
175
  try {
176
- const data = await client.describeAffectedAccountsForOrganization(params);
176
+ const data = await client.describeEvents(params);
177
177
  // process data.
178
178
  } catch (error) {
179
179
  // error handling.
@@ -181,7 +181,7 @@ try {
181
181
 
182
182
  // Promises.
183
183
  client
184
- .describeAffectedAccountsForOrganization(params)
184
+ .describeEvents(params)
185
185
  .then((data) => {
186
186
  // process data.
187
187
  })
@@ -190,7 +190,7 @@ client
190
190
  });
191
191
 
192
192
  // callbacks.
193
- client.describeAffectedAccountsForOrganization(params, (err, data) => {
193
+ client.describeEvents(params, (err, data) => {
194
194
  // process err and data.
195
195
  });
196
196
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-health",
3
3
  "description": "AWS SDK for JavaScript Health 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",