AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Interface for accessing CodeCommit

CodeCommit

This is the CodeCommit API Reference. This reference provides descriptions of the operations and data types for CodeCommit API along with usage examples.

You can use the CodeCommit API to work with the following objects:

Repositories, by calling the following:

Branches, by calling the following:

Files, by calling the following:

Commits, by calling the following:

Merges, by calling the following:

Pull requests, by calling the following:

Approval rule templates, by calling the following:

Comments in a repository, by calling the following:

Tags used to tag resources in CodeCommit (not Git tags), by calling the following:

Triggers, by calling the following:

For information about how to use CodeCommit, see the CodeCommit User Guide.

Inheritance Hierarchy

Amazon.CodeCommit.IAmazonCodeCommit

Namespace: Amazon.CodeCommit
Assembly: AWSSDK.CodeCommit.dll
Version: 3.x.y.z

Syntax

C#
public interface IAmazonCodeCommit
         IAmazonService, IDisposable

The IAmazonCodeCommit type exposes the following members

Properties

NameTypeDescription
Public Property Paginators Amazon.CodeCommit.Model.ICodeCommitPaginatorFactory

Paginators for the service

Methods

Note:

Asynchronous operations (methods ending with Async) in the table below are for .NET 4.5 or higher. For .NET 3.5 the SDK follows the standard naming convention of BeginMethodName and EndMethodName to indicate asynchronous operations - these method pairs are not shown in the table below.

NameDescription
Public Method AssociateApprovalRuleTemplateWithRepository(AssociateApprovalRuleTemplateWithRepositoryRequest)

Creates an association between an approval rule template and a specified repository. Then, the next time a pull request is created in the repository where the destination reference (if specified) matches the destination reference (branch) for the pull request, an approval rule that matches the template conditions is automatically created for that pull request. If no destination references are specified in the template, an approval rule that matches the template contents is created for all pull requests in that repository.

Public Method AssociateApprovalRuleTemplateWithRepositoryAsync(AssociateApprovalRuleTemplateWithRepositoryRequest, CancellationToken)

Creates an association between an approval rule template and a specified repository. Then, the next time a pull request is created in the repository where the destination reference (if specified) matches the destination reference (branch) for the pull request, an approval rule that matches the template conditions is automatically created for that pull request. If no destination references are specified in the template, an approval rule that matches the template contents is created for all pull requests in that repository.

Public Method BatchAssociateApprovalRuleTemplateWithRepositories(BatchAssociateApprovalRuleTemplateWithRepositoriesRequest)

Creates an association between an approval rule template and one or more specified repositories.

Public Method BatchAssociateApprovalRuleTemplateWithRepositoriesAsync(BatchAssociateApprovalRuleTemplateWithRepositoriesRequest, CancellationToken)

Creates an association between an approval rule template and one or more specified repositories.

Public Method BatchDescribeMergeConflicts(BatchDescribeMergeConflictsRequest)

Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy.

Public Method BatchDescribeMergeConflictsAsync(BatchDescribeMergeConflictsRequest, CancellationToken)

Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy.

Public Method BatchDisassociateApprovalRuleTemplateFromRepositories(BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest)

Removes the association between an approval rule template and one or more specified repositories.

Public Method BatchDisassociateApprovalRuleTemplateFromRepositoriesAsync(BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest, CancellationToken)

Removes the association between an approval rule template and one or more specified repositories.

Public Method BatchGetCommits(BatchGetCommitsRequest)

Returns information about the contents of one or more commits in a repository.

Public Method BatchGetCommitsAsync(BatchGetCommitsRequest, CancellationToken)

Returns information about the contents of one or more commits in a repository.

Public Method BatchGetRepositories(BatchGetRepositoriesRequest)

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 webpage can 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 webpage.

Public Method BatchGetRepositoriesAsync(BatchGetRepositoriesRequest, CancellationToken)

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 webpage can 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 webpage.

Public Method CreateApprovalRuleTemplate(CreateApprovalRuleTemplateRequest)

Creates a template for approval rules that can then be associated with one or more repositories in your Amazon Web Services account. When you associate a template with a repository, CodeCommit creates an approval rule that matches the conditions of the template for all pull requests that meet the conditions of the template. For more information, see AssociateApprovalRuleTemplateWithRepository.

Public Method CreateApprovalRuleTemplateAsync(CreateApprovalRuleTemplateRequest, CancellationToken)

Creates a template for approval rules that can then be associated with one or more repositories in your Amazon Web Services account. When you associate a template with a repository, CodeCommit creates an approval rule that matches the conditions of the template for all pull requests that meet the conditions of the template. For more information, see AssociateApprovalRuleTemplateWithRepository.

Public Method CreateBranch(CreateBranchRequest)

Creates a 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.

Public Method CreateBranchAsync(CreateBranchRequest, CancellationToken)

Creates a 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.

Public Method CreateCommit(CreateCommitRequest)

Creates a commit for a repository on the tip of a specified branch.

Public Method CreateCommitAsync(CreateCommitRequest, CancellationToken)

Creates a commit for a repository on the tip of a specified branch.

Public Method CreatePullRequest(CreatePullRequestRequest)

Creates a pull request in the specified repository.

Public Method CreatePullRequestApprovalRule(CreatePullRequestApprovalRuleRequest)

Creates an approval rule for a pull request.

Public Method CreatePullRequestApprovalRuleAsync(CreatePullRequestApprovalRuleRequest, CancellationToken)

Creates an approval rule for a pull request.

Public Method CreatePullRequestAsync(CreatePullRequestRequest, CancellationToken)

Creates a pull request in the specified repository.

Public Method CreateRepository(CreateRepositoryRequest)

Creates a new, empty repository.

Public Method CreateRepositoryAsync(CreateRepositoryRequest, CancellationToken)

Creates a new, empty repository.

Public Method CreateUnreferencedMergeCommit(CreateUnreferencedMergeCommitRequest)

Creates an unreferenced commit that represents the result of merging two branches using a specified merge strategy. This can help you determine the outcome of a potential merge. This API cannot be used with the fast-forward merge strategy because that strategy does not create a merge commit.

This unreferenced merge commit can only be accessed using the GetCommit API or through git commands such as git fetch. To retrieve this commit, you must specify its commit ID or otherwise reference it.

Public Method CreateUnreferencedMergeCommitAsync(CreateUnreferencedMergeCommitRequest, CancellationToken)

Creates an unreferenced commit that represents the result of merging two branches using a specified merge strategy. This can help you determine the outcome of a potential merge. This API cannot be used with the fast-forward merge strategy because that strategy does not create a merge commit.

This unreferenced merge commit can only be accessed using the GetCommit API or through git commands such as git fetch. To retrieve this commit, you must specify its commit ID or otherwise reference it.

Public Method DeleteApprovalRuleTemplate(DeleteApprovalRuleTemplateRequest)

Deletes a specified approval rule template. Deleting a template does not remove approval rules on pull requests already created with the template.

Public Method DeleteApprovalRuleTemplateAsync(DeleteApprovalRuleTemplateRequest, CancellationToken)

Deletes a specified approval rule template. Deleting a template does not remove approval rules on pull requests already created with the template.

Public Method DeleteBranch(DeleteBranchRequest)

Deletes a branch from a repository, unless that branch is the default branch for the repository.

Public Method DeleteBranchAsync(DeleteBranchRequest, CancellationToken)

Deletes a branch from a repository, unless that branch is the default branch for the repository.

Public Method DeleteCommentContent(DeleteCommentContentRequest)

Deletes the content of a comment made on a change, file, or commit in a repository.

Public Method DeleteCommentContentAsync(DeleteCommentContentRequest, CancellationToken)

Deletes the content of a comment made on a change, file, or commit in a repository.

Public Method DeleteFile(DeleteFileRequest)

Deletes a specified file from a specified branch. A commit is created on the branch that contains the revision. The file still exists in the commits earlier to the commit that contains the deletion.

Public Method DeleteFileAsync(DeleteFileRequest, CancellationToken)

Deletes a specified file from a specified branch. A commit is created on the branch that contains the revision. The file still exists in the commits earlier to the commit that contains the deletion.

Public Method DeletePullRequestApprovalRule(DeletePullRequestApprovalRuleRequest)

Deletes an approval rule from a specified pull request. Approval rules can be deleted from a pull request only if the pull request is open, and if the approval rule was created specifically for a pull request and not generated from an approval rule template associated with the repository where the pull request was created. You cannot delete an approval rule from a merged or closed pull request.

Public Method DeletePullRequestApprovalRuleAsync(DeletePullRequestApprovalRuleRequest, CancellationToken)

Deletes an approval rule from a specified pull request. Approval rules can be deleted from a pull request only if the pull request is open, and if the approval rule was created specifically for a pull request and not generated from an approval rule template associated with the repository where the pull request was created. You cannot delete an approval rule from a merged or closed pull request.

Public Method DeleteRepository(DeleteRepositoryRequest)

Deletes a repository. If a specified repository was already deleted, a null repository ID is returned.

Deleting a repository also deletes all associated objects and metadata. After a repository is deleted, all future push calls to the deleted repository fail.

Public Method DeleteRepositoryAsync(DeleteRepositoryRequest, CancellationToken)

Deletes a repository. If a specified repository was already deleted, a null repository ID is returned.

Deleting a repository also deletes all associated objects and metadata. After a repository is deleted, all future push calls to the deleted repository fail.

Public Method DescribeMergeConflicts(DescribeMergeConflictsRequest)

Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy. If the merge option for the attempted merge is specified as FAST_FORWARD_MERGE, an exception is thrown.

Public Method DescribeMergeConflictsAsync(DescribeMergeConflictsRequest, CancellationToken)

Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy. If the merge option for the attempted merge is specified as FAST_FORWARD_MERGE, an exception is thrown.

Public Method DescribePullRequestEvents(DescribePullRequestEventsRequest)

Returns information about one or more pull request events.

Public Method DescribePullRequestEventsAsync(DescribePullRequestEventsRequest, CancellationToken)

Returns information about one or more pull request events.

Public Method DetermineServiceOperationEndpoint(AmazonWebServiceRequest)

Returns the endpoint that will be used for a particular request.

Public Method DisassociateApprovalRuleTemplateFromRepository(DisassociateApprovalRuleTemplateFromRepositoryRequest)

Removes the association between a template and a repository so that approval rules based on the template are not automatically created when pull requests are created in the specified repository. This does not delete any approval rules previously created for pull requests through the template association.

Public Method DisassociateApprovalRuleTemplateFromRepositoryAsync(DisassociateApprovalRuleTemplateFromRepositoryRequest, CancellationToken)

Removes the association between a template and a repository so that approval rules based on the template are not automatically created when pull requests are created in the specified repository. This does not delete any approval rules previously created for pull requests through the template association.

Public Method EvaluatePullRequestApprovalRules(EvaluatePullRequestApprovalRulesRequest)

Evaluates whether a pull request has met all the conditions specified in its associated approval rules.

Public Method EvaluatePullRequestApprovalRulesAsync(EvaluatePullRequestApprovalRulesRequest, CancellationToken)

Evaluates whether a pull request has met all the conditions specified in its associated approval rules.

Public Method GetApprovalRuleTemplate(GetApprovalRuleTemplateRequest)

Returns information about a specified approval rule template.

Public Method GetApprovalRuleTemplateAsync(GetApprovalRuleTemplateRequest, CancellationToken)

Returns information about a specified approval rule template.

Public Method GetBlob(GetBlobRequest)

Returns the base-64 encoded content of an individual blob in a repository.

Public Method GetBlobAsync(GetBlobRequest, CancellationToken)

Returns the base-64 encoded content of an individual blob in a repository.

Public Method GetBranch(GetBranchRequest)

Returns information about a repository branch, including its name and the last commit ID.

Public Method GetBranchAsync(GetBranchRequest, CancellationToken)

Returns information about a repository branch, including its name and the last commit ID.

Public Method GetComment(GetCommentRequest)

Returns the content of a comment made on a change, file, or commit in a repository.

Reaction counts might include numbers from user identities who were deleted after the reaction was made. For a count of reactions from active identities, use GetCommentReactions.

Public Method GetCommentAsync(GetCommentRequest, CancellationToken)

Returns the content of a comment made on a change, file, or commit in a repository.

Reaction counts might include numbers from user identities who were deleted after the reaction was made. For a count of reactions from active identities, use GetCommentReactions.

Public Method GetCommentReactions(GetCommentReactionsRequest)

Returns information about reactions to a specified comment ID. Reactions from users who have been deleted will not be included in the count.

Public Method GetCommentReactionsAsync(GetCommentReactionsRequest, CancellationToken)

Returns information about reactions to a specified comment ID. Reactions from users who have been deleted will not be included in the count.

Public Method GetCommentsForComparedCommit(GetCommentsForComparedCommitRequest)

Returns information about comments made on the comparison between two commits.

Reaction counts might include numbers from user identities who were deleted after the reaction was made. For a count of reactions from active identities, use GetCommentReactions.

Public Method GetCommentsForComparedCommitAsync(GetCommentsForComparedCommitRequest, CancellationToken)

Returns information about comments made on the comparison between two commits.

Reaction counts might include numbers from user identities who were deleted after the reaction was made. For a count of reactions from active identities, use GetCommentReactions.

Public Method GetCommentsForPullRequest(GetCommentsForPullRequestRequest)

Returns comments made on a pull request.

Reaction counts might include numbers from user identities who were deleted after the reaction was made. For a count of reactions from active identities, use GetCommentReactions.

Public Method GetCommentsForPullRequestAsync(GetCommentsForPullRequestRequest, CancellationToken)

Returns comments made on a pull request.

Reaction counts might include numbers from user identities who were deleted after the reaction was made. For a count of reactions from active identities, use GetCommentReactions.

Public Method GetCommit(GetCommitRequest)

Returns information about a commit, including commit message and committer information.

Public Method GetCommitAsync(GetCommitRequest, CancellationToken)

Returns information about a commit, including commit message and committer information.

Public Method GetDifferences(GetDifferencesRequest)

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.

Public Method GetDifferencesAsync(GetDifferencesRequest, CancellationToken)

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.

Public Method GetFile(GetFileRequest)

Returns the base-64 encoded contents of a specified file and its metadata.

Public Method GetFileAsync(GetFileRequest, CancellationToken)

Returns the base-64 encoded contents of a specified file and its metadata.

Public Method GetFolder(GetFolderRequest)

Returns the contents of a specified folder in a repository.

Public Method GetFolderAsync(GetFolderRequest, CancellationToken)

Returns the contents of a specified folder in a repository.

Public Method GetMergeCommit(GetMergeCommitRequest)

Returns information about a specified merge commit.

Public Method GetMergeCommitAsync(GetMergeCommitRequest, CancellationToken)

Returns information about a specified merge commit.

Public Method GetMergeConflicts(GetMergeConflictsRequest)

Returns information about merge conflicts between the before and after commit IDs for a pull request in a repository.

Public Method GetMergeConflictsAsync(GetMergeConflictsRequest, CancellationToken)

Returns information about merge conflicts between the before and after commit IDs for a pull request in a repository.

Public Method GetMergeOptions(GetMergeOptionsRequest)

Returns information about the merge options available for merging two specified branches. For details about why a merge option is not available, use GetMergeConflicts or DescribeMergeConflicts.

Public Method GetMergeOptionsAsync(GetMergeOptionsRequest, CancellationToken)

Returns information about the merge options available for merging two specified branches. For details about why a merge option is not available, use GetMergeConflicts or DescribeMergeConflicts.

Public Method GetPullRequest(GetPullRequestRequest)

Gets information about a pull request in a specified repository.

Public Method GetPullRequestApprovalStates(GetPullRequestApprovalStatesRequest)

Gets information about the approval states for a specified pull request. Approval states only apply to pull requests that have one or more approval rules applied to them.

Public Method GetPullRequestApprovalStatesAsync(GetPullRequestApprovalStatesRequest, CancellationToken)

Gets information about the approval states for a specified pull request. Approval states only apply to pull requests that have one or more approval rules applied to them.

Public Method GetPullRequestAsync(GetPullRequestRequest, CancellationToken)

Gets information about a pull request in a specified repository.

Public Method GetPullRequestOverrideState(GetPullRequestOverrideStateRequest)

Returns information about whether approval rules have been set aside (overridden) for a pull request, and if so, the Amazon Resource Name (ARN) of the user or identity that overrode the rules and their requirements for the pull request.

Public Method GetPullRequestOverrideStateAsync(GetPullRequestOverrideStateRequest, CancellationToken)

Returns information about whether approval rules have been set aside (overridden) for a pull request, and if so, the Amazon Resource Name (ARN) of the user or identity that overrode the rules and their requirements for the pull request.

Public Method GetRepository(GetRepositoryRequest)

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 webpage can 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 webpage.

Public Method GetRepositoryAsync(GetRepositoryRequest, CancellationToken)

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 webpage can 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 webpage.

Public Method GetRepositoryTriggers(GetRepositoryTriggersRequest)

Gets information about triggers configured for a repository.

Public Method GetRepositoryTriggersAsync(GetRepositoryTriggersRequest, CancellationToken)

Gets information about triggers configured for a repository.

Public Method ListApprovalRuleTemplates(ListApprovalRuleTemplatesRequest)

Lists all approval rule templates in the specified Amazon Web Services Region in your Amazon Web Services account. If an Amazon Web Services Region is not specified, the Amazon Web Services Region where you are signed in is used.

Public Method ListApprovalRuleTemplatesAsync(ListApprovalRuleTemplatesRequest, CancellationToken)

Lists all approval rule templates in the specified Amazon Web Services Region in your Amazon Web Services account. If an Amazon Web Services Region is not specified, the Amazon Web Services Region where you are signed in is used.

Public Method ListAssociatedApprovalRuleTemplatesForRepository(ListAssociatedApprovalRuleTemplatesForRepositoryRequest)

Lists all approval rule templates that are associated with a specified repository.

Public Method ListAssociatedApprovalRuleTemplatesForRepositoryAsync(ListAssociatedApprovalRuleTemplatesForRepositoryRequest, CancellationToken)

Lists all approval rule templates that are associated with a specified repository.

Public Method ListBranches(ListBranchesRequest)

Gets information about one or more branches in a repository.

Public Method ListBranchesAsync(ListBranchesRequest, CancellationToken)

Gets information about one or more branches in a repository.

Public Method ListFileCommitHistory(ListFileCommitHistoryRequest)

Retrieves a list of commits and changes to a specified file.

Public Method ListFileCommitHistoryAsync(ListFileCommitHistoryRequest, CancellationToken)

Retrieves a list of commits and changes to a specified file.

Public Method ListPullRequests(ListPullRequestsRequest)

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.

Public Method ListPullRequestsAsync(ListPullRequestsRequest, CancellationToken)

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.

Public Method ListRepositories(ListRepositoriesRequest)

Gets information about one or more repositories.

Public Method ListRepositoriesAsync(ListRepositoriesRequest, CancellationToken)

Gets information about one or more repositories.

Public Method ListRepositoriesForApprovalRuleTemplate(ListRepositoriesForApprovalRuleTemplateRequest)

Lists all repositories associated with the specified approval rule template.

Public Method ListRepositoriesForApprovalRuleTemplateAsync(ListRepositoriesForApprovalRuleTemplateRequest, CancellationToken)

Lists all repositories associated with the specified approval rule template.

Public Method ListTagsForResource(ListTagsForResourceRequest)

Gets information about Amazon Web Servicestags for a specified Amazon Resource Name (ARN) in CodeCommit. For a list of valid resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.

Public Method ListTagsForResourceAsync(ListTagsForResourceRequest, CancellationToken)

Gets information about Amazon Web Servicestags for a specified Amazon Resource Name (ARN) in CodeCommit. For a list of valid resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.

Public Method MergeBranchesByFastForward(MergeBranchesByFastForwardRequest)

Merges two branches using the fast-forward merge strategy.

Public Method MergeBranchesByFastForwardAsync(MergeBranchesByFastForwardRequest, CancellationToken)

Merges two branches using the fast-forward merge strategy.

Public Method MergeBranchesBySquash(MergeBranchesBySquashRequest)

Merges two branches using the squash merge strategy.

Public Method MergeBranchesBySquashAsync(MergeBranchesBySquashRequest, CancellationToken)

Merges two branches using the squash merge strategy.

Public Method MergeBranchesByThreeWay(MergeBranchesByThreeWayRequest)

Merges two specified branches using the three-way merge strategy.

Public Method MergeBranchesByThreeWayAsync(MergeBranchesByThreeWayRequest, CancellationToken)

Merges two specified branches using the three-way merge strategy.

Public Method MergePullRequestByFastForward(MergePullRequestByFastForwardRequest)

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 strategy. If the merge is successful, it closes the pull request.

Public Method MergePullRequestByFastForwardAsync(MergePullRequestByFastForwardRequest, CancellationToken)

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 strategy. If the merge is successful, it closes the pull request.

Public Method MergePullRequestBySquash(MergePullRequestBySquashRequest)

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 squash merge strategy. If the merge is successful, it closes the pull request.

Public Method MergePullRequestBySquashAsync(MergePullRequestBySquashRequest, CancellationToken)

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 squash merge strategy. If the merge is successful, it closes the pull request.

Public Method MergePullRequestByThreeWay(MergePullRequestByThreeWayRequest)

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 three-way merge strategy. If the merge is successful, it closes the pull request.

Public Method MergePullRequestByThreeWayAsync(MergePullRequestByThreeWayRequest, CancellationToken)

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 three-way merge strategy. If the merge is successful, it closes the pull request.

Public Method OverridePullRequestApprovalRules(OverridePullRequestApprovalRulesRequest)

Sets aside (overrides) all approval rule requirements for a specified pull request.

Public Method OverridePullRequestApprovalRulesAsync(OverridePullRequestApprovalRulesRequest, CancellationToken)

Sets aside (overrides) all approval rule requirements for a specified pull request.

Public Method PostCommentForComparedCommit(PostCommentForComparedCommitRequest)

Posts a comment on the comparison between two commits.

Public Method PostCommentForComparedCommitAsync(PostCommentForComparedCommitRequest, CancellationToken)

Posts a comment on the comparison between two commits.

Public Method PostCommentForPullRequest(PostCommentForPullRequestRequest)

Posts a comment on a pull request.

Public Method PostCommentForPullRequestAsync(PostCommentForPullRequestRequest, CancellationToken)

Posts a comment on a pull request.

Public Method PostCommentReply(PostCommentReplyRequest)

Posts a comment in reply to an existing comment on a comparison between commits or a pull request.

Public Method PostCommentReplyAsync(PostCommentReplyRequest, CancellationToken)

Posts a comment in reply to an existing comment on a comparison between commits or a pull request.

Public Method PutCommentReaction(PutCommentReactionRequest)

Adds or updates a reaction to a specified comment for the user whose identity is used to make the request. You can only add or update a reaction for yourself. You cannot add, modify, or delete a reaction for another user.

Public Method PutCommentReactionAsync(PutCommentReactionRequest, CancellationToken)

Adds or updates a reaction to a specified comment for the user whose identity is used to make the request. You can only add or update a reaction for yourself. You cannot add, modify, or delete a reaction for another user.

Public Method PutFile(PutFileRequest)

Adds or updates a file in a branch in an CodeCommit repository, and generates a commit for the addition in the specified branch.

Public Method PutFileAsync(PutFileRequest, CancellationToken)

Adds or updates a file in a branch in an CodeCommit repository, and generates a commit for the addition in the specified branch.

Public Method PutRepositoryTriggers(PutRepositoryTriggersRequest)

Replaces all triggers for a repository. Used to create or delete triggers.

Public Method PutRepositoryTriggersAsync(PutRepositoryTriggersRequest, CancellationToken)

Replaces all triggers for a repository. Used to create or delete triggers.

Public Method TagResource(TagResourceRequest)

Adds or updates tags for a resource in CodeCommit. For a list of valid resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.

Public Method TagResourceAsync(TagResourceRequest, CancellationToken)

Adds or updates tags for a resource in CodeCommit. For a list of valid resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.

Public Method TestRepositoryTriggers(TestRepositoryTriggersRequest)

Tests the functionality of repository triggers by sending information to the trigger target. If real data is available in the repository, the test sends data from the last commit. If no data is available, sample data is generated.

Public Method TestRepositoryTriggersAsync(TestRepositoryTriggersRequest, CancellationToken)

Tests the functionality of repository triggers by sending information to the trigger target. If real data is available in the repository, the test sends data from the last commit. If no data is available, sample data is generated.

Public Method UntagResource(UntagResourceRequest)

Removes tags for a resource in CodeCommit. For a list of valid resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.

Public Method UntagResourceAsync(UntagResourceRequest, CancellationToken)

Removes tags for a resource in CodeCommit. For a list of valid resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.

Public Method UpdateApprovalRuleTemplateContent(UpdateApprovalRuleTemplateContentRequest)

Updates the content of an approval rule template. You can change the number of required approvals, the membership of the approval rule, and whether an approval pool is defined.

Public Method UpdateApprovalRuleTemplateContentAsync(UpdateApprovalRuleTemplateContentRequest, CancellationToken)

Updates the content of an approval rule template. You can change the number of required approvals, the membership of the approval rule, and whether an approval pool is defined.

Public Method UpdateApprovalRuleTemplateDescription(UpdateApprovalRuleTemplateDescriptionRequest)

Updates the description for a specified approval rule template.

Public Method UpdateApprovalRuleTemplateDescriptionAsync(UpdateApprovalRuleTemplateDescriptionRequest, CancellationToken)

Updates the description for a specified approval rule template.

Public Method UpdateApprovalRuleTemplateName(UpdateApprovalRuleTemplateNameRequest)

Updates the name of a specified approval rule template.

Public Method UpdateApprovalRuleTemplateNameAsync(UpdateApprovalRuleTemplateNameRequest, CancellationToken)

Updates the name of a specified approval rule template.

Public Method UpdateComment(UpdateCommentRequest)

Replaces the contents of a comment.

Public Method UpdateCommentAsync(UpdateCommentRequest, CancellationToken)

Replaces the contents of a comment.

Public Method UpdateDefaultBranch(UpdateDefaultBranchRequest)

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.

Public Method UpdateDefaultBranchAsync(UpdateDefaultBranchRequest, CancellationToken)

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.

Public Method UpdatePullRequestApprovalRuleContent(UpdatePullRequestApprovalRuleContentRequest)

Updates the structure of an approval rule created specifically for a pull request. For example, you can change the number of required approvers and the approval pool for approvers.

Public Method UpdatePullRequestApprovalRuleContentAsync(UpdatePullRequestApprovalRuleContentRequest, CancellationToken)

Updates the structure of an approval rule created specifically for a pull request. For example, you can change the number of required approvers and the approval pool for approvers.

Public Method UpdatePullRequestApprovalState(UpdatePullRequestApprovalStateRequest)

Updates the state of a user's approval on a pull request. The user is derived from the signed-in account when the request is made.

Public Method UpdatePullRequestApprovalStateAsync(UpdatePullRequestApprovalStateRequest, CancellationToken)

Updates the state of a user's approval on a pull request. The user is derived from the signed-in account when the request is made.

Public Method UpdatePullRequestDescription(UpdatePullRequestDescriptionRequest)

Replaces the contents of the description of a pull request.

Public Method UpdatePullRequestDescriptionAsync(UpdatePullRequestDescriptionRequest, CancellationToken)

Replaces the contents of the description of a pull request.

Public Method UpdatePullRequestStatus(UpdatePullRequestStatusRequest)

Updates the status of a pull request.

Public Method UpdatePullRequestStatusAsync(UpdatePullRequestStatusRequest, CancellationToken)

Updates the status of a pull request.

Public Method UpdatePullRequestTitle(UpdatePullRequestTitleRequest)

Replaces the title of a pull request.

Public Method UpdatePullRequestTitleAsync(UpdatePullRequestTitleRequest, CancellationToken)

Replaces the title of a pull request.

Public Method UpdateRepositoryDescription(UpdateRepositoryDescriptionRequest)

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 webpage can 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 webpage.

Public Method UpdateRepositoryDescriptionAsync(UpdateRepositoryDescriptionRequest, CancellationToken)

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 webpage can 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 webpage.

Public Method UpdateRepositoryEncryptionKey(UpdateRepositoryEncryptionKeyRequest)

Updates the Key Management Service encryption key used to encrypt and decrypt a CodeCommit repository.

Public Method UpdateRepositoryEncryptionKeyAsync(UpdateRepositoryEncryptionKeyRequest, CancellationToken)

Updates the Key Management Service encryption key used to encrypt and decrypt a CodeCommit repository.

Public Method UpdateRepositoryName(UpdateRepositoryNameRequest)

Renames a repository. The repository name must be unique across the calling Amazon Web Services account. Repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. The suffix .git is prohibited. For more information about the limits on repository names, see Quotas in the CodeCommit User Guide.

Public Method UpdateRepositoryNameAsync(UpdateRepositoryNameRequest, CancellationToken)

Renames a repository. The repository name must be unique across the calling Amazon Web Services account. Repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. The suffix .git is prohibited. For more information about the limits on repository names, see Quotas in the CodeCommit User Guide.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5