@aws-sdk/client-codecommit 3.478.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 (36) 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/protocols/Aws_json1_1.js +110 -5
  8. package/dist-es/CodeCommit.js +2 -0
  9. package/dist-es/commands/UpdateRepositoryEncryptionKeyCommand.js +47 -0
  10. package/dist-es/commands/index.js +1 -0
  11. package/dist-es/models/models_0.js +32 -24
  12. package/dist-es/models/models_1.js +36 -0
  13. package/dist-es/protocols/Aws_json1_1.js +105 -2
  14. package/dist-types/CodeCommit.d.ts +12 -0
  15. package/dist-types/CodeCommitClient.d.ts +8 -2
  16. package/dist-types/commands/BatchGetRepositoriesCommand.d.ts +9 -0
  17. package/dist-types/commands/CreateRepositoryCommand.d.ts +9 -0
  18. package/dist-types/commands/GetRepositoryCommand.d.ts +1 -0
  19. package/dist-types/commands/ListFileCommitHistoryCommand.d.ts +2 -1
  20. package/dist-types/commands/ListPullRequestsCommand.d.ts +1 -2
  21. package/dist-types/commands/UpdateRepositoryEncryptionKeyCommand.d.ts +115 -0
  22. package/dist-types/commands/index.d.ts +1 -0
  23. package/dist-types/index.d.ts +5 -0
  24. package/dist-types/models/models_0.d.ts +86 -71
  25. package/dist-types/models/models_1.d.ts +122 -1
  26. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  27. package/dist-types/ts3.4/CodeCommit.d.ts +17 -0
  28. package/dist-types/ts3.4/CodeCommitClient.d.ts +6 -0
  29. package/dist-types/ts3.4/commands/ListFileCommitHistoryCommand.d.ts +2 -4
  30. package/dist-types/ts3.4/commands/ListPullRequestsCommand.d.ts +4 -2
  31. package/dist-types/ts3.4/commands/UpdateRepositoryEncryptionKeyCommand.d.ts +42 -0
  32. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  33. package/dist-types/ts3.4/models/models_0.d.ts +39 -28
  34. package/dist-types/ts3.4/models/models_1.d.ts +45 -0
  35. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
  36. package/package.json +1 -1
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,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.se_ListTagsForResourceCommand = exports.se_ListRepositoriesForApprovalRuleTemplateCommand = exports.se_ListRepositoriesCommand = exports.se_ListPullRequestsCommand = exports.se_ListFileCommitHistoryCommand = exports.se_ListBranchesCommand = exports.se_ListAssociatedApprovalRuleTemplatesForRepositoryCommand = exports.se_ListApprovalRuleTemplatesCommand = exports.se_GetRepositoryTriggersCommand = exports.se_GetRepositoryCommand = exports.se_GetPullRequestOverrideStateCommand = exports.se_GetPullRequestApprovalStatesCommand = exports.se_GetPullRequestCommand = exports.se_GetMergeOptionsCommand = exports.se_GetMergeConflictsCommand = exports.se_GetMergeCommitCommand = exports.se_GetFolderCommand = exports.se_GetFileCommand = exports.se_GetDifferencesCommand = exports.se_GetCommitCommand = exports.se_GetCommentsForPullRequestCommand = exports.se_GetCommentsForComparedCommitCommand = exports.se_GetCommentReactionsCommand = exports.se_GetCommentCommand = exports.se_GetBranchCommand = exports.se_GetBlobCommand = exports.se_GetApprovalRuleTemplateCommand = exports.se_EvaluatePullRequestApprovalRulesCommand = exports.se_DisassociateApprovalRuleTemplateFromRepositoryCommand = exports.se_DescribePullRequestEventsCommand = exports.se_DescribeMergeConflictsCommand = exports.se_DeleteRepositoryCommand = exports.se_DeletePullRequestApprovalRuleCommand = exports.se_DeleteFileCommand = exports.se_DeleteCommentContentCommand = exports.se_DeleteBranchCommand = exports.se_DeleteApprovalRuleTemplateCommand = exports.se_CreateUnreferencedMergeCommitCommand = exports.se_CreateRepositoryCommand = exports.se_CreatePullRequestApprovalRuleCommand = exports.se_CreatePullRequestCommand = exports.se_CreateCommitCommand = exports.se_CreateBranchCommand = exports.se_CreateApprovalRuleTemplateCommand = exports.se_BatchGetRepositoriesCommand = exports.se_BatchGetCommitsCommand = exports.se_BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand = exports.se_BatchDescribeMergeConflictsCommand = exports.se_BatchAssociateApprovalRuleTemplateWithRepositoriesCommand = exports.se_AssociateApprovalRuleTemplateWithRepositoryCommand = void 0;
4
- exports.de_DisassociateApprovalRuleTemplateFromRepositoryCommand = exports.de_DescribePullRequestEventsCommand = exports.de_DescribeMergeConflictsCommand = exports.de_DeleteRepositoryCommand = exports.de_DeletePullRequestApprovalRuleCommand = exports.de_DeleteFileCommand = exports.de_DeleteCommentContentCommand = exports.de_DeleteBranchCommand = exports.de_DeleteApprovalRuleTemplateCommand = exports.de_CreateUnreferencedMergeCommitCommand = exports.de_CreateRepositoryCommand = exports.de_CreatePullRequestApprovalRuleCommand = exports.de_CreatePullRequestCommand = exports.de_CreateCommitCommand = exports.de_CreateBranchCommand = exports.de_CreateApprovalRuleTemplateCommand = exports.de_BatchGetRepositoriesCommand = exports.de_BatchGetCommitsCommand = exports.de_BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand = exports.de_BatchDescribeMergeConflictsCommand = exports.de_BatchAssociateApprovalRuleTemplateWithRepositoriesCommand = exports.de_AssociateApprovalRuleTemplateWithRepositoryCommand = exports.se_UpdateRepositoryNameCommand = exports.se_UpdateRepositoryDescriptionCommand = exports.se_UpdatePullRequestTitleCommand = exports.se_UpdatePullRequestStatusCommand = exports.se_UpdatePullRequestDescriptionCommand = exports.se_UpdatePullRequestApprovalStateCommand = exports.se_UpdatePullRequestApprovalRuleContentCommand = exports.se_UpdateDefaultBranchCommand = exports.se_UpdateCommentCommand = exports.se_UpdateApprovalRuleTemplateNameCommand = exports.se_UpdateApprovalRuleTemplateDescriptionCommand = exports.se_UpdateApprovalRuleTemplateContentCommand = exports.se_UntagResourceCommand = exports.se_TestRepositoryTriggersCommand = exports.se_TagResourceCommand = exports.se_PutRepositoryTriggersCommand = exports.se_PutFileCommand = exports.se_PutCommentReactionCommand = exports.se_PostCommentReplyCommand = exports.se_PostCommentForPullRequestCommand = exports.se_PostCommentForComparedCommitCommand = exports.se_OverridePullRequestApprovalRulesCommand = exports.se_MergePullRequestByThreeWayCommand = exports.se_MergePullRequestBySquashCommand = exports.se_MergePullRequestByFastForwardCommand = exports.se_MergeBranchesByThreeWayCommand = exports.se_MergeBranchesBySquashCommand = exports.se_MergeBranchesByFastForwardCommand = void 0;
5
- exports.de_UpdatePullRequestApprovalRuleContentCommand = exports.de_UpdateDefaultBranchCommand = exports.de_UpdateCommentCommand = exports.de_UpdateApprovalRuleTemplateNameCommand = exports.de_UpdateApprovalRuleTemplateDescriptionCommand = exports.de_UpdateApprovalRuleTemplateContentCommand = exports.de_UntagResourceCommand = exports.de_TestRepositoryTriggersCommand = exports.de_TagResourceCommand = exports.de_PutRepositoryTriggersCommand = exports.de_PutFileCommand = exports.de_PutCommentReactionCommand = exports.de_PostCommentReplyCommand = exports.de_PostCommentForPullRequestCommand = exports.de_PostCommentForComparedCommitCommand = exports.de_OverridePullRequestApprovalRulesCommand = exports.de_MergePullRequestByThreeWayCommand = exports.de_MergePullRequestBySquashCommand = exports.de_MergePullRequestByFastForwardCommand = exports.de_MergeBranchesByThreeWayCommand = exports.de_MergeBranchesBySquashCommand = exports.de_MergeBranchesByFastForwardCommand = exports.de_ListTagsForResourceCommand = exports.de_ListRepositoriesForApprovalRuleTemplateCommand = exports.de_ListRepositoriesCommand = exports.de_ListPullRequestsCommand = exports.de_ListFileCommitHistoryCommand = exports.de_ListBranchesCommand = exports.de_ListAssociatedApprovalRuleTemplatesForRepositoryCommand = exports.de_ListApprovalRuleTemplatesCommand = exports.de_GetRepositoryTriggersCommand = exports.de_GetRepositoryCommand = exports.de_GetPullRequestOverrideStateCommand = exports.de_GetPullRequestApprovalStatesCommand = exports.de_GetPullRequestCommand = exports.de_GetMergeOptionsCommand = exports.de_GetMergeConflictsCommand = exports.de_GetMergeCommitCommand = exports.de_GetFolderCommand = exports.de_GetFileCommand = exports.de_GetDifferencesCommand = exports.de_GetCommitCommand = exports.de_GetCommentsForPullRequestCommand = exports.de_GetCommentsForComparedCommitCommand = exports.de_GetCommentReactionsCommand = exports.de_GetCommentCommand = exports.de_GetBranchCommand = exports.de_GetBlobCommand = exports.de_GetApprovalRuleTemplateCommand = exports.de_EvaluatePullRequestApprovalRulesCommand = void 0;
6
- exports.de_UpdateRepositoryNameCommand = exports.de_UpdateRepositoryDescriptionCommand = exports.de_UpdatePullRequestTitleCommand = exports.de_UpdatePullRequestStatusCommand = exports.de_UpdatePullRequestDescriptionCommand = exports.de_UpdatePullRequestApprovalStateCommand = void 0;
4
+ exports.de_DescribePullRequestEventsCommand = exports.de_DescribeMergeConflictsCommand = exports.de_DeleteRepositoryCommand = exports.de_DeletePullRequestApprovalRuleCommand = exports.de_DeleteFileCommand = exports.de_DeleteCommentContentCommand = exports.de_DeleteBranchCommand = exports.de_DeleteApprovalRuleTemplateCommand = exports.de_CreateUnreferencedMergeCommitCommand = exports.de_CreateRepositoryCommand = exports.de_CreatePullRequestApprovalRuleCommand = exports.de_CreatePullRequestCommand = exports.de_CreateCommitCommand = exports.de_CreateBranchCommand = exports.de_CreateApprovalRuleTemplateCommand = exports.de_BatchGetRepositoriesCommand = exports.de_BatchGetCommitsCommand = exports.de_BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand = exports.de_BatchDescribeMergeConflictsCommand = exports.de_BatchAssociateApprovalRuleTemplateWithRepositoriesCommand = exports.de_AssociateApprovalRuleTemplateWithRepositoryCommand = exports.se_UpdateRepositoryNameCommand = exports.se_UpdateRepositoryEncryptionKeyCommand = exports.se_UpdateRepositoryDescriptionCommand = exports.se_UpdatePullRequestTitleCommand = exports.se_UpdatePullRequestStatusCommand = exports.se_UpdatePullRequestDescriptionCommand = exports.se_UpdatePullRequestApprovalStateCommand = exports.se_UpdatePullRequestApprovalRuleContentCommand = exports.se_UpdateDefaultBranchCommand = exports.se_UpdateCommentCommand = exports.se_UpdateApprovalRuleTemplateNameCommand = exports.se_UpdateApprovalRuleTemplateDescriptionCommand = exports.se_UpdateApprovalRuleTemplateContentCommand = exports.se_UntagResourceCommand = exports.se_TestRepositoryTriggersCommand = exports.se_TagResourceCommand = exports.se_PutRepositoryTriggersCommand = exports.se_PutFileCommand = exports.se_PutCommentReactionCommand = exports.se_PostCommentReplyCommand = exports.se_PostCommentForPullRequestCommand = exports.se_PostCommentForComparedCommitCommand = exports.se_OverridePullRequestApprovalRulesCommand = exports.se_MergePullRequestByThreeWayCommand = exports.se_MergePullRequestBySquashCommand = exports.se_MergePullRequestByFastForwardCommand = exports.se_MergeBranchesByThreeWayCommand = exports.se_MergeBranchesBySquashCommand = exports.se_MergeBranchesByFastForwardCommand = void 0;
5
+ exports.de_UpdateDefaultBranchCommand = exports.de_UpdateCommentCommand = exports.de_UpdateApprovalRuleTemplateNameCommand = exports.de_UpdateApprovalRuleTemplateDescriptionCommand = exports.de_UpdateApprovalRuleTemplateContentCommand = exports.de_UntagResourceCommand = exports.de_TestRepositoryTriggersCommand = exports.de_TagResourceCommand = exports.de_PutRepositoryTriggersCommand = exports.de_PutFileCommand = exports.de_PutCommentReactionCommand = exports.de_PostCommentReplyCommand = exports.de_PostCommentForPullRequestCommand = exports.de_PostCommentForComparedCommitCommand = exports.de_OverridePullRequestApprovalRulesCommand = exports.de_MergePullRequestByThreeWayCommand = exports.de_MergePullRequestBySquashCommand = exports.de_MergePullRequestByFastForwardCommand = exports.de_MergeBranchesByThreeWayCommand = exports.de_MergeBranchesBySquashCommand = exports.de_MergeBranchesByFastForwardCommand = exports.de_ListTagsForResourceCommand = exports.de_ListRepositoriesForApprovalRuleTemplateCommand = exports.de_ListRepositoriesCommand = exports.de_ListPullRequestsCommand = exports.de_ListFileCommitHistoryCommand = exports.de_ListBranchesCommand = exports.de_ListAssociatedApprovalRuleTemplatesForRepositoryCommand = exports.de_ListApprovalRuleTemplatesCommand = exports.de_GetRepositoryTriggersCommand = exports.de_GetRepositoryCommand = exports.de_GetPullRequestOverrideStateCommand = exports.de_GetPullRequestApprovalStatesCommand = exports.de_GetPullRequestCommand = exports.de_GetMergeOptionsCommand = exports.de_GetMergeConflictsCommand = exports.de_GetMergeCommitCommand = exports.de_GetFolderCommand = exports.de_GetFileCommand = exports.de_GetDifferencesCommand = exports.de_GetCommitCommand = exports.de_GetCommentsForPullRequestCommand = exports.de_GetCommentsForComparedCommitCommand = exports.de_GetCommentReactionsCommand = exports.de_GetCommentCommand = exports.de_GetBranchCommand = exports.de_GetBlobCommand = exports.de_GetApprovalRuleTemplateCommand = exports.de_EvaluatePullRequestApprovalRulesCommand = exports.de_DisassociateApprovalRuleTemplateFromRepositoryCommand = void 0;
6
+ exports.de_UpdateRepositoryNameCommand = exports.de_UpdateRepositoryEncryptionKeyCommand = exports.de_UpdateRepositoryDescriptionCommand = exports.de_UpdatePullRequestTitleCommand = exports.de_UpdatePullRequestStatusCommand = exports.de_UpdatePullRequestDescriptionCommand = exports.de_UpdatePullRequestApprovalStateCommand = exports.de_UpdatePullRequestApprovalRuleContentCommand = void 0;
7
7
  const protocol_http_1 = require("@smithy/protocol-http");
8
8
  const smithy_client_1 = require("@smithy/smithy-client");
9
9
  const uuid_1 = require("uuid");
@@ -549,6 +549,13 @@ const se_UpdateRepositoryDescriptionCommand = async (input, context) => {
549
549
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
550
550
  };
551
551
  exports.se_UpdateRepositoryDescriptionCommand = se_UpdateRepositoryDescriptionCommand;
552
+ const se_UpdateRepositoryEncryptionKeyCommand = async (input, context) => {
553
+ const headers = sharedHeaders("UpdateRepositoryEncryptionKey");
554
+ let body;
555
+ body = JSON.stringify((0, smithy_client_1._json)(input));
556
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
557
+ };
558
+ exports.se_UpdateRepositoryEncryptionKeyCommand = se_UpdateRepositoryEncryptionKeyCommand;
552
559
  const se_UpdateRepositoryNameCommand = async (input, context) => {
553
560
  const headers = sharedHeaders("UpdateRepositoryName");
554
561
  let body;
@@ -1420,6 +1427,12 @@ const de_CreateRepositoryCommandError = async (output, context) => {
1420
1427
  case "EncryptionKeyDisabledException":
1421
1428
  case "com.amazonaws.codecommit#EncryptionKeyDisabledException":
1422
1429
  throw await de_EncryptionKeyDisabledExceptionRes(parsedOutput, context);
1430
+ case "EncryptionKeyInvalidIdException":
1431
+ case "com.amazonaws.codecommit#EncryptionKeyInvalidIdException":
1432
+ throw await de_EncryptionKeyInvalidIdExceptionRes(parsedOutput, context);
1433
+ case "EncryptionKeyInvalidUsageException":
1434
+ case "com.amazonaws.codecommit#EncryptionKeyInvalidUsageException":
1435
+ throw await de_EncryptionKeyInvalidUsageExceptionRes(parsedOutput, context);
1423
1436
  case "EncryptionKeyNotFoundException":
1424
1437
  case "com.amazonaws.codecommit#EncryptionKeyNotFoundException":
1425
1438
  throw await de_EncryptionKeyNotFoundExceptionRes(parsedOutput, context);
@@ -6076,6 +6089,69 @@ const de_UpdateRepositoryDescriptionCommandError = async (output, context) => {
6076
6089
  });
6077
6090
  }
6078
6091
  };
6092
+ const de_UpdateRepositoryEncryptionKeyCommand = async (output, context) => {
6093
+ if (output.statusCode >= 300) {
6094
+ return de_UpdateRepositoryEncryptionKeyCommandError(output, context);
6095
+ }
6096
+ const data = await parseBody(output.body, context);
6097
+ let contents = {};
6098
+ contents = (0, smithy_client_1._json)(data);
6099
+ const response = {
6100
+ $metadata: deserializeMetadata(output),
6101
+ ...contents,
6102
+ };
6103
+ return response;
6104
+ };
6105
+ exports.de_UpdateRepositoryEncryptionKeyCommand = de_UpdateRepositoryEncryptionKeyCommand;
6106
+ const de_UpdateRepositoryEncryptionKeyCommandError = async (output, context) => {
6107
+ const parsedOutput = {
6108
+ ...output,
6109
+ body: await parseErrorBody(output.body, context),
6110
+ };
6111
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6112
+ switch (errorCode) {
6113
+ case "EncryptionIntegrityChecksFailedException":
6114
+ case "com.amazonaws.codecommit#EncryptionIntegrityChecksFailedException":
6115
+ throw await de_EncryptionIntegrityChecksFailedExceptionRes(parsedOutput, context);
6116
+ case "EncryptionKeyAccessDeniedException":
6117
+ case "com.amazonaws.codecommit#EncryptionKeyAccessDeniedException":
6118
+ throw await de_EncryptionKeyAccessDeniedExceptionRes(parsedOutput, context);
6119
+ case "EncryptionKeyDisabledException":
6120
+ case "com.amazonaws.codecommit#EncryptionKeyDisabledException":
6121
+ throw await de_EncryptionKeyDisabledExceptionRes(parsedOutput, context);
6122
+ case "EncryptionKeyInvalidIdException":
6123
+ case "com.amazonaws.codecommit#EncryptionKeyInvalidIdException":
6124
+ throw await de_EncryptionKeyInvalidIdExceptionRes(parsedOutput, context);
6125
+ case "EncryptionKeyInvalidUsageException":
6126
+ case "com.amazonaws.codecommit#EncryptionKeyInvalidUsageException":
6127
+ throw await de_EncryptionKeyInvalidUsageExceptionRes(parsedOutput, context);
6128
+ case "EncryptionKeyNotFoundException":
6129
+ case "com.amazonaws.codecommit#EncryptionKeyNotFoundException":
6130
+ throw await de_EncryptionKeyNotFoundExceptionRes(parsedOutput, context);
6131
+ case "EncryptionKeyRequiredException":
6132
+ case "com.amazonaws.codecommit#EncryptionKeyRequiredException":
6133
+ throw await de_EncryptionKeyRequiredExceptionRes(parsedOutput, context);
6134
+ case "EncryptionKeyUnavailableException":
6135
+ case "com.amazonaws.codecommit#EncryptionKeyUnavailableException":
6136
+ throw await de_EncryptionKeyUnavailableExceptionRes(parsedOutput, context);
6137
+ case "InvalidRepositoryNameException":
6138
+ case "com.amazonaws.codecommit#InvalidRepositoryNameException":
6139
+ throw await de_InvalidRepositoryNameExceptionRes(parsedOutput, context);
6140
+ case "RepositoryDoesNotExistException":
6141
+ case "com.amazonaws.codecommit#RepositoryDoesNotExistException":
6142
+ throw await de_RepositoryDoesNotExistExceptionRes(parsedOutput, context);
6143
+ case "RepositoryNameRequiredException":
6144
+ case "com.amazonaws.codecommit#RepositoryNameRequiredException":
6145
+ throw await de_RepositoryNameRequiredExceptionRes(parsedOutput, context);
6146
+ default:
6147
+ const parsedBody = parsedOutput.body;
6148
+ return throwDefaultError({
6149
+ output,
6150
+ parsedBody,
6151
+ errorCode,
6152
+ });
6153
+ }
6154
+ };
6079
6155
  const de_UpdateRepositoryNameCommand = async (output, context) => {
6080
6156
  if (output.statusCode >= 300) {
6081
6157
  return de_UpdateRepositoryNameCommandError(output, context);
@@ -6484,6 +6560,24 @@ const de_EncryptionKeyDisabledExceptionRes = async (parsedOutput, context) => {
6484
6560
  });
6485
6561
  return (0, smithy_client_1.decorateServiceException)(exception, body);
6486
6562
  };
6563
+ const de_EncryptionKeyInvalidIdExceptionRes = async (parsedOutput, context) => {
6564
+ const body = parsedOutput.body;
6565
+ const deserialized = (0, smithy_client_1._json)(body);
6566
+ const exception = new models_0_1.EncryptionKeyInvalidIdException({
6567
+ $metadata: deserializeMetadata(parsedOutput),
6568
+ ...deserialized,
6569
+ });
6570
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
6571
+ };
6572
+ const de_EncryptionKeyInvalidUsageExceptionRes = async (parsedOutput, context) => {
6573
+ const body = parsedOutput.body;
6574
+ const deserialized = (0, smithy_client_1._json)(body);
6575
+ const exception = new models_0_1.EncryptionKeyInvalidUsageException({
6576
+ $metadata: deserializeMetadata(parsedOutput),
6577
+ ...deserialized,
6578
+ });
6579
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
6580
+ };
6487
6581
  const de_EncryptionKeyNotFoundExceptionRes = async (parsedOutput, context) => {
6488
6582
  const body = parsedOutput.body;
6489
6583
  const deserialized = (0, smithy_client_1._json)(body);
@@ -6493,6 +6587,15 @@ const de_EncryptionKeyNotFoundExceptionRes = async (parsedOutput, context) => {
6493
6587
  });
6494
6588
  return (0, smithy_client_1.decorateServiceException)(exception, body);
6495
6589
  };
6590
+ const de_EncryptionKeyRequiredExceptionRes = async (parsedOutput, context) => {
6591
+ const body = parsedOutput.body;
6592
+ const deserialized = (0, smithy_client_1._json)(body);
6593
+ const exception = new models_1_1.EncryptionKeyRequiredException({
6594
+ $metadata: deserializeMetadata(parsedOutput),
6595
+ ...deserialized,
6596
+ });
6597
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
6598
+ };
6496
6599
  const de_EncryptionKeyUnavailableExceptionRes = async (parsedOutput, context) => {
6497
6600
  const body = parsedOutput.body;
6498
6601
  const deserialized = (0, smithy_client_1._json)(body);
@@ -6676,7 +6779,7 @@ const de_InvalidApprovalStateExceptionRes = async (parsedOutput, context) => {
6676
6779
  const de_InvalidAuthorArnExceptionRes = async (parsedOutput, context) => {
6677
6780
  const body = parsedOutput.body;
6678
6781
  const deserialized = (0, smithy_client_1._json)(body);
6679
- const exception = new models_0_1.InvalidAuthorArnException({
6782
+ const exception = new models_1_1.InvalidAuthorArnException({
6680
6783
  $metadata: deserializeMetadata(parsedOutput),
6681
6784
  ...deserialized,
6682
6785
  });
@@ -6928,7 +7031,7 @@ const de_InvalidPullRequestIdExceptionRes = async (parsedOutput, context) => {
6928
7031
  const de_InvalidPullRequestStatusExceptionRes = async (parsedOutput, context) => {
6929
7032
  const body = parsedOutput.body;
6930
7033
  const deserialized = (0, smithy_client_1._json)(body);
6931
- const exception = new models_0_1.InvalidPullRequestStatusException({
7034
+ const exception = new models_1_1.InvalidPullRequestStatusException({
6932
7035
  $metadata: deserializeMetadata(parsedOutput),
6933
7036
  ...deserialized,
6934
7037
  });
@@ -7987,6 +8090,7 @@ const de_ApprovalRuleTemplate = (output, context) => {
7987
8090
  };
7988
8091
  const de_BatchGetRepositoriesOutput = (output, context) => {
7989
8092
  return (0, smithy_client_1.take)(output, {
8093
+ errors: smithy_client_1._json,
7990
8094
  repositories: (_) => de_RepositoryMetadataList(_, context),
7991
8095
  repositoriesNotFound: smithy_client_1._json,
7992
8096
  });
@@ -8219,6 +8323,7 @@ const de_RepositoryMetadata = (output, context) => {
8219
8323
  cloneUrlSsh: smithy_client_1.expectString,
8220
8324
  creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
8221
8325
  defaultBranch: smithy_client_1.expectString,
8326
+ kmsKeyId: smithy_client_1.expectString,
8222
8327
  lastModifiedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
8223
8328
  repositoryDescription: smithy_client_1.expectString,
8224
8329
  repositoryId: smithy_client_1.expectString,
@@ -77,6 +77,7 @@ import { UpdatePullRequestDescriptionCommand, } from "./commands/UpdatePullReque
77
77
  import { UpdatePullRequestStatusCommand, } from "./commands/UpdatePullRequestStatusCommand";
78
78
  import { UpdatePullRequestTitleCommand, } from "./commands/UpdatePullRequestTitleCommand";
79
79
  import { UpdateRepositoryDescriptionCommand, } from "./commands/UpdateRepositoryDescriptionCommand";
80
+ import { UpdateRepositoryEncryptionKeyCommand, } from "./commands/UpdateRepositoryEncryptionKeyCommand";
80
81
  import { UpdateRepositoryNameCommand, } from "./commands/UpdateRepositoryNameCommand";
81
82
  const commands = {
82
83
  AssociateApprovalRuleTemplateWithRepositoryCommand,
@@ -156,6 +157,7 @@ const commands = {
156
157
  UpdatePullRequestStatusCommand,
157
158
  UpdatePullRequestTitleCommand,
158
159
  UpdateRepositoryDescriptionCommand,
160
+ UpdateRepositoryEncryptionKeyCommand,
159
161
  UpdateRepositoryNameCommand,
160
162
  };
161
163
  export class CodeCommit extends CodeCommitClient {
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_UpdateRepositoryEncryptionKeyCommand, se_UpdateRepositoryEncryptionKeyCommand, } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class UpdateRepositoryEncryptionKeyCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdateRepositoryEncryptionKeyCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "CodeCommitClient";
26
+ const commandName = "UpdateRepositoryEncryptionKeyCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "CodeCommit_20150413",
35
+ operation: "UpdateRepositoryEncryptionKey",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_UpdateRepositoryEncryptionKeyCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_UpdateRepositoryEncryptionKeyCommand(output, context);
46
+ }
47
+ }
@@ -75,4 +75,5 @@ export * from "./UpdatePullRequestDescriptionCommand";
75
75
  export * from "./UpdatePullRequestStatusCommand";
76
76
  export * from "./UpdatePullRequestTitleCommand";
77
77
  export * from "./UpdateRepositoryDescriptionCommand";
78
+ export * from "./UpdateRepositoryEncryptionKeyCommand";
78
79
  export * from "./UpdateRepositoryNameCommand";
@@ -506,6 +506,14 @@ export class CommitIdsListRequiredException extends __BaseException {
506
506
  Object.setPrototypeOf(this, CommitIdsListRequiredException.prototype);
507
507
  }
508
508
  }
509
+ export const BatchGetRepositoriesErrorCodeEnum = {
510
+ ENCRYPTION_INTEGRITY_CHECKS_FAILED_EXCEPTION: "EncryptionIntegrityChecksFailedException",
511
+ ENCRYPTION_KEY_ACCESS_DENIED_EXCEPTION: "EncryptionKeyAccessDeniedException",
512
+ ENCRYPTION_KEY_DISABLED_EXCEPTION: "EncryptionKeyDisabledException",
513
+ ENCRYPTION_KEY_NOT_FOUND_EXCEPTION: "EncryptionKeyNotFoundException",
514
+ ENCRYPTION_KEY_UNAVAILABLE_EXCEPTION: "EncryptionKeyUnavailableException",
515
+ REPOSITORY_DOES_NOT_EXIST_EXCEPTION: "RepositoryDoesNotExistException",
516
+ };
509
517
  export class BeforeCommitIdAndAfterCommitIdAreSameException extends __BaseException {
510
518
  constructor(opts) {
511
519
  super({
@@ -1290,6 +1298,30 @@ export class PullRequestIdRequiredException extends __BaseException {
1290
1298
  Object.setPrototypeOf(this, PullRequestIdRequiredException.prototype);
1291
1299
  }
1292
1300
  }
1301
+ export class EncryptionKeyInvalidIdException extends __BaseException {
1302
+ constructor(opts) {
1303
+ super({
1304
+ name: "EncryptionKeyInvalidIdException",
1305
+ $fault: "client",
1306
+ ...opts,
1307
+ });
1308
+ this.name = "EncryptionKeyInvalidIdException";
1309
+ this.$fault = "client";
1310
+ Object.setPrototypeOf(this, EncryptionKeyInvalidIdException.prototype);
1311
+ }
1312
+ }
1313
+ export class EncryptionKeyInvalidUsageException extends __BaseException {
1314
+ constructor(opts) {
1315
+ super({
1316
+ name: "EncryptionKeyInvalidUsageException",
1317
+ $fault: "client",
1318
+ ...opts,
1319
+ });
1320
+ this.name = "EncryptionKeyInvalidUsageException";
1321
+ this.$fault = "client";
1322
+ Object.setPrototypeOf(this, EncryptionKeyInvalidUsageException.prototype);
1323
+ }
1324
+ }
1293
1325
  export class InvalidRepositoryDescriptionException extends __BaseException {
1294
1326
  constructor(opts) {
1295
1327
  super({
@@ -1749,27 +1781,3 @@ export const RepositoryTriggerEventEnum = {
1749
1781
  DELETE_REFERENCE: "deleteReference",
1750
1782
  UPDATE_REFERENCE: "updateReference",
1751
1783
  };
1752
- export class InvalidAuthorArnException extends __BaseException {
1753
- constructor(opts) {
1754
- super({
1755
- name: "InvalidAuthorArnException",
1756
- $fault: "client",
1757
- ...opts,
1758
- });
1759
- this.name = "InvalidAuthorArnException";
1760
- this.$fault = "client";
1761
- Object.setPrototypeOf(this, InvalidAuthorArnException.prototype);
1762
- }
1763
- }
1764
- export class InvalidPullRequestStatusException extends __BaseException {
1765
- constructor(opts) {
1766
- super({
1767
- name: "InvalidPullRequestStatusException",
1768
- $fault: "client",
1769
- ...opts,
1770
- });
1771
- this.name = "InvalidPullRequestStatusException";
1772
- this.$fault = "client";
1773
- Object.setPrototypeOf(this, InvalidPullRequestStatusException.prototype);
1774
- }
1775
- }