amazonka-codecommit-1.6.0: 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.CreatePullRequest

Contents

Description

Creates a pull request in the specified repository.

Synopsis

Creating a Request

createPullRequest #

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

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

  • cprClientRequestToken - A unique, client-generated idempotency token that when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request will return information about the initial request that used that token.
  • cprDescription - A description of the pull request.
  • cprTitle - The title of the pull request. This title will be used to identify the pull request to other users in the repository.
  • cprTargets - The targets for the pull request, including the source of the code to be reviewed (the source branch), and the destination where the creator of the pull request intends the code to be merged after the pull request is closed (the destination branch).

data CreatePullRequest #

See: createPullRequest smart constructor.

Instances

Eq CreatePullRequest # 
Data CreatePullRequest # 

Methods

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

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

toConstr :: CreatePullRequest -> Constr #

dataTypeOf :: CreatePullRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreatePullRequest # 
Show CreatePullRequest # 
Generic CreatePullRequest # 
Hashable CreatePullRequest # 
ToJSON CreatePullRequest # 
NFData CreatePullRequest # 

Methods

rnf :: CreatePullRequest -> () #

AWSRequest CreatePullRequest # 
ToHeaders CreatePullRequest # 
ToPath CreatePullRequest # 
ToQuery CreatePullRequest # 
type Rep CreatePullRequest # 
type Rep CreatePullRequest = D1 * (MetaData "CreatePullRequest" "Network.AWS.CodeCommit.CreatePullRequest" "amazonka-codecommit-1.6.0-DWhAPL2rvZuFmVENn91cJd" False) (C1 * (MetaCons "CreatePullRequest'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cprClientRequestToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cprDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cprTitle") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_cprTargets") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [Target])))))
type Rs CreatePullRequest # 

Request Lenses

cprClientRequestToken :: Lens' CreatePullRequest (Maybe Text) #

A unique, client-generated idempotency token that when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request will return information about the initial request that used that token.

cprDescription :: Lens' CreatePullRequest (Maybe Text) #

A description of the pull request.

cprTitle :: Lens' CreatePullRequest Text #

The title of the pull request. This title will be used to identify the pull request to other users in the repository.

cprTargets :: Lens' CreatePullRequest [Target] #

The targets for the pull request, including the source of the code to be reviewed (the source branch), and the destination where the creator of the pull request intends the code to be merged after the pull request is closed (the destination branch).

Destructuring the Response

createPullRequestResponse #

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

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

data CreatePullRequestResponse #

See: createPullRequestResponse smart constructor.

Instances

Eq CreatePullRequestResponse # 
Data CreatePullRequestResponse # 

Methods

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

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

toConstr :: CreatePullRequestResponse -> Constr #

dataTypeOf :: CreatePullRequestResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreatePullRequestResponse # 
Show CreatePullRequestResponse # 
Generic CreatePullRequestResponse # 
NFData CreatePullRequestResponse # 
type Rep CreatePullRequestResponse # 
type Rep CreatePullRequestResponse = D1 * (MetaData "CreatePullRequestResponse" "Network.AWS.CodeCommit.CreatePullRequest" "amazonka-codecommit-1.6.0-DWhAPL2rvZuFmVENn91cJd" False) (C1 * (MetaCons "CreatePullRequestResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cprrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)) (S1 * (MetaSel (Just Symbol "_cprrsPullRequest") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * PullRequest))))

Response Lenses

cprrsResponseStatus :: Lens' CreatePullRequestResponse Int #

  • - | The response status code.

cprrsPullRequest :: Lens' CreatePullRequestResponse PullRequest #

Information about the newly created pull request.