@aws-sdk/client-sts 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.
- package/README.md +7 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -27,16 +27,16 @@ using your favorite package manager:
|
|
|
27
27
|
|
|
28
28
|
The AWS SDK is modulized by clients and commands.
|
|
29
29
|
To send a request, you only need to import the `STSClient` and
|
|
30
|
-
the commands you need, for example `
|
|
30
|
+
the commands you need, for example `GetCallerIdentityCommand`:
|
|
31
31
|
|
|
32
32
|
```js
|
|
33
33
|
// ES5 example
|
|
34
|
-
const { STSClient,
|
|
34
|
+
const { STSClient, GetCallerIdentityCommand } = require("@aws-sdk/client-sts");
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
```ts
|
|
38
38
|
// ES6+ example
|
|
39
|
-
import { STSClient,
|
|
39
|
+
import { STSClient, GetCallerIdentityCommand } from "@aws-sdk/client-sts";
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
### Usage
|
|
@@ -55,7 +55,7 @@ const client = new STSClient({ region: "REGION" });
|
|
|
55
55
|
const params = {
|
|
56
56
|
/** input parameters */
|
|
57
57
|
};
|
|
58
|
-
const command = new
|
|
58
|
+
const command = new GetCallerIdentityCommand(params);
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
#### Async/await
|
|
@@ -134,7 +134,7 @@ const client = new AWS.STS({ region: "REGION" });
|
|
|
134
134
|
|
|
135
135
|
// async/await.
|
|
136
136
|
try {
|
|
137
|
-
const data = await client.
|
|
137
|
+
const data = await client.getCallerIdentity(params);
|
|
138
138
|
// process data.
|
|
139
139
|
} catch (error) {
|
|
140
140
|
// error handling.
|
|
@@ -142,7 +142,7 @@ try {
|
|
|
142
142
|
|
|
143
143
|
// Promises.
|
|
144
144
|
client
|
|
145
|
-
.
|
|
145
|
+
.getCallerIdentity(params)
|
|
146
146
|
.then((data) => {
|
|
147
147
|
// process data.
|
|
148
148
|
})
|
|
@@ -151,7 +151,7 @@ client
|
|
|
151
151
|
});
|
|
152
152
|
|
|
153
153
|
// callbacks.
|
|
154
|
-
client.
|
|
154
|
+
client.getCallerIdentity(params, (err, data) => {
|
|
155
155
|
// process err and data.
|
|
156
156
|
});
|
|
157
157
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sts",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
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",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.423.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.418.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.418.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.418.0",
|