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

Description

Gets information about one or more branches in a repository.

This operation returns paginated results.

Synopsis

Creating a Request

data ListBranches Source #

Represents the input of a list branches operation.

See: newListBranches smart constructor.

Constructors

ListBranches' 

Fields

Instances

Instances details
Eq ListBranches Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

Read ListBranches Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

Show ListBranches Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

Generic ListBranches Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

Associated Types

type Rep ListBranches :: Type -> Type #

NFData ListBranches Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

Methods

rnf :: ListBranches -> () #

Hashable ListBranches Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

ToJSON ListBranches Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

AWSPager ListBranches Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

AWSRequest ListBranches Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

Associated Types

type AWSResponse ListBranches #

ToHeaders ListBranches Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

ToPath ListBranches Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

ToQuery ListBranches Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

type Rep ListBranches Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

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

Defined in Amazonka.CodeCommit.ListBranches

newListBranches Source #

Create a value of ListBranches 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:nextToken:ListBranches', listBranches_nextToken - An enumeration token that allows the operation to batch the results.

$sel:repositoryName:ListBranches', listBranches_repositoryName - The name of the repository that contains the branches.

Request Lenses

listBranches_nextToken :: Lens' ListBranches (Maybe Text) Source #

An enumeration token that allows the operation to batch the results.

listBranches_repositoryName :: Lens' ListBranches Text Source #

The name of the repository that contains the branches.

Destructuring the Response

data ListBranchesResponse Source #

Represents the output of a list branches operation.

See: newListBranchesResponse smart constructor.

Constructors

ListBranchesResponse' 

Fields

Instances

Instances details
Eq ListBranchesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

Read ListBranchesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

Show ListBranchesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

Generic ListBranchesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

Associated Types

type Rep ListBranchesResponse :: Type -> Type #

NFData ListBranchesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

Methods

rnf :: ListBranchesResponse -> () #

type Rep ListBranchesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.ListBranches

type Rep ListBranchesResponse = D1 ('MetaData "ListBranchesResponse" "Amazonka.CodeCommit.ListBranches" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "ListBranchesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "branches") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListBranchesResponse Source #

Create a value of ListBranchesResponse 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:branches:ListBranchesResponse', listBranchesResponse_branches - The list of branch names.

$sel:nextToken:ListBranches', listBranchesResponse_nextToken - An enumeration token that returns the batch of the results.

$sel:httpStatus:ListBranchesResponse', listBranchesResponse_httpStatus - The response's http status code.

Response Lenses

listBranchesResponse_nextToken :: Lens' ListBranchesResponse (Maybe Text) Source #

An enumeration token that returns the batch of the results.