@aws-sdk/client-codebuild 3.310.0 → 3.315.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.
@@ -7,452 +7,317 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const CodeBuildServiceException_1 = require("../models/CodeBuildServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
9
  const se_BatchDeleteBuildsCommand = async (input, context) => {
10
- const headers = {
11
- "content-type": "application/x-amz-json-1.1",
12
- "x-amz-target": "CodeBuild_20161006.BatchDeleteBuilds",
13
- };
10
+ const headers = sharedHeaders("BatchDeleteBuilds");
14
11
  let body;
15
- body = JSON.stringify(se_BatchDeleteBuildsInput(input, context));
12
+ body = JSON.stringify((0, smithy_client_1._json)(input));
16
13
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
14
  };
18
15
  exports.se_BatchDeleteBuildsCommand = se_BatchDeleteBuildsCommand;
19
16
  const se_BatchGetBuildBatchesCommand = async (input, context) => {
20
- const headers = {
21
- "content-type": "application/x-amz-json-1.1",
22
- "x-amz-target": "CodeBuild_20161006.BatchGetBuildBatches",
23
- };
17
+ const headers = sharedHeaders("BatchGetBuildBatches");
24
18
  let body;
25
- body = JSON.stringify(se_BatchGetBuildBatchesInput(input, context));
19
+ body = JSON.stringify((0, smithy_client_1._json)(input));
26
20
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
27
21
  };
28
22
  exports.se_BatchGetBuildBatchesCommand = se_BatchGetBuildBatchesCommand;
29
23
  const se_BatchGetBuildsCommand = async (input, context) => {
30
- const headers = {
31
- "content-type": "application/x-amz-json-1.1",
32
- "x-amz-target": "CodeBuild_20161006.BatchGetBuilds",
33
- };
24
+ const headers = sharedHeaders("BatchGetBuilds");
34
25
  let body;
35
- body = JSON.stringify(se_BatchGetBuildsInput(input, context));
26
+ body = JSON.stringify((0, smithy_client_1._json)(input));
36
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
37
28
  };
38
29
  exports.se_BatchGetBuildsCommand = se_BatchGetBuildsCommand;
39
30
  const se_BatchGetProjectsCommand = async (input, context) => {
40
- const headers = {
41
- "content-type": "application/x-amz-json-1.1",
42
- "x-amz-target": "CodeBuild_20161006.BatchGetProjects",
43
- };
31
+ const headers = sharedHeaders("BatchGetProjects");
44
32
  let body;
45
- body = JSON.stringify(se_BatchGetProjectsInput(input, context));
33
+ body = JSON.stringify((0, smithy_client_1._json)(input));
46
34
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
47
35
  };
48
36
  exports.se_BatchGetProjectsCommand = se_BatchGetProjectsCommand;
49
37
  const se_BatchGetReportGroupsCommand = async (input, context) => {
50
- const headers = {
51
- "content-type": "application/x-amz-json-1.1",
52
- "x-amz-target": "CodeBuild_20161006.BatchGetReportGroups",
53
- };
38
+ const headers = sharedHeaders("BatchGetReportGroups");
54
39
  let body;
55
- body = JSON.stringify(se_BatchGetReportGroupsInput(input, context));
40
+ body = JSON.stringify((0, smithy_client_1._json)(input));
56
41
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
57
42
  };
58
43
  exports.se_BatchGetReportGroupsCommand = se_BatchGetReportGroupsCommand;
59
44
  const se_BatchGetReportsCommand = async (input, context) => {
60
- const headers = {
61
- "content-type": "application/x-amz-json-1.1",
62
- "x-amz-target": "CodeBuild_20161006.BatchGetReports",
63
- };
45
+ const headers = sharedHeaders("BatchGetReports");
64
46
  let body;
65
- body = JSON.stringify(se_BatchGetReportsInput(input, context));
47
+ body = JSON.stringify((0, smithy_client_1._json)(input));
66
48
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
67
49
  };
68
50
  exports.se_BatchGetReportsCommand = se_BatchGetReportsCommand;
69
51
  const se_CreateProjectCommand = async (input, context) => {
70
- const headers = {
71
- "content-type": "application/x-amz-json-1.1",
72
- "x-amz-target": "CodeBuild_20161006.CreateProject",
73
- };
52
+ const headers = sharedHeaders("CreateProject");
74
53
  let body;
75
- body = JSON.stringify(se_CreateProjectInput(input, context));
54
+ body = JSON.stringify((0, smithy_client_1._json)(input));
76
55
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
56
  };
78
57
  exports.se_CreateProjectCommand = se_CreateProjectCommand;
79
58
  const se_CreateReportGroupCommand = async (input, context) => {
80
- const headers = {
81
- "content-type": "application/x-amz-json-1.1",
82
- "x-amz-target": "CodeBuild_20161006.CreateReportGroup",
83
- };
59
+ const headers = sharedHeaders("CreateReportGroup");
84
60
  let body;
85
- body = JSON.stringify(se_CreateReportGroupInput(input, context));
61
+ body = JSON.stringify((0, smithy_client_1._json)(input));
86
62
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
87
63
  };
88
64
  exports.se_CreateReportGroupCommand = se_CreateReportGroupCommand;
89
65
  const se_CreateWebhookCommand = async (input, context) => {
90
- const headers = {
91
- "content-type": "application/x-amz-json-1.1",
92
- "x-amz-target": "CodeBuild_20161006.CreateWebhook",
93
- };
66
+ const headers = sharedHeaders("CreateWebhook");
94
67
  let body;
95
- body = JSON.stringify(se_CreateWebhookInput(input, context));
68
+ body = JSON.stringify((0, smithy_client_1._json)(input));
96
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
97
70
  };
98
71
  exports.se_CreateWebhookCommand = se_CreateWebhookCommand;
99
72
  const se_DeleteBuildBatchCommand = async (input, context) => {
100
- const headers = {
101
- "content-type": "application/x-amz-json-1.1",
102
- "x-amz-target": "CodeBuild_20161006.DeleteBuildBatch",
103
- };
73
+ const headers = sharedHeaders("DeleteBuildBatch");
104
74
  let body;
105
- body = JSON.stringify(se_DeleteBuildBatchInput(input, context));
75
+ body = JSON.stringify((0, smithy_client_1._json)(input));
106
76
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
107
77
  };
108
78
  exports.se_DeleteBuildBatchCommand = se_DeleteBuildBatchCommand;
109
79
  const se_DeleteProjectCommand = async (input, context) => {
110
- const headers = {
111
- "content-type": "application/x-amz-json-1.1",
112
- "x-amz-target": "CodeBuild_20161006.DeleteProject",
113
- };
80
+ const headers = sharedHeaders("DeleteProject");
114
81
  let body;
115
- body = JSON.stringify(se_DeleteProjectInput(input, context));
82
+ body = JSON.stringify((0, smithy_client_1._json)(input));
116
83
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
117
84
  };
118
85
  exports.se_DeleteProjectCommand = se_DeleteProjectCommand;
119
86
  const se_DeleteReportCommand = async (input, context) => {
120
- const headers = {
121
- "content-type": "application/x-amz-json-1.1",
122
- "x-amz-target": "CodeBuild_20161006.DeleteReport",
123
- };
87
+ const headers = sharedHeaders("DeleteReport");
124
88
  let body;
125
- body = JSON.stringify(se_DeleteReportInput(input, context));
89
+ body = JSON.stringify((0, smithy_client_1._json)(input));
126
90
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
127
91
  };
128
92
  exports.se_DeleteReportCommand = se_DeleteReportCommand;
129
93
  const se_DeleteReportGroupCommand = async (input, context) => {
130
- const headers = {
131
- "content-type": "application/x-amz-json-1.1",
132
- "x-amz-target": "CodeBuild_20161006.DeleteReportGroup",
133
- };
94
+ const headers = sharedHeaders("DeleteReportGroup");
134
95
  let body;
135
- body = JSON.stringify(se_DeleteReportGroupInput(input, context));
96
+ body = JSON.stringify((0, smithy_client_1._json)(input));
136
97
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
137
98
  };
138
99
  exports.se_DeleteReportGroupCommand = se_DeleteReportGroupCommand;
139
100
  const se_DeleteResourcePolicyCommand = async (input, context) => {
140
- const headers = {
141
- "content-type": "application/x-amz-json-1.1",
142
- "x-amz-target": "CodeBuild_20161006.DeleteResourcePolicy",
143
- };
101
+ const headers = sharedHeaders("DeleteResourcePolicy");
144
102
  let body;
145
- body = JSON.stringify(se_DeleteResourcePolicyInput(input, context));
103
+ body = JSON.stringify((0, smithy_client_1._json)(input));
146
104
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
147
105
  };
148
106
  exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
149
107
  const se_DeleteSourceCredentialsCommand = async (input, context) => {
150
- const headers = {
151
- "content-type": "application/x-amz-json-1.1",
152
- "x-amz-target": "CodeBuild_20161006.DeleteSourceCredentials",
153
- };
108
+ const headers = sharedHeaders("DeleteSourceCredentials");
154
109
  let body;
155
- body = JSON.stringify(se_DeleteSourceCredentialsInput(input, context));
110
+ body = JSON.stringify((0, smithy_client_1._json)(input));
156
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
157
112
  };
158
113
  exports.se_DeleteSourceCredentialsCommand = se_DeleteSourceCredentialsCommand;
159
114
  const se_DeleteWebhookCommand = async (input, context) => {
160
- const headers = {
161
- "content-type": "application/x-amz-json-1.1",
162
- "x-amz-target": "CodeBuild_20161006.DeleteWebhook",
163
- };
115
+ const headers = sharedHeaders("DeleteWebhook");
164
116
  let body;
165
- body = JSON.stringify(se_DeleteWebhookInput(input, context));
117
+ body = JSON.stringify((0, smithy_client_1._json)(input));
166
118
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
167
119
  };
168
120
  exports.se_DeleteWebhookCommand = se_DeleteWebhookCommand;
169
121
  const se_DescribeCodeCoveragesCommand = async (input, context) => {
170
- const headers = {
171
- "content-type": "application/x-amz-json-1.1",
172
- "x-amz-target": "CodeBuild_20161006.DescribeCodeCoverages",
173
- };
122
+ const headers = sharedHeaders("DescribeCodeCoverages");
174
123
  let body;
175
124
  body = JSON.stringify(se_DescribeCodeCoveragesInput(input, context));
176
125
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
177
126
  };
178
127
  exports.se_DescribeCodeCoveragesCommand = se_DescribeCodeCoveragesCommand;
179
128
  const se_DescribeTestCasesCommand = async (input, context) => {
180
- const headers = {
181
- "content-type": "application/x-amz-json-1.1",
182
- "x-amz-target": "CodeBuild_20161006.DescribeTestCases",
183
- };
129
+ const headers = sharedHeaders("DescribeTestCases");
184
130
  let body;
185
- body = JSON.stringify(se_DescribeTestCasesInput(input, context));
131
+ body = JSON.stringify((0, smithy_client_1._json)(input));
186
132
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
187
133
  };
188
134
  exports.se_DescribeTestCasesCommand = se_DescribeTestCasesCommand;
189
135
  const se_GetReportGroupTrendCommand = async (input, context) => {
190
- const headers = {
191
- "content-type": "application/x-amz-json-1.1",
192
- "x-amz-target": "CodeBuild_20161006.GetReportGroupTrend",
193
- };
136
+ const headers = sharedHeaders("GetReportGroupTrend");
194
137
  let body;
195
- body = JSON.stringify(se_GetReportGroupTrendInput(input, context));
138
+ body = JSON.stringify((0, smithy_client_1._json)(input));
196
139
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
140
  };
198
141
  exports.se_GetReportGroupTrendCommand = se_GetReportGroupTrendCommand;
199
142
  const se_GetResourcePolicyCommand = async (input, context) => {
200
- const headers = {
201
- "content-type": "application/x-amz-json-1.1",
202
- "x-amz-target": "CodeBuild_20161006.GetResourcePolicy",
203
- };
143
+ const headers = sharedHeaders("GetResourcePolicy");
204
144
  let body;
205
- body = JSON.stringify(se_GetResourcePolicyInput(input, context));
145
+ body = JSON.stringify((0, smithy_client_1._json)(input));
206
146
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
207
147
  };
208
148
  exports.se_GetResourcePolicyCommand = se_GetResourcePolicyCommand;
209
149
  const se_ImportSourceCredentialsCommand = async (input, context) => {
210
- const headers = {
211
- "content-type": "application/x-amz-json-1.1",
212
- "x-amz-target": "CodeBuild_20161006.ImportSourceCredentials",
213
- };
150
+ const headers = sharedHeaders("ImportSourceCredentials");
214
151
  let body;
215
- body = JSON.stringify(se_ImportSourceCredentialsInput(input, context));
152
+ body = JSON.stringify((0, smithy_client_1._json)(input));
216
153
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
217
154
  };
218
155
  exports.se_ImportSourceCredentialsCommand = se_ImportSourceCredentialsCommand;
219
156
  const se_InvalidateProjectCacheCommand = async (input, context) => {
220
- const headers = {
221
- "content-type": "application/x-amz-json-1.1",
222
- "x-amz-target": "CodeBuild_20161006.InvalidateProjectCache",
223
- };
157
+ const headers = sharedHeaders("InvalidateProjectCache");
224
158
  let body;
225
- body = JSON.stringify(se_InvalidateProjectCacheInput(input, context));
159
+ body = JSON.stringify((0, smithy_client_1._json)(input));
226
160
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
227
161
  };
228
162
  exports.se_InvalidateProjectCacheCommand = se_InvalidateProjectCacheCommand;
229
163
  const se_ListBuildBatchesCommand = async (input, context) => {
230
- const headers = {
231
- "content-type": "application/x-amz-json-1.1",
232
- "x-amz-target": "CodeBuild_20161006.ListBuildBatches",
233
- };
164
+ const headers = sharedHeaders("ListBuildBatches");
234
165
  let body;
235
- body = JSON.stringify(se_ListBuildBatchesInput(input, context));
166
+ body = JSON.stringify((0, smithy_client_1._json)(input));
236
167
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
237
168
  };
238
169
  exports.se_ListBuildBatchesCommand = se_ListBuildBatchesCommand;
239
170
  const se_ListBuildBatchesForProjectCommand = async (input, context) => {
240
- const headers = {
241
- "content-type": "application/x-amz-json-1.1",
242
- "x-amz-target": "CodeBuild_20161006.ListBuildBatchesForProject",
243
- };
171
+ const headers = sharedHeaders("ListBuildBatchesForProject");
244
172
  let body;
245
- body = JSON.stringify(se_ListBuildBatchesForProjectInput(input, context));
173
+ body = JSON.stringify((0, smithy_client_1._json)(input));
246
174
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
247
175
  };
248
176
  exports.se_ListBuildBatchesForProjectCommand = se_ListBuildBatchesForProjectCommand;
249
177
  const se_ListBuildsCommand = async (input, context) => {
250
- const headers = {
251
- "content-type": "application/x-amz-json-1.1",
252
- "x-amz-target": "CodeBuild_20161006.ListBuilds",
253
- };
178
+ const headers = sharedHeaders("ListBuilds");
254
179
  let body;
255
- body = JSON.stringify(se_ListBuildsInput(input, context));
180
+ body = JSON.stringify((0, smithy_client_1._json)(input));
256
181
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
257
182
  };
258
183
  exports.se_ListBuildsCommand = se_ListBuildsCommand;
259
184
  const se_ListBuildsForProjectCommand = async (input, context) => {
260
- const headers = {
261
- "content-type": "application/x-amz-json-1.1",
262
- "x-amz-target": "CodeBuild_20161006.ListBuildsForProject",
263
- };
185
+ const headers = sharedHeaders("ListBuildsForProject");
264
186
  let body;
265
- body = JSON.stringify(se_ListBuildsForProjectInput(input, context));
187
+ body = JSON.stringify((0, smithy_client_1._json)(input));
266
188
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
267
189
  };
268
190
  exports.se_ListBuildsForProjectCommand = se_ListBuildsForProjectCommand;
269
191
  const se_ListCuratedEnvironmentImagesCommand = async (input, context) => {
270
- const headers = {
271
- "content-type": "application/x-amz-json-1.1",
272
- "x-amz-target": "CodeBuild_20161006.ListCuratedEnvironmentImages",
273
- };
192
+ const headers = sharedHeaders("ListCuratedEnvironmentImages");
274
193
  let body;
275
- body = JSON.stringify(se_ListCuratedEnvironmentImagesInput(input, context));
194
+ body = JSON.stringify((0, smithy_client_1._json)(input));
276
195
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
277
196
  };
278
197
  exports.se_ListCuratedEnvironmentImagesCommand = se_ListCuratedEnvironmentImagesCommand;
279
198
  const se_ListProjectsCommand = async (input, context) => {
280
- const headers = {
281
- "content-type": "application/x-amz-json-1.1",
282
- "x-amz-target": "CodeBuild_20161006.ListProjects",
283
- };
199
+ const headers = sharedHeaders("ListProjects");
284
200
  let body;
285
- body = JSON.stringify(se_ListProjectsInput(input, context));
201
+ body = JSON.stringify((0, smithy_client_1._json)(input));
286
202
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
287
203
  };
288
204
  exports.se_ListProjectsCommand = se_ListProjectsCommand;
289
205
  const se_ListReportGroupsCommand = async (input, context) => {
290
- const headers = {
291
- "content-type": "application/x-amz-json-1.1",
292
- "x-amz-target": "CodeBuild_20161006.ListReportGroups",
293
- };
206
+ const headers = sharedHeaders("ListReportGroups");
294
207
  let body;
295
- body = JSON.stringify(se_ListReportGroupsInput(input, context));
208
+ body = JSON.stringify((0, smithy_client_1._json)(input));
296
209
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
297
210
  };
298
211
  exports.se_ListReportGroupsCommand = se_ListReportGroupsCommand;
299
212
  const se_ListReportsCommand = async (input, context) => {
300
- const headers = {
301
- "content-type": "application/x-amz-json-1.1",
302
- "x-amz-target": "CodeBuild_20161006.ListReports",
303
- };
213
+ const headers = sharedHeaders("ListReports");
304
214
  let body;
305
- body = JSON.stringify(se_ListReportsInput(input, context));
215
+ body = JSON.stringify((0, smithy_client_1._json)(input));
306
216
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
307
217
  };
308
218
  exports.se_ListReportsCommand = se_ListReportsCommand;
309
219
  const se_ListReportsForReportGroupCommand = async (input, context) => {
310
- const headers = {
311
- "content-type": "application/x-amz-json-1.1",
312
- "x-amz-target": "CodeBuild_20161006.ListReportsForReportGroup",
313
- };
220
+ const headers = sharedHeaders("ListReportsForReportGroup");
314
221
  let body;
315
- body = JSON.stringify(se_ListReportsForReportGroupInput(input, context));
222
+ body = JSON.stringify((0, smithy_client_1._json)(input));
316
223
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
317
224
  };
318
225
  exports.se_ListReportsForReportGroupCommand = se_ListReportsForReportGroupCommand;
319
226
  const se_ListSharedProjectsCommand = async (input, context) => {
320
- const headers = {
321
- "content-type": "application/x-amz-json-1.1",
322
- "x-amz-target": "CodeBuild_20161006.ListSharedProjects",
323
- };
227
+ const headers = sharedHeaders("ListSharedProjects");
324
228
  let body;
325
- body = JSON.stringify(se_ListSharedProjectsInput(input, context));
229
+ body = JSON.stringify((0, smithy_client_1._json)(input));
326
230
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
327
231
  };
328
232
  exports.se_ListSharedProjectsCommand = se_ListSharedProjectsCommand;
329
233
  const se_ListSharedReportGroupsCommand = async (input, context) => {
330
- const headers = {
331
- "content-type": "application/x-amz-json-1.1",
332
- "x-amz-target": "CodeBuild_20161006.ListSharedReportGroups",
333
- };
234
+ const headers = sharedHeaders("ListSharedReportGroups");
334
235
  let body;
335
- body = JSON.stringify(se_ListSharedReportGroupsInput(input, context));
236
+ body = JSON.stringify((0, smithy_client_1._json)(input));
336
237
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
337
238
  };
338
239
  exports.se_ListSharedReportGroupsCommand = se_ListSharedReportGroupsCommand;
339
240
  const se_ListSourceCredentialsCommand = async (input, context) => {
340
- const headers = {
341
- "content-type": "application/x-amz-json-1.1",
342
- "x-amz-target": "CodeBuild_20161006.ListSourceCredentials",
343
- };
241
+ const headers = sharedHeaders("ListSourceCredentials");
344
242
  let body;
345
- body = JSON.stringify(se_ListSourceCredentialsInput(input, context));
243
+ body = JSON.stringify((0, smithy_client_1._json)(input));
346
244
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
347
245
  };
348
246
  exports.se_ListSourceCredentialsCommand = se_ListSourceCredentialsCommand;
349
247
  const se_PutResourcePolicyCommand = async (input, context) => {
350
- const headers = {
351
- "content-type": "application/x-amz-json-1.1",
352
- "x-amz-target": "CodeBuild_20161006.PutResourcePolicy",
353
- };
248
+ const headers = sharedHeaders("PutResourcePolicy");
354
249
  let body;
355
- body = JSON.stringify(se_PutResourcePolicyInput(input, context));
250
+ body = JSON.stringify((0, smithy_client_1._json)(input));
356
251
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
357
252
  };
358
253
  exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
359
254
  const se_RetryBuildCommand = async (input, context) => {
360
- const headers = {
361
- "content-type": "application/x-amz-json-1.1",
362
- "x-amz-target": "CodeBuild_20161006.RetryBuild",
363
- };
255
+ const headers = sharedHeaders("RetryBuild");
364
256
  let body;
365
- body = JSON.stringify(se_RetryBuildInput(input, context));
257
+ body = JSON.stringify((0, smithy_client_1._json)(input));
366
258
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
367
259
  };
368
260
  exports.se_RetryBuildCommand = se_RetryBuildCommand;
369
261
  const se_RetryBuildBatchCommand = async (input, context) => {
370
- const headers = {
371
- "content-type": "application/x-amz-json-1.1",
372
- "x-amz-target": "CodeBuild_20161006.RetryBuildBatch",
373
- };
262
+ const headers = sharedHeaders("RetryBuildBatch");
374
263
  let body;
375
- body = JSON.stringify(se_RetryBuildBatchInput(input, context));
264
+ body = JSON.stringify((0, smithy_client_1._json)(input));
376
265
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
377
266
  };
378
267
  exports.se_RetryBuildBatchCommand = se_RetryBuildBatchCommand;
379
268
  const se_StartBuildCommand = async (input, context) => {
380
- const headers = {
381
- "content-type": "application/x-amz-json-1.1",
382
- "x-amz-target": "CodeBuild_20161006.StartBuild",
383
- };
269
+ const headers = sharedHeaders("StartBuild");
384
270
  let body;
385
- body = JSON.stringify(se_StartBuildInput(input, context));
271
+ body = JSON.stringify((0, smithy_client_1._json)(input));
386
272
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
387
273
  };
388
274
  exports.se_StartBuildCommand = se_StartBuildCommand;
389
275
  const se_StartBuildBatchCommand = async (input, context) => {
390
- const headers = {
391
- "content-type": "application/x-amz-json-1.1",
392
- "x-amz-target": "CodeBuild_20161006.StartBuildBatch",
393
- };
276
+ const headers = sharedHeaders("StartBuildBatch");
394
277
  let body;
395
- body = JSON.stringify(se_StartBuildBatchInput(input, context));
278
+ body = JSON.stringify((0, smithy_client_1._json)(input));
396
279
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
397
280
  };
398
281
  exports.se_StartBuildBatchCommand = se_StartBuildBatchCommand;
399
282
  const se_StopBuildCommand = async (input, context) => {
400
- const headers = {
401
- "content-type": "application/x-amz-json-1.1",
402
- "x-amz-target": "CodeBuild_20161006.StopBuild",
403
- };
283
+ const headers = sharedHeaders("StopBuild");
404
284
  let body;
405
- body = JSON.stringify(se_StopBuildInput(input, context));
285
+ body = JSON.stringify((0, smithy_client_1._json)(input));
406
286
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
407
287
  };
408
288
  exports.se_StopBuildCommand = se_StopBuildCommand;
409
289
  const se_StopBuildBatchCommand = async (input, context) => {
410
- const headers = {
411
- "content-type": "application/x-amz-json-1.1",
412
- "x-amz-target": "CodeBuild_20161006.StopBuildBatch",
413
- };
290
+ const headers = sharedHeaders("StopBuildBatch");
414
291
  let body;
415
- body = JSON.stringify(se_StopBuildBatchInput(input, context));
292
+ body = JSON.stringify((0, smithy_client_1._json)(input));
416
293
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
417
294
  };
418
295
  exports.se_StopBuildBatchCommand = se_StopBuildBatchCommand;
419
296
  const se_UpdateProjectCommand = async (input, context) => {
420
- const headers = {
421
- "content-type": "application/x-amz-json-1.1",
422
- "x-amz-target": "CodeBuild_20161006.UpdateProject",
423
- };
297
+ const headers = sharedHeaders("UpdateProject");
424
298
  let body;
425
- body = JSON.stringify(se_UpdateProjectInput(input, context));
299
+ body = JSON.stringify((0, smithy_client_1._json)(input));
426
300
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
427
301
  };
428
302
  exports.se_UpdateProjectCommand = se_UpdateProjectCommand;
429
303
  const se_UpdateProjectVisibilityCommand = async (input, context) => {
430
- const headers = {
431
- "content-type": "application/x-amz-json-1.1",
432
- "x-amz-target": "CodeBuild_20161006.UpdateProjectVisibility",
433
- };
304
+ const headers = sharedHeaders("UpdateProjectVisibility");
434
305
  let body;
435
- body = JSON.stringify(se_UpdateProjectVisibilityInput(input, context));
306
+ body = JSON.stringify((0, smithy_client_1._json)(input));
436
307
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
437
308
  };
438
309
  exports.se_UpdateProjectVisibilityCommand = se_UpdateProjectVisibilityCommand;
439
310
  const se_UpdateReportGroupCommand = async (input, context) => {
440
- const headers = {
441
- "content-type": "application/x-amz-json-1.1",
442
- "x-amz-target": "CodeBuild_20161006.UpdateReportGroup",
443
- };
311
+ const headers = sharedHeaders("UpdateReportGroup");
444
312
  let body;
445
- body = JSON.stringify(se_UpdateReportGroupInput(input, context));
313
+ body = JSON.stringify((0, smithy_client_1._json)(input));
446
314
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
447
315
  };
448
316
  exports.se_UpdateReportGroupCommand = se_UpdateReportGroupCommand;
449
317
  const se_UpdateWebhookCommand = async (input, context) => {
450
- const headers = {
451
- "content-type": "application/x-amz-json-1.1",
452
- "x-amz-target": "CodeBuild_20161006.UpdateWebhook",
453
- };
318
+ const headers = sharedHeaders("UpdateWebhook");
454
319
  let body;
455
- body = JSON.stringify(se_UpdateWebhookInput(input, context));
320
+ body = JSON.stringify((0, smithy_client_1._json)(input));
456
321
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
457
322
  };
458
323
  exports.se_UpdateWebhookCommand = se_UpdateWebhookCommand;
@@ -462,12 +327,12 @@ const de_BatchDeleteBuildsCommand = async (output, context) => {
462
327
  }
463
328
  const data = await parseBody(output.body, context);
464
329
  let contents = {};
465
- contents = de_BatchDeleteBuildsOutput(data, context);
330
+ contents = (0, smithy_client_1._json)(data);
466
331
  const response = {
467
332
  $metadata: deserializeMetadata(output),
468
333
  ...contents,
469
334
  };
470
- return Promise.resolve(response);
335
+ return response;
471
336
  };
472
337
  exports.de_BatchDeleteBuildsCommand = de_BatchDeleteBuildsCommand;
473
338
  const de_BatchDeleteBuildsCommandError = async (output, context) => {
@@ -482,10 +347,9 @@ const de_BatchDeleteBuildsCommandError = async (output, context) => {
482
347
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
483
348
  default:
484
349
  const parsedBody = parsedOutput.body;
485
- (0, smithy_client_1.throwDefaultError)({
350
+ return throwDefaultError({
486
351
  output,
487
352
  parsedBody,
488
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
489
353
  errorCode,
490
354
  });
491
355
  }
@@ -501,7 +365,7 @@ const de_BatchGetBuildBatchesCommand = async (output, context) => {
501
365
  $metadata: deserializeMetadata(output),
502
366
  ...contents,
503
367
  };
504
- return Promise.resolve(response);
368
+ return response;
505
369
  };
506
370
  exports.de_BatchGetBuildBatchesCommand = de_BatchGetBuildBatchesCommand;
507
371
  const de_BatchGetBuildBatchesCommandError = async (output, context) => {
@@ -516,10 +380,9 @@ const de_BatchGetBuildBatchesCommandError = async (output, context) => {
516
380
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
517
381
  default:
518
382
  const parsedBody = parsedOutput.body;
519
- (0, smithy_client_1.throwDefaultError)({
383
+ return throwDefaultError({
520
384
  output,
521
385
  parsedBody,
522
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
523
386
  errorCode,
524
387
  });
525
388
  }
@@ -535,7 +398,7 @@ const de_BatchGetBuildsCommand = async (output, context) => {
535
398
  $metadata: deserializeMetadata(output),
536
399
  ...contents,
537
400
  };
538
- return Promise.resolve(response);
401
+ return response;
539
402
  };
540
403
  exports.de_BatchGetBuildsCommand = de_BatchGetBuildsCommand;
541
404
  const de_BatchGetBuildsCommandError = async (output, context) => {
@@ -550,10 +413,9 @@ const de_BatchGetBuildsCommandError = async (output, context) => {
550
413
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
551
414
  default:
552
415
  const parsedBody = parsedOutput.body;
553
- (0, smithy_client_1.throwDefaultError)({
416
+ return throwDefaultError({
554
417
  output,
555
418
  parsedBody,
556
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
557
419
  errorCode,
558
420
  });
559
421
  }
@@ -569,7 +431,7 @@ const de_BatchGetProjectsCommand = async (output, context) => {
569
431
  $metadata: deserializeMetadata(output),
570
432
  ...contents,
571
433
  };
572
- return Promise.resolve(response);
434
+ return response;
573
435
  };
574
436
  exports.de_BatchGetProjectsCommand = de_BatchGetProjectsCommand;
575
437
  const de_BatchGetProjectsCommandError = async (output, context) => {
@@ -584,10 +446,9 @@ const de_BatchGetProjectsCommandError = async (output, context) => {
584
446
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
585
447
  default:
586
448
  const parsedBody = parsedOutput.body;
587
- (0, smithy_client_1.throwDefaultError)({
449
+ return throwDefaultError({
588
450
  output,
589
451
  parsedBody,
590
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
591
452
  errorCode,
592
453
  });
593
454
  }
@@ -603,7 +464,7 @@ const de_BatchGetReportGroupsCommand = async (output, context) => {
603
464
  $metadata: deserializeMetadata(output),
604
465
  ...contents,
605
466
  };
606
- return Promise.resolve(response);
467
+ return response;
607
468
  };
608
469
  exports.de_BatchGetReportGroupsCommand = de_BatchGetReportGroupsCommand;
609
470
  const de_BatchGetReportGroupsCommandError = async (output, context) => {
@@ -618,10 +479,9 @@ const de_BatchGetReportGroupsCommandError = async (output, context) => {
618
479
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
619
480
  default:
620
481
  const parsedBody = parsedOutput.body;
621
- (0, smithy_client_1.throwDefaultError)({
482
+ return throwDefaultError({
622
483
  output,
623
484
  parsedBody,
624
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
625
485
  errorCode,
626
486
  });
627
487
  }
@@ -637,7 +497,7 @@ const de_BatchGetReportsCommand = async (output, context) => {
637
497
  $metadata: deserializeMetadata(output),
638
498
  ...contents,
639
499
  };
640
- return Promise.resolve(response);
500
+ return response;
641
501
  };
642
502
  exports.de_BatchGetReportsCommand = de_BatchGetReportsCommand;
643
503
  const de_BatchGetReportsCommandError = async (output, context) => {
@@ -652,10 +512,9 @@ const de_BatchGetReportsCommandError = async (output, context) => {
652
512
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
653
513
  default:
654
514
  const parsedBody = parsedOutput.body;
655
- (0, smithy_client_1.throwDefaultError)({
515
+ return throwDefaultError({
656
516
  output,
657
517
  parsedBody,
658
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
659
518
  errorCode,
660
519
  });
661
520
  }
@@ -671,7 +530,7 @@ const de_CreateProjectCommand = async (output, context) => {
671
530
  $metadata: deserializeMetadata(output),
672
531
  ...contents,
673
532
  };
674
- return Promise.resolve(response);
533
+ return response;
675
534
  };
676
535
  exports.de_CreateProjectCommand = de_CreateProjectCommand;
677
536
  const de_CreateProjectCommandError = async (output, context) => {
@@ -692,10 +551,9 @@ const de_CreateProjectCommandError = async (output, context) => {
692
551
  throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
693
552
  default:
694
553
  const parsedBody = parsedOutput.body;
695
- (0, smithy_client_1.throwDefaultError)({
554
+ return throwDefaultError({
696
555
  output,
697
556
  parsedBody,
698
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
699
557
  errorCode,
700
558
  });
701
559
  }
@@ -711,7 +569,7 @@ const de_CreateReportGroupCommand = async (output, context) => {
711
569
  $metadata: deserializeMetadata(output),
712
570
  ...contents,
713
571
  };
714
- return Promise.resolve(response);
572
+ return response;
715
573
  };
716
574
  exports.de_CreateReportGroupCommand = de_CreateReportGroupCommand;
717
575
  const de_CreateReportGroupCommandError = async (output, context) => {
@@ -732,10 +590,9 @@ const de_CreateReportGroupCommandError = async (output, context) => {
732
590
  throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
733
591
  default:
734
592
  const parsedBody = parsedOutput.body;
735
- (0, smithy_client_1.throwDefaultError)({
593
+ return throwDefaultError({
736
594
  output,
737
595
  parsedBody,
738
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
739
596
  errorCode,
740
597
  });
741
598
  }
@@ -751,7 +608,7 @@ const de_CreateWebhookCommand = async (output, context) => {
751
608
  $metadata: deserializeMetadata(output),
752
609
  ...contents,
753
610
  };
754
- return Promise.resolve(response);
611
+ return response;
755
612
  };
756
613
  exports.de_CreateWebhookCommand = de_CreateWebhookCommand;
757
614
  const de_CreateWebhookCommandError = async (output, context) => {
@@ -775,10 +632,9 @@ const de_CreateWebhookCommandError = async (output, context) => {
775
632
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
776
633
  default:
777
634
  const parsedBody = parsedOutput.body;
778
- (0, smithy_client_1.throwDefaultError)({
635
+ return throwDefaultError({
779
636
  output,
780
637
  parsedBody,
781
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
782
638
  errorCode,
783
639
  });
784
640
  }
@@ -789,12 +645,12 @@ const de_DeleteBuildBatchCommand = async (output, context) => {
789
645
  }
790
646
  const data = await parseBody(output.body, context);
791
647
  let contents = {};
792
- contents = de_DeleteBuildBatchOutput(data, context);
648
+ contents = (0, smithy_client_1._json)(data);
793
649
  const response = {
794
650
  $metadata: deserializeMetadata(output),
795
651
  ...contents,
796
652
  };
797
- return Promise.resolve(response);
653
+ return response;
798
654
  };
799
655
  exports.de_DeleteBuildBatchCommand = de_DeleteBuildBatchCommand;
800
656
  const de_DeleteBuildBatchCommandError = async (output, context) => {
@@ -809,10 +665,9 @@ const de_DeleteBuildBatchCommandError = async (output, context) => {
809
665
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
810
666
  default:
811
667
  const parsedBody = parsedOutput.body;
812
- (0, smithy_client_1.throwDefaultError)({
668
+ return throwDefaultError({
813
669
  output,
814
670
  parsedBody,
815
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
816
671
  errorCode,
817
672
  });
818
673
  }
@@ -823,12 +678,12 @@ const de_DeleteProjectCommand = async (output, context) => {
823
678
  }
824
679
  const data = await parseBody(output.body, context);
825
680
  let contents = {};
826
- contents = de_DeleteProjectOutput(data, context);
681
+ contents = (0, smithy_client_1._json)(data);
827
682
  const response = {
828
683
  $metadata: deserializeMetadata(output),
829
684
  ...contents,
830
685
  };
831
- return Promise.resolve(response);
686
+ return response;
832
687
  };
833
688
  exports.de_DeleteProjectCommand = de_DeleteProjectCommand;
834
689
  const de_DeleteProjectCommandError = async (output, context) => {
@@ -843,10 +698,9 @@ const de_DeleteProjectCommandError = async (output, context) => {
843
698
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
844
699
  default:
845
700
  const parsedBody = parsedOutput.body;
846
- (0, smithy_client_1.throwDefaultError)({
701
+ return throwDefaultError({
847
702
  output,
848
703
  parsedBody,
849
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
850
704
  errorCode,
851
705
  });
852
706
  }
@@ -857,12 +711,12 @@ const de_DeleteReportCommand = async (output, context) => {
857
711
  }
858
712
  const data = await parseBody(output.body, context);
859
713
  let contents = {};
860
- contents = de_DeleteReportOutput(data, context);
714
+ contents = (0, smithy_client_1._json)(data);
861
715
  const response = {
862
716
  $metadata: deserializeMetadata(output),
863
717
  ...contents,
864
718
  };
865
- return Promise.resolve(response);
719
+ return response;
866
720
  };
867
721
  exports.de_DeleteReportCommand = de_DeleteReportCommand;
868
722
  const de_DeleteReportCommandError = async (output, context) => {
@@ -877,10 +731,9 @@ const de_DeleteReportCommandError = async (output, context) => {
877
731
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
878
732
  default:
879
733
  const parsedBody = parsedOutput.body;
880
- (0, smithy_client_1.throwDefaultError)({
734
+ return throwDefaultError({
881
735
  output,
882
736
  parsedBody,
883
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
884
737
  errorCode,
885
738
  });
886
739
  }
@@ -891,12 +744,12 @@ const de_DeleteReportGroupCommand = async (output, context) => {
891
744
  }
892
745
  const data = await parseBody(output.body, context);
893
746
  let contents = {};
894
- contents = de_DeleteReportGroupOutput(data, context);
747
+ contents = (0, smithy_client_1._json)(data);
895
748
  const response = {
896
749
  $metadata: deserializeMetadata(output),
897
750
  ...contents,
898
751
  };
899
- return Promise.resolve(response);
752
+ return response;
900
753
  };
901
754
  exports.de_DeleteReportGroupCommand = de_DeleteReportGroupCommand;
902
755
  const de_DeleteReportGroupCommandError = async (output, context) => {
@@ -911,10 +764,9 @@ const de_DeleteReportGroupCommandError = async (output, context) => {
911
764
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
912
765
  default:
913
766
  const parsedBody = parsedOutput.body;
914
- (0, smithy_client_1.throwDefaultError)({
767
+ return throwDefaultError({
915
768
  output,
916
769
  parsedBody,
917
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
918
770
  errorCode,
919
771
  });
920
772
  }
@@ -925,12 +777,12 @@ const de_DeleteResourcePolicyCommand = async (output, context) => {
925
777
  }
926
778
  const data = await parseBody(output.body, context);
927
779
  let contents = {};
928
- contents = de_DeleteResourcePolicyOutput(data, context);
780
+ contents = (0, smithy_client_1._json)(data);
929
781
  const response = {
930
782
  $metadata: deserializeMetadata(output),
931
783
  ...contents,
932
784
  };
933
- return Promise.resolve(response);
785
+ return response;
934
786
  };
935
787
  exports.de_DeleteResourcePolicyCommand = de_DeleteResourcePolicyCommand;
936
788
  const de_DeleteResourcePolicyCommandError = async (output, context) => {
@@ -945,10 +797,9 @@ const de_DeleteResourcePolicyCommandError = async (output, context) => {
945
797
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
946
798
  default:
947
799
  const parsedBody = parsedOutput.body;
948
- (0, smithy_client_1.throwDefaultError)({
800
+ return throwDefaultError({
949
801
  output,
950
802
  parsedBody,
951
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
952
803
  errorCode,
953
804
  });
954
805
  }
@@ -959,12 +810,12 @@ const de_DeleteSourceCredentialsCommand = async (output, context) => {
959
810
  }
960
811
  const data = await parseBody(output.body, context);
961
812
  let contents = {};
962
- contents = de_DeleteSourceCredentialsOutput(data, context);
813
+ contents = (0, smithy_client_1._json)(data);
963
814
  const response = {
964
815
  $metadata: deserializeMetadata(output),
965
816
  ...contents,
966
817
  };
967
- return Promise.resolve(response);
818
+ return response;
968
819
  };
969
820
  exports.de_DeleteSourceCredentialsCommand = de_DeleteSourceCredentialsCommand;
970
821
  const de_DeleteSourceCredentialsCommandError = async (output, context) => {
@@ -982,10 +833,9 @@ const de_DeleteSourceCredentialsCommandError = async (output, context) => {
982
833
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
983
834
  default:
984
835
  const parsedBody = parsedOutput.body;
985
- (0, smithy_client_1.throwDefaultError)({
836
+ return throwDefaultError({
986
837
  output,
987
838
  parsedBody,
988
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
989
839
  errorCode,
990
840
  });
991
841
  }
@@ -996,12 +846,12 @@ const de_DeleteWebhookCommand = async (output, context) => {
996
846
  }
997
847
  const data = await parseBody(output.body, context);
998
848
  let contents = {};
999
- contents = de_DeleteWebhookOutput(data, context);
849
+ contents = (0, smithy_client_1._json)(data);
1000
850
  const response = {
1001
851
  $metadata: deserializeMetadata(output),
1002
852
  ...contents,
1003
853
  };
1004
- return Promise.resolve(response);
854
+ return response;
1005
855
  };
1006
856
  exports.de_DeleteWebhookCommand = de_DeleteWebhookCommand;
1007
857
  const de_DeleteWebhookCommandError = async (output, context) => {
@@ -1022,10 +872,9 @@ const de_DeleteWebhookCommandError = async (output, context) => {
1022
872
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1023
873
  default:
1024
874
  const parsedBody = parsedOutput.body;
1025
- (0, smithy_client_1.throwDefaultError)({
875
+ return throwDefaultError({
1026
876
  output,
1027
877
  parsedBody,
1028
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
1029
878
  errorCode,
1030
879
  });
1031
880
  }
@@ -1041,7 +890,7 @@ const de_DescribeCodeCoveragesCommand = async (output, context) => {
1041
890
  $metadata: deserializeMetadata(output),
1042
891
  ...contents,
1043
892
  };
1044
- return Promise.resolve(response);
893
+ return response;
1045
894
  };
1046
895
  exports.de_DescribeCodeCoveragesCommand = de_DescribeCodeCoveragesCommand;
1047
896
  const de_DescribeCodeCoveragesCommandError = async (output, context) => {
@@ -1056,10 +905,9 @@ const de_DescribeCodeCoveragesCommandError = async (output, context) => {
1056
905
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
1057
906
  default:
1058
907
  const parsedBody = parsedOutput.body;
1059
- (0, smithy_client_1.throwDefaultError)({
908
+ return throwDefaultError({
1060
909
  output,
1061
910
  parsedBody,
1062
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
1063
911
  errorCode,
1064
912
  });
1065
913
  }
@@ -1075,7 +923,7 @@ const de_DescribeTestCasesCommand = async (output, context) => {
1075
923
  $metadata: deserializeMetadata(output),
1076
924
  ...contents,
1077
925
  };
1078
- return Promise.resolve(response);
926
+ return response;
1079
927
  };
1080
928
  exports.de_DescribeTestCasesCommand = de_DescribeTestCasesCommand;
1081
929
  const de_DescribeTestCasesCommandError = async (output, context) => {
@@ -1093,10 +941,9 @@ const de_DescribeTestCasesCommandError = async (output, context) => {
1093
941
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1094
942
  default:
1095
943
  const parsedBody = parsedOutput.body;
1096
- (0, smithy_client_1.throwDefaultError)({
944
+ return throwDefaultError({
1097
945
  output,
1098
946
  parsedBody,
1099
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
1100
947
  errorCode,
1101
948
  });
1102
949
  }
@@ -1107,12 +954,12 @@ const de_GetReportGroupTrendCommand = async (output, context) => {
1107
954
  }
1108
955
  const data = await parseBody(output.body, context);
1109
956
  let contents = {};
1110
- contents = de_GetReportGroupTrendOutput(data, context);
957
+ contents = (0, smithy_client_1._json)(data);
1111
958
  const response = {
1112
959
  $metadata: deserializeMetadata(output),
1113
960
  ...contents,
1114
961
  };
1115
- return Promise.resolve(response);
962
+ return response;
1116
963
  };
1117
964
  exports.de_GetReportGroupTrendCommand = de_GetReportGroupTrendCommand;
1118
965
  const de_GetReportGroupTrendCommandError = async (output, context) => {
@@ -1130,10 +977,9 @@ const de_GetReportGroupTrendCommandError = async (output, context) => {
1130
977
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1131
978
  default:
1132
979
  const parsedBody = parsedOutput.body;
1133
- (0, smithy_client_1.throwDefaultError)({
980
+ return throwDefaultError({
1134
981
  output,
1135
982
  parsedBody,
1136
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
1137
983
  errorCode,
1138
984
  });
1139
985
  }
@@ -1144,12 +990,12 @@ const de_GetResourcePolicyCommand = async (output, context) => {
1144
990
  }
1145
991
  const data = await parseBody(output.body, context);
1146
992
  let contents = {};
1147
- contents = de_GetResourcePolicyOutput(data, context);
993
+ contents = (0, smithy_client_1._json)(data);
1148
994
  const response = {
1149
995
  $metadata: deserializeMetadata(output),
1150
996
  ...contents,
1151
997
  };
1152
- return Promise.resolve(response);
998
+ return response;
1153
999
  };
1154
1000
  exports.de_GetResourcePolicyCommand = de_GetResourcePolicyCommand;
1155
1001
  const de_GetResourcePolicyCommandError = async (output, context) => {
@@ -1167,10 +1013,9 @@ const de_GetResourcePolicyCommandError = async (output, context) => {
1167
1013
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1168
1014
  default:
1169
1015
  const parsedBody = parsedOutput.body;
1170
- (0, smithy_client_1.throwDefaultError)({
1016
+ return throwDefaultError({
1171
1017
  output,
1172
1018
  parsedBody,
1173
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
1174
1019
  errorCode,
1175
1020
  });
1176
1021
  }
@@ -1181,12 +1026,12 @@ const de_ImportSourceCredentialsCommand = async (output, context) => {
1181
1026
  }
1182
1027
  const data = await parseBody(output.body, context);
1183
1028
  let contents = {};
1184
- contents = de_ImportSourceCredentialsOutput(data, context);
1029
+ contents = (0, smithy_client_1._json)(data);
1185
1030
  const response = {
1186
1031
  $metadata: deserializeMetadata(output),
1187
1032
  ...contents,
1188
1033
  };
1189
- return Promise.resolve(response);
1034
+ return response;
1190
1035
  };
1191
1036
  exports.de_ImportSourceCredentialsCommand = de_ImportSourceCredentialsCommand;
1192
1037
  const de_ImportSourceCredentialsCommandError = async (output, context) => {
@@ -1207,10 +1052,9 @@ const de_ImportSourceCredentialsCommandError = async (output, context) => {
1207
1052
  throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
1208
1053
  default:
1209
1054
  const parsedBody = parsedOutput.body;
1210
- (0, smithy_client_1.throwDefaultError)({
1055
+ return throwDefaultError({
1211
1056
  output,
1212
1057
  parsedBody,
1213
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
1214
1058
  errorCode,
1215
1059
  });
1216
1060
  }
@@ -1221,12 +1065,12 @@ const de_InvalidateProjectCacheCommand = async (output, context) => {
1221
1065
  }
1222
1066
  const data = await parseBody(output.body, context);
1223
1067
  let contents = {};
1224
- contents = de_InvalidateProjectCacheOutput(data, context);
1068
+ contents = (0, smithy_client_1._json)(data);
1225
1069
  const response = {
1226
1070
  $metadata: deserializeMetadata(output),
1227
1071
  ...contents,
1228
1072
  };
1229
- return Promise.resolve(response);
1073
+ return response;
1230
1074
  };
1231
1075
  exports.de_InvalidateProjectCacheCommand = de_InvalidateProjectCacheCommand;
1232
1076
  const de_InvalidateProjectCacheCommandError = async (output, context) => {
@@ -1244,10 +1088,9 @@ const de_InvalidateProjectCacheCommandError = async (output, context) => {
1244
1088
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1245
1089
  default:
1246
1090
  const parsedBody = parsedOutput.body;
1247
- (0, smithy_client_1.throwDefaultError)({
1091
+ return throwDefaultError({
1248
1092
  output,
1249
1093
  parsedBody,
1250
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
1251
1094
  errorCode,
1252
1095
  });
1253
1096
  }
@@ -1258,12 +1101,12 @@ const de_ListBuildBatchesCommand = async (output, context) => {
1258
1101
  }
1259
1102
  const data = await parseBody(output.body, context);
1260
1103
  let contents = {};
1261
- contents = de_ListBuildBatchesOutput(data, context);
1104
+ contents = (0, smithy_client_1._json)(data);
1262
1105
  const response = {
1263
1106
  $metadata: deserializeMetadata(output),
1264
1107
  ...contents,
1265
1108
  };
1266
- return Promise.resolve(response);
1109
+ return response;
1267
1110
  };
1268
1111
  exports.de_ListBuildBatchesCommand = de_ListBuildBatchesCommand;
1269
1112
  const de_ListBuildBatchesCommandError = async (output, context) => {
@@ -1278,10 +1121,9 @@ const de_ListBuildBatchesCommandError = async (output, context) => {
1278
1121
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
1279
1122
  default:
1280
1123
  const parsedBody = parsedOutput.body;
1281
- (0, smithy_client_1.throwDefaultError)({
1124
+ return throwDefaultError({
1282
1125
  output,
1283
1126
  parsedBody,
1284
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
1285
1127
  errorCode,
1286
1128
  });
1287
1129
  }
@@ -1292,12 +1134,12 @@ const de_ListBuildBatchesForProjectCommand = async (output, context) => {
1292
1134
  }
1293
1135
  const data = await parseBody(output.body, context);
1294
1136
  let contents = {};
1295
- contents = de_ListBuildBatchesForProjectOutput(data, context);
1137
+ contents = (0, smithy_client_1._json)(data);
1296
1138
  const response = {
1297
1139
  $metadata: deserializeMetadata(output),
1298
1140
  ...contents,
1299
1141
  };
1300
- return Promise.resolve(response);
1142
+ return response;
1301
1143
  };
1302
1144
  exports.de_ListBuildBatchesForProjectCommand = de_ListBuildBatchesForProjectCommand;
1303
1145
  const de_ListBuildBatchesForProjectCommandError = async (output, context) => {
@@ -1315,10 +1157,9 @@ const de_ListBuildBatchesForProjectCommandError = async (output, context) => {
1315
1157
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1316
1158
  default:
1317
1159
  const parsedBody = parsedOutput.body;
1318
- (0, smithy_client_1.throwDefaultError)({
1160
+ return throwDefaultError({
1319
1161
  output,
1320
1162
  parsedBody,
1321
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
1322
1163
  errorCode,
1323
1164
  });
1324
1165
  }
@@ -1329,12 +1170,12 @@ const de_ListBuildsCommand = async (output, context) => {
1329
1170
  }
1330
1171
  const data = await parseBody(output.body, context);
1331
1172
  let contents = {};
1332
- contents = de_ListBuildsOutput(data, context);
1173
+ contents = (0, smithy_client_1._json)(data);
1333
1174
  const response = {
1334
1175
  $metadata: deserializeMetadata(output),
1335
1176
  ...contents,
1336
1177
  };
1337
- return Promise.resolve(response);
1178
+ return response;
1338
1179
  };
1339
1180
  exports.de_ListBuildsCommand = de_ListBuildsCommand;
1340
1181
  const de_ListBuildsCommandError = async (output, context) => {
@@ -1349,10 +1190,9 @@ const de_ListBuildsCommandError = async (output, context) => {
1349
1190
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
1350
1191
  default:
1351
1192
  const parsedBody = parsedOutput.body;
1352
- (0, smithy_client_1.throwDefaultError)({
1193
+ return throwDefaultError({
1353
1194
  output,
1354
1195
  parsedBody,
1355
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
1356
1196
  errorCode,
1357
1197
  });
1358
1198
  }
@@ -1363,12 +1203,12 @@ const de_ListBuildsForProjectCommand = async (output, context) => {
1363
1203
  }
1364
1204
  const data = await parseBody(output.body, context);
1365
1205
  let contents = {};
1366
- contents = de_ListBuildsForProjectOutput(data, context);
1206
+ contents = (0, smithy_client_1._json)(data);
1367
1207
  const response = {
1368
1208
  $metadata: deserializeMetadata(output),
1369
1209
  ...contents,
1370
1210
  };
1371
- return Promise.resolve(response);
1211
+ return response;
1372
1212
  };
1373
1213
  exports.de_ListBuildsForProjectCommand = de_ListBuildsForProjectCommand;
1374
1214
  const de_ListBuildsForProjectCommandError = async (output, context) => {
@@ -1386,10 +1226,9 @@ const de_ListBuildsForProjectCommandError = async (output, context) => {
1386
1226
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1387
1227
  default:
1388
1228
  const parsedBody = parsedOutput.body;
1389
- (0, smithy_client_1.throwDefaultError)({
1229
+ return throwDefaultError({
1390
1230
  output,
1391
1231
  parsedBody,
1392
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
1393
1232
  errorCode,
1394
1233
  });
1395
1234
  }
@@ -1400,12 +1239,12 @@ const de_ListCuratedEnvironmentImagesCommand = async (output, context) => {
1400
1239
  }
1401
1240
  const data = await parseBody(output.body, context);
1402
1241
  let contents = {};
1403
- contents = de_ListCuratedEnvironmentImagesOutput(data, context);
1242
+ contents = (0, smithy_client_1._json)(data);
1404
1243
  const response = {
1405
1244
  $metadata: deserializeMetadata(output),
1406
1245
  ...contents,
1407
1246
  };
1408
- return Promise.resolve(response);
1247
+ return response;
1409
1248
  };
1410
1249
  exports.de_ListCuratedEnvironmentImagesCommand = de_ListCuratedEnvironmentImagesCommand;
1411
1250
  const de_ListCuratedEnvironmentImagesCommandError = async (output, context) => {
@@ -1415,10 +1254,9 @@ const de_ListCuratedEnvironmentImagesCommandError = async (output, context) => {
1415
1254
  };
1416
1255
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1417
1256
  const parsedBody = parsedOutput.body;
1418
- (0, smithy_client_1.throwDefaultError)({
1257
+ return throwDefaultError({
1419
1258
  output,
1420
1259
  parsedBody,
1421
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
1422
1260
  errorCode,
1423
1261
  });
1424
1262
  };
@@ -1428,12 +1266,12 @@ const de_ListProjectsCommand = async (output, context) => {
1428
1266
  }
1429
1267
  const data = await parseBody(output.body, context);
1430
1268
  let contents = {};
1431
- contents = de_ListProjectsOutput(data, context);
1269
+ contents = (0, smithy_client_1._json)(data);
1432
1270
  const response = {
1433
1271
  $metadata: deserializeMetadata(output),
1434
1272
  ...contents,
1435
1273
  };
1436
- return Promise.resolve(response);
1274
+ return response;
1437
1275
  };
1438
1276
  exports.de_ListProjectsCommand = de_ListProjectsCommand;
1439
1277
  const de_ListProjectsCommandError = async (output, context) => {
@@ -1448,10 +1286,9 @@ const de_ListProjectsCommandError = async (output, context) => {
1448
1286
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
1449
1287
  default:
1450
1288
  const parsedBody = parsedOutput.body;
1451
- (0, smithy_client_1.throwDefaultError)({
1289
+ return throwDefaultError({
1452
1290
  output,
1453
1291
  parsedBody,
1454
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
1455
1292
  errorCode,
1456
1293
  });
1457
1294
  }
@@ -1462,12 +1299,12 @@ const de_ListReportGroupsCommand = async (output, context) => {
1462
1299
  }
1463
1300
  const data = await parseBody(output.body, context);
1464
1301
  let contents = {};
1465
- contents = de_ListReportGroupsOutput(data, context);
1302
+ contents = (0, smithy_client_1._json)(data);
1466
1303
  const response = {
1467
1304
  $metadata: deserializeMetadata(output),
1468
1305
  ...contents,
1469
1306
  };
1470
- return Promise.resolve(response);
1307
+ return response;
1471
1308
  };
1472
1309
  exports.de_ListReportGroupsCommand = de_ListReportGroupsCommand;
1473
1310
  const de_ListReportGroupsCommandError = async (output, context) => {
@@ -1482,10 +1319,9 @@ const de_ListReportGroupsCommandError = async (output, context) => {
1482
1319
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
1483
1320
  default:
1484
1321
  const parsedBody = parsedOutput.body;
1485
- (0, smithy_client_1.throwDefaultError)({
1322
+ return throwDefaultError({
1486
1323
  output,
1487
1324
  parsedBody,
1488
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
1489
1325
  errorCode,
1490
1326
  });
1491
1327
  }
@@ -1496,12 +1332,12 @@ const de_ListReportsCommand = async (output, context) => {
1496
1332
  }
1497
1333
  const data = await parseBody(output.body, context);
1498
1334
  let contents = {};
1499
- contents = de_ListReportsOutput(data, context);
1335
+ contents = (0, smithy_client_1._json)(data);
1500
1336
  const response = {
1501
1337
  $metadata: deserializeMetadata(output),
1502
1338
  ...contents,
1503
1339
  };
1504
- return Promise.resolve(response);
1340
+ return response;
1505
1341
  };
1506
1342
  exports.de_ListReportsCommand = de_ListReportsCommand;
1507
1343
  const de_ListReportsCommandError = async (output, context) => {
@@ -1516,10 +1352,9 @@ const de_ListReportsCommandError = async (output, context) => {
1516
1352
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
1517
1353
  default:
1518
1354
  const parsedBody = parsedOutput.body;
1519
- (0, smithy_client_1.throwDefaultError)({
1355
+ return throwDefaultError({
1520
1356
  output,
1521
1357
  parsedBody,
1522
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
1523
1358
  errorCode,
1524
1359
  });
1525
1360
  }
@@ -1530,12 +1365,12 @@ const de_ListReportsForReportGroupCommand = async (output, context) => {
1530
1365
  }
1531
1366
  const data = await parseBody(output.body, context);
1532
1367
  let contents = {};
1533
- contents = de_ListReportsForReportGroupOutput(data, context);
1368
+ contents = (0, smithy_client_1._json)(data);
1534
1369
  const response = {
1535
1370
  $metadata: deserializeMetadata(output),
1536
1371
  ...contents,
1537
1372
  };
1538
- return Promise.resolve(response);
1373
+ return response;
1539
1374
  };
1540
1375
  exports.de_ListReportsForReportGroupCommand = de_ListReportsForReportGroupCommand;
1541
1376
  const de_ListReportsForReportGroupCommandError = async (output, context) => {
@@ -1553,10 +1388,9 @@ const de_ListReportsForReportGroupCommandError = async (output, context) => {
1553
1388
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1554
1389
  default:
1555
1390
  const parsedBody = parsedOutput.body;
1556
- (0, smithy_client_1.throwDefaultError)({
1391
+ return throwDefaultError({
1557
1392
  output,
1558
1393
  parsedBody,
1559
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
1560
1394
  errorCode,
1561
1395
  });
1562
1396
  }
@@ -1567,12 +1401,12 @@ const de_ListSharedProjectsCommand = async (output, context) => {
1567
1401
  }
1568
1402
  const data = await parseBody(output.body, context);
1569
1403
  let contents = {};
1570
- contents = de_ListSharedProjectsOutput(data, context);
1404
+ contents = (0, smithy_client_1._json)(data);
1571
1405
  const response = {
1572
1406
  $metadata: deserializeMetadata(output),
1573
1407
  ...contents,
1574
1408
  };
1575
- return Promise.resolve(response);
1409
+ return response;
1576
1410
  };
1577
1411
  exports.de_ListSharedProjectsCommand = de_ListSharedProjectsCommand;
1578
1412
  const de_ListSharedProjectsCommandError = async (output, context) => {
@@ -1587,10 +1421,9 @@ const de_ListSharedProjectsCommandError = async (output, context) => {
1587
1421
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
1588
1422
  default:
1589
1423
  const parsedBody = parsedOutput.body;
1590
- (0, smithy_client_1.throwDefaultError)({
1424
+ return throwDefaultError({
1591
1425
  output,
1592
1426
  parsedBody,
1593
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
1594
1427
  errorCode,
1595
1428
  });
1596
1429
  }
@@ -1601,12 +1434,12 @@ const de_ListSharedReportGroupsCommand = async (output, context) => {
1601
1434
  }
1602
1435
  const data = await parseBody(output.body, context);
1603
1436
  let contents = {};
1604
- contents = de_ListSharedReportGroupsOutput(data, context);
1437
+ contents = (0, smithy_client_1._json)(data);
1605
1438
  const response = {
1606
1439
  $metadata: deserializeMetadata(output),
1607
1440
  ...contents,
1608
1441
  };
1609
- return Promise.resolve(response);
1442
+ return response;
1610
1443
  };
1611
1444
  exports.de_ListSharedReportGroupsCommand = de_ListSharedReportGroupsCommand;
1612
1445
  const de_ListSharedReportGroupsCommandError = async (output, context) => {
@@ -1621,10 +1454,9 @@ const de_ListSharedReportGroupsCommandError = async (output, context) => {
1621
1454
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
1622
1455
  default:
1623
1456
  const parsedBody = parsedOutput.body;
1624
- (0, smithy_client_1.throwDefaultError)({
1457
+ return throwDefaultError({
1625
1458
  output,
1626
1459
  parsedBody,
1627
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
1628
1460
  errorCode,
1629
1461
  });
1630
1462
  }
@@ -1635,12 +1467,12 @@ const de_ListSourceCredentialsCommand = async (output, context) => {
1635
1467
  }
1636
1468
  const data = await parseBody(output.body, context);
1637
1469
  let contents = {};
1638
- contents = de_ListSourceCredentialsOutput(data, context);
1470
+ contents = (0, smithy_client_1._json)(data);
1639
1471
  const response = {
1640
1472
  $metadata: deserializeMetadata(output),
1641
1473
  ...contents,
1642
1474
  };
1643
- return Promise.resolve(response);
1475
+ return response;
1644
1476
  };
1645
1477
  exports.de_ListSourceCredentialsCommand = de_ListSourceCredentialsCommand;
1646
1478
  const de_ListSourceCredentialsCommandError = async (output, context) => {
@@ -1655,10 +1487,9 @@ const de_ListSourceCredentialsCommandError = async (output, context) => {
1655
1487
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
1656
1488
  default:
1657
1489
  const parsedBody = parsedOutput.body;
1658
- (0, smithy_client_1.throwDefaultError)({
1490
+ return throwDefaultError({
1659
1491
  output,
1660
1492
  parsedBody,
1661
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
1662
1493
  errorCode,
1663
1494
  });
1664
1495
  }
@@ -1669,12 +1500,12 @@ const de_PutResourcePolicyCommand = async (output, context) => {
1669
1500
  }
1670
1501
  const data = await parseBody(output.body, context);
1671
1502
  let contents = {};
1672
- contents = de_PutResourcePolicyOutput(data, context);
1503
+ contents = (0, smithy_client_1._json)(data);
1673
1504
  const response = {
1674
1505
  $metadata: deserializeMetadata(output),
1675
1506
  ...contents,
1676
1507
  };
1677
- return Promise.resolve(response);
1508
+ return response;
1678
1509
  };
1679
1510
  exports.de_PutResourcePolicyCommand = de_PutResourcePolicyCommand;
1680
1511
  const de_PutResourcePolicyCommandError = async (output, context) => {
@@ -1692,10 +1523,9 @@ const de_PutResourcePolicyCommandError = async (output, context) => {
1692
1523
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1693
1524
  default:
1694
1525
  const parsedBody = parsedOutput.body;
1695
- (0, smithy_client_1.throwDefaultError)({
1526
+ return throwDefaultError({
1696
1527
  output,
1697
1528
  parsedBody,
1698
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
1699
1529
  errorCode,
1700
1530
  });
1701
1531
  }
@@ -1711,7 +1541,7 @@ const de_RetryBuildCommand = async (output, context) => {
1711
1541
  $metadata: deserializeMetadata(output),
1712
1542
  ...contents,
1713
1543
  };
1714
- return Promise.resolve(response);
1544
+ return response;
1715
1545
  };
1716
1546
  exports.de_RetryBuildCommand = de_RetryBuildCommand;
1717
1547
  const de_RetryBuildCommandError = async (output, context) => {
@@ -1732,10 +1562,9 @@ const de_RetryBuildCommandError = async (output, context) => {
1732
1562
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1733
1563
  default:
1734
1564
  const parsedBody = parsedOutput.body;
1735
- (0, smithy_client_1.throwDefaultError)({
1565
+ return throwDefaultError({
1736
1566
  output,
1737
1567
  parsedBody,
1738
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
1739
1568
  errorCode,
1740
1569
  });
1741
1570
  }
@@ -1751,7 +1580,7 @@ const de_RetryBuildBatchCommand = async (output, context) => {
1751
1580
  $metadata: deserializeMetadata(output),
1752
1581
  ...contents,
1753
1582
  };
1754
- return Promise.resolve(response);
1583
+ return response;
1755
1584
  };
1756
1585
  exports.de_RetryBuildBatchCommand = de_RetryBuildBatchCommand;
1757
1586
  const de_RetryBuildBatchCommandError = async (output, context) => {
@@ -1769,10 +1598,9 @@ const de_RetryBuildBatchCommandError = async (output, context) => {
1769
1598
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1770
1599
  default:
1771
1600
  const parsedBody = parsedOutput.body;
1772
- (0, smithy_client_1.throwDefaultError)({
1601
+ return throwDefaultError({
1773
1602
  output,
1774
1603
  parsedBody,
1775
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
1776
1604
  errorCode,
1777
1605
  });
1778
1606
  }
@@ -1788,7 +1616,7 @@ const de_StartBuildCommand = async (output, context) => {
1788
1616
  $metadata: deserializeMetadata(output),
1789
1617
  ...contents,
1790
1618
  };
1791
- return Promise.resolve(response);
1619
+ return response;
1792
1620
  };
1793
1621
  exports.de_StartBuildCommand = de_StartBuildCommand;
1794
1622
  const de_StartBuildCommandError = async (output, context) => {
@@ -1809,10 +1637,9 @@ const de_StartBuildCommandError = async (output, context) => {
1809
1637
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1810
1638
  default:
1811
1639
  const parsedBody = parsedOutput.body;
1812
- (0, smithy_client_1.throwDefaultError)({
1640
+ return throwDefaultError({
1813
1641
  output,
1814
1642
  parsedBody,
1815
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
1816
1643
  errorCode,
1817
1644
  });
1818
1645
  }
@@ -1828,7 +1655,7 @@ const de_StartBuildBatchCommand = async (output, context) => {
1828
1655
  $metadata: deserializeMetadata(output),
1829
1656
  ...contents,
1830
1657
  };
1831
- return Promise.resolve(response);
1658
+ return response;
1832
1659
  };
1833
1660
  exports.de_StartBuildBatchCommand = de_StartBuildBatchCommand;
1834
1661
  const de_StartBuildBatchCommandError = async (output, context) => {
@@ -1846,10 +1673,9 @@ const de_StartBuildBatchCommandError = async (output, context) => {
1846
1673
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1847
1674
  default:
1848
1675
  const parsedBody = parsedOutput.body;
1849
- (0, smithy_client_1.throwDefaultError)({
1676
+ return throwDefaultError({
1850
1677
  output,
1851
1678
  parsedBody,
1852
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
1853
1679
  errorCode,
1854
1680
  });
1855
1681
  }
@@ -1865,7 +1691,7 @@ const de_StopBuildCommand = async (output, context) => {
1865
1691
  $metadata: deserializeMetadata(output),
1866
1692
  ...contents,
1867
1693
  };
1868
- return Promise.resolve(response);
1694
+ return response;
1869
1695
  };
1870
1696
  exports.de_StopBuildCommand = de_StopBuildCommand;
1871
1697
  const de_StopBuildCommandError = async (output, context) => {
@@ -1883,10 +1709,9 @@ const de_StopBuildCommandError = async (output, context) => {
1883
1709
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1884
1710
  default:
1885
1711
  const parsedBody = parsedOutput.body;
1886
- (0, smithy_client_1.throwDefaultError)({
1712
+ return throwDefaultError({
1887
1713
  output,
1888
1714
  parsedBody,
1889
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
1890
1715
  errorCode,
1891
1716
  });
1892
1717
  }
@@ -1902,7 +1727,7 @@ const de_StopBuildBatchCommand = async (output, context) => {
1902
1727
  $metadata: deserializeMetadata(output),
1903
1728
  ...contents,
1904
1729
  };
1905
- return Promise.resolve(response);
1730
+ return response;
1906
1731
  };
1907
1732
  exports.de_StopBuildBatchCommand = de_StopBuildBatchCommand;
1908
1733
  const de_StopBuildBatchCommandError = async (output, context) => {
@@ -1920,10 +1745,9 @@ const de_StopBuildBatchCommandError = async (output, context) => {
1920
1745
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1921
1746
  default:
1922
1747
  const parsedBody = parsedOutput.body;
1923
- (0, smithy_client_1.throwDefaultError)({
1748
+ return throwDefaultError({
1924
1749
  output,
1925
1750
  parsedBody,
1926
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
1927
1751
  errorCode,
1928
1752
  });
1929
1753
  }
@@ -1939,7 +1763,7 @@ const de_UpdateProjectCommand = async (output, context) => {
1939
1763
  $metadata: deserializeMetadata(output),
1940
1764
  ...contents,
1941
1765
  };
1942
- return Promise.resolve(response);
1766
+ return response;
1943
1767
  };
1944
1768
  exports.de_UpdateProjectCommand = de_UpdateProjectCommand;
1945
1769
  const de_UpdateProjectCommandError = async (output, context) => {
@@ -1957,10 +1781,9 @@ const de_UpdateProjectCommandError = async (output, context) => {
1957
1781
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1958
1782
  default:
1959
1783
  const parsedBody = parsedOutput.body;
1960
- (0, smithy_client_1.throwDefaultError)({
1784
+ return throwDefaultError({
1961
1785
  output,
1962
1786
  parsedBody,
1963
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
1964
1787
  errorCode,
1965
1788
  });
1966
1789
  }
@@ -1971,12 +1794,12 @@ const de_UpdateProjectVisibilityCommand = async (output, context) => {
1971
1794
  }
1972
1795
  const data = await parseBody(output.body, context);
1973
1796
  let contents = {};
1974
- contents = de_UpdateProjectVisibilityOutput(data, context);
1797
+ contents = (0, smithy_client_1._json)(data);
1975
1798
  const response = {
1976
1799
  $metadata: deserializeMetadata(output),
1977
1800
  ...contents,
1978
1801
  };
1979
- return Promise.resolve(response);
1802
+ return response;
1980
1803
  };
1981
1804
  exports.de_UpdateProjectVisibilityCommand = de_UpdateProjectVisibilityCommand;
1982
1805
  const de_UpdateProjectVisibilityCommandError = async (output, context) => {
@@ -1994,10 +1817,9 @@ const de_UpdateProjectVisibilityCommandError = async (output, context) => {
1994
1817
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1995
1818
  default:
1996
1819
  const parsedBody = parsedOutput.body;
1997
- (0, smithy_client_1.throwDefaultError)({
1820
+ return throwDefaultError({
1998
1821
  output,
1999
1822
  parsedBody,
2000
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
2001
1823
  errorCode,
2002
1824
  });
2003
1825
  }
@@ -2013,7 +1835,7 @@ const de_UpdateReportGroupCommand = async (output, context) => {
2013
1835
  $metadata: deserializeMetadata(output),
2014
1836
  ...contents,
2015
1837
  };
2016
- return Promise.resolve(response);
1838
+ return response;
2017
1839
  };
2018
1840
  exports.de_UpdateReportGroupCommand = de_UpdateReportGroupCommand;
2019
1841
  const de_UpdateReportGroupCommandError = async (output, context) => {
@@ -2031,10 +1853,9 @@ const de_UpdateReportGroupCommandError = async (output, context) => {
2031
1853
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2032
1854
  default:
2033
1855
  const parsedBody = parsedOutput.body;
2034
- (0, smithy_client_1.throwDefaultError)({
1856
+ return throwDefaultError({
2035
1857
  output,
2036
1858
  parsedBody,
2037
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
2038
1859
  errorCode,
2039
1860
  });
2040
1861
  }
@@ -2050,7 +1871,7 @@ const de_UpdateWebhookCommand = async (output, context) => {
2050
1871
  $metadata: deserializeMetadata(output),
2051
1872
  ...contents,
2052
1873
  };
2053
- return Promise.resolve(response);
1874
+ return response;
2054
1875
  };
2055
1876
  exports.de_UpdateWebhookCommand = de_UpdateWebhookCommand;
2056
1877
  const de_UpdateWebhookCommandError = async (output, context) => {
@@ -2071,17 +1892,16 @@ const de_UpdateWebhookCommandError = async (output, context) => {
2071
1892
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2072
1893
  default:
2073
1894
  const parsedBody = parsedOutput.body;
2074
- (0, smithy_client_1.throwDefaultError)({
1895
+ return throwDefaultError({
2075
1896
  output,
2076
1897
  parsedBody,
2077
- exceptionCtor: CodeBuildServiceException_1.CodeBuildServiceException,
2078
1898
  errorCode,
2079
1899
  });
2080
1900
  }
2081
1901
  };
2082
1902
  const de_AccountLimitExceededExceptionRes = async (parsedOutput, context) => {
2083
1903
  const body = parsedOutput.body;
2084
- const deserialized = de_AccountLimitExceededException(body, context);
1904
+ const deserialized = (0, smithy_client_1._json)(body);
2085
1905
  const exception = new models_0_1.AccountLimitExceededException({
2086
1906
  $metadata: deserializeMetadata(parsedOutput),
2087
1907
  ...deserialized,
@@ -2090,7 +1910,7 @@ const de_AccountLimitExceededExceptionRes = async (parsedOutput, context) => {
2090
1910
  };
2091
1911
  const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
2092
1912
  const body = parsedOutput.body;
2093
- const deserialized = de_InvalidInputException(body, context);
1913
+ const deserialized = (0, smithy_client_1._json)(body);
2094
1914
  const exception = new models_0_1.InvalidInputException({
2095
1915
  $metadata: deserializeMetadata(parsedOutput),
2096
1916
  ...deserialized,
@@ -2099,7 +1919,7 @@ const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
2099
1919
  };
2100
1920
  const de_OAuthProviderExceptionRes = async (parsedOutput, context) => {
2101
1921
  const body = parsedOutput.body;
2102
- const deserialized = de_OAuthProviderException(body, context);
1922
+ const deserialized = (0, smithy_client_1._json)(body);
2103
1923
  const exception = new models_0_1.OAuthProviderException({
2104
1924
  $metadata: deserializeMetadata(parsedOutput),
2105
1925
  ...deserialized,
@@ -2108,7 +1928,7 @@ const de_OAuthProviderExceptionRes = async (parsedOutput, context) => {
2108
1928
  };
2109
1929
  const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2110
1930
  const body = parsedOutput.body;
2111
- const deserialized = de_ResourceAlreadyExistsException(body, context);
1931
+ const deserialized = (0, smithy_client_1._json)(body);
2112
1932
  const exception = new models_0_1.ResourceAlreadyExistsException({
2113
1933
  $metadata: deserializeMetadata(parsedOutput),
2114
1934
  ...deserialized,
@@ -2117,2017 +1937,428 @@ const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2117
1937
  };
2118
1938
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2119
1939
  const body = parsedOutput.body;
2120
- const deserialized = de_ResourceNotFoundException(body, context);
1940
+ const deserialized = (0, smithy_client_1._json)(body);
2121
1941
  const exception = new models_0_1.ResourceNotFoundException({
2122
1942
  $metadata: deserializeMetadata(parsedOutput),
2123
1943
  ...deserialized,
2124
1944
  });
2125
1945
  return (0, smithy_client_1.decorateServiceException)(exception, body);
2126
1946
  };
2127
- const se_BatchDeleteBuildsInput = (input, context) => {
2128
- return {
2129
- ...(input.ids != null && { ids: se_BuildIds(input.ids, context) }),
2130
- };
1947
+ const se_DescribeCodeCoveragesInput = (input, context) => {
1948
+ return (0, smithy_client_1.take)(input, {
1949
+ maxLineCoveragePercentage: smithy_client_1.serializeFloat,
1950
+ maxResults: [],
1951
+ minLineCoveragePercentage: smithy_client_1.serializeFloat,
1952
+ nextToken: [],
1953
+ reportArn: [],
1954
+ sortBy: [],
1955
+ sortOrder: [],
1956
+ });
2131
1957
  };
2132
- const se_BatchGetBuildBatchesInput = (input, context) => {
2133
- return {
2134
- ...(input.ids != null && { ids: se_BuildBatchIds(input.ids, context) }),
2135
- };
1958
+ const de_BatchGetBuildBatchesOutput = (output, context) => {
1959
+ return (0, smithy_client_1.take)(output, {
1960
+ buildBatches: (_) => de_BuildBatches(_, context),
1961
+ buildBatchesNotFound: smithy_client_1._json,
1962
+ });
2136
1963
  };
2137
- const se_BatchGetBuildsInput = (input, context) => {
2138
- return {
2139
- ...(input.ids != null && { ids: se_BuildIds(input.ids, context) }),
2140
- };
1964
+ const de_BatchGetBuildsOutput = (output, context) => {
1965
+ return (0, smithy_client_1.take)(output, {
1966
+ builds: (_) => de_Builds(_, context),
1967
+ buildsNotFound: smithy_client_1._json,
1968
+ });
2141
1969
  };
2142
- const se_BatchGetProjectsInput = (input, context) => {
2143
- return {
2144
- ...(input.names != null && { names: se_ProjectNames(input.names, context) }),
2145
- };
1970
+ const de_BatchGetProjectsOutput = (output, context) => {
1971
+ return (0, smithy_client_1.take)(output, {
1972
+ projects: (_) => de_Projects(_, context),
1973
+ projectsNotFound: smithy_client_1._json,
1974
+ });
2146
1975
  };
2147
- const se_BatchGetReportGroupsInput = (input, context) => {
2148
- return {
2149
- ...(input.reportGroupArns != null && { reportGroupArns: se_ReportGroupArns(input.reportGroupArns, context) }),
2150
- };
1976
+ const de_BatchGetReportGroupsOutput = (output, context) => {
1977
+ return (0, smithy_client_1.take)(output, {
1978
+ reportGroups: (_) => de_ReportGroups(_, context),
1979
+ reportGroupsNotFound: smithy_client_1._json,
1980
+ });
2151
1981
  };
2152
- const se_BatchGetReportsInput = (input, context) => {
2153
- return {
2154
- ...(input.reportArns != null && { reportArns: se_ReportArns(input.reportArns, context) }),
2155
- };
1982
+ const de_BatchGetReportsOutput = (output, context) => {
1983
+ return (0, smithy_client_1.take)(output, {
1984
+ reports: (_) => de_Reports(_, context),
1985
+ reportsNotFound: smithy_client_1._json,
1986
+ });
2156
1987
  };
2157
- const se_BatchRestrictions = (input, context) => {
2158
- return {
2159
- ...(input.computeTypesAllowed != null && {
2160
- computeTypesAllowed: se_ComputeTypesAllowed(input.computeTypesAllowed, context),
2161
- }),
2162
- ...(input.maximumBuildsAllowed != null && { maximumBuildsAllowed: input.maximumBuildsAllowed }),
2163
- };
1988
+ const de_Build = (output, context) => {
1989
+ return (0, smithy_client_1.take)(output, {
1990
+ arn: smithy_client_1.expectString,
1991
+ artifacts: smithy_client_1._json,
1992
+ buildBatchArn: smithy_client_1.expectString,
1993
+ buildComplete: smithy_client_1.expectBoolean,
1994
+ buildNumber: smithy_client_1.expectLong,
1995
+ buildStatus: smithy_client_1.expectString,
1996
+ cache: smithy_client_1._json,
1997
+ currentPhase: smithy_client_1.expectString,
1998
+ debugSession: smithy_client_1._json,
1999
+ encryptionKey: smithy_client_1.expectString,
2000
+ endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2001
+ environment: smithy_client_1._json,
2002
+ exportedEnvironmentVariables: smithy_client_1._json,
2003
+ fileSystemLocations: smithy_client_1._json,
2004
+ id: smithy_client_1.expectString,
2005
+ initiator: smithy_client_1.expectString,
2006
+ logs: smithy_client_1._json,
2007
+ networkInterface: smithy_client_1._json,
2008
+ phases: (_) => de_BuildPhases(_, context),
2009
+ projectName: smithy_client_1.expectString,
2010
+ queuedTimeoutInMinutes: smithy_client_1.expectInt32,
2011
+ reportArns: smithy_client_1._json,
2012
+ resolvedSourceVersion: smithy_client_1.expectString,
2013
+ secondaryArtifacts: smithy_client_1._json,
2014
+ secondarySourceVersions: smithy_client_1._json,
2015
+ secondarySources: smithy_client_1._json,
2016
+ serviceRole: smithy_client_1.expectString,
2017
+ source: smithy_client_1._json,
2018
+ sourceVersion: smithy_client_1.expectString,
2019
+ startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2020
+ timeoutInMinutes: smithy_client_1.expectInt32,
2021
+ vpcConfig: smithy_client_1._json,
2022
+ });
2164
2023
  };
2165
- const se_BuildBatchFilter = (input, context) => {
2166
- return {
2167
- ...(input.status != null && { status: input.status }),
2168
- };
2024
+ const de_BuildBatch = (output, context) => {
2025
+ return (0, smithy_client_1.take)(output, {
2026
+ arn: smithy_client_1.expectString,
2027
+ artifacts: smithy_client_1._json,
2028
+ buildBatchConfig: smithy_client_1._json,
2029
+ buildBatchNumber: smithy_client_1.expectLong,
2030
+ buildBatchStatus: smithy_client_1.expectString,
2031
+ buildGroups: (_) => de_BuildGroups(_, context),
2032
+ buildTimeoutInMinutes: smithy_client_1.expectInt32,
2033
+ cache: smithy_client_1._json,
2034
+ complete: smithy_client_1.expectBoolean,
2035
+ currentPhase: smithy_client_1.expectString,
2036
+ debugSessionEnabled: smithy_client_1.expectBoolean,
2037
+ encryptionKey: smithy_client_1.expectString,
2038
+ endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2039
+ environment: smithy_client_1._json,
2040
+ fileSystemLocations: smithy_client_1._json,
2041
+ id: smithy_client_1.expectString,
2042
+ initiator: smithy_client_1.expectString,
2043
+ logConfig: smithy_client_1._json,
2044
+ phases: (_) => de_BuildBatchPhases(_, context),
2045
+ projectName: smithy_client_1.expectString,
2046
+ queuedTimeoutInMinutes: smithy_client_1.expectInt32,
2047
+ resolvedSourceVersion: smithy_client_1.expectString,
2048
+ secondaryArtifacts: smithy_client_1._json,
2049
+ secondarySourceVersions: smithy_client_1._json,
2050
+ secondarySources: smithy_client_1._json,
2051
+ serviceRole: smithy_client_1.expectString,
2052
+ source: smithy_client_1._json,
2053
+ sourceVersion: smithy_client_1.expectString,
2054
+ startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2055
+ vpcConfig: smithy_client_1._json,
2056
+ });
2169
2057
  };
2170
- const se_BuildBatchIds = (input, context) => {
2171
- return input
2058
+ const de_BuildBatches = (output, context) => {
2059
+ const retVal = (output || [])
2172
2060
  .filter((e) => e != null)
2173
2061
  .map((entry) => {
2174
- return entry;
2062
+ return de_BuildBatch(entry, context);
2063
+ });
2064
+ return retVal;
2065
+ };
2066
+ const de_BuildBatchPhase = (output, context) => {
2067
+ return (0, smithy_client_1.take)(output, {
2068
+ contexts: smithy_client_1._json,
2069
+ durationInSeconds: smithy_client_1.expectLong,
2070
+ endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2071
+ phaseStatus: smithy_client_1.expectString,
2072
+ phaseType: smithy_client_1.expectString,
2073
+ startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2175
2074
  });
2176
2075
  };
2177
- const se_BuildIds = (input, context) => {
2178
- return input
2076
+ const de_BuildBatchPhases = (output, context) => {
2077
+ const retVal = (output || [])
2179
2078
  .filter((e) => e != null)
2180
2079
  .map((entry) => {
2181
- return entry;
2080
+ return de_BuildBatchPhase(entry, context);
2182
2081
  });
2082
+ return retVal;
2183
2083
  };
2184
- const se_BuildStatusConfig = (input, context) => {
2185
- return {
2186
- ...(input.context != null && { context: input.context }),
2187
- ...(input.targetUrl != null && { targetUrl: input.targetUrl }),
2188
- };
2189
- };
2190
- const se_CloudWatchLogsConfig = (input, context) => {
2191
- return {
2192
- ...(input.groupName != null && { groupName: input.groupName }),
2193
- ...(input.status != null && { status: input.status }),
2194
- ...(input.streamName != null && { streamName: input.streamName }),
2195
- };
2084
+ const de_BuildGroup = (output, context) => {
2085
+ return (0, smithy_client_1.take)(output, {
2086
+ currentBuildSummary: (_) => de_BuildSummary(_, context),
2087
+ dependsOn: smithy_client_1._json,
2088
+ identifier: smithy_client_1.expectString,
2089
+ ignoreFailure: smithy_client_1.expectBoolean,
2090
+ priorBuildSummaryList: (_) => de_BuildSummaries(_, context),
2091
+ });
2196
2092
  };
2197
- const se_ComputeTypesAllowed = (input, context) => {
2198
- return input
2093
+ const de_BuildGroups = (output, context) => {
2094
+ const retVal = (output || [])
2199
2095
  .filter((e) => e != null)
2200
2096
  .map((entry) => {
2201
- return entry;
2097
+ return de_BuildGroup(entry, context);
2202
2098
  });
2099
+ return retVal;
2203
2100
  };
2204
- const se_CreateProjectInput = (input, context) => {
2205
- return {
2206
- ...(input.artifacts != null && { artifacts: se_ProjectArtifacts(input.artifacts, context) }),
2207
- ...(input.badgeEnabled != null && { badgeEnabled: input.badgeEnabled }),
2208
- ...(input.buildBatchConfig != null && {
2209
- buildBatchConfig: se_ProjectBuildBatchConfig(input.buildBatchConfig, context),
2210
- }),
2211
- ...(input.cache != null && { cache: se_ProjectCache(input.cache, context) }),
2212
- ...(input.concurrentBuildLimit != null && { concurrentBuildLimit: input.concurrentBuildLimit }),
2213
- ...(input.description != null && { description: input.description }),
2214
- ...(input.encryptionKey != null && { encryptionKey: input.encryptionKey }),
2215
- ...(input.environment != null && { environment: se_ProjectEnvironment(input.environment, context) }),
2216
- ...(input.fileSystemLocations != null && {
2217
- fileSystemLocations: se_ProjectFileSystemLocations(input.fileSystemLocations, context),
2218
- }),
2219
- ...(input.logsConfig != null && { logsConfig: se_LogsConfig(input.logsConfig, context) }),
2220
- ...(input.name != null && { name: input.name }),
2221
- ...(input.queuedTimeoutInMinutes != null && { queuedTimeoutInMinutes: input.queuedTimeoutInMinutes }),
2222
- ...(input.secondaryArtifacts != null && {
2223
- secondaryArtifacts: se_ProjectArtifactsList(input.secondaryArtifacts, context),
2224
- }),
2225
- ...(input.secondarySourceVersions != null && {
2226
- secondarySourceVersions: se_ProjectSecondarySourceVersions(input.secondarySourceVersions, context),
2227
- }),
2228
- ...(input.secondarySources != null && { secondarySources: se_ProjectSources(input.secondarySources, context) }),
2229
- ...(input.serviceRole != null && { serviceRole: input.serviceRole }),
2230
- ...(input.source != null && { source: se_ProjectSource(input.source, context) }),
2231
- ...(input.sourceVersion != null && { sourceVersion: input.sourceVersion }),
2232
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
2233
- ...(input.timeoutInMinutes != null && { timeoutInMinutes: input.timeoutInMinutes }),
2234
- ...(input.vpcConfig != null && { vpcConfig: se_VpcConfig(input.vpcConfig, context) }),
2235
- };
2101
+ const de_BuildPhase = (output, context) => {
2102
+ return (0, smithy_client_1.take)(output, {
2103
+ contexts: smithy_client_1._json,
2104
+ durationInSeconds: smithy_client_1.expectLong,
2105
+ endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2106
+ phaseStatus: smithy_client_1.expectString,
2107
+ phaseType: smithy_client_1.expectString,
2108
+ startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2109
+ });
2236
2110
  };
2237
- const se_CreateReportGroupInput = (input, context) => {
2238
- return {
2239
- ...(input.exportConfig != null && { exportConfig: se_ReportExportConfig(input.exportConfig, context) }),
2240
- ...(input.name != null && { name: input.name }),
2241
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
2242
- ...(input.type != null && { type: input.type }),
2243
- };
2111
+ const de_BuildPhases = (output, context) => {
2112
+ const retVal = (output || [])
2113
+ .filter((e) => e != null)
2114
+ .map((entry) => {
2115
+ return de_BuildPhase(entry, context);
2116
+ });
2117
+ return retVal;
2244
2118
  };
2245
- const se_CreateWebhookInput = (input, context) => {
2246
- return {
2247
- ...(input.branchFilter != null && { branchFilter: input.branchFilter }),
2248
- ...(input.buildType != null && { buildType: input.buildType }),
2249
- ...(input.filterGroups != null && { filterGroups: se_FilterGroups(input.filterGroups, context) }),
2250
- ...(input.projectName != null && { projectName: input.projectName }),
2251
- };
2119
+ const de_Builds = (output, context) => {
2120
+ const retVal = (output || [])
2121
+ .filter((e) => e != null)
2122
+ .map((entry) => {
2123
+ return de_Build(entry, context);
2124
+ });
2125
+ return retVal;
2252
2126
  };
2253
- const se_DeleteBuildBatchInput = (input, context) => {
2254
- return {
2255
- ...(input.id != null && { id: input.id }),
2256
- };
2127
+ const de_BuildSummaries = (output, context) => {
2128
+ const retVal = (output || [])
2129
+ .filter((e) => e != null)
2130
+ .map((entry) => {
2131
+ return de_BuildSummary(entry, context);
2132
+ });
2133
+ return retVal;
2257
2134
  };
2258
- const se_DeleteProjectInput = (input, context) => {
2259
- return {
2260
- ...(input.name != null && { name: input.name }),
2261
- };
2135
+ const de_BuildSummary = (output, context) => {
2136
+ return (0, smithy_client_1.take)(output, {
2137
+ arn: smithy_client_1.expectString,
2138
+ buildStatus: smithy_client_1.expectString,
2139
+ primaryArtifact: smithy_client_1._json,
2140
+ requestedOn: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2141
+ secondaryArtifacts: smithy_client_1._json,
2142
+ });
2262
2143
  };
2263
- const se_DeleteReportGroupInput = (input, context) => {
2264
- return {
2265
- ...(input.arn != null && { arn: input.arn }),
2266
- ...(input.deleteReports != null && { deleteReports: input.deleteReports }),
2267
- };
2144
+ const de_CodeCoverage = (output, context) => {
2145
+ return (0, smithy_client_1.take)(output, {
2146
+ branchCoveragePercentage: smithy_client_1.limitedParseDouble,
2147
+ branchesCovered: smithy_client_1.expectInt32,
2148
+ branchesMissed: smithy_client_1.expectInt32,
2149
+ expired: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2150
+ filePath: smithy_client_1.expectString,
2151
+ id: smithy_client_1.expectString,
2152
+ lineCoveragePercentage: smithy_client_1.limitedParseDouble,
2153
+ linesCovered: smithy_client_1.expectInt32,
2154
+ linesMissed: smithy_client_1.expectInt32,
2155
+ reportARN: smithy_client_1.expectString,
2156
+ });
2268
2157
  };
2269
- const se_DeleteReportInput = (input, context) => {
2270
- return {
2271
- ...(input.arn != null && { arn: input.arn }),
2272
- };
2158
+ const de_CodeCoverageReportSummary = (output, context) => {
2159
+ return (0, smithy_client_1.take)(output, {
2160
+ branchCoveragePercentage: smithy_client_1.limitedParseDouble,
2161
+ branchesCovered: smithy_client_1.expectInt32,
2162
+ branchesMissed: smithy_client_1.expectInt32,
2163
+ lineCoveragePercentage: smithy_client_1.limitedParseDouble,
2164
+ linesCovered: smithy_client_1.expectInt32,
2165
+ linesMissed: smithy_client_1.expectInt32,
2166
+ });
2273
2167
  };
2274
- const se_DeleteResourcePolicyInput = (input, context) => {
2275
- return {
2276
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
2277
- };
2168
+ const de_CodeCoverages = (output, context) => {
2169
+ const retVal = (output || [])
2170
+ .filter((e) => e != null)
2171
+ .map((entry) => {
2172
+ return de_CodeCoverage(entry, context);
2173
+ });
2174
+ return retVal;
2278
2175
  };
2279
- const se_DeleteSourceCredentialsInput = (input, context) => {
2280
- return {
2281
- ...(input.arn != null && { arn: input.arn }),
2282
- };
2176
+ const de_CreateProjectOutput = (output, context) => {
2177
+ return (0, smithy_client_1.take)(output, {
2178
+ project: (_) => de_Project(_, context),
2179
+ });
2283
2180
  };
2284
- const se_DeleteWebhookInput = (input, context) => {
2285
- return {
2286
- ...(input.projectName != null && { projectName: input.projectName }),
2287
- };
2181
+ const de_CreateReportGroupOutput = (output, context) => {
2182
+ return (0, smithy_client_1.take)(output, {
2183
+ reportGroup: (_) => de_ReportGroup(_, context),
2184
+ });
2288
2185
  };
2289
- const se_DescribeCodeCoveragesInput = (input, context) => {
2290
- return {
2291
- ...(input.maxLineCoveragePercentage != null && {
2292
- maxLineCoveragePercentage: (0, smithy_client_1.serializeFloat)(input.maxLineCoveragePercentage),
2293
- }),
2294
- ...(input.maxResults != null && { maxResults: input.maxResults }),
2295
- ...(input.minLineCoveragePercentage != null && {
2296
- minLineCoveragePercentage: (0, smithy_client_1.serializeFloat)(input.minLineCoveragePercentage),
2297
- }),
2298
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2299
- ...(input.reportArn != null && { reportArn: input.reportArn }),
2300
- ...(input.sortBy != null && { sortBy: input.sortBy }),
2301
- ...(input.sortOrder != null && { sortOrder: input.sortOrder }),
2302
- };
2186
+ const de_CreateWebhookOutput = (output, context) => {
2187
+ return (0, smithy_client_1.take)(output, {
2188
+ webhook: (_) => de_Webhook(_, context),
2189
+ });
2303
2190
  };
2304
- const se_DescribeTestCasesInput = (input, context) => {
2305
- return {
2306
- ...(input.filter != null && { filter: se_TestCaseFilter(input.filter, context) }),
2307
- ...(input.maxResults != null && { maxResults: input.maxResults }),
2308
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2309
- ...(input.reportArn != null && { reportArn: input.reportArn }),
2310
- };
2191
+ const de_DescribeCodeCoveragesOutput = (output, context) => {
2192
+ return (0, smithy_client_1.take)(output, {
2193
+ codeCoverages: (_) => de_CodeCoverages(_, context),
2194
+ nextToken: smithy_client_1.expectString,
2195
+ });
2311
2196
  };
2312
- const se_EnvironmentVariable = (input, context) => {
2313
- return {
2314
- ...(input.name != null && { name: input.name }),
2315
- ...(input.type != null && { type: input.type }),
2316
- ...(input.value != null && { value: input.value }),
2317
- };
2197
+ const de_DescribeTestCasesOutput = (output, context) => {
2198
+ return (0, smithy_client_1.take)(output, {
2199
+ nextToken: smithy_client_1.expectString,
2200
+ testCases: (_) => de_TestCases(_, context),
2201
+ });
2202
+ };
2203
+ const de_Project = (output, context) => {
2204
+ return (0, smithy_client_1.take)(output, {
2205
+ arn: smithy_client_1.expectString,
2206
+ artifacts: smithy_client_1._json,
2207
+ badge: smithy_client_1._json,
2208
+ buildBatchConfig: smithy_client_1._json,
2209
+ cache: smithy_client_1._json,
2210
+ concurrentBuildLimit: smithy_client_1.expectInt32,
2211
+ created: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2212
+ description: smithy_client_1.expectString,
2213
+ encryptionKey: smithy_client_1.expectString,
2214
+ environment: smithy_client_1._json,
2215
+ fileSystemLocations: smithy_client_1._json,
2216
+ lastModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2217
+ logsConfig: smithy_client_1._json,
2218
+ name: smithy_client_1.expectString,
2219
+ projectVisibility: smithy_client_1.expectString,
2220
+ publicProjectAlias: smithy_client_1.expectString,
2221
+ queuedTimeoutInMinutes: smithy_client_1.expectInt32,
2222
+ resourceAccessRole: smithy_client_1.expectString,
2223
+ secondaryArtifacts: smithy_client_1._json,
2224
+ secondarySourceVersions: smithy_client_1._json,
2225
+ secondarySources: smithy_client_1._json,
2226
+ serviceRole: smithy_client_1.expectString,
2227
+ source: smithy_client_1._json,
2228
+ sourceVersion: smithy_client_1.expectString,
2229
+ tags: smithy_client_1._json,
2230
+ timeoutInMinutes: smithy_client_1.expectInt32,
2231
+ vpcConfig: smithy_client_1._json,
2232
+ webhook: (_) => de_Webhook(_, context),
2233
+ });
2318
2234
  };
2319
- const se_EnvironmentVariables = (input, context) => {
2320
- return input
2235
+ const de_Projects = (output, context) => {
2236
+ const retVal = (output || [])
2321
2237
  .filter((e) => e != null)
2322
2238
  .map((entry) => {
2323
- return se_EnvironmentVariable(entry, context);
2239
+ return de_Project(entry, context);
2240
+ });
2241
+ return retVal;
2242
+ };
2243
+ const de_Report = (output, context) => {
2244
+ return (0, smithy_client_1.take)(output, {
2245
+ arn: smithy_client_1.expectString,
2246
+ codeCoverageSummary: (_) => de_CodeCoverageReportSummary(_, context),
2247
+ created: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2248
+ executionId: smithy_client_1.expectString,
2249
+ expired: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2250
+ exportConfig: smithy_client_1._json,
2251
+ name: smithy_client_1.expectString,
2252
+ reportGroupArn: smithy_client_1.expectString,
2253
+ status: smithy_client_1.expectString,
2254
+ testSummary: smithy_client_1._json,
2255
+ truncated: smithy_client_1.expectBoolean,
2256
+ type: smithy_client_1.expectString,
2257
+ });
2258
+ };
2259
+ const de_ReportGroup = (output, context) => {
2260
+ return (0, smithy_client_1.take)(output, {
2261
+ arn: smithy_client_1.expectString,
2262
+ created: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2263
+ exportConfig: smithy_client_1._json,
2264
+ lastModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2265
+ name: smithy_client_1.expectString,
2266
+ status: smithy_client_1.expectString,
2267
+ tags: smithy_client_1._json,
2268
+ type: smithy_client_1.expectString,
2324
2269
  });
2325
2270
  };
2326
- const se_FilterGroup = (input, context) => {
2327
- return input
2271
+ const de_ReportGroups = (output, context) => {
2272
+ const retVal = (output || [])
2328
2273
  .filter((e) => e != null)
2329
2274
  .map((entry) => {
2330
- return se_WebhookFilter(entry, context);
2275
+ return de_ReportGroup(entry, context);
2331
2276
  });
2277
+ return retVal;
2332
2278
  };
2333
- const se_FilterGroups = (input, context) => {
2334
- return input
2279
+ const de_Reports = (output, context) => {
2280
+ const retVal = (output || [])
2335
2281
  .filter((e) => e != null)
2336
2282
  .map((entry) => {
2337
- return se_FilterGroup(entry, context);
2283
+ return de_Report(entry, context);
2338
2284
  });
2285
+ return retVal;
2339
2286
  };
2340
- const se_GetReportGroupTrendInput = (input, context) => {
2341
- return {
2342
- ...(input.numOfReports != null && { numOfReports: input.numOfReports }),
2343
- ...(input.reportGroupArn != null && { reportGroupArn: input.reportGroupArn }),
2344
- ...(input.trendField != null && { trendField: input.trendField }),
2345
- };
2287
+ const de_RetryBuildBatchOutput = (output, context) => {
2288
+ return (0, smithy_client_1.take)(output, {
2289
+ buildBatch: (_) => de_BuildBatch(_, context),
2290
+ });
2346
2291
  };
2347
- const se_GetResourcePolicyInput = (input, context) => {
2348
- return {
2349
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
2350
- };
2292
+ const de_RetryBuildOutput = (output, context) => {
2293
+ return (0, smithy_client_1.take)(output, {
2294
+ build: (_) => de_Build(_, context),
2295
+ });
2351
2296
  };
2352
- const se_GitSubmodulesConfig = (input, context) => {
2353
- return {
2354
- ...(input.fetchSubmodules != null && { fetchSubmodules: input.fetchSubmodules }),
2355
- };
2297
+ const de_StartBuildBatchOutput = (output, context) => {
2298
+ return (0, smithy_client_1.take)(output, {
2299
+ buildBatch: (_) => de_BuildBatch(_, context),
2300
+ });
2356
2301
  };
2357
- const se_ImportSourceCredentialsInput = (input, context) => {
2358
- return {
2359
- ...(input.authType != null && { authType: input.authType }),
2360
- ...(input.serverType != null && { serverType: input.serverType }),
2361
- ...(input.shouldOverwrite != null && { shouldOverwrite: input.shouldOverwrite }),
2362
- ...(input.token != null && { token: input.token }),
2363
- ...(input.username != null && { username: input.username }),
2364
- };
2365
- };
2366
- const se_InvalidateProjectCacheInput = (input, context) => {
2367
- return {
2368
- ...(input.projectName != null && { projectName: input.projectName }),
2369
- };
2370
- };
2371
- const se_ListBuildBatchesForProjectInput = (input, context) => {
2372
- return {
2373
- ...(input.filter != null && { filter: se_BuildBatchFilter(input.filter, context) }),
2374
- ...(input.maxResults != null && { maxResults: input.maxResults }),
2375
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2376
- ...(input.projectName != null && { projectName: input.projectName }),
2377
- ...(input.sortOrder != null && { sortOrder: input.sortOrder }),
2378
- };
2379
- };
2380
- const se_ListBuildBatchesInput = (input, context) => {
2381
- return {
2382
- ...(input.filter != null && { filter: se_BuildBatchFilter(input.filter, context) }),
2383
- ...(input.maxResults != null && { maxResults: input.maxResults }),
2384
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2385
- ...(input.sortOrder != null && { sortOrder: input.sortOrder }),
2386
- };
2387
- };
2388
- const se_ListBuildsForProjectInput = (input, context) => {
2389
- return {
2390
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2391
- ...(input.projectName != null && { projectName: input.projectName }),
2392
- ...(input.sortOrder != null && { sortOrder: input.sortOrder }),
2393
- };
2394
- };
2395
- const se_ListBuildsInput = (input, context) => {
2396
- return {
2397
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2398
- ...(input.sortOrder != null && { sortOrder: input.sortOrder }),
2399
- };
2400
- };
2401
- const se_ListCuratedEnvironmentImagesInput = (input, context) => {
2402
- return {};
2403
- };
2404
- const se_ListProjectsInput = (input, context) => {
2405
- return {
2406
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2407
- ...(input.sortBy != null && { sortBy: input.sortBy }),
2408
- ...(input.sortOrder != null && { sortOrder: input.sortOrder }),
2409
- };
2410
- };
2411
- const se_ListReportGroupsInput = (input, context) => {
2412
- return {
2413
- ...(input.maxResults != null && { maxResults: input.maxResults }),
2414
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2415
- ...(input.sortBy != null && { sortBy: input.sortBy }),
2416
- ...(input.sortOrder != null && { sortOrder: input.sortOrder }),
2417
- };
2418
- };
2419
- const se_ListReportsForReportGroupInput = (input, context) => {
2420
- return {
2421
- ...(input.filter != null && { filter: se_ReportFilter(input.filter, context) }),
2422
- ...(input.maxResults != null && { maxResults: input.maxResults }),
2423
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2424
- ...(input.reportGroupArn != null && { reportGroupArn: input.reportGroupArn }),
2425
- ...(input.sortOrder != null && { sortOrder: input.sortOrder }),
2426
- };
2427
- };
2428
- const se_ListReportsInput = (input, context) => {
2429
- return {
2430
- ...(input.filter != null && { filter: se_ReportFilter(input.filter, context) }),
2431
- ...(input.maxResults != null && { maxResults: input.maxResults }),
2432
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2433
- ...(input.sortOrder != null && { sortOrder: input.sortOrder }),
2434
- };
2435
- };
2436
- const se_ListSharedProjectsInput = (input, context) => {
2437
- return {
2438
- ...(input.maxResults != null && { maxResults: input.maxResults }),
2439
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2440
- ...(input.sortBy != null && { sortBy: input.sortBy }),
2441
- ...(input.sortOrder != null && { sortOrder: input.sortOrder }),
2442
- };
2443
- };
2444
- const se_ListSharedReportGroupsInput = (input, context) => {
2445
- return {
2446
- ...(input.maxResults != null && { maxResults: input.maxResults }),
2447
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2448
- ...(input.sortBy != null && { sortBy: input.sortBy }),
2449
- ...(input.sortOrder != null && { sortOrder: input.sortOrder }),
2450
- };
2451
- };
2452
- const se_ListSourceCredentialsInput = (input, context) => {
2453
- return {};
2454
- };
2455
- const se_LogsConfig = (input, context) => {
2456
- return {
2457
- ...(input.cloudWatchLogs != null && { cloudWatchLogs: se_CloudWatchLogsConfig(input.cloudWatchLogs, context) }),
2458
- ...(input.s3Logs != null && { s3Logs: se_S3LogsConfig(input.s3Logs, context) }),
2459
- };
2460
- };
2461
- const se_ProjectArtifacts = (input, context) => {
2462
- return {
2463
- ...(input.artifactIdentifier != null && { artifactIdentifier: input.artifactIdentifier }),
2464
- ...(input.bucketOwnerAccess != null && { bucketOwnerAccess: input.bucketOwnerAccess }),
2465
- ...(input.encryptionDisabled != null && { encryptionDisabled: input.encryptionDisabled }),
2466
- ...(input.location != null && { location: input.location }),
2467
- ...(input.name != null && { name: input.name }),
2468
- ...(input.namespaceType != null && { namespaceType: input.namespaceType }),
2469
- ...(input.overrideArtifactName != null && { overrideArtifactName: input.overrideArtifactName }),
2470
- ...(input.packaging != null && { packaging: input.packaging }),
2471
- ...(input.path != null && { path: input.path }),
2472
- ...(input.type != null && { type: input.type }),
2473
- };
2474
- };
2475
- const se_ProjectArtifactsList = (input, context) => {
2476
- return input
2477
- .filter((e) => e != null)
2478
- .map((entry) => {
2479
- return se_ProjectArtifacts(entry, context);
2480
- });
2481
- };
2482
- const se_ProjectBuildBatchConfig = (input, context) => {
2483
- return {
2484
- ...(input.batchReportMode != null && { batchReportMode: input.batchReportMode }),
2485
- ...(input.combineArtifacts != null && { combineArtifacts: input.combineArtifacts }),
2486
- ...(input.restrictions != null && { restrictions: se_BatchRestrictions(input.restrictions, context) }),
2487
- ...(input.serviceRole != null && { serviceRole: input.serviceRole }),
2488
- ...(input.timeoutInMins != null && { timeoutInMins: input.timeoutInMins }),
2489
- };
2490
- };
2491
- const se_ProjectCache = (input, context) => {
2492
- return {
2493
- ...(input.location != null && { location: input.location }),
2494
- ...(input.modes != null && { modes: se_ProjectCacheModes(input.modes, context) }),
2495
- ...(input.type != null && { type: input.type }),
2496
- };
2497
- };
2498
- const se_ProjectCacheModes = (input, context) => {
2499
- return input
2500
- .filter((e) => e != null)
2501
- .map((entry) => {
2502
- return entry;
2503
- });
2504
- };
2505
- const se_ProjectEnvironment = (input, context) => {
2506
- return {
2507
- ...(input.certificate != null && { certificate: input.certificate }),
2508
- ...(input.computeType != null && { computeType: input.computeType }),
2509
- ...(input.environmentVariables != null && {
2510
- environmentVariables: se_EnvironmentVariables(input.environmentVariables, context),
2511
- }),
2512
- ...(input.image != null && { image: input.image }),
2513
- ...(input.imagePullCredentialsType != null && { imagePullCredentialsType: input.imagePullCredentialsType }),
2514
- ...(input.privilegedMode != null && { privilegedMode: input.privilegedMode }),
2515
- ...(input.registryCredential != null && {
2516
- registryCredential: se_RegistryCredential(input.registryCredential, context),
2517
- }),
2518
- ...(input.type != null && { type: input.type }),
2519
- };
2520
- };
2521
- const se_ProjectFileSystemLocation = (input, context) => {
2522
- return {
2523
- ...(input.identifier != null && { identifier: input.identifier }),
2524
- ...(input.location != null && { location: input.location }),
2525
- ...(input.mountOptions != null && { mountOptions: input.mountOptions }),
2526
- ...(input.mountPoint != null && { mountPoint: input.mountPoint }),
2527
- ...(input.type != null && { type: input.type }),
2528
- };
2529
- };
2530
- const se_ProjectFileSystemLocations = (input, context) => {
2531
- return input
2532
- .filter((e) => e != null)
2533
- .map((entry) => {
2534
- return se_ProjectFileSystemLocation(entry, context);
2535
- });
2536
- };
2537
- const se_ProjectNames = (input, context) => {
2538
- return input
2539
- .filter((e) => e != null)
2540
- .map((entry) => {
2541
- return entry;
2542
- });
2543
- };
2544
- const se_ProjectSecondarySourceVersions = (input, context) => {
2545
- return input
2546
- .filter((e) => e != null)
2547
- .map((entry) => {
2548
- return se_ProjectSourceVersion(entry, context);
2549
- });
2550
- };
2551
- const se_ProjectSource = (input, context) => {
2552
- return {
2553
- ...(input.auth != null && { auth: se_SourceAuth(input.auth, context) }),
2554
- ...(input.buildStatusConfig != null && {
2555
- buildStatusConfig: se_BuildStatusConfig(input.buildStatusConfig, context),
2556
- }),
2557
- ...(input.buildspec != null && { buildspec: input.buildspec }),
2558
- ...(input.gitCloneDepth != null && { gitCloneDepth: input.gitCloneDepth }),
2559
- ...(input.gitSubmodulesConfig != null && {
2560
- gitSubmodulesConfig: se_GitSubmodulesConfig(input.gitSubmodulesConfig, context),
2561
- }),
2562
- ...(input.insecureSsl != null && { insecureSsl: input.insecureSsl }),
2563
- ...(input.location != null && { location: input.location }),
2564
- ...(input.reportBuildStatus != null && { reportBuildStatus: input.reportBuildStatus }),
2565
- ...(input.sourceIdentifier != null && { sourceIdentifier: input.sourceIdentifier }),
2566
- ...(input.type != null && { type: input.type }),
2567
- };
2568
- };
2569
- const se_ProjectSources = (input, context) => {
2570
- return input
2571
- .filter((e) => e != null)
2572
- .map((entry) => {
2573
- return se_ProjectSource(entry, context);
2574
- });
2575
- };
2576
- const se_ProjectSourceVersion = (input, context) => {
2577
- return {
2578
- ...(input.sourceIdentifier != null && { sourceIdentifier: input.sourceIdentifier }),
2579
- ...(input.sourceVersion != null && { sourceVersion: input.sourceVersion }),
2580
- };
2581
- };
2582
- const se_PutResourcePolicyInput = (input, context) => {
2583
- return {
2584
- ...(input.policy != null && { policy: input.policy }),
2585
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
2586
- };
2587
- };
2588
- const se_RegistryCredential = (input, context) => {
2589
- return {
2590
- ...(input.credential != null && { credential: input.credential }),
2591
- ...(input.credentialProvider != null && { credentialProvider: input.credentialProvider }),
2592
- };
2593
- };
2594
- const se_ReportArns = (input, context) => {
2595
- return input
2596
- .filter((e) => e != null)
2597
- .map((entry) => {
2598
- return entry;
2599
- });
2600
- };
2601
- const se_ReportExportConfig = (input, context) => {
2602
- return {
2603
- ...(input.exportConfigType != null && { exportConfigType: input.exportConfigType }),
2604
- ...(input.s3Destination != null && { s3Destination: se_S3ReportExportConfig(input.s3Destination, context) }),
2605
- };
2606
- };
2607
- const se_ReportFilter = (input, context) => {
2608
- return {
2609
- ...(input.status != null && { status: input.status }),
2610
- };
2611
- };
2612
- const se_ReportGroupArns = (input, context) => {
2613
- return input
2614
- .filter((e) => e != null)
2615
- .map((entry) => {
2616
- return entry;
2617
- });
2618
- };
2619
- const se_RetryBuildBatchInput = (input, context) => {
2620
- return {
2621
- ...(input.id != null && { id: input.id }),
2622
- ...(input.idempotencyToken != null && { idempotencyToken: input.idempotencyToken }),
2623
- ...(input.retryType != null && { retryType: input.retryType }),
2624
- };
2625
- };
2626
- const se_RetryBuildInput = (input, context) => {
2627
- return {
2628
- ...(input.id != null && { id: input.id }),
2629
- ...(input.idempotencyToken != null && { idempotencyToken: input.idempotencyToken }),
2630
- };
2631
- };
2632
- const se_S3LogsConfig = (input, context) => {
2633
- return {
2634
- ...(input.bucketOwnerAccess != null && { bucketOwnerAccess: input.bucketOwnerAccess }),
2635
- ...(input.encryptionDisabled != null && { encryptionDisabled: input.encryptionDisabled }),
2636
- ...(input.location != null && { location: input.location }),
2637
- ...(input.status != null && { status: input.status }),
2638
- };
2639
- };
2640
- const se_S3ReportExportConfig = (input, context) => {
2641
- return {
2642
- ...(input.bucket != null && { bucket: input.bucket }),
2643
- ...(input.bucketOwner != null && { bucketOwner: input.bucketOwner }),
2644
- ...(input.encryptionDisabled != null && { encryptionDisabled: input.encryptionDisabled }),
2645
- ...(input.encryptionKey != null && { encryptionKey: input.encryptionKey }),
2646
- ...(input.packaging != null && { packaging: input.packaging }),
2647
- ...(input.path != null && { path: input.path }),
2648
- };
2649
- };
2650
- const se_SecurityGroupIds = (input, context) => {
2651
- return input
2652
- .filter((e) => e != null)
2653
- .map((entry) => {
2654
- return entry;
2655
- });
2656
- };
2657
- const se_SourceAuth = (input, context) => {
2658
- return {
2659
- ...(input.resource != null && { resource: input.resource }),
2660
- ...(input.type != null && { type: input.type }),
2661
- };
2662
- };
2663
- const se_StartBuildBatchInput = (input, context) => {
2664
- return {
2665
- ...(input.artifactsOverride != null && {
2666
- artifactsOverride: se_ProjectArtifacts(input.artifactsOverride, context),
2667
- }),
2668
- ...(input.buildBatchConfigOverride != null && {
2669
- buildBatchConfigOverride: se_ProjectBuildBatchConfig(input.buildBatchConfigOverride, context),
2670
- }),
2671
- ...(input.buildTimeoutInMinutesOverride != null && {
2672
- buildTimeoutInMinutesOverride: input.buildTimeoutInMinutesOverride,
2673
- }),
2674
- ...(input.buildspecOverride != null && { buildspecOverride: input.buildspecOverride }),
2675
- ...(input.cacheOverride != null && { cacheOverride: se_ProjectCache(input.cacheOverride, context) }),
2676
- ...(input.certificateOverride != null && { certificateOverride: input.certificateOverride }),
2677
- ...(input.computeTypeOverride != null && { computeTypeOverride: input.computeTypeOverride }),
2678
- ...(input.debugSessionEnabled != null && { debugSessionEnabled: input.debugSessionEnabled }),
2679
- ...(input.encryptionKeyOverride != null && { encryptionKeyOverride: input.encryptionKeyOverride }),
2680
- ...(input.environmentTypeOverride != null && { environmentTypeOverride: input.environmentTypeOverride }),
2681
- ...(input.environmentVariablesOverride != null && {
2682
- environmentVariablesOverride: se_EnvironmentVariables(input.environmentVariablesOverride, context),
2683
- }),
2684
- ...(input.gitCloneDepthOverride != null && { gitCloneDepthOverride: input.gitCloneDepthOverride }),
2685
- ...(input.gitSubmodulesConfigOverride != null && {
2686
- gitSubmodulesConfigOverride: se_GitSubmodulesConfig(input.gitSubmodulesConfigOverride, context),
2687
- }),
2688
- ...(input.idempotencyToken != null && { idempotencyToken: input.idempotencyToken }),
2689
- ...(input.imageOverride != null && { imageOverride: input.imageOverride }),
2690
- ...(input.imagePullCredentialsTypeOverride != null && {
2691
- imagePullCredentialsTypeOverride: input.imagePullCredentialsTypeOverride,
2692
- }),
2693
- ...(input.insecureSslOverride != null && { insecureSslOverride: input.insecureSslOverride }),
2694
- ...(input.logsConfigOverride != null && { logsConfigOverride: se_LogsConfig(input.logsConfigOverride, context) }),
2695
- ...(input.privilegedModeOverride != null && { privilegedModeOverride: input.privilegedModeOverride }),
2696
- ...(input.projectName != null && { projectName: input.projectName }),
2697
- ...(input.queuedTimeoutInMinutesOverride != null && {
2698
- queuedTimeoutInMinutesOverride: input.queuedTimeoutInMinutesOverride,
2699
- }),
2700
- ...(input.registryCredentialOverride != null && {
2701
- registryCredentialOverride: se_RegistryCredential(input.registryCredentialOverride, context),
2702
- }),
2703
- ...(input.reportBuildBatchStatusOverride != null && {
2704
- reportBuildBatchStatusOverride: input.reportBuildBatchStatusOverride,
2705
- }),
2706
- ...(input.secondaryArtifactsOverride != null && {
2707
- secondaryArtifactsOverride: se_ProjectArtifactsList(input.secondaryArtifactsOverride, context),
2708
- }),
2709
- ...(input.secondarySourcesOverride != null && {
2710
- secondarySourcesOverride: se_ProjectSources(input.secondarySourcesOverride, context),
2711
- }),
2712
- ...(input.secondarySourcesVersionOverride != null && {
2713
- secondarySourcesVersionOverride: se_ProjectSecondarySourceVersions(input.secondarySourcesVersionOverride, context),
2714
- }),
2715
- ...(input.serviceRoleOverride != null && { serviceRoleOverride: input.serviceRoleOverride }),
2716
- ...(input.sourceAuthOverride != null && { sourceAuthOverride: se_SourceAuth(input.sourceAuthOverride, context) }),
2717
- ...(input.sourceLocationOverride != null && { sourceLocationOverride: input.sourceLocationOverride }),
2718
- ...(input.sourceTypeOverride != null && { sourceTypeOverride: input.sourceTypeOverride }),
2719
- ...(input.sourceVersion != null && { sourceVersion: input.sourceVersion }),
2720
- };
2721
- };
2722
- const se_StartBuildInput = (input, context) => {
2723
- return {
2724
- ...(input.artifactsOverride != null && {
2725
- artifactsOverride: se_ProjectArtifacts(input.artifactsOverride, context),
2726
- }),
2727
- ...(input.buildStatusConfigOverride != null && {
2728
- buildStatusConfigOverride: se_BuildStatusConfig(input.buildStatusConfigOverride, context),
2729
- }),
2730
- ...(input.buildspecOverride != null && { buildspecOverride: input.buildspecOverride }),
2731
- ...(input.cacheOverride != null && { cacheOverride: se_ProjectCache(input.cacheOverride, context) }),
2732
- ...(input.certificateOverride != null && { certificateOverride: input.certificateOverride }),
2733
- ...(input.computeTypeOverride != null && { computeTypeOverride: input.computeTypeOverride }),
2734
- ...(input.debugSessionEnabled != null && { debugSessionEnabled: input.debugSessionEnabled }),
2735
- ...(input.encryptionKeyOverride != null && { encryptionKeyOverride: input.encryptionKeyOverride }),
2736
- ...(input.environmentTypeOverride != null && { environmentTypeOverride: input.environmentTypeOverride }),
2737
- ...(input.environmentVariablesOverride != null && {
2738
- environmentVariablesOverride: se_EnvironmentVariables(input.environmentVariablesOverride, context),
2739
- }),
2740
- ...(input.gitCloneDepthOverride != null && { gitCloneDepthOverride: input.gitCloneDepthOverride }),
2741
- ...(input.gitSubmodulesConfigOverride != null && {
2742
- gitSubmodulesConfigOverride: se_GitSubmodulesConfig(input.gitSubmodulesConfigOverride, context),
2743
- }),
2744
- ...(input.idempotencyToken != null && { idempotencyToken: input.idempotencyToken }),
2745
- ...(input.imageOverride != null && { imageOverride: input.imageOverride }),
2746
- ...(input.imagePullCredentialsTypeOverride != null && {
2747
- imagePullCredentialsTypeOverride: input.imagePullCredentialsTypeOverride,
2748
- }),
2749
- ...(input.insecureSslOverride != null && { insecureSslOverride: input.insecureSslOverride }),
2750
- ...(input.logsConfigOverride != null && { logsConfigOverride: se_LogsConfig(input.logsConfigOverride, context) }),
2751
- ...(input.privilegedModeOverride != null && { privilegedModeOverride: input.privilegedModeOverride }),
2752
- ...(input.projectName != null && { projectName: input.projectName }),
2753
- ...(input.queuedTimeoutInMinutesOverride != null && {
2754
- queuedTimeoutInMinutesOverride: input.queuedTimeoutInMinutesOverride,
2755
- }),
2756
- ...(input.registryCredentialOverride != null && {
2757
- registryCredentialOverride: se_RegistryCredential(input.registryCredentialOverride, context),
2758
- }),
2759
- ...(input.reportBuildStatusOverride != null && { reportBuildStatusOverride: input.reportBuildStatusOverride }),
2760
- ...(input.secondaryArtifactsOverride != null && {
2761
- secondaryArtifactsOverride: se_ProjectArtifactsList(input.secondaryArtifactsOverride, context),
2762
- }),
2763
- ...(input.secondarySourcesOverride != null && {
2764
- secondarySourcesOverride: se_ProjectSources(input.secondarySourcesOverride, context),
2765
- }),
2766
- ...(input.secondarySourcesVersionOverride != null && {
2767
- secondarySourcesVersionOverride: se_ProjectSecondarySourceVersions(input.secondarySourcesVersionOverride, context),
2768
- }),
2769
- ...(input.serviceRoleOverride != null && { serviceRoleOverride: input.serviceRoleOverride }),
2770
- ...(input.sourceAuthOverride != null && { sourceAuthOverride: se_SourceAuth(input.sourceAuthOverride, context) }),
2771
- ...(input.sourceLocationOverride != null && { sourceLocationOverride: input.sourceLocationOverride }),
2772
- ...(input.sourceTypeOverride != null && { sourceTypeOverride: input.sourceTypeOverride }),
2773
- ...(input.sourceVersion != null && { sourceVersion: input.sourceVersion }),
2774
- ...(input.timeoutInMinutesOverride != null && { timeoutInMinutesOverride: input.timeoutInMinutesOverride }),
2775
- };
2776
- };
2777
- const se_StopBuildBatchInput = (input, context) => {
2778
- return {
2779
- ...(input.id != null && { id: input.id }),
2780
- };
2781
- };
2782
- const se_StopBuildInput = (input, context) => {
2783
- return {
2784
- ...(input.id != null && { id: input.id }),
2785
- };
2786
- };
2787
- const se_Subnets = (input, context) => {
2788
- return input
2789
- .filter((e) => e != null)
2790
- .map((entry) => {
2791
- return entry;
2792
- });
2793
- };
2794
- const se_Tag = (input, context) => {
2795
- return {
2796
- ...(input.key != null && { key: input.key }),
2797
- ...(input.value != null && { value: input.value }),
2798
- };
2799
- };
2800
- const se_TagList = (input, context) => {
2801
- return input
2802
- .filter((e) => e != null)
2803
- .map((entry) => {
2804
- return se_Tag(entry, context);
2805
- });
2806
- };
2807
- const se_TestCaseFilter = (input, context) => {
2808
- return {
2809
- ...(input.keyword != null && { keyword: input.keyword }),
2810
- ...(input.status != null && { status: input.status }),
2811
- };
2812
- };
2813
- const se_UpdateProjectInput = (input, context) => {
2814
- return {
2815
- ...(input.artifacts != null && { artifacts: se_ProjectArtifacts(input.artifacts, context) }),
2816
- ...(input.badgeEnabled != null && { badgeEnabled: input.badgeEnabled }),
2817
- ...(input.buildBatchConfig != null && {
2818
- buildBatchConfig: se_ProjectBuildBatchConfig(input.buildBatchConfig, context),
2819
- }),
2820
- ...(input.cache != null && { cache: se_ProjectCache(input.cache, context) }),
2821
- ...(input.concurrentBuildLimit != null && { concurrentBuildLimit: input.concurrentBuildLimit }),
2822
- ...(input.description != null && { description: input.description }),
2823
- ...(input.encryptionKey != null && { encryptionKey: input.encryptionKey }),
2824
- ...(input.environment != null && { environment: se_ProjectEnvironment(input.environment, context) }),
2825
- ...(input.fileSystemLocations != null && {
2826
- fileSystemLocations: se_ProjectFileSystemLocations(input.fileSystemLocations, context),
2827
- }),
2828
- ...(input.logsConfig != null && { logsConfig: se_LogsConfig(input.logsConfig, context) }),
2829
- ...(input.name != null && { name: input.name }),
2830
- ...(input.queuedTimeoutInMinutes != null && { queuedTimeoutInMinutes: input.queuedTimeoutInMinutes }),
2831
- ...(input.secondaryArtifacts != null && {
2832
- secondaryArtifacts: se_ProjectArtifactsList(input.secondaryArtifacts, context),
2833
- }),
2834
- ...(input.secondarySourceVersions != null && {
2835
- secondarySourceVersions: se_ProjectSecondarySourceVersions(input.secondarySourceVersions, context),
2836
- }),
2837
- ...(input.secondarySources != null && { secondarySources: se_ProjectSources(input.secondarySources, context) }),
2838
- ...(input.serviceRole != null && { serviceRole: input.serviceRole }),
2839
- ...(input.source != null && { source: se_ProjectSource(input.source, context) }),
2840
- ...(input.sourceVersion != null && { sourceVersion: input.sourceVersion }),
2841
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
2842
- ...(input.timeoutInMinutes != null && { timeoutInMinutes: input.timeoutInMinutes }),
2843
- ...(input.vpcConfig != null && { vpcConfig: se_VpcConfig(input.vpcConfig, context) }),
2844
- };
2845
- };
2846
- const se_UpdateProjectVisibilityInput = (input, context) => {
2847
- return {
2848
- ...(input.projectArn != null && { projectArn: input.projectArn }),
2849
- ...(input.projectVisibility != null && { projectVisibility: input.projectVisibility }),
2850
- ...(input.resourceAccessRole != null && { resourceAccessRole: input.resourceAccessRole }),
2851
- };
2852
- };
2853
- const se_UpdateReportGroupInput = (input, context) => {
2854
- return {
2855
- ...(input.arn != null && { arn: input.arn }),
2856
- ...(input.exportConfig != null && { exportConfig: se_ReportExportConfig(input.exportConfig, context) }),
2857
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
2858
- };
2859
- };
2860
- const se_UpdateWebhookInput = (input, context) => {
2861
- return {
2862
- ...(input.branchFilter != null && { branchFilter: input.branchFilter }),
2863
- ...(input.buildType != null && { buildType: input.buildType }),
2864
- ...(input.filterGroups != null && { filterGroups: se_FilterGroups(input.filterGroups, context) }),
2865
- ...(input.projectName != null && { projectName: input.projectName }),
2866
- ...(input.rotateSecret != null && { rotateSecret: input.rotateSecret }),
2867
- };
2868
- };
2869
- const se_VpcConfig = (input, context) => {
2870
- return {
2871
- ...(input.securityGroupIds != null && { securityGroupIds: se_SecurityGroupIds(input.securityGroupIds, context) }),
2872
- ...(input.subnets != null && { subnets: se_Subnets(input.subnets, context) }),
2873
- ...(input.vpcId != null && { vpcId: input.vpcId }),
2874
- };
2875
- };
2876
- const se_WebhookFilter = (input, context) => {
2877
- return {
2878
- ...(input.excludeMatchedPattern != null && { excludeMatchedPattern: input.excludeMatchedPattern }),
2879
- ...(input.pattern != null && { pattern: input.pattern }),
2880
- ...(input.type != null && { type: input.type }),
2881
- };
2882
- };
2883
- const de_AccountLimitExceededException = (output, context) => {
2884
- return {
2885
- message: (0, smithy_client_1.expectString)(output.message),
2886
- };
2887
- };
2888
- const de_BatchDeleteBuildsOutput = (output, context) => {
2889
- return {
2890
- buildsDeleted: output.buildsDeleted != null ? de_BuildIds(output.buildsDeleted, context) : undefined,
2891
- buildsNotDeleted: output.buildsNotDeleted != null ? de_BuildsNotDeleted(output.buildsNotDeleted, context) : undefined,
2892
- };
2893
- };
2894
- const de_BatchGetBuildBatchesOutput = (output, context) => {
2895
- return {
2896
- buildBatches: output.buildBatches != null ? de_BuildBatches(output.buildBatches, context) : undefined,
2897
- buildBatchesNotFound: output.buildBatchesNotFound != null ? de_BuildBatchIds(output.buildBatchesNotFound, context) : undefined,
2898
- };
2899
- };
2900
- const de_BatchGetBuildsOutput = (output, context) => {
2901
- return {
2902
- builds: output.builds != null ? de_Builds(output.builds, context) : undefined,
2903
- buildsNotFound: output.buildsNotFound != null ? de_BuildIds(output.buildsNotFound, context) : undefined,
2904
- };
2905
- };
2906
- const de_BatchGetProjectsOutput = (output, context) => {
2907
- return {
2908
- projects: output.projects != null ? de_Projects(output.projects, context) : undefined,
2909
- projectsNotFound: output.projectsNotFound != null ? de_ProjectNames(output.projectsNotFound, context) : undefined,
2910
- };
2911
- };
2912
- const de_BatchGetReportGroupsOutput = (output, context) => {
2913
- return {
2914
- reportGroups: output.reportGroups != null ? de_ReportGroups(output.reportGroups, context) : undefined,
2915
- reportGroupsNotFound: output.reportGroupsNotFound != null ? de_ReportGroupArns(output.reportGroupsNotFound, context) : undefined,
2916
- };
2917
- };
2918
- const de_BatchGetReportsOutput = (output, context) => {
2919
- return {
2920
- reports: output.reports != null ? de_Reports(output.reports, context) : undefined,
2921
- reportsNotFound: output.reportsNotFound != null ? de_ReportArns(output.reportsNotFound, context) : undefined,
2922
- };
2923
- };
2924
- const de_BatchRestrictions = (output, context) => {
2925
- return {
2926
- computeTypesAllowed: output.computeTypesAllowed != null ? de_ComputeTypesAllowed(output.computeTypesAllowed, context) : undefined,
2927
- maximumBuildsAllowed: (0, smithy_client_1.expectInt32)(output.maximumBuildsAllowed),
2928
- };
2929
- };
2930
- const de_Build = (output, context) => {
2931
- return {
2932
- arn: (0, smithy_client_1.expectString)(output.arn),
2933
- artifacts: output.artifacts != null ? de_BuildArtifacts(output.artifacts, context) : undefined,
2934
- buildBatchArn: (0, smithy_client_1.expectString)(output.buildBatchArn),
2935
- buildComplete: (0, smithy_client_1.expectBoolean)(output.buildComplete),
2936
- buildNumber: (0, smithy_client_1.expectLong)(output.buildNumber),
2937
- buildStatus: (0, smithy_client_1.expectString)(output.buildStatus),
2938
- cache: output.cache != null ? de_ProjectCache(output.cache, context) : undefined,
2939
- currentPhase: (0, smithy_client_1.expectString)(output.currentPhase),
2940
- debugSession: output.debugSession != null ? de_DebugSession(output.debugSession, context) : undefined,
2941
- encryptionKey: (0, smithy_client_1.expectString)(output.encryptionKey),
2942
- endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
2943
- environment: output.environment != null ? de_ProjectEnvironment(output.environment, context) : undefined,
2944
- exportedEnvironmentVariables: output.exportedEnvironmentVariables != null
2945
- ? de_ExportedEnvironmentVariables(output.exportedEnvironmentVariables, context)
2946
- : undefined,
2947
- fileSystemLocations: output.fileSystemLocations != null
2948
- ? de_ProjectFileSystemLocations(output.fileSystemLocations, context)
2949
- : undefined,
2950
- id: (0, smithy_client_1.expectString)(output.id),
2951
- initiator: (0, smithy_client_1.expectString)(output.initiator),
2952
- logs: output.logs != null ? de_LogsLocation(output.logs, context) : undefined,
2953
- networkInterface: output.networkInterface != null ? de_NetworkInterface(output.networkInterface, context) : undefined,
2954
- phases: output.phases != null ? de_BuildPhases(output.phases, context) : undefined,
2955
- projectName: (0, smithy_client_1.expectString)(output.projectName),
2956
- queuedTimeoutInMinutes: (0, smithy_client_1.expectInt32)(output.queuedTimeoutInMinutes),
2957
- reportArns: output.reportArns != null ? de_BuildReportArns(output.reportArns, context) : undefined,
2958
- resolvedSourceVersion: (0, smithy_client_1.expectString)(output.resolvedSourceVersion),
2959
- secondaryArtifacts: output.secondaryArtifacts != null ? de_BuildArtifactsList(output.secondaryArtifacts, context) : undefined,
2960
- secondarySourceVersions: output.secondarySourceVersions != null
2961
- ? de_ProjectSecondarySourceVersions(output.secondarySourceVersions, context)
2962
- : undefined,
2963
- secondarySources: output.secondarySources != null ? de_ProjectSources(output.secondarySources, context) : undefined,
2964
- serviceRole: (0, smithy_client_1.expectString)(output.serviceRole),
2965
- source: output.source != null ? de_ProjectSource(output.source, context) : undefined,
2966
- sourceVersion: (0, smithy_client_1.expectString)(output.sourceVersion),
2967
- startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
2968
- timeoutInMinutes: (0, smithy_client_1.expectInt32)(output.timeoutInMinutes),
2969
- vpcConfig: output.vpcConfig != null ? de_VpcConfig(output.vpcConfig, context) : undefined,
2970
- };
2971
- };
2972
- const de_BuildArtifacts = (output, context) => {
2973
- return {
2974
- artifactIdentifier: (0, smithy_client_1.expectString)(output.artifactIdentifier),
2975
- bucketOwnerAccess: (0, smithy_client_1.expectString)(output.bucketOwnerAccess),
2976
- encryptionDisabled: (0, smithy_client_1.expectBoolean)(output.encryptionDisabled),
2977
- location: (0, smithy_client_1.expectString)(output.location),
2978
- md5sum: (0, smithy_client_1.expectString)(output.md5sum),
2979
- overrideArtifactName: (0, smithy_client_1.expectBoolean)(output.overrideArtifactName),
2980
- sha256sum: (0, smithy_client_1.expectString)(output.sha256sum),
2981
- };
2982
- };
2983
- const de_BuildArtifactsList = (output, context) => {
2984
- const retVal = (output || [])
2985
- .filter((e) => e != null)
2986
- .map((entry) => {
2987
- if (entry === null) {
2988
- return null;
2989
- }
2990
- return de_BuildArtifacts(entry, context);
2991
- });
2992
- return retVal;
2993
- };
2994
- const de_BuildBatch = (output, context) => {
2995
- return {
2996
- arn: (0, smithy_client_1.expectString)(output.arn),
2997
- artifacts: output.artifacts != null ? de_BuildArtifacts(output.artifacts, context) : undefined,
2998
- buildBatchConfig: output.buildBatchConfig != null ? de_ProjectBuildBatchConfig(output.buildBatchConfig, context) : undefined,
2999
- buildBatchNumber: (0, smithy_client_1.expectLong)(output.buildBatchNumber),
3000
- buildBatchStatus: (0, smithy_client_1.expectString)(output.buildBatchStatus),
3001
- buildGroups: output.buildGroups != null ? de_BuildGroups(output.buildGroups, context) : undefined,
3002
- buildTimeoutInMinutes: (0, smithy_client_1.expectInt32)(output.buildTimeoutInMinutes),
3003
- cache: output.cache != null ? de_ProjectCache(output.cache, context) : undefined,
3004
- complete: (0, smithy_client_1.expectBoolean)(output.complete),
3005
- currentPhase: (0, smithy_client_1.expectString)(output.currentPhase),
3006
- debugSessionEnabled: (0, smithy_client_1.expectBoolean)(output.debugSessionEnabled),
3007
- encryptionKey: (0, smithy_client_1.expectString)(output.encryptionKey),
3008
- endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
3009
- environment: output.environment != null ? de_ProjectEnvironment(output.environment, context) : undefined,
3010
- fileSystemLocations: output.fileSystemLocations != null
3011
- ? de_ProjectFileSystemLocations(output.fileSystemLocations, context)
3012
- : undefined,
3013
- id: (0, smithy_client_1.expectString)(output.id),
3014
- initiator: (0, smithy_client_1.expectString)(output.initiator),
3015
- logConfig: output.logConfig != null ? de_LogsConfig(output.logConfig, context) : undefined,
3016
- phases: output.phases != null ? de_BuildBatchPhases(output.phases, context) : undefined,
3017
- projectName: (0, smithy_client_1.expectString)(output.projectName),
3018
- queuedTimeoutInMinutes: (0, smithy_client_1.expectInt32)(output.queuedTimeoutInMinutes),
3019
- resolvedSourceVersion: (0, smithy_client_1.expectString)(output.resolvedSourceVersion),
3020
- secondaryArtifacts: output.secondaryArtifacts != null ? de_BuildArtifactsList(output.secondaryArtifacts, context) : undefined,
3021
- secondarySourceVersions: output.secondarySourceVersions != null
3022
- ? de_ProjectSecondarySourceVersions(output.secondarySourceVersions, context)
3023
- : undefined,
3024
- secondarySources: output.secondarySources != null ? de_ProjectSources(output.secondarySources, context) : undefined,
3025
- serviceRole: (0, smithy_client_1.expectString)(output.serviceRole),
3026
- source: output.source != null ? de_ProjectSource(output.source, context) : undefined,
3027
- sourceVersion: (0, smithy_client_1.expectString)(output.sourceVersion),
3028
- startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
3029
- vpcConfig: output.vpcConfig != null ? de_VpcConfig(output.vpcConfig, context) : undefined,
3030
- };
3031
- };
3032
- const de_BuildBatches = (output, context) => {
3033
- const retVal = (output || [])
3034
- .filter((e) => e != null)
3035
- .map((entry) => {
3036
- if (entry === null) {
3037
- return null;
3038
- }
3039
- return de_BuildBatch(entry, context);
3040
- });
3041
- return retVal;
3042
- };
3043
- const de_BuildBatchIds = (output, context) => {
3044
- const retVal = (output || [])
3045
- .filter((e) => e != null)
3046
- .map((entry) => {
3047
- if (entry === null) {
3048
- return null;
3049
- }
3050
- return (0, smithy_client_1.expectString)(entry);
3051
- });
3052
- return retVal;
3053
- };
3054
- const de_BuildBatchPhase = (output, context) => {
3055
- return {
3056
- contexts: output.contexts != null ? de_PhaseContexts(output.contexts, context) : undefined,
3057
- durationInSeconds: (0, smithy_client_1.expectLong)(output.durationInSeconds),
3058
- endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
3059
- phaseStatus: (0, smithy_client_1.expectString)(output.phaseStatus),
3060
- phaseType: (0, smithy_client_1.expectString)(output.phaseType),
3061
- startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
3062
- };
3063
- };
3064
- const de_BuildBatchPhases = (output, context) => {
3065
- const retVal = (output || [])
3066
- .filter((e) => e != null)
3067
- .map((entry) => {
3068
- if (entry === null) {
3069
- return null;
3070
- }
3071
- return de_BuildBatchPhase(entry, context);
3072
- });
3073
- return retVal;
3074
- };
3075
- const de_BuildGroup = (output, context) => {
3076
- return {
3077
- currentBuildSummary: output.currentBuildSummary != null ? de_BuildSummary(output.currentBuildSummary, context) : undefined,
3078
- dependsOn: output.dependsOn != null ? de_Identifiers(output.dependsOn, context) : undefined,
3079
- identifier: (0, smithy_client_1.expectString)(output.identifier),
3080
- ignoreFailure: (0, smithy_client_1.expectBoolean)(output.ignoreFailure),
3081
- priorBuildSummaryList: output.priorBuildSummaryList != null ? de_BuildSummaries(output.priorBuildSummaryList, context) : undefined,
3082
- };
3083
- };
3084
- const de_BuildGroups = (output, context) => {
3085
- const retVal = (output || [])
3086
- .filter((e) => e != null)
3087
- .map((entry) => {
3088
- if (entry === null) {
3089
- return null;
3090
- }
3091
- return de_BuildGroup(entry, context);
3092
- });
3093
- return retVal;
3094
- };
3095
- const de_BuildIds = (output, context) => {
3096
- const retVal = (output || [])
3097
- .filter((e) => e != null)
3098
- .map((entry) => {
3099
- if (entry === null) {
3100
- return null;
3101
- }
3102
- return (0, smithy_client_1.expectString)(entry);
3103
- });
3104
- return retVal;
3105
- };
3106
- const de_BuildNotDeleted = (output, context) => {
3107
- return {
3108
- id: (0, smithy_client_1.expectString)(output.id),
3109
- statusCode: (0, smithy_client_1.expectString)(output.statusCode),
3110
- };
3111
- };
3112
- const de_BuildPhase = (output, context) => {
3113
- return {
3114
- contexts: output.contexts != null ? de_PhaseContexts(output.contexts, context) : undefined,
3115
- durationInSeconds: (0, smithy_client_1.expectLong)(output.durationInSeconds),
3116
- endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
3117
- phaseStatus: (0, smithy_client_1.expectString)(output.phaseStatus),
3118
- phaseType: (0, smithy_client_1.expectString)(output.phaseType),
3119
- startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
3120
- };
3121
- };
3122
- const de_BuildPhases = (output, context) => {
3123
- const retVal = (output || [])
3124
- .filter((e) => e != null)
3125
- .map((entry) => {
3126
- if (entry === null) {
3127
- return null;
3128
- }
3129
- return de_BuildPhase(entry, context);
3130
- });
3131
- return retVal;
3132
- };
3133
- const de_BuildReportArns = (output, context) => {
3134
- const retVal = (output || [])
3135
- .filter((e) => e != null)
3136
- .map((entry) => {
3137
- if (entry === null) {
3138
- return null;
3139
- }
3140
- return (0, smithy_client_1.expectString)(entry);
3141
- });
3142
- return retVal;
3143
- };
3144
- const de_Builds = (output, context) => {
3145
- const retVal = (output || [])
3146
- .filter((e) => e != null)
3147
- .map((entry) => {
3148
- if (entry === null) {
3149
- return null;
3150
- }
3151
- return de_Build(entry, context);
3152
- });
3153
- return retVal;
3154
- };
3155
- const de_BuildsNotDeleted = (output, context) => {
3156
- const retVal = (output || [])
3157
- .filter((e) => e != null)
3158
- .map((entry) => {
3159
- if (entry === null) {
3160
- return null;
3161
- }
3162
- return de_BuildNotDeleted(entry, context);
3163
- });
3164
- return retVal;
3165
- };
3166
- const de_BuildStatusConfig = (output, context) => {
3167
- return {
3168
- context: (0, smithy_client_1.expectString)(output.context),
3169
- targetUrl: (0, smithy_client_1.expectString)(output.targetUrl),
3170
- };
3171
- };
3172
- const de_BuildSummaries = (output, context) => {
3173
- const retVal = (output || [])
3174
- .filter((e) => e != null)
3175
- .map((entry) => {
3176
- if (entry === null) {
3177
- return null;
3178
- }
3179
- return de_BuildSummary(entry, context);
3180
- });
3181
- return retVal;
3182
- };
3183
- const de_BuildSummary = (output, context) => {
3184
- return {
3185
- arn: (0, smithy_client_1.expectString)(output.arn),
3186
- buildStatus: (0, smithy_client_1.expectString)(output.buildStatus),
3187
- primaryArtifact: output.primaryArtifact != null ? de_ResolvedArtifact(output.primaryArtifact, context) : undefined,
3188
- requestedOn: output.requestedOn != null
3189
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.requestedOn)))
3190
- : undefined,
3191
- secondaryArtifacts: output.secondaryArtifacts != null ? de_ResolvedSecondaryArtifacts(output.secondaryArtifacts, context) : undefined,
3192
- };
3193
- };
3194
- const de_CloudWatchLogsConfig = (output, context) => {
3195
- return {
3196
- groupName: (0, smithy_client_1.expectString)(output.groupName),
3197
- status: (0, smithy_client_1.expectString)(output.status),
3198
- streamName: (0, smithy_client_1.expectString)(output.streamName),
3199
- };
3200
- };
3201
- const de_CodeCoverage = (output, context) => {
3202
- return {
3203
- branchCoveragePercentage: (0, smithy_client_1.limitedParseDouble)(output.branchCoveragePercentage),
3204
- branchesCovered: (0, smithy_client_1.expectInt32)(output.branchesCovered),
3205
- branchesMissed: (0, smithy_client_1.expectInt32)(output.branchesMissed),
3206
- expired: output.expired != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expired))) : undefined,
3207
- filePath: (0, smithy_client_1.expectString)(output.filePath),
3208
- id: (0, smithy_client_1.expectString)(output.id),
3209
- lineCoveragePercentage: (0, smithy_client_1.limitedParseDouble)(output.lineCoveragePercentage),
3210
- linesCovered: (0, smithy_client_1.expectInt32)(output.linesCovered),
3211
- linesMissed: (0, smithy_client_1.expectInt32)(output.linesMissed),
3212
- reportARN: (0, smithy_client_1.expectString)(output.reportARN),
3213
- };
3214
- };
3215
- const de_CodeCoverageReportSummary = (output, context) => {
3216
- return {
3217
- branchCoveragePercentage: (0, smithy_client_1.limitedParseDouble)(output.branchCoveragePercentage),
3218
- branchesCovered: (0, smithy_client_1.expectInt32)(output.branchesCovered),
3219
- branchesMissed: (0, smithy_client_1.expectInt32)(output.branchesMissed),
3220
- lineCoveragePercentage: (0, smithy_client_1.limitedParseDouble)(output.lineCoveragePercentage),
3221
- linesCovered: (0, smithy_client_1.expectInt32)(output.linesCovered),
3222
- linesMissed: (0, smithy_client_1.expectInt32)(output.linesMissed),
3223
- };
3224
- };
3225
- const de_CodeCoverages = (output, context) => {
3226
- const retVal = (output || [])
3227
- .filter((e) => e != null)
3228
- .map((entry) => {
3229
- if (entry === null) {
3230
- return null;
3231
- }
3232
- return de_CodeCoverage(entry, context);
3233
- });
3234
- return retVal;
3235
- };
3236
- const de_ComputeTypesAllowed = (output, context) => {
3237
- const retVal = (output || [])
3238
- .filter((e) => e != null)
3239
- .map((entry) => {
3240
- if (entry === null) {
3241
- return null;
3242
- }
3243
- return (0, smithy_client_1.expectString)(entry);
3244
- });
3245
- return retVal;
3246
- };
3247
- const de_CreateProjectOutput = (output, context) => {
3248
- return {
3249
- project: output.project != null ? de_Project(output.project, context) : undefined,
3250
- };
3251
- };
3252
- const de_CreateReportGroupOutput = (output, context) => {
3253
- return {
3254
- reportGroup: output.reportGroup != null ? de_ReportGroup(output.reportGroup, context) : undefined,
3255
- };
3256
- };
3257
- const de_CreateWebhookOutput = (output, context) => {
3258
- return {
3259
- webhook: output.webhook != null ? de_Webhook(output.webhook, context) : undefined,
3260
- };
3261
- };
3262
- const de_DebugSession = (output, context) => {
3263
- return {
3264
- sessionEnabled: (0, smithy_client_1.expectBoolean)(output.sessionEnabled),
3265
- sessionTarget: (0, smithy_client_1.expectString)(output.sessionTarget),
3266
- };
3267
- };
3268
- const de_DeleteBuildBatchOutput = (output, context) => {
3269
- return {
3270
- buildsDeleted: output.buildsDeleted != null ? de_BuildIds(output.buildsDeleted, context) : undefined,
3271
- buildsNotDeleted: output.buildsNotDeleted != null ? de_BuildsNotDeleted(output.buildsNotDeleted, context) : undefined,
3272
- statusCode: (0, smithy_client_1.expectString)(output.statusCode),
3273
- };
3274
- };
3275
- const de_DeleteProjectOutput = (output, context) => {
3276
- return {};
3277
- };
3278
- const de_DeleteReportGroupOutput = (output, context) => {
3279
- return {};
3280
- };
3281
- const de_DeleteReportOutput = (output, context) => {
3282
- return {};
3283
- };
3284
- const de_DeleteResourcePolicyOutput = (output, context) => {
3285
- return {};
3286
- };
3287
- const de_DeleteSourceCredentialsOutput = (output, context) => {
3288
- return {
3289
- arn: (0, smithy_client_1.expectString)(output.arn),
3290
- };
3291
- };
3292
- const de_DeleteWebhookOutput = (output, context) => {
3293
- return {};
3294
- };
3295
- const de_DescribeCodeCoveragesOutput = (output, context) => {
3296
- return {
3297
- codeCoverages: output.codeCoverages != null ? de_CodeCoverages(output.codeCoverages, context) : undefined,
3298
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
3299
- };
3300
- };
3301
- const de_DescribeTestCasesOutput = (output, context) => {
3302
- return {
3303
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
3304
- testCases: output.testCases != null ? de_TestCases(output.testCases, context) : undefined,
3305
- };
3306
- };
3307
- const de_EnvironmentImage = (output, context) => {
3308
- return {
3309
- description: (0, smithy_client_1.expectString)(output.description),
3310
- name: (0, smithy_client_1.expectString)(output.name),
3311
- versions: output.versions != null ? de_ImageVersions(output.versions, context) : undefined,
3312
- };
3313
- };
3314
- const de_EnvironmentImages = (output, context) => {
3315
- const retVal = (output || [])
3316
- .filter((e) => e != null)
3317
- .map((entry) => {
3318
- if (entry === null) {
3319
- return null;
3320
- }
3321
- return de_EnvironmentImage(entry, context);
3322
- });
3323
- return retVal;
3324
- };
3325
- const de_EnvironmentLanguage = (output, context) => {
3326
- return {
3327
- images: output.images != null ? de_EnvironmentImages(output.images, context) : undefined,
3328
- language: (0, smithy_client_1.expectString)(output.language),
3329
- };
3330
- };
3331
- const de_EnvironmentLanguages = (output, context) => {
3332
- const retVal = (output || [])
3333
- .filter((e) => e != null)
3334
- .map((entry) => {
3335
- if (entry === null) {
3336
- return null;
3337
- }
3338
- return de_EnvironmentLanguage(entry, context);
3339
- });
3340
- return retVal;
3341
- };
3342
- const de_EnvironmentPlatform = (output, context) => {
3343
- return {
3344
- languages: output.languages != null ? de_EnvironmentLanguages(output.languages, context) : undefined,
3345
- platform: (0, smithy_client_1.expectString)(output.platform),
3346
- };
3347
- };
3348
- const de_EnvironmentPlatforms = (output, context) => {
3349
- const retVal = (output || [])
3350
- .filter((e) => e != null)
3351
- .map((entry) => {
3352
- if (entry === null) {
3353
- return null;
3354
- }
3355
- return de_EnvironmentPlatform(entry, context);
3356
- });
3357
- return retVal;
3358
- };
3359
- const de_EnvironmentVariable = (output, context) => {
3360
- return {
3361
- name: (0, smithy_client_1.expectString)(output.name),
3362
- type: (0, smithy_client_1.expectString)(output.type),
3363
- value: (0, smithy_client_1.expectString)(output.value),
3364
- };
3365
- };
3366
- const de_EnvironmentVariables = (output, context) => {
3367
- const retVal = (output || [])
3368
- .filter((e) => e != null)
3369
- .map((entry) => {
3370
- if (entry === null) {
3371
- return null;
3372
- }
3373
- return de_EnvironmentVariable(entry, context);
3374
- });
3375
- return retVal;
3376
- };
3377
- const de_ExportedEnvironmentVariable = (output, context) => {
3378
- return {
3379
- name: (0, smithy_client_1.expectString)(output.name),
3380
- value: (0, smithy_client_1.expectString)(output.value),
3381
- };
3382
- };
3383
- const de_ExportedEnvironmentVariables = (output, context) => {
3384
- const retVal = (output || [])
3385
- .filter((e) => e != null)
3386
- .map((entry) => {
3387
- if (entry === null) {
3388
- return null;
3389
- }
3390
- return de_ExportedEnvironmentVariable(entry, context);
3391
- });
3392
- return retVal;
3393
- };
3394
- const de_FilterGroup = (output, context) => {
3395
- const retVal = (output || [])
3396
- .filter((e) => e != null)
3397
- .map((entry) => {
3398
- if (entry === null) {
3399
- return null;
3400
- }
3401
- return de_WebhookFilter(entry, context);
3402
- });
3403
- return retVal;
3404
- };
3405
- const de_FilterGroups = (output, context) => {
3406
- const retVal = (output || [])
3407
- .filter((e) => e != null)
3408
- .map((entry) => {
3409
- if (entry === null) {
3410
- return null;
3411
- }
3412
- return de_FilterGroup(entry, context);
3413
- });
3414
- return retVal;
3415
- };
3416
- const de_GetReportGroupTrendOutput = (output, context) => {
3417
- return {
3418
- rawData: output.rawData != null ? de_ReportGroupTrendRawDataList(output.rawData, context) : undefined,
3419
- stats: output.stats != null ? de_ReportGroupTrendStats(output.stats, context) : undefined,
3420
- };
3421
- };
3422
- const de_GetResourcePolicyOutput = (output, context) => {
3423
- return {
3424
- policy: (0, smithy_client_1.expectString)(output.policy),
3425
- };
3426
- };
3427
- const de_GitSubmodulesConfig = (output, context) => {
3428
- return {
3429
- fetchSubmodules: (0, smithy_client_1.expectBoolean)(output.fetchSubmodules),
3430
- };
3431
- };
3432
- const de_Identifiers = (output, context) => {
3433
- const retVal = (output || [])
3434
- .filter((e) => e != null)
3435
- .map((entry) => {
3436
- if (entry === null) {
3437
- return null;
3438
- }
3439
- return (0, smithy_client_1.expectString)(entry);
3440
- });
3441
- return retVal;
3442
- };
3443
- const de_ImageVersions = (output, context) => {
3444
- const retVal = (output || [])
3445
- .filter((e) => e != null)
3446
- .map((entry) => {
3447
- if (entry === null) {
3448
- return null;
3449
- }
3450
- return (0, smithy_client_1.expectString)(entry);
3451
- });
3452
- return retVal;
3453
- };
3454
- const de_ImportSourceCredentialsOutput = (output, context) => {
3455
- return {
3456
- arn: (0, smithy_client_1.expectString)(output.arn),
3457
- };
3458
- };
3459
- const de_InvalidateProjectCacheOutput = (output, context) => {
3460
- return {};
3461
- };
3462
- const de_InvalidInputException = (output, context) => {
3463
- return {
3464
- message: (0, smithy_client_1.expectString)(output.message),
3465
- };
3466
- };
3467
- const de_ListBuildBatchesForProjectOutput = (output, context) => {
3468
- return {
3469
- ids: output.ids != null ? de_BuildBatchIds(output.ids, context) : undefined,
3470
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
3471
- };
3472
- };
3473
- const de_ListBuildBatchesOutput = (output, context) => {
3474
- return {
3475
- ids: output.ids != null ? de_BuildBatchIds(output.ids, context) : undefined,
3476
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
3477
- };
3478
- };
3479
- const de_ListBuildsForProjectOutput = (output, context) => {
3480
- return {
3481
- ids: output.ids != null ? de_BuildIds(output.ids, context) : undefined,
3482
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
3483
- };
3484
- };
3485
- const de_ListBuildsOutput = (output, context) => {
3486
- return {
3487
- ids: output.ids != null ? de_BuildIds(output.ids, context) : undefined,
3488
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
3489
- };
3490
- };
3491
- const de_ListCuratedEnvironmentImagesOutput = (output, context) => {
3492
- return {
3493
- platforms: output.platforms != null ? de_EnvironmentPlatforms(output.platforms, context) : undefined,
3494
- };
3495
- };
3496
- const de_ListProjectsOutput = (output, context) => {
3497
- return {
3498
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
3499
- projects: output.projects != null ? de_ProjectNames(output.projects, context) : undefined,
3500
- };
3501
- };
3502
- const de_ListReportGroupsOutput = (output, context) => {
3503
- return {
3504
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
3505
- reportGroups: output.reportGroups != null ? de_ReportGroupArns(output.reportGroups, context) : undefined,
3506
- };
3507
- };
3508
- const de_ListReportsForReportGroupOutput = (output, context) => {
3509
- return {
3510
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
3511
- reports: output.reports != null ? de_ReportArns(output.reports, context) : undefined,
3512
- };
3513
- };
3514
- const de_ListReportsOutput = (output, context) => {
3515
- return {
3516
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
3517
- reports: output.reports != null ? de_ReportArns(output.reports, context) : undefined,
3518
- };
3519
- };
3520
- const de_ListSharedProjectsOutput = (output, context) => {
3521
- return {
3522
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
3523
- projects: output.projects != null ? de_ProjectArns(output.projects, context) : undefined,
3524
- };
3525
- };
3526
- const de_ListSharedReportGroupsOutput = (output, context) => {
3527
- return {
3528
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
3529
- reportGroups: output.reportGroups != null ? de_ReportGroupArns(output.reportGroups, context) : undefined,
3530
- };
3531
- };
3532
- const de_ListSourceCredentialsOutput = (output, context) => {
3533
- return {
3534
- sourceCredentialsInfos: output.sourceCredentialsInfos != null
3535
- ? de_SourceCredentialsInfos(output.sourceCredentialsInfos, context)
3536
- : undefined,
3537
- };
3538
- };
3539
- const de_LogsConfig = (output, context) => {
3540
- return {
3541
- cloudWatchLogs: output.cloudWatchLogs != null ? de_CloudWatchLogsConfig(output.cloudWatchLogs, context) : undefined,
3542
- s3Logs: output.s3Logs != null ? de_S3LogsConfig(output.s3Logs, context) : undefined,
3543
- };
3544
- };
3545
- const de_LogsLocation = (output, context) => {
3546
- return {
3547
- cloudWatchLogs: output.cloudWatchLogs != null ? de_CloudWatchLogsConfig(output.cloudWatchLogs, context) : undefined,
3548
- cloudWatchLogsArn: (0, smithy_client_1.expectString)(output.cloudWatchLogsArn),
3549
- deepLink: (0, smithy_client_1.expectString)(output.deepLink),
3550
- groupName: (0, smithy_client_1.expectString)(output.groupName),
3551
- s3DeepLink: (0, smithy_client_1.expectString)(output.s3DeepLink),
3552
- s3Logs: output.s3Logs != null ? de_S3LogsConfig(output.s3Logs, context) : undefined,
3553
- s3LogsArn: (0, smithy_client_1.expectString)(output.s3LogsArn),
3554
- streamName: (0, smithy_client_1.expectString)(output.streamName),
3555
- };
3556
- };
3557
- const de_NetworkInterface = (output, context) => {
3558
- return {
3559
- networkInterfaceId: (0, smithy_client_1.expectString)(output.networkInterfaceId),
3560
- subnetId: (0, smithy_client_1.expectString)(output.subnetId),
3561
- };
3562
- };
3563
- const de_OAuthProviderException = (output, context) => {
3564
- return {
3565
- message: (0, smithy_client_1.expectString)(output.message),
3566
- };
3567
- };
3568
- const de_PhaseContext = (output, context) => {
3569
- return {
3570
- message: (0, smithy_client_1.expectString)(output.message),
3571
- statusCode: (0, smithy_client_1.expectString)(output.statusCode),
3572
- };
3573
- };
3574
- const de_PhaseContexts = (output, context) => {
3575
- const retVal = (output || [])
3576
- .filter((e) => e != null)
3577
- .map((entry) => {
3578
- if (entry === null) {
3579
- return null;
3580
- }
3581
- return de_PhaseContext(entry, context);
3582
- });
3583
- return retVal;
3584
- };
3585
- const de_Project = (output, context) => {
3586
- return {
3587
- arn: (0, smithy_client_1.expectString)(output.arn),
3588
- artifacts: output.artifacts != null ? de_ProjectArtifacts(output.artifacts, context) : undefined,
3589
- badge: output.badge != null ? de_ProjectBadge(output.badge, context) : undefined,
3590
- buildBatchConfig: output.buildBatchConfig != null ? de_ProjectBuildBatchConfig(output.buildBatchConfig, context) : undefined,
3591
- cache: output.cache != null ? de_ProjectCache(output.cache, context) : undefined,
3592
- concurrentBuildLimit: (0, smithy_client_1.expectInt32)(output.concurrentBuildLimit),
3593
- created: output.created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created))) : undefined,
3594
- description: (0, smithy_client_1.expectString)(output.description),
3595
- encryptionKey: (0, smithy_client_1.expectString)(output.encryptionKey),
3596
- environment: output.environment != null ? de_ProjectEnvironment(output.environment, context) : undefined,
3597
- fileSystemLocations: output.fileSystemLocations != null
3598
- ? de_ProjectFileSystemLocations(output.fileSystemLocations, context)
3599
- : undefined,
3600
- lastModified: output.lastModified != null
3601
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModified)))
3602
- : undefined,
3603
- logsConfig: output.logsConfig != null ? de_LogsConfig(output.logsConfig, context) : undefined,
3604
- name: (0, smithy_client_1.expectString)(output.name),
3605
- projectVisibility: (0, smithy_client_1.expectString)(output.projectVisibility),
3606
- publicProjectAlias: (0, smithy_client_1.expectString)(output.publicProjectAlias),
3607
- queuedTimeoutInMinutes: (0, smithy_client_1.expectInt32)(output.queuedTimeoutInMinutes),
3608
- resourceAccessRole: (0, smithy_client_1.expectString)(output.resourceAccessRole),
3609
- secondaryArtifacts: output.secondaryArtifacts != null ? de_ProjectArtifactsList(output.secondaryArtifacts, context) : undefined,
3610
- secondarySourceVersions: output.secondarySourceVersions != null
3611
- ? de_ProjectSecondarySourceVersions(output.secondarySourceVersions, context)
3612
- : undefined,
3613
- secondarySources: output.secondarySources != null ? de_ProjectSources(output.secondarySources, context) : undefined,
3614
- serviceRole: (0, smithy_client_1.expectString)(output.serviceRole),
3615
- source: output.source != null ? de_ProjectSource(output.source, context) : undefined,
3616
- sourceVersion: (0, smithy_client_1.expectString)(output.sourceVersion),
3617
- tags: output.tags != null ? de_TagList(output.tags, context) : undefined,
3618
- timeoutInMinutes: (0, smithy_client_1.expectInt32)(output.timeoutInMinutes),
3619
- vpcConfig: output.vpcConfig != null ? de_VpcConfig(output.vpcConfig, context) : undefined,
3620
- webhook: output.webhook != null ? de_Webhook(output.webhook, context) : undefined,
3621
- };
3622
- };
3623
- const de_ProjectArns = (output, context) => {
3624
- const retVal = (output || [])
3625
- .filter((e) => e != null)
3626
- .map((entry) => {
3627
- if (entry === null) {
3628
- return null;
3629
- }
3630
- return (0, smithy_client_1.expectString)(entry);
3631
- });
3632
- return retVal;
3633
- };
3634
- const de_ProjectArtifacts = (output, context) => {
3635
- return {
3636
- artifactIdentifier: (0, smithy_client_1.expectString)(output.artifactIdentifier),
3637
- bucketOwnerAccess: (0, smithy_client_1.expectString)(output.bucketOwnerAccess),
3638
- encryptionDisabled: (0, smithy_client_1.expectBoolean)(output.encryptionDisabled),
3639
- location: (0, smithy_client_1.expectString)(output.location),
3640
- name: (0, smithy_client_1.expectString)(output.name),
3641
- namespaceType: (0, smithy_client_1.expectString)(output.namespaceType),
3642
- overrideArtifactName: (0, smithy_client_1.expectBoolean)(output.overrideArtifactName),
3643
- packaging: (0, smithy_client_1.expectString)(output.packaging),
3644
- path: (0, smithy_client_1.expectString)(output.path),
3645
- type: (0, smithy_client_1.expectString)(output.type),
3646
- };
3647
- };
3648
- const de_ProjectArtifactsList = (output, context) => {
3649
- const retVal = (output || [])
3650
- .filter((e) => e != null)
3651
- .map((entry) => {
3652
- if (entry === null) {
3653
- return null;
3654
- }
3655
- return de_ProjectArtifacts(entry, context);
3656
- });
3657
- return retVal;
3658
- };
3659
- const de_ProjectBadge = (output, context) => {
3660
- return {
3661
- badgeEnabled: (0, smithy_client_1.expectBoolean)(output.badgeEnabled),
3662
- badgeRequestUrl: (0, smithy_client_1.expectString)(output.badgeRequestUrl),
3663
- };
3664
- };
3665
- const de_ProjectBuildBatchConfig = (output, context) => {
3666
- return {
3667
- batchReportMode: (0, smithy_client_1.expectString)(output.batchReportMode),
3668
- combineArtifacts: (0, smithy_client_1.expectBoolean)(output.combineArtifacts),
3669
- restrictions: output.restrictions != null ? de_BatchRestrictions(output.restrictions, context) : undefined,
3670
- serviceRole: (0, smithy_client_1.expectString)(output.serviceRole),
3671
- timeoutInMins: (0, smithy_client_1.expectInt32)(output.timeoutInMins),
3672
- };
3673
- };
3674
- const de_ProjectCache = (output, context) => {
3675
- return {
3676
- location: (0, smithy_client_1.expectString)(output.location),
3677
- modes: output.modes != null ? de_ProjectCacheModes(output.modes, context) : undefined,
3678
- type: (0, smithy_client_1.expectString)(output.type),
3679
- };
3680
- };
3681
- const de_ProjectCacheModes = (output, context) => {
3682
- const retVal = (output || [])
3683
- .filter((e) => e != null)
3684
- .map((entry) => {
3685
- if (entry === null) {
3686
- return null;
3687
- }
3688
- return (0, smithy_client_1.expectString)(entry);
3689
- });
3690
- return retVal;
3691
- };
3692
- const de_ProjectEnvironment = (output, context) => {
3693
- return {
3694
- certificate: (0, smithy_client_1.expectString)(output.certificate),
3695
- computeType: (0, smithy_client_1.expectString)(output.computeType),
3696
- environmentVariables: output.environmentVariables != null ? de_EnvironmentVariables(output.environmentVariables, context) : undefined,
3697
- image: (0, smithy_client_1.expectString)(output.image),
3698
- imagePullCredentialsType: (0, smithy_client_1.expectString)(output.imagePullCredentialsType),
3699
- privilegedMode: (0, smithy_client_1.expectBoolean)(output.privilegedMode),
3700
- registryCredential: output.registryCredential != null ? de_RegistryCredential(output.registryCredential, context) : undefined,
3701
- type: (0, smithy_client_1.expectString)(output.type),
3702
- };
3703
- };
3704
- const de_ProjectFileSystemLocation = (output, context) => {
3705
- return {
3706
- identifier: (0, smithy_client_1.expectString)(output.identifier),
3707
- location: (0, smithy_client_1.expectString)(output.location),
3708
- mountOptions: (0, smithy_client_1.expectString)(output.mountOptions),
3709
- mountPoint: (0, smithy_client_1.expectString)(output.mountPoint),
3710
- type: (0, smithy_client_1.expectString)(output.type),
3711
- };
3712
- };
3713
- const de_ProjectFileSystemLocations = (output, context) => {
3714
- const retVal = (output || [])
3715
- .filter((e) => e != null)
3716
- .map((entry) => {
3717
- if (entry === null) {
3718
- return null;
3719
- }
3720
- return de_ProjectFileSystemLocation(entry, context);
3721
- });
3722
- return retVal;
3723
- };
3724
- const de_ProjectNames = (output, context) => {
3725
- const retVal = (output || [])
3726
- .filter((e) => e != null)
3727
- .map((entry) => {
3728
- if (entry === null) {
3729
- return null;
3730
- }
3731
- return (0, smithy_client_1.expectString)(entry);
3732
- });
3733
- return retVal;
3734
- };
3735
- const de_Projects = (output, context) => {
3736
- const retVal = (output || [])
3737
- .filter((e) => e != null)
3738
- .map((entry) => {
3739
- if (entry === null) {
3740
- return null;
3741
- }
3742
- return de_Project(entry, context);
3743
- });
3744
- return retVal;
3745
- };
3746
- const de_ProjectSecondarySourceVersions = (output, context) => {
3747
- const retVal = (output || [])
3748
- .filter((e) => e != null)
3749
- .map((entry) => {
3750
- if (entry === null) {
3751
- return null;
3752
- }
3753
- return de_ProjectSourceVersion(entry, context);
3754
- });
3755
- return retVal;
3756
- };
3757
- const de_ProjectSource = (output, context) => {
3758
- return {
3759
- auth: output.auth != null ? de_SourceAuth(output.auth, context) : undefined,
3760
- buildStatusConfig: output.buildStatusConfig != null ? de_BuildStatusConfig(output.buildStatusConfig, context) : undefined,
3761
- buildspec: (0, smithy_client_1.expectString)(output.buildspec),
3762
- gitCloneDepth: (0, smithy_client_1.expectInt32)(output.gitCloneDepth),
3763
- gitSubmodulesConfig: output.gitSubmodulesConfig != null ? de_GitSubmodulesConfig(output.gitSubmodulesConfig, context) : undefined,
3764
- insecureSsl: (0, smithy_client_1.expectBoolean)(output.insecureSsl),
3765
- location: (0, smithy_client_1.expectString)(output.location),
3766
- reportBuildStatus: (0, smithy_client_1.expectBoolean)(output.reportBuildStatus),
3767
- sourceIdentifier: (0, smithy_client_1.expectString)(output.sourceIdentifier),
3768
- type: (0, smithy_client_1.expectString)(output.type),
3769
- };
3770
- };
3771
- const de_ProjectSources = (output, context) => {
3772
- const retVal = (output || [])
3773
- .filter((e) => e != null)
3774
- .map((entry) => {
3775
- if (entry === null) {
3776
- return null;
3777
- }
3778
- return de_ProjectSource(entry, context);
3779
- });
3780
- return retVal;
3781
- };
3782
- const de_ProjectSourceVersion = (output, context) => {
3783
- return {
3784
- sourceIdentifier: (0, smithy_client_1.expectString)(output.sourceIdentifier),
3785
- sourceVersion: (0, smithy_client_1.expectString)(output.sourceVersion),
3786
- };
3787
- };
3788
- const de_PutResourcePolicyOutput = (output, context) => {
3789
- return {
3790
- resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
3791
- };
3792
- };
3793
- const de_RegistryCredential = (output, context) => {
3794
- return {
3795
- credential: (0, smithy_client_1.expectString)(output.credential),
3796
- credentialProvider: (0, smithy_client_1.expectString)(output.credentialProvider),
3797
- };
3798
- };
3799
- const de_Report = (output, context) => {
3800
- return {
3801
- arn: (0, smithy_client_1.expectString)(output.arn),
3802
- codeCoverageSummary: output.codeCoverageSummary != null
3803
- ? de_CodeCoverageReportSummary(output.codeCoverageSummary, context)
3804
- : undefined,
3805
- created: output.created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created))) : undefined,
3806
- executionId: (0, smithy_client_1.expectString)(output.executionId),
3807
- expired: output.expired != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expired))) : undefined,
3808
- exportConfig: output.exportConfig != null ? de_ReportExportConfig(output.exportConfig, context) : undefined,
3809
- name: (0, smithy_client_1.expectString)(output.name),
3810
- reportGroupArn: (0, smithy_client_1.expectString)(output.reportGroupArn),
3811
- status: (0, smithy_client_1.expectString)(output.status),
3812
- testSummary: output.testSummary != null ? de_TestReportSummary(output.testSummary, context) : undefined,
3813
- truncated: (0, smithy_client_1.expectBoolean)(output.truncated),
3814
- type: (0, smithy_client_1.expectString)(output.type),
3815
- };
3816
- };
3817
- const de_ReportArns = (output, context) => {
3818
- const retVal = (output || [])
3819
- .filter((e) => e != null)
3820
- .map((entry) => {
3821
- if (entry === null) {
3822
- return null;
3823
- }
3824
- return (0, smithy_client_1.expectString)(entry);
3825
- });
3826
- return retVal;
3827
- };
3828
- const de_ReportExportConfig = (output, context) => {
3829
- return {
3830
- exportConfigType: (0, smithy_client_1.expectString)(output.exportConfigType),
3831
- s3Destination: output.s3Destination != null ? de_S3ReportExportConfig(output.s3Destination, context) : undefined,
3832
- };
3833
- };
3834
- const de_ReportGroup = (output, context) => {
3835
- return {
3836
- arn: (0, smithy_client_1.expectString)(output.arn),
3837
- created: output.created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created))) : undefined,
3838
- exportConfig: output.exportConfig != null ? de_ReportExportConfig(output.exportConfig, context) : undefined,
3839
- lastModified: output.lastModified != null
3840
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModified)))
3841
- : undefined,
3842
- name: (0, smithy_client_1.expectString)(output.name),
3843
- status: (0, smithy_client_1.expectString)(output.status),
3844
- tags: output.tags != null ? de_TagList(output.tags, context) : undefined,
3845
- type: (0, smithy_client_1.expectString)(output.type),
3846
- };
3847
- };
3848
- const de_ReportGroupArns = (output, context) => {
3849
- const retVal = (output || [])
3850
- .filter((e) => e != null)
3851
- .map((entry) => {
3852
- if (entry === null) {
3853
- return null;
3854
- }
3855
- return (0, smithy_client_1.expectString)(entry);
3856
- });
3857
- return retVal;
3858
- };
3859
- const de_ReportGroups = (output, context) => {
3860
- const retVal = (output || [])
3861
- .filter((e) => e != null)
3862
- .map((entry) => {
3863
- if (entry === null) {
3864
- return null;
3865
- }
3866
- return de_ReportGroup(entry, context);
3867
- });
3868
- return retVal;
3869
- };
3870
- const de_ReportGroupTrendRawDataList = (output, context) => {
3871
- const retVal = (output || [])
3872
- .filter((e) => e != null)
3873
- .map((entry) => {
3874
- if (entry === null) {
3875
- return null;
3876
- }
3877
- return de_ReportWithRawData(entry, context);
3878
- });
3879
- return retVal;
3880
- };
3881
- const de_ReportGroupTrendStats = (output, context) => {
3882
- return {
3883
- average: (0, smithy_client_1.expectString)(output.average),
3884
- max: (0, smithy_client_1.expectString)(output.max),
3885
- min: (0, smithy_client_1.expectString)(output.min),
3886
- };
3887
- };
3888
- const de_Reports = (output, context) => {
3889
- const retVal = (output || [])
3890
- .filter((e) => e != null)
3891
- .map((entry) => {
3892
- if (entry === null) {
3893
- return null;
3894
- }
3895
- return de_Report(entry, context);
3896
- });
3897
- return retVal;
3898
- };
3899
- const de_ReportStatusCounts = (output, context) => {
3900
- return Object.entries(output).reduce((acc, [key, value]) => {
3901
- if (value === null) {
3902
- return acc;
3903
- }
3904
- acc[key] = (0, smithy_client_1.expectInt32)(value);
3905
- return acc;
3906
- }, {});
3907
- };
3908
- const de_ReportWithRawData = (output, context) => {
3909
- return {
3910
- data: (0, smithy_client_1.expectString)(output.data),
3911
- reportArn: (0, smithy_client_1.expectString)(output.reportArn),
3912
- };
3913
- };
3914
- const de_ResolvedArtifact = (output, context) => {
3915
- return {
3916
- identifier: (0, smithy_client_1.expectString)(output.identifier),
3917
- location: (0, smithy_client_1.expectString)(output.location),
3918
- type: (0, smithy_client_1.expectString)(output.type),
3919
- };
3920
- };
3921
- const de_ResolvedSecondaryArtifacts = (output, context) => {
3922
- const retVal = (output || [])
3923
- .filter((e) => e != null)
3924
- .map((entry) => {
3925
- if (entry === null) {
3926
- return null;
3927
- }
3928
- return de_ResolvedArtifact(entry, context);
3929
- });
3930
- return retVal;
3931
- };
3932
- const de_ResourceAlreadyExistsException = (output, context) => {
3933
- return {
3934
- message: (0, smithy_client_1.expectString)(output.message),
3935
- };
3936
- };
3937
- const de_ResourceNotFoundException = (output, context) => {
3938
- return {
3939
- message: (0, smithy_client_1.expectString)(output.message),
3940
- };
3941
- };
3942
- const de_RetryBuildBatchOutput = (output, context) => {
3943
- return {
3944
- buildBatch: output.buildBatch != null ? de_BuildBatch(output.buildBatch, context) : undefined,
3945
- };
3946
- };
3947
- const de_RetryBuildOutput = (output, context) => {
3948
- return {
3949
- build: output.build != null ? de_Build(output.build, context) : undefined,
3950
- };
3951
- };
3952
- const de_S3LogsConfig = (output, context) => {
3953
- return {
3954
- bucketOwnerAccess: (0, smithy_client_1.expectString)(output.bucketOwnerAccess),
3955
- encryptionDisabled: (0, smithy_client_1.expectBoolean)(output.encryptionDisabled),
3956
- location: (0, smithy_client_1.expectString)(output.location),
3957
- status: (0, smithy_client_1.expectString)(output.status),
3958
- };
3959
- };
3960
- const de_S3ReportExportConfig = (output, context) => {
3961
- return {
3962
- bucket: (0, smithy_client_1.expectString)(output.bucket),
3963
- bucketOwner: (0, smithy_client_1.expectString)(output.bucketOwner),
3964
- encryptionDisabled: (0, smithy_client_1.expectBoolean)(output.encryptionDisabled),
3965
- encryptionKey: (0, smithy_client_1.expectString)(output.encryptionKey),
3966
- packaging: (0, smithy_client_1.expectString)(output.packaging),
3967
- path: (0, smithy_client_1.expectString)(output.path),
3968
- };
3969
- };
3970
- const de_SecurityGroupIds = (output, context) => {
3971
- const retVal = (output || [])
3972
- .filter((e) => e != null)
3973
- .map((entry) => {
3974
- if (entry === null) {
3975
- return null;
3976
- }
3977
- return (0, smithy_client_1.expectString)(entry);
3978
- });
3979
- return retVal;
3980
- };
3981
- const de_SourceAuth = (output, context) => {
3982
- return {
3983
- resource: (0, smithy_client_1.expectString)(output.resource),
3984
- type: (0, smithy_client_1.expectString)(output.type),
3985
- };
3986
- };
3987
- const de_SourceCredentialsInfo = (output, context) => {
3988
- return {
3989
- arn: (0, smithy_client_1.expectString)(output.arn),
3990
- authType: (0, smithy_client_1.expectString)(output.authType),
3991
- serverType: (0, smithy_client_1.expectString)(output.serverType),
3992
- };
3993
- };
3994
- const de_SourceCredentialsInfos = (output, context) => {
3995
- const retVal = (output || [])
3996
- .filter((e) => e != null)
3997
- .map((entry) => {
3998
- if (entry === null) {
3999
- return null;
4000
- }
4001
- return de_SourceCredentialsInfo(entry, context);
4002
- });
4003
- return retVal;
4004
- };
4005
- const de_StartBuildBatchOutput = (output, context) => {
4006
- return {
4007
- buildBatch: output.buildBatch != null ? de_BuildBatch(output.buildBatch, context) : undefined,
4008
- };
4009
- };
4010
- const de_StartBuildOutput = (output, context) => {
4011
- return {
4012
- build: output.build != null ? de_Build(output.build, context) : undefined,
4013
- };
2302
+ const de_StartBuildOutput = (output, context) => {
2303
+ return (0, smithy_client_1.take)(output, {
2304
+ build: (_) => de_Build(_, context),
2305
+ });
4014
2306
  };
4015
2307
  const de_StopBuildBatchOutput = (output, context) => {
4016
- return {
4017
- buildBatch: output.buildBatch != null ? de_BuildBatch(output.buildBatch, context) : undefined,
4018
- };
4019
- };
4020
- const de_StopBuildOutput = (output, context) => {
4021
- return {
4022
- build: output.build != null ? de_Build(output.build, context) : undefined,
4023
- };
4024
- };
4025
- const de_Subnets = (output, context) => {
4026
- const retVal = (output || [])
4027
- .filter((e) => e != null)
4028
- .map((entry) => {
4029
- if (entry === null) {
4030
- return null;
4031
- }
4032
- return (0, smithy_client_1.expectString)(entry);
2308
+ return (0, smithy_client_1.take)(output, {
2309
+ buildBatch: (_) => de_BuildBatch(_, context),
4033
2310
  });
4034
- return retVal;
4035
2311
  };
4036
- const de_Tag = (output, context) => {
4037
- return {
4038
- key: (0, smithy_client_1.expectString)(output.key),
4039
- value: (0, smithy_client_1.expectString)(output.value),
4040
- };
4041
- };
4042
- const de_TagList = (output, context) => {
4043
- const retVal = (output || [])
4044
- .filter((e) => e != null)
4045
- .map((entry) => {
4046
- if (entry === null) {
4047
- return null;
4048
- }
4049
- return de_Tag(entry, context);
2312
+ const de_StopBuildOutput = (output, context) => {
2313
+ return (0, smithy_client_1.take)(output, {
2314
+ build: (_) => de_Build(_, context),
4050
2315
  });
4051
- return retVal;
4052
2316
  };
4053
2317
  const de_TestCase = (output, context) => {
4054
- return {
4055
- durationInNanoSeconds: (0, smithy_client_1.expectLong)(output.durationInNanoSeconds),
4056
- expired: output.expired != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expired))) : undefined,
4057
- message: (0, smithy_client_1.expectString)(output.message),
4058
- name: (0, smithy_client_1.expectString)(output.name),
4059
- prefix: (0, smithy_client_1.expectString)(output.prefix),
4060
- reportArn: (0, smithy_client_1.expectString)(output.reportArn),
4061
- status: (0, smithy_client_1.expectString)(output.status),
4062
- testRawDataPath: (0, smithy_client_1.expectString)(output.testRawDataPath),
4063
- };
2318
+ return (0, smithy_client_1.take)(output, {
2319
+ durationInNanoSeconds: smithy_client_1.expectLong,
2320
+ expired: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2321
+ message: smithy_client_1.expectString,
2322
+ name: smithy_client_1.expectString,
2323
+ prefix: smithy_client_1.expectString,
2324
+ reportArn: smithy_client_1.expectString,
2325
+ status: smithy_client_1.expectString,
2326
+ testRawDataPath: smithy_client_1.expectString,
2327
+ });
4064
2328
  };
4065
2329
  const de_TestCases = (output, context) => {
4066
2330
  const retVal = (output || [])
4067
2331
  .filter((e) => e != null)
4068
2332
  .map((entry) => {
4069
- if (entry === null) {
4070
- return null;
4071
- }
4072
2333
  return de_TestCase(entry, context);
4073
2334
  });
4074
2335
  return retVal;
4075
2336
  };
4076
- const de_TestReportSummary = (output, context) => {
4077
- return {
4078
- durationInNanoSeconds: (0, smithy_client_1.expectLong)(output.durationInNanoSeconds),
4079
- statusCounts: output.statusCounts != null ? de_ReportStatusCounts(output.statusCounts, context) : undefined,
4080
- total: (0, smithy_client_1.expectInt32)(output.total),
4081
- };
4082
- };
4083
2337
  const de_UpdateProjectOutput = (output, context) => {
4084
- return {
4085
- project: output.project != null ? de_Project(output.project, context) : undefined,
4086
- };
4087
- };
4088
- const de_UpdateProjectVisibilityOutput = (output, context) => {
4089
- return {
4090
- projectArn: (0, smithy_client_1.expectString)(output.projectArn),
4091
- projectVisibility: (0, smithy_client_1.expectString)(output.projectVisibility),
4092
- publicProjectAlias: (0, smithy_client_1.expectString)(output.publicProjectAlias),
4093
- };
2338
+ return (0, smithy_client_1.take)(output, {
2339
+ project: (_) => de_Project(_, context),
2340
+ });
4094
2341
  };
4095
2342
  const de_UpdateReportGroupOutput = (output, context) => {
4096
- return {
4097
- reportGroup: output.reportGroup != null ? de_ReportGroup(output.reportGroup, context) : undefined,
4098
- };
2343
+ return (0, smithy_client_1.take)(output, {
2344
+ reportGroup: (_) => de_ReportGroup(_, context),
2345
+ });
4099
2346
  };
4100
2347
  const de_UpdateWebhookOutput = (output, context) => {
4101
- return {
4102
- webhook: output.webhook != null ? de_Webhook(output.webhook, context) : undefined,
4103
- };
4104
- };
4105
- const de_VpcConfig = (output, context) => {
4106
- return {
4107
- securityGroupIds: output.securityGroupIds != null ? de_SecurityGroupIds(output.securityGroupIds, context) : undefined,
4108
- subnets: output.subnets != null ? de_Subnets(output.subnets, context) : undefined,
4109
- vpcId: (0, smithy_client_1.expectString)(output.vpcId),
4110
- };
2348
+ return (0, smithy_client_1.take)(output, {
2349
+ webhook: (_) => de_Webhook(_, context),
2350
+ });
4111
2351
  };
4112
2352
  const de_Webhook = (output, context) => {
4113
- return {
4114
- branchFilter: (0, smithy_client_1.expectString)(output.branchFilter),
4115
- buildType: (0, smithy_client_1.expectString)(output.buildType),
4116
- filterGroups: output.filterGroups != null ? de_FilterGroups(output.filterGroups, context) : undefined,
4117
- lastModifiedSecret: output.lastModifiedSecret != null
4118
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedSecret)))
4119
- : undefined,
4120
- payloadUrl: (0, smithy_client_1.expectString)(output.payloadUrl),
4121
- secret: (0, smithy_client_1.expectString)(output.secret),
4122
- url: (0, smithy_client_1.expectString)(output.url),
4123
- };
4124
- };
4125
- const de_WebhookFilter = (output, context) => {
4126
- return {
4127
- excludeMatchedPattern: (0, smithy_client_1.expectBoolean)(output.excludeMatchedPattern),
4128
- pattern: (0, smithy_client_1.expectString)(output.pattern),
4129
- type: (0, smithy_client_1.expectString)(output.type),
4130
- };
2353
+ return (0, smithy_client_1.take)(output, {
2354
+ branchFilter: smithy_client_1.expectString,
2355
+ buildType: smithy_client_1.expectString,
2356
+ filterGroups: smithy_client_1._json,
2357
+ lastModifiedSecret: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2358
+ payloadUrl: smithy_client_1.expectString,
2359
+ secret: smithy_client_1.expectString,
2360
+ url: smithy_client_1.expectString,
2361
+ });
4131
2362
  };
4132
2363
  const deserializeMetadata = (output) => ({
4133
2364
  httpStatusCode: output.statusCode,
@@ -4142,6 +2373,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
4142
2373
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
4143
2374
  };
4144
2375
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2376
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(CodeBuildServiceException_1.CodeBuildServiceException);
4145
2377
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
4146
2378
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4147
2379
  const contents = {
@@ -4160,6 +2392,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
4160
2392
  }
4161
2393
  return new protocol_http_1.HttpRequest(contents);
4162
2394
  };
2395
+ function sharedHeaders(operation) {
2396
+ return {
2397
+ "content-type": "application/x-amz-json-1.1",
2398
+ "x-amz-target": `CodeBuild_20161006.${operation}`,
2399
+ };
2400
+ }
4163
2401
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
4164
2402
  if (encoded.length) {
4165
2403
  return JSON.parse(encoded);