@aws-sdk/client-codeguruprofiler 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
@@ -45,16 +45,16 @@ using your favorite package manager:
45
45
 
46
46
  The AWS SDK is modulized by clients and commands.
47
47
  To send a request, you only need to import the `CodeGuruProfilerClient` and
48
- the commands you need, for example `AddNotificationChannelsCommand`:
48
+ the commands you need, for example `ListProfilingGroupsCommand`:
49
49
 
50
50
  ```js
51
51
  // ES5 example
52
- const { CodeGuruProfilerClient, AddNotificationChannelsCommand } = require("@aws-sdk/client-codeguruprofiler");
52
+ const { CodeGuruProfilerClient, ListProfilingGroupsCommand } = require("@aws-sdk/client-codeguruprofiler");
53
53
  ```
54
54
 
55
55
  ```ts
56
56
  // ES6+ example
57
- import { CodeGuruProfilerClient, AddNotificationChannelsCommand } from "@aws-sdk/client-codeguruprofiler";
57
+ import { CodeGuruProfilerClient, ListProfilingGroupsCommand } from "@aws-sdk/client-codeguruprofiler";
58
58
  ```
59
59
 
60
60
  ### Usage
@@ -73,7 +73,7 @@ const client = new CodeGuruProfilerClient({ region: "REGION" });
73
73
  const params = {
74
74
  /** input parameters */
75
75
  };
76
- const command = new AddNotificationChannelsCommand(params);
76
+ const command = new ListProfilingGroupsCommand(params);
77
77
  ```
78
78
 
79
79
  #### Async/await
@@ -152,7 +152,7 @@ const client = new AWS.CodeGuruProfiler({ region: "REGION" });
152
152
 
153
153
  // async/await.
154
154
  try {
155
- const data = await client.addNotificationChannels(params);
155
+ const data = await client.listProfilingGroups(params);
156
156
  // process data.
157
157
  } catch (error) {
158
158
  // error handling.
@@ -160,7 +160,7 @@ try {
160
160
 
161
161
  // Promises.
162
162
  client
163
- .addNotificationChannels(params)
163
+ .listProfilingGroups(params)
164
164
  .then((data) => {
165
165
  // process data.
166
166
  })
@@ -169,7 +169,7 @@ client
169
169
  });
170
170
 
171
171
  // callbacks.
172
- client.addNotificationChannels(params, (err, data) => {
172
+ client.listProfilingGroups(params, (err, data) => {
173
173
  // process err and data.
174
174
  });
175
175
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codeguruprofiler",
3
3
  "description": "AWS SDK for JavaScript Codeguruprofiler 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",