@aws-sdk/client-codepipeline 3.1068.0 → 3.1069.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,12 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CodePipelineServiceException = exports.__ServiceException = void 0;
4
- const client_1 = require("@smithy/core/client");
5
- Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
6
- class CodePipelineServiceException extends client_1.ServiceException {
1
+ const { ServiceException: __ServiceException } = require("@smithy/core/client");
2
+ exports.__ServiceException = __ServiceException;
3
+ exports.CodePipelineServiceException = class CodePipelineServiceException extends __ServiceException {
7
4
  constructor(options) {
8
5
  super(options);
9
6
  Object.setPrototypeOf(this, CodePipelineServiceException.prototype);
10
7
  }
11
- }
12
- exports.CodePipelineServiceException = CodePipelineServiceException;
8
+ };
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RequestFailedException = exports.PipelineExecutionNotStoppableException = exports.DuplicatedStopRequestException = exports.UnableToRollbackStageException = exports.PipelineExecutionOutdatedException = exports.StageNotRetryableException = exports.InvalidWebhookFilterPatternException = exports.InvalidWebhookAuthenticationParametersException = exports.OutputVariablesSizeExceededException = exports.InvalidJobStateException = exports.InvalidApprovalTokenException = exports.NotLatestPipelineExecutionException = exports.ConflictException = exports.ConditionNotOverridableException = exports.ConcurrentPipelineExecutionsLimitExceededException = exports.ResourceNotFoundException = exports.InvalidArnException = exports.InvalidNextTokenException = exports.InvalidJobException = exports.PipelineExecutionNotFoundException = exports.PipelineVersionNotFoundException = exports.StageNotFoundException = exports.PipelineNotFoundException = exports.WebhookNotFoundException = exports.PipelineNameInUseException = exports.InvalidStructureException = exports.InvalidStageDeclarationException = exports.InvalidBlockerDeclarationException = exports.InvalidActionDeclarationException = exports.TooManyTagsException = exports.LimitExceededException = exports.InvalidTagsException = exports.ConcurrentModificationException = exports.ApprovalAlreadyCompletedException = exports.ActionTypeNotFoundException = exports.ActionNotFoundException = exports.ActionExecutionNotFoundException = exports.InvalidClientTokenException = exports.ValidationException = exports.JobNotFoundException = exports.InvalidNonceException = void 0;
4
- const CodePipelineServiceException_1 = require("./CodePipelineServiceException");
5
- class InvalidNonceException extends CodePipelineServiceException_1.CodePipelineServiceException {
1
+ const { CodePipelineServiceException: __BaseException } = require("./CodePipelineServiceException");
2
+ exports.InvalidNonceException = class InvalidNonceException extends __BaseException {
6
3
  name = "InvalidNonceException";
7
4
  $fault = "client";
8
5
  constructor(opts) {
@@ -13,9 +10,8 @@ class InvalidNonceException extends CodePipelineServiceException_1.CodePipelineS
13
10
  });
14
11
  Object.setPrototypeOf(this, InvalidNonceException.prototype);
15
12
  }
16
- }
17
- exports.InvalidNonceException = InvalidNonceException;
18
- class JobNotFoundException extends CodePipelineServiceException_1.CodePipelineServiceException {
13
+ };
14
+ exports.JobNotFoundException = class JobNotFoundException extends __BaseException {
19
15
  name = "JobNotFoundException";
20
16
  $fault = "client";
21
17
  constructor(opts) {
@@ -26,9 +22,8 @@ class JobNotFoundException extends CodePipelineServiceException_1.CodePipelineSe
26
22
  });
27
23
  Object.setPrototypeOf(this, JobNotFoundException.prototype);
28
24
  }
29
- }
30
- exports.JobNotFoundException = JobNotFoundException;
31
- class ValidationException extends CodePipelineServiceException_1.CodePipelineServiceException {
25
+ };
26
+ exports.ValidationException = class ValidationException extends __BaseException {
32
27
  name = "ValidationException";
33
28
  $fault = "client";
34
29
  constructor(opts) {
@@ -39,9 +34,8 @@ class ValidationException extends CodePipelineServiceException_1.CodePipelineSer
39
34
  });
40
35
  Object.setPrototypeOf(this, ValidationException.prototype);
41
36
  }
42
- }
43
- exports.ValidationException = ValidationException;
44
- class InvalidClientTokenException extends CodePipelineServiceException_1.CodePipelineServiceException {
37
+ };
38
+ exports.InvalidClientTokenException = class InvalidClientTokenException extends __BaseException {
45
39
  name = "InvalidClientTokenException";
46
40
  $fault = "client";
47
41
  constructor(opts) {
@@ -52,9 +46,8 @@ class InvalidClientTokenException extends CodePipelineServiceException_1.CodePip
52
46
  });
53
47
  Object.setPrototypeOf(this, InvalidClientTokenException.prototype);
54
48
  }
55
- }
56
- exports.InvalidClientTokenException = InvalidClientTokenException;
57
- class ActionExecutionNotFoundException extends CodePipelineServiceException_1.CodePipelineServiceException {
49
+ };
50
+ exports.ActionExecutionNotFoundException = class ActionExecutionNotFoundException extends __BaseException {
58
51
  name = "ActionExecutionNotFoundException";
59
52
  $fault = "client";
60
53
  constructor(opts) {
@@ -65,9 +58,8 @@ class ActionExecutionNotFoundException extends CodePipelineServiceException_1.Co
65
58
  });
66
59
  Object.setPrototypeOf(this, ActionExecutionNotFoundException.prototype);
67
60
  }
68
- }
69
- exports.ActionExecutionNotFoundException = ActionExecutionNotFoundException;
70
- class ActionNotFoundException extends CodePipelineServiceException_1.CodePipelineServiceException {
61
+ };
62
+ exports.ActionNotFoundException = class ActionNotFoundException extends __BaseException {
71
63
  name = "ActionNotFoundException";
72
64
  $fault = "client";
73
65
  constructor(opts) {
@@ -78,9 +70,8 @@ class ActionNotFoundException extends CodePipelineServiceException_1.CodePipelin
78
70
  });
79
71
  Object.setPrototypeOf(this, ActionNotFoundException.prototype);
80
72
  }
81
- }
82
- exports.ActionNotFoundException = ActionNotFoundException;
83
- class ActionTypeNotFoundException extends CodePipelineServiceException_1.CodePipelineServiceException {
73
+ };
74
+ exports.ActionTypeNotFoundException = class ActionTypeNotFoundException extends __BaseException {
84
75
  name = "ActionTypeNotFoundException";
85
76
  $fault = "client";
86
77
  constructor(opts) {
@@ -91,9 +82,8 @@ class ActionTypeNotFoundException extends CodePipelineServiceException_1.CodePip
91
82
  });
92
83
  Object.setPrototypeOf(this, ActionTypeNotFoundException.prototype);
93
84
  }
94
- }
95
- exports.ActionTypeNotFoundException = ActionTypeNotFoundException;
96
- class ApprovalAlreadyCompletedException extends CodePipelineServiceException_1.CodePipelineServiceException {
85
+ };
86
+ exports.ApprovalAlreadyCompletedException = class ApprovalAlreadyCompletedException extends __BaseException {
97
87
  name = "ApprovalAlreadyCompletedException";
98
88
  $fault = "client";
99
89
  constructor(opts) {
@@ -104,9 +94,8 @@ class ApprovalAlreadyCompletedException extends CodePipelineServiceException_1.C
104
94
  });
105
95
  Object.setPrototypeOf(this, ApprovalAlreadyCompletedException.prototype);
106
96
  }
107
- }
108
- exports.ApprovalAlreadyCompletedException = ApprovalAlreadyCompletedException;
109
- class ConcurrentModificationException extends CodePipelineServiceException_1.CodePipelineServiceException {
97
+ };
98
+ exports.ConcurrentModificationException = class ConcurrentModificationException extends __BaseException {
110
99
  name = "ConcurrentModificationException";
111
100
  $fault = "client";
112
101
  constructor(opts) {
@@ -117,9 +106,8 @@ class ConcurrentModificationException extends CodePipelineServiceException_1.Cod
117
106
  });
118
107
  Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
119
108
  }
120
- }
121
- exports.ConcurrentModificationException = ConcurrentModificationException;
122
- class InvalidTagsException extends CodePipelineServiceException_1.CodePipelineServiceException {
109
+ };
110
+ exports.InvalidTagsException = class InvalidTagsException extends __BaseException {
123
111
  name = "InvalidTagsException";
124
112
  $fault = "client";
125
113
  constructor(opts) {
@@ -130,9 +118,8 @@ class InvalidTagsException extends CodePipelineServiceException_1.CodePipelineSe
130
118
  });
131
119
  Object.setPrototypeOf(this, InvalidTagsException.prototype);
132
120
  }
133
- }
134
- exports.InvalidTagsException = InvalidTagsException;
135
- class LimitExceededException extends CodePipelineServiceException_1.CodePipelineServiceException {
121
+ };
122
+ exports.LimitExceededException = class LimitExceededException extends __BaseException {
136
123
  name = "LimitExceededException";
137
124
  $fault = "client";
138
125
  constructor(opts) {
@@ -143,9 +130,8 @@ class LimitExceededException extends CodePipelineServiceException_1.CodePipeline
143
130
  });
144
131
  Object.setPrototypeOf(this, LimitExceededException.prototype);
145
132
  }
146
- }
147
- exports.LimitExceededException = LimitExceededException;
148
- class TooManyTagsException extends CodePipelineServiceException_1.CodePipelineServiceException {
133
+ };
134
+ exports.TooManyTagsException = class TooManyTagsException extends __BaseException {
149
135
  name = "TooManyTagsException";
150
136
  $fault = "client";
151
137
  constructor(opts) {
@@ -156,9 +142,8 @@ class TooManyTagsException extends CodePipelineServiceException_1.CodePipelineSe
156
142
  });
157
143
  Object.setPrototypeOf(this, TooManyTagsException.prototype);
158
144
  }
159
- }
160
- exports.TooManyTagsException = TooManyTagsException;
161
- class InvalidActionDeclarationException extends CodePipelineServiceException_1.CodePipelineServiceException {
145
+ };
146
+ exports.InvalidActionDeclarationException = class InvalidActionDeclarationException extends __BaseException {
162
147
  name = "InvalidActionDeclarationException";
163
148
  $fault = "client";
164
149
  constructor(opts) {
@@ -169,9 +154,8 @@ class InvalidActionDeclarationException extends CodePipelineServiceException_1.C
169
154
  });
170
155
  Object.setPrototypeOf(this, InvalidActionDeclarationException.prototype);
171
156
  }
172
- }
173
- exports.InvalidActionDeclarationException = InvalidActionDeclarationException;
174
- class InvalidBlockerDeclarationException extends CodePipelineServiceException_1.CodePipelineServiceException {
157
+ };
158
+ exports.InvalidBlockerDeclarationException = class InvalidBlockerDeclarationException extends __BaseException {
175
159
  name = "InvalidBlockerDeclarationException";
176
160
  $fault = "client";
177
161
  constructor(opts) {
@@ -182,9 +166,8 @@ class InvalidBlockerDeclarationException extends CodePipelineServiceException_1.
182
166
  });
183
167
  Object.setPrototypeOf(this, InvalidBlockerDeclarationException.prototype);
184
168
  }
185
- }
186
- exports.InvalidBlockerDeclarationException = InvalidBlockerDeclarationException;
187
- class InvalidStageDeclarationException extends CodePipelineServiceException_1.CodePipelineServiceException {
169
+ };
170
+ exports.InvalidStageDeclarationException = class InvalidStageDeclarationException extends __BaseException {
188
171
  name = "InvalidStageDeclarationException";
189
172
  $fault = "client";
190
173
  constructor(opts) {
@@ -195,9 +178,8 @@ class InvalidStageDeclarationException extends CodePipelineServiceException_1.Co
195
178
  });
196
179
  Object.setPrototypeOf(this, InvalidStageDeclarationException.prototype);
197
180
  }
198
- }
199
- exports.InvalidStageDeclarationException = InvalidStageDeclarationException;
200
- class InvalidStructureException extends CodePipelineServiceException_1.CodePipelineServiceException {
181
+ };
182
+ exports.InvalidStructureException = class InvalidStructureException extends __BaseException {
201
183
  name = "InvalidStructureException";
202
184
  $fault = "client";
203
185
  constructor(opts) {
@@ -208,9 +190,8 @@ class InvalidStructureException extends CodePipelineServiceException_1.CodePipel
208
190
  });
209
191
  Object.setPrototypeOf(this, InvalidStructureException.prototype);
210
192
  }
211
- }
212
- exports.InvalidStructureException = InvalidStructureException;
213
- class PipelineNameInUseException extends CodePipelineServiceException_1.CodePipelineServiceException {
193
+ };
194
+ exports.PipelineNameInUseException = class PipelineNameInUseException extends __BaseException {
214
195
  name = "PipelineNameInUseException";
215
196
  $fault = "client";
216
197
  constructor(opts) {
@@ -221,9 +202,8 @@ class PipelineNameInUseException extends CodePipelineServiceException_1.CodePipe
221
202
  });
222
203
  Object.setPrototypeOf(this, PipelineNameInUseException.prototype);
223
204
  }
224
- }
225
- exports.PipelineNameInUseException = PipelineNameInUseException;
226
- class WebhookNotFoundException extends CodePipelineServiceException_1.CodePipelineServiceException {
205
+ };
206
+ exports.WebhookNotFoundException = class WebhookNotFoundException extends __BaseException {
227
207
  name = "WebhookNotFoundException";
228
208
  $fault = "client";
229
209
  constructor(opts) {
@@ -234,9 +214,8 @@ class WebhookNotFoundException extends CodePipelineServiceException_1.CodePipeli
234
214
  });
235
215
  Object.setPrototypeOf(this, WebhookNotFoundException.prototype);
236
216
  }
237
- }
238
- exports.WebhookNotFoundException = WebhookNotFoundException;
239
- class PipelineNotFoundException extends CodePipelineServiceException_1.CodePipelineServiceException {
217
+ };
218
+ exports.PipelineNotFoundException = class PipelineNotFoundException extends __BaseException {
240
219
  name = "PipelineNotFoundException";
241
220
  $fault = "client";
242
221
  constructor(opts) {
@@ -247,9 +226,8 @@ class PipelineNotFoundException extends CodePipelineServiceException_1.CodePipel
247
226
  });
248
227
  Object.setPrototypeOf(this, PipelineNotFoundException.prototype);
249
228
  }
250
- }
251
- exports.PipelineNotFoundException = PipelineNotFoundException;
252
- class StageNotFoundException extends CodePipelineServiceException_1.CodePipelineServiceException {
229
+ };
230
+ exports.StageNotFoundException = class StageNotFoundException extends __BaseException {
253
231
  name = "StageNotFoundException";
254
232
  $fault = "client";
255
233
  constructor(opts) {
@@ -260,9 +238,8 @@ class StageNotFoundException extends CodePipelineServiceException_1.CodePipeline
260
238
  });
261
239
  Object.setPrototypeOf(this, StageNotFoundException.prototype);
262
240
  }
263
- }
264
- exports.StageNotFoundException = StageNotFoundException;
265
- class PipelineVersionNotFoundException extends CodePipelineServiceException_1.CodePipelineServiceException {
241
+ };
242
+ exports.PipelineVersionNotFoundException = class PipelineVersionNotFoundException extends __BaseException {
266
243
  name = "PipelineVersionNotFoundException";
267
244
  $fault = "client";
268
245
  constructor(opts) {
@@ -273,9 +250,8 @@ class PipelineVersionNotFoundException extends CodePipelineServiceException_1.Co
273
250
  });
274
251
  Object.setPrototypeOf(this, PipelineVersionNotFoundException.prototype);
275
252
  }
276
- }
277
- exports.PipelineVersionNotFoundException = PipelineVersionNotFoundException;
278
- class PipelineExecutionNotFoundException extends CodePipelineServiceException_1.CodePipelineServiceException {
253
+ };
254
+ exports.PipelineExecutionNotFoundException = class PipelineExecutionNotFoundException extends __BaseException {
279
255
  name = "PipelineExecutionNotFoundException";
280
256
  $fault = "client";
281
257
  constructor(opts) {
@@ -286,9 +262,8 @@ class PipelineExecutionNotFoundException extends CodePipelineServiceException_1.
286
262
  });
287
263
  Object.setPrototypeOf(this, PipelineExecutionNotFoundException.prototype);
288
264
  }
289
- }
290
- exports.PipelineExecutionNotFoundException = PipelineExecutionNotFoundException;
291
- class InvalidJobException extends CodePipelineServiceException_1.CodePipelineServiceException {
265
+ };
266
+ exports.InvalidJobException = class InvalidJobException extends __BaseException {
292
267
  name = "InvalidJobException";
293
268
  $fault = "client";
294
269
  constructor(opts) {
@@ -299,9 +274,8 @@ class InvalidJobException extends CodePipelineServiceException_1.CodePipelineSer
299
274
  });
300
275
  Object.setPrototypeOf(this, InvalidJobException.prototype);
301
276
  }
302
- }
303
- exports.InvalidJobException = InvalidJobException;
304
- class InvalidNextTokenException extends CodePipelineServiceException_1.CodePipelineServiceException {
277
+ };
278
+ exports.InvalidNextTokenException = class InvalidNextTokenException extends __BaseException {
305
279
  name = "InvalidNextTokenException";
306
280
  $fault = "client";
307
281
  constructor(opts) {
@@ -312,9 +286,8 @@ class InvalidNextTokenException extends CodePipelineServiceException_1.CodePipel
312
286
  });
313
287
  Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
314
288
  }
315
- }
316
- exports.InvalidNextTokenException = InvalidNextTokenException;
317
- class InvalidArnException extends CodePipelineServiceException_1.CodePipelineServiceException {
289
+ };
290
+ exports.InvalidArnException = class InvalidArnException extends __BaseException {
318
291
  name = "InvalidArnException";
319
292
  $fault = "client";
320
293
  constructor(opts) {
@@ -325,9 +298,8 @@ class InvalidArnException extends CodePipelineServiceException_1.CodePipelineSer
325
298
  });
326
299
  Object.setPrototypeOf(this, InvalidArnException.prototype);
327
300
  }
328
- }
329
- exports.InvalidArnException = InvalidArnException;
330
- class ResourceNotFoundException extends CodePipelineServiceException_1.CodePipelineServiceException {
301
+ };
302
+ exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
331
303
  name = "ResourceNotFoundException";
332
304
  $fault = "client";
333
305
  constructor(opts) {
@@ -338,9 +310,8 @@ class ResourceNotFoundException extends CodePipelineServiceException_1.CodePipel
338
310
  });
339
311
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
340
312
  }
341
- }
342
- exports.ResourceNotFoundException = ResourceNotFoundException;
343
- class ConcurrentPipelineExecutionsLimitExceededException extends CodePipelineServiceException_1.CodePipelineServiceException {
313
+ };
314
+ exports.ConcurrentPipelineExecutionsLimitExceededException = class ConcurrentPipelineExecutionsLimitExceededException extends __BaseException {
344
315
  name = "ConcurrentPipelineExecutionsLimitExceededException";
345
316
  $fault = "client";
346
317
  constructor(opts) {
@@ -351,9 +322,8 @@ class ConcurrentPipelineExecutionsLimitExceededException extends CodePipelineSer
351
322
  });
352
323
  Object.setPrototypeOf(this, ConcurrentPipelineExecutionsLimitExceededException.prototype);
353
324
  }
354
- }
355
- exports.ConcurrentPipelineExecutionsLimitExceededException = ConcurrentPipelineExecutionsLimitExceededException;
356
- class ConditionNotOverridableException extends CodePipelineServiceException_1.CodePipelineServiceException {
325
+ };
326
+ exports.ConditionNotOverridableException = class ConditionNotOverridableException extends __BaseException {
357
327
  name = "ConditionNotOverridableException";
358
328
  $fault = "client";
359
329
  constructor(opts) {
@@ -364,9 +334,8 @@ class ConditionNotOverridableException extends CodePipelineServiceException_1.Co
364
334
  });
365
335
  Object.setPrototypeOf(this, ConditionNotOverridableException.prototype);
366
336
  }
367
- }
368
- exports.ConditionNotOverridableException = ConditionNotOverridableException;
369
- class ConflictException extends CodePipelineServiceException_1.CodePipelineServiceException {
337
+ };
338
+ exports.ConflictException = class ConflictException extends __BaseException {
370
339
  name = "ConflictException";
371
340
  $fault = "client";
372
341
  constructor(opts) {
@@ -377,9 +346,8 @@ class ConflictException extends CodePipelineServiceException_1.CodePipelineServi
377
346
  });
378
347
  Object.setPrototypeOf(this, ConflictException.prototype);
379
348
  }
380
- }
381
- exports.ConflictException = ConflictException;
382
- class NotLatestPipelineExecutionException extends CodePipelineServiceException_1.CodePipelineServiceException {
349
+ };
350
+ exports.NotLatestPipelineExecutionException = class NotLatestPipelineExecutionException extends __BaseException {
383
351
  name = "NotLatestPipelineExecutionException";
384
352
  $fault = "client";
385
353
  constructor(opts) {
@@ -390,9 +358,8 @@ class NotLatestPipelineExecutionException extends CodePipelineServiceException_1
390
358
  });
391
359
  Object.setPrototypeOf(this, NotLatestPipelineExecutionException.prototype);
392
360
  }
393
- }
394
- exports.NotLatestPipelineExecutionException = NotLatestPipelineExecutionException;
395
- class InvalidApprovalTokenException extends CodePipelineServiceException_1.CodePipelineServiceException {
361
+ };
362
+ exports.InvalidApprovalTokenException = class InvalidApprovalTokenException extends __BaseException {
396
363
  name = "InvalidApprovalTokenException";
397
364
  $fault = "client";
398
365
  constructor(opts) {
@@ -403,9 +370,8 @@ class InvalidApprovalTokenException extends CodePipelineServiceException_1.CodeP
403
370
  });
404
371
  Object.setPrototypeOf(this, InvalidApprovalTokenException.prototype);
405
372
  }
406
- }
407
- exports.InvalidApprovalTokenException = InvalidApprovalTokenException;
408
- class InvalidJobStateException extends CodePipelineServiceException_1.CodePipelineServiceException {
373
+ };
374
+ exports.InvalidJobStateException = class InvalidJobStateException extends __BaseException {
409
375
  name = "InvalidJobStateException";
410
376
  $fault = "client";
411
377
  constructor(opts) {
@@ -416,9 +382,8 @@ class InvalidJobStateException extends CodePipelineServiceException_1.CodePipeli
416
382
  });
417
383
  Object.setPrototypeOf(this, InvalidJobStateException.prototype);
418
384
  }
419
- }
420
- exports.InvalidJobStateException = InvalidJobStateException;
421
- class OutputVariablesSizeExceededException extends CodePipelineServiceException_1.CodePipelineServiceException {
385
+ };
386
+ exports.OutputVariablesSizeExceededException = class OutputVariablesSizeExceededException extends __BaseException {
422
387
  name = "OutputVariablesSizeExceededException";
423
388
  $fault = "client";
424
389
  constructor(opts) {
@@ -429,9 +394,8 @@ class OutputVariablesSizeExceededException extends CodePipelineServiceException_
429
394
  });
430
395
  Object.setPrototypeOf(this, OutputVariablesSizeExceededException.prototype);
431
396
  }
432
- }
433
- exports.OutputVariablesSizeExceededException = OutputVariablesSizeExceededException;
434
- class InvalidWebhookAuthenticationParametersException extends CodePipelineServiceException_1.CodePipelineServiceException {
397
+ };
398
+ exports.InvalidWebhookAuthenticationParametersException = class InvalidWebhookAuthenticationParametersException extends __BaseException {
435
399
  name = "InvalidWebhookAuthenticationParametersException";
436
400
  $fault = "client";
437
401
  constructor(opts) {
@@ -442,9 +406,8 @@ class InvalidWebhookAuthenticationParametersException extends CodePipelineServic
442
406
  });
443
407
  Object.setPrototypeOf(this, InvalidWebhookAuthenticationParametersException.prototype);
444
408
  }
445
- }
446
- exports.InvalidWebhookAuthenticationParametersException = InvalidWebhookAuthenticationParametersException;
447
- class InvalidWebhookFilterPatternException extends CodePipelineServiceException_1.CodePipelineServiceException {
409
+ };
410
+ exports.InvalidWebhookFilterPatternException = class InvalidWebhookFilterPatternException extends __BaseException {
448
411
  name = "InvalidWebhookFilterPatternException";
449
412
  $fault = "client";
450
413
  constructor(opts) {
@@ -455,9 +418,8 @@ class InvalidWebhookFilterPatternException extends CodePipelineServiceException_
455
418
  });
456
419
  Object.setPrototypeOf(this, InvalidWebhookFilterPatternException.prototype);
457
420
  }
458
- }
459
- exports.InvalidWebhookFilterPatternException = InvalidWebhookFilterPatternException;
460
- class StageNotRetryableException extends CodePipelineServiceException_1.CodePipelineServiceException {
421
+ };
422
+ exports.StageNotRetryableException = class StageNotRetryableException extends __BaseException {
461
423
  name = "StageNotRetryableException";
462
424
  $fault = "client";
463
425
  constructor(opts) {
@@ -468,9 +430,8 @@ class StageNotRetryableException extends CodePipelineServiceException_1.CodePipe
468
430
  });
469
431
  Object.setPrototypeOf(this, StageNotRetryableException.prototype);
470
432
  }
471
- }
472
- exports.StageNotRetryableException = StageNotRetryableException;
473
- class PipelineExecutionOutdatedException extends CodePipelineServiceException_1.CodePipelineServiceException {
433
+ };
434
+ exports.PipelineExecutionOutdatedException = class PipelineExecutionOutdatedException extends __BaseException {
474
435
  name = "PipelineExecutionOutdatedException";
475
436
  $fault = "client";
476
437
  constructor(opts) {
@@ -481,9 +442,8 @@ class PipelineExecutionOutdatedException extends CodePipelineServiceException_1.
481
442
  });
482
443
  Object.setPrototypeOf(this, PipelineExecutionOutdatedException.prototype);
483
444
  }
484
- }
485
- exports.PipelineExecutionOutdatedException = PipelineExecutionOutdatedException;
486
- class UnableToRollbackStageException extends CodePipelineServiceException_1.CodePipelineServiceException {
445
+ };
446
+ exports.UnableToRollbackStageException = class UnableToRollbackStageException extends __BaseException {
487
447
  name = "UnableToRollbackStageException";
488
448
  $fault = "client";
489
449
  constructor(opts) {
@@ -494,9 +454,8 @@ class UnableToRollbackStageException extends CodePipelineServiceException_1.Code
494
454
  });
495
455
  Object.setPrototypeOf(this, UnableToRollbackStageException.prototype);
496
456
  }
497
- }
498
- exports.UnableToRollbackStageException = UnableToRollbackStageException;
499
- class DuplicatedStopRequestException extends CodePipelineServiceException_1.CodePipelineServiceException {
457
+ };
458
+ exports.DuplicatedStopRequestException = class DuplicatedStopRequestException extends __BaseException {
500
459
  name = "DuplicatedStopRequestException";
501
460
  $fault = "client";
502
461
  constructor(opts) {
@@ -507,9 +466,8 @@ class DuplicatedStopRequestException extends CodePipelineServiceException_1.Code
507
466
  });
508
467
  Object.setPrototypeOf(this, DuplicatedStopRequestException.prototype);
509
468
  }
510
- }
511
- exports.DuplicatedStopRequestException = DuplicatedStopRequestException;
512
- class PipelineExecutionNotStoppableException extends CodePipelineServiceException_1.CodePipelineServiceException {
469
+ };
470
+ exports.PipelineExecutionNotStoppableException = class PipelineExecutionNotStoppableException extends __BaseException {
513
471
  name = "PipelineExecutionNotStoppableException";
514
472
  $fault = "client";
515
473
  constructor(opts) {
@@ -520,9 +478,8 @@ class PipelineExecutionNotStoppableException extends CodePipelineServiceExceptio
520
478
  });
521
479
  Object.setPrototypeOf(this, PipelineExecutionNotStoppableException.prototype);
522
480
  }
523
- }
524
- exports.PipelineExecutionNotStoppableException = PipelineExecutionNotStoppableException;
525
- class RequestFailedException extends CodePipelineServiceException_1.CodePipelineServiceException {
481
+ };
482
+ exports.RequestFailedException = class RequestFailedException extends __BaseException {
526
483
  name = "RequestFailedException";
527
484
  $fault = "client";
528
485
  constructor(opts) {
@@ -533,5 +490,4 @@ class RequestFailedException extends CodePipelineServiceException_1.CodePipeline
533
490
  });
534
491
  Object.setPrototypeOf(this, RequestFailedException.prototype);
535
492
  }
536
- }
537
- exports.RequestFailedException = RequestFailedException;
493
+ };
@@ -1,36 +1,32 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
- const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
- const client_1 = require("@aws-sdk/core/client");
8
- const client_2 = require("@smithy/core/client");
9
- const config_1 = require("@smithy/core/config");
10
- const retry_1 = require("@smithy/core/retry");
11
- const serde_1 = require("@smithy/core/serde");
12
- const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
13
- const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
1
+ const packageInfo = require("../package.json");
2
+ const { Sha256 } = require("@aws-crypto/sha256-browser");
3
+ const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
4
+ const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
5
+ const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
6
+ const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
7
+ const { calculateBodyLength } = require("@smithy/core/serde");
8
+ const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
9
+ const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
14
10
  const getRuntimeConfig = (config) => {
15
- const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
16
- const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
17
- const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
11
+ const defaultsMode = resolveDefaultsModeConfig(config);
12
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
13
+ const clientSharedValues = getSharedRuntimeConfig(config);
18
14
  return {
19
15
  ...clientSharedValues,
20
16
  ...config,
21
17
  runtime: "browser",
22
18
  defaultsMode,
23
- bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
19
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
24
20
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
25
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
26
- maxAttempts: config?.maxAttempts ?? retry_1.DEFAULT_MAX_ATTEMPTS,
27
- region: config?.region ?? (0, client_2.invalidProvider)("Region is missing"),
28
- requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
29
- retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE),
30
- sha256: config?.sha256 ?? sha256_browser_1.Sha256,
31
- streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
32
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
33
- useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_FIPS_ENDPOINT)),
21
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
22
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
23
+ region: config?.region ?? invalidProvider("Region is missing"),
24
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
+ sha256: config?.sha256 ?? Sha256,
27
+ streamCollector: config?.streamCollector ?? streamCollector,
28
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
34
30
  };
35
31
  };
36
32
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,23 +1,19 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
- const client_1 = require("@aws-sdk/core/client");
7
- const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
8
- const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
9
- const client_2 = require("@smithy/core/client");
10
- const config_1 = require("@smithy/core/config");
11
- const retry_1 = require("@smithy/core/retry");
12
- const serde_1 = require("@smithy/core/serde");
13
- const node_http_handler_1 = require("@smithy/node-http-handler");
14
- const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
1
+ const packageInfo = require("../package.json");
2
+ const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
3
+ const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
4
+ const { defaultProvider: credentialDefaultProvider } = require("@aws-sdk/credential-provider-node");
5
+ const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
6
+ const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
7
+ const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
8
+ const { calculateBodyLength, Hash } = require("@smithy/core/serde");
9
+ const { NodeHttpHandler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
10
+ const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
15
11
  const getRuntimeConfig = (config) => {
16
- (0, client_2.emitWarningIfUnsupportedVersion)(process.version);
17
- const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
18
- const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
19
- const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
20
- (0, client_1.emitWarningIfUnsupportedVersion)(process.version);
12
+ emitWarningIfUnsupportedVersion(process.version);
13
+ const defaultsMode = resolveDefaultsModeConfig(config);
14
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
15
+ const clientSharedValues = getSharedRuntimeConfig(config);
16
+ awsCheckVersion(process.version);
21
17
  const loaderConfig = {
22
18
  profile: config?.profile,
23
19
  logger: clientSharedValues.logger,
@@ -27,23 +23,23 @@ const getRuntimeConfig = (config) => {
27
23
  ...config,
28
24
  runtime: "node",
29
25
  defaultsMode,
30
- authSchemePreference: config?.authSchemePreference ?? (0, config_1.loadConfig)(httpAuthSchemes_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
31
- bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
32
- credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
33
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
34
- maxAttempts: config?.maxAttempts ?? (0, config_1.loadConfig)(retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
35
- region: config?.region ?? (0, config_1.loadConfig)(config_1.NODE_REGION_CONFIG_OPTIONS, { ...config_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
36
- requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
26
+ authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
27
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
28
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
29
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
30
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
31
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
32
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
37
33
  retryMode: config?.retryMode ??
38
- (0, config_1.loadConfig)({
39
- ...retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
- default: async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE,
34
+ loadNodeConfig({
35
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
41
37
  }, config),
42
- sha256: config?.sha256 ?? serde_1.Hash.bind(null, "sha256"),
43
- streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
44
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, config_1.loadConfig)(config_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
45
- useFipsEndpoint: config?.useFipsEndpoint ?? (0, config_1.loadConfig)(config_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
46
- userAgentAppId: config?.userAgentAppId ?? (0, config_1.loadConfig)(client_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
38
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
+ streamCollector: config?.streamCollector ?? streamCollector,
40
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
42
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
47
43
  };
48
44
  };
49
45
  exports.getRuntimeConfig = getRuntimeConfig;