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

Description

Returns a list of pull requests for a specified repository. The return list can be refined by pull request status or pull request author ARN.

This operation returns paginated results.

Synopsis

Creating a Request

data ListPullRequests Source #

See: newListPullRequests smart constructor.

Constructors

ListPullRequests' 

Fields

  • authorArn :: Maybe Text

    Optional. The Amazon Resource Name (ARN) of the user who created the pull request. If used, this filters the results to pull requests created by that user.

  • nextToken :: Maybe Text

    An enumeration token that, when provided in a request, returns the next batch of the results.

  • pullRequestStatus :: Maybe PullRequestStatusEnum

    Optional. The status of the pull request. If used, this refines the results to the pull requests that match the specified status.

  • maxResults :: Maybe Int

    A non-zero, non-negative integer used to limit the number of returned results.

  • repositoryName :: Text

    The name of the repository for which you want to list pull requests.

Instances

Instances details
Eq ListPullRequests Source # 
Instance details

Defined in Amazonka.CodeCommit.ListPullRequests

Read ListPullRequests Source # 
Instance details

Defined in Amazonka.CodeCommit.ListPullRequests

Show ListPullRequests Source # 
Instance details

Defined in Amazonka.CodeCommit.ListPullRequests

Generic ListPullRequests Source # 
Instance details

Defined in Amazonka.CodeCommit.ListPullRequests

Associated Types

type Rep ListPullRequests :: Type -> Type #

NFData ListPullRequests Source # 
Instance details

Defined in Amazonka.CodeCommit.ListPullRequests

Methods

rnf :: ListPullRequests -> () #

Hashable ListPullRequests Source # 
Instance details

Defined in Amazonka.CodeCommit.ListPullRequests

ToJSON ListPullRequests Source # 
Instance details

Defined in Amazonka.CodeCommit.ListPullRequests

AWSPager ListPullRequests Source # 
Instance details

Defined in Amazonka.CodeCommit.ListPullRequests

AWSRequest ListPullRequests Source # 
Instance details

Defined in Amazonka.CodeCommit.ListPullRequests

Associated Types

type AWSResponse ListPullRequests #

ToHeaders ListPullRequests Source # 
Instance details

Defined in Amazonka.CodeCommit.ListPullRequests

ToPath ListPullRequests Source # 
Instance details

Defined in Amazonka.CodeCommit.ListPullRequests

ToQuery ListPullRequests Source # 
Instance details

Defined in Amazonka.CodeCommit.ListPullRequests

type Rep ListPullRequests Source # 
Instance details

Defined in Amazonka.CodeCommit.ListPullRequests

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

Defined in Amazonka.CodeCommit.ListPullRequests

newListPullRequests Source #

Create a value of ListPullRequests 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:authorArn:ListPullRequests', listPullRequests_authorArn - Optional. The Amazon Resource Name (ARN) of the user who created the pull request. If used, this filters the results to pull requests created by that user.

$sel:nextToken:ListPullRequests', listPullRequests_nextToken - An enumeration token that, when provided in a request, returns the next batch of the results.

$sel:pullRequestStatus:ListPullRequests', listPullRequests_pullRequestStatus - Optional. The status of the pull request. If used, this refines the results to the pull requests that match the specified status.

$sel:maxResults:ListPullRequests', listPullRequests_maxResults - A non-zero, non-negative integer used to limit the number of returned results.

$sel:repositoryName:ListPullRequests', listPullRequests_repositoryName - The name of the repository for which you want to list pull requests.

Request Lenses

listPullRequests_authorArn :: Lens' ListPullRequests (Maybe Text) Source #

Optional. The Amazon Resource Name (ARN) of the user who created the pull request. If used, this filters the results to pull requests created by that user.

listPullRequests_nextToken :: Lens' ListPullRequests (Maybe Text) Source #

An enumeration token that, when provided in a request, returns the next batch of the results.

listPullRequests_pullRequestStatus :: Lens' ListPullRequests (Maybe PullRequestStatusEnum) Source #

Optional. The status of the pull request. If used, this refines the results to the pull requests that match the specified status.

listPullRequests_maxResults :: Lens' ListPullRequests (Maybe Int) Source #

A non-zero, non-negative integer used to limit the number of returned results.

listPullRequests_repositoryName :: Lens' ListPullRequests Text Source #

The name of the repository for which you want to list pull requests.

Destructuring the Response

data ListPullRequestsResponse Source #

See: newListPullRequestsResponse smart constructor.

Constructors

ListPullRequestsResponse' 

Fields

Instances

Instances details
Eq ListPullRequestsResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.ListPullRequests

Read ListPullRequestsResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.ListPullRequests

Show ListPullRequestsResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.ListPullRequests

Generic ListPullRequestsResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.ListPullRequests

Associated Types

type Rep ListPullRequestsResponse :: Type -> Type #

NFData ListPullRequestsResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.ListPullRequests

type Rep ListPullRequestsResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.ListPullRequests

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

newListPullRequestsResponse Source #

Create a value of ListPullRequestsResponse 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:ListPullRequests', listPullRequestsResponse_nextToken - An enumeration token that allows the operation to batch the next results of the operation.

$sel:httpStatus:ListPullRequestsResponse', listPullRequestsResponse_httpStatus - The response's http status code.

$sel:pullRequestIds:ListPullRequestsResponse', listPullRequestsResponse_pullRequestIds - The system-generated IDs of the pull requests.

Response Lenses

listPullRequestsResponse_nextToken :: Lens' ListPullRequestsResponse (Maybe Text) Source #

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

listPullRequestsResponse_pullRequestIds :: Lens' ListPullRequestsResponse [Text] Source #

The system-generated IDs of the pull requests.