aws-sdk
Version:
AWS SDK for JavaScript
938 lines • 84.8 kB
TypeScript
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class CodeCommit extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: CodeCommit.Types.ClientConfiguration)
config: Config & CodeCommit.Types.ClientConfiguration;
/**
* Returns information about one or more repositories. The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.
*/
batchGetRepositories(params: CodeCommit.Types.BatchGetRepositoriesInput, callback?: (err: AWSError, data: CodeCommit.Types.BatchGetRepositoriesOutput) => void): Request<CodeCommit.Types.BatchGetRepositoriesOutput, AWSError>;
/**
* Returns information about one or more repositories. The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.
*/
batchGetRepositories(callback?: (err: AWSError, data: CodeCommit.Types.BatchGetRepositoriesOutput) => void): Request<CodeCommit.Types.BatchGetRepositoriesOutput, AWSError>;
/**
* Creates a new branch in a repository and points the branch to a commit. Calling the create branch operation does not set a repository's default branch. To do this, call the update default branch operation.
*/
createBranch(params: CodeCommit.Types.CreateBranchInput, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Creates a new branch in a repository and points the branch to a commit. Calling the create branch operation does not set a repository's default branch. To do this, call the update default branch operation.
*/
createBranch(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Creates a pull request in the specified repository.
*/
createPullRequest(params: CodeCommit.Types.CreatePullRequestInput, callback?: (err: AWSError, data: CodeCommit.Types.CreatePullRequestOutput) => void): Request<CodeCommit.Types.CreatePullRequestOutput, AWSError>;
/**
* Creates a pull request in the specified repository.
*/
createPullRequest(callback?: (err: AWSError, data: CodeCommit.Types.CreatePullRequestOutput) => void): Request<CodeCommit.Types.CreatePullRequestOutput, AWSError>;
/**
* Creates a new, empty repository.
*/
createRepository(params: CodeCommit.Types.CreateRepositoryInput, callback?: (err: AWSError, data: CodeCommit.Types.CreateRepositoryOutput) => void): Request<CodeCommit.Types.CreateRepositoryOutput, AWSError>;
/**
* Creates a new, empty repository.
*/
createRepository(callback?: (err: AWSError, data: CodeCommit.Types.CreateRepositoryOutput) => void): Request<CodeCommit.Types.CreateRepositoryOutput, AWSError>;
/**
* Deletes a branch from a repository, unless that branch is the default branch for the repository.
*/
deleteBranch(params: CodeCommit.Types.DeleteBranchInput, callback?: (err: AWSError, data: CodeCommit.Types.DeleteBranchOutput) => void): Request<CodeCommit.Types.DeleteBranchOutput, AWSError>;
/**
* Deletes a branch from a repository, unless that branch is the default branch for the repository.
*/
deleteBranch(callback?: (err: AWSError, data: CodeCommit.Types.DeleteBranchOutput) => void): Request<CodeCommit.Types.DeleteBranchOutput, AWSError>;
/**
* Deletes the content of a comment made on a change, file, or commit in a repository.
*/
deleteCommentContent(params: CodeCommit.Types.DeleteCommentContentInput, callback?: (err: AWSError, data: CodeCommit.Types.DeleteCommentContentOutput) => void): Request<CodeCommit.Types.DeleteCommentContentOutput, AWSError>;
/**
* Deletes the content of a comment made on a change, file, or commit in a repository.
*/
deleteCommentContent(callback?: (err: AWSError, data: CodeCommit.Types.DeleteCommentContentOutput) => void): Request<CodeCommit.Types.DeleteCommentContentOutput, AWSError>;
/**
* Deletes a specified file from a specified branch. A commit is created on the branch that contains the revision. The file will still exist in the commits prior to the commit that contains the deletion.
*/
deleteFile(params: CodeCommit.Types.DeleteFileInput, callback?: (err: AWSError, data: CodeCommit.Types.DeleteFileOutput) => void): Request<CodeCommit.Types.DeleteFileOutput, AWSError>;
/**
* Deletes a specified file from a specified branch. A commit is created on the branch that contains the revision. The file will still exist in the commits prior to the commit that contains the deletion.
*/
deleteFile(callback?: (err: AWSError, data: CodeCommit.Types.DeleteFileOutput) => void): Request<CodeCommit.Types.DeleteFileOutput, AWSError>;
/**
* Deletes a repository. If a specified repository was already deleted, a null repository ID will be returned. Deleting a repository also deletes all associated objects and metadata. After a repository is deleted, all future push calls to the deleted repository will fail.
*/
deleteRepository(params: CodeCommit.Types.DeleteRepositoryInput, callback?: (err: AWSError, data: CodeCommit.Types.DeleteRepositoryOutput) => void): Request<CodeCommit.Types.DeleteRepositoryOutput, AWSError>;
/**
* Deletes a repository. If a specified repository was already deleted, a null repository ID will be returned. Deleting a repository also deletes all associated objects and metadata. After a repository is deleted, all future push calls to the deleted repository will fail.
*/
deleteRepository(callback?: (err: AWSError, data: CodeCommit.Types.DeleteRepositoryOutput) => void): Request<CodeCommit.Types.DeleteRepositoryOutput, AWSError>;
/**
* Returns information about one or more pull request events.
*/
describePullRequestEvents(params: CodeCommit.Types.DescribePullRequestEventsInput, callback?: (err: AWSError, data: CodeCommit.Types.DescribePullRequestEventsOutput) => void): Request<CodeCommit.Types.DescribePullRequestEventsOutput, AWSError>;
/**
* Returns information about one or more pull request events.
*/
describePullRequestEvents(callback?: (err: AWSError, data: CodeCommit.Types.DescribePullRequestEventsOutput) => void): Request<CodeCommit.Types.DescribePullRequestEventsOutput, AWSError>;
/**
* Returns the base-64 encoded content of an individual blob within a repository.
*/
getBlob(params: CodeCommit.Types.GetBlobInput, callback?: (err: AWSError, data: CodeCommit.Types.GetBlobOutput) => void): Request<CodeCommit.Types.GetBlobOutput, AWSError>;
/**
* Returns the base-64 encoded content of an individual blob within a repository.
*/
getBlob(callback?: (err: AWSError, data: CodeCommit.Types.GetBlobOutput) => void): Request<CodeCommit.Types.GetBlobOutput, AWSError>;
/**
* Returns information about a repository branch, including its name and the last commit ID.
*/
getBranch(params: CodeCommit.Types.GetBranchInput, callback?: (err: AWSError, data: CodeCommit.Types.GetBranchOutput) => void): Request<CodeCommit.Types.GetBranchOutput, AWSError>;
/**
* Returns information about a repository branch, including its name and the last commit ID.
*/
getBranch(callback?: (err: AWSError, data: CodeCommit.Types.GetBranchOutput) => void): Request<CodeCommit.Types.GetBranchOutput, AWSError>;
/**
* Returns the content of a comment made on a change, file, or commit in a repository.
*/
getComment(params: CodeCommit.Types.GetCommentInput, callback?: (err: AWSError, data: CodeCommit.Types.GetCommentOutput) => void): Request<CodeCommit.Types.GetCommentOutput, AWSError>;
/**
* Returns the content of a comment made on a change, file, or commit in a repository.
*/
getComment(callback?: (err: AWSError, data: CodeCommit.Types.GetCommentOutput) => void): Request<CodeCommit.Types.GetCommentOutput, AWSError>;
/**
* Returns information about comments made on the comparison between two commits.
*/
getCommentsForComparedCommit(params: CodeCommit.Types.GetCommentsForComparedCommitInput, callback?: (err: AWSError, data: CodeCommit.Types.GetCommentsForComparedCommitOutput) => void): Request<CodeCommit.Types.GetCommentsForComparedCommitOutput, AWSError>;
/**
* Returns information about comments made on the comparison between two commits.
*/
getCommentsForComparedCommit(callback?: (err: AWSError, data: CodeCommit.Types.GetCommentsForComparedCommitOutput) => void): Request<CodeCommit.Types.GetCommentsForComparedCommitOutput, AWSError>;
/**
* Returns comments made on a pull request.
*/
getCommentsForPullRequest(params: CodeCommit.Types.GetCommentsForPullRequestInput, callback?: (err: AWSError, data: CodeCommit.Types.GetCommentsForPullRequestOutput) => void): Request<CodeCommit.Types.GetCommentsForPullRequestOutput, AWSError>;
/**
* Returns comments made on a pull request.
*/
getCommentsForPullRequest(callback?: (err: AWSError, data: CodeCommit.Types.GetCommentsForPullRequestOutput) => void): Request<CodeCommit.Types.GetCommentsForPullRequestOutput, AWSError>;
/**
* Returns information about a commit, including commit message and committer information.
*/
getCommit(params: CodeCommit.Types.GetCommitInput, callback?: (err: AWSError, data: CodeCommit.Types.GetCommitOutput) => void): Request<CodeCommit.Types.GetCommitOutput, AWSError>;
/**
* Returns information about a commit, including commit message and committer information.
*/
getCommit(callback?: (err: AWSError, data: CodeCommit.Types.GetCommitOutput) => void): Request<CodeCommit.Types.GetCommitOutput, AWSError>;
/**
* Returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID or other fully qualified reference). Results can be limited to a specified path.
*/
getDifferences(params: CodeCommit.Types.GetDifferencesInput, callback?: (err: AWSError, data: CodeCommit.Types.GetDifferencesOutput) => void): Request<CodeCommit.Types.GetDifferencesOutput, AWSError>;
/**
* Returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID or other fully qualified reference). Results can be limited to a specified path.
*/
getDifferences(callback?: (err: AWSError, data: CodeCommit.Types.GetDifferencesOutput) => void): Request<CodeCommit.Types.GetDifferencesOutput, AWSError>;
/**
* Returns the base-64 encoded contents of a specified file and its metadata.
*/
getFile(params: CodeCommit.Types.GetFileInput, callback?: (err: AWSError, data: CodeCommit.Types.GetFileOutput) => void): Request<CodeCommit.Types.GetFileOutput, AWSError>;
/**
* Returns the base-64 encoded contents of a specified file and its metadata.
*/
getFile(callback?: (err: AWSError, data: CodeCommit.Types.GetFileOutput) => void): Request<CodeCommit.Types.GetFileOutput, AWSError>;
/**
* Returns the contents of a specified folder in a repository.
*/
getFolder(params: CodeCommit.Types.GetFolderInput, callback?: (err: AWSError, data: CodeCommit.Types.GetFolderOutput) => void): Request<CodeCommit.Types.GetFolderOutput, AWSError>;
/**
* Returns the contents of a specified folder in a repository.
*/
getFolder(callback?: (err: AWSError, data: CodeCommit.Types.GetFolderOutput) => void): Request<CodeCommit.Types.GetFolderOutput, AWSError>;
/**
* Returns information about merge conflicts between the before and after commit IDs for a pull request in a repository.
*/
getMergeConflicts(params: CodeCommit.Types.GetMergeConflictsInput, callback?: (err: AWSError, data: CodeCommit.Types.GetMergeConflictsOutput) => void): Request<CodeCommit.Types.GetMergeConflictsOutput, AWSError>;
/**
* Returns information about merge conflicts between the before and after commit IDs for a pull request in a repository.
*/
getMergeConflicts(callback?: (err: AWSError, data: CodeCommit.Types.GetMergeConflictsOutput) => void): Request<CodeCommit.Types.GetMergeConflictsOutput, AWSError>;
/**
* Gets information about a pull request in a specified repository.
*/
getPullRequest(params: CodeCommit.Types.GetPullRequestInput, callback?: (err: AWSError, data: CodeCommit.Types.GetPullRequestOutput) => void): Request<CodeCommit.Types.GetPullRequestOutput, AWSError>;
/**
* Gets information about a pull request in a specified repository.
*/
getPullRequest(callback?: (err: AWSError, data: CodeCommit.Types.GetPullRequestOutput) => void): Request<CodeCommit.Types.GetPullRequestOutput, AWSError>;
/**
* Returns information about a repository. The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.
*/
getRepository(params: CodeCommit.Types.GetRepositoryInput, callback?: (err: AWSError, data: CodeCommit.Types.GetRepositoryOutput) => void): Request<CodeCommit.Types.GetRepositoryOutput, AWSError>;
/**
* Returns information about a repository. The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.
*/
getRepository(callback?: (err: AWSError, data: CodeCommit.Types.GetRepositoryOutput) => void): Request<CodeCommit.Types.GetRepositoryOutput, AWSError>;
/**
* Gets information about triggers configured for a repository.
*/
getRepositoryTriggers(params: CodeCommit.Types.GetRepositoryTriggersInput, callback?: (err: AWSError, data: CodeCommit.Types.GetRepositoryTriggersOutput) => void): Request<CodeCommit.Types.GetRepositoryTriggersOutput, AWSError>;
/**
* Gets information about triggers configured for a repository.
*/
getRepositoryTriggers(callback?: (err: AWSError, data: CodeCommit.Types.GetRepositoryTriggersOutput) => void): Request<CodeCommit.Types.GetRepositoryTriggersOutput, AWSError>;
/**
* Gets information about one or more branches in a repository.
*/
listBranches(params: CodeCommit.Types.ListBranchesInput, callback?: (err: AWSError, data: CodeCommit.Types.ListBranchesOutput) => void): Request<CodeCommit.Types.ListBranchesOutput, AWSError>;
/**
* Gets information about one or more branches in a repository.
*/
listBranches(callback?: (err: AWSError, data: CodeCommit.Types.ListBranchesOutput) => void): Request<CodeCommit.Types.ListBranchesOutput, AWSError>;
/**
* Returns a list of pull requests for a specified repository. The return list can be refined by pull request status or pull request author ARN.
*/
listPullRequests(params: CodeCommit.Types.ListPullRequestsInput, callback?: (err: AWSError, data: CodeCommit.Types.ListPullRequestsOutput) => void): Request<CodeCommit.Types.ListPullRequestsOutput, AWSError>;
/**
* Returns a list of pull requests for a specified repository. The return list can be refined by pull request status or pull request author ARN.
*/
listPullRequests(callback?: (err: AWSError, data: CodeCommit.Types.ListPullRequestsOutput) => void): Request<CodeCommit.Types.ListPullRequestsOutput, AWSError>;
/**
* Gets information about one or more repositories.
*/
listRepositories(params: CodeCommit.Types.ListRepositoriesInput, callback?: (err: AWSError, data: CodeCommit.Types.ListRepositoriesOutput) => void): Request<CodeCommit.Types.ListRepositoriesOutput, AWSError>;
/**
* Gets information about one or more repositories.
*/
listRepositories(callback?: (err: AWSError, data: CodeCommit.Types.ListRepositoriesOutput) => void): Request<CodeCommit.Types.ListRepositoriesOutput, AWSError>;
/**
* Closes a pull request and attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the fast-forward merge option.
*/
mergePullRequestByFastForward(params: CodeCommit.Types.MergePullRequestByFastForwardInput, callback?: (err: AWSError, data: CodeCommit.Types.MergePullRequestByFastForwardOutput) => void): Request<CodeCommit.Types.MergePullRequestByFastForwardOutput, AWSError>;
/**
* Closes a pull request and attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the fast-forward merge option.
*/
mergePullRequestByFastForward(callback?: (err: AWSError, data: CodeCommit.Types.MergePullRequestByFastForwardOutput) => void): Request<CodeCommit.Types.MergePullRequestByFastForwardOutput, AWSError>;
/**
* Posts a comment on the comparison between two commits.
*/
postCommentForComparedCommit(params: CodeCommit.Types.PostCommentForComparedCommitInput, callback?: (err: AWSError, data: CodeCommit.Types.PostCommentForComparedCommitOutput) => void): Request<CodeCommit.Types.PostCommentForComparedCommitOutput, AWSError>;
/**
* Posts a comment on the comparison between two commits.
*/
postCommentForComparedCommit(callback?: (err: AWSError, data: CodeCommit.Types.PostCommentForComparedCommitOutput) => void): Request<CodeCommit.Types.PostCommentForComparedCommitOutput, AWSError>;
/**
* Posts a comment on a pull request.
*/
postCommentForPullRequest(params: CodeCommit.Types.PostCommentForPullRequestInput, callback?: (err: AWSError, data: CodeCommit.Types.PostCommentForPullRequestOutput) => void): Request<CodeCommit.Types.PostCommentForPullRequestOutput, AWSError>;
/**
* Posts a comment on a pull request.
*/
postCommentForPullRequest(callback?: (err: AWSError, data: CodeCommit.Types.PostCommentForPullRequestOutput) => void): Request<CodeCommit.Types.PostCommentForPullRequestOutput, AWSError>;
/**
* Posts a comment in reply to an existing comment on a comparison between commits or a pull request.
*/
postCommentReply(params: CodeCommit.Types.PostCommentReplyInput, callback?: (err: AWSError, data: CodeCommit.Types.PostCommentReplyOutput) => void): Request<CodeCommit.Types.PostCommentReplyOutput, AWSError>;
/**
* Posts a comment in reply to an existing comment on a comparison between commits or a pull request.
*/
postCommentReply(callback?: (err: AWSError, data: CodeCommit.Types.PostCommentReplyOutput) => void): Request<CodeCommit.Types.PostCommentReplyOutput, AWSError>;
/**
* Adds or updates a file in a branch in an AWS CodeCommit repository, and generates a commit for the addition in the specified branch.
*/
putFile(params: CodeCommit.Types.PutFileInput, callback?: (err: AWSError, data: CodeCommit.Types.PutFileOutput) => void): Request<CodeCommit.Types.PutFileOutput, AWSError>;
/**
* Adds or updates a file in a branch in an AWS CodeCommit repository, and generates a commit for the addition in the specified branch.
*/
putFile(callback?: (err: AWSError, data: CodeCommit.Types.PutFileOutput) => void): Request<CodeCommit.Types.PutFileOutput, AWSError>;
/**
* Replaces all triggers for a repository. This can be used to create or delete triggers.
*/
putRepositoryTriggers(params: CodeCommit.Types.PutRepositoryTriggersInput, callback?: (err: AWSError, data: CodeCommit.Types.PutRepositoryTriggersOutput) => void): Request<CodeCommit.Types.PutRepositoryTriggersOutput, AWSError>;
/**
* Replaces all triggers for a repository. This can be used to create or delete triggers.
*/
putRepositoryTriggers(callback?: (err: AWSError, data: CodeCommit.Types.PutRepositoryTriggersOutput) => void): Request<CodeCommit.Types.PutRepositoryTriggersOutput, AWSError>;
/**
* Tests the functionality of repository triggers by sending information to the trigger target. If real data is available in the repository, the test will send data from the last commit. If no data is available, sample data will be generated.
*/
testRepositoryTriggers(params: CodeCommit.Types.TestRepositoryTriggersInput, callback?: (err: AWSError, data: CodeCommit.Types.TestRepositoryTriggersOutput) => void): Request<CodeCommit.Types.TestRepositoryTriggersOutput, AWSError>;
/**
* Tests the functionality of repository triggers by sending information to the trigger target. If real data is available in the repository, the test will send data from the last commit. If no data is available, sample data will be generated.
*/
testRepositoryTriggers(callback?: (err: AWSError, data: CodeCommit.Types.TestRepositoryTriggersOutput) => void): Request<CodeCommit.Types.TestRepositoryTriggersOutput, AWSError>;
/**
* Replaces the contents of a comment.
*/
updateComment(params: CodeCommit.Types.UpdateCommentInput, callback?: (err: AWSError, data: CodeCommit.Types.UpdateCommentOutput) => void): Request<CodeCommit.Types.UpdateCommentOutput, AWSError>;
/**
* Replaces the contents of a comment.
*/
updateComment(callback?: (err: AWSError, data: CodeCommit.Types.UpdateCommentOutput) => void): Request<CodeCommit.Types.UpdateCommentOutput, AWSError>;
/**
* Sets or changes the default branch name for the specified repository. If you use this operation to change the default branch name to the current default branch name, a success message is returned even though the default branch did not change.
*/
updateDefaultBranch(params: CodeCommit.Types.UpdateDefaultBranchInput, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Sets or changes the default branch name for the specified repository. If you use this operation to change the default branch name to the current default branch name, a success message is returned even though the default branch did not change.
*/
updateDefaultBranch(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Replaces the contents of the description of a pull request.
*/
updatePullRequestDescription(params: CodeCommit.Types.UpdatePullRequestDescriptionInput, callback?: (err: AWSError, data: CodeCommit.Types.UpdatePullRequestDescriptionOutput) => void): Request<CodeCommit.Types.UpdatePullRequestDescriptionOutput, AWSError>;
/**
* Replaces the contents of the description of a pull request.
*/
updatePullRequestDescription(callback?: (err: AWSError, data: CodeCommit.Types.UpdatePullRequestDescriptionOutput) => void): Request<CodeCommit.Types.UpdatePullRequestDescriptionOutput, AWSError>;
/**
* Updates the status of a pull request.
*/
updatePullRequestStatus(params: CodeCommit.Types.UpdatePullRequestStatusInput, callback?: (err: AWSError, data: CodeCommit.Types.UpdatePullRequestStatusOutput) => void): Request<CodeCommit.Types.UpdatePullRequestStatusOutput, AWSError>;
/**
* Updates the status of a pull request.
*/
updatePullRequestStatus(callback?: (err: AWSError, data: CodeCommit.Types.UpdatePullRequestStatusOutput) => void): Request<CodeCommit.Types.UpdatePullRequestStatusOutput, AWSError>;
/**
* Replaces the title of a pull request.
*/
updatePullRequestTitle(params: CodeCommit.Types.UpdatePullRequestTitleInput, callback?: (err: AWSError, data: CodeCommit.Types.UpdatePullRequestTitleOutput) => void): Request<CodeCommit.Types.UpdatePullRequestTitleOutput, AWSError>;
/**
* Replaces the title of a pull request.
*/
updatePullRequestTitle(callback?: (err: AWSError, data: CodeCommit.Types.UpdatePullRequestTitleOutput) => void): Request<CodeCommit.Types.UpdatePullRequestTitleOutput, AWSError>;
/**
* Sets or changes the comment or description for a repository. The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.
*/
updateRepositoryDescription(params: CodeCommit.Types.UpdateRepositoryDescriptionInput, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Sets or changes the comment or description for a repository. The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.
*/
updateRepositoryDescription(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Renames a repository. The repository name must be unique across the calling AWS account. In addition, repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. The suffix ".git" is prohibited. For a full description of the limits on repository names, see Limits in the AWS CodeCommit User Guide.
*/
updateRepositoryName(params: CodeCommit.Types.UpdateRepositoryNameInput, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Renames a repository. The repository name must be unique across the calling AWS account. In addition, repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. The suffix ".git" is prohibited. For a full description of the limits on repository names, see Limits in the AWS CodeCommit User Guide.
*/
updateRepositoryName(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
}
declare namespace CodeCommit {
export type AccountId = string;
export type AdditionalData = string;
export type Arn = string;
export interface BatchGetRepositoriesInput {
/**
* The names of the repositories to get information about.
*/
repositoryNames: RepositoryNameList;
}
export interface BatchGetRepositoriesOutput {
/**
* A list of repositories returned by the batch get repositories operation.
*/
repositories?: RepositoryMetadataList;
/**
* Returns a list of repository names for which information could not be found.
*/
repositoriesNotFound?: RepositoryNotFoundList;
}
export interface BlobMetadata {
/**
* The full ID of the blob.
*/
blobId?: ObjectId;
/**
* The path to the blob and any associated file name, if any.
*/
path?: Path;
/**
* The file mode permissions of the blob. File mode permission codes include: 100644 indicates read/write 100755 indicates read/write/execute 160000 indicates a submodule 120000 indicates a symlink
*/
mode?: Mode;
}
export interface BranchInfo {
/**
* The name of the branch.
*/
branchName?: BranchName;
/**
* The ID of the last commit made to the branch.
*/
commitId?: CommitId;
}
export type BranchName = string;
export type BranchNameList = BranchName[];
export type ChangeTypeEnum = "A"|"M"|"D"|string;
export type ClientRequestToken = string;
export type CloneUrlHttp = string;
export type CloneUrlSsh = string;
export interface Comment {
/**
* The system-generated comment ID.
*/
commentId?: CommentId;
/**
* The content of the comment.
*/
content?: Content;
/**
* The ID of the comment for which this comment is a reply, if any.
*/
inReplyTo?: CommentId;
/**
* The date and time the comment was created, in timestamp format.
*/
creationDate?: CreationDate;
/**
* The date and time the comment was most recently modified, in timestamp format.
*/
lastModifiedDate?: LastModifiedDate;
/**
* The Amazon Resource Name (ARN) of the person who posted the comment.
*/
authorArn?: Arn;
/**
* A Boolean value indicating whether the comment has been deleted.
*/
deleted?: IsCommentDeleted;
/**
* A unique, client-generated idempotency token that when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request will return information about the initial request that used that token.
*/
clientRequestToken?: ClientRequestToken;
}
export type CommentId = string;
export type Comments = Comment[];
export interface CommentsForComparedCommit {
/**
* The name of the repository that contains the compared commits.
*/
repositoryName?: RepositoryName;
/**
* The full commit ID of the commit used to establish the 'before' of the comparison.
*/
beforeCommitId?: CommitId;
/**
* The full commit ID of the commit used to establish the 'after' of the comparison.
*/
afterCommitId?: CommitId;
/**
* The full blob ID of the commit used to establish the 'before' of the comparison.
*/
beforeBlobId?: ObjectId;
/**
* The full blob ID of the commit used to establish the 'after' of the comparison.
*/
afterBlobId?: ObjectId;
/**
* Location information about the comment on the comparison, including the file name, line number, and whether the version of the file where the comment was made is 'BEFORE' or 'AFTER'.
*/
location?: Location;
/**
* An array of comment objects. Each comment object contains information about a comment on the comparison between commits.
*/
comments?: Comments;
}
export type CommentsForComparedCommitData = CommentsForComparedCommit[];
export interface CommentsForPullRequest {
/**
* The system-generated ID of the pull request.
*/
pullRequestId?: PullRequestId;
/**
* The name of the repository that contains the pull request.
*/
repositoryName?: RepositoryName;
/**
* The full commit ID of the commit that was the tip of the destination branch when the pull request was created. This commit will be superceded by the after commit in the source branch when and if you merge the source branch into the destination branch.
*/
beforeCommitId?: CommitId;
/**
* he full commit ID of the commit that was the tip of the source branch at the time the comment was made.
*/
afterCommitId?: CommitId;
/**
* The full blob ID of the file on which you want to comment on the destination commit.
*/
beforeBlobId?: ObjectId;
/**
* The full blob ID of the file on which you want to comment on the source commit.
*/
afterBlobId?: ObjectId;
/**
* Location information about the comment on the pull request, including the file name, line number, and whether the version of the file where the comment was made is 'BEFORE' (destination branch) or 'AFTER' (source branch).
*/
location?: Location;
/**
* An array of comment objects. Each comment object contains information about a comment on the pull request.
*/
comments?: Comments;
}
export type CommentsForPullRequestData = CommentsForPullRequest[];
export interface Commit {
/**
* The full SHA of the specified commit.
*/
commitId?: ObjectId;
/**
* Tree information for the specified commit.
*/
treeId?: ObjectId;
/**
* A list of parent commits for the specified commit. Each parent commit ID is the full commit ID.
*/
parents?: ParentList;
/**
* The commit message associated with the specified commit.
*/
message?: Message;
/**
* Information about the author of the specified commit. Information includes the date in timestamp format with GMT offset, the name of the author, and the email address for the author, as configured in Git.
*/
author?: UserInfo;
/**
* Information about the person who committed the specified commit, also known as the committer. Information includes the date in timestamp format with GMT offset, the name of the committer, and the email address for the committer, as configured in Git. For more information about the difference between an author and a committer in Git, see Viewing the Commit History in Pro Git by Scott Chacon and Ben Straub.
*/
committer?: UserInfo;
/**
* Any additional data associated with the specified commit.
*/
additionalData?: AdditionalData;
}
export type CommitId = string;
export type CommitName = string;
export type Content = string;
export interface CreateBranchInput {
/**
* The name of the repository in which you want to create the new branch.
*/
repositoryName: RepositoryName;
/**
* The name of the new branch to create.
*/
branchName: BranchName;
/**
* The ID of the commit to point the new branch to.
*/
commitId: CommitId;
}
export interface CreatePullRequestInput {
/**
* The title of the pull request. This title will be used to identify the pull request to other users in the repository.
*/
title: Title;
/**
* A description of the pull request.
*/
description?: Description;
/**
* The targets for the pull request, including the source of the code to be reviewed (the source branch), and the destination where the creator of the pull request intends the code to be merged after the pull request is closed (the destination branch).
*/
targets: TargetList;
/**
* A unique, client-generated idempotency token that when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request will return information about the initial request that used that token. The AWS SDKs prepopulate client request tokens. If using an AWS SDK, you do not have to generate an idempotency token, as this will be done for you.
*/
clientRequestToken?: ClientRequestToken;
}
export interface CreatePullRequestOutput {
/**
* Information about the newly created pull request.
*/
pullRequest: PullRequest;
}
export interface CreateRepositoryInput {
/**
* The name of the new repository to be created. The repository name must be unique across the calling AWS account. In addition, repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. For a full description of the limits on repository names, see Limits in the AWS CodeCommit User Guide. The suffix ".git" is prohibited.
*/
repositoryName: RepositoryName;
/**
* A comment or description about the new repository. The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.
*/
repositoryDescription?: RepositoryDescription;
}
export interface CreateRepositoryOutput {
/**
* Information about the newly created repository.
*/
repositoryMetadata?: RepositoryMetadata;
}
export type CreationDate = Date;
export type _Date = string;
export interface DeleteBranchInput {
/**
* The name of the repository that contains the branch to be deleted.
*/
repositoryName: RepositoryName;
/**
* The name of the branch to delete.
*/
branchName: BranchName;
}
export interface DeleteBranchOutput {
/**
* Information about the branch deleted by the operation, including the branch name and the commit ID that was the tip of the branch.
*/
deletedBranch?: BranchInfo;
}
export interface DeleteCommentContentInput {
/**
* The unique, system-generated ID of the comment. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.
*/
commentId: CommentId;
}
export interface DeleteCommentContentOutput {
/**
* Information about the comment you just deleted.
*/
comment?: Comment;
}
export interface DeleteFileInput {
/**
* The name of the repository that contains the file to delete.
*/
repositoryName: RepositoryName;
/**
* The name of the branch where the commit will be made deleting the file.
*/
branchName: BranchName;
/**
* The fully-qualified path to the file that will be deleted, including the full name and extension of that file. For example, /examples/file.md is a fully qualified path to a file named file.md in a folder named examples.
*/
filePath: Path;
/**
* The ID of the commit that is the tip of the branch where you want to create the commit that will delete the file. This must be the HEAD commit for the branch. The commit that deletes the file will be created from this commit ID.
*/
parentCommitId: CommitId;
/**
* Specifies whether to delete the folder or directory that contains the file you want to delete if that file is the only object in the folder or directory. By default, empty folders will be deleted. This includes empty folders that are part of the directory structure. For example, if the path to a file is dir1/dir2/dir3/dir4, and dir2 and dir3 are empty, deleting the last file in dir4 will also delete the empty folders dir4, dir3, and dir2.
*/
keepEmptyFolders?: KeepEmptyFolders;
/**
* The commit message you want to include as part of deleting the file. Commit messages are limited to 256 KB. If no message is specified, a default message will be used.
*/
commitMessage?: Message;
/**
* The name of the author of the commit that deletes the file. If no name is specified, the user's ARN will be used as the author name and committer name.
*/
name?: Name;
/**
* The email address for the commit that deletes the file. If no email address is specified, the email address will be left blank.
*/
email?: Email;
}
export interface DeleteFileOutput {
/**
* The full commit ID of the commit that contains the change that deletes the file.
*/
commitId: ObjectId;
/**
* The blob ID removed from the tree as part of deleting the file.
*/
blobId: ObjectId;
/**
* The full SHA-1 pointer of the tree information for the commit that contains the delete file change.
*/
treeId: ObjectId;
/**
* The fully-qualified path to the file that will be deleted, including the full name and extension of that file.
*/
filePath: Path;
}
export interface DeleteRepositoryInput {
/**
* The name of the repository to delete.
*/
repositoryName: RepositoryName;
}
export interface DeleteRepositoryOutput {
/**
* The ID of the repository that was deleted.
*/
repositoryId?: RepositoryId;
}
export interface DescribePullRequestEventsInput {
/**
* The system-generated ID of the pull request. To get this ID, use ListPullRequests.
*/
pullRequestId: PullRequestId;
/**
* Optional. The pull request event type about which you want to return information.
*/
pullRequestEventType?: PullRequestEventType;
/**
* The Amazon Resource Name (ARN) of the user whose actions resulted in the event. Examples include updating the pull request with additional commits or changing the status of a pull request.
*/
actorArn?: Arn;
/**
* An enumeration token that when provided in a request, returns the next batch of the results.
*/
nextToken?: NextToken;
/**
* A non-negative integer used to limit the number of returned results. The default is 100 events, which is also the maximum number of events that can be returned in a result.
*/
maxResults?: MaxResults;
}
export interface DescribePullRequestEventsOutput {
/**
* Information about the pull request events.
*/
pullRequestEvents: PullRequestEventList;
/**
* An enumeration token that can be used in a request to return the next batch of the results.
*/
nextToken?: NextToken;
}
export type Description = string;
export interface Difference {
/**
* Information about a beforeBlob data type object, including the ID, the file mode permission code, and the path.
*/
beforeBlob?: BlobMetadata;
/**
* Information about an afterBlob data type object, including the ID, the file mode permission code, and the path.
*/
afterBlob?: BlobMetadata;
/**
* Whether the change type of the difference is an addition (A), deletion (D), or modification (M).
*/
changeType?: ChangeTypeEnum;
}
export type DifferenceList = Difference[];
export type Email = string;
export type EventDate = Date;
export interface File {
/**
* The blob ID that contains the file information.
*/
blobId?: ObjectId;
/**
* The fully-qualified path to the file in the repository.
*/
absolutePath?: Path;
/**
* The relative path of the file from the folder where the query originated.
*/
relativePath?: Path;
/**
* The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.
*/
fileMode?: FileModeTypeEnum;
}
export type FileContent = Buffer|Uint8Array|Blob|string;
export type FileList = File[];
export type FileModeTypeEnum = "EXECUTABLE"|"NORMAL"|"SYMLINK"|string;
export interface Folder {
/**
* The full SHA-1 pointer of the tree information for the commit that contains the folder.
*/
treeId?: ObjectId;
/**
* The fully-qualified path of the folder in the repository.
*/
absolutePath?: Path;
/**
* The relative path of the specified folder from the folder where the query originated.
*/
relativePath?: Path;
}
export type FolderList = Folder[];
export interface GetBlobInput {
/**
* The name of the repository that contains the blob.
*/
repositoryName: RepositoryName;
/**
* The ID of the blob, which is its SHA-1 pointer.
*/
blobId: ObjectId;
}
export interface GetBlobOutput {
/**
* The content of the blob, usually a file.
*/
content: blob;
}
export interface GetBranchInput {
/**
* The name of the repository that contains the branch for which you want to retrieve information.
*/
repositoryName?: RepositoryName;
/**
* The name of the branch for which you want to retrieve information.
*/
branchName?: BranchName;
}
export interface GetBranchOutput {
/**
* The name of the branch.
*/
branch?: BranchInfo;
}
export interface GetCommentInput {
/**
* The unique, system-generated ID of the comment. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.
*/
commentId: CommentId;
}
export interface GetCommentOutput {
/**
* The contents of the comment.
*/
comment?: Comment;
}
export interface GetCommentsForComparedCommitInput {
/**
* The name of the repository where you want to compare commits.
*/
repositoryName: RepositoryName;
/**
* To establish the directionality of the comparison, the full commit ID of the 'before' commit.
*/
beforeCommitId?: CommitId;
/**
* To establish the directionality of the comparison, the full commit ID of the 'after' commit.
*/
afterCommitId: CommitId;
/**
* An enumeration token that when provided in a request, returns the next batch of the results.
*/
nextToken?: NextToken;
/**
* A non-negative integer used to limit the number of returned results. The default is 100 comments, and is configurable up to 500.
*/
maxResults?: MaxResults;
}
export interface GetCommentsForComparedCommitOutput {
/**
* A list of comment objects on the compared commit.
*/
commentsForComparedCommitData?: CommentsForComparedCommitData;
/**
* An enumeration token that can be used in a request to return the next batch of the results.
*/
nextToken?: NextToken;
}
export interface GetCommentsForPullRequestInput {
/**
* The system-generated ID of the pull request. To get this ID, use ListPullRequests.
*/
pullRequestId: PullRequestId;
/**
* The name of the repository that contains the pull request.
*/
repositoryName?: RepositoryName;
/**
* The full commit ID of the commit in the destination branch that was the tip of the branch at the time the pull request was created.
*/
beforeCommitId?: CommitId;
/**
* The full commit ID of the commit in the source branch that was the tip of the branch at the time the comment was made.
*/
afterCommitId?: CommitId;
/**
* An enumeration token that when provided in a request, returns the next batch of the results.
*/
nextToken?: NextToken;
/**
* A non-negative integer used to limit the number of returned results. The default is 100 comments. You can return up to 500 comments with a single request.
*/
maxResults?: MaxResults;
}
export interface GetCommentsForPullRequestOutput {
/**
* An array of comment objects on the pull request.
*/
commentsForPullRequestData?: CommentsForPullRequestData;
/**
* An enumeration token that can be used in a request to return the next batch of the results.
*/
nextToken?: NextToken;
}
export interface GetCommitInput {
/**
* The name of the repository to which the commit was made.
*/
repositoryName: RepositoryName;
/**
* The commit ID. Commit IDs are the full SHA of the commit.
*/
commitId: ObjectId;
}
export interface GetCommitOutput {
/**
* A commit data type object that contains information about the specified commit.
*/
commit: Commit;
}
export interface GetDifferencesInput {
/**
* The name of the repository where you want to get differences.
*/
repositoryName: RepositoryName;
/**
* The branch, tag, HEAD, or other fully qualified reference used to identify a commit. For example, the full commit ID. Optional. If not specified, all changes prior to the afterCommitSpecifier value will be shown. If you do not use beforeCommitSpecifier in your request, consider limiting the results with maxResults.
*/
beforeCommitSpecifier?: CommitName;
/**
* The branch, tag, HEAD, or other fully qualified reference used to identify a commit.
*/
afterCommitSpecifier: CommitName;
/**
* The file path in which to check for differences. Limits the results to this path. Can also be used to specify the previous name of a directory or folder. If beforePath and afterPath are not specified, differences will be shown for all paths.
*/
beforePath?: Path;
/**
* The file path in which to check differences. Limits the results to this path. Can also be used to specify the changed name of a directory or folder, if it has changed. If not specified, differences will be shown for all paths.
*/
afterPath?: Path;
/**
* A non-negative integer used to limit the number of returned results.
*/
MaxResults?: Limit;
/**
* An enumeration token that when provided in a request, returns the next batch of the results.
*/
NextToken?: NextToken;
}
export interface GetDifferencesOutput {
/**
* A differences data type object that contains information about the differences, including whether the difference is added, modified, or deleted (A, D, M).
*/
differences?: DifferenceList;
/**
* An enumeration token that can be used in a request to return the next batch of the results.
*/
NextToken?: NextToken;
}
export interface GetFileInput {
/**
* The name of the repository that contains the file.
*/
repositoryName: RepositoryName;
/**
* The fully-quaified reference that identifies the commit that contains the file. For example, you could specify a full commit ID, a tag, a branch name, or a reference such as refs/heads/master. If none is provided, then the head commit will be used.
*/
commitSpecifier?: CommitName;
/**
* The fully-qualified path to the file, including the full name and extension of the file. For example, /examples/file.md is the fully-qualified path to a file named file.md in a folder named examples.
*/
filePath: Path;
}
export interface GetFileOutput {
/**
* The full commit ID of the commit that contains the content returned by GetFile.
*/
commitId: ObjectId;
/**
* The blob ID of the object that represents the file content.
*/
blobId: ObjectId;
/**
* The fully qualified path to the specified file. This returns the name and extension of t