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 |
Sets aside (overrides) all approval rule requirements for a specified pull request.
Synopsis
- data OverridePullRequestApprovalRules = OverridePullRequestApprovalRules' {}
- newOverridePullRequestApprovalRules :: Text -> Text -> OverrideStatus -> OverridePullRequestApprovalRules
- overridePullRequestApprovalRules_pullRequestId :: Lens' OverridePullRequestApprovalRules Text
- overridePullRequestApprovalRules_revisionId :: Lens' OverridePullRequestApprovalRules Text
- overridePullRequestApprovalRules_overrideStatus :: Lens' OverridePullRequestApprovalRules OverrideStatus
- data OverridePullRequestApprovalRulesResponse = OverridePullRequestApprovalRulesResponse' {
- newOverridePullRequestApprovalRulesResponse :: OverridePullRequestApprovalRulesResponse
Creating a Request
data OverridePullRequestApprovalRules Source #
See: newOverridePullRequestApprovalRules
smart constructor.
OverridePullRequestApprovalRules' | |
|
Instances
newOverridePullRequestApprovalRules Source #
Create a value of OverridePullRequestApprovalRules
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:OverridePullRequestApprovalRules'
, overridePullRequestApprovalRules_pullRequestId
- The system-generated ID of the pull request for which you want to
override all approval rule requirements. To get this information, use
GetPullRequest.
$sel:revisionId:OverridePullRequestApprovalRules'
, overridePullRequestApprovalRules_revisionId
- The system-generated ID of the most recent revision of the pull request.
You cannot override approval rules for anything but the most recent
revision of a pull request. To get the revision ID, use GetPullRequest.
$sel:overrideStatus:OverridePullRequestApprovalRules'
, overridePullRequestApprovalRules_overrideStatus
- Whether you want to set aside approval rule requirements for the pull
request (OVERRIDE) or revoke a previous override and apply approval rule
requirements (REVOKE). REVOKE status is not stored.
Request Lenses
overridePullRequestApprovalRules_pullRequestId :: Lens' OverridePullRequestApprovalRules Text Source #
The system-generated ID of the pull request for which you want to override all approval rule requirements. To get this information, use GetPullRequest.
overridePullRequestApprovalRules_revisionId :: Lens' OverridePullRequestApprovalRules Text Source #
The system-generated ID of the most recent revision of the pull request. You cannot override approval rules for anything but the most recent revision of a pull request. To get the revision ID, use GetPullRequest.
overridePullRequestApprovalRules_overrideStatus :: Lens' OverridePullRequestApprovalRules OverrideStatus Source #
Whether you want to set aside approval rule requirements for the pull request (OVERRIDE) or revoke a previous override and apply approval rule requirements (REVOKE). REVOKE status is not stored.
Destructuring the Response
data OverridePullRequestApprovalRulesResponse Source #
See: newOverridePullRequestApprovalRulesResponse
smart constructor.
Instances
Eq OverridePullRequestApprovalRulesResponse Source # | |
Read OverridePullRequestApprovalRulesResponse Source # | |
Show OverridePullRequestApprovalRulesResponse Source # | |
Generic OverridePullRequestApprovalRulesResponse Source # | |
Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules type Rep OverridePullRequestApprovalRulesResponse :: Type -> Type # | |
NFData OverridePullRequestApprovalRulesResponse Source # | |
type Rep OverridePullRequestApprovalRulesResponse Source # | |
Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules type Rep OverridePullRequestApprovalRulesResponse = D1 ('MetaData "OverridePullRequestApprovalRulesResponse" "Amazonka.CodeCommit.OverridePullRequestApprovalRules" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "OverridePullRequestApprovalRulesResponse'" 'PrefixI 'False) (U1 :: Type -> Type)) |
newOverridePullRequestApprovalRulesResponse :: OverridePullRequestApprovalRulesResponse Source #
Create a value of OverridePullRequestApprovalRulesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.