| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CodeCommit.CreateBranch
Description
Creates a branch in a repository and points the branch to a commit.
Calling the create branch operation does not set a repository's default branch. To do this, call the update default branch operation.
Synopsis
- data CreateBranch = CreateBranch' {
- repositoryName :: Text
- branchName :: Text
- commitId :: Text
- newCreateBranch :: Text -> Text -> Text -> CreateBranch
- createBranch_repositoryName :: Lens' CreateBranch Text
- createBranch_branchName :: Lens' CreateBranch Text
- createBranch_commitId :: Lens' CreateBranch Text
- data CreateBranchResponse = CreateBranchResponse' {
- newCreateBranchResponse :: CreateBranchResponse
Creating a Request
data CreateBranch Source #
Represents the input of a create branch operation.
See: newCreateBranch smart constructor.
Constructors
| CreateBranch' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> CreateBranch |
Create a value of CreateBranch 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:
CreateBranch, createBranch_repositoryName - The name of the repository in which you want to create the new branch.
CreateBranch, createBranch_branchName - The name of the new branch to create.
CreateBranch, createBranch_commitId - The ID of the commit to point the new branch to.
Request Lenses
createBranch_repositoryName :: Lens' CreateBranch Text Source #
The name of the repository in which you want to create the new branch.
createBranch_branchName :: Lens' CreateBranch Text Source #
The name of the new branch to create.
createBranch_commitId :: Lens' CreateBranch Text Source #
The ID of the commit to point the new branch to.
Destructuring the Response
data CreateBranchResponse Source #
See: newCreateBranchResponse smart constructor.
Constructors
| CreateBranchResponse' | |
Instances
newCreateBranchResponse :: CreateBranchResponse Source #
Create a value of CreateBranchResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.