You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::CodeCommit::Types::CreateCommitInput
- Inherits:
-
Struct
- Object
- Struct
- Aws::CodeCommit::Types::CreateCommitInput
- Defined in:
- (unknown)
Overview
When passing CreateCommitInput as input to an Aws::Client method, you can use a vanilla Hash:
{
repository_name: "RepositoryName", # required
branch_name: "BranchName", # required
parent_commit_id: "CommitId",
author_name: "Name",
email: "Email",
commit_message: "Message",
keep_empty_folders: false,
put_files: [
{
file_path: "Path", # required
file_mode: "EXECUTABLE", # accepts EXECUTABLE, NORMAL, SYMLINK
file_content: "data",
source_file: {
file_path: "Path", # required
is_move: false,
},
},
],
delete_files: [
{
file_path: "Path", # required
},
],
set_file_modes: [
{
file_path: "Path", # required
file_mode: "EXECUTABLE", # required, accepts EXECUTABLE, NORMAL, SYMLINK
},
],
}
Instance Attribute Summary collapse
-
#author_name ⇒ String
The name of the author who created the commit.
-
#branch_name ⇒ String
The name of the branch where you create the commit.
-
#commit_message ⇒ String
The commit message you want to include in the commit.
-
#delete_files ⇒ Array<Types::DeleteFileEntry>
The files to delete in this commit.
-
#email ⇒ String
The email address of the person who created the commit.
-
#keep_empty_folders ⇒ Boolean
If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty.
-
#parent_commit_id ⇒ String
The ID of the commit that is the parent of the commit you create.
-
#put_files ⇒ Array<Types::PutFileEntry>
The files to add or update in this commit.
-
#repository_name ⇒ String
The name of the repository where you create the commit.
-
#set_file_modes ⇒ Array<Types::SetFileModeEntry>
The file modes to update for files in this commit.
Instance Attribute Details
#author_name ⇒ String
The name of the author who created the commit. This information is used as both the author and committer for the commit.
#branch_name ⇒ String
The name of the branch where you create the commit.
#commit_message ⇒ String
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.
#delete_files ⇒ Array<Types::DeleteFileEntry>
The files to delete in this commit. These files still exist in earlier commits.
#email ⇒ String
The email address of the person who created the commit.
#keep_empty_folders ⇒ Boolean
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.
#parent_commit_id ⇒ String
The ID of the commit that is the parent of the commit you create. Not required if this is an empty repository.
#put_files ⇒ Array<Types::PutFileEntry>
The files to add or update in this commit.
#repository_name ⇒ String
The name of the repository where you create the commit.
#set_file_modes ⇒ Array<Types::SetFileModeEntry>
The file modes to update for files in this commit.