@aws-sdk/client-workspaces 3.181.0 → 3.183.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 (78) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/WorkSpaces.js +254 -261
  3. package/dist-es/WorkSpacesClient.js +22 -28
  4. package/dist-es/commands/AssociateConnectionAliasCommand.js +21 -28
  5. package/dist-es/commands/AssociateIpGroupsCommand.js +21 -28
  6. package/dist-es/commands/AuthorizeIpRulesCommand.js +21 -28
  7. package/dist-es/commands/CopyWorkspaceImageCommand.js +21 -28
  8. package/dist-es/commands/CreateConnectClientAddInCommand.js +21 -28
  9. package/dist-es/commands/CreateConnectionAliasCommand.js +21 -28
  10. package/dist-es/commands/CreateIpGroupCommand.js +21 -28
  11. package/dist-es/commands/CreateTagsCommand.js +21 -28
  12. package/dist-es/commands/CreateUpdatedWorkspaceImageCommand.js +21 -28
  13. package/dist-es/commands/CreateWorkspaceBundleCommand.js +21 -28
  14. package/dist-es/commands/CreateWorkspaceImageCommand.js +21 -28
  15. package/dist-es/commands/CreateWorkspacesCommand.js +21 -28
  16. package/dist-es/commands/DeleteClientBrandingCommand.js +21 -28
  17. package/dist-es/commands/DeleteConnectClientAddInCommand.js +21 -28
  18. package/dist-es/commands/DeleteConnectionAliasCommand.js +21 -28
  19. package/dist-es/commands/DeleteIpGroupCommand.js +21 -28
  20. package/dist-es/commands/DeleteTagsCommand.js +21 -28
  21. package/dist-es/commands/DeleteWorkspaceBundleCommand.js +21 -28
  22. package/dist-es/commands/DeleteWorkspaceImageCommand.js +21 -28
  23. package/dist-es/commands/DeregisterWorkspaceDirectoryCommand.js +21 -28
  24. package/dist-es/commands/DescribeAccountCommand.js +21 -28
  25. package/dist-es/commands/DescribeAccountModificationsCommand.js +21 -28
  26. package/dist-es/commands/DescribeClientBrandingCommand.js +21 -28
  27. package/dist-es/commands/DescribeClientPropertiesCommand.js +21 -28
  28. package/dist-es/commands/DescribeConnectClientAddInsCommand.js +21 -28
  29. package/dist-es/commands/DescribeConnectionAliasPermissionsCommand.js +21 -28
  30. package/dist-es/commands/DescribeConnectionAliasesCommand.js +21 -28
  31. package/dist-es/commands/DescribeIpGroupsCommand.js +21 -28
  32. package/dist-es/commands/DescribeTagsCommand.js +21 -28
  33. package/dist-es/commands/DescribeWorkspaceBundlesCommand.js +21 -28
  34. package/dist-es/commands/DescribeWorkspaceDirectoriesCommand.js +21 -28
  35. package/dist-es/commands/DescribeWorkspaceImagePermissionsCommand.js +21 -28
  36. package/dist-es/commands/DescribeWorkspaceImagesCommand.js +21 -28
  37. package/dist-es/commands/DescribeWorkspaceSnapshotsCommand.js +21 -28
  38. package/dist-es/commands/DescribeWorkspacesCommand.js +21 -28
  39. package/dist-es/commands/DescribeWorkspacesConnectionStatusCommand.js +21 -28
  40. package/dist-es/commands/DisassociateConnectionAliasCommand.js +21 -28
  41. package/dist-es/commands/DisassociateIpGroupsCommand.js +21 -28
  42. package/dist-es/commands/ImportClientBrandingCommand.js +21 -28
  43. package/dist-es/commands/ImportWorkspaceImageCommand.js +21 -28
  44. package/dist-es/commands/ListAvailableManagementCidrRangesCommand.js +21 -28
  45. package/dist-es/commands/MigrateWorkspaceCommand.js +21 -28
  46. package/dist-es/commands/ModifyAccountCommand.js +21 -28
  47. package/dist-es/commands/ModifyClientPropertiesCommand.js +21 -28
  48. package/dist-es/commands/ModifySamlPropertiesCommand.js +21 -28
  49. package/dist-es/commands/ModifySelfservicePermissionsCommand.js +21 -28
  50. package/dist-es/commands/ModifyWorkspaceAccessPropertiesCommand.js +21 -28
  51. package/dist-es/commands/ModifyWorkspaceCreationPropertiesCommand.js +21 -28
  52. package/dist-es/commands/ModifyWorkspacePropertiesCommand.js +21 -28
  53. package/dist-es/commands/ModifyWorkspaceStateCommand.js +21 -28
  54. package/dist-es/commands/RebootWorkspacesCommand.js +21 -28
  55. package/dist-es/commands/RebuildWorkspacesCommand.js +21 -28
  56. package/dist-es/commands/RegisterWorkspaceDirectoryCommand.js +21 -28
  57. package/dist-es/commands/RestoreWorkspaceCommand.js +21 -28
  58. package/dist-es/commands/RevokeIpRulesCommand.js +21 -28
  59. package/dist-es/commands/StartWorkspacesCommand.js +21 -28
  60. package/dist-es/commands/StopWorkspacesCommand.js +21 -28
  61. package/dist-es/commands/TerminateWorkspacesCommand.js +21 -28
  62. package/dist-es/commands/UpdateConnectClientAddInCommand.js +21 -28
  63. package/dist-es/commands/UpdateConnectionAliasPermissionCommand.js +21 -28
  64. package/dist-es/commands/UpdateRulesOfIpGroupCommand.js +21 -28
  65. package/dist-es/commands/UpdateWorkspaceBundleCommand.js +21 -28
  66. package/dist-es/commands/UpdateWorkspaceImagePermissionCommand.js +21 -28
  67. package/dist-es/endpoints.js +8 -8
  68. package/dist-es/models/WorkSpacesServiceException.js +5 -10
  69. package/dist-es/models/models_0.js +658 -325
  70. package/dist-es/pagination/DescribeWorkspaceBundlesPaginator.js +24 -67
  71. package/dist-es/pagination/DescribeWorkspaceDirectoriesPaginator.js +24 -67
  72. package/dist-es/pagination/DescribeWorkspacesPaginator.js +25 -68
  73. package/dist-es/protocols/Aws_json1_1.js +4119 -5250
  74. package/dist-es/runtimeConfig.browser.js +26 -12
  75. package/dist-es/runtimeConfig.js +30 -12
  76. package/dist-es/runtimeConfig.native.js +8 -5
  77. package/dist-es/runtimeConfig.shared.js +8 -11
  78. package/package.json +33 -33
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { AssociateConnectionAliasCommand, } from "./commands/AssociateConnectionAliasCommand";
3
2
  import { AssociateIpGroupsCommand, } from "./commands/AssociateIpGroupsCommand";
4
3
  import { AuthorizeIpRulesCommand, } from "./commands/AuthorizeIpRulesCommand";
@@ -63,893 +62,887 @@ import { UpdateRulesOfIpGroupCommand, } from "./commands/UpdateRulesOfIpGroupCom
63
62
  import { UpdateWorkspaceBundleCommand, } from "./commands/UpdateWorkspaceBundleCommand";
64
63
  import { UpdateWorkspaceImagePermissionCommand, } from "./commands/UpdateWorkspaceImagePermissionCommand";
65
64
  import { WorkSpacesClient } from "./WorkSpacesClient";
66
- var WorkSpaces = (function (_super) {
67
- __extends(WorkSpaces, _super);
68
- function WorkSpaces() {
69
- return _super !== null && _super.apply(this, arguments) || this;
70
- }
71
- WorkSpaces.prototype.associateConnectionAlias = function (args, optionsOrCb, cb) {
72
- var command = new AssociateConnectionAliasCommand(args);
65
+ export class WorkSpaces extends WorkSpacesClient {
66
+ associateConnectionAlias(args, optionsOrCb, cb) {
67
+ const command = new AssociateConnectionAliasCommand(args);
73
68
  if (typeof optionsOrCb === "function") {
74
69
  this.send(command, optionsOrCb);
75
70
  }
76
71
  else if (typeof cb === "function") {
77
72
  if (typeof optionsOrCb !== "object")
78
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
73
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
79
74
  this.send(command, optionsOrCb || {}, cb);
80
75
  }
81
76
  else {
82
77
  return this.send(command, optionsOrCb);
83
78
  }
84
- };
85
- WorkSpaces.prototype.associateIpGroups = function (args, optionsOrCb, cb) {
86
- var command = new AssociateIpGroupsCommand(args);
79
+ }
80
+ associateIpGroups(args, optionsOrCb, cb) {
81
+ const command = new AssociateIpGroupsCommand(args);
87
82
  if (typeof optionsOrCb === "function") {
88
83
  this.send(command, optionsOrCb);
89
84
  }
90
85
  else if (typeof cb === "function") {
91
86
  if (typeof optionsOrCb !== "object")
92
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
87
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
93
88
  this.send(command, optionsOrCb || {}, cb);
94
89
  }
95
90
  else {
96
91
  return this.send(command, optionsOrCb);
97
92
  }
98
- };
99
- WorkSpaces.prototype.authorizeIpRules = function (args, optionsOrCb, cb) {
100
- var command = new AuthorizeIpRulesCommand(args);
93
+ }
94
+ authorizeIpRules(args, optionsOrCb, cb) {
95
+ const command = new AuthorizeIpRulesCommand(args);
101
96
  if (typeof optionsOrCb === "function") {
102
97
  this.send(command, optionsOrCb);
103
98
  }
104
99
  else if (typeof cb === "function") {
105
100
  if (typeof optionsOrCb !== "object")
106
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
101
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
107
102
  this.send(command, optionsOrCb || {}, cb);
108
103
  }
109
104
  else {
110
105
  return this.send(command, optionsOrCb);
111
106
  }
112
- };
113
- WorkSpaces.prototype.copyWorkspaceImage = function (args, optionsOrCb, cb) {
114
- var command = new CopyWorkspaceImageCommand(args);
107
+ }
108
+ copyWorkspaceImage(args, optionsOrCb, cb) {
109
+ const command = new CopyWorkspaceImageCommand(args);
115
110
  if (typeof optionsOrCb === "function") {
116
111
  this.send(command, optionsOrCb);
117
112
  }
118
113
  else if (typeof cb === "function") {
119
114
  if (typeof optionsOrCb !== "object")
120
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
115
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
121
116
  this.send(command, optionsOrCb || {}, cb);
122
117
  }
123
118
  else {
124
119
  return this.send(command, optionsOrCb);
125
120
  }
126
- };
127
- WorkSpaces.prototype.createConnectClientAddIn = function (args, optionsOrCb, cb) {
128
- var command = new CreateConnectClientAddInCommand(args);
121
+ }
122
+ createConnectClientAddIn(args, optionsOrCb, cb) {
123
+ const command = new CreateConnectClientAddInCommand(args);
129
124
  if (typeof optionsOrCb === "function") {
130
125
  this.send(command, optionsOrCb);
131
126
  }
132
127
  else if (typeof cb === "function") {
133
128
  if (typeof optionsOrCb !== "object")
134
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
129
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
135
130
  this.send(command, optionsOrCb || {}, cb);
136
131
  }
137
132
  else {
138
133
  return this.send(command, optionsOrCb);
139
134
  }
140
- };
141
- WorkSpaces.prototype.createConnectionAlias = function (args, optionsOrCb, cb) {
142
- var command = new CreateConnectionAliasCommand(args);
135
+ }
136
+ createConnectionAlias(args, optionsOrCb, cb) {
137
+ const command = new CreateConnectionAliasCommand(args);
143
138
  if (typeof optionsOrCb === "function") {
144
139
  this.send(command, optionsOrCb);
145
140
  }
146
141
  else if (typeof cb === "function") {
147
142
  if (typeof optionsOrCb !== "object")
148
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
143
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
149
144
  this.send(command, optionsOrCb || {}, cb);
150
145
  }
151
146
  else {
152
147
  return this.send(command, optionsOrCb);
153
148
  }
154
- };
155
- WorkSpaces.prototype.createIpGroup = function (args, optionsOrCb, cb) {
156
- var command = new CreateIpGroupCommand(args);
149
+ }
150
+ createIpGroup(args, optionsOrCb, cb) {
151
+ const command = new CreateIpGroupCommand(args);
157
152
  if (typeof optionsOrCb === "function") {
158
153
  this.send(command, optionsOrCb);
159
154
  }
160
155
  else if (typeof cb === "function") {
161
156
  if (typeof optionsOrCb !== "object")
162
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
157
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
163
158
  this.send(command, optionsOrCb || {}, cb);
164
159
  }
165
160
  else {
166
161
  return this.send(command, optionsOrCb);
167
162
  }
168
- };
169
- WorkSpaces.prototype.createTags = function (args, optionsOrCb, cb) {
170
- var command = new CreateTagsCommand(args);
163
+ }
164
+ createTags(args, optionsOrCb, cb) {
165
+ const command = new CreateTagsCommand(args);
171
166
  if (typeof optionsOrCb === "function") {
172
167
  this.send(command, optionsOrCb);
173
168
  }
174
169
  else if (typeof cb === "function") {
175
170
  if (typeof optionsOrCb !== "object")
176
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
171
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
177
172
  this.send(command, optionsOrCb || {}, cb);
178
173
  }
179
174
  else {
180
175
  return this.send(command, optionsOrCb);
181
176
  }
182
- };
183
- WorkSpaces.prototype.createUpdatedWorkspaceImage = function (args, optionsOrCb, cb) {
184
- var command = new CreateUpdatedWorkspaceImageCommand(args);
177
+ }
178
+ createUpdatedWorkspaceImage(args, optionsOrCb, cb) {
179
+ const command = new CreateUpdatedWorkspaceImageCommand(args);
185
180
  if (typeof optionsOrCb === "function") {
186
181
  this.send(command, optionsOrCb);
187
182
  }
188
183
  else if (typeof cb === "function") {
189
184
  if (typeof optionsOrCb !== "object")
190
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
185
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
191
186
  this.send(command, optionsOrCb || {}, cb);
192
187
  }
193
188
  else {
194
189
  return this.send(command, optionsOrCb);
195
190
  }
196
- };
197
- WorkSpaces.prototype.createWorkspaceBundle = function (args, optionsOrCb, cb) {
198
- var command = new CreateWorkspaceBundleCommand(args);
191
+ }
192
+ createWorkspaceBundle(args, optionsOrCb, cb) {
193
+ const command = new CreateWorkspaceBundleCommand(args);
199
194
  if (typeof optionsOrCb === "function") {
200
195
  this.send(command, optionsOrCb);
201
196
  }
202
197
  else if (typeof cb === "function") {
203
198
  if (typeof optionsOrCb !== "object")
204
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
199
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
205
200
  this.send(command, optionsOrCb || {}, cb);
206
201
  }
207
202
  else {
208
203
  return this.send(command, optionsOrCb);
209
204
  }
210
- };
211
- WorkSpaces.prototype.createWorkspaceImage = function (args, optionsOrCb, cb) {
212
- var command = new CreateWorkspaceImageCommand(args);
205
+ }
206
+ createWorkspaceImage(args, optionsOrCb, cb) {
207
+ const command = new CreateWorkspaceImageCommand(args);
213
208
  if (typeof optionsOrCb === "function") {
214
209
  this.send(command, optionsOrCb);
215
210
  }
216
211
  else if (typeof cb === "function") {
217
212
  if (typeof optionsOrCb !== "object")
218
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
213
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
219
214
  this.send(command, optionsOrCb || {}, cb);
220
215
  }
221
216
  else {
222
217
  return this.send(command, optionsOrCb);
223
218
  }
224
- };
225
- WorkSpaces.prototype.createWorkspaces = function (args, optionsOrCb, cb) {
226
- var command = new CreateWorkspacesCommand(args);
219
+ }
220
+ createWorkspaces(args, optionsOrCb, cb) {
221
+ const command = new CreateWorkspacesCommand(args);
227
222
  if (typeof optionsOrCb === "function") {
228
223
  this.send(command, optionsOrCb);
229
224
  }
230
225
  else if (typeof cb === "function") {
231
226
  if (typeof optionsOrCb !== "object")
232
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
227
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
233
228
  this.send(command, optionsOrCb || {}, cb);
234
229
  }
235
230
  else {
236
231
  return this.send(command, optionsOrCb);
237
232
  }
238
- };
239
- WorkSpaces.prototype.deleteClientBranding = function (args, optionsOrCb, cb) {
240
- var command = new DeleteClientBrandingCommand(args);
233
+ }
234
+ deleteClientBranding(args, optionsOrCb, cb) {
235
+ const command = new DeleteClientBrandingCommand(args);
241
236
  if (typeof optionsOrCb === "function") {
242
237
  this.send(command, optionsOrCb);
243
238
  }
244
239
  else if (typeof cb === "function") {
245
240
  if (typeof optionsOrCb !== "object")
246
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
241
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
247
242
  this.send(command, optionsOrCb || {}, cb);
248
243
  }
249
244
  else {
250
245
  return this.send(command, optionsOrCb);
251
246
  }
252
- };
253
- WorkSpaces.prototype.deleteConnectClientAddIn = function (args, optionsOrCb, cb) {
254
- var command = new DeleteConnectClientAddInCommand(args);
247
+ }
248
+ deleteConnectClientAddIn(args, optionsOrCb, cb) {
249
+ const command = new DeleteConnectClientAddInCommand(args);
255
250
  if (typeof optionsOrCb === "function") {
256
251
  this.send(command, optionsOrCb);
257
252
  }
258
253
  else if (typeof cb === "function") {
259
254
  if (typeof optionsOrCb !== "object")
260
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
255
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
261
256
  this.send(command, optionsOrCb || {}, cb);
262
257
  }
263
258
  else {
264
259
  return this.send(command, optionsOrCb);
265
260
  }
266
- };
267
- WorkSpaces.prototype.deleteConnectionAlias = function (args, optionsOrCb, cb) {
268
- var command = new DeleteConnectionAliasCommand(args);
261
+ }
262
+ deleteConnectionAlias(args, optionsOrCb, cb) {
263
+ const command = new DeleteConnectionAliasCommand(args);
269
264
  if (typeof optionsOrCb === "function") {
270
265
  this.send(command, optionsOrCb);
271
266
  }
272
267
  else if (typeof cb === "function") {
273
268
  if (typeof optionsOrCb !== "object")
274
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
269
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
275
270
  this.send(command, optionsOrCb || {}, cb);
276
271
  }
277
272
  else {
278
273
  return this.send(command, optionsOrCb);
279
274
  }
280
- };
281
- WorkSpaces.prototype.deleteIpGroup = function (args, optionsOrCb, cb) {
282
- var command = new DeleteIpGroupCommand(args);
275
+ }
276
+ deleteIpGroup(args, optionsOrCb, cb) {
277
+ const command = new DeleteIpGroupCommand(args);
283
278
  if (typeof optionsOrCb === "function") {
284
279
  this.send(command, optionsOrCb);
285
280
  }
286
281
  else if (typeof cb === "function") {
287
282
  if (typeof optionsOrCb !== "object")
288
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
283
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
289
284
  this.send(command, optionsOrCb || {}, cb);
290
285
  }
291
286
  else {
292
287
  return this.send(command, optionsOrCb);
293
288
  }
294
- };
295
- WorkSpaces.prototype.deleteTags = function (args, optionsOrCb, cb) {
296
- var command = new DeleteTagsCommand(args);
289
+ }
290
+ deleteTags(args, optionsOrCb, cb) {
291
+ const command = new DeleteTagsCommand(args);
297
292
  if (typeof optionsOrCb === "function") {
298
293
  this.send(command, optionsOrCb);
299
294
  }
300
295
  else if (typeof cb === "function") {
301
296
  if (typeof optionsOrCb !== "object")
302
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
297
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
303
298
  this.send(command, optionsOrCb || {}, cb);
304
299
  }
305
300
  else {
306
301
  return this.send(command, optionsOrCb);
307
302
  }
308
- };
309
- WorkSpaces.prototype.deleteWorkspaceBundle = function (args, optionsOrCb, cb) {
310
- var command = new DeleteWorkspaceBundleCommand(args);
303
+ }
304
+ deleteWorkspaceBundle(args, optionsOrCb, cb) {
305
+ const command = new DeleteWorkspaceBundleCommand(args);
311
306
  if (typeof optionsOrCb === "function") {
312
307
  this.send(command, optionsOrCb);
313
308
  }
314
309
  else if (typeof cb === "function") {
315
310
  if (typeof optionsOrCb !== "object")
316
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
311
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
317
312
  this.send(command, optionsOrCb || {}, cb);
318
313
  }
319
314
  else {
320
315
  return this.send(command, optionsOrCb);
321
316
  }
322
- };
323
- WorkSpaces.prototype.deleteWorkspaceImage = function (args, optionsOrCb, cb) {
324
- var command = new DeleteWorkspaceImageCommand(args);
317
+ }
318
+ deleteWorkspaceImage(args, optionsOrCb, cb) {
319
+ const command = new DeleteWorkspaceImageCommand(args);
325
320
  if (typeof optionsOrCb === "function") {
326
321
  this.send(command, optionsOrCb);
327
322
  }
328
323
  else if (typeof cb === "function") {
329
324
  if (typeof optionsOrCb !== "object")
330
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
325
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
331
326
  this.send(command, optionsOrCb || {}, cb);
332
327
  }
333
328
  else {
334
329
  return this.send(command, optionsOrCb);
335
330
  }
336
- };
337
- WorkSpaces.prototype.deregisterWorkspaceDirectory = function (args, optionsOrCb, cb) {
338
- var command = new DeregisterWorkspaceDirectoryCommand(args);
331
+ }
332
+ deregisterWorkspaceDirectory(args, optionsOrCb, cb) {
333
+ const command = new DeregisterWorkspaceDirectoryCommand(args);
339
334
  if (typeof optionsOrCb === "function") {
340
335
  this.send(command, optionsOrCb);
341
336
  }
342
337
  else if (typeof cb === "function") {
343
338
  if (typeof optionsOrCb !== "object")
344
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
339
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
345
340
  this.send(command, optionsOrCb || {}, cb);
346
341
  }
347
342
  else {
348
343
  return this.send(command, optionsOrCb);
349
344
  }
350
- };
351
- WorkSpaces.prototype.describeAccount = function (args, optionsOrCb, cb) {
352
- var command = new DescribeAccountCommand(args);
345
+ }
346
+ describeAccount(args, optionsOrCb, cb) {
347
+ const command = new DescribeAccountCommand(args);
353
348
  if (typeof optionsOrCb === "function") {
354
349
  this.send(command, optionsOrCb);
355
350
  }
356
351
  else if (typeof cb === "function") {
357
352
  if (typeof optionsOrCb !== "object")
358
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
353
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
359
354
  this.send(command, optionsOrCb || {}, cb);
360
355
  }
361
356
  else {
362
357
  return this.send(command, optionsOrCb);
363
358
  }
364
- };
365
- WorkSpaces.prototype.describeAccountModifications = function (args, optionsOrCb, cb) {
366
- var command = new DescribeAccountModificationsCommand(args);
359
+ }
360
+ describeAccountModifications(args, optionsOrCb, cb) {
361
+ const command = new DescribeAccountModificationsCommand(args);
367
362
  if (typeof optionsOrCb === "function") {
368
363
  this.send(command, optionsOrCb);
369
364
  }
370
365
  else if (typeof cb === "function") {
371
366
  if (typeof optionsOrCb !== "object")
372
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
367
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
373
368
  this.send(command, optionsOrCb || {}, cb);
374
369
  }
375
370
  else {
376
371
  return this.send(command, optionsOrCb);
377
372
  }
378
- };
379
- WorkSpaces.prototype.describeClientBranding = function (args, optionsOrCb, cb) {
380
- var command = new DescribeClientBrandingCommand(args);
373
+ }
374
+ describeClientBranding(args, optionsOrCb, cb) {
375
+ const command = new DescribeClientBrandingCommand(args);
381
376
  if (typeof optionsOrCb === "function") {
382
377
  this.send(command, optionsOrCb);
383
378
  }
384
379
  else if (typeof cb === "function") {
385
380
  if (typeof optionsOrCb !== "object")
386
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
381
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
387
382
  this.send(command, optionsOrCb || {}, cb);
388
383
  }
389
384
  else {
390
385
  return this.send(command, optionsOrCb);
391
386
  }
392
- };
393
- WorkSpaces.prototype.describeClientProperties = function (args, optionsOrCb, cb) {
394
- var command = new DescribeClientPropertiesCommand(args);
387
+ }
388
+ describeClientProperties(args, optionsOrCb, cb) {
389
+ const command = new DescribeClientPropertiesCommand(args);
395
390
  if (typeof optionsOrCb === "function") {
396
391
  this.send(command, optionsOrCb);
397
392
  }
398
393
  else if (typeof cb === "function") {
399
394
  if (typeof optionsOrCb !== "object")
400
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
395
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
401
396
  this.send(command, optionsOrCb || {}, cb);
402
397
  }
403
398
  else {
404
399
  return this.send(command, optionsOrCb);
405
400
  }
406
- };
407
- WorkSpaces.prototype.describeConnectClientAddIns = function (args, optionsOrCb, cb) {
408
- var command = new DescribeConnectClientAddInsCommand(args);
401
+ }
402
+ describeConnectClientAddIns(args, optionsOrCb, cb) {
403
+ const command = new DescribeConnectClientAddInsCommand(args);
409
404
  if (typeof optionsOrCb === "function") {
410
405
  this.send(command, optionsOrCb);
411
406
  }
412
407
  else if (typeof cb === "function") {
413
408
  if (typeof optionsOrCb !== "object")
414
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
409
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
415
410
  this.send(command, optionsOrCb || {}, cb);
416
411
  }
417
412
  else {
418
413
  return this.send(command, optionsOrCb);
419
414
  }
420
- };
421
- WorkSpaces.prototype.describeConnectionAliases = function (args, optionsOrCb, cb) {
422
- var command = new DescribeConnectionAliasesCommand(args);
415
+ }
416
+ describeConnectionAliases(args, optionsOrCb, cb) {
417
+ const command = new DescribeConnectionAliasesCommand(args);
423
418
  if (typeof optionsOrCb === "function") {
424
419
  this.send(command, optionsOrCb);
425
420
  }
426
421
  else if (typeof cb === "function") {
427
422
  if (typeof optionsOrCb !== "object")
428
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
423
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
429
424
  this.send(command, optionsOrCb || {}, cb);
430
425
  }
431
426
  else {
432
427
  return this.send(command, optionsOrCb);
433
428
  }
434
- };
435
- WorkSpaces.prototype.describeConnectionAliasPermissions = function (args, optionsOrCb, cb) {
436
- var command = new DescribeConnectionAliasPermissionsCommand(args);
429
+ }
430
+ describeConnectionAliasPermissions(args, optionsOrCb, cb) {
431
+ const command = new DescribeConnectionAliasPermissionsCommand(args);
437
432
  if (typeof optionsOrCb === "function") {
438
433
  this.send(command, optionsOrCb);
439
434
  }
440
435
  else if (typeof cb === "function") {
441
436
  if (typeof optionsOrCb !== "object")
442
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
437
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
443
438
  this.send(command, optionsOrCb || {}, cb);
444
439
  }
445
440
  else {
446
441
  return this.send(command, optionsOrCb);
447
442
  }
448
- };
449
- WorkSpaces.prototype.describeIpGroups = function (args, optionsOrCb, cb) {
450
- var command = new DescribeIpGroupsCommand(args);
443
+ }
444
+ describeIpGroups(args, optionsOrCb, cb) {
445
+ const command = new DescribeIpGroupsCommand(args);
451
446
  if (typeof optionsOrCb === "function") {
452
447
  this.send(command, optionsOrCb);
453
448
  }
454
449
  else if (typeof cb === "function") {
455
450
  if (typeof optionsOrCb !== "object")
456
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
451
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
457
452
  this.send(command, optionsOrCb || {}, cb);
458
453
  }
459
454
  else {
460
455
  return this.send(command, optionsOrCb);
461
456
  }
462
- };
463
- WorkSpaces.prototype.describeTags = function (args, optionsOrCb, cb) {
464
- var command = new DescribeTagsCommand(args);
457
+ }
458
+ describeTags(args, optionsOrCb, cb) {
459
+ const command = new DescribeTagsCommand(args);
465
460
  if (typeof optionsOrCb === "function") {
466
461
  this.send(command, optionsOrCb);
467
462
  }
468
463
  else if (typeof cb === "function") {
469
464
  if (typeof optionsOrCb !== "object")
470
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
465
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
471
466
  this.send(command, optionsOrCb || {}, cb);
472
467
  }
473
468
  else {
474
469
  return this.send(command, optionsOrCb);
475
470
  }
476
- };
477
- WorkSpaces.prototype.describeWorkspaceBundles = function (args, optionsOrCb, cb) {
478
- var command = new DescribeWorkspaceBundlesCommand(args);
471
+ }
472
+ describeWorkspaceBundles(args, optionsOrCb, cb) {
473
+ const command = new DescribeWorkspaceBundlesCommand(args);
479
474
  if (typeof optionsOrCb === "function") {
480
475
  this.send(command, optionsOrCb);
481
476
  }
482
477
  else if (typeof cb === "function") {
483
478
  if (typeof optionsOrCb !== "object")
484
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
479
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
485
480
  this.send(command, optionsOrCb || {}, cb);
486
481
  }
487
482
  else {
488
483
  return this.send(command, optionsOrCb);
489
484
  }
490
- };
491
- WorkSpaces.prototype.describeWorkspaceDirectories = function (args, optionsOrCb, cb) {
492
- var command = new DescribeWorkspaceDirectoriesCommand(args);
485
+ }
486
+ describeWorkspaceDirectories(args, optionsOrCb, cb) {
487
+ const command = new DescribeWorkspaceDirectoriesCommand(args);
493
488
  if (typeof optionsOrCb === "function") {
494
489
  this.send(command, optionsOrCb);
495
490
  }
496
491
  else if (typeof cb === "function") {
497
492
  if (typeof optionsOrCb !== "object")
498
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
493
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
499
494
  this.send(command, optionsOrCb || {}, cb);
500
495
  }
501
496
  else {
502
497
  return this.send(command, optionsOrCb);
503
498
  }
504
- };
505
- WorkSpaces.prototype.describeWorkspaceImagePermissions = function (args, optionsOrCb, cb) {
506
- var command = new DescribeWorkspaceImagePermissionsCommand(args);
499
+ }
500
+ describeWorkspaceImagePermissions(args, optionsOrCb, cb) {
501
+ const command = new DescribeWorkspaceImagePermissionsCommand(args);
507
502
  if (typeof optionsOrCb === "function") {
508
503
  this.send(command, optionsOrCb);
509
504
  }
510
505
  else if (typeof cb === "function") {
511
506
  if (typeof optionsOrCb !== "object")
512
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
507
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
513
508
  this.send(command, optionsOrCb || {}, cb);
514
509
  }
515
510
  else {
516
511
  return this.send(command, optionsOrCb);
517
512
  }
518
- };
519
- WorkSpaces.prototype.describeWorkspaceImages = function (args, optionsOrCb, cb) {
520
- var command = new DescribeWorkspaceImagesCommand(args);
513
+ }
514
+ describeWorkspaceImages(args, optionsOrCb, cb) {
515
+ const command = new DescribeWorkspaceImagesCommand(args);
521
516
  if (typeof optionsOrCb === "function") {
522
517
  this.send(command, optionsOrCb);
523
518
  }
524
519
  else if (typeof cb === "function") {
525
520
  if (typeof optionsOrCb !== "object")
526
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
521
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
527
522
  this.send(command, optionsOrCb || {}, cb);
528
523
  }
529
524
  else {
530
525
  return this.send(command, optionsOrCb);
531
526
  }
532
- };
533
- WorkSpaces.prototype.describeWorkspaces = function (args, optionsOrCb, cb) {
534
- var command = new DescribeWorkspacesCommand(args);
527
+ }
528
+ describeWorkspaces(args, optionsOrCb, cb) {
529
+ const command = new DescribeWorkspacesCommand(args);
535
530
  if (typeof optionsOrCb === "function") {
536
531
  this.send(command, optionsOrCb);
537
532
  }
538
533
  else if (typeof cb === "function") {
539
534
  if (typeof optionsOrCb !== "object")
540
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
535
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
541
536
  this.send(command, optionsOrCb || {}, cb);
542
537
  }
543
538
  else {
544
539
  return this.send(command, optionsOrCb);
545
540
  }
546
- };
547
- WorkSpaces.prototype.describeWorkspacesConnectionStatus = function (args, optionsOrCb, cb) {
548
- var command = new DescribeWorkspacesConnectionStatusCommand(args);
541
+ }
542
+ describeWorkspacesConnectionStatus(args, optionsOrCb, cb) {
543
+ const command = new DescribeWorkspacesConnectionStatusCommand(args);
549
544
  if (typeof optionsOrCb === "function") {
550
545
  this.send(command, optionsOrCb);
551
546
  }
552
547
  else if (typeof cb === "function") {
553
548
  if (typeof optionsOrCb !== "object")
554
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
549
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
555
550
  this.send(command, optionsOrCb || {}, cb);
556
551
  }
557
552
  else {
558
553
  return this.send(command, optionsOrCb);
559
554
  }
560
- };
561
- WorkSpaces.prototype.describeWorkspaceSnapshots = function (args, optionsOrCb, cb) {
562
- var command = new DescribeWorkspaceSnapshotsCommand(args);
555
+ }
556
+ describeWorkspaceSnapshots(args, optionsOrCb, cb) {
557
+ const command = new DescribeWorkspaceSnapshotsCommand(args);
563
558
  if (typeof optionsOrCb === "function") {
564
559
  this.send(command, optionsOrCb);
565
560
  }
566
561
  else if (typeof cb === "function") {
567
562
  if (typeof optionsOrCb !== "object")
568
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
563
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
569
564
  this.send(command, optionsOrCb || {}, cb);
570
565
  }
571
566
  else {
572
567
  return this.send(command, optionsOrCb);
573
568
  }
574
- };
575
- WorkSpaces.prototype.disassociateConnectionAlias = function (args, optionsOrCb, cb) {
576
- var command = new DisassociateConnectionAliasCommand(args);
569
+ }
570
+ disassociateConnectionAlias(args, optionsOrCb, cb) {
571
+ const command = new DisassociateConnectionAliasCommand(args);
577
572
  if (typeof optionsOrCb === "function") {
578
573
  this.send(command, optionsOrCb);
579
574
  }
580
575
  else if (typeof cb === "function") {
581
576
  if (typeof optionsOrCb !== "object")
582
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
577
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
583
578
  this.send(command, optionsOrCb || {}, cb);
584
579
  }
585
580
  else {
586
581
  return this.send(command, optionsOrCb);
587
582
  }
588
- };
589
- WorkSpaces.prototype.disassociateIpGroups = function (args, optionsOrCb, cb) {
590
- var command = new DisassociateIpGroupsCommand(args);
583
+ }
584
+ disassociateIpGroups(args, optionsOrCb, cb) {
585
+ const command = new DisassociateIpGroupsCommand(args);
591
586
  if (typeof optionsOrCb === "function") {
592
587
  this.send(command, optionsOrCb);
593
588
  }
594
589
  else if (typeof cb === "function") {
595
590
  if (typeof optionsOrCb !== "object")
596
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
591
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
597
592
  this.send(command, optionsOrCb || {}, cb);
598
593
  }
599
594
  else {
600
595
  return this.send(command, optionsOrCb);
601
596
  }
602
- };
603
- WorkSpaces.prototype.importClientBranding = function (args, optionsOrCb, cb) {
604
- var command = new ImportClientBrandingCommand(args);
597
+ }
598
+ importClientBranding(args, optionsOrCb, cb) {
599
+ const command = new ImportClientBrandingCommand(args);
605
600
  if (typeof optionsOrCb === "function") {
606
601
  this.send(command, optionsOrCb);
607
602
  }
608
603
  else if (typeof cb === "function") {
609
604
  if (typeof optionsOrCb !== "object")
610
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
605
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
611
606
  this.send(command, optionsOrCb || {}, cb);
612
607
  }
613
608
  else {
614
609
  return this.send(command, optionsOrCb);
615
610
  }
616
- };
617
- WorkSpaces.prototype.importWorkspaceImage = function (args, optionsOrCb, cb) {
618
- var command = new ImportWorkspaceImageCommand(args);
611
+ }
612
+ importWorkspaceImage(args, optionsOrCb, cb) {
613
+ const command = new ImportWorkspaceImageCommand(args);
619
614
  if (typeof optionsOrCb === "function") {
620
615
  this.send(command, optionsOrCb);
621
616
  }
622
617
  else if (typeof cb === "function") {
623
618
  if (typeof optionsOrCb !== "object")
624
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
619
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
625
620
  this.send(command, optionsOrCb || {}, cb);
626
621
  }
627
622
  else {
628
623
  return this.send(command, optionsOrCb);
629
624
  }
630
- };
631
- WorkSpaces.prototype.listAvailableManagementCidrRanges = function (args, optionsOrCb, cb) {
632
- var command = new ListAvailableManagementCidrRangesCommand(args);
625
+ }
626
+ listAvailableManagementCidrRanges(args, optionsOrCb, cb) {
627
+ const command = new ListAvailableManagementCidrRangesCommand(args);
633
628
  if (typeof optionsOrCb === "function") {
634
629
  this.send(command, optionsOrCb);
635
630
  }
636
631
  else if (typeof cb === "function") {
637
632
  if (typeof optionsOrCb !== "object")
638
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
633
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
639
634
  this.send(command, optionsOrCb || {}, cb);
640
635
  }
641
636
  else {
642
637
  return this.send(command, optionsOrCb);
643
638
  }
644
- };
645
- WorkSpaces.prototype.migrateWorkspace = function (args, optionsOrCb, cb) {
646
- var command = new MigrateWorkspaceCommand(args);
639
+ }
640
+ migrateWorkspace(args, optionsOrCb, cb) {
641
+ const command = new MigrateWorkspaceCommand(args);
647
642
  if (typeof optionsOrCb === "function") {
648
643
  this.send(command, optionsOrCb);
649
644
  }
650
645
  else if (typeof cb === "function") {
651
646
  if (typeof optionsOrCb !== "object")
652
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
647
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
653
648
  this.send(command, optionsOrCb || {}, cb);
654
649
  }
655
650
  else {
656
651
  return this.send(command, optionsOrCb);
657
652
  }
658
- };
659
- WorkSpaces.prototype.modifyAccount = function (args, optionsOrCb, cb) {
660
- var command = new ModifyAccountCommand(args);
653
+ }
654
+ modifyAccount(args, optionsOrCb, cb) {
655
+ const command = new ModifyAccountCommand(args);
661
656
  if (typeof optionsOrCb === "function") {
662
657
  this.send(command, optionsOrCb);
663
658
  }
664
659
  else if (typeof cb === "function") {
665
660
  if (typeof optionsOrCb !== "object")
666
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
661
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
667
662
  this.send(command, optionsOrCb || {}, cb);
668
663
  }
669
664
  else {
670
665
  return this.send(command, optionsOrCb);
671
666
  }
672
- };
673
- WorkSpaces.prototype.modifyClientProperties = function (args, optionsOrCb, cb) {
674
- var command = new ModifyClientPropertiesCommand(args);
667
+ }
668
+ modifyClientProperties(args, optionsOrCb, cb) {
669
+ const command = new ModifyClientPropertiesCommand(args);
675
670
  if (typeof optionsOrCb === "function") {
676
671
  this.send(command, optionsOrCb);
677
672
  }
678
673
  else if (typeof cb === "function") {
679
674
  if (typeof optionsOrCb !== "object")
680
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
675
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
681
676
  this.send(command, optionsOrCb || {}, cb);
682
677
  }
683
678
  else {
684
679
  return this.send(command, optionsOrCb);
685
680
  }
686
- };
687
- WorkSpaces.prototype.modifySamlProperties = function (args, optionsOrCb, cb) {
688
- var command = new ModifySamlPropertiesCommand(args);
681
+ }
682
+ modifySamlProperties(args, optionsOrCb, cb) {
683
+ const command = new ModifySamlPropertiesCommand(args);
689
684
  if (typeof optionsOrCb === "function") {
690
685
  this.send(command, optionsOrCb);
691
686
  }
692
687
  else if (typeof cb === "function") {
693
688
  if (typeof optionsOrCb !== "object")
694
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
689
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
695
690
  this.send(command, optionsOrCb || {}, cb);
696
691
  }
697
692
  else {
698
693
  return this.send(command, optionsOrCb);
699
694
  }
700
- };
701
- WorkSpaces.prototype.modifySelfservicePermissions = function (args, optionsOrCb, cb) {
702
- var command = new ModifySelfservicePermissionsCommand(args);
695
+ }
696
+ modifySelfservicePermissions(args, optionsOrCb, cb) {
697
+ const command = new ModifySelfservicePermissionsCommand(args);
703
698
  if (typeof optionsOrCb === "function") {
704
699
  this.send(command, optionsOrCb);
705
700
  }
706
701
  else if (typeof cb === "function") {
707
702
  if (typeof optionsOrCb !== "object")
708
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
703
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
709
704
  this.send(command, optionsOrCb || {}, cb);
710
705
  }
711
706
  else {
712
707
  return this.send(command, optionsOrCb);
713
708
  }
714
- };
715
- WorkSpaces.prototype.modifyWorkspaceAccessProperties = function (args, optionsOrCb, cb) {
716
- var command = new ModifyWorkspaceAccessPropertiesCommand(args);
709
+ }
710
+ modifyWorkspaceAccessProperties(args, optionsOrCb, cb) {
711
+ const command = new ModifyWorkspaceAccessPropertiesCommand(args);
717
712
  if (typeof optionsOrCb === "function") {
718
713
  this.send(command, optionsOrCb);
719
714
  }
720
715
  else if (typeof cb === "function") {
721
716
  if (typeof optionsOrCb !== "object")
722
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
717
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
723
718
  this.send(command, optionsOrCb || {}, cb);
724
719
  }
725
720
  else {
726
721
  return this.send(command, optionsOrCb);
727
722
  }
728
- };
729
- WorkSpaces.prototype.modifyWorkspaceCreationProperties = function (args, optionsOrCb, cb) {
730
- var command = new ModifyWorkspaceCreationPropertiesCommand(args);
723
+ }
724
+ modifyWorkspaceCreationProperties(args, optionsOrCb, cb) {
725
+ const command = new ModifyWorkspaceCreationPropertiesCommand(args);
731
726
  if (typeof optionsOrCb === "function") {
732
727
  this.send(command, optionsOrCb);
733
728
  }
734
729
  else if (typeof cb === "function") {
735
730
  if (typeof optionsOrCb !== "object")
736
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
731
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
737
732
  this.send(command, optionsOrCb || {}, cb);
738
733
  }
739
734
  else {
740
735
  return this.send(command, optionsOrCb);
741
736
  }
742
- };
743
- WorkSpaces.prototype.modifyWorkspaceProperties = function (args, optionsOrCb, cb) {
744
- var command = new ModifyWorkspacePropertiesCommand(args);
737
+ }
738
+ modifyWorkspaceProperties(args, optionsOrCb, cb) {
739
+ const command = new ModifyWorkspacePropertiesCommand(args);
745
740
  if (typeof optionsOrCb === "function") {
746
741
  this.send(command, optionsOrCb);
747
742
  }
748
743
  else if (typeof cb === "function") {
749
744
  if (typeof optionsOrCb !== "object")
750
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
745
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
751
746
  this.send(command, optionsOrCb || {}, cb);
752
747
  }
753
748
  else {
754
749
  return this.send(command, optionsOrCb);
755
750
  }
756
- };
757
- WorkSpaces.prototype.modifyWorkspaceState = function (args, optionsOrCb, cb) {
758
- var command = new ModifyWorkspaceStateCommand(args);
751
+ }
752
+ modifyWorkspaceState(args, optionsOrCb, cb) {
753
+ const command = new ModifyWorkspaceStateCommand(args);
759
754
  if (typeof optionsOrCb === "function") {
760
755
  this.send(command, optionsOrCb);
761
756
  }
762
757
  else if (typeof cb === "function") {
763
758
  if (typeof optionsOrCb !== "object")
764
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
759
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
765
760
  this.send(command, optionsOrCb || {}, cb);
766
761
  }
767
762
  else {
768
763
  return this.send(command, optionsOrCb);
769
764
  }
770
- };
771
- WorkSpaces.prototype.rebootWorkspaces = function (args, optionsOrCb, cb) {
772
- var command = new RebootWorkspacesCommand(args);
765
+ }
766
+ rebootWorkspaces(args, optionsOrCb, cb) {
767
+ const command = new RebootWorkspacesCommand(args);
773
768
  if (typeof optionsOrCb === "function") {
774
769
  this.send(command, optionsOrCb);
775
770
  }
776
771
  else if (typeof cb === "function") {
777
772
  if (typeof optionsOrCb !== "object")
778
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
773
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
779
774
  this.send(command, optionsOrCb || {}, cb);
780
775
  }
781
776
  else {
782
777
  return this.send(command, optionsOrCb);
783
778
  }
784
- };
785
- WorkSpaces.prototype.rebuildWorkspaces = function (args, optionsOrCb, cb) {
786
- var command = new RebuildWorkspacesCommand(args);
779
+ }
780
+ rebuildWorkspaces(args, optionsOrCb, cb) {
781
+ const command = new RebuildWorkspacesCommand(args);
787
782
  if (typeof optionsOrCb === "function") {
788
783
  this.send(command, optionsOrCb);
789
784
  }
790
785
  else if (typeof cb === "function") {
791
786
  if (typeof optionsOrCb !== "object")
792
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
787
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
793
788
  this.send(command, optionsOrCb || {}, cb);
794
789
  }
795
790
  else {
796
791
  return this.send(command, optionsOrCb);
797
792
  }
798
- };
799
- WorkSpaces.prototype.registerWorkspaceDirectory = function (args, optionsOrCb, cb) {
800
- var command = new RegisterWorkspaceDirectoryCommand(args);
793
+ }
794
+ registerWorkspaceDirectory(args, optionsOrCb, cb) {
795
+ const command = new RegisterWorkspaceDirectoryCommand(args);
801
796
  if (typeof optionsOrCb === "function") {
802
797
  this.send(command, optionsOrCb);
803
798
  }
804
799
  else if (typeof cb === "function") {
805
800
  if (typeof optionsOrCb !== "object")
806
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
801
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
807
802
  this.send(command, optionsOrCb || {}, cb);
808
803
  }
809
804
  else {
810
805
  return this.send(command, optionsOrCb);
811
806
  }
812
- };
813
- WorkSpaces.prototype.restoreWorkspace = function (args, optionsOrCb, cb) {
814
- var command = new RestoreWorkspaceCommand(args);
807
+ }
808
+ restoreWorkspace(args, optionsOrCb, cb) {
809
+ const command = new RestoreWorkspaceCommand(args);
815
810
  if (typeof optionsOrCb === "function") {
816
811
  this.send(command, optionsOrCb);
817
812
  }
818
813
  else if (typeof cb === "function") {
819
814
  if (typeof optionsOrCb !== "object")
820
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
815
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
821
816
  this.send(command, optionsOrCb || {}, cb);
822
817
  }
823
818
  else {
824
819
  return this.send(command, optionsOrCb);
825
820
  }
826
- };
827
- WorkSpaces.prototype.revokeIpRules = function (args, optionsOrCb, cb) {
828
- var command = new RevokeIpRulesCommand(args);
821
+ }
822
+ revokeIpRules(args, optionsOrCb, cb) {
823
+ const command = new RevokeIpRulesCommand(args);
829
824
  if (typeof optionsOrCb === "function") {
830
825
  this.send(command, optionsOrCb);
831
826
  }
832
827
  else if (typeof cb === "function") {
833
828
  if (typeof optionsOrCb !== "object")
834
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
829
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
835
830
  this.send(command, optionsOrCb || {}, cb);
836
831
  }
837
832
  else {
838
833
  return this.send(command, optionsOrCb);
839
834
  }
840
- };
841
- WorkSpaces.prototype.startWorkspaces = function (args, optionsOrCb, cb) {
842
- var command = new StartWorkspacesCommand(args);
835
+ }
836
+ startWorkspaces(args, optionsOrCb, cb) {
837
+ const command = new StartWorkspacesCommand(args);
843
838
  if (typeof optionsOrCb === "function") {
844
839
  this.send(command, optionsOrCb);
845
840
  }
846
841
  else if (typeof cb === "function") {
847
842
  if (typeof optionsOrCb !== "object")
848
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
843
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
849
844
  this.send(command, optionsOrCb || {}, cb);
850
845
  }
851
846
  else {
852
847
  return this.send(command, optionsOrCb);
853
848
  }
854
- };
855
- WorkSpaces.prototype.stopWorkspaces = function (args, optionsOrCb, cb) {
856
- var command = new StopWorkspacesCommand(args);
849
+ }
850
+ stopWorkspaces(args, optionsOrCb, cb) {
851
+ const command = new StopWorkspacesCommand(args);
857
852
  if (typeof optionsOrCb === "function") {
858
853
  this.send(command, optionsOrCb);
859
854
  }
860
855
  else if (typeof cb === "function") {
861
856
  if (typeof optionsOrCb !== "object")
862
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
857
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
863
858
  this.send(command, optionsOrCb || {}, cb);
864
859
  }
865
860
  else {
866
861
  return this.send(command, optionsOrCb);
867
862
  }
868
- };
869
- WorkSpaces.prototype.terminateWorkspaces = function (args, optionsOrCb, cb) {
870
- var command = new TerminateWorkspacesCommand(args);
863
+ }
864
+ terminateWorkspaces(args, optionsOrCb, cb) {
865
+ const command = new TerminateWorkspacesCommand(args);
871
866
  if (typeof optionsOrCb === "function") {
872
867
  this.send(command, optionsOrCb);
873
868
  }
874
869
  else if (typeof cb === "function") {
875
870
  if (typeof optionsOrCb !== "object")
876
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
871
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
877
872
  this.send(command, optionsOrCb || {}, cb);
878
873
  }
879
874
  else {
880
875
  return this.send(command, optionsOrCb);
881
876
  }
882
- };
883
- WorkSpaces.prototype.updateConnectClientAddIn = function (args, optionsOrCb, cb) {
884
- var command = new UpdateConnectClientAddInCommand(args);
877
+ }
878
+ updateConnectClientAddIn(args, optionsOrCb, cb) {
879
+ const command = new UpdateConnectClientAddInCommand(args);
885
880
  if (typeof optionsOrCb === "function") {
886
881
  this.send(command, optionsOrCb);
887
882
  }
888
883
  else if (typeof cb === "function") {
889
884
  if (typeof optionsOrCb !== "object")
890
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
885
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
891
886
  this.send(command, optionsOrCb || {}, cb);
892
887
  }
893
888
  else {
894
889
  return this.send(command, optionsOrCb);
895
890
  }
896
- };
897
- WorkSpaces.prototype.updateConnectionAliasPermission = function (args, optionsOrCb, cb) {
898
- var command = new UpdateConnectionAliasPermissionCommand(args);
891
+ }
892
+ updateConnectionAliasPermission(args, optionsOrCb, cb) {
893
+ const command = new UpdateConnectionAliasPermissionCommand(args);
899
894
  if (typeof optionsOrCb === "function") {
900
895
  this.send(command, optionsOrCb);
901
896
  }
902
897
  else if (typeof cb === "function") {
903
898
  if (typeof optionsOrCb !== "object")
904
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
899
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
905
900
  this.send(command, optionsOrCb || {}, cb);
906
901
  }
907
902
  else {
908
903
  return this.send(command, optionsOrCb);
909
904
  }
910
- };
911
- WorkSpaces.prototype.updateRulesOfIpGroup = function (args, optionsOrCb, cb) {
912
- var command = new UpdateRulesOfIpGroupCommand(args);
905
+ }
906
+ updateRulesOfIpGroup(args, optionsOrCb, cb) {
907
+ const command = new UpdateRulesOfIpGroupCommand(args);
913
908
  if (typeof optionsOrCb === "function") {
914
909
  this.send(command, optionsOrCb);
915
910
  }
916
911
  else if (typeof cb === "function") {
917
912
  if (typeof optionsOrCb !== "object")
918
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
913
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
919
914
  this.send(command, optionsOrCb || {}, cb);
920
915
  }
921
916
  else {
922
917
  return this.send(command, optionsOrCb);
923
918
  }
924
- };
925
- WorkSpaces.prototype.updateWorkspaceBundle = function (args, optionsOrCb, cb) {
926
- var command = new UpdateWorkspaceBundleCommand(args);
919
+ }
920
+ updateWorkspaceBundle(args, optionsOrCb, cb) {
921
+ const command = new UpdateWorkspaceBundleCommand(args);
927
922
  if (typeof optionsOrCb === "function") {
928
923
  this.send(command, optionsOrCb);
929
924
  }
930
925
  else if (typeof cb === "function") {
931
926
  if (typeof optionsOrCb !== "object")
932
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
927
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
933
928
  this.send(command, optionsOrCb || {}, cb);
934
929
  }
935
930
  else {
936
931
  return this.send(command, optionsOrCb);
937
932
  }
938
- };
939
- WorkSpaces.prototype.updateWorkspaceImagePermission = function (args, optionsOrCb, cb) {
940
- var command = new UpdateWorkspaceImagePermissionCommand(args);
933
+ }
934
+ updateWorkspaceImagePermission(args, optionsOrCb, cb) {
935
+ const command = new UpdateWorkspaceImagePermissionCommand(args);
941
936
  if (typeof optionsOrCb === "function") {
942
937
  this.send(command, optionsOrCb);
943
938
  }
944
939
  else if (typeof cb === "function") {
945
940
  if (typeof optionsOrCb !== "object")
946
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
941
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
947
942
  this.send(command, optionsOrCb || {}, cb);
948
943
  }
949
944
  else {
950
945
  return this.send(command, optionsOrCb);
951
946
  }
952
- };
953
- return WorkSpaces;
954
- }(WorkSpacesClient));
955
- export { WorkSpaces };
947
+ }
948
+ }