@aws-sdk/client-codestar-notifications 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 -10
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -100,19 +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 `CodestarNotificationsClient` and
103
- the commands you need, for example `CreateNotificationRuleCommand`:
103
+ the commands you need, for example `ListTargetsCommand`:
104
104
 
105
105
  ```js
106
106
  // ES5 example
107
- const {
108
- CodestarNotificationsClient,
109
- CreateNotificationRuleCommand,
110
- } = require("@aws-sdk/client-codestar-notifications");
107
+ const { CodestarNotificationsClient, ListTargetsCommand } = require("@aws-sdk/client-codestar-notifications");
111
108
  ```
112
109
 
113
110
  ```ts
114
111
  // ES6+ example
115
- import { CodestarNotificationsClient, CreateNotificationRuleCommand } from "@aws-sdk/client-codestar-notifications";
112
+ import { CodestarNotificationsClient, ListTargetsCommand } from "@aws-sdk/client-codestar-notifications";
116
113
  ```
117
114
 
118
115
  ### Usage
@@ -131,7 +128,7 @@ const client = new CodestarNotificationsClient({ region: "REGION" });
131
128
  const params = {
132
129
  /** input parameters */
133
130
  };
134
- const command = new CreateNotificationRuleCommand(params);
131
+ const command = new ListTargetsCommand(params);
135
132
  ```
136
133
 
137
134
  #### Async/await
@@ -210,7 +207,7 @@ const client = new AWS.CodestarNotifications({ region: "REGION" });
210
207
 
211
208
  // async/await.
212
209
  try {
213
- const data = await client.createNotificationRule(params);
210
+ const data = await client.listTargets(params);
214
211
  // process data.
215
212
  } catch (error) {
216
213
  // error handling.
@@ -218,7 +215,7 @@ try {
218
215
 
219
216
  // Promises.
220
217
  client
221
- .createNotificationRule(params)
218
+ .listTargets(params)
222
219
  .then((data) => {
223
220
  // process data.
224
221
  })
@@ -227,7 +224,7 @@ client
227
224
  });
228
225
 
229
226
  // callbacks.
230
- client.createNotificationRule(params, (err, data) => {
227
+ client.listTargets(params, (err, data) => {
231
228
  // process err and data.
232
229
  });
233
230
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codestar-notifications",
3
3
  "description": "AWS SDK for JavaScript Codestar Notifications 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",