amazonka-codecommit-2.0: Amazon CodeCommit SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
ToJSON 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

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

Read UpdatePullRequestStatus Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestStatus

Show UpdatePullRequestStatus Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestStatus

NFData UpdatePullRequestStatus Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestStatus

Methods

rnf :: UpdatePullRequestStatus -> () #

Eq UpdatePullRequestStatus Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestStatus

Hashable UpdatePullRequestStatus Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestStatus

type AWSResponse 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" "amazonka-codecommit-2.0-974g5LOhuTPG9HgUSx02zG" 'False) (C1 ('MetaCons "UpdatePullRequestStatus'" 'PrefixI 'True) (S1 ('MetaSel ('Just "pullRequestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "pullRequestStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PullRequestStatusEnum)))

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:

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

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

Defined in Amazonka.CodeCommit.UpdatePullRequestStatus

Associated Types

type Rep UpdatePullRequestStatusResponse :: Type -> Type #

Read UpdatePullRequestStatusResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestStatus

Show UpdatePullRequestStatusResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestStatus

NFData UpdatePullRequestStatusResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdatePullRequestStatus

Eq 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" "amazonka-codecommit-2.0-974g5LOhuTPG9HgUSx02zG" '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