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

Description

Deletes an approval rule from a specified pull request. Approval rules can be deleted from a pull request only if the pull request is open, and if the approval rule was created specifically for a pull request and not generated from an approval rule template associated with the repository where the pull request was created. You cannot delete an approval rule from a merged or closed pull request.

Synopsis

Creating a Request

data DeletePullRequestApprovalRule Source #

See: newDeletePullRequestApprovalRule smart constructor.

Constructors

DeletePullRequestApprovalRule' 

Fields

  • pullRequestId :: Text

    The system-generated ID of the pull request that contains the approval rule you want to delete.

  • approvalRuleName :: Text

    The name of the approval rule you want to delete.

Instances

Instances details
Eq DeletePullRequestApprovalRule Source # 
Instance details

Defined in Amazonka.CodeCommit.DeletePullRequestApprovalRule

Read DeletePullRequestApprovalRule Source # 
Instance details

Defined in Amazonka.CodeCommit.DeletePullRequestApprovalRule

Show DeletePullRequestApprovalRule Source # 
Instance details

Defined in Amazonka.CodeCommit.DeletePullRequestApprovalRule

Generic DeletePullRequestApprovalRule Source # 
Instance details

Defined in Amazonka.CodeCommit.DeletePullRequestApprovalRule

Associated Types

type Rep DeletePullRequestApprovalRule :: Type -> Type #

NFData DeletePullRequestApprovalRule Source # 
Instance details

Defined in Amazonka.CodeCommit.DeletePullRequestApprovalRule

Hashable DeletePullRequestApprovalRule Source # 
Instance details

Defined in Amazonka.CodeCommit.DeletePullRequestApprovalRule

ToJSON DeletePullRequestApprovalRule Source # 
Instance details

Defined in Amazonka.CodeCommit.DeletePullRequestApprovalRule

AWSRequest DeletePullRequestApprovalRule Source # 
Instance details

Defined in Amazonka.CodeCommit.DeletePullRequestApprovalRule

ToHeaders DeletePullRequestApprovalRule Source # 
Instance details

Defined in Amazonka.CodeCommit.DeletePullRequestApprovalRule

ToPath DeletePullRequestApprovalRule Source # 
Instance details

Defined in Amazonka.CodeCommit.DeletePullRequestApprovalRule

ToQuery DeletePullRequestApprovalRule Source # 
Instance details

Defined in Amazonka.CodeCommit.DeletePullRequestApprovalRule

type Rep DeletePullRequestApprovalRule Source # 
Instance details

Defined in Amazonka.CodeCommit.DeletePullRequestApprovalRule

type Rep DeletePullRequestApprovalRule = D1 ('MetaData "DeletePullRequestApprovalRule" "Amazonka.CodeCommit.DeletePullRequestApprovalRule" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "DeletePullRequestApprovalRule'" 'PrefixI 'True) (S1 ('MetaSel ('Just "pullRequestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "approvalRuleName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeletePullRequestApprovalRule Source # 
Instance details

Defined in Amazonka.CodeCommit.DeletePullRequestApprovalRule

newDeletePullRequestApprovalRule Source #

Create a value of DeletePullRequestApprovalRule 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:DeletePullRequestApprovalRule', deletePullRequestApprovalRule_pullRequestId - The system-generated ID of the pull request that contains the approval rule you want to delete.

$sel:approvalRuleName:DeletePullRequestApprovalRule', deletePullRequestApprovalRule_approvalRuleName - The name of the approval rule you want to delete.

Request Lenses

deletePullRequestApprovalRule_pullRequestId :: Lens' DeletePullRequestApprovalRule Text Source #

The system-generated ID of the pull request that contains the approval rule you want to delete.

Destructuring the Response

data DeletePullRequestApprovalRuleResponse Source #

Constructors

DeletePullRequestApprovalRuleResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • approvalRuleId :: Text

    The ID of the deleted approval rule.

    If the approval rule was deleted in an earlier API call, the response is 200 OK without content.

Instances

Instances details
Eq DeletePullRequestApprovalRuleResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.DeletePullRequestApprovalRule

Read DeletePullRequestApprovalRuleResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.DeletePullRequestApprovalRule

Show DeletePullRequestApprovalRuleResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.DeletePullRequestApprovalRule

Generic DeletePullRequestApprovalRuleResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.DeletePullRequestApprovalRule

NFData DeletePullRequestApprovalRuleResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.DeletePullRequestApprovalRule

type Rep DeletePullRequestApprovalRuleResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.DeletePullRequestApprovalRule

type Rep DeletePullRequestApprovalRuleResponse = D1 ('MetaData "DeletePullRequestApprovalRuleResponse" "Amazonka.CodeCommit.DeletePullRequestApprovalRule" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "DeletePullRequestApprovalRuleResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "approvalRuleId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDeletePullRequestApprovalRuleResponse Source #

Create a value of DeletePullRequestApprovalRuleResponse 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:httpStatus:DeletePullRequestApprovalRuleResponse', deletePullRequestApprovalRuleResponse_httpStatus - The response's http status code.

$sel:approvalRuleId:DeletePullRequestApprovalRuleResponse', deletePullRequestApprovalRuleResponse_approvalRuleId - The ID of the deleted approval rule.

If the approval rule was deleted in an earlier API call, the response is 200 OK without content.

Response Lenses

deletePullRequestApprovalRuleResponse_approvalRuleId :: Lens' DeletePullRequestApprovalRuleResponse Text Source #

The ID of the deleted approval rule.

If the approval rule was deleted in an earlier API call, the response is 200 OK without content.