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.

Container for the parameters to the CreateCommit operation. Creates a commit for a repository on the tip of a specified branch.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.CodeCommit.AmazonCodeCommitRequest
      Amazon.CodeCommit.Model.CreateCommitRequest

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

Syntax

C#
public class CreateCommitRequest : AmazonCodeCommitRequest
         IAmazonWebServiceRequest

The CreateCommitRequest type exposes the following members

Constructors

NameDescription
Public Method CreateCommitRequest()

Properties

NameTypeDescription
Public Property AuthorName System.String

Gets and sets the property AuthorName.

The name of the author who created the commit. This information is used as both the author and committer for the commit.

Public Property BranchName System.String

Gets and sets the property BranchName.

The name of the branch where you create the commit.

Public Property CommitMessage System.String

Gets and sets the property CommitMessage.

The commit message you want to include in the commit. Commit messages are limited to 256 KB. If no message is specified, a default message is used.

Public Property DeleteFiles System.Collections.Generic.List<Amazon.CodeCommit.Model.DeleteFileEntry>

Gets and sets the property DeleteFiles.

The files to delete in this commit. These files still exist in earlier commits.

Public Property Email System.String

Gets and sets the property Email.

The email address of the person who created the commit.

Public Property KeepEmptyFolders System.Boolean

Gets and sets the property KeepEmptyFolders.

If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty. If true, a ..gitkeep file is created for empty folders. The default is false.

Public Property ParentCommitId System.String

Gets and sets the property ParentCommitId.

The ID of the commit that is the parent of the commit you create. Not required if this is an empty repository.

Public Property PutFiles System.Collections.Generic.List<Amazon.CodeCommit.Model.PutFileEntry>

Gets and sets the property PutFiles.

The files to add or update in this commit.

Public Property RepositoryName System.String

Gets and sets the property RepositoryName.

The name of the repository where you create the commit.

Public Property SetFileModes System.Collections.Generic.List<Amazon.CodeCommit.Model.SetFileModeEntry>

Gets and sets the property SetFileModes.

The file modes to update for files in this commit.

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