@aws-sdk/client-sfn 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
@@ -39,16 +39,16 @@ using your favorite package manager:
39
39
 
40
40
  The AWS SDK is modulized by clients and commands.
41
41
  To send a request, you only need to import the `SFNClient` and
42
- the commands you need, for example `CreateActivityCommand`:
42
+ the commands you need, for example `ListActivitiesCommand`:
43
43
 
44
44
  ```js
45
45
  // ES5 example
46
- const { SFNClient, CreateActivityCommand } = require("@aws-sdk/client-sfn");
46
+ const { SFNClient, ListActivitiesCommand } = require("@aws-sdk/client-sfn");
47
47
  ```
48
48
 
49
49
  ```ts
50
50
  // ES6+ example
51
- import { SFNClient, CreateActivityCommand } from "@aws-sdk/client-sfn";
51
+ import { SFNClient, ListActivitiesCommand } from "@aws-sdk/client-sfn";
52
52
  ```
53
53
 
54
54
  ### Usage
@@ -67,7 +67,7 @@ const client = new SFNClient({ region: "REGION" });
67
67
  const params = {
68
68
  /** input parameters */
69
69
  };
70
- const command = new CreateActivityCommand(params);
70
+ const command = new ListActivitiesCommand(params);
71
71
  ```
72
72
 
73
73
  #### Async/await
@@ -146,7 +146,7 @@ const client = new AWS.SFN({ region: "REGION" });
146
146
 
147
147
  // async/await.
148
148
  try {
149
- const data = await client.createActivity(params);
149
+ const data = await client.listActivities(params);
150
150
  // process data.
151
151
  } catch (error) {
152
152
  // error handling.
@@ -154,7 +154,7 @@ try {
154
154
 
155
155
  // Promises.
156
156
  client
157
- .createActivity(params)
157
+ .listActivities(params)
158
158
  .then((data) => {
159
159
  // process data.
160
160
  })
@@ -163,7 +163,7 @@ client
163
163
  });
164
164
 
165
165
  // callbacks.
166
- client.createActivity(params, (err, data) => {
166
+ client.listActivities(params, (err, data) => {
167
167
  // process err and data.
168
168
  });
169
169
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sfn",
3
3
  "description": "AWS SDK for JavaScript Sfn 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",