UNPKG

49.7 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class WorkMail extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: WorkMail.Types.ClientConfiguration)
13 config: Config & WorkMail.Types.ClientConfiguration;
14 /**
15 * Adds a member (user or group) to the resource's set of delegates.
16 */
17 associateDelegateToResource(params: WorkMail.Types.AssociateDelegateToResourceRequest, callback?: (err: AWSError, data: WorkMail.Types.AssociateDelegateToResourceResponse) => void): Request<WorkMail.Types.AssociateDelegateToResourceResponse, AWSError>;
18 /**
19 * Adds a member (user or group) to the resource's set of delegates.
20 */
21 associateDelegateToResource(callback?: (err: AWSError, data: WorkMail.Types.AssociateDelegateToResourceResponse) => void): Request<WorkMail.Types.AssociateDelegateToResourceResponse, AWSError>;
22 /**
23 * Adds a member (user or group) to the group's set.
24 */
25 associateMemberToGroup(params: WorkMail.Types.AssociateMemberToGroupRequest, callback?: (err: AWSError, data: WorkMail.Types.AssociateMemberToGroupResponse) => void): Request<WorkMail.Types.AssociateMemberToGroupResponse, AWSError>;
26 /**
27 * Adds a member (user or group) to the group's set.
28 */
29 associateMemberToGroup(callback?: (err: AWSError, data: WorkMail.Types.AssociateMemberToGroupResponse) => void): Request<WorkMail.Types.AssociateMemberToGroupResponse, AWSError>;
30 /**
31 * Adds an alias to the set of a given member (user or group) of Amazon WorkMail.
32 */
33 createAlias(params: WorkMail.Types.CreateAliasRequest, callback?: (err: AWSError, data: WorkMail.Types.CreateAliasResponse) => void): Request<WorkMail.Types.CreateAliasResponse, AWSError>;
34 /**
35 * Adds an alias to the set of a given member (user or group) of Amazon WorkMail.
36 */
37 createAlias(callback?: (err: AWSError, data: WorkMail.Types.CreateAliasResponse) => void): Request<WorkMail.Types.CreateAliasResponse, AWSError>;
38 /**
39 * Creates a group that can be used in Amazon WorkMail by calling the RegisterToWorkMail operation.
40 */
41 createGroup(params: WorkMail.Types.CreateGroupRequest, callback?: (err: AWSError, data: WorkMail.Types.CreateGroupResponse) => void): Request<WorkMail.Types.CreateGroupResponse, AWSError>;
42 /**
43 * Creates a group that can be used in Amazon WorkMail by calling the RegisterToWorkMail operation.
44 */
45 createGroup(callback?: (err: AWSError, data: WorkMail.Types.CreateGroupResponse) => void): Request<WorkMail.Types.CreateGroupResponse, AWSError>;
46 /**
47 * Creates a new Amazon WorkMail resource.
48 */
49 createResource(params: WorkMail.Types.CreateResourceRequest, callback?: (err: AWSError, data: WorkMail.Types.CreateResourceResponse) => void): Request<WorkMail.Types.CreateResourceResponse, AWSError>;
50 /**
51 * Creates a new Amazon WorkMail resource.
52 */
53 createResource(callback?: (err: AWSError, data: WorkMail.Types.CreateResourceResponse) => void): Request<WorkMail.Types.CreateResourceResponse, AWSError>;
54 /**
55 * Creates a user who can be used in Amazon WorkMail by calling the RegisterToWorkMail operation.
56 */
57 createUser(params: WorkMail.Types.CreateUserRequest, callback?: (err: AWSError, data: WorkMail.Types.CreateUserResponse) => void): Request<WorkMail.Types.CreateUserResponse, AWSError>;
58 /**
59 * Creates a user who can be used in Amazon WorkMail by calling the RegisterToWorkMail operation.
60 */
61 createUser(callback?: (err: AWSError, data: WorkMail.Types.CreateUserResponse) => void): Request<WorkMail.Types.CreateUserResponse, AWSError>;
62 /**
63 * Remove one or more specified aliases from a set of aliases for a given user.
64 */
65 deleteAlias(params: WorkMail.Types.DeleteAliasRequest, callback?: (err: AWSError, data: WorkMail.Types.DeleteAliasResponse) => void): Request<WorkMail.Types.DeleteAliasResponse, AWSError>;
66 /**
67 * Remove one or more specified aliases from a set of aliases for a given user.
68 */
69 deleteAlias(callback?: (err: AWSError, data: WorkMail.Types.DeleteAliasResponse) => void): Request<WorkMail.Types.DeleteAliasResponse, AWSError>;
70 /**
71 * Deletes a group from Amazon WorkMail.
72 */
73 deleteGroup(params: WorkMail.Types.DeleteGroupRequest, callback?: (err: AWSError, data: WorkMail.Types.DeleteGroupResponse) => void): Request<WorkMail.Types.DeleteGroupResponse, AWSError>;
74 /**
75 * Deletes a group from Amazon WorkMail.
76 */
77 deleteGroup(callback?: (err: AWSError, data: WorkMail.Types.DeleteGroupResponse) => void): Request<WorkMail.Types.DeleteGroupResponse, AWSError>;
78 /**
79 * Deletes permissions granted to a member (user or group).
80 */
81 deleteMailboxPermissions(params: WorkMail.Types.DeleteMailboxPermissionsRequest, callback?: (err: AWSError, data: WorkMail.Types.DeleteMailboxPermissionsResponse) => void): Request<WorkMail.Types.DeleteMailboxPermissionsResponse, AWSError>;
82 /**
83 * Deletes permissions granted to a member (user or group).
84 */
85 deleteMailboxPermissions(callback?: (err: AWSError, data: WorkMail.Types.DeleteMailboxPermissionsResponse) => void): Request<WorkMail.Types.DeleteMailboxPermissionsResponse, AWSError>;
86 /**
87 * Deletes the specified resource.
88 */
89 deleteResource(params: WorkMail.Types.DeleteResourceRequest, callback?: (err: AWSError, data: WorkMail.Types.DeleteResourceResponse) => void): Request<WorkMail.Types.DeleteResourceResponse, AWSError>;
90 /**
91 * Deletes the specified resource.
92 */
93 deleteResource(callback?: (err: AWSError, data: WorkMail.Types.DeleteResourceResponse) => void): Request<WorkMail.Types.DeleteResourceResponse, AWSError>;
94 /**
95 * Deletes a user from Amazon WorkMail and all subsequent systems. Before you can delete a user, the user state must be DISABLED. Use the DescribeUser action to confirm the user state. Deleting a user is permanent and cannot be undone. WorkMail archives user mailboxes for 30 days before they are permanently removed.
96 */
97 deleteUser(params: WorkMail.Types.DeleteUserRequest, callback?: (err: AWSError, data: WorkMail.Types.DeleteUserResponse) => void): Request<WorkMail.Types.DeleteUserResponse, AWSError>;
98 /**
99 * Deletes a user from Amazon WorkMail and all subsequent systems. Before you can delete a user, the user state must be DISABLED. Use the DescribeUser action to confirm the user state. Deleting a user is permanent and cannot be undone. WorkMail archives user mailboxes for 30 days before they are permanently removed.
100 */
101 deleteUser(callback?: (err: AWSError, data: WorkMail.Types.DeleteUserResponse) => void): Request<WorkMail.Types.DeleteUserResponse, AWSError>;
102 /**
103 * Mark a user, group, or resource as no longer used in Amazon WorkMail. This action disassociates the mailbox and schedules it for clean-up. WorkMail keeps mailboxes for 30 days before they are permanently removed. The functionality in the console is Disable.
104 */
105 deregisterFromWorkMail(params: WorkMail.Types.DeregisterFromWorkMailRequest, callback?: (err: AWSError, data: WorkMail.Types.DeregisterFromWorkMailResponse) => void): Request<WorkMail.Types.DeregisterFromWorkMailResponse, AWSError>;
106 /**
107 * Mark a user, group, or resource as no longer used in Amazon WorkMail. This action disassociates the mailbox and schedules it for clean-up. WorkMail keeps mailboxes for 30 days before they are permanently removed. The functionality in the console is Disable.
108 */
109 deregisterFromWorkMail(callback?: (err: AWSError, data: WorkMail.Types.DeregisterFromWorkMailResponse) => void): Request<WorkMail.Types.DeregisterFromWorkMailResponse, AWSError>;
110 /**
111 * Returns the data available for the group.
112 */
113 describeGroup(params: WorkMail.Types.DescribeGroupRequest, callback?: (err: AWSError, data: WorkMail.Types.DescribeGroupResponse) => void): Request<WorkMail.Types.DescribeGroupResponse, AWSError>;
114 /**
115 * Returns the data available for the group.
116 */
117 describeGroup(callback?: (err: AWSError, data: WorkMail.Types.DescribeGroupResponse) => void): Request<WorkMail.Types.DescribeGroupResponse, AWSError>;
118 /**
119 * Provides more information regarding a given organization based on its identifier.
120 */
121 describeOrganization(params: WorkMail.Types.DescribeOrganizationRequest, callback?: (err: AWSError, data: WorkMail.Types.DescribeOrganizationResponse) => void): Request<WorkMail.Types.DescribeOrganizationResponse, AWSError>;
122 /**
123 * Provides more information regarding a given organization based on its identifier.
124 */
125 describeOrganization(callback?: (err: AWSError, data: WorkMail.Types.DescribeOrganizationResponse) => void): Request<WorkMail.Types.DescribeOrganizationResponse, AWSError>;
126 /**
127 * Returns the data available for the resource.
128 */
129 describeResource(params: WorkMail.Types.DescribeResourceRequest, callback?: (err: AWSError, data: WorkMail.Types.DescribeResourceResponse) => void): Request<WorkMail.Types.DescribeResourceResponse, AWSError>;
130 /**
131 * Returns the data available for the resource.
132 */
133 describeResource(callback?: (err: AWSError, data: WorkMail.Types.DescribeResourceResponse) => void): Request<WorkMail.Types.DescribeResourceResponse, AWSError>;
134 /**
135 * Provides information regarding the user.
136 */
137 describeUser(params: WorkMail.Types.DescribeUserRequest, callback?: (err: AWSError, data: WorkMail.Types.DescribeUserResponse) => void): Request<WorkMail.Types.DescribeUserResponse, AWSError>;
138 /**
139 * Provides information regarding the user.
140 */
141 describeUser(callback?: (err: AWSError, data: WorkMail.Types.DescribeUserResponse) => void): Request<WorkMail.Types.DescribeUserResponse, AWSError>;
142 /**
143 * Removes a member from the resource's set of delegates.
144 */
145 disassociateDelegateFromResource(params: WorkMail.Types.DisassociateDelegateFromResourceRequest, callback?: (err: AWSError, data: WorkMail.Types.DisassociateDelegateFromResourceResponse) => void): Request<WorkMail.Types.DisassociateDelegateFromResourceResponse, AWSError>;
146 /**
147 * Removes a member from the resource's set of delegates.
148 */
149 disassociateDelegateFromResource(callback?: (err: AWSError, data: WorkMail.Types.DisassociateDelegateFromResourceResponse) => void): Request<WorkMail.Types.DisassociateDelegateFromResourceResponse, AWSError>;
150 /**
151 * Removes a member from a group.
152 */
153 disassociateMemberFromGroup(params: WorkMail.Types.DisassociateMemberFromGroupRequest, callback?: (err: AWSError, data: WorkMail.Types.DisassociateMemberFromGroupResponse) => void): Request<WorkMail.Types.DisassociateMemberFromGroupResponse, AWSError>;
154 /**
155 * Removes a member from a group.
156 */
157 disassociateMemberFromGroup(callback?: (err: AWSError, data: WorkMail.Types.DisassociateMemberFromGroupResponse) => void): Request<WorkMail.Types.DisassociateMemberFromGroupResponse, AWSError>;
158 /**
159 * Requests a user's mailbox details for a specified organization and user.
160 */
161 getMailboxDetails(params: WorkMail.Types.GetMailboxDetailsRequest, callback?: (err: AWSError, data: WorkMail.Types.GetMailboxDetailsResponse) => void): Request<WorkMail.Types.GetMailboxDetailsResponse, AWSError>;
162 /**
163 * Requests a user's mailbox details for a specified organization and user.
164 */
165 getMailboxDetails(callback?: (err: AWSError, data: WorkMail.Types.GetMailboxDetailsResponse) => void): Request<WorkMail.Types.GetMailboxDetailsResponse, AWSError>;
166 /**
167 * Creates a paginated call to list the aliases associated with a given entity.
168 */
169 listAliases(params: WorkMail.Types.ListAliasesRequest, callback?: (err: AWSError, data: WorkMail.Types.ListAliasesResponse) => void): Request<WorkMail.Types.ListAliasesResponse, AWSError>;
170 /**
171 * Creates a paginated call to list the aliases associated with a given entity.
172 */
173 listAliases(callback?: (err: AWSError, data: WorkMail.Types.ListAliasesResponse) => void): Request<WorkMail.Types.ListAliasesResponse, AWSError>;
174 /**
175 * Returns an overview of the members of a group. Users and groups can be members of a group.
176 */
177 listGroupMembers(params: WorkMail.Types.ListGroupMembersRequest, callback?: (err: AWSError, data: WorkMail.Types.ListGroupMembersResponse) => void): Request<WorkMail.Types.ListGroupMembersResponse, AWSError>;
178 /**
179 * Returns an overview of the members of a group. Users and groups can be members of a group.
180 */
181 listGroupMembers(callback?: (err: AWSError, data: WorkMail.Types.ListGroupMembersResponse) => void): Request<WorkMail.Types.ListGroupMembersResponse, AWSError>;
182 /**
183 * Returns summaries of the organization's groups.
184 */
185 listGroups(params: WorkMail.Types.ListGroupsRequest, callback?: (err: AWSError, data: WorkMail.Types.ListGroupsResponse) => void): Request<WorkMail.Types.ListGroupsResponse, AWSError>;
186 /**
187 * Returns summaries of the organization's groups.
188 */
189 listGroups(callback?: (err: AWSError, data: WorkMail.Types.ListGroupsResponse) => void): Request<WorkMail.Types.ListGroupsResponse, AWSError>;
190 /**
191 * Lists the mailbox permissions associated with a user, group, or resource mailbox.
192 */
193 listMailboxPermissions(params: WorkMail.Types.ListMailboxPermissionsRequest, callback?: (err: AWSError, data: WorkMail.Types.ListMailboxPermissionsResponse) => void): Request<WorkMail.Types.ListMailboxPermissionsResponse, AWSError>;
194 /**
195 * Lists the mailbox permissions associated with a user, group, or resource mailbox.
196 */
197 listMailboxPermissions(callback?: (err: AWSError, data: WorkMail.Types.ListMailboxPermissionsResponse) => void): Request<WorkMail.Types.ListMailboxPermissionsResponse, AWSError>;
198 /**
199 * Returns summaries of the customer's non-deleted organizations.
200 */
201 listOrganizations(params: WorkMail.Types.ListOrganizationsRequest, callback?: (err: AWSError, data: WorkMail.Types.ListOrganizationsResponse) => void): Request<WorkMail.Types.ListOrganizationsResponse, AWSError>;
202 /**
203 * Returns summaries of the customer's non-deleted organizations.
204 */
205 listOrganizations(callback?: (err: AWSError, data: WorkMail.Types.ListOrganizationsResponse) => void): Request<WorkMail.Types.ListOrganizationsResponse, AWSError>;
206 /**
207 * Lists the delegates associated with a resource. Users and groups can be resource delegates and answer requests on behalf of the resource.
208 */
209 listResourceDelegates(params: WorkMail.Types.ListResourceDelegatesRequest, callback?: (err: AWSError, data: WorkMail.Types.ListResourceDelegatesResponse) => void): Request<WorkMail.Types.ListResourceDelegatesResponse, AWSError>;
210 /**
211 * Lists the delegates associated with a resource. Users and groups can be resource delegates and answer requests on behalf of the resource.
212 */
213 listResourceDelegates(callback?: (err: AWSError, data: WorkMail.Types.ListResourceDelegatesResponse) => void): Request<WorkMail.Types.ListResourceDelegatesResponse, AWSError>;
214 /**
215 * Returns summaries of the organization's resources.
216 */
217 listResources(params: WorkMail.Types.ListResourcesRequest, callback?: (err: AWSError, data: WorkMail.Types.ListResourcesResponse) => void): Request<WorkMail.Types.ListResourcesResponse, AWSError>;
218 /**
219 * Returns summaries of the organization's resources.
220 */
221 listResources(callback?: (err: AWSError, data: WorkMail.Types.ListResourcesResponse) => void): Request<WorkMail.Types.ListResourcesResponse, AWSError>;
222 /**
223 * Returns summaries of the organization's users.
224 */
225 listUsers(params: WorkMail.Types.ListUsersRequest, callback?: (err: AWSError, data: WorkMail.Types.ListUsersResponse) => void): Request<WorkMail.Types.ListUsersResponse, AWSError>;
226 /**
227 * Returns summaries of the organization's users.
228 */
229 listUsers(callback?: (err: AWSError, data: WorkMail.Types.ListUsersResponse) => void): Request<WorkMail.Types.ListUsersResponse, AWSError>;
230 /**
231 * Sets permissions for a user, group, or resource. This replaces any pre-existing permissions.
232 */
233 putMailboxPermissions(params: WorkMail.Types.PutMailboxPermissionsRequest, callback?: (err: AWSError, data: WorkMail.Types.PutMailboxPermissionsResponse) => void): Request<WorkMail.Types.PutMailboxPermissionsResponse, AWSError>;
234 /**
235 * Sets permissions for a user, group, or resource. This replaces any pre-existing permissions.
236 */
237 putMailboxPermissions(callback?: (err: AWSError, data: WorkMail.Types.PutMailboxPermissionsResponse) => void): Request<WorkMail.Types.PutMailboxPermissionsResponse, AWSError>;
238 /**
239 * Registers an existing and disabled user, group, or resource for Amazon WorkMail use by associating a mailbox and calendaring capabilities. It performs no change if the user, group, or resource is enabled and fails if the user, group, or resource is deleted. This operation results in the accumulation of costs. For more information, see Pricing. The equivalent console functionality for this operation is Enable. Users can either be created by calling the CreateUser API operation or they can be synchronized from your directory. For more information, see DeregisterFromWorkMail.
240 */
241 registerToWorkMail(params: WorkMail.Types.RegisterToWorkMailRequest, callback?: (err: AWSError, data: WorkMail.Types.RegisterToWorkMailResponse) => void): Request<WorkMail.Types.RegisterToWorkMailResponse, AWSError>;
242 /**
243 * Registers an existing and disabled user, group, or resource for Amazon WorkMail use by associating a mailbox and calendaring capabilities. It performs no change if the user, group, or resource is enabled and fails if the user, group, or resource is deleted. This operation results in the accumulation of costs. For more information, see Pricing. The equivalent console functionality for this operation is Enable. Users can either be created by calling the CreateUser API operation or they can be synchronized from your directory. For more information, see DeregisterFromWorkMail.
244 */
245 registerToWorkMail(callback?: (err: AWSError, data: WorkMail.Types.RegisterToWorkMailResponse) => void): Request<WorkMail.Types.RegisterToWorkMailResponse, AWSError>;
246 /**
247 * Allows the administrator to reset the password for a user.
248 */
249 resetPassword(params: WorkMail.Types.ResetPasswordRequest, callback?: (err: AWSError, data: WorkMail.Types.ResetPasswordResponse) => void): Request<WorkMail.Types.ResetPasswordResponse, AWSError>;
250 /**
251 * Allows the administrator to reset the password for a user.
252 */
253 resetPassword(callback?: (err: AWSError, data: WorkMail.Types.ResetPasswordResponse) => void): Request<WorkMail.Types.ResetPasswordResponse, AWSError>;
254 /**
255 * Updates a user's current mailbox quota for a specified organization and user.
256 */
257 updateMailboxQuota(params: WorkMail.Types.UpdateMailboxQuotaRequest, callback?: (err: AWSError, data: WorkMail.Types.UpdateMailboxQuotaResponse) => void): Request<WorkMail.Types.UpdateMailboxQuotaResponse, AWSError>;
258 /**
259 * Updates a user's current mailbox quota for a specified organization and user.
260 */
261 updateMailboxQuota(callback?: (err: AWSError, data: WorkMail.Types.UpdateMailboxQuotaResponse) => void): Request<WorkMail.Types.UpdateMailboxQuotaResponse, AWSError>;
262 /**
263 * Updates the primary email for a user, group, or resource. The current email is moved into the list of aliases (or swapped between an existing alias and the current primary email), and the email provided in the input is promoted as the primary.
264 */
265 updatePrimaryEmailAddress(params: WorkMail.Types.UpdatePrimaryEmailAddressRequest, callback?: (err: AWSError, data: WorkMail.Types.UpdatePrimaryEmailAddressResponse) => void): Request<WorkMail.Types.UpdatePrimaryEmailAddressResponse, AWSError>;
266 /**
267 * Updates the primary email for a user, group, or resource. The current email is moved into the list of aliases (or swapped between an existing alias and the current primary email), and the email provided in the input is promoted as the primary.
268 */
269 updatePrimaryEmailAddress(callback?: (err: AWSError, data: WorkMail.Types.UpdatePrimaryEmailAddressResponse) => void): Request<WorkMail.Types.UpdatePrimaryEmailAddressResponse, AWSError>;
270 /**
271 * Updates data for the resource. To have the latest information, it must be preceded by a DescribeResource call. The dataset in the request should be the one expected when performing another DescribeResource call.
272 */
273 updateResource(params: WorkMail.Types.UpdateResourceRequest, callback?: (err: AWSError, data: WorkMail.Types.UpdateResourceResponse) => void): Request<WorkMail.Types.UpdateResourceResponse, AWSError>;
274 /**
275 * Updates data for the resource. To have the latest information, it must be preceded by a DescribeResource call. The dataset in the request should be the one expected when performing another DescribeResource call.
276 */
277 updateResource(callback?: (err: AWSError, data: WorkMail.Types.UpdateResourceResponse) => void): Request<WorkMail.Types.UpdateResourceResponse, AWSError>;
278}
279declare namespace WorkMail {
280 export type Aliases = EmailAddress[];
281 export interface AssociateDelegateToResourceRequest {
282 /**
283 * The organization under which the resource exists.
284 */
285 OrganizationId: OrganizationId;
286 /**
287 * The resource for which members (users or groups) are associated.
288 */
289 ResourceId: ResourceId;
290 /**
291 * The member (user or group) to associate to the resource.
292 */
293 EntityId: WorkMailIdentifier;
294 }
295 export interface AssociateDelegateToResourceResponse {
296 }
297 export interface AssociateMemberToGroupRequest {
298 /**
299 * The organization under which the group exists.
300 */
301 OrganizationId: OrganizationId;
302 /**
303 * The group to which the member (user or group) is associated.
304 */
305 GroupId: WorkMailIdentifier;
306 /**
307 * The member (user or group) to associate to the group.
308 */
309 MemberId: WorkMailIdentifier;
310 }
311 export interface AssociateMemberToGroupResponse {
312 }
313 export interface BookingOptions {
314 /**
315 * The resource's ability to automatically reply to requests. If disabled, delegates must be associated to the resource.
316 */
317 AutoAcceptRequests?: Boolean;
318 /**
319 * The resource's ability to automatically decline any recurring requests.
320 */
321 AutoDeclineRecurringRequests?: Boolean;
322 /**
323 * The resource's ability to automatically decline any conflicting requests.
324 */
325 AutoDeclineConflictingRequests?: Boolean;
326 }
327 export type Boolean = boolean;
328 export interface CreateAliasRequest {
329 /**
330 * The organization under which the member (user or group) exists.
331 */
332 OrganizationId: OrganizationId;
333 /**
334 * The member (user or group) to which this alias is added.
335 */
336 EntityId: WorkMailIdentifier;
337 /**
338 * The alias to add to the member set.
339 */
340 Alias: EmailAddress;
341 }
342 export interface CreateAliasResponse {
343 }
344 export interface CreateGroupRequest {
345 /**
346 * The organization under which the group is to be created.
347 */
348 OrganizationId: OrganizationId;
349 /**
350 * The name of the group.
351 */
352 Name: GroupName;
353 }
354 export interface CreateGroupResponse {
355 /**
356 * The identifier of the group.
357 */
358 GroupId?: WorkMailIdentifier;
359 }
360 export interface CreateResourceRequest {
361 /**
362 * The identifier associated with the organization for which the resource is created.
363 */
364 OrganizationId: OrganizationId;
365 /**
366 * The name of the new resource.
367 */
368 Name: ResourceName;
369 /**
370 * The type of the new resource. The available types are equipment and room.
371 */
372 Type: ResourceType;
373 }
374 export interface CreateResourceResponse {
375 /**
376 * The identifier of the new resource.
377 */
378 ResourceId?: ResourceId;
379 }
380 export interface CreateUserRequest {
381 /**
382 * The identifier of the organization for which the user is created.
383 */
384 OrganizationId: OrganizationId;
385 /**
386 * The name for the new user. Simple AD or AD Connector user names have a maximum length of 20. All others have a maximum length of 64.
387 */
388 Name: UserName;
389 /**
390 * The display name for the new user.
391 */
392 DisplayName: String;
393 /**
394 * The password for the new user.
395 */
396 Password: Password;
397 }
398 export interface CreateUserResponse {
399 /**
400 * The identifier for the new user.
401 */
402 UserId?: WorkMailIdentifier;
403 }
404 export interface Delegate {
405 /**
406 * The identifier for the user or group associated as the resource's delegate.
407 */
408 Id: String;
409 /**
410 * The type of the delegate: user or group.
411 */
412 Type: MemberType;
413 }
414 export interface DeleteAliasRequest {
415 /**
416 * The identifier for the organization under which the user exists.
417 */
418 OrganizationId: OrganizationId;
419 /**
420 * The identifier for the member (user or group) from which to have the aliases removed.
421 */
422 EntityId: WorkMailIdentifier;
423 /**
424 * The aliases to be removed from the user's set of aliases. Duplicate entries in the list are collapsed into single entries (the list is transformed into a set).
425 */
426 Alias: EmailAddress;
427 }
428 export interface DeleteAliasResponse {
429 }
430 export interface DeleteGroupRequest {
431 /**
432 * The organization that contains the group.
433 */
434 OrganizationId: OrganizationId;
435 /**
436 * The identifier of the group to be deleted.
437 */
438 GroupId: WorkMailIdentifier;
439 }
440 export interface DeleteGroupResponse {
441 }
442 export interface DeleteMailboxPermissionsRequest {
443 /**
444 * The identifier of the organization under which the member (user or group) exists.
445 */
446 OrganizationId: OrganizationId;
447 /**
448 * The identifier of the member (user or group)that owns the mailbox.
449 */
450 EntityId: WorkMailIdentifier;
451 /**
452 * The identifier of the member (user or group) for which to delete granted permissions.
453 */
454 GranteeId: WorkMailIdentifier;
455 }
456 export interface DeleteMailboxPermissionsResponse {
457 }
458 export interface DeleteResourceRequest {
459 /**
460 * The identifier associated with the organization from which the resource is deleted.
461 */
462 OrganizationId: OrganizationId;
463 /**
464 * The identifier of the resource to be deleted.
465 */
466 ResourceId: ResourceId;
467 }
468 export interface DeleteResourceResponse {
469 }
470 export interface DeleteUserRequest {
471 /**
472 * The organization that contains the user to be deleted.
473 */
474 OrganizationId: OrganizationId;
475 /**
476 * The identifier of the user to be deleted.
477 */
478 UserId: WorkMailIdentifier;
479 }
480 export interface DeleteUserResponse {
481 }
482 export interface DeregisterFromWorkMailRequest {
483 /**
484 * The identifier for the organization under which the Amazon WorkMail entity exists.
485 */
486 OrganizationId: OrganizationId;
487 /**
488 * The identifier for the member (user or group) to be updated.
489 */
490 EntityId: WorkMailIdentifier;
491 }
492 export interface DeregisterFromWorkMailResponse {
493 }
494 export interface DescribeGroupRequest {
495 /**
496 * The identifier for the organization under which the group exists.
497 */
498 OrganizationId: OrganizationId;
499 /**
500 * The identifier for the group to be described.
501 */
502 GroupId: WorkMailIdentifier;
503 }
504 export interface DescribeGroupResponse {
505 /**
506 * The identifier of the described group.
507 */
508 GroupId?: WorkMailIdentifier;
509 /**
510 * The name of the described group.
511 */
512 Name?: GroupName;
513 /**
514 * The email of the described group.
515 */
516 Email?: EmailAddress;
517 /**
518 * The state of the user: enabled (registered to Amazon WorkMail) or disabled (deregistered or never registered to WorkMail).
519 */
520 State?: EntityState;
521 /**
522 * The date and time when a user was registered to WorkMail, in UNIX epoch time format.
523 */
524 EnabledDate?: Timestamp;
525 /**
526 * The date and time when a user was deregistered from WorkMail, in UNIX epoch time format.
527 */
528 DisabledDate?: Timestamp;
529 }
530 export interface DescribeOrganizationRequest {
531 /**
532 * The identifier for the organization to be described.
533 */
534 OrganizationId: OrganizationId;
535 }
536 export interface DescribeOrganizationResponse {
537 /**
538 * The identifier of an organization.
539 */
540 OrganizationId?: OrganizationId;
541 /**
542 * The alias for an organization.
543 */
544 Alias?: OrganizationName;
545 /**
546 * The state of an organization.
547 */
548 State?: String;
549 /**
550 * The identifier for the directory associated with an Amazon WorkMail organization.
551 */
552 DirectoryId?: String;
553 /**
554 * The type of directory associated with the WorkMail organization.
555 */
556 DirectoryType?: String;
557 /**
558 * The default mail domain associated with the organization.
559 */
560 DefaultMailDomain?: String;
561 /**
562 * The date at which the organization became usable in the WorkMail context, in UNIX epoch time format.
563 */
564 CompletedDate?: Timestamp;
565 /**
566 * (Optional) The error message indicating if unexpected behavior was encountered with regards to the organization.
567 */
568 ErrorMessage?: String;
569 }
570 export interface DescribeResourceRequest {
571 /**
572 * The identifier associated with the organization for which the resource is described.
573 */
574 OrganizationId: OrganizationId;
575 /**
576 * The identifier of the resource to be described.
577 */
578 ResourceId: ResourceId;
579 }
580 export interface DescribeResourceResponse {
581 /**
582 * The identifier of the described resource.
583 */
584 ResourceId?: ResourceId;
585 /**
586 * The email of the described resource.
587 */
588 Email?: EmailAddress;
589 /**
590 * The name of the described resource.
591 */
592 Name?: ResourceName;
593 /**
594 * The type of the described resource.
595 */
596 Type?: ResourceType;
597 /**
598 * The booking options for the described resource.
599 */
600 BookingOptions?: BookingOptions;
601 /**
602 * The state of the resource: enabled (registered to Amazon WorkMail) or disabled (deregistered or never registered to WorkMail).
603 */
604 State?: EntityState;
605 /**
606 * The date and time when a resource was enabled for WorkMail, in UNIX epoch time format.
607 */
608 EnabledDate?: Timestamp;
609 /**
610 * The date and time when a resource was disabled from WorkMail, in UNIX epoch time format.
611 */
612 DisabledDate?: Timestamp;
613 }
614 export interface DescribeUserRequest {
615 /**
616 * The identifier for the organization under which the user exists.
617 */
618 OrganizationId: OrganizationId;
619 /**
620 * The identifier for the user to be described.
621 */
622 UserId: WorkMailIdentifier;
623 }
624 export interface DescribeUserResponse {
625 /**
626 * The identifier for the described user.
627 */
628 UserId?: WorkMailIdentifier;
629 /**
630 * The name for the user.
631 */
632 Name?: UserName;
633 /**
634 * The email of the user.
635 */
636 Email?: EmailAddress;
637 /**
638 * The display name of the user.
639 */
640 DisplayName?: String;
641 /**
642 * The state of a user: enabled (registered to Amazon WorkMail) or disabled (deregistered or never registered to WorkMail).
643 */
644 State?: EntityState;
645 /**
646 * In certain cases, other entities are modeled as users. If interoperability is enabled, resources are imported into Amazon WorkMail as users. Because different WorkMail organizations rely on different directory types, administrators can distinguish between an unregistered user (account is disabled and has a user role) and the directory administrators. The values are USER, RESOURCE, and SYSTEM_USER.
647 */
648 UserRole?: UserRole;
649 /**
650 * The date and time at which the user was enabled for Amazon WorkMail usage, in UNIX epoch time format.
651 */
652 EnabledDate?: Timestamp;
653 /**
654 * The date and time at which the user was disabled for Amazon WorkMail usage, in UNIX epoch time format.
655 */
656 DisabledDate?: Timestamp;
657 }
658 export interface DisassociateDelegateFromResourceRequest {
659 /**
660 * The identifier for the organization under which the resource exists.
661 */
662 OrganizationId: OrganizationId;
663 /**
664 * The identifier of the resource from which delegates' set members are removed.
665 */
666 ResourceId: ResourceId;
667 /**
668 * The identifier for the member (user, group) to be removed from the resource's delegates.
669 */
670 EntityId: WorkMailIdentifier;
671 }
672 export interface DisassociateDelegateFromResourceResponse {
673 }
674 export interface DisassociateMemberFromGroupRequest {
675 /**
676 * The identifier for the organization under which the group exists.
677 */
678 OrganizationId: OrganizationId;
679 /**
680 * The identifier for the group from which members are removed.
681 */
682 GroupId: WorkMailIdentifier;
683 /**
684 * The identifier for the member to be removed to the group.
685 */
686 MemberId: WorkMailIdentifier;
687 }
688 export interface DisassociateMemberFromGroupResponse {
689 }
690 export type EmailAddress = string;
691 export type EntityState = "ENABLED"|"DISABLED"|"DELETED"|string;
692 export interface GetMailboxDetailsRequest {
693 /**
694 * The identifier for the organization that contains the user whose mailbox details are being requested.
695 */
696 OrganizationId: OrganizationId;
697 /**
698 * The identifier for the user whose mailbox details are being requested.
699 */
700 UserId: WorkMailIdentifier;
701 }
702 export interface GetMailboxDetailsResponse {
703 /**
704 * The maximum allowed mailbox size, in MB, for the specified user.
705 */
706 MailboxQuota?: MailboxQuota;
707 /**
708 * The current mailbox size, in MB, for the specified user.
709 */
710 MailboxSize?: MailboxSize;
711 }
712 export interface Group {
713 /**
714 * The identifier of the group.
715 */
716 Id?: WorkMailIdentifier;
717 /**
718 * The email of the group.
719 */
720 Email?: EmailAddress;
721 /**
722 * The name of the group.
723 */
724 Name?: GroupName;
725 /**
726 * The state of the group, which can be ENABLED, DISABLED, or DELETED.
727 */
728 State?: EntityState;
729 /**
730 * The date indicating when the group was enabled for Amazon WorkMail use.
731 */
732 EnabledDate?: Timestamp;
733 /**
734 * The date indicating when the group was disabled from Amazon WorkMail use.
735 */
736 DisabledDate?: Timestamp;
737 }
738 export type GroupName = string;
739 export type Groups = Group[];
740 export interface ListAliasesRequest {
741 /**
742 * The identifier for the organization under which the entity exists.
743 */
744 OrganizationId: OrganizationId;
745 /**
746 * The identifier for the entity for which to list the aliases.
747 */
748 EntityId: WorkMailIdentifier;
749 /**
750 * The token to use to retrieve the next page of results. The first call does not contain any tokens.
751 */
752 NextToken?: NextToken;
753 /**
754 * The maximum number of results to return in a single call.
755 */
756 MaxResults?: MaxResults;
757 }
758 export interface ListAliasesResponse {
759 /**
760 * The entity's paginated aliases.
761 */
762 Aliases?: Aliases;
763 /**
764 * The token to use to retrieve the next page of results. The value is "null" when there are no more results to return.
765 */
766 NextToken?: NextToken;
767 }
768 export interface ListGroupMembersRequest {
769 /**
770 * The identifier for the organization under which the group exists.
771 */
772 OrganizationId: OrganizationId;
773 /**
774 * The identifier for the group to which the members (users or groups) are associated.
775 */
776 GroupId: WorkMailIdentifier;
777 /**
778 * The token to use to retrieve the next page of results. The first call does not contain any tokens.
779 */
780 NextToken?: NextToken;
781 /**
782 * The maximum number of results to return in a single call.
783 */
784 MaxResults?: MaxResults;
785 }
786 export interface ListGroupMembersResponse {
787 /**
788 * The members associated to the group.
789 */
790 Members?: Members;
791 /**
792 * The token to use to retrieve the next page of results. The first call does not contain any tokens.
793 */
794 NextToken?: NextToken;
795 }
796 export interface ListGroupsRequest {
797 /**
798 * The identifier for the organization under which the groups exist.
799 */
800 OrganizationId: OrganizationId;
801 /**
802 * The token to use to retrieve the next page of results. The first call does not contain any tokens.
803 */
804 NextToken?: NextToken;
805 /**
806 * The maximum number of results to return in a single call.
807 */
808 MaxResults?: MaxResults;
809 }
810 export interface ListGroupsResponse {
811 /**
812 * The overview of groups for an organization.
813 */
814 Groups?: Groups;
815 /**
816 * The token to use to retrieve the next page of results. The value is "null" when there are no more results to return.
817 */
818 NextToken?: NextToken;
819 }
820 export interface ListMailboxPermissionsRequest {
821 /**
822 * The identifier of the organization under which the user, group, or resource exists.
823 */
824 OrganizationId: OrganizationId;
825 /**
826 * The identifier of the user, group, or resource for which to list mailbox permissions.
827 */
828 EntityId: WorkMailIdentifier;
829 /**
830 * The token to use to retrieve the next page of results. The first call does not contain any tokens.
831 */
832 NextToken?: NextToken;
833 /**
834 * The maximum number of results to return in a single call.
835 */
836 MaxResults?: MaxResults;
837 }
838 export interface ListMailboxPermissionsResponse {
839 /**
840 * One page of the user, group, or resource mailbox permissions.
841 */
842 Permissions?: Permissions;
843 /**
844 * The token to use to retrieve the next page of results. The value is "null" when there are no more results to return.
845 */
846 NextToken?: NextToken;
847 }
848 export interface ListOrganizationsRequest {
849 /**
850 * The token to use to retrieve the next page of results. The first call does not contain any tokens.
851 */
852 NextToken?: NextToken;
853 /**
854 * The maximum number of results to return in a single call.
855 */
856 MaxResults?: MaxResults;
857 }
858 export interface ListOrganizationsResponse {
859 /**
860 * The overview of owned organizations presented as a list of organization summaries.
861 */
862 OrganizationSummaries?: OrganizationSummaries;
863 /**
864 * The token to use to retrieve the next page of results. The value is "null" when there are no more results to return.
865 */
866 NextToken?: NextToken;
867 }
868 export interface ListResourceDelegatesRequest {
869 /**
870 * The identifier for the organization that contains the resource for which delegates are listed.
871 */
872 OrganizationId: OrganizationId;
873 /**
874 * The identifier for the resource whose delegates are listed.
875 */
876 ResourceId: WorkMailIdentifier;
877 /**
878 * The token used to paginate through the delegates associated with a resource.
879 */
880 NextToken?: NextToken;
881 /**
882 * The number of maximum results in a page.
883 */
884 MaxResults?: MaxResults;
885 }
886 export interface ListResourceDelegatesResponse {
887 /**
888 * One page of the resource's delegates.
889 */
890 Delegates?: ResourceDelegates;
891 /**
892 * The token used to paginate through the delegates associated with a resource. While results are still available, it has an associated value. When the last page is reached, the token is empty.
893 */
894 NextToken?: NextToken;
895 }
896 export interface ListResourcesRequest {
897 /**
898 * The identifier for the organization under which the resources exist.
899 */
900 OrganizationId: OrganizationId;
901 /**
902 * The token to use to retrieve the next page of results. The first call does not contain any tokens.
903 */
904 NextToken?: NextToken;
905 /**
906 * The maximum number of results to return in a single call.
907 */
908 MaxResults?: MaxResults;
909 }
910 export interface ListResourcesResponse {
911 /**
912 * One page of the organization's resource representation.
913 */
914 Resources?: Resources;
915 /**
916 * The token used to paginate through all the organization's resources. While results are still available, it has an associated value. When the last page is reached, the token is empty.
917 */
918 NextToken?: NextToken;
919 }
920 export interface ListUsersRequest {
921 /**
922 * The identifier for the organization under which the users exist.
923 */
924 OrganizationId: OrganizationId;
925 /**
926 * The token to use to retrieve the next page of results. The first call does not contain any tokens.
927 */
928 NextToken?: NextToken;
929 /**
930 * The maximum number of results to return in a single call.
931 */
932 MaxResults?: MaxResults;
933 }
934 export interface ListUsersResponse {
935 /**
936 * The overview of users for an organization.
937 */
938 Users?: Users;
939 /**
940 * The token to use to retrieve the next page of results. This value is `null` when there are no more results to return.
941 */
942 NextToken?: NextToken;
943 }
944 export type MailboxQuota = number;
945 export type MailboxSize = number;
946 export type MaxResults = number;
947 export interface Member {
948 /**
949 * The identifier of the member.
950 */
951 Id?: String;
952 /**
953 * The name of the member.
954 */
955 Name?: String;
956 /**
957 * A member can be a user or group.
958 */
959 Type?: MemberType;
960 /**
961 * The state of the member, which can be ENABLED, DISABLED, or DELETED.
962 */
963 State?: EntityState;
964 /**
965 * The date indicating when the member was enabled for Amazon WorkMail use.
966 */
967 EnabledDate?: Timestamp;
968 /**
969 * The date indicating when the member was disabled from Amazon WorkMail use.
970 */
971 DisabledDate?: Timestamp;
972 }
973 export type MemberType = "GROUP"|"USER"|string;
974 export type Members = Member[];
975 export type NextToken = string;
976 export type OrganizationId = string;
977 export type OrganizationName = string;
978 export type OrganizationSummaries = OrganizationSummary[];
979 export interface OrganizationSummary {
980 /**
981 * The identifier associated with the organization.
982 */
983 OrganizationId?: OrganizationId;
984 /**
985 * The alias associated with the organization.
986 */
987 Alias?: OrganizationName;
988 /**
989 * The error message associated with the organization. It is only present if unexpected behavior has occurred with regards to the organization. It provides insight or solutions regarding unexpected behavior.
990 */
991 ErrorMessage?: String;
992 /**
993 * The state associated with the organization.
994 */
995 State?: String;
996 }
997 export type Password = string;
998 export interface Permission {
999 /**
1000 * The identifier of the user, group, or resource to which the permissions are granted.
1001 */
1002 GranteeId: WorkMailIdentifier;
1003 /**
1004 * The type of user, group, or resource referred to in GranteeId.
1005 */
1006 GranteeType: MemberType;
1007 /**
1008 * The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions set on the mailbox.
1009 */
1010 PermissionValues: PermissionValues;
1011 }
1012 export type PermissionType = "FULL_ACCESS"|"SEND_AS"|"SEND_ON_BEHALF"|string;
1013 export type PermissionValues = PermissionType[];
1014 export type Permissions = Permission[];
1015 export interface PutMailboxPermissionsRequest {
1016 /**
1017 * The identifier of the organization under which the user, group, or resource exists.
1018 */
1019 OrganizationId: OrganizationId;
1020 /**
1021 * The identifier of the user, group, or resource for which to update mailbox permissions.
1022 */
1023 EntityId: WorkMailIdentifier;
1024 /**
1025 * The identifier of the user, group, or resource to which to grant the permissions.
1026 */
1027 GranteeId: WorkMailIdentifier;
1028 /**
1029 * The permissions granted to the grantee. SEND_AS allows the grantee to send email as the owner of the mailbox (the grantee is not mentioned on these emails). SEND_ON_BEHALF allows the grantee to send email on behalf of the owner of the mailbox (the grantee is not mentioned as the physical sender of these emails). FULL_ACCESS allows the grantee full access to the mailbox, irrespective of other folder-level permissions set on the mailbox.
1030 */
1031 PermissionValues: PermissionValues;
1032 }
1033 export interface PutMailboxPermissionsResponse {
1034 }
1035 export interface RegisterToWorkMailRequest {
1036 /**
1037 * The identifier for the organization under which the user, group, or resource exists.
1038 */
1039 OrganizationId: OrganizationId;
1040 /**
1041 * The identifier for the user, group, or resource to be updated.
1042 */
1043 EntityId: WorkMailIdentifier;
1044 /**
1045 * The email for the user, group, or resource to be updated.
1046 */
1047 Email: EmailAddress;
1048 }
1049 export interface RegisterToWorkMailResponse {
1050 }
1051 export interface ResetPasswordRequest {
1052 /**
1053 * The identifier of the organization that contains the user for which the password is reset.
1054 */
1055 OrganizationId: OrganizationId;
1056 /**
1057 * The identifier of the user for whom the password is reset.
1058 */
1059 UserId: WorkMailIdentifier;
1060 /**
1061 * The new password for the user.
1062 */
1063 Password: Password;
1064 }
1065 export interface ResetPasswordResponse {
1066 }
1067 export interface Resource {
1068 /**
1069 * The identifier of the resource.
1070 */
1071 Id?: WorkMailIdentifier;
1072 /**
1073 * The email of the resource.
1074 */
1075 Email?: EmailAddress;
1076 /**
1077 * The name of the resource.
1078 */
1079 Name?: ResourceName;
1080 /**
1081 * The type of the resource: equipment or room.
1082 */
1083 Type?: ResourceType;
1084 /**
1085 * The state of the resource, which can be ENABLED, DISABLED, or DELETED.
1086 */
1087 State?: EntityState;
1088 /**
1089 * The date indicating when the resource was enabled for Amazon WorkMail use.
1090 */
1091 EnabledDate?: Timestamp;
1092 /**
1093 * The date indicating when the resource was disabled from Amazon WorkMail use.
1094 */
1095 DisabledDate?: Timestamp;
1096 }
1097 export type ResourceDelegates = Delegate[];
1098 export type ResourceId = string;
1099 export type ResourceName = string;
1100 export type ResourceType = "ROOM"|"EQUIPMENT"|string;
1101 export type Resources = Resource[];
1102 export type String = string;
1103 export type Timestamp = Date;
1104 export interface UpdateMailboxQuotaRequest {
1105 /**
1106 * The identifier for the organization that contains the user for whom to update the mailbox quota.
1107 */
1108 OrganizationId: OrganizationId;
1109 /**
1110 * The identifer for the user for whom to update the mailbox quota.
1111 */
1112 UserId: WorkMailIdentifier;
1113 /**
1114 * The updated mailbox quota, in MB, for the specified user.
1115 */
1116 MailboxQuota: MailboxQuota;
1117 }
1118 export interface UpdateMailboxQuotaResponse {
1119 }
1120 export interface UpdatePrimaryEmailAddressRequest {
1121 /**
1122 * The organization that contains the user, group, or resource to update.
1123 */
1124 OrganizationId: OrganizationId;
1125 /**
1126 * The user, group, or resource to update.
1127 */
1128 EntityId: WorkMailIdentifier;
1129 /**
1130 * The value of the email to be updated as primary.
1131 */
1132 Email: EmailAddress;
1133 }
1134 export interface UpdatePrimaryEmailAddressResponse {
1135 }
1136 export interface UpdateResourceRequest {
1137 /**
1138 * The identifier associated with the organization for which the resource is updated.
1139 */
1140 OrganizationId: OrganizationId;
1141 /**
1142 * The identifier of the resource to be updated.
1143 */
1144 ResourceId: ResourceId;
1145 /**
1146 * The name of the resource to be updated.
1147 */
1148 Name?: ResourceName;
1149 /**
1150 * The resource's booking options to be updated.
1151 */
1152 BookingOptions?: BookingOptions;
1153 }
1154 export interface UpdateResourceResponse {
1155 }
1156 export interface User {
1157 /**
1158 * The identifier of the user.
1159 */
1160 Id?: WorkMailIdentifier;
1161 /**
1162 * The email of the user.
1163 */
1164 Email?: EmailAddress;
1165 /**
1166 * The name of the user.
1167 */
1168 Name?: UserName;
1169 /**
1170 * The display name of the user.
1171 */
1172 DisplayName?: String;
1173 /**
1174 * The state of the user, which can be ENABLED, DISABLED, or DELETED.
1175 */
1176 State?: EntityState;
1177 /**
1178 * The role of the user.
1179 */
1180 UserRole?: UserRole;
1181 /**
1182 * The date indicating when the user was enabled for Amazon WorkMail use.
1183 */
1184 EnabledDate?: Timestamp;
1185 /**
1186 * The date indicating when the user was disabled from Amazon WorkMail use.
1187 */
1188 DisabledDate?: Timestamp;
1189 }
1190 export type UserName = string;
1191 export type UserRole = "USER"|"RESOURCE"|"SYSTEM_USER"|string;
1192 export type Users = User[];
1193 export type WorkMailIdentifier = string;
1194 /**
1195 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
1196 */
1197 export type apiVersion = "2017-10-01"|"latest"|string;
1198 export interface ClientApiVersions {
1199 /**
1200 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
1201 */
1202 apiVersion?: apiVersion;
1203 }
1204 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
1205 /**
1206 * Contains interfaces for use with the WorkMail client.
1207 */
1208 export import Types = WorkMail;
1209}
1210export = WorkMail;