@aws-sdk/client-gamelift 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
|
@@ -80,16 +80,16 @@ using your favorite package manager:
|
|
|
80
80
|
|
|
81
81
|
The AWS SDK is modulized by clients and commands.
|
|
82
82
|
To send a request, you only need to import the `GameLiftClient` and
|
|
83
|
-
the commands you need, for example `
|
|
83
|
+
the commands you need, for example `ListAliasesCommand`:
|
|
84
84
|
|
|
85
85
|
```js
|
|
86
86
|
// ES5 example
|
|
87
|
-
const { GameLiftClient,
|
|
87
|
+
const { GameLiftClient, ListAliasesCommand } = require("@aws-sdk/client-gamelift");
|
|
88
88
|
```
|
|
89
89
|
|
|
90
90
|
```ts
|
|
91
91
|
// ES6+ example
|
|
92
|
-
import { GameLiftClient,
|
|
92
|
+
import { GameLiftClient, ListAliasesCommand } from "@aws-sdk/client-gamelift";
|
|
93
93
|
```
|
|
94
94
|
|
|
95
95
|
### Usage
|
|
@@ -108,7 +108,7 @@ const client = new GameLiftClient({ region: "REGION" });
|
|
|
108
108
|
const params = {
|
|
109
109
|
/** input parameters */
|
|
110
110
|
};
|
|
111
|
-
const command = new
|
|
111
|
+
const command = new ListAliasesCommand(params);
|
|
112
112
|
```
|
|
113
113
|
|
|
114
114
|
#### Async/await
|
|
@@ -187,7 +187,7 @@ const client = new AWS.GameLift({ region: "REGION" });
|
|
|
187
187
|
|
|
188
188
|
// async/await.
|
|
189
189
|
try {
|
|
190
|
-
const data = await client.
|
|
190
|
+
const data = await client.listAliases(params);
|
|
191
191
|
// process data.
|
|
192
192
|
} catch (error) {
|
|
193
193
|
// error handling.
|
|
@@ -195,7 +195,7 @@ try {
|
|
|
195
195
|
|
|
196
196
|
// Promises.
|
|
197
197
|
client
|
|
198
|
-
.
|
|
198
|
+
.listAliases(params)
|
|
199
199
|
.then((data) => {
|
|
200
200
|
// process data.
|
|
201
201
|
})
|
|
@@ -204,7 +204,7 @@ client
|
|
|
204
204
|
});
|
|
205
205
|
|
|
206
206
|
// callbacks.
|
|
207
|
-
client.
|
|
207
|
+
client.listAliases(params, (err, data) => {
|
|
208
208
|
// process err and data.
|
|
209
209
|
});
|
|
210
210
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-gamelift",
|
|
3
3
|
"description": "AWS SDK for JavaScript Gamelift 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",
|