libZSservicesZSamazonka-codecommitZSamazonka-codecommit
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq OverridePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules

Read OverridePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules

Show 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 #

NFData OverridePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules

Hashable OverridePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules

ToJSON OverridePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules

AWSRequest 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

type Rep OverridePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules

type Rep OverridePullRequestApprovalRules = D1 ('MetaData "OverridePullRequestApprovalRules" "Amazonka.CodeCommit.OverridePullRequestApprovalRules" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" '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))))
type AWSResponse OverridePullRequestApprovalRules Source # 
Instance details

Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules

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 #

Instances

Instances details
Eq 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

Generic OverridePullRequestApprovalRulesResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.OverridePullRequestApprovalRules

NFData 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" "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.