@cdklabs/cdk-ecs-codedeploy 0.0.124 → 0.0.126

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.
@@ -3,424 +3,283 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
3
3
  import { CodeDeployServiceException as __BaseException } from "../models/CodeDeployServiceException";
4
4
  import { AlarmsLimitExceededException, ApplicationAlreadyExistsException, ApplicationDoesNotExistException, ApplicationLimitExceededException, ApplicationNameRequiredException, ArnNotSupportedException, BatchLimitExceededException, BucketNameFilterRequiredException, DeploymentAlreadyCompletedException, DeploymentConfigAlreadyExistsException, DeploymentConfigDoesNotExistException, DeploymentConfigInUseException, DeploymentConfigLimitExceededException, DeploymentConfigNameRequiredException, DeploymentDoesNotExistException, DeploymentGroupAlreadyExistsException, DeploymentGroupDoesNotExistException, DeploymentGroupLimitExceededException, DeploymentGroupNameRequiredException, DeploymentIdRequiredException, DeploymentIsNotInReadyStateException, DeploymentLimitExceededException, DeploymentNotStartedException, DeploymentTargetDoesNotExistException, DeploymentTargetIdRequiredException, DeploymentTargetListSizeExceededException, DescriptionTooLongException, ECSServiceMappingLimitExceededException, GitHubAccountTokenDoesNotExistException, GitHubAccountTokenNameRequiredException, IamArnRequiredException, IamSessionArnAlreadyRegisteredException, IamUserArnAlreadyRegisteredException, IamUserArnRequiredException, InstanceDoesNotExistException, InstanceIdRequiredException, InstanceLimitExceededException, InstanceNameAlreadyRegisteredException, InstanceNameRequiredException, InstanceNotRegisteredException, InvalidAlarmConfigException, InvalidApplicationNameException, InvalidArnException, InvalidAutoRollbackConfigException, InvalidAutoScalingGroupException, InvalidBlueGreenDeploymentConfigurationException, InvalidBucketNameFilterException, InvalidComputePlatformException, InvalidDeployedStateFilterException, InvalidDeploymentConfigNameException, InvalidDeploymentGroupNameException, InvalidDeploymentIdException, InvalidDeploymentInstanceTypeException, InvalidDeploymentStatusException, InvalidDeploymentStyleException, InvalidDeploymentTargetIdException, InvalidDeploymentWaitTypeException, InvalidEC2TagCombinationException, InvalidEC2TagException, InvalidECSServiceException, InvalidExternalIdException, InvalidFileExistsBehaviorException, InvalidGitHubAccountTokenException, InvalidGitHubAccountTokenNameException, InvalidIamSessionArnException, InvalidIamUserArnException, InvalidIgnoreApplicationStopFailuresValueException, InvalidInputException, InvalidInstanceNameException, InvalidInstanceStatusException, InvalidInstanceTypeException, InvalidKeyPrefixFilterException, InvalidLifecycleEventHookExecutionIdException, InvalidLifecycleEventHookExecutionStatusException, InvalidLoadBalancerInfoException, InvalidMinimumHealthyHostValueException, InvalidNextTokenException, InvalidOnPremisesTagCombinationException, InvalidOperationException, InvalidRegistrationStatusException, InvalidRevisionException, InvalidRoleException, InvalidSortByException, InvalidSortOrderException, InvalidTagException, InvalidTagFilterException, InvalidTagsToAddException, InvalidTargetFilterNameException, InvalidTargetGroupPairException, InvalidTargetInstancesException, InvalidTimeRangeException, InvalidTrafficRoutingConfigurationException, InvalidTriggerConfigException, InvalidUpdateOutdatedInstancesOnlyValueException, LifecycleEventAlreadyCompletedException, LifecycleHookLimitExceededException, MultipleIamArnsProvidedException, OperationNotSupportedException, ResourceArnRequiredException, ResourceValidationException, RevisionDoesNotExistException, RevisionRequiredException, RoleRequiredException, TagLimitExceededException, TagRequiredException, TagSetListLimitExceededException, ThrottlingException, TriggerTargetsLimitExceededException, UnsupportedActionForDeploymentTypeException, } from "../models/models_0";
5
5
  export const se_AddTagsToOnPremisesInstancesCommand = async (input, context) => {
6
- const headers = {
7
- "content-type": "application/x-amz-json-1.1",
8
- "x-amz-target": "CodeDeploy_20141006.AddTagsToOnPremisesInstances",
9
- };
6
+ const headers = sharedHeaders("AddTagsToOnPremisesInstances");
10
7
  let body;
11
8
  body = JSON.stringify(se_AddTagsToOnPremisesInstancesInput(input, context));
12
9
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
10
  };
14
11
  export const se_BatchGetApplicationRevisionsCommand = async (input, context) => {
15
- const headers = {
16
- "content-type": "application/x-amz-json-1.1",
17
- "x-amz-target": "CodeDeploy_20141006.BatchGetApplicationRevisions",
18
- };
12
+ const headers = sharedHeaders("BatchGetApplicationRevisions");
19
13
  let body;
20
14
  body = JSON.stringify(se_BatchGetApplicationRevisionsInput(input, context));
21
15
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
16
  };
23
17
  export const se_BatchGetApplicationsCommand = async (input, context) => {
24
- const headers = {
25
- "content-type": "application/x-amz-json-1.1",
26
- "x-amz-target": "CodeDeploy_20141006.BatchGetApplications",
27
- };
18
+ const headers = sharedHeaders("BatchGetApplications");
28
19
  let body;
29
20
  body = JSON.stringify(se_BatchGetApplicationsInput(input, context));
30
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
31
22
  };
32
23
  export const se_BatchGetDeploymentGroupsCommand = async (input, context) => {
33
- const headers = {
34
- "content-type": "application/x-amz-json-1.1",
35
- "x-amz-target": "CodeDeploy_20141006.BatchGetDeploymentGroups",
36
- };
24
+ const headers = sharedHeaders("BatchGetDeploymentGroups");
37
25
  let body;
38
26
  body = JSON.stringify(se_BatchGetDeploymentGroupsInput(input, context));
39
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
28
  };
41
29
  export const se_BatchGetDeploymentInstancesCommand = async (input, context) => {
42
- const headers = {
43
- "content-type": "application/x-amz-json-1.1",
44
- "x-amz-target": "CodeDeploy_20141006.BatchGetDeploymentInstances",
45
- };
30
+ const headers = sharedHeaders("BatchGetDeploymentInstances");
46
31
  let body;
47
32
  body = JSON.stringify(se_BatchGetDeploymentInstancesInput(input, context));
48
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
49
34
  };
50
35
  export const se_BatchGetDeploymentsCommand = async (input, context) => {
51
- const headers = {
52
- "content-type": "application/x-amz-json-1.1",
53
- "x-amz-target": "CodeDeploy_20141006.BatchGetDeployments",
54
- };
36
+ const headers = sharedHeaders("BatchGetDeployments");
55
37
  let body;
56
38
  body = JSON.stringify(se_BatchGetDeploymentsInput(input, context));
57
39
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
40
  };
59
41
  export const se_BatchGetDeploymentTargetsCommand = async (input, context) => {
60
- const headers = {
61
- "content-type": "application/x-amz-json-1.1",
62
- "x-amz-target": "CodeDeploy_20141006.BatchGetDeploymentTargets",
63
- };
42
+ const headers = sharedHeaders("BatchGetDeploymentTargets");
64
43
  let body;
65
44
  body = JSON.stringify(se_BatchGetDeploymentTargetsInput(input, context));
66
45
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
67
46
  };
68
47
  export const se_BatchGetOnPremisesInstancesCommand = async (input, context) => {
69
- const headers = {
70
- "content-type": "application/x-amz-json-1.1",
71
- "x-amz-target": "CodeDeploy_20141006.BatchGetOnPremisesInstances",
72
- };
48
+ const headers = sharedHeaders("BatchGetOnPremisesInstances");
73
49
  let body;
74
50
  body = JSON.stringify(se_BatchGetOnPremisesInstancesInput(input, context));
75
51
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
52
  };
77
53
  export const se_ContinueDeploymentCommand = async (input, context) => {
78
- const headers = {
79
- "content-type": "application/x-amz-json-1.1",
80
- "x-amz-target": "CodeDeploy_20141006.ContinueDeployment",
81
- };
54
+ const headers = sharedHeaders("ContinueDeployment");
82
55
  let body;
83
56
  body = JSON.stringify(se_ContinueDeploymentInput(input, context));
84
57
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
58
  };
86
59
  export const se_CreateApplicationCommand = async (input, context) => {
87
- const headers = {
88
- "content-type": "application/x-amz-json-1.1",
89
- "x-amz-target": "CodeDeploy_20141006.CreateApplication",
90
- };
60
+ const headers = sharedHeaders("CreateApplication");
91
61
  let body;
92
62
  body = JSON.stringify(se_CreateApplicationInput(input, context));
93
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
94
64
  };
95
65
  export const se_CreateDeploymentCommand = async (input, context) => {
96
- const headers = {
97
- "content-type": "application/x-amz-json-1.1",
98
- "x-amz-target": "CodeDeploy_20141006.CreateDeployment",
99
- };
66
+ const headers = sharedHeaders("CreateDeployment");
100
67
  let body;
101
68
  body = JSON.stringify(se_CreateDeploymentInput(input, context));
102
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
103
70
  };
104
71
  export const se_CreateDeploymentConfigCommand = async (input, context) => {
105
- const headers = {
106
- "content-type": "application/x-amz-json-1.1",
107
- "x-amz-target": "CodeDeploy_20141006.CreateDeploymentConfig",
108
- };
72
+ const headers = sharedHeaders("CreateDeploymentConfig");
109
73
  let body;
110
74
  body = JSON.stringify(se_CreateDeploymentConfigInput(input, context));
111
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
76
  };
113
77
  export const se_CreateDeploymentGroupCommand = async (input, context) => {
114
- const headers = {
115
- "content-type": "application/x-amz-json-1.1",
116
- "x-amz-target": "CodeDeploy_20141006.CreateDeploymentGroup",
117
- };
78
+ const headers = sharedHeaders("CreateDeploymentGroup");
118
79
  let body;
119
80
  body = JSON.stringify(se_CreateDeploymentGroupInput(input, context));
120
81
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
121
82
  };
122
83
  export const se_DeleteApplicationCommand = async (input, context) => {
123
- const headers = {
124
- "content-type": "application/x-amz-json-1.1",
125
- "x-amz-target": "CodeDeploy_20141006.DeleteApplication",
126
- };
84
+ const headers = sharedHeaders("DeleteApplication");
127
85
  let body;
128
86
  body = JSON.stringify(se_DeleteApplicationInput(input, context));
129
87
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
130
88
  };
131
89
  export const se_DeleteDeploymentConfigCommand = async (input, context) => {
132
- const headers = {
133
- "content-type": "application/x-amz-json-1.1",
134
- "x-amz-target": "CodeDeploy_20141006.DeleteDeploymentConfig",
135
- };
90
+ const headers = sharedHeaders("DeleteDeploymentConfig");
136
91
  let body;
137
92
  body = JSON.stringify(se_DeleteDeploymentConfigInput(input, context));
138
93
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
139
94
  };
140
95
  export const se_DeleteDeploymentGroupCommand = async (input, context) => {
141
- const headers = {
142
- "content-type": "application/x-amz-json-1.1",
143
- "x-amz-target": "CodeDeploy_20141006.DeleteDeploymentGroup",
144
- };
96
+ const headers = sharedHeaders("DeleteDeploymentGroup");
145
97
  let body;
146
98
  body = JSON.stringify(se_DeleteDeploymentGroupInput(input, context));
147
99
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
100
  };
149
101
  export const se_DeleteGitHubAccountTokenCommand = async (input, context) => {
150
- const headers = {
151
- "content-type": "application/x-amz-json-1.1",
152
- "x-amz-target": "CodeDeploy_20141006.DeleteGitHubAccountToken",
153
- };
102
+ const headers = sharedHeaders("DeleteGitHubAccountToken");
154
103
  let body;
155
104
  body = JSON.stringify(se_DeleteGitHubAccountTokenInput(input, context));
156
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
157
106
  };
158
107
  export const se_DeleteResourcesByExternalIdCommand = async (input, context) => {
159
- const headers = {
160
- "content-type": "application/x-amz-json-1.1",
161
- "x-amz-target": "CodeDeploy_20141006.DeleteResourcesByExternalId",
162
- };
108
+ const headers = sharedHeaders("DeleteResourcesByExternalId");
163
109
  let body;
164
110
  body = JSON.stringify(se_DeleteResourcesByExternalIdInput(input, context));
165
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
166
112
  };
167
113
  export const se_DeregisterOnPremisesInstanceCommand = async (input, context) => {
168
- const headers = {
169
- "content-type": "application/x-amz-json-1.1",
170
- "x-amz-target": "CodeDeploy_20141006.DeregisterOnPremisesInstance",
171
- };
114
+ const headers = sharedHeaders("DeregisterOnPremisesInstance");
172
115
  let body;
173
116
  body = JSON.stringify(se_DeregisterOnPremisesInstanceInput(input, context));
174
117
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
175
118
  };
176
119
  export const se_GetApplicationCommand = async (input, context) => {
177
- const headers = {
178
- "content-type": "application/x-amz-json-1.1",
179
- "x-amz-target": "CodeDeploy_20141006.GetApplication",
180
- };
120
+ const headers = sharedHeaders("GetApplication");
181
121
  let body;
182
122
  body = JSON.stringify(se_GetApplicationInput(input, context));
183
123
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
184
124
  };
185
125
  export const se_GetApplicationRevisionCommand = async (input, context) => {
186
- const headers = {
187
- "content-type": "application/x-amz-json-1.1",
188
- "x-amz-target": "CodeDeploy_20141006.GetApplicationRevision",
189
- };
126
+ const headers = sharedHeaders("GetApplicationRevision");
190
127
  let body;
191
128
  body = JSON.stringify(se_GetApplicationRevisionInput(input, context));
192
129
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
193
130
  };
194
131
  export const se_GetDeploymentCommand = async (input, context) => {
195
- const headers = {
196
- "content-type": "application/x-amz-json-1.1",
197
- "x-amz-target": "CodeDeploy_20141006.GetDeployment",
198
- };
132
+ const headers = sharedHeaders("GetDeployment");
199
133
  let body;
200
134
  body = JSON.stringify(se_GetDeploymentInput(input, context));
201
135
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
202
136
  };
203
137
  export const se_GetDeploymentConfigCommand = async (input, context) => {
204
- const headers = {
205
- "content-type": "application/x-amz-json-1.1",
206
- "x-amz-target": "CodeDeploy_20141006.GetDeploymentConfig",
207
- };
138
+ const headers = sharedHeaders("GetDeploymentConfig");
208
139
  let body;
209
140
  body = JSON.stringify(se_GetDeploymentConfigInput(input, context));
210
141
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
211
142
  };
212
143
  export const se_GetDeploymentGroupCommand = async (input, context) => {
213
- const headers = {
214
- "content-type": "application/x-amz-json-1.1",
215
- "x-amz-target": "CodeDeploy_20141006.GetDeploymentGroup",
216
- };
144
+ const headers = sharedHeaders("GetDeploymentGroup");
217
145
  let body;
218
146
  body = JSON.stringify(se_GetDeploymentGroupInput(input, context));
219
147
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
220
148
  };
221
149
  export const se_GetDeploymentInstanceCommand = async (input, context) => {
222
- const headers = {
223
- "content-type": "application/x-amz-json-1.1",
224
- "x-amz-target": "CodeDeploy_20141006.GetDeploymentInstance",
225
- };
150
+ const headers = sharedHeaders("GetDeploymentInstance");
226
151
  let body;
227
152
  body = JSON.stringify(se_GetDeploymentInstanceInput(input, context));
228
153
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
229
154
  };
230
155
  export const se_GetDeploymentTargetCommand = async (input, context) => {
231
- const headers = {
232
- "content-type": "application/x-amz-json-1.1",
233
- "x-amz-target": "CodeDeploy_20141006.GetDeploymentTarget",
234
- };
156
+ const headers = sharedHeaders("GetDeploymentTarget");
235
157
  let body;
236
158
  body = JSON.stringify(se_GetDeploymentTargetInput(input, context));
237
159
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
238
160
  };
239
161
  export const se_GetOnPremisesInstanceCommand = async (input, context) => {
240
- const headers = {
241
- "content-type": "application/x-amz-json-1.1",
242
- "x-amz-target": "CodeDeploy_20141006.GetOnPremisesInstance",
243
- };
162
+ const headers = sharedHeaders("GetOnPremisesInstance");
244
163
  let body;
245
164
  body = JSON.stringify(se_GetOnPremisesInstanceInput(input, context));
246
165
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
247
166
  };
248
167
  export const se_ListApplicationRevisionsCommand = async (input, context) => {
249
- const headers = {
250
- "content-type": "application/x-amz-json-1.1",
251
- "x-amz-target": "CodeDeploy_20141006.ListApplicationRevisions",
252
- };
168
+ const headers = sharedHeaders("ListApplicationRevisions");
253
169
  let body;
254
170
  body = JSON.stringify(se_ListApplicationRevisionsInput(input, context));
255
171
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
256
172
  };
257
173
  export const se_ListApplicationsCommand = async (input, context) => {
258
- const headers = {
259
- "content-type": "application/x-amz-json-1.1",
260
- "x-amz-target": "CodeDeploy_20141006.ListApplications",
261
- };
174
+ const headers = sharedHeaders("ListApplications");
262
175
  let body;
263
176
  body = JSON.stringify(se_ListApplicationsInput(input, context));
264
177
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
265
178
  };
266
179
  export const se_ListDeploymentConfigsCommand = async (input, context) => {
267
- const headers = {
268
- "content-type": "application/x-amz-json-1.1",
269
- "x-amz-target": "CodeDeploy_20141006.ListDeploymentConfigs",
270
- };
180
+ const headers = sharedHeaders("ListDeploymentConfigs");
271
181
  let body;
272
182
  body = JSON.stringify(se_ListDeploymentConfigsInput(input, context));
273
183
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
274
184
  };
275
185
  export const se_ListDeploymentGroupsCommand = async (input, context) => {
276
- const headers = {
277
- "content-type": "application/x-amz-json-1.1",
278
- "x-amz-target": "CodeDeploy_20141006.ListDeploymentGroups",
279
- };
186
+ const headers = sharedHeaders("ListDeploymentGroups");
280
187
  let body;
281
188
  body = JSON.stringify(se_ListDeploymentGroupsInput(input, context));
282
189
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
283
190
  };
284
191
  export const se_ListDeploymentInstancesCommand = async (input, context) => {
285
- const headers = {
286
- "content-type": "application/x-amz-json-1.1",
287
- "x-amz-target": "CodeDeploy_20141006.ListDeploymentInstances",
288
- };
192
+ const headers = sharedHeaders("ListDeploymentInstances");
289
193
  let body;
290
194
  body = JSON.stringify(se_ListDeploymentInstancesInput(input, context));
291
195
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
292
196
  };
293
197
  export const se_ListDeploymentsCommand = async (input, context) => {
294
- const headers = {
295
- "content-type": "application/x-amz-json-1.1",
296
- "x-amz-target": "CodeDeploy_20141006.ListDeployments",
297
- };
198
+ const headers = sharedHeaders("ListDeployments");
298
199
  let body;
299
200
  body = JSON.stringify(se_ListDeploymentsInput(input, context));
300
201
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
301
202
  };
302
203
  export const se_ListDeploymentTargetsCommand = async (input, context) => {
303
- const headers = {
304
- "content-type": "application/x-amz-json-1.1",
305
- "x-amz-target": "CodeDeploy_20141006.ListDeploymentTargets",
306
- };
204
+ const headers = sharedHeaders("ListDeploymentTargets");
307
205
  let body;
308
206
  body = JSON.stringify(se_ListDeploymentTargetsInput(input, context));
309
207
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
310
208
  };
311
209
  export const se_ListGitHubAccountTokenNamesCommand = async (input, context) => {
312
- const headers = {
313
- "content-type": "application/x-amz-json-1.1",
314
- "x-amz-target": "CodeDeploy_20141006.ListGitHubAccountTokenNames",
315
- };
210
+ const headers = sharedHeaders("ListGitHubAccountTokenNames");
316
211
  let body;
317
212
  body = JSON.stringify(se_ListGitHubAccountTokenNamesInput(input, context));
318
213
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
319
214
  };
320
215
  export const se_ListOnPremisesInstancesCommand = async (input, context) => {
321
- const headers = {
322
- "content-type": "application/x-amz-json-1.1",
323
- "x-amz-target": "CodeDeploy_20141006.ListOnPremisesInstances",
324
- };
216
+ const headers = sharedHeaders("ListOnPremisesInstances");
325
217
  let body;
326
218
  body = JSON.stringify(se_ListOnPremisesInstancesInput(input, context));
327
219
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
328
220
  };
329
221
  export const se_ListTagsForResourceCommand = async (input, context) => {
330
- const headers = {
331
- "content-type": "application/x-amz-json-1.1",
332
- "x-amz-target": "CodeDeploy_20141006.ListTagsForResource",
333
- };
222
+ const headers = sharedHeaders("ListTagsForResource");
334
223
  let body;
335
224
  body = JSON.stringify(se_ListTagsForResourceInput(input, context));
336
225
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
337
226
  };
338
227
  export const se_PutLifecycleEventHookExecutionStatusCommand = async (input, context) => {
339
- const headers = {
340
- "content-type": "application/x-amz-json-1.1",
341
- "x-amz-target": "CodeDeploy_20141006.PutLifecycleEventHookExecutionStatus",
342
- };
228
+ const headers = sharedHeaders("PutLifecycleEventHookExecutionStatus");
343
229
  let body;
344
230
  body = JSON.stringify(se_PutLifecycleEventHookExecutionStatusInput(input, context));
345
231
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
346
232
  };
347
233
  export const se_RegisterApplicationRevisionCommand = async (input, context) => {
348
- const headers = {
349
- "content-type": "application/x-amz-json-1.1",
350
- "x-amz-target": "CodeDeploy_20141006.RegisterApplicationRevision",
351
- };
234
+ const headers = sharedHeaders("RegisterApplicationRevision");
352
235
  let body;
353
236
  body = JSON.stringify(se_RegisterApplicationRevisionInput(input, context));
354
237
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
355
238
  };
356
239
  export const se_RegisterOnPremisesInstanceCommand = async (input, context) => {
357
- const headers = {
358
- "content-type": "application/x-amz-json-1.1",
359
- "x-amz-target": "CodeDeploy_20141006.RegisterOnPremisesInstance",
360
- };
240
+ const headers = sharedHeaders("RegisterOnPremisesInstance");
361
241
  let body;
362
242
  body = JSON.stringify(se_RegisterOnPremisesInstanceInput(input, context));
363
243
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
364
244
  };
365
245
  export const se_RemoveTagsFromOnPremisesInstancesCommand = async (input, context) => {
366
- const headers = {
367
- "content-type": "application/x-amz-json-1.1",
368
- "x-amz-target": "CodeDeploy_20141006.RemoveTagsFromOnPremisesInstances",
369
- };
246
+ const headers = sharedHeaders("RemoveTagsFromOnPremisesInstances");
370
247
  let body;
371
248
  body = JSON.stringify(se_RemoveTagsFromOnPremisesInstancesInput(input, context));
372
249
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
373
250
  };
374
251
  export const se_SkipWaitTimeForInstanceTerminationCommand = async (input, context) => {
375
- const headers = {
376
- "content-type": "application/x-amz-json-1.1",
377
- "x-amz-target": "CodeDeploy_20141006.SkipWaitTimeForInstanceTermination",
378
- };
252
+ const headers = sharedHeaders("SkipWaitTimeForInstanceTermination");
379
253
  let body;
380
254
  body = JSON.stringify(se_SkipWaitTimeForInstanceTerminationInput(input, context));
381
255
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
382
256
  };
383
257
  export const se_StopDeploymentCommand = async (input, context) => {
384
- const headers = {
385
- "content-type": "application/x-amz-json-1.1",
386
- "x-amz-target": "CodeDeploy_20141006.StopDeployment",
387
- };
258
+ const headers = sharedHeaders("StopDeployment");
388
259
  let body;
389
260
  body = JSON.stringify(se_StopDeploymentInput(input, context));
390
261
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
391
262
  };
392
263
  export const se_TagResourceCommand = async (input, context) => {
393
- const headers = {
394
- "content-type": "application/x-amz-json-1.1",
395
- "x-amz-target": "CodeDeploy_20141006.TagResource",
396
- };
264
+ const headers = sharedHeaders("TagResource");
397
265
  let body;
398
266
  body = JSON.stringify(se_TagResourceInput(input, context));
399
267
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
400
268
  };
401
269
  export const se_UntagResourceCommand = async (input, context) => {
402
- const headers = {
403
- "content-type": "application/x-amz-json-1.1",
404
- "x-amz-target": "CodeDeploy_20141006.UntagResource",
405
- };
270
+ const headers = sharedHeaders("UntagResource");
406
271
  let body;
407
272
  body = JSON.stringify(se_UntagResourceInput(input, context));
408
273
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
409
274
  };
410
275
  export const se_UpdateApplicationCommand = async (input, context) => {
411
- const headers = {
412
- "content-type": "application/x-amz-json-1.1",
413
- "x-amz-target": "CodeDeploy_20141006.UpdateApplication",
414
- };
276
+ const headers = sharedHeaders("UpdateApplication");
415
277
  let body;
416
278
  body = JSON.stringify(se_UpdateApplicationInput(input, context));
417
279
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
418
280
  };
419
281
  export const se_UpdateDeploymentGroupCommand = async (input, context) => {
420
- const headers = {
421
- "content-type": "application/x-amz-json-1.1",
422
- "x-amz-target": "CodeDeploy_20141006.UpdateDeploymentGroup",
423
- };
282
+ const headers = sharedHeaders("UpdateDeploymentGroup");
424
283
  let body;
425
284
  body = JSON.stringify(se_UpdateDeploymentGroupInput(input, context));
426
285
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
@@ -6212,6 +6071,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
6212
6071
  }
6213
6072
  return new __HttpRequest(contents);
6214
6073
  };
6074
+ function sharedHeaders(operation) {
6075
+ return {
6076
+ "content-type": "application/x-amz-json-1.1",
6077
+ "x-amz-target": `CodeDeploy_20141006.${operation}`,
6078
+ };
6079
+ }
6215
6080
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
6216
6081
  if (encoded.length) {
6217
6082
  return JSON.parse(encoded);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codedeploy",
3
3
  "description": "AWS SDK for JavaScript Codedeploy Client for Node.js, Browser and React Native",
4
- "version": "3.310.0",
4
+ "version": "3.312.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.310.0",
24
+ "@aws-sdk/client-sts": "3.312.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
26
  "@aws-sdk/credential-provider-node": "3.310.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
@@ -7,9 +7,7 @@ const fast_xml_parser_1 = require("fast-xml-parser");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const STSServiceException_1 = require("../models/STSServiceException");
9
9
  const se_AssumeRoleCommand = async (input, context) => {
10
- const headers = {
11
- "content-type": "application/x-www-form-urlencoded",
12
- };
10
+ const headers = SHARED_HEADERS;
13
11
  let body;
14
12
  body = buildFormUrlencodedString({
15
13
  ...se_AssumeRoleRequest(input, context),
@@ -20,9 +18,7 @@ const se_AssumeRoleCommand = async (input, context) => {
20
18
  };
21
19
  exports.se_AssumeRoleCommand = se_AssumeRoleCommand;
22
20
  const se_AssumeRoleWithSAMLCommand = async (input, context) => {
23
- const headers = {
24
- "content-type": "application/x-www-form-urlencoded",
25
- };
21
+ const headers = SHARED_HEADERS;
26
22
  let body;
27
23
  body = buildFormUrlencodedString({
28
24
  ...se_AssumeRoleWithSAMLRequest(input, context),
@@ -33,9 +29,7 @@ const se_AssumeRoleWithSAMLCommand = async (input, context) => {
33
29
  };
34
30
  exports.se_AssumeRoleWithSAMLCommand = se_AssumeRoleWithSAMLCommand;
35
31
  const se_AssumeRoleWithWebIdentityCommand = async (input, context) => {
36
- const headers = {
37
- "content-type": "application/x-www-form-urlencoded",
38
- };
32
+ const headers = SHARED_HEADERS;
39
33
  let body;
40
34
  body = buildFormUrlencodedString({
41
35
  ...se_AssumeRoleWithWebIdentityRequest(input, context),
@@ -46,9 +40,7 @@ const se_AssumeRoleWithWebIdentityCommand = async (input, context) => {
46
40
  };
47
41
  exports.se_AssumeRoleWithWebIdentityCommand = se_AssumeRoleWithWebIdentityCommand;
48
42
  const se_DecodeAuthorizationMessageCommand = async (input, context) => {
49
- const headers = {
50
- "content-type": "application/x-www-form-urlencoded",
51
- };
43
+ const headers = SHARED_HEADERS;
52
44
  let body;
53
45
  body = buildFormUrlencodedString({
54
46
  ...se_DecodeAuthorizationMessageRequest(input, context),
@@ -59,9 +51,7 @@ const se_DecodeAuthorizationMessageCommand = async (input, context) => {
59
51
  };
60
52
  exports.se_DecodeAuthorizationMessageCommand = se_DecodeAuthorizationMessageCommand;
61
53
  const se_GetAccessKeyInfoCommand = async (input, context) => {
62
- const headers = {
63
- "content-type": "application/x-www-form-urlencoded",
64
- };
54
+ const headers = SHARED_HEADERS;
65
55
  let body;
66
56
  body = buildFormUrlencodedString({
67
57
  ...se_GetAccessKeyInfoRequest(input, context),
@@ -72,9 +62,7 @@ const se_GetAccessKeyInfoCommand = async (input, context) => {
72
62
  };
73
63
  exports.se_GetAccessKeyInfoCommand = se_GetAccessKeyInfoCommand;
74
64
  const se_GetCallerIdentityCommand = async (input, context) => {
75
- const headers = {
76
- "content-type": "application/x-www-form-urlencoded",
77
- };
65
+ const headers = SHARED_HEADERS;
78
66
  let body;
79
67
  body = buildFormUrlencodedString({
80
68
  ...se_GetCallerIdentityRequest(input, context),
@@ -85,9 +73,7 @@ const se_GetCallerIdentityCommand = async (input, context) => {
85
73
  };
86
74
  exports.se_GetCallerIdentityCommand = se_GetCallerIdentityCommand;
87
75
  const se_GetFederationTokenCommand = async (input, context) => {
88
- const headers = {
89
- "content-type": "application/x-www-form-urlencoded",
90
- };
76
+ const headers = SHARED_HEADERS;
91
77
  let body;
92
78
  body = buildFormUrlencodedString({
93
79
  ...se_GetFederationTokenRequest(input, context),
@@ -98,9 +84,7 @@ const se_GetFederationTokenCommand = async (input, context) => {
98
84
  };
99
85
  exports.se_GetFederationTokenCommand = se_GetFederationTokenCommand;
100
86
  const se_GetSessionTokenCommand = async (input, context) => {
101
- const headers = {
102
- "content-type": "application/x-www-form-urlencoded",
103
- };
87
+ const headers = SHARED_HEADERS;
104
88
  let body;
105
89
  body = buildFormUrlencodedString({
106
90
  ...se_GetSessionTokenRequest(input, context),
@@ -974,6 +958,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
974
958
  }
975
959
  return new protocol_http_1.HttpRequest(contents);
976
960
  };
961
+ const SHARED_HEADERS = {
962
+ "content-type": "application/x-www-form-urlencoded",
963
+ };
977
964
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
978
965
  if (encoded.length) {
979
966
  const parser = new fast_xml_parser_1.XMLParser({