| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CodeCommit.OverridePullRequestApprovalRules
Description
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.
Constructors
| OverridePullRequestApprovalRules' | |
Fields
| |
Instances
newOverridePullRequestApprovalRules Source #
Arguments
| :: Text | |
| -> Text | |
| -> OverrideStatus | |
| -> OverridePullRequestApprovalRules |
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:
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.
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.
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.
Constructors
| OverridePullRequestApprovalRulesResponse' | |
Instances
| Generic OverridePullRequestApprovalRulesResponse Source # | |
Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules Associated Types type Rep OverridePullRequestApprovalRulesResponse :: Type -> Type # | |
| Read OverridePullRequestApprovalRulesResponse Source # | |
| Show OverridePullRequestApprovalRulesResponse Source # | |
| NFData OverridePullRequestApprovalRulesResponse Source # | |
Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules Methods rnf :: OverridePullRequestApprovalRulesResponse -> () # | |
| Eq OverridePullRequestApprovalRulesResponse Source # | |
| type Rep OverridePullRequestApprovalRulesResponse Source # | |
Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules type Rep OverridePullRequestApprovalRulesResponse = D1 ('MetaData "OverridePullRequestApprovalRulesResponse" "Amazonka.CodeCommit.OverridePullRequestApprovalRules" "amazonka-codecommit-2.0-974g5LOhuTPG9HgUSx02zG" '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.