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.
This is the AWS CodeCommit API Reference. This reference provides descriptions of the AWS CodeCommit API.
You can use the AWS CodeCommit API to work with the following objects:
For information about how to use AWS CodeCommit, see the AWS CodeCommit User Guide.
Namespace: Amazon.CodeCommit
Assembly: AWSSDK.dll
Version: (assembly version)
public class AmazonCodeCommitClient : AmazonServiceClient IAmazonCodeCommit, IDisposable
The AmazonCodeCommitClient type exposes the following members
Name | Description | |
---|---|---|
AmazonCodeCommitClient() |
Constructs AmazonCodeCommitClient with the credentials loaded from the application's
default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
Example App.config with credentials set.
<?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration> |
|
AmazonCodeCommitClient(RegionEndpoint) |
Constructs AmazonCodeCommitClient with the credentials loaded from the application's
default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
Example App.config with credentials set.
<?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration> |
|
AmazonCodeCommitClient(AmazonCodeCommitConfig) |
Constructs AmazonCodeCommitClient with the credentials loaded from the application's
default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
Example App.config with credentials set.
<?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration> |
|
AmazonCodeCommitClient(AWSCredentials) | Constructs AmazonCodeCommitClient with AWS Credentials | |
AmazonCodeCommitClient(AWSCredentials, RegionEndpoint) | Constructs AmazonCodeCommitClient with AWS Credentials | |
AmazonCodeCommitClient(AWSCredentials, AmazonCodeCommitConfig) | Constructs AmazonCodeCommitClient with AWS Credentials and an AmazonCodeCommitClient Configuration object. | |
AmazonCodeCommitClient(string, string) | Constructs AmazonCodeCommitClient with AWS Access Key ID and AWS Secret Key | |
AmazonCodeCommitClient(string, string, RegionEndpoint) | Constructs AmazonCodeCommitClient with AWS Access Key ID and AWS Secret Key | |
AmazonCodeCommitClient(string, string, AmazonCodeCommitConfig) | Constructs AmazonCodeCommitClient with AWS Access Key ID, AWS Secret Key and an AmazonCodeCommitClient Configuration object. | |
AmazonCodeCommitClient(string, string, string) | Constructs AmazonCodeCommitClient with AWS Access Key ID and AWS Secret Key | |
AmazonCodeCommitClient(string, string, string, RegionEndpoint) | Constructs AmazonCodeCommitClient with AWS Access Key ID and AWS Secret Key | |
AmazonCodeCommitClient(string, string, string, AmazonCodeCommitConfig) | Constructs AmazonCodeCommitClient with AWS Access Key ID, AWS Secret Key and an AmazonCodeCommitClient Configuration object. |
Name | Description | |
---|---|---|
BatchGetRepositories(BatchGetRepositoriesRequest) |
Gets 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. |
|
BatchGetRepositoriesAsync(BatchGetRepositoriesRequest, CancellationToken) | Initiates the asynchronous execution of the BatchGetRepositories operation. | |
CreateBranch(CreateBranchRequest) |
Creates a new branch in a repository and points the branch to a commit.
|
|
CreateBranchAsync(CreateBranchRequest, CancellationToken) | Initiates the asynchronous execution of the CreateBranch operation. | |
CreateRepository(CreateRepositoryRequest) | Creates a new, empty repository. | |
CreateRepositoryAsync(CreateRepositoryRequest, CancellationToken) | Initiates the asynchronous execution of the CreateRepository operation. | |
DeleteRepository(DeleteRepositoryRequest) |
Deletes a repository. If a specified repository was already deleted, a null repository
ID will be returned.
|
|
DeleteRepositoryAsync(DeleteRepositoryRequest, CancellationToken) | Initiates the asynchronous execution of the DeleteRepository operation. | |
Dispose() | Inherited from Amazon.Runtime.AmazonServiceClient. | |
GetBranch(GetBranchRequest) | Retrieves information about a repository branch, including its name and the last commit ID. | |
GetBranchAsync(GetBranchRequest, CancellationToken) | Initiates the asynchronous execution of the GetBranch operation. | |
GetRepository(GetRepositoryRequest) |
Gets 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. |
|
GetRepositoryAsync(GetRepositoryRequest, CancellationToken) | Initiates the asynchronous execution of the GetRepository operation. | |
ListBranches(ListBranchesRequest) | Gets information about one or more branches in a repository. | |
ListBranchesAsync(ListBranchesRequest, CancellationToken) | Initiates the asynchronous execution of the ListBranches operation. | |
ListRepositories(ListRepositoriesRequest) | Gets information about one or more repositories. | |
ListRepositoriesAsync(ListRepositoriesRequest, CancellationToken) | Initiates the asynchronous execution of the ListRepositories operation. | |
UpdateDefaultBranch(UpdateDefaultBranchRequest) |
Sets or changes the default branch name for the specified repository.
|
|
UpdateDefaultBranchAsync(UpdateDefaultBranchRequest, CancellationToken) | Initiates the asynchronous execution of the UpdateDefaultBranch operation. | |
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. |
|
UpdateRepositoryDescriptionAsync(UpdateRepositoryDescriptionRequest, CancellationToken) | Initiates the asynchronous execution of the UpdateRepositoryDescription operation. | |
UpdateRepositoryName(UpdateRepositoryNameRequest) | Renames a repository. | |
UpdateRepositoryNameAsync(UpdateRepositoryNameRequest, CancellationToken) | Initiates the asynchronous execution of the UpdateRepositoryName operation. |
Name | Description | |
---|---|---|
AfterResponseEvent | Inherited from Amazon.Runtime.AmazonServiceClient. | |
BeforeRequestEvent | Inherited from Amazon.Runtime.AmazonServiceClient. | |
ExceptionEvent | Inherited from Amazon.Runtime.AmazonServiceClient. |
.NET Framework:
Supported in: 4.5, 4.0, 3.5