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 |
Returns information about whether approval rules have been set aside (overridden) for a pull request, and if so, the Amazon Resource Name (ARN) of the user or identity that overrode the rules and their requirements for the pull request.
Synopsis
- data GetPullRequestOverrideState = GetPullRequestOverrideState' {
- pullRequestId :: Text
- revisionId :: Text
- newGetPullRequestOverrideState :: Text -> Text -> GetPullRequestOverrideState
- getPullRequestOverrideState_pullRequestId :: Lens' GetPullRequestOverrideState Text
- getPullRequestOverrideState_revisionId :: Lens' GetPullRequestOverrideState Text
- data GetPullRequestOverrideStateResponse = GetPullRequestOverrideStateResponse' {
- overridden :: Maybe Bool
- overrider :: Maybe Text
- httpStatus :: Int
- newGetPullRequestOverrideStateResponse :: Int -> GetPullRequestOverrideStateResponse
- getPullRequestOverrideStateResponse_overridden :: Lens' GetPullRequestOverrideStateResponse (Maybe Bool)
- getPullRequestOverrideStateResponse_overrider :: Lens' GetPullRequestOverrideStateResponse (Maybe Text)
- getPullRequestOverrideStateResponse_httpStatus :: Lens' GetPullRequestOverrideStateResponse Int
Creating a Request
data GetPullRequestOverrideState Source #
See: newGetPullRequestOverrideState
smart constructor.
GetPullRequestOverrideState' | |
|
Instances
newGetPullRequestOverrideState Source #
:: Text | |
-> Text | |
-> GetPullRequestOverrideState |
Create a value of GetPullRequestOverrideState
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:GetPullRequestOverrideState'
, getPullRequestOverrideState_pullRequestId
- The ID of the pull request for which you want to get information about
whether approval rules have been set aside (overridden).
$sel:revisionId:GetPullRequestOverrideState'
, getPullRequestOverrideState_revisionId
- The system-generated ID of the revision for the pull request. To
retrieve the most recent revision ID, use GetPullRequest.
Request Lenses
getPullRequestOverrideState_pullRequestId :: Lens' GetPullRequestOverrideState Text Source #
The ID of the pull request for which you want to get information about whether approval rules have been set aside (overridden).
getPullRequestOverrideState_revisionId :: Lens' GetPullRequestOverrideState Text Source #
The system-generated ID of the revision for the pull request. To retrieve the most recent revision ID, use GetPullRequest.
Destructuring the Response
data GetPullRequestOverrideStateResponse Source #
See: newGetPullRequestOverrideStateResponse
smart constructor.
GetPullRequestOverrideStateResponse' | |
|
Instances
newGetPullRequestOverrideStateResponse Source #
Create a value of GetPullRequestOverrideStateResponse
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:overridden:GetPullRequestOverrideStateResponse'
, getPullRequestOverrideStateResponse_overridden
- A Boolean value that indicates whether a pull request has had its rules
set aside (TRUE) or whether all approval rules still apply (FALSE).
$sel:overrider:GetPullRequestOverrideStateResponse'
, getPullRequestOverrideStateResponse_overrider
- The Amazon Resource Name (ARN) of the user or identity that overrode the
rules and their requirements for the pull request.
$sel:httpStatus:GetPullRequestOverrideStateResponse'
, getPullRequestOverrideStateResponse_httpStatus
- The response's http status code.
Response Lenses
getPullRequestOverrideStateResponse_overridden :: Lens' GetPullRequestOverrideStateResponse (Maybe Bool) Source #
A Boolean value that indicates whether a pull request has had its rules set aside (TRUE) or whether all approval rules still apply (FALSE).
getPullRequestOverrideStateResponse_overrider :: Lens' GetPullRequestOverrideStateResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the user or identity that overrode the rules and their requirements for the pull request.
getPullRequestOverrideStateResponse_httpStatus :: Lens' GetPullRequestOverrideStateResponse Int Source #
The response's http status code.