@aws-sdk/client-workmail 3.927.0 → 3.928.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 (116) hide show
  1. package/dist-cjs/index.js +2475 -3376
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/WorkMailClient.js +2 -0
  4. package/dist-es/commands/AssociateDelegateToResourceCommand.js +3 -9
  5. package/dist-es/commands/AssociateMemberToGroupCommand.js +3 -9
  6. package/dist-es/commands/AssumeImpersonationRoleCommand.js +3 -9
  7. package/dist-es/commands/CancelMailboxExportJobCommand.js +3 -9
  8. package/dist-es/commands/CreateAliasCommand.js +3 -9
  9. package/dist-es/commands/CreateAvailabilityConfigurationCommand.js +3 -10
  10. package/dist-es/commands/CreateGroupCommand.js +3 -9
  11. package/dist-es/commands/CreateIdentityCenterApplicationCommand.js +3 -9
  12. package/dist-es/commands/CreateImpersonationRoleCommand.js +3 -9
  13. package/dist-es/commands/CreateMobileDeviceAccessRuleCommand.js +3 -9
  14. package/dist-es/commands/CreateOrganizationCommand.js +3 -9
  15. package/dist-es/commands/CreateResourceCommand.js +3 -10
  16. package/dist-es/commands/CreateUserCommand.js +3 -10
  17. package/dist-es/commands/DeleteAccessControlRuleCommand.js +3 -9
  18. package/dist-es/commands/DeleteAliasCommand.js +3 -9
  19. package/dist-es/commands/DeleteAvailabilityConfigurationCommand.js +3 -9
  20. package/dist-es/commands/DeleteEmailMonitoringConfigurationCommand.js +3 -9
  21. package/dist-es/commands/DeleteGroupCommand.js +3 -9
  22. package/dist-es/commands/DeleteIdentityCenterApplicationCommand.js +3 -9
  23. package/dist-es/commands/DeleteIdentityProviderConfigurationCommand.js +3 -9
  24. package/dist-es/commands/DeleteImpersonationRoleCommand.js +3 -9
  25. package/dist-es/commands/DeleteMailboxPermissionsCommand.js +3 -9
  26. package/dist-es/commands/DeleteMobileDeviceAccessOverrideCommand.js +3 -9
  27. package/dist-es/commands/DeleteMobileDeviceAccessRuleCommand.js +3 -9
  28. package/dist-es/commands/DeleteOrganizationCommand.js +3 -9
  29. package/dist-es/commands/DeletePersonalAccessTokenCommand.js +3 -9
  30. package/dist-es/commands/DeleteResourceCommand.js +3 -9
  31. package/dist-es/commands/DeleteRetentionPolicyCommand.js +3 -9
  32. package/dist-es/commands/DeleteUserCommand.js +3 -9
  33. package/dist-es/commands/DeregisterFromWorkMailCommand.js +3 -9
  34. package/dist-es/commands/DeregisterMailDomainCommand.js +3 -9
  35. package/dist-es/commands/DescribeEmailMonitoringConfigurationCommand.js +3 -9
  36. package/dist-es/commands/DescribeEntityCommand.js +3 -9
  37. package/dist-es/commands/DescribeGroupCommand.js +3 -9
  38. package/dist-es/commands/DescribeIdentityProviderConfigurationCommand.js +3 -9
  39. package/dist-es/commands/DescribeInboundDmarcSettingsCommand.js +3 -9
  40. package/dist-es/commands/DescribeMailboxExportJobCommand.js +3 -9
  41. package/dist-es/commands/DescribeOrganizationCommand.js +3 -9
  42. package/dist-es/commands/DescribeResourceCommand.js +3 -10
  43. package/dist-es/commands/DescribeUserCommand.js +3 -10
  44. package/dist-es/commands/DisassociateDelegateFromResourceCommand.js +3 -9
  45. package/dist-es/commands/DisassociateMemberFromGroupCommand.js +3 -9
  46. package/dist-es/commands/GetAccessControlEffectCommand.js +3 -9
  47. package/dist-es/commands/GetDefaultRetentionPolicyCommand.js +3 -9
  48. package/dist-es/commands/GetImpersonationRoleCommand.js +3 -9
  49. package/dist-es/commands/GetImpersonationRoleEffectCommand.js +3 -9
  50. package/dist-es/commands/GetMailDomainCommand.js +3 -9
  51. package/dist-es/commands/GetMailboxDetailsCommand.js +3 -9
  52. package/dist-es/commands/GetMobileDeviceAccessEffectCommand.js +3 -9
  53. package/dist-es/commands/GetMobileDeviceAccessOverrideCommand.js +3 -9
  54. package/dist-es/commands/GetPersonalAccessTokenMetadataCommand.js +3 -9
  55. package/dist-es/commands/ListAccessControlRulesCommand.js +3 -9
  56. package/dist-es/commands/ListAliasesCommand.js +3 -9
  57. package/dist-es/commands/ListAvailabilityConfigurationsCommand.js +3 -9
  58. package/dist-es/commands/ListGroupMembersCommand.js +3 -9
  59. package/dist-es/commands/ListGroupsCommand.js +3 -9
  60. package/dist-es/commands/ListGroupsForEntityCommand.js +3 -9
  61. package/dist-es/commands/ListImpersonationRolesCommand.js +3 -9
  62. package/dist-es/commands/ListMailDomainsCommand.js +3 -9
  63. package/dist-es/commands/ListMailboxExportJobsCommand.js +3 -9
  64. package/dist-es/commands/ListMailboxPermissionsCommand.js +3 -9
  65. package/dist-es/commands/ListMobileDeviceAccessOverridesCommand.js +3 -9
  66. package/dist-es/commands/ListMobileDeviceAccessRulesCommand.js +3 -9
  67. package/dist-es/commands/ListOrganizationsCommand.js +3 -9
  68. package/dist-es/commands/ListPersonalAccessTokensCommand.js +3 -9
  69. package/dist-es/commands/ListResourceDelegatesCommand.js +3 -9
  70. package/dist-es/commands/ListResourcesCommand.js +3 -10
  71. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  72. package/dist-es/commands/ListUsersCommand.js +3 -10
  73. package/dist-es/commands/PutAccessControlRuleCommand.js +3 -9
  74. package/dist-es/commands/PutEmailMonitoringConfigurationCommand.js +3 -9
  75. package/dist-es/commands/PutIdentityProviderConfigurationCommand.js +3 -9
  76. package/dist-es/commands/PutInboundDmarcSettingsCommand.js +3 -9
  77. package/dist-es/commands/PutMailboxPermissionsCommand.js +3 -9
  78. package/dist-es/commands/PutMobileDeviceAccessOverrideCommand.js +3 -9
  79. package/dist-es/commands/PutRetentionPolicyCommand.js +3 -10
  80. package/dist-es/commands/RegisterMailDomainCommand.js +3 -9
  81. package/dist-es/commands/RegisterToWorkMailCommand.js +3 -9
  82. package/dist-es/commands/ResetPasswordCommand.js +3 -10
  83. package/dist-es/commands/StartMailboxExportJobCommand.js +3 -9
  84. package/dist-es/commands/TagResourceCommand.js +3 -9
  85. package/dist-es/commands/TestAvailabilityConfigurationCommand.js +3 -10
  86. package/dist-es/commands/UntagResourceCommand.js +3 -9
  87. package/dist-es/commands/UpdateAvailabilityConfigurationCommand.js +3 -10
  88. package/dist-es/commands/UpdateDefaultMailDomainCommand.js +3 -9
  89. package/dist-es/commands/UpdateGroupCommand.js +3 -9
  90. package/dist-es/commands/UpdateImpersonationRoleCommand.js +3 -9
  91. package/dist-es/commands/UpdateMailboxQuotaCommand.js +3 -9
  92. package/dist-es/commands/UpdateMobileDeviceAccessRuleCommand.js +3 -9
  93. package/dist-es/commands/UpdatePrimaryEmailAddressCommand.js +3 -9
  94. package/dist-es/commands/UpdateResourceCommand.js +3 -10
  95. package/dist-es/commands/UpdateUserCommand.js +3 -10
  96. package/dist-es/models/models_0.js +0 -92
  97. package/dist-es/runtimeConfig.shared.js +7 -0
  98. package/dist-es/schemas/schemas_0.js +2238 -0
  99. package/dist-types/WorkMailClient.d.ts +10 -1
  100. package/dist-types/models/models_0.d.ts +0 -64
  101. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  102. package/dist-types/runtimeConfig.d.ts +1 -0
  103. package/dist-types/runtimeConfig.native.d.ts +1 -0
  104. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  105. package/dist-types/schemas/schemas_0.d.ts +376 -0
  106. package/dist-types/ts3.4/WorkMailClient.d.ts +4 -0
  107. package/dist-types/ts3.4/models/models_0.d.ts +0 -46
  108. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  109. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  110. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  111. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  112. package/dist-types/ts3.4/schemas/schemas_0.d.ts +382 -0
  113. package/package.json +5 -6
  114. package/dist-es/protocols/Aws_json1_1.js +0 -2563
  115. package/dist-types/protocols/Aws_json1_1.d.ts +0 -830
  116. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -1109
@@ -1,2563 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- 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";
4
- import { v4 as generateIdempotencyToken } from "@smithy/uuid";
5
- 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";
6
- import { WorkMailServiceException as __BaseException } from "../models/WorkMailServiceException";
7
- export const se_AssociateDelegateToResourceCommand = async (input, context) => {
8
- const headers = sharedHeaders("AssociateDelegateToResource");
9
- let body;
10
- body = JSON.stringify(_json(input));
11
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
12
- };
13
- export const se_AssociateMemberToGroupCommand = async (input, context) => {
14
- const headers = sharedHeaders("AssociateMemberToGroup");
15
- let body;
16
- body = JSON.stringify(_json(input));
17
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
18
- };
19
- export const se_AssumeImpersonationRoleCommand = async (input, context) => {
20
- const headers = sharedHeaders("AssumeImpersonationRole");
21
- let body;
22
- body = JSON.stringify(_json(input));
23
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
24
- };
25
- export const se_CancelMailboxExportJobCommand = async (input, context) => {
26
- const headers = sharedHeaders("CancelMailboxExportJob");
27
- let body;
28
- body = JSON.stringify(se_CancelMailboxExportJobRequest(input, context));
29
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
30
- };
31
- export const se_CreateAliasCommand = async (input, context) => {
32
- const headers = sharedHeaders("CreateAlias");
33
- let body;
34
- body = JSON.stringify(_json(input));
35
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
- };
37
- export const se_CreateAvailabilityConfigurationCommand = async (input, context) => {
38
- const headers = sharedHeaders("CreateAvailabilityConfiguration");
39
- let body;
40
- body = JSON.stringify(se_CreateAvailabilityConfigurationRequest(input, context));
41
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
42
- };
43
- export const se_CreateGroupCommand = async (input, context) => {
44
- const headers = sharedHeaders("CreateGroup");
45
- let body;
46
- body = JSON.stringify(_json(input));
47
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
- };
49
- export const se_CreateIdentityCenterApplicationCommand = async (input, context) => {
50
- const headers = sharedHeaders("CreateIdentityCenterApplication");
51
- let body;
52
- body = JSON.stringify(se_CreateIdentityCenterApplicationRequest(input, context));
53
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
54
- };
55
- export const se_CreateImpersonationRoleCommand = async (input, context) => {
56
- const headers = sharedHeaders("CreateImpersonationRole");
57
- let body;
58
- body = JSON.stringify(se_CreateImpersonationRoleRequest(input, context));
59
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
60
- };
61
- export const se_CreateMobileDeviceAccessRuleCommand = async (input, context) => {
62
- const headers = sharedHeaders("CreateMobileDeviceAccessRule");
63
- let body;
64
- body = JSON.stringify(se_CreateMobileDeviceAccessRuleRequest(input, context));
65
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
66
- };
67
- export const se_CreateOrganizationCommand = async (input, context) => {
68
- const headers = sharedHeaders("CreateOrganization");
69
- let body;
70
- body = JSON.stringify(se_CreateOrganizationRequest(input, context));
71
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
72
- };
73
- export const se_CreateResourceCommand = async (input, context) => {
74
- const headers = sharedHeaders("CreateResource");
75
- let body;
76
- body = JSON.stringify(_json(input));
77
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
- };
79
- export const se_CreateUserCommand = async (input, context) => {
80
- const headers = sharedHeaders("CreateUser");
81
- let body;
82
- body = JSON.stringify(_json(input));
83
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
84
- };
85
- export const se_DeleteAccessControlRuleCommand = async (input, context) => {
86
- const headers = sharedHeaders("DeleteAccessControlRule");
87
- let body;
88
- body = JSON.stringify(_json(input));
89
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
90
- };
91
- export const se_DeleteAliasCommand = async (input, context) => {
92
- const headers = sharedHeaders("DeleteAlias");
93
- let body;
94
- body = JSON.stringify(_json(input));
95
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
96
- };
97
- export const se_DeleteAvailabilityConfigurationCommand = async (input, context) => {
98
- const headers = sharedHeaders("DeleteAvailabilityConfiguration");
99
- let body;
100
- body = JSON.stringify(_json(input));
101
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
102
- };
103
- export const se_DeleteEmailMonitoringConfigurationCommand = async (input, context) => {
104
- const headers = sharedHeaders("DeleteEmailMonitoringConfiguration");
105
- let body;
106
- body = JSON.stringify(_json(input));
107
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
108
- };
109
- export const se_DeleteGroupCommand = async (input, context) => {
110
- const headers = sharedHeaders("DeleteGroup");
111
- let body;
112
- body = JSON.stringify(_json(input));
113
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
114
- };
115
- export const se_DeleteIdentityCenterApplicationCommand = async (input, context) => {
116
- const headers = sharedHeaders("DeleteIdentityCenterApplication");
117
- let body;
118
- body = JSON.stringify(_json(input));
119
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
120
- };
121
- export const se_DeleteIdentityProviderConfigurationCommand = async (input, context) => {
122
- const headers = sharedHeaders("DeleteIdentityProviderConfiguration");
123
- let body;
124
- body = JSON.stringify(_json(input));
125
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
- };
127
- export const se_DeleteImpersonationRoleCommand = async (input, context) => {
128
- const headers = sharedHeaders("DeleteImpersonationRole");
129
- let body;
130
- body = JSON.stringify(_json(input));
131
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
132
- };
133
- export const se_DeleteMailboxPermissionsCommand = async (input, context) => {
134
- const headers = sharedHeaders("DeleteMailboxPermissions");
135
- let body;
136
- body = JSON.stringify(_json(input));
137
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
138
- };
139
- export const se_DeleteMobileDeviceAccessOverrideCommand = async (input, context) => {
140
- const headers = sharedHeaders("DeleteMobileDeviceAccessOverride");
141
- let body;
142
- body = JSON.stringify(_json(input));
143
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
144
- };
145
- export const se_DeleteMobileDeviceAccessRuleCommand = async (input, context) => {
146
- const headers = sharedHeaders("DeleteMobileDeviceAccessRule");
147
- let body;
148
- body = JSON.stringify(_json(input));
149
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
150
- };
151
- export const se_DeleteOrganizationCommand = async (input, context) => {
152
- const headers = sharedHeaders("DeleteOrganization");
153
- let body;
154
- body = JSON.stringify(se_DeleteOrganizationRequest(input, context));
155
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
156
- };
157
- export const se_DeletePersonalAccessTokenCommand = async (input, context) => {
158
- const headers = sharedHeaders("DeletePersonalAccessToken");
159
- let body;
160
- body = JSON.stringify(_json(input));
161
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
162
- };
163
- export const se_DeleteResourceCommand = async (input, context) => {
164
- const headers = sharedHeaders("DeleteResource");
165
- let body;
166
- body = JSON.stringify(_json(input));
167
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
168
- };
169
- export const se_DeleteRetentionPolicyCommand = async (input, context) => {
170
- const headers = sharedHeaders("DeleteRetentionPolicy");
171
- let body;
172
- body = JSON.stringify(_json(input));
173
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
174
- };
175
- export const se_DeleteUserCommand = async (input, context) => {
176
- const headers = sharedHeaders("DeleteUser");
177
- let body;
178
- body = JSON.stringify(_json(input));
179
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
180
- };
181
- export const se_DeregisterFromWorkMailCommand = async (input, context) => {
182
- const headers = sharedHeaders("DeregisterFromWorkMail");
183
- let body;
184
- body = JSON.stringify(_json(input));
185
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
186
- };
187
- export const se_DeregisterMailDomainCommand = async (input, context) => {
188
- const headers = sharedHeaders("DeregisterMailDomain");
189
- let body;
190
- body = JSON.stringify(_json(input));
191
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
192
- };
193
- export const se_DescribeEmailMonitoringConfigurationCommand = async (input, context) => {
194
- const headers = sharedHeaders("DescribeEmailMonitoringConfiguration");
195
- let body;
196
- body = JSON.stringify(_json(input));
197
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
198
- };
199
- export const se_DescribeEntityCommand = async (input, context) => {
200
- const headers = sharedHeaders("DescribeEntity");
201
- let body;
202
- body = JSON.stringify(_json(input));
203
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
204
- };
205
- export const se_DescribeGroupCommand = async (input, context) => {
206
- const headers = sharedHeaders("DescribeGroup");
207
- let body;
208
- body = JSON.stringify(_json(input));
209
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
210
- };
211
- export const se_DescribeIdentityProviderConfigurationCommand = async (input, context) => {
212
- const headers = sharedHeaders("DescribeIdentityProviderConfiguration");
213
- let body;
214
- body = JSON.stringify(_json(input));
215
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
216
- };
217
- export const se_DescribeInboundDmarcSettingsCommand = async (input, context) => {
218
- const headers = sharedHeaders("DescribeInboundDmarcSettings");
219
- let body;
220
- body = JSON.stringify(_json(input));
221
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
222
- };
223
- export const se_DescribeMailboxExportJobCommand = async (input, context) => {
224
- const headers = sharedHeaders("DescribeMailboxExportJob");
225
- let body;
226
- body = JSON.stringify(_json(input));
227
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
228
- };
229
- export const se_DescribeOrganizationCommand = async (input, context) => {
230
- const headers = sharedHeaders("DescribeOrganization");
231
- let body;
232
- body = JSON.stringify(_json(input));
233
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
234
- };
235
- export const se_DescribeResourceCommand = async (input, context) => {
236
- const headers = sharedHeaders("DescribeResource");
237
- let body;
238
- body = JSON.stringify(_json(input));
239
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
240
- };
241
- export const se_DescribeUserCommand = async (input, context) => {
242
- const headers = sharedHeaders("DescribeUser");
243
- let body;
244
- body = JSON.stringify(_json(input));
245
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
246
- };
247
- export const se_DisassociateDelegateFromResourceCommand = async (input, context) => {
248
- const headers = sharedHeaders("DisassociateDelegateFromResource");
249
- let body;
250
- body = JSON.stringify(_json(input));
251
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
252
- };
253
- export const se_DisassociateMemberFromGroupCommand = async (input, context) => {
254
- const headers = sharedHeaders("DisassociateMemberFromGroup");
255
- let body;
256
- body = JSON.stringify(_json(input));
257
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
258
- };
259
- export const se_GetAccessControlEffectCommand = async (input, context) => {
260
- const headers = sharedHeaders("GetAccessControlEffect");
261
- let body;
262
- body = JSON.stringify(_json(input));
263
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
264
- };
265
- export const se_GetDefaultRetentionPolicyCommand = async (input, context) => {
266
- const headers = sharedHeaders("GetDefaultRetentionPolicy");
267
- let body;
268
- body = JSON.stringify(_json(input));
269
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
270
- };
271
- export const se_GetImpersonationRoleCommand = async (input, context) => {
272
- const headers = sharedHeaders("GetImpersonationRole");
273
- let body;
274
- body = JSON.stringify(_json(input));
275
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
276
- };
277
- export const se_GetImpersonationRoleEffectCommand = async (input, context) => {
278
- const headers = sharedHeaders("GetImpersonationRoleEffect");
279
- let body;
280
- body = JSON.stringify(_json(input));
281
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
282
- };
283
- export const se_GetMailboxDetailsCommand = async (input, context) => {
284
- const headers = sharedHeaders("GetMailboxDetails");
285
- let body;
286
- body = JSON.stringify(_json(input));
287
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
288
- };
289
- export const se_GetMailDomainCommand = async (input, context) => {
290
- const headers = sharedHeaders("GetMailDomain");
291
- let body;
292
- body = JSON.stringify(_json(input));
293
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
294
- };
295
- export const se_GetMobileDeviceAccessEffectCommand = async (input, context) => {
296
- const headers = sharedHeaders("GetMobileDeviceAccessEffect");
297
- let body;
298
- body = JSON.stringify(_json(input));
299
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
300
- };
301
- export const se_GetMobileDeviceAccessOverrideCommand = async (input, context) => {
302
- const headers = sharedHeaders("GetMobileDeviceAccessOverride");
303
- let body;
304
- body = JSON.stringify(_json(input));
305
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
306
- };
307
- export const se_GetPersonalAccessTokenMetadataCommand = async (input, context) => {
308
- const headers = sharedHeaders("GetPersonalAccessTokenMetadata");
309
- let body;
310
- body = JSON.stringify(_json(input));
311
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
312
- };
313
- export const se_ListAccessControlRulesCommand = async (input, context) => {
314
- const headers = sharedHeaders("ListAccessControlRules");
315
- let body;
316
- body = JSON.stringify(_json(input));
317
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
318
- };
319
- export const se_ListAliasesCommand = async (input, context) => {
320
- const headers = sharedHeaders("ListAliases");
321
- let body;
322
- body = JSON.stringify(_json(input));
323
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
324
- };
325
- export const se_ListAvailabilityConfigurationsCommand = async (input, context) => {
326
- const headers = sharedHeaders("ListAvailabilityConfigurations");
327
- let body;
328
- body = JSON.stringify(_json(input));
329
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
330
- };
331
- export const se_ListGroupMembersCommand = async (input, context) => {
332
- const headers = sharedHeaders("ListGroupMembers");
333
- let body;
334
- body = JSON.stringify(_json(input));
335
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
336
- };
337
- export const se_ListGroupsCommand = async (input, context) => {
338
- const headers = sharedHeaders("ListGroups");
339
- let body;
340
- body = JSON.stringify(_json(input));
341
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
342
- };
343
- export const se_ListGroupsForEntityCommand = async (input, context) => {
344
- const headers = sharedHeaders("ListGroupsForEntity");
345
- let body;
346
- body = JSON.stringify(_json(input));
347
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
348
- };
349
- export const se_ListImpersonationRolesCommand = async (input, context) => {
350
- const headers = sharedHeaders("ListImpersonationRoles");
351
- let body;
352
- body = JSON.stringify(_json(input));
353
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
354
- };
355
- export const se_ListMailboxExportJobsCommand = async (input, context) => {
356
- const headers = sharedHeaders("ListMailboxExportJobs");
357
- let body;
358
- body = JSON.stringify(_json(input));
359
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
360
- };
361
- export const se_ListMailboxPermissionsCommand = async (input, context) => {
362
- const headers = sharedHeaders("ListMailboxPermissions");
363
- let body;
364
- body = JSON.stringify(_json(input));
365
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
366
- };
367
- export const se_ListMailDomainsCommand = async (input, context) => {
368
- const headers = sharedHeaders("ListMailDomains");
369
- let body;
370
- body = JSON.stringify(_json(input));
371
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
372
- };
373
- export const se_ListMobileDeviceAccessOverridesCommand = async (input, context) => {
374
- const headers = sharedHeaders("ListMobileDeviceAccessOverrides");
375
- let body;
376
- body = JSON.stringify(_json(input));
377
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
378
- };
379
- export const se_ListMobileDeviceAccessRulesCommand = async (input, context) => {
380
- const headers = sharedHeaders("ListMobileDeviceAccessRules");
381
- let body;
382
- body = JSON.stringify(_json(input));
383
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
384
- };
385
- export const se_ListOrganizationsCommand = async (input, context) => {
386
- const headers = sharedHeaders("ListOrganizations");
387
- let body;
388
- body = JSON.stringify(_json(input));
389
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
390
- };
391
- export const se_ListPersonalAccessTokensCommand = async (input, context) => {
392
- const headers = sharedHeaders("ListPersonalAccessTokens");
393
- let body;
394
- body = JSON.stringify(_json(input));
395
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
396
- };
397
- export const se_ListResourceDelegatesCommand = async (input, context) => {
398
- const headers = sharedHeaders("ListResourceDelegates");
399
- let body;
400
- body = JSON.stringify(_json(input));
401
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
402
- };
403
- export const se_ListResourcesCommand = async (input, context) => {
404
- const headers = sharedHeaders("ListResources");
405
- let body;
406
- body = JSON.stringify(_json(input));
407
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
408
- };
409
- export const se_ListTagsForResourceCommand = async (input, context) => {
410
- const headers = sharedHeaders("ListTagsForResource");
411
- let body;
412
- body = JSON.stringify(_json(input));
413
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
414
- };
415
- export const se_ListUsersCommand = async (input, context) => {
416
- const headers = sharedHeaders("ListUsers");
417
- let body;
418
- body = JSON.stringify(_json(input));
419
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
420
- };
421
- export const se_PutAccessControlRuleCommand = async (input, context) => {
422
- const headers = sharedHeaders("PutAccessControlRule");
423
- let body;
424
- body = JSON.stringify(_json(input));
425
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
426
- };
427
- export const se_PutEmailMonitoringConfigurationCommand = async (input, context) => {
428
- const headers = sharedHeaders("PutEmailMonitoringConfiguration");
429
- let body;
430
- body = JSON.stringify(_json(input));
431
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
432
- };
433
- export const se_PutIdentityProviderConfigurationCommand = async (input, context) => {
434
- const headers = sharedHeaders("PutIdentityProviderConfiguration");
435
- let body;
436
- body = JSON.stringify(_json(input));
437
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
438
- };
439
- export const se_PutInboundDmarcSettingsCommand = async (input, context) => {
440
- const headers = sharedHeaders("PutInboundDmarcSettings");
441
- let body;
442
- body = JSON.stringify(_json(input));
443
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
444
- };
445
- export const se_PutMailboxPermissionsCommand = async (input, context) => {
446
- const headers = sharedHeaders("PutMailboxPermissions");
447
- let body;
448
- body = JSON.stringify(_json(input));
449
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
450
- };
451
- export const se_PutMobileDeviceAccessOverrideCommand = async (input, context) => {
452
- const headers = sharedHeaders("PutMobileDeviceAccessOverride");
453
- let body;
454
- body = JSON.stringify(_json(input));
455
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
456
- };
457
- export const se_PutRetentionPolicyCommand = async (input, context) => {
458
- const headers = sharedHeaders("PutRetentionPolicy");
459
- let body;
460
- body = JSON.stringify(_json(input));
461
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
462
- };
463
- export const se_RegisterMailDomainCommand = async (input, context) => {
464
- const headers = sharedHeaders("RegisterMailDomain");
465
- let body;
466
- body = JSON.stringify(se_RegisterMailDomainRequest(input, context));
467
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
468
- };
469
- export const se_RegisterToWorkMailCommand = async (input, context) => {
470
- const headers = sharedHeaders("RegisterToWorkMail");
471
- let body;
472
- body = JSON.stringify(_json(input));
473
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
474
- };
475
- export const se_ResetPasswordCommand = async (input, context) => {
476
- const headers = sharedHeaders("ResetPassword");
477
- let body;
478
- body = JSON.stringify(_json(input));
479
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
480
- };
481
- export const se_StartMailboxExportJobCommand = async (input, context) => {
482
- const headers = sharedHeaders("StartMailboxExportJob");
483
- let body;
484
- body = JSON.stringify(se_StartMailboxExportJobRequest(input, context));
485
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
486
- };
487
- export const se_TagResourceCommand = async (input, context) => {
488
- const headers = sharedHeaders("TagResource");
489
- let body;
490
- body = JSON.stringify(_json(input));
491
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
492
- };
493
- export const se_TestAvailabilityConfigurationCommand = async (input, context) => {
494
- const headers = sharedHeaders("TestAvailabilityConfiguration");
495
- let body;
496
- body = JSON.stringify(_json(input));
497
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
498
- };
499
- export const se_UntagResourceCommand = async (input, context) => {
500
- const headers = sharedHeaders("UntagResource");
501
- let body;
502
- body = JSON.stringify(_json(input));
503
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
504
- };
505
- export const se_UpdateAvailabilityConfigurationCommand = async (input, context) => {
506
- const headers = sharedHeaders("UpdateAvailabilityConfiguration");
507
- let body;
508
- body = JSON.stringify(_json(input));
509
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
510
- };
511
- export const se_UpdateDefaultMailDomainCommand = async (input, context) => {
512
- const headers = sharedHeaders("UpdateDefaultMailDomain");
513
- let body;
514
- body = JSON.stringify(_json(input));
515
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
516
- };
517
- export const se_UpdateGroupCommand = async (input, context) => {
518
- const headers = sharedHeaders("UpdateGroup");
519
- let body;
520
- body = JSON.stringify(_json(input));
521
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
522
- };
523
- export const se_UpdateImpersonationRoleCommand = async (input, context) => {
524
- const headers = sharedHeaders("UpdateImpersonationRole");
525
- let body;
526
- body = JSON.stringify(_json(input));
527
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
528
- };
529
- export const se_UpdateMailboxQuotaCommand = async (input, context) => {
530
- const headers = sharedHeaders("UpdateMailboxQuota");
531
- let body;
532
- body = JSON.stringify(_json(input));
533
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
534
- };
535
- export const se_UpdateMobileDeviceAccessRuleCommand = async (input, context) => {
536
- const headers = sharedHeaders("UpdateMobileDeviceAccessRule");
537
- let body;
538
- body = JSON.stringify(_json(input));
539
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
540
- };
541
- export const se_UpdatePrimaryEmailAddressCommand = async (input, context) => {
542
- const headers = sharedHeaders("UpdatePrimaryEmailAddress");
543
- let body;
544
- body = JSON.stringify(_json(input));
545
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
546
- };
547
- export const se_UpdateResourceCommand = async (input, context) => {
548
- const headers = sharedHeaders("UpdateResource");
549
- let body;
550
- body = JSON.stringify(_json(input));
551
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
552
- };
553
- export const se_UpdateUserCommand = async (input, context) => {
554
- const headers = sharedHeaders("UpdateUser");
555
- let body;
556
- body = JSON.stringify(_json(input));
557
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
558
- };
559
- export const de_AssociateDelegateToResourceCommand = async (output, context) => {
560
- if (output.statusCode >= 300) {
561
- return de_CommandError(output, context);
562
- }
563
- const data = await parseBody(output.body, context);
564
- let contents = {};
565
- contents = _json(data);
566
- const response = {
567
- $metadata: deserializeMetadata(output),
568
- ...contents,
569
- };
570
- return response;
571
- };
572
- export const de_AssociateMemberToGroupCommand = async (output, context) => {
573
- if (output.statusCode >= 300) {
574
- return de_CommandError(output, context);
575
- }
576
- const data = await parseBody(output.body, context);
577
- let contents = {};
578
- contents = _json(data);
579
- const response = {
580
- $metadata: deserializeMetadata(output),
581
- ...contents,
582
- };
583
- return response;
584
- };
585
- export const de_AssumeImpersonationRoleCommand = async (output, context) => {
586
- if (output.statusCode >= 300) {
587
- return de_CommandError(output, context);
588
- }
589
- const data = await parseBody(output.body, context);
590
- let contents = {};
591
- contents = _json(data);
592
- const response = {
593
- $metadata: deserializeMetadata(output),
594
- ...contents,
595
- };
596
- return response;
597
- };
598
- export const de_CancelMailboxExportJobCommand = async (output, context) => {
599
- if (output.statusCode >= 300) {
600
- return de_CommandError(output, context);
601
- }
602
- const data = await parseBody(output.body, context);
603
- let contents = {};
604
- contents = _json(data);
605
- const response = {
606
- $metadata: deserializeMetadata(output),
607
- ...contents,
608
- };
609
- return response;
610
- };
611
- export const de_CreateAliasCommand = async (output, context) => {
612
- if (output.statusCode >= 300) {
613
- return de_CommandError(output, context);
614
- }
615
- const data = await parseBody(output.body, context);
616
- let contents = {};
617
- contents = _json(data);
618
- const response = {
619
- $metadata: deserializeMetadata(output),
620
- ...contents,
621
- };
622
- return response;
623
- };
624
- export const de_CreateAvailabilityConfigurationCommand = async (output, context) => {
625
- if (output.statusCode >= 300) {
626
- return de_CommandError(output, context);
627
- }
628
- const data = await parseBody(output.body, context);
629
- let contents = {};
630
- contents = _json(data);
631
- const response = {
632
- $metadata: deserializeMetadata(output),
633
- ...contents,
634
- };
635
- return response;
636
- };
637
- export const de_CreateGroupCommand = async (output, context) => {
638
- if (output.statusCode >= 300) {
639
- return de_CommandError(output, context);
640
- }
641
- const data = await parseBody(output.body, context);
642
- let contents = {};
643
- contents = _json(data);
644
- const response = {
645
- $metadata: deserializeMetadata(output),
646
- ...contents,
647
- };
648
- return response;
649
- };
650
- export const de_CreateIdentityCenterApplicationCommand = async (output, context) => {
651
- if (output.statusCode >= 300) {
652
- return de_CommandError(output, context);
653
- }
654
- const data = await parseBody(output.body, context);
655
- let contents = {};
656
- contents = _json(data);
657
- const response = {
658
- $metadata: deserializeMetadata(output),
659
- ...contents,
660
- };
661
- return response;
662
- };
663
- export const de_CreateImpersonationRoleCommand = async (output, context) => {
664
- if (output.statusCode >= 300) {
665
- return de_CommandError(output, context);
666
- }
667
- const data = await parseBody(output.body, context);
668
- let contents = {};
669
- contents = _json(data);
670
- const response = {
671
- $metadata: deserializeMetadata(output),
672
- ...contents,
673
- };
674
- return response;
675
- };
676
- export const de_CreateMobileDeviceAccessRuleCommand = async (output, context) => {
677
- if (output.statusCode >= 300) {
678
- return de_CommandError(output, context);
679
- }
680
- const data = await parseBody(output.body, context);
681
- let contents = {};
682
- contents = _json(data);
683
- const response = {
684
- $metadata: deserializeMetadata(output),
685
- ...contents,
686
- };
687
- return response;
688
- };
689
- export const de_CreateOrganizationCommand = async (output, context) => {
690
- if (output.statusCode >= 300) {
691
- return de_CommandError(output, context);
692
- }
693
- const data = await parseBody(output.body, context);
694
- let contents = {};
695
- contents = _json(data);
696
- const response = {
697
- $metadata: deserializeMetadata(output),
698
- ...contents,
699
- };
700
- return response;
701
- };
702
- export const de_CreateResourceCommand = async (output, context) => {
703
- if (output.statusCode >= 300) {
704
- return de_CommandError(output, context);
705
- }
706
- const data = await parseBody(output.body, context);
707
- let contents = {};
708
- contents = _json(data);
709
- const response = {
710
- $metadata: deserializeMetadata(output),
711
- ...contents,
712
- };
713
- return response;
714
- };
715
- export const de_CreateUserCommand = async (output, context) => {
716
- if (output.statusCode >= 300) {
717
- return de_CommandError(output, context);
718
- }
719
- const data = await parseBody(output.body, context);
720
- let contents = {};
721
- contents = _json(data);
722
- const response = {
723
- $metadata: deserializeMetadata(output),
724
- ...contents,
725
- };
726
- return response;
727
- };
728
- export const de_DeleteAccessControlRuleCommand = async (output, context) => {
729
- if (output.statusCode >= 300) {
730
- return de_CommandError(output, context);
731
- }
732
- const data = await parseBody(output.body, context);
733
- let contents = {};
734
- contents = _json(data);
735
- const response = {
736
- $metadata: deserializeMetadata(output),
737
- ...contents,
738
- };
739
- return response;
740
- };
741
- export const de_DeleteAliasCommand = async (output, context) => {
742
- if (output.statusCode >= 300) {
743
- return de_CommandError(output, context);
744
- }
745
- const data = await parseBody(output.body, context);
746
- let contents = {};
747
- contents = _json(data);
748
- const response = {
749
- $metadata: deserializeMetadata(output),
750
- ...contents,
751
- };
752
- return response;
753
- };
754
- export const de_DeleteAvailabilityConfigurationCommand = async (output, context) => {
755
- if (output.statusCode >= 300) {
756
- return de_CommandError(output, context);
757
- }
758
- const data = await parseBody(output.body, context);
759
- let contents = {};
760
- contents = _json(data);
761
- const response = {
762
- $metadata: deserializeMetadata(output),
763
- ...contents,
764
- };
765
- return response;
766
- };
767
- export const de_DeleteEmailMonitoringConfigurationCommand = async (output, context) => {
768
- if (output.statusCode >= 300) {
769
- return de_CommandError(output, context);
770
- }
771
- const data = await parseBody(output.body, context);
772
- let contents = {};
773
- contents = _json(data);
774
- const response = {
775
- $metadata: deserializeMetadata(output),
776
- ...contents,
777
- };
778
- return response;
779
- };
780
- export const de_DeleteGroupCommand = async (output, context) => {
781
- if (output.statusCode >= 300) {
782
- return de_CommandError(output, context);
783
- }
784
- const data = await parseBody(output.body, context);
785
- let contents = {};
786
- contents = _json(data);
787
- const response = {
788
- $metadata: deserializeMetadata(output),
789
- ...contents,
790
- };
791
- return response;
792
- };
793
- export const de_DeleteIdentityCenterApplicationCommand = async (output, context) => {
794
- if (output.statusCode >= 300) {
795
- return de_CommandError(output, context);
796
- }
797
- const data = await parseBody(output.body, context);
798
- let contents = {};
799
- contents = _json(data);
800
- const response = {
801
- $metadata: deserializeMetadata(output),
802
- ...contents,
803
- };
804
- return response;
805
- };
806
- export const de_DeleteIdentityProviderConfigurationCommand = async (output, context) => {
807
- if (output.statusCode >= 300) {
808
- return de_CommandError(output, context);
809
- }
810
- const data = await parseBody(output.body, context);
811
- let contents = {};
812
- contents = _json(data);
813
- const response = {
814
- $metadata: deserializeMetadata(output),
815
- ...contents,
816
- };
817
- return response;
818
- };
819
- export const de_DeleteImpersonationRoleCommand = async (output, context) => {
820
- if (output.statusCode >= 300) {
821
- return de_CommandError(output, context);
822
- }
823
- const data = await parseBody(output.body, context);
824
- let contents = {};
825
- contents = _json(data);
826
- const response = {
827
- $metadata: deserializeMetadata(output),
828
- ...contents,
829
- };
830
- return response;
831
- };
832
- export const de_DeleteMailboxPermissionsCommand = async (output, context) => {
833
- if (output.statusCode >= 300) {
834
- return de_CommandError(output, context);
835
- }
836
- const data = await parseBody(output.body, context);
837
- let contents = {};
838
- contents = _json(data);
839
- const response = {
840
- $metadata: deserializeMetadata(output),
841
- ...contents,
842
- };
843
- return response;
844
- };
845
- export const de_DeleteMobileDeviceAccessOverrideCommand = async (output, context) => {
846
- if (output.statusCode >= 300) {
847
- return de_CommandError(output, context);
848
- }
849
- const data = await parseBody(output.body, context);
850
- let contents = {};
851
- contents = _json(data);
852
- const response = {
853
- $metadata: deserializeMetadata(output),
854
- ...contents,
855
- };
856
- return response;
857
- };
858
- export const de_DeleteMobileDeviceAccessRuleCommand = async (output, context) => {
859
- if (output.statusCode >= 300) {
860
- return de_CommandError(output, context);
861
- }
862
- const data = await parseBody(output.body, context);
863
- let contents = {};
864
- contents = _json(data);
865
- const response = {
866
- $metadata: deserializeMetadata(output),
867
- ...contents,
868
- };
869
- return response;
870
- };
871
- export const de_DeleteOrganizationCommand = async (output, context) => {
872
- if (output.statusCode >= 300) {
873
- return de_CommandError(output, context);
874
- }
875
- const data = await parseBody(output.body, context);
876
- let contents = {};
877
- contents = _json(data);
878
- const response = {
879
- $metadata: deserializeMetadata(output),
880
- ...contents,
881
- };
882
- return response;
883
- };
884
- export const de_DeletePersonalAccessTokenCommand = async (output, context) => {
885
- if (output.statusCode >= 300) {
886
- return de_CommandError(output, context);
887
- }
888
- const data = await parseBody(output.body, context);
889
- let contents = {};
890
- contents = _json(data);
891
- const response = {
892
- $metadata: deserializeMetadata(output),
893
- ...contents,
894
- };
895
- return response;
896
- };
897
- export const de_DeleteResourceCommand = async (output, context) => {
898
- if (output.statusCode >= 300) {
899
- return de_CommandError(output, context);
900
- }
901
- const data = await parseBody(output.body, context);
902
- let contents = {};
903
- contents = _json(data);
904
- const response = {
905
- $metadata: deserializeMetadata(output),
906
- ...contents,
907
- };
908
- return response;
909
- };
910
- export const de_DeleteRetentionPolicyCommand = async (output, context) => {
911
- if (output.statusCode >= 300) {
912
- return de_CommandError(output, context);
913
- }
914
- const data = await parseBody(output.body, context);
915
- let contents = {};
916
- contents = _json(data);
917
- const response = {
918
- $metadata: deserializeMetadata(output),
919
- ...contents,
920
- };
921
- return response;
922
- };
923
- export const de_DeleteUserCommand = async (output, context) => {
924
- if (output.statusCode >= 300) {
925
- return de_CommandError(output, context);
926
- }
927
- const data = await parseBody(output.body, context);
928
- let contents = {};
929
- contents = _json(data);
930
- const response = {
931
- $metadata: deserializeMetadata(output),
932
- ...contents,
933
- };
934
- return response;
935
- };
936
- export const de_DeregisterFromWorkMailCommand = async (output, context) => {
937
- if (output.statusCode >= 300) {
938
- return de_CommandError(output, context);
939
- }
940
- const data = await parseBody(output.body, context);
941
- let contents = {};
942
- contents = _json(data);
943
- const response = {
944
- $metadata: deserializeMetadata(output),
945
- ...contents,
946
- };
947
- return response;
948
- };
949
- export const de_DeregisterMailDomainCommand = async (output, context) => {
950
- if (output.statusCode >= 300) {
951
- return de_CommandError(output, context);
952
- }
953
- const data = await parseBody(output.body, context);
954
- let contents = {};
955
- contents = _json(data);
956
- const response = {
957
- $metadata: deserializeMetadata(output),
958
- ...contents,
959
- };
960
- return response;
961
- };
962
- export const de_DescribeEmailMonitoringConfigurationCommand = async (output, context) => {
963
- if (output.statusCode >= 300) {
964
- return de_CommandError(output, context);
965
- }
966
- const data = await parseBody(output.body, context);
967
- let contents = {};
968
- contents = _json(data);
969
- const response = {
970
- $metadata: deserializeMetadata(output),
971
- ...contents,
972
- };
973
- return response;
974
- };
975
- export const de_DescribeEntityCommand = async (output, context) => {
976
- if (output.statusCode >= 300) {
977
- return de_CommandError(output, context);
978
- }
979
- const data = await parseBody(output.body, context);
980
- let contents = {};
981
- contents = _json(data);
982
- const response = {
983
- $metadata: deserializeMetadata(output),
984
- ...contents,
985
- };
986
- return response;
987
- };
988
- export const de_DescribeGroupCommand = async (output, context) => {
989
- if (output.statusCode >= 300) {
990
- return de_CommandError(output, context);
991
- }
992
- const data = await parseBody(output.body, context);
993
- let contents = {};
994
- contents = de_DescribeGroupResponse(data, context);
995
- const response = {
996
- $metadata: deserializeMetadata(output),
997
- ...contents,
998
- };
999
- return response;
1000
- };
1001
- export const de_DescribeIdentityProviderConfigurationCommand = async (output, context) => {
1002
- if (output.statusCode >= 300) {
1003
- return de_CommandError(output, context);
1004
- }
1005
- const data = await parseBody(output.body, context);
1006
- let contents = {};
1007
- contents = _json(data);
1008
- const response = {
1009
- $metadata: deserializeMetadata(output),
1010
- ...contents,
1011
- };
1012
- return response;
1013
- };
1014
- export const de_DescribeInboundDmarcSettingsCommand = async (output, context) => {
1015
- if (output.statusCode >= 300) {
1016
- return de_CommandError(output, context);
1017
- }
1018
- const data = await parseBody(output.body, context);
1019
- let contents = {};
1020
- contents = _json(data);
1021
- const response = {
1022
- $metadata: deserializeMetadata(output),
1023
- ...contents,
1024
- };
1025
- return response;
1026
- };
1027
- export const de_DescribeMailboxExportJobCommand = async (output, context) => {
1028
- if (output.statusCode >= 300) {
1029
- return de_CommandError(output, context);
1030
- }
1031
- const data = await parseBody(output.body, context);
1032
- let contents = {};
1033
- contents = de_DescribeMailboxExportJobResponse(data, context);
1034
- const response = {
1035
- $metadata: deserializeMetadata(output),
1036
- ...contents,
1037
- };
1038
- return response;
1039
- };
1040
- export const de_DescribeOrganizationCommand = async (output, context) => {
1041
- if (output.statusCode >= 300) {
1042
- return de_CommandError(output, context);
1043
- }
1044
- const data = await parseBody(output.body, context);
1045
- let contents = {};
1046
- contents = de_DescribeOrganizationResponse(data, context);
1047
- const response = {
1048
- $metadata: deserializeMetadata(output),
1049
- ...contents,
1050
- };
1051
- return response;
1052
- };
1053
- export const de_DescribeResourceCommand = async (output, context) => {
1054
- if (output.statusCode >= 300) {
1055
- return de_CommandError(output, context);
1056
- }
1057
- const data = await parseBody(output.body, context);
1058
- let contents = {};
1059
- contents = de_DescribeResourceResponse(data, context);
1060
- const response = {
1061
- $metadata: deserializeMetadata(output),
1062
- ...contents,
1063
- };
1064
- return response;
1065
- };
1066
- export const de_DescribeUserCommand = async (output, context) => {
1067
- if (output.statusCode >= 300) {
1068
- return de_CommandError(output, context);
1069
- }
1070
- const data = await parseBody(output.body, context);
1071
- let contents = {};
1072
- contents = de_DescribeUserResponse(data, context);
1073
- const response = {
1074
- $metadata: deserializeMetadata(output),
1075
- ...contents,
1076
- };
1077
- return response;
1078
- };
1079
- export const de_DisassociateDelegateFromResourceCommand = async (output, context) => {
1080
- if (output.statusCode >= 300) {
1081
- return de_CommandError(output, context);
1082
- }
1083
- const data = await parseBody(output.body, context);
1084
- let contents = {};
1085
- contents = _json(data);
1086
- const response = {
1087
- $metadata: deserializeMetadata(output),
1088
- ...contents,
1089
- };
1090
- return response;
1091
- };
1092
- export const de_DisassociateMemberFromGroupCommand = async (output, context) => {
1093
- if (output.statusCode >= 300) {
1094
- return de_CommandError(output, context);
1095
- }
1096
- const data = await parseBody(output.body, context);
1097
- let contents = {};
1098
- contents = _json(data);
1099
- const response = {
1100
- $metadata: deserializeMetadata(output),
1101
- ...contents,
1102
- };
1103
- return response;
1104
- };
1105
- export const de_GetAccessControlEffectCommand = async (output, context) => {
1106
- if (output.statusCode >= 300) {
1107
- return de_CommandError(output, context);
1108
- }
1109
- const data = await parseBody(output.body, context);
1110
- let contents = {};
1111
- contents = _json(data);
1112
- const response = {
1113
- $metadata: deserializeMetadata(output),
1114
- ...contents,
1115
- };
1116
- return response;
1117
- };
1118
- export const de_GetDefaultRetentionPolicyCommand = async (output, context) => {
1119
- if (output.statusCode >= 300) {
1120
- return de_CommandError(output, context);
1121
- }
1122
- const data = await parseBody(output.body, context);
1123
- let contents = {};
1124
- contents = _json(data);
1125
- const response = {
1126
- $metadata: deserializeMetadata(output),
1127
- ...contents,
1128
- };
1129
- return response;
1130
- };
1131
- export const de_GetImpersonationRoleCommand = async (output, context) => {
1132
- if (output.statusCode >= 300) {
1133
- return de_CommandError(output, context);
1134
- }
1135
- const data = await parseBody(output.body, context);
1136
- let contents = {};
1137
- contents = de_GetImpersonationRoleResponse(data, context);
1138
- const response = {
1139
- $metadata: deserializeMetadata(output),
1140
- ...contents,
1141
- };
1142
- return response;
1143
- };
1144
- export const de_GetImpersonationRoleEffectCommand = async (output, context) => {
1145
- if (output.statusCode >= 300) {
1146
- return de_CommandError(output, context);
1147
- }
1148
- const data = await parseBody(output.body, context);
1149
- let contents = {};
1150
- contents = _json(data);
1151
- const response = {
1152
- $metadata: deserializeMetadata(output),
1153
- ...contents,
1154
- };
1155
- return response;
1156
- };
1157
- export const de_GetMailboxDetailsCommand = async (output, context) => {
1158
- if (output.statusCode >= 300) {
1159
- return de_CommandError(output, context);
1160
- }
1161
- const data = await parseBody(output.body, context);
1162
- let contents = {};
1163
- contents = de_GetMailboxDetailsResponse(data, context);
1164
- const response = {
1165
- $metadata: deserializeMetadata(output),
1166
- ...contents,
1167
- };
1168
- return response;
1169
- };
1170
- export const de_GetMailDomainCommand = async (output, context) => {
1171
- if (output.statusCode >= 300) {
1172
- return de_CommandError(output, context);
1173
- }
1174
- const data = await parseBody(output.body, context);
1175
- let contents = {};
1176
- contents = _json(data);
1177
- const response = {
1178
- $metadata: deserializeMetadata(output),
1179
- ...contents,
1180
- };
1181
- return response;
1182
- };
1183
- export const de_GetMobileDeviceAccessEffectCommand = async (output, context) => {
1184
- if (output.statusCode >= 300) {
1185
- return de_CommandError(output, context);
1186
- }
1187
- const data = await parseBody(output.body, context);
1188
- let contents = {};
1189
- contents = _json(data);
1190
- const response = {
1191
- $metadata: deserializeMetadata(output),
1192
- ...contents,
1193
- };
1194
- return response;
1195
- };
1196
- export const de_GetMobileDeviceAccessOverrideCommand = async (output, context) => {
1197
- if (output.statusCode >= 300) {
1198
- return de_CommandError(output, context);
1199
- }
1200
- const data = await parseBody(output.body, context);
1201
- let contents = {};
1202
- contents = de_GetMobileDeviceAccessOverrideResponse(data, context);
1203
- const response = {
1204
- $metadata: deserializeMetadata(output),
1205
- ...contents,
1206
- };
1207
- return response;
1208
- };
1209
- export const de_GetPersonalAccessTokenMetadataCommand = async (output, context) => {
1210
- if (output.statusCode >= 300) {
1211
- return de_CommandError(output, context);
1212
- }
1213
- const data = await parseBody(output.body, context);
1214
- let contents = {};
1215
- contents = de_GetPersonalAccessTokenMetadataResponse(data, context);
1216
- const response = {
1217
- $metadata: deserializeMetadata(output),
1218
- ...contents,
1219
- };
1220
- return response;
1221
- };
1222
- export const de_ListAccessControlRulesCommand = async (output, context) => {
1223
- if (output.statusCode >= 300) {
1224
- return de_CommandError(output, context);
1225
- }
1226
- const data = await parseBody(output.body, context);
1227
- let contents = {};
1228
- contents = de_ListAccessControlRulesResponse(data, context);
1229
- const response = {
1230
- $metadata: deserializeMetadata(output),
1231
- ...contents,
1232
- };
1233
- return response;
1234
- };
1235
- export const de_ListAliasesCommand = async (output, context) => {
1236
- if (output.statusCode >= 300) {
1237
- return de_CommandError(output, context);
1238
- }
1239
- const data = await parseBody(output.body, context);
1240
- let contents = {};
1241
- contents = _json(data);
1242
- const response = {
1243
- $metadata: deserializeMetadata(output),
1244
- ...contents,
1245
- };
1246
- return response;
1247
- };
1248
- export const de_ListAvailabilityConfigurationsCommand = async (output, context) => {
1249
- if (output.statusCode >= 300) {
1250
- return de_CommandError(output, context);
1251
- }
1252
- const data = await parseBody(output.body, context);
1253
- let contents = {};
1254
- contents = de_ListAvailabilityConfigurationsResponse(data, context);
1255
- const response = {
1256
- $metadata: deserializeMetadata(output),
1257
- ...contents,
1258
- };
1259
- return response;
1260
- };
1261
- export const de_ListGroupMembersCommand = async (output, context) => {
1262
- if (output.statusCode >= 300) {
1263
- return de_CommandError(output, context);
1264
- }
1265
- const data = await parseBody(output.body, context);
1266
- let contents = {};
1267
- contents = de_ListGroupMembersResponse(data, context);
1268
- const response = {
1269
- $metadata: deserializeMetadata(output),
1270
- ...contents,
1271
- };
1272
- return response;
1273
- };
1274
- export const de_ListGroupsCommand = async (output, context) => {
1275
- if (output.statusCode >= 300) {
1276
- return de_CommandError(output, context);
1277
- }
1278
- const data = await parseBody(output.body, context);
1279
- let contents = {};
1280
- contents = de_ListGroupsResponse(data, context);
1281
- const response = {
1282
- $metadata: deserializeMetadata(output),
1283
- ...contents,
1284
- };
1285
- return response;
1286
- };
1287
- export const de_ListGroupsForEntityCommand = async (output, context) => {
1288
- if (output.statusCode >= 300) {
1289
- return de_CommandError(output, context);
1290
- }
1291
- const data = await parseBody(output.body, context);
1292
- let contents = {};
1293
- contents = _json(data);
1294
- const response = {
1295
- $metadata: deserializeMetadata(output),
1296
- ...contents,
1297
- };
1298
- return response;
1299
- };
1300
- export const de_ListImpersonationRolesCommand = async (output, context) => {
1301
- if (output.statusCode >= 300) {
1302
- return de_CommandError(output, context);
1303
- }
1304
- const data = await parseBody(output.body, context);
1305
- let contents = {};
1306
- contents = de_ListImpersonationRolesResponse(data, context);
1307
- const response = {
1308
- $metadata: deserializeMetadata(output),
1309
- ...contents,
1310
- };
1311
- return response;
1312
- };
1313
- export const de_ListMailboxExportJobsCommand = async (output, context) => {
1314
- if (output.statusCode >= 300) {
1315
- return de_CommandError(output, context);
1316
- }
1317
- const data = await parseBody(output.body, context);
1318
- let contents = {};
1319
- contents = de_ListMailboxExportJobsResponse(data, context);
1320
- const response = {
1321
- $metadata: deserializeMetadata(output),
1322
- ...contents,
1323
- };
1324
- return response;
1325
- };
1326
- export const de_ListMailboxPermissionsCommand = async (output, context) => {
1327
- if (output.statusCode >= 300) {
1328
- return de_CommandError(output, context);
1329
- }
1330
- const data = await parseBody(output.body, context);
1331
- let contents = {};
1332
- contents = _json(data);
1333
- const response = {
1334
- $metadata: deserializeMetadata(output),
1335
- ...contents,
1336
- };
1337
- return response;
1338
- };
1339
- export const de_ListMailDomainsCommand = async (output, context) => {
1340
- if (output.statusCode >= 300) {
1341
- return de_CommandError(output, context);
1342
- }
1343
- const data = await parseBody(output.body, context);
1344
- let contents = {};
1345
- contents = _json(data);
1346
- const response = {
1347
- $metadata: deserializeMetadata(output),
1348
- ...contents,
1349
- };
1350
- return response;
1351
- };
1352
- export const de_ListMobileDeviceAccessOverridesCommand = async (output, context) => {
1353
- if (output.statusCode >= 300) {
1354
- return de_CommandError(output, context);
1355
- }
1356
- const data = await parseBody(output.body, context);
1357
- let contents = {};
1358
- contents = de_ListMobileDeviceAccessOverridesResponse(data, context);
1359
- const response = {
1360
- $metadata: deserializeMetadata(output),
1361
- ...contents,
1362
- };
1363
- return response;
1364
- };
1365
- export const de_ListMobileDeviceAccessRulesCommand = async (output, context) => {
1366
- if (output.statusCode >= 300) {
1367
- return de_CommandError(output, context);
1368
- }
1369
- const data = await parseBody(output.body, context);
1370
- let contents = {};
1371
- contents = de_ListMobileDeviceAccessRulesResponse(data, context);
1372
- const response = {
1373
- $metadata: deserializeMetadata(output),
1374
- ...contents,
1375
- };
1376
- return response;
1377
- };
1378
- export const de_ListOrganizationsCommand = async (output, context) => {
1379
- if (output.statusCode >= 300) {
1380
- return de_CommandError(output, context);
1381
- }
1382
- const data = await parseBody(output.body, context);
1383
- let contents = {};
1384
- contents = _json(data);
1385
- const response = {
1386
- $metadata: deserializeMetadata(output),
1387
- ...contents,
1388
- };
1389
- return response;
1390
- };
1391
- export const de_ListPersonalAccessTokensCommand = async (output, context) => {
1392
- if (output.statusCode >= 300) {
1393
- return de_CommandError(output, context);
1394
- }
1395
- const data = await parseBody(output.body, context);
1396
- let contents = {};
1397
- contents = de_ListPersonalAccessTokensResponse(data, context);
1398
- const response = {
1399
- $metadata: deserializeMetadata(output),
1400
- ...contents,
1401
- };
1402
- return response;
1403
- };
1404
- export const de_ListResourceDelegatesCommand = async (output, context) => {
1405
- if (output.statusCode >= 300) {
1406
- return de_CommandError(output, context);
1407
- }
1408
- const data = await parseBody(output.body, context);
1409
- let contents = {};
1410
- contents = _json(data);
1411
- const response = {
1412
- $metadata: deserializeMetadata(output),
1413
- ...contents,
1414
- };
1415
- return response;
1416
- };
1417
- export const de_ListResourcesCommand = async (output, context) => {
1418
- if (output.statusCode >= 300) {
1419
- return de_CommandError(output, context);
1420
- }
1421
- const data = await parseBody(output.body, context);
1422
- let contents = {};
1423
- contents = de_ListResourcesResponse(data, context);
1424
- const response = {
1425
- $metadata: deserializeMetadata(output),
1426
- ...contents,
1427
- };
1428
- return response;
1429
- };
1430
- export const de_ListTagsForResourceCommand = async (output, context) => {
1431
- if (output.statusCode >= 300) {
1432
- return de_CommandError(output, context);
1433
- }
1434
- const data = await parseBody(output.body, context);
1435
- let contents = {};
1436
- contents = _json(data);
1437
- const response = {
1438
- $metadata: deserializeMetadata(output),
1439
- ...contents,
1440
- };
1441
- return response;
1442
- };
1443
- export const de_ListUsersCommand = async (output, context) => {
1444
- if (output.statusCode >= 300) {
1445
- return de_CommandError(output, context);
1446
- }
1447
- const data = await parseBody(output.body, context);
1448
- let contents = {};
1449
- contents = de_ListUsersResponse(data, context);
1450
- const response = {
1451
- $metadata: deserializeMetadata(output),
1452
- ...contents,
1453
- };
1454
- return response;
1455
- };
1456
- export const de_PutAccessControlRuleCommand = async (output, context) => {
1457
- if (output.statusCode >= 300) {
1458
- return de_CommandError(output, context);
1459
- }
1460
- const data = await parseBody(output.body, context);
1461
- let contents = {};
1462
- contents = _json(data);
1463
- const response = {
1464
- $metadata: deserializeMetadata(output),
1465
- ...contents,
1466
- };
1467
- return response;
1468
- };
1469
- export const de_PutEmailMonitoringConfigurationCommand = async (output, context) => {
1470
- if (output.statusCode >= 300) {
1471
- return de_CommandError(output, context);
1472
- }
1473
- const data = await parseBody(output.body, context);
1474
- let contents = {};
1475
- contents = _json(data);
1476
- const response = {
1477
- $metadata: deserializeMetadata(output),
1478
- ...contents,
1479
- };
1480
- return response;
1481
- };
1482
- export const de_PutIdentityProviderConfigurationCommand = async (output, context) => {
1483
- if (output.statusCode >= 300) {
1484
- return de_CommandError(output, context);
1485
- }
1486
- const data = await parseBody(output.body, context);
1487
- let contents = {};
1488
- contents = _json(data);
1489
- const response = {
1490
- $metadata: deserializeMetadata(output),
1491
- ...contents,
1492
- };
1493
- return response;
1494
- };
1495
- export const de_PutInboundDmarcSettingsCommand = async (output, context) => {
1496
- if (output.statusCode >= 300) {
1497
- return de_CommandError(output, context);
1498
- }
1499
- const data = await parseBody(output.body, context);
1500
- let contents = {};
1501
- contents = _json(data);
1502
- const response = {
1503
- $metadata: deserializeMetadata(output),
1504
- ...contents,
1505
- };
1506
- return response;
1507
- };
1508
- export const de_PutMailboxPermissionsCommand = async (output, context) => {
1509
- if (output.statusCode >= 300) {
1510
- return de_CommandError(output, context);
1511
- }
1512
- const data = await parseBody(output.body, context);
1513
- let contents = {};
1514
- contents = _json(data);
1515
- const response = {
1516
- $metadata: deserializeMetadata(output),
1517
- ...contents,
1518
- };
1519
- return response;
1520
- };
1521
- export const de_PutMobileDeviceAccessOverrideCommand = async (output, context) => {
1522
- if (output.statusCode >= 300) {
1523
- return de_CommandError(output, context);
1524
- }
1525
- const data = await parseBody(output.body, context);
1526
- let contents = {};
1527
- contents = _json(data);
1528
- const response = {
1529
- $metadata: deserializeMetadata(output),
1530
- ...contents,
1531
- };
1532
- return response;
1533
- };
1534
- export const de_PutRetentionPolicyCommand = async (output, context) => {
1535
- if (output.statusCode >= 300) {
1536
- return de_CommandError(output, context);
1537
- }
1538
- const data = await parseBody(output.body, context);
1539
- let contents = {};
1540
- contents = _json(data);
1541
- const response = {
1542
- $metadata: deserializeMetadata(output),
1543
- ...contents,
1544
- };
1545
- return response;
1546
- };
1547
- export const de_RegisterMailDomainCommand = async (output, context) => {
1548
- if (output.statusCode >= 300) {
1549
- return de_CommandError(output, context);
1550
- }
1551
- const data = await parseBody(output.body, context);
1552
- let contents = {};
1553
- contents = _json(data);
1554
- const response = {
1555
- $metadata: deserializeMetadata(output),
1556
- ...contents,
1557
- };
1558
- return response;
1559
- };
1560
- export const de_RegisterToWorkMailCommand = async (output, context) => {
1561
- if (output.statusCode >= 300) {
1562
- return de_CommandError(output, context);
1563
- }
1564
- const data = await parseBody(output.body, context);
1565
- let contents = {};
1566
- contents = _json(data);
1567
- const response = {
1568
- $metadata: deserializeMetadata(output),
1569
- ...contents,
1570
- };
1571
- return response;
1572
- };
1573
- export const de_ResetPasswordCommand = async (output, context) => {
1574
- if (output.statusCode >= 300) {
1575
- return de_CommandError(output, context);
1576
- }
1577
- const data = await parseBody(output.body, context);
1578
- let contents = {};
1579
- contents = _json(data);
1580
- const response = {
1581
- $metadata: deserializeMetadata(output),
1582
- ...contents,
1583
- };
1584
- return response;
1585
- };
1586
- export const de_StartMailboxExportJobCommand = async (output, context) => {
1587
- if (output.statusCode >= 300) {
1588
- return de_CommandError(output, context);
1589
- }
1590
- const data = await parseBody(output.body, context);
1591
- let contents = {};
1592
- contents = _json(data);
1593
- const response = {
1594
- $metadata: deserializeMetadata(output),
1595
- ...contents,
1596
- };
1597
- return response;
1598
- };
1599
- export const de_TagResourceCommand = async (output, context) => {
1600
- if (output.statusCode >= 300) {
1601
- return de_CommandError(output, context);
1602
- }
1603
- const data = await parseBody(output.body, context);
1604
- let contents = {};
1605
- contents = _json(data);
1606
- const response = {
1607
- $metadata: deserializeMetadata(output),
1608
- ...contents,
1609
- };
1610
- return response;
1611
- };
1612
- export const de_TestAvailabilityConfigurationCommand = async (output, context) => {
1613
- if (output.statusCode >= 300) {
1614
- return de_CommandError(output, context);
1615
- }
1616
- const data = await parseBody(output.body, context);
1617
- let contents = {};
1618
- contents = _json(data);
1619
- const response = {
1620
- $metadata: deserializeMetadata(output),
1621
- ...contents,
1622
- };
1623
- return response;
1624
- };
1625
- export const de_UntagResourceCommand = async (output, context) => {
1626
- if (output.statusCode >= 300) {
1627
- return de_CommandError(output, context);
1628
- }
1629
- const data = await parseBody(output.body, context);
1630
- let contents = {};
1631
- contents = _json(data);
1632
- const response = {
1633
- $metadata: deserializeMetadata(output),
1634
- ...contents,
1635
- };
1636
- return response;
1637
- };
1638
- export const de_UpdateAvailabilityConfigurationCommand = async (output, context) => {
1639
- if (output.statusCode >= 300) {
1640
- return de_CommandError(output, context);
1641
- }
1642
- const data = await parseBody(output.body, context);
1643
- let contents = {};
1644
- contents = _json(data);
1645
- const response = {
1646
- $metadata: deserializeMetadata(output),
1647
- ...contents,
1648
- };
1649
- return response;
1650
- };
1651
- export const de_UpdateDefaultMailDomainCommand = async (output, context) => {
1652
- if (output.statusCode >= 300) {
1653
- return de_CommandError(output, context);
1654
- }
1655
- const data = await parseBody(output.body, context);
1656
- let contents = {};
1657
- contents = _json(data);
1658
- const response = {
1659
- $metadata: deserializeMetadata(output),
1660
- ...contents,
1661
- };
1662
- return response;
1663
- };
1664
- export const de_UpdateGroupCommand = async (output, context) => {
1665
- if (output.statusCode >= 300) {
1666
- return de_CommandError(output, context);
1667
- }
1668
- const data = await parseBody(output.body, context);
1669
- let contents = {};
1670
- contents = _json(data);
1671
- const response = {
1672
- $metadata: deserializeMetadata(output),
1673
- ...contents,
1674
- };
1675
- return response;
1676
- };
1677
- export const de_UpdateImpersonationRoleCommand = async (output, context) => {
1678
- if (output.statusCode >= 300) {
1679
- return de_CommandError(output, context);
1680
- }
1681
- const data = await parseBody(output.body, context);
1682
- let contents = {};
1683
- contents = _json(data);
1684
- const response = {
1685
- $metadata: deserializeMetadata(output),
1686
- ...contents,
1687
- };
1688
- return response;
1689
- };
1690
- export const de_UpdateMailboxQuotaCommand = async (output, context) => {
1691
- if (output.statusCode >= 300) {
1692
- return de_CommandError(output, context);
1693
- }
1694
- const data = await parseBody(output.body, context);
1695
- let contents = {};
1696
- contents = _json(data);
1697
- const response = {
1698
- $metadata: deserializeMetadata(output),
1699
- ...contents,
1700
- };
1701
- return response;
1702
- };
1703
- export const de_UpdateMobileDeviceAccessRuleCommand = async (output, context) => {
1704
- if (output.statusCode >= 300) {
1705
- return de_CommandError(output, context);
1706
- }
1707
- const data = await parseBody(output.body, context);
1708
- let contents = {};
1709
- contents = _json(data);
1710
- const response = {
1711
- $metadata: deserializeMetadata(output),
1712
- ...contents,
1713
- };
1714
- return response;
1715
- };
1716
- export const de_UpdatePrimaryEmailAddressCommand = async (output, context) => {
1717
- if (output.statusCode >= 300) {
1718
- return de_CommandError(output, context);
1719
- }
1720
- const data = await parseBody(output.body, context);
1721
- let contents = {};
1722
- contents = _json(data);
1723
- const response = {
1724
- $metadata: deserializeMetadata(output),
1725
- ...contents,
1726
- };
1727
- return response;
1728
- };
1729
- export const de_UpdateResourceCommand = async (output, context) => {
1730
- if (output.statusCode >= 300) {
1731
- return de_CommandError(output, context);
1732
- }
1733
- const data = await parseBody(output.body, context);
1734
- let contents = {};
1735
- contents = _json(data);
1736
- const response = {
1737
- $metadata: deserializeMetadata(output),
1738
- ...contents,
1739
- };
1740
- return response;
1741
- };
1742
- export const de_UpdateUserCommand = async (output, context) => {
1743
- if (output.statusCode >= 300) {
1744
- return de_CommandError(output, context);
1745
- }
1746
- const data = await parseBody(output.body, context);
1747
- let contents = {};
1748
- contents = _json(data);
1749
- const response = {
1750
- $metadata: deserializeMetadata(output),
1751
- ...contents,
1752
- };
1753
- return response;
1754
- };
1755
- const de_CommandError = async (output, context) => {
1756
- const parsedOutput = {
1757
- ...output,
1758
- body: await parseErrorBody(output.body, context),
1759
- };
1760
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1761
- switch (errorCode) {
1762
- case "EntityNotFoundException":
1763
- case "com.amazonaws.workmail#EntityNotFoundException":
1764
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
1765
- case "EntityStateException":
1766
- case "com.amazonaws.workmail#EntityStateException":
1767
- throw await de_EntityStateExceptionRes(parsedOutput, context);
1768
- case "InvalidParameterException":
1769
- case "com.amazonaws.workmail#InvalidParameterException":
1770
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1771
- case "OrganizationNotFoundException":
1772
- case "com.amazonaws.workmail#OrganizationNotFoundException":
1773
- throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
1774
- case "OrganizationStateException":
1775
- case "com.amazonaws.workmail#OrganizationStateException":
1776
- throw await de_OrganizationStateExceptionRes(parsedOutput, context);
1777
- case "UnsupportedOperationException":
1778
- case "com.amazonaws.workmail#UnsupportedOperationException":
1779
- throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1780
- case "DirectoryServiceAuthenticationFailedException":
1781
- case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
1782
- throw await de_DirectoryServiceAuthenticationFailedExceptionRes(parsedOutput, context);
1783
- case "DirectoryUnavailableException":
1784
- case "com.amazonaws.workmail#DirectoryUnavailableException":
1785
- throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
1786
- case "ResourceNotFoundException":
1787
- case "com.amazonaws.workmail#ResourceNotFoundException":
1788
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1789
- case "EmailAddressInUseException":
1790
- case "com.amazonaws.workmail#EmailAddressInUseException":
1791
- throw await de_EmailAddressInUseExceptionRes(parsedOutput, context);
1792
- case "LimitExceededException":
1793
- case "com.amazonaws.workmail#LimitExceededException":
1794
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1795
- case "MailDomainNotFoundException":
1796
- case "com.amazonaws.workmail#MailDomainNotFoundException":
1797
- throw await de_MailDomainNotFoundExceptionRes(parsedOutput, context);
1798
- case "MailDomainStateException":
1799
- case "com.amazonaws.workmail#MailDomainStateException":
1800
- throw await de_MailDomainStateExceptionRes(parsedOutput, context);
1801
- case "NameAvailabilityException":
1802
- case "com.amazonaws.workmail#NameAvailabilityException":
1803
- throw await de_NameAvailabilityExceptionRes(parsedOutput, context);
1804
- case "ReservedNameException":
1805
- case "com.amazonaws.workmail#ReservedNameException":
1806
- throw await de_ReservedNameExceptionRes(parsedOutput, context);
1807
- case "DirectoryInUseException":
1808
- case "com.amazonaws.workmail#DirectoryInUseException":
1809
- throw await de_DirectoryInUseExceptionRes(parsedOutput, context);
1810
- case "InvalidPasswordException":
1811
- case "com.amazonaws.workmail#InvalidPasswordException":
1812
- throw await de_InvalidPasswordExceptionRes(parsedOutput, context);
1813
- case "InvalidCustomSesConfigurationException":
1814
- case "com.amazonaws.workmail#InvalidCustomSesConfigurationException":
1815
- throw await de_InvalidCustomSesConfigurationExceptionRes(parsedOutput, context);
1816
- case "MailDomainInUseException":
1817
- case "com.amazonaws.workmail#MailDomainInUseException":
1818
- throw await de_MailDomainInUseExceptionRes(parsedOutput, context);
1819
- case "EntityAlreadyRegisteredException":
1820
- case "com.amazonaws.workmail#EntityAlreadyRegisteredException":
1821
- throw await de_EntityAlreadyRegisteredExceptionRes(parsedOutput, context);
1822
- case "TooManyTagsException":
1823
- case "com.amazonaws.workmail#TooManyTagsException":
1824
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1825
- case "InvalidConfigurationException":
1826
- case "com.amazonaws.workmail#InvalidConfigurationException":
1827
- throw await de_InvalidConfigurationExceptionRes(parsedOutput, context);
1828
- default:
1829
- const parsedBody = parsedOutput.body;
1830
- return throwDefaultError({
1831
- output,
1832
- parsedBody,
1833
- errorCode,
1834
- });
1835
- }
1836
- };
1837
- const de_DirectoryInUseExceptionRes = async (parsedOutput, context) => {
1838
- const body = parsedOutput.body;
1839
- const deserialized = _json(body);
1840
- const exception = new DirectoryInUseException({
1841
- $metadata: deserializeMetadata(parsedOutput),
1842
- ...deserialized,
1843
- });
1844
- return __decorateServiceException(exception, body);
1845
- };
1846
- const de_DirectoryServiceAuthenticationFailedExceptionRes = async (parsedOutput, context) => {
1847
- const body = parsedOutput.body;
1848
- const deserialized = _json(body);
1849
- const exception = new DirectoryServiceAuthenticationFailedException({
1850
- $metadata: deserializeMetadata(parsedOutput),
1851
- ...deserialized,
1852
- });
1853
- return __decorateServiceException(exception, body);
1854
- };
1855
- const de_DirectoryUnavailableExceptionRes = async (parsedOutput, context) => {
1856
- const body = parsedOutput.body;
1857
- const deserialized = _json(body);
1858
- const exception = new DirectoryUnavailableException({
1859
- $metadata: deserializeMetadata(parsedOutput),
1860
- ...deserialized,
1861
- });
1862
- return __decorateServiceException(exception, body);
1863
- };
1864
- const de_EmailAddressInUseExceptionRes = async (parsedOutput, context) => {
1865
- const body = parsedOutput.body;
1866
- const deserialized = _json(body);
1867
- const exception = new EmailAddressInUseException({
1868
- $metadata: deserializeMetadata(parsedOutput),
1869
- ...deserialized,
1870
- });
1871
- return __decorateServiceException(exception, body);
1872
- };
1873
- const de_EntityAlreadyRegisteredExceptionRes = async (parsedOutput, context) => {
1874
- const body = parsedOutput.body;
1875
- const deserialized = _json(body);
1876
- const exception = new EntityAlreadyRegisteredException({
1877
- $metadata: deserializeMetadata(parsedOutput),
1878
- ...deserialized,
1879
- });
1880
- return __decorateServiceException(exception, body);
1881
- };
1882
- const de_EntityNotFoundExceptionRes = async (parsedOutput, context) => {
1883
- const body = parsedOutput.body;
1884
- const deserialized = _json(body);
1885
- const exception = new EntityNotFoundException({
1886
- $metadata: deserializeMetadata(parsedOutput),
1887
- ...deserialized,
1888
- });
1889
- return __decorateServiceException(exception, body);
1890
- };
1891
- const de_EntityStateExceptionRes = async (parsedOutput, context) => {
1892
- const body = parsedOutput.body;
1893
- const deserialized = _json(body);
1894
- const exception = new EntityStateException({
1895
- $metadata: deserializeMetadata(parsedOutput),
1896
- ...deserialized,
1897
- });
1898
- return __decorateServiceException(exception, body);
1899
- };
1900
- const de_InvalidConfigurationExceptionRes = async (parsedOutput, context) => {
1901
- const body = parsedOutput.body;
1902
- const deserialized = _json(body);
1903
- const exception = new InvalidConfigurationException({
1904
- $metadata: deserializeMetadata(parsedOutput),
1905
- ...deserialized,
1906
- });
1907
- return __decorateServiceException(exception, body);
1908
- };
1909
- const de_InvalidCustomSesConfigurationExceptionRes = async (parsedOutput, context) => {
1910
- const body = parsedOutput.body;
1911
- const deserialized = _json(body);
1912
- const exception = new InvalidCustomSesConfigurationException({
1913
- $metadata: deserializeMetadata(parsedOutput),
1914
- ...deserialized,
1915
- });
1916
- return __decorateServiceException(exception, body);
1917
- };
1918
- const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
1919
- const body = parsedOutput.body;
1920
- const deserialized = _json(body);
1921
- const exception = new InvalidParameterException({
1922
- $metadata: deserializeMetadata(parsedOutput),
1923
- ...deserialized,
1924
- });
1925
- return __decorateServiceException(exception, body);
1926
- };
1927
- const de_InvalidPasswordExceptionRes = async (parsedOutput, context) => {
1928
- const body = parsedOutput.body;
1929
- const deserialized = _json(body);
1930
- const exception = new InvalidPasswordException({
1931
- $metadata: deserializeMetadata(parsedOutput),
1932
- ...deserialized,
1933
- });
1934
- return __decorateServiceException(exception, body);
1935
- };
1936
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1937
- const body = parsedOutput.body;
1938
- const deserialized = _json(body);
1939
- const exception = new LimitExceededException({
1940
- $metadata: deserializeMetadata(parsedOutput),
1941
- ...deserialized,
1942
- });
1943
- return __decorateServiceException(exception, body);
1944
- };
1945
- const de_MailDomainInUseExceptionRes = async (parsedOutput, context) => {
1946
- const body = parsedOutput.body;
1947
- const deserialized = _json(body);
1948
- const exception = new MailDomainInUseException({
1949
- $metadata: deserializeMetadata(parsedOutput),
1950
- ...deserialized,
1951
- });
1952
- return __decorateServiceException(exception, body);
1953
- };
1954
- const de_MailDomainNotFoundExceptionRes = async (parsedOutput, context) => {
1955
- const body = parsedOutput.body;
1956
- const deserialized = _json(body);
1957
- const exception = new MailDomainNotFoundException({
1958
- $metadata: deserializeMetadata(parsedOutput),
1959
- ...deserialized,
1960
- });
1961
- return __decorateServiceException(exception, body);
1962
- };
1963
- const de_MailDomainStateExceptionRes = async (parsedOutput, context) => {
1964
- const body = parsedOutput.body;
1965
- const deserialized = _json(body);
1966
- const exception = new MailDomainStateException({
1967
- $metadata: deserializeMetadata(parsedOutput),
1968
- ...deserialized,
1969
- });
1970
- return __decorateServiceException(exception, body);
1971
- };
1972
- const de_NameAvailabilityExceptionRes = async (parsedOutput, context) => {
1973
- const body = parsedOutput.body;
1974
- const deserialized = _json(body);
1975
- const exception = new NameAvailabilityException({
1976
- $metadata: deserializeMetadata(parsedOutput),
1977
- ...deserialized,
1978
- });
1979
- return __decorateServiceException(exception, body);
1980
- };
1981
- const de_OrganizationNotFoundExceptionRes = async (parsedOutput, context) => {
1982
- const body = parsedOutput.body;
1983
- const deserialized = _json(body);
1984
- const exception = new OrganizationNotFoundException({
1985
- $metadata: deserializeMetadata(parsedOutput),
1986
- ...deserialized,
1987
- });
1988
- return __decorateServiceException(exception, body);
1989
- };
1990
- const de_OrganizationStateExceptionRes = async (parsedOutput, context) => {
1991
- const body = parsedOutput.body;
1992
- const deserialized = _json(body);
1993
- const exception = new OrganizationStateException({
1994
- $metadata: deserializeMetadata(parsedOutput),
1995
- ...deserialized,
1996
- });
1997
- return __decorateServiceException(exception, body);
1998
- };
1999
- const de_ReservedNameExceptionRes = async (parsedOutput, context) => {
2000
- const body = parsedOutput.body;
2001
- const deserialized = _json(body);
2002
- const exception = new ReservedNameException({
2003
- $metadata: deserializeMetadata(parsedOutput),
2004
- ...deserialized,
2005
- });
2006
- return __decorateServiceException(exception, body);
2007
- };
2008
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2009
- const body = parsedOutput.body;
2010
- const deserialized = _json(body);
2011
- const exception = new ResourceNotFoundException({
2012
- $metadata: deserializeMetadata(parsedOutput),
2013
- ...deserialized,
2014
- });
2015
- return __decorateServiceException(exception, body);
2016
- };
2017
- const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
2018
- const body = parsedOutput.body;
2019
- const deserialized = _json(body);
2020
- const exception = new TooManyTagsException({
2021
- $metadata: deserializeMetadata(parsedOutput),
2022
- ...deserialized,
2023
- });
2024
- return __decorateServiceException(exception, body);
2025
- };
2026
- const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
2027
- const body = parsedOutput.body;
2028
- const deserialized = _json(body);
2029
- const exception = new UnsupportedOperationException({
2030
- $metadata: deserializeMetadata(parsedOutput),
2031
- ...deserialized,
2032
- });
2033
- return __decorateServiceException(exception, body);
2034
- };
2035
- const se_CancelMailboxExportJobRequest = (input, context) => {
2036
- return take(input, {
2037
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
2038
- JobId: [],
2039
- OrganizationId: [],
2040
- });
2041
- };
2042
- const se_CreateAvailabilityConfigurationRequest = (input, context) => {
2043
- return take(input, {
2044
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
2045
- DomainName: [],
2046
- EwsProvider: _json,
2047
- LambdaProvider: _json,
2048
- OrganizationId: [],
2049
- });
2050
- };
2051
- const se_CreateIdentityCenterApplicationRequest = (input, context) => {
2052
- return take(input, {
2053
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
2054
- InstanceArn: [],
2055
- Name: [],
2056
- });
2057
- };
2058
- const se_CreateImpersonationRoleRequest = (input, context) => {
2059
- return take(input, {
2060
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
2061
- Description: [],
2062
- Name: [],
2063
- OrganizationId: [],
2064
- Rules: _json,
2065
- Type: [],
2066
- });
2067
- };
2068
- const se_CreateMobileDeviceAccessRuleRequest = (input, context) => {
2069
- return take(input, {
2070
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
2071
- Description: [],
2072
- DeviceModels: _json,
2073
- DeviceOperatingSystems: _json,
2074
- DeviceTypes: _json,
2075
- DeviceUserAgents: _json,
2076
- Effect: [],
2077
- Name: [],
2078
- NotDeviceModels: _json,
2079
- NotDeviceOperatingSystems: _json,
2080
- NotDeviceTypes: _json,
2081
- NotDeviceUserAgents: _json,
2082
- OrganizationId: [],
2083
- });
2084
- };
2085
- const se_CreateOrganizationRequest = (input, context) => {
2086
- return take(input, {
2087
- Alias: [],
2088
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
2089
- DirectoryId: [],
2090
- Domains: _json,
2091
- EnableInteroperability: [],
2092
- KmsKeyArn: [],
2093
- });
2094
- };
2095
- const se_DeleteOrganizationRequest = (input, context) => {
2096
- return take(input, {
2097
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
2098
- DeleteDirectory: [],
2099
- DeleteIdentityCenterApplication: [],
2100
- ForceDelete: [],
2101
- OrganizationId: [],
2102
- });
2103
- };
2104
- const se_RegisterMailDomainRequest = (input, context) => {
2105
- return take(input, {
2106
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
2107
- DomainName: [],
2108
- OrganizationId: [],
2109
- });
2110
- };
2111
- const se_StartMailboxExportJobRequest = (input, context) => {
2112
- return take(input, {
2113
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
2114
- Description: [],
2115
- EntityId: [],
2116
- KmsKeyArn: [],
2117
- OrganizationId: [],
2118
- RoleArn: [],
2119
- S3BucketName: [],
2120
- S3Prefix: [],
2121
- });
2122
- };
2123
- const de_AccessControlRule = (output, context) => {
2124
- return take(output, {
2125
- Actions: _json,
2126
- DateCreated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2127
- DateModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2128
- Description: __expectString,
2129
- Effect: __expectString,
2130
- ImpersonationRoleIds: _json,
2131
- IpRanges: _json,
2132
- Name: __expectString,
2133
- NotActions: _json,
2134
- NotImpersonationRoleIds: _json,
2135
- NotIpRanges: _json,
2136
- NotUserIds: _json,
2137
- UserIds: _json,
2138
- });
2139
- };
2140
- const de_AccessControlRulesList = (output, context) => {
2141
- const retVal = (output || [])
2142
- .filter((e) => e != null)
2143
- .map((entry) => {
2144
- return de_AccessControlRule(entry, context);
2145
- });
2146
- return retVal;
2147
- };
2148
- const de_AvailabilityConfiguration = (output, context) => {
2149
- return take(output, {
2150
- DateCreated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2151
- DateModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2152
- DomainName: __expectString,
2153
- EwsProvider: _json,
2154
- LambdaProvider: _json,
2155
- ProviderType: __expectString,
2156
- });
2157
- };
2158
- const de_AvailabilityConfigurationList = (output, context) => {
2159
- const retVal = (output || [])
2160
- .filter((e) => e != null)
2161
- .map((entry) => {
2162
- return de_AvailabilityConfiguration(entry, context);
2163
- });
2164
- return retVal;
2165
- };
2166
- const de_DescribeGroupResponse = (output, context) => {
2167
- return take(output, {
2168
- DisabledDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2169
- Email: __expectString,
2170
- EnabledDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2171
- GroupId: __expectString,
2172
- HiddenFromGlobalAddressList: __expectBoolean,
2173
- Name: __expectString,
2174
- State: __expectString,
2175
- });
2176
- };
2177
- const de_DescribeMailboxExportJobResponse = (output, context) => {
2178
- return take(output, {
2179
- Description: __expectString,
2180
- EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2181
- EntityId: __expectString,
2182
- ErrorInfo: __expectString,
2183
- EstimatedProgress: __expectInt32,
2184
- KmsKeyArn: __expectString,
2185
- RoleArn: __expectString,
2186
- S3BucketName: __expectString,
2187
- S3Path: __expectString,
2188
- S3Prefix: __expectString,
2189
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2190
- State: __expectString,
2191
- });
2192
- };
2193
- const de_DescribeOrganizationResponse = (output, context) => {
2194
- return take(output, {
2195
- ARN: __expectString,
2196
- Alias: __expectString,
2197
- CompletedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2198
- DefaultMailDomain: __expectString,
2199
- DirectoryId: __expectString,
2200
- DirectoryType: __expectString,
2201
- ErrorMessage: __expectString,
2202
- InteroperabilityEnabled: __expectBoolean,
2203
- MigrationAdmin: __expectString,
2204
- OrganizationId: __expectString,
2205
- State: __expectString,
2206
- });
2207
- };
2208
- const de_DescribeResourceResponse = (output, context) => {
2209
- return take(output, {
2210
- BookingOptions: _json,
2211
- Description: __expectString,
2212
- DisabledDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2213
- Email: __expectString,
2214
- EnabledDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2215
- HiddenFromGlobalAddressList: __expectBoolean,
2216
- Name: __expectString,
2217
- ResourceId: __expectString,
2218
- State: __expectString,
2219
- Type: __expectString,
2220
- });
2221
- };
2222
- const de_DescribeUserResponse = (output, context) => {
2223
- return take(output, {
2224
- City: __expectString,
2225
- Company: __expectString,
2226
- Country: __expectString,
2227
- Department: __expectString,
2228
- DisabledDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2229
- DisplayName: __expectString,
2230
- Email: __expectString,
2231
- EnabledDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2232
- FirstName: __expectString,
2233
- HiddenFromGlobalAddressList: __expectBoolean,
2234
- IdentityProviderIdentityStoreId: __expectString,
2235
- IdentityProviderUserId: __expectString,
2236
- Initials: __expectString,
2237
- JobTitle: __expectString,
2238
- LastName: __expectString,
2239
- MailboxDeprovisionedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2240
- MailboxProvisionedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2241
- Name: __expectString,
2242
- Office: __expectString,
2243
- State: __expectString,
2244
- Street: __expectString,
2245
- Telephone: __expectString,
2246
- UserId: __expectString,
2247
- UserRole: __expectString,
2248
- ZipCode: __expectString,
2249
- });
2250
- };
2251
- const de_GetImpersonationRoleResponse = (output, context) => {
2252
- return take(output, {
2253
- DateCreated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2254
- DateModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2255
- Description: __expectString,
2256
- ImpersonationRoleId: __expectString,
2257
- Name: __expectString,
2258
- Rules: _json,
2259
- Type: __expectString,
2260
- });
2261
- };
2262
- const de_GetMailboxDetailsResponse = (output, context) => {
2263
- return take(output, {
2264
- MailboxQuota: __expectInt32,
2265
- MailboxSize: __limitedParseDouble,
2266
- });
2267
- };
2268
- const de_GetMobileDeviceAccessOverrideResponse = (output, context) => {
2269
- return take(output, {
2270
- DateCreated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2271
- DateModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2272
- Description: __expectString,
2273
- DeviceId: __expectString,
2274
- Effect: __expectString,
2275
- UserId: __expectString,
2276
- });
2277
- };
2278
- const de_GetPersonalAccessTokenMetadataResponse = (output, context) => {
2279
- return take(output, {
2280
- DateCreated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2281
- DateLastUsed: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2282
- ExpiresTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2283
- Name: __expectString,
2284
- PersonalAccessTokenId: __expectString,
2285
- Scopes: _json,
2286
- UserId: __expectString,
2287
- });
2288
- };
2289
- const de_Group = (output, context) => {
2290
- return take(output, {
2291
- DisabledDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2292
- Email: __expectString,
2293
- EnabledDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2294
- Id: __expectString,
2295
- Name: __expectString,
2296
- State: __expectString,
2297
- });
2298
- };
2299
- const de_Groups = (output, context) => {
2300
- const retVal = (output || [])
2301
- .filter((e) => e != null)
2302
- .map((entry) => {
2303
- return de_Group(entry, context);
2304
- });
2305
- return retVal;
2306
- };
2307
- const de_ImpersonationRole = (output, context) => {
2308
- return take(output, {
2309
- DateCreated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2310
- DateModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2311
- ImpersonationRoleId: __expectString,
2312
- Name: __expectString,
2313
- Type: __expectString,
2314
- });
2315
- };
2316
- const de_ImpersonationRoleList = (output, context) => {
2317
- const retVal = (output || [])
2318
- .filter((e) => e != null)
2319
- .map((entry) => {
2320
- return de_ImpersonationRole(entry, context);
2321
- });
2322
- return retVal;
2323
- };
2324
- const de_Jobs = (output, context) => {
2325
- const retVal = (output || [])
2326
- .filter((e) => e != null)
2327
- .map((entry) => {
2328
- return de_MailboxExportJob(entry, context);
2329
- });
2330
- return retVal;
2331
- };
2332
- const de_ListAccessControlRulesResponse = (output, context) => {
2333
- return take(output, {
2334
- Rules: (_) => de_AccessControlRulesList(_, context),
2335
- });
2336
- };
2337
- const de_ListAvailabilityConfigurationsResponse = (output, context) => {
2338
- return take(output, {
2339
- AvailabilityConfigurations: (_) => de_AvailabilityConfigurationList(_, context),
2340
- NextToken: __expectString,
2341
- });
2342
- };
2343
- const de_ListGroupMembersResponse = (output, context) => {
2344
- return take(output, {
2345
- Members: (_) => de_Members(_, context),
2346
- NextToken: __expectString,
2347
- });
2348
- };
2349
- const de_ListGroupsResponse = (output, context) => {
2350
- return take(output, {
2351
- Groups: (_) => de_Groups(_, context),
2352
- NextToken: __expectString,
2353
- });
2354
- };
2355
- const de_ListImpersonationRolesResponse = (output, context) => {
2356
- return take(output, {
2357
- NextToken: __expectString,
2358
- Roles: (_) => de_ImpersonationRoleList(_, context),
2359
- });
2360
- };
2361
- const de_ListMailboxExportJobsResponse = (output, context) => {
2362
- return take(output, {
2363
- Jobs: (_) => de_Jobs(_, context),
2364
- NextToken: __expectString,
2365
- });
2366
- };
2367
- const de_ListMobileDeviceAccessOverridesResponse = (output, context) => {
2368
- return take(output, {
2369
- NextToken: __expectString,
2370
- Overrides: (_) => de_MobileDeviceAccessOverridesList(_, context),
2371
- });
2372
- };
2373
- const de_ListMobileDeviceAccessRulesResponse = (output, context) => {
2374
- return take(output, {
2375
- Rules: (_) => de_MobileDeviceAccessRulesList(_, context),
2376
- });
2377
- };
2378
- const de_ListPersonalAccessTokensResponse = (output, context) => {
2379
- return take(output, {
2380
- NextToken: __expectString,
2381
- PersonalAccessTokenSummaries: (_) => de_PersonalAccessTokenSummaryList(_, context),
2382
- });
2383
- };
2384
- const de_ListResourcesResponse = (output, context) => {
2385
- return take(output, {
2386
- NextToken: __expectString,
2387
- Resources: (_) => de_Resources(_, context),
2388
- });
2389
- };
2390
- const de_ListUsersResponse = (output, context) => {
2391
- return take(output, {
2392
- NextToken: __expectString,
2393
- Users: (_) => de_Users(_, context),
2394
- });
2395
- };
2396
- const de_MailboxExportJob = (output, context) => {
2397
- return take(output, {
2398
- Description: __expectString,
2399
- EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2400
- EntityId: __expectString,
2401
- EstimatedProgress: __expectInt32,
2402
- JobId: __expectString,
2403
- S3BucketName: __expectString,
2404
- S3Path: __expectString,
2405
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2406
- State: __expectString,
2407
- });
2408
- };
2409
- const de_Member = (output, context) => {
2410
- return take(output, {
2411
- DisabledDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2412
- EnabledDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2413
- Id: __expectString,
2414
- Name: __expectString,
2415
- State: __expectString,
2416
- Type: __expectString,
2417
- });
2418
- };
2419
- const de_Members = (output, context) => {
2420
- const retVal = (output || [])
2421
- .filter((e) => e != null)
2422
- .map((entry) => {
2423
- return de_Member(entry, context);
2424
- });
2425
- return retVal;
2426
- };
2427
- const de_MobileDeviceAccessOverride = (output, context) => {
2428
- return take(output, {
2429
- DateCreated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2430
- DateModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2431
- Description: __expectString,
2432
- DeviceId: __expectString,
2433
- Effect: __expectString,
2434
- UserId: __expectString,
2435
- });
2436
- };
2437
- const de_MobileDeviceAccessOverridesList = (output, context) => {
2438
- const retVal = (output || [])
2439
- .filter((e) => e != null)
2440
- .map((entry) => {
2441
- return de_MobileDeviceAccessOverride(entry, context);
2442
- });
2443
- return retVal;
2444
- };
2445
- const de_MobileDeviceAccessRule = (output, context) => {
2446
- return take(output, {
2447
- DateCreated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2448
- DateModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2449
- Description: __expectString,
2450
- DeviceModels: _json,
2451
- DeviceOperatingSystems: _json,
2452
- DeviceTypes: _json,
2453
- DeviceUserAgents: _json,
2454
- Effect: __expectString,
2455
- MobileDeviceAccessRuleId: __expectString,
2456
- Name: __expectString,
2457
- NotDeviceModels: _json,
2458
- NotDeviceOperatingSystems: _json,
2459
- NotDeviceTypes: _json,
2460
- NotDeviceUserAgents: _json,
2461
- });
2462
- };
2463
- const de_MobileDeviceAccessRulesList = (output, context) => {
2464
- const retVal = (output || [])
2465
- .filter((e) => e != null)
2466
- .map((entry) => {
2467
- return de_MobileDeviceAccessRule(entry, context);
2468
- });
2469
- return retVal;
2470
- };
2471
- const de_PersonalAccessTokenSummary = (output, context) => {
2472
- return take(output, {
2473
- DateCreated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2474
- DateLastUsed: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2475
- ExpiresTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2476
- Name: __expectString,
2477
- PersonalAccessTokenId: __expectString,
2478
- Scopes: _json,
2479
- UserId: __expectString,
2480
- });
2481
- };
2482
- const de_PersonalAccessTokenSummaryList = (output, context) => {
2483
- const retVal = (output || [])
2484
- .filter((e) => e != null)
2485
- .map((entry) => {
2486
- return de_PersonalAccessTokenSummary(entry, context);
2487
- });
2488
- return retVal;
2489
- };
2490
- const de_Resource = (output, context) => {
2491
- return take(output, {
2492
- Description: __expectString,
2493
- DisabledDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2494
- Email: __expectString,
2495
- EnabledDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2496
- Id: __expectString,
2497
- Name: __expectString,
2498
- State: __expectString,
2499
- Type: __expectString,
2500
- });
2501
- };
2502
- const de_Resources = (output, context) => {
2503
- const retVal = (output || [])
2504
- .filter((e) => e != null)
2505
- .map((entry) => {
2506
- return de_Resource(entry, context);
2507
- });
2508
- return retVal;
2509
- };
2510
- const de_User = (output, context) => {
2511
- return take(output, {
2512
- DisabledDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2513
- DisplayName: __expectString,
2514
- Email: __expectString,
2515
- EnabledDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2516
- Id: __expectString,
2517
- IdentityProviderIdentityStoreId: __expectString,
2518
- IdentityProviderUserId: __expectString,
2519
- Name: __expectString,
2520
- State: __expectString,
2521
- UserRole: __expectString,
2522
- });
2523
- };
2524
- const de_Users = (output, context) => {
2525
- const retVal = (output || [])
2526
- .filter((e) => e != null)
2527
- .map((entry) => {
2528
- return de_User(entry, context);
2529
- });
2530
- return retVal;
2531
- };
2532
- const deserializeMetadata = (output) => ({
2533
- httpStatusCode: output.statusCode,
2534
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2535
- extendedRequestId: output.headers["x-amz-id-2"],
2536
- cfId: output.headers["x-amz-cf-id"],
2537
- });
2538
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2539
- const throwDefaultError = withBaseException(__BaseException);
2540
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
2541
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2542
- const contents = {
2543
- protocol,
2544
- hostname,
2545
- port,
2546
- method: "POST",
2547
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
2548
- headers,
2549
- };
2550
- if (resolvedHostname !== undefined) {
2551
- contents.hostname = resolvedHostname;
2552
- }
2553
- if (body !== undefined) {
2554
- contents.body = body;
2555
- }
2556
- return new __HttpRequest(contents);
2557
- };
2558
- function sharedHeaders(operation) {
2559
- return {
2560
- "content-type": "application/x-amz-json-1.1",
2561
- "x-amz-target": `WorkMailService.${operation}`,
2562
- };
2563
- }