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