@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.
- package/README.md +13 -0
- package/dist-cjs/CodeCommit.js +2 -0
- package/dist-cjs/commands/UpdateRepositoryEncryptionKeyCommand.js +51 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +38 -30
- package/dist-cjs/models/models_1.js +40 -1
- package/dist-cjs/protocols/Aws_json1_1.js +110 -5
- package/dist-es/CodeCommit.js +2 -0
- package/dist-es/commands/UpdateRepositoryEncryptionKeyCommand.js +47 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +32 -24
- package/dist-es/models/models_1.js +36 -0
- package/dist-es/protocols/Aws_json1_1.js +105 -2
- package/dist-types/CodeCommit.d.ts +12 -0
- package/dist-types/CodeCommitClient.d.ts +8 -2
- package/dist-types/commands/BatchGetRepositoriesCommand.d.ts +9 -0
- package/dist-types/commands/CreateRepositoryCommand.d.ts +9 -0
- package/dist-types/commands/GetRepositoryCommand.d.ts +1 -0
- package/dist-types/commands/ListFileCommitHistoryCommand.d.ts +2 -1
- package/dist-types/commands/ListPullRequestsCommand.d.ts +1 -2
- package/dist-types/commands/UpdateRepositoryEncryptionKeyCommand.d.ts +115 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +86 -71
- package/dist-types/models/models_1.d.ts +122 -1
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/CodeCommit.d.ts +17 -0
- package/dist-types/ts3.4/CodeCommitClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/ListFileCommitHistoryCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/ListPullRequestsCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/UpdateRepositoryEncryptionKeyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +39 -28
- package/dist-types/ts3.4/models/models_1.d.ts +45 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
- package/package.json +1 -1
|
@@ -1,4 +1,28 @@
|
|
|
1
1
|
import { CodeCommitServiceException as __BaseException } from "./CodeCommitServiceException";
|
|
2
|
+
export class InvalidAuthorArnException extends __BaseException {
|
|
3
|
+
constructor(opts) {
|
|
4
|
+
super({
|
|
5
|
+
name: "InvalidAuthorArnException",
|
|
6
|
+
$fault: "client",
|
|
7
|
+
...opts,
|
|
8
|
+
});
|
|
9
|
+
this.name = "InvalidAuthorArnException";
|
|
10
|
+
this.$fault = "client";
|
|
11
|
+
Object.setPrototypeOf(this, InvalidAuthorArnException.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export class InvalidPullRequestStatusException extends __BaseException {
|
|
15
|
+
constructor(opts) {
|
|
16
|
+
super({
|
|
17
|
+
name: "InvalidPullRequestStatusException",
|
|
18
|
+
$fault: "client",
|
|
19
|
+
...opts,
|
|
20
|
+
});
|
|
21
|
+
this.name = "InvalidPullRequestStatusException";
|
|
22
|
+
this.$fault = "client";
|
|
23
|
+
Object.setPrototypeOf(this, InvalidPullRequestStatusException.prototype);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
2
26
|
export class InvalidOrderException extends __BaseException {
|
|
3
27
|
constructor(opts) {
|
|
4
28
|
super({
|
|
@@ -523,3 +547,15 @@ export class PullRequestStatusRequiredException extends __BaseException {
|
|
|
523
547
|
Object.setPrototypeOf(this, PullRequestStatusRequiredException.prototype);
|
|
524
548
|
}
|
|
525
549
|
}
|
|
550
|
+
export class EncryptionKeyRequiredException extends __BaseException {
|
|
551
|
+
constructor(opts) {
|
|
552
|
+
super({
|
|
553
|
+
name: "EncryptionKeyRequiredException",
|
|
554
|
+
$fault: "client",
|
|
555
|
+
...opts,
|
|
556
|
+
});
|
|
557
|
+
this.name = "EncryptionKeyRequiredException";
|
|
558
|
+
this.$fault = "client";
|
|
559
|
+
Object.setPrototypeOf(this, EncryptionKeyRequiredException.prototype);
|
|
560
|
+
}
|
|
561
|
+
}
|
|
@@ -2,8 +2,8 @@ import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
|
2
2
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { CodeCommitServiceException as __BaseException } from "../models/CodeCommitServiceException";
|
|
5
|
-
import { ActorDoesNotExistException, ApprovalRuleContentRequiredException, ApprovalRuleDoesNotExistException, ApprovalRuleNameAlreadyExistsException, ApprovalRuleNameRequiredException, ApprovalRuleTemplateContentRequiredException, ApprovalRuleTemplateDoesNotExistException, ApprovalRuleTemplateInUseException, ApprovalRuleTemplateNameAlreadyExistsException, ApprovalRuleTemplateNameRequiredException, ApprovalStateRequiredException, AuthorDoesNotExistException, BeforeCommitIdAndAfterCommitIdAreSameException, BlobIdDoesNotExistException, BlobIdRequiredException, BranchDoesNotExistException, BranchNameExistsException, BranchNameIsTagNameException, BranchNameRequiredException, CannotDeleteApprovalRuleFromTemplateException, CannotModifyApprovalRuleFromTemplateException, ClientRequestTokenRequiredException, CommentDeletedException, CommentDoesNotExistException, CommentIdRequiredException, CommitDoesNotExistException, CommitIdDoesNotExistException, CommitIdRequiredException, CommitIdsLimitExceededException, CommitIdsListRequiredException, CommitMessageLengthExceededException, CommitRequiredException, ConcurrentReferenceUpdateException, DefaultBranchCannotBeDeletedException, DirectoryNameConflictsWithFileNameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, FileContentAndSourceFileSpecifiedException, FileContentSizeLimitExceededException, FileDoesNotExistException, FileEntryRequiredException, FileModeRequiredException, FileNameConflictsWithDirectoryNameException, FilePathConflictsWithSubmodulePathException, FileTooLargeException, FolderContentSizeLimitExceededException, FolderDoesNotExistException, IdempotencyParameterMismatchException, InvalidActorArnException, InvalidApprovalRuleContentException, InvalidApprovalRuleNameException, InvalidApprovalRuleTemplateContentException, InvalidApprovalRuleTemplateDescriptionException, InvalidApprovalRuleTemplateNameException,
|
|
6
|
-
import { CommentContentRequiredException, CommentContentSizeLimitExceededException, CommentNotCreatedByCallerException, FileContentRequiredException, InvalidApprovalStateException, InvalidFileLocationException, InvalidFilePositionException, InvalidOrderException, InvalidOverrideStatusException, InvalidPullRequestStatusUpdateException, InvalidReactionValueException, InvalidRelativeFileVersionEnumException, InvalidRepositoryTriggerBranchNameException, InvalidRepositoryTriggerCustomDataException, InvalidRepositoryTriggerDestinationArnException, InvalidRepositoryTriggerEventsException, InvalidRepositoryTriggerNameException, InvalidRepositoryTriggerRegionException, InvalidResourceArnException, InvalidRuleContentSha256Exception, InvalidSortByException, InvalidTagKeysListException, InvalidTargetBranchException, MaximumBranchesExceededException, MaximumNumberOfApprovalsExceededException, MaximumRepositoryTriggersExceededException, OverrideAlreadySetException, OverrideStatusRequiredException, PullRequestApprovalRulesNotSatisfiedException, PullRequestCannotBeApprovedByAuthorException, PullRequestStatusRequiredException, ReactionLimitExceededException, ReactionValueRequiredException, RepositoryTriggerBranchNameListRequiredException, RepositoryTriggerDestinationArnRequiredException, RepositoryTriggerEventsListRequiredException, RepositoryTriggerNameRequiredException, RepositoryTriggersListRequiredException, ResourceArnRequiredException, SameFileContentException, TagKeysListRequiredException, TagsMapRequiredException, TipOfSourceReferenceIsDifferentException, } from "../models/models_1";
|
|
5
|
+
import { ActorDoesNotExistException, ApprovalRuleContentRequiredException, ApprovalRuleDoesNotExistException, ApprovalRuleNameAlreadyExistsException, ApprovalRuleNameRequiredException, ApprovalRuleTemplateContentRequiredException, ApprovalRuleTemplateDoesNotExistException, ApprovalRuleTemplateInUseException, ApprovalRuleTemplateNameAlreadyExistsException, ApprovalRuleTemplateNameRequiredException, ApprovalStateRequiredException, AuthorDoesNotExistException, BeforeCommitIdAndAfterCommitIdAreSameException, BlobIdDoesNotExistException, BlobIdRequiredException, BranchDoesNotExistException, BranchNameExistsException, BranchNameIsTagNameException, BranchNameRequiredException, CannotDeleteApprovalRuleFromTemplateException, CannotModifyApprovalRuleFromTemplateException, ClientRequestTokenRequiredException, CommentDeletedException, CommentDoesNotExistException, CommentIdRequiredException, CommitDoesNotExistException, CommitIdDoesNotExistException, CommitIdRequiredException, CommitIdsLimitExceededException, CommitIdsListRequiredException, CommitMessageLengthExceededException, CommitRequiredException, ConcurrentReferenceUpdateException, DefaultBranchCannotBeDeletedException, DirectoryNameConflictsWithFileNameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyInvalidIdException, EncryptionKeyInvalidUsageException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, FileContentAndSourceFileSpecifiedException, FileContentSizeLimitExceededException, FileDoesNotExistException, FileEntryRequiredException, FileModeRequiredException, FileNameConflictsWithDirectoryNameException, FilePathConflictsWithSubmodulePathException, FileTooLargeException, FolderContentSizeLimitExceededException, FolderDoesNotExistException, IdempotencyParameterMismatchException, InvalidActorArnException, InvalidApprovalRuleContentException, InvalidApprovalRuleNameException, InvalidApprovalRuleTemplateContentException, InvalidApprovalRuleTemplateDescriptionException, InvalidApprovalRuleTemplateNameException, InvalidBlobIdException, InvalidBranchNameException, InvalidClientRequestTokenException, InvalidCommentIdException, InvalidCommitException, InvalidCommitIdException, InvalidConflictDetailLevelException, InvalidConflictResolutionException, InvalidConflictResolutionStrategyException, InvalidContinuationTokenException, InvalidDeletionParameterException, InvalidDescriptionException, InvalidDestinationCommitSpecifierException, InvalidEmailException, InvalidFileModeException, InvalidMaxConflictFilesException, InvalidMaxMergeHunksException, InvalidMaxResultsException, InvalidMergeOptionException, InvalidParentCommitIdException, InvalidPathException, InvalidPullRequestEventTypeException, InvalidPullRequestIdException, InvalidReactionUserArnException, InvalidReferenceNameException, InvalidReplacementContentException, InvalidReplacementTypeException, InvalidRepositoryDescriptionException, InvalidRepositoryNameException, InvalidRevisionIdException, InvalidSourceCommitSpecifierException, InvalidSystemTagUsageException, InvalidTagsMapException, InvalidTargetException, InvalidTargetsException, InvalidTitleException, ManualMergeRequiredException, MaximumConflictResolutionEntriesExceededException, MaximumFileContentToLoadExceededException, MaximumFileEntriesExceededException, MaximumItemsToCompareExceededException, MaximumOpenPullRequestsExceededException, MaximumRepositoryNamesExceededException, MaximumRuleTemplatesAssociatedWithRepositoryException, MergeOptionRequiredException, MultipleConflictResolutionEntriesException, MultipleRepositoriesInPullRequestException, NameLengthExceededException, NoChangeException, NumberOfRulesExceededException, NumberOfRuleTemplatesExceededException, ParentCommitDoesNotExistException, ParentCommitIdOutdatedException, ParentCommitIdRequiredException, PathDoesNotExistException, PathRequiredException, PullRequestAlreadyClosedException, PullRequestDoesNotExistException, PullRequestIdRequiredException, PutFileEntryConflictException, ReferenceDoesNotExistException, ReferenceNameRequiredException, ReferenceTypeNotSupportedException, ReplacementContentRequiredException, ReplacementTypeRequiredException, RepositoryDoesNotExistException, RepositoryLimitExceededException, RepositoryNameExistsException, RepositoryNameRequiredException, RepositoryNamesRequiredException, RepositoryNotAssociatedWithPullRequestException, RestrictedSourceFileException, RevisionIdRequiredException, RevisionNotCurrentException, SamePathRequestException, SourceAndDestinationAreSameException, SourceFileOrContentRequiredException, TagPolicyException, TargetRequiredException, TargetsRequiredException, TipsDivergenceExceededException, TitleRequiredException, TooManyTagsException, } from "../models/models_0";
|
|
6
|
+
import { CommentContentRequiredException, CommentContentSizeLimitExceededException, CommentNotCreatedByCallerException, EncryptionKeyRequiredException, FileContentRequiredException, InvalidApprovalStateException, InvalidAuthorArnException, InvalidFileLocationException, InvalidFilePositionException, InvalidOrderException, InvalidOverrideStatusException, InvalidPullRequestStatusException, InvalidPullRequestStatusUpdateException, InvalidReactionValueException, InvalidRelativeFileVersionEnumException, InvalidRepositoryTriggerBranchNameException, InvalidRepositoryTriggerCustomDataException, InvalidRepositoryTriggerDestinationArnException, InvalidRepositoryTriggerEventsException, InvalidRepositoryTriggerNameException, InvalidRepositoryTriggerRegionException, InvalidResourceArnException, InvalidRuleContentSha256Exception, InvalidSortByException, InvalidTagKeysListException, InvalidTargetBranchException, MaximumBranchesExceededException, MaximumNumberOfApprovalsExceededException, MaximumRepositoryTriggersExceededException, OverrideAlreadySetException, OverrideStatusRequiredException, PullRequestApprovalRulesNotSatisfiedException, PullRequestCannotBeApprovedByAuthorException, PullRequestStatusRequiredException, ReactionLimitExceededException, ReactionValueRequiredException, RepositoryTriggerBranchNameListRequiredException, RepositoryTriggerDestinationArnRequiredException, RepositoryTriggerEventsListRequiredException, RepositoryTriggerNameRequiredException, RepositoryTriggersListRequiredException, ResourceArnRequiredException, SameFileContentException, TagKeysListRequiredException, TagsMapRequiredException, TipOfSourceReferenceIsDifferentException, } from "../models/models_1";
|
|
7
7
|
export const se_AssociateApprovalRuleTemplateWithRepositoryCommand = async (input, context) => {
|
|
8
8
|
const headers = sharedHeaders("AssociateApprovalRuleTemplateWithRepository");
|
|
9
9
|
let body;
|
|
@@ -466,6 +466,12 @@ export const se_UpdateRepositoryDescriptionCommand = async (input, context) => {
|
|
|
466
466
|
body = JSON.stringify(_json(input));
|
|
467
467
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
468
468
|
};
|
|
469
|
+
export const se_UpdateRepositoryEncryptionKeyCommand = async (input, context) => {
|
|
470
|
+
const headers = sharedHeaders("UpdateRepositoryEncryptionKey");
|
|
471
|
+
let body;
|
|
472
|
+
body = JSON.stringify(_json(input));
|
|
473
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
474
|
+
};
|
|
469
475
|
export const se_UpdateRepositoryNameCommand = async (input, context) => {
|
|
470
476
|
const headers = sharedHeaders("UpdateRepositoryName");
|
|
471
477
|
let body;
|
|
@@ -1324,6 +1330,12 @@ const de_CreateRepositoryCommandError = async (output, context) => {
|
|
|
1324
1330
|
case "EncryptionKeyDisabledException":
|
|
1325
1331
|
case "com.amazonaws.codecommit#EncryptionKeyDisabledException":
|
|
1326
1332
|
throw await de_EncryptionKeyDisabledExceptionRes(parsedOutput, context);
|
|
1333
|
+
case "EncryptionKeyInvalidIdException":
|
|
1334
|
+
case "com.amazonaws.codecommit#EncryptionKeyInvalidIdException":
|
|
1335
|
+
throw await de_EncryptionKeyInvalidIdExceptionRes(parsedOutput, context);
|
|
1336
|
+
case "EncryptionKeyInvalidUsageException":
|
|
1337
|
+
case "com.amazonaws.codecommit#EncryptionKeyInvalidUsageException":
|
|
1338
|
+
throw await de_EncryptionKeyInvalidUsageExceptionRes(parsedOutput, context);
|
|
1327
1339
|
case "EncryptionKeyNotFoundException":
|
|
1328
1340
|
case "com.amazonaws.codecommit#EncryptionKeyNotFoundException":
|
|
1329
1341
|
throw await de_EncryptionKeyNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -5915,6 +5927,68 @@ const de_UpdateRepositoryDescriptionCommandError = async (output, context) => {
|
|
|
5915
5927
|
});
|
|
5916
5928
|
}
|
|
5917
5929
|
};
|
|
5930
|
+
export const de_UpdateRepositoryEncryptionKeyCommand = async (output, context) => {
|
|
5931
|
+
if (output.statusCode >= 300) {
|
|
5932
|
+
return de_UpdateRepositoryEncryptionKeyCommandError(output, context);
|
|
5933
|
+
}
|
|
5934
|
+
const data = await parseBody(output.body, context);
|
|
5935
|
+
let contents = {};
|
|
5936
|
+
contents = _json(data);
|
|
5937
|
+
const response = {
|
|
5938
|
+
$metadata: deserializeMetadata(output),
|
|
5939
|
+
...contents,
|
|
5940
|
+
};
|
|
5941
|
+
return response;
|
|
5942
|
+
};
|
|
5943
|
+
const de_UpdateRepositoryEncryptionKeyCommandError = async (output, context) => {
|
|
5944
|
+
const parsedOutput = {
|
|
5945
|
+
...output,
|
|
5946
|
+
body: await parseErrorBody(output.body, context),
|
|
5947
|
+
};
|
|
5948
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5949
|
+
switch (errorCode) {
|
|
5950
|
+
case "EncryptionIntegrityChecksFailedException":
|
|
5951
|
+
case "com.amazonaws.codecommit#EncryptionIntegrityChecksFailedException":
|
|
5952
|
+
throw await de_EncryptionIntegrityChecksFailedExceptionRes(parsedOutput, context);
|
|
5953
|
+
case "EncryptionKeyAccessDeniedException":
|
|
5954
|
+
case "com.amazonaws.codecommit#EncryptionKeyAccessDeniedException":
|
|
5955
|
+
throw await de_EncryptionKeyAccessDeniedExceptionRes(parsedOutput, context);
|
|
5956
|
+
case "EncryptionKeyDisabledException":
|
|
5957
|
+
case "com.amazonaws.codecommit#EncryptionKeyDisabledException":
|
|
5958
|
+
throw await de_EncryptionKeyDisabledExceptionRes(parsedOutput, context);
|
|
5959
|
+
case "EncryptionKeyInvalidIdException":
|
|
5960
|
+
case "com.amazonaws.codecommit#EncryptionKeyInvalidIdException":
|
|
5961
|
+
throw await de_EncryptionKeyInvalidIdExceptionRes(parsedOutput, context);
|
|
5962
|
+
case "EncryptionKeyInvalidUsageException":
|
|
5963
|
+
case "com.amazonaws.codecommit#EncryptionKeyInvalidUsageException":
|
|
5964
|
+
throw await de_EncryptionKeyInvalidUsageExceptionRes(parsedOutput, context);
|
|
5965
|
+
case "EncryptionKeyNotFoundException":
|
|
5966
|
+
case "com.amazonaws.codecommit#EncryptionKeyNotFoundException":
|
|
5967
|
+
throw await de_EncryptionKeyNotFoundExceptionRes(parsedOutput, context);
|
|
5968
|
+
case "EncryptionKeyRequiredException":
|
|
5969
|
+
case "com.amazonaws.codecommit#EncryptionKeyRequiredException":
|
|
5970
|
+
throw await de_EncryptionKeyRequiredExceptionRes(parsedOutput, context);
|
|
5971
|
+
case "EncryptionKeyUnavailableException":
|
|
5972
|
+
case "com.amazonaws.codecommit#EncryptionKeyUnavailableException":
|
|
5973
|
+
throw await de_EncryptionKeyUnavailableExceptionRes(parsedOutput, context);
|
|
5974
|
+
case "InvalidRepositoryNameException":
|
|
5975
|
+
case "com.amazonaws.codecommit#InvalidRepositoryNameException":
|
|
5976
|
+
throw await de_InvalidRepositoryNameExceptionRes(parsedOutput, context);
|
|
5977
|
+
case "RepositoryDoesNotExistException":
|
|
5978
|
+
case "com.amazonaws.codecommit#RepositoryDoesNotExistException":
|
|
5979
|
+
throw await de_RepositoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
5980
|
+
case "RepositoryNameRequiredException":
|
|
5981
|
+
case "com.amazonaws.codecommit#RepositoryNameRequiredException":
|
|
5982
|
+
throw await de_RepositoryNameRequiredExceptionRes(parsedOutput, context);
|
|
5983
|
+
default:
|
|
5984
|
+
const parsedBody = parsedOutput.body;
|
|
5985
|
+
return throwDefaultError({
|
|
5986
|
+
output,
|
|
5987
|
+
parsedBody,
|
|
5988
|
+
errorCode,
|
|
5989
|
+
});
|
|
5990
|
+
}
|
|
5991
|
+
};
|
|
5918
5992
|
export const de_UpdateRepositoryNameCommand = async (output, context) => {
|
|
5919
5993
|
if (output.statusCode >= 300) {
|
|
5920
5994
|
return de_UpdateRepositoryNameCommandError(output, context);
|
|
@@ -6322,6 +6396,24 @@ const de_EncryptionKeyDisabledExceptionRes = async (parsedOutput, context) => {
|
|
|
6322
6396
|
});
|
|
6323
6397
|
return __decorateServiceException(exception, body);
|
|
6324
6398
|
};
|
|
6399
|
+
const de_EncryptionKeyInvalidIdExceptionRes = async (parsedOutput, context) => {
|
|
6400
|
+
const body = parsedOutput.body;
|
|
6401
|
+
const deserialized = _json(body);
|
|
6402
|
+
const exception = new EncryptionKeyInvalidIdException({
|
|
6403
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
6404
|
+
...deserialized,
|
|
6405
|
+
});
|
|
6406
|
+
return __decorateServiceException(exception, body);
|
|
6407
|
+
};
|
|
6408
|
+
const de_EncryptionKeyInvalidUsageExceptionRes = async (parsedOutput, context) => {
|
|
6409
|
+
const body = parsedOutput.body;
|
|
6410
|
+
const deserialized = _json(body);
|
|
6411
|
+
const exception = new EncryptionKeyInvalidUsageException({
|
|
6412
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
6413
|
+
...deserialized,
|
|
6414
|
+
});
|
|
6415
|
+
return __decorateServiceException(exception, body);
|
|
6416
|
+
};
|
|
6325
6417
|
const de_EncryptionKeyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
6326
6418
|
const body = parsedOutput.body;
|
|
6327
6419
|
const deserialized = _json(body);
|
|
@@ -6331,6 +6423,15 @@ const de_EncryptionKeyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
6331
6423
|
});
|
|
6332
6424
|
return __decorateServiceException(exception, body);
|
|
6333
6425
|
};
|
|
6426
|
+
const de_EncryptionKeyRequiredExceptionRes = async (parsedOutput, context) => {
|
|
6427
|
+
const body = parsedOutput.body;
|
|
6428
|
+
const deserialized = _json(body);
|
|
6429
|
+
const exception = new EncryptionKeyRequiredException({
|
|
6430
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
6431
|
+
...deserialized,
|
|
6432
|
+
});
|
|
6433
|
+
return __decorateServiceException(exception, body);
|
|
6434
|
+
};
|
|
6334
6435
|
const de_EncryptionKeyUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
6335
6436
|
const body = parsedOutput.body;
|
|
6336
6437
|
const deserialized = _json(body);
|
|
@@ -7825,6 +7926,7 @@ const de_ApprovalRuleTemplate = (output, context) => {
|
|
|
7825
7926
|
};
|
|
7826
7927
|
const de_BatchGetRepositoriesOutput = (output, context) => {
|
|
7827
7928
|
return take(output, {
|
|
7929
|
+
errors: _json,
|
|
7828
7930
|
repositories: (_) => de_RepositoryMetadataList(_, context),
|
|
7829
7931
|
repositoriesNotFound: _json,
|
|
7830
7932
|
});
|
|
@@ -8057,6 +8159,7 @@ const de_RepositoryMetadata = (output, context) => {
|
|
|
8057
8159
|
cloneUrlSsh: __expectString,
|
|
8058
8160
|
creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
8059
8161
|
defaultBranch: __expectString,
|
|
8162
|
+
kmsKeyId: __expectString,
|
|
8060
8163
|
lastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
8061
8164
|
repositoryDescription: __expectString,
|
|
8062
8165
|
repositoryId: __expectString,
|
|
@@ -77,6 +77,7 @@ import { UpdatePullRequestDescriptionCommandInput, UpdatePullRequestDescriptionC
|
|
|
77
77
|
import { UpdatePullRequestStatusCommandInput, UpdatePullRequestStatusCommandOutput } from "./commands/UpdatePullRequestStatusCommand";
|
|
78
78
|
import { UpdatePullRequestTitleCommandInput, UpdatePullRequestTitleCommandOutput } from "./commands/UpdatePullRequestTitleCommand";
|
|
79
79
|
import { UpdateRepositoryDescriptionCommandInput, UpdateRepositoryDescriptionCommandOutput } from "./commands/UpdateRepositoryDescriptionCommand";
|
|
80
|
+
import { UpdateRepositoryEncryptionKeyCommandInput, UpdateRepositoryEncryptionKeyCommandOutput } from "./commands/UpdateRepositoryEncryptionKeyCommand";
|
|
80
81
|
import { UpdateRepositoryNameCommandInput, UpdateRepositoryNameCommandOutput } from "./commands/UpdateRepositoryNameCommand";
|
|
81
82
|
export interface CodeCommit {
|
|
82
83
|
/**
|
|
@@ -541,6 +542,12 @@ export interface CodeCommit {
|
|
|
541
542
|
updateRepositoryDescription(args: UpdateRepositoryDescriptionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRepositoryDescriptionCommandOutput>;
|
|
542
543
|
updateRepositoryDescription(args: UpdateRepositoryDescriptionCommandInput, cb: (err: any, data?: UpdateRepositoryDescriptionCommandOutput) => void): void;
|
|
543
544
|
updateRepositoryDescription(args: UpdateRepositoryDescriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRepositoryDescriptionCommandOutput) => void): void;
|
|
545
|
+
/**
|
|
546
|
+
* @see {@link UpdateRepositoryEncryptionKeyCommand}
|
|
547
|
+
*/
|
|
548
|
+
updateRepositoryEncryptionKey(args: UpdateRepositoryEncryptionKeyCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRepositoryEncryptionKeyCommandOutput>;
|
|
549
|
+
updateRepositoryEncryptionKey(args: UpdateRepositoryEncryptionKeyCommandInput, cb: (err: any, data?: UpdateRepositoryEncryptionKeyCommandOutput) => void): void;
|
|
550
|
+
updateRepositoryEncryptionKey(args: UpdateRepositoryEncryptionKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRepositoryEncryptionKeyCommandOutput) => void): void;
|
|
544
551
|
/**
|
|
545
552
|
* @see {@link UpdateRepositoryNameCommand}
|
|
546
553
|
*/
|
|
@@ -582,6 +589,11 @@ export interface CodeCommit {
|
|
|
582
589
|
* </li>
|
|
583
590
|
* <li>
|
|
584
591
|
* <p>
|
|
592
|
+
* <a>UpdateRepositoryEncryptionKey</a>, which updates the Key Management Service encryption key used
|
|
593
|
+
* to encrypt and decrypt a repository.</p>
|
|
594
|
+
* </li>
|
|
595
|
+
* <li>
|
|
596
|
+
* <p>
|
|
585
597
|
* <a>UpdateRepositoryName</a>, which changes the name of the
|
|
586
598
|
* repository. If you change the name of a repository, no other users of that
|
|
587
599
|
* repository can access it until you send them the new HTTPS or SSH URL to
|
|
@@ -85,6 +85,7 @@ import { UpdatePullRequestDescriptionCommandInput, UpdatePullRequestDescriptionC
|
|
|
85
85
|
import { UpdatePullRequestStatusCommandInput, UpdatePullRequestStatusCommandOutput } from "./commands/UpdatePullRequestStatusCommand";
|
|
86
86
|
import { UpdatePullRequestTitleCommandInput, UpdatePullRequestTitleCommandOutput } from "./commands/UpdatePullRequestTitleCommand";
|
|
87
87
|
import { UpdateRepositoryDescriptionCommandInput, UpdateRepositoryDescriptionCommandOutput } from "./commands/UpdateRepositoryDescriptionCommand";
|
|
88
|
+
import { UpdateRepositoryEncryptionKeyCommandInput, UpdateRepositoryEncryptionKeyCommandOutput } from "./commands/UpdateRepositoryEncryptionKeyCommand";
|
|
88
89
|
import { UpdateRepositoryNameCommandInput, UpdateRepositoryNameCommandOutput } from "./commands/UpdateRepositoryNameCommand";
|
|
89
90
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
90
91
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
@@ -92,11 +93,11 @@ export { __Client };
|
|
|
92
93
|
/**
|
|
93
94
|
* @public
|
|
94
95
|
*/
|
|
95
|
-
export type ServiceInputTypes = AssociateApprovalRuleTemplateWithRepositoryCommandInput | BatchAssociateApprovalRuleTemplateWithRepositoriesCommandInput | BatchDescribeMergeConflictsCommandInput | BatchDisassociateApprovalRuleTemplateFromRepositoriesCommandInput | BatchGetCommitsCommandInput | BatchGetRepositoriesCommandInput | CreateApprovalRuleTemplateCommandInput | CreateBranchCommandInput | CreateCommitCommandInput | CreatePullRequestApprovalRuleCommandInput | CreatePullRequestCommandInput | CreateRepositoryCommandInput | CreateUnreferencedMergeCommitCommandInput | DeleteApprovalRuleTemplateCommandInput | DeleteBranchCommandInput | DeleteCommentContentCommandInput | DeleteFileCommandInput | DeletePullRequestApprovalRuleCommandInput | DeleteRepositoryCommandInput | DescribeMergeConflictsCommandInput | DescribePullRequestEventsCommandInput | DisassociateApprovalRuleTemplateFromRepositoryCommandInput | EvaluatePullRequestApprovalRulesCommandInput | GetApprovalRuleTemplateCommandInput | GetBlobCommandInput | GetBranchCommandInput | GetCommentCommandInput | GetCommentReactionsCommandInput | GetCommentsForComparedCommitCommandInput | GetCommentsForPullRequestCommandInput | GetCommitCommandInput | GetDifferencesCommandInput | GetFileCommandInput | GetFolderCommandInput | GetMergeCommitCommandInput | GetMergeConflictsCommandInput | GetMergeOptionsCommandInput | GetPullRequestApprovalStatesCommandInput | GetPullRequestCommandInput | GetPullRequestOverrideStateCommandInput | GetRepositoryCommandInput | GetRepositoryTriggersCommandInput | ListApprovalRuleTemplatesCommandInput | ListAssociatedApprovalRuleTemplatesForRepositoryCommandInput | ListBranchesCommandInput | ListFileCommitHistoryCommandInput | ListPullRequestsCommandInput | ListRepositoriesCommandInput | ListRepositoriesForApprovalRuleTemplateCommandInput | ListTagsForResourceCommandInput | MergeBranchesByFastForwardCommandInput | MergeBranchesBySquashCommandInput | MergeBranchesByThreeWayCommandInput | MergePullRequestByFastForwardCommandInput | MergePullRequestBySquashCommandInput | MergePullRequestByThreeWayCommandInput | OverridePullRequestApprovalRulesCommandInput | PostCommentForComparedCommitCommandInput | PostCommentForPullRequestCommandInput | PostCommentReplyCommandInput | PutCommentReactionCommandInput | PutFileCommandInput | PutRepositoryTriggersCommandInput | TagResourceCommandInput | TestRepositoryTriggersCommandInput | UntagResourceCommandInput | UpdateApprovalRuleTemplateContentCommandInput | UpdateApprovalRuleTemplateDescriptionCommandInput | UpdateApprovalRuleTemplateNameCommandInput | UpdateCommentCommandInput | UpdateDefaultBranchCommandInput | UpdatePullRequestApprovalRuleContentCommandInput | UpdatePullRequestApprovalStateCommandInput | UpdatePullRequestDescriptionCommandInput | UpdatePullRequestStatusCommandInput | UpdatePullRequestTitleCommandInput | UpdateRepositoryDescriptionCommandInput | UpdateRepositoryNameCommandInput;
|
|
96
|
+
export type ServiceInputTypes = AssociateApprovalRuleTemplateWithRepositoryCommandInput | BatchAssociateApprovalRuleTemplateWithRepositoriesCommandInput | BatchDescribeMergeConflictsCommandInput | BatchDisassociateApprovalRuleTemplateFromRepositoriesCommandInput | BatchGetCommitsCommandInput | BatchGetRepositoriesCommandInput | CreateApprovalRuleTemplateCommandInput | CreateBranchCommandInput | CreateCommitCommandInput | CreatePullRequestApprovalRuleCommandInput | CreatePullRequestCommandInput | CreateRepositoryCommandInput | CreateUnreferencedMergeCommitCommandInput | DeleteApprovalRuleTemplateCommandInput | DeleteBranchCommandInput | DeleteCommentContentCommandInput | DeleteFileCommandInput | DeletePullRequestApprovalRuleCommandInput | DeleteRepositoryCommandInput | DescribeMergeConflictsCommandInput | DescribePullRequestEventsCommandInput | DisassociateApprovalRuleTemplateFromRepositoryCommandInput | EvaluatePullRequestApprovalRulesCommandInput | GetApprovalRuleTemplateCommandInput | GetBlobCommandInput | GetBranchCommandInput | GetCommentCommandInput | GetCommentReactionsCommandInput | GetCommentsForComparedCommitCommandInput | GetCommentsForPullRequestCommandInput | GetCommitCommandInput | GetDifferencesCommandInput | GetFileCommandInput | GetFolderCommandInput | GetMergeCommitCommandInput | GetMergeConflictsCommandInput | GetMergeOptionsCommandInput | GetPullRequestApprovalStatesCommandInput | GetPullRequestCommandInput | GetPullRequestOverrideStateCommandInput | GetRepositoryCommandInput | GetRepositoryTriggersCommandInput | ListApprovalRuleTemplatesCommandInput | ListAssociatedApprovalRuleTemplatesForRepositoryCommandInput | ListBranchesCommandInput | ListFileCommitHistoryCommandInput | ListPullRequestsCommandInput | ListRepositoriesCommandInput | ListRepositoriesForApprovalRuleTemplateCommandInput | ListTagsForResourceCommandInput | MergeBranchesByFastForwardCommandInput | MergeBranchesBySquashCommandInput | MergeBranchesByThreeWayCommandInput | MergePullRequestByFastForwardCommandInput | MergePullRequestBySquashCommandInput | MergePullRequestByThreeWayCommandInput | OverridePullRequestApprovalRulesCommandInput | PostCommentForComparedCommitCommandInput | PostCommentForPullRequestCommandInput | PostCommentReplyCommandInput | PutCommentReactionCommandInput | PutFileCommandInput | PutRepositoryTriggersCommandInput | TagResourceCommandInput | TestRepositoryTriggersCommandInput | UntagResourceCommandInput | UpdateApprovalRuleTemplateContentCommandInput | UpdateApprovalRuleTemplateDescriptionCommandInput | UpdateApprovalRuleTemplateNameCommandInput | UpdateCommentCommandInput | UpdateDefaultBranchCommandInput | UpdatePullRequestApprovalRuleContentCommandInput | UpdatePullRequestApprovalStateCommandInput | UpdatePullRequestDescriptionCommandInput | UpdatePullRequestStatusCommandInput | UpdatePullRequestTitleCommandInput | UpdateRepositoryDescriptionCommandInput | UpdateRepositoryEncryptionKeyCommandInput | UpdateRepositoryNameCommandInput;
|
|
96
97
|
/**
|
|
97
98
|
* @public
|
|
98
99
|
*/
|
|
99
|
-
export type ServiceOutputTypes = AssociateApprovalRuleTemplateWithRepositoryCommandOutput | BatchAssociateApprovalRuleTemplateWithRepositoriesCommandOutput | BatchDescribeMergeConflictsCommandOutput | BatchDisassociateApprovalRuleTemplateFromRepositoriesCommandOutput | BatchGetCommitsCommandOutput | BatchGetRepositoriesCommandOutput | CreateApprovalRuleTemplateCommandOutput | CreateBranchCommandOutput | CreateCommitCommandOutput | CreatePullRequestApprovalRuleCommandOutput | CreatePullRequestCommandOutput | CreateRepositoryCommandOutput | CreateUnreferencedMergeCommitCommandOutput | DeleteApprovalRuleTemplateCommandOutput | DeleteBranchCommandOutput | DeleteCommentContentCommandOutput | DeleteFileCommandOutput | DeletePullRequestApprovalRuleCommandOutput | DeleteRepositoryCommandOutput | DescribeMergeConflictsCommandOutput | DescribePullRequestEventsCommandOutput | DisassociateApprovalRuleTemplateFromRepositoryCommandOutput | EvaluatePullRequestApprovalRulesCommandOutput | GetApprovalRuleTemplateCommandOutput | GetBlobCommandOutput | GetBranchCommandOutput | GetCommentCommandOutput | GetCommentReactionsCommandOutput | GetCommentsForComparedCommitCommandOutput | GetCommentsForPullRequestCommandOutput | GetCommitCommandOutput | GetDifferencesCommandOutput | GetFileCommandOutput | GetFolderCommandOutput | GetMergeCommitCommandOutput | GetMergeConflictsCommandOutput | GetMergeOptionsCommandOutput | GetPullRequestApprovalStatesCommandOutput | GetPullRequestCommandOutput | GetPullRequestOverrideStateCommandOutput | GetRepositoryCommandOutput | GetRepositoryTriggersCommandOutput | ListApprovalRuleTemplatesCommandOutput | ListAssociatedApprovalRuleTemplatesForRepositoryCommandOutput | ListBranchesCommandOutput | ListFileCommitHistoryCommandOutput | ListPullRequestsCommandOutput | ListRepositoriesCommandOutput | ListRepositoriesForApprovalRuleTemplateCommandOutput | ListTagsForResourceCommandOutput | MergeBranchesByFastForwardCommandOutput | MergeBranchesBySquashCommandOutput | MergeBranchesByThreeWayCommandOutput | MergePullRequestByFastForwardCommandOutput | MergePullRequestBySquashCommandOutput | MergePullRequestByThreeWayCommandOutput | OverridePullRequestApprovalRulesCommandOutput | PostCommentForComparedCommitCommandOutput | PostCommentForPullRequestCommandOutput | PostCommentReplyCommandOutput | PutCommentReactionCommandOutput | PutFileCommandOutput | PutRepositoryTriggersCommandOutput | TagResourceCommandOutput | TestRepositoryTriggersCommandOutput | UntagResourceCommandOutput | UpdateApprovalRuleTemplateContentCommandOutput | UpdateApprovalRuleTemplateDescriptionCommandOutput | UpdateApprovalRuleTemplateNameCommandOutput | UpdateCommentCommandOutput | UpdateDefaultBranchCommandOutput | UpdatePullRequestApprovalRuleContentCommandOutput | UpdatePullRequestApprovalStateCommandOutput | UpdatePullRequestDescriptionCommandOutput | UpdatePullRequestStatusCommandOutput | UpdatePullRequestTitleCommandOutput | UpdateRepositoryDescriptionCommandOutput | UpdateRepositoryNameCommandOutput;
|
|
100
|
+
export type ServiceOutputTypes = AssociateApprovalRuleTemplateWithRepositoryCommandOutput | BatchAssociateApprovalRuleTemplateWithRepositoriesCommandOutput | BatchDescribeMergeConflictsCommandOutput | BatchDisassociateApprovalRuleTemplateFromRepositoriesCommandOutput | BatchGetCommitsCommandOutput | BatchGetRepositoriesCommandOutput | CreateApprovalRuleTemplateCommandOutput | CreateBranchCommandOutput | CreateCommitCommandOutput | CreatePullRequestApprovalRuleCommandOutput | CreatePullRequestCommandOutput | CreateRepositoryCommandOutput | CreateUnreferencedMergeCommitCommandOutput | DeleteApprovalRuleTemplateCommandOutput | DeleteBranchCommandOutput | DeleteCommentContentCommandOutput | DeleteFileCommandOutput | DeletePullRequestApprovalRuleCommandOutput | DeleteRepositoryCommandOutput | DescribeMergeConflictsCommandOutput | DescribePullRequestEventsCommandOutput | DisassociateApprovalRuleTemplateFromRepositoryCommandOutput | EvaluatePullRequestApprovalRulesCommandOutput | GetApprovalRuleTemplateCommandOutput | GetBlobCommandOutput | GetBranchCommandOutput | GetCommentCommandOutput | GetCommentReactionsCommandOutput | GetCommentsForComparedCommitCommandOutput | GetCommentsForPullRequestCommandOutput | GetCommitCommandOutput | GetDifferencesCommandOutput | GetFileCommandOutput | GetFolderCommandOutput | GetMergeCommitCommandOutput | GetMergeConflictsCommandOutput | GetMergeOptionsCommandOutput | GetPullRequestApprovalStatesCommandOutput | GetPullRequestCommandOutput | GetPullRequestOverrideStateCommandOutput | GetRepositoryCommandOutput | GetRepositoryTriggersCommandOutput | ListApprovalRuleTemplatesCommandOutput | ListAssociatedApprovalRuleTemplatesForRepositoryCommandOutput | ListBranchesCommandOutput | ListFileCommitHistoryCommandOutput | ListPullRequestsCommandOutput | ListRepositoriesCommandOutput | ListRepositoriesForApprovalRuleTemplateCommandOutput | ListTagsForResourceCommandOutput | MergeBranchesByFastForwardCommandOutput | MergeBranchesBySquashCommandOutput | MergeBranchesByThreeWayCommandOutput | MergePullRequestByFastForwardCommandOutput | MergePullRequestBySquashCommandOutput | MergePullRequestByThreeWayCommandOutput | OverridePullRequestApprovalRulesCommandOutput | PostCommentForComparedCommitCommandOutput | PostCommentForPullRequestCommandOutput | PostCommentReplyCommandOutput | PutCommentReactionCommandOutput | PutFileCommandOutput | PutRepositoryTriggersCommandOutput | TagResourceCommandOutput | TestRepositoryTriggersCommandOutput | UntagResourceCommandOutput | UpdateApprovalRuleTemplateContentCommandOutput | UpdateApprovalRuleTemplateDescriptionCommandOutput | UpdateApprovalRuleTemplateNameCommandOutput | UpdateCommentCommandOutput | UpdateDefaultBranchCommandOutput | UpdatePullRequestApprovalRuleContentCommandOutput | UpdatePullRequestApprovalStateCommandOutput | UpdatePullRequestDescriptionCommandOutput | UpdatePullRequestStatusCommandOutput | UpdatePullRequestTitleCommandOutput | UpdateRepositoryDescriptionCommandOutput | UpdateRepositoryEncryptionKeyCommandOutput | UpdateRepositoryNameCommandOutput;
|
|
100
101
|
/**
|
|
101
102
|
* @public
|
|
102
103
|
*/
|
|
@@ -262,6 +263,11 @@ export interface CodeCommitClientResolvedConfig extends CodeCommitClientResolved
|
|
|
262
263
|
* </li>
|
|
263
264
|
* <li>
|
|
264
265
|
* <p>
|
|
266
|
+
* <a>UpdateRepositoryEncryptionKey</a>, which updates the Key Management Service encryption key used
|
|
267
|
+
* to encrypt and decrypt a repository.</p>
|
|
268
|
+
* </li>
|
|
269
|
+
* <li>
|
|
270
|
+
* <p>
|
|
265
271
|
* <a>UpdateRepositoryName</a>, which changes the name of the
|
|
266
272
|
* repository. If you change the name of a repository, no other users of that
|
|
267
273
|
* repository can access it until you send them the new HTTPS or SSH URL to
|
|
@@ -57,11 +57,20 @@ export interface BatchGetRepositoriesCommandOutput extends BatchGetRepositoriesO
|
|
|
57
57
|
* // cloneUrlHttp: "STRING_VALUE",
|
|
58
58
|
* // cloneUrlSsh: "STRING_VALUE",
|
|
59
59
|
* // Arn: "STRING_VALUE",
|
|
60
|
+
* // kmsKeyId: "STRING_VALUE",
|
|
60
61
|
* // },
|
|
61
62
|
* // ],
|
|
62
63
|
* // repositoriesNotFound: [ // RepositoryNotFoundList
|
|
63
64
|
* // "STRING_VALUE",
|
|
64
65
|
* // ],
|
|
66
|
+
* // errors: [ // BatchGetRepositoriesErrorsList
|
|
67
|
+
* // { // BatchGetRepositoriesError
|
|
68
|
+
* // repositoryId: "STRING_VALUE",
|
|
69
|
+
* // repositoryName: "STRING_VALUE",
|
|
70
|
+
* // errorCode: "EncryptionIntegrityChecksFailedException" || "EncryptionKeyAccessDeniedException" || "EncryptionKeyDisabledException" || "EncryptionKeyNotFoundException" || "EncryptionKeyUnavailableException" || "RepositoryDoesNotExistException",
|
|
71
|
+
* // errorMessage: "STRING_VALUE",
|
|
72
|
+
* // },
|
|
73
|
+
* // ],
|
|
65
74
|
* // };
|
|
66
75
|
*
|
|
67
76
|
* ```
|
|
@@ -36,6 +36,7 @@ export interface CreateRepositoryCommandOutput extends CreateRepositoryOutput, _
|
|
|
36
36
|
* tags: { // TagsMap
|
|
37
37
|
* "<keys>": "STRING_VALUE",
|
|
38
38
|
* },
|
|
39
|
+
* kmsKeyId: "STRING_VALUE",
|
|
39
40
|
* };
|
|
40
41
|
* const command = new CreateRepositoryCommand(input);
|
|
41
42
|
* const response = await client.send(command);
|
|
@@ -51,6 +52,7 @@ export interface CreateRepositoryCommandOutput extends CreateRepositoryOutput, _
|
|
|
51
52
|
* // cloneUrlHttp: "STRING_VALUE",
|
|
52
53
|
* // cloneUrlSsh: "STRING_VALUE",
|
|
53
54
|
* // Arn: "STRING_VALUE",
|
|
55
|
+
* // kmsKeyId: "STRING_VALUE",
|
|
54
56
|
* // },
|
|
55
57
|
* // };
|
|
56
58
|
*
|
|
@@ -71,6 +73,13 @@ export interface CreateRepositoryCommandOutput extends CreateRepositoryOutput, _
|
|
|
71
73
|
* @throws {@link EncryptionKeyDisabledException} (client fault)
|
|
72
74
|
* <p>The encryption key is disabled.</p>
|
|
73
75
|
*
|
|
76
|
+
* @throws {@link EncryptionKeyInvalidIdException} (client fault)
|
|
77
|
+
* <p>The Key Management Service encryption key is not valid.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link EncryptionKeyInvalidUsageException} (client fault)
|
|
80
|
+
* <p>A KMS encryption key was used to try and encrypt or decrypt a repository, but either the repository or the key was not
|
|
81
|
+
* in a valid state to support the operation.</p>
|
|
82
|
+
*
|
|
74
83
|
* @throws {@link EncryptionKeyNotFoundException} (client fault)
|
|
75
84
|
* <p>No encryption key was found.</p>
|
|
76
85
|
*
|
|
@@ -2,7 +2,8 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
|
2
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
3
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
4
|
import { CodeCommitClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeCommitClient";
|
|
5
|
-
import { ListFileCommitHistoryRequest
|
|
5
|
+
import { ListFileCommitHistoryRequest } from "../models/models_0";
|
|
6
|
+
import { ListFileCommitHistoryResponse } from "../models/models_1";
|
|
6
7
|
/**
|
|
7
8
|
* @public
|
|
8
9
|
*/
|
|
@@ -2,8 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
|
2
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
3
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
4
|
import { CodeCommitClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeCommitClient";
|
|
5
|
-
import { ListPullRequestsInput } from "../models/
|
|
6
|
-
import { ListPullRequestsOutput } from "../models/models_1";
|
|
5
|
+
import { ListPullRequestsInput, ListPullRequestsOutput } from "../models/models_1";
|
|
7
6
|
/**
|
|
8
7
|
* @public
|
|
9
8
|
*/
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { CodeCommitClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeCommitClient";
|
|
5
|
+
import { UpdateRepositoryEncryptionKeyInput, UpdateRepositoryEncryptionKeyOutput } from "../models/models_1";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateRepositoryEncryptionKeyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateRepositoryEncryptionKeyCommandInput extends UpdateRepositoryEncryptionKeyInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateRepositoryEncryptionKeyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateRepositoryEncryptionKeyCommandOutput extends UpdateRepositoryEncryptionKeyOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Updates the Key Management Service encryption key used to encrypt and decrypt a CodeCommit repository.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { CodeCommitClient, UpdateRepositoryEncryptionKeyCommand } from "@aws-sdk/client-codecommit"; // ES Modules import
|
|
31
|
+
* // const { CodeCommitClient, UpdateRepositoryEncryptionKeyCommand } = require("@aws-sdk/client-codecommit"); // CommonJS import
|
|
32
|
+
* const client = new CodeCommitClient(config);
|
|
33
|
+
* const input = { // UpdateRepositoryEncryptionKeyInput
|
|
34
|
+
* repositoryName: "STRING_VALUE", // required
|
|
35
|
+
* kmsKeyId: "STRING_VALUE", // required
|
|
36
|
+
* };
|
|
37
|
+
* const command = new UpdateRepositoryEncryptionKeyCommand(input);
|
|
38
|
+
* const response = await client.send(command);
|
|
39
|
+
* // { // UpdateRepositoryEncryptionKeyOutput
|
|
40
|
+
* // repositoryId: "STRING_VALUE",
|
|
41
|
+
* // kmsKeyId: "STRING_VALUE",
|
|
42
|
+
* // originalKmsKeyId: "STRING_VALUE",
|
|
43
|
+
* // };
|
|
44
|
+
*
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* @param UpdateRepositoryEncryptionKeyCommandInput - {@link UpdateRepositoryEncryptionKeyCommandInput}
|
|
48
|
+
* @returns {@link UpdateRepositoryEncryptionKeyCommandOutput}
|
|
49
|
+
* @see {@link UpdateRepositoryEncryptionKeyCommandInput} for command's `input` shape.
|
|
50
|
+
* @see {@link UpdateRepositoryEncryptionKeyCommandOutput} for command's `response` shape.
|
|
51
|
+
* @see {@link CodeCommitClientResolvedConfig | config} for CodeCommitClient's `config` shape.
|
|
52
|
+
*
|
|
53
|
+
* @throws {@link EncryptionIntegrityChecksFailedException} (server fault)
|
|
54
|
+
* <p>An encryption integrity check failed.</p>
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link EncryptionKeyAccessDeniedException} (client fault)
|
|
57
|
+
* <p>An encryption key could not be accessed.</p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link EncryptionKeyDisabledException} (client fault)
|
|
60
|
+
* <p>The encryption key is disabled.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link EncryptionKeyInvalidIdException} (client fault)
|
|
63
|
+
* <p>The Key Management Service encryption key is not valid.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link EncryptionKeyInvalidUsageException} (client fault)
|
|
66
|
+
* <p>A KMS encryption key was used to try and encrypt or decrypt a repository, but either the repository or the key was not
|
|
67
|
+
* in a valid state to support the operation.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link EncryptionKeyNotFoundException} (client fault)
|
|
70
|
+
* <p>No encryption key was found.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link EncryptionKeyRequiredException} (client fault)
|
|
73
|
+
* <p>A KMS encryption key ID is required but was not specified.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link EncryptionKeyUnavailableException} (client fault)
|
|
76
|
+
* <p>The encryption key is not available.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link InvalidRepositoryNameException} (client fault)
|
|
79
|
+
* <p>A specified repository name is not valid.</p>
|
|
80
|
+
* <note>
|
|
81
|
+
* <p>This exception occurs only when a specified repository name is not valid. Other
|
|
82
|
+
* exceptions occur when a required repository parameter is missing, or when a
|
|
83
|
+
* specified repository does not exist.</p>
|
|
84
|
+
* </note>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link RepositoryDoesNotExistException} (client fault)
|
|
87
|
+
* <p>The specified repository does not exist.</p>
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link RepositoryNameRequiredException} (client fault)
|
|
90
|
+
* <p>A repository name is required, but was not specified.</p>
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link CodeCommitServiceException}
|
|
93
|
+
* <p>Base exception class for all service exceptions from CodeCommit service.</p>
|
|
94
|
+
*
|
|
95
|
+
*/
|
|
96
|
+
export declare class UpdateRepositoryEncryptionKeyCommand extends $Command<UpdateRepositoryEncryptionKeyCommandInput, UpdateRepositoryEncryptionKeyCommandOutput, CodeCommitClientResolvedConfig> {
|
|
97
|
+
readonly input: UpdateRepositoryEncryptionKeyCommandInput;
|
|
98
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
99
|
+
/**
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
102
|
+
constructor(input: UpdateRepositoryEncryptionKeyCommandInput);
|
|
103
|
+
/**
|
|
104
|
+
* @internal
|
|
105
|
+
*/
|
|
106
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateRepositoryEncryptionKeyCommandInput, UpdateRepositoryEncryptionKeyCommandOutput>;
|
|
107
|
+
/**
|
|
108
|
+
* @internal
|
|
109
|
+
*/
|
|
110
|
+
private serialize;
|
|
111
|
+
/**
|
|
112
|
+
* @internal
|
|
113
|
+
*/
|
|
114
|
+
private deserialize;
|
|
115
|
+
}
|
|
@@ -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";
|
package/dist-types/index.d.ts
CHANGED
|
@@ -31,6 +31,11 @@
|
|
|
31
31
|
* </li>
|
|
32
32
|
* <li>
|
|
33
33
|
* <p>
|
|
34
|
+
* <a>UpdateRepositoryEncryptionKey</a>, which updates the Key Management Service encryption key used
|
|
35
|
+
* to encrypt and decrypt a repository.</p>
|
|
36
|
+
* </li>
|
|
37
|
+
* <li>
|
|
38
|
+
* <p>
|
|
34
39
|
* <a>UpdateRepositoryName</a>, which changes the name of the
|
|
35
40
|
* repository. If you change the name of a repository, no other users of that
|
|
36
41
|
* repository can access it until you send them the new HTTPS or SSH URL to
|