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
show all
Defined in:
(unknown)

Overview

Note:

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

Instance Attribute Details

#author_nameString

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

Returns:

  • (String)

    The name of the author who created the commit.

#branch_nameString

The name of the branch where you will create the commit.

Returns:

  • (String)

    The name of the branch where you will create the commit.

#commit_messageString

The commit message you want to include as part of creating the commit. Commit messages are limited to 256 KB. If no message is specified, a default message will be used.

Returns:

  • (String)

    The commit message you want to include as part of creating the commit.

#delete_filesArray<Types::DeleteFileEntry>

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

Returns:

#emailString

The email address of the person who created the commit.

Returns:

  • (String)

    The email address of the person who created the commit.

#keep_empty_foldersBoolean

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

Returns:

  • (Boolean)

    If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty.

#parent_commit_idString

The ID of the commit that is the parent of the commit you will create. If this is an empty repository, this is not required.

Returns:

  • (String)

    The ID of the commit that is the parent of the commit you will create.

#put_filesArray<Types::PutFileEntry>

The files to add or update in this commit.

Returns:

#repository_nameString

The name of the repository where you will create the commit.

Returns:

  • (String)

    The name of the repository where you will create the commit.

#set_file_modesArray<Types::SetFileModeEntry>

The file modes to update for files in this commit.

Returns: