@aws-sdk/client-workmail 3.185.0 → 3.188.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/WorkMail.js +322 -329
  3. package/dist-es/WorkMailClient.js +22 -28
  4. package/dist-es/commands/AssociateDelegateToResourceCommand.js +21 -28
  5. package/dist-es/commands/AssociateMemberToGroupCommand.js +21 -28
  6. package/dist-es/commands/AssumeImpersonationRoleCommand.js +21 -28
  7. package/dist-es/commands/CancelMailboxExportJobCommand.js +21 -28
  8. package/dist-es/commands/CreateAliasCommand.js +21 -28
  9. package/dist-es/commands/CreateAvailabilityConfigurationCommand.js +21 -28
  10. package/dist-es/commands/CreateGroupCommand.js +21 -28
  11. package/dist-es/commands/CreateImpersonationRoleCommand.js +21 -28
  12. package/dist-es/commands/CreateMobileDeviceAccessRuleCommand.js +21 -28
  13. package/dist-es/commands/CreateOrganizationCommand.js +21 -28
  14. package/dist-es/commands/CreateResourceCommand.js +21 -28
  15. package/dist-es/commands/CreateUserCommand.js +21 -28
  16. package/dist-es/commands/DeleteAccessControlRuleCommand.js +21 -28
  17. package/dist-es/commands/DeleteAliasCommand.js +21 -28
  18. package/dist-es/commands/DeleteAvailabilityConfigurationCommand.js +21 -28
  19. package/dist-es/commands/DeleteEmailMonitoringConfigurationCommand.js +21 -28
  20. package/dist-es/commands/DeleteGroupCommand.js +21 -28
  21. package/dist-es/commands/DeleteImpersonationRoleCommand.js +21 -28
  22. package/dist-es/commands/DeleteMailboxPermissionsCommand.js +21 -28
  23. package/dist-es/commands/DeleteMobileDeviceAccessOverrideCommand.js +21 -28
  24. package/dist-es/commands/DeleteMobileDeviceAccessRuleCommand.js +21 -28
  25. package/dist-es/commands/DeleteOrganizationCommand.js +21 -28
  26. package/dist-es/commands/DeleteResourceCommand.js +21 -28
  27. package/dist-es/commands/DeleteRetentionPolicyCommand.js +21 -28
  28. package/dist-es/commands/DeleteUserCommand.js +21 -28
  29. package/dist-es/commands/DeregisterFromWorkMailCommand.js +21 -28
  30. package/dist-es/commands/DeregisterMailDomainCommand.js +21 -28
  31. package/dist-es/commands/DescribeEmailMonitoringConfigurationCommand.js +21 -28
  32. package/dist-es/commands/DescribeGroupCommand.js +21 -28
  33. package/dist-es/commands/DescribeInboundDmarcSettingsCommand.js +21 -28
  34. package/dist-es/commands/DescribeMailboxExportJobCommand.js +21 -28
  35. package/dist-es/commands/DescribeOrganizationCommand.js +21 -28
  36. package/dist-es/commands/DescribeResourceCommand.js +21 -28
  37. package/dist-es/commands/DescribeUserCommand.js +21 -28
  38. package/dist-es/commands/DisassociateDelegateFromResourceCommand.js +21 -28
  39. package/dist-es/commands/DisassociateMemberFromGroupCommand.js +21 -28
  40. package/dist-es/commands/GetAccessControlEffectCommand.js +21 -28
  41. package/dist-es/commands/GetDefaultRetentionPolicyCommand.js +21 -28
  42. package/dist-es/commands/GetImpersonationRoleCommand.js +21 -28
  43. package/dist-es/commands/GetImpersonationRoleEffectCommand.js +21 -28
  44. package/dist-es/commands/GetMailDomainCommand.js +21 -28
  45. package/dist-es/commands/GetMailboxDetailsCommand.js +21 -28
  46. package/dist-es/commands/GetMobileDeviceAccessEffectCommand.js +21 -28
  47. package/dist-es/commands/GetMobileDeviceAccessOverrideCommand.js +21 -28
  48. package/dist-es/commands/ListAccessControlRulesCommand.js +21 -28
  49. package/dist-es/commands/ListAliasesCommand.js +21 -28
  50. package/dist-es/commands/ListAvailabilityConfigurationsCommand.js +21 -28
  51. package/dist-es/commands/ListGroupMembersCommand.js +21 -28
  52. package/dist-es/commands/ListGroupsCommand.js +21 -28
  53. package/dist-es/commands/ListImpersonationRolesCommand.js +21 -28
  54. package/dist-es/commands/ListMailDomainsCommand.js +21 -28
  55. package/dist-es/commands/ListMailboxExportJobsCommand.js +21 -28
  56. package/dist-es/commands/ListMailboxPermissionsCommand.js +21 -28
  57. package/dist-es/commands/ListMobileDeviceAccessOverridesCommand.js +21 -28
  58. package/dist-es/commands/ListMobileDeviceAccessRulesCommand.js +21 -28
  59. package/dist-es/commands/ListOrganizationsCommand.js +21 -28
  60. package/dist-es/commands/ListResourceDelegatesCommand.js +21 -28
  61. package/dist-es/commands/ListResourcesCommand.js +21 -28
  62. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  63. package/dist-es/commands/ListUsersCommand.js +21 -28
  64. package/dist-es/commands/PutAccessControlRuleCommand.js +21 -28
  65. package/dist-es/commands/PutEmailMonitoringConfigurationCommand.js +21 -28
  66. package/dist-es/commands/PutInboundDmarcSettingsCommand.js +21 -28
  67. package/dist-es/commands/PutMailboxPermissionsCommand.js +21 -28
  68. package/dist-es/commands/PutMobileDeviceAccessOverrideCommand.js +21 -28
  69. package/dist-es/commands/PutRetentionPolicyCommand.js +21 -28
  70. package/dist-es/commands/RegisterMailDomainCommand.js +21 -28
  71. package/dist-es/commands/RegisterToWorkMailCommand.js +21 -28
  72. package/dist-es/commands/ResetPasswordCommand.js +21 -28
  73. package/dist-es/commands/StartMailboxExportJobCommand.js +21 -28
  74. package/dist-es/commands/TagResourceCommand.js +21 -28
  75. package/dist-es/commands/TestAvailabilityConfigurationCommand.js +21 -28
  76. package/dist-es/commands/UntagResourceCommand.js +21 -28
  77. package/dist-es/commands/UpdateAvailabilityConfigurationCommand.js +21 -28
  78. package/dist-es/commands/UpdateDefaultMailDomainCommand.js +21 -28
  79. package/dist-es/commands/UpdateImpersonationRoleCommand.js +21 -28
  80. package/dist-es/commands/UpdateMailboxQuotaCommand.js +21 -28
  81. package/dist-es/commands/UpdateMobileDeviceAccessRuleCommand.js +21 -28
  82. package/dist-es/commands/UpdatePrimaryEmailAddressCommand.js +21 -28
  83. package/dist-es/commands/UpdateResourceCommand.js +21 -28
  84. package/dist-es/endpoints.js +8 -8
  85. package/dist-es/models/WorkMailServiceException.js +5 -10
  86. package/dist-es/models/models_0.js +826 -450
  87. package/dist-es/pagination/ListAliasesPaginator.js +25 -68
  88. package/dist-es/pagination/ListAvailabilityConfigurationsPaginator.js +25 -68
  89. package/dist-es/pagination/ListGroupMembersPaginator.js +25 -68
  90. package/dist-es/pagination/ListGroupsPaginator.js +25 -68
  91. package/dist-es/pagination/ListImpersonationRolesPaginator.js +25 -68
  92. package/dist-es/pagination/ListMailDomainsPaginator.js +25 -68
  93. package/dist-es/pagination/ListMailboxExportJobsPaginator.js +25 -68
  94. package/dist-es/pagination/ListMailboxPermissionsPaginator.js +25 -68
  95. package/dist-es/pagination/ListMobileDeviceAccessOverridesPaginator.js +25 -68
  96. package/dist-es/pagination/ListOrganizationsPaginator.js +25 -68
  97. package/dist-es/pagination/ListResourceDelegatesPaginator.js +25 -68
  98. package/dist-es/pagination/ListResourcesPaginator.js +25 -68
  99. package/dist-es/pagination/ListUsersPaginator.js +25 -68
  100. package/dist-es/protocols/Aws_json1_1.js +5368 -6916
  101. package/dist-es/runtimeConfig.browser.js +26 -12
  102. package/dist-es/runtimeConfig.js +30 -12
  103. package/dist-es/runtimeConfig.native.js +8 -5
  104. package/dist-es/runtimeConfig.shared.js +8 -11
  105. package/package.json +33 -33
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { AssociateDelegateToResourceCommand, } from "./commands/AssociateDelegateToResourceCommand";
3
2
  import { AssociateMemberToGroupCommand, } from "./commands/AssociateMemberToGroupCommand";
4
3
  import { AssumeImpersonationRoleCommand, } from "./commands/AssumeImpersonationRoleCommand";
@@ -80,1131 +79,1125 @@ import { UpdateMobileDeviceAccessRuleCommand, } from "./commands/UpdateMobileDev
80
79
  import { UpdatePrimaryEmailAddressCommand, } from "./commands/UpdatePrimaryEmailAddressCommand";
81
80
  import { UpdateResourceCommand, } from "./commands/UpdateResourceCommand";
82
81
  import { WorkMailClient } from "./WorkMailClient";
83
- var WorkMail = (function (_super) {
84
- __extends(WorkMail, _super);
85
- function WorkMail() {
86
- return _super !== null && _super.apply(this, arguments) || this;
87
- }
88
- WorkMail.prototype.associateDelegateToResource = function (args, optionsOrCb, cb) {
89
- var command = new AssociateDelegateToResourceCommand(args);
82
+ export class WorkMail extends WorkMailClient {
83
+ associateDelegateToResource(args, optionsOrCb, cb) {
84
+ const command = new AssociateDelegateToResourceCommand(args);
90
85
  if (typeof optionsOrCb === "function") {
91
86
  this.send(command, optionsOrCb);
92
87
  }
93
88
  else if (typeof cb === "function") {
94
89
  if (typeof optionsOrCb !== "object")
95
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
90
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
96
91
  this.send(command, optionsOrCb || {}, cb);
97
92
  }
98
93
  else {
99
94
  return this.send(command, optionsOrCb);
100
95
  }
101
- };
102
- WorkMail.prototype.associateMemberToGroup = function (args, optionsOrCb, cb) {
103
- var command = new AssociateMemberToGroupCommand(args);
96
+ }
97
+ associateMemberToGroup(args, optionsOrCb, cb) {
98
+ const command = new AssociateMemberToGroupCommand(args);
104
99
  if (typeof optionsOrCb === "function") {
105
100
  this.send(command, optionsOrCb);
106
101
  }
107
102
  else if (typeof cb === "function") {
108
103
  if (typeof optionsOrCb !== "object")
109
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
104
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
110
105
  this.send(command, optionsOrCb || {}, cb);
111
106
  }
112
107
  else {
113
108
  return this.send(command, optionsOrCb);
114
109
  }
115
- };
116
- WorkMail.prototype.assumeImpersonationRole = function (args, optionsOrCb, cb) {
117
- var command = new AssumeImpersonationRoleCommand(args);
110
+ }
111
+ assumeImpersonationRole(args, optionsOrCb, cb) {
112
+ const command = new AssumeImpersonationRoleCommand(args);
118
113
  if (typeof optionsOrCb === "function") {
119
114
  this.send(command, optionsOrCb);
120
115
  }
121
116
  else if (typeof cb === "function") {
122
117
  if (typeof optionsOrCb !== "object")
123
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
118
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
124
119
  this.send(command, optionsOrCb || {}, cb);
125
120
  }
126
121
  else {
127
122
  return this.send(command, optionsOrCb);
128
123
  }
129
- };
130
- WorkMail.prototype.cancelMailboxExportJob = function (args, optionsOrCb, cb) {
131
- var command = new CancelMailboxExportJobCommand(args);
124
+ }
125
+ cancelMailboxExportJob(args, optionsOrCb, cb) {
126
+ const command = new CancelMailboxExportJobCommand(args);
132
127
  if (typeof optionsOrCb === "function") {
133
128
  this.send(command, optionsOrCb);
134
129
  }
135
130
  else if (typeof cb === "function") {
136
131
  if (typeof optionsOrCb !== "object")
137
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
132
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
138
133
  this.send(command, optionsOrCb || {}, cb);
139
134
  }
140
135
  else {
141
136
  return this.send(command, optionsOrCb);
142
137
  }
143
- };
144
- WorkMail.prototype.createAlias = function (args, optionsOrCb, cb) {
145
- var command = new CreateAliasCommand(args);
138
+ }
139
+ createAlias(args, optionsOrCb, cb) {
140
+ const command = new CreateAliasCommand(args);
146
141
  if (typeof optionsOrCb === "function") {
147
142
  this.send(command, optionsOrCb);
148
143
  }
149
144
  else if (typeof cb === "function") {
150
145
  if (typeof optionsOrCb !== "object")
151
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
146
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
152
147
  this.send(command, optionsOrCb || {}, cb);
153
148
  }
154
149
  else {
155
150
  return this.send(command, optionsOrCb);
156
151
  }
157
- };
158
- WorkMail.prototype.createAvailabilityConfiguration = function (args, optionsOrCb, cb) {
159
- var command = new CreateAvailabilityConfigurationCommand(args);
152
+ }
153
+ createAvailabilityConfiguration(args, optionsOrCb, cb) {
154
+ const command = new CreateAvailabilityConfigurationCommand(args);
160
155
  if (typeof optionsOrCb === "function") {
161
156
  this.send(command, optionsOrCb);
162
157
  }
163
158
  else if (typeof cb === "function") {
164
159
  if (typeof optionsOrCb !== "object")
165
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
160
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
166
161
  this.send(command, optionsOrCb || {}, cb);
167
162
  }
168
163
  else {
169
164
  return this.send(command, optionsOrCb);
170
165
  }
171
- };
172
- WorkMail.prototype.createGroup = function (args, optionsOrCb, cb) {
173
- var command = new CreateGroupCommand(args);
166
+ }
167
+ createGroup(args, optionsOrCb, cb) {
168
+ const command = new CreateGroupCommand(args);
174
169
  if (typeof optionsOrCb === "function") {
175
170
  this.send(command, optionsOrCb);
176
171
  }
177
172
  else if (typeof cb === "function") {
178
173
  if (typeof optionsOrCb !== "object")
179
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
174
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
180
175
  this.send(command, optionsOrCb || {}, cb);
181
176
  }
182
177
  else {
183
178
  return this.send(command, optionsOrCb);
184
179
  }
185
- };
186
- WorkMail.prototype.createImpersonationRole = function (args, optionsOrCb, cb) {
187
- var command = new CreateImpersonationRoleCommand(args);
180
+ }
181
+ createImpersonationRole(args, optionsOrCb, cb) {
182
+ const command = new CreateImpersonationRoleCommand(args);
188
183
  if (typeof optionsOrCb === "function") {
189
184
  this.send(command, optionsOrCb);
190
185
  }
191
186
  else if (typeof cb === "function") {
192
187
  if (typeof optionsOrCb !== "object")
193
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
188
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
194
189
  this.send(command, optionsOrCb || {}, cb);
195
190
  }
196
191
  else {
197
192
  return this.send(command, optionsOrCb);
198
193
  }
199
- };
200
- WorkMail.prototype.createMobileDeviceAccessRule = function (args, optionsOrCb, cb) {
201
- var command = new CreateMobileDeviceAccessRuleCommand(args);
194
+ }
195
+ createMobileDeviceAccessRule(args, optionsOrCb, cb) {
196
+ const command = new CreateMobileDeviceAccessRuleCommand(args);
202
197
  if (typeof optionsOrCb === "function") {
203
198
  this.send(command, optionsOrCb);
204
199
  }
205
200
  else if (typeof cb === "function") {
206
201
  if (typeof optionsOrCb !== "object")
207
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
202
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
208
203
  this.send(command, optionsOrCb || {}, cb);
209
204
  }
210
205
  else {
211
206
  return this.send(command, optionsOrCb);
212
207
  }
213
- };
214
- WorkMail.prototype.createOrganization = function (args, optionsOrCb, cb) {
215
- var command = new CreateOrganizationCommand(args);
208
+ }
209
+ createOrganization(args, optionsOrCb, cb) {
210
+ const command = new CreateOrganizationCommand(args);
216
211
  if (typeof optionsOrCb === "function") {
217
212
  this.send(command, optionsOrCb);
218
213
  }
219
214
  else if (typeof cb === "function") {
220
215
  if (typeof optionsOrCb !== "object")
221
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
216
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
222
217
  this.send(command, optionsOrCb || {}, cb);
223
218
  }
224
219
  else {
225
220
  return this.send(command, optionsOrCb);
226
221
  }
227
- };
228
- WorkMail.prototype.createResource = function (args, optionsOrCb, cb) {
229
- var command = new CreateResourceCommand(args);
222
+ }
223
+ createResource(args, optionsOrCb, cb) {
224
+ const command = new CreateResourceCommand(args);
230
225
  if (typeof optionsOrCb === "function") {
231
226
  this.send(command, optionsOrCb);
232
227
  }
233
228
  else if (typeof cb === "function") {
234
229
  if (typeof optionsOrCb !== "object")
235
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
230
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
236
231
  this.send(command, optionsOrCb || {}, cb);
237
232
  }
238
233
  else {
239
234
  return this.send(command, optionsOrCb);
240
235
  }
241
- };
242
- WorkMail.prototype.createUser = function (args, optionsOrCb, cb) {
243
- var command = new CreateUserCommand(args);
236
+ }
237
+ createUser(args, optionsOrCb, cb) {
238
+ const command = new CreateUserCommand(args);
244
239
  if (typeof optionsOrCb === "function") {
245
240
  this.send(command, optionsOrCb);
246
241
  }
247
242
  else if (typeof cb === "function") {
248
243
  if (typeof optionsOrCb !== "object")
249
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
244
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
250
245
  this.send(command, optionsOrCb || {}, cb);
251
246
  }
252
247
  else {
253
248
  return this.send(command, optionsOrCb);
254
249
  }
255
- };
256
- WorkMail.prototype.deleteAccessControlRule = function (args, optionsOrCb, cb) {
257
- var command = new DeleteAccessControlRuleCommand(args);
250
+ }
251
+ deleteAccessControlRule(args, optionsOrCb, cb) {
252
+ const command = new DeleteAccessControlRuleCommand(args);
258
253
  if (typeof optionsOrCb === "function") {
259
254
  this.send(command, optionsOrCb);
260
255
  }
261
256
  else if (typeof cb === "function") {
262
257
  if (typeof optionsOrCb !== "object")
263
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
258
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
264
259
  this.send(command, optionsOrCb || {}, cb);
265
260
  }
266
261
  else {
267
262
  return this.send(command, optionsOrCb);
268
263
  }
269
- };
270
- WorkMail.prototype.deleteAlias = function (args, optionsOrCb, cb) {
271
- var command = new DeleteAliasCommand(args);
264
+ }
265
+ deleteAlias(args, optionsOrCb, cb) {
266
+ const command = new DeleteAliasCommand(args);
272
267
  if (typeof optionsOrCb === "function") {
273
268
  this.send(command, optionsOrCb);
274
269
  }
275
270
  else if (typeof cb === "function") {
276
271
  if (typeof optionsOrCb !== "object")
277
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
272
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
278
273
  this.send(command, optionsOrCb || {}, cb);
279
274
  }
280
275
  else {
281
276
  return this.send(command, optionsOrCb);
282
277
  }
283
- };
284
- WorkMail.prototype.deleteAvailabilityConfiguration = function (args, optionsOrCb, cb) {
285
- var command = new DeleteAvailabilityConfigurationCommand(args);
278
+ }
279
+ deleteAvailabilityConfiguration(args, optionsOrCb, cb) {
280
+ const command = new DeleteAvailabilityConfigurationCommand(args);
286
281
  if (typeof optionsOrCb === "function") {
287
282
  this.send(command, optionsOrCb);
288
283
  }
289
284
  else if (typeof cb === "function") {
290
285
  if (typeof optionsOrCb !== "object")
291
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
286
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
292
287
  this.send(command, optionsOrCb || {}, cb);
293
288
  }
294
289
  else {
295
290
  return this.send(command, optionsOrCb);
296
291
  }
297
- };
298
- WorkMail.prototype.deleteEmailMonitoringConfiguration = function (args, optionsOrCb, cb) {
299
- var command = new DeleteEmailMonitoringConfigurationCommand(args);
292
+ }
293
+ deleteEmailMonitoringConfiguration(args, optionsOrCb, cb) {
294
+ const command = new DeleteEmailMonitoringConfigurationCommand(args);
300
295
  if (typeof optionsOrCb === "function") {
301
296
  this.send(command, optionsOrCb);
302
297
  }
303
298
  else if (typeof cb === "function") {
304
299
  if (typeof optionsOrCb !== "object")
305
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
300
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
306
301
  this.send(command, optionsOrCb || {}, cb);
307
302
  }
308
303
  else {
309
304
  return this.send(command, optionsOrCb);
310
305
  }
311
- };
312
- WorkMail.prototype.deleteGroup = function (args, optionsOrCb, cb) {
313
- var command = new DeleteGroupCommand(args);
306
+ }
307
+ deleteGroup(args, optionsOrCb, cb) {
308
+ const command = new DeleteGroupCommand(args);
314
309
  if (typeof optionsOrCb === "function") {
315
310
  this.send(command, optionsOrCb);
316
311
  }
317
312
  else if (typeof cb === "function") {
318
313
  if (typeof optionsOrCb !== "object")
319
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
314
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
320
315
  this.send(command, optionsOrCb || {}, cb);
321
316
  }
322
317
  else {
323
318
  return this.send(command, optionsOrCb);
324
319
  }
325
- };
326
- WorkMail.prototype.deleteImpersonationRole = function (args, optionsOrCb, cb) {
327
- var command = new DeleteImpersonationRoleCommand(args);
320
+ }
321
+ deleteImpersonationRole(args, optionsOrCb, cb) {
322
+ const command = new DeleteImpersonationRoleCommand(args);
328
323
  if (typeof optionsOrCb === "function") {
329
324
  this.send(command, optionsOrCb);
330
325
  }
331
326
  else if (typeof cb === "function") {
332
327
  if (typeof optionsOrCb !== "object")
333
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
328
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
334
329
  this.send(command, optionsOrCb || {}, cb);
335
330
  }
336
331
  else {
337
332
  return this.send(command, optionsOrCb);
338
333
  }
339
- };
340
- WorkMail.prototype.deleteMailboxPermissions = function (args, optionsOrCb, cb) {
341
- var command = new DeleteMailboxPermissionsCommand(args);
334
+ }
335
+ deleteMailboxPermissions(args, optionsOrCb, cb) {
336
+ const command = new DeleteMailboxPermissionsCommand(args);
342
337
  if (typeof optionsOrCb === "function") {
343
338
  this.send(command, optionsOrCb);
344
339
  }
345
340
  else if (typeof cb === "function") {
346
341
  if (typeof optionsOrCb !== "object")
347
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
342
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
348
343
  this.send(command, optionsOrCb || {}, cb);
349
344
  }
350
345
  else {
351
346
  return this.send(command, optionsOrCb);
352
347
  }
353
- };
354
- WorkMail.prototype.deleteMobileDeviceAccessOverride = function (args, optionsOrCb, cb) {
355
- var command = new DeleteMobileDeviceAccessOverrideCommand(args);
348
+ }
349
+ deleteMobileDeviceAccessOverride(args, optionsOrCb, cb) {
350
+ const command = new DeleteMobileDeviceAccessOverrideCommand(args);
356
351
  if (typeof optionsOrCb === "function") {
357
352
  this.send(command, optionsOrCb);
358
353
  }
359
354
  else if (typeof cb === "function") {
360
355
  if (typeof optionsOrCb !== "object")
361
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
356
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
362
357
  this.send(command, optionsOrCb || {}, cb);
363
358
  }
364
359
  else {
365
360
  return this.send(command, optionsOrCb);
366
361
  }
367
- };
368
- WorkMail.prototype.deleteMobileDeviceAccessRule = function (args, optionsOrCb, cb) {
369
- var command = new DeleteMobileDeviceAccessRuleCommand(args);
362
+ }
363
+ deleteMobileDeviceAccessRule(args, optionsOrCb, cb) {
364
+ const command = new DeleteMobileDeviceAccessRuleCommand(args);
370
365
  if (typeof optionsOrCb === "function") {
371
366
  this.send(command, optionsOrCb);
372
367
  }
373
368
  else if (typeof cb === "function") {
374
369
  if (typeof optionsOrCb !== "object")
375
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
370
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
376
371
  this.send(command, optionsOrCb || {}, cb);
377
372
  }
378
373
  else {
379
374
  return this.send(command, optionsOrCb);
380
375
  }
381
- };
382
- WorkMail.prototype.deleteOrganization = function (args, optionsOrCb, cb) {
383
- var command = new DeleteOrganizationCommand(args);
376
+ }
377
+ deleteOrganization(args, optionsOrCb, cb) {
378
+ const command = new DeleteOrganizationCommand(args);
384
379
  if (typeof optionsOrCb === "function") {
385
380
  this.send(command, optionsOrCb);
386
381
  }
387
382
  else if (typeof cb === "function") {
388
383
  if (typeof optionsOrCb !== "object")
389
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
384
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
390
385
  this.send(command, optionsOrCb || {}, cb);
391
386
  }
392
387
  else {
393
388
  return this.send(command, optionsOrCb);
394
389
  }
395
- };
396
- WorkMail.prototype.deleteResource = function (args, optionsOrCb, cb) {
397
- var command = new DeleteResourceCommand(args);
390
+ }
391
+ deleteResource(args, optionsOrCb, cb) {
392
+ const command = new DeleteResourceCommand(args);
398
393
  if (typeof optionsOrCb === "function") {
399
394
  this.send(command, optionsOrCb);
400
395
  }
401
396
  else if (typeof cb === "function") {
402
397
  if (typeof optionsOrCb !== "object")
403
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
398
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
404
399
  this.send(command, optionsOrCb || {}, cb);
405
400
  }
406
401
  else {
407
402
  return this.send(command, optionsOrCb);
408
403
  }
409
- };
410
- WorkMail.prototype.deleteRetentionPolicy = function (args, optionsOrCb, cb) {
411
- var command = new DeleteRetentionPolicyCommand(args);
404
+ }
405
+ deleteRetentionPolicy(args, optionsOrCb, cb) {
406
+ const command = new DeleteRetentionPolicyCommand(args);
412
407
  if (typeof optionsOrCb === "function") {
413
408
  this.send(command, optionsOrCb);
414
409
  }
415
410
  else if (typeof cb === "function") {
416
411
  if (typeof optionsOrCb !== "object")
417
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
412
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
418
413
  this.send(command, optionsOrCb || {}, cb);
419
414
  }
420
415
  else {
421
416
  return this.send(command, optionsOrCb);
422
417
  }
423
- };
424
- WorkMail.prototype.deleteUser = function (args, optionsOrCb, cb) {
425
- var command = new DeleteUserCommand(args);
418
+ }
419
+ deleteUser(args, optionsOrCb, cb) {
420
+ const command = new DeleteUserCommand(args);
426
421
  if (typeof optionsOrCb === "function") {
427
422
  this.send(command, optionsOrCb);
428
423
  }
429
424
  else if (typeof cb === "function") {
430
425
  if (typeof optionsOrCb !== "object")
431
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
426
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
432
427
  this.send(command, optionsOrCb || {}, cb);
433
428
  }
434
429
  else {
435
430
  return this.send(command, optionsOrCb);
436
431
  }
437
- };
438
- WorkMail.prototype.deregisterFromWorkMail = function (args, optionsOrCb, cb) {
439
- var command = new DeregisterFromWorkMailCommand(args);
432
+ }
433
+ deregisterFromWorkMail(args, optionsOrCb, cb) {
434
+ const command = new DeregisterFromWorkMailCommand(args);
440
435
  if (typeof optionsOrCb === "function") {
441
436
  this.send(command, optionsOrCb);
442
437
  }
443
438
  else if (typeof cb === "function") {
444
439
  if (typeof optionsOrCb !== "object")
445
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
440
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
446
441
  this.send(command, optionsOrCb || {}, cb);
447
442
  }
448
443
  else {
449
444
  return this.send(command, optionsOrCb);
450
445
  }
451
- };
452
- WorkMail.prototype.deregisterMailDomain = function (args, optionsOrCb, cb) {
453
- var command = new DeregisterMailDomainCommand(args);
446
+ }
447
+ deregisterMailDomain(args, optionsOrCb, cb) {
448
+ const command = new DeregisterMailDomainCommand(args);
454
449
  if (typeof optionsOrCb === "function") {
455
450
  this.send(command, optionsOrCb);
456
451
  }
457
452
  else if (typeof cb === "function") {
458
453
  if (typeof optionsOrCb !== "object")
459
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
454
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
460
455
  this.send(command, optionsOrCb || {}, cb);
461
456
  }
462
457
  else {
463
458
  return this.send(command, optionsOrCb);
464
459
  }
465
- };
466
- WorkMail.prototype.describeEmailMonitoringConfiguration = function (args, optionsOrCb, cb) {
467
- var command = new DescribeEmailMonitoringConfigurationCommand(args);
460
+ }
461
+ describeEmailMonitoringConfiguration(args, optionsOrCb, cb) {
462
+ const command = new DescribeEmailMonitoringConfigurationCommand(args);
468
463
  if (typeof optionsOrCb === "function") {
469
464
  this.send(command, optionsOrCb);
470
465
  }
471
466
  else if (typeof cb === "function") {
472
467
  if (typeof optionsOrCb !== "object")
473
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
468
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
474
469
  this.send(command, optionsOrCb || {}, cb);
475
470
  }
476
471
  else {
477
472
  return this.send(command, optionsOrCb);
478
473
  }
479
- };
480
- WorkMail.prototype.describeGroup = function (args, optionsOrCb, cb) {
481
- var command = new DescribeGroupCommand(args);
474
+ }
475
+ describeGroup(args, optionsOrCb, cb) {
476
+ const command = new DescribeGroupCommand(args);
482
477
  if (typeof optionsOrCb === "function") {
483
478
  this.send(command, optionsOrCb);
484
479
  }
485
480
  else if (typeof cb === "function") {
486
481
  if (typeof optionsOrCb !== "object")
487
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
482
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
488
483
  this.send(command, optionsOrCb || {}, cb);
489
484
  }
490
485
  else {
491
486
  return this.send(command, optionsOrCb);
492
487
  }
493
- };
494
- WorkMail.prototype.describeInboundDmarcSettings = function (args, optionsOrCb, cb) {
495
- var command = new DescribeInboundDmarcSettingsCommand(args);
488
+ }
489
+ describeInboundDmarcSettings(args, optionsOrCb, cb) {
490
+ const command = new DescribeInboundDmarcSettingsCommand(args);
496
491
  if (typeof optionsOrCb === "function") {
497
492
  this.send(command, optionsOrCb);
498
493
  }
499
494
  else if (typeof cb === "function") {
500
495
  if (typeof optionsOrCb !== "object")
501
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
496
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
502
497
  this.send(command, optionsOrCb || {}, cb);
503
498
  }
504
499
  else {
505
500
  return this.send(command, optionsOrCb);
506
501
  }
507
- };
508
- WorkMail.prototype.describeMailboxExportJob = function (args, optionsOrCb, cb) {
509
- var command = new DescribeMailboxExportJobCommand(args);
502
+ }
503
+ describeMailboxExportJob(args, optionsOrCb, cb) {
504
+ const command = new DescribeMailboxExportJobCommand(args);
510
505
  if (typeof optionsOrCb === "function") {
511
506
  this.send(command, optionsOrCb);
512
507
  }
513
508
  else if (typeof cb === "function") {
514
509
  if (typeof optionsOrCb !== "object")
515
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
510
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
516
511
  this.send(command, optionsOrCb || {}, cb);
517
512
  }
518
513
  else {
519
514
  return this.send(command, optionsOrCb);
520
515
  }
521
- };
522
- WorkMail.prototype.describeOrganization = function (args, optionsOrCb, cb) {
523
- var command = new DescribeOrganizationCommand(args);
516
+ }
517
+ describeOrganization(args, optionsOrCb, cb) {
518
+ const command = new DescribeOrganizationCommand(args);
524
519
  if (typeof optionsOrCb === "function") {
525
520
  this.send(command, optionsOrCb);
526
521
  }
527
522
  else if (typeof cb === "function") {
528
523
  if (typeof optionsOrCb !== "object")
529
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
524
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
530
525
  this.send(command, optionsOrCb || {}, cb);
531
526
  }
532
527
  else {
533
528
  return this.send(command, optionsOrCb);
534
529
  }
535
- };
536
- WorkMail.prototype.describeResource = function (args, optionsOrCb, cb) {
537
- var command = new DescribeResourceCommand(args);
530
+ }
531
+ describeResource(args, optionsOrCb, cb) {
532
+ const command = new DescribeResourceCommand(args);
538
533
  if (typeof optionsOrCb === "function") {
539
534
  this.send(command, optionsOrCb);
540
535
  }
541
536
  else if (typeof cb === "function") {
542
537
  if (typeof optionsOrCb !== "object")
543
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
538
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
544
539
  this.send(command, optionsOrCb || {}, cb);
545
540
  }
546
541
  else {
547
542
  return this.send(command, optionsOrCb);
548
543
  }
549
- };
550
- WorkMail.prototype.describeUser = function (args, optionsOrCb, cb) {
551
- var command = new DescribeUserCommand(args);
544
+ }
545
+ describeUser(args, optionsOrCb, cb) {
546
+ const command = new DescribeUserCommand(args);
552
547
  if (typeof optionsOrCb === "function") {
553
548
  this.send(command, optionsOrCb);
554
549
  }
555
550
  else if (typeof cb === "function") {
556
551
  if (typeof optionsOrCb !== "object")
557
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
552
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
558
553
  this.send(command, optionsOrCb || {}, cb);
559
554
  }
560
555
  else {
561
556
  return this.send(command, optionsOrCb);
562
557
  }
563
- };
564
- WorkMail.prototype.disassociateDelegateFromResource = function (args, optionsOrCb, cb) {
565
- var command = new DisassociateDelegateFromResourceCommand(args);
558
+ }
559
+ disassociateDelegateFromResource(args, optionsOrCb, cb) {
560
+ const command = new DisassociateDelegateFromResourceCommand(args);
566
561
  if (typeof optionsOrCb === "function") {
567
562
  this.send(command, optionsOrCb);
568
563
  }
569
564
  else if (typeof cb === "function") {
570
565
  if (typeof optionsOrCb !== "object")
571
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
566
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
572
567
  this.send(command, optionsOrCb || {}, cb);
573
568
  }
574
569
  else {
575
570
  return this.send(command, optionsOrCb);
576
571
  }
577
- };
578
- WorkMail.prototype.disassociateMemberFromGroup = function (args, optionsOrCb, cb) {
579
- var command = new DisassociateMemberFromGroupCommand(args);
572
+ }
573
+ disassociateMemberFromGroup(args, optionsOrCb, cb) {
574
+ const command = new DisassociateMemberFromGroupCommand(args);
580
575
  if (typeof optionsOrCb === "function") {
581
576
  this.send(command, optionsOrCb);
582
577
  }
583
578
  else if (typeof cb === "function") {
584
579
  if (typeof optionsOrCb !== "object")
585
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
580
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
586
581
  this.send(command, optionsOrCb || {}, cb);
587
582
  }
588
583
  else {
589
584
  return this.send(command, optionsOrCb);
590
585
  }
591
- };
592
- WorkMail.prototype.getAccessControlEffect = function (args, optionsOrCb, cb) {
593
- var command = new GetAccessControlEffectCommand(args);
586
+ }
587
+ getAccessControlEffect(args, optionsOrCb, cb) {
588
+ const command = new GetAccessControlEffectCommand(args);
594
589
  if (typeof optionsOrCb === "function") {
595
590
  this.send(command, optionsOrCb);
596
591
  }
597
592
  else if (typeof cb === "function") {
598
593
  if (typeof optionsOrCb !== "object")
599
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
594
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
600
595
  this.send(command, optionsOrCb || {}, cb);
601
596
  }
602
597
  else {
603
598
  return this.send(command, optionsOrCb);
604
599
  }
605
- };
606
- WorkMail.prototype.getDefaultRetentionPolicy = function (args, optionsOrCb, cb) {
607
- var command = new GetDefaultRetentionPolicyCommand(args);
600
+ }
601
+ getDefaultRetentionPolicy(args, optionsOrCb, cb) {
602
+ const command = new GetDefaultRetentionPolicyCommand(args);
608
603
  if (typeof optionsOrCb === "function") {
609
604
  this.send(command, optionsOrCb);
610
605
  }
611
606
  else if (typeof cb === "function") {
612
607
  if (typeof optionsOrCb !== "object")
613
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
608
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
614
609
  this.send(command, optionsOrCb || {}, cb);
615
610
  }
616
611
  else {
617
612
  return this.send(command, optionsOrCb);
618
613
  }
619
- };
620
- WorkMail.prototype.getImpersonationRole = function (args, optionsOrCb, cb) {
621
- var command = new GetImpersonationRoleCommand(args);
614
+ }
615
+ getImpersonationRole(args, optionsOrCb, cb) {
616
+ const command = new GetImpersonationRoleCommand(args);
622
617
  if (typeof optionsOrCb === "function") {
623
618
  this.send(command, optionsOrCb);
624
619
  }
625
620
  else if (typeof cb === "function") {
626
621
  if (typeof optionsOrCb !== "object")
627
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
622
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
628
623
  this.send(command, optionsOrCb || {}, cb);
629
624
  }
630
625
  else {
631
626
  return this.send(command, optionsOrCb);
632
627
  }
633
- };
634
- WorkMail.prototype.getImpersonationRoleEffect = function (args, optionsOrCb, cb) {
635
- var command = new GetImpersonationRoleEffectCommand(args);
628
+ }
629
+ getImpersonationRoleEffect(args, optionsOrCb, cb) {
630
+ const command = new GetImpersonationRoleEffectCommand(args);
636
631
  if (typeof optionsOrCb === "function") {
637
632
  this.send(command, optionsOrCb);
638
633
  }
639
634
  else if (typeof cb === "function") {
640
635
  if (typeof optionsOrCb !== "object")
641
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
636
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
642
637
  this.send(command, optionsOrCb || {}, cb);
643
638
  }
644
639
  else {
645
640
  return this.send(command, optionsOrCb);
646
641
  }
647
- };
648
- WorkMail.prototype.getMailboxDetails = function (args, optionsOrCb, cb) {
649
- var command = new GetMailboxDetailsCommand(args);
642
+ }
643
+ getMailboxDetails(args, optionsOrCb, cb) {
644
+ const command = new GetMailboxDetailsCommand(args);
650
645
  if (typeof optionsOrCb === "function") {
651
646
  this.send(command, optionsOrCb);
652
647
  }
653
648
  else if (typeof cb === "function") {
654
649
  if (typeof optionsOrCb !== "object")
655
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
650
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
656
651
  this.send(command, optionsOrCb || {}, cb);
657
652
  }
658
653
  else {
659
654
  return this.send(command, optionsOrCb);
660
655
  }
661
- };
662
- WorkMail.prototype.getMailDomain = function (args, optionsOrCb, cb) {
663
- var command = new GetMailDomainCommand(args);
656
+ }
657
+ getMailDomain(args, optionsOrCb, cb) {
658
+ const command = new GetMailDomainCommand(args);
664
659
  if (typeof optionsOrCb === "function") {
665
660
  this.send(command, optionsOrCb);
666
661
  }
667
662
  else if (typeof cb === "function") {
668
663
  if (typeof optionsOrCb !== "object")
669
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
664
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
670
665
  this.send(command, optionsOrCb || {}, cb);
671
666
  }
672
667
  else {
673
668
  return this.send(command, optionsOrCb);
674
669
  }
675
- };
676
- WorkMail.prototype.getMobileDeviceAccessEffect = function (args, optionsOrCb, cb) {
677
- var command = new GetMobileDeviceAccessEffectCommand(args);
670
+ }
671
+ getMobileDeviceAccessEffect(args, optionsOrCb, cb) {
672
+ const command = new GetMobileDeviceAccessEffectCommand(args);
678
673
  if (typeof optionsOrCb === "function") {
679
674
  this.send(command, optionsOrCb);
680
675
  }
681
676
  else if (typeof cb === "function") {
682
677
  if (typeof optionsOrCb !== "object")
683
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
678
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
684
679
  this.send(command, optionsOrCb || {}, cb);
685
680
  }
686
681
  else {
687
682
  return this.send(command, optionsOrCb);
688
683
  }
689
- };
690
- WorkMail.prototype.getMobileDeviceAccessOverride = function (args, optionsOrCb, cb) {
691
- var command = new GetMobileDeviceAccessOverrideCommand(args);
684
+ }
685
+ getMobileDeviceAccessOverride(args, optionsOrCb, cb) {
686
+ const command = new GetMobileDeviceAccessOverrideCommand(args);
692
687
  if (typeof optionsOrCb === "function") {
693
688
  this.send(command, optionsOrCb);
694
689
  }
695
690
  else if (typeof cb === "function") {
696
691
  if (typeof optionsOrCb !== "object")
697
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
692
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
698
693
  this.send(command, optionsOrCb || {}, cb);
699
694
  }
700
695
  else {
701
696
  return this.send(command, optionsOrCb);
702
697
  }
703
- };
704
- WorkMail.prototype.listAccessControlRules = function (args, optionsOrCb, cb) {
705
- var command = new ListAccessControlRulesCommand(args);
698
+ }
699
+ listAccessControlRules(args, optionsOrCb, cb) {
700
+ const command = new ListAccessControlRulesCommand(args);
706
701
  if (typeof optionsOrCb === "function") {
707
702
  this.send(command, optionsOrCb);
708
703
  }
709
704
  else if (typeof cb === "function") {
710
705
  if (typeof optionsOrCb !== "object")
711
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
706
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
712
707
  this.send(command, optionsOrCb || {}, cb);
713
708
  }
714
709
  else {
715
710
  return this.send(command, optionsOrCb);
716
711
  }
717
- };
718
- WorkMail.prototype.listAliases = function (args, optionsOrCb, cb) {
719
- var command = new ListAliasesCommand(args);
712
+ }
713
+ listAliases(args, optionsOrCb, cb) {
714
+ const command = new ListAliasesCommand(args);
720
715
  if (typeof optionsOrCb === "function") {
721
716
  this.send(command, optionsOrCb);
722
717
  }
723
718
  else if (typeof cb === "function") {
724
719
  if (typeof optionsOrCb !== "object")
725
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
720
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
726
721
  this.send(command, optionsOrCb || {}, cb);
727
722
  }
728
723
  else {
729
724
  return this.send(command, optionsOrCb);
730
725
  }
731
- };
732
- WorkMail.prototype.listAvailabilityConfigurations = function (args, optionsOrCb, cb) {
733
- var command = new ListAvailabilityConfigurationsCommand(args);
726
+ }
727
+ listAvailabilityConfigurations(args, optionsOrCb, cb) {
728
+ const command = new ListAvailabilityConfigurationsCommand(args);
734
729
  if (typeof optionsOrCb === "function") {
735
730
  this.send(command, optionsOrCb);
736
731
  }
737
732
  else if (typeof cb === "function") {
738
733
  if (typeof optionsOrCb !== "object")
739
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
734
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
740
735
  this.send(command, optionsOrCb || {}, cb);
741
736
  }
742
737
  else {
743
738
  return this.send(command, optionsOrCb);
744
739
  }
745
- };
746
- WorkMail.prototype.listGroupMembers = function (args, optionsOrCb, cb) {
747
- var command = new ListGroupMembersCommand(args);
740
+ }
741
+ listGroupMembers(args, optionsOrCb, cb) {
742
+ const command = new ListGroupMembersCommand(args);
748
743
  if (typeof optionsOrCb === "function") {
749
744
  this.send(command, optionsOrCb);
750
745
  }
751
746
  else if (typeof cb === "function") {
752
747
  if (typeof optionsOrCb !== "object")
753
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
748
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
754
749
  this.send(command, optionsOrCb || {}, cb);
755
750
  }
756
751
  else {
757
752
  return this.send(command, optionsOrCb);
758
753
  }
759
- };
760
- WorkMail.prototype.listGroups = function (args, optionsOrCb, cb) {
761
- var command = new ListGroupsCommand(args);
754
+ }
755
+ listGroups(args, optionsOrCb, cb) {
756
+ const command = new ListGroupsCommand(args);
762
757
  if (typeof optionsOrCb === "function") {
763
758
  this.send(command, optionsOrCb);
764
759
  }
765
760
  else if (typeof cb === "function") {
766
761
  if (typeof optionsOrCb !== "object")
767
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
762
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
768
763
  this.send(command, optionsOrCb || {}, cb);
769
764
  }
770
765
  else {
771
766
  return this.send(command, optionsOrCb);
772
767
  }
773
- };
774
- WorkMail.prototype.listImpersonationRoles = function (args, optionsOrCb, cb) {
775
- var command = new ListImpersonationRolesCommand(args);
768
+ }
769
+ listImpersonationRoles(args, optionsOrCb, cb) {
770
+ const command = new ListImpersonationRolesCommand(args);
776
771
  if (typeof optionsOrCb === "function") {
777
772
  this.send(command, optionsOrCb);
778
773
  }
779
774
  else if (typeof cb === "function") {
780
775
  if (typeof optionsOrCb !== "object")
781
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
776
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
782
777
  this.send(command, optionsOrCb || {}, cb);
783
778
  }
784
779
  else {
785
780
  return this.send(command, optionsOrCb);
786
781
  }
787
- };
788
- WorkMail.prototype.listMailboxExportJobs = function (args, optionsOrCb, cb) {
789
- var command = new ListMailboxExportJobsCommand(args);
782
+ }
783
+ listMailboxExportJobs(args, optionsOrCb, cb) {
784
+ const command = new ListMailboxExportJobsCommand(args);
790
785
  if (typeof optionsOrCb === "function") {
791
786
  this.send(command, optionsOrCb);
792
787
  }
793
788
  else if (typeof cb === "function") {
794
789
  if (typeof optionsOrCb !== "object")
795
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
790
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
796
791
  this.send(command, optionsOrCb || {}, cb);
797
792
  }
798
793
  else {
799
794
  return this.send(command, optionsOrCb);
800
795
  }
801
- };
802
- WorkMail.prototype.listMailboxPermissions = function (args, optionsOrCb, cb) {
803
- var command = new ListMailboxPermissionsCommand(args);
796
+ }
797
+ listMailboxPermissions(args, optionsOrCb, cb) {
798
+ const command = new ListMailboxPermissionsCommand(args);
804
799
  if (typeof optionsOrCb === "function") {
805
800
  this.send(command, optionsOrCb);
806
801
  }
807
802
  else if (typeof cb === "function") {
808
803
  if (typeof optionsOrCb !== "object")
809
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
804
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
810
805
  this.send(command, optionsOrCb || {}, cb);
811
806
  }
812
807
  else {
813
808
  return this.send(command, optionsOrCb);
814
809
  }
815
- };
816
- WorkMail.prototype.listMailDomains = function (args, optionsOrCb, cb) {
817
- var command = new ListMailDomainsCommand(args);
810
+ }
811
+ listMailDomains(args, optionsOrCb, cb) {
812
+ const command = new ListMailDomainsCommand(args);
818
813
  if (typeof optionsOrCb === "function") {
819
814
  this.send(command, optionsOrCb);
820
815
  }
821
816
  else if (typeof cb === "function") {
822
817
  if (typeof optionsOrCb !== "object")
823
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
818
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
824
819
  this.send(command, optionsOrCb || {}, cb);
825
820
  }
826
821
  else {
827
822
  return this.send(command, optionsOrCb);
828
823
  }
829
- };
830
- WorkMail.prototype.listMobileDeviceAccessOverrides = function (args, optionsOrCb, cb) {
831
- var command = new ListMobileDeviceAccessOverridesCommand(args);
824
+ }
825
+ listMobileDeviceAccessOverrides(args, optionsOrCb, cb) {
826
+ const command = new ListMobileDeviceAccessOverridesCommand(args);
832
827
  if (typeof optionsOrCb === "function") {
833
828
  this.send(command, optionsOrCb);
834
829
  }
835
830
  else if (typeof cb === "function") {
836
831
  if (typeof optionsOrCb !== "object")
837
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
832
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
838
833
  this.send(command, optionsOrCb || {}, cb);
839
834
  }
840
835
  else {
841
836
  return this.send(command, optionsOrCb);
842
837
  }
843
- };
844
- WorkMail.prototype.listMobileDeviceAccessRules = function (args, optionsOrCb, cb) {
845
- var command = new ListMobileDeviceAccessRulesCommand(args);
838
+ }
839
+ listMobileDeviceAccessRules(args, optionsOrCb, cb) {
840
+ const command = new ListMobileDeviceAccessRulesCommand(args);
846
841
  if (typeof optionsOrCb === "function") {
847
842
  this.send(command, optionsOrCb);
848
843
  }
849
844
  else if (typeof cb === "function") {
850
845
  if (typeof optionsOrCb !== "object")
851
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
846
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
852
847
  this.send(command, optionsOrCb || {}, cb);
853
848
  }
854
849
  else {
855
850
  return this.send(command, optionsOrCb);
856
851
  }
857
- };
858
- WorkMail.prototype.listOrganizations = function (args, optionsOrCb, cb) {
859
- var command = new ListOrganizationsCommand(args);
852
+ }
853
+ listOrganizations(args, optionsOrCb, cb) {
854
+ const command = new ListOrganizationsCommand(args);
860
855
  if (typeof optionsOrCb === "function") {
861
856
  this.send(command, optionsOrCb);
862
857
  }
863
858
  else if (typeof cb === "function") {
864
859
  if (typeof optionsOrCb !== "object")
865
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
860
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
866
861
  this.send(command, optionsOrCb || {}, cb);
867
862
  }
868
863
  else {
869
864
  return this.send(command, optionsOrCb);
870
865
  }
871
- };
872
- WorkMail.prototype.listResourceDelegates = function (args, optionsOrCb, cb) {
873
- var command = new ListResourceDelegatesCommand(args);
866
+ }
867
+ listResourceDelegates(args, optionsOrCb, cb) {
868
+ const command = new ListResourceDelegatesCommand(args);
874
869
  if (typeof optionsOrCb === "function") {
875
870
  this.send(command, optionsOrCb);
876
871
  }
877
872
  else if (typeof cb === "function") {
878
873
  if (typeof optionsOrCb !== "object")
879
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
874
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
880
875
  this.send(command, optionsOrCb || {}, cb);
881
876
  }
882
877
  else {
883
878
  return this.send(command, optionsOrCb);
884
879
  }
885
- };
886
- WorkMail.prototype.listResources = function (args, optionsOrCb, cb) {
887
- var command = new ListResourcesCommand(args);
880
+ }
881
+ listResources(args, optionsOrCb, cb) {
882
+ const command = new ListResourcesCommand(args);
888
883
  if (typeof optionsOrCb === "function") {
889
884
  this.send(command, optionsOrCb);
890
885
  }
891
886
  else if (typeof cb === "function") {
892
887
  if (typeof optionsOrCb !== "object")
893
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
888
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
894
889
  this.send(command, optionsOrCb || {}, cb);
895
890
  }
896
891
  else {
897
892
  return this.send(command, optionsOrCb);
898
893
  }
899
- };
900
- WorkMail.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
901
- var command = new ListTagsForResourceCommand(args);
894
+ }
895
+ listTagsForResource(args, optionsOrCb, cb) {
896
+ const command = new ListTagsForResourceCommand(args);
902
897
  if (typeof optionsOrCb === "function") {
903
898
  this.send(command, optionsOrCb);
904
899
  }
905
900
  else if (typeof cb === "function") {
906
901
  if (typeof optionsOrCb !== "object")
907
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
902
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
908
903
  this.send(command, optionsOrCb || {}, cb);
909
904
  }
910
905
  else {
911
906
  return this.send(command, optionsOrCb);
912
907
  }
913
- };
914
- WorkMail.prototype.listUsers = function (args, optionsOrCb, cb) {
915
- var command = new ListUsersCommand(args);
908
+ }
909
+ listUsers(args, optionsOrCb, cb) {
910
+ const command = new ListUsersCommand(args);
916
911
  if (typeof optionsOrCb === "function") {
917
912
  this.send(command, optionsOrCb);
918
913
  }
919
914
  else if (typeof cb === "function") {
920
915
  if (typeof optionsOrCb !== "object")
921
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
916
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
922
917
  this.send(command, optionsOrCb || {}, cb);
923
918
  }
924
919
  else {
925
920
  return this.send(command, optionsOrCb);
926
921
  }
927
- };
928
- WorkMail.prototype.putAccessControlRule = function (args, optionsOrCb, cb) {
929
- var command = new PutAccessControlRuleCommand(args);
922
+ }
923
+ putAccessControlRule(args, optionsOrCb, cb) {
924
+ const command = new PutAccessControlRuleCommand(args);
930
925
  if (typeof optionsOrCb === "function") {
931
926
  this.send(command, optionsOrCb);
932
927
  }
933
928
  else if (typeof cb === "function") {
934
929
  if (typeof optionsOrCb !== "object")
935
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
930
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
936
931
  this.send(command, optionsOrCb || {}, cb);
937
932
  }
938
933
  else {
939
934
  return this.send(command, optionsOrCb);
940
935
  }
941
- };
942
- WorkMail.prototype.putEmailMonitoringConfiguration = function (args, optionsOrCb, cb) {
943
- var command = new PutEmailMonitoringConfigurationCommand(args);
936
+ }
937
+ putEmailMonitoringConfiguration(args, optionsOrCb, cb) {
938
+ const command = new PutEmailMonitoringConfigurationCommand(args);
944
939
  if (typeof optionsOrCb === "function") {
945
940
  this.send(command, optionsOrCb);
946
941
  }
947
942
  else if (typeof cb === "function") {
948
943
  if (typeof optionsOrCb !== "object")
949
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
944
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
950
945
  this.send(command, optionsOrCb || {}, cb);
951
946
  }
952
947
  else {
953
948
  return this.send(command, optionsOrCb);
954
949
  }
955
- };
956
- WorkMail.prototype.putInboundDmarcSettings = function (args, optionsOrCb, cb) {
957
- var command = new PutInboundDmarcSettingsCommand(args);
950
+ }
951
+ putInboundDmarcSettings(args, optionsOrCb, cb) {
952
+ const command = new PutInboundDmarcSettingsCommand(args);
958
953
  if (typeof optionsOrCb === "function") {
959
954
  this.send(command, optionsOrCb);
960
955
  }
961
956
  else if (typeof cb === "function") {
962
957
  if (typeof optionsOrCb !== "object")
963
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
958
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
964
959
  this.send(command, optionsOrCb || {}, cb);
965
960
  }
966
961
  else {
967
962
  return this.send(command, optionsOrCb);
968
963
  }
969
- };
970
- WorkMail.prototype.putMailboxPermissions = function (args, optionsOrCb, cb) {
971
- var command = new PutMailboxPermissionsCommand(args);
964
+ }
965
+ putMailboxPermissions(args, optionsOrCb, cb) {
966
+ const command = new PutMailboxPermissionsCommand(args);
972
967
  if (typeof optionsOrCb === "function") {
973
968
  this.send(command, optionsOrCb);
974
969
  }
975
970
  else if (typeof cb === "function") {
976
971
  if (typeof optionsOrCb !== "object")
977
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
972
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
978
973
  this.send(command, optionsOrCb || {}, cb);
979
974
  }
980
975
  else {
981
976
  return this.send(command, optionsOrCb);
982
977
  }
983
- };
984
- WorkMail.prototype.putMobileDeviceAccessOverride = function (args, optionsOrCb, cb) {
985
- var command = new PutMobileDeviceAccessOverrideCommand(args);
978
+ }
979
+ putMobileDeviceAccessOverride(args, optionsOrCb, cb) {
980
+ const command = new PutMobileDeviceAccessOverrideCommand(args);
986
981
  if (typeof optionsOrCb === "function") {
987
982
  this.send(command, optionsOrCb);
988
983
  }
989
984
  else if (typeof cb === "function") {
990
985
  if (typeof optionsOrCb !== "object")
991
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
986
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
992
987
  this.send(command, optionsOrCb || {}, cb);
993
988
  }
994
989
  else {
995
990
  return this.send(command, optionsOrCb);
996
991
  }
997
- };
998
- WorkMail.prototype.putRetentionPolicy = function (args, optionsOrCb, cb) {
999
- var command = new PutRetentionPolicyCommand(args);
992
+ }
993
+ putRetentionPolicy(args, optionsOrCb, cb) {
994
+ const command = new PutRetentionPolicyCommand(args);
1000
995
  if (typeof optionsOrCb === "function") {
1001
996
  this.send(command, optionsOrCb);
1002
997
  }
1003
998
  else if (typeof cb === "function") {
1004
999
  if (typeof optionsOrCb !== "object")
1005
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1000
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1006
1001
  this.send(command, optionsOrCb || {}, cb);
1007
1002
  }
1008
1003
  else {
1009
1004
  return this.send(command, optionsOrCb);
1010
1005
  }
1011
- };
1012
- WorkMail.prototype.registerMailDomain = function (args, optionsOrCb, cb) {
1013
- var command = new RegisterMailDomainCommand(args);
1006
+ }
1007
+ registerMailDomain(args, optionsOrCb, cb) {
1008
+ const command = new RegisterMailDomainCommand(args);
1014
1009
  if (typeof optionsOrCb === "function") {
1015
1010
  this.send(command, optionsOrCb);
1016
1011
  }
1017
1012
  else if (typeof cb === "function") {
1018
1013
  if (typeof optionsOrCb !== "object")
1019
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1014
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1020
1015
  this.send(command, optionsOrCb || {}, cb);
1021
1016
  }
1022
1017
  else {
1023
1018
  return this.send(command, optionsOrCb);
1024
1019
  }
1025
- };
1026
- WorkMail.prototype.registerToWorkMail = function (args, optionsOrCb, cb) {
1027
- var command = new RegisterToWorkMailCommand(args);
1020
+ }
1021
+ registerToWorkMail(args, optionsOrCb, cb) {
1022
+ const command = new RegisterToWorkMailCommand(args);
1028
1023
  if (typeof optionsOrCb === "function") {
1029
1024
  this.send(command, optionsOrCb);
1030
1025
  }
1031
1026
  else if (typeof cb === "function") {
1032
1027
  if (typeof optionsOrCb !== "object")
1033
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1028
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1034
1029
  this.send(command, optionsOrCb || {}, cb);
1035
1030
  }
1036
1031
  else {
1037
1032
  return this.send(command, optionsOrCb);
1038
1033
  }
1039
- };
1040
- WorkMail.prototype.resetPassword = function (args, optionsOrCb, cb) {
1041
- var command = new ResetPasswordCommand(args);
1034
+ }
1035
+ resetPassword(args, optionsOrCb, cb) {
1036
+ const command = new ResetPasswordCommand(args);
1042
1037
  if (typeof optionsOrCb === "function") {
1043
1038
  this.send(command, optionsOrCb);
1044
1039
  }
1045
1040
  else if (typeof cb === "function") {
1046
1041
  if (typeof optionsOrCb !== "object")
1047
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1042
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1048
1043
  this.send(command, optionsOrCb || {}, cb);
1049
1044
  }
1050
1045
  else {
1051
1046
  return this.send(command, optionsOrCb);
1052
1047
  }
1053
- };
1054
- WorkMail.prototype.startMailboxExportJob = function (args, optionsOrCb, cb) {
1055
- var command = new StartMailboxExportJobCommand(args);
1048
+ }
1049
+ startMailboxExportJob(args, optionsOrCb, cb) {
1050
+ const command = new StartMailboxExportJobCommand(args);
1056
1051
  if (typeof optionsOrCb === "function") {
1057
1052
  this.send(command, optionsOrCb);
1058
1053
  }
1059
1054
  else if (typeof cb === "function") {
1060
1055
  if (typeof optionsOrCb !== "object")
1061
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1056
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1062
1057
  this.send(command, optionsOrCb || {}, cb);
1063
1058
  }
1064
1059
  else {
1065
1060
  return this.send(command, optionsOrCb);
1066
1061
  }
1067
- };
1068
- WorkMail.prototype.tagResource = function (args, optionsOrCb, cb) {
1069
- var command = new TagResourceCommand(args);
1062
+ }
1063
+ tagResource(args, optionsOrCb, cb) {
1064
+ const command = new TagResourceCommand(args);
1070
1065
  if (typeof optionsOrCb === "function") {
1071
1066
  this.send(command, optionsOrCb);
1072
1067
  }
1073
1068
  else if (typeof cb === "function") {
1074
1069
  if (typeof optionsOrCb !== "object")
1075
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1070
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1076
1071
  this.send(command, optionsOrCb || {}, cb);
1077
1072
  }
1078
1073
  else {
1079
1074
  return this.send(command, optionsOrCb);
1080
1075
  }
1081
- };
1082
- WorkMail.prototype.testAvailabilityConfiguration = function (args, optionsOrCb, cb) {
1083
- var command = new TestAvailabilityConfigurationCommand(args);
1076
+ }
1077
+ testAvailabilityConfiguration(args, optionsOrCb, cb) {
1078
+ const command = new TestAvailabilityConfigurationCommand(args);
1084
1079
  if (typeof optionsOrCb === "function") {
1085
1080
  this.send(command, optionsOrCb);
1086
1081
  }
1087
1082
  else if (typeof cb === "function") {
1088
1083
  if (typeof optionsOrCb !== "object")
1089
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1084
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1090
1085
  this.send(command, optionsOrCb || {}, cb);
1091
1086
  }
1092
1087
  else {
1093
1088
  return this.send(command, optionsOrCb);
1094
1089
  }
1095
- };
1096
- WorkMail.prototype.untagResource = function (args, optionsOrCb, cb) {
1097
- var command = new UntagResourceCommand(args);
1090
+ }
1091
+ untagResource(args, optionsOrCb, cb) {
1092
+ const command = new UntagResourceCommand(args);
1098
1093
  if (typeof optionsOrCb === "function") {
1099
1094
  this.send(command, optionsOrCb);
1100
1095
  }
1101
1096
  else if (typeof cb === "function") {
1102
1097
  if (typeof optionsOrCb !== "object")
1103
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1098
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1104
1099
  this.send(command, optionsOrCb || {}, cb);
1105
1100
  }
1106
1101
  else {
1107
1102
  return this.send(command, optionsOrCb);
1108
1103
  }
1109
- };
1110
- WorkMail.prototype.updateAvailabilityConfiguration = function (args, optionsOrCb, cb) {
1111
- var command = new UpdateAvailabilityConfigurationCommand(args);
1104
+ }
1105
+ updateAvailabilityConfiguration(args, optionsOrCb, cb) {
1106
+ const command = new UpdateAvailabilityConfigurationCommand(args);
1112
1107
  if (typeof optionsOrCb === "function") {
1113
1108
  this.send(command, optionsOrCb);
1114
1109
  }
1115
1110
  else if (typeof cb === "function") {
1116
1111
  if (typeof optionsOrCb !== "object")
1117
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1112
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1118
1113
  this.send(command, optionsOrCb || {}, cb);
1119
1114
  }
1120
1115
  else {
1121
1116
  return this.send(command, optionsOrCb);
1122
1117
  }
1123
- };
1124
- WorkMail.prototype.updateDefaultMailDomain = function (args, optionsOrCb, cb) {
1125
- var command = new UpdateDefaultMailDomainCommand(args);
1118
+ }
1119
+ updateDefaultMailDomain(args, optionsOrCb, cb) {
1120
+ const command = new UpdateDefaultMailDomainCommand(args);
1126
1121
  if (typeof optionsOrCb === "function") {
1127
1122
  this.send(command, optionsOrCb);
1128
1123
  }
1129
1124
  else if (typeof cb === "function") {
1130
1125
  if (typeof optionsOrCb !== "object")
1131
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1126
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1132
1127
  this.send(command, optionsOrCb || {}, cb);
1133
1128
  }
1134
1129
  else {
1135
1130
  return this.send(command, optionsOrCb);
1136
1131
  }
1137
- };
1138
- WorkMail.prototype.updateImpersonationRole = function (args, optionsOrCb, cb) {
1139
- var command = new UpdateImpersonationRoleCommand(args);
1132
+ }
1133
+ updateImpersonationRole(args, optionsOrCb, cb) {
1134
+ const command = new UpdateImpersonationRoleCommand(args);
1140
1135
  if (typeof optionsOrCb === "function") {
1141
1136
  this.send(command, optionsOrCb);
1142
1137
  }
1143
1138
  else if (typeof cb === "function") {
1144
1139
  if (typeof optionsOrCb !== "object")
1145
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1140
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1146
1141
  this.send(command, optionsOrCb || {}, cb);
1147
1142
  }
1148
1143
  else {
1149
1144
  return this.send(command, optionsOrCb);
1150
1145
  }
1151
- };
1152
- WorkMail.prototype.updateMailboxQuota = function (args, optionsOrCb, cb) {
1153
- var command = new UpdateMailboxQuotaCommand(args);
1146
+ }
1147
+ updateMailboxQuota(args, optionsOrCb, cb) {
1148
+ const command = new UpdateMailboxQuotaCommand(args);
1154
1149
  if (typeof optionsOrCb === "function") {
1155
1150
  this.send(command, optionsOrCb);
1156
1151
  }
1157
1152
  else if (typeof cb === "function") {
1158
1153
  if (typeof optionsOrCb !== "object")
1159
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1154
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1160
1155
  this.send(command, optionsOrCb || {}, cb);
1161
1156
  }
1162
1157
  else {
1163
1158
  return this.send(command, optionsOrCb);
1164
1159
  }
1165
- };
1166
- WorkMail.prototype.updateMobileDeviceAccessRule = function (args, optionsOrCb, cb) {
1167
- var command = new UpdateMobileDeviceAccessRuleCommand(args);
1160
+ }
1161
+ updateMobileDeviceAccessRule(args, optionsOrCb, cb) {
1162
+ const command = new UpdateMobileDeviceAccessRuleCommand(args);
1168
1163
  if (typeof optionsOrCb === "function") {
1169
1164
  this.send(command, optionsOrCb);
1170
1165
  }
1171
1166
  else if (typeof cb === "function") {
1172
1167
  if (typeof optionsOrCb !== "object")
1173
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1168
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1174
1169
  this.send(command, optionsOrCb || {}, cb);
1175
1170
  }
1176
1171
  else {
1177
1172
  return this.send(command, optionsOrCb);
1178
1173
  }
1179
- };
1180
- WorkMail.prototype.updatePrimaryEmailAddress = function (args, optionsOrCb, cb) {
1181
- var command = new UpdatePrimaryEmailAddressCommand(args);
1174
+ }
1175
+ updatePrimaryEmailAddress(args, optionsOrCb, cb) {
1176
+ const command = new UpdatePrimaryEmailAddressCommand(args);
1182
1177
  if (typeof optionsOrCb === "function") {
1183
1178
  this.send(command, optionsOrCb);
1184
1179
  }
1185
1180
  else if (typeof cb === "function") {
1186
1181
  if (typeof optionsOrCb !== "object")
1187
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1182
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1188
1183
  this.send(command, optionsOrCb || {}, cb);
1189
1184
  }
1190
1185
  else {
1191
1186
  return this.send(command, optionsOrCb);
1192
1187
  }
1193
- };
1194
- WorkMail.prototype.updateResource = function (args, optionsOrCb, cb) {
1195
- var command = new UpdateResourceCommand(args);
1188
+ }
1189
+ updateResource(args, optionsOrCb, cb) {
1190
+ const command = new UpdateResourceCommand(args);
1196
1191
  if (typeof optionsOrCb === "function") {
1197
1192
  this.send(command, optionsOrCb);
1198
1193
  }
1199
1194
  else if (typeof cb === "function") {
1200
1195
  if (typeof optionsOrCb !== "object")
1201
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1196
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1202
1197
  this.send(command, optionsOrCb || {}, cb);
1203
1198
  }
1204
1199
  else {
1205
1200
  return this.send(command, optionsOrCb);
1206
1201
  }
1207
- };
1208
- return WorkMail;
1209
- }(WorkMailClient));
1210
- export { WorkMail };
1202
+ }
1203
+ }