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 AWS CodeCommit

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

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

Repositories, by calling the following:

Branches, by calling the following:

Information about committed code in a repository, by calling the following:

Triggers, by calling the following:

For information about how to use AWS CodeCommit, see the AWS 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

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

Public Method BatchGetRepositoriesAsync(BatchGetRepositoriesRequest, CancellationToken)

Initiates the asynchronous execution of the BatchGetRepositories operation.

Public Method CreateBranch(CreateBranchRequest)

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.

Public Method CreateBranchAsync(CreateBranchRequest, CancellationToken)

Initiates the asynchronous execution of the CreateBranch operation.

Public Method CreateRepository(CreateRepositoryRequest)

Creates a new, empty repository.

Public Method CreateRepositoryAsync(CreateRepositoryRequest, CancellationToken)

Initiates the asynchronous execution of the CreateRepository operation.

Public Method DeleteRepository(DeleteRepositoryRequest)

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.

Public Method DeleteRepositoryAsync(DeleteRepositoryRequest, CancellationToken)

Initiates the asynchronous execution of the DeleteRepository operation.

Public Method GetBlob(GetBlobRequest)

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

Public Method GetBlobAsync(GetBlobRequest, CancellationToken)

Initiates the asynchronous execution of the GetBlob operation.

Public Method GetBranch(GetBranchRequest)

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

Public Method GetBranchAsync(GetBranchRequest, CancellationToken)

Initiates the asynchronous execution of the GetBranch operation.

Public Method GetCommit(GetCommitRequest)

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

Public Method GetCommitAsync(GetCommitRequest, CancellationToken)

Initiates the asynchronous execution of the GetCommit operation.

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)

Initiates the asynchronous execution of the GetDifferences operation.

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

Public Method GetRepositoryAsync(GetRepositoryRequest, CancellationToken)

Initiates the asynchronous execution of the GetRepository operation.

Public Method GetRepositoryTriggers(GetRepositoryTriggersRequest)

Gets information about triggers configured for a repository.

Public Method GetRepositoryTriggersAsync(GetRepositoryTriggersRequest, CancellationToken)

Initiates the asynchronous execution of the GetRepositoryTriggers operation.

Public Method ListBranches(ListBranchesRequest)

Gets information about one or more branches in a repository.

Public Method ListBranchesAsync(ListBranchesRequest, CancellationToken)

Initiates the asynchronous execution of the ListBranches operation.

Public Method ListRepositories(ListRepositoriesRequest)

Gets information about one or more repositories.

Public Method ListRepositoriesAsync(ListRepositoriesRequest, CancellationToken)

Initiates the asynchronous execution of the ListRepositories operation.

Public Method PutRepositoryTriggers(PutRepositoryTriggersRequest)

Replaces all triggers for a repository. This can be used to create or delete triggers.

Public Method PutRepositoryTriggersAsync(PutRepositoryTriggersRequest, CancellationToken)

Initiates the asynchronous execution of the PutRepositoryTriggers operation.

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 will send data from the last commit. If no data is available, sample data will be generated.

Public Method TestRepositoryTriggersAsync(TestRepositoryTriggersRequest, CancellationToken)

Initiates the asynchronous execution of the TestRepositoryTriggers operation.

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)

Initiates the asynchronous execution of the UpdateDefaultBranch operation.

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

Public Method UpdateRepositoryDescriptionAsync(UpdateRepositoryDescriptionRequest, CancellationToken)

Initiates the asynchronous execution of the UpdateRepositoryDescription operation.

Public Method UpdateRepositoryName(UpdateRepositoryNameRequest)

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.

Public Method UpdateRepositoryNameAsync(UpdateRepositoryNameRequest, CancellationToken)

Initiates the asynchronous execution of the UpdateRepositoryName operation.

Version Information

.NET Standard:
Supported in: 1.3

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

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms