@aws-sdk/client-workmail 3.414.0 → 3.415.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 (67) hide show
  1. package/README.md +32 -0
  2. package/dist-cjs/WorkMail.js +8 -0
  3. package/dist-cjs/commands/DescribeEntityCommand.js +46 -0
  4. package/dist-cjs/commands/DescribeUserCommand.js +2 -1
  5. package/dist-cjs/commands/ListGroupsForEntityCommand.js +46 -0
  6. package/dist-cjs/commands/ListUsersCommand.js +2 -1
  7. package/dist-cjs/commands/UpdateGroupCommand.js +46 -0
  8. package/dist-cjs/commands/UpdateUserCommand.js +47 -0
  9. package/dist-cjs/commands/index.js +4 -0
  10. package/dist-cjs/models/models_0.js +73 -20
  11. package/dist-cjs/pagination/ListGroupsForEntityPaginator.js +29 -0
  12. package/dist-cjs/pagination/index.js +1 -0
  13. package/dist-cjs/protocols/Aws_json1_1.js +276 -4
  14. package/dist-es/WorkMail.js +8 -0
  15. package/dist-es/commands/DescribeEntityCommand.js +42 -0
  16. package/dist-es/commands/DescribeUserCommand.js +2 -1
  17. package/dist-es/commands/ListGroupsForEntityCommand.js +42 -0
  18. package/dist-es/commands/ListUsersCommand.js +2 -1
  19. package/dist-es/commands/UpdateGroupCommand.js +42 -0
  20. package/dist-es/commands/UpdateUserCommand.js +43 -0
  21. package/dist-es/commands/index.js +4 -0
  22. package/dist-es/models/models_0.js +66 -17
  23. package/dist-es/pagination/ListGroupsForEntityPaginator.js +25 -0
  24. package/dist-es/pagination/index.js +1 -0
  25. package/dist-es/protocols/Aws_json1_1.js +265 -1
  26. package/dist-types/WorkMail.d.ts +28 -0
  27. package/dist-types/WorkMailClient.d.ts +6 -2
  28. package/dist-types/commands/AssociateDelegateToResourceCommand.d.ts +3 -0
  29. package/dist-types/commands/CreateGroupCommand.d.ts +1 -0
  30. package/dist-types/commands/CreateOrganizationCommand.d.ts +1 -1
  31. package/dist-types/commands/CreateResourceCommand.d.ts +5 -0
  32. package/dist-types/commands/CreateUserCommand.d.ts +5 -1
  33. package/dist-types/commands/DeleteOrganizationCommand.d.ts +1 -0
  34. package/dist-types/commands/DeleteResourceCommand.d.ts +3 -0
  35. package/dist-types/commands/DescribeEntityCommand.d.ts +91 -0
  36. package/dist-types/commands/DescribeGroupCommand.d.ts +1 -0
  37. package/dist-types/commands/DescribeOrganizationCommand.d.ts +2 -0
  38. package/dist-types/commands/DescribeResourceCommand.d.ts +5 -0
  39. package/dist-types/commands/DescribeUserCommand.d.ts +16 -1
  40. package/dist-types/commands/DisassociateDelegateFromResourceCommand.d.ts +3 -0
  41. package/dist-types/commands/GetMailboxDetailsCommand.d.ts +3 -0
  42. package/dist-types/commands/ListGroupsCommand.d.ts +5 -0
  43. package/dist-types/commands/ListGroupsForEntityCommand.d.ts +104 -0
  44. package/dist-types/commands/ListResourceDelegatesCommand.d.ts +3 -0
  45. package/dist-types/commands/ListResourcesCommand.d.ts +9 -0
  46. package/dist-types/commands/ListUsersCommand.d.ts +7 -1
  47. package/dist-types/commands/TagResourceCommand.d.ts +3 -0
  48. package/dist-types/commands/UpdateGroupCommand.d.ts +95 -0
  49. package/dist-types/commands/UpdateResourceCommand.d.ts +9 -0
  50. package/dist-types/commands/UpdateUserCommand.d.ts +117 -0
  51. package/dist-types/commands/index.d.ts +4 -0
  52. package/dist-types/models/models_0.d.ts +921 -58
  53. package/dist-types/pagination/ListGroupsForEntityPaginator.d.ts +7 -0
  54. package/dist-types/pagination/index.d.ts +1 -0
  55. package/dist-types/protocols/Aws_json1_1.d.ts +36 -0
  56. package/dist-types/ts3.4/WorkMail.d.ts +68 -0
  57. package/dist-types/ts3.4/WorkMailClient.d.ts +26 -2
  58. package/dist-types/ts3.4/commands/DescribeEntityCommand.d.ts +38 -0
  59. package/dist-types/ts3.4/commands/ListGroupsForEntityCommand.d.ts +39 -0
  60. package/dist-types/ts3.4/commands/UpdateGroupCommand.d.ts +35 -0
  61. package/dist-types/ts3.4/commands/UpdateUserCommand.d.ts +35 -0
  62. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  63. package/dist-types/ts3.4/models/models_0.d.ts +139 -16
  64. package/dist-types/ts3.4/pagination/ListGroupsForEntityPaginator.d.ts +11 -0
  65. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  66. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +48 -0
  67. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
2
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { DirectoryInUseException, DirectoryServiceAuthenticationFailedException, DirectoryUnavailableException, EmailAddressInUseException, EntityAlreadyRegisteredException, EntityNotFoundException, EntityStateException, InvalidConfigurationException, InvalidCustomSesConfigurationException, InvalidParameterException, InvalidPasswordException, LimitExceededException, MailDomainInUseException, MailDomainNotFoundException, MailDomainStateException, NameAvailabilityException, OrganizationNotFoundException, OrganizationStateException, ReservedNameException, ResourceNotFoundException, TooManyTagsException, UnsupportedOperationException, } from "../models/models_0";
5
5
  import { WorkMailServiceException as __BaseException } from "../models/WorkMailServiceException";
@@ -171,6 +171,12 @@ export const se_DescribeEmailMonitoringConfigurationCommand = async (input, cont
171
171
  body = JSON.stringify(_json(input));
172
172
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
173
173
  };
174
+ export const se_DescribeEntityCommand = async (input, context) => {
175
+ const headers = sharedHeaders("DescribeEntity");
176
+ let body;
177
+ body = JSON.stringify(_json(input));
178
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
179
+ };
174
180
  export const se_DescribeGroupCommand = async (input, context) => {
175
181
  const headers = sharedHeaders("DescribeGroup");
176
182
  let body;
@@ -297,6 +303,12 @@ export const se_ListGroupsCommand = async (input, context) => {
297
303
  body = JSON.stringify(_json(input));
298
304
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
299
305
  };
306
+ export const se_ListGroupsForEntityCommand = async (input, context) => {
307
+ const headers = sharedHeaders("ListGroupsForEntity");
308
+ let body;
309
+ body = JSON.stringify(_json(input));
310
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
311
+ };
300
312
  export const se_ListImpersonationRolesCommand = async (input, context) => {
301
313
  const headers = sharedHeaders("ListImpersonationRoles");
302
314
  let body;
@@ -453,6 +465,12 @@ export const se_UpdateDefaultMailDomainCommand = async (input, context) => {
453
465
  body = JSON.stringify(_json(input));
454
466
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
455
467
  };
468
+ export const se_UpdateGroupCommand = async (input, context) => {
469
+ const headers = sharedHeaders("UpdateGroup");
470
+ let body;
471
+ body = JSON.stringify(_json(input));
472
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
473
+ };
456
474
  export const se_UpdateImpersonationRoleCommand = async (input, context) => {
457
475
  const headers = sharedHeaders("UpdateImpersonationRole");
458
476
  let body;
@@ -483,6 +501,12 @@ export const se_UpdateResourceCommand = async (input, context) => {
483
501
  body = JSON.stringify(_json(input));
484
502
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
485
503
  };
504
+ export const se_UpdateUserCommand = async (input, context) => {
505
+ const headers = sharedHeaders("UpdateUser");
506
+ let body;
507
+ body = JSON.stringify(_json(input));
508
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
509
+ };
486
510
  export const de_AssociateDelegateToResourceCommand = async (output, context) => {
487
511
  if (output.statusCode >= 300) {
488
512
  return de_AssociateDelegateToResourceCommandError(output, context);
@@ -518,6 +542,9 @@ const de_AssociateDelegateToResourceCommandError = async (output, context) => {
518
542
  case "OrganizationStateException":
519
543
  case "com.amazonaws.workmail#OrganizationStateException":
520
544
  throw await de_OrganizationStateExceptionRes(parsedOutput, context);
545
+ case "UnsupportedOperationException":
546
+ case "com.amazonaws.workmail#UnsupportedOperationException":
547
+ throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
521
548
  default:
522
549
  const parsedBody = parsedOutput.body;
523
550
  return throwDefaultError({
@@ -988,6 +1015,9 @@ const de_CreateResourceCommandError = async (output, context) => {
988
1015
  case "ReservedNameException":
989
1016
  case "com.amazonaws.workmail#ReservedNameException":
990
1017
  throw await de_ReservedNameExceptionRes(parsedOutput, context);
1018
+ case "UnsupportedOperationException":
1019
+ case "com.amazonaws.workmail#UnsupportedOperationException":
1020
+ throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
991
1021
  default:
992
1022
  const parsedBody = parsedOutput.body;
993
1023
  return throwDefaultError({
@@ -1486,6 +1516,9 @@ const de_DeleteResourceCommandError = async (output, context) => {
1486
1516
  case "OrganizationStateException":
1487
1517
  case "com.amazonaws.workmail#OrganizationStateException":
1488
1518
  throw await de_OrganizationStateExceptionRes(parsedOutput, context);
1519
+ case "UnsupportedOperationException":
1520
+ case "com.amazonaws.workmail#UnsupportedOperationException":
1521
+ throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1489
1522
  default:
1490
1523
  const parsedBody = parsedOutput.body;
1491
1524
  return throwDefaultError({
@@ -1712,6 +1745,47 @@ const de_DescribeEmailMonitoringConfigurationCommandError = async (output, conte
1712
1745
  });
1713
1746
  }
1714
1747
  };
1748
+ export const de_DescribeEntityCommand = async (output, context) => {
1749
+ if (output.statusCode >= 300) {
1750
+ return de_DescribeEntityCommandError(output, context);
1751
+ }
1752
+ const data = await parseBody(output.body, context);
1753
+ let contents = {};
1754
+ contents = _json(data);
1755
+ const response = {
1756
+ $metadata: deserializeMetadata(output),
1757
+ ...contents,
1758
+ };
1759
+ return response;
1760
+ };
1761
+ const de_DescribeEntityCommandError = async (output, context) => {
1762
+ const parsedOutput = {
1763
+ ...output,
1764
+ body: await parseErrorBody(output.body, context),
1765
+ };
1766
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1767
+ switch (errorCode) {
1768
+ case "EntityNotFoundException":
1769
+ case "com.amazonaws.workmail#EntityNotFoundException":
1770
+ throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
1771
+ case "InvalidParameterException":
1772
+ case "com.amazonaws.workmail#InvalidParameterException":
1773
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1774
+ case "OrganizationNotFoundException":
1775
+ case "com.amazonaws.workmail#OrganizationNotFoundException":
1776
+ throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
1777
+ case "OrganizationStateException":
1778
+ case "com.amazonaws.workmail#OrganizationStateException":
1779
+ throw await de_OrganizationStateExceptionRes(parsedOutput, context);
1780
+ default:
1781
+ const parsedBody = parsedOutput.body;
1782
+ return throwDefaultError({
1783
+ output,
1784
+ parsedBody,
1785
+ errorCode,
1786
+ });
1787
+ }
1788
+ };
1715
1789
  export const de_DescribeGroupCommand = async (output, context) => {
1716
1790
  if (output.statusCode >= 300) {
1717
1791
  return de_DescribeGroupCommandError(output, context);
@@ -1896,6 +1970,9 @@ const de_DescribeResourceCommandError = async (output, context) => {
1896
1970
  case "OrganizationStateException":
1897
1971
  case "com.amazonaws.workmail#OrganizationStateException":
1898
1972
  throw await de_OrganizationStateExceptionRes(parsedOutput, context);
1973
+ case "UnsupportedOperationException":
1974
+ case "com.amazonaws.workmail#UnsupportedOperationException":
1975
+ throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1899
1976
  default:
1900
1977
  const parsedBody = parsedOutput.body;
1901
1978
  return throwDefaultError({
@@ -1981,6 +2058,9 @@ const de_DisassociateDelegateFromResourceCommandError = async (output, context)
1981
2058
  case "OrganizationStateException":
1982
2059
  case "com.amazonaws.workmail#OrganizationStateException":
1983
2060
  throw await de_OrganizationStateExceptionRes(parsedOutput, context);
2061
+ case "UnsupportedOperationException":
2062
+ case "com.amazonaws.workmail#UnsupportedOperationException":
2063
+ throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1984
2064
  default:
1985
2065
  const parsedBody = parsedOutput.body;
1986
2066
  return throwDefaultError({
@@ -2239,6 +2319,9 @@ const de_GetMailboxDetailsCommandError = async (output, context) => {
2239
2319
  case "EntityNotFoundException":
2240
2320
  case "com.amazonaws.workmail#EntityNotFoundException":
2241
2321
  throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2322
+ case "InvalidParameterException":
2323
+ case "com.amazonaws.workmail#InvalidParameterException":
2324
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2242
2325
  case "OrganizationNotFoundException":
2243
2326
  case "com.amazonaws.workmail#OrganizationNotFoundException":
2244
2327
  throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
@@ -2576,6 +2659,50 @@ const de_ListGroupsCommandError = async (output, context) => {
2576
2659
  });
2577
2660
  }
2578
2661
  };
2662
+ export const de_ListGroupsForEntityCommand = async (output, context) => {
2663
+ if (output.statusCode >= 300) {
2664
+ return de_ListGroupsForEntityCommandError(output, context);
2665
+ }
2666
+ const data = await parseBody(output.body, context);
2667
+ let contents = {};
2668
+ contents = _json(data);
2669
+ const response = {
2670
+ $metadata: deserializeMetadata(output),
2671
+ ...contents,
2672
+ };
2673
+ return response;
2674
+ };
2675
+ const de_ListGroupsForEntityCommandError = async (output, context) => {
2676
+ const parsedOutput = {
2677
+ ...output,
2678
+ body: await parseErrorBody(output.body, context),
2679
+ };
2680
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2681
+ switch (errorCode) {
2682
+ case "EntityNotFoundException":
2683
+ case "com.amazonaws.workmail#EntityNotFoundException":
2684
+ throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2685
+ case "EntityStateException":
2686
+ case "com.amazonaws.workmail#EntityStateException":
2687
+ throw await de_EntityStateExceptionRes(parsedOutput, context);
2688
+ case "InvalidParameterException":
2689
+ case "com.amazonaws.workmail#InvalidParameterException":
2690
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2691
+ case "OrganizationNotFoundException":
2692
+ case "com.amazonaws.workmail#OrganizationNotFoundException":
2693
+ throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
2694
+ case "OrganizationStateException":
2695
+ case "com.amazonaws.workmail#OrganizationStateException":
2696
+ throw await de_OrganizationStateExceptionRes(parsedOutput, context);
2697
+ default:
2698
+ const parsedBody = parsedOutput.body;
2699
+ return throwDefaultError({
2700
+ output,
2701
+ parsedBody,
2702
+ errorCode,
2703
+ });
2704
+ }
2705
+ };
2579
2706
  export const de_ListImpersonationRolesCommand = async (output, context) => {
2580
2707
  if (output.statusCode >= 300) {
2581
2708
  return de_ListImpersonationRolesCommandError(output, context);
@@ -2877,6 +3004,9 @@ const de_ListResourceDelegatesCommandError = async (output, context) => {
2877
3004
  case "OrganizationStateException":
2878
3005
  case "com.amazonaws.workmail#OrganizationStateException":
2879
3006
  throw await de_OrganizationStateExceptionRes(parsedOutput, context);
3007
+ case "UnsupportedOperationException":
3008
+ case "com.amazonaws.workmail#UnsupportedOperationException":
3009
+ throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2880
3010
  default:
2881
3011
  const parsedBody = parsedOutput.body;
2882
3012
  return throwDefaultError({
@@ -2915,6 +3045,9 @@ const de_ListResourcesCommandError = async (output, context) => {
2915
3045
  case "OrganizationStateException":
2916
3046
  case "com.amazonaws.workmail#OrganizationStateException":
2917
3047
  throw await de_OrganizationStateExceptionRes(parsedOutput, context);
3048
+ case "UnsupportedOperationException":
3049
+ case "com.amazonaws.workmail#UnsupportedOperationException":
3050
+ throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
2918
3051
  default:
2919
3052
  const parsedBody = parsedOutput.body;
2920
3053
  return throwDefaultError({
@@ -3472,6 +3605,9 @@ const de_TagResourceCommandError = async (output, context) => {
3472
3605
  };
3473
3606
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3474
3607
  switch (errorCode) {
3608
+ case "InvalidParameterException":
3609
+ case "com.amazonaws.workmail#InvalidParameterException":
3610
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
3475
3611
  case "OrganizationStateException":
3476
3612
  case "com.amazonaws.workmail#OrganizationStateException":
3477
3613
  throw await de_OrganizationStateExceptionRes(parsedOutput, context);
@@ -3648,6 +3784,53 @@ const de_UpdateDefaultMailDomainCommandError = async (output, context) => {
3648
3784
  });
3649
3785
  }
3650
3786
  };
3787
+ export const de_UpdateGroupCommand = async (output, context) => {
3788
+ if (output.statusCode >= 300) {
3789
+ return de_UpdateGroupCommandError(output, context);
3790
+ }
3791
+ const data = await parseBody(output.body, context);
3792
+ let contents = {};
3793
+ contents = _json(data);
3794
+ const response = {
3795
+ $metadata: deserializeMetadata(output),
3796
+ ...contents,
3797
+ };
3798
+ return response;
3799
+ };
3800
+ const de_UpdateGroupCommandError = async (output, context) => {
3801
+ const parsedOutput = {
3802
+ ...output,
3803
+ body: await parseErrorBody(output.body, context),
3804
+ };
3805
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3806
+ switch (errorCode) {
3807
+ case "EntityNotFoundException":
3808
+ case "com.amazonaws.workmail#EntityNotFoundException":
3809
+ throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
3810
+ case "EntityStateException":
3811
+ case "com.amazonaws.workmail#EntityStateException":
3812
+ throw await de_EntityStateExceptionRes(parsedOutput, context);
3813
+ case "InvalidParameterException":
3814
+ case "com.amazonaws.workmail#InvalidParameterException":
3815
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
3816
+ case "OrganizationNotFoundException":
3817
+ case "com.amazonaws.workmail#OrganizationNotFoundException":
3818
+ throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
3819
+ case "OrganizationStateException":
3820
+ case "com.amazonaws.workmail#OrganizationStateException":
3821
+ throw await de_OrganizationStateExceptionRes(parsedOutput, context);
3822
+ case "UnsupportedOperationException":
3823
+ case "com.amazonaws.workmail#UnsupportedOperationException":
3824
+ throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
3825
+ default:
3826
+ const parsedBody = parsedOutput.body;
3827
+ return throwDefaultError({
3828
+ output,
3829
+ parsedBody,
3830
+ errorCode,
3831
+ });
3832
+ }
3833
+ };
3651
3834
  export const de_UpdateImpersonationRoleCommand = async (output, context) => {
3652
3835
  if (output.statusCode >= 300) {
3653
3836
  return de_UpdateImpersonationRoleCommandError(output, context);
@@ -3880,6 +4063,9 @@ const de_UpdateResourceCommandError = async (output, context) => {
3880
4063
  case "InvalidConfigurationException":
3881
4064
  case "com.amazonaws.workmail#InvalidConfigurationException":
3882
4065
  throw await de_InvalidConfigurationExceptionRes(parsedOutput, context);
4066
+ case "InvalidParameterException":
4067
+ case "com.amazonaws.workmail#InvalidParameterException":
4068
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
3883
4069
  case "MailDomainNotFoundException":
3884
4070
  case "com.amazonaws.workmail#MailDomainNotFoundException":
3885
4071
  throw await de_MailDomainNotFoundExceptionRes(parsedOutput, context);
@@ -3895,6 +4081,62 @@ const de_UpdateResourceCommandError = async (output, context) => {
3895
4081
  case "OrganizationStateException":
3896
4082
  case "com.amazonaws.workmail#OrganizationStateException":
3897
4083
  throw await de_OrganizationStateExceptionRes(parsedOutput, context);
4084
+ case "UnsupportedOperationException":
4085
+ case "com.amazonaws.workmail#UnsupportedOperationException":
4086
+ throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
4087
+ default:
4088
+ const parsedBody = parsedOutput.body;
4089
+ return throwDefaultError({
4090
+ output,
4091
+ parsedBody,
4092
+ errorCode,
4093
+ });
4094
+ }
4095
+ };
4096
+ export const de_UpdateUserCommand = async (output, context) => {
4097
+ if (output.statusCode >= 300) {
4098
+ return de_UpdateUserCommandError(output, context);
4099
+ }
4100
+ const data = await parseBody(output.body, context);
4101
+ let contents = {};
4102
+ contents = _json(data);
4103
+ const response = {
4104
+ $metadata: deserializeMetadata(output),
4105
+ ...contents,
4106
+ };
4107
+ return response;
4108
+ };
4109
+ const de_UpdateUserCommandError = async (output, context) => {
4110
+ const parsedOutput = {
4111
+ ...output,
4112
+ body: await parseErrorBody(output.body, context),
4113
+ };
4114
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4115
+ switch (errorCode) {
4116
+ case "DirectoryServiceAuthenticationFailedException":
4117
+ case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
4118
+ throw await de_DirectoryServiceAuthenticationFailedExceptionRes(parsedOutput, context);
4119
+ case "DirectoryUnavailableException":
4120
+ case "com.amazonaws.workmail#DirectoryUnavailableException":
4121
+ throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
4122
+ case "EntityNotFoundException":
4123
+ case "com.amazonaws.workmail#EntityNotFoundException":
4124
+ throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
4125
+ case "EntityStateException":
4126
+ case "com.amazonaws.workmail#EntityStateException":
4127
+ throw await de_EntityStateExceptionRes(parsedOutput, context);
4128
+ case "InvalidParameterException":
4129
+ case "com.amazonaws.workmail#InvalidParameterException":
4130
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
4131
+ case "OrganizationNotFoundException":
4132
+ case "com.amazonaws.workmail#OrganizationNotFoundException":
4133
+ throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
4134
+ case "OrganizationStateException":
4135
+ case "com.amazonaws.workmail#OrganizationStateException":
4136
+ throw await de_OrganizationStateExceptionRes(parsedOutput, context);
4137
+ case "UnsupportedOperationException":
4138
+ case "com.amazonaws.workmail#UnsupportedOperationException":
4139
+ throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
3898
4140
  default:
3899
4141
  const parsedBody = parsedOutput.body;
3900
4142
  return throwDefaultError({
@@ -4159,6 +4401,7 @@ const se_DeleteOrganizationRequest = (input, context) => {
4159
4401
  return take(input, {
4160
4402
  ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
4161
4403
  DeleteDirectory: [],
4404
+ ForceDelete: [],
4162
4405
  OrganizationId: [],
4163
4406
  });
4164
4407
  };
@@ -4230,6 +4473,7 @@ const de_DescribeGroupResponse = (output, context) => {
4230
4473
  Email: __expectString,
4231
4474
  EnabledDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4232
4475
  GroupId: __expectString,
4476
+ HiddenFromGlobalAddressList: __expectBoolean,
4233
4477
  Name: __expectString,
4234
4478
  State: __expectString,
4235
4479
  });
@@ -4259,6 +4503,8 @@ const de_DescribeOrganizationResponse = (output, context) => {
4259
4503
  DirectoryId: __expectString,
4260
4504
  DirectoryType: __expectString,
4261
4505
  ErrorMessage: __expectString,
4506
+ InteroperabilityEnabled: __expectBoolean,
4507
+ MigrationAdmin: __expectString,
4262
4508
  OrganizationId: __expectString,
4263
4509
  State: __expectString,
4264
4510
  });
@@ -4266,9 +4512,11 @@ const de_DescribeOrganizationResponse = (output, context) => {
4266
4512
  const de_DescribeResourceResponse = (output, context) => {
4267
4513
  return take(output, {
4268
4514
  BookingOptions: _json,
4515
+ Description: __expectString,
4269
4516
  DisabledDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4270
4517
  Email: __expectString,
4271
4518
  EnabledDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4519
+ HiddenFromGlobalAddressList: __expectBoolean,
4272
4520
  Name: __expectString,
4273
4521
  ResourceId: __expectString,
4274
4522
  State: __expectString,
@@ -4277,14 +4525,29 @@ const de_DescribeResourceResponse = (output, context) => {
4277
4525
  };
4278
4526
  const de_DescribeUserResponse = (output, context) => {
4279
4527
  return take(output, {
4528
+ City: __expectString,
4529
+ Company: __expectString,
4530
+ Country: __expectString,
4531
+ Department: __expectString,
4280
4532
  DisabledDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4281
4533
  DisplayName: __expectString,
4282
4534
  Email: __expectString,
4283
4535
  EnabledDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4536
+ FirstName: __expectString,
4537
+ HiddenFromGlobalAddressList: __expectBoolean,
4538
+ Initials: __expectString,
4539
+ JobTitle: __expectString,
4540
+ LastName: __expectString,
4541
+ MailboxDeprovisionedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4542
+ MailboxProvisionedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4284
4543
  Name: __expectString,
4544
+ Office: __expectString,
4285
4545
  State: __expectString,
4546
+ Street: __expectString,
4547
+ Telephone: __expectString,
4286
4548
  UserId: __expectString,
4287
4549
  UserRole: __expectString,
4550
+ ZipCode: __expectString,
4288
4551
  });
4289
4552
  };
4290
4553
  const de_GetImpersonationRoleResponse = (output, context) => {
@@ -4492,6 +4755,7 @@ const de_MobileDeviceAccessRulesList = (output, context) => {
4492
4755
  };
4493
4756
  const de_Resource = (output, context) => {
4494
4757
  return take(output, {
4758
+ Description: __expectString,
4495
4759
  DisabledDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4496
4760
  Email: __expectString,
4497
4761
  EnabledDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -27,6 +27,7 @@ import { DeleteUserCommandInput, DeleteUserCommandOutput } from "./commands/Dele
27
27
  import { DeregisterFromWorkMailCommandInput, DeregisterFromWorkMailCommandOutput } from "./commands/DeregisterFromWorkMailCommand";
28
28
  import { DeregisterMailDomainCommandInput, DeregisterMailDomainCommandOutput } from "./commands/DeregisterMailDomainCommand";
29
29
  import { DescribeEmailMonitoringConfigurationCommandInput, DescribeEmailMonitoringConfigurationCommandOutput } from "./commands/DescribeEmailMonitoringConfigurationCommand";
30
+ import { DescribeEntityCommandInput, DescribeEntityCommandOutput } from "./commands/DescribeEntityCommand";
30
31
  import { DescribeGroupCommandInput, DescribeGroupCommandOutput } from "./commands/DescribeGroupCommand";
31
32
  import { DescribeInboundDmarcSettingsCommandInput, DescribeInboundDmarcSettingsCommandOutput } from "./commands/DescribeInboundDmarcSettingsCommand";
32
33
  import { DescribeMailboxExportJobCommandInput, DescribeMailboxExportJobCommandOutput } from "./commands/DescribeMailboxExportJobCommand";
@@ -48,6 +49,7 @@ import { ListAliasesCommandInput, ListAliasesCommandOutput } from "./commands/Li
48
49
  import { ListAvailabilityConfigurationsCommandInput, ListAvailabilityConfigurationsCommandOutput } from "./commands/ListAvailabilityConfigurationsCommand";
49
50
  import { ListGroupMembersCommandInput, ListGroupMembersCommandOutput } from "./commands/ListGroupMembersCommand";
50
51
  import { ListGroupsCommandInput, ListGroupsCommandOutput } from "./commands/ListGroupsCommand";
52
+ import { ListGroupsForEntityCommandInput, ListGroupsForEntityCommandOutput } from "./commands/ListGroupsForEntityCommand";
51
53
  import { ListImpersonationRolesCommandInput, ListImpersonationRolesCommandOutput } from "./commands/ListImpersonationRolesCommand";
52
54
  import { ListMailboxExportJobsCommandInput, ListMailboxExportJobsCommandOutput } from "./commands/ListMailboxExportJobsCommand";
53
55
  import { ListMailboxPermissionsCommandInput, ListMailboxPermissionsCommandOutput } from "./commands/ListMailboxPermissionsCommand";
@@ -74,11 +76,13 @@ import { TestAvailabilityConfigurationCommandInput, TestAvailabilityConfiguratio
74
76
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
75
77
  import { UpdateAvailabilityConfigurationCommandInput, UpdateAvailabilityConfigurationCommandOutput } from "./commands/UpdateAvailabilityConfigurationCommand";
76
78
  import { UpdateDefaultMailDomainCommandInput, UpdateDefaultMailDomainCommandOutput } from "./commands/UpdateDefaultMailDomainCommand";
79
+ import { UpdateGroupCommandInput, UpdateGroupCommandOutput } from "./commands/UpdateGroupCommand";
77
80
  import { UpdateImpersonationRoleCommandInput, UpdateImpersonationRoleCommandOutput } from "./commands/UpdateImpersonationRoleCommand";
78
81
  import { UpdateMailboxQuotaCommandInput, UpdateMailboxQuotaCommandOutput } from "./commands/UpdateMailboxQuotaCommand";
79
82
  import { UpdateMobileDeviceAccessRuleCommandInput, UpdateMobileDeviceAccessRuleCommandOutput } from "./commands/UpdateMobileDeviceAccessRuleCommand";
80
83
  import { UpdatePrimaryEmailAddressCommandInput, UpdatePrimaryEmailAddressCommandOutput } from "./commands/UpdatePrimaryEmailAddressCommand";
81
84
  import { UpdateResourceCommandInput, UpdateResourceCommandOutput } from "./commands/UpdateResourceCommand";
85
+ import { UpdateUserCommandInput, UpdateUserCommandOutput } from "./commands/UpdateUserCommand";
82
86
  import { WorkMailClient } from "./WorkMailClient";
83
87
  export interface WorkMail {
84
88
  /**
@@ -249,6 +253,12 @@ export interface WorkMail {
249
253
  describeEmailMonitoringConfiguration(args: DescribeEmailMonitoringConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DescribeEmailMonitoringConfigurationCommandOutput>;
250
254
  describeEmailMonitoringConfiguration(args: DescribeEmailMonitoringConfigurationCommandInput, cb: (err: any, data?: DescribeEmailMonitoringConfigurationCommandOutput) => void): void;
251
255
  describeEmailMonitoringConfiguration(args: DescribeEmailMonitoringConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeEmailMonitoringConfigurationCommandOutput) => void): void;
256
+ /**
257
+ * @see {@link DescribeEntityCommand}
258
+ */
259
+ describeEntity(args: DescribeEntityCommandInput, options?: __HttpHandlerOptions): Promise<DescribeEntityCommandOutput>;
260
+ describeEntity(args: DescribeEntityCommandInput, cb: (err: any, data?: DescribeEntityCommandOutput) => void): void;
261
+ describeEntity(args: DescribeEntityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeEntityCommandOutput) => void): void;
252
262
  /**
253
263
  * @see {@link DescribeGroupCommand}
254
264
  */
@@ -375,6 +385,12 @@ export interface WorkMail {
375
385
  listGroups(args: ListGroupsCommandInput, options?: __HttpHandlerOptions): Promise<ListGroupsCommandOutput>;
376
386
  listGroups(args: ListGroupsCommandInput, cb: (err: any, data?: ListGroupsCommandOutput) => void): void;
377
387
  listGroups(args: ListGroupsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListGroupsCommandOutput) => void): void;
388
+ /**
389
+ * @see {@link ListGroupsForEntityCommand}
390
+ */
391
+ listGroupsForEntity(args: ListGroupsForEntityCommandInput, options?: __HttpHandlerOptions): Promise<ListGroupsForEntityCommandOutput>;
392
+ listGroupsForEntity(args: ListGroupsForEntityCommandInput, cb: (err: any, data?: ListGroupsForEntityCommandOutput) => void): void;
393
+ listGroupsForEntity(args: ListGroupsForEntityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListGroupsForEntityCommandOutput) => void): void;
378
394
  /**
379
395
  * @see {@link ListImpersonationRolesCommand}
380
396
  */
@@ -531,6 +547,12 @@ export interface WorkMail {
531
547
  updateDefaultMailDomain(args: UpdateDefaultMailDomainCommandInput, options?: __HttpHandlerOptions): Promise<UpdateDefaultMailDomainCommandOutput>;
532
548
  updateDefaultMailDomain(args: UpdateDefaultMailDomainCommandInput, cb: (err: any, data?: UpdateDefaultMailDomainCommandOutput) => void): void;
533
549
  updateDefaultMailDomain(args: UpdateDefaultMailDomainCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDefaultMailDomainCommandOutput) => void): void;
550
+ /**
551
+ * @see {@link UpdateGroupCommand}
552
+ */
553
+ updateGroup(args: UpdateGroupCommandInput, options?: __HttpHandlerOptions): Promise<UpdateGroupCommandOutput>;
554
+ updateGroup(args: UpdateGroupCommandInput, cb: (err: any, data?: UpdateGroupCommandOutput) => void): void;
555
+ updateGroup(args: UpdateGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateGroupCommandOutput) => void): void;
534
556
  /**
535
557
  * @see {@link UpdateImpersonationRoleCommand}
536
558
  */
@@ -561,6 +583,12 @@ export interface WorkMail {
561
583
  updateResource(args: UpdateResourceCommandInput, options?: __HttpHandlerOptions): Promise<UpdateResourceCommandOutput>;
562
584
  updateResource(args: UpdateResourceCommandInput, cb: (err: any, data?: UpdateResourceCommandOutput) => void): void;
563
585
  updateResource(args: UpdateResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateResourceCommandOutput) => void): void;
586
+ /**
587
+ * @see {@link UpdateUserCommand}
588
+ */
589
+ updateUser(args: UpdateUserCommandInput, options?: __HttpHandlerOptions): Promise<UpdateUserCommandOutput>;
590
+ updateUser(args: UpdateUserCommandInput, cb: (err: any, data?: UpdateUserCommandOutput) => void): void;
591
+ updateUser(args: UpdateUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateUserCommandOutput) => void): void;
564
592
  }
565
593
  /**
566
594
  * @public
@@ -36,6 +36,7 @@ import { DeleteUserCommandInput, DeleteUserCommandOutput } from "./commands/Dele
36
36
  import { DeregisterFromWorkMailCommandInput, DeregisterFromWorkMailCommandOutput } from "./commands/DeregisterFromWorkMailCommand";
37
37
  import { DeregisterMailDomainCommandInput, DeregisterMailDomainCommandOutput } from "./commands/DeregisterMailDomainCommand";
38
38
  import { DescribeEmailMonitoringConfigurationCommandInput, DescribeEmailMonitoringConfigurationCommandOutput } from "./commands/DescribeEmailMonitoringConfigurationCommand";
39
+ import { DescribeEntityCommandInput, DescribeEntityCommandOutput } from "./commands/DescribeEntityCommand";
39
40
  import { DescribeGroupCommandInput, DescribeGroupCommandOutput } from "./commands/DescribeGroupCommand";
40
41
  import { DescribeInboundDmarcSettingsCommandInput, DescribeInboundDmarcSettingsCommandOutput } from "./commands/DescribeInboundDmarcSettingsCommand";
41
42
  import { DescribeMailboxExportJobCommandInput, DescribeMailboxExportJobCommandOutput } from "./commands/DescribeMailboxExportJobCommand";
@@ -57,6 +58,7 @@ import { ListAliasesCommandInput, ListAliasesCommandOutput } from "./commands/Li
57
58
  import { ListAvailabilityConfigurationsCommandInput, ListAvailabilityConfigurationsCommandOutput } from "./commands/ListAvailabilityConfigurationsCommand";
58
59
  import { ListGroupMembersCommandInput, ListGroupMembersCommandOutput } from "./commands/ListGroupMembersCommand";
59
60
  import { ListGroupsCommandInput, ListGroupsCommandOutput } from "./commands/ListGroupsCommand";
61
+ import { ListGroupsForEntityCommandInput, ListGroupsForEntityCommandOutput } from "./commands/ListGroupsForEntityCommand";
60
62
  import { ListImpersonationRolesCommandInput, ListImpersonationRolesCommandOutput } from "./commands/ListImpersonationRolesCommand";
61
63
  import { ListMailboxExportJobsCommandInput, ListMailboxExportJobsCommandOutput } from "./commands/ListMailboxExportJobsCommand";
62
64
  import { ListMailboxPermissionsCommandInput, ListMailboxPermissionsCommandOutput } from "./commands/ListMailboxPermissionsCommand";
@@ -83,22 +85,24 @@ import { TestAvailabilityConfigurationCommandInput, TestAvailabilityConfiguratio
83
85
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
84
86
  import { UpdateAvailabilityConfigurationCommandInput, UpdateAvailabilityConfigurationCommandOutput } from "./commands/UpdateAvailabilityConfigurationCommand";
85
87
  import { UpdateDefaultMailDomainCommandInput, UpdateDefaultMailDomainCommandOutput } from "./commands/UpdateDefaultMailDomainCommand";
88
+ import { UpdateGroupCommandInput, UpdateGroupCommandOutput } from "./commands/UpdateGroupCommand";
86
89
  import { UpdateImpersonationRoleCommandInput, UpdateImpersonationRoleCommandOutput } from "./commands/UpdateImpersonationRoleCommand";
87
90
  import { UpdateMailboxQuotaCommandInput, UpdateMailboxQuotaCommandOutput } from "./commands/UpdateMailboxQuotaCommand";
88
91
  import { UpdateMobileDeviceAccessRuleCommandInput, UpdateMobileDeviceAccessRuleCommandOutput } from "./commands/UpdateMobileDeviceAccessRuleCommand";
89
92
  import { UpdatePrimaryEmailAddressCommandInput, UpdatePrimaryEmailAddressCommandOutput } from "./commands/UpdatePrimaryEmailAddressCommand";
90
93
  import { UpdateResourceCommandInput, UpdateResourceCommandOutput } from "./commands/UpdateResourceCommand";
94
+ import { UpdateUserCommandInput, UpdateUserCommandOutput } from "./commands/UpdateUserCommand";
91
95
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
92
96
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
93
97
  export { __Client };
94
98
  /**
95
99
  * @public
96
100
  */
97
- export type ServiceInputTypes = AssociateDelegateToResourceCommandInput | AssociateMemberToGroupCommandInput | AssumeImpersonationRoleCommandInput | CancelMailboxExportJobCommandInput | CreateAliasCommandInput | CreateAvailabilityConfigurationCommandInput | CreateGroupCommandInput | CreateImpersonationRoleCommandInput | CreateMobileDeviceAccessRuleCommandInput | CreateOrganizationCommandInput | CreateResourceCommandInput | CreateUserCommandInput | DeleteAccessControlRuleCommandInput | DeleteAliasCommandInput | DeleteAvailabilityConfigurationCommandInput | DeleteEmailMonitoringConfigurationCommandInput | DeleteGroupCommandInput | DeleteImpersonationRoleCommandInput | DeleteMailboxPermissionsCommandInput | DeleteMobileDeviceAccessOverrideCommandInput | DeleteMobileDeviceAccessRuleCommandInput | DeleteOrganizationCommandInput | DeleteResourceCommandInput | DeleteRetentionPolicyCommandInput | DeleteUserCommandInput | DeregisterFromWorkMailCommandInput | DeregisterMailDomainCommandInput | DescribeEmailMonitoringConfigurationCommandInput | DescribeGroupCommandInput | DescribeInboundDmarcSettingsCommandInput | DescribeMailboxExportJobCommandInput | DescribeOrganizationCommandInput | DescribeResourceCommandInput | DescribeUserCommandInput | DisassociateDelegateFromResourceCommandInput | DisassociateMemberFromGroupCommandInput | GetAccessControlEffectCommandInput | GetDefaultRetentionPolicyCommandInput | GetImpersonationRoleCommandInput | GetImpersonationRoleEffectCommandInput | GetMailDomainCommandInput | GetMailboxDetailsCommandInput | GetMobileDeviceAccessEffectCommandInput | GetMobileDeviceAccessOverrideCommandInput | ListAccessControlRulesCommandInput | ListAliasesCommandInput | ListAvailabilityConfigurationsCommandInput | ListGroupMembersCommandInput | ListGroupsCommandInput | ListImpersonationRolesCommandInput | ListMailDomainsCommandInput | ListMailboxExportJobsCommandInput | ListMailboxPermissionsCommandInput | ListMobileDeviceAccessOverridesCommandInput | ListMobileDeviceAccessRulesCommandInput | ListOrganizationsCommandInput | ListResourceDelegatesCommandInput | ListResourcesCommandInput | ListTagsForResourceCommandInput | ListUsersCommandInput | PutAccessControlRuleCommandInput | PutEmailMonitoringConfigurationCommandInput | PutInboundDmarcSettingsCommandInput | PutMailboxPermissionsCommandInput | PutMobileDeviceAccessOverrideCommandInput | PutRetentionPolicyCommandInput | RegisterMailDomainCommandInput | RegisterToWorkMailCommandInput | ResetPasswordCommandInput | StartMailboxExportJobCommandInput | TagResourceCommandInput | TestAvailabilityConfigurationCommandInput | UntagResourceCommandInput | UpdateAvailabilityConfigurationCommandInput | UpdateDefaultMailDomainCommandInput | UpdateImpersonationRoleCommandInput | UpdateMailboxQuotaCommandInput | UpdateMobileDeviceAccessRuleCommandInput | UpdatePrimaryEmailAddressCommandInput | UpdateResourceCommandInput;
101
+ export type ServiceInputTypes = AssociateDelegateToResourceCommandInput | AssociateMemberToGroupCommandInput | AssumeImpersonationRoleCommandInput | CancelMailboxExportJobCommandInput | CreateAliasCommandInput | CreateAvailabilityConfigurationCommandInput | CreateGroupCommandInput | CreateImpersonationRoleCommandInput | CreateMobileDeviceAccessRuleCommandInput | CreateOrganizationCommandInput | CreateResourceCommandInput | CreateUserCommandInput | DeleteAccessControlRuleCommandInput | DeleteAliasCommandInput | DeleteAvailabilityConfigurationCommandInput | DeleteEmailMonitoringConfigurationCommandInput | DeleteGroupCommandInput | DeleteImpersonationRoleCommandInput | DeleteMailboxPermissionsCommandInput | DeleteMobileDeviceAccessOverrideCommandInput | DeleteMobileDeviceAccessRuleCommandInput | DeleteOrganizationCommandInput | DeleteResourceCommandInput | DeleteRetentionPolicyCommandInput | DeleteUserCommandInput | DeregisterFromWorkMailCommandInput | DeregisterMailDomainCommandInput | DescribeEmailMonitoringConfigurationCommandInput | DescribeEntityCommandInput | DescribeGroupCommandInput | DescribeInboundDmarcSettingsCommandInput | DescribeMailboxExportJobCommandInput | DescribeOrganizationCommandInput | DescribeResourceCommandInput | DescribeUserCommandInput | DisassociateDelegateFromResourceCommandInput | DisassociateMemberFromGroupCommandInput | GetAccessControlEffectCommandInput | GetDefaultRetentionPolicyCommandInput | GetImpersonationRoleCommandInput | GetImpersonationRoleEffectCommandInput | GetMailDomainCommandInput | GetMailboxDetailsCommandInput | GetMobileDeviceAccessEffectCommandInput | GetMobileDeviceAccessOverrideCommandInput | ListAccessControlRulesCommandInput | ListAliasesCommandInput | ListAvailabilityConfigurationsCommandInput | ListGroupMembersCommandInput | ListGroupsCommandInput | ListGroupsForEntityCommandInput | ListImpersonationRolesCommandInput | ListMailDomainsCommandInput | ListMailboxExportJobsCommandInput | ListMailboxPermissionsCommandInput | ListMobileDeviceAccessOverridesCommandInput | ListMobileDeviceAccessRulesCommandInput | ListOrganizationsCommandInput | ListResourceDelegatesCommandInput | ListResourcesCommandInput | ListTagsForResourceCommandInput | ListUsersCommandInput | PutAccessControlRuleCommandInput | PutEmailMonitoringConfigurationCommandInput | PutInboundDmarcSettingsCommandInput | PutMailboxPermissionsCommandInput | PutMobileDeviceAccessOverrideCommandInput | PutRetentionPolicyCommandInput | RegisterMailDomainCommandInput | RegisterToWorkMailCommandInput | ResetPasswordCommandInput | StartMailboxExportJobCommandInput | TagResourceCommandInput | TestAvailabilityConfigurationCommandInput | UntagResourceCommandInput | UpdateAvailabilityConfigurationCommandInput | UpdateDefaultMailDomainCommandInput | UpdateGroupCommandInput | UpdateImpersonationRoleCommandInput | UpdateMailboxQuotaCommandInput | UpdateMobileDeviceAccessRuleCommandInput | UpdatePrimaryEmailAddressCommandInput | UpdateResourceCommandInput | UpdateUserCommandInput;
98
102
  /**
99
103
  * @public
100
104
  */
101
- export type ServiceOutputTypes = AssociateDelegateToResourceCommandOutput | AssociateMemberToGroupCommandOutput | AssumeImpersonationRoleCommandOutput | CancelMailboxExportJobCommandOutput | CreateAliasCommandOutput | CreateAvailabilityConfigurationCommandOutput | CreateGroupCommandOutput | CreateImpersonationRoleCommandOutput | CreateMobileDeviceAccessRuleCommandOutput | CreateOrganizationCommandOutput | CreateResourceCommandOutput | CreateUserCommandOutput | DeleteAccessControlRuleCommandOutput | DeleteAliasCommandOutput | DeleteAvailabilityConfigurationCommandOutput | DeleteEmailMonitoringConfigurationCommandOutput | DeleteGroupCommandOutput | DeleteImpersonationRoleCommandOutput | DeleteMailboxPermissionsCommandOutput | DeleteMobileDeviceAccessOverrideCommandOutput | DeleteMobileDeviceAccessRuleCommandOutput | DeleteOrganizationCommandOutput | DeleteResourceCommandOutput | DeleteRetentionPolicyCommandOutput | DeleteUserCommandOutput | DeregisterFromWorkMailCommandOutput | DeregisterMailDomainCommandOutput | DescribeEmailMonitoringConfigurationCommandOutput | DescribeGroupCommandOutput | DescribeInboundDmarcSettingsCommandOutput | DescribeMailboxExportJobCommandOutput | DescribeOrganizationCommandOutput | DescribeResourceCommandOutput | DescribeUserCommandOutput | DisassociateDelegateFromResourceCommandOutput | DisassociateMemberFromGroupCommandOutput | GetAccessControlEffectCommandOutput | GetDefaultRetentionPolicyCommandOutput | GetImpersonationRoleCommandOutput | GetImpersonationRoleEffectCommandOutput | GetMailDomainCommandOutput | GetMailboxDetailsCommandOutput | GetMobileDeviceAccessEffectCommandOutput | GetMobileDeviceAccessOverrideCommandOutput | ListAccessControlRulesCommandOutput | ListAliasesCommandOutput | ListAvailabilityConfigurationsCommandOutput | ListGroupMembersCommandOutput | ListGroupsCommandOutput | ListImpersonationRolesCommandOutput | ListMailDomainsCommandOutput | ListMailboxExportJobsCommandOutput | ListMailboxPermissionsCommandOutput | ListMobileDeviceAccessOverridesCommandOutput | ListMobileDeviceAccessRulesCommandOutput | ListOrganizationsCommandOutput | ListResourceDelegatesCommandOutput | ListResourcesCommandOutput | ListTagsForResourceCommandOutput | ListUsersCommandOutput | PutAccessControlRuleCommandOutput | PutEmailMonitoringConfigurationCommandOutput | PutInboundDmarcSettingsCommandOutput | PutMailboxPermissionsCommandOutput | PutMobileDeviceAccessOverrideCommandOutput | PutRetentionPolicyCommandOutput | RegisterMailDomainCommandOutput | RegisterToWorkMailCommandOutput | ResetPasswordCommandOutput | StartMailboxExportJobCommandOutput | TagResourceCommandOutput | TestAvailabilityConfigurationCommandOutput | UntagResourceCommandOutput | UpdateAvailabilityConfigurationCommandOutput | UpdateDefaultMailDomainCommandOutput | UpdateImpersonationRoleCommandOutput | UpdateMailboxQuotaCommandOutput | UpdateMobileDeviceAccessRuleCommandOutput | UpdatePrimaryEmailAddressCommandOutput | UpdateResourceCommandOutput;
105
+ export type ServiceOutputTypes = AssociateDelegateToResourceCommandOutput | AssociateMemberToGroupCommandOutput | AssumeImpersonationRoleCommandOutput | CancelMailboxExportJobCommandOutput | CreateAliasCommandOutput | CreateAvailabilityConfigurationCommandOutput | CreateGroupCommandOutput | CreateImpersonationRoleCommandOutput | CreateMobileDeviceAccessRuleCommandOutput | CreateOrganizationCommandOutput | CreateResourceCommandOutput | CreateUserCommandOutput | DeleteAccessControlRuleCommandOutput | DeleteAliasCommandOutput | DeleteAvailabilityConfigurationCommandOutput | DeleteEmailMonitoringConfigurationCommandOutput | DeleteGroupCommandOutput | DeleteImpersonationRoleCommandOutput | DeleteMailboxPermissionsCommandOutput | DeleteMobileDeviceAccessOverrideCommandOutput | DeleteMobileDeviceAccessRuleCommandOutput | DeleteOrganizationCommandOutput | DeleteResourceCommandOutput | DeleteRetentionPolicyCommandOutput | DeleteUserCommandOutput | DeregisterFromWorkMailCommandOutput | DeregisterMailDomainCommandOutput | DescribeEmailMonitoringConfigurationCommandOutput | DescribeEntityCommandOutput | DescribeGroupCommandOutput | DescribeInboundDmarcSettingsCommandOutput | DescribeMailboxExportJobCommandOutput | DescribeOrganizationCommandOutput | DescribeResourceCommandOutput | DescribeUserCommandOutput | DisassociateDelegateFromResourceCommandOutput | DisassociateMemberFromGroupCommandOutput | GetAccessControlEffectCommandOutput | GetDefaultRetentionPolicyCommandOutput | GetImpersonationRoleCommandOutput | GetImpersonationRoleEffectCommandOutput | GetMailDomainCommandOutput | GetMailboxDetailsCommandOutput | GetMobileDeviceAccessEffectCommandOutput | GetMobileDeviceAccessOverrideCommandOutput | ListAccessControlRulesCommandOutput | ListAliasesCommandOutput | ListAvailabilityConfigurationsCommandOutput | ListGroupMembersCommandOutput | ListGroupsCommandOutput | ListGroupsForEntityCommandOutput | ListImpersonationRolesCommandOutput | ListMailDomainsCommandOutput | ListMailboxExportJobsCommandOutput | ListMailboxPermissionsCommandOutput | ListMobileDeviceAccessOverridesCommandOutput | ListMobileDeviceAccessRulesCommandOutput | ListOrganizationsCommandOutput | ListResourceDelegatesCommandOutput | ListResourcesCommandOutput | ListTagsForResourceCommandOutput | ListUsersCommandOutput | PutAccessControlRuleCommandOutput | PutEmailMonitoringConfigurationCommandOutput | PutInboundDmarcSettingsCommandOutput | PutMailboxPermissionsCommandOutput | PutMobileDeviceAccessOverrideCommandOutput | PutRetentionPolicyCommandOutput | RegisterMailDomainCommandOutput | RegisterToWorkMailCommandOutput | ResetPasswordCommandOutput | StartMailboxExportJobCommandOutput | TagResourceCommandOutput | TestAvailabilityConfigurationCommandOutput | UntagResourceCommandOutput | UpdateAvailabilityConfigurationCommandOutput | UpdateDefaultMailDomainCommandOutput | UpdateGroupCommandOutput | UpdateImpersonationRoleCommandOutput | UpdateMailboxQuotaCommandOutput | UpdateMobileDeviceAccessRuleCommandOutput | UpdatePrimaryEmailAddressCommandOutput | UpdateResourceCommandOutput | UpdateUserCommandOutput;
102
106
  /**
103
107
  * @public
104
108
  */
@@ -66,6 +66,9 @@ export interface AssociateDelegateToResourceCommandOutput extends AssociateDeleg
66
66
  * <p>The organization must have a valid state to perform certain
67
67
  * operations on the organization or its members.</p>
68
68
  *
69
+ * @throws {@link UnsupportedOperationException} (client fault)
70
+ * <p>You can't perform a write operation against a read-only directory.</p>
71
+ *
69
72
  * @throws {@link WorkMailServiceException}
70
73
  * <p>Base exception class for all service exceptions from WorkMail service.</p>
71
74
  *
@@ -33,6 +33,7 @@ export interface CreateGroupCommandOutput extends CreateGroupResponse, __Metadat
33
33
  * const input = { // CreateGroupRequest
34
34
  * OrganizationId: "STRING_VALUE", // required
35
35
  * Name: "STRING_VALUE", // required
36
+ * HiddenFromGlobalAddressList: true || false,
36
37
  * };
37
38
  * const command = new CreateGroupCommand(input);
38
39
  * const response = await client.send(command);
@@ -44,7 +44,7 @@ export interface CreateOrganizationCommandOutput extends CreateOrganizationRespo
44
44
  * ClientToken: "STRING_VALUE",
45
45
  * Domains: [ // Domains
46
46
  * { // Domain
47
- * DomainName: "STRING_VALUE",
47
+ * DomainName: "STRING_VALUE", // required
48
48
  * HostedZoneId: "STRING_VALUE",
49
49
  * },
50
50
  * ],
@@ -34,6 +34,8 @@ export interface CreateResourceCommandOutput extends CreateResourceResponse, __M
34
34
  * OrganizationId: "STRING_VALUE", // required
35
35
  * Name: "STRING_VALUE", // required
36
36
  * Type: "ROOM" || "EQUIPMENT", // required
37
+ * Description: "STRING_VALUE",
38
+ * HiddenFromGlobalAddressList: true || false,
37
39
  * };
38
40
  * const command = new CreateResourceCommand(input);
39
41
  * const response = await client.send(command);
@@ -72,6 +74,9 @@ export interface CreateResourceCommandOutput extends CreateResourceResponse, __M
72
74
  * @throws {@link ReservedNameException} (client fault)
73
75
  * <p>This user, group, or resource name is not allowed in WorkMail.</p>
74
76
  *
77
+ * @throws {@link UnsupportedOperationException} (client fault)
78
+ * <p>You can't perform a write operation against a read-only directory.</p>
79
+ *
75
80
  * @throws {@link WorkMailServiceException}
76
81
  * <p>Base exception class for all service exceptions from WorkMail service.</p>
77
82
  *