@aws-sdk/client-batch 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
@@ -34,16 +34,16 @@ using your favorite package manager:
34
34
 
35
35
  The AWS SDK is modulized by clients and commands.
36
36
  To send a request, you only need to import the `BatchClient` and
37
- the commands you need, for example `CancelJobCommand`:
37
+ the commands you need, for example `ListJobsCommand`:
38
38
 
39
39
  ```js
40
40
  // ES5 example
41
- const { BatchClient, CancelJobCommand } = require("@aws-sdk/client-batch");
41
+ const { BatchClient, ListJobsCommand } = require("@aws-sdk/client-batch");
42
42
  ```
43
43
 
44
44
  ```ts
45
45
  // ES6+ example
46
- import { BatchClient, CancelJobCommand } from "@aws-sdk/client-batch";
46
+ import { BatchClient, ListJobsCommand } from "@aws-sdk/client-batch";
47
47
  ```
48
48
 
49
49
  ### Usage
@@ -62,7 +62,7 @@ const client = new BatchClient({ region: "REGION" });
62
62
  const params = {
63
63
  /** input parameters */
64
64
  };
65
- const command = new CancelJobCommand(params);
65
+ const command = new ListJobsCommand(params);
66
66
  ```
67
67
 
68
68
  #### Async/await
@@ -141,7 +141,7 @@ const client = new AWS.Batch({ region: "REGION" });
141
141
 
142
142
  // async/await.
143
143
  try {
144
- const data = await client.cancelJob(params);
144
+ const data = await client.listJobs(params);
145
145
  // process data.
146
146
  } catch (error) {
147
147
  // error handling.
@@ -149,7 +149,7 @@ try {
149
149
 
150
150
  // Promises.
151
151
  client
152
- .cancelJob(params)
152
+ .listJobs(params)
153
153
  .then((data) => {
154
154
  // process data.
155
155
  })
@@ -158,7 +158,7 @@ client
158
158
  });
159
159
 
160
160
  // callbacks.
161
- client.cancelJob(params, (err, data) => {
161
+ client.listJobs(params, (err, data) => {
162
162
  // process err and data.
163
163
  });
164
164
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-batch",
3
3
  "description": "AWS SDK for JavaScript Batch 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",