Skip to content

Commit 1e90e46

Browse files
author
awstools
committed
feat(client-workmail): This release includes four new APIs UpdateUser, UpdateGroup, ListGroupsForEntity and DescribeEntity, along with RemoteUsers and some enhancements to existing APIs.
1 parent 40be7ad commit 1e90e46

32 files changed

+3285
-132
lines changed

clients/client-workmail/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,14 @@ DescribeEmailMonitoringConfiguration
461461

462462
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-workmail/classes/describeemailmonitoringconfigurationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-workmail/interfaces/describeemailmonitoringconfigurationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-workmail/interfaces/describeemailmonitoringconfigurationcommandoutput.html)
463463

464+
</details>
465+
<details>
466+
<summary>
467+
DescribeEntity
468+
</summary>
469+
470+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-workmail/classes/describeentitycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-workmail/interfaces/describeentitycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-workmail/interfaces/describeentitycommandoutput.html)
471+
464472
</details>
465473
<details>
466474
<summary>
@@ -629,6 +637,14 @@ ListGroups
629637

630638
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-workmail/classes/listgroupscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-workmail/interfaces/listgroupscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-workmail/interfaces/listgroupscommandoutput.html)
631639

640+
</details>
641+
<details>
642+
<summary>
643+
ListGroupsForEntity
644+
</summary>
645+
646+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-workmail/classes/listgroupsforentitycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-workmail/interfaces/listgroupsforentitycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-workmail/interfaces/listgroupsforentitycommandoutput.html)
647+
632648
</details>
633649
<details>
634650
<summary>
@@ -837,6 +853,14 @@ UpdateDefaultMailDomain
837853

838854
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-workmail/classes/updatedefaultmaildomaincommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-workmail/interfaces/updatedefaultmaildomaincommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-workmail/interfaces/updatedefaultmaildomaincommandoutput.html)
839855

856+
</details>
857+
<details>
858+
<summary>
859+
UpdateGroup
860+
</summary>
861+
862+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-workmail/classes/updategroupcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-workmail/interfaces/updategroupcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-workmail/interfaces/updategroupcommandoutput.html)
863+
840864
</details>
841865
<details>
842866
<summary>
@@ -878,3 +902,11 @@ UpdateResource
878902
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-workmail/classes/updateresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-workmail/interfaces/updateresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-workmail/interfaces/updateresourcecommandoutput.html)
879903

880904
</details>
905+
<details>
906+
<summary>
907+
UpdateUser
908+
</summary>
909+
910+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-workmail/classes/updateusercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-workmail/interfaces/updateusercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-workmail/interfaces/updateusercommandoutput.html)
911+
912+
</details>

clients/client-workmail/src/WorkMail.ts

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ import {
118118
DescribeEmailMonitoringConfigurationCommandInput,
119119
DescribeEmailMonitoringConfigurationCommandOutput,
120120
} from "./commands/DescribeEmailMonitoringConfigurationCommand";
121+
import {
122+
DescribeEntityCommand,
123+
DescribeEntityCommandInput,
124+
DescribeEntityCommandOutput,
125+
} from "./commands/DescribeEntityCommand";
121126
import {
122127
DescribeGroupCommand,
123128
DescribeGroupCommandInput,
@@ -215,6 +220,11 @@ import {
215220
ListGroupMembersCommandOutput,
216221
} from "./commands/ListGroupMembersCommand";
217222
import { ListGroupsCommand, ListGroupsCommandInput, ListGroupsCommandOutput } from "./commands/ListGroupsCommand";
223+
import {
224+
ListGroupsForEntityCommand,
225+
ListGroupsForEntityCommandInput,
226+
ListGroupsForEntityCommandOutput,
227+
} from "./commands/ListGroupsForEntityCommand";
218228
import {
219229
ListImpersonationRolesCommand,
220230
ListImpersonationRolesCommandInput,
@@ -337,6 +347,7 @@ import {
337347
UpdateDefaultMailDomainCommandInput,
338348
UpdateDefaultMailDomainCommandOutput,
339349
} from "./commands/UpdateDefaultMailDomainCommand";
350+
import { UpdateGroupCommand, UpdateGroupCommandInput, UpdateGroupCommandOutput } from "./commands/UpdateGroupCommand";
340351
import {
341352
UpdateImpersonationRoleCommand,
342353
UpdateImpersonationRoleCommandInput,
@@ -362,6 +373,7 @@ import {
362373
UpdateResourceCommandInput,
363374
UpdateResourceCommandOutput,
364375
} from "./commands/UpdateResourceCommand";
376+
import { UpdateUserCommand, UpdateUserCommandInput, UpdateUserCommandOutput } from "./commands/UpdateUserCommand";
365377
import { WorkMailClient, WorkMailClientConfig } from "./WorkMailClient";
366378

367379
const commands = {
@@ -393,6 +405,7 @@ const commands = {
393405
DeregisterFromWorkMailCommand,
394406
DeregisterMailDomainCommand,
395407
DescribeEmailMonitoringConfigurationCommand,
408+
DescribeEntityCommand,
396409
DescribeGroupCommand,
397410
DescribeInboundDmarcSettingsCommand,
398411
DescribeMailboxExportJobCommand,
@@ -414,6 +427,7 @@ const commands = {
414427
ListAvailabilityConfigurationsCommand,
415428
ListGroupMembersCommand,
416429
ListGroupsCommand,
430+
ListGroupsForEntityCommand,
417431
ListImpersonationRolesCommand,
418432
ListMailboxExportJobsCommand,
419433
ListMailboxPermissionsCommand,
@@ -440,11 +454,13 @@ const commands = {
440454
UntagResourceCommand,
441455
UpdateAvailabilityConfigurationCommand,
442456
UpdateDefaultMailDomainCommand,
457+
UpdateGroupCommand,
443458
UpdateImpersonationRoleCommand,
444459
UpdateMailboxQuotaCommand,
445460
UpdateMobileDeviceAccessRuleCommand,
446461
UpdatePrimaryEmailAddressCommand,
447462
UpdateResourceCommand,
463+
UpdateUserCommand,
448464
};
449465

450466
export interface WorkMail {
@@ -882,6 +898,20 @@ export interface WorkMail {
882898
cb: (err: any, data?: DescribeEmailMonitoringConfigurationCommandOutput) => void
883899
): void;
884900

901+
/**
902+
* @see {@link DescribeEntityCommand}
903+
*/
904+
describeEntity(
905+
args: DescribeEntityCommandInput,
906+
options?: __HttpHandlerOptions
907+
): Promise<DescribeEntityCommandOutput>;
908+
describeEntity(args: DescribeEntityCommandInput, cb: (err: any, data?: DescribeEntityCommandOutput) => void): void;
909+
describeEntity(
910+
args: DescribeEntityCommandInput,
911+
options: __HttpHandlerOptions,
912+
cb: (err: any, data?: DescribeEntityCommandOutput) => void
913+
): void;
914+
885915
/**
886916
* @see {@link DescribeGroupCommand}
887917
*/
@@ -1209,6 +1239,23 @@ export interface WorkMail {
12091239
cb: (err: any, data?: ListGroupsCommandOutput) => void
12101240
): void;
12111241

1242+
/**
1243+
* @see {@link ListGroupsForEntityCommand}
1244+
*/
1245+
listGroupsForEntity(
1246+
args: ListGroupsForEntityCommandInput,
1247+
options?: __HttpHandlerOptions
1248+
): Promise<ListGroupsForEntityCommandOutput>;
1249+
listGroupsForEntity(
1250+
args: ListGroupsForEntityCommandInput,
1251+
cb: (err: any, data?: ListGroupsForEntityCommandOutput) => void
1252+
): void;
1253+
listGroupsForEntity(
1254+
args: ListGroupsForEntityCommandInput,
1255+
options: __HttpHandlerOptions,
1256+
cb: (err: any, data?: ListGroupsForEntityCommandOutput) => void
1257+
): void;
1258+
12121259
/**
12131260
* @see {@link ListImpersonationRolesCommand}
12141261
*/
@@ -1618,6 +1665,17 @@ export interface WorkMail {
16181665
cb: (err: any, data?: UpdateDefaultMailDomainCommandOutput) => void
16191666
): void;
16201667

1668+
/**
1669+
* @see {@link UpdateGroupCommand}
1670+
*/
1671+
updateGroup(args: UpdateGroupCommandInput, options?: __HttpHandlerOptions): Promise<UpdateGroupCommandOutput>;
1672+
updateGroup(args: UpdateGroupCommandInput, cb: (err: any, data?: UpdateGroupCommandOutput) => void): void;
1673+
updateGroup(
1674+
args: UpdateGroupCommandInput,
1675+
options: __HttpHandlerOptions,
1676+
cb: (err: any, data?: UpdateGroupCommandOutput) => void
1677+
): void;
1678+
16211679
/**
16221680
* @see {@link UpdateImpersonationRoleCommand}
16231681
*/
@@ -1699,6 +1757,17 @@ export interface WorkMail {
16991757
options: __HttpHandlerOptions,
17001758
cb: (err: any, data?: UpdateResourceCommandOutput) => void
17011759
): void;
1760+
1761+
/**
1762+
* @see {@link UpdateUserCommand}
1763+
*/
1764+
updateUser(args: UpdateUserCommandInput, options?: __HttpHandlerOptions): Promise<UpdateUserCommandOutput>;
1765+
updateUser(args: UpdateUserCommandInput, cb: (err: any, data?: UpdateUserCommandOutput) => void): void;
1766+
updateUser(
1767+
args: UpdateUserCommandInput,
1768+
options: __HttpHandlerOptions,
1769+
cb: (err: any, data?: UpdateUserCommandOutput) => void
1770+
): void;
17021771
}
17031772

17041773
/**

clients/client-workmail/src/WorkMailClient.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ import {
132132
DescribeEmailMonitoringConfigurationCommandInput,
133133
DescribeEmailMonitoringConfigurationCommandOutput,
134134
} from "./commands/DescribeEmailMonitoringConfigurationCommand";
135+
import { DescribeEntityCommandInput, DescribeEntityCommandOutput } from "./commands/DescribeEntityCommand";
135136
import { DescribeGroupCommandInput, DescribeGroupCommandOutput } from "./commands/DescribeGroupCommand";
136137
import {
137138
DescribeInboundDmarcSettingsCommandInput,
@@ -192,6 +193,10 @@ import {
192193
} from "./commands/ListAvailabilityConfigurationsCommand";
193194
import { ListGroupMembersCommandInput, ListGroupMembersCommandOutput } from "./commands/ListGroupMembersCommand";
194195
import { ListGroupsCommandInput, ListGroupsCommandOutput } from "./commands/ListGroupsCommand";
196+
import {
197+
ListGroupsForEntityCommandInput,
198+
ListGroupsForEntityCommandOutput,
199+
} from "./commands/ListGroupsForEntityCommand";
195200
import {
196201
ListImpersonationRolesCommandInput,
197202
ListImpersonationRolesCommandOutput,
@@ -266,6 +271,7 @@ import {
266271
UpdateDefaultMailDomainCommandInput,
267272
UpdateDefaultMailDomainCommandOutput,
268273
} from "./commands/UpdateDefaultMailDomainCommand";
274+
import { UpdateGroupCommandInput, UpdateGroupCommandOutput } from "./commands/UpdateGroupCommand";
269275
import {
270276
UpdateImpersonationRoleCommandInput,
271277
UpdateImpersonationRoleCommandOutput,
@@ -280,6 +286,7 @@ import {
280286
UpdatePrimaryEmailAddressCommandOutput,
281287
} from "./commands/UpdatePrimaryEmailAddressCommand";
282288
import { UpdateResourceCommandInput, UpdateResourceCommandOutput } from "./commands/UpdateResourceCommand";
289+
import { UpdateUserCommandInput, UpdateUserCommandOutput } from "./commands/UpdateUserCommand";
283290
import {
284291
ClientInputEndpointParameters,
285292
ClientResolvedEndpointParameters,
@@ -323,6 +330,7 @@ export type ServiceInputTypes =
323330
| DeregisterFromWorkMailCommandInput
324331
| DeregisterMailDomainCommandInput
325332
| DescribeEmailMonitoringConfigurationCommandInput
333+
| DescribeEntityCommandInput
326334
| DescribeGroupCommandInput
327335
| DescribeInboundDmarcSettingsCommandInput
328336
| DescribeMailboxExportJobCommandInput
@@ -344,6 +352,7 @@ export type ServiceInputTypes =
344352
| ListAvailabilityConfigurationsCommandInput
345353
| ListGroupMembersCommandInput
346354
| ListGroupsCommandInput
355+
| ListGroupsForEntityCommandInput
347356
| ListImpersonationRolesCommandInput
348357
| ListMailDomainsCommandInput
349358
| ListMailboxExportJobsCommandInput
@@ -370,11 +379,13 @@ export type ServiceInputTypes =
370379
| UntagResourceCommandInput
371380
| UpdateAvailabilityConfigurationCommandInput
372381
| UpdateDefaultMailDomainCommandInput
382+
| UpdateGroupCommandInput
373383
| UpdateImpersonationRoleCommandInput
374384
| UpdateMailboxQuotaCommandInput
375385
| UpdateMobileDeviceAccessRuleCommandInput
376386
| UpdatePrimaryEmailAddressCommandInput
377-
| UpdateResourceCommandInput;
387+
| UpdateResourceCommandInput
388+
| UpdateUserCommandInput;
378389

379390
/**
380391
* @public
@@ -408,6 +419,7 @@ export type ServiceOutputTypes =
408419
| DeregisterFromWorkMailCommandOutput
409420
| DeregisterMailDomainCommandOutput
410421
| DescribeEmailMonitoringConfigurationCommandOutput
422+
| DescribeEntityCommandOutput
411423
| DescribeGroupCommandOutput
412424
| DescribeInboundDmarcSettingsCommandOutput
413425
| DescribeMailboxExportJobCommandOutput
@@ -429,6 +441,7 @@ export type ServiceOutputTypes =
429441
| ListAvailabilityConfigurationsCommandOutput
430442
| ListGroupMembersCommandOutput
431443
| ListGroupsCommandOutput
444+
| ListGroupsForEntityCommandOutput
432445
| ListImpersonationRolesCommandOutput
433446
| ListMailDomainsCommandOutput
434447
| ListMailboxExportJobsCommandOutput
@@ -455,11 +468,13 @@ export type ServiceOutputTypes =
455468
| UntagResourceCommandOutput
456469
| UpdateAvailabilityConfigurationCommandOutput
457470
| UpdateDefaultMailDomainCommandOutput
471+
| UpdateGroupCommandOutput
458472
| UpdateImpersonationRoleCommandOutput
459473
| UpdateMailboxQuotaCommandOutput
460474
| UpdateMobileDeviceAccessRuleCommandOutput
461475
| UpdatePrimaryEmailAddressCommandOutput
462-
| UpdateResourceCommandOutput;
476+
| UpdateResourceCommandOutput
477+
| UpdateUserCommandOutput;
463478

464479
/**
465480
* @public

clients/client-workmail/src/commands/AssociateDelegateToResourceCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ export interface AssociateDelegateToResourceCommandOutput
8181
* <p>The organization must have a valid state to perform certain
8282
* operations on the organization or its members.</p>
8383
*
84+
* @throws {@link UnsupportedOperationException} (client fault)
85+
* <p>You can't perform a write operation against a read-only directory.</p>
86+
*
8487
* @throws {@link WorkMailServiceException}
8588
* <p>Base exception class for all service exceptions from WorkMail service.</p>
8689
*

clients/client-workmail/src/commands/CreateGroupCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export interface CreateGroupCommandOutput extends CreateGroupResponse, __Metadat
4646
* const input = { // CreateGroupRequest
4747
* OrganizationId: "STRING_VALUE", // required
4848
* Name: "STRING_VALUE", // required
49+
* HiddenFromGlobalAddressList: true || false,
4950
* };
5051
* const command = new CreateGroupCommand(input);
5152
* const response = await client.send(command);

clients/client-workmail/src/commands/CreateOrganizationCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export interface CreateOrganizationCommandOutput extends CreateOrganizationRespo
5757
* ClientToken: "STRING_VALUE",
5858
* Domains: [ // Domains
5959
* { // Domain
60-
* DomainName: "STRING_VALUE",
60+
* DomainName: "STRING_VALUE", // required
6161
* HostedZoneId: "STRING_VALUE",
6262
* },
6363
* ],

clients/client-workmail/src/commands/CreateResourceCommand.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ export interface CreateResourceCommandOutput extends CreateResourceResponse, __M
4747
* OrganizationId: "STRING_VALUE", // required
4848
* Name: "STRING_VALUE", // required
4949
* Type: "ROOM" || "EQUIPMENT", // required
50+
* Description: "STRING_VALUE",
51+
* HiddenFromGlobalAddressList: true || false,
5052
* };
5153
* const command = new CreateResourceCommand(input);
5254
* const response = await client.send(command);
@@ -85,6 +87,9 @@ export interface CreateResourceCommandOutput extends CreateResourceResponse, __M
8587
* @throws {@link ReservedNameException} (client fault)
8688
* <p>This user, group, or resource name is not allowed in WorkMail.</p>
8789
*
90+
* @throws {@link UnsupportedOperationException} (client fault)
91+
* <p>You can't perform a write operation against a read-only directory.</p>
92+
*
8893
* @throws {@link WorkMailServiceException}
8994
* <p>Base exception class for all service exceptions from WorkMail service.</p>
9095
*

clients/client-workmail/src/commands/CreateUserCommand.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ export interface CreateUserCommandOutput extends CreateUserResponse, __MetadataB
4747
* OrganizationId: "STRING_VALUE", // required
4848
* Name: "STRING_VALUE", // required
4949
* DisplayName: "STRING_VALUE", // required
50-
* Password: "STRING_VALUE", // required
50+
* Password: "STRING_VALUE",
51+
* Role: "USER" || "RESOURCE" || "SYSTEM_USER" || "REMOTE_USER",
52+
* FirstName: "STRING_VALUE",
53+
* LastName: "STRING_VALUE",
54+
* HiddenFromGlobalAddressList: true || false,
5155
* };
5256
* const command = new CreateUserCommand(input);
5357
* const response = await client.send(command);

clients/client-workmail/src/commands/DeleteOrganizationCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export interface DeleteOrganizationCommandOutput extends DeleteOrganizationRespo
4747
* ClientToken: "STRING_VALUE",
4848
* OrganizationId: "STRING_VALUE", // required
4949
* DeleteDirectory: true || false, // required
50+
* ForceDelete: true || false,
5051
* };
5152
* const command = new DeleteOrganizationCommand(input);
5253
* const response = await client.send(command);

clients/client-workmail/src/commands/DeleteResourceCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ export interface DeleteResourceCommandOutput extends DeleteResourceResponse, __M
7474
* <p>The organization must have a valid state to perform certain
7575
* operations on the organization or its members.</p>
7676
*
77+
* @throws {@link UnsupportedOperationException} (client fault)
78+
* <p>You can't perform a write operation against a read-only directory.</p>
79+
*
7780
* @throws {@link WorkMailServiceException}
7881
* <p>Base exception class for all service exceptions from WorkMail service.</p>
7982
*

0 commit comments

Comments
 (0)