@aws-sdk/client-codepipeline 3.45.0 → 3.47.2

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.
@@ -18,18 +18,6 @@ export var AcknowledgeJobOutput;
18
18
  (function (AcknowledgeJobOutput) {
19
19
  AcknowledgeJobOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
20
20
  })(AcknowledgeJobOutput || (AcknowledgeJobOutput = {}));
21
- export var InvalidNonceException;
22
- (function (InvalidNonceException) {
23
- InvalidNonceException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
24
- })(InvalidNonceException || (InvalidNonceException = {}));
25
- export var JobNotFoundException;
26
- (function (JobNotFoundException) {
27
- JobNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
28
- })(JobNotFoundException || (JobNotFoundException = {}));
29
- export var ValidationException;
30
- (function (ValidationException) {
31
- ValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
32
- })(ValidationException || (ValidationException = {}));
33
21
  export var AcknowledgeThirdPartyJobInput;
34
22
  (function (AcknowledgeThirdPartyJobInput) {
35
23
  AcknowledgeThirdPartyJobInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -38,10 +26,6 @@ export var AcknowledgeThirdPartyJobOutput;
38
26
  (function (AcknowledgeThirdPartyJobOutput) {
39
27
  AcknowledgeThirdPartyJobOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
40
28
  })(AcknowledgeThirdPartyJobOutput || (AcknowledgeThirdPartyJobOutput = {}));
41
- export var InvalidClientTokenException;
42
- (function (InvalidClientTokenException) {
43
- InvalidClientTokenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
44
- })(InvalidClientTokenException || (InvalidClientTokenException = {}));
45
29
  export var ActionCategory;
46
30
  (function (ActionCategory) {
47
31
  ActionCategory["Approval"] = "Approval";
@@ -134,10 +118,6 @@ export var ActionExecutionFilter;
134
118
  (function (ActionExecutionFilter) {
135
119
  ActionExecutionFilter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
136
120
  })(ActionExecutionFilter || (ActionExecutionFilter = {}));
137
- export var ActionNotFoundException;
138
- (function (ActionNotFoundException) {
139
- ActionNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
140
- })(ActionNotFoundException || (ActionNotFoundException = {}));
141
121
  export var ActionRevision;
142
122
  (function (ActionRevision) {
143
123
  ActionRevision.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -203,14 +183,6 @@ export var ActionTypeDeclaration;
203
183
  (function (ActionTypeDeclaration) {
204
184
  ActionTypeDeclaration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
205
185
  })(ActionTypeDeclaration || (ActionTypeDeclaration = {}));
206
- export var ActionTypeNotFoundException;
207
- (function (ActionTypeNotFoundException) {
208
- ActionTypeNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
209
- })(ActionTypeNotFoundException || (ActionTypeNotFoundException = {}));
210
- export var ApprovalAlreadyCompletedException;
211
- (function (ApprovalAlreadyCompletedException) {
212
- ApprovalAlreadyCompletedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
213
- })(ApprovalAlreadyCompletedException || (ApprovalAlreadyCompletedException = {}));
214
186
  export var ApprovalStatus;
215
187
  (function (ApprovalStatus) {
216
188
  ApprovalStatus["Approved"] = "Approved";
@@ -268,10 +240,6 @@ export var BlockerDeclaration;
268
240
  (function (BlockerDeclaration) {
269
241
  BlockerDeclaration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
270
242
  })(BlockerDeclaration || (BlockerDeclaration = {}));
271
- export var ConcurrentModificationException;
272
- (function (ConcurrentModificationException) {
273
- ConcurrentModificationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
274
- })(ConcurrentModificationException || (ConcurrentModificationException = {}));
275
243
  export var Tag;
276
244
  (function (Tag) {
277
245
  Tag.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -284,18 +252,6 @@ export var CreateCustomActionTypeOutput;
284
252
  (function (CreateCustomActionTypeOutput) {
285
253
  CreateCustomActionTypeOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
286
254
  })(CreateCustomActionTypeOutput || (CreateCustomActionTypeOutput = {}));
287
- export var InvalidTagsException;
288
- (function (InvalidTagsException) {
289
- InvalidTagsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
290
- })(InvalidTagsException || (InvalidTagsException = {}));
291
- export var LimitExceededException;
292
- (function (LimitExceededException) {
293
- LimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
294
- })(LimitExceededException || (LimitExceededException = {}));
295
- export var TooManyTagsException;
296
- (function (TooManyTagsException) {
297
- TooManyTagsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
298
- })(TooManyTagsException || (TooManyTagsException = {}));
299
255
  export var StageDeclaration;
300
256
  (function (StageDeclaration) {
301
257
  StageDeclaration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -312,26 +268,6 @@ export var CreatePipelineOutput;
312
268
  (function (CreatePipelineOutput) {
313
269
  CreatePipelineOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
314
270
  })(CreatePipelineOutput || (CreatePipelineOutput = {}));
315
- export var InvalidActionDeclarationException;
316
- (function (InvalidActionDeclarationException) {
317
- InvalidActionDeclarationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
318
- })(InvalidActionDeclarationException || (InvalidActionDeclarationException = {}));
319
- export var InvalidBlockerDeclarationException;
320
- (function (InvalidBlockerDeclarationException) {
321
- InvalidBlockerDeclarationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
322
- })(InvalidBlockerDeclarationException || (InvalidBlockerDeclarationException = {}));
323
- export var InvalidStageDeclarationException;
324
- (function (InvalidStageDeclarationException) {
325
- InvalidStageDeclarationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
326
- })(InvalidStageDeclarationException || (InvalidStageDeclarationException = {}));
327
- export var InvalidStructureException;
328
- (function (InvalidStructureException) {
329
- InvalidStructureException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
330
- })(InvalidStructureException || (InvalidStructureException = {}));
331
- export var PipelineNameInUseException;
332
- (function (PipelineNameInUseException) {
333
- PipelineNameInUseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
334
- })(PipelineNameInUseException || (PipelineNameInUseException = {}));
335
271
  export var DeleteCustomActionTypeInput;
336
272
  (function (DeleteCustomActionTypeInput) {
337
273
  DeleteCustomActionTypeInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -356,10 +292,6 @@ export var DeregisterWebhookWithThirdPartyOutput;
356
292
  (function (DeregisterWebhookWithThirdPartyOutput) {
357
293
  DeregisterWebhookWithThirdPartyOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
358
294
  })(DeregisterWebhookWithThirdPartyOutput || (DeregisterWebhookWithThirdPartyOutput = {}));
359
- export var WebhookNotFoundException;
360
- (function (WebhookNotFoundException) {
361
- WebhookNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
362
- })(WebhookNotFoundException || (WebhookNotFoundException = {}));
363
295
  export var StageTransitionType;
364
296
  (function (StageTransitionType) {
365
297
  StageTransitionType["Inbound"] = "Inbound";
@@ -369,14 +301,6 @@ export var DisableStageTransitionInput;
369
301
  (function (DisableStageTransitionInput) {
370
302
  DisableStageTransitionInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
371
303
  })(DisableStageTransitionInput || (DisableStageTransitionInput = {}));
372
- export var PipelineNotFoundException;
373
- (function (PipelineNotFoundException) {
374
- PipelineNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
375
- })(PipelineNotFoundException || (PipelineNotFoundException = {}));
376
- export var StageNotFoundException;
377
- (function (StageNotFoundException) {
378
- StageNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
379
- })(StageNotFoundException || (StageNotFoundException = {}));
380
304
  export var EnableStageTransitionInput;
381
305
  (function (EnableStageTransitionInput) {
382
306
  EnableStageTransitionInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -425,10 +349,6 @@ export var GetPipelineOutput;
425
349
  (function (GetPipelineOutput) {
426
350
  GetPipelineOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
427
351
  })(GetPipelineOutput || (GetPipelineOutput = {}));
428
- export var PipelineVersionNotFoundException;
429
- (function (PipelineVersionNotFoundException) {
430
- PipelineVersionNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
431
- })(PipelineVersionNotFoundException || (PipelineVersionNotFoundException = {}));
432
352
  export var GetPipelineExecutionInput;
433
353
  (function (GetPipelineExecutionInput) {
434
354
  GetPipelineExecutionInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -451,10 +371,6 @@ export var GetPipelineExecutionOutput;
451
371
  (function (GetPipelineExecutionOutput) {
452
372
  GetPipelineExecutionOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
453
373
  })(GetPipelineExecutionOutput || (GetPipelineExecutionOutput = {}));
454
- export var PipelineExecutionNotFoundException;
455
- (function (PipelineExecutionNotFoundException) {
456
- PipelineExecutionNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
457
- })(PipelineExecutionNotFoundException || (PipelineExecutionNotFoundException = {}));
458
374
  export var GetPipelineStateInput;
459
375
  (function (GetPipelineStateInput) {
460
376
  GetPipelineStateInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -500,14 +416,6 @@ export var GetThirdPartyJobDetailsOutput;
500
416
  (function (GetThirdPartyJobDetailsOutput) {
501
417
  GetThirdPartyJobDetailsOutput.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.jobDetails && { jobDetails: ThirdPartyJobDetails.filterSensitiveLog(obj.jobDetails) }))); };
502
418
  })(GetThirdPartyJobDetailsOutput || (GetThirdPartyJobDetailsOutput = {}));
503
- export var InvalidJobException;
504
- (function (InvalidJobException) {
505
- InvalidJobException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
506
- })(InvalidJobException || (InvalidJobException = {}));
507
- export var InvalidNextTokenException;
508
- (function (InvalidNextTokenException) {
509
- InvalidNextTokenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
510
- })(InvalidNextTokenException || (InvalidNextTokenException = {}));
511
419
  export var ListActionExecutionsInput;
512
420
  (function (ListActionExecutionsInput) {
513
421
  ListActionExecutionsInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -569,10 +477,6 @@ export var ListPipelinesOutput;
569
477
  (function (ListPipelinesOutput) {
570
478
  ListPipelinesOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
571
479
  })(ListPipelinesOutput || (ListPipelinesOutput = {}));
572
- export var InvalidArnException;
573
- (function (InvalidArnException) {
574
- InvalidArnException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
575
- })(InvalidArnException || (InvalidArnException = {}));
576
480
  export var ListTagsForResourceInput;
577
481
  (function (ListTagsForResourceInput) {
578
482
  ListTagsForResourceInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -581,10 +485,6 @@ export var ListTagsForResourceOutput;
581
485
  (function (ListTagsForResourceOutput) {
582
486
  ListTagsForResourceOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
583
487
  })(ListTagsForResourceOutput || (ListTagsForResourceOutput = {}));
584
- export var ResourceNotFoundException;
585
- (function (ResourceNotFoundException) {
586
- ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
587
- })(ResourceNotFoundException || (ResourceNotFoundException = {}));
588
488
  export var ListWebhooksInput;
589
489
  (function (ListWebhooksInput) {
590
490
  ListWebhooksInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -647,10 +547,6 @@ export var PutActionRevisionOutput;
647
547
  (function (PutActionRevisionOutput) {
648
548
  PutActionRevisionOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
649
549
  })(PutActionRevisionOutput || (PutActionRevisionOutput = {}));
650
- export var InvalidApprovalTokenException;
651
- (function (InvalidApprovalTokenException) {
652
- InvalidApprovalTokenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
653
- })(InvalidApprovalTokenException || (InvalidApprovalTokenException = {}));
654
550
  export var PutApprovalResultInput;
655
551
  (function (PutApprovalResultInput) {
656
552
  PutApprovalResultInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -659,10 +555,6 @@ export var PutApprovalResultOutput;
659
555
  (function (PutApprovalResultOutput) {
660
556
  PutApprovalResultOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
661
557
  })(PutApprovalResultOutput || (PutApprovalResultOutput = {}));
662
- export var InvalidJobStateException;
663
- (function (InvalidJobStateException) {
664
- InvalidJobStateException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
665
- })(InvalidJobStateException || (InvalidJobStateException = {}));
666
558
  export var FailureType;
667
559
  (function (FailureType) {
668
560
  FailureType["ConfigurationError"] = "ConfigurationError";
@@ -680,10 +572,6 @@ export var PutJobFailureResultInput;
680
572
  (function (PutJobFailureResultInput) {
681
573
  PutJobFailureResultInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
682
574
  })(PutJobFailureResultInput || (PutJobFailureResultInput = {}));
683
- export var OutputVariablesSizeExceededException;
684
- (function (OutputVariablesSizeExceededException) {
685
- OutputVariablesSizeExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
686
- })(OutputVariablesSizeExceededException || (OutputVariablesSizeExceededException = {}));
687
575
  export var CurrentRevision;
688
576
  (function (CurrentRevision) {
689
577
  CurrentRevision.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -704,14 +592,6 @@ export var PutThirdPartyJobSuccessResultInput;
704
592
  (function (PutThirdPartyJobSuccessResultInput) {
705
593
  PutThirdPartyJobSuccessResultInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
706
594
  })(PutThirdPartyJobSuccessResultInput || (PutThirdPartyJobSuccessResultInput = {}));
707
- export var InvalidWebhookAuthenticationParametersException;
708
- (function (InvalidWebhookAuthenticationParametersException) {
709
- InvalidWebhookAuthenticationParametersException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
710
- })(InvalidWebhookAuthenticationParametersException || (InvalidWebhookAuthenticationParametersException = {}));
711
- export var InvalidWebhookFilterPatternException;
712
- (function (InvalidWebhookFilterPatternException) {
713
- InvalidWebhookFilterPatternException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
714
- })(InvalidWebhookFilterPatternException || (InvalidWebhookFilterPatternException = {}));
715
595
  export var PutWebhookInput;
716
596
  (function (PutWebhookInput) {
717
597
  PutWebhookInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -728,14 +608,6 @@ export var RegisterWebhookWithThirdPartyOutput;
728
608
  (function (RegisterWebhookWithThirdPartyOutput) {
729
609
  RegisterWebhookWithThirdPartyOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
730
610
  })(RegisterWebhookWithThirdPartyOutput || (RegisterWebhookWithThirdPartyOutput = {}));
731
- export var ConflictException;
732
- (function (ConflictException) {
733
- ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
734
- })(ConflictException || (ConflictException = {}));
735
- export var NotLatestPipelineExecutionException;
736
- (function (NotLatestPipelineExecutionException) {
737
- NotLatestPipelineExecutionException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
738
- })(NotLatestPipelineExecutionException || (NotLatestPipelineExecutionException = {}));
739
611
  export var StageRetryMode;
740
612
  (function (StageRetryMode) {
741
613
  StageRetryMode["FAILED_ACTIONS"] = "FAILED_ACTIONS";
@@ -748,10 +620,6 @@ export var RetryStageExecutionOutput;
748
620
  (function (RetryStageExecutionOutput) {
749
621
  RetryStageExecutionOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
750
622
  })(RetryStageExecutionOutput || (RetryStageExecutionOutput = {}));
751
- export var StageNotRetryableException;
752
- (function (StageNotRetryableException) {
753
- StageNotRetryableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
754
- })(StageNotRetryableException || (StageNotRetryableException = {}));
755
623
  export var StartPipelineExecutionInput;
756
624
  (function (StartPipelineExecutionInput) {
757
625
  StartPipelineExecutionInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -760,14 +628,6 @@ export var StartPipelineExecutionOutput;
760
628
  (function (StartPipelineExecutionOutput) {
761
629
  StartPipelineExecutionOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
762
630
  })(StartPipelineExecutionOutput || (StartPipelineExecutionOutput = {}));
763
- export var DuplicatedStopRequestException;
764
- (function (DuplicatedStopRequestException) {
765
- DuplicatedStopRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
766
- })(DuplicatedStopRequestException || (DuplicatedStopRequestException = {}));
767
- export var PipelineExecutionNotStoppableException;
768
- (function (PipelineExecutionNotStoppableException) {
769
- PipelineExecutionNotStoppableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
770
- })(PipelineExecutionNotStoppableException || (PipelineExecutionNotStoppableException = {}));
771
631
  export var StopPipelineExecutionInput;
772
632
  (function (StopPipelineExecutionInput) {
773
633
  StopPipelineExecutionInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -792,10 +652,6 @@ export var UntagResourceOutput;
792
652
  (function (UntagResourceOutput) {
793
653
  UntagResourceOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
794
654
  })(UntagResourceOutput || (UntagResourceOutput = {}));
795
- export var RequestFailedException;
796
- (function (RequestFailedException) {
797
- RequestFailedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
798
- })(RequestFailedException || (RequestFailedException = {}));
799
655
  export var UpdateActionTypeInput;
800
656
  (function (UpdateActionTypeInput) {
801
657
  UpdateActionTypeInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1,8 +1,8 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
5
- import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
6
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
7
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
8
8
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
10
10
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
11
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
13
15
  export var getRuntimeConfig = function (config) {
14
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ var defaultsMode = resolveDefaultsModeConfig(config);
18
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
15
19
  var clientSharedValues = getSharedRuntimeConfig(config);
16
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
+ switch (_a.label) {
22
+ case 0: return [4, defaultConfigProvider()];
23
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
+ }
25
+ }); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
17
26
  };
@@ -1,21 +1,28 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
16
17
  export var getRuntimeConfig = function (config) {
17
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
- emitWarningIfUnsupportedVersion(process.version);
19
+ var defaultsMode = resolveDefaultsModeConfig(config);
20
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
21
  var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
22
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
23
+ switch (_a.label) {
24
+ case 0: return [4, defaultConfigProvider()];
25
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
26
+ }
27
+ }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
21
28
  };
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { AcknowledgeJobCommandInput, AcknowledgeJobCommandOutput } from "./commands/AcknowledgeJobCommand";
10
10
  import { AcknowledgeThirdPartyJobCommandInput, AcknowledgeThirdPartyJobCommandOutput } from "./commands/AcknowledgeThirdPartyJobCommand";
@@ -147,6 +147,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
147
147
  * @internal
148
148
  */
149
149
  defaultUserAgentProvider?: Provider<__UserAgent>;
150
+ /**
151
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
152
+ */
153
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
150
154
  }
151
155
  declare type CodePipelineClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
152
156
  /**