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

Description

Creates a pull request in the specified repository.

Synopsis

Creating a Request

data CreatePullRequest Source #

See: newCreatePullRequest smart constructor.

Constructors

CreatePullRequest' 

Fields

  • clientRequestToken :: 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 returns information about the initial request that used that token.

    The AWS SDKs prepopulate client request tokens. If you are using an AWS SDK, an idempotency token is created for you.

  • description :: Maybe Text

    A description of the pull request.

  • title :: Text

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

  • targets :: [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).

Instances

Instances details
Eq CreatePullRequest Source # 
Instance details

Defined in Amazonka.CodeCommit.CreatePullRequest

Read CreatePullRequest Source # 
Instance details

Defined in Amazonka.CodeCommit.CreatePullRequest

Show CreatePullRequest Source # 
Instance details

Defined in Amazonka.CodeCommit.CreatePullRequest

Generic CreatePullRequest Source # 
Instance details

Defined in Amazonka.CodeCommit.CreatePullRequest

Associated Types

type Rep CreatePullRequest :: Type -> Type #

NFData CreatePullRequest Source # 
Instance details

Defined in Amazonka.CodeCommit.CreatePullRequest

Methods

rnf :: CreatePullRequest -> () #

Hashable CreatePullRequest Source # 
Instance details

Defined in Amazonka.CodeCommit.CreatePullRequest

ToJSON CreatePullRequest Source # 
Instance details

Defined in Amazonka.CodeCommit.CreatePullRequest

AWSRequest CreatePullRequest Source # 
Instance details

Defined in Amazonka.CodeCommit.CreatePullRequest

Associated Types

type AWSResponse CreatePullRequest #

ToHeaders CreatePullRequest Source # 
Instance details

Defined in Amazonka.CodeCommit.CreatePullRequest

ToPath CreatePullRequest Source # 
Instance details

Defined in Amazonka.CodeCommit.CreatePullRequest

ToQuery CreatePullRequest Source # 
Instance details

Defined in Amazonka.CodeCommit.CreatePullRequest

type Rep CreatePullRequest Source # 
Instance details

Defined in Amazonka.CodeCommit.CreatePullRequest

type Rep CreatePullRequest = D1 ('MetaData "CreatePullRequest" "Amazonka.CodeCommit.CreatePullRequest" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "CreatePullRequest'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientRequestToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "targets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Target]))))
type AWSResponse CreatePullRequest Source # 
Instance details

Defined in Amazonka.CodeCommit.CreatePullRequest

newCreatePullRequest Source #

Create a value of CreatePullRequest 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:clientRequestToken:CreatePullRequest', createPullRequest_clientRequestToken - 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 returns information about the initial request that used that token.

The AWS SDKs prepopulate client request tokens. If you are using an AWS SDK, an idempotency token is created for you.

$sel:description:CreatePullRequest', createPullRequest_description - A description of the pull request.

$sel:title:CreatePullRequest', createPullRequest_title - The title of the pull request. This title is used to identify the pull request to other users in the repository.

$sel:targets:CreatePullRequest', createPullRequest_targets - 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).

Request Lenses

createPullRequest_clientRequestToken :: 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 returns information about the initial request that used that token.

The AWS SDKs prepopulate client request tokens. If you are using an AWS SDK, an idempotency token is created for you.

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

A description of the pull request.

createPullRequest_title :: Lens' CreatePullRequest Text Source #

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

createPullRequest_targets :: 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

data CreatePullRequestResponse Source #

See: newCreatePullRequestResponse smart constructor.

Constructors

CreatePullRequestResponse' 

Fields

Instances

Instances details
Eq CreatePullRequestResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.CreatePullRequest

Read CreatePullRequestResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.CreatePullRequest

Show CreatePullRequestResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.CreatePullRequest

Generic CreatePullRequestResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.CreatePullRequest

Associated Types

type Rep CreatePullRequestResponse :: Type -> Type #

NFData CreatePullRequestResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.CreatePullRequest

type Rep CreatePullRequestResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.CreatePullRequest

type Rep CreatePullRequestResponse = D1 ('MetaData "CreatePullRequestResponse" "Amazonka.CodeCommit.CreatePullRequest" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "CreatePullRequestResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "pullRequest") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PullRequest)))

newCreatePullRequestResponse Source #

Create a value of CreatePullRequestResponse 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:httpStatus:CreatePullRequestResponse', createPullRequestResponse_httpStatus - The response's http status code.

$sel:pullRequest:CreatePullRequestResponse', createPullRequestResponse_pullRequest - Information about the newly created pull request.

Response Lenses

createPullRequestResponse_pullRequest :: Lens' CreatePullRequestResponse PullRequest Source #

Information about the newly created pull request.