@cdklabs/cdk-ecs-codedeploy 0.0.125 → 0.0.127

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.
@@ -7,470 +7,329 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const CodeDeployServiceException_1 = require("../models/CodeDeployServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
9
  const se_AddTagsToOnPremisesInstancesCommand = async (input, context) => {
10
- const headers = {
11
- "content-type": "application/x-amz-json-1.1",
12
- "x-amz-target": "CodeDeploy_20141006.AddTagsToOnPremisesInstances",
13
- };
10
+ const headers = sharedHeaders("AddTagsToOnPremisesInstances");
14
11
  let body;
15
12
  body = JSON.stringify(se_AddTagsToOnPremisesInstancesInput(input, context));
16
13
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
14
  };
18
15
  exports.se_AddTagsToOnPremisesInstancesCommand = se_AddTagsToOnPremisesInstancesCommand;
19
16
  const se_BatchGetApplicationRevisionsCommand = async (input, context) => {
20
- const headers = {
21
- "content-type": "application/x-amz-json-1.1",
22
- "x-amz-target": "CodeDeploy_20141006.BatchGetApplicationRevisions",
23
- };
17
+ const headers = sharedHeaders("BatchGetApplicationRevisions");
24
18
  let body;
25
19
  body = JSON.stringify(se_BatchGetApplicationRevisionsInput(input, context));
26
20
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
27
21
  };
28
22
  exports.se_BatchGetApplicationRevisionsCommand = se_BatchGetApplicationRevisionsCommand;
29
23
  const se_BatchGetApplicationsCommand = async (input, context) => {
30
- const headers = {
31
- "content-type": "application/x-amz-json-1.1",
32
- "x-amz-target": "CodeDeploy_20141006.BatchGetApplications",
33
- };
24
+ const headers = sharedHeaders("BatchGetApplications");
34
25
  let body;
35
26
  body = JSON.stringify(se_BatchGetApplicationsInput(input, context));
36
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
37
28
  };
38
29
  exports.se_BatchGetApplicationsCommand = se_BatchGetApplicationsCommand;
39
30
  const se_BatchGetDeploymentGroupsCommand = async (input, context) => {
40
- const headers = {
41
- "content-type": "application/x-amz-json-1.1",
42
- "x-amz-target": "CodeDeploy_20141006.BatchGetDeploymentGroups",
43
- };
31
+ const headers = sharedHeaders("BatchGetDeploymentGroups");
44
32
  let body;
45
33
  body = JSON.stringify(se_BatchGetDeploymentGroupsInput(input, context));
46
34
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
47
35
  };
48
36
  exports.se_BatchGetDeploymentGroupsCommand = se_BatchGetDeploymentGroupsCommand;
49
37
  const se_BatchGetDeploymentInstancesCommand = async (input, context) => {
50
- const headers = {
51
- "content-type": "application/x-amz-json-1.1",
52
- "x-amz-target": "CodeDeploy_20141006.BatchGetDeploymentInstances",
53
- };
38
+ const headers = sharedHeaders("BatchGetDeploymentInstances");
54
39
  let body;
55
40
  body = JSON.stringify(se_BatchGetDeploymentInstancesInput(input, context));
56
41
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
57
42
  };
58
43
  exports.se_BatchGetDeploymentInstancesCommand = se_BatchGetDeploymentInstancesCommand;
59
44
  const se_BatchGetDeploymentsCommand = async (input, context) => {
60
- const headers = {
61
- "content-type": "application/x-amz-json-1.1",
62
- "x-amz-target": "CodeDeploy_20141006.BatchGetDeployments",
63
- };
45
+ const headers = sharedHeaders("BatchGetDeployments");
64
46
  let body;
65
47
  body = JSON.stringify(se_BatchGetDeploymentsInput(input, context));
66
48
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
67
49
  };
68
50
  exports.se_BatchGetDeploymentsCommand = se_BatchGetDeploymentsCommand;
69
51
  const se_BatchGetDeploymentTargetsCommand = async (input, context) => {
70
- const headers = {
71
- "content-type": "application/x-amz-json-1.1",
72
- "x-amz-target": "CodeDeploy_20141006.BatchGetDeploymentTargets",
73
- };
52
+ const headers = sharedHeaders("BatchGetDeploymentTargets");
74
53
  let body;
75
54
  body = JSON.stringify(se_BatchGetDeploymentTargetsInput(input, context));
76
55
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
56
  };
78
57
  exports.se_BatchGetDeploymentTargetsCommand = se_BatchGetDeploymentTargetsCommand;
79
58
  const se_BatchGetOnPremisesInstancesCommand = async (input, context) => {
80
- const headers = {
81
- "content-type": "application/x-amz-json-1.1",
82
- "x-amz-target": "CodeDeploy_20141006.BatchGetOnPremisesInstances",
83
- };
59
+ const headers = sharedHeaders("BatchGetOnPremisesInstances");
84
60
  let body;
85
61
  body = JSON.stringify(se_BatchGetOnPremisesInstancesInput(input, context));
86
62
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
87
63
  };
88
64
  exports.se_BatchGetOnPremisesInstancesCommand = se_BatchGetOnPremisesInstancesCommand;
89
65
  const se_ContinueDeploymentCommand = async (input, context) => {
90
- const headers = {
91
- "content-type": "application/x-amz-json-1.1",
92
- "x-amz-target": "CodeDeploy_20141006.ContinueDeployment",
93
- };
66
+ const headers = sharedHeaders("ContinueDeployment");
94
67
  let body;
95
68
  body = JSON.stringify(se_ContinueDeploymentInput(input, context));
96
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
97
70
  };
98
71
  exports.se_ContinueDeploymentCommand = se_ContinueDeploymentCommand;
99
72
  const se_CreateApplicationCommand = async (input, context) => {
100
- const headers = {
101
- "content-type": "application/x-amz-json-1.1",
102
- "x-amz-target": "CodeDeploy_20141006.CreateApplication",
103
- };
73
+ const headers = sharedHeaders("CreateApplication");
104
74
  let body;
105
75
  body = JSON.stringify(se_CreateApplicationInput(input, context));
106
76
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
107
77
  };
108
78
  exports.se_CreateApplicationCommand = se_CreateApplicationCommand;
109
79
  const se_CreateDeploymentCommand = async (input, context) => {
110
- const headers = {
111
- "content-type": "application/x-amz-json-1.1",
112
- "x-amz-target": "CodeDeploy_20141006.CreateDeployment",
113
- };
80
+ const headers = sharedHeaders("CreateDeployment");
114
81
  let body;
115
82
  body = JSON.stringify(se_CreateDeploymentInput(input, context));
116
83
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
117
84
  };
118
85
  exports.se_CreateDeploymentCommand = se_CreateDeploymentCommand;
119
86
  const se_CreateDeploymentConfigCommand = async (input, context) => {
120
- const headers = {
121
- "content-type": "application/x-amz-json-1.1",
122
- "x-amz-target": "CodeDeploy_20141006.CreateDeploymentConfig",
123
- };
87
+ const headers = sharedHeaders("CreateDeploymentConfig");
124
88
  let body;
125
89
  body = JSON.stringify(se_CreateDeploymentConfigInput(input, context));
126
90
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
127
91
  };
128
92
  exports.se_CreateDeploymentConfigCommand = se_CreateDeploymentConfigCommand;
129
93
  const se_CreateDeploymentGroupCommand = async (input, context) => {
130
- const headers = {
131
- "content-type": "application/x-amz-json-1.1",
132
- "x-amz-target": "CodeDeploy_20141006.CreateDeploymentGroup",
133
- };
94
+ const headers = sharedHeaders("CreateDeploymentGroup");
134
95
  let body;
135
96
  body = JSON.stringify(se_CreateDeploymentGroupInput(input, context));
136
97
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
137
98
  };
138
99
  exports.se_CreateDeploymentGroupCommand = se_CreateDeploymentGroupCommand;
139
100
  const se_DeleteApplicationCommand = async (input, context) => {
140
- const headers = {
141
- "content-type": "application/x-amz-json-1.1",
142
- "x-amz-target": "CodeDeploy_20141006.DeleteApplication",
143
- };
101
+ const headers = sharedHeaders("DeleteApplication");
144
102
  let body;
145
103
  body = JSON.stringify(se_DeleteApplicationInput(input, context));
146
104
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
147
105
  };
148
106
  exports.se_DeleteApplicationCommand = se_DeleteApplicationCommand;
149
107
  const se_DeleteDeploymentConfigCommand = async (input, context) => {
150
- const headers = {
151
- "content-type": "application/x-amz-json-1.1",
152
- "x-amz-target": "CodeDeploy_20141006.DeleteDeploymentConfig",
153
- };
108
+ const headers = sharedHeaders("DeleteDeploymentConfig");
154
109
  let body;
155
110
  body = JSON.stringify(se_DeleteDeploymentConfigInput(input, context));
156
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
157
112
  };
158
113
  exports.se_DeleteDeploymentConfigCommand = se_DeleteDeploymentConfigCommand;
159
114
  const se_DeleteDeploymentGroupCommand = async (input, context) => {
160
- const headers = {
161
- "content-type": "application/x-amz-json-1.1",
162
- "x-amz-target": "CodeDeploy_20141006.DeleteDeploymentGroup",
163
- };
115
+ const headers = sharedHeaders("DeleteDeploymentGroup");
164
116
  let body;
165
117
  body = JSON.stringify(se_DeleteDeploymentGroupInput(input, context));
166
118
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
167
119
  };
168
120
  exports.se_DeleteDeploymentGroupCommand = se_DeleteDeploymentGroupCommand;
169
121
  const se_DeleteGitHubAccountTokenCommand = async (input, context) => {
170
- const headers = {
171
- "content-type": "application/x-amz-json-1.1",
172
- "x-amz-target": "CodeDeploy_20141006.DeleteGitHubAccountToken",
173
- };
122
+ const headers = sharedHeaders("DeleteGitHubAccountToken");
174
123
  let body;
175
124
  body = JSON.stringify(se_DeleteGitHubAccountTokenInput(input, context));
176
125
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
177
126
  };
178
127
  exports.se_DeleteGitHubAccountTokenCommand = se_DeleteGitHubAccountTokenCommand;
179
128
  const se_DeleteResourcesByExternalIdCommand = async (input, context) => {
180
- const headers = {
181
- "content-type": "application/x-amz-json-1.1",
182
- "x-amz-target": "CodeDeploy_20141006.DeleteResourcesByExternalId",
183
- };
129
+ const headers = sharedHeaders("DeleteResourcesByExternalId");
184
130
  let body;
185
131
  body = JSON.stringify(se_DeleteResourcesByExternalIdInput(input, context));
186
132
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
187
133
  };
188
134
  exports.se_DeleteResourcesByExternalIdCommand = se_DeleteResourcesByExternalIdCommand;
189
135
  const se_DeregisterOnPremisesInstanceCommand = async (input, context) => {
190
- const headers = {
191
- "content-type": "application/x-amz-json-1.1",
192
- "x-amz-target": "CodeDeploy_20141006.DeregisterOnPremisesInstance",
193
- };
136
+ const headers = sharedHeaders("DeregisterOnPremisesInstance");
194
137
  let body;
195
138
  body = JSON.stringify(se_DeregisterOnPremisesInstanceInput(input, context));
196
139
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
140
  };
198
141
  exports.se_DeregisterOnPremisesInstanceCommand = se_DeregisterOnPremisesInstanceCommand;
199
142
  const se_GetApplicationCommand = async (input, context) => {
200
- const headers = {
201
- "content-type": "application/x-amz-json-1.1",
202
- "x-amz-target": "CodeDeploy_20141006.GetApplication",
203
- };
143
+ const headers = sharedHeaders("GetApplication");
204
144
  let body;
205
145
  body = JSON.stringify(se_GetApplicationInput(input, context));
206
146
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
207
147
  };
208
148
  exports.se_GetApplicationCommand = se_GetApplicationCommand;
209
149
  const se_GetApplicationRevisionCommand = async (input, context) => {
210
- const headers = {
211
- "content-type": "application/x-amz-json-1.1",
212
- "x-amz-target": "CodeDeploy_20141006.GetApplicationRevision",
213
- };
150
+ const headers = sharedHeaders("GetApplicationRevision");
214
151
  let body;
215
152
  body = JSON.stringify(se_GetApplicationRevisionInput(input, context));
216
153
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
217
154
  };
218
155
  exports.se_GetApplicationRevisionCommand = se_GetApplicationRevisionCommand;
219
156
  const se_GetDeploymentCommand = async (input, context) => {
220
- const headers = {
221
- "content-type": "application/x-amz-json-1.1",
222
- "x-amz-target": "CodeDeploy_20141006.GetDeployment",
223
- };
157
+ const headers = sharedHeaders("GetDeployment");
224
158
  let body;
225
159
  body = JSON.stringify(se_GetDeploymentInput(input, context));
226
160
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
227
161
  };
228
162
  exports.se_GetDeploymentCommand = se_GetDeploymentCommand;
229
163
  const se_GetDeploymentConfigCommand = async (input, context) => {
230
- const headers = {
231
- "content-type": "application/x-amz-json-1.1",
232
- "x-amz-target": "CodeDeploy_20141006.GetDeploymentConfig",
233
- };
164
+ const headers = sharedHeaders("GetDeploymentConfig");
234
165
  let body;
235
166
  body = JSON.stringify(se_GetDeploymentConfigInput(input, context));
236
167
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
237
168
  };
238
169
  exports.se_GetDeploymentConfigCommand = se_GetDeploymentConfigCommand;
239
170
  const se_GetDeploymentGroupCommand = async (input, context) => {
240
- const headers = {
241
- "content-type": "application/x-amz-json-1.1",
242
- "x-amz-target": "CodeDeploy_20141006.GetDeploymentGroup",
243
- };
171
+ const headers = sharedHeaders("GetDeploymentGroup");
244
172
  let body;
245
173
  body = JSON.stringify(se_GetDeploymentGroupInput(input, context));
246
174
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
247
175
  };
248
176
  exports.se_GetDeploymentGroupCommand = se_GetDeploymentGroupCommand;
249
177
  const se_GetDeploymentInstanceCommand = async (input, context) => {
250
- const headers = {
251
- "content-type": "application/x-amz-json-1.1",
252
- "x-amz-target": "CodeDeploy_20141006.GetDeploymentInstance",
253
- };
178
+ const headers = sharedHeaders("GetDeploymentInstance");
254
179
  let body;
255
180
  body = JSON.stringify(se_GetDeploymentInstanceInput(input, context));
256
181
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
257
182
  };
258
183
  exports.se_GetDeploymentInstanceCommand = se_GetDeploymentInstanceCommand;
259
184
  const se_GetDeploymentTargetCommand = async (input, context) => {
260
- const headers = {
261
- "content-type": "application/x-amz-json-1.1",
262
- "x-amz-target": "CodeDeploy_20141006.GetDeploymentTarget",
263
- };
185
+ const headers = sharedHeaders("GetDeploymentTarget");
264
186
  let body;
265
187
  body = JSON.stringify(se_GetDeploymentTargetInput(input, context));
266
188
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
267
189
  };
268
190
  exports.se_GetDeploymentTargetCommand = se_GetDeploymentTargetCommand;
269
191
  const se_GetOnPremisesInstanceCommand = async (input, context) => {
270
- const headers = {
271
- "content-type": "application/x-amz-json-1.1",
272
- "x-amz-target": "CodeDeploy_20141006.GetOnPremisesInstance",
273
- };
192
+ const headers = sharedHeaders("GetOnPremisesInstance");
274
193
  let body;
275
194
  body = JSON.stringify(se_GetOnPremisesInstanceInput(input, context));
276
195
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
277
196
  };
278
197
  exports.se_GetOnPremisesInstanceCommand = se_GetOnPremisesInstanceCommand;
279
198
  const se_ListApplicationRevisionsCommand = async (input, context) => {
280
- const headers = {
281
- "content-type": "application/x-amz-json-1.1",
282
- "x-amz-target": "CodeDeploy_20141006.ListApplicationRevisions",
283
- };
199
+ const headers = sharedHeaders("ListApplicationRevisions");
284
200
  let body;
285
201
  body = JSON.stringify(se_ListApplicationRevisionsInput(input, context));
286
202
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
287
203
  };
288
204
  exports.se_ListApplicationRevisionsCommand = se_ListApplicationRevisionsCommand;
289
205
  const se_ListApplicationsCommand = async (input, context) => {
290
- const headers = {
291
- "content-type": "application/x-amz-json-1.1",
292
- "x-amz-target": "CodeDeploy_20141006.ListApplications",
293
- };
206
+ const headers = sharedHeaders("ListApplications");
294
207
  let body;
295
208
  body = JSON.stringify(se_ListApplicationsInput(input, context));
296
209
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
297
210
  };
298
211
  exports.se_ListApplicationsCommand = se_ListApplicationsCommand;
299
212
  const se_ListDeploymentConfigsCommand = async (input, context) => {
300
- const headers = {
301
- "content-type": "application/x-amz-json-1.1",
302
- "x-amz-target": "CodeDeploy_20141006.ListDeploymentConfigs",
303
- };
213
+ const headers = sharedHeaders("ListDeploymentConfigs");
304
214
  let body;
305
215
  body = JSON.stringify(se_ListDeploymentConfigsInput(input, context));
306
216
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
307
217
  };
308
218
  exports.se_ListDeploymentConfigsCommand = se_ListDeploymentConfigsCommand;
309
219
  const se_ListDeploymentGroupsCommand = async (input, context) => {
310
- const headers = {
311
- "content-type": "application/x-amz-json-1.1",
312
- "x-amz-target": "CodeDeploy_20141006.ListDeploymentGroups",
313
- };
220
+ const headers = sharedHeaders("ListDeploymentGroups");
314
221
  let body;
315
222
  body = JSON.stringify(se_ListDeploymentGroupsInput(input, context));
316
223
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
317
224
  };
318
225
  exports.se_ListDeploymentGroupsCommand = se_ListDeploymentGroupsCommand;
319
226
  const se_ListDeploymentInstancesCommand = async (input, context) => {
320
- const headers = {
321
- "content-type": "application/x-amz-json-1.1",
322
- "x-amz-target": "CodeDeploy_20141006.ListDeploymentInstances",
323
- };
227
+ const headers = sharedHeaders("ListDeploymentInstances");
324
228
  let body;
325
229
  body = JSON.stringify(se_ListDeploymentInstancesInput(input, context));
326
230
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
327
231
  };
328
232
  exports.se_ListDeploymentInstancesCommand = se_ListDeploymentInstancesCommand;
329
233
  const se_ListDeploymentsCommand = async (input, context) => {
330
- const headers = {
331
- "content-type": "application/x-amz-json-1.1",
332
- "x-amz-target": "CodeDeploy_20141006.ListDeployments",
333
- };
234
+ const headers = sharedHeaders("ListDeployments");
334
235
  let body;
335
236
  body = JSON.stringify(se_ListDeploymentsInput(input, context));
336
237
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
337
238
  };
338
239
  exports.se_ListDeploymentsCommand = se_ListDeploymentsCommand;
339
240
  const se_ListDeploymentTargetsCommand = async (input, context) => {
340
- const headers = {
341
- "content-type": "application/x-amz-json-1.1",
342
- "x-amz-target": "CodeDeploy_20141006.ListDeploymentTargets",
343
- };
241
+ const headers = sharedHeaders("ListDeploymentTargets");
344
242
  let body;
345
243
  body = JSON.stringify(se_ListDeploymentTargetsInput(input, context));
346
244
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
347
245
  };
348
246
  exports.se_ListDeploymentTargetsCommand = se_ListDeploymentTargetsCommand;
349
247
  const se_ListGitHubAccountTokenNamesCommand = async (input, context) => {
350
- const headers = {
351
- "content-type": "application/x-amz-json-1.1",
352
- "x-amz-target": "CodeDeploy_20141006.ListGitHubAccountTokenNames",
353
- };
248
+ const headers = sharedHeaders("ListGitHubAccountTokenNames");
354
249
  let body;
355
250
  body = JSON.stringify(se_ListGitHubAccountTokenNamesInput(input, context));
356
251
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
357
252
  };
358
253
  exports.se_ListGitHubAccountTokenNamesCommand = se_ListGitHubAccountTokenNamesCommand;
359
254
  const se_ListOnPremisesInstancesCommand = async (input, context) => {
360
- const headers = {
361
- "content-type": "application/x-amz-json-1.1",
362
- "x-amz-target": "CodeDeploy_20141006.ListOnPremisesInstances",
363
- };
255
+ const headers = sharedHeaders("ListOnPremisesInstances");
364
256
  let body;
365
257
  body = JSON.stringify(se_ListOnPremisesInstancesInput(input, context));
366
258
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
367
259
  };
368
260
  exports.se_ListOnPremisesInstancesCommand = se_ListOnPremisesInstancesCommand;
369
261
  const se_ListTagsForResourceCommand = async (input, context) => {
370
- const headers = {
371
- "content-type": "application/x-amz-json-1.1",
372
- "x-amz-target": "CodeDeploy_20141006.ListTagsForResource",
373
- };
262
+ const headers = sharedHeaders("ListTagsForResource");
374
263
  let body;
375
264
  body = JSON.stringify(se_ListTagsForResourceInput(input, context));
376
265
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
377
266
  };
378
267
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
379
268
  const se_PutLifecycleEventHookExecutionStatusCommand = async (input, context) => {
380
- const headers = {
381
- "content-type": "application/x-amz-json-1.1",
382
- "x-amz-target": "CodeDeploy_20141006.PutLifecycleEventHookExecutionStatus",
383
- };
269
+ const headers = sharedHeaders("PutLifecycleEventHookExecutionStatus");
384
270
  let body;
385
271
  body = JSON.stringify(se_PutLifecycleEventHookExecutionStatusInput(input, context));
386
272
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
387
273
  };
388
274
  exports.se_PutLifecycleEventHookExecutionStatusCommand = se_PutLifecycleEventHookExecutionStatusCommand;
389
275
  const se_RegisterApplicationRevisionCommand = async (input, context) => {
390
- const headers = {
391
- "content-type": "application/x-amz-json-1.1",
392
- "x-amz-target": "CodeDeploy_20141006.RegisterApplicationRevision",
393
- };
276
+ const headers = sharedHeaders("RegisterApplicationRevision");
394
277
  let body;
395
278
  body = JSON.stringify(se_RegisterApplicationRevisionInput(input, context));
396
279
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
397
280
  };
398
281
  exports.se_RegisterApplicationRevisionCommand = se_RegisterApplicationRevisionCommand;
399
282
  const se_RegisterOnPremisesInstanceCommand = async (input, context) => {
400
- const headers = {
401
- "content-type": "application/x-amz-json-1.1",
402
- "x-amz-target": "CodeDeploy_20141006.RegisterOnPremisesInstance",
403
- };
283
+ const headers = sharedHeaders("RegisterOnPremisesInstance");
404
284
  let body;
405
285
  body = JSON.stringify(se_RegisterOnPremisesInstanceInput(input, context));
406
286
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
407
287
  };
408
288
  exports.se_RegisterOnPremisesInstanceCommand = se_RegisterOnPremisesInstanceCommand;
409
289
  const se_RemoveTagsFromOnPremisesInstancesCommand = async (input, context) => {
410
- const headers = {
411
- "content-type": "application/x-amz-json-1.1",
412
- "x-amz-target": "CodeDeploy_20141006.RemoveTagsFromOnPremisesInstances",
413
- };
290
+ const headers = sharedHeaders("RemoveTagsFromOnPremisesInstances");
414
291
  let body;
415
292
  body = JSON.stringify(se_RemoveTagsFromOnPremisesInstancesInput(input, context));
416
293
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
417
294
  };
418
295
  exports.se_RemoveTagsFromOnPremisesInstancesCommand = se_RemoveTagsFromOnPremisesInstancesCommand;
419
296
  const se_SkipWaitTimeForInstanceTerminationCommand = async (input, context) => {
420
- const headers = {
421
- "content-type": "application/x-amz-json-1.1",
422
- "x-amz-target": "CodeDeploy_20141006.SkipWaitTimeForInstanceTermination",
423
- };
297
+ const headers = sharedHeaders("SkipWaitTimeForInstanceTermination");
424
298
  let body;
425
299
  body = JSON.stringify(se_SkipWaitTimeForInstanceTerminationInput(input, context));
426
300
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
427
301
  };
428
302
  exports.se_SkipWaitTimeForInstanceTerminationCommand = se_SkipWaitTimeForInstanceTerminationCommand;
429
303
  const se_StopDeploymentCommand = async (input, context) => {
430
- const headers = {
431
- "content-type": "application/x-amz-json-1.1",
432
- "x-amz-target": "CodeDeploy_20141006.StopDeployment",
433
- };
304
+ const headers = sharedHeaders("StopDeployment");
434
305
  let body;
435
306
  body = JSON.stringify(se_StopDeploymentInput(input, context));
436
307
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
437
308
  };
438
309
  exports.se_StopDeploymentCommand = se_StopDeploymentCommand;
439
310
  const se_TagResourceCommand = async (input, context) => {
440
- const headers = {
441
- "content-type": "application/x-amz-json-1.1",
442
- "x-amz-target": "CodeDeploy_20141006.TagResource",
443
- };
311
+ const headers = sharedHeaders("TagResource");
444
312
  let body;
445
313
  body = JSON.stringify(se_TagResourceInput(input, context));
446
314
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
447
315
  };
448
316
  exports.se_TagResourceCommand = se_TagResourceCommand;
449
317
  const se_UntagResourceCommand = async (input, context) => {
450
- const headers = {
451
- "content-type": "application/x-amz-json-1.1",
452
- "x-amz-target": "CodeDeploy_20141006.UntagResource",
453
- };
318
+ const headers = sharedHeaders("UntagResource");
454
319
  let body;
455
320
  body = JSON.stringify(se_UntagResourceInput(input, context));
456
321
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
457
322
  };
458
323
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
459
324
  const se_UpdateApplicationCommand = async (input, context) => {
460
- const headers = {
461
- "content-type": "application/x-amz-json-1.1",
462
- "x-amz-target": "CodeDeploy_20141006.UpdateApplication",
463
- };
325
+ const headers = sharedHeaders("UpdateApplication");
464
326
  let body;
465
327
  body = JSON.stringify(se_UpdateApplicationInput(input, context));
466
328
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
467
329
  };
468
330
  exports.se_UpdateApplicationCommand = se_UpdateApplicationCommand;
469
331
  const se_UpdateDeploymentGroupCommand = async (input, context) => {
470
- const headers = {
471
- "content-type": "application/x-amz-json-1.1",
472
- "x-amz-target": "CodeDeploy_20141006.UpdateDeploymentGroup",
473
- };
332
+ const headers = sharedHeaders("UpdateDeploymentGroup");
474
333
  let body;
475
334
  body = JSON.stringify(se_UpdateDeploymentGroupInput(input, context));
476
335
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
@@ -6310,6 +6169,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
6310
6169
  }
6311
6170
  return new protocol_http_1.HttpRequest(contents);
6312
6171
  };
6172
+ function sharedHeaders(operation) {
6173
+ return {
6174
+ "content-type": "application/x-amz-json-1.1",
6175
+ "x-amz-target": `CodeDeploy_20141006.${operation}`,
6176
+ };
6177
+ }
6313
6178
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
6314
6179
  if (encoded.length) {
6315
6180
  return JSON.parse(encoded);