@aws-sdk/client-appstream 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
|
@@ -41,16 +41,16 @@ using your favorite package manager:
|
|
|
41
41
|
|
|
42
42
|
The AWS SDK is modulized by clients and commands.
|
|
43
43
|
To send a request, you only need to import the `AppStreamClient` and
|
|
44
|
-
the commands you need, for example `
|
|
44
|
+
the commands you need, for example `ListAssociatedFleetsCommand`:
|
|
45
45
|
|
|
46
46
|
```js
|
|
47
47
|
// ES5 example
|
|
48
|
-
const { AppStreamClient,
|
|
48
|
+
const { AppStreamClient, ListAssociatedFleetsCommand } = require("@aws-sdk/client-appstream");
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
```ts
|
|
52
52
|
// ES6+ example
|
|
53
|
-
import { AppStreamClient,
|
|
53
|
+
import { AppStreamClient, ListAssociatedFleetsCommand } from "@aws-sdk/client-appstream";
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
### Usage
|
|
@@ -69,7 +69,7 @@ const client = new AppStreamClient({ region: "REGION" });
|
|
|
69
69
|
const params = {
|
|
70
70
|
/** input parameters */
|
|
71
71
|
};
|
|
72
|
-
const command = new
|
|
72
|
+
const command = new ListAssociatedFleetsCommand(params);
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
#### Async/await
|
|
@@ -148,7 +148,7 @@ const client = new AWS.AppStream({ region: "REGION" });
|
|
|
148
148
|
|
|
149
149
|
// async/await.
|
|
150
150
|
try {
|
|
151
|
-
const data = await client.
|
|
151
|
+
const data = await client.listAssociatedFleets(params);
|
|
152
152
|
// process data.
|
|
153
153
|
} catch (error) {
|
|
154
154
|
// error handling.
|
|
@@ -156,7 +156,7 @@ try {
|
|
|
156
156
|
|
|
157
157
|
// Promises.
|
|
158
158
|
client
|
|
159
|
-
.
|
|
159
|
+
.listAssociatedFleets(params)
|
|
160
160
|
.then((data) => {
|
|
161
161
|
// process data.
|
|
162
162
|
})
|
|
@@ -165,7 +165,7 @@ client
|
|
|
165
165
|
});
|
|
166
166
|
|
|
167
167
|
// callbacks.
|
|
168
|
-
client.
|
|
168
|
+
client.listAssociatedFleets(params, (err, data) => {
|
|
169
169
|
// process err and data.
|
|
170
170
|
});
|
|
171
171
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-appstream",
|
|
3
3
|
"description": "AWS SDK for JavaScript Appstream 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",
|