@aws-sdk/client-workmail 3.183.0 → 3.185.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +1 -1
  3. package/dist-cjs/WorkMail.js +105 -0
  4. package/dist-cjs/commands/AssumeImpersonationRoleCommand.js +36 -0
  5. package/dist-cjs/commands/CreateImpersonationRoleCommand.js +36 -0
  6. package/dist-cjs/commands/DeleteImpersonationRoleCommand.js +36 -0
  7. package/dist-cjs/commands/GetImpersonationRoleCommand.js +36 -0
  8. package/dist-cjs/commands/GetImpersonationRoleEffectCommand.js +36 -0
  9. package/dist-cjs/commands/ListImpersonationRolesCommand.js +36 -0
  10. package/dist-cjs/commands/UpdateImpersonationRoleCommand.js +36 -0
  11. package/dist-cjs/commands/index.js +7 -0
  12. package/dist-cjs/models/models_0.js +97 -19
  13. package/dist-cjs/pagination/ListImpersonationRolesPaginator.js +36 -0
  14. package/dist-cjs/pagination/index.js +1 -0
  15. package/dist-cjs/protocols/Aws_json1_1.js +628 -5
  16. package/dist-es/WorkMail.js +406 -294
  17. package/dist-es/WorkMailClient.js +28 -22
  18. package/dist-es/commands/AssociateDelegateToResourceCommand.js +28 -21
  19. package/dist-es/commands/AssociateMemberToGroupCommand.js +28 -21
  20. package/dist-es/commands/AssumeImpersonationRoleCommand.js +39 -0
  21. package/dist-es/commands/CancelMailboxExportJobCommand.js +28 -21
  22. package/dist-es/commands/CreateAliasCommand.js +28 -21
  23. package/dist-es/commands/CreateAvailabilityConfigurationCommand.js +28 -21
  24. package/dist-es/commands/CreateGroupCommand.js +28 -21
  25. package/dist-es/commands/CreateImpersonationRoleCommand.js +39 -0
  26. package/dist-es/commands/CreateMobileDeviceAccessRuleCommand.js +28 -21
  27. package/dist-es/commands/CreateOrganizationCommand.js +28 -21
  28. package/dist-es/commands/CreateResourceCommand.js +28 -21
  29. package/dist-es/commands/CreateUserCommand.js +28 -21
  30. package/dist-es/commands/DeleteAccessControlRuleCommand.js +28 -21
  31. package/dist-es/commands/DeleteAliasCommand.js +28 -21
  32. package/dist-es/commands/DeleteAvailabilityConfigurationCommand.js +28 -21
  33. package/dist-es/commands/DeleteEmailMonitoringConfigurationCommand.js +28 -21
  34. package/dist-es/commands/DeleteGroupCommand.js +28 -21
  35. package/dist-es/commands/DeleteImpersonationRoleCommand.js +39 -0
  36. package/dist-es/commands/DeleteMailboxPermissionsCommand.js +28 -21
  37. package/dist-es/commands/DeleteMobileDeviceAccessOverrideCommand.js +28 -21
  38. package/dist-es/commands/DeleteMobileDeviceAccessRuleCommand.js +28 -21
  39. package/dist-es/commands/DeleteOrganizationCommand.js +28 -21
  40. package/dist-es/commands/DeleteResourceCommand.js +28 -21
  41. package/dist-es/commands/DeleteRetentionPolicyCommand.js +28 -21
  42. package/dist-es/commands/DeleteUserCommand.js +28 -21
  43. package/dist-es/commands/DeregisterFromWorkMailCommand.js +28 -21
  44. package/dist-es/commands/DeregisterMailDomainCommand.js +28 -21
  45. package/dist-es/commands/DescribeEmailMonitoringConfigurationCommand.js +28 -21
  46. package/dist-es/commands/DescribeGroupCommand.js +28 -21
  47. package/dist-es/commands/DescribeInboundDmarcSettingsCommand.js +28 -21
  48. package/dist-es/commands/DescribeMailboxExportJobCommand.js +28 -21
  49. package/dist-es/commands/DescribeOrganizationCommand.js +28 -21
  50. package/dist-es/commands/DescribeResourceCommand.js +28 -21
  51. package/dist-es/commands/DescribeUserCommand.js +28 -21
  52. package/dist-es/commands/DisassociateDelegateFromResourceCommand.js +28 -21
  53. package/dist-es/commands/DisassociateMemberFromGroupCommand.js +28 -21
  54. package/dist-es/commands/GetAccessControlEffectCommand.js +28 -21
  55. package/dist-es/commands/GetDefaultRetentionPolicyCommand.js +28 -21
  56. package/dist-es/commands/GetImpersonationRoleCommand.js +39 -0
  57. package/dist-es/commands/GetImpersonationRoleEffectCommand.js +39 -0
  58. package/dist-es/commands/GetMailDomainCommand.js +28 -21
  59. package/dist-es/commands/GetMailboxDetailsCommand.js +28 -21
  60. package/dist-es/commands/GetMobileDeviceAccessEffectCommand.js +28 -21
  61. package/dist-es/commands/GetMobileDeviceAccessOverrideCommand.js +28 -21
  62. package/dist-es/commands/ListAccessControlRulesCommand.js +28 -21
  63. package/dist-es/commands/ListAliasesCommand.js +28 -21
  64. package/dist-es/commands/ListAvailabilityConfigurationsCommand.js +28 -21
  65. package/dist-es/commands/ListGroupMembersCommand.js +28 -21
  66. package/dist-es/commands/ListGroupsCommand.js +28 -21
  67. package/dist-es/commands/ListImpersonationRolesCommand.js +39 -0
  68. package/dist-es/commands/ListMailDomainsCommand.js +28 -21
  69. package/dist-es/commands/ListMailboxExportJobsCommand.js +28 -21
  70. package/dist-es/commands/ListMailboxPermissionsCommand.js +28 -21
  71. package/dist-es/commands/ListMobileDeviceAccessOverridesCommand.js +28 -21
  72. package/dist-es/commands/ListMobileDeviceAccessRulesCommand.js +28 -21
  73. package/dist-es/commands/ListOrganizationsCommand.js +28 -21
  74. package/dist-es/commands/ListResourceDelegatesCommand.js +28 -21
  75. package/dist-es/commands/ListResourcesCommand.js +28 -21
  76. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  77. package/dist-es/commands/ListUsersCommand.js +28 -21
  78. package/dist-es/commands/PutAccessControlRuleCommand.js +28 -21
  79. package/dist-es/commands/PutEmailMonitoringConfigurationCommand.js +28 -21
  80. package/dist-es/commands/PutInboundDmarcSettingsCommand.js +28 -21
  81. package/dist-es/commands/PutMailboxPermissionsCommand.js +28 -21
  82. package/dist-es/commands/PutMobileDeviceAccessOverrideCommand.js +28 -21
  83. package/dist-es/commands/PutRetentionPolicyCommand.js +28 -21
  84. package/dist-es/commands/RegisterMailDomainCommand.js +28 -21
  85. package/dist-es/commands/RegisterToWorkMailCommand.js +28 -21
  86. package/dist-es/commands/ResetPasswordCommand.js +28 -21
  87. package/dist-es/commands/StartMailboxExportJobCommand.js +28 -21
  88. package/dist-es/commands/TagResourceCommand.js +28 -21
  89. package/dist-es/commands/TestAvailabilityConfigurationCommand.js +28 -21
  90. package/dist-es/commands/UntagResourceCommand.js +28 -21
  91. package/dist-es/commands/UpdateAvailabilityConfigurationCommand.js +28 -21
  92. package/dist-es/commands/UpdateDefaultMailDomainCommand.js +28 -21
  93. package/dist-es/commands/UpdateImpersonationRoleCommand.js +39 -0
  94. package/dist-es/commands/UpdateMailboxQuotaCommand.js +28 -21
  95. package/dist-es/commands/UpdateMobileDeviceAccessRuleCommand.js +28 -21
  96. package/dist-es/commands/UpdatePrimaryEmailAddressCommand.js +28 -21
  97. package/dist-es/commands/UpdateResourceCommand.js +28 -21
  98. package/dist-es/commands/index.js +7 -0
  99. package/dist-es/endpoints.js +8 -8
  100. package/dist-es/models/WorkMailServiceException.js +10 -5
  101. package/dist-es/models/models_0.js +461 -776
  102. package/dist-es/pagination/ListAliasesPaginator.js +68 -25
  103. package/dist-es/pagination/ListAvailabilityConfigurationsPaginator.js +68 -25
  104. package/dist-es/pagination/ListGroupMembersPaginator.js +68 -25
  105. package/dist-es/pagination/ListGroupsPaginator.js +68 -25
  106. package/dist-es/pagination/ListImpersonationRolesPaginator.js +75 -0
  107. package/dist-es/pagination/ListMailDomainsPaginator.js +68 -25
  108. package/dist-es/pagination/ListMailboxExportJobsPaginator.js +68 -25
  109. package/dist-es/pagination/ListMailboxPermissionsPaginator.js +68 -25
  110. package/dist-es/pagination/ListMobileDeviceAccessOverridesPaginator.js +68 -25
  111. package/dist-es/pagination/ListOrganizationsPaginator.js +68 -25
  112. package/dist-es/pagination/ListResourceDelegatesPaginator.js +68 -25
  113. package/dist-es/pagination/ListResourcesPaginator.js +68 -25
  114. package/dist-es/pagination/ListUsersPaginator.js +68 -25
  115. package/dist-es/pagination/index.js +1 -0
  116. package/dist-es/protocols/Aws_json1_1.js +7042 -4887
  117. package/dist-es/runtimeConfig.browser.js +12 -26
  118. package/dist-es/runtimeConfig.js +12 -30
  119. package/dist-es/runtimeConfig.native.js +5 -8
  120. package/dist-es/runtimeConfig.shared.js +11 -8
  121. package/dist-types/WorkMail.d.ts +91 -32
  122. package/dist-types/WorkMailClient.d.ts +10 -3
  123. package/dist-types/commands/AssumeImpersonationRoleCommand.d.ts +36 -0
  124. package/dist-types/commands/CreateAliasCommand.d.ts +1 -1
  125. package/dist-types/commands/CreateGroupCommand.d.ts +1 -1
  126. package/dist-types/commands/CreateImpersonationRoleCommand.d.ts +40 -0
  127. package/dist-types/commands/CreateMobileDeviceAccessRuleCommand.d.ts +1 -1
  128. package/dist-types/commands/CreateOrganizationCommand.d.ts +9 -5
  129. package/dist-types/commands/CreateResourceCommand.d.ts +1 -1
  130. package/dist-types/commands/CreateUserCommand.d.ts +1 -1
  131. package/dist-types/commands/DeleteGroupCommand.d.ts +1 -1
  132. package/dist-types/commands/DeleteImpersonationRoleCommand.d.ts +35 -0
  133. package/dist-types/commands/DeleteMobileDeviceAccessRuleCommand.d.ts +1 -1
  134. package/dist-types/commands/DeleteOrganizationCommand.d.ts +1 -1
  135. package/dist-types/commands/DeleteResourceCommand.d.ts +1 -1
  136. package/dist-types/commands/DeleteUserCommand.d.ts +1 -1
  137. package/dist-types/commands/DeregisterFromWorkMailCommand.d.ts +1 -1
  138. package/dist-types/commands/DeregisterMailDomainCommand.d.ts +1 -1
  139. package/dist-types/commands/GetAccessControlEffectCommand.d.ts +1 -1
  140. package/dist-types/commands/GetImpersonationRoleCommand.d.ts +35 -0
  141. package/dist-types/commands/GetImpersonationRoleEffectCommand.d.ts +35 -0
  142. package/dist-types/commands/GetMobileDeviceAccessEffectCommand.d.ts +1 -1
  143. package/dist-types/commands/ListImpersonationRolesCommand.d.ts +35 -0
  144. package/dist-types/commands/ListMailDomainsCommand.d.ts +1 -1
  145. package/dist-types/commands/ListMobileDeviceAccessRulesCommand.d.ts +1 -1
  146. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  147. package/dist-types/commands/PutAccessControlRuleCommand.d.ts +1 -1
  148. package/dist-types/commands/RegisterMailDomainCommand.d.ts +1 -1
  149. package/dist-types/commands/RegisterToWorkMailCommand.d.ts +2 -2
  150. package/dist-types/commands/StartMailboxExportJobCommand.d.ts +1 -1
  151. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  152. package/dist-types/commands/TestAvailabilityConfigurationCommand.d.ts +1 -1
  153. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  154. package/dist-types/commands/UpdateImpersonationRoleCommand.d.ts +35 -0
  155. package/dist-types/commands/UpdateMobileDeviceAccessRuleCommand.d.ts +1 -1
  156. package/dist-types/commands/index.d.ts +7 -0
  157. package/dist-types/models/models_0.d.ts +442 -73
  158. package/dist-types/pagination/ListImpersonationRolesPaginator.d.ts +4 -0
  159. package/dist-types/pagination/index.d.ts +1 -0
  160. package/dist-types/protocols/Aws_json1_1.d.ts +21 -0
  161. package/dist-types/ts3.4/WorkMail.d.ts +119 -0
  162. package/dist-types/ts3.4/WorkMailClient.d.ts +42 -0
  163. package/dist-types/ts3.4/commands/AssumeImpersonationRoleCommand.d.ts +39 -0
  164. package/dist-types/ts3.4/commands/CreateImpersonationRoleCommand.d.ts +39 -0
  165. package/dist-types/ts3.4/commands/DeleteImpersonationRoleCommand.d.ts +39 -0
  166. package/dist-types/ts3.4/commands/GetImpersonationRoleCommand.d.ts +39 -0
  167. package/dist-types/ts3.4/commands/GetImpersonationRoleEffectCommand.d.ts +39 -0
  168. package/dist-types/ts3.4/commands/ListImpersonationRolesCommand.d.ts +39 -0
  169. package/dist-types/ts3.4/commands/UpdateImpersonationRoleCommand.d.ts +39 -0
  170. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  171. package/dist-types/ts3.4/models/models_0.d.ts +157 -9
  172. package/dist-types/ts3.4/pagination/ListImpersonationRolesPaginator.d.ts +11 -0
  173. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  174. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +84 -0
  175. package/package.json +5 -5
@@ -1,3 +1,4 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
1
2
  import packageInfo from "../package.json";
2
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
3
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
@@ -11,30 +12,15 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
11
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
13
  import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
13
14
  import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
14
- export const getRuntimeConfig = (config) => {
15
- const defaultsMode = resolveDefaultsModeConfig(config);
16
- const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
17
- const clientSharedValues = getSharedRuntimeConfig(config);
18
- return {
19
- ...clientSharedValues,
20
- ...config,
21
- runtime: "browser",
22
- defaultsMode,
23
- base64Decoder: config?.base64Decoder ?? fromBase64,
24
- base64Encoder: config?.base64Encoder ?? toBase64,
25
- bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
26
- credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
28
- defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
29
- maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
30
- region: config?.region ?? invalidProvider("Region is missing"),
31
- requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
32
- retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
33
- sha256: config?.sha256 ?? Sha256,
34
- streamCollector: config?.streamCollector ?? streamCollector,
35
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
36
- useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
37
- utf8Decoder: config?.utf8Decoder ?? fromUtf8,
38
- utf8Encoder: config?.utf8Encoder ?? toUtf8,
39
- };
15
+ export var getRuntimeConfig = function (config) {
16
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ var defaultsMode = resolveDefaultsModeConfig(config);
18
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
+ var clientSharedValues = getSharedRuntimeConfig(config);
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
+ switch (_a.label) {
22
+ case 0: return [4, defaultConfigProvider()];
23
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
+ }
25
+ }); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
40
26
  };
@@ -1,3 +1,4 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
1
2
  import packageInfo from "../package.json";
2
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
3
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
@@ -14,35 +15,16 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
14
15
  import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
15
16
  import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
16
17
  import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
17
- export const getRuntimeConfig = (config) => {
18
+ export var getRuntimeConfig = function (config) {
19
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
20
  emitWarningIfUnsupportedVersion(process.version);
19
- const defaultsMode = resolveDefaultsModeConfig(config);
20
- const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
21
- const clientSharedValues = getSharedRuntimeConfig(config);
22
- return {
23
- ...clientSharedValues,
24
- ...config,
25
- runtime: "node",
26
- defaultsMode,
27
- base64Decoder: config?.base64Decoder ?? fromBase64,
28
- base64Encoder: config?.base64Encoder ?? toBase64,
29
- bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
30
- credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
31
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
32
- defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
33
- maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
34
- region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
35
- requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
36
- retryMode: config?.retryMode ??
37
- loadNodeConfig({
38
- ...NODE_RETRY_MODE_CONFIG_OPTIONS,
39
- default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
40
- }),
41
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
42
- streamCollector: config?.streamCollector ?? streamCollector,
43
- useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
44
- useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
45
- utf8Decoder: config?.utf8Decoder ?? fromUtf8,
46
- utf8Encoder: config?.utf8Encoder ?? toUtf8,
47
- };
21
+ var defaultsMode = resolveDefaultsModeConfig(config);
22
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
23
+ var clientSharedValues = getSharedRuntimeConfig(config);
24
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
25
+ switch (_a.label) {
26
+ case 0: return [4, defaultConfigProvider()];
27
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
28
+ }
29
+ }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
48
30
  };
@@ -1,11 +1,8 @@
1
+ import { __assign } from "tslib";
1
2
  import { Sha256 } from "@aws-crypto/sha256-js";
2
3
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
- export const getRuntimeConfig = (config) => {
4
- const browserDefaults = getBrowserRuntimeConfig(config);
5
- return {
6
- ...browserDefaults,
7
- ...config,
8
- runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
- };
4
+ export var getRuntimeConfig = function (config) {
5
+ var _a;
6
+ var browserDefaults = getBrowserRuntimeConfig(config);
7
+ return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
11
8
  };
@@ -1,10 +1,13 @@
1
1
  import { parseUrl } from "@aws-sdk/url-parser";
2
2
  import { defaultRegionInfoProvider } from "./endpoints";
3
- export const getRuntimeConfig = (config) => ({
4
- apiVersion: "2017-10-01",
5
- disableHostPrefix: config?.disableHostPrefix ?? false,
6
- logger: config?.logger ?? {},
7
- regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider,
8
- serviceId: config?.serviceId ?? "WorkMail",
9
- urlParser: config?.urlParser ?? parseUrl,
10
- });
3
+ export var getRuntimeConfig = function (config) {
4
+ var _a, _b, _c, _d, _e;
5
+ return ({
6
+ apiVersion: "2017-10-01",
7
+ disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
8
+ logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {},
9
+ regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : defaultRegionInfoProvider,
10
+ serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "WorkMail",
11
+ urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
12
+ });
13
+ };
@@ -1,10 +1,12 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
2
  import { AssociateDelegateToResourceCommandInput, AssociateDelegateToResourceCommandOutput } from "./commands/AssociateDelegateToResourceCommand";
3
3
  import { AssociateMemberToGroupCommandInput, AssociateMemberToGroupCommandOutput } from "./commands/AssociateMemberToGroupCommand";
4
+ import { AssumeImpersonationRoleCommandInput, AssumeImpersonationRoleCommandOutput } from "./commands/AssumeImpersonationRoleCommand";
4
5
  import { CancelMailboxExportJobCommandInput, CancelMailboxExportJobCommandOutput } from "./commands/CancelMailboxExportJobCommand";
5
6
  import { CreateAliasCommandInput, CreateAliasCommandOutput } from "./commands/CreateAliasCommand";
6
7
  import { CreateAvailabilityConfigurationCommandInput, CreateAvailabilityConfigurationCommandOutput } from "./commands/CreateAvailabilityConfigurationCommand";
7
8
  import { CreateGroupCommandInput, CreateGroupCommandOutput } from "./commands/CreateGroupCommand";
9
+ import { CreateImpersonationRoleCommandInput, CreateImpersonationRoleCommandOutput } from "./commands/CreateImpersonationRoleCommand";
8
10
  import { CreateMobileDeviceAccessRuleCommandInput, CreateMobileDeviceAccessRuleCommandOutput } from "./commands/CreateMobileDeviceAccessRuleCommand";
9
11
  import { CreateOrganizationCommandInput, CreateOrganizationCommandOutput } from "./commands/CreateOrganizationCommand";
10
12
  import { CreateResourceCommandInput, CreateResourceCommandOutput } from "./commands/CreateResourceCommand";
@@ -14,6 +16,7 @@ import { DeleteAliasCommandInput, DeleteAliasCommandOutput } from "./commands/De
14
16
  import { DeleteAvailabilityConfigurationCommandInput, DeleteAvailabilityConfigurationCommandOutput } from "./commands/DeleteAvailabilityConfigurationCommand";
15
17
  import { DeleteEmailMonitoringConfigurationCommandInput, DeleteEmailMonitoringConfigurationCommandOutput } from "./commands/DeleteEmailMonitoringConfigurationCommand";
16
18
  import { DeleteGroupCommandInput, DeleteGroupCommandOutput } from "./commands/DeleteGroupCommand";
19
+ import { DeleteImpersonationRoleCommandInput, DeleteImpersonationRoleCommandOutput } from "./commands/DeleteImpersonationRoleCommand";
17
20
  import { DeleteMailboxPermissionsCommandInput, DeleteMailboxPermissionsCommandOutput } from "./commands/DeleteMailboxPermissionsCommand";
18
21
  import { DeleteMobileDeviceAccessOverrideCommandInput, DeleteMobileDeviceAccessOverrideCommandOutput } from "./commands/DeleteMobileDeviceAccessOverrideCommand";
19
22
  import { DeleteMobileDeviceAccessRuleCommandInput, DeleteMobileDeviceAccessRuleCommandOutput } from "./commands/DeleteMobileDeviceAccessRuleCommand";
@@ -34,6 +37,8 @@ import { DisassociateDelegateFromResourceCommandInput, DisassociateDelegateFromR
34
37
  import { DisassociateMemberFromGroupCommandInput, DisassociateMemberFromGroupCommandOutput } from "./commands/DisassociateMemberFromGroupCommand";
35
38
  import { GetAccessControlEffectCommandInput, GetAccessControlEffectCommandOutput } from "./commands/GetAccessControlEffectCommand";
36
39
  import { GetDefaultRetentionPolicyCommandInput, GetDefaultRetentionPolicyCommandOutput } from "./commands/GetDefaultRetentionPolicyCommand";
40
+ import { GetImpersonationRoleCommandInput, GetImpersonationRoleCommandOutput } from "./commands/GetImpersonationRoleCommand";
41
+ import { GetImpersonationRoleEffectCommandInput, GetImpersonationRoleEffectCommandOutput } from "./commands/GetImpersonationRoleEffectCommand";
37
42
  import { GetMailboxDetailsCommandInput, GetMailboxDetailsCommandOutput } from "./commands/GetMailboxDetailsCommand";
38
43
  import { GetMailDomainCommandInput, GetMailDomainCommandOutput } from "./commands/GetMailDomainCommand";
39
44
  import { GetMobileDeviceAccessEffectCommandInput, GetMobileDeviceAccessEffectCommandOutput } from "./commands/GetMobileDeviceAccessEffectCommand";
@@ -43,6 +48,7 @@ import { ListAliasesCommandInput, ListAliasesCommandOutput } from "./commands/Li
43
48
  import { ListAvailabilityConfigurationsCommandInput, ListAvailabilityConfigurationsCommandOutput } from "./commands/ListAvailabilityConfigurationsCommand";
44
49
  import { ListGroupMembersCommandInput, ListGroupMembersCommandOutput } from "./commands/ListGroupMembersCommand";
45
50
  import { ListGroupsCommandInput, ListGroupsCommandOutput } from "./commands/ListGroupsCommand";
51
+ import { ListImpersonationRolesCommandInput, ListImpersonationRolesCommandOutput } from "./commands/ListImpersonationRolesCommand";
46
52
  import { ListMailboxExportJobsCommandInput, ListMailboxExportJobsCommandOutput } from "./commands/ListMailboxExportJobsCommand";
47
53
  import { ListMailboxPermissionsCommandInput, ListMailboxPermissionsCommandOutput } from "./commands/ListMailboxPermissionsCommand";
48
54
  import { ListMailDomainsCommandInput, ListMailDomainsCommandOutput } from "./commands/ListMailDomainsCommand";
@@ -68,13 +74,14 @@ import { TestAvailabilityConfigurationCommandInput, TestAvailabilityConfiguratio
68
74
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
69
75
  import { UpdateAvailabilityConfigurationCommandInput, UpdateAvailabilityConfigurationCommandOutput } from "./commands/UpdateAvailabilityConfigurationCommand";
70
76
  import { UpdateDefaultMailDomainCommandInput, UpdateDefaultMailDomainCommandOutput } from "./commands/UpdateDefaultMailDomainCommand";
77
+ import { UpdateImpersonationRoleCommandInput, UpdateImpersonationRoleCommandOutput } from "./commands/UpdateImpersonationRoleCommand";
71
78
  import { UpdateMailboxQuotaCommandInput, UpdateMailboxQuotaCommandOutput } from "./commands/UpdateMailboxQuotaCommand";
72
79
  import { UpdateMobileDeviceAccessRuleCommandInput, UpdateMobileDeviceAccessRuleCommandOutput } from "./commands/UpdateMobileDeviceAccessRuleCommand";
73
80
  import { UpdatePrimaryEmailAddressCommandInput, UpdatePrimaryEmailAddressCommandOutput } from "./commands/UpdatePrimaryEmailAddressCommand";
74
81
  import { UpdateResourceCommandInput, UpdateResourceCommandOutput } from "./commands/UpdateResourceCommand";
75
82
  import { WorkMailClient } from "./WorkMailClient";
76
83
  /**
77
- * <p>Amazon WorkMail is a secure, managed business email and calendaring service with support for
84
+ * <p>WorkMail is a secure, managed business email and calendaring service with support for
78
85
  * existing desktop and mobile email clients. You can access your email, contacts, and
79
86
  * calendars using Microsoft Outlook, your browser, or other native iOS and Android email
80
87
  * applications. You can integrate WorkMail with your existing corporate directory and control
@@ -124,6 +131,13 @@ export declare class WorkMail extends WorkMailClient {
124
131
  associateMemberToGroup(args: AssociateMemberToGroupCommandInput, options?: __HttpHandlerOptions): Promise<AssociateMemberToGroupCommandOutput>;
125
132
  associateMemberToGroup(args: AssociateMemberToGroupCommandInput, cb: (err: any, data?: AssociateMemberToGroupCommandOutput) => void): void;
126
133
  associateMemberToGroup(args: AssociateMemberToGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateMemberToGroupCommandOutput) => void): void;
134
+ /**
135
+ * <p>Assumes an impersonation role for the given WorkMail organization. This method returns an
136
+ * authentication token you can use to make impersonated calls.</p>
137
+ */
138
+ assumeImpersonationRole(args: AssumeImpersonationRoleCommandInput, options?: __HttpHandlerOptions): Promise<AssumeImpersonationRoleCommandOutput>;
139
+ assumeImpersonationRole(args: AssumeImpersonationRoleCommandInput, cb: (err: any, data?: AssumeImpersonationRoleCommandOutput) => void): void;
140
+ assumeImpersonationRole(args: AssumeImpersonationRoleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssumeImpersonationRoleCommandOutput) => void): void;
127
141
  /**
128
142
  * <p>Cancels a mailbox export job.</p>
129
143
  * <note>
@@ -135,7 +149,7 @@ export declare class WorkMail extends WorkMailClient {
135
149
  cancelMailboxExportJob(args: CancelMailboxExportJobCommandInput, cb: (err: any, data?: CancelMailboxExportJobCommandOutput) => void): void;
136
150
  cancelMailboxExportJob(args: CancelMailboxExportJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelMailboxExportJobCommandOutput) => void): void;
137
151
  /**
138
- * <p>Adds an alias to the set of a given member (user or group) of Amazon WorkMail.</p>
152
+ * <p>Adds an alias to the set of a given member (user or group) of WorkMail.</p>
139
153
  */
140
154
  createAlias(args: CreateAliasCommandInput, options?: __HttpHandlerOptions): Promise<CreateAliasCommandOutput>;
141
155
  createAlias(args: CreateAliasCommandInput, cb: (err: any, data?: CreateAliasCommandOutput) => void): void;
@@ -147,35 +161,50 @@ export declare class WorkMail extends WorkMailClient {
147
161
  createAvailabilityConfiguration(args: CreateAvailabilityConfigurationCommandInput, cb: (err: any, data?: CreateAvailabilityConfigurationCommandOutput) => void): void;
148
162
  createAvailabilityConfiguration(args: CreateAvailabilityConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateAvailabilityConfigurationCommandOutput) => void): void;
149
163
  /**
150
- * <p>Creates a group that can be used in Amazon WorkMail by calling the <a>RegisterToWorkMail</a> operation.</p>
164
+ * <p>Creates a group that can be used in WorkMail by calling the <a>RegisterToWorkMail</a> operation.</p>
151
165
  */
152
166
  createGroup(args: CreateGroupCommandInput, options?: __HttpHandlerOptions): Promise<CreateGroupCommandOutput>;
153
167
  createGroup(args: CreateGroupCommandInput, cb: (err: any, data?: CreateGroupCommandOutput) => void): void;
154
168
  createGroup(args: CreateGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateGroupCommandOutput) => void): void;
155
169
  /**
156
- * <p>Creates a new mobile device access rule for the specified Amazon WorkMail organization.</p>
170
+ * <p>Creates an impersonation role for the given WorkMail organization.</p>
171
+ * <p>
172
+ * <i>Idempotency</i> ensures that an API request completes no more than one
173
+ * time. With an idempotent request, if the original request completes successfully, any
174
+ * subsequent retries also complete successfully without performing any further
175
+ * actions.</p>
176
+ */
177
+ createImpersonationRole(args: CreateImpersonationRoleCommandInput, options?: __HttpHandlerOptions): Promise<CreateImpersonationRoleCommandOutput>;
178
+ createImpersonationRole(args: CreateImpersonationRoleCommandInput, cb: (err: any, data?: CreateImpersonationRoleCommandOutput) => void): void;
179
+ createImpersonationRole(args: CreateImpersonationRoleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateImpersonationRoleCommandOutput) => void): void;
180
+ /**
181
+ * <p>Creates a new mobile device access rule for the specified WorkMail organization.</p>
157
182
  */
158
183
  createMobileDeviceAccessRule(args: CreateMobileDeviceAccessRuleCommandInput, options?: __HttpHandlerOptions): Promise<CreateMobileDeviceAccessRuleCommandOutput>;
159
184
  createMobileDeviceAccessRule(args: CreateMobileDeviceAccessRuleCommandInput, cb: (err: any, data?: CreateMobileDeviceAccessRuleCommandOutput) => void): void;
160
185
  createMobileDeviceAccessRule(args: CreateMobileDeviceAccessRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateMobileDeviceAccessRuleCommandOutput) => void): void;
161
186
  /**
162
- * <p>Creates a new Amazon WorkMail organization. Optionally, you can choose to associate an existing AWS Directory Service directory with your organization. If an AWS Directory Service directory ID is specified, the organization alias must match the directory alias. If you choose not to associate an existing directory with your organization, then we create a new Amazon WorkMail directory for you. For more information, see <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/add_new_organization.html">Adding an organization</a> in the <i>Amazon WorkMail Administrator Guide</i>.</p>
163
- * <p>You can associate multiple email domains with an organization, then set your default email domain from the Amazon WorkMail console. You can also associate a domain that is managed in an Amazon Route 53 public hosted zone. For more information, see <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/add_domain.html">Adding a domain</a> and <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/default_domain.html">Choosing the default domain</a> in the <i>Amazon WorkMail Administrator Guide</i>.</p>
164
- * <p>Optionally, you can use a customer managed master key from AWS Key Management Service
165
- * (AWS KMS) to encrypt email for your organization. If you don't associate an AWS KMS key, Amazon WorkMail creates a
166
- * default AWS managed master key for you.</p>
187
+ * <p>Creates a new WorkMail organization. Optionally, you can choose to associate an existing AWS Directory Service directory with your organization. If an AWS Directory Service directory ID is specified, the organization alias must match the directory alias. If you choose not to associate an existing directory with your organization, then we create a new WorkMail directory for you. For more information, see <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/add_new_organization.html">Adding an organization</a> in the <i>WorkMail Administrator Guide</i>.</p>
188
+ * <p>You can associate multiple email domains with an organization, then choose your
189
+ * default email domain from the WorkMail console. You can also associate a domain that is managed
190
+ * in an Amazon Route 53 public hosted zone. For more information, see <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/add_domain.html">Adding a
191
+ * domain</a> and <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/default_domain.html">Choosing the default domain</a>
192
+ * in the <i>WorkMail Administrator Guide</i>.</p>
193
+ * <p>Optionally, you can use a customer managed key from AWS Key Management Service (AWS
194
+ * KMS) to encrypt email for your organization. If you don't associate an AWS KMS key, WorkMail
195
+ * creates a default, AWS managed key for you.</p>
167
196
  */
168
197
  createOrganization(args: CreateOrganizationCommandInput, options?: __HttpHandlerOptions): Promise<CreateOrganizationCommandOutput>;
169
198
  createOrganization(args: CreateOrganizationCommandInput, cb: (err: any, data?: CreateOrganizationCommandOutput) => void): void;
170
199
  createOrganization(args: CreateOrganizationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateOrganizationCommandOutput) => void): void;
171
200
  /**
172
- * <p>Creates a new Amazon WorkMail resource. </p>
201
+ * <p>Creates a new WorkMail resource.</p>
173
202
  */
174
203
  createResource(args: CreateResourceCommandInput, options?: __HttpHandlerOptions): Promise<CreateResourceCommandOutput>;
175
204
  createResource(args: CreateResourceCommandInput, cb: (err: any, data?: CreateResourceCommandOutput) => void): void;
176
205
  createResource(args: CreateResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateResourceCommandOutput) => void): void;
177
206
  /**
178
- * <p>Creates a user who can be used in Amazon WorkMail by calling the <a>RegisterToWorkMail</a> operation.</p>
207
+ * <p>Creates a user who can be used in WorkMail by calling the <a>RegisterToWorkMail</a> operation.</p>
179
208
  */
180
209
  createUser(args: CreateUserCommandInput, options?: __HttpHandlerOptions): Promise<CreateUserCommandOutput>;
181
210
  createUser(args: CreateUserCommandInput, cb: (err: any, data?: CreateUserCommandOutput) => void): void;
@@ -209,11 +238,17 @@ export declare class WorkMail extends WorkMailClient {
209
238
  deleteEmailMonitoringConfiguration(args: DeleteEmailMonitoringConfigurationCommandInput, cb: (err: any, data?: DeleteEmailMonitoringConfigurationCommandOutput) => void): void;
210
239
  deleteEmailMonitoringConfiguration(args: DeleteEmailMonitoringConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteEmailMonitoringConfigurationCommandOutput) => void): void;
211
240
  /**
212
- * <p>Deletes a group from Amazon WorkMail.</p>
241
+ * <p>Deletes a group from WorkMail.</p>
213
242
  */
214
243
  deleteGroup(args: DeleteGroupCommandInput, options?: __HttpHandlerOptions): Promise<DeleteGroupCommandOutput>;
215
244
  deleteGroup(args: DeleteGroupCommandInput, cb: (err: any, data?: DeleteGroupCommandOutput) => void): void;
216
245
  deleteGroup(args: DeleteGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteGroupCommandOutput) => void): void;
246
+ /**
247
+ * <p>Deletes an impersonation role for the given WorkMail organization.</p>
248
+ */
249
+ deleteImpersonationRole(args: DeleteImpersonationRoleCommandInput, options?: __HttpHandlerOptions): Promise<DeleteImpersonationRoleCommandOutput>;
250
+ deleteImpersonationRole(args: DeleteImpersonationRoleCommandInput, cb: (err: any, data?: DeleteImpersonationRoleCommandOutput) => void): void;
251
+ deleteImpersonationRole(args: DeleteImpersonationRoleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteImpersonationRoleCommandOutput) => void): void;
217
252
  /**
218
253
  * <p>Deletes permissions granted to a member (user or group).</p>
219
254
  */
@@ -230,7 +265,7 @@ export declare class WorkMail extends WorkMailClient {
230
265
  deleteMobileDeviceAccessOverride(args: DeleteMobileDeviceAccessOverrideCommandInput, cb: (err: any, data?: DeleteMobileDeviceAccessOverrideCommandOutput) => void): void;
231
266
  deleteMobileDeviceAccessOverride(args: DeleteMobileDeviceAccessOverrideCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteMobileDeviceAccessOverrideCommandOutput) => void): void;
232
267
  /**
233
- * <p>Deletes a mobile device access rule for the specified Amazon WorkMail organization.</p>
268
+ * <p>Deletes a mobile device access rule for the specified WorkMail organization.</p>
234
269
  * <note>
235
270
  * <p>Deleting already deleted and non-existing rules does not produce an error. In those cases, the service sends back an HTTP 200 response with an empty HTTP body.</p>
236
271
  * </note>
@@ -239,13 +274,13 @@ export declare class WorkMail extends WorkMailClient {
239
274
  deleteMobileDeviceAccessRule(args: DeleteMobileDeviceAccessRuleCommandInput, cb: (err: any, data?: DeleteMobileDeviceAccessRuleCommandOutput) => void): void;
240
275
  deleteMobileDeviceAccessRule(args: DeleteMobileDeviceAccessRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteMobileDeviceAccessRuleCommandOutput) => void): void;
241
276
  /**
242
- * <p>Deletes an Amazon WorkMail organization and all underlying AWS resources managed by Amazon WorkMail as part of the organization. You can choose whether to delete the associated directory. For more information, see <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/remove_organization.html">Removing an organization</a> in the <i>Amazon WorkMail Administrator Guide</i>.</p>
277
+ * <p>Deletes an WorkMail organization and all underlying AWS resources managed by WorkMail as part of the organization. You can choose whether to delete the associated directory. For more information, see <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/remove_organization.html">Removing an organization</a> in the <i>WorkMail Administrator Guide</i>.</p>
243
278
  */
244
279
  deleteOrganization(args: DeleteOrganizationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteOrganizationCommandOutput>;
245
280
  deleteOrganization(args: DeleteOrganizationCommandInput, cb: (err: any, data?: DeleteOrganizationCommandOutput) => void): void;
246
281
  deleteOrganization(args: DeleteOrganizationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteOrganizationCommandOutput) => void): void;
247
282
  /**
248
- * <p>Deletes the specified resource. </p>
283
+ * <p>Deletes the specified resource.</p>
249
284
  */
250
285
  deleteResource(args: DeleteResourceCommandInput, options?: __HttpHandlerOptions): Promise<DeleteResourceCommandOutput>;
251
286
  deleteResource(args: DeleteResourceCommandInput, cb: (err: any, data?: DeleteResourceCommandOutput) => void): void;
@@ -257,7 +292,7 @@ export declare class WorkMail extends WorkMailClient {
257
292
  deleteRetentionPolicy(args: DeleteRetentionPolicyCommandInput, cb: (err: any, data?: DeleteRetentionPolicyCommandOutput) => void): void;
258
293
  deleteRetentionPolicy(args: DeleteRetentionPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteRetentionPolicyCommandOutput) => void): void;
259
294
  /**
260
- * <p>Deletes a user from Amazon WorkMail and all subsequent systems. Before you can delete a
295
+ * <p>Deletes a user from WorkMail and all subsequent systems. Before you can delete a
261
296
  * user, the user state must be <code>DISABLED</code>. Use the <a>DescribeUser</a>
262
297
  * action to confirm the user state.</p>
263
298
  * <p>Deleting a user is permanent and cannot be undone. WorkMail archives user mailboxes for
@@ -267,7 +302,7 @@ export declare class WorkMail extends WorkMailClient {
267
302
  deleteUser(args: DeleteUserCommandInput, cb: (err: any, data?: DeleteUserCommandOutput) => void): void;
268
303
  deleteUser(args: DeleteUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteUserCommandOutput) => void): void;
269
304
  /**
270
- * <p>Mark a user, group, or resource as no longer used in Amazon WorkMail. This action
305
+ * <p>Mark a user, group, or resource as no longer used in WorkMail. This action
271
306
  * disassociates the mailbox and schedules it for clean-up. WorkMail keeps mailboxes for 30 days
272
307
  * before they are permanently removed. The functionality in the console is
273
308
  * <i>Disable</i>.</p>
@@ -276,7 +311,7 @@ export declare class WorkMail extends WorkMailClient {
276
311
  deregisterFromWorkMail(args: DeregisterFromWorkMailCommandInput, cb: (err: any, data?: DeregisterFromWorkMailCommandOutput) => void): void;
277
312
  deregisterFromWorkMail(args: DeregisterFromWorkMailCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeregisterFromWorkMailCommandOutput) => void): void;
278
313
  /**
279
- * <p>Removes a domain from Amazon WorkMail, stops email routing to WorkMail, and removes the authorization allowing WorkMail use. SES keeps the domain because other applications may use it. You must first
314
+ * <p>Removes a domain from WorkMail, stops email routing to WorkMail, and removes the authorization allowing WorkMail use. SES keeps the domain because other applications may use it. You must first
280
315
  * remove any email address used by WorkMail entities before you remove the domain.</p>
281
316
  */
282
317
  deregisterMailDomain(args: DeregisterMailDomainCommandInput, options?: __HttpHandlerOptions): Promise<DeregisterMailDomainCommandOutput>;
@@ -339,7 +374,7 @@ export declare class WorkMail extends WorkMailClient {
339
374
  disassociateMemberFromGroup(args: DisassociateMemberFromGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateMemberFromGroupCommandOutput) => void): void;
340
375
  /**
341
376
  * <p>Gets the effects of an organization's access control rules as they apply to a
342
- * specified IPv4 address, access protocol action, or user ID. </p>
377
+ * specified IPv4 address, access protocol action, and user ID or impersonation role ID. You must provide either the user ID or impersonation role ID. Impersonation role ID can only be used with Action EWS.</p>
343
378
  */
344
379
  getAccessControlEffect(args: GetAccessControlEffectCommandInput, options?: __HttpHandlerOptions): Promise<GetAccessControlEffectCommandOutput>;
345
380
  getAccessControlEffect(args: GetAccessControlEffectCommandInput, cb: (err: any, data?: GetAccessControlEffectCommandOutput) => void): void;
@@ -350,6 +385,18 @@ export declare class WorkMail extends WorkMailClient {
350
385
  getDefaultRetentionPolicy(args: GetDefaultRetentionPolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetDefaultRetentionPolicyCommandOutput>;
351
386
  getDefaultRetentionPolicy(args: GetDefaultRetentionPolicyCommandInput, cb: (err: any, data?: GetDefaultRetentionPolicyCommandOutput) => void): void;
352
387
  getDefaultRetentionPolicy(args: GetDefaultRetentionPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDefaultRetentionPolicyCommandOutput) => void): void;
388
+ /**
389
+ * <p>Gets the impersonation role details for the given WorkMail organization.</p>
390
+ */
391
+ getImpersonationRole(args: GetImpersonationRoleCommandInput, options?: __HttpHandlerOptions): Promise<GetImpersonationRoleCommandOutput>;
392
+ getImpersonationRole(args: GetImpersonationRoleCommandInput, cb: (err: any, data?: GetImpersonationRoleCommandOutput) => void): void;
393
+ getImpersonationRole(args: GetImpersonationRoleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetImpersonationRoleCommandOutput) => void): void;
394
+ /**
395
+ * <p>Tests whether the given impersonation role can impersonate a target user.</p>
396
+ */
397
+ getImpersonationRoleEffect(args: GetImpersonationRoleEffectCommandInput, options?: __HttpHandlerOptions): Promise<GetImpersonationRoleEffectCommandOutput>;
398
+ getImpersonationRoleEffect(args: GetImpersonationRoleEffectCommandInput, cb: (err: any, data?: GetImpersonationRoleEffectCommandOutput) => void): void;
399
+ getImpersonationRoleEffect(args: GetImpersonationRoleEffectCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetImpersonationRoleEffectCommandOutput) => void): void;
353
400
  /**
354
401
  * <p>Requests a user's mailbox details for a specified organization and user.</p>
355
402
  */
@@ -364,7 +411,7 @@ export declare class WorkMail extends WorkMailClient {
364
411
  getMailDomain(args: GetMailDomainCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMailDomainCommandOutput) => void): void;
365
412
  /**
366
413
  * <p>Simulates the effect of the mobile device access rules for the given attributes of a sample access event. Use this method to test the effects of the current set of mobile device access
367
- * rules for the Amazon WorkMail organization for a particular user's attributes.</p>
414
+ * rules for the WorkMail organization for a particular user's attributes.</p>
368
415
  */
369
416
  getMobileDeviceAccessEffect(args: GetMobileDeviceAccessEffectCommandInput, options?: __HttpHandlerOptions): Promise<GetMobileDeviceAccessEffectCommandOutput>;
370
417
  getMobileDeviceAccessEffect(args: GetMobileDeviceAccessEffectCommandInput, cb: (err: any, data?: GetMobileDeviceAccessEffectCommandOutput) => void): void;
@@ -407,6 +454,12 @@ export declare class WorkMail extends WorkMailClient {
407
454
  listGroups(args: ListGroupsCommandInput, options?: __HttpHandlerOptions): Promise<ListGroupsCommandOutput>;
408
455
  listGroups(args: ListGroupsCommandInput, cb: (err: any, data?: ListGroupsCommandOutput) => void): void;
409
456
  listGroups(args: ListGroupsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListGroupsCommandOutput) => void): void;
457
+ /**
458
+ * <p>Lists all the impersonation roles for the given WorkMail organization.</p>
459
+ */
460
+ listImpersonationRoles(args: ListImpersonationRolesCommandInput, options?: __HttpHandlerOptions): Promise<ListImpersonationRolesCommandOutput>;
461
+ listImpersonationRoles(args: ListImpersonationRolesCommandInput, cb: (err: any, data?: ListImpersonationRolesCommandOutput) => void): void;
462
+ listImpersonationRoles(args: ListImpersonationRolesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListImpersonationRolesCommandOutput) => void): void;
410
463
  /**
411
464
  * <p>Lists the mailbox export jobs started for the specified organization within the last
412
465
  * seven days.</p>
@@ -422,7 +475,7 @@ export declare class WorkMail extends WorkMailClient {
422
475
  listMailboxPermissions(args: ListMailboxPermissionsCommandInput, cb: (err: any, data?: ListMailboxPermissionsCommandOutput) => void): void;
423
476
  listMailboxPermissions(args: ListMailboxPermissionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListMailboxPermissionsCommandOutput) => void): void;
424
477
  /**
425
- * <p>Lists the mail domains in a given Amazon WorkMail organization.</p>
478
+ * <p>Lists the mail domains in a given WorkMail organization.</p>
426
479
  */
427
480
  listMailDomains(args: ListMailDomainsCommandInput, options?: __HttpHandlerOptions): Promise<ListMailDomainsCommandOutput>;
428
481
  listMailDomains(args: ListMailDomainsCommandInput, cb: (err: any, data?: ListMailDomainsCommandOutput) => void): void;
@@ -434,7 +487,7 @@ export declare class WorkMail extends WorkMailClient {
434
487
  listMobileDeviceAccessOverrides(args: ListMobileDeviceAccessOverridesCommandInput, cb: (err: any, data?: ListMobileDeviceAccessOverridesCommandOutput) => void): void;
435
488
  listMobileDeviceAccessOverrides(args: ListMobileDeviceAccessOverridesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListMobileDeviceAccessOverridesCommandOutput) => void): void;
436
489
  /**
437
- * <p>Lists the mobile device access rules for the specified Amazon WorkMail organization.</p>
490
+ * <p>Lists the mobile device access rules for the specified WorkMail organization.</p>
438
491
  */
439
492
  listMobileDeviceAccessRules(args: ListMobileDeviceAccessRulesCommandInput, options?: __HttpHandlerOptions): Promise<ListMobileDeviceAccessRulesCommandOutput>;
440
493
  listMobileDeviceAccessRules(args: ListMobileDeviceAccessRulesCommandInput, cb: (err: any, data?: ListMobileDeviceAccessRulesCommandOutput) => void): void;
@@ -459,7 +512,7 @@ export declare class WorkMail extends WorkMailClient {
459
512
  listResources(args: ListResourcesCommandInput, cb: (err: any, data?: ListResourcesCommandOutput) => void): void;
460
513
  listResources(args: ListResourcesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListResourcesCommandOutput) => void): void;
461
514
  /**
462
- * <p>Lists the tags applied to an Amazon WorkMail organization resource.</p>
515
+ * <p>Lists the tags applied to an WorkMail organization resource.</p>
463
516
  */
464
517
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
465
518
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
@@ -473,7 +526,7 @@ export declare class WorkMail extends WorkMailClient {
473
526
  /**
474
527
  * <p>Adds a new access control rule for the specified organization. The rule allows or
475
528
  * denies access to the organization for the specified IPv4 addresses, access protocol
476
- * actions, and user IDs. Adding a new rule with the same name as an existing rule replaces
529
+ * actions, user IDs and impersonation IDs. Adding a new rule with the same name as an existing rule replaces
477
530
  * the older rule.</p>
478
531
  */
479
532
  putAccessControlRule(args: PutAccessControlRuleCommandInput, options?: __HttpHandlerOptions): Promise<PutAccessControlRuleCommandOutput>;
@@ -511,18 +564,18 @@ export declare class WorkMail extends WorkMailClient {
511
564
  putRetentionPolicy(args: PutRetentionPolicyCommandInput, cb: (err: any, data?: PutRetentionPolicyCommandOutput) => void): void;
512
565
  putRetentionPolicy(args: PutRetentionPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutRetentionPolicyCommandOutput) => void): void;
513
566
  /**
514
- * <p>Registers a new domain in Amazon WorkMail and SES, and configures it for use by WorkMail. Emails received by SES for this domain are routed to the specified WorkMail organization, and WorkMail has
567
+ * <p>Registers a new domain in WorkMail and SES, and configures it for use by WorkMail. Emails received by SES for this domain are routed to the specified WorkMail organization, and WorkMail has
515
568
  * permanent permission to use the specified domain for sending your users' emails.</p>
516
569
  */
517
570
  registerMailDomain(args: RegisterMailDomainCommandInput, options?: __HttpHandlerOptions): Promise<RegisterMailDomainCommandOutput>;
518
571
  registerMailDomain(args: RegisterMailDomainCommandInput, cb: (err: any, data?: RegisterMailDomainCommandOutput) => void): void;
519
572
  registerMailDomain(args: RegisterMailDomainCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterMailDomainCommandOutput) => void): void;
520
573
  /**
521
- * <p>Registers an existing and disabled user, group, or resource for Amazon WorkMail use by
574
+ * <p>Registers an existing and disabled user, group, or resource for WorkMail use by
522
575
  * associating a mailbox and calendaring capabilities. It performs no change if the user,
523
576
  * group, or resource is enabled and fails if the user, group, or resource is deleted. This
524
577
  * operation results in the accumulation of costs. For more information, see <a href="https://aws.amazon.com/workmail/pricing">Pricing</a>. The equivalent console
525
- * functionality for this operation is <i>Enable</i>. </p>
578
+ * functionality for this operation is <i>Enable</i>.</p>
526
579
  * <p>Users can either be created by calling the <a>CreateUser</a> API operation
527
580
  * or they can be synchronized from your directory. For more information, see <a>DeregisterFromWorkMail</a>.</p>
528
581
  */
@@ -539,13 +592,13 @@ export declare class WorkMail extends WorkMailClient {
539
592
  * <p>Starts a mailbox export job to export MIME-format email messages and calendar items
540
593
  * from the specified mailbox to the specified Amazon Simple Storage Service (Amazon S3)
541
594
  * bucket. For more information, see <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/mail-export.html">Exporting mailbox content</a> in
542
- * the <i>Amazon WorkMail Administrator Guide</i>.</p>
595
+ * the <i>WorkMail Administrator Guide</i>.</p>
543
596
  */
544
597
  startMailboxExportJob(args: StartMailboxExportJobCommandInput, options?: __HttpHandlerOptions): Promise<StartMailboxExportJobCommandOutput>;
545
598
  startMailboxExportJob(args: StartMailboxExportJobCommandInput, cb: (err: any, data?: StartMailboxExportJobCommandOutput) => void): void;
546
599
  startMailboxExportJob(args: StartMailboxExportJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartMailboxExportJobCommandOutput) => void): void;
547
600
  /**
548
- * <p>Applies the specified tags to the specified Amazon WorkMail organization
601
+ * <p>Applies the specified tags to the specified WorkMailorganization
549
602
  * resource.</p>
550
603
  */
551
604
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
@@ -558,14 +611,14 @@ export declare class WorkMail extends WorkMailClient {
558
611
  * <p>The request must contain either one provider definition (<code>EwsProvider</code> or
559
612
  * <code>LambdaProvider</code>) or the <code>DomainName</code> parameter. If the
560
613
  * <code>DomainName</code> parameter is provided, the configuration stored under the
561
- * <code>DomainName</code> will be tested. </p>
614
+ * <code>DomainName</code> will be tested.</p>
562
615
  * </note>
563
616
  */
564
617
  testAvailabilityConfiguration(args: TestAvailabilityConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<TestAvailabilityConfigurationCommandOutput>;
565
618
  testAvailabilityConfiguration(args: TestAvailabilityConfigurationCommandInput, cb: (err: any, data?: TestAvailabilityConfigurationCommandOutput) => void): void;
566
619
  testAvailabilityConfiguration(args: TestAvailabilityConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TestAvailabilityConfigurationCommandOutput) => void): void;
567
620
  /**
568
- * <p>Untags the specified tags from the specified Amazon WorkMail organization
621
+ * <p>Untags the specified tags from the specified WorkMail organization
569
622
  * resource.</p>
570
623
  */
571
624
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
@@ -584,6 +637,12 @@ export declare class WorkMail extends WorkMailClient {
584
637
  updateDefaultMailDomain(args: UpdateDefaultMailDomainCommandInput, options?: __HttpHandlerOptions): Promise<UpdateDefaultMailDomainCommandOutput>;
585
638
  updateDefaultMailDomain(args: UpdateDefaultMailDomainCommandInput, cb: (err: any, data?: UpdateDefaultMailDomainCommandOutput) => void): void;
586
639
  updateDefaultMailDomain(args: UpdateDefaultMailDomainCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDefaultMailDomainCommandOutput) => void): void;
640
+ /**
641
+ * <p>Updates an impersonation role for the given WorkMail organization.</p>
642
+ */
643
+ updateImpersonationRole(args: UpdateImpersonationRoleCommandInput, options?: __HttpHandlerOptions): Promise<UpdateImpersonationRoleCommandOutput>;
644
+ updateImpersonationRole(args: UpdateImpersonationRoleCommandInput, cb: (err: any, data?: UpdateImpersonationRoleCommandOutput) => void): void;
645
+ updateImpersonationRole(args: UpdateImpersonationRoleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateImpersonationRoleCommandOutput) => void): void;
587
646
  /**
588
647
  * <p>Updates a user's current mailbox quota for a specified organization and
589
648
  * user.</p>
@@ -592,7 +651,7 @@ export declare class WorkMail extends WorkMailClient {
592
651
  updateMailboxQuota(args: UpdateMailboxQuotaCommandInput, cb: (err: any, data?: UpdateMailboxQuotaCommandOutput) => void): void;
593
652
  updateMailboxQuota(args: UpdateMailboxQuotaCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateMailboxQuotaCommandOutput) => void): void;
594
653
  /**
595
- * <p>Updates a mobile device access rule for the specified Amazon WorkMail organization.</p>
654
+ * <p>Updates a mobile device access rule for the specified WorkMail organization.</p>
596
655
  */
597
656
  updateMobileDeviceAccessRule(args: UpdateMobileDeviceAccessRuleCommandInput, options?: __HttpHandlerOptions): Promise<UpdateMobileDeviceAccessRuleCommandOutput>;
598
657
  updateMobileDeviceAccessRule(args: UpdateMobileDeviceAccessRuleCommandInput, cb: (err: any, data?: UpdateMobileDeviceAccessRuleCommandOutput) => void): void;