@aws-sdk/client-codecommit 3.477.0 → 3.479.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.
Files changed (92) hide show
  1. package/README.md +13 -0
  2. package/dist-cjs/CodeCommit.js +2 -0
  3. package/dist-cjs/commands/UpdateRepositoryEncryptionKeyCommand.js +51 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/models/models_0.js +38 -30
  6. package/dist-cjs/models/models_1.js +40 -1
  7. package/dist-cjs/pagination/DescribeMergeConflictsPaginator.js +2 -24
  8. package/dist-cjs/pagination/DescribePullRequestEventsPaginator.js +2 -24
  9. package/dist-cjs/pagination/GetCommentReactionsPaginator.js +2 -24
  10. package/dist-cjs/pagination/GetCommentsForComparedCommitPaginator.js +2 -24
  11. package/dist-cjs/pagination/GetCommentsForPullRequestPaginator.js +2 -24
  12. package/dist-cjs/pagination/GetDifferencesPaginator.js +2 -24
  13. package/dist-cjs/pagination/GetMergeConflictsPaginator.js +2 -24
  14. package/dist-cjs/pagination/ListApprovalRuleTemplatesPaginator.js +2 -24
  15. package/dist-cjs/pagination/ListAssociatedApprovalRuleTemplatesForRepositoryPaginator.js +2 -24
  16. package/dist-cjs/pagination/ListBranchesPaginator.js +2 -23
  17. package/dist-cjs/pagination/ListFileCommitHistoryPaginator.js +2 -24
  18. package/dist-cjs/pagination/ListPullRequestsPaginator.js +2 -24
  19. package/dist-cjs/pagination/ListRepositoriesForApprovalRuleTemplatePaginator.js +2 -24
  20. package/dist-cjs/pagination/ListRepositoriesPaginator.js +2 -23
  21. package/dist-cjs/protocols/Aws_json1_1.js +110 -5
  22. package/dist-es/CodeCommit.js +2 -0
  23. package/dist-es/commands/UpdateRepositoryEncryptionKeyCommand.js +47 -0
  24. package/dist-es/commands/index.js +1 -0
  25. package/dist-es/models/models_0.js +32 -24
  26. package/dist-es/models/models_1.js +36 -0
  27. package/dist-es/pagination/DescribeMergeConflictsPaginator.js +2 -23
  28. package/dist-es/pagination/DescribePullRequestEventsPaginator.js +2 -23
  29. package/dist-es/pagination/GetCommentReactionsPaginator.js +2 -23
  30. package/dist-es/pagination/GetCommentsForComparedCommitPaginator.js +2 -23
  31. package/dist-es/pagination/GetCommentsForPullRequestPaginator.js +2 -23
  32. package/dist-es/pagination/GetDifferencesPaginator.js +2 -23
  33. package/dist-es/pagination/GetMergeConflictsPaginator.js +2 -23
  34. package/dist-es/pagination/ListApprovalRuleTemplatesPaginator.js +2 -23
  35. package/dist-es/pagination/ListAssociatedApprovalRuleTemplatesForRepositoryPaginator.js +2 -23
  36. package/dist-es/pagination/ListBranchesPaginator.js +2 -22
  37. package/dist-es/pagination/ListFileCommitHistoryPaginator.js +2 -23
  38. package/dist-es/pagination/ListPullRequestsPaginator.js +2 -23
  39. package/dist-es/pagination/ListRepositoriesForApprovalRuleTemplatePaginator.js +2 -23
  40. package/dist-es/pagination/ListRepositoriesPaginator.js +2 -22
  41. package/dist-es/protocols/Aws_json1_1.js +105 -2
  42. package/dist-types/CodeCommit.d.ts +12 -0
  43. package/dist-types/CodeCommitClient.d.ts +8 -2
  44. package/dist-types/commands/BatchGetRepositoriesCommand.d.ts +9 -0
  45. package/dist-types/commands/CreateRepositoryCommand.d.ts +9 -0
  46. package/dist-types/commands/GetRepositoryCommand.d.ts +1 -0
  47. package/dist-types/commands/ListFileCommitHistoryCommand.d.ts +2 -1
  48. package/dist-types/commands/ListPullRequestsCommand.d.ts +1 -2
  49. package/dist-types/commands/UpdateRepositoryEncryptionKeyCommand.d.ts +115 -0
  50. package/dist-types/commands/index.d.ts +1 -0
  51. package/dist-types/index.d.ts +5 -0
  52. package/dist-types/models/models_0.d.ts +86 -71
  53. package/dist-types/models/models_1.d.ts +122 -1
  54. package/dist-types/pagination/DescribeMergeConflictsPaginator.d.ts +1 -1
  55. package/dist-types/pagination/DescribePullRequestEventsPaginator.d.ts +1 -1
  56. package/dist-types/pagination/GetCommentReactionsPaginator.d.ts +1 -1
  57. package/dist-types/pagination/GetCommentsForComparedCommitPaginator.d.ts +1 -1
  58. package/dist-types/pagination/GetCommentsForPullRequestPaginator.d.ts +1 -1
  59. package/dist-types/pagination/GetDifferencesPaginator.d.ts +1 -1
  60. package/dist-types/pagination/GetMergeConflictsPaginator.d.ts +1 -1
  61. package/dist-types/pagination/ListApprovalRuleTemplatesPaginator.d.ts +1 -1
  62. package/dist-types/pagination/ListAssociatedApprovalRuleTemplatesForRepositoryPaginator.d.ts +1 -1
  63. package/dist-types/pagination/ListBranchesPaginator.d.ts +1 -1
  64. package/dist-types/pagination/ListFileCommitHistoryPaginator.d.ts +1 -1
  65. package/dist-types/pagination/ListPullRequestsPaginator.d.ts +1 -1
  66. package/dist-types/pagination/ListRepositoriesForApprovalRuleTemplatePaginator.d.ts +1 -1
  67. package/dist-types/pagination/ListRepositoriesPaginator.d.ts +1 -1
  68. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  69. package/dist-types/ts3.4/CodeCommit.d.ts +17 -0
  70. package/dist-types/ts3.4/CodeCommitClient.d.ts +6 -0
  71. package/dist-types/ts3.4/commands/ListFileCommitHistoryCommand.d.ts +2 -4
  72. package/dist-types/ts3.4/commands/ListPullRequestsCommand.d.ts +4 -2
  73. package/dist-types/ts3.4/commands/UpdateRepositoryEncryptionKeyCommand.d.ts +42 -0
  74. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  75. package/dist-types/ts3.4/models/models_0.d.ts +39 -28
  76. package/dist-types/ts3.4/models/models_1.d.ts +45 -0
  77. package/dist-types/ts3.4/pagination/DescribeMergeConflictsPaginator.d.ts +3 -3
  78. package/dist-types/ts3.4/pagination/DescribePullRequestEventsPaginator.d.ts +3 -3
  79. package/dist-types/ts3.4/pagination/GetCommentReactionsPaginator.d.ts +3 -3
  80. package/dist-types/ts3.4/pagination/GetCommentsForComparedCommitPaginator.d.ts +3 -3
  81. package/dist-types/ts3.4/pagination/GetCommentsForPullRequestPaginator.d.ts +3 -3
  82. package/dist-types/ts3.4/pagination/GetDifferencesPaginator.d.ts +3 -3
  83. package/dist-types/ts3.4/pagination/GetMergeConflictsPaginator.d.ts +3 -3
  84. package/dist-types/ts3.4/pagination/ListApprovalRuleTemplatesPaginator.d.ts +3 -3
  85. package/dist-types/ts3.4/pagination/ListAssociatedApprovalRuleTemplatesForRepositoryPaginator.d.ts +3 -3
  86. package/dist-types/ts3.4/pagination/ListBranchesPaginator.d.ts +3 -3
  87. package/dist-types/ts3.4/pagination/ListFileCommitHistoryPaginator.d.ts +3 -3
  88. package/dist-types/ts3.4/pagination/ListPullRequestsPaginator.d.ts +3 -3
  89. package/dist-types/ts3.4/pagination/ListRepositoriesForApprovalRuleTemplatePaginator.d.ts +3 -3
  90. package/dist-types/ts3.4/pagination/ListRepositoriesPaginator.d.ts +3 -3
  91. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
  92. package/package.json +6 -5
package/README.md CHANGED
@@ -39,6 +39,11 @@ CodeCommit API along with usage examples.</p>
39
39
  </li>
40
40
  <li>
41
41
  <p>
42
+ <a>UpdateRepositoryEncryptionKey</a>, which updates the Key Management Service encryption key used
43
+ to encrypt and decrypt a repository.</p>
44
+ </li>
45
+ <li>
46
+ <p>
42
47
  <a>UpdateRepositoryName</a>, which changes the name of the
43
48
  repository. If you change the name of a repository, no other users of that
44
49
  repository can access it until you send them the new HTTPS or SSH URL to
@@ -1199,6 +1204,14 @@ UpdateRepositoryDescription
1199
1204
 
1200
1205
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codecommit/command/UpdateRepositoryDescriptionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codecommit/Interface/UpdateRepositoryDescriptionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codecommit/Interface/UpdateRepositoryDescriptionCommandOutput/)
1201
1206
 
1207
+ </details>
1208
+ <details>
1209
+ <summary>
1210
+ UpdateRepositoryEncryptionKey
1211
+ </summary>
1212
+
1213
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codecommit/command/UpdateRepositoryEncryptionKeyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codecommit/Interface/UpdateRepositoryEncryptionKeyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codecommit/Interface/UpdateRepositoryEncryptionKeyCommandOutput/)
1214
+
1202
1215
  </details>
1203
1216
  <details>
1204
1217
  <summary>
@@ -80,6 +80,7 @@ const UpdatePullRequestDescriptionCommand_1 = require("./commands/UpdatePullRequ
80
80
  const UpdatePullRequestStatusCommand_1 = require("./commands/UpdatePullRequestStatusCommand");
81
81
  const UpdatePullRequestTitleCommand_1 = require("./commands/UpdatePullRequestTitleCommand");
82
82
  const UpdateRepositoryDescriptionCommand_1 = require("./commands/UpdateRepositoryDescriptionCommand");
83
+ const UpdateRepositoryEncryptionKeyCommand_1 = require("./commands/UpdateRepositoryEncryptionKeyCommand");
83
84
  const UpdateRepositoryNameCommand_1 = require("./commands/UpdateRepositoryNameCommand");
84
85
  const commands = {
85
86
  AssociateApprovalRuleTemplateWithRepositoryCommand: AssociateApprovalRuleTemplateWithRepositoryCommand_1.AssociateApprovalRuleTemplateWithRepositoryCommand,
@@ -159,6 +160,7 @@ const commands = {
159
160
  UpdatePullRequestStatusCommand: UpdatePullRequestStatusCommand_1.UpdatePullRequestStatusCommand,
160
161
  UpdatePullRequestTitleCommand: UpdatePullRequestTitleCommand_1.UpdatePullRequestTitleCommand,
161
162
  UpdateRepositoryDescriptionCommand: UpdateRepositoryDescriptionCommand_1.UpdateRepositoryDescriptionCommand,
163
+ UpdateRepositoryEncryptionKeyCommand: UpdateRepositoryEncryptionKeyCommand_1.UpdateRepositoryEncryptionKeyCommand,
162
164
  UpdateRepositoryNameCommand: UpdateRepositoryNameCommand_1.UpdateRepositoryNameCommand,
163
165
  };
164
166
  class CodeCommit extends CodeCommitClient_1.CodeCommitClient {
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateRepositoryEncryptionKeyCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
+ class UpdateRepositoryEncryptionKeyCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateRepositoryEncryptionKeyCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "CodeCommitClient";
29
+ const commandName = "UpdateRepositoryEncryptionKeyCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "CodeCommit_20150413",
38
+ operation: "UpdateRepositoryEncryptionKey",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_json1_1_1.se_UpdateRepositoryEncryptionKeyCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_json1_1_1.de_UpdateRepositoryEncryptionKeyCommand)(output, context);
49
+ }
50
+ }
51
+ exports.UpdateRepositoryEncryptionKeyCommand = UpdateRepositoryEncryptionKeyCommand;
@@ -78,4 +78,5 @@ tslib_1.__exportStar(require("./UpdatePullRequestDescriptionCommand"), exports);
78
78
  tslib_1.__exportStar(require("./UpdatePullRequestStatusCommand"), exports);
79
79
  tslib_1.__exportStar(require("./UpdatePullRequestTitleCommand"), exports);
80
80
  tslib_1.__exportStar(require("./UpdateRepositoryDescriptionCommand"), exports);
81
+ tslib_1.__exportStar(require("./UpdateRepositoryEncryptionKeyCommand"), exports);
81
82
  tslib_1.__exportStar(require("./UpdateRepositoryNameCommand"), exports);
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BlobIdRequiredException = exports.BlobIdDoesNotExistException = exports.BeforeCommitIdAndAfterCommitIdAreSameException = exports.CommitIdsListRequiredException = exports.CommitIdsLimitExceededException = exports.TipsDivergenceExceededException = exports.MergeOptionRequiredException = exports.MaximumItemsToCompareExceededException = exports.MaximumFileContentToLoadExceededException = exports.InvalidMergeOptionException = exports.InvalidMaxMergeHunksException = exports.InvalidMaxConflictFilesException = exports.InvalidContinuationTokenException = exports.InvalidConflictResolutionStrategyException = exports.InvalidConflictDetailLevelException = exports.InvalidCommitException = exports.CommitRequiredException = exports.CommitDoesNotExistException = exports.ObjectTypeEnum = exports.ChangeTypeEnum = exports.FileModeTypeEnum = exports.MergeOptionTypeEnum = exports.ConflictResolutionStrategyTypeEnum = exports.ConflictDetailLevelTypeEnum = exports.RepositoryNamesRequiredException = exports.MaximumRepositoryNamesExceededException = exports.AuthorDoesNotExistException = exports.RepositoryNameRequiredException = exports.RepositoryDoesNotExistException = exports.MaximumRuleTemplatesAssociatedWithRepositoryException = exports.InvalidRepositoryNameException = exports.InvalidApprovalRuleTemplateNameException = exports.EncryptionKeyUnavailableException = exports.EncryptionKeyNotFoundException = exports.EncryptionKeyDisabledException = exports.EncryptionKeyAccessDeniedException = exports.EncryptionIntegrityChecksFailedException = exports.ApprovalStateRequiredException = exports.ApprovalRuleTemplateNameRequiredException = exports.ApprovalRuleTemplateNameAlreadyExistsException = exports.ApprovalRuleTemplateInUseException = exports.ApprovalRuleTemplateDoesNotExistException = exports.ApprovalRuleTemplateContentRequiredException = exports.OverrideStatus = exports.ApprovalRuleNameRequiredException = exports.ApprovalRuleNameAlreadyExistsException = exports.ApprovalRuleDoesNotExistException = exports.ApprovalRuleContentRequiredException = exports.ApprovalState = exports.ActorDoesNotExistException = void 0;
4
- exports.ReferenceDoesNotExistException = exports.MultipleRepositoriesInPullRequestException = exports.MaximumOpenPullRequestsExceededException = exports.InvalidTitleException = exports.InvalidTargetsException = exports.InvalidTargetException = exports.InvalidReferenceNameException = exports.InvalidDescriptionException = exports.InvalidClientRequestTokenException = exports.IdempotencyParameterMismatchException = exports.PullRequestStatusEnum = exports.SourceFileOrContentRequiredException = exports.SamePathRequestException = exports.RestrictedSourceFileException = exports.PutFileEntryConflictException = exports.PathRequiredException = exports.ParentCommitIdRequiredException = exports.ParentCommitIdOutdatedException = exports.ParentCommitDoesNotExistException = exports.NoChangeException = exports.NameLengthExceededException = exports.MaximumFileEntriesExceededException = exports.InvalidPathException = exports.InvalidParentCommitIdException = exports.InvalidFileModeException = exports.InvalidEmailException = exports.InvalidDeletionParameterException = exports.FolderContentSizeLimitExceededException = exports.FilePathConflictsWithSubmodulePathException = exports.FileNameConflictsWithDirectoryNameException = exports.FileModeRequiredException = exports.FileEntryRequiredException = exports.FileDoesNotExistException = exports.FileContentSizeLimitExceededException = exports.FileContentAndSourceFileSpecifiedException = exports.DirectoryNameConflictsWithFileNameException = exports.CommitMessageLengthExceededException = exports.InvalidCommitIdException = exports.InvalidBranchNameException = exports.CommitIdRequiredException = exports.NumberOfRuleTemplatesExceededException = exports.InvalidApprovalRuleTemplateDescriptionException = exports.InvalidApprovalRuleTemplateContentException = exports.ClientRequestTokenRequiredException = exports.CannotModifyApprovalRuleFromTemplateException = exports.CannotDeleteApprovalRuleFromTemplateException = exports.BranchNameRequiredException = exports.BranchNameIsTagNameException = exports.BranchNameExistsException = exports.BranchDoesNotExistException = void 0;
5
- exports.FolderDoesNotExistException = exports.PathDoesNotExistException = exports.CommitIdDoesNotExistException = exports.RepositoryNotAssociatedWithPullRequestException = exports.RelativeFileVersionEnum = exports.InvalidReactionUserArnException = exports.InvalidBlobIdException = exports.FileTooLargeException = exports.RevisionNotCurrentException = exports.RevisionIdRequiredException = exports.InvalidRevisionIdException = exports.InvalidPullRequestEventTypeException = exports.InvalidMaxResultsException = exports.InvalidActorArnException = exports.PullRequestEventType = exports.InvalidCommentIdException = exports.CommentIdRequiredException = exports.CommentDoesNotExistException = exports.CommentDeletedException = exports.DefaultBranchCannotBeDeletedException = exports.ReplacementTypeRequiredException = exports.ReplacementContentRequiredException = exports.MultipleConflictResolutionEntriesException = exports.MaximumConflictResolutionEntriesExceededException = exports.ManualMergeRequiredException = exports.InvalidReplacementTypeException = exports.InvalidReplacementContentException = exports.InvalidConflictResolutionException = exports.ReplacementTypeEnum = exports.ConcurrentReferenceUpdateException = exports.TooManyTagsException = exports.TagPolicyException = exports.RepositoryNameExistsException = exports.RepositoryLimitExceededException = exports.InvalidTagsMapException = exports.InvalidSystemTagUsageException = exports.InvalidRepositoryDescriptionException = exports.PullRequestIdRequiredException = exports.PullRequestDoesNotExistException = exports.PullRequestAlreadyClosedException = exports.NumberOfRulesExceededException = exports.InvalidPullRequestIdException = exports.InvalidApprovalRuleNameException = exports.InvalidApprovalRuleContentException = exports.TitleRequiredException = exports.TargetsRequiredException = exports.TargetRequiredException = exports.SourceAndDestinationAreSameException = exports.ReferenceTypeNotSupportedException = exports.ReferenceNameRequiredException = void 0;
6
- exports.InvalidPullRequestStatusException = exports.InvalidAuthorArnException = exports.RepositoryTriggerEventEnum = exports.InvalidSourceCommitSpecifierException = exports.InvalidDestinationCommitSpecifierException = void 0;
3
+ exports.BlobIdDoesNotExistException = exports.BeforeCommitIdAndAfterCommitIdAreSameException = exports.BatchGetRepositoriesErrorCodeEnum = exports.CommitIdsListRequiredException = exports.CommitIdsLimitExceededException = exports.TipsDivergenceExceededException = exports.MergeOptionRequiredException = exports.MaximumItemsToCompareExceededException = exports.MaximumFileContentToLoadExceededException = exports.InvalidMergeOptionException = exports.InvalidMaxMergeHunksException = exports.InvalidMaxConflictFilesException = exports.InvalidContinuationTokenException = exports.InvalidConflictResolutionStrategyException = exports.InvalidConflictDetailLevelException = exports.InvalidCommitException = exports.CommitRequiredException = exports.CommitDoesNotExistException = exports.ObjectTypeEnum = exports.ChangeTypeEnum = exports.FileModeTypeEnum = exports.MergeOptionTypeEnum = exports.ConflictResolutionStrategyTypeEnum = exports.ConflictDetailLevelTypeEnum = exports.RepositoryNamesRequiredException = exports.MaximumRepositoryNamesExceededException = exports.AuthorDoesNotExistException = exports.RepositoryNameRequiredException = exports.RepositoryDoesNotExistException = exports.MaximumRuleTemplatesAssociatedWithRepositoryException = exports.InvalidRepositoryNameException = exports.InvalidApprovalRuleTemplateNameException = exports.EncryptionKeyUnavailableException = exports.EncryptionKeyNotFoundException = exports.EncryptionKeyDisabledException = exports.EncryptionKeyAccessDeniedException = exports.EncryptionIntegrityChecksFailedException = exports.ApprovalStateRequiredException = exports.ApprovalRuleTemplateNameRequiredException = exports.ApprovalRuleTemplateNameAlreadyExistsException = exports.ApprovalRuleTemplateInUseException = exports.ApprovalRuleTemplateDoesNotExistException = exports.ApprovalRuleTemplateContentRequiredException = exports.OverrideStatus = exports.ApprovalRuleNameRequiredException = exports.ApprovalRuleNameAlreadyExistsException = exports.ApprovalRuleDoesNotExistException = exports.ApprovalRuleContentRequiredException = exports.ApprovalState = exports.ActorDoesNotExistException = void 0;
4
+ exports.MultipleRepositoriesInPullRequestException = exports.MaximumOpenPullRequestsExceededException = exports.InvalidTitleException = exports.InvalidTargetsException = exports.InvalidTargetException = exports.InvalidReferenceNameException = exports.InvalidDescriptionException = exports.InvalidClientRequestTokenException = exports.IdempotencyParameterMismatchException = exports.PullRequestStatusEnum = exports.SourceFileOrContentRequiredException = exports.SamePathRequestException = exports.RestrictedSourceFileException = exports.PutFileEntryConflictException = exports.PathRequiredException = exports.ParentCommitIdRequiredException = exports.ParentCommitIdOutdatedException = exports.ParentCommitDoesNotExistException = exports.NoChangeException = exports.NameLengthExceededException = exports.MaximumFileEntriesExceededException = exports.InvalidPathException = exports.InvalidParentCommitIdException = exports.InvalidFileModeException = exports.InvalidEmailException = exports.InvalidDeletionParameterException = exports.FolderContentSizeLimitExceededException = exports.FilePathConflictsWithSubmodulePathException = exports.FileNameConflictsWithDirectoryNameException = exports.FileModeRequiredException = exports.FileEntryRequiredException = exports.FileDoesNotExistException = exports.FileContentSizeLimitExceededException = exports.FileContentAndSourceFileSpecifiedException = exports.DirectoryNameConflictsWithFileNameException = exports.CommitMessageLengthExceededException = exports.InvalidCommitIdException = exports.InvalidBranchNameException = exports.CommitIdRequiredException = exports.NumberOfRuleTemplatesExceededException = exports.InvalidApprovalRuleTemplateDescriptionException = exports.InvalidApprovalRuleTemplateContentException = exports.ClientRequestTokenRequiredException = exports.CannotModifyApprovalRuleFromTemplateException = exports.CannotDeleteApprovalRuleFromTemplateException = exports.BranchNameRequiredException = exports.BranchNameIsTagNameException = exports.BranchNameExistsException = exports.BranchDoesNotExistException = exports.BlobIdRequiredException = void 0;
5
+ exports.RepositoryNotAssociatedWithPullRequestException = exports.RelativeFileVersionEnum = exports.InvalidReactionUserArnException = exports.InvalidBlobIdException = exports.FileTooLargeException = exports.RevisionNotCurrentException = exports.RevisionIdRequiredException = exports.InvalidRevisionIdException = exports.InvalidPullRequestEventTypeException = exports.InvalidMaxResultsException = exports.InvalidActorArnException = exports.PullRequestEventType = exports.InvalidCommentIdException = exports.CommentIdRequiredException = exports.CommentDoesNotExistException = exports.CommentDeletedException = exports.DefaultBranchCannotBeDeletedException = exports.ReplacementTypeRequiredException = exports.ReplacementContentRequiredException = exports.MultipleConflictResolutionEntriesException = exports.MaximumConflictResolutionEntriesExceededException = exports.ManualMergeRequiredException = exports.InvalidReplacementTypeException = exports.InvalidReplacementContentException = exports.InvalidConflictResolutionException = exports.ReplacementTypeEnum = exports.ConcurrentReferenceUpdateException = exports.TooManyTagsException = exports.TagPolicyException = exports.RepositoryNameExistsException = exports.RepositoryLimitExceededException = exports.InvalidTagsMapException = exports.InvalidSystemTagUsageException = exports.InvalidRepositoryDescriptionException = exports.EncryptionKeyInvalidUsageException = exports.EncryptionKeyInvalidIdException = exports.PullRequestIdRequiredException = exports.PullRequestDoesNotExistException = exports.PullRequestAlreadyClosedException = exports.NumberOfRulesExceededException = exports.InvalidPullRequestIdException = exports.InvalidApprovalRuleNameException = exports.InvalidApprovalRuleContentException = exports.TitleRequiredException = exports.TargetsRequiredException = exports.TargetRequiredException = exports.SourceAndDestinationAreSameException = exports.ReferenceTypeNotSupportedException = exports.ReferenceNameRequiredException = exports.ReferenceDoesNotExistException = void 0;
6
+ exports.RepositoryTriggerEventEnum = exports.InvalidSourceCommitSpecifierException = exports.InvalidDestinationCommitSpecifierException = exports.FolderDoesNotExistException = exports.PathDoesNotExistException = exports.CommitIdDoesNotExistException = void 0;
7
7
  const CodeCommitServiceException_1 = require("./CodeCommitServiceException");
8
8
  class ActorDoesNotExistException extends CodeCommitServiceException_1.CodeCommitServiceException {
9
9
  constructor(opts) {
@@ -551,6 +551,14 @@ class CommitIdsListRequiredException extends CodeCommitServiceException_1.CodeCo
551
551
  }
552
552
  }
553
553
  exports.CommitIdsListRequiredException = CommitIdsListRequiredException;
554
+ exports.BatchGetRepositoriesErrorCodeEnum = {
555
+ ENCRYPTION_INTEGRITY_CHECKS_FAILED_EXCEPTION: "EncryptionIntegrityChecksFailedException",
556
+ ENCRYPTION_KEY_ACCESS_DENIED_EXCEPTION: "EncryptionKeyAccessDeniedException",
557
+ ENCRYPTION_KEY_DISABLED_EXCEPTION: "EncryptionKeyDisabledException",
558
+ ENCRYPTION_KEY_NOT_FOUND_EXCEPTION: "EncryptionKeyNotFoundException",
559
+ ENCRYPTION_KEY_UNAVAILABLE_EXCEPTION: "EncryptionKeyUnavailableException",
560
+ REPOSITORY_DOES_NOT_EXIST_EXCEPTION: "RepositoryDoesNotExistException",
561
+ };
554
562
  class BeforeCommitIdAndAfterCommitIdAreSameException extends CodeCommitServiceException_1.CodeCommitServiceException {
555
563
  constructor(opts) {
556
564
  super({
@@ -1400,6 +1408,32 @@ class PullRequestIdRequiredException extends CodeCommitServiceException_1.CodeCo
1400
1408
  }
1401
1409
  }
1402
1410
  exports.PullRequestIdRequiredException = PullRequestIdRequiredException;
1411
+ class EncryptionKeyInvalidIdException extends CodeCommitServiceException_1.CodeCommitServiceException {
1412
+ constructor(opts) {
1413
+ super({
1414
+ name: "EncryptionKeyInvalidIdException",
1415
+ $fault: "client",
1416
+ ...opts,
1417
+ });
1418
+ this.name = "EncryptionKeyInvalidIdException";
1419
+ this.$fault = "client";
1420
+ Object.setPrototypeOf(this, EncryptionKeyInvalidIdException.prototype);
1421
+ }
1422
+ }
1423
+ exports.EncryptionKeyInvalidIdException = EncryptionKeyInvalidIdException;
1424
+ class EncryptionKeyInvalidUsageException extends CodeCommitServiceException_1.CodeCommitServiceException {
1425
+ constructor(opts) {
1426
+ super({
1427
+ name: "EncryptionKeyInvalidUsageException",
1428
+ $fault: "client",
1429
+ ...opts,
1430
+ });
1431
+ this.name = "EncryptionKeyInvalidUsageException";
1432
+ this.$fault = "client";
1433
+ Object.setPrototypeOf(this, EncryptionKeyInvalidUsageException.prototype);
1434
+ }
1435
+ }
1436
+ exports.EncryptionKeyInvalidUsageException = EncryptionKeyInvalidUsageException;
1403
1437
  class InvalidRepositoryDescriptionException extends CodeCommitServiceException_1.CodeCommitServiceException {
1404
1438
  constructor(opts) {
1405
1439
  super({
@@ -1895,29 +1929,3 @@ exports.RepositoryTriggerEventEnum = {
1895
1929
  DELETE_REFERENCE: "deleteReference",
1896
1930
  UPDATE_REFERENCE: "updateReference",
1897
1931
  };
1898
- class InvalidAuthorArnException extends CodeCommitServiceException_1.CodeCommitServiceException {
1899
- constructor(opts) {
1900
- super({
1901
- name: "InvalidAuthorArnException",
1902
- $fault: "client",
1903
- ...opts,
1904
- });
1905
- this.name = "InvalidAuthorArnException";
1906
- this.$fault = "client";
1907
- Object.setPrototypeOf(this, InvalidAuthorArnException.prototype);
1908
- }
1909
- }
1910
- exports.InvalidAuthorArnException = InvalidAuthorArnException;
1911
- class InvalidPullRequestStatusException extends CodeCommitServiceException_1.CodeCommitServiceException {
1912
- constructor(opts) {
1913
- super({
1914
- name: "InvalidPullRequestStatusException",
1915
- $fault: "client",
1916
- ...opts,
1917
- });
1918
- this.name = "InvalidPullRequestStatusException";
1919
- this.$fault = "client";
1920
- Object.setPrototypeOf(this, InvalidPullRequestStatusException.prototype);
1921
- }
1922
- }
1923
- exports.InvalidPullRequestStatusException = InvalidPullRequestStatusException;
@@ -1,7 +1,33 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PullRequestStatusRequiredException = exports.InvalidPullRequestStatusUpdateException = exports.PullRequestCannotBeApprovedByAuthorException = exports.MaximumNumberOfApprovalsExceededException = exports.InvalidApprovalStateException = exports.CommentNotCreatedByCallerException = exports.InvalidRuleContentSha256Exception = exports.TagKeysListRequiredException = exports.InvalidTagKeysListException = exports.TagsMapRequiredException = exports.RepositoryTriggersListRequiredException = exports.RepositoryTriggerNameRequiredException = exports.RepositoryTriggerEventsListRequiredException = exports.RepositoryTriggerDestinationArnRequiredException = exports.RepositoryTriggerBranchNameListRequiredException = exports.MaximumRepositoryTriggersExceededException = exports.MaximumBranchesExceededException = exports.InvalidRepositoryTriggerRegionException = exports.InvalidRepositoryTriggerNameException = exports.InvalidRepositoryTriggerEventsException = exports.InvalidRepositoryTriggerDestinationArnException = exports.InvalidRepositoryTriggerCustomDataException = exports.InvalidRepositoryTriggerBranchNameException = exports.SameFileContentException = exports.FileContentRequiredException = exports.ReactionValueRequiredException = exports.ReactionLimitExceededException = exports.InvalidReactionValueException = exports.InvalidRelativeFileVersionEnumException = exports.InvalidFilePositionException = exports.InvalidFileLocationException = exports.CommentContentSizeLimitExceededException = exports.CommentContentRequiredException = exports.OverrideStatusRequiredException = exports.OverrideAlreadySetException = exports.InvalidOverrideStatusException = exports.TipOfSourceReferenceIsDifferentException = exports.PullRequestApprovalRulesNotSatisfiedException = exports.InvalidTargetBranchException = exports.ResourceArnRequiredException = exports.InvalidResourceArnException = exports.SortByEnum = exports.OrderEnum = exports.InvalidSortByException = exports.InvalidOrderException = void 0;
3
+ exports.EncryptionKeyRequiredException = exports.PullRequestStatusRequiredException = exports.InvalidPullRequestStatusUpdateException = exports.PullRequestCannotBeApprovedByAuthorException = exports.MaximumNumberOfApprovalsExceededException = exports.InvalidApprovalStateException = exports.CommentNotCreatedByCallerException = exports.InvalidRuleContentSha256Exception = exports.TagKeysListRequiredException = exports.InvalidTagKeysListException = exports.TagsMapRequiredException = exports.RepositoryTriggersListRequiredException = exports.RepositoryTriggerNameRequiredException = exports.RepositoryTriggerEventsListRequiredException = exports.RepositoryTriggerDestinationArnRequiredException = exports.RepositoryTriggerBranchNameListRequiredException = exports.MaximumRepositoryTriggersExceededException = exports.MaximumBranchesExceededException = exports.InvalidRepositoryTriggerRegionException = exports.InvalidRepositoryTriggerNameException = exports.InvalidRepositoryTriggerEventsException = exports.InvalidRepositoryTriggerDestinationArnException = exports.InvalidRepositoryTriggerCustomDataException = exports.InvalidRepositoryTriggerBranchNameException = exports.SameFileContentException = exports.FileContentRequiredException = exports.ReactionValueRequiredException = exports.ReactionLimitExceededException = exports.InvalidReactionValueException = exports.InvalidRelativeFileVersionEnumException = exports.InvalidFilePositionException = exports.InvalidFileLocationException = exports.CommentContentSizeLimitExceededException = exports.CommentContentRequiredException = exports.OverrideStatusRequiredException = exports.OverrideAlreadySetException = exports.InvalidOverrideStatusException = exports.TipOfSourceReferenceIsDifferentException = exports.PullRequestApprovalRulesNotSatisfiedException = exports.InvalidTargetBranchException = exports.ResourceArnRequiredException = exports.InvalidResourceArnException = exports.SortByEnum = exports.OrderEnum = exports.InvalidSortByException = exports.InvalidOrderException = exports.InvalidPullRequestStatusException = exports.InvalidAuthorArnException = void 0;
4
4
  const CodeCommitServiceException_1 = require("./CodeCommitServiceException");
5
+ class InvalidAuthorArnException extends CodeCommitServiceException_1.CodeCommitServiceException {
6
+ constructor(opts) {
7
+ super({
8
+ name: "InvalidAuthorArnException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ this.name = "InvalidAuthorArnException";
13
+ this.$fault = "client";
14
+ Object.setPrototypeOf(this, InvalidAuthorArnException.prototype);
15
+ }
16
+ }
17
+ exports.InvalidAuthorArnException = InvalidAuthorArnException;
18
+ class InvalidPullRequestStatusException extends CodeCommitServiceException_1.CodeCommitServiceException {
19
+ constructor(opts) {
20
+ super({
21
+ name: "InvalidPullRequestStatusException",
22
+ $fault: "client",
23
+ ...opts,
24
+ });
25
+ this.name = "InvalidPullRequestStatusException";
26
+ this.$fault = "client";
27
+ Object.setPrototypeOf(this, InvalidPullRequestStatusException.prototype);
28
+ }
29
+ }
30
+ exports.InvalidPullRequestStatusException = InvalidPullRequestStatusException;
5
31
  class InvalidOrderException extends CodeCommitServiceException_1.CodeCommitServiceException {
6
32
  constructor(opts) {
7
33
  super({
@@ -569,3 +595,16 @@ class PullRequestStatusRequiredException extends CodeCommitServiceException_1.Co
569
595
  }
570
596
  }
571
597
  exports.PullRequestStatusRequiredException = PullRequestStatusRequiredException;
598
+ class EncryptionKeyRequiredException extends CodeCommitServiceException_1.CodeCommitServiceException {
599
+ constructor(opts) {
600
+ super({
601
+ name: "EncryptionKeyRequiredException",
602
+ $fault: "client",
603
+ ...opts,
604
+ });
605
+ this.name = "EncryptionKeyRequiredException";
606
+ this.$fault = "client";
607
+ Object.setPrototypeOf(this, EncryptionKeyRequiredException.prototype);
608
+ }
609
+ }
610
+ exports.EncryptionKeyRequiredException = EncryptionKeyRequiredException;
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeMergeConflicts = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCommitClient_1 = require("../CodeCommitClient");
5
6
  const DescribeMergeConflictsCommand_1 = require("../commands/DescribeMergeConflictsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeMergeConflictsCommand_1.DescribeMergeConflictsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeMergeConflicts(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxMergeHunks"] = config.pageSize;
16
- if (config.client instanceof CodeCommitClient_1.CodeCommitClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeMergeConflicts = paginateDescribeMergeConflicts;
7
+ exports.paginateDescribeMergeConflicts = (0, core_1.createPaginator)(CodeCommitClient_1.CodeCommitClient, DescribeMergeConflictsCommand_1.DescribeMergeConflictsCommand, "nextToken", "nextToken", "maxMergeHunks");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribePullRequestEvents = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCommitClient_1 = require("../CodeCommitClient");
5
6
  const DescribePullRequestEventsCommand_1 = require("../commands/DescribePullRequestEventsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribePullRequestEventsCommand_1.DescribePullRequestEventsCommand(input), ...args);
8
- };
9
- async function* paginateDescribePullRequestEvents(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof CodeCommitClient_1.CodeCommitClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribePullRequestEvents = paginateDescribePullRequestEvents;
7
+ exports.paginateDescribePullRequestEvents = (0, core_1.createPaginator)(CodeCommitClient_1.CodeCommitClient, DescribePullRequestEventsCommand_1.DescribePullRequestEventsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetCommentReactions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCommitClient_1 = require("../CodeCommitClient");
5
6
  const GetCommentReactionsCommand_1 = require("../commands/GetCommentReactionsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetCommentReactionsCommand_1.GetCommentReactionsCommand(input), ...args);
8
- };
9
- async function* paginateGetCommentReactions(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof CodeCommitClient_1.CodeCommitClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetCommentReactions = paginateGetCommentReactions;
7
+ exports.paginateGetCommentReactions = (0, core_1.createPaginator)(CodeCommitClient_1.CodeCommitClient, GetCommentReactionsCommand_1.GetCommentReactionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetCommentsForComparedCommit = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCommitClient_1 = require("../CodeCommitClient");
5
6
  const GetCommentsForComparedCommitCommand_1 = require("../commands/GetCommentsForComparedCommitCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetCommentsForComparedCommitCommand_1.GetCommentsForComparedCommitCommand(input), ...args);
8
- };
9
- async function* paginateGetCommentsForComparedCommit(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof CodeCommitClient_1.CodeCommitClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetCommentsForComparedCommit = paginateGetCommentsForComparedCommit;
7
+ exports.paginateGetCommentsForComparedCommit = (0, core_1.createPaginator)(CodeCommitClient_1.CodeCommitClient, GetCommentsForComparedCommitCommand_1.GetCommentsForComparedCommitCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetCommentsForPullRequest = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCommitClient_1 = require("../CodeCommitClient");
5
6
  const GetCommentsForPullRequestCommand_1 = require("../commands/GetCommentsForPullRequestCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetCommentsForPullRequestCommand_1.GetCommentsForPullRequestCommand(input), ...args);
8
- };
9
- async function* paginateGetCommentsForPullRequest(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof CodeCommitClient_1.CodeCommitClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetCommentsForPullRequest = paginateGetCommentsForPullRequest;
7
+ exports.paginateGetCommentsForPullRequest = (0, core_1.createPaginator)(CodeCommitClient_1.CodeCommitClient, GetCommentsForPullRequestCommand_1.GetCommentsForPullRequestCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetDifferences = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCommitClient_1 = require("../CodeCommitClient");
5
6
  const GetDifferencesCommand_1 = require("../commands/GetDifferencesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetDifferencesCommand_1.GetDifferencesCommand(input), ...args);
8
- };
9
- async function* paginateGetDifferences(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof CodeCommitClient_1.CodeCommitClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetDifferences = paginateGetDifferences;
7
+ exports.paginateGetDifferences = (0, core_1.createPaginator)(CodeCommitClient_1.CodeCommitClient, GetDifferencesCommand_1.GetDifferencesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetMergeConflicts = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCommitClient_1 = require("../CodeCommitClient");
5
6
  const GetMergeConflictsCommand_1 = require("../commands/GetMergeConflictsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetMergeConflictsCommand_1.GetMergeConflictsCommand(input), ...args);
8
- };
9
- async function* paginateGetMergeConflicts(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxConflictFiles"] = config.pageSize;
16
- if (config.client instanceof CodeCommitClient_1.CodeCommitClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetMergeConflicts = paginateGetMergeConflicts;
7
+ exports.paginateGetMergeConflicts = (0, core_1.createPaginator)(CodeCommitClient_1.CodeCommitClient, GetMergeConflictsCommand_1.GetMergeConflictsCommand, "nextToken", "nextToken", "maxConflictFiles");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListApprovalRuleTemplates = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCommitClient_1 = require("../CodeCommitClient");
5
6
  const ListApprovalRuleTemplatesCommand_1 = require("../commands/ListApprovalRuleTemplatesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListApprovalRuleTemplatesCommand_1.ListApprovalRuleTemplatesCommand(input), ...args);
8
- };
9
- async function* paginateListApprovalRuleTemplates(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof CodeCommitClient_1.CodeCommitClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListApprovalRuleTemplates = paginateListApprovalRuleTemplates;
7
+ exports.paginateListApprovalRuleTemplates = (0, core_1.createPaginator)(CodeCommitClient_1.CodeCommitClient, ListApprovalRuleTemplatesCommand_1.ListApprovalRuleTemplatesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAssociatedApprovalRuleTemplatesForRepository = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCommitClient_1 = require("../CodeCommitClient");
5
6
  const ListAssociatedApprovalRuleTemplatesForRepositoryCommand_1 = require("../commands/ListAssociatedApprovalRuleTemplatesForRepositoryCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAssociatedApprovalRuleTemplatesForRepositoryCommand_1.ListAssociatedApprovalRuleTemplatesForRepositoryCommand(input), ...args);
8
- };
9
- async function* paginateListAssociatedApprovalRuleTemplatesForRepository(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof CodeCommitClient_1.CodeCommitClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListAssociatedApprovalRuleTemplatesForRepository = paginateListAssociatedApprovalRuleTemplatesForRepository;
7
+ exports.paginateListAssociatedApprovalRuleTemplatesForRepository = (0, core_1.createPaginator)(CodeCommitClient_1.CodeCommitClient, ListAssociatedApprovalRuleTemplatesForRepositoryCommand_1.ListAssociatedApprovalRuleTemplatesForRepositoryCommand, "nextToken", "nextToken", "maxResults");
@@ -1,28 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListBranches = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCommitClient_1 = require("../CodeCommitClient");
5
6
  const ListBranchesCommand_1 = require("../commands/ListBranchesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListBranchesCommand_1.ListBranchesCommand(input), ...args);
8
- };
9
- async function* paginateListBranches(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- if (config.client instanceof CodeCommitClient_1.CodeCommitClient) {
16
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
17
- }
18
- else {
19
- throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
20
- }
21
- yield page;
22
- const prevToken = token;
23
- token = page.nextToken;
24
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
25
- }
26
- return undefined;
27
- }
28
- exports.paginateListBranches = paginateListBranches;
7
+ exports.paginateListBranches = (0, core_1.createPaginator)(CodeCommitClient_1.CodeCommitClient, ListBranchesCommand_1.ListBranchesCommand, "nextToken", "nextToken", "");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListFileCommitHistory = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCommitClient_1 = require("../CodeCommitClient");
5
6
  const ListFileCommitHistoryCommand_1 = require("../commands/ListFileCommitHistoryCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListFileCommitHistoryCommand_1.ListFileCommitHistoryCommand(input), ...args);
8
- };
9
- async function* paginateListFileCommitHistory(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof CodeCommitClient_1.CodeCommitClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListFileCommitHistory = paginateListFileCommitHistory;
7
+ exports.paginateListFileCommitHistory = (0, core_1.createPaginator)(CodeCommitClient_1.CodeCommitClient, ListFileCommitHistoryCommand_1.ListFileCommitHistoryCommand, "nextToken", "nextToken", "maxResults");