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.DeleteBranch

Description

Deletes a branch from a repository, unless that branch is the default branch for the repository.

Synopsis

Creating a Request

data DeleteBranch Source #

Represents the input of a delete branch operation.

See: newDeleteBranch smart constructor.

Constructors

DeleteBranch' 

Fields

Instances

Instances details
Eq DeleteBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.DeleteBranch

Read DeleteBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.DeleteBranch

Show DeleteBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.DeleteBranch

Generic DeleteBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.DeleteBranch

Associated Types

type Rep DeleteBranch :: Type -> Type #

NFData DeleteBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.DeleteBranch

Methods

rnf :: DeleteBranch -> () #

Hashable DeleteBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.DeleteBranch

ToJSON DeleteBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.DeleteBranch

AWSRequest DeleteBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.DeleteBranch

Associated Types

type AWSResponse DeleteBranch #

ToHeaders DeleteBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.DeleteBranch

ToPath DeleteBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.DeleteBranch

ToQuery DeleteBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.DeleteBranch

type Rep DeleteBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.DeleteBranch

type Rep DeleteBranch = D1 ('MetaData "DeleteBranch" "Amazonka.CodeCommit.DeleteBranch" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "DeleteBranch'" 'PrefixI 'True) (S1 ('MetaSel ('Just "repositoryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "branchName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeleteBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.DeleteBranch

newDeleteBranch Source #

Create a value of DeleteBranch 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:DeleteBranch', deleteBranch_repositoryName - The name of the repository that contains the branch to be deleted.

$sel:branchName:DeleteBranch', deleteBranch_branchName - The name of the branch to delete.

Request Lenses

deleteBranch_repositoryName :: Lens' DeleteBranch Text Source #

The name of the repository that contains the branch to be deleted.

deleteBranch_branchName :: Lens' DeleteBranch Text Source #

The name of the branch to delete.

Destructuring the Response

data DeleteBranchResponse Source #

Represents the output of a delete branch operation.

See: newDeleteBranchResponse smart constructor.

Constructors

DeleteBranchResponse' 

Fields

  • deletedBranch :: Maybe BranchInfo

    Information about the branch deleted by the operation, including the branch name and the commit ID that was the tip of the branch.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DeleteBranchResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.DeleteBranch

Read DeleteBranchResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.DeleteBranch

Show DeleteBranchResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.DeleteBranch

Generic DeleteBranchResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.DeleteBranch

Associated Types

type Rep DeleteBranchResponse :: Type -> Type #

NFData DeleteBranchResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.DeleteBranch

Methods

rnf :: DeleteBranchResponse -> () #

type Rep DeleteBranchResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.DeleteBranch

type Rep DeleteBranchResponse = D1 ('MetaData "DeleteBranchResponse" "Amazonka.CodeCommit.DeleteBranch" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "DeleteBranchResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "deletedBranch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BranchInfo)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteBranchResponse Source #

Create a value of DeleteBranchResponse 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:deletedBranch:DeleteBranchResponse', deleteBranchResponse_deletedBranch - Information about the branch deleted by the operation, including the branch name and the commit ID that was the tip of the branch.

$sel:httpStatus:DeleteBranchResponse', deleteBranchResponse_httpStatus - The response's http status code.

Response Lenses

deleteBranchResponse_deletedBranch :: Lens' DeleteBranchResponse (Maybe BranchInfo) Source #

Information about the branch deleted by the operation, including the branch name and the commit ID that was the tip of the branch.