@aws-sdk/client-workmail 3.309.0 → 3.312.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.
@@ -10,800 +10,560 @@ const uuid_1 = require("uuid");
10
10
  const models_0_1 = require("../models/models_0");
11
11
  const WorkMailServiceException_1 = require("../models/WorkMailServiceException");
12
12
  const se_AssociateDelegateToResourceCommand = async (input, context) => {
13
- const headers = {
14
- "content-type": "application/x-amz-json-1.1",
15
- "x-amz-target": "WorkMailService.AssociateDelegateToResource",
16
- };
13
+ const headers = sharedHeaders("AssociateDelegateToResource");
17
14
  let body;
18
15
  body = JSON.stringify(se_AssociateDelegateToResourceRequest(input, context));
19
16
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
20
17
  };
21
18
  exports.se_AssociateDelegateToResourceCommand = se_AssociateDelegateToResourceCommand;
22
19
  const se_AssociateMemberToGroupCommand = async (input, context) => {
23
- const headers = {
24
- "content-type": "application/x-amz-json-1.1",
25
- "x-amz-target": "WorkMailService.AssociateMemberToGroup",
26
- };
20
+ const headers = sharedHeaders("AssociateMemberToGroup");
27
21
  let body;
28
22
  body = JSON.stringify(se_AssociateMemberToGroupRequest(input, context));
29
23
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
30
24
  };
31
25
  exports.se_AssociateMemberToGroupCommand = se_AssociateMemberToGroupCommand;
32
26
  const se_AssumeImpersonationRoleCommand = async (input, context) => {
33
- const headers = {
34
- "content-type": "application/x-amz-json-1.1",
35
- "x-amz-target": "WorkMailService.AssumeImpersonationRole",
36
- };
27
+ const headers = sharedHeaders("AssumeImpersonationRole");
37
28
  let body;
38
29
  body = JSON.stringify(se_AssumeImpersonationRoleRequest(input, context));
39
30
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
31
  };
41
32
  exports.se_AssumeImpersonationRoleCommand = se_AssumeImpersonationRoleCommand;
42
33
  const se_CancelMailboxExportJobCommand = async (input, context) => {
43
- const headers = {
44
- "content-type": "application/x-amz-json-1.1",
45
- "x-amz-target": "WorkMailService.CancelMailboxExportJob",
46
- };
34
+ const headers = sharedHeaders("CancelMailboxExportJob");
47
35
  let body;
48
36
  body = JSON.stringify(se_CancelMailboxExportJobRequest(input, context));
49
37
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
50
38
  };
51
39
  exports.se_CancelMailboxExportJobCommand = se_CancelMailboxExportJobCommand;
52
40
  const se_CreateAliasCommand = async (input, context) => {
53
- const headers = {
54
- "content-type": "application/x-amz-json-1.1",
55
- "x-amz-target": "WorkMailService.CreateAlias",
56
- };
41
+ const headers = sharedHeaders("CreateAlias");
57
42
  let body;
58
43
  body = JSON.stringify(se_CreateAliasRequest(input, context));
59
44
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
60
45
  };
61
46
  exports.se_CreateAliasCommand = se_CreateAliasCommand;
62
47
  const se_CreateAvailabilityConfigurationCommand = async (input, context) => {
63
- const headers = {
64
- "content-type": "application/x-amz-json-1.1",
65
- "x-amz-target": "WorkMailService.CreateAvailabilityConfiguration",
66
- };
48
+ const headers = sharedHeaders("CreateAvailabilityConfiguration");
67
49
  let body;
68
50
  body = JSON.stringify(se_CreateAvailabilityConfigurationRequest(input, context));
69
51
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
70
52
  };
71
53
  exports.se_CreateAvailabilityConfigurationCommand = se_CreateAvailabilityConfigurationCommand;
72
54
  const se_CreateGroupCommand = async (input, context) => {
73
- const headers = {
74
- "content-type": "application/x-amz-json-1.1",
75
- "x-amz-target": "WorkMailService.CreateGroup",
76
- };
55
+ const headers = sharedHeaders("CreateGroup");
77
56
  let body;
78
57
  body = JSON.stringify(se_CreateGroupRequest(input, context));
79
58
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
80
59
  };
81
60
  exports.se_CreateGroupCommand = se_CreateGroupCommand;
82
61
  const se_CreateImpersonationRoleCommand = async (input, context) => {
83
- const headers = {
84
- "content-type": "application/x-amz-json-1.1",
85
- "x-amz-target": "WorkMailService.CreateImpersonationRole",
86
- };
62
+ const headers = sharedHeaders("CreateImpersonationRole");
87
63
  let body;
88
64
  body = JSON.stringify(se_CreateImpersonationRoleRequest(input, context));
89
65
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
90
66
  };
91
67
  exports.se_CreateImpersonationRoleCommand = se_CreateImpersonationRoleCommand;
92
68
  const se_CreateMobileDeviceAccessRuleCommand = async (input, context) => {
93
- const headers = {
94
- "content-type": "application/x-amz-json-1.1",
95
- "x-amz-target": "WorkMailService.CreateMobileDeviceAccessRule",
96
- };
69
+ const headers = sharedHeaders("CreateMobileDeviceAccessRule");
97
70
  let body;
98
71
  body = JSON.stringify(se_CreateMobileDeviceAccessRuleRequest(input, context));
99
72
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
100
73
  };
101
74
  exports.se_CreateMobileDeviceAccessRuleCommand = se_CreateMobileDeviceAccessRuleCommand;
102
75
  const se_CreateOrganizationCommand = async (input, context) => {
103
- const headers = {
104
- "content-type": "application/x-amz-json-1.1",
105
- "x-amz-target": "WorkMailService.CreateOrganization",
106
- };
76
+ const headers = sharedHeaders("CreateOrganization");
107
77
  let body;
108
78
  body = JSON.stringify(se_CreateOrganizationRequest(input, context));
109
79
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
110
80
  };
111
81
  exports.se_CreateOrganizationCommand = se_CreateOrganizationCommand;
112
82
  const se_CreateResourceCommand = async (input, context) => {
113
- const headers = {
114
- "content-type": "application/x-amz-json-1.1",
115
- "x-amz-target": "WorkMailService.CreateResource",
116
- };
83
+ const headers = sharedHeaders("CreateResource");
117
84
  let body;
118
85
  body = JSON.stringify(se_CreateResourceRequest(input, context));
119
86
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
120
87
  };
121
88
  exports.se_CreateResourceCommand = se_CreateResourceCommand;
122
89
  const se_CreateUserCommand = async (input, context) => {
123
- const headers = {
124
- "content-type": "application/x-amz-json-1.1",
125
- "x-amz-target": "WorkMailService.CreateUser",
126
- };
90
+ const headers = sharedHeaders("CreateUser");
127
91
  let body;
128
92
  body = JSON.stringify(se_CreateUserRequest(input, context));
129
93
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
130
94
  };
131
95
  exports.se_CreateUserCommand = se_CreateUserCommand;
132
96
  const se_DeleteAccessControlRuleCommand = async (input, context) => {
133
- const headers = {
134
- "content-type": "application/x-amz-json-1.1",
135
- "x-amz-target": "WorkMailService.DeleteAccessControlRule",
136
- };
97
+ const headers = sharedHeaders("DeleteAccessControlRule");
137
98
  let body;
138
99
  body = JSON.stringify(se_DeleteAccessControlRuleRequest(input, context));
139
100
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
140
101
  };
141
102
  exports.se_DeleteAccessControlRuleCommand = se_DeleteAccessControlRuleCommand;
142
103
  const se_DeleteAliasCommand = async (input, context) => {
143
- const headers = {
144
- "content-type": "application/x-amz-json-1.1",
145
- "x-amz-target": "WorkMailService.DeleteAlias",
146
- };
104
+ const headers = sharedHeaders("DeleteAlias");
147
105
  let body;
148
106
  body = JSON.stringify(se_DeleteAliasRequest(input, context));
149
107
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
150
108
  };
151
109
  exports.se_DeleteAliasCommand = se_DeleteAliasCommand;
152
110
  const se_DeleteAvailabilityConfigurationCommand = async (input, context) => {
153
- const headers = {
154
- "content-type": "application/x-amz-json-1.1",
155
- "x-amz-target": "WorkMailService.DeleteAvailabilityConfiguration",
156
- };
111
+ const headers = sharedHeaders("DeleteAvailabilityConfiguration");
157
112
  let body;
158
113
  body = JSON.stringify(se_DeleteAvailabilityConfigurationRequest(input, context));
159
114
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
160
115
  };
161
116
  exports.se_DeleteAvailabilityConfigurationCommand = se_DeleteAvailabilityConfigurationCommand;
162
117
  const se_DeleteEmailMonitoringConfigurationCommand = async (input, context) => {
163
- const headers = {
164
- "content-type": "application/x-amz-json-1.1",
165
- "x-amz-target": "WorkMailService.DeleteEmailMonitoringConfiguration",
166
- };
118
+ const headers = sharedHeaders("DeleteEmailMonitoringConfiguration");
167
119
  let body;
168
120
  body = JSON.stringify(se_DeleteEmailMonitoringConfigurationRequest(input, context));
169
121
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
170
122
  };
171
123
  exports.se_DeleteEmailMonitoringConfigurationCommand = se_DeleteEmailMonitoringConfigurationCommand;
172
124
  const se_DeleteGroupCommand = async (input, context) => {
173
- const headers = {
174
- "content-type": "application/x-amz-json-1.1",
175
- "x-amz-target": "WorkMailService.DeleteGroup",
176
- };
125
+ const headers = sharedHeaders("DeleteGroup");
177
126
  let body;
178
127
  body = JSON.stringify(se_DeleteGroupRequest(input, context));
179
128
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
180
129
  };
181
130
  exports.se_DeleteGroupCommand = se_DeleteGroupCommand;
182
131
  const se_DeleteImpersonationRoleCommand = async (input, context) => {
183
- const headers = {
184
- "content-type": "application/x-amz-json-1.1",
185
- "x-amz-target": "WorkMailService.DeleteImpersonationRole",
186
- };
132
+ const headers = sharedHeaders("DeleteImpersonationRole");
187
133
  let body;
188
134
  body = JSON.stringify(se_DeleteImpersonationRoleRequest(input, context));
189
135
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
190
136
  };
191
137
  exports.se_DeleteImpersonationRoleCommand = se_DeleteImpersonationRoleCommand;
192
138
  const se_DeleteMailboxPermissionsCommand = async (input, context) => {
193
- const headers = {
194
- "content-type": "application/x-amz-json-1.1",
195
- "x-amz-target": "WorkMailService.DeleteMailboxPermissions",
196
- };
139
+ const headers = sharedHeaders("DeleteMailboxPermissions");
197
140
  let body;
198
141
  body = JSON.stringify(se_DeleteMailboxPermissionsRequest(input, context));
199
142
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
200
143
  };
201
144
  exports.se_DeleteMailboxPermissionsCommand = se_DeleteMailboxPermissionsCommand;
202
145
  const se_DeleteMobileDeviceAccessOverrideCommand = async (input, context) => {
203
- const headers = {
204
- "content-type": "application/x-amz-json-1.1",
205
- "x-amz-target": "WorkMailService.DeleteMobileDeviceAccessOverride",
206
- };
146
+ const headers = sharedHeaders("DeleteMobileDeviceAccessOverride");
207
147
  let body;
208
148
  body = JSON.stringify(se_DeleteMobileDeviceAccessOverrideRequest(input, context));
209
149
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
210
150
  };
211
151
  exports.se_DeleteMobileDeviceAccessOverrideCommand = se_DeleteMobileDeviceAccessOverrideCommand;
212
152
  const se_DeleteMobileDeviceAccessRuleCommand = async (input, context) => {
213
- const headers = {
214
- "content-type": "application/x-amz-json-1.1",
215
- "x-amz-target": "WorkMailService.DeleteMobileDeviceAccessRule",
216
- };
153
+ const headers = sharedHeaders("DeleteMobileDeviceAccessRule");
217
154
  let body;
218
155
  body = JSON.stringify(se_DeleteMobileDeviceAccessRuleRequest(input, context));
219
156
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
220
157
  };
221
158
  exports.se_DeleteMobileDeviceAccessRuleCommand = se_DeleteMobileDeviceAccessRuleCommand;
222
159
  const se_DeleteOrganizationCommand = async (input, context) => {
223
- const headers = {
224
- "content-type": "application/x-amz-json-1.1",
225
- "x-amz-target": "WorkMailService.DeleteOrganization",
226
- };
160
+ const headers = sharedHeaders("DeleteOrganization");
227
161
  let body;
228
162
  body = JSON.stringify(se_DeleteOrganizationRequest(input, context));
229
163
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
230
164
  };
231
165
  exports.se_DeleteOrganizationCommand = se_DeleteOrganizationCommand;
232
166
  const se_DeleteResourceCommand = async (input, context) => {
233
- const headers = {
234
- "content-type": "application/x-amz-json-1.1",
235
- "x-amz-target": "WorkMailService.DeleteResource",
236
- };
167
+ const headers = sharedHeaders("DeleteResource");
237
168
  let body;
238
169
  body = JSON.stringify(se_DeleteResourceRequest(input, context));
239
170
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
240
171
  };
241
172
  exports.se_DeleteResourceCommand = se_DeleteResourceCommand;
242
173
  const se_DeleteRetentionPolicyCommand = async (input, context) => {
243
- const headers = {
244
- "content-type": "application/x-amz-json-1.1",
245
- "x-amz-target": "WorkMailService.DeleteRetentionPolicy",
246
- };
174
+ const headers = sharedHeaders("DeleteRetentionPolicy");
247
175
  let body;
248
176
  body = JSON.stringify(se_DeleteRetentionPolicyRequest(input, context));
249
177
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
250
178
  };
251
179
  exports.se_DeleteRetentionPolicyCommand = se_DeleteRetentionPolicyCommand;
252
180
  const se_DeleteUserCommand = async (input, context) => {
253
- const headers = {
254
- "content-type": "application/x-amz-json-1.1",
255
- "x-amz-target": "WorkMailService.DeleteUser",
256
- };
181
+ const headers = sharedHeaders("DeleteUser");
257
182
  let body;
258
183
  body = JSON.stringify(se_DeleteUserRequest(input, context));
259
184
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
260
185
  };
261
186
  exports.se_DeleteUserCommand = se_DeleteUserCommand;
262
187
  const se_DeregisterFromWorkMailCommand = async (input, context) => {
263
- const headers = {
264
- "content-type": "application/x-amz-json-1.1",
265
- "x-amz-target": "WorkMailService.DeregisterFromWorkMail",
266
- };
188
+ const headers = sharedHeaders("DeregisterFromWorkMail");
267
189
  let body;
268
190
  body = JSON.stringify(se_DeregisterFromWorkMailRequest(input, context));
269
191
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
270
192
  };
271
193
  exports.se_DeregisterFromWorkMailCommand = se_DeregisterFromWorkMailCommand;
272
194
  const se_DeregisterMailDomainCommand = async (input, context) => {
273
- const headers = {
274
- "content-type": "application/x-amz-json-1.1",
275
- "x-amz-target": "WorkMailService.DeregisterMailDomain",
276
- };
195
+ const headers = sharedHeaders("DeregisterMailDomain");
277
196
  let body;
278
197
  body = JSON.stringify(se_DeregisterMailDomainRequest(input, context));
279
198
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
280
199
  };
281
200
  exports.se_DeregisterMailDomainCommand = se_DeregisterMailDomainCommand;
282
201
  const se_DescribeEmailMonitoringConfigurationCommand = async (input, context) => {
283
- const headers = {
284
- "content-type": "application/x-amz-json-1.1",
285
- "x-amz-target": "WorkMailService.DescribeEmailMonitoringConfiguration",
286
- };
202
+ const headers = sharedHeaders("DescribeEmailMonitoringConfiguration");
287
203
  let body;
288
204
  body = JSON.stringify(se_DescribeEmailMonitoringConfigurationRequest(input, context));
289
205
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
290
206
  };
291
207
  exports.se_DescribeEmailMonitoringConfigurationCommand = se_DescribeEmailMonitoringConfigurationCommand;
292
208
  const se_DescribeGroupCommand = async (input, context) => {
293
- const headers = {
294
- "content-type": "application/x-amz-json-1.1",
295
- "x-amz-target": "WorkMailService.DescribeGroup",
296
- };
209
+ const headers = sharedHeaders("DescribeGroup");
297
210
  let body;
298
211
  body = JSON.stringify(se_DescribeGroupRequest(input, context));
299
212
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
300
213
  };
301
214
  exports.se_DescribeGroupCommand = se_DescribeGroupCommand;
302
215
  const se_DescribeInboundDmarcSettingsCommand = async (input, context) => {
303
- const headers = {
304
- "content-type": "application/x-amz-json-1.1",
305
- "x-amz-target": "WorkMailService.DescribeInboundDmarcSettings",
306
- };
216
+ const headers = sharedHeaders("DescribeInboundDmarcSettings");
307
217
  let body;
308
218
  body = JSON.stringify(se_DescribeInboundDmarcSettingsRequest(input, context));
309
219
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
310
220
  };
311
221
  exports.se_DescribeInboundDmarcSettingsCommand = se_DescribeInboundDmarcSettingsCommand;
312
222
  const se_DescribeMailboxExportJobCommand = async (input, context) => {
313
- const headers = {
314
- "content-type": "application/x-amz-json-1.1",
315
- "x-amz-target": "WorkMailService.DescribeMailboxExportJob",
316
- };
223
+ const headers = sharedHeaders("DescribeMailboxExportJob");
317
224
  let body;
318
225
  body = JSON.stringify(se_DescribeMailboxExportJobRequest(input, context));
319
226
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
320
227
  };
321
228
  exports.se_DescribeMailboxExportJobCommand = se_DescribeMailboxExportJobCommand;
322
229
  const se_DescribeOrganizationCommand = async (input, context) => {
323
- const headers = {
324
- "content-type": "application/x-amz-json-1.1",
325
- "x-amz-target": "WorkMailService.DescribeOrganization",
326
- };
230
+ const headers = sharedHeaders("DescribeOrganization");
327
231
  let body;
328
232
  body = JSON.stringify(se_DescribeOrganizationRequest(input, context));
329
233
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
330
234
  };
331
235
  exports.se_DescribeOrganizationCommand = se_DescribeOrganizationCommand;
332
236
  const se_DescribeResourceCommand = async (input, context) => {
333
- const headers = {
334
- "content-type": "application/x-amz-json-1.1",
335
- "x-amz-target": "WorkMailService.DescribeResource",
336
- };
237
+ const headers = sharedHeaders("DescribeResource");
337
238
  let body;
338
239
  body = JSON.stringify(se_DescribeResourceRequest(input, context));
339
240
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
340
241
  };
341
242
  exports.se_DescribeResourceCommand = se_DescribeResourceCommand;
342
243
  const se_DescribeUserCommand = async (input, context) => {
343
- const headers = {
344
- "content-type": "application/x-amz-json-1.1",
345
- "x-amz-target": "WorkMailService.DescribeUser",
346
- };
244
+ const headers = sharedHeaders("DescribeUser");
347
245
  let body;
348
246
  body = JSON.stringify(se_DescribeUserRequest(input, context));
349
247
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
350
248
  };
351
249
  exports.se_DescribeUserCommand = se_DescribeUserCommand;
352
250
  const se_DisassociateDelegateFromResourceCommand = async (input, context) => {
353
- const headers = {
354
- "content-type": "application/x-amz-json-1.1",
355
- "x-amz-target": "WorkMailService.DisassociateDelegateFromResource",
356
- };
251
+ const headers = sharedHeaders("DisassociateDelegateFromResource");
357
252
  let body;
358
253
  body = JSON.stringify(se_DisassociateDelegateFromResourceRequest(input, context));
359
254
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
360
255
  };
361
256
  exports.se_DisassociateDelegateFromResourceCommand = se_DisassociateDelegateFromResourceCommand;
362
257
  const se_DisassociateMemberFromGroupCommand = async (input, context) => {
363
- const headers = {
364
- "content-type": "application/x-amz-json-1.1",
365
- "x-amz-target": "WorkMailService.DisassociateMemberFromGroup",
366
- };
258
+ const headers = sharedHeaders("DisassociateMemberFromGroup");
367
259
  let body;
368
260
  body = JSON.stringify(se_DisassociateMemberFromGroupRequest(input, context));
369
261
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
370
262
  };
371
263
  exports.se_DisassociateMemberFromGroupCommand = se_DisassociateMemberFromGroupCommand;
372
264
  const se_GetAccessControlEffectCommand = async (input, context) => {
373
- const headers = {
374
- "content-type": "application/x-amz-json-1.1",
375
- "x-amz-target": "WorkMailService.GetAccessControlEffect",
376
- };
265
+ const headers = sharedHeaders("GetAccessControlEffect");
377
266
  let body;
378
267
  body = JSON.stringify(se_GetAccessControlEffectRequest(input, context));
379
268
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
380
269
  };
381
270
  exports.se_GetAccessControlEffectCommand = se_GetAccessControlEffectCommand;
382
271
  const se_GetDefaultRetentionPolicyCommand = async (input, context) => {
383
- const headers = {
384
- "content-type": "application/x-amz-json-1.1",
385
- "x-amz-target": "WorkMailService.GetDefaultRetentionPolicy",
386
- };
272
+ const headers = sharedHeaders("GetDefaultRetentionPolicy");
387
273
  let body;
388
274
  body = JSON.stringify(se_GetDefaultRetentionPolicyRequest(input, context));
389
275
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
390
276
  };
391
277
  exports.se_GetDefaultRetentionPolicyCommand = se_GetDefaultRetentionPolicyCommand;
392
278
  const se_GetImpersonationRoleCommand = async (input, context) => {
393
- const headers = {
394
- "content-type": "application/x-amz-json-1.1",
395
- "x-amz-target": "WorkMailService.GetImpersonationRole",
396
- };
279
+ const headers = sharedHeaders("GetImpersonationRole");
397
280
  let body;
398
281
  body = JSON.stringify(se_GetImpersonationRoleRequest(input, context));
399
282
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
400
283
  };
401
284
  exports.se_GetImpersonationRoleCommand = se_GetImpersonationRoleCommand;
402
285
  const se_GetImpersonationRoleEffectCommand = async (input, context) => {
403
- const headers = {
404
- "content-type": "application/x-amz-json-1.1",
405
- "x-amz-target": "WorkMailService.GetImpersonationRoleEffect",
406
- };
286
+ const headers = sharedHeaders("GetImpersonationRoleEffect");
407
287
  let body;
408
288
  body = JSON.stringify(se_GetImpersonationRoleEffectRequest(input, context));
409
289
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
410
290
  };
411
291
  exports.se_GetImpersonationRoleEffectCommand = se_GetImpersonationRoleEffectCommand;
412
292
  const se_GetMailboxDetailsCommand = async (input, context) => {
413
- const headers = {
414
- "content-type": "application/x-amz-json-1.1",
415
- "x-amz-target": "WorkMailService.GetMailboxDetails",
416
- };
293
+ const headers = sharedHeaders("GetMailboxDetails");
417
294
  let body;
418
295
  body = JSON.stringify(se_GetMailboxDetailsRequest(input, context));
419
296
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
420
297
  };
421
298
  exports.se_GetMailboxDetailsCommand = se_GetMailboxDetailsCommand;
422
299
  const se_GetMailDomainCommand = async (input, context) => {
423
- const headers = {
424
- "content-type": "application/x-amz-json-1.1",
425
- "x-amz-target": "WorkMailService.GetMailDomain",
426
- };
300
+ const headers = sharedHeaders("GetMailDomain");
427
301
  let body;
428
302
  body = JSON.stringify(se_GetMailDomainRequest(input, context));
429
303
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
430
304
  };
431
305
  exports.se_GetMailDomainCommand = se_GetMailDomainCommand;
432
306
  const se_GetMobileDeviceAccessEffectCommand = async (input, context) => {
433
- const headers = {
434
- "content-type": "application/x-amz-json-1.1",
435
- "x-amz-target": "WorkMailService.GetMobileDeviceAccessEffect",
436
- };
307
+ const headers = sharedHeaders("GetMobileDeviceAccessEffect");
437
308
  let body;
438
309
  body = JSON.stringify(se_GetMobileDeviceAccessEffectRequest(input, context));
439
310
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
440
311
  };
441
312
  exports.se_GetMobileDeviceAccessEffectCommand = se_GetMobileDeviceAccessEffectCommand;
442
313
  const se_GetMobileDeviceAccessOverrideCommand = async (input, context) => {
443
- const headers = {
444
- "content-type": "application/x-amz-json-1.1",
445
- "x-amz-target": "WorkMailService.GetMobileDeviceAccessOverride",
446
- };
314
+ const headers = sharedHeaders("GetMobileDeviceAccessOverride");
447
315
  let body;
448
316
  body = JSON.stringify(se_GetMobileDeviceAccessOverrideRequest(input, context));
449
317
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
450
318
  };
451
319
  exports.se_GetMobileDeviceAccessOverrideCommand = se_GetMobileDeviceAccessOverrideCommand;
452
320
  const se_ListAccessControlRulesCommand = async (input, context) => {
453
- const headers = {
454
- "content-type": "application/x-amz-json-1.1",
455
- "x-amz-target": "WorkMailService.ListAccessControlRules",
456
- };
321
+ const headers = sharedHeaders("ListAccessControlRules");
457
322
  let body;
458
323
  body = JSON.stringify(se_ListAccessControlRulesRequest(input, context));
459
324
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
460
325
  };
461
326
  exports.se_ListAccessControlRulesCommand = se_ListAccessControlRulesCommand;
462
327
  const se_ListAliasesCommand = async (input, context) => {
463
- const headers = {
464
- "content-type": "application/x-amz-json-1.1",
465
- "x-amz-target": "WorkMailService.ListAliases",
466
- };
328
+ const headers = sharedHeaders("ListAliases");
467
329
  let body;
468
330
  body = JSON.stringify(se_ListAliasesRequest(input, context));
469
331
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
470
332
  };
471
333
  exports.se_ListAliasesCommand = se_ListAliasesCommand;
472
334
  const se_ListAvailabilityConfigurationsCommand = async (input, context) => {
473
- const headers = {
474
- "content-type": "application/x-amz-json-1.1",
475
- "x-amz-target": "WorkMailService.ListAvailabilityConfigurations",
476
- };
335
+ const headers = sharedHeaders("ListAvailabilityConfigurations");
477
336
  let body;
478
337
  body = JSON.stringify(se_ListAvailabilityConfigurationsRequest(input, context));
479
338
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
480
339
  };
481
340
  exports.se_ListAvailabilityConfigurationsCommand = se_ListAvailabilityConfigurationsCommand;
482
341
  const se_ListGroupMembersCommand = async (input, context) => {
483
- const headers = {
484
- "content-type": "application/x-amz-json-1.1",
485
- "x-amz-target": "WorkMailService.ListGroupMembers",
486
- };
342
+ const headers = sharedHeaders("ListGroupMembers");
487
343
  let body;
488
344
  body = JSON.stringify(se_ListGroupMembersRequest(input, context));
489
345
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
490
346
  };
491
347
  exports.se_ListGroupMembersCommand = se_ListGroupMembersCommand;
492
348
  const se_ListGroupsCommand = async (input, context) => {
493
- const headers = {
494
- "content-type": "application/x-amz-json-1.1",
495
- "x-amz-target": "WorkMailService.ListGroups",
496
- };
349
+ const headers = sharedHeaders("ListGroups");
497
350
  let body;
498
351
  body = JSON.stringify(se_ListGroupsRequest(input, context));
499
352
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
500
353
  };
501
354
  exports.se_ListGroupsCommand = se_ListGroupsCommand;
502
355
  const se_ListImpersonationRolesCommand = async (input, context) => {
503
- const headers = {
504
- "content-type": "application/x-amz-json-1.1",
505
- "x-amz-target": "WorkMailService.ListImpersonationRoles",
506
- };
356
+ const headers = sharedHeaders("ListImpersonationRoles");
507
357
  let body;
508
358
  body = JSON.stringify(se_ListImpersonationRolesRequest(input, context));
509
359
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
510
360
  };
511
361
  exports.se_ListImpersonationRolesCommand = se_ListImpersonationRolesCommand;
512
362
  const se_ListMailboxExportJobsCommand = async (input, context) => {
513
- const headers = {
514
- "content-type": "application/x-amz-json-1.1",
515
- "x-amz-target": "WorkMailService.ListMailboxExportJobs",
516
- };
363
+ const headers = sharedHeaders("ListMailboxExportJobs");
517
364
  let body;
518
365
  body = JSON.stringify(se_ListMailboxExportJobsRequest(input, context));
519
366
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
520
367
  };
521
368
  exports.se_ListMailboxExportJobsCommand = se_ListMailboxExportJobsCommand;
522
369
  const se_ListMailboxPermissionsCommand = async (input, context) => {
523
- const headers = {
524
- "content-type": "application/x-amz-json-1.1",
525
- "x-amz-target": "WorkMailService.ListMailboxPermissions",
526
- };
370
+ const headers = sharedHeaders("ListMailboxPermissions");
527
371
  let body;
528
372
  body = JSON.stringify(se_ListMailboxPermissionsRequest(input, context));
529
373
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
530
374
  };
531
375
  exports.se_ListMailboxPermissionsCommand = se_ListMailboxPermissionsCommand;
532
376
  const se_ListMailDomainsCommand = async (input, context) => {
533
- const headers = {
534
- "content-type": "application/x-amz-json-1.1",
535
- "x-amz-target": "WorkMailService.ListMailDomains",
536
- };
377
+ const headers = sharedHeaders("ListMailDomains");
537
378
  let body;
538
379
  body = JSON.stringify(se_ListMailDomainsRequest(input, context));
539
380
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
540
381
  };
541
382
  exports.se_ListMailDomainsCommand = se_ListMailDomainsCommand;
542
383
  const se_ListMobileDeviceAccessOverridesCommand = async (input, context) => {
543
- const headers = {
544
- "content-type": "application/x-amz-json-1.1",
545
- "x-amz-target": "WorkMailService.ListMobileDeviceAccessOverrides",
546
- };
384
+ const headers = sharedHeaders("ListMobileDeviceAccessOverrides");
547
385
  let body;
548
386
  body = JSON.stringify(se_ListMobileDeviceAccessOverridesRequest(input, context));
549
387
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
550
388
  };
551
389
  exports.se_ListMobileDeviceAccessOverridesCommand = se_ListMobileDeviceAccessOverridesCommand;
552
390
  const se_ListMobileDeviceAccessRulesCommand = async (input, context) => {
553
- const headers = {
554
- "content-type": "application/x-amz-json-1.1",
555
- "x-amz-target": "WorkMailService.ListMobileDeviceAccessRules",
556
- };
391
+ const headers = sharedHeaders("ListMobileDeviceAccessRules");
557
392
  let body;
558
393
  body = JSON.stringify(se_ListMobileDeviceAccessRulesRequest(input, context));
559
394
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
560
395
  };
561
396
  exports.se_ListMobileDeviceAccessRulesCommand = se_ListMobileDeviceAccessRulesCommand;
562
397
  const se_ListOrganizationsCommand = async (input, context) => {
563
- const headers = {
564
- "content-type": "application/x-amz-json-1.1",
565
- "x-amz-target": "WorkMailService.ListOrganizations",
566
- };
398
+ const headers = sharedHeaders("ListOrganizations");
567
399
  let body;
568
400
  body = JSON.stringify(se_ListOrganizationsRequest(input, context));
569
401
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
570
402
  };
571
403
  exports.se_ListOrganizationsCommand = se_ListOrganizationsCommand;
572
404
  const se_ListResourceDelegatesCommand = async (input, context) => {
573
- const headers = {
574
- "content-type": "application/x-amz-json-1.1",
575
- "x-amz-target": "WorkMailService.ListResourceDelegates",
576
- };
405
+ const headers = sharedHeaders("ListResourceDelegates");
577
406
  let body;
578
407
  body = JSON.stringify(se_ListResourceDelegatesRequest(input, context));
579
408
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
580
409
  };
581
410
  exports.se_ListResourceDelegatesCommand = se_ListResourceDelegatesCommand;
582
411
  const se_ListResourcesCommand = async (input, context) => {
583
- const headers = {
584
- "content-type": "application/x-amz-json-1.1",
585
- "x-amz-target": "WorkMailService.ListResources",
586
- };
412
+ const headers = sharedHeaders("ListResources");
587
413
  let body;
588
414
  body = JSON.stringify(se_ListResourcesRequest(input, context));
589
415
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
590
416
  };
591
417
  exports.se_ListResourcesCommand = se_ListResourcesCommand;
592
418
  const se_ListTagsForResourceCommand = async (input, context) => {
593
- const headers = {
594
- "content-type": "application/x-amz-json-1.1",
595
- "x-amz-target": "WorkMailService.ListTagsForResource",
596
- };
419
+ const headers = sharedHeaders("ListTagsForResource");
597
420
  let body;
598
421
  body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
599
422
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
600
423
  };
601
424
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
602
425
  const se_ListUsersCommand = async (input, context) => {
603
- const headers = {
604
- "content-type": "application/x-amz-json-1.1",
605
- "x-amz-target": "WorkMailService.ListUsers",
606
- };
426
+ const headers = sharedHeaders("ListUsers");
607
427
  let body;
608
428
  body = JSON.stringify(se_ListUsersRequest(input, context));
609
429
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
610
430
  };
611
431
  exports.se_ListUsersCommand = se_ListUsersCommand;
612
432
  const se_PutAccessControlRuleCommand = async (input, context) => {
613
- const headers = {
614
- "content-type": "application/x-amz-json-1.1",
615
- "x-amz-target": "WorkMailService.PutAccessControlRule",
616
- };
433
+ const headers = sharedHeaders("PutAccessControlRule");
617
434
  let body;
618
435
  body = JSON.stringify(se_PutAccessControlRuleRequest(input, context));
619
436
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
620
437
  };
621
438
  exports.se_PutAccessControlRuleCommand = se_PutAccessControlRuleCommand;
622
439
  const se_PutEmailMonitoringConfigurationCommand = async (input, context) => {
623
- const headers = {
624
- "content-type": "application/x-amz-json-1.1",
625
- "x-amz-target": "WorkMailService.PutEmailMonitoringConfiguration",
626
- };
440
+ const headers = sharedHeaders("PutEmailMonitoringConfiguration");
627
441
  let body;
628
442
  body = JSON.stringify(se_PutEmailMonitoringConfigurationRequest(input, context));
629
443
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
630
444
  };
631
445
  exports.se_PutEmailMonitoringConfigurationCommand = se_PutEmailMonitoringConfigurationCommand;
632
446
  const se_PutInboundDmarcSettingsCommand = async (input, context) => {
633
- const headers = {
634
- "content-type": "application/x-amz-json-1.1",
635
- "x-amz-target": "WorkMailService.PutInboundDmarcSettings",
636
- };
447
+ const headers = sharedHeaders("PutInboundDmarcSettings");
637
448
  let body;
638
449
  body = JSON.stringify(se_PutInboundDmarcSettingsRequest(input, context));
639
450
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
640
451
  };
641
452
  exports.se_PutInboundDmarcSettingsCommand = se_PutInboundDmarcSettingsCommand;
642
453
  const se_PutMailboxPermissionsCommand = async (input, context) => {
643
- const headers = {
644
- "content-type": "application/x-amz-json-1.1",
645
- "x-amz-target": "WorkMailService.PutMailboxPermissions",
646
- };
454
+ const headers = sharedHeaders("PutMailboxPermissions");
647
455
  let body;
648
456
  body = JSON.stringify(se_PutMailboxPermissionsRequest(input, context));
649
457
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
650
458
  };
651
459
  exports.se_PutMailboxPermissionsCommand = se_PutMailboxPermissionsCommand;
652
460
  const se_PutMobileDeviceAccessOverrideCommand = async (input, context) => {
653
- const headers = {
654
- "content-type": "application/x-amz-json-1.1",
655
- "x-amz-target": "WorkMailService.PutMobileDeviceAccessOverride",
656
- };
461
+ const headers = sharedHeaders("PutMobileDeviceAccessOverride");
657
462
  let body;
658
463
  body = JSON.stringify(se_PutMobileDeviceAccessOverrideRequest(input, context));
659
464
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
660
465
  };
661
466
  exports.se_PutMobileDeviceAccessOverrideCommand = se_PutMobileDeviceAccessOverrideCommand;
662
467
  const se_PutRetentionPolicyCommand = async (input, context) => {
663
- const headers = {
664
- "content-type": "application/x-amz-json-1.1",
665
- "x-amz-target": "WorkMailService.PutRetentionPolicy",
666
- };
468
+ const headers = sharedHeaders("PutRetentionPolicy");
667
469
  let body;
668
470
  body = JSON.stringify(se_PutRetentionPolicyRequest(input, context));
669
471
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
670
472
  };
671
473
  exports.se_PutRetentionPolicyCommand = se_PutRetentionPolicyCommand;
672
474
  const se_RegisterMailDomainCommand = async (input, context) => {
673
- const headers = {
674
- "content-type": "application/x-amz-json-1.1",
675
- "x-amz-target": "WorkMailService.RegisterMailDomain",
676
- };
475
+ const headers = sharedHeaders("RegisterMailDomain");
677
476
  let body;
678
477
  body = JSON.stringify(se_RegisterMailDomainRequest(input, context));
679
478
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
680
479
  };
681
480
  exports.se_RegisterMailDomainCommand = se_RegisterMailDomainCommand;
682
481
  const se_RegisterToWorkMailCommand = async (input, context) => {
683
- const headers = {
684
- "content-type": "application/x-amz-json-1.1",
685
- "x-amz-target": "WorkMailService.RegisterToWorkMail",
686
- };
482
+ const headers = sharedHeaders("RegisterToWorkMail");
687
483
  let body;
688
484
  body = JSON.stringify(se_RegisterToWorkMailRequest(input, context));
689
485
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
690
486
  };
691
487
  exports.se_RegisterToWorkMailCommand = se_RegisterToWorkMailCommand;
692
488
  const se_ResetPasswordCommand = async (input, context) => {
693
- const headers = {
694
- "content-type": "application/x-amz-json-1.1",
695
- "x-amz-target": "WorkMailService.ResetPassword",
696
- };
489
+ const headers = sharedHeaders("ResetPassword");
697
490
  let body;
698
491
  body = JSON.stringify(se_ResetPasswordRequest(input, context));
699
492
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
700
493
  };
701
494
  exports.se_ResetPasswordCommand = se_ResetPasswordCommand;
702
495
  const se_StartMailboxExportJobCommand = async (input, context) => {
703
- const headers = {
704
- "content-type": "application/x-amz-json-1.1",
705
- "x-amz-target": "WorkMailService.StartMailboxExportJob",
706
- };
496
+ const headers = sharedHeaders("StartMailboxExportJob");
707
497
  let body;
708
498
  body = JSON.stringify(se_StartMailboxExportJobRequest(input, context));
709
499
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
710
500
  };
711
501
  exports.se_StartMailboxExportJobCommand = se_StartMailboxExportJobCommand;
712
502
  const se_TagResourceCommand = async (input, context) => {
713
- const headers = {
714
- "content-type": "application/x-amz-json-1.1",
715
- "x-amz-target": "WorkMailService.TagResource",
716
- };
503
+ const headers = sharedHeaders("TagResource");
717
504
  let body;
718
505
  body = JSON.stringify(se_TagResourceRequest(input, context));
719
506
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
720
507
  };
721
508
  exports.se_TagResourceCommand = se_TagResourceCommand;
722
509
  const se_TestAvailabilityConfigurationCommand = async (input, context) => {
723
- const headers = {
724
- "content-type": "application/x-amz-json-1.1",
725
- "x-amz-target": "WorkMailService.TestAvailabilityConfiguration",
726
- };
510
+ const headers = sharedHeaders("TestAvailabilityConfiguration");
727
511
  let body;
728
512
  body = JSON.stringify(se_TestAvailabilityConfigurationRequest(input, context));
729
513
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
730
514
  };
731
515
  exports.se_TestAvailabilityConfigurationCommand = se_TestAvailabilityConfigurationCommand;
732
516
  const se_UntagResourceCommand = async (input, context) => {
733
- const headers = {
734
- "content-type": "application/x-amz-json-1.1",
735
- "x-amz-target": "WorkMailService.UntagResource",
736
- };
517
+ const headers = sharedHeaders("UntagResource");
737
518
  let body;
738
519
  body = JSON.stringify(se_UntagResourceRequest(input, context));
739
520
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
740
521
  };
741
522
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
742
523
  const se_UpdateAvailabilityConfigurationCommand = async (input, context) => {
743
- const headers = {
744
- "content-type": "application/x-amz-json-1.1",
745
- "x-amz-target": "WorkMailService.UpdateAvailabilityConfiguration",
746
- };
524
+ const headers = sharedHeaders("UpdateAvailabilityConfiguration");
747
525
  let body;
748
526
  body = JSON.stringify(se_UpdateAvailabilityConfigurationRequest(input, context));
749
527
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
750
528
  };
751
529
  exports.se_UpdateAvailabilityConfigurationCommand = se_UpdateAvailabilityConfigurationCommand;
752
530
  const se_UpdateDefaultMailDomainCommand = async (input, context) => {
753
- const headers = {
754
- "content-type": "application/x-amz-json-1.1",
755
- "x-amz-target": "WorkMailService.UpdateDefaultMailDomain",
756
- };
531
+ const headers = sharedHeaders("UpdateDefaultMailDomain");
757
532
  let body;
758
533
  body = JSON.stringify(se_UpdateDefaultMailDomainRequest(input, context));
759
534
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
760
535
  };
761
536
  exports.se_UpdateDefaultMailDomainCommand = se_UpdateDefaultMailDomainCommand;
762
537
  const se_UpdateImpersonationRoleCommand = async (input, context) => {
763
- const headers = {
764
- "content-type": "application/x-amz-json-1.1",
765
- "x-amz-target": "WorkMailService.UpdateImpersonationRole",
766
- };
538
+ const headers = sharedHeaders("UpdateImpersonationRole");
767
539
  let body;
768
540
  body = JSON.stringify(se_UpdateImpersonationRoleRequest(input, context));
769
541
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
770
542
  };
771
543
  exports.se_UpdateImpersonationRoleCommand = se_UpdateImpersonationRoleCommand;
772
544
  const se_UpdateMailboxQuotaCommand = async (input, context) => {
773
- const headers = {
774
- "content-type": "application/x-amz-json-1.1",
775
- "x-amz-target": "WorkMailService.UpdateMailboxQuota",
776
- };
545
+ const headers = sharedHeaders("UpdateMailboxQuota");
777
546
  let body;
778
547
  body = JSON.stringify(se_UpdateMailboxQuotaRequest(input, context));
779
548
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
780
549
  };
781
550
  exports.se_UpdateMailboxQuotaCommand = se_UpdateMailboxQuotaCommand;
782
551
  const se_UpdateMobileDeviceAccessRuleCommand = async (input, context) => {
783
- const headers = {
784
- "content-type": "application/x-amz-json-1.1",
785
- "x-amz-target": "WorkMailService.UpdateMobileDeviceAccessRule",
786
- };
552
+ const headers = sharedHeaders("UpdateMobileDeviceAccessRule");
787
553
  let body;
788
554
  body = JSON.stringify(se_UpdateMobileDeviceAccessRuleRequest(input, context));
789
555
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
790
556
  };
791
557
  exports.se_UpdateMobileDeviceAccessRuleCommand = se_UpdateMobileDeviceAccessRuleCommand;
792
558
  const se_UpdatePrimaryEmailAddressCommand = async (input, context) => {
793
- const headers = {
794
- "content-type": "application/x-amz-json-1.1",
795
- "x-amz-target": "WorkMailService.UpdatePrimaryEmailAddress",
796
- };
559
+ const headers = sharedHeaders("UpdatePrimaryEmailAddress");
797
560
  let body;
798
561
  body = JSON.stringify(se_UpdatePrimaryEmailAddressRequest(input, context));
799
562
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
800
563
  };
801
564
  exports.se_UpdatePrimaryEmailAddressCommand = se_UpdatePrimaryEmailAddressCommand;
802
565
  const se_UpdateResourceCommand = async (input, context) => {
803
- const headers = {
804
- "content-type": "application/x-amz-json-1.1",
805
- "x-amz-target": "WorkMailService.UpdateResource",
806
- };
566
+ const headers = sharedHeaders("UpdateResource");
807
567
  let body;
808
568
  body = JSON.stringify(se_UpdateResourceRequest(input, context));
809
569
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
@@ -6528,6 +6288,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
6528
6288
  }
6529
6289
  return new protocol_http_1.HttpRequest(contents);
6530
6290
  };
6291
+ function sharedHeaders(operation) {
6292
+ return {
6293
+ "content-type": "application/x-amz-json-1.1",
6294
+ "x-amz-target": `WorkMailService.${operation}`,
6295
+ };
6296
+ }
6531
6297
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
6532
6298
  if (encoded.length) {
6533
6299
  return JSON.parse(encoded);