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.OverridePullRequestApprovalRules

Description

Sets aside (overrides) all approval rule requirements for a specified pull request.

Synopsis

Creating a Request

data OverridePullRequestApprovalRules Source #

See: newOverridePullRequestApprovalRules smart constructor.

Constructors

OverridePullRequestApprovalRules' 

Fields

  • pullRequestId :: Text

    The system-generated ID of the pull request for which you want to override all approval rule requirements. To get this information, use GetPullRequest.

  • revisionId :: Text

    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.

  • overrideStatus :: 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.

Instances

Instances details
ToJSON OverridePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules

ToHeaders OverridePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules

ToPath OverridePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules

ToQuery OverridePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules

AWSRequest OverridePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules

Generic OverridePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules

Associated Types

type Rep OverridePullRequestApprovalRules :: Type -> Type #

Read OverridePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules

Show OverridePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules

NFData OverridePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules

Eq OverridePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules

Hashable OverridePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules

type AWSResponse OverridePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules

type Rep OverridePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules

type Rep OverridePullRequestApprovalRules = D1 ('MetaData "OverridePullRequestApprovalRules" "Amazonka.CodeCommit.OverridePullRequestApprovalRules" "amazonka-codecommit-2.0-974g5LOhuTPG9HgUSx02zG" 'False) (C1 ('MetaCons "OverridePullRequestApprovalRules'" 'PrefixI 'True) (S1 ('MetaSel ('Just "pullRequestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "revisionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "overrideStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 OverrideStatus))))

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:

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 #

Instances

Instances details
Generic OverridePullRequestApprovalRulesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules

Read OverridePullRequestApprovalRulesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules

Show OverridePullRequestApprovalRulesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules

NFData OverridePullRequestApprovalRulesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules

Eq OverridePullRequestApprovalRulesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules

type Rep OverridePullRequestApprovalRulesResponse Source # 
Instance details

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.