amazonka-codecommit-1.6.1: Amazon CodeCommit SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CodeCommit.ListPullRequests

Contents

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

listPullRequests Source #

Creates a value of ListPullRequests with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • lprAuthorARN - 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.
  • lprNextToken - An enumeration token that when provided in a request, returns the next batch of the results.
  • lprPullRequestStatus - Optional. The status of the pull request. If used, this refines the results to the pull requests that match the specified status.
  • lprMaxResults - A non-negative integer used to limit the number of returned results.
  • lprRepositoryName - The name of the repository for which you want to list pull requests.

data ListPullRequests Source #

See: listPullRequests smart constructor.

Instances
Eq ListPullRequests Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListPullRequests

Data ListPullRequests Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListPullRequests

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListPullRequests -> c ListPullRequests #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListPullRequests #

toConstr :: ListPullRequests -> Constr #

dataTypeOf :: ListPullRequests -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ListPullRequests) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListPullRequests) #

gmapT :: (forall b. Data b => b -> b) -> ListPullRequests -> ListPullRequests #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListPullRequests -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListPullRequests -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListPullRequests -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListPullRequests -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListPullRequests -> m ListPullRequests #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListPullRequests -> m ListPullRequests #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListPullRequests -> m ListPullRequests #

Read ListPullRequests Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListPullRequests

Show ListPullRequests Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListPullRequests

Generic ListPullRequests Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListPullRequests

Associated Types

type Rep ListPullRequests :: Type -> Type #

Hashable ListPullRequests Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListPullRequests

ToJSON ListPullRequests Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListPullRequests

AWSPager ListPullRequests Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListPullRequests

AWSRequest ListPullRequests Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListPullRequests

Associated Types

type Rs ListPullRequests :: Type #

ToHeaders ListPullRequests Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListPullRequests

ToPath ListPullRequests Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListPullRequests

ToQuery ListPullRequests Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListPullRequests

NFData ListPullRequests Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListPullRequests

Methods

rnf :: ListPullRequests -> () #

type Rep ListPullRequests Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListPullRequests

type Rep ListPullRequests = D1 (MetaData "ListPullRequests" "Network.AWS.CodeCommit.ListPullRequests" "amazonka-codecommit-1.6.1-5oFbBVW9gHvCvarYcjcXps" False) (C1 (MetaCons "ListPullRequests'" PrefixI True) ((S1 (MetaSel (Just "_lprAuthorARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lprNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_lprPullRequestStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe PullRequestStatusEnum)) :*: (S1 (MetaSel (Just "_lprMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)) :*: S1 (MetaSel (Just "_lprRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs ListPullRequests Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListPullRequests

Request Lenses

lprAuthorARN :: 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.

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

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

lprPullRequestStatus :: 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.

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

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

lprRepositoryName :: Lens' ListPullRequests Text Source #

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

Destructuring the Response

listPullRequestsResponse Source #

Creates a value of ListPullRequestsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ListPullRequestsResponse Source #

See: listPullRequestsResponse smart constructor.

Instances
Eq ListPullRequestsResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListPullRequests

Data ListPullRequestsResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListPullRequests

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListPullRequestsResponse -> c ListPullRequestsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListPullRequestsResponse #

toConstr :: ListPullRequestsResponse -> Constr #

dataTypeOf :: ListPullRequestsResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ListPullRequestsResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListPullRequestsResponse) #

gmapT :: (forall b. Data b => b -> b) -> ListPullRequestsResponse -> ListPullRequestsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListPullRequestsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListPullRequestsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListPullRequestsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListPullRequestsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListPullRequestsResponse -> m ListPullRequestsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListPullRequestsResponse -> m ListPullRequestsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListPullRequestsResponse -> m ListPullRequestsResponse #

Read ListPullRequestsResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListPullRequests

Show ListPullRequestsResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListPullRequests

Generic ListPullRequestsResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListPullRequests

Associated Types

type Rep ListPullRequestsResponse :: Type -> Type #

NFData ListPullRequestsResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListPullRequests

type Rep ListPullRequestsResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.ListPullRequests

type Rep ListPullRequestsResponse = D1 (MetaData "ListPullRequestsResponse" "Network.AWS.CodeCommit.ListPullRequests" "amazonka-codecommit-1.6.1-5oFbBVW9gHvCvarYcjcXps" False) (C1 (MetaCons "ListPullRequestsResponse'" PrefixI True) (S1 (MetaSel (Just "_lprrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_lprrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Just "_lprrsPullRequestIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text]))))

Response Lenses

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

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

lprrsPullRequestIds :: Lens' ListPullRequestsResponse [Text] Source #

The system-generated IDs of the pull requests.