@aws-sdk/client-workspaces-web 3.186.0 → 3.190.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 (63) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/WorkSpacesWeb.js +178 -185
  3. package/dist-es/WorkSpacesWebClient.js +22 -28
  4. package/dist-es/commands/AssociateBrowserSettingsCommand.js +21 -28
  5. package/dist-es/commands/AssociateNetworkSettingsCommand.js +21 -28
  6. package/dist-es/commands/AssociateTrustStoreCommand.js +21 -28
  7. package/dist-es/commands/AssociateUserSettingsCommand.js +21 -28
  8. package/dist-es/commands/CreateBrowserSettingsCommand.js +21 -28
  9. package/dist-es/commands/CreateIdentityProviderCommand.js +21 -28
  10. package/dist-es/commands/CreateNetworkSettingsCommand.js +21 -28
  11. package/dist-es/commands/CreatePortalCommand.js +21 -28
  12. package/dist-es/commands/CreateTrustStoreCommand.js +21 -28
  13. package/dist-es/commands/CreateUserSettingsCommand.js +21 -28
  14. package/dist-es/commands/DeleteBrowserSettingsCommand.js +21 -28
  15. package/dist-es/commands/DeleteIdentityProviderCommand.js +21 -28
  16. package/dist-es/commands/DeleteNetworkSettingsCommand.js +21 -28
  17. package/dist-es/commands/DeletePortalCommand.js +21 -28
  18. package/dist-es/commands/DeleteTrustStoreCommand.js +21 -28
  19. package/dist-es/commands/DeleteUserSettingsCommand.js +21 -28
  20. package/dist-es/commands/DisassociateBrowserSettingsCommand.js +21 -28
  21. package/dist-es/commands/DisassociateNetworkSettingsCommand.js +21 -28
  22. package/dist-es/commands/DisassociateTrustStoreCommand.js +21 -28
  23. package/dist-es/commands/DisassociateUserSettingsCommand.js +21 -28
  24. package/dist-es/commands/GetBrowserSettingsCommand.js +21 -28
  25. package/dist-es/commands/GetIdentityProviderCommand.js +21 -28
  26. package/dist-es/commands/GetNetworkSettingsCommand.js +21 -28
  27. package/dist-es/commands/GetPortalCommand.js +21 -28
  28. package/dist-es/commands/GetPortalServiceProviderMetadataCommand.js +21 -28
  29. package/dist-es/commands/GetTrustStoreCertificateCommand.js +21 -28
  30. package/dist-es/commands/GetTrustStoreCommand.js +21 -28
  31. package/dist-es/commands/GetUserSettingsCommand.js +21 -28
  32. package/dist-es/commands/ListBrowserSettingsCommand.js +21 -28
  33. package/dist-es/commands/ListIdentityProvidersCommand.js +21 -28
  34. package/dist-es/commands/ListNetworkSettingsCommand.js +21 -28
  35. package/dist-es/commands/ListPortalsCommand.js +21 -28
  36. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  37. package/dist-es/commands/ListTrustStoreCertificatesCommand.js +21 -28
  38. package/dist-es/commands/ListTrustStoresCommand.js +21 -28
  39. package/dist-es/commands/ListUserSettingsCommand.js +21 -28
  40. package/dist-es/commands/TagResourceCommand.js +21 -28
  41. package/dist-es/commands/UntagResourceCommand.js +21 -28
  42. package/dist-es/commands/UpdateBrowserSettingsCommand.js +21 -28
  43. package/dist-es/commands/UpdateIdentityProviderCommand.js +21 -28
  44. package/dist-es/commands/UpdateNetworkSettingsCommand.js +21 -28
  45. package/dist-es/commands/UpdatePortalCommand.js +21 -28
  46. package/dist-es/commands/UpdateTrustStoreCommand.js +21 -28
  47. package/dist-es/commands/UpdateUserSettingsCommand.js +21 -28
  48. package/dist-es/endpoints.js +8 -8
  49. package/dist-es/models/WorkSpacesWebServiceException.js +5 -10
  50. package/dist-es/models/models_0.js +449 -210
  51. package/dist-es/pagination/ListBrowserSettingsPaginator.js +25 -68
  52. package/dist-es/pagination/ListIdentityProvidersPaginator.js +25 -68
  53. package/dist-es/pagination/ListNetworkSettingsPaginator.js +25 -68
  54. package/dist-es/pagination/ListPortalsPaginator.js +25 -68
  55. package/dist-es/pagination/ListTrustStoreCertificatesPaginator.js +25 -68
  56. package/dist-es/pagination/ListTrustStoresPaginator.js +25 -68
  57. package/dist-es/pagination/ListUserSettingsPaginator.js +25 -68
  58. package/dist-es/protocols/Aws_restJson1.js +3076 -4468
  59. package/dist-es/runtimeConfig.browser.js +26 -12
  60. package/dist-es/runtimeConfig.js +30 -12
  61. package/dist-es/runtimeConfig.native.js +8 -5
  62. package/dist-es/runtimeConfig.shared.js +8 -11
  63. package/package.json +33 -33
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { AssociateBrowserSettingsCommand, } from "./commands/AssociateBrowserSettingsCommand";
3
2
  import { AssociateNetworkSettingsCommand, } from "./commands/AssociateNetworkSettingsCommand";
4
3
  import { AssociateTrustStoreCommand, } from "./commands/AssociateTrustStoreCommand";
@@ -44,627 +43,621 @@ import { UpdatePortalCommand, } from "./commands/UpdatePortalCommand";
44
43
  import { UpdateTrustStoreCommand, } from "./commands/UpdateTrustStoreCommand";
45
44
  import { UpdateUserSettingsCommand, } from "./commands/UpdateUserSettingsCommand";
46
45
  import { WorkSpacesWebClient } from "./WorkSpacesWebClient";
47
- var WorkSpacesWeb = (function (_super) {
48
- __extends(WorkSpacesWeb, _super);
49
- function WorkSpacesWeb() {
50
- return _super !== null && _super.apply(this, arguments) || this;
51
- }
52
- WorkSpacesWeb.prototype.associateBrowserSettings = function (args, optionsOrCb, cb) {
53
- var command = new AssociateBrowserSettingsCommand(args);
46
+ export class WorkSpacesWeb extends WorkSpacesWebClient {
47
+ associateBrowserSettings(args, optionsOrCb, cb) {
48
+ const command = new AssociateBrowserSettingsCommand(args);
54
49
  if (typeof optionsOrCb === "function") {
55
50
  this.send(command, optionsOrCb);
56
51
  }
57
52
  else if (typeof cb === "function") {
58
53
  if (typeof optionsOrCb !== "object")
59
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
54
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
60
55
  this.send(command, optionsOrCb || {}, cb);
61
56
  }
62
57
  else {
63
58
  return this.send(command, optionsOrCb);
64
59
  }
65
- };
66
- WorkSpacesWeb.prototype.associateNetworkSettings = function (args, optionsOrCb, cb) {
67
- var command = new AssociateNetworkSettingsCommand(args);
60
+ }
61
+ associateNetworkSettings(args, optionsOrCb, cb) {
62
+ const command = new AssociateNetworkSettingsCommand(args);
68
63
  if (typeof optionsOrCb === "function") {
69
64
  this.send(command, optionsOrCb);
70
65
  }
71
66
  else if (typeof cb === "function") {
72
67
  if (typeof optionsOrCb !== "object")
73
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
68
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
74
69
  this.send(command, optionsOrCb || {}, cb);
75
70
  }
76
71
  else {
77
72
  return this.send(command, optionsOrCb);
78
73
  }
79
- };
80
- WorkSpacesWeb.prototype.associateTrustStore = function (args, optionsOrCb, cb) {
81
- var command = new AssociateTrustStoreCommand(args);
74
+ }
75
+ associateTrustStore(args, optionsOrCb, cb) {
76
+ const command = new AssociateTrustStoreCommand(args);
82
77
  if (typeof optionsOrCb === "function") {
83
78
  this.send(command, optionsOrCb);
84
79
  }
85
80
  else if (typeof cb === "function") {
86
81
  if (typeof optionsOrCb !== "object")
87
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
82
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
88
83
  this.send(command, optionsOrCb || {}, cb);
89
84
  }
90
85
  else {
91
86
  return this.send(command, optionsOrCb);
92
87
  }
93
- };
94
- WorkSpacesWeb.prototype.associateUserSettings = function (args, optionsOrCb, cb) {
95
- var command = new AssociateUserSettingsCommand(args);
88
+ }
89
+ associateUserSettings(args, optionsOrCb, cb) {
90
+ const command = new AssociateUserSettingsCommand(args);
96
91
  if (typeof optionsOrCb === "function") {
97
92
  this.send(command, optionsOrCb);
98
93
  }
99
94
  else if (typeof cb === "function") {
100
95
  if (typeof optionsOrCb !== "object")
101
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
96
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
102
97
  this.send(command, optionsOrCb || {}, cb);
103
98
  }
104
99
  else {
105
100
  return this.send(command, optionsOrCb);
106
101
  }
107
- };
108
- WorkSpacesWeb.prototype.createBrowserSettings = function (args, optionsOrCb, cb) {
109
- var command = new CreateBrowserSettingsCommand(args);
102
+ }
103
+ createBrowserSettings(args, optionsOrCb, cb) {
104
+ const command = new CreateBrowserSettingsCommand(args);
110
105
  if (typeof optionsOrCb === "function") {
111
106
  this.send(command, optionsOrCb);
112
107
  }
113
108
  else if (typeof cb === "function") {
114
109
  if (typeof optionsOrCb !== "object")
115
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
110
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
116
111
  this.send(command, optionsOrCb || {}, cb);
117
112
  }
118
113
  else {
119
114
  return this.send(command, optionsOrCb);
120
115
  }
121
- };
122
- WorkSpacesWeb.prototype.createIdentityProvider = function (args, optionsOrCb, cb) {
123
- var command = new CreateIdentityProviderCommand(args);
116
+ }
117
+ createIdentityProvider(args, optionsOrCb, cb) {
118
+ const command = new CreateIdentityProviderCommand(args);
124
119
  if (typeof optionsOrCb === "function") {
125
120
  this.send(command, optionsOrCb);
126
121
  }
127
122
  else if (typeof cb === "function") {
128
123
  if (typeof optionsOrCb !== "object")
129
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
124
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
130
125
  this.send(command, optionsOrCb || {}, cb);
131
126
  }
132
127
  else {
133
128
  return this.send(command, optionsOrCb);
134
129
  }
135
- };
136
- WorkSpacesWeb.prototype.createNetworkSettings = function (args, optionsOrCb, cb) {
137
- var command = new CreateNetworkSettingsCommand(args);
130
+ }
131
+ createNetworkSettings(args, optionsOrCb, cb) {
132
+ const command = new CreateNetworkSettingsCommand(args);
138
133
  if (typeof optionsOrCb === "function") {
139
134
  this.send(command, optionsOrCb);
140
135
  }
141
136
  else if (typeof cb === "function") {
142
137
  if (typeof optionsOrCb !== "object")
143
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
138
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
144
139
  this.send(command, optionsOrCb || {}, cb);
145
140
  }
146
141
  else {
147
142
  return this.send(command, optionsOrCb);
148
143
  }
149
- };
150
- WorkSpacesWeb.prototype.createPortal = function (args, optionsOrCb, cb) {
151
- var command = new CreatePortalCommand(args);
144
+ }
145
+ createPortal(args, optionsOrCb, cb) {
146
+ const command = new CreatePortalCommand(args);
152
147
  if (typeof optionsOrCb === "function") {
153
148
  this.send(command, optionsOrCb);
154
149
  }
155
150
  else if (typeof cb === "function") {
156
151
  if (typeof optionsOrCb !== "object")
157
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
152
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
158
153
  this.send(command, optionsOrCb || {}, cb);
159
154
  }
160
155
  else {
161
156
  return this.send(command, optionsOrCb);
162
157
  }
163
- };
164
- WorkSpacesWeb.prototype.createTrustStore = function (args, optionsOrCb, cb) {
165
- var command = new CreateTrustStoreCommand(args);
158
+ }
159
+ createTrustStore(args, optionsOrCb, cb) {
160
+ const command = new CreateTrustStoreCommand(args);
166
161
  if (typeof optionsOrCb === "function") {
167
162
  this.send(command, optionsOrCb);
168
163
  }
169
164
  else if (typeof cb === "function") {
170
165
  if (typeof optionsOrCb !== "object")
171
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
166
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
172
167
  this.send(command, optionsOrCb || {}, cb);
173
168
  }
174
169
  else {
175
170
  return this.send(command, optionsOrCb);
176
171
  }
177
- };
178
- WorkSpacesWeb.prototype.createUserSettings = function (args, optionsOrCb, cb) {
179
- var command = new CreateUserSettingsCommand(args);
172
+ }
173
+ createUserSettings(args, optionsOrCb, cb) {
174
+ const command = new CreateUserSettingsCommand(args);
180
175
  if (typeof optionsOrCb === "function") {
181
176
  this.send(command, optionsOrCb);
182
177
  }
183
178
  else if (typeof cb === "function") {
184
179
  if (typeof optionsOrCb !== "object")
185
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
180
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
186
181
  this.send(command, optionsOrCb || {}, cb);
187
182
  }
188
183
  else {
189
184
  return this.send(command, optionsOrCb);
190
185
  }
191
- };
192
- WorkSpacesWeb.prototype.deleteBrowserSettings = function (args, optionsOrCb, cb) {
193
- var command = new DeleteBrowserSettingsCommand(args);
186
+ }
187
+ deleteBrowserSettings(args, optionsOrCb, cb) {
188
+ const command = new DeleteBrowserSettingsCommand(args);
194
189
  if (typeof optionsOrCb === "function") {
195
190
  this.send(command, optionsOrCb);
196
191
  }
197
192
  else if (typeof cb === "function") {
198
193
  if (typeof optionsOrCb !== "object")
199
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
194
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
200
195
  this.send(command, optionsOrCb || {}, cb);
201
196
  }
202
197
  else {
203
198
  return this.send(command, optionsOrCb);
204
199
  }
205
- };
206
- WorkSpacesWeb.prototype.deleteIdentityProvider = function (args, optionsOrCb, cb) {
207
- var command = new DeleteIdentityProviderCommand(args);
200
+ }
201
+ deleteIdentityProvider(args, optionsOrCb, cb) {
202
+ const command = new DeleteIdentityProviderCommand(args);
208
203
  if (typeof optionsOrCb === "function") {
209
204
  this.send(command, optionsOrCb);
210
205
  }
211
206
  else if (typeof cb === "function") {
212
207
  if (typeof optionsOrCb !== "object")
213
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
208
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
214
209
  this.send(command, optionsOrCb || {}, cb);
215
210
  }
216
211
  else {
217
212
  return this.send(command, optionsOrCb);
218
213
  }
219
- };
220
- WorkSpacesWeb.prototype.deleteNetworkSettings = function (args, optionsOrCb, cb) {
221
- var command = new DeleteNetworkSettingsCommand(args);
214
+ }
215
+ deleteNetworkSettings(args, optionsOrCb, cb) {
216
+ const command = new DeleteNetworkSettingsCommand(args);
222
217
  if (typeof optionsOrCb === "function") {
223
218
  this.send(command, optionsOrCb);
224
219
  }
225
220
  else if (typeof cb === "function") {
226
221
  if (typeof optionsOrCb !== "object")
227
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
222
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
228
223
  this.send(command, optionsOrCb || {}, cb);
229
224
  }
230
225
  else {
231
226
  return this.send(command, optionsOrCb);
232
227
  }
233
- };
234
- WorkSpacesWeb.prototype.deletePortal = function (args, optionsOrCb, cb) {
235
- var command = new DeletePortalCommand(args);
228
+ }
229
+ deletePortal(args, optionsOrCb, cb) {
230
+ const command = new DeletePortalCommand(args);
236
231
  if (typeof optionsOrCb === "function") {
237
232
  this.send(command, optionsOrCb);
238
233
  }
239
234
  else if (typeof cb === "function") {
240
235
  if (typeof optionsOrCb !== "object")
241
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
236
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
242
237
  this.send(command, optionsOrCb || {}, cb);
243
238
  }
244
239
  else {
245
240
  return this.send(command, optionsOrCb);
246
241
  }
247
- };
248
- WorkSpacesWeb.prototype.deleteTrustStore = function (args, optionsOrCb, cb) {
249
- var command = new DeleteTrustStoreCommand(args);
242
+ }
243
+ deleteTrustStore(args, optionsOrCb, cb) {
244
+ const command = new DeleteTrustStoreCommand(args);
250
245
  if (typeof optionsOrCb === "function") {
251
246
  this.send(command, optionsOrCb);
252
247
  }
253
248
  else if (typeof cb === "function") {
254
249
  if (typeof optionsOrCb !== "object")
255
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
250
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
256
251
  this.send(command, optionsOrCb || {}, cb);
257
252
  }
258
253
  else {
259
254
  return this.send(command, optionsOrCb);
260
255
  }
261
- };
262
- WorkSpacesWeb.prototype.deleteUserSettings = function (args, optionsOrCb, cb) {
263
- var command = new DeleteUserSettingsCommand(args);
256
+ }
257
+ deleteUserSettings(args, optionsOrCb, cb) {
258
+ const command = new DeleteUserSettingsCommand(args);
264
259
  if (typeof optionsOrCb === "function") {
265
260
  this.send(command, optionsOrCb);
266
261
  }
267
262
  else if (typeof cb === "function") {
268
263
  if (typeof optionsOrCb !== "object")
269
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
264
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
270
265
  this.send(command, optionsOrCb || {}, cb);
271
266
  }
272
267
  else {
273
268
  return this.send(command, optionsOrCb);
274
269
  }
275
- };
276
- WorkSpacesWeb.prototype.disassociateBrowserSettings = function (args, optionsOrCb, cb) {
277
- var command = new DisassociateBrowserSettingsCommand(args);
270
+ }
271
+ disassociateBrowserSettings(args, optionsOrCb, cb) {
272
+ const command = new DisassociateBrowserSettingsCommand(args);
278
273
  if (typeof optionsOrCb === "function") {
279
274
  this.send(command, optionsOrCb);
280
275
  }
281
276
  else if (typeof cb === "function") {
282
277
  if (typeof optionsOrCb !== "object")
283
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
278
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
284
279
  this.send(command, optionsOrCb || {}, cb);
285
280
  }
286
281
  else {
287
282
  return this.send(command, optionsOrCb);
288
283
  }
289
- };
290
- WorkSpacesWeb.prototype.disassociateNetworkSettings = function (args, optionsOrCb, cb) {
291
- var command = new DisassociateNetworkSettingsCommand(args);
284
+ }
285
+ disassociateNetworkSettings(args, optionsOrCb, cb) {
286
+ const command = new DisassociateNetworkSettingsCommand(args);
292
287
  if (typeof optionsOrCb === "function") {
293
288
  this.send(command, optionsOrCb);
294
289
  }
295
290
  else if (typeof cb === "function") {
296
291
  if (typeof optionsOrCb !== "object")
297
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
292
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
298
293
  this.send(command, optionsOrCb || {}, cb);
299
294
  }
300
295
  else {
301
296
  return this.send(command, optionsOrCb);
302
297
  }
303
- };
304
- WorkSpacesWeb.prototype.disassociateTrustStore = function (args, optionsOrCb, cb) {
305
- var command = new DisassociateTrustStoreCommand(args);
298
+ }
299
+ disassociateTrustStore(args, optionsOrCb, cb) {
300
+ const command = new DisassociateTrustStoreCommand(args);
306
301
  if (typeof optionsOrCb === "function") {
307
302
  this.send(command, optionsOrCb);
308
303
  }
309
304
  else if (typeof cb === "function") {
310
305
  if (typeof optionsOrCb !== "object")
311
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
306
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
312
307
  this.send(command, optionsOrCb || {}, cb);
313
308
  }
314
309
  else {
315
310
  return this.send(command, optionsOrCb);
316
311
  }
317
- };
318
- WorkSpacesWeb.prototype.disassociateUserSettings = function (args, optionsOrCb, cb) {
319
- var command = new DisassociateUserSettingsCommand(args);
312
+ }
313
+ disassociateUserSettings(args, optionsOrCb, cb) {
314
+ const command = new DisassociateUserSettingsCommand(args);
320
315
  if (typeof optionsOrCb === "function") {
321
316
  this.send(command, optionsOrCb);
322
317
  }
323
318
  else if (typeof cb === "function") {
324
319
  if (typeof optionsOrCb !== "object")
325
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
320
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
326
321
  this.send(command, optionsOrCb || {}, cb);
327
322
  }
328
323
  else {
329
324
  return this.send(command, optionsOrCb);
330
325
  }
331
- };
332
- WorkSpacesWeb.prototype.getBrowserSettings = function (args, optionsOrCb, cb) {
333
- var command = new GetBrowserSettingsCommand(args);
326
+ }
327
+ getBrowserSettings(args, optionsOrCb, cb) {
328
+ const command = new GetBrowserSettingsCommand(args);
334
329
  if (typeof optionsOrCb === "function") {
335
330
  this.send(command, optionsOrCb);
336
331
  }
337
332
  else if (typeof cb === "function") {
338
333
  if (typeof optionsOrCb !== "object")
339
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
334
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
340
335
  this.send(command, optionsOrCb || {}, cb);
341
336
  }
342
337
  else {
343
338
  return this.send(command, optionsOrCb);
344
339
  }
345
- };
346
- WorkSpacesWeb.prototype.getIdentityProvider = function (args, optionsOrCb, cb) {
347
- var command = new GetIdentityProviderCommand(args);
340
+ }
341
+ getIdentityProvider(args, optionsOrCb, cb) {
342
+ const command = new GetIdentityProviderCommand(args);
348
343
  if (typeof optionsOrCb === "function") {
349
344
  this.send(command, optionsOrCb);
350
345
  }
351
346
  else if (typeof cb === "function") {
352
347
  if (typeof optionsOrCb !== "object")
353
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
348
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
354
349
  this.send(command, optionsOrCb || {}, cb);
355
350
  }
356
351
  else {
357
352
  return this.send(command, optionsOrCb);
358
353
  }
359
- };
360
- WorkSpacesWeb.prototype.getNetworkSettings = function (args, optionsOrCb, cb) {
361
- var command = new GetNetworkSettingsCommand(args);
354
+ }
355
+ getNetworkSettings(args, optionsOrCb, cb) {
356
+ const command = new GetNetworkSettingsCommand(args);
362
357
  if (typeof optionsOrCb === "function") {
363
358
  this.send(command, optionsOrCb);
364
359
  }
365
360
  else if (typeof cb === "function") {
366
361
  if (typeof optionsOrCb !== "object")
367
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
362
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
368
363
  this.send(command, optionsOrCb || {}, cb);
369
364
  }
370
365
  else {
371
366
  return this.send(command, optionsOrCb);
372
367
  }
373
- };
374
- WorkSpacesWeb.prototype.getPortal = function (args, optionsOrCb, cb) {
375
- var command = new GetPortalCommand(args);
368
+ }
369
+ getPortal(args, optionsOrCb, cb) {
370
+ const command = new GetPortalCommand(args);
376
371
  if (typeof optionsOrCb === "function") {
377
372
  this.send(command, optionsOrCb);
378
373
  }
379
374
  else if (typeof cb === "function") {
380
375
  if (typeof optionsOrCb !== "object")
381
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
376
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
382
377
  this.send(command, optionsOrCb || {}, cb);
383
378
  }
384
379
  else {
385
380
  return this.send(command, optionsOrCb);
386
381
  }
387
- };
388
- WorkSpacesWeb.prototype.getPortalServiceProviderMetadata = function (args, optionsOrCb, cb) {
389
- var command = new GetPortalServiceProviderMetadataCommand(args);
382
+ }
383
+ getPortalServiceProviderMetadata(args, optionsOrCb, cb) {
384
+ const command = new GetPortalServiceProviderMetadataCommand(args);
390
385
  if (typeof optionsOrCb === "function") {
391
386
  this.send(command, optionsOrCb);
392
387
  }
393
388
  else if (typeof cb === "function") {
394
389
  if (typeof optionsOrCb !== "object")
395
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
390
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
396
391
  this.send(command, optionsOrCb || {}, cb);
397
392
  }
398
393
  else {
399
394
  return this.send(command, optionsOrCb);
400
395
  }
401
- };
402
- WorkSpacesWeb.prototype.getTrustStore = function (args, optionsOrCb, cb) {
403
- var command = new GetTrustStoreCommand(args);
396
+ }
397
+ getTrustStore(args, optionsOrCb, cb) {
398
+ const command = new GetTrustStoreCommand(args);
404
399
  if (typeof optionsOrCb === "function") {
405
400
  this.send(command, optionsOrCb);
406
401
  }
407
402
  else if (typeof cb === "function") {
408
403
  if (typeof optionsOrCb !== "object")
409
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
404
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
410
405
  this.send(command, optionsOrCb || {}, cb);
411
406
  }
412
407
  else {
413
408
  return this.send(command, optionsOrCb);
414
409
  }
415
- };
416
- WorkSpacesWeb.prototype.getTrustStoreCertificate = function (args, optionsOrCb, cb) {
417
- var command = new GetTrustStoreCertificateCommand(args);
410
+ }
411
+ getTrustStoreCertificate(args, optionsOrCb, cb) {
412
+ const command = new GetTrustStoreCertificateCommand(args);
418
413
  if (typeof optionsOrCb === "function") {
419
414
  this.send(command, optionsOrCb);
420
415
  }
421
416
  else if (typeof cb === "function") {
422
417
  if (typeof optionsOrCb !== "object")
423
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
418
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
424
419
  this.send(command, optionsOrCb || {}, cb);
425
420
  }
426
421
  else {
427
422
  return this.send(command, optionsOrCb);
428
423
  }
429
- };
430
- WorkSpacesWeb.prototype.getUserSettings = function (args, optionsOrCb, cb) {
431
- var command = new GetUserSettingsCommand(args);
424
+ }
425
+ getUserSettings(args, optionsOrCb, cb) {
426
+ const command = new GetUserSettingsCommand(args);
432
427
  if (typeof optionsOrCb === "function") {
433
428
  this.send(command, optionsOrCb);
434
429
  }
435
430
  else if (typeof cb === "function") {
436
431
  if (typeof optionsOrCb !== "object")
437
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
432
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
438
433
  this.send(command, optionsOrCb || {}, cb);
439
434
  }
440
435
  else {
441
436
  return this.send(command, optionsOrCb);
442
437
  }
443
- };
444
- WorkSpacesWeb.prototype.listBrowserSettings = function (args, optionsOrCb, cb) {
445
- var command = new ListBrowserSettingsCommand(args);
438
+ }
439
+ listBrowserSettings(args, optionsOrCb, cb) {
440
+ const command = new ListBrowserSettingsCommand(args);
446
441
  if (typeof optionsOrCb === "function") {
447
442
  this.send(command, optionsOrCb);
448
443
  }
449
444
  else if (typeof cb === "function") {
450
445
  if (typeof optionsOrCb !== "object")
451
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
446
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
452
447
  this.send(command, optionsOrCb || {}, cb);
453
448
  }
454
449
  else {
455
450
  return this.send(command, optionsOrCb);
456
451
  }
457
- };
458
- WorkSpacesWeb.prototype.listIdentityProviders = function (args, optionsOrCb, cb) {
459
- var command = new ListIdentityProvidersCommand(args);
452
+ }
453
+ listIdentityProviders(args, optionsOrCb, cb) {
454
+ const command = new ListIdentityProvidersCommand(args);
460
455
  if (typeof optionsOrCb === "function") {
461
456
  this.send(command, optionsOrCb);
462
457
  }
463
458
  else if (typeof cb === "function") {
464
459
  if (typeof optionsOrCb !== "object")
465
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
460
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
466
461
  this.send(command, optionsOrCb || {}, cb);
467
462
  }
468
463
  else {
469
464
  return this.send(command, optionsOrCb);
470
465
  }
471
- };
472
- WorkSpacesWeb.prototype.listNetworkSettings = function (args, optionsOrCb, cb) {
473
- var command = new ListNetworkSettingsCommand(args);
466
+ }
467
+ listNetworkSettings(args, optionsOrCb, cb) {
468
+ const command = new ListNetworkSettingsCommand(args);
474
469
  if (typeof optionsOrCb === "function") {
475
470
  this.send(command, optionsOrCb);
476
471
  }
477
472
  else if (typeof cb === "function") {
478
473
  if (typeof optionsOrCb !== "object")
479
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
474
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
480
475
  this.send(command, optionsOrCb || {}, cb);
481
476
  }
482
477
  else {
483
478
  return this.send(command, optionsOrCb);
484
479
  }
485
- };
486
- WorkSpacesWeb.prototype.listPortals = function (args, optionsOrCb, cb) {
487
- var command = new ListPortalsCommand(args);
480
+ }
481
+ listPortals(args, optionsOrCb, cb) {
482
+ const command = new ListPortalsCommand(args);
488
483
  if (typeof optionsOrCb === "function") {
489
484
  this.send(command, optionsOrCb);
490
485
  }
491
486
  else if (typeof cb === "function") {
492
487
  if (typeof optionsOrCb !== "object")
493
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
488
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
494
489
  this.send(command, optionsOrCb || {}, cb);
495
490
  }
496
491
  else {
497
492
  return this.send(command, optionsOrCb);
498
493
  }
499
- };
500
- WorkSpacesWeb.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
501
- var command = new ListTagsForResourceCommand(args);
494
+ }
495
+ listTagsForResource(args, optionsOrCb, cb) {
496
+ const command = new ListTagsForResourceCommand(args);
502
497
  if (typeof optionsOrCb === "function") {
503
498
  this.send(command, optionsOrCb);
504
499
  }
505
500
  else if (typeof cb === "function") {
506
501
  if (typeof optionsOrCb !== "object")
507
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
502
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
508
503
  this.send(command, optionsOrCb || {}, cb);
509
504
  }
510
505
  else {
511
506
  return this.send(command, optionsOrCb);
512
507
  }
513
- };
514
- WorkSpacesWeb.prototype.listTrustStoreCertificates = function (args, optionsOrCb, cb) {
515
- var command = new ListTrustStoreCertificatesCommand(args);
508
+ }
509
+ listTrustStoreCertificates(args, optionsOrCb, cb) {
510
+ const command = new ListTrustStoreCertificatesCommand(args);
516
511
  if (typeof optionsOrCb === "function") {
517
512
  this.send(command, optionsOrCb);
518
513
  }
519
514
  else if (typeof cb === "function") {
520
515
  if (typeof optionsOrCb !== "object")
521
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
516
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
522
517
  this.send(command, optionsOrCb || {}, cb);
523
518
  }
524
519
  else {
525
520
  return this.send(command, optionsOrCb);
526
521
  }
527
- };
528
- WorkSpacesWeb.prototype.listTrustStores = function (args, optionsOrCb, cb) {
529
- var command = new ListTrustStoresCommand(args);
522
+ }
523
+ listTrustStores(args, optionsOrCb, cb) {
524
+ const command = new ListTrustStoresCommand(args);
530
525
  if (typeof optionsOrCb === "function") {
531
526
  this.send(command, optionsOrCb);
532
527
  }
533
528
  else if (typeof cb === "function") {
534
529
  if (typeof optionsOrCb !== "object")
535
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
530
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
536
531
  this.send(command, optionsOrCb || {}, cb);
537
532
  }
538
533
  else {
539
534
  return this.send(command, optionsOrCb);
540
535
  }
541
- };
542
- WorkSpacesWeb.prototype.listUserSettings = function (args, optionsOrCb, cb) {
543
- var command = new ListUserSettingsCommand(args);
536
+ }
537
+ listUserSettings(args, optionsOrCb, cb) {
538
+ const command = new ListUserSettingsCommand(args);
544
539
  if (typeof optionsOrCb === "function") {
545
540
  this.send(command, optionsOrCb);
546
541
  }
547
542
  else if (typeof cb === "function") {
548
543
  if (typeof optionsOrCb !== "object")
549
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
544
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
550
545
  this.send(command, optionsOrCb || {}, cb);
551
546
  }
552
547
  else {
553
548
  return this.send(command, optionsOrCb);
554
549
  }
555
- };
556
- WorkSpacesWeb.prototype.tagResource = function (args, optionsOrCb, cb) {
557
- var command = new TagResourceCommand(args);
550
+ }
551
+ tagResource(args, optionsOrCb, cb) {
552
+ const command = new TagResourceCommand(args);
558
553
  if (typeof optionsOrCb === "function") {
559
554
  this.send(command, optionsOrCb);
560
555
  }
561
556
  else if (typeof cb === "function") {
562
557
  if (typeof optionsOrCb !== "object")
563
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
558
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
564
559
  this.send(command, optionsOrCb || {}, cb);
565
560
  }
566
561
  else {
567
562
  return this.send(command, optionsOrCb);
568
563
  }
569
- };
570
- WorkSpacesWeb.prototype.untagResource = function (args, optionsOrCb, cb) {
571
- var command = new UntagResourceCommand(args);
564
+ }
565
+ untagResource(args, optionsOrCb, cb) {
566
+ const command = new UntagResourceCommand(args);
572
567
  if (typeof optionsOrCb === "function") {
573
568
  this.send(command, optionsOrCb);
574
569
  }
575
570
  else if (typeof cb === "function") {
576
571
  if (typeof optionsOrCb !== "object")
577
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
572
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
578
573
  this.send(command, optionsOrCb || {}, cb);
579
574
  }
580
575
  else {
581
576
  return this.send(command, optionsOrCb);
582
577
  }
583
- };
584
- WorkSpacesWeb.prototype.updateBrowserSettings = function (args, optionsOrCb, cb) {
585
- var command = new UpdateBrowserSettingsCommand(args);
578
+ }
579
+ updateBrowserSettings(args, optionsOrCb, cb) {
580
+ const command = new UpdateBrowserSettingsCommand(args);
586
581
  if (typeof optionsOrCb === "function") {
587
582
  this.send(command, optionsOrCb);
588
583
  }
589
584
  else if (typeof cb === "function") {
590
585
  if (typeof optionsOrCb !== "object")
591
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
586
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
592
587
  this.send(command, optionsOrCb || {}, cb);
593
588
  }
594
589
  else {
595
590
  return this.send(command, optionsOrCb);
596
591
  }
597
- };
598
- WorkSpacesWeb.prototype.updateIdentityProvider = function (args, optionsOrCb, cb) {
599
- var command = new UpdateIdentityProviderCommand(args);
592
+ }
593
+ updateIdentityProvider(args, optionsOrCb, cb) {
594
+ const command = new UpdateIdentityProviderCommand(args);
600
595
  if (typeof optionsOrCb === "function") {
601
596
  this.send(command, optionsOrCb);
602
597
  }
603
598
  else if (typeof cb === "function") {
604
599
  if (typeof optionsOrCb !== "object")
605
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
600
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
606
601
  this.send(command, optionsOrCb || {}, cb);
607
602
  }
608
603
  else {
609
604
  return this.send(command, optionsOrCb);
610
605
  }
611
- };
612
- WorkSpacesWeb.prototype.updateNetworkSettings = function (args, optionsOrCb, cb) {
613
- var command = new UpdateNetworkSettingsCommand(args);
606
+ }
607
+ updateNetworkSettings(args, optionsOrCb, cb) {
608
+ const command = new UpdateNetworkSettingsCommand(args);
614
609
  if (typeof optionsOrCb === "function") {
615
610
  this.send(command, optionsOrCb);
616
611
  }
617
612
  else if (typeof cb === "function") {
618
613
  if (typeof optionsOrCb !== "object")
619
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
614
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
620
615
  this.send(command, optionsOrCb || {}, cb);
621
616
  }
622
617
  else {
623
618
  return this.send(command, optionsOrCb);
624
619
  }
625
- };
626
- WorkSpacesWeb.prototype.updatePortal = function (args, optionsOrCb, cb) {
627
- var command = new UpdatePortalCommand(args);
620
+ }
621
+ updatePortal(args, optionsOrCb, cb) {
622
+ const command = new UpdatePortalCommand(args);
628
623
  if (typeof optionsOrCb === "function") {
629
624
  this.send(command, optionsOrCb);
630
625
  }
631
626
  else if (typeof cb === "function") {
632
627
  if (typeof optionsOrCb !== "object")
633
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
628
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
634
629
  this.send(command, optionsOrCb || {}, cb);
635
630
  }
636
631
  else {
637
632
  return this.send(command, optionsOrCb);
638
633
  }
639
- };
640
- WorkSpacesWeb.prototype.updateTrustStore = function (args, optionsOrCb, cb) {
641
- var command = new UpdateTrustStoreCommand(args);
634
+ }
635
+ updateTrustStore(args, optionsOrCb, cb) {
636
+ const command = new UpdateTrustStoreCommand(args);
642
637
  if (typeof optionsOrCb === "function") {
643
638
  this.send(command, optionsOrCb);
644
639
  }
645
640
  else if (typeof cb === "function") {
646
641
  if (typeof optionsOrCb !== "object")
647
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
642
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
648
643
  this.send(command, optionsOrCb || {}, cb);
649
644
  }
650
645
  else {
651
646
  return this.send(command, optionsOrCb);
652
647
  }
653
- };
654
- WorkSpacesWeb.prototype.updateUserSettings = function (args, optionsOrCb, cb) {
655
- var command = new UpdateUserSettingsCommand(args);
648
+ }
649
+ updateUserSettings(args, optionsOrCb, cb) {
650
+ const command = new UpdateUserSettingsCommand(args);
656
651
  if (typeof optionsOrCb === "function") {
657
652
  this.send(command, optionsOrCb);
658
653
  }
659
654
  else if (typeof cb === "function") {
660
655
  if (typeof optionsOrCb !== "object")
661
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
656
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
662
657
  this.send(command, optionsOrCb || {}, cb);
663
658
  }
664
659
  else {
665
660
  return this.send(command, optionsOrCb);
666
661
  }
667
- };
668
- return WorkSpacesWeb;
669
- }(WorkSpacesWebClient));
670
- export { WorkSpacesWeb };
662
+ }
663
+ }