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. |
|
BeginBatchGetRepositories(BatchGetRepositoriesRequest, AsyncCallback, object) | Initiates the asynchronous execution of the BatchGetRepositories operation. | |
BeginCreateBranch(CreateBranchRequest, AsyncCallback, object) | Initiates the asynchronous execution of the CreateBranch operation. | |
BeginCreateRepository(CreateRepositoryRequest, AsyncCallback, object) | Initiates the asynchronous execution of the CreateRepository operation. | |
BeginDeleteRepository(DeleteRepositoryRequest, AsyncCallback, object) | Initiates the asynchronous execution of the DeleteRepository operation. | |
BeginGetBranch(GetBranchRequest, AsyncCallback, object) | Initiates the asynchronous execution of the GetBranch operation. | |
BeginGetRepository(GetRepositoryRequest, AsyncCallback, object) | Initiates the asynchronous execution of the GetRepository operation. | |
BeginListBranches(ListBranchesRequest, AsyncCallback, object) | Initiates the asynchronous execution of the ListBranches operation. | |
BeginListRepositories(ListRepositoriesRequest, AsyncCallback, object) | Initiates the asynchronous execution of the ListRepositories operation. | |
BeginUpdateDefaultBranch(UpdateDefaultBranchRequest, AsyncCallback, object) | Initiates the asynchronous execution of the UpdateDefaultBranch operation. | |
BeginUpdateRepositoryDescription(UpdateRepositoryDescriptionRequest, AsyncCallback, object) | Initiates the asynchronous execution of the UpdateRepositoryDescription operation. | |
BeginUpdateRepositoryName(UpdateRepositoryNameRequest, AsyncCallback, object) | Initiates the asynchronous execution of the UpdateRepositoryName operation. | |
CreateBranch(CreateBranchRequest) |
Creates a new branch in a repository and points the branch to a commit.
|
|
CreateRepository(CreateRepositoryRequest) | Creates a new, empty repository. | |
DeleteRepository(DeleteRepositoryRequest) |
Deletes a repository. If a specified repository was already deleted, a null repository
ID will be returned.
|
|
Dispose() | Inherited from Amazon.Runtime.AmazonServiceClient. | |
EndBatchGetRepositories(IAsyncResult) | Finishes the asynchronous execution of the BatchGetRepositories operation. | |
EndCreateBranch(IAsyncResult) | Finishes the asynchronous execution of the CreateBranch operation. | |
EndCreateRepository(IAsyncResult) | Finishes the asynchronous execution of the CreateRepository operation. | |
EndDeleteRepository(IAsyncResult) | Finishes the asynchronous execution of the DeleteRepository operation. | |
EndGetBranch(IAsyncResult) | Finishes the asynchronous execution of the GetBranch operation. | |
EndGetRepository(IAsyncResult) | Finishes the asynchronous execution of the GetRepository operation. | |
EndListBranches(IAsyncResult) | Finishes the asynchronous execution of the ListBranches operation. | |
EndListRepositories(IAsyncResult) | Finishes the asynchronous execution of the ListRepositories operation. | |
EndUpdateDefaultBranch(IAsyncResult) | Finishes the asynchronous execution of the UpdateDefaultBranch operation. | |
EndUpdateRepositoryDescription(IAsyncResult) | Finishes the asynchronous execution of the UpdateRepositoryDescription operation. | |
EndUpdateRepositoryName(IAsyncResult) | Finishes the asynchronous execution of the UpdateRepositoryName operation. | |
GetBranch(GetBranchRequest) | Retrieves information about a repository branch, including its name and the last commit ID. | |
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. |
|
ListBranches(ListBranchesRequest) | Gets information about one or more branches in a repository. | |
ListRepositories(ListRepositoriesRequest) | Gets information about one or more repositories. | |
UpdateDefaultBranch(UpdateDefaultBranchRequest) |
Sets or changes the default branch name for the specified repository.
|
|
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. |
|
UpdateRepositoryName(UpdateRepositoryNameRequest) | Renames a repository. |
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