@aws-sdk/client-ssm 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.
@@ -14,1380 +14,966 @@ const models_1_1 = require("../models/models_1");
14
14
  const models_2_1 = require("../models/models_2");
15
15
  const SSMServiceException_1 = require("../models/SSMServiceException");
16
16
  const se_AddTagsToResourceCommand = async (input, context) => {
17
- const headers = {
18
- "content-type": "application/x-amz-json-1.1",
19
- "x-amz-target": "AmazonSSM.AddTagsToResource",
20
- };
17
+ const headers = sharedHeaders("AddTagsToResource");
21
18
  let body;
22
19
  body = JSON.stringify(se_AddTagsToResourceRequest(input, context));
23
20
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
24
21
  };
25
22
  exports.se_AddTagsToResourceCommand = se_AddTagsToResourceCommand;
26
23
  const se_AssociateOpsItemRelatedItemCommand = async (input, context) => {
27
- const headers = {
28
- "content-type": "application/x-amz-json-1.1",
29
- "x-amz-target": "AmazonSSM.AssociateOpsItemRelatedItem",
30
- };
24
+ const headers = sharedHeaders("AssociateOpsItemRelatedItem");
31
25
  let body;
32
26
  body = JSON.stringify(se_AssociateOpsItemRelatedItemRequest(input, context));
33
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
34
28
  };
35
29
  exports.se_AssociateOpsItemRelatedItemCommand = se_AssociateOpsItemRelatedItemCommand;
36
30
  const se_CancelCommandCommand = async (input, context) => {
37
- const headers = {
38
- "content-type": "application/x-amz-json-1.1",
39
- "x-amz-target": "AmazonSSM.CancelCommand",
40
- };
31
+ const headers = sharedHeaders("CancelCommand");
41
32
  let body;
42
33
  body = JSON.stringify(se_CancelCommandRequest(input, context));
43
34
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
44
35
  };
45
36
  exports.se_CancelCommandCommand = se_CancelCommandCommand;
46
37
  const se_CancelMaintenanceWindowExecutionCommand = async (input, context) => {
47
- const headers = {
48
- "content-type": "application/x-amz-json-1.1",
49
- "x-amz-target": "AmazonSSM.CancelMaintenanceWindowExecution",
50
- };
38
+ const headers = sharedHeaders("CancelMaintenanceWindowExecution");
51
39
  let body;
52
40
  body = JSON.stringify(se_CancelMaintenanceWindowExecutionRequest(input, context));
53
41
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
54
42
  };
55
43
  exports.se_CancelMaintenanceWindowExecutionCommand = se_CancelMaintenanceWindowExecutionCommand;
56
44
  const se_CreateActivationCommand = async (input, context) => {
57
- const headers = {
58
- "content-type": "application/x-amz-json-1.1",
59
- "x-amz-target": "AmazonSSM.CreateActivation",
60
- };
45
+ const headers = sharedHeaders("CreateActivation");
61
46
  let body;
62
47
  body = JSON.stringify(se_CreateActivationRequest(input, context));
63
48
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
64
49
  };
65
50
  exports.se_CreateActivationCommand = se_CreateActivationCommand;
66
51
  const se_CreateAssociationCommand = async (input, context) => {
67
- const headers = {
68
- "content-type": "application/x-amz-json-1.1",
69
- "x-amz-target": "AmazonSSM.CreateAssociation",
70
- };
52
+ const headers = sharedHeaders("CreateAssociation");
71
53
  let body;
72
54
  body = JSON.stringify(se_CreateAssociationRequest(input, context));
73
55
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
74
56
  };
75
57
  exports.se_CreateAssociationCommand = se_CreateAssociationCommand;
76
58
  const se_CreateAssociationBatchCommand = async (input, context) => {
77
- const headers = {
78
- "content-type": "application/x-amz-json-1.1",
79
- "x-amz-target": "AmazonSSM.CreateAssociationBatch",
80
- };
59
+ const headers = sharedHeaders("CreateAssociationBatch");
81
60
  let body;
82
61
  body = JSON.stringify(se_CreateAssociationBatchRequest(input, context));
83
62
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
84
63
  };
85
64
  exports.se_CreateAssociationBatchCommand = se_CreateAssociationBatchCommand;
86
65
  const se_CreateDocumentCommand = async (input, context) => {
87
- const headers = {
88
- "content-type": "application/x-amz-json-1.1",
89
- "x-amz-target": "AmazonSSM.CreateDocument",
90
- };
66
+ const headers = sharedHeaders("CreateDocument");
91
67
  let body;
92
68
  body = JSON.stringify(se_CreateDocumentRequest(input, context));
93
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
94
70
  };
95
71
  exports.se_CreateDocumentCommand = se_CreateDocumentCommand;
96
72
  const se_CreateMaintenanceWindowCommand = async (input, context) => {
97
- const headers = {
98
- "content-type": "application/x-amz-json-1.1",
99
- "x-amz-target": "AmazonSSM.CreateMaintenanceWindow",
100
- };
73
+ const headers = sharedHeaders("CreateMaintenanceWindow");
101
74
  let body;
102
75
  body = JSON.stringify(se_CreateMaintenanceWindowRequest(input, context));
103
76
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
104
77
  };
105
78
  exports.se_CreateMaintenanceWindowCommand = se_CreateMaintenanceWindowCommand;
106
79
  const se_CreateOpsItemCommand = async (input, context) => {
107
- const headers = {
108
- "content-type": "application/x-amz-json-1.1",
109
- "x-amz-target": "AmazonSSM.CreateOpsItem",
110
- };
80
+ const headers = sharedHeaders("CreateOpsItem");
111
81
  let body;
112
82
  body = JSON.stringify(se_CreateOpsItemRequest(input, context));
113
83
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
114
84
  };
115
85
  exports.se_CreateOpsItemCommand = se_CreateOpsItemCommand;
116
86
  const se_CreateOpsMetadataCommand = async (input, context) => {
117
- const headers = {
118
- "content-type": "application/x-amz-json-1.1",
119
- "x-amz-target": "AmazonSSM.CreateOpsMetadata",
120
- };
87
+ const headers = sharedHeaders("CreateOpsMetadata");
121
88
  let body;
122
89
  body = JSON.stringify(se_CreateOpsMetadataRequest(input, context));
123
90
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
124
91
  };
125
92
  exports.se_CreateOpsMetadataCommand = se_CreateOpsMetadataCommand;
126
93
  const se_CreatePatchBaselineCommand = async (input, context) => {
127
- const headers = {
128
- "content-type": "application/x-amz-json-1.1",
129
- "x-amz-target": "AmazonSSM.CreatePatchBaseline",
130
- };
94
+ const headers = sharedHeaders("CreatePatchBaseline");
131
95
  let body;
132
96
  body = JSON.stringify(se_CreatePatchBaselineRequest(input, context));
133
97
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
134
98
  };
135
99
  exports.se_CreatePatchBaselineCommand = se_CreatePatchBaselineCommand;
136
100
  const se_CreateResourceDataSyncCommand = async (input, context) => {
137
- const headers = {
138
- "content-type": "application/x-amz-json-1.1",
139
- "x-amz-target": "AmazonSSM.CreateResourceDataSync",
140
- };
101
+ const headers = sharedHeaders("CreateResourceDataSync");
141
102
  let body;
142
103
  body = JSON.stringify(se_CreateResourceDataSyncRequest(input, context));
143
104
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
144
105
  };
145
106
  exports.se_CreateResourceDataSyncCommand = se_CreateResourceDataSyncCommand;
146
107
  const se_DeleteActivationCommand = async (input, context) => {
147
- const headers = {
148
- "content-type": "application/x-amz-json-1.1",
149
- "x-amz-target": "AmazonSSM.DeleteActivation",
150
- };
108
+ const headers = sharedHeaders("DeleteActivation");
151
109
  let body;
152
110
  body = JSON.stringify(se_DeleteActivationRequest(input, context));
153
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
154
112
  };
155
113
  exports.se_DeleteActivationCommand = se_DeleteActivationCommand;
156
114
  const se_DeleteAssociationCommand = async (input, context) => {
157
- const headers = {
158
- "content-type": "application/x-amz-json-1.1",
159
- "x-amz-target": "AmazonSSM.DeleteAssociation",
160
- };
115
+ const headers = sharedHeaders("DeleteAssociation");
161
116
  let body;
162
117
  body = JSON.stringify(se_DeleteAssociationRequest(input, context));
163
118
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
164
119
  };
165
120
  exports.se_DeleteAssociationCommand = se_DeleteAssociationCommand;
166
121
  const se_DeleteDocumentCommand = async (input, context) => {
167
- const headers = {
168
- "content-type": "application/x-amz-json-1.1",
169
- "x-amz-target": "AmazonSSM.DeleteDocument",
170
- };
122
+ const headers = sharedHeaders("DeleteDocument");
171
123
  let body;
172
124
  body = JSON.stringify(se_DeleteDocumentRequest(input, context));
173
125
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
174
126
  };
175
127
  exports.se_DeleteDocumentCommand = se_DeleteDocumentCommand;
176
128
  const se_DeleteInventoryCommand = async (input, context) => {
177
- const headers = {
178
- "content-type": "application/x-amz-json-1.1",
179
- "x-amz-target": "AmazonSSM.DeleteInventory",
180
- };
129
+ const headers = sharedHeaders("DeleteInventory");
181
130
  let body;
182
131
  body = JSON.stringify(se_DeleteInventoryRequest(input, context));
183
132
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
184
133
  };
185
134
  exports.se_DeleteInventoryCommand = se_DeleteInventoryCommand;
186
135
  const se_DeleteMaintenanceWindowCommand = async (input, context) => {
187
- const headers = {
188
- "content-type": "application/x-amz-json-1.1",
189
- "x-amz-target": "AmazonSSM.DeleteMaintenanceWindow",
190
- };
136
+ const headers = sharedHeaders("DeleteMaintenanceWindow");
191
137
  let body;
192
138
  body = JSON.stringify(se_DeleteMaintenanceWindowRequest(input, context));
193
139
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
194
140
  };
195
141
  exports.se_DeleteMaintenanceWindowCommand = se_DeleteMaintenanceWindowCommand;
196
142
  const se_DeleteOpsMetadataCommand = async (input, context) => {
197
- const headers = {
198
- "content-type": "application/x-amz-json-1.1",
199
- "x-amz-target": "AmazonSSM.DeleteOpsMetadata",
200
- };
143
+ const headers = sharedHeaders("DeleteOpsMetadata");
201
144
  let body;
202
145
  body = JSON.stringify(se_DeleteOpsMetadataRequest(input, context));
203
146
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
204
147
  };
205
148
  exports.se_DeleteOpsMetadataCommand = se_DeleteOpsMetadataCommand;
206
149
  const se_DeleteParameterCommand = async (input, context) => {
207
- const headers = {
208
- "content-type": "application/x-amz-json-1.1",
209
- "x-amz-target": "AmazonSSM.DeleteParameter",
210
- };
150
+ const headers = sharedHeaders("DeleteParameter");
211
151
  let body;
212
152
  body = JSON.stringify(se_DeleteParameterRequest(input, context));
213
153
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
214
154
  };
215
155
  exports.se_DeleteParameterCommand = se_DeleteParameterCommand;
216
156
  const se_DeleteParametersCommand = async (input, context) => {
217
- const headers = {
218
- "content-type": "application/x-amz-json-1.1",
219
- "x-amz-target": "AmazonSSM.DeleteParameters",
220
- };
157
+ const headers = sharedHeaders("DeleteParameters");
221
158
  let body;
222
159
  body = JSON.stringify(se_DeleteParametersRequest(input, context));
223
160
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
224
161
  };
225
162
  exports.se_DeleteParametersCommand = se_DeleteParametersCommand;
226
163
  const se_DeletePatchBaselineCommand = async (input, context) => {
227
- const headers = {
228
- "content-type": "application/x-amz-json-1.1",
229
- "x-amz-target": "AmazonSSM.DeletePatchBaseline",
230
- };
164
+ const headers = sharedHeaders("DeletePatchBaseline");
231
165
  let body;
232
166
  body = JSON.stringify(se_DeletePatchBaselineRequest(input, context));
233
167
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
234
168
  };
235
169
  exports.se_DeletePatchBaselineCommand = se_DeletePatchBaselineCommand;
236
170
  const se_DeleteResourceDataSyncCommand = async (input, context) => {
237
- const headers = {
238
- "content-type": "application/x-amz-json-1.1",
239
- "x-amz-target": "AmazonSSM.DeleteResourceDataSync",
240
- };
171
+ const headers = sharedHeaders("DeleteResourceDataSync");
241
172
  let body;
242
173
  body = JSON.stringify(se_DeleteResourceDataSyncRequest(input, context));
243
174
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
244
175
  };
245
176
  exports.se_DeleteResourceDataSyncCommand = se_DeleteResourceDataSyncCommand;
246
177
  const se_DeleteResourcePolicyCommand = async (input, context) => {
247
- const headers = {
248
- "content-type": "application/x-amz-json-1.1",
249
- "x-amz-target": "AmazonSSM.DeleteResourcePolicy",
250
- };
178
+ const headers = sharedHeaders("DeleteResourcePolicy");
251
179
  let body;
252
180
  body = JSON.stringify(se_DeleteResourcePolicyRequest(input, context));
253
181
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
254
182
  };
255
183
  exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
256
184
  const se_DeregisterManagedInstanceCommand = async (input, context) => {
257
- const headers = {
258
- "content-type": "application/x-amz-json-1.1",
259
- "x-amz-target": "AmazonSSM.DeregisterManagedInstance",
260
- };
185
+ const headers = sharedHeaders("DeregisterManagedInstance");
261
186
  let body;
262
187
  body = JSON.stringify(se_DeregisterManagedInstanceRequest(input, context));
263
188
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
264
189
  };
265
190
  exports.se_DeregisterManagedInstanceCommand = se_DeregisterManagedInstanceCommand;
266
191
  const se_DeregisterPatchBaselineForPatchGroupCommand = async (input, context) => {
267
- const headers = {
268
- "content-type": "application/x-amz-json-1.1",
269
- "x-amz-target": "AmazonSSM.DeregisterPatchBaselineForPatchGroup",
270
- };
192
+ const headers = sharedHeaders("DeregisterPatchBaselineForPatchGroup");
271
193
  let body;
272
194
  body = JSON.stringify(se_DeregisterPatchBaselineForPatchGroupRequest(input, context));
273
195
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
274
196
  };
275
197
  exports.se_DeregisterPatchBaselineForPatchGroupCommand = se_DeregisterPatchBaselineForPatchGroupCommand;
276
198
  const se_DeregisterTargetFromMaintenanceWindowCommand = async (input, context) => {
277
- const headers = {
278
- "content-type": "application/x-amz-json-1.1",
279
- "x-amz-target": "AmazonSSM.DeregisterTargetFromMaintenanceWindow",
280
- };
199
+ const headers = sharedHeaders("DeregisterTargetFromMaintenanceWindow");
281
200
  let body;
282
201
  body = JSON.stringify(se_DeregisterTargetFromMaintenanceWindowRequest(input, context));
283
202
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
284
203
  };
285
204
  exports.se_DeregisterTargetFromMaintenanceWindowCommand = se_DeregisterTargetFromMaintenanceWindowCommand;
286
205
  const se_DeregisterTaskFromMaintenanceWindowCommand = async (input, context) => {
287
- const headers = {
288
- "content-type": "application/x-amz-json-1.1",
289
- "x-amz-target": "AmazonSSM.DeregisterTaskFromMaintenanceWindow",
290
- };
206
+ const headers = sharedHeaders("DeregisterTaskFromMaintenanceWindow");
291
207
  let body;
292
208
  body = JSON.stringify(se_DeregisterTaskFromMaintenanceWindowRequest(input, context));
293
209
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
294
210
  };
295
211
  exports.se_DeregisterTaskFromMaintenanceWindowCommand = se_DeregisterTaskFromMaintenanceWindowCommand;
296
212
  const se_DescribeActivationsCommand = async (input, context) => {
297
- const headers = {
298
- "content-type": "application/x-amz-json-1.1",
299
- "x-amz-target": "AmazonSSM.DescribeActivations",
300
- };
213
+ const headers = sharedHeaders("DescribeActivations");
301
214
  let body;
302
215
  body = JSON.stringify(se_DescribeActivationsRequest(input, context));
303
216
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
304
217
  };
305
218
  exports.se_DescribeActivationsCommand = se_DescribeActivationsCommand;
306
219
  const se_DescribeAssociationCommand = async (input, context) => {
307
- const headers = {
308
- "content-type": "application/x-amz-json-1.1",
309
- "x-amz-target": "AmazonSSM.DescribeAssociation",
310
- };
220
+ const headers = sharedHeaders("DescribeAssociation");
311
221
  let body;
312
222
  body = JSON.stringify(se_DescribeAssociationRequest(input, context));
313
223
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
314
224
  };
315
225
  exports.se_DescribeAssociationCommand = se_DescribeAssociationCommand;
316
226
  const se_DescribeAssociationExecutionsCommand = async (input, context) => {
317
- const headers = {
318
- "content-type": "application/x-amz-json-1.1",
319
- "x-amz-target": "AmazonSSM.DescribeAssociationExecutions",
320
- };
227
+ const headers = sharedHeaders("DescribeAssociationExecutions");
321
228
  let body;
322
229
  body = JSON.stringify(se_DescribeAssociationExecutionsRequest(input, context));
323
230
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
324
231
  };
325
232
  exports.se_DescribeAssociationExecutionsCommand = se_DescribeAssociationExecutionsCommand;
326
233
  const se_DescribeAssociationExecutionTargetsCommand = async (input, context) => {
327
- const headers = {
328
- "content-type": "application/x-amz-json-1.1",
329
- "x-amz-target": "AmazonSSM.DescribeAssociationExecutionTargets",
330
- };
234
+ const headers = sharedHeaders("DescribeAssociationExecutionTargets");
331
235
  let body;
332
236
  body = JSON.stringify(se_DescribeAssociationExecutionTargetsRequest(input, context));
333
237
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
334
238
  };
335
239
  exports.se_DescribeAssociationExecutionTargetsCommand = se_DescribeAssociationExecutionTargetsCommand;
336
240
  const se_DescribeAutomationExecutionsCommand = async (input, context) => {
337
- const headers = {
338
- "content-type": "application/x-amz-json-1.1",
339
- "x-amz-target": "AmazonSSM.DescribeAutomationExecutions",
340
- };
241
+ const headers = sharedHeaders("DescribeAutomationExecutions");
341
242
  let body;
342
243
  body = JSON.stringify(se_DescribeAutomationExecutionsRequest(input, context));
343
244
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
344
245
  };
345
246
  exports.se_DescribeAutomationExecutionsCommand = se_DescribeAutomationExecutionsCommand;
346
247
  const se_DescribeAutomationStepExecutionsCommand = async (input, context) => {
347
- const headers = {
348
- "content-type": "application/x-amz-json-1.1",
349
- "x-amz-target": "AmazonSSM.DescribeAutomationStepExecutions",
350
- };
248
+ const headers = sharedHeaders("DescribeAutomationStepExecutions");
351
249
  let body;
352
250
  body = JSON.stringify(se_DescribeAutomationStepExecutionsRequest(input, context));
353
251
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
354
252
  };
355
253
  exports.se_DescribeAutomationStepExecutionsCommand = se_DescribeAutomationStepExecutionsCommand;
356
254
  const se_DescribeAvailablePatchesCommand = async (input, context) => {
357
- const headers = {
358
- "content-type": "application/x-amz-json-1.1",
359
- "x-amz-target": "AmazonSSM.DescribeAvailablePatches",
360
- };
255
+ const headers = sharedHeaders("DescribeAvailablePatches");
361
256
  let body;
362
257
  body = JSON.stringify(se_DescribeAvailablePatchesRequest(input, context));
363
258
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
364
259
  };
365
260
  exports.se_DescribeAvailablePatchesCommand = se_DescribeAvailablePatchesCommand;
366
261
  const se_DescribeDocumentCommand = async (input, context) => {
367
- const headers = {
368
- "content-type": "application/x-amz-json-1.1",
369
- "x-amz-target": "AmazonSSM.DescribeDocument",
370
- };
262
+ const headers = sharedHeaders("DescribeDocument");
371
263
  let body;
372
264
  body = JSON.stringify(se_DescribeDocumentRequest(input, context));
373
265
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
374
266
  };
375
267
  exports.se_DescribeDocumentCommand = se_DescribeDocumentCommand;
376
268
  const se_DescribeDocumentPermissionCommand = async (input, context) => {
377
- const headers = {
378
- "content-type": "application/x-amz-json-1.1",
379
- "x-amz-target": "AmazonSSM.DescribeDocumentPermission",
380
- };
269
+ const headers = sharedHeaders("DescribeDocumentPermission");
381
270
  let body;
382
271
  body = JSON.stringify(se_DescribeDocumentPermissionRequest(input, context));
383
272
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
384
273
  };
385
274
  exports.se_DescribeDocumentPermissionCommand = se_DescribeDocumentPermissionCommand;
386
275
  const se_DescribeEffectiveInstanceAssociationsCommand = async (input, context) => {
387
- const headers = {
388
- "content-type": "application/x-amz-json-1.1",
389
- "x-amz-target": "AmazonSSM.DescribeEffectiveInstanceAssociations",
390
- };
276
+ const headers = sharedHeaders("DescribeEffectiveInstanceAssociations");
391
277
  let body;
392
278
  body = JSON.stringify(se_DescribeEffectiveInstanceAssociationsRequest(input, context));
393
279
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
394
280
  };
395
281
  exports.se_DescribeEffectiveInstanceAssociationsCommand = se_DescribeEffectiveInstanceAssociationsCommand;
396
282
  const se_DescribeEffectivePatchesForPatchBaselineCommand = async (input, context) => {
397
- const headers = {
398
- "content-type": "application/x-amz-json-1.1",
399
- "x-amz-target": "AmazonSSM.DescribeEffectivePatchesForPatchBaseline",
400
- };
283
+ const headers = sharedHeaders("DescribeEffectivePatchesForPatchBaseline");
401
284
  let body;
402
285
  body = JSON.stringify(se_DescribeEffectivePatchesForPatchBaselineRequest(input, context));
403
286
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
404
287
  };
405
288
  exports.se_DescribeEffectivePatchesForPatchBaselineCommand = se_DescribeEffectivePatchesForPatchBaselineCommand;
406
289
  const se_DescribeInstanceAssociationsStatusCommand = async (input, context) => {
407
- const headers = {
408
- "content-type": "application/x-amz-json-1.1",
409
- "x-amz-target": "AmazonSSM.DescribeInstanceAssociationsStatus",
410
- };
290
+ const headers = sharedHeaders("DescribeInstanceAssociationsStatus");
411
291
  let body;
412
292
  body = JSON.stringify(se_DescribeInstanceAssociationsStatusRequest(input, context));
413
293
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
414
294
  };
415
295
  exports.se_DescribeInstanceAssociationsStatusCommand = se_DescribeInstanceAssociationsStatusCommand;
416
296
  const se_DescribeInstanceInformationCommand = async (input, context) => {
417
- const headers = {
418
- "content-type": "application/x-amz-json-1.1",
419
- "x-amz-target": "AmazonSSM.DescribeInstanceInformation",
420
- };
297
+ const headers = sharedHeaders("DescribeInstanceInformation");
421
298
  let body;
422
299
  body = JSON.stringify(se_DescribeInstanceInformationRequest(input, context));
423
300
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
424
301
  };
425
302
  exports.se_DescribeInstanceInformationCommand = se_DescribeInstanceInformationCommand;
426
303
  const se_DescribeInstancePatchesCommand = async (input, context) => {
427
- const headers = {
428
- "content-type": "application/x-amz-json-1.1",
429
- "x-amz-target": "AmazonSSM.DescribeInstancePatches",
430
- };
304
+ const headers = sharedHeaders("DescribeInstancePatches");
431
305
  let body;
432
306
  body = JSON.stringify(se_DescribeInstancePatchesRequest(input, context));
433
307
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
434
308
  };
435
309
  exports.se_DescribeInstancePatchesCommand = se_DescribeInstancePatchesCommand;
436
310
  const se_DescribeInstancePatchStatesCommand = async (input, context) => {
437
- const headers = {
438
- "content-type": "application/x-amz-json-1.1",
439
- "x-amz-target": "AmazonSSM.DescribeInstancePatchStates",
440
- };
311
+ const headers = sharedHeaders("DescribeInstancePatchStates");
441
312
  let body;
442
313
  body = JSON.stringify(se_DescribeInstancePatchStatesRequest(input, context));
443
314
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
444
315
  };
445
316
  exports.se_DescribeInstancePatchStatesCommand = se_DescribeInstancePatchStatesCommand;
446
317
  const se_DescribeInstancePatchStatesForPatchGroupCommand = async (input, context) => {
447
- const headers = {
448
- "content-type": "application/x-amz-json-1.1",
449
- "x-amz-target": "AmazonSSM.DescribeInstancePatchStatesForPatchGroup",
450
- };
318
+ const headers = sharedHeaders("DescribeInstancePatchStatesForPatchGroup");
451
319
  let body;
452
320
  body = JSON.stringify(se_DescribeInstancePatchStatesForPatchGroupRequest(input, context));
453
321
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
454
322
  };
455
323
  exports.se_DescribeInstancePatchStatesForPatchGroupCommand = se_DescribeInstancePatchStatesForPatchGroupCommand;
456
324
  const se_DescribeInventoryDeletionsCommand = async (input, context) => {
457
- const headers = {
458
- "content-type": "application/x-amz-json-1.1",
459
- "x-amz-target": "AmazonSSM.DescribeInventoryDeletions",
460
- };
325
+ const headers = sharedHeaders("DescribeInventoryDeletions");
461
326
  let body;
462
327
  body = JSON.stringify(se_DescribeInventoryDeletionsRequest(input, context));
463
328
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
464
329
  };
465
330
  exports.se_DescribeInventoryDeletionsCommand = se_DescribeInventoryDeletionsCommand;
466
331
  const se_DescribeMaintenanceWindowExecutionsCommand = async (input, context) => {
467
- const headers = {
468
- "content-type": "application/x-amz-json-1.1",
469
- "x-amz-target": "AmazonSSM.DescribeMaintenanceWindowExecutions",
470
- };
332
+ const headers = sharedHeaders("DescribeMaintenanceWindowExecutions");
471
333
  let body;
472
334
  body = JSON.stringify(se_DescribeMaintenanceWindowExecutionsRequest(input, context));
473
335
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
474
336
  };
475
337
  exports.se_DescribeMaintenanceWindowExecutionsCommand = se_DescribeMaintenanceWindowExecutionsCommand;
476
338
  const se_DescribeMaintenanceWindowExecutionTaskInvocationsCommand = async (input, context) => {
477
- const headers = {
478
- "content-type": "application/x-amz-json-1.1",
479
- "x-amz-target": "AmazonSSM.DescribeMaintenanceWindowExecutionTaskInvocations",
480
- };
339
+ const headers = sharedHeaders("DescribeMaintenanceWindowExecutionTaskInvocations");
481
340
  let body;
482
341
  body = JSON.stringify(se_DescribeMaintenanceWindowExecutionTaskInvocationsRequest(input, context));
483
342
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
484
343
  };
485
344
  exports.se_DescribeMaintenanceWindowExecutionTaskInvocationsCommand = se_DescribeMaintenanceWindowExecutionTaskInvocationsCommand;
486
345
  const se_DescribeMaintenanceWindowExecutionTasksCommand = async (input, context) => {
487
- const headers = {
488
- "content-type": "application/x-amz-json-1.1",
489
- "x-amz-target": "AmazonSSM.DescribeMaintenanceWindowExecutionTasks",
490
- };
346
+ const headers = sharedHeaders("DescribeMaintenanceWindowExecutionTasks");
491
347
  let body;
492
348
  body = JSON.stringify(se_DescribeMaintenanceWindowExecutionTasksRequest(input, context));
493
349
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
494
350
  };
495
351
  exports.se_DescribeMaintenanceWindowExecutionTasksCommand = se_DescribeMaintenanceWindowExecutionTasksCommand;
496
352
  const se_DescribeMaintenanceWindowsCommand = async (input, context) => {
497
- const headers = {
498
- "content-type": "application/x-amz-json-1.1",
499
- "x-amz-target": "AmazonSSM.DescribeMaintenanceWindows",
500
- };
353
+ const headers = sharedHeaders("DescribeMaintenanceWindows");
501
354
  let body;
502
355
  body = JSON.stringify(se_DescribeMaintenanceWindowsRequest(input, context));
503
356
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
504
357
  };
505
358
  exports.se_DescribeMaintenanceWindowsCommand = se_DescribeMaintenanceWindowsCommand;
506
359
  const se_DescribeMaintenanceWindowScheduleCommand = async (input, context) => {
507
- const headers = {
508
- "content-type": "application/x-amz-json-1.1",
509
- "x-amz-target": "AmazonSSM.DescribeMaintenanceWindowSchedule",
510
- };
360
+ const headers = sharedHeaders("DescribeMaintenanceWindowSchedule");
511
361
  let body;
512
362
  body = JSON.stringify(se_DescribeMaintenanceWindowScheduleRequest(input, context));
513
363
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
514
364
  };
515
365
  exports.se_DescribeMaintenanceWindowScheduleCommand = se_DescribeMaintenanceWindowScheduleCommand;
516
366
  const se_DescribeMaintenanceWindowsForTargetCommand = async (input, context) => {
517
- const headers = {
518
- "content-type": "application/x-amz-json-1.1",
519
- "x-amz-target": "AmazonSSM.DescribeMaintenanceWindowsForTarget",
520
- };
367
+ const headers = sharedHeaders("DescribeMaintenanceWindowsForTarget");
521
368
  let body;
522
369
  body = JSON.stringify(se_DescribeMaintenanceWindowsForTargetRequest(input, context));
523
370
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
524
371
  };
525
372
  exports.se_DescribeMaintenanceWindowsForTargetCommand = se_DescribeMaintenanceWindowsForTargetCommand;
526
373
  const se_DescribeMaintenanceWindowTargetsCommand = async (input, context) => {
527
- const headers = {
528
- "content-type": "application/x-amz-json-1.1",
529
- "x-amz-target": "AmazonSSM.DescribeMaintenanceWindowTargets",
530
- };
374
+ const headers = sharedHeaders("DescribeMaintenanceWindowTargets");
531
375
  let body;
532
376
  body = JSON.stringify(se_DescribeMaintenanceWindowTargetsRequest(input, context));
533
377
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
534
378
  };
535
379
  exports.se_DescribeMaintenanceWindowTargetsCommand = se_DescribeMaintenanceWindowTargetsCommand;
536
380
  const se_DescribeMaintenanceWindowTasksCommand = async (input, context) => {
537
- const headers = {
538
- "content-type": "application/x-amz-json-1.1",
539
- "x-amz-target": "AmazonSSM.DescribeMaintenanceWindowTasks",
540
- };
381
+ const headers = sharedHeaders("DescribeMaintenanceWindowTasks");
541
382
  let body;
542
383
  body = JSON.stringify(se_DescribeMaintenanceWindowTasksRequest(input, context));
543
384
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
544
385
  };
545
386
  exports.se_DescribeMaintenanceWindowTasksCommand = se_DescribeMaintenanceWindowTasksCommand;
546
387
  const se_DescribeOpsItemsCommand = async (input, context) => {
547
- const headers = {
548
- "content-type": "application/x-amz-json-1.1",
549
- "x-amz-target": "AmazonSSM.DescribeOpsItems",
550
- };
388
+ const headers = sharedHeaders("DescribeOpsItems");
551
389
  let body;
552
390
  body = JSON.stringify(se_DescribeOpsItemsRequest(input, context));
553
391
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
554
392
  };
555
393
  exports.se_DescribeOpsItemsCommand = se_DescribeOpsItemsCommand;
556
394
  const se_DescribeParametersCommand = async (input, context) => {
557
- const headers = {
558
- "content-type": "application/x-amz-json-1.1",
559
- "x-amz-target": "AmazonSSM.DescribeParameters",
560
- };
395
+ const headers = sharedHeaders("DescribeParameters");
561
396
  let body;
562
397
  body = JSON.stringify(se_DescribeParametersRequest(input, context));
563
398
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
564
399
  };
565
400
  exports.se_DescribeParametersCommand = se_DescribeParametersCommand;
566
401
  const se_DescribePatchBaselinesCommand = async (input, context) => {
567
- const headers = {
568
- "content-type": "application/x-amz-json-1.1",
569
- "x-amz-target": "AmazonSSM.DescribePatchBaselines",
570
- };
402
+ const headers = sharedHeaders("DescribePatchBaselines");
571
403
  let body;
572
404
  body = JSON.stringify(se_DescribePatchBaselinesRequest(input, context));
573
405
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
574
406
  };
575
407
  exports.se_DescribePatchBaselinesCommand = se_DescribePatchBaselinesCommand;
576
408
  const se_DescribePatchGroupsCommand = async (input, context) => {
577
- const headers = {
578
- "content-type": "application/x-amz-json-1.1",
579
- "x-amz-target": "AmazonSSM.DescribePatchGroups",
580
- };
409
+ const headers = sharedHeaders("DescribePatchGroups");
581
410
  let body;
582
411
  body = JSON.stringify(se_DescribePatchGroupsRequest(input, context));
583
412
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
584
413
  };
585
414
  exports.se_DescribePatchGroupsCommand = se_DescribePatchGroupsCommand;
586
415
  const se_DescribePatchGroupStateCommand = async (input, context) => {
587
- const headers = {
588
- "content-type": "application/x-amz-json-1.1",
589
- "x-amz-target": "AmazonSSM.DescribePatchGroupState",
590
- };
416
+ const headers = sharedHeaders("DescribePatchGroupState");
591
417
  let body;
592
418
  body = JSON.stringify(se_DescribePatchGroupStateRequest(input, context));
593
419
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
594
420
  };
595
421
  exports.se_DescribePatchGroupStateCommand = se_DescribePatchGroupStateCommand;
596
422
  const se_DescribePatchPropertiesCommand = async (input, context) => {
597
- const headers = {
598
- "content-type": "application/x-amz-json-1.1",
599
- "x-amz-target": "AmazonSSM.DescribePatchProperties",
600
- };
423
+ const headers = sharedHeaders("DescribePatchProperties");
601
424
  let body;
602
425
  body = JSON.stringify(se_DescribePatchPropertiesRequest(input, context));
603
426
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
604
427
  };
605
428
  exports.se_DescribePatchPropertiesCommand = se_DescribePatchPropertiesCommand;
606
429
  const se_DescribeSessionsCommand = async (input, context) => {
607
- const headers = {
608
- "content-type": "application/x-amz-json-1.1",
609
- "x-amz-target": "AmazonSSM.DescribeSessions",
610
- };
430
+ const headers = sharedHeaders("DescribeSessions");
611
431
  let body;
612
432
  body = JSON.stringify(se_DescribeSessionsRequest(input, context));
613
433
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
614
434
  };
615
435
  exports.se_DescribeSessionsCommand = se_DescribeSessionsCommand;
616
436
  const se_DisassociateOpsItemRelatedItemCommand = async (input, context) => {
617
- const headers = {
618
- "content-type": "application/x-amz-json-1.1",
619
- "x-amz-target": "AmazonSSM.DisassociateOpsItemRelatedItem",
620
- };
437
+ const headers = sharedHeaders("DisassociateOpsItemRelatedItem");
621
438
  let body;
622
439
  body = JSON.stringify(se_DisassociateOpsItemRelatedItemRequest(input, context));
623
440
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
624
441
  };
625
442
  exports.se_DisassociateOpsItemRelatedItemCommand = se_DisassociateOpsItemRelatedItemCommand;
626
443
  const se_GetAutomationExecutionCommand = async (input, context) => {
627
- const headers = {
628
- "content-type": "application/x-amz-json-1.1",
629
- "x-amz-target": "AmazonSSM.GetAutomationExecution",
630
- };
444
+ const headers = sharedHeaders("GetAutomationExecution");
631
445
  let body;
632
446
  body = JSON.stringify(se_GetAutomationExecutionRequest(input, context));
633
447
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
634
448
  };
635
449
  exports.se_GetAutomationExecutionCommand = se_GetAutomationExecutionCommand;
636
450
  const se_GetCalendarStateCommand = async (input, context) => {
637
- const headers = {
638
- "content-type": "application/x-amz-json-1.1",
639
- "x-amz-target": "AmazonSSM.GetCalendarState",
640
- };
451
+ const headers = sharedHeaders("GetCalendarState");
641
452
  let body;
642
453
  body = JSON.stringify(se_GetCalendarStateRequest(input, context));
643
454
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
644
455
  };
645
456
  exports.se_GetCalendarStateCommand = se_GetCalendarStateCommand;
646
457
  const se_GetCommandInvocationCommand = async (input, context) => {
647
- const headers = {
648
- "content-type": "application/x-amz-json-1.1",
649
- "x-amz-target": "AmazonSSM.GetCommandInvocation",
650
- };
458
+ const headers = sharedHeaders("GetCommandInvocation");
651
459
  let body;
652
460
  body = JSON.stringify(se_GetCommandInvocationRequest(input, context));
653
461
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
654
462
  };
655
463
  exports.se_GetCommandInvocationCommand = se_GetCommandInvocationCommand;
656
464
  const se_GetConnectionStatusCommand = async (input, context) => {
657
- const headers = {
658
- "content-type": "application/x-amz-json-1.1",
659
- "x-amz-target": "AmazonSSM.GetConnectionStatus",
660
- };
465
+ const headers = sharedHeaders("GetConnectionStatus");
661
466
  let body;
662
467
  body = JSON.stringify(se_GetConnectionStatusRequest(input, context));
663
468
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
664
469
  };
665
470
  exports.se_GetConnectionStatusCommand = se_GetConnectionStatusCommand;
666
471
  const se_GetDefaultPatchBaselineCommand = async (input, context) => {
667
- const headers = {
668
- "content-type": "application/x-amz-json-1.1",
669
- "x-amz-target": "AmazonSSM.GetDefaultPatchBaseline",
670
- };
472
+ const headers = sharedHeaders("GetDefaultPatchBaseline");
671
473
  let body;
672
474
  body = JSON.stringify(se_GetDefaultPatchBaselineRequest(input, context));
673
475
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
674
476
  };
675
477
  exports.se_GetDefaultPatchBaselineCommand = se_GetDefaultPatchBaselineCommand;
676
478
  const se_GetDeployablePatchSnapshotForInstanceCommand = async (input, context) => {
677
- const headers = {
678
- "content-type": "application/x-amz-json-1.1",
679
- "x-amz-target": "AmazonSSM.GetDeployablePatchSnapshotForInstance",
680
- };
479
+ const headers = sharedHeaders("GetDeployablePatchSnapshotForInstance");
681
480
  let body;
682
481
  body = JSON.stringify(se_GetDeployablePatchSnapshotForInstanceRequest(input, context));
683
482
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
684
483
  };
685
484
  exports.se_GetDeployablePatchSnapshotForInstanceCommand = se_GetDeployablePatchSnapshotForInstanceCommand;
686
485
  const se_GetDocumentCommand = async (input, context) => {
687
- const headers = {
688
- "content-type": "application/x-amz-json-1.1",
689
- "x-amz-target": "AmazonSSM.GetDocument",
690
- };
486
+ const headers = sharedHeaders("GetDocument");
691
487
  let body;
692
488
  body = JSON.stringify(se_GetDocumentRequest(input, context));
693
489
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
694
490
  };
695
491
  exports.se_GetDocumentCommand = se_GetDocumentCommand;
696
492
  const se_GetInventoryCommand = async (input, context) => {
697
- const headers = {
698
- "content-type": "application/x-amz-json-1.1",
699
- "x-amz-target": "AmazonSSM.GetInventory",
700
- };
493
+ const headers = sharedHeaders("GetInventory");
701
494
  let body;
702
495
  body = JSON.stringify(se_GetInventoryRequest(input, context));
703
496
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
704
497
  };
705
498
  exports.se_GetInventoryCommand = se_GetInventoryCommand;
706
499
  const se_GetInventorySchemaCommand = async (input, context) => {
707
- const headers = {
708
- "content-type": "application/x-amz-json-1.1",
709
- "x-amz-target": "AmazonSSM.GetInventorySchema",
710
- };
500
+ const headers = sharedHeaders("GetInventorySchema");
711
501
  let body;
712
502
  body = JSON.stringify(se_GetInventorySchemaRequest(input, context));
713
503
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
714
504
  };
715
505
  exports.se_GetInventorySchemaCommand = se_GetInventorySchemaCommand;
716
506
  const se_GetMaintenanceWindowCommand = async (input, context) => {
717
- const headers = {
718
- "content-type": "application/x-amz-json-1.1",
719
- "x-amz-target": "AmazonSSM.GetMaintenanceWindow",
720
- };
507
+ const headers = sharedHeaders("GetMaintenanceWindow");
721
508
  let body;
722
509
  body = JSON.stringify(se_GetMaintenanceWindowRequest(input, context));
723
510
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
724
511
  };
725
512
  exports.se_GetMaintenanceWindowCommand = se_GetMaintenanceWindowCommand;
726
513
  const se_GetMaintenanceWindowExecutionCommand = async (input, context) => {
727
- const headers = {
728
- "content-type": "application/x-amz-json-1.1",
729
- "x-amz-target": "AmazonSSM.GetMaintenanceWindowExecution",
730
- };
514
+ const headers = sharedHeaders("GetMaintenanceWindowExecution");
731
515
  let body;
732
516
  body = JSON.stringify(se_GetMaintenanceWindowExecutionRequest(input, context));
733
517
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
734
518
  };
735
519
  exports.se_GetMaintenanceWindowExecutionCommand = se_GetMaintenanceWindowExecutionCommand;
736
520
  const se_GetMaintenanceWindowExecutionTaskCommand = async (input, context) => {
737
- const headers = {
738
- "content-type": "application/x-amz-json-1.1",
739
- "x-amz-target": "AmazonSSM.GetMaintenanceWindowExecutionTask",
740
- };
521
+ const headers = sharedHeaders("GetMaintenanceWindowExecutionTask");
741
522
  let body;
742
523
  body = JSON.stringify(se_GetMaintenanceWindowExecutionTaskRequest(input, context));
743
524
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
744
525
  };
745
526
  exports.se_GetMaintenanceWindowExecutionTaskCommand = se_GetMaintenanceWindowExecutionTaskCommand;
746
527
  const se_GetMaintenanceWindowExecutionTaskInvocationCommand = async (input, context) => {
747
- const headers = {
748
- "content-type": "application/x-amz-json-1.1",
749
- "x-amz-target": "AmazonSSM.GetMaintenanceWindowExecutionTaskInvocation",
750
- };
528
+ const headers = sharedHeaders("GetMaintenanceWindowExecutionTaskInvocation");
751
529
  let body;
752
530
  body = JSON.stringify(se_GetMaintenanceWindowExecutionTaskInvocationRequest(input, context));
753
531
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
754
532
  };
755
533
  exports.se_GetMaintenanceWindowExecutionTaskInvocationCommand = se_GetMaintenanceWindowExecutionTaskInvocationCommand;
756
534
  const se_GetMaintenanceWindowTaskCommand = async (input, context) => {
757
- const headers = {
758
- "content-type": "application/x-amz-json-1.1",
759
- "x-amz-target": "AmazonSSM.GetMaintenanceWindowTask",
760
- };
535
+ const headers = sharedHeaders("GetMaintenanceWindowTask");
761
536
  let body;
762
537
  body = JSON.stringify(se_GetMaintenanceWindowTaskRequest(input, context));
763
538
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
764
539
  };
765
540
  exports.se_GetMaintenanceWindowTaskCommand = se_GetMaintenanceWindowTaskCommand;
766
541
  const se_GetOpsItemCommand = async (input, context) => {
767
- const headers = {
768
- "content-type": "application/x-amz-json-1.1",
769
- "x-amz-target": "AmazonSSM.GetOpsItem",
770
- };
542
+ const headers = sharedHeaders("GetOpsItem");
771
543
  let body;
772
544
  body = JSON.stringify(se_GetOpsItemRequest(input, context));
773
545
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
774
546
  };
775
547
  exports.se_GetOpsItemCommand = se_GetOpsItemCommand;
776
548
  const se_GetOpsMetadataCommand = async (input, context) => {
777
- const headers = {
778
- "content-type": "application/x-amz-json-1.1",
779
- "x-amz-target": "AmazonSSM.GetOpsMetadata",
780
- };
549
+ const headers = sharedHeaders("GetOpsMetadata");
781
550
  let body;
782
551
  body = JSON.stringify(se_GetOpsMetadataRequest(input, context));
783
552
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
784
553
  };
785
554
  exports.se_GetOpsMetadataCommand = se_GetOpsMetadataCommand;
786
555
  const se_GetOpsSummaryCommand = async (input, context) => {
787
- const headers = {
788
- "content-type": "application/x-amz-json-1.1",
789
- "x-amz-target": "AmazonSSM.GetOpsSummary",
790
- };
556
+ const headers = sharedHeaders("GetOpsSummary");
791
557
  let body;
792
558
  body = JSON.stringify(se_GetOpsSummaryRequest(input, context));
793
559
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
794
560
  };
795
561
  exports.se_GetOpsSummaryCommand = se_GetOpsSummaryCommand;
796
562
  const se_GetParameterCommand = async (input, context) => {
797
- const headers = {
798
- "content-type": "application/x-amz-json-1.1",
799
- "x-amz-target": "AmazonSSM.GetParameter",
800
- };
563
+ const headers = sharedHeaders("GetParameter");
801
564
  let body;
802
565
  body = JSON.stringify(se_GetParameterRequest(input, context));
803
566
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
804
567
  };
805
568
  exports.se_GetParameterCommand = se_GetParameterCommand;
806
569
  const se_GetParameterHistoryCommand = async (input, context) => {
807
- const headers = {
808
- "content-type": "application/x-amz-json-1.1",
809
- "x-amz-target": "AmazonSSM.GetParameterHistory",
810
- };
570
+ const headers = sharedHeaders("GetParameterHistory");
811
571
  let body;
812
572
  body = JSON.stringify(se_GetParameterHistoryRequest(input, context));
813
573
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
814
574
  };
815
575
  exports.se_GetParameterHistoryCommand = se_GetParameterHistoryCommand;
816
576
  const se_GetParametersCommand = async (input, context) => {
817
- const headers = {
818
- "content-type": "application/x-amz-json-1.1",
819
- "x-amz-target": "AmazonSSM.GetParameters",
820
- };
577
+ const headers = sharedHeaders("GetParameters");
821
578
  let body;
822
579
  body = JSON.stringify(se_GetParametersRequest(input, context));
823
580
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
824
581
  };
825
582
  exports.se_GetParametersCommand = se_GetParametersCommand;
826
583
  const se_GetParametersByPathCommand = async (input, context) => {
827
- const headers = {
828
- "content-type": "application/x-amz-json-1.1",
829
- "x-amz-target": "AmazonSSM.GetParametersByPath",
830
- };
584
+ const headers = sharedHeaders("GetParametersByPath");
831
585
  let body;
832
586
  body = JSON.stringify(se_GetParametersByPathRequest(input, context));
833
587
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
834
588
  };
835
589
  exports.se_GetParametersByPathCommand = se_GetParametersByPathCommand;
836
590
  const se_GetPatchBaselineCommand = async (input, context) => {
837
- const headers = {
838
- "content-type": "application/x-amz-json-1.1",
839
- "x-amz-target": "AmazonSSM.GetPatchBaseline",
840
- };
591
+ const headers = sharedHeaders("GetPatchBaseline");
841
592
  let body;
842
593
  body = JSON.stringify(se_GetPatchBaselineRequest(input, context));
843
594
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
844
595
  };
845
596
  exports.se_GetPatchBaselineCommand = se_GetPatchBaselineCommand;
846
597
  const se_GetPatchBaselineForPatchGroupCommand = async (input, context) => {
847
- const headers = {
848
- "content-type": "application/x-amz-json-1.1",
849
- "x-amz-target": "AmazonSSM.GetPatchBaselineForPatchGroup",
850
- };
598
+ const headers = sharedHeaders("GetPatchBaselineForPatchGroup");
851
599
  let body;
852
600
  body = JSON.stringify(se_GetPatchBaselineForPatchGroupRequest(input, context));
853
601
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
854
602
  };
855
603
  exports.se_GetPatchBaselineForPatchGroupCommand = se_GetPatchBaselineForPatchGroupCommand;
856
604
  const se_GetResourcePoliciesCommand = async (input, context) => {
857
- const headers = {
858
- "content-type": "application/x-amz-json-1.1",
859
- "x-amz-target": "AmazonSSM.GetResourcePolicies",
860
- };
605
+ const headers = sharedHeaders("GetResourcePolicies");
861
606
  let body;
862
607
  body = JSON.stringify(se_GetResourcePoliciesRequest(input, context));
863
608
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
864
609
  };
865
610
  exports.se_GetResourcePoliciesCommand = se_GetResourcePoliciesCommand;
866
611
  const se_GetServiceSettingCommand = async (input, context) => {
867
- const headers = {
868
- "content-type": "application/x-amz-json-1.1",
869
- "x-amz-target": "AmazonSSM.GetServiceSetting",
870
- };
612
+ const headers = sharedHeaders("GetServiceSetting");
871
613
  let body;
872
614
  body = JSON.stringify(se_GetServiceSettingRequest(input, context));
873
615
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
874
616
  };
875
617
  exports.se_GetServiceSettingCommand = se_GetServiceSettingCommand;
876
618
  const se_LabelParameterVersionCommand = async (input, context) => {
877
- const headers = {
878
- "content-type": "application/x-amz-json-1.1",
879
- "x-amz-target": "AmazonSSM.LabelParameterVersion",
880
- };
619
+ const headers = sharedHeaders("LabelParameterVersion");
881
620
  let body;
882
621
  body = JSON.stringify(se_LabelParameterVersionRequest(input, context));
883
622
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
884
623
  };
885
624
  exports.se_LabelParameterVersionCommand = se_LabelParameterVersionCommand;
886
625
  const se_ListAssociationsCommand = async (input, context) => {
887
- const headers = {
888
- "content-type": "application/x-amz-json-1.1",
889
- "x-amz-target": "AmazonSSM.ListAssociations",
890
- };
626
+ const headers = sharedHeaders("ListAssociations");
891
627
  let body;
892
628
  body = JSON.stringify(se_ListAssociationsRequest(input, context));
893
629
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
894
630
  };
895
631
  exports.se_ListAssociationsCommand = se_ListAssociationsCommand;
896
632
  const se_ListAssociationVersionsCommand = async (input, context) => {
897
- const headers = {
898
- "content-type": "application/x-amz-json-1.1",
899
- "x-amz-target": "AmazonSSM.ListAssociationVersions",
900
- };
633
+ const headers = sharedHeaders("ListAssociationVersions");
901
634
  let body;
902
635
  body = JSON.stringify(se_ListAssociationVersionsRequest(input, context));
903
636
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
904
637
  };
905
638
  exports.se_ListAssociationVersionsCommand = se_ListAssociationVersionsCommand;
906
639
  const se_ListCommandInvocationsCommand = async (input, context) => {
907
- const headers = {
908
- "content-type": "application/x-amz-json-1.1",
909
- "x-amz-target": "AmazonSSM.ListCommandInvocations",
910
- };
640
+ const headers = sharedHeaders("ListCommandInvocations");
911
641
  let body;
912
642
  body = JSON.stringify(se_ListCommandInvocationsRequest(input, context));
913
643
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
914
644
  };
915
645
  exports.se_ListCommandInvocationsCommand = se_ListCommandInvocationsCommand;
916
646
  const se_ListCommandsCommand = async (input, context) => {
917
- const headers = {
918
- "content-type": "application/x-amz-json-1.1",
919
- "x-amz-target": "AmazonSSM.ListCommands",
920
- };
647
+ const headers = sharedHeaders("ListCommands");
921
648
  let body;
922
649
  body = JSON.stringify(se_ListCommandsRequest(input, context));
923
650
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
924
651
  };
925
652
  exports.se_ListCommandsCommand = se_ListCommandsCommand;
926
653
  const se_ListComplianceItemsCommand = async (input, context) => {
927
- const headers = {
928
- "content-type": "application/x-amz-json-1.1",
929
- "x-amz-target": "AmazonSSM.ListComplianceItems",
930
- };
654
+ const headers = sharedHeaders("ListComplianceItems");
931
655
  let body;
932
656
  body = JSON.stringify(se_ListComplianceItemsRequest(input, context));
933
657
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
934
658
  };
935
659
  exports.se_ListComplianceItemsCommand = se_ListComplianceItemsCommand;
936
660
  const se_ListComplianceSummariesCommand = async (input, context) => {
937
- const headers = {
938
- "content-type": "application/x-amz-json-1.1",
939
- "x-amz-target": "AmazonSSM.ListComplianceSummaries",
940
- };
661
+ const headers = sharedHeaders("ListComplianceSummaries");
941
662
  let body;
942
663
  body = JSON.stringify(se_ListComplianceSummariesRequest(input, context));
943
664
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
944
665
  };
945
666
  exports.se_ListComplianceSummariesCommand = se_ListComplianceSummariesCommand;
946
667
  const se_ListDocumentMetadataHistoryCommand = async (input, context) => {
947
- const headers = {
948
- "content-type": "application/x-amz-json-1.1",
949
- "x-amz-target": "AmazonSSM.ListDocumentMetadataHistory",
950
- };
668
+ const headers = sharedHeaders("ListDocumentMetadataHistory");
951
669
  let body;
952
670
  body = JSON.stringify(se_ListDocumentMetadataHistoryRequest(input, context));
953
671
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
954
672
  };
955
673
  exports.se_ListDocumentMetadataHistoryCommand = se_ListDocumentMetadataHistoryCommand;
956
674
  const se_ListDocumentsCommand = async (input, context) => {
957
- const headers = {
958
- "content-type": "application/x-amz-json-1.1",
959
- "x-amz-target": "AmazonSSM.ListDocuments",
960
- };
675
+ const headers = sharedHeaders("ListDocuments");
961
676
  let body;
962
677
  body = JSON.stringify(se_ListDocumentsRequest(input, context));
963
678
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
964
679
  };
965
680
  exports.se_ListDocumentsCommand = se_ListDocumentsCommand;
966
681
  const se_ListDocumentVersionsCommand = async (input, context) => {
967
- const headers = {
968
- "content-type": "application/x-amz-json-1.1",
969
- "x-amz-target": "AmazonSSM.ListDocumentVersions",
970
- };
682
+ const headers = sharedHeaders("ListDocumentVersions");
971
683
  let body;
972
684
  body = JSON.stringify(se_ListDocumentVersionsRequest(input, context));
973
685
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
974
686
  };
975
687
  exports.se_ListDocumentVersionsCommand = se_ListDocumentVersionsCommand;
976
688
  const se_ListInventoryEntriesCommand = async (input, context) => {
977
- const headers = {
978
- "content-type": "application/x-amz-json-1.1",
979
- "x-amz-target": "AmazonSSM.ListInventoryEntries",
980
- };
689
+ const headers = sharedHeaders("ListInventoryEntries");
981
690
  let body;
982
691
  body = JSON.stringify(se_ListInventoryEntriesRequest(input, context));
983
692
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
984
693
  };
985
694
  exports.se_ListInventoryEntriesCommand = se_ListInventoryEntriesCommand;
986
695
  const se_ListOpsItemEventsCommand = async (input, context) => {
987
- const headers = {
988
- "content-type": "application/x-amz-json-1.1",
989
- "x-amz-target": "AmazonSSM.ListOpsItemEvents",
990
- };
696
+ const headers = sharedHeaders("ListOpsItemEvents");
991
697
  let body;
992
698
  body = JSON.stringify(se_ListOpsItemEventsRequest(input, context));
993
699
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
994
700
  };
995
701
  exports.se_ListOpsItemEventsCommand = se_ListOpsItemEventsCommand;
996
702
  const se_ListOpsItemRelatedItemsCommand = async (input, context) => {
997
- const headers = {
998
- "content-type": "application/x-amz-json-1.1",
999
- "x-amz-target": "AmazonSSM.ListOpsItemRelatedItems",
1000
- };
703
+ const headers = sharedHeaders("ListOpsItemRelatedItems");
1001
704
  let body;
1002
705
  body = JSON.stringify(se_ListOpsItemRelatedItemsRequest(input, context));
1003
706
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1004
707
  };
1005
708
  exports.se_ListOpsItemRelatedItemsCommand = se_ListOpsItemRelatedItemsCommand;
1006
709
  const se_ListOpsMetadataCommand = async (input, context) => {
1007
- const headers = {
1008
- "content-type": "application/x-amz-json-1.1",
1009
- "x-amz-target": "AmazonSSM.ListOpsMetadata",
1010
- };
710
+ const headers = sharedHeaders("ListOpsMetadata");
1011
711
  let body;
1012
712
  body = JSON.stringify(se_ListOpsMetadataRequest(input, context));
1013
713
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1014
714
  };
1015
715
  exports.se_ListOpsMetadataCommand = se_ListOpsMetadataCommand;
1016
716
  const se_ListResourceComplianceSummariesCommand = async (input, context) => {
1017
- const headers = {
1018
- "content-type": "application/x-amz-json-1.1",
1019
- "x-amz-target": "AmazonSSM.ListResourceComplianceSummaries",
1020
- };
717
+ const headers = sharedHeaders("ListResourceComplianceSummaries");
1021
718
  let body;
1022
719
  body = JSON.stringify(se_ListResourceComplianceSummariesRequest(input, context));
1023
720
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1024
721
  };
1025
722
  exports.se_ListResourceComplianceSummariesCommand = se_ListResourceComplianceSummariesCommand;
1026
723
  const se_ListResourceDataSyncCommand = async (input, context) => {
1027
- const headers = {
1028
- "content-type": "application/x-amz-json-1.1",
1029
- "x-amz-target": "AmazonSSM.ListResourceDataSync",
1030
- };
724
+ const headers = sharedHeaders("ListResourceDataSync");
1031
725
  let body;
1032
726
  body = JSON.stringify(se_ListResourceDataSyncRequest(input, context));
1033
727
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1034
728
  };
1035
729
  exports.se_ListResourceDataSyncCommand = se_ListResourceDataSyncCommand;
1036
730
  const se_ListTagsForResourceCommand = async (input, context) => {
1037
- const headers = {
1038
- "content-type": "application/x-amz-json-1.1",
1039
- "x-amz-target": "AmazonSSM.ListTagsForResource",
1040
- };
731
+ const headers = sharedHeaders("ListTagsForResource");
1041
732
  let body;
1042
733
  body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
1043
734
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1044
735
  };
1045
736
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
1046
737
  const se_ModifyDocumentPermissionCommand = async (input, context) => {
1047
- const headers = {
1048
- "content-type": "application/x-amz-json-1.1",
1049
- "x-amz-target": "AmazonSSM.ModifyDocumentPermission",
1050
- };
738
+ const headers = sharedHeaders("ModifyDocumentPermission");
1051
739
  let body;
1052
740
  body = JSON.stringify(se_ModifyDocumentPermissionRequest(input, context));
1053
741
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1054
742
  };
1055
743
  exports.se_ModifyDocumentPermissionCommand = se_ModifyDocumentPermissionCommand;
1056
744
  const se_PutComplianceItemsCommand = async (input, context) => {
1057
- const headers = {
1058
- "content-type": "application/x-amz-json-1.1",
1059
- "x-amz-target": "AmazonSSM.PutComplianceItems",
1060
- };
745
+ const headers = sharedHeaders("PutComplianceItems");
1061
746
  let body;
1062
747
  body = JSON.stringify(se_PutComplianceItemsRequest(input, context));
1063
748
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1064
749
  };
1065
750
  exports.se_PutComplianceItemsCommand = se_PutComplianceItemsCommand;
1066
751
  const se_PutInventoryCommand = async (input, context) => {
1067
- const headers = {
1068
- "content-type": "application/x-amz-json-1.1",
1069
- "x-amz-target": "AmazonSSM.PutInventory",
1070
- };
752
+ const headers = sharedHeaders("PutInventory");
1071
753
  let body;
1072
754
  body = JSON.stringify(se_PutInventoryRequest(input, context));
1073
755
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1074
756
  };
1075
757
  exports.se_PutInventoryCommand = se_PutInventoryCommand;
1076
758
  const se_PutParameterCommand = async (input, context) => {
1077
- const headers = {
1078
- "content-type": "application/x-amz-json-1.1",
1079
- "x-amz-target": "AmazonSSM.PutParameter",
1080
- };
759
+ const headers = sharedHeaders("PutParameter");
1081
760
  let body;
1082
761
  body = JSON.stringify(se_PutParameterRequest(input, context));
1083
762
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1084
763
  };
1085
764
  exports.se_PutParameterCommand = se_PutParameterCommand;
1086
765
  const se_PutResourcePolicyCommand = async (input, context) => {
1087
- const headers = {
1088
- "content-type": "application/x-amz-json-1.1",
1089
- "x-amz-target": "AmazonSSM.PutResourcePolicy",
1090
- };
766
+ const headers = sharedHeaders("PutResourcePolicy");
1091
767
  let body;
1092
768
  body = JSON.stringify(se_PutResourcePolicyRequest(input, context));
1093
769
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1094
770
  };
1095
771
  exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
1096
772
  const se_RegisterDefaultPatchBaselineCommand = async (input, context) => {
1097
- const headers = {
1098
- "content-type": "application/x-amz-json-1.1",
1099
- "x-amz-target": "AmazonSSM.RegisterDefaultPatchBaseline",
1100
- };
773
+ const headers = sharedHeaders("RegisterDefaultPatchBaseline");
1101
774
  let body;
1102
775
  body = JSON.stringify(se_RegisterDefaultPatchBaselineRequest(input, context));
1103
776
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1104
777
  };
1105
778
  exports.se_RegisterDefaultPatchBaselineCommand = se_RegisterDefaultPatchBaselineCommand;
1106
779
  const se_RegisterPatchBaselineForPatchGroupCommand = async (input, context) => {
1107
- const headers = {
1108
- "content-type": "application/x-amz-json-1.1",
1109
- "x-amz-target": "AmazonSSM.RegisterPatchBaselineForPatchGroup",
1110
- };
780
+ const headers = sharedHeaders("RegisterPatchBaselineForPatchGroup");
1111
781
  let body;
1112
782
  body = JSON.stringify(se_RegisterPatchBaselineForPatchGroupRequest(input, context));
1113
783
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1114
784
  };
1115
785
  exports.se_RegisterPatchBaselineForPatchGroupCommand = se_RegisterPatchBaselineForPatchGroupCommand;
1116
786
  const se_RegisterTargetWithMaintenanceWindowCommand = async (input, context) => {
1117
- const headers = {
1118
- "content-type": "application/x-amz-json-1.1",
1119
- "x-amz-target": "AmazonSSM.RegisterTargetWithMaintenanceWindow",
1120
- };
787
+ const headers = sharedHeaders("RegisterTargetWithMaintenanceWindow");
1121
788
  let body;
1122
789
  body = JSON.stringify(se_RegisterTargetWithMaintenanceWindowRequest(input, context));
1123
790
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1124
791
  };
1125
792
  exports.se_RegisterTargetWithMaintenanceWindowCommand = se_RegisterTargetWithMaintenanceWindowCommand;
1126
793
  const se_RegisterTaskWithMaintenanceWindowCommand = async (input, context) => {
1127
- const headers = {
1128
- "content-type": "application/x-amz-json-1.1",
1129
- "x-amz-target": "AmazonSSM.RegisterTaskWithMaintenanceWindow",
1130
- };
794
+ const headers = sharedHeaders("RegisterTaskWithMaintenanceWindow");
1131
795
  let body;
1132
796
  body = JSON.stringify(se_RegisterTaskWithMaintenanceWindowRequest(input, context));
1133
797
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1134
798
  };
1135
799
  exports.se_RegisterTaskWithMaintenanceWindowCommand = se_RegisterTaskWithMaintenanceWindowCommand;
1136
800
  const se_RemoveTagsFromResourceCommand = async (input, context) => {
1137
- const headers = {
1138
- "content-type": "application/x-amz-json-1.1",
1139
- "x-amz-target": "AmazonSSM.RemoveTagsFromResource",
1140
- };
801
+ const headers = sharedHeaders("RemoveTagsFromResource");
1141
802
  let body;
1142
803
  body = JSON.stringify(se_RemoveTagsFromResourceRequest(input, context));
1143
804
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1144
805
  };
1145
806
  exports.se_RemoveTagsFromResourceCommand = se_RemoveTagsFromResourceCommand;
1146
807
  const se_ResetServiceSettingCommand = async (input, context) => {
1147
- const headers = {
1148
- "content-type": "application/x-amz-json-1.1",
1149
- "x-amz-target": "AmazonSSM.ResetServiceSetting",
1150
- };
808
+ const headers = sharedHeaders("ResetServiceSetting");
1151
809
  let body;
1152
810
  body = JSON.stringify(se_ResetServiceSettingRequest(input, context));
1153
811
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1154
812
  };
1155
813
  exports.se_ResetServiceSettingCommand = se_ResetServiceSettingCommand;
1156
814
  const se_ResumeSessionCommand = async (input, context) => {
1157
- const headers = {
1158
- "content-type": "application/x-amz-json-1.1",
1159
- "x-amz-target": "AmazonSSM.ResumeSession",
1160
- };
815
+ const headers = sharedHeaders("ResumeSession");
1161
816
  let body;
1162
817
  body = JSON.stringify(se_ResumeSessionRequest(input, context));
1163
818
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1164
819
  };
1165
820
  exports.se_ResumeSessionCommand = se_ResumeSessionCommand;
1166
821
  const se_SendAutomationSignalCommand = async (input, context) => {
1167
- const headers = {
1168
- "content-type": "application/x-amz-json-1.1",
1169
- "x-amz-target": "AmazonSSM.SendAutomationSignal",
1170
- };
822
+ const headers = sharedHeaders("SendAutomationSignal");
1171
823
  let body;
1172
824
  body = JSON.stringify(se_SendAutomationSignalRequest(input, context));
1173
825
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1174
826
  };
1175
827
  exports.se_SendAutomationSignalCommand = se_SendAutomationSignalCommand;
1176
828
  const se_SendCommandCommand = async (input, context) => {
1177
- const headers = {
1178
- "content-type": "application/x-amz-json-1.1",
1179
- "x-amz-target": "AmazonSSM.SendCommand",
1180
- };
829
+ const headers = sharedHeaders("SendCommand");
1181
830
  let body;
1182
831
  body = JSON.stringify(se_SendCommandRequest(input, context));
1183
832
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1184
833
  };
1185
834
  exports.se_SendCommandCommand = se_SendCommandCommand;
1186
835
  const se_StartAssociationsOnceCommand = async (input, context) => {
1187
- const headers = {
1188
- "content-type": "application/x-amz-json-1.1",
1189
- "x-amz-target": "AmazonSSM.StartAssociationsOnce",
1190
- };
836
+ const headers = sharedHeaders("StartAssociationsOnce");
1191
837
  let body;
1192
838
  body = JSON.stringify(se_StartAssociationsOnceRequest(input, context));
1193
839
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1194
840
  };
1195
841
  exports.se_StartAssociationsOnceCommand = se_StartAssociationsOnceCommand;
1196
842
  const se_StartAutomationExecutionCommand = async (input, context) => {
1197
- const headers = {
1198
- "content-type": "application/x-amz-json-1.1",
1199
- "x-amz-target": "AmazonSSM.StartAutomationExecution",
1200
- };
843
+ const headers = sharedHeaders("StartAutomationExecution");
1201
844
  let body;
1202
845
  body = JSON.stringify(se_StartAutomationExecutionRequest(input, context));
1203
846
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1204
847
  };
1205
848
  exports.se_StartAutomationExecutionCommand = se_StartAutomationExecutionCommand;
1206
849
  const se_StartChangeRequestExecutionCommand = async (input, context) => {
1207
- const headers = {
1208
- "content-type": "application/x-amz-json-1.1",
1209
- "x-amz-target": "AmazonSSM.StartChangeRequestExecution",
1210
- };
850
+ const headers = sharedHeaders("StartChangeRequestExecution");
1211
851
  let body;
1212
852
  body = JSON.stringify(se_StartChangeRequestExecutionRequest(input, context));
1213
853
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1214
854
  };
1215
855
  exports.se_StartChangeRequestExecutionCommand = se_StartChangeRequestExecutionCommand;
1216
856
  const se_StartSessionCommand = async (input, context) => {
1217
- const headers = {
1218
- "content-type": "application/x-amz-json-1.1",
1219
- "x-amz-target": "AmazonSSM.StartSession",
1220
- };
857
+ const headers = sharedHeaders("StartSession");
1221
858
  let body;
1222
859
  body = JSON.stringify(se_StartSessionRequest(input, context));
1223
860
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1224
861
  };
1225
862
  exports.se_StartSessionCommand = se_StartSessionCommand;
1226
863
  const se_StopAutomationExecutionCommand = async (input, context) => {
1227
- const headers = {
1228
- "content-type": "application/x-amz-json-1.1",
1229
- "x-amz-target": "AmazonSSM.StopAutomationExecution",
1230
- };
864
+ const headers = sharedHeaders("StopAutomationExecution");
1231
865
  let body;
1232
866
  body = JSON.stringify(se_StopAutomationExecutionRequest(input, context));
1233
867
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1234
868
  };
1235
869
  exports.se_StopAutomationExecutionCommand = se_StopAutomationExecutionCommand;
1236
870
  const se_TerminateSessionCommand = async (input, context) => {
1237
- const headers = {
1238
- "content-type": "application/x-amz-json-1.1",
1239
- "x-amz-target": "AmazonSSM.TerminateSession",
1240
- };
871
+ const headers = sharedHeaders("TerminateSession");
1241
872
  let body;
1242
873
  body = JSON.stringify(se_TerminateSessionRequest(input, context));
1243
874
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1244
875
  };
1245
876
  exports.se_TerminateSessionCommand = se_TerminateSessionCommand;
1246
877
  const se_UnlabelParameterVersionCommand = async (input, context) => {
1247
- const headers = {
1248
- "content-type": "application/x-amz-json-1.1",
1249
- "x-amz-target": "AmazonSSM.UnlabelParameterVersion",
1250
- };
878
+ const headers = sharedHeaders("UnlabelParameterVersion");
1251
879
  let body;
1252
880
  body = JSON.stringify(se_UnlabelParameterVersionRequest(input, context));
1253
881
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1254
882
  };
1255
883
  exports.se_UnlabelParameterVersionCommand = se_UnlabelParameterVersionCommand;
1256
884
  const se_UpdateAssociationCommand = async (input, context) => {
1257
- const headers = {
1258
- "content-type": "application/x-amz-json-1.1",
1259
- "x-amz-target": "AmazonSSM.UpdateAssociation",
1260
- };
885
+ const headers = sharedHeaders("UpdateAssociation");
1261
886
  let body;
1262
887
  body = JSON.stringify(se_UpdateAssociationRequest(input, context));
1263
888
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1264
889
  };
1265
890
  exports.se_UpdateAssociationCommand = se_UpdateAssociationCommand;
1266
891
  const se_UpdateAssociationStatusCommand = async (input, context) => {
1267
- const headers = {
1268
- "content-type": "application/x-amz-json-1.1",
1269
- "x-amz-target": "AmazonSSM.UpdateAssociationStatus",
1270
- };
892
+ const headers = sharedHeaders("UpdateAssociationStatus");
1271
893
  let body;
1272
894
  body = JSON.stringify(se_UpdateAssociationStatusRequest(input, context));
1273
895
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1274
896
  };
1275
897
  exports.se_UpdateAssociationStatusCommand = se_UpdateAssociationStatusCommand;
1276
898
  const se_UpdateDocumentCommand = async (input, context) => {
1277
- const headers = {
1278
- "content-type": "application/x-amz-json-1.1",
1279
- "x-amz-target": "AmazonSSM.UpdateDocument",
1280
- };
899
+ const headers = sharedHeaders("UpdateDocument");
1281
900
  let body;
1282
901
  body = JSON.stringify(se_UpdateDocumentRequest(input, context));
1283
902
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1284
903
  };
1285
904
  exports.se_UpdateDocumentCommand = se_UpdateDocumentCommand;
1286
905
  const se_UpdateDocumentDefaultVersionCommand = async (input, context) => {
1287
- const headers = {
1288
- "content-type": "application/x-amz-json-1.1",
1289
- "x-amz-target": "AmazonSSM.UpdateDocumentDefaultVersion",
1290
- };
906
+ const headers = sharedHeaders("UpdateDocumentDefaultVersion");
1291
907
  let body;
1292
908
  body = JSON.stringify(se_UpdateDocumentDefaultVersionRequest(input, context));
1293
909
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1294
910
  };
1295
911
  exports.se_UpdateDocumentDefaultVersionCommand = se_UpdateDocumentDefaultVersionCommand;
1296
912
  const se_UpdateDocumentMetadataCommand = async (input, context) => {
1297
- const headers = {
1298
- "content-type": "application/x-amz-json-1.1",
1299
- "x-amz-target": "AmazonSSM.UpdateDocumentMetadata",
1300
- };
913
+ const headers = sharedHeaders("UpdateDocumentMetadata");
1301
914
  let body;
1302
915
  body = JSON.stringify(se_UpdateDocumentMetadataRequest(input, context));
1303
916
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1304
917
  };
1305
918
  exports.se_UpdateDocumentMetadataCommand = se_UpdateDocumentMetadataCommand;
1306
919
  const se_UpdateMaintenanceWindowCommand = async (input, context) => {
1307
- const headers = {
1308
- "content-type": "application/x-amz-json-1.1",
1309
- "x-amz-target": "AmazonSSM.UpdateMaintenanceWindow",
1310
- };
920
+ const headers = sharedHeaders("UpdateMaintenanceWindow");
1311
921
  let body;
1312
922
  body = JSON.stringify(se_UpdateMaintenanceWindowRequest(input, context));
1313
923
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1314
924
  };
1315
925
  exports.se_UpdateMaintenanceWindowCommand = se_UpdateMaintenanceWindowCommand;
1316
926
  const se_UpdateMaintenanceWindowTargetCommand = async (input, context) => {
1317
- const headers = {
1318
- "content-type": "application/x-amz-json-1.1",
1319
- "x-amz-target": "AmazonSSM.UpdateMaintenanceWindowTarget",
1320
- };
927
+ const headers = sharedHeaders("UpdateMaintenanceWindowTarget");
1321
928
  let body;
1322
929
  body = JSON.stringify(se_UpdateMaintenanceWindowTargetRequest(input, context));
1323
930
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1324
931
  };
1325
932
  exports.se_UpdateMaintenanceWindowTargetCommand = se_UpdateMaintenanceWindowTargetCommand;
1326
933
  const se_UpdateMaintenanceWindowTaskCommand = async (input, context) => {
1327
- const headers = {
1328
- "content-type": "application/x-amz-json-1.1",
1329
- "x-amz-target": "AmazonSSM.UpdateMaintenanceWindowTask",
1330
- };
934
+ const headers = sharedHeaders("UpdateMaintenanceWindowTask");
1331
935
  let body;
1332
936
  body = JSON.stringify(se_UpdateMaintenanceWindowTaskRequest(input, context));
1333
937
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1334
938
  };
1335
939
  exports.se_UpdateMaintenanceWindowTaskCommand = se_UpdateMaintenanceWindowTaskCommand;
1336
940
  const se_UpdateManagedInstanceRoleCommand = async (input, context) => {
1337
- const headers = {
1338
- "content-type": "application/x-amz-json-1.1",
1339
- "x-amz-target": "AmazonSSM.UpdateManagedInstanceRole",
1340
- };
941
+ const headers = sharedHeaders("UpdateManagedInstanceRole");
1341
942
  let body;
1342
943
  body = JSON.stringify(se_UpdateManagedInstanceRoleRequest(input, context));
1343
944
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1344
945
  };
1345
946
  exports.se_UpdateManagedInstanceRoleCommand = se_UpdateManagedInstanceRoleCommand;
1346
947
  const se_UpdateOpsItemCommand = async (input, context) => {
1347
- const headers = {
1348
- "content-type": "application/x-amz-json-1.1",
1349
- "x-amz-target": "AmazonSSM.UpdateOpsItem",
1350
- };
948
+ const headers = sharedHeaders("UpdateOpsItem");
1351
949
  let body;
1352
950
  body = JSON.stringify(se_UpdateOpsItemRequest(input, context));
1353
951
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1354
952
  };
1355
953
  exports.se_UpdateOpsItemCommand = se_UpdateOpsItemCommand;
1356
954
  const se_UpdateOpsMetadataCommand = async (input, context) => {
1357
- const headers = {
1358
- "content-type": "application/x-amz-json-1.1",
1359
- "x-amz-target": "AmazonSSM.UpdateOpsMetadata",
1360
- };
955
+ const headers = sharedHeaders("UpdateOpsMetadata");
1361
956
  let body;
1362
957
  body = JSON.stringify(se_UpdateOpsMetadataRequest(input, context));
1363
958
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1364
959
  };
1365
960
  exports.se_UpdateOpsMetadataCommand = se_UpdateOpsMetadataCommand;
1366
961
  const se_UpdatePatchBaselineCommand = async (input, context) => {
1367
- const headers = {
1368
- "content-type": "application/x-amz-json-1.1",
1369
- "x-amz-target": "AmazonSSM.UpdatePatchBaseline",
1370
- };
962
+ const headers = sharedHeaders("UpdatePatchBaseline");
1371
963
  let body;
1372
964
  body = JSON.stringify(se_UpdatePatchBaselineRequest(input, context));
1373
965
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1374
966
  };
1375
967
  exports.se_UpdatePatchBaselineCommand = se_UpdatePatchBaselineCommand;
1376
968
  const se_UpdateResourceDataSyncCommand = async (input, context) => {
1377
- const headers = {
1378
- "content-type": "application/x-amz-json-1.1",
1379
- "x-amz-target": "AmazonSSM.UpdateResourceDataSync",
1380
- };
969
+ const headers = sharedHeaders("UpdateResourceDataSync");
1381
970
  let body;
1382
971
  body = JSON.stringify(se_UpdateResourceDataSyncRequest(input, context));
1383
972
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1384
973
  };
1385
974
  exports.se_UpdateResourceDataSyncCommand = se_UpdateResourceDataSyncCommand;
1386
975
  const se_UpdateServiceSettingCommand = async (input, context) => {
1387
- const headers = {
1388
- "content-type": "application/x-amz-json-1.1",
1389
- "x-amz-target": "AmazonSSM.UpdateServiceSetting",
1390
- };
976
+ const headers = sharedHeaders("UpdateServiceSetting");
1391
977
  let body;
1392
978
  body = JSON.stringify(se_UpdateServiceSettingRequest(input, context));
1393
979
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
@@ -15196,6 +14782,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
15196
14782
  }
15197
14783
  return new protocol_http_1.HttpRequest(contents);
15198
14784
  };
14785
+ function sharedHeaders(operation) {
14786
+ return {
14787
+ "content-type": "application/x-amz-json-1.1",
14788
+ "x-amz-target": `AmazonSSM.${operation}`,
14789
+ };
14790
+ }
15199
14791
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
15200
14792
  if (encoded.length) {
15201
14793
  return JSON.parse(encoded);