@aws-sdk/client-workmail 3.183.0 → 3.185.0

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