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

Contents

Description

Creates a pull request in the specified repository.

Synopsis

Creating a Request

createPullRequest Source #

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 Source #

See: createPullRequest smart constructor.

Instances
Eq CreatePullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.CreatePullRequest

Data CreatePullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.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 Source # 
Instance details

Defined in Network.AWS.CodeCommit.CreatePullRequest

Show CreatePullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.CreatePullRequest

Generic CreatePullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.CreatePullRequest

Associated Types

type Rep CreatePullRequest :: Type -> Type #

Hashable CreatePullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.CreatePullRequest

ToJSON CreatePullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.CreatePullRequest

AWSRequest CreatePullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.CreatePullRequest

Associated Types

type Rs CreatePullRequest :: Type #

ToHeaders CreatePullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.CreatePullRequest

ToPath CreatePullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.CreatePullRequest

ToQuery CreatePullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.CreatePullRequest

NFData CreatePullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.CreatePullRequest

Methods

rnf :: CreatePullRequest -> () #

type Rep CreatePullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.CreatePullRequest

type Rep CreatePullRequest = D1 (MetaData "CreatePullRequest" "Network.AWS.CodeCommit.CreatePullRequest" "amazonka-codecommit-1.6.1-5oFbBVW9gHvCvarYcjcXps" False) (C1 (MetaCons "CreatePullRequest'" PrefixI True) ((S1 (MetaSel (Just "_cprClientRequestToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cprDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_cprTitle") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_cprTargets") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Target]))))
type Rs CreatePullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.CreatePullRequest

Request Lenses

cprClientRequestToken :: Lens' CreatePullRequest (Maybe Text) Source #

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) Source #

A description of the pull request.

cprTitle :: Lens' CreatePullRequest Text Source #

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] Source #

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 Source #

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 Source #

See: createPullRequestResponse smart constructor.

Instances
Eq CreatePullRequestResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.CreatePullRequest

Data CreatePullRequestResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.CreatePullRequest

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 Source # 
Instance details

Defined in Network.AWS.CodeCommit.CreatePullRequest

Show CreatePullRequestResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.CreatePullRequest

Generic CreatePullRequestResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.CreatePullRequest

Associated Types

type Rep CreatePullRequestResponse :: Type -> Type #

NFData CreatePullRequestResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.CreatePullRequest

type Rep CreatePullRequestResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.CreatePullRequest

type Rep CreatePullRequestResponse = D1 (MetaData "CreatePullRequestResponse" "Network.AWS.CodeCommit.CreatePullRequest" "amazonka-codecommit-1.6.1-5oFbBVW9gHvCvarYcjcXps" False) (C1 (MetaCons "CreatePullRequestResponse'" PrefixI True) (S1 (MetaSel (Just "_cprrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Just "_cprrsPullRequest") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 PullRequest)))

Response Lenses

cprrsPullRequest :: Lens' CreatePullRequestResponse PullRequest Source #

Information about the newly created pull request.