@aws-sdk/client-appstream 3.183.0 → 3.185.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 (82) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/AppStream.js +269 -262
  4. package/dist-es/AppStreamClient.js +28 -22
  5. package/dist-es/commands/AssociateApplicationFleetCommand.js +28 -21
  6. package/dist-es/commands/AssociateApplicationToEntitlementCommand.js +28 -21
  7. package/dist-es/commands/AssociateFleetCommand.js +28 -21
  8. package/dist-es/commands/BatchAssociateUserStackCommand.js +28 -21
  9. package/dist-es/commands/BatchDisassociateUserStackCommand.js +28 -21
  10. package/dist-es/commands/CopyImageCommand.js +28 -21
  11. package/dist-es/commands/CreateAppBlockCommand.js +28 -21
  12. package/dist-es/commands/CreateApplicationCommand.js +28 -21
  13. package/dist-es/commands/CreateDirectoryConfigCommand.js +28 -21
  14. package/dist-es/commands/CreateEntitlementCommand.js +28 -21
  15. package/dist-es/commands/CreateFleetCommand.js +28 -21
  16. package/dist-es/commands/CreateImageBuilderCommand.js +28 -21
  17. package/dist-es/commands/CreateImageBuilderStreamingURLCommand.js +28 -21
  18. package/dist-es/commands/CreateStackCommand.js +28 -21
  19. package/dist-es/commands/CreateStreamingURLCommand.js +28 -21
  20. package/dist-es/commands/CreateUpdatedImageCommand.js +28 -21
  21. package/dist-es/commands/CreateUsageReportSubscriptionCommand.js +28 -21
  22. package/dist-es/commands/CreateUserCommand.js +28 -21
  23. package/dist-es/commands/DeleteAppBlockCommand.js +28 -21
  24. package/dist-es/commands/DeleteApplicationCommand.js +28 -21
  25. package/dist-es/commands/DeleteDirectoryConfigCommand.js +28 -21
  26. package/dist-es/commands/DeleteEntitlementCommand.js +28 -21
  27. package/dist-es/commands/DeleteFleetCommand.js +28 -21
  28. package/dist-es/commands/DeleteImageBuilderCommand.js +28 -21
  29. package/dist-es/commands/DeleteImageCommand.js +28 -21
  30. package/dist-es/commands/DeleteImagePermissionsCommand.js +28 -21
  31. package/dist-es/commands/DeleteStackCommand.js +28 -21
  32. package/dist-es/commands/DeleteUsageReportSubscriptionCommand.js +28 -21
  33. package/dist-es/commands/DeleteUserCommand.js +28 -21
  34. package/dist-es/commands/DescribeAppBlocksCommand.js +28 -21
  35. package/dist-es/commands/DescribeApplicationFleetAssociationsCommand.js +28 -21
  36. package/dist-es/commands/DescribeApplicationsCommand.js +28 -21
  37. package/dist-es/commands/DescribeDirectoryConfigsCommand.js +28 -21
  38. package/dist-es/commands/DescribeEntitlementsCommand.js +28 -21
  39. package/dist-es/commands/DescribeFleetsCommand.js +28 -21
  40. package/dist-es/commands/DescribeImageBuildersCommand.js +28 -21
  41. package/dist-es/commands/DescribeImagePermissionsCommand.js +28 -21
  42. package/dist-es/commands/DescribeImagesCommand.js +28 -21
  43. package/dist-es/commands/DescribeSessionsCommand.js +28 -21
  44. package/dist-es/commands/DescribeStacksCommand.js +28 -21
  45. package/dist-es/commands/DescribeUsageReportSubscriptionsCommand.js +28 -21
  46. package/dist-es/commands/DescribeUserStackAssociationsCommand.js +28 -21
  47. package/dist-es/commands/DescribeUsersCommand.js +28 -21
  48. package/dist-es/commands/DisableUserCommand.js +28 -21
  49. package/dist-es/commands/DisassociateApplicationFleetCommand.js +28 -21
  50. package/dist-es/commands/DisassociateApplicationFromEntitlementCommand.js +28 -21
  51. package/dist-es/commands/DisassociateFleetCommand.js +28 -21
  52. package/dist-es/commands/EnableUserCommand.js +28 -21
  53. package/dist-es/commands/ExpireSessionCommand.js +28 -21
  54. package/dist-es/commands/ListAssociatedFleetsCommand.js +28 -21
  55. package/dist-es/commands/ListAssociatedStacksCommand.js +28 -21
  56. package/dist-es/commands/ListEntitledApplicationsCommand.js +28 -21
  57. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  58. package/dist-es/commands/StartFleetCommand.js +28 -21
  59. package/dist-es/commands/StartImageBuilderCommand.js +28 -21
  60. package/dist-es/commands/StopFleetCommand.js +28 -21
  61. package/dist-es/commands/StopImageBuilderCommand.js +28 -21
  62. package/dist-es/commands/TagResourceCommand.js +28 -21
  63. package/dist-es/commands/UntagResourceCommand.js +28 -21
  64. package/dist-es/commands/UpdateApplicationCommand.js +28 -21
  65. package/dist-es/commands/UpdateDirectoryConfigCommand.js +28 -21
  66. package/dist-es/commands/UpdateEntitlementCommand.js +28 -21
  67. package/dist-es/commands/UpdateFleetCommand.js +28 -21
  68. package/dist-es/commands/UpdateImagePermissionsCommand.js +28 -21
  69. package/dist-es/commands/UpdateStackCommand.js +28 -21
  70. package/dist-es/endpoints.js +8 -8
  71. package/dist-es/models/AppStreamServiceException.js +10 -5
  72. package/dist-es/models/models_0.js +353 -714
  73. package/dist-es/pagination/DescribeImagePermissionsPaginator.js +68 -25
  74. package/dist-es/pagination/DescribeImagesPaginator.js +68 -25
  75. package/dist-es/protocols/Aws_json1_1.js +5434 -4320
  76. package/dist-es/runtimeConfig.browser.js +12 -26
  77. package/dist-es/runtimeConfig.js +12 -30
  78. package/dist-es/runtimeConfig.native.js +5 -8
  79. package/dist-es/runtimeConfig.shared.js +11 -8
  80. package/dist-es/waiters/waitForFleetStarted.js +115 -64
  81. package/dist-es/waiters/waitForFleetStopped.js +115 -64
  82. package/package.json +5 -5
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { AppStreamClient } from "./AppStreamClient";
2
3
  import { AssociateApplicationFleetCommand, } from "./commands/AssociateApplicationFleetCommand";
3
4
  import { AssociateApplicationToEntitlementCommand, } from "./commands/AssociateApplicationToEntitlementCommand";
@@ -64,915 +65,921 @@ import { UpdateEntitlementCommand, } from "./commands/UpdateEntitlementCommand";
64
65
  import { UpdateFleetCommand } from "./commands/UpdateFleetCommand";
65
66
  import { UpdateImagePermissionsCommand, } from "./commands/UpdateImagePermissionsCommand";
66
67
  import { UpdateStackCommand } from "./commands/UpdateStackCommand";
67
- export class AppStream extends AppStreamClient {
68
- associateApplicationFleet(args, optionsOrCb, cb) {
69
- const command = new AssociateApplicationFleetCommand(args);
68
+ var AppStream = (function (_super) {
69
+ __extends(AppStream, _super);
70
+ function AppStream() {
71
+ return _super !== null && _super.apply(this, arguments) || this;
72
+ }
73
+ AppStream.prototype.associateApplicationFleet = function (args, optionsOrCb, cb) {
74
+ var command = new AssociateApplicationFleetCommand(args);
70
75
  if (typeof optionsOrCb === "function") {
71
76
  this.send(command, optionsOrCb);
72
77
  }
73
78
  else if (typeof cb === "function") {
74
79
  if (typeof optionsOrCb !== "object")
75
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
80
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
76
81
  this.send(command, optionsOrCb || {}, cb);
77
82
  }
78
83
  else {
79
84
  return this.send(command, optionsOrCb);
80
85
  }
81
- }
82
- associateApplicationToEntitlement(args, optionsOrCb, cb) {
83
- const command = new AssociateApplicationToEntitlementCommand(args);
86
+ };
87
+ AppStream.prototype.associateApplicationToEntitlement = function (args, optionsOrCb, cb) {
88
+ var command = new AssociateApplicationToEntitlementCommand(args);
84
89
  if (typeof optionsOrCb === "function") {
85
90
  this.send(command, optionsOrCb);
86
91
  }
87
92
  else if (typeof cb === "function") {
88
93
  if (typeof optionsOrCb !== "object")
89
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
94
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
90
95
  this.send(command, optionsOrCb || {}, cb);
91
96
  }
92
97
  else {
93
98
  return this.send(command, optionsOrCb);
94
99
  }
95
- }
96
- associateFleet(args, optionsOrCb, cb) {
97
- const command = new AssociateFleetCommand(args);
100
+ };
101
+ AppStream.prototype.associateFleet = function (args, optionsOrCb, cb) {
102
+ var command = new AssociateFleetCommand(args);
98
103
  if (typeof optionsOrCb === "function") {
99
104
  this.send(command, optionsOrCb);
100
105
  }
101
106
  else if (typeof cb === "function") {
102
107
  if (typeof optionsOrCb !== "object")
103
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
108
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
104
109
  this.send(command, optionsOrCb || {}, cb);
105
110
  }
106
111
  else {
107
112
  return this.send(command, optionsOrCb);
108
113
  }
109
- }
110
- batchAssociateUserStack(args, optionsOrCb, cb) {
111
- const command = new BatchAssociateUserStackCommand(args);
114
+ };
115
+ AppStream.prototype.batchAssociateUserStack = function (args, optionsOrCb, cb) {
116
+ var command = new BatchAssociateUserStackCommand(args);
112
117
  if (typeof optionsOrCb === "function") {
113
118
  this.send(command, optionsOrCb);
114
119
  }
115
120
  else if (typeof cb === "function") {
116
121
  if (typeof optionsOrCb !== "object")
117
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
122
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
118
123
  this.send(command, optionsOrCb || {}, cb);
119
124
  }
120
125
  else {
121
126
  return this.send(command, optionsOrCb);
122
127
  }
123
- }
124
- batchDisassociateUserStack(args, optionsOrCb, cb) {
125
- const command = new BatchDisassociateUserStackCommand(args);
128
+ };
129
+ AppStream.prototype.batchDisassociateUserStack = function (args, optionsOrCb, cb) {
130
+ var command = new BatchDisassociateUserStackCommand(args);
126
131
  if (typeof optionsOrCb === "function") {
127
132
  this.send(command, optionsOrCb);
128
133
  }
129
134
  else if (typeof cb === "function") {
130
135
  if (typeof optionsOrCb !== "object")
131
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
136
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
132
137
  this.send(command, optionsOrCb || {}, cb);
133
138
  }
134
139
  else {
135
140
  return this.send(command, optionsOrCb);
136
141
  }
137
- }
138
- copyImage(args, optionsOrCb, cb) {
139
- const command = new CopyImageCommand(args);
142
+ };
143
+ AppStream.prototype.copyImage = function (args, optionsOrCb, cb) {
144
+ var command = new CopyImageCommand(args);
140
145
  if (typeof optionsOrCb === "function") {
141
146
  this.send(command, optionsOrCb);
142
147
  }
143
148
  else if (typeof cb === "function") {
144
149
  if (typeof optionsOrCb !== "object")
145
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
150
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
146
151
  this.send(command, optionsOrCb || {}, cb);
147
152
  }
148
153
  else {
149
154
  return this.send(command, optionsOrCb);
150
155
  }
151
- }
152
- createAppBlock(args, optionsOrCb, cb) {
153
- const command = new CreateAppBlockCommand(args);
156
+ };
157
+ AppStream.prototype.createAppBlock = function (args, optionsOrCb, cb) {
158
+ var command = new CreateAppBlockCommand(args);
154
159
  if (typeof optionsOrCb === "function") {
155
160
  this.send(command, optionsOrCb);
156
161
  }
157
162
  else if (typeof cb === "function") {
158
163
  if (typeof optionsOrCb !== "object")
159
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
164
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
160
165
  this.send(command, optionsOrCb || {}, cb);
161
166
  }
162
167
  else {
163
168
  return this.send(command, optionsOrCb);
164
169
  }
165
- }
166
- createApplication(args, optionsOrCb, cb) {
167
- const command = new CreateApplicationCommand(args);
170
+ };
171
+ AppStream.prototype.createApplication = function (args, optionsOrCb, cb) {
172
+ var command = new CreateApplicationCommand(args);
168
173
  if (typeof optionsOrCb === "function") {
169
174
  this.send(command, optionsOrCb);
170
175
  }
171
176
  else if (typeof cb === "function") {
172
177
  if (typeof optionsOrCb !== "object")
173
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
178
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
174
179
  this.send(command, optionsOrCb || {}, cb);
175
180
  }
176
181
  else {
177
182
  return this.send(command, optionsOrCb);
178
183
  }
179
- }
180
- createDirectoryConfig(args, optionsOrCb, cb) {
181
- const command = new CreateDirectoryConfigCommand(args);
184
+ };
185
+ AppStream.prototype.createDirectoryConfig = function (args, optionsOrCb, cb) {
186
+ var command = new CreateDirectoryConfigCommand(args);
182
187
  if (typeof optionsOrCb === "function") {
183
188
  this.send(command, optionsOrCb);
184
189
  }
185
190
  else if (typeof cb === "function") {
186
191
  if (typeof optionsOrCb !== "object")
187
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
192
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
188
193
  this.send(command, optionsOrCb || {}, cb);
189
194
  }
190
195
  else {
191
196
  return this.send(command, optionsOrCb);
192
197
  }
193
- }
194
- createEntitlement(args, optionsOrCb, cb) {
195
- const command = new CreateEntitlementCommand(args);
198
+ };
199
+ AppStream.prototype.createEntitlement = function (args, optionsOrCb, cb) {
200
+ var command = new CreateEntitlementCommand(args);
196
201
  if (typeof optionsOrCb === "function") {
197
202
  this.send(command, optionsOrCb);
198
203
  }
199
204
  else if (typeof cb === "function") {
200
205
  if (typeof optionsOrCb !== "object")
201
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
206
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
202
207
  this.send(command, optionsOrCb || {}, cb);
203
208
  }
204
209
  else {
205
210
  return this.send(command, optionsOrCb);
206
211
  }
207
- }
208
- createFleet(args, optionsOrCb, cb) {
209
- const command = new CreateFleetCommand(args);
212
+ };
213
+ AppStream.prototype.createFleet = function (args, optionsOrCb, cb) {
214
+ var command = new CreateFleetCommand(args);
210
215
  if (typeof optionsOrCb === "function") {
211
216
  this.send(command, optionsOrCb);
212
217
  }
213
218
  else if (typeof cb === "function") {
214
219
  if (typeof optionsOrCb !== "object")
215
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
220
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
216
221
  this.send(command, optionsOrCb || {}, cb);
217
222
  }
218
223
  else {
219
224
  return this.send(command, optionsOrCb);
220
225
  }
221
- }
222
- createImageBuilder(args, optionsOrCb, cb) {
223
- const command = new CreateImageBuilderCommand(args);
226
+ };
227
+ AppStream.prototype.createImageBuilder = function (args, optionsOrCb, cb) {
228
+ var command = new CreateImageBuilderCommand(args);
224
229
  if (typeof optionsOrCb === "function") {
225
230
  this.send(command, optionsOrCb);
226
231
  }
227
232
  else if (typeof cb === "function") {
228
233
  if (typeof optionsOrCb !== "object")
229
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
234
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
230
235
  this.send(command, optionsOrCb || {}, cb);
231
236
  }
232
237
  else {
233
238
  return this.send(command, optionsOrCb);
234
239
  }
235
- }
236
- createImageBuilderStreamingURL(args, optionsOrCb, cb) {
237
- const command = new CreateImageBuilderStreamingURLCommand(args);
240
+ };
241
+ AppStream.prototype.createImageBuilderStreamingURL = function (args, optionsOrCb, cb) {
242
+ var command = new CreateImageBuilderStreamingURLCommand(args);
238
243
  if (typeof optionsOrCb === "function") {
239
244
  this.send(command, optionsOrCb);
240
245
  }
241
246
  else if (typeof cb === "function") {
242
247
  if (typeof optionsOrCb !== "object")
243
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
248
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
244
249
  this.send(command, optionsOrCb || {}, cb);
245
250
  }
246
251
  else {
247
252
  return this.send(command, optionsOrCb);
248
253
  }
249
- }
250
- createStack(args, optionsOrCb, cb) {
251
- const command = new CreateStackCommand(args);
254
+ };
255
+ AppStream.prototype.createStack = function (args, optionsOrCb, cb) {
256
+ var command = new CreateStackCommand(args);
252
257
  if (typeof optionsOrCb === "function") {
253
258
  this.send(command, optionsOrCb);
254
259
  }
255
260
  else if (typeof cb === "function") {
256
261
  if (typeof optionsOrCb !== "object")
257
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
262
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
258
263
  this.send(command, optionsOrCb || {}, cb);
259
264
  }
260
265
  else {
261
266
  return this.send(command, optionsOrCb);
262
267
  }
263
- }
264
- createStreamingURL(args, optionsOrCb, cb) {
265
- const command = new CreateStreamingURLCommand(args);
268
+ };
269
+ AppStream.prototype.createStreamingURL = function (args, optionsOrCb, cb) {
270
+ var command = new CreateStreamingURLCommand(args);
266
271
  if (typeof optionsOrCb === "function") {
267
272
  this.send(command, optionsOrCb);
268
273
  }
269
274
  else if (typeof cb === "function") {
270
275
  if (typeof optionsOrCb !== "object")
271
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
276
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
272
277
  this.send(command, optionsOrCb || {}, cb);
273
278
  }
274
279
  else {
275
280
  return this.send(command, optionsOrCb);
276
281
  }
277
- }
278
- createUpdatedImage(args, optionsOrCb, cb) {
279
- const command = new CreateUpdatedImageCommand(args);
282
+ };
283
+ AppStream.prototype.createUpdatedImage = function (args, optionsOrCb, cb) {
284
+ var command = new CreateUpdatedImageCommand(args);
280
285
  if (typeof optionsOrCb === "function") {
281
286
  this.send(command, optionsOrCb);
282
287
  }
283
288
  else if (typeof cb === "function") {
284
289
  if (typeof optionsOrCb !== "object")
285
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
290
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
286
291
  this.send(command, optionsOrCb || {}, cb);
287
292
  }
288
293
  else {
289
294
  return this.send(command, optionsOrCb);
290
295
  }
291
- }
292
- createUsageReportSubscription(args, optionsOrCb, cb) {
293
- const command = new CreateUsageReportSubscriptionCommand(args);
296
+ };
297
+ AppStream.prototype.createUsageReportSubscription = function (args, optionsOrCb, cb) {
298
+ var command = new CreateUsageReportSubscriptionCommand(args);
294
299
  if (typeof optionsOrCb === "function") {
295
300
  this.send(command, optionsOrCb);
296
301
  }
297
302
  else if (typeof cb === "function") {
298
303
  if (typeof optionsOrCb !== "object")
299
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
304
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
300
305
  this.send(command, optionsOrCb || {}, cb);
301
306
  }
302
307
  else {
303
308
  return this.send(command, optionsOrCb);
304
309
  }
305
- }
306
- createUser(args, optionsOrCb, cb) {
307
- const command = new CreateUserCommand(args);
310
+ };
311
+ AppStream.prototype.createUser = function (args, optionsOrCb, cb) {
312
+ var command = new CreateUserCommand(args);
308
313
  if (typeof optionsOrCb === "function") {
309
314
  this.send(command, optionsOrCb);
310
315
  }
311
316
  else if (typeof cb === "function") {
312
317
  if (typeof optionsOrCb !== "object")
313
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
318
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
314
319
  this.send(command, optionsOrCb || {}, cb);
315
320
  }
316
321
  else {
317
322
  return this.send(command, optionsOrCb);
318
323
  }
319
- }
320
- deleteAppBlock(args, optionsOrCb, cb) {
321
- const command = new DeleteAppBlockCommand(args);
324
+ };
325
+ AppStream.prototype.deleteAppBlock = function (args, optionsOrCb, cb) {
326
+ var command = new DeleteAppBlockCommand(args);
322
327
  if (typeof optionsOrCb === "function") {
323
328
  this.send(command, optionsOrCb);
324
329
  }
325
330
  else if (typeof cb === "function") {
326
331
  if (typeof optionsOrCb !== "object")
327
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
332
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
328
333
  this.send(command, optionsOrCb || {}, cb);
329
334
  }
330
335
  else {
331
336
  return this.send(command, optionsOrCb);
332
337
  }
333
- }
334
- deleteApplication(args, optionsOrCb, cb) {
335
- const command = new DeleteApplicationCommand(args);
338
+ };
339
+ AppStream.prototype.deleteApplication = function (args, optionsOrCb, cb) {
340
+ var command = new DeleteApplicationCommand(args);
336
341
  if (typeof optionsOrCb === "function") {
337
342
  this.send(command, optionsOrCb);
338
343
  }
339
344
  else if (typeof cb === "function") {
340
345
  if (typeof optionsOrCb !== "object")
341
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
346
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
342
347
  this.send(command, optionsOrCb || {}, cb);
343
348
  }
344
349
  else {
345
350
  return this.send(command, optionsOrCb);
346
351
  }
347
- }
348
- deleteDirectoryConfig(args, optionsOrCb, cb) {
349
- const command = new DeleteDirectoryConfigCommand(args);
352
+ };
353
+ AppStream.prototype.deleteDirectoryConfig = function (args, optionsOrCb, cb) {
354
+ var command = new DeleteDirectoryConfigCommand(args);
350
355
  if (typeof optionsOrCb === "function") {
351
356
  this.send(command, optionsOrCb);
352
357
  }
353
358
  else if (typeof cb === "function") {
354
359
  if (typeof optionsOrCb !== "object")
355
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
360
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
356
361
  this.send(command, optionsOrCb || {}, cb);
357
362
  }
358
363
  else {
359
364
  return this.send(command, optionsOrCb);
360
365
  }
361
- }
362
- deleteEntitlement(args, optionsOrCb, cb) {
363
- const command = new DeleteEntitlementCommand(args);
366
+ };
367
+ AppStream.prototype.deleteEntitlement = function (args, optionsOrCb, cb) {
368
+ var command = new DeleteEntitlementCommand(args);
364
369
  if (typeof optionsOrCb === "function") {
365
370
  this.send(command, optionsOrCb);
366
371
  }
367
372
  else if (typeof cb === "function") {
368
373
  if (typeof optionsOrCb !== "object")
369
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
374
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
370
375
  this.send(command, optionsOrCb || {}, cb);
371
376
  }
372
377
  else {
373
378
  return this.send(command, optionsOrCb);
374
379
  }
375
- }
376
- deleteFleet(args, optionsOrCb, cb) {
377
- const command = new DeleteFleetCommand(args);
380
+ };
381
+ AppStream.prototype.deleteFleet = function (args, optionsOrCb, cb) {
382
+ var command = new DeleteFleetCommand(args);
378
383
  if (typeof optionsOrCb === "function") {
379
384
  this.send(command, optionsOrCb);
380
385
  }
381
386
  else if (typeof cb === "function") {
382
387
  if (typeof optionsOrCb !== "object")
383
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
388
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
384
389
  this.send(command, optionsOrCb || {}, cb);
385
390
  }
386
391
  else {
387
392
  return this.send(command, optionsOrCb);
388
393
  }
389
- }
390
- deleteImage(args, optionsOrCb, cb) {
391
- const command = new DeleteImageCommand(args);
394
+ };
395
+ AppStream.prototype.deleteImage = function (args, optionsOrCb, cb) {
396
+ var command = new DeleteImageCommand(args);
392
397
  if (typeof optionsOrCb === "function") {
393
398
  this.send(command, optionsOrCb);
394
399
  }
395
400
  else if (typeof cb === "function") {
396
401
  if (typeof optionsOrCb !== "object")
397
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
402
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
398
403
  this.send(command, optionsOrCb || {}, cb);
399
404
  }
400
405
  else {
401
406
  return this.send(command, optionsOrCb);
402
407
  }
403
- }
404
- deleteImageBuilder(args, optionsOrCb, cb) {
405
- const command = new DeleteImageBuilderCommand(args);
408
+ };
409
+ AppStream.prototype.deleteImageBuilder = function (args, optionsOrCb, cb) {
410
+ var command = new DeleteImageBuilderCommand(args);
406
411
  if (typeof optionsOrCb === "function") {
407
412
  this.send(command, optionsOrCb);
408
413
  }
409
414
  else if (typeof cb === "function") {
410
415
  if (typeof optionsOrCb !== "object")
411
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
416
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
412
417
  this.send(command, optionsOrCb || {}, cb);
413
418
  }
414
419
  else {
415
420
  return this.send(command, optionsOrCb);
416
421
  }
417
- }
418
- deleteImagePermissions(args, optionsOrCb, cb) {
419
- const command = new DeleteImagePermissionsCommand(args);
422
+ };
423
+ AppStream.prototype.deleteImagePermissions = function (args, optionsOrCb, cb) {
424
+ var command = new DeleteImagePermissionsCommand(args);
420
425
  if (typeof optionsOrCb === "function") {
421
426
  this.send(command, optionsOrCb);
422
427
  }
423
428
  else if (typeof cb === "function") {
424
429
  if (typeof optionsOrCb !== "object")
425
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
430
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
426
431
  this.send(command, optionsOrCb || {}, cb);
427
432
  }
428
433
  else {
429
434
  return this.send(command, optionsOrCb);
430
435
  }
431
- }
432
- deleteStack(args, optionsOrCb, cb) {
433
- const command = new DeleteStackCommand(args);
436
+ };
437
+ AppStream.prototype.deleteStack = function (args, optionsOrCb, cb) {
438
+ var command = new DeleteStackCommand(args);
434
439
  if (typeof optionsOrCb === "function") {
435
440
  this.send(command, optionsOrCb);
436
441
  }
437
442
  else if (typeof cb === "function") {
438
443
  if (typeof optionsOrCb !== "object")
439
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
444
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
440
445
  this.send(command, optionsOrCb || {}, cb);
441
446
  }
442
447
  else {
443
448
  return this.send(command, optionsOrCb);
444
449
  }
445
- }
446
- deleteUsageReportSubscription(args, optionsOrCb, cb) {
447
- const command = new DeleteUsageReportSubscriptionCommand(args);
450
+ };
451
+ AppStream.prototype.deleteUsageReportSubscription = function (args, optionsOrCb, cb) {
452
+ var command = new DeleteUsageReportSubscriptionCommand(args);
448
453
  if (typeof optionsOrCb === "function") {
449
454
  this.send(command, optionsOrCb);
450
455
  }
451
456
  else if (typeof cb === "function") {
452
457
  if (typeof optionsOrCb !== "object")
453
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
458
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
454
459
  this.send(command, optionsOrCb || {}, cb);
455
460
  }
456
461
  else {
457
462
  return this.send(command, optionsOrCb);
458
463
  }
459
- }
460
- deleteUser(args, optionsOrCb, cb) {
461
- const command = new DeleteUserCommand(args);
464
+ };
465
+ AppStream.prototype.deleteUser = function (args, optionsOrCb, cb) {
466
+ var command = new DeleteUserCommand(args);
462
467
  if (typeof optionsOrCb === "function") {
463
468
  this.send(command, optionsOrCb);
464
469
  }
465
470
  else if (typeof cb === "function") {
466
471
  if (typeof optionsOrCb !== "object")
467
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
472
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
468
473
  this.send(command, optionsOrCb || {}, cb);
469
474
  }
470
475
  else {
471
476
  return this.send(command, optionsOrCb);
472
477
  }
473
- }
474
- describeAppBlocks(args, optionsOrCb, cb) {
475
- const command = new DescribeAppBlocksCommand(args);
478
+ };
479
+ AppStream.prototype.describeAppBlocks = function (args, optionsOrCb, cb) {
480
+ var command = new DescribeAppBlocksCommand(args);
476
481
  if (typeof optionsOrCb === "function") {
477
482
  this.send(command, optionsOrCb);
478
483
  }
479
484
  else if (typeof cb === "function") {
480
485
  if (typeof optionsOrCb !== "object")
481
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
486
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
482
487
  this.send(command, optionsOrCb || {}, cb);
483
488
  }
484
489
  else {
485
490
  return this.send(command, optionsOrCb);
486
491
  }
487
- }
488
- describeApplicationFleetAssociations(args, optionsOrCb, cb) {
489
- const command = new DescribeApplicationFleetAssociationsCommand(args);
492
+ };
493
+ AppStream.prototype.describeApplicationFleetAssociations = function (args, optionsOrCb, cb) {
494
+ var command = new DescribeApplicationFleetAssociationsCommand(args);
490
495
  if (typeof optionsOrCb === "function") {
491
496
  this.send(command, optionsOrCb);
492
497
  }
493
498
  else if (typeof cb === "function") {
494
499
  if (typeof optionsOrCb !== "object")
495
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
500
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
496
501
  this.send(command, optionsOrCb || {}, cb);
497
502
  }
498
503
  else {
499
504
  return this.send(command, optionsOrCb);
500
505
  }
501
- }
502
- describeApplications(args, optionsOrCb, cb) {
503
- const command = new DescribeApplicationsCommand(args);
506
+ };
507
+ AppStream.prototype.describeApplications = function (args, optionsOrCb, cb) {
508
+ var command = new DescribeApplicationsCommand(args);
504
509
  if (typeof optionsOrCb === "function") {
505
510
  this.send(command, optionsOrCb);
506
511
  }
507
512
  else if (typeof cb === "function") {
508
513
  if (typeof optionsOrCb !== "object")
509
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
514
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
510
515
  this.send(command, optionsOrCb || {}, cb);
511
516
  }
512
517
  else {
513
518
  return this.send(command, optionsOrCb);
514
519
  }
515
- }
516
- describeDirectoryConfigs(args, optionsOrCb, cb) {
517
- const command = new DescribeDirectoryConfigsCommand(args);
520
+ };
521
+ AppStream.prototype.describeDirectoryConfigs = function (args, optionsOrCb, cb) {
522
+ var command = new DescribeDirectoryConfigsCommand(args);
518
523
  if (typeof optionsOrCb === "function") {
519
524
  this.send(command, optionsOrCb);
520
525
  }
521
526
  else if (typeof cb === "function") {
522
527
  if (typeof optionsOrCb !== "object")
523
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
528
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
524
529
  this.send(command, optionsOrCb || {}, cb);
525
530
  }
526
531
  else {
527
532
  return this.send(command, optionsOrCb);
528
533
  }
529
- }
530
- describeEntitlements(args, optionsOrCb, cb) {
531
- const command = new DescribeEntitlementsCommand(args);
534
+ };
535
+ AppStream.prototype.describeEntitlements = function (args, optionsOrCb, cb) {
536
+ var command = new DescribeEntitlementsCommand(args);
532
537
  if (typeof optionsOrCb === "function") {
533
538
  this.send(command, optionsOrCb);
534
539
  }
535
540
  else if (typeof cb === "function") {
536
541
  if (typeof optionsOrCb !== "object")
537
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
542
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
538
543
  this.send(command, optionsOrCb || {}, cb);
539
544
  }
540
545
  else {
541
546
  return this.send(command, optionsOrCb);
542
547
  }
543
- }
544
- describeFleets(args, optionsOrCb, cb) {
545
- const command = new DescribeFleetsCommand(args);
548
+ };
549
+ AppStream.prototype.describeFleets = function (args, optionsOrCb, cb) {
550
+ var command = new DescribeFleetsCommand(args);
546
551
  if (typeof optionsOrCb === "function") {
547
552
  this.send(command, optionsOrCb);
548
553
  }
549
554
  else if (typeof cb === "function") {
550
555
  if (typeof optionsOrCb !== "object")
551
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
556
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
552
557
  this.send(command, optionsOrCb || {}, cb);
553
558
  }
554
559
  else {
555
560
  return this.send(command, optionsOrCb);
556
561
  }
557
- }
558
- describeImageBuilders(args, optionsOrCb, cb) {
559
- const command = new DescribeImageBuildersCommand(args);
562
+ };
563
+ AppStream.prototype.describeImageBuilders = function (args, optionsOrCb, cb) {
564
+ var command = new DescribeImageBuildersCommand(args);
560
565
  if (typeof optionsOrCb === "function") {
561
566
  this.send(command, optionsOrCb);
562
567
  }
563
568
  else if (typeof cb === "function") {
564
569
  if (typeof optionsOrCb !== "object")
565
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
570
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
566
571
  this.send(command, optionsOrCb || {}, cb);
567
572
  }
568
573
  else {
569
574
  return this.send(command, optionsOrCb);
570
575
  }
571
- }
572
- describeImagePermissions(args, optionsOrCb, cb) {
573
- const command = new DescribeImagePermissionsCommand(args);
576
+ };
577
+ AppStream.prototype.describeImagePermissions = function (args, optionsOrCb, cb) {
578
+ var command = new DescribeImagePermissionsCommand(args);
574
579
  if (typeof optionsOrCb === "function") {
575
580
  this.send(command, optionsOrCb);
576
581
  }
577
582
  else if (typeof cb === "function") {
578
583
  if (typeof optionsOrCb !== "object")
579
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
584
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
580
585
  this.send(command, optionsOrCb || {}, cb);
581
586
  }
582
587
  else {
583
588
  return this.send(command, optionsOrCb);
584
589
  }
585
- }
586
- describeImages(args, optionsOrCb, cb) {
587
- const command = new DescribeImagesCommand(args);
590
+ };
591
+ AppStream.prototype.describeImages = function (args, optionsOrCb, cb) {
592
+ var command = new DescribeImagesCommand(args);
588
593
  if (typeof optionsOrCb === "function") {
589
594
  this.send(command, optionsOrCb);
590
595
  }
591
596
  else if (typeof cb === "function") {
592
597
  if (typeof optionsOrCb !== "object")
593
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
598
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
594
599
  this.send(command, optionsOrCb || {}, cb);
595
600
  }
596
601
  else {
597
602
  return this.send(command, optionsOrCb);
598
603
  }
599
- }
600
- describeSessions(args, optionsOrCb, cb) {
601
- const command = new DescribeSessionsCommand(args);
604
+ };
605
+ AppStream.prototype.describeSessions = function (args, optionsOrCb, cb) {
606
+ var command = new DescribeSessionsCommand(args);
602
607
  if (typeof optionsOrCb === "function") {
603
608
  this.send(command, optionsOrCb);
604
609
  }
605
610
  else if (typeof cb === "function") {
606
611
  if (typeof optionsOrCb !== "object")
607
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
612
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
608
613
  this.send(command, optionsOrCb || {}, cb);
609
614
  }
610
615
  else {
611
616
  return this.send(command, optionsOrCb);
612
617
  }
613
- }
614
- describeStacks(args, optionsOrCb, cb) {
615
- const command = new DescribeStacksCommand(args);
618
+ };
619
+ AppStream.prototype.describeStacks = function (args, optionsOrCb, cb) {
620
+ var command = new DescribeStacksCommand(args);
616
621
  if (typeof optionsOrCb === "function") {
617
622
  this.send(command, optionsOrCb);
618
623
  }
619
624
  else if (typeof cb === "function") {
620
625
  if (typeof optionsOrCb !== "object")
621
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
626
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
622
627
  this.send(command, optionsOrCb || {}, cb);
623
628
  }
624
629
  else {
625
630
  return this.send(command, optionsOrCb);
626
631
  }
627
- }
628
- describeUsageReportSubscriptions(args, optionsOrCb, cb) {
629
- const command = new DescribeUsageReportSubscriptionsCommand(args);
632
+ };
633
+ AppStream.prototype.describeUsageReportSubscriptions = function (args, optionsOrCb, cb) {
634
+ var command = new DescribeUsageReportSubscriptionsCommand(args);
630
635
  if (typeof optionsOrCb === "function") {
631
636
  this.send(command, optionsOrCb);
632
637
  }
633
638
  else if (typeof cb === "function") {
634
639
  if (typeof optionsOrCb !== "object")
635
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
640
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
636
641
  this.send(command, optionsOrCb || {}, cb);
637
642
  }
638
643
  else {
639
644
  return this.send(command, optionsOrCb);
640
645
  }
641
- }
642
- describeUsers(args, optionsOrCb, cb) {
643
- const command = new DescribeUsersCommand(args);
646
+ };
647
+ AppStream.prototype.describeUsers = function (args, optionsOrCb, cb) {
648
+ var command = new DescribeUsersCommand(args);
644
649
  if (typeof optionsOrCb === "function") {
645
650
  this.send(command, optionsOrCb);
646
651
  }
647
652
  else if (typeof cb === "function") {
648
653
  if (typeof optionsOrCb !== "object")
649
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
654
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
650
655
  this.send(command, optionsOrCb || {}, cb);
651
656
  }
652
657
  else {
653
658
  return this.send(command, optionsOrCb);
654
659
  }
655
- }
656
- describeUserStackAssociations(args, optionsOrCb, cb) {
657
- const command = new DescribeUserStackAssociationsCommand(args);
660
+ };
661
+ AppStream.prototype.describeUserStackAssociations = function (args, optionsOrCb, cb) {
662
+ var command = new DescribeUserStackAssociationsCommand(args);
658
663
  if (typeof optionsOrCb === "function") {
659
664
  this.send(command, optionsOrCb);
660
665
  }
661
666
  else if (typeof cb === "function") {
662
667
  if (typeof optionsOrCb !== "object")
663
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
668
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
664
669
  this.send(command, optionsOrCb || {}, cb);
665
670
  }
666
671
  else {
667
672
  return this.send(command, optionsOrCb);
668
673
  }
669
- }
670
- disableUser(args, optionsOrCb, cb) {
671
- const command = new DisableUserCommand(args);
674
+ };
675
+ AppStream.prototype.disableUser = function (args, optionsOrCb, cb) {
676
+ var command = new DisableUserCommand(args);
672
677
  if (typeof optionsOrCb === "function") {
673
678
  this.send(command, optionsOrCb);
674
679
  }
675
680
  else if (typeof cb === "function") {
676
681
  if (typeof optionsOrCb !== "object")
677
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
682
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
678
683
  this.send(command, optionsOrCb || {}, cb);
679
684
  }
680
685
  else {
681
686
  return this.send(command, optionsOrCb);
682
687
  }
683
- }
684
- disassociateApplicationFleet(args, optionsOrCb, cb) {
685
- const command = new DisassociateApplicationFleetCommand(args);
688
+ };
689
+ AppStream.prototype.disassociateApplicationFleet = function (args, optionsOrCb, cb) {
690
+ var command = new DisassociateApplicationFleetCommand(args);
686
691
  if (typeof optionsOrCb === "function") {
687
692
  this.send(command, optionsOrCb);
688
693
  }
689
694
  else if (typeof cb === "function") {
690
695
  if (typeof optionsOrCb !== "object")
691
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
696
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
692
697
  this.send(command, optionsOrCb || {}, cb);
693
698
  }
694
699
  else {
695
700
  return this.send(command, optionsOrCb);
696
701
  }
697
- }
698
- disassociateApplicationFromEntitlement(args, optionsOrCb, cb) {
699
- const command = new DisassociateApplicationFromEntitlementCommand(args);
702
+ };
703
+ AppStream.prototype.disassociateApplicationFromEntitlement = function (args, optionsOrCb, cb) {
704
+ var command = new DisassociateApplicationFromEntitlementCommand(args);
700
705
  if (typeof optionsOrCb === "function") {
701
706
  this.send(command, optionsOrCb);
702
707
  }
703
708
  else if (typeof cb === "function") {
704
709
  if (typeof optionsOrCb !== "object")
705
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
710
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
706
711
  this.send(command, optionsOrCb || {}, cb);
707
712
  }
708
713
  else {
709
714
  return this.send(command, optionsOrCb);
710
715
  }
711
- }
712
- disassociateFleet(args, optionsOrCb, cb) {
713
- const command = new DisassociateFleetCommand(args);
716
+ };
717
+ AppStream.prototype.disassociateFleet = function (args, optionsOrCb, cb) {
718
+ var command = new DisassociateFleetCommand(args);
714
719
  if (typeof optionsOrCb === "function") {
715
720
  this.send(command, optionsOrCb);
716
721
  }
717
722
  else if (typeof cb === "function") {
718
723
  if (typeof optionsOrCb !== "object")
719
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
724
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
720
725
  this.send(command, optionsOrCb || {}, cb);
721
726
  }
722
727
  else {
723
728
  return this.send(command, optionsOrCb);
724
729
  }
725
- }
726
- enableUser(args, optionsOrCb, cb) {
727
- const command = new EnableUserCommand(args);
730
+ };
731
+ AppStream.prototype.enableUser = function (args, optionsOrCb, cb) {
732
+ var command = new EnableUserCommand(args);
728
733
  if (typeof optionsOrCb === "function") {
729
734
  this.send(command, optionsOrCb);
730
735
  }
731
736
  else if (typeof cb === "function") {
732
737
  if (typeof optionsOrCb !== "object")
733
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
738
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
734
739
  this.send(command, optionsOrCb || {}, cb);
735
740
  }
736
741
  else {
737
742
  return this.send(command, optionsOrCb);
738
743
  }
739
- }
740
- expireSession(args, optionsOrCb, cb) {
741
- const command = new ExpireSessionCommand(args);
744
+ };
745
+ AppStream.prototype.expireSession = function (args, optionsOrCb, cb) {
746
+ var command = new ExpireSessionCommand(args);
742
747
  if (typeof optionsOrCb === "function") {
743
748
  this.send(command, optionsOrCb);
744
749
  }
745
750
  else if (typeof cb === "function") {
746
751
  if (typeof optionsOrCb !== "object")
747
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
752
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
748
753
  this.send(command, optionsOrCb || {}, cb);
749
754
  }
750
755
  else {
751
756
  return this.send(command, optionsOrCb);
752
757
  }
753
- }
754
- listAssociatedFleets(args, optionsOrCb, cb) {
755
- const command = new ListAssociatedFleetsCommand(args);
758
+ };
759
+ AppStream.prototype.listAssociatedFleets = function (args, optionsOrCb, cb) {
760
+ var command = new ListAssociatedFleetsCommand(args);
756
761
  if (typeof optionsOrCb === "function") {
757
762
  this.send(command, optionsOrCb);
758
763
  }
759
764
  else if (typeof cb === "function") {
760
765
  if (typeof optionsOrCb !== "object")
761
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
766
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
762
767
  this.send(command, optionsOrCb || {}, cb);
763
768
  }
764
769
  else {
765
770
  return this.send(command, optionsOrCb);
766
771
  }
767
- }
768
- listAssociatedStacks(args, optionsOrCb, cb) {
769
- const command = new ListAssociatedStacksCommand(args);
772
+ };
773
+ AppStream.prototype.listAssociatedStacks = function (args, optionsOrCb, cb) {
774
+ var command = new ListAssociatedStacksCommand(args);
770
775
  if (typeof optionsOrCb === "function") {
771
776
  this.send(command, optionsOrCb);
772
777
  }
773
778
  else if (typeof cb === "function") {
774
779
  if (typeof optionsOrCb !== "object")
775
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
780
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
776
781
  this.send(command, optionsOrCb || {}, cb);
777
782
  }
778
783
  else {
779
784
  return this.send(command, optionsOrCb);
780
785
  }
781
- }
782
- listEntitledApplications(args, optionsOrCb, cb) {
783
- const command = new ListEntitledApplicationsCommand(args);
786
+ };
787
+ AppStream.prototype.listEntitledApplications = function (args, optionsOrCb, cb) {
788
+ var command = new ListEntitledApplicationsCommand(args);
784
789
  if (typeof optionsOrCb === "function") {
785
790
  this.send(command, optionsOrCb);
786
791
  }
787
792
  else if (typeof cb === "function") {
788
793
  if (typeof optionsOrCb !== "object")
789
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
794
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
790
795
  this.send(command, optionsOrCb || {}, cb);
791
796
  }
792
797
  else {
793
798
  return this.send(command, optionsOrCb);
794
799
  }
795
- }
796
- listTagsForResource(args, optionsOrCb, cb) {
797
- const command = new ListTagsForResourceCommand(args);
800
+ };
801
+ AppStream.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
802
+ var command = new ListTagsForResourceCommand(args);
798
803
  if (typeof optionsOrCb === "function") {
799
804
  this.send(command, optionsOrCb);
800
805
  }
801
806
  else if (typeof cb === "function") {
802
807
  if (typeof optionsOrCb !== "object")
803
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
808
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
804
809
  this.send(command, optionsOrCb || {}, cb);
805
810
  }
806
811
  else {
807
812
  return this.send(command, optionsOrCb);
808
813
  }
809
- }
810
- startFleet(args, optionsOrCb, cb) {
811
- const command = new StartFleetCommand(args);
814
+ };
815
+ AppStream.prototype.startFleet = function (args, optionsOrCb, cb) {
816
+ var command = new StartFleetCommand(args);
812
817
  if (typeof optionsOrCb === "function") {
813
818
  this.send(command, optionsOrCb);
814
819
  }
815
820
  else if (typeof cb === "function") {
816
821
  if (typeof optionsOrCb !== "object")
817
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
822
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
818
823
  this.send(command, optionsOrCb || {}, cb);
819
824
  }
820
825
  else {
821
826
  return this.send(command, optionsOrCb);
822
827
  }
823
- }
824
- startImageBuilder(args, optionsOrCb, cb) {
825
- const command = new StartImageBuilderCommand(args);
828
+ };
829
+ AppStream.prototype.startImageBuilder = function (args, optionsOrCb, cb) {
830
+ var command = new StartImageBuilderCommand(args);
826
831
  if (typeof optionsOrCb === "function") {
827
832
  this.send(command, optionsOrCb);
828
833
  }
829
834
  else if (typeof cb === "function") {
830
835
  if (typeof optionsOrCb !== "object")
831
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
836
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
832
837
  this.send(command, optionsOrCb || {}, cb);
833
838
  }
834
839
  else {
835
840
  return this.send(command, optionsOrCb);
836
841
  }
837
- }
838
- stopFleet(args, optionsOrCb, cb) {
839
- const command = new StopFleetCommand(args);
842
+ };
843
+ AppStream.prototype.stopFleet = function (args, optionsOrCb, cb) {
844
+ var command = new StopFleetCommand(args);
840
845
  if (typeof optionsOrCb === "function") {
841
846
  this.send(command, optionsOrCb);
842
847
  }
843
848
  else if (typeof cb === "function") {
844
849
  if (typeof optionsOrCb !== "object")
845
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
850
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
846
851
  this.send(command, optionsOrCb || {}, cb);
847
852
  }
848
853
  else {
849
854
  return this.send(command, optionsOrCb);
850
855
  }
851
- }
852
- stopImageBuilder(args, optionsOrCb, cb) {
853
- const command = new StopImageBuilderCommand(args);
856
+ };
857
+ AppStream.prototype.stopImageBuilder = function (args, optionsOrCb, cb) {
858
+ var command = new StopImageBuilderCommand(args);
854
859
  if (typeof optionsOrCb === "function") {
855
860
  this.send(command, optionsOrCb);
856
861
  }
857
862
  else if (typeof cb === "function") {
858
863
  if (typeof optionsOrCb !== "object")
859
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
864
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
860
865
  this.send(command, optionsOrCb || {}, cb);
861
866
  }
862
867
  else {
863
868
  return this.send(command, optionsOrCb);
864
869
  }
865
- }
866
- tagResource(args, optionsOrCb, cb) {
867
- const command = new TagResourceCommand(args);
870
+ };
871
+ AppStream.prototype.tagResource = function (args, optionsOrCb, cb) {
872
+ var command = new TagResourceCommand(args);
868
873
  if (typeof optionsOrCb === "function") {
869
874
  this.send(command, optionsOrCb);
870
875
  }
871
876
  else if (typeof cb === "function") {
872
877
  if (typeof optionsOrCb !== "object")
873
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
878
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
874
879
  this.send(command, optionsOrCb || {}, cb);
875
880
  }
876
881
  else {
877
882
  return this.send(command, optionsOrCb);
878
883
  }
879
- }
880
- untagResource(args, optionsOrCb, cb) {
881
- const command = new UntagResourceCommand(args);
884
+ };
885
+ AppStream.prototype.untagResource = function (args, optionsOrCb, cb) {
886
+ var command = new UntagResourceCommand(args);
882
887
  if (typeof optionsOrCb === "function") {
883
888
  this.send(command, optionsOrCb);
884
889
  }
885
890
  else if (typeof cb === "function") {
886
891
  if (typeof optionsOrCb !== "object")
887
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
892
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
888
893
  this.send(command, optionsOrCb || {}, cb);
889
894
  }
890
895
  else {
891
896
  return this.send(command, optionsOrCb);
892
897
  }
893
- }
894
- updateApplication(args, optionsOrCb, cb) {
895
- const command = new UpdateApplicationCommand(args);
898
+ };
899
+ AppStream.prototype.updateApplication = function (args, optionsOrCb, cb) {
900
+ var command = new UpdateApplicationCommand(args);
896
901
  if (typeof optionsOrCb === "function") {
897
902
  this.send(command, optionsOrCb);
898
903
  }
899
904
  else if (typeof cb === "function") {
900
905
  if (typeof optionsOrCb !== "object")
901
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
906
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
902
907
  this.send(command, optionsOrCb || {}, cb);
903
908
  }
904
909
  else {
905
910
  return this.send(command, optionsOrCb);
906
911
  }
907
- }
908
- updateDirectoryConfig(args, optionsOrCb, cb) {
909
- const command = new UpdateDirectoryConfigCommand(args);
912
+ };
913
+ AppStream.prototype.updateDirectoryConfig = function (args, optionsOrCb, cb) {
914
+ var command = new UpdateDirectoryConfigCommand(args);
910
915
  if (typeof optionsOrCb === "function") {
911
916
  this.send(command, optionsOrCb);
912
917
  }
913
918
  else if (typeof cb === "function") {
914
919
  if (typeof optionsOrCb !== "object")
915
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
920
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
916
921
  this.send(command, optionsOrCb || {}, cb);
917
922
  }
918
923
  else {
919
924
  return this.send(command, optionsOrCb);
920
925
  }
921
- }
922
- updateEntitlement(args, optionsOrCb, cb) {
923
- const command = new UpdateEntitlementCommand(args);
926
+ };
927
+ AppStream.prototype.updateEntitlement = function (args, optionsOrCb, cb) {
928
+ var command = new UpdateEntitlementCommand(args);
924
929
  if (typeof optionsOrCb === "function") {
925
930
  this.send(command, optionsOrCb);
926
931
  }
927
932
  else if (typeof cb === "function") {
928
933
  if (typeof optionsOrCb !== "object")
929
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
934
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
930
935
  this.send(command, optionsOrCb || {}, cb);
931
936
  }
932
937
  else {
933
938
  return this.send(command, optionsOrCb);
934
939
  }
935
- }
936
- updateFleet(args, optionsOrCb, cb) {
937
- const command = new UpdateFleetCommand(args);
940
+ };
941
+ AppStream.prototype.updateFleet = function (args, optionsOrCb, cb) {
942
+ var command = new UpdateFleetCommand(args);
938
943
  if (typeof optionsOrCb === "function") {
939
944
  this.send(command, optionsOrCb);
940
945
  }
941
946
  else if (typeof cb === "function") {
942
947
  if (typeof optionsOrCb !== "object")
943
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
948
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
944
949
  this.send(command, optionsOrCb || {}, cb);
945
950
  }
946
951
  else {
947
952
  return this.send(command, optionsOrCb);
948
953
  }
949
- }
950
- updateImagePermissions(args, optionsOrCb, cb) {
951
- const command = new UpdateImagePermissionsCommand(args);
954
+ };
955
+ AppStream.prototype.updateImagePermissions = function (args, optionsOrCb, cb) {
956
+ var command = new UpdateImagePermissionsCommand(args);
952
957
  if (typeof optionsOrCb === "function") {
953
958
  this.send(command, optionsOrCb);
954
959
  }
955
960
  else if (typeof cb === "function") {
956
961
  if (typeof optionsOrCb !== "object")
957
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
962
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
958
963
  this.send(command, optionsOrCb || {}, cb);
959
964
  }
960
965
  else {
961
966
  return this.send(command, optionsOrCb);
962
967
  }
963
- }
964
- updateStack(args, optionsOrCb, cb) {
965
- const command = new UpdateStackCommand(args);
968
+ };
969
+ AppStream.prototype.updateStack = function (args, optionsOrCb, cb) {
970
+ var command = new UpdateStackCommand(args);
966
971
  if (typeof optionsOrCb === "function") {
967
972
  this.send(command, optionsOrCb);
968
973
  }
969
974
  else if (typeof cb === "function") {
970
975
  if (typeof optionsOrCb !== "object")
971
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
976
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
972
977
  this.send(command, optionsOrCb || {}, cb);
973
978
  }
974
979
  else {
975
980
  return this.send(command, optionsOrCb);
976
981
  }
977
- }
978
- }
982
+ };
983
+ return AppStream;
984
+ }(AppStreamClient));
985
+ export { AppStream };