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