Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Updates the state of a user's approval on a pull request. The user is derived from the signed-in account when the request is made.
Synopsis
- data UpdatePullRequestApprovalState = UpdatePullRequestApprovalState' {}
- newUpdatePullRequestApprovalState :: Text -> Text -> ApprovalState -> UpdatePullRequestApprovalState
- updatePullRequestApprovalState_pullRequestId :: Lens' UpdatePullRequestApprovalState Text
- updatePullRequestApprovalState_revisionId :: Lens' UpdatePullRequestApprovalState Text
- updatePullRequestApprovalState_approvalState :: Lens' UpdatePullRequestApprovalState ApprovalState
- data UpdatePullRequestApprovalStateResponse = UpdatePullRequestApprovalStateResponse' {
- newUpdatePullRequestApprovalStateResponse :: UpdatePullRequestApprovalStateResponse
Creating a Request
data UpdatePullRequestApprovalState Source #
See: newUpdatePullRequestApprovalState
smart constructor.
UpdatePullRequestApprovalState' | |
|
Instances
newUpdatePullRequestApprovalState Source #
Create a value of UpdatePullRequestApprovalState
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:UpdatePullRequestApprovalState'
, updatePullRequestApprovalState_pullRequestId
- The system-generated ID of the pull request.
$sel:revisionId:UpdatePullRequestApprovalState'
, updatePullRequestApprovalState_revisionId
- The system-generated ID of the revision.
$sel:approvalState:UpdatePullRequestApprovalState'
, updatePullRequestApprovalState_approvalState
- The approval state to associate with the user on the pull request.
Request Lenses
updatePullRequestApprovalState_pullRequestId :: Lens' UpdatePullRequestApprovalState Text Source #
The system-generated ID of the pull request.
updatePullRequestApprovalState_revisionId :: Lens' UpdatePullRequestApprovalState Text Source #
The system-generated ID of the revision.
updatePullRequestApprovalState_approvalState :: Lens' UpdatePullRequestApprovalState ApprovalState Source #
The approval state to associate with the user on the pull request.
Destructuring the Response
data UpdatePullRequestApprovalStateResponse Source #
See: newUpdatePullRequestApprovalStateResponse
smart constructor.
Instances
Eq UpdatePullRequestApprovalStateResponse Source # | |
Read UpdatePullRequestApprovalStateResponse Source # | |
Show UpdatePullRequestApprovalStateResponse Source # | |
Generic UpdatePullRequestApprovalStateResponse Source # | |
Defined in Amazonka.CodeCommit.UpdatePullRequestApprovalState type Rep UpdatePullRequestApprovalStateResponse :: Type -> Type # | |
NFData UpdatePullRequestApprovalStateResponse Source # | |
Defined in Amazonka.CodeCommit.UpdatePullRequestApprovalState rnf :: UpdatePullRequestApprovalStateResponse -> () # | |
type Rep UpdatePullRequestApprovalStateResponse Source # | |
Defined in Amazonka.CodeCommit.UpdatePullRequestApprovalState type Rep UpdatePullRequestApprovalStateResponse = D1 ('MetaData "UpdatePullRequestApprovalStateResponse" "Amazonka.CodeCommit.UpdatePullRequestApprovalState" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "UpdatePullRequestApprovalStateResponse'" 'PrefixI 'False) (U1 :: Type -> Type)) |
newUpdatePullRequestApprovalStateResponse :: UpdatePullRequestApprovalStateResponse Source #
Create a value of UpdatePullRequestApprovalStateResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.