libZSservicesZSamazonka-codecommitZSamazonka-codecommit
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CodeCommit.CreateCommit

Description

Creates a commit for a repository on the tip of a specified branch.

Synopsis

Creating a Request

data CreateCommit Source #

See: newCreateCommit smart constructor.

Constructors

CreateCommit' 

Fields

  • setFileModes :: Maybe [SetFileModeEntry]

    The file modes to update for files in this commit.

  • email :: Maybe Text

    The email address of the person who created the commit.

  • authorName :: Maybe Text

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

  • parentCommitId :: Maybe Text

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

  • deleteFiles :: Maybe [DeleteFileEntry]

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

  • putFiles :: Maybe [PutFileEntry]

    The files to add or update in this commit.

  • commitMessage :: Maybe Text

    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.

  • keepEmptyFolders :: Maybe Bool

    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.

  • repositoryName :: Text

    The name of the repository where you create the commit.

  • branchName :: Text

    The name of the branch where you create the commit.

Instances

Instances details
Eq CreateCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateCommit

Read CreateCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateCommit

Show CreateCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateCommit

Generic CreateCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateCommit

Associated Types

type Rep CreateCommit :: Type -> Type #

NFData CreateCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateCommit

Methods

rnf :: CreateCommit -> () #

Hashable CreateCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateCommit

ToJSON CreateCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateCommit

AWSRequest CreateCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateCommit

Associated Types

type AWSResponse CreateCommit #

ToHeaders CreateCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateCommit

ToPath CreateCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateCommit

ToQuery CreateCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateCommit

type Rep CreateCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateCommit

type AWSResponse CreateCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateCommit

newCreateCommit Source #

Create a value of CreateCommit with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:setFileModes:CreateCommit', createCommit_setFileModes - The file modes to update for files in this commit.

$sel:email:CreateCommit', createCommit_email - The email address of the person who created the commit.

$sel:authorName:CreateCommit', createCommit_authorName - The name of the author who created the commit. This information is used as both the author and committer for the commit.

$sel:parentCommitId:CreateCommit', createCommit_parentCommitId - The ID of the commit that is the parent of the commit you create. Not required if this is an empty repository.

$sel:deleteFiles:CreateCommit', createCommit_deleteFiles - The files to delete in this commit. These files still exist in earlier commits.

$sel:putFiles:CreateCommit', createCommit_putFiles - The files to add or update in this commit.

$sel:commitMessage:CreateCommit', createCommit_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.

$sel:keepEmptyFolders:CreateCommit', createCommit_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.

$sel:repositoryName:CreateCommit', createCommit_repositoryName - The name of the repository where you create the commit.

$sel:branchName:CreateCommit', createCommit_branchName - The name of the branch where you create the commit.

Request Lenses

createCommit_setFileModes :: Lens' CreateCommit (Maybe [SetFileModeEntry]) Source #

The file modes to update for files in this commit.

createCommit_email :: Lens' CreateCommit (Maybe Text) Source #

The email address of the person who created the commit.

createCommit_authorName :: Lens' CreateCommit (Maybe Text) Source #

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

createCommit_parentCommitId :: Lens' CreateCommit (Maybe Text) Source #

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

createCommit_deleteFiles :: Lens' CreateCommit (Maybe [DeleteFileEntry]) Source #

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

createCommit_putFiles :: Lens' CreateCommit (Maybe [PutFileEntry]) Source #

The files to add or update in this commit.

createCommit_commitMessage :: Lens' CreateCommit (Maybe Text) Source #

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.

createCommit_keepEmptyFolders :: Lens' CreateCommit (Maybe Bool) Source #

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.

createCommit_repositoryName :: Lens' CreateCommit Text Source #

The name of the repository where you create the commit.

createCommit_branchName :: Lens' CreateCommit Text Source #

The name of the branch where you create the commit.

Destructuring the Response

data CreateCommitResponse Source #

See: newCreateCommitResponse smart constructor.

Constructors

CreateCommitResponse' 

Fields

Instances

Instances details
Eq CreateCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateCommit

Read CreateCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateCommit

Show CreateCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateCommit

Generic CreateCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateCommit

Associated Types

type Rep CreateCommitResponse :: Type -> Type #

NFData CreateCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateCommit

Methods

rnf :: CreateCommitResponse -> () #

type Rep CreateCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.CreateCommit

type Rep CreateCommitResponse = D1 ('MetaData "CreateCommitResponse" "Amazonka.CodeCommit.CreateCommit" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "CreateCommitResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "commitId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "treeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "filesAdded") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [FileMetadata])))) :*: (S1 ('MetaSel ('Just "filesUpdated") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [FileMetadata])) :*: (S1 ('MetaSel ('Just "filesDeleted") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [FileMetadata])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newCreateCommitResponse Source #

Create a value of CreateCommitResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:commitId:CreateCommitResponse', createCommitResponse_commitId - The full commit ID of the commit that contains your committed file changes.

$sel:treeId:CreateCommitResponse', createCommitResponse_treeId - The full SHA-1 pointer of the tree information for the commit that contains the commited file changes.

$sel:filesAdded:CreateCommitResponse', createCommitResponse_filesAdded - The files added as part of the committed file changes.

$sel:filesUpdated:CreateCommitResponse', createCommitResponse_filesUpdated - The files updated as part of the commited file changes.

$sel:filesDeleted:CreateCommitResponse', createCommitResponse_filesDeleted - The files deleted as part of the committed file changes.

$sel:httpStatus:CreateCommitResponse', createCommitResponse_httpStatus - The response's http status code.

Response Lenses

createCommitResponse_commitId :: Lens' CreateCommitResponse (Maybe Text) Source #

The full commit ID of the commit that contains your committed file changes.

createCommitResponse_treeId :: Lens' CreateCommitResponse (Maybe Text) Source #

The full SHA-1 pointer of the tree information for the commit that contains the commited file changes.

createCommitResponse_filesAdded :: Lens' CreateCommitResponse (Maybe [FileMetadata]) Source #

The files added as part of the committed file changes.

createCommitResponse_filesUpdated :: Lens' CreateCommitResponse (Maybe [FileMetadata]) Source #

The files updated as part of the commited file changes.

createCommitResponse_filesDeleted :: Lens' CreateCommitResponse (Maybe [FileMetadata]) Source #

The files deleted as part of the committed file changes.