@aws-sdk/client-api-gateway 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 +3 -3
package/README.md
CHANGED
|
@@ -25,16 +25,16 @@ using your favorite package manager:
|
|
|
25
25
|
|
|
26
26
|
The AWS SDK is modulized by clients and commands.
|
|
27
27
|
To send a request, you only need to import the `APIGatewayClient` and
|
|
28
|
-
the commands you need, for example `
|
|
28
|
+
the commands you need, for example `GetAccountCommand`:
|
|
29
29
|
|
|
30
30
|
```js
|
|
31
31
|
// ES5 example
|
|
32
|
-
const { APIGatewayClient,
|
|
32
|
+
const { APIGatewayClient, GetAccountCommand } = require("@aws-sdk/client-api-gateway");
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
```ts
|
|
36
36
|
// ES6+ example
|
|
37
|
-
import { APIGatewayClient,
|
|
37
|
+
import { APIGatewayClient, GetAccountCommand } from "@aws-sdk/client-api-gateway";
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
### Usage
|
|
@@ -53,7 +53,7 @@ const client = new APIGatewayClient({ region: "REGION" });
|
|
|
53
53
|
const params = {
|
|
54
54
|
/** input parameters */
|
|
55
55
|
};
|
|
56
|
-
const command = new
|
|
56
|
+
const command = new GetAccountCommand(params);
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
#### Async/await
|
|
@@ -132,7 +132,7 @@ const client = new AWS.APIGateway({ region: "REGION" });
|
|
|
132
132
|
|
|
133
133
|
// async/await.
|
|
134
134
|
try {
|
|
135
|
-
const data = await client.
|
|
135
|
+
const data = await client.getAccount(params);
|
|
136
136
|
// process data.
|
|
137
137
|
} catch (error) {
|
|
138
138
|
// error handling.
|
|
@@ -140,7 +140,7 @@ try {
|
|
|
140
140
|
|
|
141
141
|
// Promises.
|
|
142
142
|
client
|
|
143
|
-
.
|
|
143
|
+
.getAccount(params)
|
|
144
144
|
.then((data) => {
|
|
145
145
|
// process data.
|
|
146
146
|
})
|
|
@@ -149,7 +149,7 @@ client
|
|
|
149
149
|
});
|
|
150
150
|
|
|
151
151
|
// callbacks.
|
|
152
|
-
client.
|
|
152
|
+
client.getAccount(params, (err, data) => {
|
|
153
153
|
// process err and data.
|
|
154
154
|
});
|
|
155
155
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-api-gateway",
|
|
3
3
|
"description": "AWS SDK for JavaScript Api Gateway 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",
|
|
@@ -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.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",
|