@aws-sdk/client-emr-containers 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.
- package/README.md +7 -7
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -46,16 +46,16 @@ using your favorite package manager:
|
|
|
46
46
|
|
|
47
47
|
The AWS SDK is modulized by clients and commands.
|
|
48
48
|
To send a request, you only need to import the `EMRContainersClient` and
|
|
49
|
-
the commands you need, for example `
|
|
49
|
+
the commands you need, for example `ListJobRunsCommand`:
|
|
50
50
|
|
|
51
51
|
```js
|
|
52
52
|
// ES5 example
|
|
53
|
-
const { EMRContainersClient,
|
|
53
|
+
const { EMRContainersClient, ListJobRunsCommand } = require("@aws-sdk/client-emr-containers");
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
```ts
|
|
57
57
|
// ES6+ example
|
|
58
|
-
import { EMRContainersClient,
|
|
58
|
+
import { EMRContainersClient, ListJobRunsCommand } from "@aws-sdk/client-emr-containers";
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
### Usage
|
|
@@ -74,7 +74,7 @@ const client = new EMRContainersClient({ region: "REGION" });
|
|
|
74
74
|
const params = {
|
|
75
75
|
/** input parameters */
|
|
76
76
|
};
|
|
77
|
-
const command = new
|
|
77
|
+
const command = new ListJobRunsCommand(params);
|
|
78
78
|
```
|
|
79
79
|
|
|
80
80
|
#### Async/await
|
|
@@ -153,7 +153,7 @@ const client = new AWS.EMRContainers({ region: "REGION" });
|
|
|
153
153
|
|
|
154
154
|
// async/await.
|
|
155
155
|
try {
|
|
156
|
-
const data = await client.
|
|
156
|
+
const data = await client.listJobRuns(params);
|
|
157
157
|
// process data.
|
|
158
158
|
} catch (error) {
|
|
159
159
|
// error handling.
|
|
@@ -161,7 +161,7 @@ try {
|
|
|
161
161
|
|
|
162
162
|
// Promises.
|
|
163
163
|
client
|
|
164
|
-
.
|
|
164
|
+
.listJobRuns(params)
|
|
165
165
|
.then((data) => {
|
|
166
166
|
// process data.
|
|
167
167
|
})
|
|
@@ -170,7 +170,7 @@ client
|
|
|
170
170
|
});
|
|
171
171
|
|
|
172
172
|
// callbacks.
|
|
173
|
-
client.
|
|
173
|
+
client.listJobRuns(params, (err, data) => {
|
|
174
174
|
// process err and data.
|
|
175
175
|
});
|
|
176
176
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-emr-containers",
|
|
3
3
|
"description": "AWS SDK for JavaScript Emr Containers Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
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.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
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",
|