@aws-sdk/client-codepipeline 3.312.0 → 3.316.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.
@@ -1,150 +1,150 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { CodePipelineServiceException as __BaseException } from "../models/CodePipelineServiceException";
5
5
  import { ActionNotFoundException, ActionTypeNotFoundException, ApprovalAlreadyCompletedException, ConcurrentModificationException, ConflictException, DuplicatedStopRequestException, InvalidActionDeclarationException, InvalidApprovalTokenException, InvalidArnException, InvalidBlockerDeclarationException, InvalidClientTokenException, InvalidJobException, InvalidJobStateException, InvalidNextTokenException, InvalidNonceException, InvalidStageDeclarationException, InvalidStructureException, InvalidTagsException, InvalidWebhookAuthenticationParametersException, InvalidWebhookFilterPatternException, JobNotFoundException, LimitExceededException, NotLatestPipelineExecutionException, OutputVariablesSizeExceededException, PipelineExecutionNotFoundException, PipelineExecutionNotStoppableException, PipelineNameInUseException, PipelineNotFoundException, PipelineVersionNotFoundException, RequestFailedException, ResourceNotFoundException, StageNotFoundException, StageNotRetryableException, TooManyTagsException, ValidationException, WebhookNotFoundException, } from "../models/models_0";
6
6
  export const se_AcknowledgeJobCommand = async (input, context) => {
7
7
  const headers = sharedHeaders("AcknowledgeJob");
8
8
  let body;
9
- body = JSON.stringify(se_AcknowledgeJobInput(input, context));
9
+ body = JSON.stringify(_json(input));
10
10
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
11
11
  };
12
12
  export const se_AcknowledgeThirdPartyJobCommand = async (input, context) => {
13
13
  const headers = sharedHeaders("AcknowledgeThirdPartyJob");
14
14
  let body;
15
- body = JSON.stringify(se_AcknowledgeThirdPartyJobInput(input, context));
15
+ body = JSON.stringify(_json(input));
16
16
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
17
  };
18
18
  export const se_CreateCustomActionTypeCommand = async (input, context) => {
19
19
  const headers = sharedHeaders("CreateCustomActionType");
20
20
  let body;
21
- body = JSON.stringify(se_CreateCustomActionTypeInput(input, context));
21
+ body = JSON.stringify(_json(input));
22
22
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
23
23
  };
24
24
  export const se_CreatePipelineCommand = async (input, context) => {
25
25
  const headers = sharedHeaders("CreatePipeline");
26
26
  let body;
27
- body = JSON.stringify(se_CreatePipelineInput(input, context));
27
+ body = JSON.stringify(_json(input));
28
28
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
29
  };
30
30
  export const se_DeleteCustomActionTypeCommand = async (input, context) => {
31
31
  const headers = sharedHeaders("DeleteCustomActionType");
32
32
  let body;
33
- body = JSON.stringify(se_DeleteCustomActionTypeInput(input, context));
33
+ body = JSON.stringify(_json(input));
34
34
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
35
35
  };
36
36
  export const se_DeletePipelineCommand = async (input, context) => {
37
37
  const headers = sharedHeaders("DeletePipeline");
38
38
  let body;
39
- body = JSON.stringify(se_DeletePipelineInput(input, context));
39
+ body = JSON.stringify(_json(input));
40
40
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
41
41
  };
42
42
  export const se_DeleteWebhookCommand = async (input, context) => {
43
43
  const headers = sharedHeaders("DeleteWebhook");
44
44
  let body;
45
- body = JSON.stringify(se_DeleteWebhookInput(input, context));
45
+ body = JSON.stringify(_json(input));
46
46
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
47
47
  };
48
48
  export const se_DeregisterWebhookWithThirdPartyCommand = async (input, context) => {
49
49
  const headers = sharedHeaders("DeregisterWebhookWithThirdParty");
50
50
  let body;
51
- body = JSON.stringify(se_DeregisterWebhookWithThirdPartyInput(input, context));
51
+ body = JSON.stringify(_json(input));
52
52
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
53
53
  };
54
54
  export const se_DisableStageTransitionCommand = async (input, context) => {
55
55
  const headers = sharedHeaders("DisableStageTransition");
56
56
  let body;
57
- body = JSON.stringify(se_DisableStageTransitionInput(input, context));
57
+ body = JSON.stringify(_json(input));
58
58
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
59
59
  };
60
60
  export const se_EnableStageTransitionCommand = async (input, context) => {
61
61
  const headers = sharedHeaders("EnableStageTransition");
62
62
  let body;
63
- body = JSON.stringify(se_EnableStageTransitionInput(input, context));
63
+ body = JSON.stringify(_json(input));
64
64
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
65
65
  };
66
66
  export const se_GetActionTypeCommand = async (input, context) => {
67
67
  const headers = sharedHeaders("GetActionType");
68
68
  let body;
69
- body = JSON.stringify(se_GetActionTypeInput(input, context));
69
+ body = JSON.stringify(_json(input));
70
70
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
71
71
  };
72
72
  export const se_GetJobDetailsCommand = async (input, context) => {
73
73
  const headers = sharedHeaders("GetJobDetails");
74
74
  let body;
75
- body = JSON.stringify(se_GetJobDetailsInput(input, context));
75
+ body = JSON.stringify(_json(input));
76
76
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
77
  };
78
78
  export const se_GetPipelineCommand = async (input, context) => {
79
79
  const headers = sharedHeaders("GetPipeline");
80
80
  let body;
81
- body = JSON.stringify(se_GetPipelineInput(input, context));
81
+ body = JSON.stringify(_json(input));
82
82
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
83
83
  };
84
84
  export const se_GetPipelineExecutionCommand = async (input, context) => {
85
85
  const headers = sharedHeaders("GetPipelineExecution");
86
86
  let body;
87
- body = JSON.stringify(se_GetPipelineExecutionInput(input, context));
87
+ body = JSON.stringify(_json(input));
88
88
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
89
89
  };
90
90
  export const se_GetPipelineStateCommand = async (input, context) => {
91
91
  const headers = sharedHeaders("GetPipelineState");
92
92
  let body;
93
- body = JSON.stringify(se_GetPipelineStateInput(input, context));
93
+ body = JSON.stringify(_json(input));
94
94
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
95
95
  };
96
96
  export const se_GetThirdPartyJobDetailsCommand = async (input, context) => {
97
97
  const headers = sharedHeaders("GetThirdPartyJobDetails");
98
98
  let body;
99
- body = JSON.stringify(se_GetThirdPartyJobDetailsInput(input, context));
99
+ body = JSON.stringify(_json(input));
100
100
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
101
101
  };
102
102
  export const se_ListActionExecutionsCommand = async (input, context) => {
103
103
  const headers = sharedHeaders("ListActionExecutions");
104
104
  let body;
105
- body = JSON.stringify(se_ListActionExecutionsInput(input, context));
105
+ body = JSON.stringify(_json(input));
106
106
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
107
107
  };
108
108
  export const se_ListActionTypesCommand = async (input, context) => {
109
109
  const headers = sharedHeaders("ListActionTypes");
110
110
  let body;
111
- body = JSON.stringify(se_ListActionTypesInput(input, context));
111
+ body = JSON.stringify(_json(input));
112
112
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
113
  };
114
114
  export const se_ListPipelineExecutionsCommand = async (input, context) => {
115
115
  const headers = sharedHeaders("ListPipelineExecutions");
116
116
  let body;
117
- body = JSON.stringify(se_ListPipelineExecutionsInput(input, context));
117
+ body = JSON.stringify(_json(input));
118
118
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
119
119
  };
120
120
  export const se_ListPipelinesCommand = async (input, context) => {
121
121
  const headers = sharedHeaders("ListPipelines");
122
122
  let body;
123
- body = JSON.stringify(se_ListPipelinesInput(input, context));
123
+ body = JSON.stringify(_json(input));
124
124
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
125
125
  };
126
126
  export const se_ListTagsForResourceCommand = async (input, context) => {
127
127
  const headers = sharedHeaders("ListTagsForResource");
128
128
  let body;
129
- body = JSON.stringify(se_ListTagsForResourceInput(input, context));
129
+ body = JSON.stringify(_json(input));
130
130
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
131
131
  };
132
132
  export const se_ListWebhooksCommand = async (input, context) => {
133
133
  const headers = sharedHeaders("ListWebhooks");
134
134
  let body;
135
- body = JSON.stringify(se_ListWebhooksInput(input, context));
135
+ body = JSON.stringify(_json(input));
136
136
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
137
137
  };
138
138
  export const se_PollForJobsCommand = async (input, context) => {
139
139
  const headers = sharedHeaders("PollForJobs");
140
140
  let body;
141
- body = JSON.stringify(se_PollForJobsInput(input, context));
141
+ body = JSON.stringify(_json(input));
142
142
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
143
143
  };
144
144
  export const se_PollForThirdPartyJobsCommand = async (input, context) => {
145
145
  const headers = sharedHeaders("PollForThirdPartyJobs");
146
146
  let body;
147
- body = JSON.stringify(se_PollForThirdPartyJobsInput(input, context));
147
+ body = JSON.stringify(_json(input));
148
148
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
149
149
  };
150
150
  export const se_PutActionRevisionCommand = async (input, context) => {
@@ -156,13 +156,13 @@ export const se_PutActionRevisionCommand = async (input, context) => {
156
156
  export const se_PutApprovalResultCommand = async (input, context) => {
157
157
  const headers = sharedHeaders("PutApprovalResult");
158
158
  let body;
159
- body = JSON.stringify(se_PutApprovalResultInput(input, context));
159
+ body = JSON.stringify(_json(input));
160
160
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
161
161
  };
162
162
  export const se_PutJobFailureResultCommand = async (input, context) => {
163
163
  const headers = sharedHeaders("PutJobFailureResult");
164
164
  let body;
165
- body = JSON.stringify(se_PutJobFailureResultInput(input, context));
165
+ body = JSON.stringify(_json(input));
166
166
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
167
167
  };
168
168
  export const se_PutJobSuccessResultCommand = async (input, context) => {
@@ -174,7 +174,7 @@ export const se_PutJobSuccessResultCommand = async (input, context) => {
174
174
  export const se_PutThirdPartyJobFailureResultCommand = async (input, context) => {
175
175
  const headers = sharedHeaders("PutThirdPartyJobFailureResult");
176
176
  let body;
177
- body = JSON.stringify(se_PutThirdPartyJobFailureResultInput(input, context));
177
+ body = JSON.stringify(_json(input));
178
178
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
179
179
  };
180
180
  export const se_PutThirdPartyJobSuccessResultCommand = async (input, context) => {
@@ -186,19 +186,19 @@ export const se_PutThirdPartyJobSuccessResultCommand = async (input, context) =>
186
186
  export const se_PutWebhookCommand = async (input, context) => {
187
187
  const headers = sharedHeaders("PutWebhook");
188
188
  let body;
189
- body = JSON.stringify(se_PutWebhookInput(input, context));
189
+ body = JSON.stringify(_json(input));
190
190
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
191
191
  };
192
192
  export const se_RegisterWebhookWithThirdPartyCommand = async (input, context) => {
193
193
  const headers = sharedHeaders("RegisterWebhookWithThirdParty");
194
194
  let body;
195
- body = JSON.stringify(se_RegisterWebhookWithThirdPartyInput(input, context));
195
+ body = JSON.stringify(_json(input));
196
196
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
197
  };
198
198
  export const se_RetryStageExecutionCommand = async (input, context) => {
199
199
  const headers = sharedHeaders("RetryStageExecution");
200
200
  let body;
201
- body = JSON.stringify(se_RetryStageExecutionInput(input, context));
201
+ body = JSON.stringify(_json(input));
202
202
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
203
203
  };
204
204
  export const se_StartPipelineExecutionCommand = async (input, context) => {
@@ -210,31 +210,31 @@ export const se_StartPipelineExecutionCommand = async (input, context) => {
210
210
  export const se_StopPipelineExecutionCommand = async (input, context) => {
211
211
  const headers = sharedHeaders("StopPipelineExecution");
212
212
  let body;
213
- body = JSON.stringify(se_StopPipelineExecutionInput(input, context));
213
+ body = JSON.stringify(_json(input));
214
214
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
215
215
  };
216
216
  export const se_TagResourceCommand = async (input, context) => {
217
217
  const headers = sharedHeaders("TagResource");
218
218
  let body;
219
- body = JSON.stringify(se_TagResourceInput(input, context));
219
+ body = JSON.stringify(_json(input));
220
220
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
221
221
  };
222
222
  export const se_UntagResourceCommand = async (input, context) => {
223
223
  const headers = sharedHeaders("UntagResource");
224
224
  let body;
225
- body = JSON.stringify(se_UntagResourceInput(input, context));
225
+ body = JSON.stringify(_json(input));
226
226
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
227
227
  };
228
228
  export const se_UpdateActionTypeCommand = async (input, context) => {
229
229
  const headers = sharedHeaders("UpdateActionType");
230
230
  let body;
231
- body = JSON.stringify(se_UpdateActionTypeInput(input, context));
231
+ body = JSON.stringify(_json(input));
232
232
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
233
233
  };
234
234
  export const se_UpdatePipelineCommand = async (input, context) => {
235
235
  const headers = sharedHeaders("UpdatePipeline");
236
236
  let body;
237
- body = JSON.stringify(se_UpdatePipelineInput(input, context));
237
+ body = JSON.stringify(_json(input));
238
238
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
239
239
  };
240
240
  export const de_AcknowledgeJobCommand = async (output, context) => {
@@ -243,12 +243,12 @@ export const de_AcknowledgeJobCommand = async (output, context) => {
243
243
  }
244
244
  const data = await parseBody(output.body, context);
245
245
  let contents = {};
246
- contents = de_AcknowledgeJobOutput(data, context);
246
+ contents = _json(data);
247
247
  const response = {
248
248
  $metadata: deserializeMetadata(output),
249
249
  ...contents,
250
250
  };
251
- return Promise.resolve(response);
251
+ return response;
252
252
  };
253
253
  const de_AcknowledgeJobCommandError = async (output, context) => {
254
254
  const parsedOutput = {
@@ -268,10 +268,9 @@ const de_AcknowledgeJobCommandError = async (output, context) => {
268
268
  throw await de_ValidationExceptionRes(parsedOutput, context);
269
269
  default:
270
270
  const parsedBody = parsedOutput.body;
271
- throwDefaultError({
271
+ return throwDefaultError({
272
272
  output,
273
273
  parsedBody,
274
- exceptionCtor: __BaseException,
275
274
  errorCode,
276
275
  });
277
276
  }
@@ -282,12 +281,12 @@ export const de_AcknowledgeThirdPartyJobCommand = async (output, context) => {
282
281
  }
283
282
  const data = await parseBody(output.body, context);
284
283
  let contents = {};
285
- contents = de_AcknowledgeThirdPartyJobOutput(data, context);
284
+ contents = _json(data);
286
285
  const response = {
287
286
  $metadata: deserializeMetadata(output),
288
287
  ...contents,
289
288
  };
290
- return Promise.resolve(response);
289
+ return response;
291
290
  };
292
291
  const de_AcknowledgeThirdPartyJobCommandError = async (output, context) => {
293
292
  const parsedOutput = {
@@ -310,10 +309,9 @@ const de_AcknowledgeThirdPartyJobCommandError = async (output, context) => {
310
309
  throw await de_ValidationExceptionRes(parsedOutput, context);
311
310
  default:
312
311
  const parsedBody = parsedOutput.body;
313
- throwDefaultError({
312
+ return throwDefaultError({
314
313
  output,
315
314
  parsedBody,
316
- exceptionCtor: __BaseException,
317
315
  errorCode,
318
316
  });
319
317
  }
@@ -324,12 +322,12 @@ export const de_CreateCustomActionTypeCommand = async (output, context) => {
324
322
  }
325
323
  const data = await parseBody(output.body, context);
326
324
  let contents = {};
327
- contents = de_CreateCustomActionTypeOutput(data, context);
325
+ contents = _json(data);
328
326
  const response = {
329
327
  $metadata: deserializeMetadata(output),
330
328
  ...contents,
331
329
  };
332
- return Promise.resolve(response);
330
+ return response;
333
331
  };
334
332
  const de_CreateCustomActionTypeCommandError = async (output, context) => {
335
333
  const parsedOutput = {
@@ -355,10 +353,9 @@ const de_CreateCustomActionTypeCommandError = async (output, context) => {
355
353
  throw await de_ValidationExceptionRes(parsedOutput, context);
356
354
  default:
357
355
  const parsedBody = parsedOutput.body;
358
- throwDefaultError({
356
+ return throwDefaultError({
359
357
  output,
360
358
  parsedBody,
361
- exceptionCtor: __BaseException,
362
359
  errorCode,
363
360
  });
364
361
  }
@@ -369,12 +366,12 @@ export const de_CreatePipelineCommand = async (output, context) => {
369
366
  }
370
367
  const data = await parseBody(output.body, context);
371
368
  let contents = {};
372
- contents = de_CreatePipelineOutput(data, context);
369
+ contents = _json(data);
373
370
  const response = {
374
371
  $metadata: deserializeMetadata(output),
375
372
  ...contents,
376
373
  };
377
- return Promise.resolve(response);
374
+ return response;
378
375
  };
379
376
  const de_CreatePipelineCommandError = async (output, context) => {
380
377
  const parsedOutput = {
@@ -415,10 +412,9 @@ const de_CreatePipelineCommandError = async (output, context) => {
415
412
  throw await de_ValidationExceptionRes(parsedOutput, context);
416
413
  default:
417
414
  const parsedBody = parsedOutput.body;
418
- throwDefaultError({
415
+ return throwDefaultError({
419
416
  output,
420
417
  parsedBody,
421
- exceptionCtor: __BaseException,
422
418
  errorCode,
423
419
  });
424
420
  }
@@ -431,7 +427,7 @@ export const de_DeleteCustomActionTypeCommand = async (output, context) => {
431
427
  const response = {
432
428
  $metadata: deserializeMetadata(output),
433
429
  };
434
- return Promise.resolve(response);
430
+ return response;
435
431
  };
436
432
  const de_DeleteCustomActionTypeCommandError = async (output, context) => {
437
433
  const parsedOutput = {
@@ -448,10 +444,9 @@ const de_DeleteCustomActionTypeCommandError = async (output, context) => {
448
444
  throw await de_ValidationExceptionRes(parsedOutput, context);
449
445
  default:
450
446
  const parsedBody = parsedOutput.body;
451
- throwDefaultError({
447
+ return throwDefaultError({
452
448
  output,
453
449
  parsedBody,
454
- exceptionCtor: __BaseException,
455
450
  errorCode,
456
451
  });
457
452
  }
@@ -464,7 +459,7 @@ export const de_DeletePipelineCommand = async (output, context) => {
464
459
  const response = {
465
460
  $metadata: deserializeMetadata(output),
466
461
  };
467
- return Promise.resolve(response);
462
+ return response;
468
463
  };
469
464
  const de_DeletePipelineCommandError = async (output, context) => {
470
465
  const parsedOutput = {
@@ -481,10 +476,9 @@ const de_DeletePipelineCommandError = async (output, context) => {
481
476
  throw await de_ValidationExceptionRes(parsedOutput, context);
482
477
  default:
483
478
  const parsedBody = parsedOutput.body;
484
- throwDefaultError({
479
+ return throwDefaultError({
485
480
  output,
486
481
  parsedBody,
487
- exceptionCtor: __BaseException,
488
482
  errorCode,
489
483
  });
490
484
  }
@@ -495,12 +489,12 @@ export const de_DeleteWebhookCommand = async (output, context) => {
495
489
  }
496
490
  const data = await parseBody(output.body, context);
497
491
  let contents = {};
498
- contents = de_DeleteWebhookOutput(data, context);
492
+ contents = _json(data);
499
493
  const response = {
500
494
  $metadata: deserializeMetadata(output),
501
495
  ...contents,
502
496
  };
503
- return Promise.resolve(response);
497
+ return response;
504
498
  };
505
499
  const de_DeleteWebhookCommandError = async (output, context) => {
506
500
  const parsedOutput = {
@@ -517,10 +511,9 @@ const de_DeleteWebhookCommandError = async (output, context) => {
517
511
  throw await de_ValidationExceptionRes(parsedOutput, context);
518
512
  default:
519
513
  const parsedBody = parsedOutput.body;
520
- throwDefaultError({
514
+ return throwDefaultError({
521
515
  output,
522
516
  parsedBody,
523
- exceptionCtor: __BaseException,
524
517
  errorCode,
525
518
  });
526
519
  }
@@ -531,12 +524,12 @@ export const de_DeregisterWebhookWithThirdPartyCommand = async (output, context)
531
524
  }
532
525
  const data = await parseBody(output.body, context);
533
526
  let contents = {};
534
- contents = de_DeregisterWebhookWithThirdPartyOutput(data, context);
527
+ contents = _json(data);
535
528
  const response = {
536
529
  $metadata: deserializeMetadata(output),
537
530
  ...contents,
538
531
  };
539
- return Promise.resolve(response);
532
+ return response;
540
533
  };
541
534
  const de_DeregisterWebhookWithThirdPartyCommandError = async (output, context) => {
542
535
  const parsedOutput = {
@@ -553,10 +546,9 @@ const de_DeregisterWebhookWithThirdPartyCommandError = async (output, context) =
553
546
  throw await de_WebhookNotFoundExceptionRes(parsedOutput, context);
554
547
  default:
555
548
  const parsedBody = parsedOutput.body;
556
- throwDefaultError({
549
+ return throwDefaultError({
557
550
  output,
558
551
  parsedBody,
559
- exceptionCtor: __BaseException,
560
552
  errorCode,
561
553
  });
562
554
  }
@@ -569,7 +561,7 @@ export const de_DisableStageTransitionCommand = async (output, context) => {
569
561
  const response = {
570
562
  $metadata: deserializeMetadata(output),
571
563
  };
572
- return Promise.resolve(response);
564
+ return response;
573
565
  };
574
566
  const de_DisableStageTransitionCommandError = async (output, context) => {
575
567
  const parsedOutput = {
@@ -589,10 +581,9 @@ const de_DisableStageTransitionCommandError = async (output, context) => {
589
581
  throw await de_ValidationExceptionRes(parsedOutput, context);
590
582
  default:
591
583
  const parsedBody = parsedOutput.body;
592
- throwDefaultError({
584
+ return throwDefaultError({
593
585
  output,
594
586
  parsedBody,
595
- exceptionCtor: __BaseException,
596
587
  errorCode,
597
588
  });
598
589
  }
@@ -605,7 +596,7 @@ export const de_EnableStageTransitionCommand = async (output, context) => {
605
596
  const response = {
606
597
  $metadata: deserializeMetadata(output),
607
598
  };
608
- return Promise.resolve(response);
599
+ return response;
609
600
  };
610
601
  const de_EnableStageTransitionCommandError = async (output, context) => {
611
602
  const parsedOutput = {
@@ -625,10 +616,9 @@ const de_EnableStageTransitionCommandError = async (output, context) => {
625
616
  throw await de_ValidationExceptionRes(parsedOutput, context);
626
617
  default:
627
618
  const parsedBody = parsedOutput.body;
628
- throwDefaultError({
619
+ return throwDefaultError({
629
620
  output,
630
621
  parsedBody,
631
- exceptionCtor: __BaseException,
632
622
  errorCode,
633
623
  });
634
624
  }
@@ -639,12 +629,12 @@ export const de_GetActionTypeCommand = async (output, context) => {
639
629
  }
640
630
  const data = await parseBody(output.body, context);
641
631
  let contents = {};
642
- contents = de_GetActionTypeOutput(data, context);
632
+ contents = _json(data);
643
633
  const response = {
644
634
  $metadata: deserializeMetadata(output),
645
635
  ...contents,
646
636
  };
647
- return Promise.resolve(response);
637
+ return response;
648
638
  };
649
639
  const de_GetActionTypeCommandError = async (output, context) => {
650
640
  const parsedOutput = {
@@ -661,10 +651,9 @@ const de_GetActionTypeCommandError = async (output, context) => {
661
651
  throw await de_ValidationExceptionRes(parsedOutput, context);
662
652
  default:
663
653
  const parsedBody = parsedOutput.body;
664
- throwDefaultError({
654
+ return throwDefaultError({
665
655
  output,
666
656
  parsedBody,
667
- exceptionCtor: __BaseException,
668
657
  errorCode,
669
658
  });
670
659
  }
@@ -675,12 +664,12 @@ export const de_GetJobDetailsCommand = async (output, context) => {
675
664
  }
676
665
  const data = await parseBody(output.body, context);
677
666
  let contents = {};
678
- contents = de_GetJobDetailsOutput(data, context);
667
+ contents = _json(data);
679
668
  const response = {
680
669
  $metadata: deserializeMetadata(output),
681
670
  ...contents,
682
671
  };
683
- return Promise.resolve(response);
672
+ return response;
684
673
  };
685
674
  const de_GetJobDetailsCommandError = async (output, context) => {
686
675
  const parsedOutput = {
@@ -697,10 +686,9 @@ const de_GetJobDetailsCommandError = async (output, context) => {
697
686
  throw await de_ValidationExceptionRes(parsedOutput, context);
698
687
  default:
699
688
  const parsedBody = parsedOutput.body;
700
- throwDefaultError({
689
+ return throwDefaultError({
701
690
  output,
702
691
  parsedBody,
703
- exceptionCtor: __BaseException,
704
692
  errorCode,
705
693
  });
706
694
  }
@@ -716,7 +704,7 @@ export const de_GetPipelineCommand = async (output, context) => {
716
704
  $metadata: deserializeMetadata(output),
717
705
  ...contents,
718
706
  };
719
- return Promise.resolve(response);
707
+ return response;
720
708
  };
721
709
  const de_GetPipelineCommandError = async (output, context) => {
722
710
  const parsedOutput = {
@@ -736,10 +724,9 @@ const de_GetPipelineCommandError = async (output, context) => {
736
724
  throw await de_ValidationExceptionRes(parsedOutput, context);
737
725
  default:
738
726
  const parsedBody = parsedOutput.body;
739
- throwDefaultError({
727
+ return throwDefaultError({
740
728
  output,
741
729
  parsedBody,
742
- exceptionCtor: __BaseException,
743
730
  errorCode,
744
731
  });
745
732
  }
@@ -755,7 +742,7 @@ export const de_GetPipelineExecutionCommand = async (output, context) => {
755
742
  $metadata: deserializeMetadata(output),
756
743
  ...contents,
757
744
  };
758
- return Promise.resolve(response);
745
+ return response;
759
746
  };
760
747
  const de_GetPipelineExecutionCommandError = async (output, context) => {
761
748
  const parsedOutput = {
@@ -775,10 +762,9 @@ const de_GetPipelineExecutionCommandError = async (output, context) => {
775
762
  throw await de_ValidationExceptionRes(parsedOutput, context);
776
763
  default:
777
764
  const parsedBody = parsedOutput.body;
778
- throwDefaultError({
765
+ return throwDefaultError({
779
766
  output,
780
767
  parsedBody,
781
- exceptionCtor: __BaseException,
782
768
  errorCode,
783
769
  });
784
770
  }
@@ -794,7 +780,7 @@ export const de_GetPipelineStateCommand = async (output, context) => {
794
780
  $metadata: deserializeMetadata(output),
795
781
  ...contents,
796
782
  };
797
- return Promise.resolve(response);
783
+ return response;
798
784
  };
799
785
  const de_GetPipelineStateCommandError = async (output, context) => {
800
786
  const parsedOutput = {
@@ -811,10 +797,9 @@ const de_GetPipelineStateCommandError = async (output, context) => {
811
797
  throw await de_ValidationExceptionRes(parsedOutput, context);
812
798
  default:
813
799
  const parsedBody = parsedOutput.body;
814
- throwDefaultError({
800
+ return throwDefaultError({
815
801
  output,
816
802
  parsedBody,
817
- exceptionCtor: __BaseException,
818
803
  errorCode,
819
804
  });
820
805
  }
@@ -825,12 +810,12 @@ export const de_GetThirdPartyJobDetailsCommand = async (output, context) => {
825
810
  }
826
811
  const data = await parseBody(output.body, context);
827
812
  let contents = {};
828
- contents = de_GetThirdPartyJobDetailsOutput(data, context);
813
+ contents = _json(data);
829
814
  const response = {
830
815
  $metadata: deserializeMetadata(output),
831
816
  ...contents,
832
817
  };
833
- return Promise.resolve(response);
818
+ return response;
834
819
  };
835
820
  const de_GetThirdPartyJobDetailsCommandError = async (output, context) => {
836
821
  const parsedOutput = {
@@ -853,10 +838,9 @@ const de_GetThirdPartyJobDetailsCommandError = async (output, context) => {
853
838
  throw await de_ValidationExceptionRes(parsedOutput, context);
854
839
  default:
855
840
  const parsedBody = parsedOutput.body;
856
- throwDefaultError({
841
+ return throwDefaultError({
857
842
  output,
858
843
  parsedBody,
859
- exceptionCtor: __BaseException,
860
844
  errorCode,
861
845
  });
862
846
  }
@@ -872,7 +856,7 @@ export const de_ListActionExecutionsCommand = async (output, context) => {
872
856
  $metadata: deserializeMetadata(output),
873
857
  ...contents,
874
858
  };
875
- return Promise.resolve(response);
859
+ return response;
876
860
  };
877
861
  const de_ListActionExecutionsCommandError = async (output, context) => {
878
862
  const parsedOutput = {
@@ -895,10 +879,9 @@ const de_ListActionExecutionsCommandError = async (output, context) => {
895
879
  throw await de_ValidationExceptionRes(parsedOutput, context);
896
880
  default:
897
881
  const parsedBody = parsedOutput.body;
898
- throwDefaultError({
882
+ return throwDefaultError({
899
883
  output,
900
884
  parsedBody,
901
- exceptionCtor: __BaseException,
902
885
  errorCode,
903
886
  });
904
887
  }
@@ -909,12 +892,12 @@ export const de_ListActionTypesCommand = async (output, context) => {
909
892
  }
910
893
  const data = await parseBody(output.body, context);
911
894
  let contents = {};
912
- contents = de_ListActionTypesOutput(data, context);
895
+ contents = _json(data);
913
896
  const response = {
914
897
  $metadata: deserializeMetadata(output),
915
898
  ...contents,
916
899
  };
917
- return Promise.resolve(response);
900
+ return response;
918
901
  };
919
902
  const de_ListActionTypesCommandError = async (output, context) => {
920
903
  const parsedOutput = {
@@ -931,10 +914,9 @@ const de_ListActionTypesCommandError = async (output, context) => {
931
914
  throw await de_ValidationExceptionRes(parsedOutput, context);
932
915
  default:
933
916
  const parsedBody = parsedOutput.body;
934
- throwDefaultError({
917
+ return throwDefaultError({
935
918
  output,
936
919
  parsedBody,
937
- exceptionCtor: __BaseException,
938
920
  errorCode,
939
921
  });
940
922
  }
@@ -950,7 +932,7 @@ export const de_ListPipelineExecutionsCommand = async (output, context) => {
950
932
  $metadata: deserializeMetadata(output),
951
933
  ...contents,
952
934
  };
953
- return Promise.resolve(response);
935
+ return response;
954
936
  };
955
937
  const de_ListPipelineExecutionsCommandError = async (output, context) => {
956
938
  const parsedOutput = {
@@ -970,10 +952,9 @@ const de_ListPipelineExecutionsCommandError = async (output, context) => {
970
952
  throw await de_ValidationExceptionRes(parsedOutput, context);
971
953
  default:
972
954
  const parsedBody = parsedOutput.body;
973
- throwDefaultError({
955
+ return throwDefaultError({
974
956
  output,
975
957
  parsedBody,
976
- exceptionCtor: __BaseException,
977
958
  errorCode,
978
959
  });
979
960
  }
@@ -989,7 +970,7 @@ export const de_ListPipelinesCommand = async (output, context) => {
989
970
  $metadata: deserializeMetadata(output),
990
971
  ...contents,
991
972
  };
992
- return Promise.resolve(response);
973
+ return response;
993
974
  };
994
975
  const de_ListPipelinesCommandError = async (output, context) => {
995
976
  const parsedOutput = {
@@ -1006,10 +987,9 @@ const de_ListPipelinesCommandError = async (output, context) => {
1006
987
  throw await de_ValidationExceptionRes(parsedOutput, context);
1007
988
  default:
1008
989
  const parsedBody = parsedOutput.body;
1009
- throwDefaultError({
990
+ return throwDefaultError({
1010
991
  output,
1011
992
  parsedBody,
1012
- exceptionCtor: __BaseException,
1013
993
  errorCode,
1014
994
  });
1015
995
  }
@@ -1020,12 +1000,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
1020
1000
  }
1021
1001
  const data = await parseBody(output.body, context);
1022
1002
  let contents = {};
1023
- contents = de_ListTagsForResourceOutput(data, context);
1003
+ contents = _json(data);
1024
1004
  const response = {
1025
1005
  $metadata: deserializeMetadata(output),
1026
1006
  ...contents,
1027
1007
  };
1028
- return Promise.resolve(response);
1008
+ return response;
1029
1009
  };
1030
1010
  const de_ListTagsForResourceCommandError = async (output, context) => {
1031
1011
  const parsedOutput = {
@@ -1048,10 +1028,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1048
1028
  throw await de_ValidationExceptionRes(parsedOutput, context);
1049
1029
  default:
1050
1030
  const parsedBody = parsedOutput.body;
1051
- throwDefaultError({
1031
+ return throwDefaultError({
1052
1032
  output,
1053
1033
  parsedBody,
1054
- exceptionCtor: __BaseException,
1055
1034
  errorCode,
1056
1035
  });
1057
1036
  }
@@ -1067,7 +1046,7 @@ export const de_ListWebhooksCommand = async (output, context) => {
1067
1046
  $metadata: deserializeMetadata(output),
1068
1047
  ...contents,
1069
1048
  };
1070
- return Promise.resolve(response);
1049
+ return response;
1071
1050
  };
1072
1051
  const de_ListWebhooksCommandError = async (output, context) => {
1073
1052
  const parsedOutput = {
@@ -1084,10 +1063,9 @@ const de_ListWebhooksCommandError = async (output, context) => {
1084
1063
  throw await de_ValidationExceptionRes(parsedOutput, context);
1085
1064
  default:
1086
1065
  const parsedBody = parsedOutput.body;
1087
- throwDefaultError({
1066
+ return throwDefaultError({
1088
1067
  output,
1089
1068
  parsedBody,
1090
- exceptionCtor: __BaseException,
1091
1069
  errorCode,
1092
1070
  });
1093
1071
  }
@@ -1098,12 +1076,12 @@ export const de_PollForJobsCommand = async (output, context) => {
1098
1076
  }
1099
1077
  const data = await parseBody(output.body, context);
1100
1078
  let contents = {};
1101
- contents = de_PollForJobsOutput(data, context);
1079
+ contents = _json(data);
1102
1080
  const response = {
1103
1081
  $metadata: deserializeMetadata(output),
1104
1082
  ...contents,
1105
1083
  };
1106
- return Promise.resolve(response);
1084
+ return response;
1107
1085
  };
1108
1086
  const de_PollForJobsCommandError = async (output, context) => {
1109
1087
  const parsedOutput = {
@@ -1120,10 +1098,9 @@ const de_PollForJobsCommandError = async (output, context) => {
1120
1098
  throw await de_ValidationExceptionRes(parsedOutput, context);
1121
1099
  default:
1122
1100
  const parsedBody = parsedOutput.body;
1123
- throwDefaultError({
1101
+ return throwDefaultError({
1124
1102
  output,
1125
1103
  parsedBody,
1126
- exceptionCtor: __BaseException,
1127
1104
  errorCode,
1128
1105
  });
1129
1106
  }
@@ -1134,12 +1111,12 @@ export const de_PollForThirdPartyJobsCommand = async (output, context) => {
1134
1111
  }
1135
1112
  const data = await parseBody(output.body, context);
1136
1113
  let contents = {};
1137
- contents = de_PollForThirdPartyJobsOutput(data, context);
1114
+ contents = _json(data);
1138
1115
  const response = {
1139
1116
  $metadata: deserializeMetadata(output),
1140
1117
  ...contents,
1141
1118
  };
1142
- return Promise.resolve(response);
1119
+ return response;
1143
1120
  };
1144
1121
  const de_PollForThirdPartyJobsCommandError = async (output, context) => {
1145
1122
  const parsedOutput = {
@@ -1156,10 +1133,9 @@ const de_PollForThirdPartyJobsCommandError = async (output, context) => {
1156
1133
  throw await de_ValidationExceptionRes(parsedOutput, context);
1157
1134
  default:
1158
1135
  const parsedBody = parsedOutput.body;
1159
- throwDefaultError({
1136
+ return throwDefaultError({
1160
1137
  output,
1161
1138
  parsedBody,
1162
- exceptionCtor: __BaseException,
1163
1139
  errorCode,
1164
1140
  });
1165
1141
  }
@@ -1170,12 +1146,12 @@ export const de_PutActionRevisionCommand = async (output, context) => {
1170
1146
  }
1171
1147
  const data = await parseBody(output.body, context);
1172
1148
  let contents = {};
1173
- contents = de_PutActionRevisionOutput(data, context);
1149
+ contents = _json(data);
1174
1150
  const response = {
1175
1151
  $metadata: deserializeMetadata(output),
1176
1152
  ...contents,
1177
1153
  };
1178
- return Promise.resolve(response);
1154
+ return response;
1179
1155
  };
1180
1156
  const de_PutActionRevisionCommandError = async (output, context) => {
1181
1157
  const parsedOutput = {
@@ -1198,10 +1174,9 @@ const de_PutActionRevisionCommandError = async (output, context) => {
1198
1174
  throw await de_ValidationExceptionRes(parsedOutput, context);
1199
1175
  default:
1200
1176
  const parsedBody = parsedOutput.body;
1201
- throwDefaultError({
1177
+ return throwDefaultError({
1202
1178
  output,
1203
1179
  parsedBody,
1204
- exceptionCtor: __BaseException,
1205
1180
  errorCode,
1206
1181
  });
1207
1182
  }
@@ -1217,7 +1192,7 @@ export const de_PutApprovalResultCommand = async (output, context) => {
1217
1192
  $metadata: deserializeMetadata(output),
1218
1193
  ...contents,
1219
1194
  };
1220
- return Promise.resolve(response);
1195
+ return response;
1221
1196
  };
1222
1197
  const de_PutApprovalResultCommandError = async (output, context) => {
1223
1198
  const parsedOutput = {
@@ -1246,10 +1221,9 @@ const de_PutApprovalResultCommandError = async (output, context) => {
1246
1221
  throw await de_ValidationExceptionRes(parsedOutput, context);
1247
1222
  default:
1248
1223
  const parsedBody = parsedOutput.body;
1249
- throwDefaultError({
1224
+ return throwDefaultError({
1250
1225
  output,
1251
1226
  parsedBody,
1252
- exceptionCtor: __BaseException,
1253
1227
  errorCode,
1254
1228
  });
1255
1229
  }
@@ -1262,7 +1236,7 @@ export const de_PutJobFailureResultCommand = async (output, context) => {
1262
1236
  const response = {
1263
1237
  $metadata: deserializeMetadata(output),
1264
1238
  };
1265
- return Promise.resolve(response);
1239
+ return response;
1266
1240
  };
1267
1241
  const de_PutJobFailureResultCommandError = async (output, context) => {
1268
1242
  const parsedOutput = {
@@ -1282,10 +1256,9 @@ const de_PutJobFailureResultCommandError = async (output, context) => {
1282
1256
  throw await de_ValidationExceptionRes(parsedOutput, context);
1283
1257
  default:
1284
1258
  const parsedBody = parsedOutput.body;
1285
- throwDefaultError({
1259
+ return throwDefaultError({
1286
1260
  output,
1287
1261
  parsedBody,
1288
- exceptionCtor: __BaseException,
1289
1262
  errorCode,
1290
1263
  });
1291
1264
  }
@@ -1298,7 +1271,7 @@ export const de_PutJobSuccessResultCommand = async (output, context) => {
1298
1271
  const response = {
1299
1272
  $metadata: deserializeMetadata(output),
1300
1273
  };
1301
- return Promise.resolve(response);
1274
+ return response;
1302
1275
  };
1303
1276
  const de_PutJobSuccessResultCommandError = async (output, context) => {
1304
1277
  const parsedOutput = {
@@ -1321,10 +1294,9 @@ const de_PutJobSuccessResultCommandError = async (output, context) => {
1321
1294
  throw await de_ValidationExceptionRes(parsedOutput, context);
1322
1295
  default:
1323
1296
  const parsedBody = parsedOutput.body;
1324
- throwDefaultError({
1297
+ return throwDefaultError({
1325
1298
  output,
1326
1299
  parsedBody,
1327
- exceptionCtor: __BaseException,
1328
1300
  errorCode,
1329
1301
  });
1330
1302
  }
@@ -1337,7 +1309,7 @@ export const de_PutThirdPartyJobFailureResultCommand = async (output, context) =
1337
1309
  const response = {
1338
1310
  $metadata: deserializeMetadata(output),
1339
1311
  };
1340
- return Promise.resolve(response);
1312
+ return response;
1341
1313
  };
1342
1314
  const de_PutThirdPartyJobFailureResultCommandError = async (output, context) => {
1343
1315
  const parsedOutput = {
@@ -1360,10 +1332,9 @@ const de_PutThirdPartyJobFailureResultCommandError = async (output, context) =>
1360
1332
  throw await de_ValidationExceptionRes(parsedOutput, context);
1361
1333
  default:
1362
1334
  const parsedBody = parsedOutput.body;
1363
- throwDefaultError({
1335
+ return throwDefaultError({
1364
1336
  output,
1365
1337
  parsedBody,
1366
- exceptionCtor: __BaseException,
1367
1338
  errorCode,
1368
1339
  });
1369
1340
  }
@@ -1376,7 +1347,7 @@ export const de_PutThirdPartyJobSuccessResultCommand = async (output, context) =
1376
1347
  const response = {
1377
1348
  $metadata: deserializeMetadata(output),
1378
1349
  };
1379
- return Promise.resolve(response);
1350
+ return response;
1380
1351
  };
1381
1352
  const de_PutThirdPartyJobSuccessResultCommandError = async (output, context) => {
1382
1353
  const parsedOutput = {
@@ -1399,10 +1370,9 @@ const de_PutThirdPartyJobSuccessResultCommandError = async (output, context) =>
1399
1370
  throw await de_ValidationExceptionRes(parsedOutput, context);
1400
1371
  default:
1401
1372
  const parsedBody = parsedOutput.body;
1402
- throwDefaultError({
1373
+ return throwDefaultError({
1403
1374
  output,
1404
1375
  parsedBody,
1405
- exceptionCtor: __BaseException,
1406
1376
  errorCode,
1407
1377
  });
1408
1378
  }
@@ -1418,7 +1388,7 @@ export const de_PutWebhookCommand = async (output, context) => {
1418
1388
  $metadata: deserializeMetadata(output),
1419
1389
  ...contents,
1420
1390
  };
1421
- return Promise.resolve(response);
1391
+ return response;
1422
1392
  };
1423
1393
  const de_PutWebhookCommandError = async (output, context) => {
1424
1394
  const parsedOutput = {
@@ -1453,10 +1423,9 @@ const de_PutWebhookCommandError = async (output, context) => {
1453
1423
  throw await de_ValidationExceptionRes(parsedOutput, context);
1454
1424
  default:
1455
1425
  const parsedBody = parsedOutput.body;
1456
- throwDefaultError({
1426
+ return throwDefaultError({
1457
1427
  output,
1458
1428
  parsedBody,
1459
- exceptionCtor: __BaseException,
1460
1429
  errorCode,
1461
1430
  });
1462
1431
  }
@@ -1467,12 +1436,12 @@ export const de_RegisterWebhookWithThirdPartyCommand = async (output, context) =
1467
1436
  }
1468
1437
  const data = await parseBody(output.body, context);
1469
1438
  let contents = {};
1470
- contents = de_RegisterWebhookWithThirdPartyOutput(data, context);
1439
+ contents = _json(data);
1471
1440
  const response = {
1472
1441
  $metadata: deserializeMetadata(output),
1473
1442
  ...contents,
1474
1443
  };
1475
- return Promise.resolve(response);
1444
+ return response;
1476
1445
  };
1477
1446
  const de_RegisterWebhookWithThirdPartyCommandError = async (output, context) => {
1478
1447
  const parsedOutput = {
@@ -1489,10 +1458,9 @@ const de_RegisterWebhookWithThirdPartyCommandError = async (output, context) =>
1489
1458
  throw await de_WebhookNotFoundExceptionRes(parsedOutput, context);
1490
1459
  default:
1491
1460
  const parsedBody = parsedOutput.body;
1492
- throwDefaultError({
1461
+ return throwDefaultError({
1493
1462
  output,
1494
1463
  parsedBody,
1495
- exceptionCtor: __BaseException,
1496
1464
  errorCode,
1497
1465
  });
1498
1466
  }
@@ -1503,12 +1471,12 @@ export const de_RetryStageExecutionCommand = async (output, context) => {
1503
1471
  }
1504
1472
  const data = await parseBody(output.body, context);
1505
1473
  let contents = {};
1506
- contents = de_RetryStageExecutionOutput(data, context);
1474
+ contents = _json(data);
1507
1475
  const response = {
1508
1476
  $metadata: deserializeMetadata(output),
1509
1477
  ...contents,
1510
1478
  };
1511
- return Promise.resolve(response);
1479
+ return response;
1512
1480
  };
1513
1481
  const de_RetryStageExecutionCommandError = async (output, context) => {
1514
1482
  const parsedOutput = {
@@ -1537,10 +1505,9 @@ const de_RetryStageExecutionCommandError = async (output, context) => {
1537
1505
  throw await de_ValidationExceptionRes(parsedOutput, context);
1538
1506
  default:
1539
1507
  const parsedBody = parsedOutput.body;
1540
- throwDefaultError({
1508
+ return throwDefaultError({
1541
1509
  output,
1542
1510
  parsedBody,
1543
- exceptionCtor: __BaseException,
1544
1511
  errorCode,
1545
1512
  });
1546
1513
  }
@@ -1551,12 +1518,12 @@ export const de_StartPipelineExecutionCommand = async (output, context) => {
1551
1518
  }
1552
1519
  const data = await parseBody(output.body, context);
1553
1520
  let contents = {};
1554
- contents = de_StartPipelineExecutionOutput(data, context);
1521
+ contents = _json(data);
1555
1522
  const response = {
1556
1523
  $metadata: deserializeMetadata(output),
1557
1524
  ...contents,
1558
1525
  };
1559
- return Promise.resolve(response);
1526
+ return response;
1560
1527
  };
1561
1528
  const de_StartPipelineExecutionCommandError = async (output, context) => {
1562
1529
  const parsedOutput = {
@@ -1576,10 +1543,9 @@ const de_StartPipelineExecutionCommandError = async (output, context) => {
1576
1543
  throw await de_ValidationExceptionRes(parsedOutput, context);
1577
1544
  default:
1578
1545
  const parsedBody = parsedOutput.body;
1579
- throwDefaultError({
1546
+ return throwDefaultError({
1580
1547
  output,
1581
1548
  parsedBody,
1582
- exceptionCtor: __BaseException,
1583
1549
  errorCode,
1584
1550
  });
1585
1551
  }
@@ -1590,12 +1556,12 @@ export const de_StopPipelineExecutionCommand = async (output, context) => {
1590
1556
  }
1591
1557
  const data = await parseBody(output.body, context);
1592
1558
  let contents = {};
1593
- contents = de_StopPipelineExecutionOutput(data, context);
1559
+ contents = _json(data);
1594
1560
  const response = {
1595
1561
  $metadata: deserializeMetadata(output),
1596
1562
  ...contents,
1597
1563
  };
1598
- return Promise.resolve(response);
1564
+ return response;
1599
1565
  };
1600
1566
  const de_StopPipelineExecutionCommandError = async (output, context) => {
1601
1567
  const parsedOutput = {
@@ -1621,10 +1587,9 @@ const de_StopPipelineExecutionCommandError = async (output, context) => {
1621
1587
  throw await de_ValidationExceptionRes(parsedOutput, context);
1622
1588
  default:
1623
1589
  const parsedBody = parsedOutput.body;
1624
- throwDefaultError({
1590
+ return throwDefaultError({
1625
1591
  output,
1626
1592
  parsedBody,
1627
- exceptionCtor: __BaseException,
1628
1593
  errorCode,
1629
1594
  });
1630
1595
  }
@@ -1635,12 +1600,12 @@ export const de_TagResourceCommand = async (output, context) => {
1635
1600
  }
1636
1601
  const data = await parseBody(output.body, context);
1637
1602
  let contents = {};
1638
- contents = de_TagResourceOutput(data, context);
1603
+ contents = _json(data);
1639
1604
  const response = {
1640
1605
  $metadata: deserializeMetadata(output),
1641
1606
  ...contents,
1642
1607
  };
1643
- return Promise.resolve(response);
1608
+ return response;
1644
1609
  };
1645
1610
  const de_TagResourceCommandError = async (output, context) => {
1646
1611
  const parsedOutput = {
@@ -1669,10 +1634,9 @@ const de_TagResourceCommandError = async (output, context) => {
1669
1634
  throw await de_ValidationExceptionRes(parsedOutput, context);
1670
1635
  default:
1671
1636
  const parsedBody = parsedOutput.body;
1672
- throwDefaultError({
1637
+ return throwDefaultError({
1673
1638
  output,
1674
1639
  parsedBody,
1675
- exceptionCtor: __BaseException,
1676
1640
  errorCode,
1677
1641
  });
1678
1642
  }
@@ -1683,12 +1647,12 @@ export const de_UntagResourceCommand = async (output, context) => {
1683
1647
  }
1684
1648
  const data = await parseBody(output.body, context);
1685
1649
  let contents = {};
1686
- contents = de_UntagResourceOutput(data, context);
1650
+ contents = _json(data);
1687
1651
  const response = {
1688
1652
  $metadata: deserializeMetadata(output),
1689
1653
  ...contents,
1690
1654
  };
1691
- return Promise.resolve(response);
1655
+ return response;
1692
1656
  };
1693
1657
  const de_UntagResourceCommandError = async (output, context) => {
1694
1658
  const parsedOutput = {
@@ -1714,10 +1678,9 @@ const de_UntagResourceCommandError = async (output, context) => {
1714
1678
  throw await de_ValidationExceptionRes(parsedOutput, context);
1715
1679
  default:
1716
1680
  const parsedBody = parsedOutput.body;
1717
- throwDefaultError({
1681
+ return throwDefaultError({
1718
1682
  output,
1719
1683
  parsedBody,
1720
- exceptionCtor: __BaseException,
1721
1684
  errorCode,
1722
1685
  });
1723
1686
  }
@@ -1730,7 +1693,7 @@ export const de_UpdateActionTypeCommand = async (output, context) => {
1730
1693
  const response = {
1731
1694
  $metadata: deserializeMetadata(output),
1732
1695
  };
1733
- return Promise.resolve(response);
1696
+ return response;
1734
1697
  };
1735
1698
  const de_UpdateActionTypeCommandError = async (output, context) => {
1736
1699
  const parsedOutput = {
@@ -1750,10 +1713,9 @@ const de_UpdateActionTypeCommandError = async (output, context) => {
1750
1713
  throw await de_ValidationExceptionRes(parsedOutput, context);
1751
1714
  default:
1752
1715
  const parsedBody = parsedOutput.body;
1753
- throwDefaultError({
1716
+ return throwDefaultError({
1754
1717
  output,
1755
1718
  parsedBody,
1756
- exceptionCtor: __BaseException,
1757
1719
  errorCode,
1758
1720
  });
1759
1721
  }
@@ -1764,12 +1726,12 @@ export const de_UpdatePipelineCommand = async (output, context) => {
1764
1726
  }
1765
1727
  const data = await parseBody(output.body, context);
1766
1728
  let contents = {};
1767
- contents = de_UpdatePipelineOutput(data, context);
1729
+ contents = _json(data);
1768
1730
  const response = {
1769
1731
  $metadata: deserializeMetadata(output),
1770
1732
  ...contents,
1771
1733
  };
1772
- return Promise.resolve(response);
1734
+ return response;
1773
1735
  };
1774
1736
  const de_UpdatePipelineCommandError = async (output, context) => {
1775
1737
  const parsedOutput = {
@@ -1798,17 +1760,16 @@ const de_UpdatePipelineCommandError = async (output, context) => {
1798
1760
  throw await de_ValidationExceptionRes(parsedOutput, context);
1799
1761
  default:
1800
1762
  const parsedBody = parsedOutput.body;
1801
- throwDefaultError({
1763
+ return throwDefaultError({
1802
1764
  output,
1803
1765
  parsedBody,
1804
- exceptionCtor: __BaseException,
1805
1766
  errorCode,
1806
1767
  });
1807
1768
  }
1808
1769
  };
1809
1770
  const de_ActionNotFoundExceptionRes = async (parsedOutput, context) => {
1810
1771
  const body = parsedOutput.body;
1811
- const deserialized = de_ActionNotFoundException(body, context);
1772
+ const deserialized = _json(body);
1812
1773
  const exception = new ActionNotFoundException({
1813
1774
  $metadata: deserializeMetadata(parsedOutput),
1814
1775
  ...deserialized,
@@ -1817,7 +1778,7 @@ const de_ActionNotFoundExceptionRes = async (parsedOutput, context) => {
1817
1778
  };
1818
1779
  const de_ActionTypeNotFoundExceptionRes = async (parsedOutput, context) => {
1819
1780
  const body = parsedOutput.body;
1820
- const deserialized = de_ActionTypeNotFoundException(body, context);
1781
+ const deserialized = _json(body);
1821
1782
  const exception = new ActionTypeNotFoundException({
1822
1783
  $metadata: deserializeMetadata(parsedOutput),
1823
1784
  ...deserialized,
@@ -1826,7 +1787,7 @@ const de_ActionTypeNotFoundExceptionRes = async (parsedOutput, context) => {
1826
1787
  };
1827
1788
  const de_ApprovalAlreadyCompletedExceptionRes = async (parsedOutput, context) => {
1828
1789
  const body = parsedOutput.body;
1829
- const deserialized = de_ApprovalAlreadyCompletedException(body, context);
1790
+ const deserialized = _json(body);
1830
1791
  const exception = new ApprovalAlreadyCompletedException({
1831
1792
  $metadata: deserializeMetadata(parsedOutput),
1832
1793
  ...deserialized,
@@ -1835,7 +1796,7 @@ const de_ApprovalAlreadyCompletedExceptionRes = async (parsedOutput, context) =>
1835
1796
  };
1836
1797
  const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
1837
1798
  const body = parsedOutput.body;
1838
- const deserialized = de_ConcurrentModificationException(body, context);
1799
+ const deserialized = _json(body);
1839
1800
  const exception = new ConcurrentModificationException({
1840
1801
  $metadata: deserializeMetadata(parsedOutput),
1841
1802
  ...deserialized,
@@ -1844,7 +1805,7 @@ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
1844
1805
  };
1845
1806
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
1846
1807
  const body = parsedOutput.body;
1847
- const deserialized = de_ConflictException(body, context);
1808
+ const deserialized = _json(body);
1848
1809
  const exception = new ConflictException({
1849
1810
  $metadata: deserializeMetadata(parsedOutput),
1850
1811
  ...deserialized,
@@ -1853,7 +1814,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1853
1814
  };
1854
1815
  const de_DuplicatedStopRequestExceptionRes = async (parsedOutput, context) => {
1855
1816
  const body = parsedOutput.body;
1856
- const deserialized = de_DuplicatedStopRequestException(body, context);
1817
+ const deserialized = _json(body);
1857
1818
  const exception = new DuplicatedStopRequestException({
1858
1819
  $metadata: deserializeMetadata(parsedOutput),
1859
1820
  ...deserialized,
@@ -1862,7 +1823,7 @@ const de_DuplicatedStopRequestExceptionRes = async (parsedOutput, context) => {
1862
1823
  };
1863
1824
  const de_InvalidActionDeclarationExceptionRes = async (parsedOutput, context) => {
1864
1825
  const body = parsedOutput.body;
1865
- const deserialized = de_InvalidActionDeclarationException(body, context);
1826
+ const deserialized = _json(body);
1866
1827
  const exception = new InvalidActionDeclarationException({
1867
1828
  $metadata: deserializeMetadata(parsedOutput),
1868
1829
  ...deserialized,
@@ -1871,7 +1832,7 @@ const de_InvalidActionDeclarationExceptionRes = async (parsedOutput, context) =>
1871
1832
  };
1872
1833
  const de_InvalidApprovalTokenExceptionRes = async (parsedOutput, context) => {
1873
1834
  const body = parsedOutput.body;
1874
- const deserialized = de_InvalidApprovalTokenException(body, context);
1835
+ const deserialized = _json(body);
1875
1836
  const exception = new InvalidApprovalTokenException({
1876
1837
  $metadata: deserializeMetadata(parsedOutput),
1877
1838
  ...deserialized,
@@ -1880,7 +1841,7 @@ const de_InvalidApprovalTokenExceptionRes = async (parsedOutput, context) => {
1880
1841
  };
1881
1842
  const de_InvalidArnExceptionRes = async (parsedOutput, context) => {
1882
1843
  const body = parsedOutput.body;
1883
- const deserialized = de_InvalidArnException(body, context);
1844
+ const deserialized = _json(body);
1884
1845
  const exception = new InvalidArnException({
1885
1846
  $metadata: deserializeMetadata(parsedOutput),
1886
1847
  ...deserialized,
@@ -1889,7 +1850,7 @@ const de_InvalidArnExceptionRes = async (parsedOutput, context) => {
1889
1850
  };
1890
1851
  const de_InvalidBlockerDeclarationExceptionRes = async (parsedOutput, context) => {
1891
1852
  const body = parsedOutput.body;
1892
- const deserialized = de_InvalidBlockerDeclarationException(body, context);
1853
+ const deserialized = _json(body);
1893
1854
  const exception = new InvalidBlockerDeclarationException({
1894
1855
  $metadata: deserializeMetadata(parsedOutput),
1895
1856
  ...deserialized,
@@ -1898,7 +1859,7 @@ const de_InvalidBlockerDeclarationExceptionRes = async (parsedOutput, context) =
1898
1859
  };
1899
1860
  const de_InvalidClientTokenExceptionRes = async (parsedOutput, context) => {
1900
1861
  const body = parsedOutput.body;
1901
- const deserialized = de_InvalidClientTokenException(body, context);
1862
+ const deserialized = _json(body);
1902
1863
  const exception = new InvalidClientTokenException({
1903
1864
  $metadata: deserializeMetadata(parsedOutput),
1904
1865
  ...deserialized,
@@ -1907,7 +1868,7 @@ const de_InvalidClientTokenExceptionRes = async (parsedOutput, context) => {
1907
1868
  };
1908
1869
  const de_InvalidJobExceptionRes = async (parsedOutput, context) => {
1909
1870
  const body = parsedOutput.body;
1910
- const deserialized = de_InvalidJobException(body, context);
1871
+ const deserialized = _json(body);
1911
1872
  const exception = new InvalidJobException({
1912
1873
  $metadata: deserializeMetadata(parsedOutput),
1913
1874
  ...deserialized,
@@ -1916,7 +1877,7 @@ const de_InvalidJobExceptionRes = async (parsedOutput, context) => {
1916
1877
  };
1917
1878
  const de_InvalidJobStateExceptionRes = async (parsedOutput, context) => {
1918
1879
  const body = parsedOutput.body;
1919
- const deserialized = de_InvalidJobStateException(body, context);
1880
+ const deserialized = _json(body);
1920
1881
  const exception = new InvalidJobStateException({
1921
1882
  $metadata: deserializeMetadata(parsedOutput),
1922
1883
  ...deserialized,
@@ -1925,7 +1886,7 @@ const de_InvalidJobStateExceptionRes = async (parsedOutput, context) => {
1925
1886
  };
1926
1887
  const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
1927
1888
  const body = parsedOutput.body;
1928
- const deserialized = de_InvalidNextTokenException(body, context);
1889
+ const deserialized = _json(body);
1929
1890
  const exception = new InvalidNextTokenException({
1930
1891
  $metadata: deserializeMetadata(parsedOutput),
1931
1892
  ...deserialized,
@@ -1934,7 +1895,7 @@ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
1934
1895
  };
1935
1896
  const de_InvalidNonceExceptionRes = async (parsedOutput, context) => {
1936
1897
  const body = parsedOutput.body;
1937
- const deserialized = de_InvalidNonceException(body, context);
1898
+ const deserialized = _json(body);
1938
1899
  const exception = new InvalidNonceException({
1939
1900
  $metadata: deserializeMetadata(parsedOutput),
1940
1901
  ...deserialized,
@@ -1943,7 +1904,7 @@ const de_InvalidNonceExceptionRes = async (parsedOutput, context) => {
1943
1904
  };
1944
1905
  const de_InvalidStageDeclarationExceptionRes = async (parsedOutput, context) => {
1945
1906
  const body = parsedOutput.body;
1946
- const deserialized = de_InvalidStageDeclarationException(body, context);
1907
+ const deserialized = _json(body);
1947
1908
  const exception = new InvalidStageDeclarationException({
1948
1909
  $metadata: deserializeMetadata(parsedOutput),
1949
1910
  ...deserialized,
@@ -1952,7 +1913,7 @@ const de_InvalidStageDeclarationExceptionRes = async (parsedOutput, context) =>
1952
1913
  };
1953
1914
  const de_InvalidStructureExceptionRes = async (parsedOutput, context) => {
1954
1915
  const body = parsedOutput.body;
1955
- const deserialized = de_InvalidStructureException(body, context);
1916
+ const deserialized = _json(body);
1956
1917
  const exception = new InvalidStructureException({
1957
1918
  $metadata: deserializeMetadata(parsedOutput),
1958
1919
  ...deserialized,
@@ -1961,7 +1922,7 @@ const de_InvalidStructureExceptionRes = async (parsedOutput, context) => {
1961
1922
  };
1962
1923
  const de_InvalidTagsExceptionRes = async (parsedOutput, context) => {
1963
1924
  const body = parsedOutput.body;
1964
- const deserialized = de_InvalidTagsException(body, context);
1925
+ const deserialized = _json(body);
1965
1926
  const exception = new InvalidTagsException({
1966
1927
  $metadata: deserializeMetadata(parsedOutput),
1967
1928
  ...deserialized,
@@ -1970,7 +1931,7 @@ const de_InvalidTagsExceptionRes = async (parsedOutput, context) => {
1970
1931
  };
1971
1932
  const de_InvalidWebhookAuthenticationParametersExceptionRes = async (parsedOutput, context) => {
1972
1933
  const body = parsedOutput.body;
1973
- const deserialized = de_InvalidWebhookAuthenticationParametersException(body, context);
1934
+ const deserialized = _json(body);
1974
1935
  const exception = new InvalidWebhookAuthenticationParametersException({
1975
1936
  $metadata: deserializeMetadata(parsedOutput),
1976
1937
  ...deserialized,
@@ -1979,7 +1940,7 @@ const de_InvalidWebhookAuthenticationParametersExceptionRes = async (parsedOutpu
1979
1940
  };
1980
1941
  const de_InvalidWebhookFilterPatternExceptionRes = async (parsedOutput, context) => {
1981
1942
  const body = parsedOutput.body;
1982
- const deserialized = de_InvalidWebhookFilterPatternException(body, context);
1943
+ const deserialized = _json(body);
1983
1944
  const exception = new InvalidWebhookFilterPatternException({
1984
1945
  $metadata: deserializeMetadata(parsedOutput),
1985
1946
  ...deserialized,
@@ -1988,7 +1949,7 @@ const de_InvalidWebhookFilterPatternExceptionRes = async (parsedOutput, context)
1988
1949
  };
1989
1950
  const de_JobNotFoundExceptionRes = async (parsedOutput, context) => {
1990
1951
  const body = parsedOutput.body;
1991
- const deserialized = de_JobNotFoundException(body, context);
1952
+ const deserialized = _json(body);
1992
1953
  const exception = new JobNotFoundException({
1993
1954
  $metadata: deserializeMetadata(parsedOutput),
1994
1955
  ...deserialized,
@@ -1997,7 +1958,7 @@ const de_JobNotFoundExceptionRes = async (parsedOutput, context) => {
1997
1958
  };
1998
1959
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1999
1960
  const body = parsedOutput.body;
2000
- const deserialized = de_LimitExceededException(body, context);
1961
+ const deserialized = _json(body);
2001
1962
  const exception = new LimitExceededException({
2002
1963
  $metadata: deserializeMetadata(parsedOutput),
2003
1964
  ...deserialized,
@@ -2006,7 +1967,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
2006
1967
  };
2007
1968
  const de_NotLatestPipelineExecutionExceptionRes = async (parsedOutput, context) => {
2008
1969
  const body = parsedOutput.body;
2009
- const deserialized = de_NotLatestPipelineExecutionException(body, context);
1970
+ const deserialized = _json(body);
2010
1971
  const exception = new NotLatestPipelineExecutionException({
2011
1972
  $metadata: deserializeMetadata(parsedOutput),
2012
1973
  ...deserialized,
@@ -2015,7 +1976,7 @@ const de_NotLatestPipelineExecutionExceptionRes = async (parsedOutput, context)
2015
1976
  };
2016
1977
  const de_OutputVariablesSizeExceededExceptionRes = async (parsedOutput, context) => {
2017
1978
  const body = parsedOutput.body;
2018
- const deserialized = de_OutputVariablesSizeExceededException(body, context);
1979
+ const deserialized = _json(body);
2019
1980
  const exception = new OutputVariablesSizeExceededException({
2020
1981
  $metadata: deserializeMetadata(parsedOutput),
2021
1982
  ...deserialized,
@@ -2024,7 +1985,7 @@ const de_OutputVariablesSizeExceededExceptionRes = async (parsedOutput, context)
2024
1985
  };
2025
1986
  const de_PipelineExecutionNotFoundExceptionRes = async (parsedOutput, context) => {
2026
1987
  const body = parsedOutput.body;
2027
- const deserialized = de_PipelineExecutionNotFoundException(body, context);
1988
+ const deserialized = _json(body);
2028
1989
  const exception = new PipelineExecutionNotFoundException({
2029
1990
  $metadata: deserializeMetadata(parsedOutput),
2030
1991
  ...deserialized,
@@ -2033,7 +1994,7 @@ const de_PipelineExecutionNotFoundExceptionRes = async (parsedOutput, context) =
2033
1994
  };
2034
1995
  const de_PipelineExecutionNotStoppableExceptionRes = async (parsedOutput, context) => {
2035
1996
  const body = parsedOutput.body;
2036
- const deserialized = de_PipelineExecutionNotStoppableException(body, context);
1997
+ const deserialized = _json(body);
2037
1998
  const exception = new PipelineExecutionNotStoppableException({
2038
1999
  $metadata: deserializeMetadata(parsedOutput),
2039
2000
  ...deserialized,
@@ -2042,7 +2003,7 @@ const de_PipelineExecutionNotStoppableExceptionRes = async (parsedOutput, contex
2042
2003
  };
2043
2004
  const de_PipelineNameInUseExceptionRes = async (parsedOutput, context) => {
2044
2005
  const body = parsedOutput.body;
2045
- const deserialized = de_PipelineNameInUseException(body, context);
2006
+ const deserialized = _json(body);
2046
2007
  const exception = new PipelineNameInUseException({
2047
2008
  $metadata: deserializeMetadata(parsedOutput),
2048
2009
  ...deserialized,
@@ -2051,7 +2012,7 @@ const de_PipelineNameInUseExceptionRes = async (parsedOutput, context) => {
2051
2012
  };
2052
2013
  const de_PipelineNotFoundExceptionRes = async (parsedOutput, context) => {
2053
2014
  const body = parsedOutput.body;
2054
- const deserialized = de_PipelineNotFoundException(body, context);
2015
+ const deserialized = _json(body);
2055
2016
  const exception = new PipelineNotFoundException({
2056
2017
  $metadata: deserializeMetadata(parsedOutput),
2057
2018
  ...deserialized,
@@ -2060,7 +2021,7 @@ const de_PipelineNotFoundExceptionRes = async (parsedOutput, context) => {
2060
2021
  };
2061
2022
  const de_PipelineVersionNotFoundExceptionRes = async (parsedOutput, context) => {
2062
2023
  const body = parsedOutput.body;
2063
- const deserialized = de_PipelineVersionNotFoundException(body, context);
2024
+ const deserialized = _json(body);
2064
2025
  const exception = new PipelineVersionNotFoundException({
2065
2026
  $metadata: deserializeMetadata(parsedOutput),
2066
2027
  ...deserialized,
@@ -2069,7 +2030,7 @@ const de_PipelineVersionNotFoundExceptionRes = async (parsedOutput, context) =>
2069
2030
  };
2070
2031
  const de_RequestFailedExceptionRes = async (parsedOutput, context) => {
2071
2032
  const body = parsedOutput.body;
2072
- const deserialized = de_RequestFailedException(body, context);
2033
+ const deserialized = _json(body);
2073
2034
  const exception = new RequestFailedException({
2074
2035
  $metadata: deserializeMetadata(parsedOutput),
2075
2036
  ...deserialized,
@@ -2078,7 +2039,7 @@ const de_RequestFailedExceptionRes = async (parsedOutput, context) => {
2078
2039
  };
2079
2040
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2080
2041
  const body = parsedOutput.body;
2081
- const deserialized = de_ResourceNotFoundException(body, context);
2042
+ const deserialized = _json(body);
2082
2043
  const exception = new ResourceNotFoundException({
2083
2044
  $metadata: deserializeMetadata(parsedOutput),
2084
2045
  ...deserialized,
@@ -2087,7 +2048,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2087
2048
  };
2088
2049
  const de_StageNotFoundExceptionRes = async (parsedOutput, context) => {
2089
2050
  const body = parsedOutput.body;
2090
- const deserialized = de_StageNotFoundException(body, context);
2051
+ const deserialized = _json(body);
2091
2052
  const exception = new StageNotFoundException({
2092
2053
  $metadata: deserializeMetadata(parsedOutput),
2093
2054
  ...deserialized,
@@ -2096,7 +2057,7 @@ const de_StageNotFoundExceptionRes = async (parsedOutput, context) => {
2096
2057
  };
2097
2058
  const de_StageNotRetryableExceptionRes = async (parsedOutput, context) => {
2098
2059
  const body = parsedOutput.body;
2099
- const deserialized = de_StageNotRetryableException(body, context);
2060
+ const deserialized = _json(body);
2100
2061
  const exception = new StageNotRetryableException({
2101
2062
  $metadata: deserializeMetadata(parsedOutput),
2102
2063
  ...deserialized,
@@ -2105,7 +2066,7 @@ const de_StageNotRetryableExceptionRes = async (parsedOutput, context) => {
2105
2066
  };
2106
2067
  const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
2107
2068
  const body = parsedOutput.body;
2108
- const deserialized = de_TooManyTagsException(body, context);
2069
+ const deserialized = _json(body);
2109
2070
  const exception = new TooManyTagsException({
2110
2071
  $metadata: deserializeMetadata(parsedOutput),
2111
2072
  ...deserialized,
@@ -2114,7 +2075,7 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
2114
2075
  };
2115
2076
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
2116
2077
  const body = parsedOutput.body;
2117
- const deserialized = de_ValidationException(body, context);
2078
+ const deserialized = _json(body);
2118
2079
  const exception = new ValidationException({
2119
2080
  $metadata: deserializeMetadata(parsedOutput),
2120
2081
  ...deserialized,
@@ -2123,1818 +2084,288 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
2123
2084
  };
2124
2085
  const de_WebhookNotFoundExceptionRes = async (parsedOutput, context) => {
2125
2086
  const body = parsedOutput.body;
2126
- const deserialized = de_WebhookNotFoundException(body, context);
2087
+ const deserialized = _json(body);
2127
2088
  const exception = new WebhookNotFoundException({
2128
2089
  $metadata: deserializeMetadata(parsedOutput),
2129
2090
  ...deserialized,
2130
2091
  });
2131
2092
  return __decorateServiceException(exception, body);
2132
2093
  };
2133
- const se_AcknowledgeJobInput = (input, context) => {
2134
- return {
2135
- ...(input.jobId != null && { jobId: input.jobId }),
2136
- ...(input.nonce != null && { nonce: input.nonce }),
2137
- };
2138
- };
2139
- const se_AcknowledgeThirdPartyJobInput = (input, context) => {
2140
- return {
2141
- ...(input.clientToken != null && { clientToken: input.clientToken }),
2142
- ...(input.jobId != null && { jobId: input.jobId }),
2143
- ...(input.nonce != null && { nonce: input.nonce }),
2144
- };
2145
- };
2146
- const se_ActionConfigurationMap = (input, context) => {
2147
- return Object.entries(input).reduce((acc, [key, value]) => {
2148
- if (value === null) {
2149
- return acc;
2150
- }
2151
- acc[key] = value;
2152
- return acc;
2153
- }, {});
2154
- };
2155
- const se_ActionConfigurationProperty = (input, context) => {
2156
- return {
2157
- ...(input.description != null && { description: input.description }),
2158
- ...(input.key != null && { key: input.key }),
2159
- ...(input.name != null && { name: input.name }),
2160
- ...(input.queryable != null && { queryable: input.queryable }),
2161
- ...(input.required != null && { required: input.required }),
2162
- ...(input.secret != null && { secret: input.secret }),
2163
- ...(input.type != null && { type: input.type }),
2164
- };
2165
- };
2166
- const se_ActionConfigurationPropertyList = (input, context) => {
2167
- return input
2168
- .filter((e) => e != null)
2169
- .map((entry) => {
2170
- return se_ActionConfigurationProperty(entry, context);
2171
- });
2172
- };
2173
- const se_ActionDeclaration = (input, context) => {
2174
- return {
2175
- ...(input.actionTypeId != null && { actionTypeId: se_ActionTypeId(input.actionTypeId, context) }),
2176
- ...(input.configuration != null && { configuration: se_ActionConfigurationMap(input.configuration, context) }),
2177
- ...(input.inputArtifacts != null && { inputArtifacts: se_InputArtifactList(input.inputArtifacts, context) }),
2178
- ...(input.name != null && { name: input.name }),
2179
- ...(input.namespace != null && { namespace: input.namespace }),
2180
- ...(input.outputArtifacts != null && { outputArtifacts: se_OutputArtifactList(input.outputArtifacts, context) }),
2181
- ...(input.region != null && { region: input.region }),
2182
- ...(input.roleArn != null && { roleArn: input.roleArn }),
2183
- ...(input.runOrder != null && { runOrder: input.runOrder }),
2184
- };
2185
- };
2186
- const se_ActionExecutionFilter = (input, context) => {
2187
- return {
2188
- ...(input.pipelineExecutionId != null && { pipelineExecutionId: input.pipelineExecutionId }),
2189
- };
2190
- };
2191
- const se_ActionRevision = (input, context) => {
2192
- return {
2193
- ...(input.created != null && { created: Math.round(input.created.getTime() / 1000) }),
2194
- ...(input.revisionChangeId != null && { revisionChangeId: input.revisionChangeId }),
2195
- ...(input.revisionId != null && { revisionId: input.revisionId }),
2196
- };
2197
- };
2198
- const se_ActionTypeArtifactDetails = (input, context) => {
2199
- return {
2200
- ...(input.maximumCount != null && { maximumCount: input.maximumCount }),
2201
- ...(input.minimumCount != null && { minimumCount: input.minimumCount }),
2202
- };
2203
- };
2204
- const se_ActionTypeDeclaration = (input, context) => {
2205
- return {
2206
- ...(input.description != null && { description: input.description }),
2207
- ...(input.executor != null && { executor: se_ActionTypeExecutor(input.executor, context) }),
2208
- ...(input.id != null && { id: se_ActionTypeIdentifier(input.id, context) }),
2209
- ...(input.inputArtifactDetails != null && {
2210
- inputArtifactDetails: se_ActionTypeArtifactDetails(input.inputArtifactDetails, context),
2211
- }),
2212
- ...(input.outputArtifactDetails != null && {
2213
- outputArtifactDetails: se_ActionTypeArtifactDetails(input.outputArtifactDetails, context),
2214
- }),
2215
- ...(input.permissions != null && { permissions: se_ActionTypePermissions(input.permissions, context) }),
2216
- ...(input.properties != null && { properties: se_ActionTypeProperties(input.properties, context) }),
2217
- ...(input.urls != null && { urls: se_ActionTypeUrls(input.urls, context) }),
2218
- };
2219
- };
2220
- const se_ActionTypeExecutor = (input, context) => {
2221
- return {
2222
- ...(input.configuration != null && { configuration: se_ExecutorConfiguration(input.configuration, context) }),
2223
- ...(input.jobTimeout != null && { jobTimeout: input.jobTimeout }),
2224
- ...(input.policyStatementsTemplate != null && { policyStatementsTemplate: input.policyStatementsTemplate }),
2225
- ...(input.type != null && { type: input.type }),
2226
- };
2227
- };
2228
- const se_ActionTypeId = (input, context) => {
2229
- return {
2230
- ...(input.category != null && { category: input.category }),
2231
- ...(input.owner != null && { owner: input.owner }),
2232
- ...(input.provider != null && { provider: input.provider }),
2233
- ...(input.version != null && { version: input.version }),
2234
- };
2235
- };
2236
- const se_ActionTypeIdentifier = (input, context) => {
2237
- return {
2238
- ...(input.category != null && { category: input.category }),
2239
- ...(input.owner != null && { owner: input.owner }),
2240
- ...(input.provider != null && { provider: input.provider }),
2241
- ...(input.version != null && { version: input.version }),
2242
- };
2243
- };
2244
- const se_ActionTypePermissions = (input, context) => {
2245
- return {
2246
- ...(input.allowedAccounts != null && { allowedAccounts: se_AllowedAccounts(input.allowedAccounts, context) }),
2247
- };
2248
- };
2249
- const se_ActionTypeProperties = (input, context) => {
2250
- return input
2251
- .filter((e) => e != null)
2252
- .map((entry) => {
2253
- return se_ActionTypeProperty(entry, context);
2254
- });
2255
- };
2256
- const se_ActionTypeProperty = (input, context) => {
2257
- return {
2258
- ...(input.description != null && { description: input.description }),
2259
- ...(input.key != null && { key: input.key }),
2260
- ...(input.name != null && { name: input.name }),
2261
- ...(input.noEcho != null && { noEcho: input.noEcho }),
2262
- ...(input.optional != null && { optional: input.optional }),
2263
- ...(input.queryable != null && { queryable: input.queryable }),
2264
- };
2265
- };
2266
- const se_ActionTypeSettings = (input, context) => {
2267
- return {
2268
- ...(input.entityUrlTemplate != null && { entityUrlTemplate: input.entityUrlTemplate }),
2269
- ...(input.executionUrlTemplate != null && { executionUrlTemplate: input.executionUrlTemplate }),
2270
- ...(input.revisionUrlTemplate != null && { revisionUrlTemplate: input.revisionUrlTemplate }),
2271
- ...(input.thirdPartyConfigurationUrl != null && { thirdPartyConfigurationUrl: input.thirdPartyConfigurationUrl }),
2272
- };
2273
- };
2274
- const se_ActionTypeUrls = (input, context) => {
2275
- return {
2276
- ...(input.configurationUrl != null && { configurationUrl: input.configurationUrl }),
2277
- ...(input.entityUrlTemplate != null && { entityUrlTemplate: input.entityUrlTemplate }),
2278
- ...(input.executionUrlTemplate != null && { executionUrlTemplate: input.executionUrlTemplate }),
2279
- ...(input.revisionUrlTemplate != null && { revisionUrlTemplate: input.revisionUrlTemplate }),
2280
- };
2281
- };
2282
- const se_AllowedAccounts = (input, context) => {
2283
- return input
2284
- .filter((e) => e != null)
2285
- .map((entry) => {
2286
- return entry;
2287
- });
2288
- };
2289
- const se_ApprovalResult = (input, context) => {
2290
- return {
2291
- ...(input.status != null && { status: input.status }),
2292
- ...(input.summary != null && { summary: input.summary }),
2293
- };
2294
- };
2295
- const se_ArtifactDetails = (input, context) => {
2296
- return {
2297
- ...(input.maximumCount != null && { maximumCount: input.maximumCount }),
2298
- ...(input.minimumCount != null && { minimumCount: input.minimumCount }),
2299
- };
2300
- };
2301
- const se_ArtifactStore = (input, context) => {
2302
- return {
2303
- ...(input.encryptionKey != null && { encryptionKey: se_EncryptionKey(input.encryptionKey, context) }),
2304
- ...(input.location != null && { location: input.location }),
2305
- ...(input.type != null && { type: input.type }),
2306
- };
2307
- };
2308
- const se_ArtifactStoreMap = (input, context) => {
2309
- return Object.entries(input).reduce((acc, [key, value]) => {
2310
- if (value === null) {
2311
- return acc;
2312
- }
2313
- acc[key] = se_ArtifactStore(value, context);
2314
- return acc;
2315
- }, {});
2316
- };
2317
- const se_BlockerDeclaration = (input, context) => {
2318
- return {
2319
- ...(input.name != null && { name: input.name }),
2320
- ...(input.type != null && { type: input.type }),
2321
- };
2322
- };
2323
- const se_CreateCustomActionTypeInput = (input, context) => {
2324
- return {
2325
- ...(input.category != null && { category: input.category }),
2326
- ...(input.configurationProperties != null && {
2327
- configurationProperties: se_ActionConfigurationPropertyList(input.configurationProperties, context),
2328
- }),
2329
- ...(input.inputArtifactDetails != null && {
2330
- inputArtifactDetails: se_ArtifactDetails(input.inputArtifactDetails, context),
2331
- }),
2332
- ...(input.outputArtifactDetails != null && {
2333
- outputArtifactDetails: se_ArtifactDetails(input.outputArtifactDetails, context),
2334
- }),
2335
- ...(input.provider != null && { provider: input.provider }),
2336
- ...(input.settings != null && { settings: se_ActionTypeSettings(input.settings, context) }),
2337
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
2338
- ...(input.version != null && { version: input.version }),
2339
- };
2340
- };
2341
- const se_CreatePipelineInput = (input, context) => {
2342
- return {
2343
- ...(input.pipeline != null && { pipeline: se_PipelineDeclaration(input.pipeline, context) }),
2344
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
2345
- };
2346
- };
2347
- const se_CurrentRevision = (input, context) => {
2348
- return {
2349
- ...(input.changeIdentifier != null && { changeIdentifier: input.changeIdentifier }),
2350
- ...(input.created != null && { created: Math.round(input.created.getTime() / 1000) }),
2351
- ...(input.revision != null && { revision: input.revision }),
2352
- ...(input.revisionSummary != null && { revisionSummary: input.revisionSummary }),
2353
- };
2354
- };
2355
- const se_DeleteCustomActionTypeInput = (input, context) => {
2356
- return {
2357
- ...(input.category != null && { category: input.category }),
2358
- ...(input.provider != null && { provider: input.provider }),
2359
- ...(input.version != null && { version: input.version }),
2360
- };
2361
- };
2362
- const se_DeletePipelineInput = (input, context) => {
2363
- return {
2364
- ...(input.name != null && { name: input.name }),
2365
- };
2366
- };
2367
- const se_DeleteWebhookInput = (input, context) => {
2368
- return {
2369
- ...(input.name != null && { name: input.name }),
2370
- };
2371
- };
2372
- const se_DeregisterWebhookWithThirdPartyInput = (input, context) => {
2373
- return {
2374
- ...(input.webhookName != null && { webhookName: input.webhookName }),
2375
- };
2376
- };
2377
- const se_DisableStageTransitionInput = (input, context) => {
2378
- return {
2379
- ...(input.pipelineName != null && { pipelineName: input.pipelineName }),
2380
- ...(input.reason != null && { reason: input.reason }),
2381
- ...(input.stageName != null && { stageName: input.stageName }),
2382
- ...(input.transitionType != null && { transitionType: input.transitionType }),
2383
- };
2384
- };
2385
- const se_EnableStageTransitionInput = (input, context) => {
2386
- return {
2387
- ...(input.pipelineName != null && { pipelineName: input.pipelineName }),
2388
- ...(input.stageName != null && { stageName: input.stageName }),
2389
- ...(input.transitionType != null && { transitionType: input.transitionType }),
2390
- };
2391
- };
2392
- const se_EncryptionKey = (input, context) => {
2393
- return {
2394
- ...(input.id != null && { id: input.id }),
2395
- ...(input.type != null && { type: input.type }),
2396
- };
2397
- };
2398
- const se_ExecutionDetails = (input, context) => {
2399
- return {
2400
- ...(input.externalExecutionId != null && { externalExecutionId: input.externalExecutionId }),
2401
- ...(input.percentComplete != null && { percentComplete: input.percentComplete }),
2402
- ...(input.summary != null && { summary: input.summary }),
2403
- };
2404
- };
2405
- const se_ExecutorConfiguration = (input, context) => {
2406
- return {
2407
- ...(input.jobWorkerExecutorConfiguration != null && {
2408
- jobWorkerExecutorConfiguration: se_JobWorkerExecutorConfiguration(input.jobWorkerExecutorConfiguration, context),
2409
- }),
2410
- ...(input.lambdaExecutorConfiguration != null && {
2411
- lambdaExecutorConfiguration: se_LambdaExecutorConfiguration(input.lambdaExecutorConfiguration, context),
2412
- }),
2413
- };
2414
- };
2415
- const se_FailureDetails = (input, context) => {
2416
- return {
2417
- ...(input.externalExecutionId != null && { externalExecutionId: input.externalExecutionId }),
2418
- ...(input.message != null && { message: input.message }),
2419
- ...(input.type != null && { type: input.type }),
2420
- };
2421
- };
2422
- const se_GetActionTypeInput = (input, context) => {
2423
- return {
2424
- ...(input.category != null && { category: input.category }),
2425
- ...(input.owner != null && { owner: input.owner }),
2426
- ...(input.provider != null && { provider: input.provider }),
2427
- ...(input.version != null && { version: input.version }),
2428
- };
2429
- };
2430
- const se_GetJobDetailsInput = (input, context) => {
2431
- return {
2432
- ...(input.jobId != null && { jobId: input.jobId }),
2433
- };
2434
- };
2435
- const se_GetPipelineExecutionInput = (input, context) => {
2436
- return {
2437
- ...(input.pipelineExecutionId != null && { pipelineExecutionId: input.pipelineExecutionId }),
2438
- ...(input.pipelineName != null && { pipelineName: input.pipelineName }),
2439
- };
2440
- };
2441
- const se_GetPipelineInput = (input, context) => {
2442
- return {
2443
- ...(input.name != null && { name: input.name }),
2444
- ...(input.version != null && { version: input.version }),
2445
- };
2446
- };
2447
- const se_GetPipelineStateInput = (input, context) => {
2448
- return {
2449
- ...(input.name != null && { name: input.name }),
2450
- };
2451
- };
2452
- const se_GetThirdPartyJobDetailsInput = (input, context) => {
2453
- return {
2454
- ...(input.clientToken != null && { clientToken: input.clientToken }),
2455
- ...(input.jobId != null && { jobId: input.jobId }),
2456
- };
2457
- };
2458
- const se_InputArtifact = (input, context) => {
2459
- return {
2460
- ...(input.name != null && { name: input.name }),
2461
- };
2462
- };
2463
- const se_InputArtifactList = (input, context) => {
2464
- return input
2465
- .filter((e) => e != null)
2466
- .map((entry) => {
2467
- return se_InputArtifact(entry, context);
2468
- });
2469
- };
2470
- const se_JobWorkerExecutorConfiguration = (input, context) => {
2471
- return {
2472
- ...(input.pollingAccounts != null && { pollingAccounts: se_PollingAccountList(input.pollingAccounts, context) }),
2473
- ...(input.pollingServicePrincipals != null && {
2474
- pollingServicePrincipals: se_PollingServicePrincipalList(input.pollingServicePrincipals, context),
2475
- }),
2476
- };
2477
- };
2478
- const se_LambdaExecutorConfiguration = (input, context) => {
2479
- return {
2480
- ...(input.lambdaFunctionArn != null && { lambdaFunctionArn: input.lambdaFunctionArn }),
2481
- };
2482
- };
2483
- const se_ListActionExecutionsInput = (input, context) => {
2484
- return {
2485
- ...(input.filter != null && { filter: se_ActionExecutionFilter(input.filter, context) }),
2486
- ...(input.maxResults != null && { maxResults: input.maxResults }),
2487
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2488
- ...(input.pipelineName != null && { pipelineName: input.pipelineName }),
2489
- };
2490
- };
2491
- const se_ListActionTypesInput = (input, context) => {
2492
- return {
2493
- ...(input.actionOwnerFilter != null && { actionOwnerFilter: input.actionOwnerFilter }),
2494
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2495
- ...(input.regionFilter != null && { regionFilter: input.regionFilter }),
2496
- };
2497
- };
2498
- const se_ListPipelineExecutionsInput = (input, context) => {
2499
- return {
2500
- ...(input.maxResults != null && { maxResults: input.maxResults }),
2501
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2502
- ...(input.pipelineName != null && { pipelineName: input.pipelineName }),
2503
- };
2504
- };
2505
- const se_ListPipelinesInput = (input, context) => {
2506
- return {
2507
- ...(input.maxResults != null && { maxResults: input.maxResults }),
2508
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2509
- };
2510
- };
2511
- const se_ListTagsForResourceInput = (input, context) => {
2512
- return {
2513
- ...(input.maxResults != null && { maxResults: input.maxResults }),
2514
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2515
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
2516
- };
2517
- };
2518
- const se_ListWebhooksInput = (input, context) => {
2519
- return {
2520
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2521
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2522
- };
2523
- };
2524
- const se_OutputArtifact = (input, context) => {
2525
- return {
2526
- ...(input.name != null && { name: input.name }),
2527
- };
2528
- };
2529
- const se_OutputArtifactList = (input, context) => {
2530
- return input
2531
- .filter((e) => e != null)
2532
- .map((entry) => {
2533
- return se_OutputArtifact(entry, context);
2534
- });
2535
- };
2536
- const se_OutputVariablesMap = (input, context) => {
2537
- return Object.entries(input).reduce((acc, [key, value]) => {
2538
- if (value === null) {
2539
- return acc;
2540
- }
2541
- acc[key] = value;
2542
- return acc;
2543
- }, {});
2544
- };
2545
- const se_PipelineDeclaration = (input, context) => {
2546
- return {
2547
- ...(input.artifactStore != null && { artifactStore: se_ArtifactStore(input.artifactStore, context) }),
2548
- ...(input.artifactStores != null && { artifactStores: se_ArtifactStoreMap(input.artifactStores, context) }),
2549
- ...(input.name != null && { name: input.name }),
2550
- ...(input.roleArn != null && { roleArn: input.roleArn }),
2551
- ...(input.stages != null && { stages: se_PipelineStageDeclarationList(input.stages, context) }),
2552
- ...(input.version != null && { version: input.version }),
2553
- };
2554
- };
2555
- const se_PipelineStageDeclarationList = (input, context) => {
2556
- return input
2557
- .filter((e) => e != null)
2558
- .map((entry) => {
2559
- return se_StageDeclaration(entry, context);
2560
- });
2561
- };
2562
- const se_PollForJobsInput = (input, context) => {
2563
- return {
2564
- ...(input.actionTypeId != null && { actionTypeId: se_ActionTypeId(input.actionTypeId, context) }),
2565
- ...(input.maxBatchSize != null && { maxBatchSize: input.maxBatchSize }),
2566
- ...(input.queryParam != null && { queryParam: se_QueryParamMap(input.queryParam, context) }),
2567
- };
2568
- };
2569
- const se_PollForThirdPartyJobsInput = (input, context) => {
2570
- return {
2571
- ...(input.actionTypeId != null && { actionTypeId: se_ActionTypeId(input.actionTypeId, context) }),
2572
- ...(input.maxBatchSize != null && { maxBatchSize: input.maxBatchSize }),
2573
- };
2574
- };
2575
- const se_PollingAccountList = (input, context) => {
2576
- return input
2577
- .filter((e) => e != null)
2578
- .map((entry) => {
2579
- return entry;
2580
- });
2581
- };
2582
- const se_PollingServicePrincipalList = (input, context) => {
2583
- return input
2584
- .filter((e) => e != null)
2585
- .map((entry) => {
2586
- return entry;
2587
- });
2588
- };
2589
- const se_PutActionRevisionInput = (input, context) => {
2590
- return {
2591
- ...(input.actionName != null && { actionName: input.actionName }),
2592
- ...(input.actionRevision != null && { actionRevision: se_ActionRevision(input.actionRevision, context) }),
2593
- ...(input.pipelineName != null && { pipelineName: input.pipelineName }),
2594
- ...(input.stageName != null && { stageName: input.stageName }),
2595
- };
2596
- };
2597
- const se_PutApprovalResultInput = (input, context) => {
2598
- return {
2599
- ...(input.actionName != null && { actionName: input.actionName }),
2600
- ...(input.pipelineName != null && { pipelineName: input.pipelineName }),
2601
- ...(input.result != null && { result: se_ApprovalResult(input.result, context) }),
2602
- ...(input.stageName != null && { stageName: input.stageName }),
2603
- ...(input.token != null && { token: input.token }),
2604
- };
2605
- };
2606
- const se_PutJobFailureResultInput = (input, context) => {
2607
- return {
2608
- ...(input.failureDetails != null && { failureDetails: se_FailureDetails(input.failureDetails, context) }),
2609
- ...(input.jobId != null && { jobId: input.jobId }),
2610
- };
2611
- };
2612
- const se_PutJobSuccessResultInput = (input, context) => {
2613
- return {
2614
- ...(input.continuationToken != null && { continuationToken: input.continuationToken }),
2615
- ...(input.currentRevision != null && { currentRevision: se_CurrentRevision(input.currentRevision, context) }),
2616
- ...(input.executionDetails != null && { executionDetails: se_ExecutionDetails(input.executionDetails, context) }),
2617
- ...(input.jobId != null && { jobId: input.jobId }),
2618
- ...(input.outputVariables != null && { outputVariables: se_OutputVariablesMap(input.outputVariables, context) }),
2619
- };
2620
- };
2621
- const se_PutThirdPartyJobFailureResultInput = (input, context) => {
2622
- return {
2623
- ...(input.clientToken != null && { clientToken: input.clientToken }),
2624
- ...(input.failureDetails != null && { failureDetails: se_FailureDetails(input.failureDetails, context) }),
2625
- ...(input.jobId != null && { jobId: input.jobId }),
2626
- };
2627
- };
2628
- const se_PutThirdPartyJobSuccessResultInput = (input, context) => {
2629
- return {
2630
- ...(input.clientToken != null && { clientToken: input.clientToken }),
2631
- ...(input.continuationToken != null && { continuationToken: input.continuationToken }),
2632
- ...(input.currentRevision != null && { currentRevision: se_CurrentRevision(input.currentRevision, context) }),
2633
- ...(input.executionDetails != null && { executionDetails: se_ExecutionDetails(input.executionDetails, context) }),
2634
- ...(input.jobId != null && { jobId: input.jobId }),
2635
- };
2636
- };
2637
- const se_PutWebhookInput = (input, context) => {
2638
- return {
2639
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
2640
- ...(input.webhook != null && { webhook: se_WebhookDefinition(input.webhook, context) }),
2641
- };
2642
- };
2643
- const se_QueryParamMap = (input, context) => {
2644
- return Object.entries(input).reduce((acc, [key, value]) => {
2645
- if (value === null) {
2646
- return acc;
2647
- }
2648
- acc[key] = value;
2649
- return acc;
2650
- }, {});
2651
- };
2652
- const se_RegisterWebhookWithThirdPartyInput = (input, context) => {
2653
- return {
2654
- ...(input.webhookName != null && { webhookName: input.webhookName }),
2655
- };
2656
- };
2657
- const se_RetryStageExecutionInput = (input, context) => {
2658
- return {
2659
- ...(input.pipelineExecutionId != null && { pipelineExecutionId: input.pipelineExecutionId }),
2660
- ...(input.pipelineName != null && { pipelineName: input.pipelineName }),
2661
- ...(input.retryMode != null && { retryMode: input.retryMode }),
2662
- ...(input.stageName != null && { stageName: input.stageName }),
2663
- };
2664
- };
2665
- const se_StageActionDeclarationList = (input, context) => {
2666
- return input
2667
- .filter((e) => e != null)
2668
- .map((entry) => {
2669
- return se_ActionDeclaration(entry, context);
2670
- });
2671
- };
2672
- const se_StageBlockerDeclarationList = (input, context) => {
2673
- return input
2674
- .filter((e) => e != null)
2675
- .map((entry) => {
2676
- return se_BlockerDeclaration(entry, context);
2677
- });
2678
- };
2679
- const se_StageDeclaration = (input, context) => {
2680
- return {
2681
- ...(input.actions != null && { actions: se_StageActionDeclarationList(input.actions, context) }),
2682
- ...(input.blockers != null && { blockers: se_StageBlockerDeclarationList(input.blockers, context) }),
2683
- ...(input.name != null && { name: input.name }),
2684
- };
2685
- };
2686
- const se_StartPipelineExecutionInput = (input, context) => {
2687
- return {
2688
- clientRequestToken: input.clientRequestToken ?? generateIdempotencyToken(),
2689
- ...(input.name != null && { name: input.name }),
2690
- };
2691
- };
2692
- const se_StopPipelineExecutionInput = (input, context) => {
2693
- return {
2694
- ...(input.abandon != null && { abandon: input.abandon }),
2695
- ...(input.pipelineExecutionId != null && { pipelineExecutionId: input.pipelineExecutionId }),
2696
- ...(input.pipelineName != null && { pipelineName: input.pipelineName }),
2697
- ...(input.reason != null && { reason: input.reason }),
2698
- };
2699
- };
2700
- const se_Tag = (input, context) => {
2701
- return {
2702
- ...(input.key != null && { key: input.key }),
2703
- ...(input.value != null && { value: input.value }),
2704
- };
2705
- };
2706
- const se_TagKeyList = (input, context) => {
2707
- return input
2708
- .filter((e) => e != null)
2709
- .map((entry) => {
2710
- return entry;
2711
- });
2712
- };
2713
- const se_TagList = (input, context) => {
2714
- return input
2715
- .filter((e) => e != null)
2716
- .map((entry) => {
2717
- return se_Tag(entry, context);
2718
- });
2719
- };
2720
- const se_TagResourceInput = (input, context) => {
2721
- return {
2722
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
2723
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
2724
- };
2725
- };
2726
- const se_UntagResourceInput = (input, context) => {
2727
- return {
2728
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
2729
- ...(input.tagKeys != null && { tagKeys: se_TagKeyList(input.tagKeys, context) }),
2730
- };
2731
- };
2732
- const se_UpdateActionTypeInput = (input, context) => {
2733
- return {
2734
- ...(input.actionType != null && { actionType: se_ActionTypeDeclaration(input.actionType, context) }),
2735
- };
2736
- };
2737
- const se_UpdatePipelineInput = (input, context) => {
2738
- return {
2739
- ...(input.pipeline != null && { pipeline: se_PipelineDeclaration(input.pipeline, context) }),
2740
- };
2741
- };
2742
- const se_WebhookAuthConfiguration = (input, context) => {
2743
- return {
2744
- ...(input.AllowedIPRange != null && { AllowedIPRange: input.AllowedIPRange }),
2745
- ...(input.SecretToken != null && { SecretToken: input.SecretToken }),
2746
- };
2747
- };
2748
- const se_WebhookDefinition = (input, context) => {
2749
- return {
2750
- ...(input.authentication != null && { authentication: input.authentication }),
2751
- ...(input.authenticationConfiguration != null && {
2752
- authenticationConfiguration: se_WebhookAuthConfiguration(input.authenticationConfiguration, context),
2753
- }),
2754
- ...(input.filters != null && { filters: se_WebhookFilters(input.filters, context) }),
2755
- ...(input.name != null && { name: input.name }),
2756
- ...(input.targetAction != null && { targetAction: input.targetAction }),
2757
- ...(input.targetPipeline != null && { targetPipeline: input.targetPipeline }),
2758
- };
2759
- };
2760
- const se_WebhookFilterRule = (input, context) => {
2761
- return {
2762
- ...(input.jsonPath != null && { jsonPath: input.jsonPath }),
2763
- ...(input.matchEquals != null && { matchEquals: input.matchEquals }),
2764
- };
2765
- };
2766
- const se_WebhookFilters = (input, context) => {
2767
- return input
2768
- .filter((e) => e != null)
2769
- .map((entry) => {
2770
- return se_WebhookFilterRule(entry, context);
2771
- });
2772
- };
2773
- const de_AcknowledgeJobOutput = (output, context) => {
2774
- return {
2775
- status: __expectString(output.status),
2776
- };
2777
- };
2778
- const de_AcknowledgeThirdPartyJobOutput = (output, context) => {
2779
- return {
2780
- status: __expectString(output.status),
2781
- };
2782
- };
2783
- const de_ActionConfiguration = (output, context) => {
2784
- return {
2785
- configuration: output.configuration != null ? de_ActionConfigurationMap(output.configuration, context) : undefined,
2786
- };
2787
- };
2788
- const de_ActionConfigurationMap = (output, context) => {
2789
- return Object.entries(output).reduce((acc, [key, value]) => {
2790
- if (value === null) {
2791
- return acc;
2792
- }
2793
- acc[key] = __expectString(value);
2794
- return acc;
2795
- }, {});
2796
- };
2797
- const de_ActionConfigurationProperty = (output, context) => {
2798
- return {
2799
- description: __expectString(output.description),
2800
- key: __expectBoolean(output.key),
2801
- name: __expectString(output.name),
2802
- queryable: __expectBoolean(output.queryable),
2803
- required: __expectBoolean(output.required),
2804
- secret: __expectBoolean(output.secret),
2805
- type: __expectString(output.type),
2806
- };
2807
- };
2808
- const de_ActionConfigurationPropertyList = (output, context) => {
2809
- const retVal = (output || [])
2810
- .filter((e) => e != null)
2811
- .map((entry) => {
2812
- if (entry === null) {
2813
- return null;
2814
- }
2815
- return de_ActionConfigurationProperty(entry, context);
2816
- });
2817
- return retVal;
2818
- };
2819
- const de_ActionContext = (output, context) => {
2820
- return {
2821
- actionExecutionId: __expectString(output.actionExecutionId),
2822
- name: __expectString(output.name),
2823
- };
2824
- };
2825
- const de_ActionDeclaration = (output, context) => {
2826
- return {
2827
- actionTypeId: output.actionTypeId != null ? de_ActionTypeId(output.actionTypeId, context) : undefined,
2828
- configuration: output.configuration != null ? de_ActionConfigurationMap(output.configuration, context) : undefined,
2829
- inputArtifacts: output.inputArtifacts != null ? de_InputArtifactList(output.inputArtifacts, context) : undefined,
2830
- name: __expectString(output.name),
2831
- namespace: __expectString(output.namespace),
2832
- outputArtifacts: output.outputArtifacts != null ? de_OutputArtifactList(output.outputArtifacts, context) : undefined,
2833
- region: __expectString(output.region),
2834
- roleArn: __expectString(output.roleArn),
2835
- runOrder: __expectInt32(output.runOrder),
2836
- };
2837
- };
2838
- const de_ActionExecution = (output, context) => {
2839
- return {
2840
- actionExecutionId: __expectString(output.actionExecutionId),
2841
- errorDetails: output.errorDetails != null ? de_ErrorDetails(output.errorDetails, context) : undefined,
2842
- externalExecutionId: __expectString(output.externalExecutionId),
2843
- externalExecutionUrl: __expectString(output.externalExecutionUrl),
2844
- lastStatusChange: output.lastStatusChange != null
2845
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastStatusChange)))
2846
- : undefined,
2847
- lastUpdatedBy: __expectString(output.lastUpdatedBy),
2848
- percentComplete: __expectInt32(output.percentComplete),
2849
- status: __expectString(output.status),
2850
- summary: __expectString(output.summary),
2851
- token: __expectString(output.token),
2852
- };
2853
- };
2854
- const de_ActionExecutionDetail = (output, context) => {
2855
- return {
2856
- actionExecutionId: __expectString(output.actionExecutionId),
2857
- actionName: __expectString(output.actionName),
2858
- input: output.input != null ? de_ActionExecutionInput(output.input, context) : undefined,
2859
- lastUpdateTime: output.lastUpdateTime != null
2860
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateTime)))
2861
- : undefined,
2862
- output: output.output != null ? de_ActionExecutionOutput(output.output, context) : undefined,
2863
- pipelineExecutionId: __expectString(output.pipelineExecutionId),
2864
- pipelineVersion: __expectInt32(output.pipelineVersion),
2865
- stageName: __expectString(output.stageName),
2866
- startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
2867
- status: __expectString(output.status),
2868
- };
2869
- };
2870
- const de_ActionExecutionDetailList = (output, context) => {
2871
- const retVal = (output || [])
2872
- .filter((e) => e != null)
2873
- .map((entry) => {
2874
- if (entry === null) {
2875
- return null;
2876
- }
2877
- return de_ActionExecutionDetail(entry, context);
2878
- });
2879
- return retVal;
2880
- };
2881
- const de_ActionExecutionInput = (output, context) => {
2882
- return {
2883
- actionTypeId: output.actionTypeId != null ? de_ActionTypeId(output.actionTypeId, context) : undefined,
2884
- configuration: output.configuration != null ? de_ActionConfigurationMap(output.configuration, context) : undefined,
2885
- inputArtifacts: output.inputArtifacts != null ? de_ArtifactDetailList(output.inputArtifacts, context) : undefined,
2886
- namespace: __expectString(output.namespace),
2887
- region: __expectString(output.region),
2888
- resolvedConfiguration: output.resolvedConfiguration != null
2889
- ? de_ResolvedActionConfigurationMap(output.resolvedConfiguration, context)
2890
- : undefined,
2891
- roleArn: __expectString(output.roleArn),
2892
- };
2893
- };
2894
- const de_ActionExecutionOutput = (output, context) => {
2895
- return {
2896
- executionResult: output.executionResult != null ? de_ActionExecutionResult(output.executionResult, context) : undefined,
2897
- outputArtifacts: output.outputArtifacts != null ? de_ArtifactDetailList(output.outputArtifacts, context) : undefined,
2898
- outputVariables: output.outputVariables != null ? de_OutputVariablesMap(output.outputVariables, context) : undefined,
2899
- };
2900
- };
2901
- const de_ActionExecutionResult = (output, context) => {
2902
- return {
2903
- externalExecutionId: __expectString(output.externalExecutionId),
2904
- externalExecutionSummary: __expectString(output.externalExecutionSummary),
2905
- externalExecutionUrl: __expectString(output.externalExecutionUrl),
2906
- };
2907
- };
2908
- const de_ActionNotFoundException = (output, context) => {
2909
- return {
2910
- message: __expectString(output.message),
2911
- };
2912
- };
2913
- const de_ActionRevision = (output, context) => {
2914
- return {
2915
- created: output.created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created))) : undefined,
2916
- revisionChangeId: __expectString(output.revisionChangeId),
2917
- revisionId: __expectString(output.revisionId),
2918
- };
2919
- };
2920
- const de_ActionState = (output, context) => {
2921
- return {
2922
- actionName: __expectString(output.actionName),
2923
- currentRevision: output.currentRevision != null ? de_ActionRevision(output.currentRevision, context) : undefined,
2924
- entityUrl: __expectString(output.entityUrl),
2925
- latestExecution: output.latestExecution != null ? de_ActionExecution(output.latestExecution, context) : undefined,
2926
- revisionUrl: __expectString(output.revisionUrl),
2927
- };
2928
- };
2929
- const de_ActionStateList = (output, context) => {
2930
- const retVal = (output || [])
2931
- .filter((e) => e != null)
2932
- .map((entry) => {
2933
- if (entry === null) {
2934
- return null;
2935
- }
2936
- return de_ActionState(entry, context);
2937
- });
2938
- return retVal;
2939
- };
2940
- const de_ActionType = (output, context) => {
2941
- return {
2942
- actionConfigurationProperties: output.actionConfigurationProperties != null
2943
- ? de_ActionConfigurationPropertyList(output.actionConfigurationProperties, context)
2944
- : undefined,
2945
- id: output.id != null ? de_ActionTypeId(output.id, context) : undefined,
2946
- inputArtifactDetails: output.inputArtifactDetails != null ? de_ArtifactDetails(output.inputArtifactDetails, context) : undefined,
2947
- outputArtifactDetails: output.outputArtifactDetails != null ? de_ArtifactDetails(output.outputArtifactDetails, context) : undefined,
2948
- settings: output.settings != null ? de_ActionTypeSettings(output.settings, context) : undefined,
2949
- };
2950
- };
2951
- const de_ActionTypeArtifactDetails = (output, context) => {
2952
- return {
2953
- maximumCount: __expectInt32(output.maximumCount),
2954
- minimumCount: __expectInt32(output.minimumCount),
2955
- };
2956
- };
2957
- const de_ActionTypeDeclaration = (output, context) => {
2958
- return {
2959
- description: __expectString(output.description),
2960
- executor: output.executor != null ? de_ActionTypeExecutor(output.executor, context) : undefined,
2961
- id: output.id != null ? de_ActionTypeIdentifier(output.id, context) : undefined,
2962
- inputArtifactDetails: output.inputArtifactDetails != null
2963
- ? de_ActionTypeArtifactDetails(output.inputArtifactDetails, context)
2964
- : undefined,
2965
- outputArtifactDetails: output.outputArtifactDetails != null
2966
- ? de_ActionTypeArtifactDetails(output.outputArtifactDetails, context)
2967
- : undefined,
2968
- permissions: output.permissions != null ? de_ActionTypePermissions(output.permissions, context) : undefined,
2969
- properties: output.properties != null ? de_ActionTypeProperties(output.properties, context) : undefined,
2970
- urls: output.urls != null ? de_ActionTypeUrls(output.urls, context) : undefined,
2971
- };
2972
- };
2973
- const de_ActionTypeExecutor = (output, context) => {
2974
- return {
2975
- configuration: output.configuration != null ? de_ExecutorConfiguration(output.configuration, context) : undefined,
2976
- jobTimeout: __expectInt32(output.jobTimeout),
2977
- policyStatementsTemplate: __expectString(output.policyStatementsTemplate),
2978
- type: __expectString(output.type),
2979
- };
2980
- };
2981
- const de_ActionTypeId = (output, context) => {
2982
- return {
2983
- category: __expectString(output.category),
2984
- owner: __expectString(output.owner),
2985
- provider: __expectString(output.provider),
2986
- version: __expectString(output.version),
2987
- };
2988
- };
2989
- const de_ActionTypeIdentifier = (output, context) => {
2990
- return {
2991
- category: __expectString(output.category),
2992
- owner: __expectString(output.owner),
2993
- provider: __expectString(output.provider),
2994
- version: __expectString(output.version),
2995
- };
2996
- };
2997
- const de_ActionTypeList = (output, context) => {
2998
- const retVal = (output || [])
2999
- .filter((e) => e != null)
3000
- .map((entry) => {
3001
- if (entry === null) {
3002
- return null;
3003
- }
3004
- return de_ActionType(entry, context);
3005
- });
3006
- return retVal;
3007
- };
3008
- const de_ActionTypeNotFoundException = (output, context) => {
3009
- return {
3010
- message: __expectString(output.message),
3011
- };
3012
- };
3013
- const de_ActionTypePermissions = (output, context) => {
3014
- return {
3015
- allowedAccounts: output.allowedAccounts != null ? de_AllowedAccounts(output.allowedAccounts, context) : undefined,
3016
- };
3017
- };
3018
- const de_ActionTypeProperties = (output, context) => {
3019
- const retVal = (output || [])
3020
- .filter((e) => e != null)
3021
- .map((entry) => {
3022
- if (entry === null) {
3023
- return null;
3024
- }
3025
- return de_ActionTypeProperty(entry, context);
3026
- });
3027
- return retVal;
3028
- };
3029
- const de_ActionTypeProperty = (output, context) => {
3030
- return {
3031
- description: __expectString(output.description),
3032
- key: __expectBoolean(output.key),
3033
- name: __expectString(output.name),
3034
- noEcho: __expectBoolean(output.noEcho),
3035
- optional: __expectBoolean(output.optional),
3036
- queryable: __expectBoolean(output.queryable),
3037
- };
3038
- };
3039
- const de_ActionTypeSettings = (output, context) => {
3040
- return {
3041
- entityUrlTemplate: __expectString(output.entityUrlTemplate),
3042
- executionUrlTemplate: __expectString(output.executionUrlTemplate),
3043
- revisionUrlTemplate: __expectString(output.revisionUrlTemplate),
3044
- thirdPartyConfigurationUrl: __expectString(output.thirdPartyConfigurationUrl),
3045
- };
3046
- };
3047
- const de_ActionTypeUrls = (output, context) => {
3048
- return {
3049
- configurationUrl: __expectString(output.configurationUrl),
3050
- entityUrlTemplate: __expectString(output.entityUrlTemplate),
3051
- executionUrlTemplate: __expectString(output.executionUrlTemplate),
3052
- revisionUrlTemplate: __expectString(output.revisionUrlTemplate),
3053
- };
3054
- };
3055
- const de_AllowedAccounts = (output, context) => {
3056
- const retVal = (output || [])
3057
- .filter((e) => e != null)
3058
- .map((entry) => {
3059
- if (entry === null) {
3060
- return null;
3061
- }
3062
- return __expectString(entry);
3063
- });
3064
- return retVal;
3065
- };
3066
- const de_ApprovalAlreadyCompletedException = (output, context) => {
3067
- return {
3068
- message: __expectString(output.message),
3069
- };
3070
- };
3071
- const de_Artifact = (output, context) => {
3072
- return {
3073
- location: output.location != null ? de_ArtifactLocation(output.location, context) : undefined,
3074
- name: __expectString(output.name),
3075
- revision: __expectString(output.revision),
3076
- };
3077
- };
3078
- const de_ArtifactDetail = (output, context) => {
3079
- return {
3080
- name: __expectString(output.name),
3081
- s3location: output.s3location != null ? de_S3Location(output.s3location, context) : undefined,
3082
- };
3083
- };
3084
- const de_ArtifactDetailList = (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_ArtifactDetail(entry, context);
3092
- });
3093
- return retVal;
3094
- };
3095
- const de_ArtifactDetails = (output, context) => {
3096
- return {
3097
- maximumCount: __expectInt32(output.maximumCount),
3098
- minimumCount: __expectInt32(output.minimumCount),
3099
- };
3100
- };
3101
- const de_ArtifactList = (output, context) => {
3102
- const retVal = (output || [])
3103
- .filter((e) => e != null)
3104
- .map((entry) => {
3105
- if (entry === null) {
3106
- return null;
3107
- }
3108
- return de_Artifact(entry, context);
3109
- });
3110
- return retVal;
3111
- };
3112
- const de_ArtifactLocation = (output, context) => {
3113
- return {
3114
- s3Location: output.s3Location != null ? de_S3ArtifactLocation(output.s3Location, context) : undefined,
3115
- type: __expectString(output.type),
3116
- };
3117
- };
3118
- const de_ArtifactRevision = (output, context) => {
3119
- return {
3120
- created: output.created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created))) : undefined,
3121
- name: __expectString(output.name),
3122
- revisionChangeIdentifier: __expectString(output.revisionChangeIdentifier),
3123
- revisionId: __expectString(output.revisionId),
3124
- revisionSummary: __expectString(output.revisionSummary),
3125
- revisionUrl: __expectString(output.revisionUrl),
3126
- };
3127
- };
3128
- const de_ArtifactRevisionList = (output, context) => {
3129
- const retVal = (output || [])
3130
- .filter((e) => e != null)
3131
- .map((entry) => {
3132
- if (entry === null) {
3133
- return null;
3134
- }
3135
- return de_ArtifactRevision(entry, context);
3136
- });
3137
- return retVal;
3138
- };
3139
- const de_ArtifactStore = (output, context) => {
3140
- return {
3141
- encryptionKey: output.encryptionKey != null ? de_EncryptionKey(output.encryptionKey, context) : undefined,
3142
- location: __expectString(output.location),
3143
- type: __expectString(output.type),
3144
- };
3145
- };
3146
- const de_ArtifactStoreMap = (output, context) => {
3147
- return Object.entries(output).reduce((acc, [key, value]) => {
3148
- if (value === null) {
3149
- return acc;
3150
- }
3151
- acc[key] = de_ArtifactStore(value, context);
3152
- return acc;
3153
- }, {});
3154
- };
3155
- const de_AWSSessionCredentials = (output, context) => {
3156
- return {
3157
- accessKeyId: __expectString(output.accessKeyId),
3158
- secretAccessKey: __expectString(output.secretAccessKey),
3159
- sessionToken: __expectString(output.sessionToken),
3160
- };
3161
- };
3162
- const de_BlockerDeclaration = (output, context) => {
3163
- return {
3164
- name: __expectString(output.name),
3165
- type: __expectString(output.type),
3166
- };
3167
- };
3168
- const de_ConcurrentModificationException = (output, context) => {
3169
- return {
3170
- message: __expectString(output.message),
3171
- };
3172
- };
3173
- const de_ConflictException = (output, context) => {
3174
- return {
3175
- message: __expectString(output.message),
3176
- };
3177
- };
3178
- const de_CreateCustomActionTypeOutput = (output, context) => {
3179
- return {
3180
- actionType: output.actionType != null ? de_ActionType(output.actionType, context) : undefined,
3181
- tags: output.tags != null ? de_TagList(output.tags, context) : undefined,
3182
- };
3183
- };
3184
- const de_CreatePipelineOutput = (output, context) => {
3185
- return {
3186
- pipeline: output.pipeline != null ? de_PipelineDeclaration(output.pipeline, context) : undefined,
3187
- tags: output.tags != null ? de_TagList(output.tags, context) : undefined,
3188
- };
3189
- };
3190
- const de_DeleteWebhookOutput = (output, context) => {
3191
- return {};
3192
- };
3193
- const de_DeregisterWebhookWithThirdPartyOutput = (output, context) => {
3194
- return {};
3195
- };
3196
- const de_DuplicatedStopRequestException = (output, context) => {
3197
- return {
3198
- message: __expectString(output.message),
3199
- };
3200
- };
3201
- const de_EncryptionKey = (output, context) => {
3202
- return {
3203
- id: __expectString(output.id),
3204
- type: __expectString(output.type),
3205
- };
3206
- };
3207
- const de_ErrorDetails = (output, context) => {
3208
- return {
3209
- code: __expectString(output.code),
3210
- message: __expectString(output.message),
3211
- };
3212
- };
3213
- const de_ExecutionTrigger = (output, context) => {
3214
- return {
3215
- triggerDetail: __expectString(output.triggerDetail),
3216
- triggerType: __expectString(output.triggerType),
3217
- };
3218
- };
3219
- const de_ExecutorConfiguration = (output, context) => {
3220
- return {
3221
- jobWorkerExecutorConfiguration: output.jobWorkerExecutorConfiguration != null
3222
- ? de_JobWorkerExecutorConfiguration(output.jobWorkerExecutorConfiguration, context)
3223
- : undefined,
3224
- lambdaExecutorConfiguration: output.lambdaExecutorConfiguration != null
3225
- ? de_LambdaExecutorConfiguration(output.lambdaExecutorConfiguration, context)
3226
- : undefined,
3227
- };
3228
- };
3229
- const de_GetActionTypeOutput = (output, context) => {
3230
- return {
3231
- actionType: output.actionType != null ? de_ActionTypeDeclaration(output.actionType, context) : undefined,
3232
- };
3233
- };
3234
- const de_GetJobDetailsOutput = (output, context) => {
3235
- return {
3236
- jobDetails: output.jobDetails != null ? de_JobDetails(output.jobDetails, context) : undefined,
3237
- };
3238
- };
3239
- const de_GetPipelineExecutionOutput = (output, context) => {
3240
- return {
3241
- pipelineExecution: output.pipelineExecution != null ? de_PipelineExecution(output.pipelineExecution, context) : undefined,
3242
- };
3243
- };
3244
- const de_GetPipelineOutput = (output, context) => {
3245
- return {
3246
- metadata: output.metadata != null ? de_PipelineMetadata(output.metadata, context) : undefined,
3247
- pipeline: output.pipeline != null ? de_PipelineDeclaration(output.pipeline, context) : undefined,
3248
- };
3249
- };
3250
- const de_GetPipelineStateOutput = (output, context) => {
3251
- return {
3252
- created: output.created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created))) : undefined,
3253
- pipelineName: __expectString(output.pipelineName),
3254
- pipelineVersion: __expectInt32(output.pipelineVersion),
3255
- stageStates: output.stageStates != null ? de_StageStateList(output.stageStates, context) : undefined,
3256
- updated: output.updated != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updated))) : undefined,
3257
- };
3258
- };
3259
- const de_GetThirdPartyJobDetailsOutput = (output, context) => {
3260
- return {
3261
- jobDetails: output.jobDetails != null ? de_ThirdPartyJobDetails(output.jobDetails, context) : undefined,
3262
- };
3263
- };
3264
- const de_InputArtifact = (output, context) => {
3265
- return {
3266
- name: __expectString(output.name),
3267
- };
3268
- };
3269
- const de_InputArtifactList = (output, context) => {
3270
- const retVal = (output || [])
3271
- .filter((e) => e != null)
3272
- .map((entry) => {
3273
- if (entry === null) {
3274
- return null;
3275
- }
3276
- return de_InputArtifact(entry, context);
3277
- });
3278
- return retVal;
3279
- };
3280
- const de_InvalidActionDeclarationException = (output, context) => {
3281
- return {
3282
- message: __expectString(output.message),
3283
- };
3284
- };
3285
- const de_InvalidApprovalTokenException = (output, context) => {
3286
- return {
3287
- message: __expectString(output.message),
3288
- };
3289
- };
3290
- const de_InvalidArnException = (output, context) => {
3291
- return {
3292
- message: __expectString(output.message),
3293
- };
3294
- };
3295
- const de_InvalidBlockerDeclarationException = (output, context) => {
3296
- return {
3297
- message: __expectString(output.message),
3298
- };
3299
- };
3300
- const de_InvalidClientTokenException = (output, context) => {
3301
- return {
3302
- message: __expectString(output.message),
3303
- };
3304
- };
3305
- const de_InvalidJobException = (output, context) => {
3306
- return {
3307
- message: __expectString(output.message),
3308
- };
3309
- };
3310
- const de_InvalidJobStateException = (output, context) => {
3311
- return {
3312
- message: __expectString(output.message),
3313
- };
3314
- };
3315
- const de_InvalidNextTokenException = (output, context) => {
3316
- return {
3317
- message: __expectString(output.message),
3318
- };
3319
- };
3320
- const de_InvalidNonceException = (output, context) => {
3321
- return {
3322
- message: __expectString(output.message),
3323
- };
3324
- };
3325
- const de_InvalidStageDeclarationException = (output, context) => {
3326
- return {
3327
- message: __expectString(output.message),
3328
- };
3329
- };
3330
- const de_InvalidStructureException = (output, context) => {
3331
- return {
3332
- message: __expectString(output.message),
3333
- };
3334
- };
3335
- const de_InvalidTagsException = (output, context) => {
3336
- return {
3337
- message: __expectString(output.message),
3338
- };
3339
- };
3340
- const de_InvalidWebhookAuthenticationParametersException = (output, context) => {
3341
- return {
3342
- message: __expectString(output.message),
3343
- };
3344
- };
3345
- const de_InvalidWebhookFilterPatternException = (output, context) => {
3346
- return {
3347
- message: __expectString(output.message),
3348
- };
3349
- };
3350
- const de_Job = (output, context) => {
3351
- return {
3352
- accountId: __expectString(output.accountId),
3353
- data: output.data != null ? de_JobData(output.data, context) : undefined,
3354
- id: __expectString(output.id),
3355
- nonce: __expectString(output.nonce),
3356
- };
3357
- };
3358
- const de_JobData = (output, context) => {
3359
- return {
3360
- actionConfiguration: output.actionConfiguration != null ? de_ActionConfiguration(output.actionConfiguration, context) : undefined,
3361
- actionTypeId: output.actionTypeId != null ? de_ActionTypeId(output.actionTypeId, context) : undefined,
3362
- artifactCredentials: output.artifactCredentials != null ? de_AWSSessionCredentials(output.artifactCredentials, context) : undefined,
3363
- continuationToken: __expectString(output.continuationToken),
3364
- encryptionKey: output.encryptionKey != null ? de_EncryptionKey(output.encryptionKey, context) : undefined,
3365
- inputArtifacts: output.inputArtifacts != null ? de_ArtifactList(output.inputArtifacts, context) : undefined,
3366
- outputArtifacts: output.outputArtifacts != null ? de_ArtifactList(output.outputArtifacts, context) : undefined,
3367
- pipelineContext: output.pipelineContext != null ? de_PipelineContext(output.pipelineContext, context) : undefined,
3368
- };
3369
- };
3370
- const de_JobDetails = (output, context) => {
3371
- return {
3372
- accountId: __expectString(output.accountId),
3373
- data: output.data != null ? de_JobData(output.data, context) : undefined,
3374
- id: __expectString(output.id),
3375
- };
3376
- };
3377
- const de_JobList = (output, context) => {
3378
- const retVal = (output || [])
3379
- .filter((e) => e != null)
3380
- .map((entry) => {
3381
- if (entry === null) {
3382
- return null;
3383
- }
3384
- return de_Job(entry, context);
3385
- });
3386
- return retVal;
3387
- };
3388
- const de_JobNotFoundException = (output, context) => {
3389
- return {
3390
- message: __expectString(output.message),
3391
- };
3392
- };
3393
- const de_JobWorkerExecutorConfiguration = (output, context) => {
3394
- return {
3395
- pollingAccounts: output.pollingAccounts != null ? de_PollingAccountList(output.pollingAccounts, context) : undefined,
3396
- pollingServicePrincipals: output.pollingServicePrincipals != null
3397
- ? de_PollingServicePrincipalList(output.pollingServicePrincipals, context)
3398
- : undefined,
3399
- };
3400
- };
3401
- const de_LambdaExecutorConfiguration = (output, context) => {
3402
- return {
3403
- lambdaFunctionArn: __expectString(output.lambdaFunctionArn),
3404
- };
3405
- };
3406
- const de_LimitExceededException = (output, context) => {
3407
- return {
3408
- message: __expectString(output.message),
3409
- };
3410
- };
3411
- const de_ListActionExecutionsOutput = (output, context) => {
3412
- return {
3413
- actionExecutionDetails: output.actionExecutionDetails != null
3414
- ? de_ActionExecutionDetailList(output.actionExecutionDetails, context)
3415
- : undefined,
3416
- nextToken: __expectString(output.nextToken),
3417
- };
3418
- };
3419
- const de_ListActionTypesOutput = (output, context) => {
3420
- return {
3421
- actionTypes: output.actionTypes != null ? de_ActionTypeList(output.actionTypes, context) : undefined,
3422
- nextToken: __expectString(output.nextToken),
3423
- };
3424
- };
3425
- const de_ListPipelineExecutionsOutput = (output, context) => {
3426
- return {
3427
- nextToken: __expectString(output.nextToken),
3428
- pipelineExecutionSummaries: output.pipelineExecutionSummaries != null
3429
- ? de_PipelineExecutionSummaryList(output.pipelineExecutionSummaries, context)
3430
- : undefined,
3431
- };
3432
- };
3433
- const de_ListPipelinesOutput = (output, context) => {
3434
- return {
3435
- nextToken: __expectString(output.nextToken),
3436
- pipelines: output.pipelines != null ? de_PipelineList(output.pipelines, context) : undefined,
3437
- };
3438
- };
3439
- const de_ListTagsForResourceOutput = (output, context) => {
3440
- return {
3441
- nextToken: __expectString(output.nextToken),
3442
- tags: output.tags != null ? de_TagList(output.tags, context) : undefined,
3443
- };
3444
- };
3445
- const de_ListWebhookItem = (output, context) => {
3446
- return {
3447
- arn: __expectString(output.arn),
3448
- definition: output.definition != null ? de_WebhookDefinition(output.definition, context) : undefined,
3449
- errorCode: __expectString(output.errorCode),
3450
- errorMessage: __expectString(output.errorMessage),
3451
- lastTriggered: output.lastTriggered != null
3452
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastTriggered)))
3453
- : undefined,
3454
- tags: output.tags != null ? de_TagList(output.tags, context) : undefined,
3455
- url: __expectString(output.url),
3456
- };
3457
- };
3458
- const de_ListWebhooksOutput = (output, context) => {
3459
- return {
3460
- NextToken: __expectString(output.NextToken),
3461
- webhooks: output.webhooks != null ? de_WebhookList(output.webhooks, context) : undefined,
3462
- };
3463
- };
3464
- const de_NotLatestPipelineExecutionException = (output, context) => {
3465
- return {
3466
- message: __expectString(output.message),
3467
- };
3468
- };
3469
- const de_OutputArtifact = (output, context) => {
3470
- return {
3471
- name: __expectString(output.name),
3472
- };
3473
- };
3474
- const de_OutputArtifactList = (output, context) => {
3475
- const retVal = (output || [])
3476
- .filter((e) => e != null)
3477
- .map((entry) => {
3478
- if (entry === null) {
3479
- return null;
3480
- }
3481
- return de_OutputArtifact(entry, context);
2094
+ const se_ActionRevision = (input, context) => {
2095
+ return take(input, {
2096
+ created: (_) => Math.round(_.getTime() / 1000),
2097
+ revisionChangeId: [],
2098
+ revisionId: [],
3482
2099
  });
3483
- return retVal;
3484
- };
3485
- const de_OutputVariablesMap = (output, context) => {
3486
- return Object.entries(output).reduce((acc, [key, value]) => {
3487
- if (value === null) {
3488
- return acc;
3489
- }
3490
- acc[key] = __expectString(value);
3491
- return acc;
3492
- }, {});
3493
2100
  };
3494
- const de_OutputVariablesSizeExceededException = (output, context) => {
3495
- return {
3496
- message: __expectString(output.message),
3497
- };
3498
- };
3499
- const de_PipelineContext = (output, context) => {
3500
- return {
3501
- action: output.action != null ? de_ActionContext(output.action, context) : undefined,
3502
- pipelineArn: __expectString(output.pipelineArn),
3503
- pipelineExecutionId: __expectString(output.pipelineExecutionId),
3504
- pipelineName: __expectString(output.pipelineName),
3505
- stage: output.stage != null ? de_StageContext(output.stage, context) : undefined,
3506
- };
2101
+ const se_CurrentRevision = (input, context) => {
2102
+ return take(input, {
2103
+ changeIdentifier: [],
2104
+ created: (_) => Math.round(_.getTime() / 1000),
2105
+ revision: [],
2106
+ revisionSummary: [],
2107
+ });
3507
2108
  };
3508
- const de_PipelineDeclaration = (output, context) => {
3509
- return {
3510
- artifactStore: output.artifactStore != null ? de_ArtifactStore(output.artifactStore, context) : undefined,
3511
- artifactStores: output.artifactStores != null ? de_ArtifactStoreMap(output.artifactStores, context) : undefined,
3512
- name: __expectString(output.name),
3513
- roleArn: __expectString(output.roleArn),
3514
- stages: output.stages != null ? de_PipelineStageDeclarationList(output.stages, context) : undefined,
3515
- version: __expectInt32(output.version),
3516
- };
2109
+ const se_PutActionRevisionInput = (input, context) => {
2110
+ return take(input, {
2111
+ actionName: [],
2112
+ actionRevision: (_) => se_ActionRevision(_, context),
2113
+ pipelineName: [],
2114
+ stageName: [],
2115
+ });
3517
2116
  };
3518
- const de_PipelineExecution = (output, context) => {
3519
- return {
3520
- artifactRevisions: output.artifactRevisions != null ? de_ArtifactRevisionList(output.artifactRevisions, context) : undefined,
3521
- pipelineExecutionId: __expectString(output.pipelineExecutionId),
3522
- pipelineName: __expectString(output.pipelineName),
3523
- pipelineVersion: __expectInt32(output.pipelineVersion),
3524
- status: __expectString(output.status),
3525
- statusSummary: __expectString(output.statusSummary),
3526
- };
2117
+ const se_PutJobSuccessResultInput = (input, context) => {
2118
+ return take(input, {
2119
+ continuationToken: [],
2120
+ currentRevision: (_) => se_CurrentRevision(_, context),
2121
+ executionDetails: _json,
2122
+ jobId: [],
2123
+ outputVariables: _json,
2124
+ });
3527
2125
  };
3528
- const de_PipelineExecutionNotFoundException = (output, context) => {
3529
- return {
3530
- message: __expectString(output.message),
3531
- };
2126
+ const se_PutThirdPartyJobSuccessResultInput = (input, context) => {
2127
+ return take(input, {
2128
+ clientToken: [],
2129
+ continuationToken: [],
2130
+ currentRevision: (_) => se_CurrentRevision(_, context),
2131
+ executionDetails: _json,
2132
+ jobId: [],
2133
+ });
3532
2134
  };
3533
- const de_PipelineExecutionNotStoppableException = (output, context) => {
3534
- return {
3535
- message: __expectString(output.message),
3536
- };
2135
+ const se_StartPipelineExecutionInput = (input, context) => {
2136
+ return take(input, {
2137
+ clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
2138
+ name: [],
2139
+ });
3537
2140
  };
3538
- const de_PipelineExecutionSummary = (output, context) => {
3539
- return {
3540
- lastUpdateTime: output.lastUpdateTime != null
3541
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateTime)))
3542
- : undefined,
3543
- pipelineExecutionId: __expectString(output.pipelineExecutionId),
3544
- sourceRevisions: output.sourceRevisions != null ? de_SourceRevisionList(output.sourceRevisions, context) : undefined,
3545
- startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
3546
- status: __expectString(output.status),
3547
- stopTrigger: output.stopTrigger != null ? de_StopExecutionTrigger(output.stopTrigger, context) : undefined,
3548
- trigger: output.trigger != null ? de_ExecutionTrigger(output.trigger, context) : undefined,
3549
- };
2141
+ const de_ActionExecution = (output, context) => {
2142
+ return take(output, {
2143
+ actionExecutionId: __expectString,
2144
+ errorDetails: _json,
2145
+ externalExecutionId: __expectString,
2146
+ externalExecutionUrl: __expectString,
2147
+ lastStatusChange: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2148
+ lastUpdatedBy: __expectString,
2149
+ percentComplete: __expectInt32,
2150
+ status: __expectString,
2151
+ summary: __expectString,
2152
+ token: __expectString,
2153
+ });
3550
2154
  };
3551
- const de_PipelineExecutionSummaryList = (output, context) => {
3552
- const retVal = (output || [])
3553
- .filter((e) => e != null)
3554
- .map((entry) => {
3555
- if (entry === null) {
3556
- return null;
3557
- }
3558
- return de_PipelineExecutionSummary(entry, context);
2155
+ const de_ActionExecutionDetail = (output, context) => {
2156
+ return take(output, {
2157
+ actionExecutionId: __expectString,
2158
+ actionName: __expectString,
2159
+ input: _json,
2160
+ lastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2161
+ output: _json,
2162
+ pipelineExecutionId: __expectString,
2163
+ pipelineVersion: __expectInt32,
2164
+ stageName: __expectString,
2165
+ startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2166
+ status: __expectString,
3559
2167
  });
3560
- return retVal;
3561
2168
  };
3562
- const de_PipelineList = (output, context) => {
2169
+ const de_ActionExecutionDetailList = (output, context) => {
3563
2170
  const retVal = (output || [])
3564
2171
  .filter((e) => e != null)
3565
2172
  .map((entry) => {
3566
- if (entry === null) {
3567
- return null;
3568
- }
3569
- return de_PipelineSummary(entry, context);
2173
+ return de_ActionExecutionDetail(entry, context);
3570
2174
  });
3571
2175
  return retVal;
3572
2176
  };
3573
- const de_PipelineMetadata = (output, context) => {
3574
- return {
3575
- created: output.created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created))) : undefined,
3576
- pipelineArn: __expectString(output.pipelineArn),
3577
- updated: output.updated != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updated))) : undefined,
3578
- };
3579
- };
3580
- const de_PipelineNameInUseException = (output, context) => {
3581
- return {
3582
- message: __expectString(output.message),
3583
- };
2177
+ const de_ActionRevision = (output, context) => {
2178
+ return take(output, {
2179
+ created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2180
+ revisionChangeId: __expectString,
2181
+ revisionId: __expectString,
2182
+ });
3584
2183
  };
3585
- const de_PipelineNotFoundException = (output, context) => {
3586
- return {
3587
- message: __expectString(output.message),
3588
- };
2184
+ const de_ActionState = (output, context) => {
2185
+ return take(output, {
2186
+ actionName: __expectString,
2187
+ currentRevision: (_) => de_ActionRevision(_, context),
2188
+ entityUrl: __expectString,
2189
+ latestExecution: (_) => de_ActionExecution(_, context),
2190
+ revisionUrl: __expectString,
2191
+ });
3589
2192
  };
3590
- const de_PipelineStageDeclarationList = (output, context) => {
2193
+ const de_ActionStateList = (output, context) => {
3591
2194
  const retVal = (output || [])
3592
2195
  .filter((e) => e != null)
3593
2196
  .map((entry) => {
3594
- if (entry === null) {
3595
- return null;
3596
- }
3597
- return de_StageDeclaration(entry, context);
2197
+ return de_ActionState(entry, context);
3598
2198
  });
3599
2199
  return retVal;
3600
2200
  };
3601
- const de_PipelineSummary = (output, context) => {
3602
- return {
3603
- created: output.created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created))) : undefined,
3604
- name: __expectString(output.name),
3605
- updated: output.updated != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updated))) : undefined,
3606
- version: __expectInt32(output.version),
3607
- };
3608
- };
3609
- const de_PipelineVersionNotFoundException = (output, context) => {
3610
- return {
3611
- message: __expectString(output.message),
3612
- };
3613
- };
3614
- const de_PollForJobsOutput = (output, context) => {
3615
- return {
3616
- jobs: output.jobs != null ? de_JobList(output.jobs, context) : undefined,
3617
- };
3618
- };
3619
- const de_PollForThirdPartyJobsOutput = (output, context) => {
3620
- return {
3621
- jobs: output.jobs != null ? de_ThirdPartyJobList(output.jobs, context) : undefined,
3622
- };
3623
- };
3624
- const de_PollingAccountList = (output, context) => {
3625
- const retVal = (output || [])
3626
- .filter((e) => e != null)
3627
- .map((entry) => {
3628
- if (entry === null) {
3629
- return null;
3630
- }
3631
- return __expectString(entry);
2201
+ const de_ArtifactRevision = (output, context) => {
2202
+ return take(output, {
2203
+ created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2204
+ name: __expectString,
2205
+ revisionChangeIdentifier: __expectString,
2206
+ revisionId: __expectString,
2207
+ revisionSummary: __expectString,
2208
+ revisionUrl: __expectString,
3632
2209
  });
3633
- return retVal;
3634
2210
  };
3635
- const de_PollingServicePrincipalList = (output, context) => {
2211
+ const de_ArtifactRevisionList = (output, context) => {
3636
2212
  const retVal = (output || [])
3637
2213
  .filter((e) => e != null)
3638
2214
  .map((entry) => {
3639
- if (entry === null) {
3640
- return null;
3641
- }
3642
- return __expectString(entry);
2215
+ return de_ArtifactRevision(entry, context);
3643
2216
  });
3644
2217
  return retVal;
3645
2218
  };
3646
- const de_PutActionRevisionOutput = (output, context) => {
3647
- return {
3648
- newRevision: __expectBoolean(output.newRevision),
3649
- pipelineExecutionId: __expectString(output.pipelineExecutionId),
3650
- };
3651
- };
3652
- const de_PutApprovalResultOutput = (output, context) => {
3653
- return {
3654
- approvedAt: output.approvedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.approvedAt))) : undefined,
3655
- };
3656
- };
3657
- const de_PutWebhookOutput = (output, context) => {
3658
- return {
3659
- webhook: output.webhook != null ? de_ListWebhookItem(output.webhook, context) : undefined,
3660
- };
2219
+ const de_GetPipelineExecutionOutput = (output, context) => {
2220
+ return take(output, {
2221
+ pipelineExecution: (_) => de_PipelineExecution(_, context),
2222
+ });
3661
2223
  };
3662
- const de_RegisterWebhookWithThirdPartyOutput = (output, context) => {
3663
- return {};
2224
+ const de_GetPipelineOutput = (output, context) => {
2225
+ return take(output, {
2226
+ metadata: (_) => de_PipelineMetadata(_, context),
2227
+ pipeline: _json,
2228
+ });
3664
2229
  };
3665
- const de_RequestFailedException = (output, context) => {
3666
- return {
3667
- message: __expectString(output.message),
3668
- };
2230
+ const de_GetPipelineStateOutput = (output, context) => {
2231
+ return take(output, {
2232
+ created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2233
+ pipelineName: __expectString,
2234
+ pipelineVersion: __expectInt32,
2235
+ stageStates: (_) => de_StageStateList(_, context),
2236
+ updated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2237
+ });
3669
2238
  };
3670
- const de_ResolvedActionConfigurationMap = (output, context) => {
3671
- return Object.entries(output).reduce((acc, [key, value]) => {
3672
- if (value === null) {
3673
- return acc;
3674
- }
3675
- acc[key] = __expectString(value);
3676
- return acc;
3677
- }, {});
2239
+ const de_ListActionExecutionsOutput = (output, context) => {
2240
+ return take(output, {
2241
+ actionExecutionDetails: (_) => de_ActionExecutionDetailList(_, context),
2242
+ nextToken: __expectString,
2243
+ });
3678
2244
  };
3679
- const de_ResourceNotFoundException = (output, context) => {
3680
- return {
3681
- message: __expectString(output.message),
3682
- };
2245
+ const de_ListPipelineExecutionsOutput = (output, context) => {
2246
+ return take(output, {
2247
+ nextToken: __expectString,
2248
+ pipelineExecutionSummaries: (_) => de_PipelineExecutionSummaryList(_, context),
2249
+ });
3683
2250
  };
3684
- const de_RetryStageExecutionOutput = (output, context) => {
3685
- return {
3686
- pipelineExecutionId: __expectString(output.pipelineExecutionId),
3687
- };
2251
+ const de_ListPipelinesOutput = (output, context) => {
2252
+ return take(output, {
2253
+ nextToken: __expectString,
2254
+ pipelines: (_) => de_PipelineList(_, context),
2255
+ });
3688
2256
  };
3689
- const de_S3ArtifactLocation = (output, context) => {
3690
- return {
3691
- bucketName: __expectString(output.bucketName),
3692
- objectKey: __expectString(output.objectKey),
3693
- };
2257
+ const de_ListWebhookItem = (output, context) => {
2258
+ return take(output, {
2259
+ arn: __expectString,
2260
+ definition: _json,
2261
+ errorCode: __expectString,
2262
+ errorMessage: __expectString,
2263
+ lastTriggered: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2264
+ tags: _json,
2265
+ url: __expectString,
2266
+ });
3694
2267
  };
3695
- const de_S3Location = (output, context) => {
3696
- return {
3697
- bucket: __expectString(output.bucket),
3698
- key: __expectString(output.key),
3699
- };
2268
+ const de_ListWebhooksOutput = (output, context) => {
2269
+ return take(output, {
2270
+ NextToken: __expectString,
2271
+ webhooks: (_) => de_WebhookList(_, context),
2272
+ });
3700
2273
  };
3701
- const de_SourceRevision = (output, context) => {
3702
- return {
3703
- actionName: __expectString(output.actionName),
3704
- revisionId: __expectString(output.revisionId),
3705
- revisionSummary: __expectString(output.revisionSummary),
3706
- revisionUrl: __expectString(output.revisionUrl),
3707
- };
2274
+ const de_PipelineExecution = (output, context) => {
2275
+ return take(output, {
2276
+ artifactRevisions: (_) => de_ArtifactRevisionList(_, context),
2277
+ pipelineExecutionId: __expectString,
2278
+ pipelineName: __expectString,
2279
+ pipelineVersion: __expectInt32,
2280
+ status: __expectString,
2281
+ statusSummary: __expectString,
2282
+ });
3708
2283
  };
3709
- const de_SourceRevisionList = (output, context) => {
3710
- const retVal = (output || [])
3711
- .filter((e) => e != null)
3712
- .map((entry) => {
3713
- if (entry === null) {
3714
- return null;
3715
- }
3716
- return de_SourceRevision(entry, context);
2284
+ const de_PipelineExecutionSummary = (output, context) => {
2285
+ return take(output, {
2286
+ lastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2287
+ pipelineExecutionId: __expectString,
2288
+ sourceRevisions: _json,
2289
+ startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2290
+ status: __expectString,
2291
+ stopTrigger: _json,
2292
+ trigger: _json,
3717
2293
  });
3718
- return retVal;
3719
2294
  };
3720
- const de_StageActionDeclarationList = (output, context) => {
2295
+ const de_PipelineExecutionSummaryList = (output, context) => {
3721
2296
  const retVal = (output || [])
3722
2297
  .filter((e) => e != null)
3723
2298
  .map((entry) => {
3724
- if (entry === null) {
3725
- return null;
3726
- }
3727
- return de_ActionDeclaration(entry, context);
2299
+ return de_PipelineExecutionSummary(entry, context);
3728
2300
  });
3729
2301
  return retVal;
3730
2302
  };
3731
- const de_StageBlockerDeclarationList = (output, context) => {
2303
+ const de_PipelineList = (output, context) => {
3732
2304
  const retVal = (output || [])
3733
2305
  .filter((e) => e != null)
3734
2306
  .map((entry) => {
3735
- if (entry === null) {
3736
- return null;
3737
- }
3738
- return de_BlockerDeclaration(entry, context);
2307
+ return de_PipelineSummary(entry, context);
3739
2308
  });
3740
2309
  return retVal;
3741
2310
  };
3742
- const de_StageContext = (output, context) => {
3743
- return {
3744
- name: __expectString(output.name),
3745
- };
3746
- };
3747
- const de_StageDeclaration = (output, context) => {
3748
- return {
3749
- actions: output.actions != null ? de_StageActionDeclarationList(output.actions, context) : undefined,
3750
- blockers: output.blockers != null ? de_StageBlockerDeclarationList(output.blockers, context) : undefined,
3751
- name: __expectString(output.name),
3752
- };
2311
+ const de_PipelineMetadata = (output, context) => {
2312
+ return take(output, {
2313
+ created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2314
+ pipelineArn: __expectString,
2315
+ updated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2316
+ });
3753
2317
  };
3754
- const de_StageExecution = (output, context) => {
3755
- return {
3756
- pipelineExecutionId: __expectString(output.pipelineExecutionId),
3757
- status: __expectString(output.status),
3758
- };
2318
+ const de_PipelineSummary = (output, context) => {
2319
+ return take(output, {
2320
+ created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2321
+ name: __expectString,
2322
+ updated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2323
+ version: __expectInt32,
2324
+ });
3759
2325
  };
3760
- const de_StageNotFoundException = (output, context) => {
3761
- return {
3762
- message: __expectString(output.message),
3763
- };
2326
+ const de_PutApprovalResultOutput = (output, context) => {
2327
+ return take(output, {
2328
+ approvedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2329
+ });
3764
2330
  };
3765
- const de_StageNotRetryableException = (output, context) => {
3766
- return {
3767
- message: __expectString(output.message),
3768
- };
2331
+ const de_PutWebhookOutput = (output, context) => {
2332
+ return take(output, {
2333
+ webhook: (_) => de_ListWebhookItem(_, context),
2334
+ });
3769
2335
  };
3770
2336
  const de_StageState = (output, context) => {
3771
- return {
3772
- actionStates: output.actionStates != null ? de_ActionStateList(output.actionStates, context) : undefined,
3773
- inboundExecution: output.inboundExecution != null ? de_StageExecution(output.inboundExecution, context) : undefined,
3774
- inboundTransitionState: output.inboundTransitionState != null ? de_TransitionState(output.inboundTransitionState, context) : undefined,
3775
- latestExecution: output.latestExecution != null ? de_StageExecution(output.latestExecution, context) : undefined,
3776
- stageName: __expectString(output.stageName),
3777
- };
2337
+ return take(output, {
2338
+ actionStates: (_) => de_ActionStateList(_, context),
2339
+ inboundExecution: _json,
2340
+ inboundTransitionState: (_) => de_TransitionState(_, context),
2341
+ latestExecution: _json,
2342
+ stageName: __expectString,
2343
+ });
3778
2344
  };
3779
2345
  const de_StageStateList = (output, context) => {
3780
2346
  const retVal = (output || [])
3781
2347
  .filter((e) => e != null)
3782
2348
  .map((entry) => {
3783
- if (entry === null) {
3784
- return null;
3785
- }
3786
2349
  return de_StageState(entry, context);
3787
2350
  });
3788
2351
  return retVal;
3789
2352
  };
3790
- const de_StartPipelineExecutionOutput = (output, context) => {
3791
- return {
3792
- pipelineExecutionId: __expectString(output.pipelineExecutionId),
3793
- };
3794
- };
3795
- const de_StopExecutionTrigger = (output, context) => {
3796
- return {
3797
- reason: __expectString(output.reason),
3798
- };
3799
- };
3800
- const de_StopPipelineExecutionOutput = (output, context) => {
3801
- return {
3802
- pipelineExecutionId: __expectString(output.pipelineExecutionId),
3803
- };
3804
- };
3805
- const de_Tag = (output, context) => {
3806
- return {
3807
- key: __expectString(output.key),
3808
- value: __expectString(output.value),
3809
- };
3810
- };
3811
- const de_TagList = (output, context) => {
3812
- const retVal = (output || [])
3813
- .filter((e) => e != null)
3814
- .map((entry) => {
3815
- if (entry === null) {
3816
- return null;
3817
- }
3818
- return de_Tag(entry, context);
3819
- });
3820
- return retVal;
3821
- };
3822
- const de_TagResourceOutput = (output, context) => {
3823
- return {};
3824
- };
3825
- const de_ThirdPartyJob = (output, context) => {
3826
- return {
3827
- clientId: __expectString(output.clientId),
3828
- jobId: __expectString(output.jobId),
3829
- };
3830
- };
3831
- const de_ThirdPartyJobData = (output, context) => {
3832
- return {
3833
- actionConfiguration: output.actionConfiguration != null ? de_ActionConfiguration(output.actionConfiguration, context) : undefined,
3834
- actionTypeId: output.actionTypeId != null ? de_ActionTypeId(output.actionTypeId, context) : undefined,
3835
- artifactCredentials: output.artifactCredentials != null ? de_AWSSessionCredentials(output.artifactCredentials, context) : undefined,
3836
- continuationToken: __expectString(output.continuationToken),
3837
- encryptionKey: output.encryptionKey != null ? de_EncryptionKey(output.encryptionKey, context) : undefined,
3838
- inputArtifacts: output.inputArtifacts != null ? de_ArtifactList(output.inputArtifacts, context) : undefined,
3839
- outputArtifacts: output.outputArtifacts != null ? de_ArtifactList(output.outputArtifacts, context) : undefined,
3840
- pipelineContext: output.pipelineContext != null ? de_PipelineContext(output.pipelineContext, context) : undefined,
3841
- };
3842
- };
3843
- const de_ThirdPartyJobDetails = (output, context) => {
3844
- return {
3845
- data: output.data != null ? de_ThirdPartyJobData(output.data, context) : undefined,
3846
- id: __expectString(output.id),
3847
- nonce: __expectString(output.nonce),
3848
- };
3849
- };
3850
- const de_ThirdPartyJobList = (output, context) => {
3851
- const retVal = (output || [])
3852
- .filter((e) => e != null)
3853
- .map((entry) => {
3854
- if (entry === null) {
3855
- return null;
3856
- }
3857
- return de_ThirdPartyJob(entry, context);
3858
- });
3859
- return retVal;
3860
- };
3861
- const de_TooManyTagsException = (output, context) => {
3862
- return {
3863
- message: __expectString(output.message),
3864
- };
3865
- };
3866
2353
  const de_TransitionState = (output, context) => {
3867
- return {
3868
- disabledReason: __expectString(output.disabledReason),
3869
- enabled: __expectBoolean(output.enabled),
3870
- lastChangedAt: output.lastChangedAt != null
3871
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastChangedAt)))
3872
- : undefined,
3873
- lastChangedBy: __expectString(output.lastChangedBy),
3874
- };
3875
- };
3876
- const de_UntagResourceOutput = (output, context) => {
3877
- return {};
3878
- };
3879
- const de_UpdatePipelineOutput = (output, context) => {
3880
- return {
3881
- pipeline: output.pipeline != null ? de_PipelineDeclaration(output.pipeline, context) : undefined,
3882
- };
3883
- };
3884
- const de_ValidationException = (output, context) => {
3885
- return {
3886
- message: __expectString(output.message),
3887
- };
3888
- };
3889
- const de_WebhookAuthConfiguration = (output, context) => {
3890
- return {
3891
- AllowedIPRange: __expectString(output.AllowedIPRange),
3892
- SecretToken: __expectString(output.SecretToken),
3893
- };
3894
- };
3895
- const de_WebhookDefinition = (output, context) => {
3896
- return {
3897
- authentication: __expectString(output.authentication),
3898
- authenticationConfiguration: output.authenticationConfiguration != null
3899
- ? de_WebhookAuthConfiguration(output.authenticationConfiguration, context)
3900
- : undefined,
3901
- filters: output.filters != null ? de_WebhookFilters(output.filters, context) : undefined,
3902
- name: __expectString(output.name),
3903
- targetAction: __expectString(output.targetAction),
3904
- targetPipeline: __expectString(output.targetPipeline),
3905
- };
3906
- };
3907
- const de_WebhookFilterRule = (output, context) => {
3908
- return {
3909
- jsonPath: __expectString(output.jsonPath),
3910
- matchEquals: __expectString(output.matchEquals),
3911
- };
3912
- };
3913
- const de_WebhookFilters = (output, context) => {
3914
- const retVal = (output || [])
3915
- .filter((e) => e != null)
3916
- .map((entry) => {
3917
- if (entry === null) {
3918
- return null;
3919
- }
3920
- return de_WebhookFilterRule(entry, context);
2354
+ return take(output, {
2355
+ disabledReason: __expectString,
2356
+ enabled: __expectBoolean,
2357
+ lastChangedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2358
+ lastChangedBy: __expectString,
3921
2359
  });
3922
- return retVal;
3923
2360
  };
3924
2361
  const de_WebhookList = (output, context) => {
3925
2362
  const retVal = (output || [])
3926
2363
  .filter((e) => e != null)
3927
2364
  .map((entry) => {
3928
- if (entry === null) {
3929
- return null;
3930
- }
3931
2365
  return de_ListWebhookItem(entry, context);
3932
2366
  });
3933
2367
  return retVal;
3934
2368
  };
3935
- const de_WebhookNotFoundException = (output, context) => {
3936
- return {};
3937
- };
3938
2369
  const deserializeMetadata = (output) => ({
3939
2370
  httpStatusCode: output.statusCode,
3940
2371
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -3948,6 +2379,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
3948
2379
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
3949
2380
  };
3950
2381
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2382
+ const throwDefaultError = withBaseException(__BaseException);
3951
2383
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
3952
2384
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3953
2385
  const contents = {