@aws-sdk/client-appstream 3.42.0 → 3.47.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.
Files changed (103) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/README.md +7 -7
  3. package/dist-cjs/AppStream.js +255 -0
  4. package/dist-cjs/commands/AssociateApplicationFleetCommand.js +36 -0
  5. package/dist-cjs/commands/AssociateApplicationToEntitlementCommand.js +36 -0
  6. package/dist-cjs/commands/CreateAppBlockCommand.js +36 -0
  7. package/dist-cjs/commands/CreateApplicationCommand.js +36 -0
  8. package/dist-cjs/commands/CreateEntitlementCommand.js +36 -0
  9. package/dist-cjs/commands/DeleteAppBlockCommand.js +36 -0
  10. package/dist-cjs/commands/DeleteApplicationCommand.js +36 -0
  11. package/dist-cjs/commands/DeleteEntitlementCommand.js +36 -0
  12. package/dist-cjs/commands/DescribeAppBlocksCommand.js +36 -0
  13. package/dist-cjs/commands/DescribeApplicationFleetAssociationsCommand.js +36 -0
  14. package/dist-cjs/commands/DescribeApplicationsCommand.js +36 -0
  15. package/dist-cjs/commands/DescribeEntitlementsCommand.js +36 -0
  16. package/dist-cjs/commands/DisassociateApplicationFleetCommand.js +36 -0
  17. package/dist-cjs/commands/DisassociateApplicationFromEntitlementCommand.js +36 -0
  18. package/dist-cjs/commands/ListEntitledApplicationsCommand.js +36 -0
  19. package/dist-cjs/commands/UpdateApplicationCommand.js +36 -0
  20. package/dist-cjs/commands/UpdateEntitlementCommand.js +36 -0
  21. package/dist-cjs/commands/index.js +17 -0
  22. package/dist-cjs/endpoints.js +1 -12
  23. package/dist-cjs/models/models_0.js +254 -68
  24. package/dist-cjs/protocols/Aws_json1_1.js +1964 -115
  25. package/dist-cjs/runtimeConfig.browser.js +7 -2
  26. package/dist-cjs/runtimeConfig.js +9 -3
  27. package/dist-es/AppStream.js +255 -0
  28. package/dist-es/commands/AssociateApplicationFleetCommand.js +39 -0
  29. package/dist-es/commands/AssociateApplicationToEntitlementCommand.js +39 -0
  30. package/dist-es/commands/CreateAppBlockCommand.js +39 -0
  31. package/dist-es/commands/CreateApplicationCommand.js +39 -0
  32. package/dist-es/commands/CreateEntitlementCommand.js +39 -0
  33. package/dist-es/commands/DeleteAppBlockCommand.js +39 -0
  34. package/dist-es/commands/DeleteApplicationCommand.js +39 -0
  35. package/dist-es/commands/DeleteEntitlementCommand.js +39 -0
  36. package/dist-es/commands/DescribeAppBlocksCommand.js +39 -0
  37. package/dist-es/commands/DescribeApplicationFleetAssociationsCommand.js +39 -0
  38. package/dist-es/commands/DescribeApplicationsCommand.js +39 -0
  39. package/dist-es/commands/DescribeEntitlementsCommand.js +39 -0
  40. package/dist-es/commands/DisassociateApplicationFleetCommand.js +39 -0
  41. package/dist-es/commands/DisassociateApplicationFromEntitlementCommand.js +39 -0
  42. package/dist-es/commands/ListEntitledApplicationsCommand.js +39 -0
  43. package/dist-es/commands/UpdateApplicationCommand.js +39 -0
  44. package/dist-es/commands/UpdateEntitlementCommand.js +39 -0
  45. package/dist-es/commands/index.js +17 -0
  46. package/dist-es/endpoints.js +1 -12
  47. package/dist-es/models/models_0.js +176 -48
  48. package/dist-es/protocols/Aws_json1_1.js +2134 -222
  49. package/dist-es/runtimeConfig.browser.js +12 -3
  50. package/dist-es/runtimeConfig.js +13 -6
  51. package/dist-types/AppStream.d.ts +158 -4
  52. package/dist-types/AppStreamClient.d.ts +24 -3
  53. package/dist-types/commands/AssociateApplicationFleetCommand.d.ts +35 -0
  54. package/dist-types/commands/AssociateApplicationToEntitlementCommand.d.ts +35 -0
  55. package/dist-types/commands/CreateAppBlockCommand.d.ts +41 -0
  56. package/dist-types/commands/CreateApplicationCommand.d.ts +41 -0
  57. package/dist-types/commands/CreateEntitlementCommand.d.ts +40 -0
  58. package/dist-types/commands/CreateFleetCommand.d.ts +1 -1
  59. package/dist-types/commands/DeleteAppBlockCommand.d.ts +35 -0
  60. package/dist-types/commands/DeleteApplicationCommand.d.ts +35 -0
  61. package/dist-types/commands/DeleteEntitlementCommand.d.ts +35 -0
  62. package/dist-types/commands/DescribeAppBlocksCommand.d.ts +35 -0
  63. package/dist-types/commands/DescribeApplicationFleetAssociationsCommand.d.ts +35 -0
  64. package/dist-types/commands/DescribeApplicationsCommand.d.ts +35 -0
  65. package/dist-types/commands/DescribeEntitlementsCommand.d.ts +35 -0
  66. package/dist-types/commands/DisassociateApplicationFleetCommand.d.ts +35 -0
  67. package/dist-types/commands/DisassociateApplicationFromEntitlementCommand.d.ts +35 -0
  68. package/dist-types/commands/ListEntitledApplicationsCommand.d.ts +35 -0
  69. package/dist-types/commands/UpdateApplicationCommand.d.ts +35 -0
  70. package/dist-types/commands/UpdateEntitlementCommand.d.ts +35 -0
  71. package/dist-types/commands/UpdateFleetCommand.d.ts +21 -3
  72. package/dist-types/commands/index.d.ts +17 -0
  73. package/dist-types/models/models_0.d.ts +982 -95
  74. package/dist-types/protocols/Aws_json1_1.d.ts +51 -0
  75. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  76. package/dist-types/runtimeConfig.d.ts +4 -3
  77. package/dist-types/runtimeConfig.native.d.ts +1 -0
  78. package/dist-types/ts3.4/AppStream.d.ts +85 -0
  79. package/dist-types/ts3.4/AppStreamClient.d.ts +22 -3
  80. package/dist-types/ts3.4/commands/AssociateApplicationFleetCommand.d.ts +17 -0
  81. package/dist-types/ts3.4/commands/AssociateApplicationToEntitlementCommand.d.ts +17 -0
  82. package/dist-types/ts3.4/commands/CreateAppBlockCommand.d.ts +17 -0
  83. package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +17 -0
  84. package/dist-types/ts3.4/commands/CreateEntitlementCommand.d.ts +17 -0
  85. package/dist-types/ts3.4/commands/DeleteAppBlockCommand.d.ts +17 -0
  86. package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +17 -0
  87. package/dist-types/ts3.4/commands/DeleteEntitlementCommand.d.ts +17 -0
  88. package/dist-types/ts3.4/commands/DescribeAppBlocksCommand.d.ts +17 -0
  89. package/dist-types/ts3.4/commands/DescribeApplicationFleetAssociationsCommand.d.ts +17 -0
  90. package/dist-types/ts3.4/commands/DescribeApplicationsCommand.d.ts +17 -0
  91. package/dist-types/ts3.4/commands/DescribeEntitlementsCommand.d.ts +17 -0
  92. package/dist-types/ts3.4/commands/DisassociateApplicationFleetCommand.d.ts +17 -0
  93. package/dist-types/ts3.4/commands/DisassociateApplicationFromEntitlementCommand.d.ts +17 -0
  94. package/dist-types/ts3.4/commands/ListEntitledApplicationsCommand.d.ts +17 -0
  95. package/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +17 -0
  96. package/dist-types/ts3.4/commands/UpdateEntitlementCommand.d.ts +17 -0
  97. package/dist-types/ts3.4/commands/index.d.ts +17 -0
  98. package/dist-types/ts3.4/models/models_0.d.ts +549 -64
  99. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +51 -0
  100. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  101. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  102. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  103. package/package.json +39 -46
package/CHANGELOG.md CHANGED
@@ -3,6 +3,57 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
28
+ * **clients:** update clients as of 2021/01/07 ([#3163](https://github.com/aws/aws-sdk-js-v3/issues/3163)) ([6648b07](https://github.com/aws/aws-sdk-js-v3/commit/6648b07ea97691d2fed55eab49831646543b648b))
29
+ * end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
30
+
31
+
32
+
33
+
34
+
35
+ # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
36
+
37
+
38
+ ### Features
39
+
40
+ * **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
41
+
42
+
43
+
44
+
45
+
46
+ # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
47
+
48
+
49
+ ### Features
50
+
51
+ * **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
52
+
53
+
54
+
55
+
56
+
6
57
  # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
7
58
 
8
59
 
package/README.md CHANGED
@@ -45,16 +45,16 @@ using your favorite package manager:
45
45
 
46
46
  The AWS SDK is modulized by clients and commands.
47
47
  To send a request, you only need to import the `AppStreamClient` and
48
- the commands you need, for example `AssociateFleetCommand`:
48
+ the commands you need, for example `AssociateApplicationFleetCommand`:
49
49
 
50
50
  ```js
51
51
  // ES5 example
52
- const { AppStreamClient, AssociateFleetCommand } = require("@aws-sdk/client-appstream");
52
+ const { AppStreamClient, AssociateApplicationFleetCommand } = require("@aws-sdk/client-appstream");
53
53
  ```
54
54
 
55
55
  ```ts
56
56
  // ES6+ example
57
- import { AppStreamClient, AssociateFleetCommand } from "@aws-sdk/client-appstream";
57
+ import { AppStreamClient, AssociateApplicationFleetCommand } from "@aws-sdk/client-appstream";
58
58
  ```
59
59
 
60
60
  ### Usage
@@ -73,7 +73,7 @@ const client = new AppStreamClient({ region: "REGION" });
73
73
  const params = {
74
74
  /** input parameters */
75
75
  };
76
- const command = new AssociateFleetCommand(params);
76
+ const command = new AssociateApplicationFleetCommand(params);
77
77
  ```
78
78
 
79
79
  #### Async/await
@@ -152,7 +152,7 @@ const client = new AWS.AppStream({ region: "REGION" });
152
152
 
153
153
  // async/await.
154
154
  try {
155
- const data = await client.associateFleet(params);
155
+ const data = await client.associateApplicationFleet(params);
156
156
  // process data.
157
157
  } catch (error) {
158
158
  // error handling.
@@ -160,7 +160,7 @@ try {
160
160
 
161
161
  // Promises.
162
162
  client
163
- .associateFleet(params)
163
+ .associateApplicationFleet(params)
164
164
  .then((data) => {
165
165
  // process data.
166
166
  })
@@ -169,7 +169,7 @@ client
169
169
  });
170
170
 
171
171
  // callbacks.
172
- client.associateFleet(params, (err, data) => {
172
+ client.associateApplicationFleet(params, (err, data) => {
173
173
  // proccess err and data.
174
174
  });
175
175
  ```
@@ -2,11 +2,16 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AppStream = void 0;
4
4
  const AppStreamClient_1 = require("./AppStreamClient");
5
+ const AssociateApplicationFleetCommand_1 = require("./commands/AssociateApplicationFleetCommand");
6
+ const AssociateApplicationToEntitlementCommand_1 = require("./commands/AssociateApplicationToEntitlementCommand");
5
7
  const AssociateFleetCommand_1 = require("./commands/AssociateFleetCommand");
6
8
  const BatchAssociateUserStackCommand_1 = require("./commands/BatchAssociateUserStackCommand");
7
9
  const BatchDisassociateUserStackCommand_1 = require("./commands/BatchDisassociateUserStackCommand");
8
10
  const CopyImageCommand_1 = require("./commands/CopyImageCommand");
11
+ const CreateAppBlockCommand_1 = require("./commands/CreateAppBlockCommand");
12
+ const CreateApplicationCommand_1 = require("./commands/CreateApplicationCommand");
9
13
  const CreateDirectoryConfigCommand_1 = require("./commands/CreateDirectoryConfigCommand");
14
+ const CreateEntitlementCommand_1 = require("./commands/CreateEntitlementCommand");
10
15
  const CreateFleetCommand_1 = require("./commands/CreateFleetCommand");
11
16
  const CreateImageBuilderCommand_1 = require("./commands/CreateImageBuilderCommand");
12
17
  const CreateImageBuilderStreamingURLCommand_1 = require("./commands/CreateImageBuilderStreamingURLCommand");
@@ -15,7 +20,10 @@ const CreateStreamingURLCommand_1 = require("./commands/CreateStreamingURLComman
15
20
  const CreateUpdatedImageCommand_1 = require("./commands/CreateUpdatedImageCommand");
16
21
  const CreateUsageReportSubscriptionCommand_1 = require("./commands/CreateUsageReportSubscriptionCommand");
17
22
  const CreateUserCommand_1 = require("./commands/CreateUserCommand");
23
+ const DeleteAppBlockCommand_1 = require("./commands/DeleteAppBlockCommand");
24
+ const DeleteApplicationCommand_1 = require("./commands/DeleteApplicationCommand");
18
25
  const DeleteDirectoryConfigCommand_1 = require("./commands/DeleteDirectoryConfigCommand");
26
+ const DeleteEntitlementCommand_1 = require("./commands/DeleteEntitlementCommand");
19
27
  const DeleteFleetCommand_1 = require("./commands/DeleteFleetCommand");
20
28
  const DeleteImageBuilderCommand_1 = require("./commands/DeleteImageBuilderCommand");
21
29
  const DeleteImageCommand_1 = require("./commands/DeleteImageCommand");
@@ -23,7 +31,11 @@ const DeleteImagePermissionsCommand_1 = require("./commands/DeleteImagePermissio
23
31
  const DeleteStackCommand_1 = require("./commands/DeleteStackCommand");
24
32
  const DeleteUsageReportSubscriptionCommand_1 = require("./commands/DeleteUsageReportSubscriptionCommand");
25
33
  const DeleteUserCommand_1 = require("./commands/DeleteUserCommand");
34
+ const DescribeAppBlocksCommand_1 = require("./commands/DescribeAppBlocksCommand");
35
+ const DescribeApplicationFleetAssociationsCommand_1 = require("./commands/DescribeApplicationFleetAssociationsCommand");
36
+ const DescribeApplicationsCommand_1 = require("./commands/DescribeApplicationsCommand");
26
37
  const DescribeDirectoryConfigsCommand_1 = require("./commands/DescribeDirectoryConfigsCommand");
38
+ const DescribeEntitlementsCommand_1 = require("./commands/DescribeEntitlementsCommand");
27
39
  const DescribeFleetsCommand_1 = require("./commands/DescribeFleetsCommand");
28
40
  const DescribeImageBuildersCommand_1 = require("./commands/DescribeImageBuildersCommand");
29
41
  const DescribeImagePermissionsCommand_1 = require("./commands/DescribeImagePermissionsCommand");
@@ -34,11 +46,14 @@ const DescribeUsageReportSubscriptionsCommand_1 = require("./commands/DescribeUs
34
46
  const DescribeUsersCommand_1 = require("./commands/DescribeUsersCommand");
35
47
  const DescribeUserStackAssociationsCommand_1 = require("./commands/DescribeUserStackAssociationsCommand");
36
48
  const DisableUserCommand_1 = require("./commands/DisableUserCommand");
49
+ const DisassociateApplicationFleetCommand_1 = require("./commands/DisassociateApplicationFleetCommand");
50
+ const DisassociateApplicationFromEntitlementCommand_1 = require("./commands/DisassociateApplicationFromEntitlementCommand");
37
51
  const DisassociateFleetCommand_1 = require("./commands/DisassociateFleetCommand");
38
52
  const EnableUserCommand_1 = require("./commands/EnableUserCommand");
39
53
  const ExpireSessionCommand_1 = require("./commands/ExpireSessionCommand");
40
54
  const ListAssociatedFleetsCommand_1 = require("./commands/ListAssociatedFleetsCommand");
41
55
  const ListAssociatedStacksCommand_1 = require("./commands/ListAssociatedStacksCommand");
56
+ const ListEntitledApplicationsCommand_1 = require("./commands/ListEntitledApplicationsCommand");
42
57
  const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
43
58
  const StartFleetCommand_1 = require("./commands/StartFleetCommand");
44
59
  const StartImageBuilderCommand_1 = require("./commands/StartImageBuilderCommand");
@@ -46,11 +61,41 @@ const StopFleetCommand_1 = require("./commands/StopFleetCommand");
46
61
  const StopImageBuilderCommand_1 = require("./commands/StopImageBuilderCommand");
47
62
  const TagResourceCommand_1 = require("./commands/TagResourceCommand");
48
63
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
64
+ const UpdateApplicationCommand_1 = require("./commands/UpdateApplicationCommand");
49
65
  const UpdateDirectoryConfigCommand_1 = require("./commands/UpdateDirectoryConfigCommand");
66
+ const UpdateEntitlementCommand_1 = require("./commands/UpdateEntitlementCommand");
50
67
  const UpdateFleetCommand_1 = require("./commands/UpdateFleetCommand");
51
68
  const UpdateImagePermissionsCommand_1 = require("./commands/UpdateImagePermissionsCommand");
52
69
  const UpdateStackCommand_1 = require("./commands/UpdateStackCommand");
53
70
  class AppStream extends AppStreamClient_1.AppStreamClient {
71
+ associateApplicationFleet(args, optionsOrCb, cb) {
72
+ const command = new AssociateApplicationFleetCommand_1.AssociateApplicationFleetCommand(args);
73
+ if (typeof optionsOrCb === "function") {
74
+ this.send(command, optionsOrCb);
75
+ }
76
+ else if (typeof cb === "function") {
77
+ if (typeof optionsOrCb !== "object")
78
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
79
+ this.send(command, optionsOrCb || {}, cb);
80
+ }
81
+ else {
82
+ return this.send(command, optionsOrCb);
83
+ }
84
+ }
85
+ associateApplicationToEntitlement(args, optionsOrCb, cb) {
86
+ const command = new AssociateApplicationToEntitlementCommand_1.AssociateApplicationToEntitlementCommand(args);
87
+ if (typeof optionsOrCb === "function") {
88
+ this.send(command, optionsOrCb);
89
+ }
90
+ else if (typeof cb === "function") {
91
+ if (typeof optionsOrCb !== "object")
92
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
93
+ this.send(command, optionsOrCb || {}, cb);
94
+ }
95
+ else {
96
+ return this.send(command, optionsOrCb);
97
+ }
98
+ }
54
99
  associateFleet(args, optionsOrCb, cb) {
55
100
  const command = new AssociateFleetCommand_1.AssociateFleetCommand(args);
56
101
  if (typeof optionsOrCb === "function") {
@@ -107,6 +152,34 @@ class AppStream extends AppStreamClient_1.AppStreamClient {
107
152
  return this.send(command, optionsOrCb);
108
153
  }
109
154
  }
155
+ createAppBlock(args, optionsOrCb, cb) {
156
+ const command = new CreateAppBlockCommand_1.CreateAppBlockCommand(args);
157
+ if (typeof optionsOrCb === "function") {
158
+ this.send(command, optionsOrCb);
159
+ }
160
+ else if (typeof cb === "function") {
161
+ if (typeof optionsOrCb !== "object")
162
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
163
+ this.send(command, optionsOrCb || {}, cb);
164
+ }
165
+ else {
166
+ return this.send(command, optionsOrCb);
167
+ }
168
+ }
169
+ createApplication(args, optionsOrCb, cb) {
170
+ const command = new CreateApplicationCommand_1.CreateApplicationCommand(args);
171
+ if (typeof optionsOrCb === "function") {
172
+ this.send(command, optionsOrCb);
173
+ }
174
+ else if (typeof cb === "function") {
175
+ if (typeof optionsOrCb !== "object")
176
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
177
+ this.send(command, optionsOrCb || {}, cb);
178
+ }
179
+ else {
180
+ return this.send(command, optionsOrCb);
181
+ }
182
+ }
110
183
  createDirectoryConfig(args, optionsOrCb, cb) {
111
184
  const command = new CreateDirectoryConfigCommand_1.CreateDirectoryConfigCommand(args);
112
185
  if (typeof optionsOrCb === "function") {
@@ -121,6 +194,20 @@ class AppStream extends AppStreamClient_1.AppStreamClient {
121
194
  return this.send(command, optionsOrCb);
122
195
  }
123
196
  }
197
+ createEntitlement(args, optionsOrCb, cb) {
198
+ const command = new CreateEntitlementCommand_1.CreateEntitlementCommand(args);
199
+ if (typeof optionsOrCb === "function") {
200
+ this.send(command, optionsOrCb);
201
+ }
202
+ else if (typeof cb === "function") {
203
+ if (typeof optionsOrCb !== "object")
204
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
205
+ this.send(command, optionsOrCb || {}, cb);
206
+ }
207
+ else {
208
+ return this.send(command, optionsOrCb);
209
+ }
210
+ }
124
211
  createFleet(args, optionsOrCb, cb) {
125
212
  const command = new CreateFleetCommand_1.CreateFleetCommand(args);
126
213
  if (typeof optionsOrCb === "function") {
@@ -233,6 +320,34 @@ class AppStream extends AppStreamClient_1.AppStreamClient {
233
320
  return this.send(command, optionsOrCb);
234
321
  }
235
322
  }
323
+ deleteAppBlock(args, optionsOrCb, cb) {
324
+ const command = new DeleteAppBlockCommand_1.DeleteAppBlockCommand(args);
325
+ if (typeof optionsOrCb === "function") {
326
+ this.send(command, optionsOrCb);
327
+ }
328
+ else if (typeof cb === "function") {
329
+ if (typeof optionsOrCb !== "object")
330
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
331
+ this.send(command, optionsOrCb || {}, cb);
332
+ }
333
+ else {
334
+ return this.send(command, optionsOrCb);
335
+ }
336
+ }
337
+ deleteApplication(args, optionsOrCb, cb) {
338
+ const command = new DeleteApplicationCommand_1.DeleteApplicationCommand(args);
339
+ if (typeof optionsOrCb === "function") {
340
+ this.send(command, optionsOrCb);
341
+ }
342
+ else if (typeof cb === "function") {
343
+ if (typeof optionsOrCb !== "object")
344
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
345
+ this.send(command, optionsOrCb || {}, cb);
346
+ }
347
+ else {
348
+ return this.send(command, optionsOrCb);
349
+ }
350
+ }
236
351
  deleteDirectoryConfig(args, optionsOrCb, cb) {
237
352
  const command = new DeleteDirectoryConfigCommand_1.DeleteDirectoryConfigCommand(args);
238
353
  if (typeof optionsOrCb === "function") {
@@ -247,6 +362,20 @@ class AppStream extends AppStreamClient_1.AppStreamClient {
247
362
  return this.send(command, optionsOrCb);
248
363
  }
249
364
  }
365
+ deleteEntitlement(args, optionsOrCb, cb) {
366
+ const command = new DeleteEntitlementCommand_1.DeleteEntitlementCommand(args);
367
+ if (typeof optionsOrCb === "function") {
368
+ this.send(command, optionsOrCb);
369
+ }
370
+ else if (typeof cb === "function") {
371
+ if (typeof optionsOrCb !== "object")
372
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
373
+ this.send(command, optionsOrCb || {}, cb);
374
+ }
375
+ else {
376
+ return this.send(command, optionsOrCb);
377
+ }
378
+ }
250
379
  deleteFleet(args, optionsOrCb, cb) {
251
380
  const command = new DeleteFleetCommand_1.DeleteFleetCommand(args);
252
381
  if (typeof optionsOrCb === "function") {
@@ -345,6 +474,48 @@ class AppStream extends AppStreamClient_1.AppStreamClient {
345
474
  return this.send(command, optionsOrCb);
346
475
  }
347
476
  }
477
+ describeAppBlocks(args, optionsOrCb, cb) {
478
+ const command = new DescribeAppBlocksCommand_1.DescribeAppBlocksCommand(args);
479
+ if (typeof optionsOrCb === "function") {
480
+ this.send(command, optionsOrCb);
481
+ }
482
+ else if (typeof cb === "function") {
483
+ if (typeof optionsOrCb !== "object")
484
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
485
+ this.send(command, optionsOrCb || {}, cb);
486
+ }
487
+ else {
488
+ return this.send(command, optionsOrCb);
489
+ }
490
+ }
491
+ describeApplicationFleetAssociations(args, optionsOrCb, cb) {
492
+ const command = new DescribeApplicationFleetAssociationsCommand_1.DescribeApplicationFleetAssociationsCommand(args);
493
+ if (typeof optionsOrCb === "function") {
494
+ this.send(command, optionsOrCb);
495
+ }
496
+ else if (typeof cb === "function") {
497
+ if (typeof optionsOrCb !== "object")
498
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
499
+ this.send(command, optionsOrCb || {}, cb);
500
+ }
501
+ else {
502
+ return this.send(command, optionsOrCb);
503
+ }
504
+ }
505
+ describeApplications(args, optionsOrCb, cb) {
506
+ const command = new DescribeApplicationsCommand_1.DescribeApplicationsCommand(args);
507
+ if (typeof optionsOrCb === "function") {
508
+ this.send(command, optionsOrCb);
509
+ }
510
+ else if (typeof cb === "function") {
511
+ if (typeof optionsOrCb !== "object")
512
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
513
+ this.send(command, optionsOrCb || {}, cb);
514
+ }
515
+ else {
516
+ return this.send(command, optionsOrCb);
517
+ }
518
+ }
348
519
  describeDirectoryConfigs(args, optionsOrCb, cb) {
349
520
  const command = new DescribeDirectoryConfigsCommand_1.DescribeDirectoryConfigsCommand(args);
350
521
  if (typeof optionsOrCb === "function") {
@@ -359,6 +530,20 @@ class AppStream extends AppStreamClient_1.AppStreamClient {
359
530
  return this.send(command, optionsOrCb);
360
531
  }
361
532
  }
533
+ describeEntitlements(args, optionsOrCb, cb) {
534
+ const command = new DescribeEntitlementsCommand_1.DescribeEntitlementsCommand(args);
535
+ if (typeof optionsOrCb === "function") {
536
+ this.send(command, optionsOrCb);
537
+ }
538
+ else if (typeof cb === "function") {
539
+ if (typeof optionsOrCb !== "object")
540
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
541
+ this.send(command, optionsOrCb || {}, cb);
542
+ }
543
+ else {
544
+ return this.send(command, optionsOrCb);
545
+ }
546
+ }
362
547
  describeFleets(args, optionsOrCb, cb) {
363
548
  const command = new DescribeFleetsCommand_1.DescribeFleetsCommand(args);
364
549
  if (typeof optionsOrCb === "function") {
@@ -499,6 +684,34 @@ class AppStream extends AppStreamClient_1.AppStreamClient {
499
684
  return this.send(command, optionsOrCb);
500
685
  }
501
686
  }
687
+ disassociateApplicationFleet(args, optionsOrCb, cb) {
688
+ const command = new DisassociateApplicationFleetCommand_1.DisassociateApplicationFleetCommand(args);
689
+ if (typeof optionsOrCb === "function") {
690
+ this.send(command, optionsOrCb);
691
+ }
692
+ else if (typeof cb === "function") {
693
+ if (typeof optionsOrCb !== "object")
694
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
695
+ this.send(command, optionsOrCb || {}, cb);
696
+ }
697
+ else {
698
+ return this.send(command, optionsOrCb);
699
+ }
700
+ }
701
+ disassociateApplicationFromEntitlement(args, optionsOrCb, cb) {
702
+ const command = new DisassociateApplicationFromEntitlementCommand_1.DisassociateApplicationFromEntitlementCommand(args);
703
+ if (typeof optionsOrCb === "function") {
704
+ this.send(command, optionsOrCb);
705
+ }
706
+ else if (typeof cb === "function") {
707
+ if (typeof optionsOrCb !== "object")
708
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
709
+ this.send(command, optionsOrCb || {}, cb);
710
+ }
711
+ else {
712
+ return this.send(command, optionsOrCb);
713
+ }
714
+ }
502
715
  disassociateFleet(args, optionsOrCb, cb) {
503
716
  const command = new DisassociateFleetCommand_1.DisassociateFleetCommand(args);
504
717
  if (typeof optionsOrCb === "function") {
@@ -569,6 +782,20 @@ class AppStream extends AppStreamClient_1.AppStreamClient {
569
782
  return this.send(command, optionsOrCb);
570
783
  }
571
784
  }
785
+ listEntitledApplications(args, optionsOrCb, cb) {
786
+ const command = new ListEntitledApplicationsCommand_1.ListEntitledApplicationsCommand(args);
787
+ if (typeof optionsOrCb === "function") {
788
+ this.send(command, optionsOrCb);
789
+ }
790
+ else if (typeof cb === "function") {
791
+ if (typeof optionsOrCb !== "object")
792
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
793
+ this.send(command, optionsOrCb || {}, cb);
794
+ }
795
+ else {
796
+ return this.send(command, optionsOrCb);
797
+ }
798
+ }
572
799
  listTagsForResource(args, optionsOrCb, cb) {
573
800
  const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
574
801
  if (typeof optionsOrCb === "function") {
@@ -667,6 +894,20 @@ class AppStream extends AppStreamClient_1.AppStreamClient {
667
894
  return this.send(command, optionsOrCb);
668
895
  }
669
896
  }
897
+ updateApplication(args, optionsOrCb, cb) {
898
+ const command = new UpdateApplicationCommand_1.UpdateApplicationCommand(args);
899
+ if (typeof optionsOrCb === "function") {
900
+ this.send(command, optionsOrCb);
901
+ }
902
+ else if (typeof cb === "function") {
903
+ if (typeof optionsOrCb !== "object")
904
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
905
+ this.send(command, optionsOrCb || {}, cb);
906
+ }
907
+ else {
908
+ return this.send(command, optionsOrCb);
909
+ }
910
+ }
670
911
  updateDirectoryConfig(args, optionsOrCb, cb) {
671
912
  const command = new UpdateDirectoryConfigCommand_1.UpdateDirectoryConfigCommand(args);
672
913
  if (typeof optionsOrCb === "function") {
@@ -681,6 +922,20 @@ class AppStream extends AppStreamClient_1.AppStreamClient {
681
922
  return this.send(command, optionsOrCb);
682
923
  }
683
924
  }
925
+ updateEntitlement(args, optionsOrCb, cb) {
926
+ const command = new UpdateEntitlementCommand_1.UpdateEntitlementCommand(args);
927
+ if (typeof optionsOrCb === "function") {
928
+ this.send(command, optionsOrCb);
929
+ }
930
+ else if (typeof cb === "function") {
931
+ if (typeof optionsOrCb !== "object")
932
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
933
+ this.send(command, optionsOrCb || {}, cb);
934
+ }
935
+ else {
936
+ return this.send(command, optionsOrCb);
937
+ }
938
+ }
684
939
  updateFleet(args, optionsOrCb, cb) {
685
940
  const command = new UpdateFleetCommand_1.UpdateFleetCommand(args);
686
941
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AssociateApplicationFleetCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class AssociateApplicationFleetCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "AppStreamClient";
18
+ const commandName = "AssociateApplicationFleetCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.AssociateApplicationFleetRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.AssociateApplicationFleetResult.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_json1_1_1.serializeAws_json1_1AssociateApplicationFleetCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1AssociateApplicationFleetCommand(output, context);
34
+ }
35
+ }
36
+ exports.AssociateApplicationFleetCommand = AssociateApplicationFleetCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AssociateApplicationToEntitlementCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class AssociateApplicationToEntitlementCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "AppStreamClient";
18
+ const commandName = "AssociateApplicationToEntitlementCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.AssociateApplicationToEntitlementRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.AssociateApplicationToEntitlementResult.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_json1_1_1.serializeAws_json1_1AssociateApplicationToEntitlementCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1AssociateApplicationToEntitlementCommand(output, context);
34
+ }
35
+ }
36
+ exports.AssociateApplicationToEntitlementCommand = AssociateApplicationToEntitlementCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateAppBlockCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class CreateAppBlockCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "AppStreamClient";
18
+ const commandName = "CreateAppBlockCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateAppBlockRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateAppBlockResult.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_json1_1_1.serializeAws_json1_1CreateAppBlockCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1CreateAppBlockCommand(output, context);
34
+ }
35
+ }
36
+ exports.CreateAppBlockCommand = CreateAppBlockCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateApplicationCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class CreateApplicationCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "AppStreamClient";
18
+ const commandName = "CreateApplicationCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateApplicationRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateApplicationResult.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_json1_1_1.serializeAws_json1_1CreateApplicationCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1CreateApplicationCommand(output, context);
34
+ }
35
+ }
36
+ exports.CreateApplicationCommand = CreateApplicationCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateEntitlementCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class CreateEntitlementCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "AppStreamClient";
18
+ const commandName = "CreateEntitlementCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateEntitlementRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateEntitlementResult.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_json1_1_1.serializeAws_json1_1CreateEntitlementCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1CreateEntitlementCommand(output, context);
34
+ }
35
+ }
36
+ exports.CreateEntitlementCommand = CreateEntitlementCommand;