@aws-sdk/client-pinpoint-email 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
@@ -52,16 +52,16 @@ using your favorite package manager:
52
52
 
53
53
  The AWS SDK is modulized by clients and commands.
54
54
  To send a request, you only need to import the `PinpointEmailClient` and
55
- the commands you need, for example `CreateConfigurationSetCommand`:
55
+ the commands you need, for example `ListConfigurationSetsCommand`:
56
56
 
57
57
  ```js
58
58
  // ES5 example
59
- const { PinpointEmailClient, CreateConfigurationSetCommand } = require("@aws-sdk/client-pinpoint-email");
59
+ const { PinpointEmailClient, ListConfigurationSetsCommand } = require("@aws-sdk/client-pinpoint-email");
60
60
  ```
61
61
 
62
62
  ```ts
63
63
  // ES6+ example
64
- import { PinpointEmailClient, CreateConfigurationSetCommand } from "@aws-sdk/client-pinpoint-email";
64
+ import { PinpointEmailClient, ListConfigurationSetsCommand } from "@aws-sdk/client-pinpoint-email";
65
65
  ```
66
66
 
67
67
  ### Usage
@@ -80,7 +80,7 @@ const client = new PinpointEmailClient({ region: "REGION" });
80
80
  const params = {
81
81
  /** input parameters */
82
82
  };
83
- const command = new CreateConfigurationSetCommand(params);
83
+ const command = new ListConfigurationSetsCommand(params);
84
84
  ```
85
85
 
86
86
  #### Async/await
@@ -159,7 +159,7 @@ const client = new AWS.PinpointEmail({ region: "REGION" });
159
159
 
160
160
  // async/await.
161
161
  try {
162
- const data = await client.createConfigurationSet(params);
162
+ const data = await client.listConfigurationSets(params);
163
163
  // process data.
164
164
  } catch (error) {
165
165
  // error handling.
@@ -167,7 +167,7 @@ try {
167
167
 
168
168
  // Promises.
169
169
  client
170
- .createConfigurationSet(params)
170
+ .listConfigurationSets(params)
171
171
  .then((data) => {
172
172
  // process data.
173
173
  })
@@ -176,7 +176,7 @@ client
176
176
  });
177
177
 
178
178
  // callbacks.
179
- client.createConfigurationSet(params, (err, data) => {
179
+ client.listConfigurationSets(params, (err, data) => {
180
180
  // process err and data.
181
181
  });
182
182
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-pinpoint-email",
3
3
  "description": "AWS SDK for JavaScript Pinpoint Email 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",