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

Contents

Description

Returns comments made on a pull request.

This operation returns paginated results.

Synopsis

Creating a Request

getCommentsForPullRequest Source #

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

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

  • gcfprAfterCommitId - The full commit ID of the commit in the source branch that was the tip of the branch at the time the comment was made.
  • gcfprNextToken - An enumeration token that when provided in a request, returns the next batch of the results.
  • gcfprBeforeCommitId - The full commit ID of the commit in the destination branch that was the tip of the branch at the time the pull request was created.
  • gcfprRepositoryName - The name of the repository that contains the pull request.
  • gcfprMaxResults - A non-negative integer used to limit the number of returned results. The default is 100 comments. You can return up to 500 comments with a single request.
  • gcfprPullRequestId - The system-generated ID of the pull request. To get this ID, use ListPullRequests .

data GetCommentsForPullRequest Source #

See: getCommentsForPullRequest smart constructor.

Instances
Eq GetCommentsForPullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetCommentsForPullRequest

Data GetCommentsForPullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetCommentsForPullRequest

Methods

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

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

toConstr :: GetCommentsForPullRequest -> Constr #

dataTypeOf :: GetCommentsForPullRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetCommentsForPullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetCommentsForPullRequest

Show GetCommentsForPullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetCommentsForPullRequest

Generic GetCommentsForPullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetCommentsForPullRequest

Associated Types

type Rep GetCommentsForPullRequest :: Type -> Type #

Hashable GetCommentsForPullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetCommentsForPullRequest

ToJSON GetCommentsForPullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetCommentsForPullRequest

AWSPager GetCommentsForPullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetCommentsForPullRequest

AWSRequest GetCommentsForPullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetCommentsForPullRequest

Associated Types

type Rs GetCommentsForPullRequest :: Type #

ToHeaders GetCommentsForPullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetCommentsForPullRequest

ToPath GetCommentsForPullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetCommentsForPullRequest

ToQuery GetCommentsForPullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetCommentsForPullRequest

NFData GetCommentsForPullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetCommentsForPullRequest

type Rep GetCommentsForPullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetCommentsForPullRequest

type Rep GetCommentsForPullRequest = D1 (MetaData "GetCommentsForPullRequest" "Network.AWS.CodeCommit.GetCommentsForPullRequest" "amazonka-codecommit-1.6.1-5oFbBVW9gHvCvarYcjcXps" False) (C1 (MetaCons "GetCommentsForPullRequest'" PrefixI True) ((S1 (MetaSel (Just "_gcfprAfterCommitId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_gcfprNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gcfprBeforeCommitId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_gcfprRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_gcfprMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)) :*: S1 (MetaSel (Just "_gcfprPullRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs GetCommentsForPullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetCommentsForPullRequest

Request Lenses

gcfprAfterCommitId :: Lens' GetCommentsForPullRequest (Maybe Text) Source #

The full commit ID of the commit in the source branch that was the tip of the branch at the time the comment was made.

gcfprNextToken :: Lens' GetCommentsForPullRequest (Maybe Text) Source #

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

gcfprBeforeCommitId :: Lens' GetCommentsForPullRequest (Maybe Text) Source #

The full commit ID of the commit in the destination branch that was the tip of the branch at the time the pull request was created.

gcfprRepositoryName :: Lens' GetCommentsForPullRequest (Maybe Text) Source #

The name of the repository that contains the pull request.

gcfprMaxResults :: Lens' GetCommentsForPullRequest (Maybe Int) Source #

A non-negative integer used to limit the number of returned results. The default is 100 comments. You can return up to 500 comments with a single request.

gcfprPullRequestId :: Lens' GetCommentsForPullRequest Text Source #

The system-generated ID of the pull request. To get this ID, use ListPullRequests .

Destructuring the Response

getCommentsForPullRequestResponse Source #

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

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

data GetCommentsForPullRequestResponse Source #

See: getCommentsForPullRequestResponse smart constructor.

Instances
Eq GetCommentsForPullRequestResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetCommentsForPullRequest

Data GetCommentsForPullRequestResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetCommentsForPullRequest

Methods

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

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

toConstr :: GetCommentsForPullRequestResponse -> Constr #

dataTypeOf :: GetCommentsForPullRequestResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetCommentsForPullRequestResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetCommentsForPullRequest

Show GetCommentsForPullRequestResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetCommentsForPullRequest

Generic GetCommentsForPullRequestResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetCommentsForPullRequest

Associated Types

type Rep GetCommentsForPullRequestResponse :: Type -> Type #

NFData GetCommentsForPullRequestResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetCommentsForPullRequest

type Rep GetCommentsForPullRequestResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.GetCommentsForPullRequest

type Rep GetCommentsForPullRequestResponse = D1 (MetaData "GetCommentsForPullRequestResponse" "Network.AWS.CodeCommit.GetCommentsForPullRequest" "amazonka-codecommit-1.6.1-5oFbBVW9gHvCvarYcjcXps" False) (C1 (MetaCons "GetCommentsForPullRequestResponse'" PrefixI True) (S1 (MetaSel (Just "_gcfprrsCommentsForPullRequestData") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [CommentsForPullRequest])) :*: (S1 (MetaSel (Just "_gcfprrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gcfprrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

gcfprrsNextToken :: Lens' GetCommentsForPullRequestResponse (Maybe Text) Source #

An enumeration token that can be used in a request to return the next batch of the results.