@aws-sdk/client-serverlessapplicationrepository 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
|
@@ -42,13 +42,13 @@ using your favorite package manager:
|
|
|
42
42
|
|
|
43
43
|
The AWS SDK is modulized by clients and commands.
|
|
44
44
|
To send a request, you only need to import the `ServerlessApplicationRepositoryClient` and
|
|
45
|
-
the commands you need, for example `
|
|
45
|
+
the commands you need, for example `ListApplicationsCommand`:
|
|
46
46
|
|
|
47
47
|
```js
|
|
48
48
|
// ES5 example
|
|
49
49
|
const {
|
|
50
50
|
ServerlessApplicationRepositoryClient,
|
|
51
|
-
|
|
51
|
+
ListApplicationsCommand,
|
|
52
52
|
} = require("@aws-sdk/client-serverlessapplicationrepository");
|
|
53
53
|
```
|
|
54
54
|
|
|
@@ -56,7 +56,7 @@ const {
|
|
|
56
56
|
// ES6+ example
|
|
57
57
|
import {
|
|
58
58
|
ServerlessApplicationRepositoryClient,
|
|
59
|
-
|
|
59
|
+
ListApplicationsCommand,
|
|
60
60
|
} from "@aws-sdk/client-serverlessapplicationrepository";
|
|
61
61
|
```
|
|
62
62
|
|
|
@@ -76,7 +76,7 @@ const client = new ServerlessApplicationRepositoryClient({ region: "REGION" });
|
|
|
76
76
|
const params = {
|
|
77
77
|
/** input parameters */
|
|
78
78
|
};
|
|
79
|
-
const command = new
|
|
79
|
+
const command = new ListApplicationsCommand(params);
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
#### Async/await
|
|
@@ -155,7 +155,7 @@ const client = new AWS.ServerlessApplicationRepository({ region: "REGION" });
|
|
|
155
155
|
|
|
156
156
|
// async/await.
|
|
157
157
|
try {
|
|
158
|
-
const data = await client.
|
|
158
|
+
const data = await client.listApplications(params);
|
|
159
159
|
// process data.
|
|
160
160
|
} catch (error) {
|
|
161
161
|
// error handling.
|
|
@@ -163,7 +163,7 @@ try {
|
|
|
163
163
|
|
|
164
164
|
// Promises.
|
|
165
165
|
client
|
|
166
|
-
.
|
|
166
|
+
.listApplications(params)
|
|
167
167
|
.then((data) => {
|
|
168
168
|
// process data.
|
|
169
169
|
})
|
|
@@ -172,7 +172,7 @@ client
|
|
|
172
172
|
});
|
|
173
173
|
|
|
174
174
|
// callbacks.
|
|
175
|
-
client.
|
|
175
|
+
client.listApplications(params, (err, data) => {
|
|
176
176
|
// process err and data.
|
|
177
177
|
});
|
|
178
178
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-serverlessapplicationrepository",
|
|
3
3
|
"description": "AWS SDK for JavaScript Serverlessapplicationrepository 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",
|