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