@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.
- package/CHANGELOG.md +16 -0
- package/dist-es/WorkMail.js +322 -329
- package/dist-es/WorkMailClient.js +22 -28
- package/dist-es/commands/AssociateDelegateToResourceCommand.js +21 -28
- package/dist-es/commands/AssociateMemberToGroupCommand.js +21 -28
- package/dist-es/commands/AssumeImpersonationRoleCommand.js +21 -28
- package/dist-es/commands/CancelMailboxExportJobCommand.js +21 -28
- package/dist-es/commands/CreateAliasCommand.js +21 -28
- package/dist-es/commands/CreateAvailabilityConfigurationCommand.js +21 -28
- package/dist-es/commands/CreateGroupCommand.js +21 -28
- package/dist-es/commands/CreateImpersonationRoleCommand.js +21 -28
- package/dist-es/commands/CreateMobileDeviceAccessRuleCommand.js +21 -28
- package/dist-es/commands/CreateOrganizationCommand.js +21 -28
- package/dist-es/commands/CreateResourceCommand.js +21 -28
- package/dist-es/commands/CreateUserCommand.js +21 -28
- package/dist-es/commands/DeleteAccessControlRuleCommand.js +21 -28
- package/dist-es/commands/DeleteAliasCommand.js +21 -28
- package/dist-es/commands/DeleteAvailabilityConfigurationCommand.js +21 -28
- package/dist-es/commands/DeleteEmailMonitoringConfigurationCommand.js +21 -28
- package/dist-es/commands/DeleteGroupCommand.js +21 -28
- package/dist-es/commands/DeleteImpersonationRoleCommand.js +21 -28
- package/dist-es/commands/DeleteMailboxPermissionsCommand.js +21 -28
- package/dist-es/commands/DeleteMobileDeviceAccessOverrideCommand.js +21 -28
- package/dist-es/commands/DeleteMobileDeviceAccessRuleCommand.js +21 -28
- package/dist-es/commands/DeleteOrganizationCommand.js +21 -28
- package/dist-es/commands/DeleteResourceCommand.js +21 -28
- package/dist-es/commands/DeleteRetentionPolicyCommand.js +21 -28
- package/dist-es/commands/DeleteUserCommand.js +21 -28
- package/dist-es/commands/DeregisterFromWorkMailCommand.js +21 -28
- package/dist-es/commands/DeregisterMailDomainCommand.js +21 -28
- package/dist-es/commands/DescribeEmailMonitoringConfigurationCommand.js +21 -28
- package/dist-es/commands/DescribeGroupCommand.js +21 -28
- package/dist-es/commands/DescribeInboundDmarcSettingsCommand.js +21 -28
- package/dist-es/commands/DescribeMailboxExportJobCommand.js +21 -28
- package/dist-es/commands/DescribeOrganizationCommand.js +21 -28
- package/dist-es/commands/DescribeResourceCommand.js +21 -28
- package/dist-es/commands/DescribeUserCommand.js +21 -28
- package/dist-es/commands/DisassociateDelegateFromResourceCommand.js +21 -28
- package/dist-es/commands/DisassociateMemberFromGroupCommand.js +21 -28
- package/dist-es/commands/GetAccessControlEffectCommand.js +21 -28
- package/dist-es/commands/GetDefaultRetentionPolicyCommand.js +21 -28
- package/dist-es/commands/GetImpersonationRoleCommand.js +21 -28
- package/dist-es/commands/GetImpersonationRoleEffectCommand.js +21 -28
- package/dist-es/commands/GetMailDomainCommand.js +21 -28
- package/dist-es/commands/GetMailboxDetailsCommand.js +21 -28
- package/dist-es/commands/GetMobileDeviceAccessEffectCommand.js +21 -28
- package/dist-es/commands/GetMobileDeviceAccessOverrideCommand.js +21 -28
- package/dist-es/commands/ListAccessControlRulesCommand.js +21 -28
- package/dist-es/commands/ListAliasesCommand.js +21 -28
- package/dist-es/commands/ListAvailabilityConfigurationsCommand.js +21 -28
- package/dist-es/commands/ListGroupMembersCommand.js +21 -28
- package/dist-es/commands/ListGroupsCommand.js +21 -28
- package/dist-es/commands/ListImpersonationRolesCommand.js +21 -28
- package/dist-es/commands/ListMailDomainsCommand.js +21 -28
- package/dist-es/commands/ListMailboxExportJobsCommand.js +21 -28
- package/dist-es/commands/ListMailboxPermissionsCommand.js +21 -28
- package/dist-es/commands/ListMobileDeviceAccessOverridesCommand.js +21 -28
- package/dist-es/commands/ListMobileDeviceAccessRulesCommand.js +21 -28
- package/dist-es/commands/ListOrganizationsCommand.js +21 -28
- package/dist-es/commands/ListResourceDelegatesCommand.js +21 -28
- package/dist-es/commands/ListResourcesCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListUsersCommand.js +21 -28
- package/dist-es/commands/PutAccessControlRuleCommand.js +21 -28
- package/dist-es/commands/PutEmailMonitoringConfigurationCommand.js +21 -28
- package/dist-es/commands/PutInboundDmarcSettingsCommand.js +21 -28
- package/dist-es/commands/PutMailboxPermissionsCommand.js +21 -28
- package/dist-es/commands/PutMobileDeviceAccessOverrideCommand.js +21 -28
- package/dist-es/commands/PutRetentionPolicyCommand.js +21 -28
- package/dist-es/commands/RegisterMailDomainCommand.js +21 -28
- package/dist-es/commands/RegisterToWorkMailCommand.js +21 -28
- package/dist-es/commands/ResetPasswordCommand.js +21 -28
- package/dist-es/commands/StartMailboxExportJobCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/TestAvailabilityConfigurationCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateAvailabilityConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdateDefaultMailDomainCommand.js +21 -28
- package/dist-es/commands/UpdateImpersonationRoleCommand.js +21 -28
- package/dist-es/commands/UpdateMailboxQuotaCommand.js +21 -28
- package/dist-es/commands/UpdateMobileDeviceAccessRuleCommand.js +21 -28
- package/dist-es/commands/UpdatePrimaryEmailAddressCommand.js +21 -28
- package/dist-es/commands/UpdateResourceCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/WorkMailServiceException.js +5 -10
- package/dist-es/models/models_0.js +826 -450
- package/dist-es/pagination/ListAliasesPaginator.js +25 -68
- package/dist-es/pagination/ListAvailabilityConfigurationsPaginator.js +25 -68
- package/dist-es/pagination/ListGroupMembersPaginator.js +25 -68
- package/dist-es/pagination/ListGroupsPaginator.js +25 -68
- package/dist-es/pagination/ListImpersonationRolesPaginator.js +25 -68
- package/dist-es/pagination/ListMailDomainsPaginator.js +25 -68
- package/dist-es/pagination/ListMailboxExportJobsPaginator.js +25 -68
- package/dist-es/pagination/ListMailboxPermissionsPaginator.js +25 -68
- package/dist-es/pagination/ListMobileDeviceAccessOverridesPaginator.js +25 -68
- package/dist-es/pagination/ListOrganizationsPaginator.js +25 -68
- package/dist-es/pagination/ListResourceDelegatesPaginator.js +25 -68
- package/dist-es/pagination/ListResourcesPaginator.js +25 -68
- package/dist-es/pagination/ListUsersPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +5368 -6916
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/dist-es/WorkMail.js
CHANGED
|
@@ -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
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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(
|
|
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
|
-
|
|
103
|
-
|
|
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(
|
|
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
|
-
|
|
117
|
-
|
|
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(
|
|
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
|
-
|
|
131
|
-
|
|
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(
|
|
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
|
-
|
|
145
|
-
|
|
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(
|
|
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
|
-
|
|
159
|
-
|
|
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(
|
|
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
|
-
|
|
173
|
-
|
|
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(
|
|
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
|
-
|
|
187
|
-
|
|
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(
|
|
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
|
-
|
|
201
|
-
|
|
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(
|
|
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
|
-
|
|
215
|
-
|
|
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(
|
|
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
|
-
|
|
229
|
-
|
|
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(
|
|
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
|
-
|
|
243
|
-
|
|
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(
|
|
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
|
-
|
|
257
|
-
|
|
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(
|
|
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
|
-
|
|
271
|
-
|
|
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(
|
|
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
|
-
|
|
285
|
-
|
|
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(
|
|
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
|
-
|
|
299
|
-
|
|
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(
|
|
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
|
-
|
|
313
|
-
|
|
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(
|
|
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
|
-
|
|
327
|
-
|
|
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(
|
|
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
|
-
|
|
341
|
-
|
|
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(
|
|
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
|
-
|
|
355
|
-
|
|
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(
|
|
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
|
-
|
|
369
|
-
|
|
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(
|
|
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
|
-
|
|
383
|
-
|
|
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(
|
|
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
|
-
|
|
397
|
-
|
|
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(
|
|
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
|
-
|
|
411
|
-
|
|
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(
|
|
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
|
-
|
|
425
|
-
|
|
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(
|
|
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
|
-
|
|
439
|
-
|
|
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(
|
|
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
|
-
|
|
453
|
-
|
|
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(
|
|
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
|
-
|
|
467
|
-
|
|
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(
|
|
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
|
-
|
|
481
|
-
|
|
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(
|
|
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
|
-
|
|
495
|
-
|
|
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(
|
|
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
|
-
|
|
509
|
-
|
|
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(
|
|
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
|
-
|
|
523
|
-
|
|
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(
|
|
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
|
-
|
|
537
|
-
|
|
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(
|
|
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
|
-
|
|
551
|
-
|
|
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(
|
|
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
|
-
|
|
565
|
-
|
|
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(
|
|
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
|
-
|
|
579
|
-
|
|
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(
|
|
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
|
-
|
|
593
|
-
|
|
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(
|
|
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
|
-
|
|
607
|
-
|
|
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(
|
|
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
|
-
|
|
621
|
-
|
|
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(
|
|
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
|
-
|
|
635
|
-
|
|
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(
|
|
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
|
-
|
|
649
|
-
|
|
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(
|
|
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
|
-
|
|
663
|
-
|
|
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(
|
|
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
|
-
|
|
677
|
-
|
|
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(
|
|
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
|
-
|
|
691
|
-
|
|
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(
|
|
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
|
-
|
|
705
|
-
|
|
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(
|
|
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
|
-
|
|
719
|
-
|
|
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(
|
|
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
|
-
|
|
733
|
-
|
|
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(
|
|
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
|
-
|
|
747
|
-
|
|
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(
|
|
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
|
-
|
|
761
|
-
|
|
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(
|
|
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
|
-
|
|
775
|
-
|
|
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(
|
|
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
|
-
|
|
789
|
-
|
|
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(
|
|
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
|
-
|
|
803
|
-
|
|
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(
|
|
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
|
-
|
|
817
|
-
|
|
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(
|
|
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
|
-
|
|
831
|
-
|
|
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(
|
|
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
|
-
|
|
845
|
-
|
|
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(
|
|
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
|
-
|
|
859
|
-
|
|
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(
|
|
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
|
-
|
|
873
|
-
|
|
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(
|
|
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
|
-
|
|
887
|
-
|
|
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(
|
|
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
|
-
|
|
901
|
-
|
|
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(
|
|
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
|
-
|
|
915
|
-
|
|
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(
|
|
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
|
-
|
|
929
|
-
|
|
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(
|
|
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
|
-
|
|
943
|
-
|
|
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(
|
|
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
|
-
|
|
957
|
-
|
|
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(
|
|
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
|
-
|
|
971
|
-
|
|
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(
|
|
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
|
-
|
|
985
|
-
|
|
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(
|
|
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
|
-
|
|
999
|
-
|
|
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(
|
|
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
|
-
|
|
1013
|
-
|
|
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(
|
|
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
|
-
|
|
1027
|
-
|
|
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(
|
|
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
|
-
|
|
1041
|
-
|
|
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(
|
|
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
|
-
|
|
1055
|
-
|
|
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(
|
|
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
|
-
|
|
1069
|
-
|
|
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(
|
|
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
|
-
|
|
1083
|
-
|
|
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(
|
|
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
|
-
|
|
1097
|
-
|
|
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(
|
|
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
|
-
|
|
1111
|
-
|
|
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(
|
|
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
|
-
|
|
1125
|
-
|
|
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(
|
|
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
|
-
|
|
1139
|
-
|
|
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(
|
|
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
|
-
|
|
1153
|
-
|
|
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(
|
|
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
|
-
|
|
1167
|
-
|
|
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(
|
|
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
|
-
|
|
1181
|
-
|
|
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(
|
|
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
|
-
|
|
1195
|
-
|
|
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(
|
|
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
|
-
|
|
1209
|
-
}(WorkMailClient));
|
|
1210
|
-
export { WorkMail };
|
|
1202
|
+
}
|
|
1203
|
+
}
|