@aws-sdk/client-global-accelerator 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
|
@@ -71,16 +71,16 @@ using your favorite package manager:
|
|
|
71
71
|
|
|
72
72
|
The AWS SDK is modulized by clients and commands.
|
|
73
73
|
To send a request, you only need to import the `GlobalAcceleratorClient` and
|
|
74
|
-
the commands you need, for example `
|
|
74
|
+
the commands you need, for example `ListAcceleratorsCommand`:
|
|
75
75
|
|
|
76
76
|
```js
|
|
77
77
|
// ES5 example
|
|
78
|
-
const { GlobalAcceleratorClient,
|
|
78
|
+
const { GlobalAcceleratorClient, ListAcceleratorsCommand } = require("@aws-sdk/client-global-accelerator");
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
```ts
|
|
82
82
|
// ES6+ example
|
|
83
|
-
import { GlobalAcceleratorClient,
|
|
83
|
+
import { GlobalAcceleratorClient, ListAcceleratorsCommand } from "@aws-sdk/client-global-accelerator";
|
|
84
84
|
```
|
|
85
85
|
|
|
86
86
|
### Usage
|
|
@@ -99,7 +99,7 @@ const client = new GlobalAcceleratorClient({ region: "REGION" });
|
|
|
99
99
|
const params = {
|
|
100
100
|
/** input parameters */
|
|
101
101
|
};
|
|
102
|
-
const command = new
|
|
102
|
+
const command = new ListAcceleratorsCommand(params);
|
|
103
103
|
```
|
|
104
104
|
|
|
105
105
|
#### Async/await
|
|
@@ -178,7 +178,7 @@ const client = new AWS.GlobalAccelerator({ region: "REGION" });
|
|
|
178
178
|
|
|
179
179
|
// async/await.
|
|
180
180
|
try {
|
|
181
|
-
const data = await client.
|
|
181
|
+
const data = await client.listAccelerators(params);
|
|
182
182
|
// process data.
|
|
183
183
|
} catch (error) {
|
|
184
184
|
// error handling.
|
|
@@ -186,7 +186,7 @@ try {
|
|
|
186
186
|
|
|
187
187
|
// Promises.
|
|
188
188
|
client
|
|
189
|
-
.
|
|
189
|
+
.listAccelerators(params)
|
|
190
190
|
.then((data) => {
|
|
191
191
|
// process data.
|
|
192
192
|
})
|
|
@@ -195,7 +195,7 @@ client
|
|
|
195
195
|
});
|
|
196
196
|
|
|
197
197
|
// callbacks.
|
|
198
|
-
client.
|
|
198
|
+
client.listAccelerators(params, (err, data) => {
|
|
199
199
|
// process err and data.
|
|
200
200
|
});
|
|
201
201
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-global-accelerator",
|
|
3
3
|
"description": "AWS SDK for JavaScript Global Accelerator 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",
|