Skip to content

CreateCommitInput

Source code in docs_src/capo_codecommit/types/create_commit_input.py
class CreateCommitInput(TypedDict, closed=True):
    repository_name: "capo_codecommit.types.repository_name.RepositoryName"
    """<p>The name of the repository where you create the commit.</p>"""
    branch_name: "capo_codecommit.types.branch_name.BranchName"
    """<p>The name of the branch where you create the commit.</p>"""
    parent_commit_id: NotRequired["capo_codecommit.types.commit_id.CommitId"]
    """<p>The ID of the commit that is the parent of the commit you create. Not required if this is an empty repository.</p>"""
    author_name: NotRequired["capo_codecommit.types.name.Name"]
    """<p>The name of the author who created the commit. This information is used as both the author and committer for the commit.</p>"""
    email: NotRequired["capo_codecommit.types.email.Email"]
    """<p>The email address of the person who created the commit.</p>"""
    commit_message: NotRequired["capo_codecommit.types.message.Message"]
    """<p>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.</p>"""
    keep_empty_folders: "capo_codecommit.types.keep_empty_folders.KeepEmptyFolders"
    """<p>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.</p>"""
    put_files: NotRequired["capo_codecommit.types.put_file_entries.PutFileEntries"]
    """<p>The files to add or update in this commit.</p>"""
    delete_files: NotRequired[
        "capo_codecommit.types.delete_file_entries.DeleteFileEntries"
    ]
    """<p>The files to delete in this commit. These files still exist in earlier commits.</p>"""
    set_file_modes: NotRequired[
        "capo_codecommit.types.set_file_mode_entries.SetFileModeEntries"
    ]
    """<p>The file modes to update for files in this commit.</p>"""

author_name instance-attribute

author_name: NotRequired[Name]

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

branch_name instance-attribute

branch_name: BranchName

The name of the branch where you create the commit.

commit_message instance-attribute

commit_message: NotRequired[Message]

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 instance-attribute

delete_files: NotRequired[DeleteFileEntries]

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

email instance-attribute

email: NotRequired[Email]

The email address of the person who created the commit.

keep_empty_folders instance-attribute

keep_empty_folders: 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.

parent_commit_id instance-attribute

parent_commit_id: NotRequired[CommitId]

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

put_files instance-attribute

put_files: NotRequired[PutFileEntries]

The files to add or update in this commit.

repository_name instance-attribute

repository_name: RepositoryName

The name of the repository where you create the commit.

set_file_modes instance-attribute

set_file_modes: NotRequired[SetFileModeEntries]

The file modes to update for files in this commit.