Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
CreateBranch' | |
|
Instances
:: 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:
$sel:repositoryName:CreateBranch'
, createBranch_repositoryName
- The name of the repository in which you want to create the new branch.
$sel:branchName:CreateBranch'
, createBranch_branchName
- The name of the new branch to create.
$sel:commitId: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.
Instances
Eq CreateBranchResponse Source # | |
Defined in Amazonka.CodeCommit.CreateBranch (==) :: CreateBranchResponse -> CreateBranchResponse -> Bool # (/=) :: CreateBranchResponse -> CreateBranchResponse -> Bool # | |
Read CreateBranchResponse Source # | |
Show CreateBranchResponse Source # | |
Defined in Amazonka.CodeCommit.CreateBranch showsPrec :: Int -> CreateBranchResponse -> ShowS # show :: CreateBranchResponse -> String # showList :: [CreateBranchResponse] -> ShowS # | |
Generic CreateBranchResponse Source # | |
Defined in Amazonka.CodeCommit.CreateBranch type Rep CreateBranchResponse :: Type -> Type # from :: CreateBranchResponse -> Rep CreateBranchResponse x # to :: Rep CreateBranchResponse x -> CreateBranchResponse # | |
NFData CreateBranchResponse Source # | |
Defined in Amazonka.CodeCommit.CreateBranch rnf :: CreateBranchResponse -> () # | |
type Rep CreateBranchResponse Source # | |
newCreateBranchResponse :: CreateBranchResponse Source #
Create a value of CreateBranchResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.