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

Description

Updates the status of a pull request.

Synopsis

Creating a Request

data UpdatePullRequestStatus Source #

See: newUpdatePullRequestStatus smart constructor.

Constructors

UpdatePullRequestStatus' 

Fields

  • pullRequestId :: Text

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

  • pullRequestStatus :: PullRequestStatusEnum

    The status of the pull request. The only valid operations are to update the status from OPEN to OPEN, OPEN to CLOSED or from CLOSED to CLOSED.

Instances

Instances details
Eq UpdatePullRequestStatus Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestStatus

Read UpdatePullRequestStatus Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestStatus

Show UpdatePullRequestStatus Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestStatus

Generic UpdatePullRequestStatus Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestStatus

Associated Types

type Rep UpdatePullRequestStatus :: Type -> Type #

NFData UpdatePullRequestStatus Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestStatus

Methods

rnf :: UpdatePullRequestStatus -> () #

Hashable UpdatePullRequestStatus Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestStatus

ToJSON UpdatePullRequestStatus Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestStatus

AWSRequest UpdatePullRequestStatus Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestStatus

ToHeaders UpdatePullRequestStatus Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestStatus

ToPath UpdatePullRequestStatus Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestStatus

ToQuery UpdatePullRequestStatus Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestStatus

type Rep UpdatePullRequestStatus Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestStatus

type Rep UpdatePullRequestStatus = D1 ('MetaData "UpdatePullRequestStatus" "Amazonka.CodeCommit.UpdatePullRequestStatus" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "UpdatePullRequestStatus'" 'PrefixI 'True) (S1 ('MetaSel ('Just "pullRequestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "pullRequestStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PullRequestStatusEnum)))
type AWSResponse UpdatePullRequestStatus Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestStatus

newUpdatePullRequestStatus Source #

Create a value of UpdatePullRequestStatus 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:pullRequestId:UpdatePullRequestStatus', updatePullRequestStatus_pullRequestId - The system-generated ID of the pull request. To get this ID, use ListPullRequests.

$sel:pullRequestStatus:UpdatePullRequestStatus', updatePullRequestStatus_pullRequestStatus - The status of the pull request. The only valid operations are to update the status from OPEN to OPEN, OPEN to CLOSED or from CLOSED to CLOSED.

Request Lenses

updatePullRequestStatus_pullRequestId :: Lens' UpdatePullRequestStatus Text Source #

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

updatePullRequestStatus_pullRequestStatus :: Lens' UpdatePullRequestStatus PullRequestStatusEnum Source #

The status of the pull request. The only valid operations are to update the status from OPEN to OPEN, OPEN to CLOSED or from CLOSED to CLOSED.

Destructuring the Response

data UpdatePullRequestStatusResponse Source #

See: newUpdatePullRequestStatusResponse smart constructor.

Constructors

UpdatePullRequestStatusResponse' 

Fields

Instances

Instances details
Eq UpdatePullRequestStatusResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestStatus

Read UpdatePullRequestStatusResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestStatus

Show UpdatePullRequestStatusResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestStatus

Generic UpdatePullRequestStatusResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestStatus

Associated Types

type Rep UpdatePullRequestStatusResponse :: Type -> Type #

NFData UpdatePullRequestStatusResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestStatus

type Rep UpdatePullRequestStatusResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestStatus

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

newUpdatePullRequestStatusResponse Source #

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

$sel:pullRequest:UpdatePullRequestStatusResponse', updatePullRequestStatusResponse_pullRequest - Information about the pull request.

Response Lenses