:doc:`CodeCommit <../../codecommit>` / Client / override_pull_request_approval_rules

************************************
override_pull_request_approval_rules
************************************



.. py:method:: CodeCommit.Client.override_pull_request_approval_rules(**kwargs)

  

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

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/OverridePullRequestApprovalRules>`_  


  **Request Syntax**
  ::

    response = client.override_pull_request_approval_rules(
        pullRequestId='string',
        revisionId='string',
        overrideStatus='OVERRIDE'|'REVOKE'
    )
    
  :type pullRequestId: string
  :param pullRequestId: **[REQUIRED]** 

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

    

  
  :type revisionId: string
  :param revisionId: **[REQUIRED]** 

    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.

    

  
  :type overrideStatus: string
  :param overrideStatus: **[REQUIRED]** 

    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.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`CodeCommit.Client.exceptions.PullRequestDoesNotExistException`

  
  *   :py:class:`CodeCommit.Client.exceptions.InvalidPullRequestIdException`

  
  *   :py:class:`CodeCommit.Client.exceptions.PullRequestIdRequiredException`

  
  *   :py:class:`CodeCommit.Client.exceptions.InvalidRevisionIdException`

  
  *   :py:class:`CodeCommit.Client.exceptions.RevisionIdRequiredException`

  
  *   :py:class:`CodeCommit.Client.exceptions.InvalidOverrideStatusException`

  
  *   :py:class:`CodeCommit.Client.exceptions.OverrideStatusRequiredException`

  
  *   :py:class:`CodeCommit.Client.exceptions.OverrideAlreadySetException`

  
  *   :py:class:`CodeCommit.Client.exceptions.RevisionNotCurrentException`

  
  *   :py:class:`CodeCommit.Client.exceptions.PullRequestAlreadyClosedException`

  
  *   :py:class:`CodeCommit.Client.exceptions.EncryptionIntegrityChecksFailedException`

  
  *   :py:class:`CodeCommit.Client.exceptions.EncryptionKeyAccessDeniedException`

  
  *   :py:class:`CodeCommit.Client.exceptions.EncryptionKeyDisabledException`

  
  *   :py:class:`CodeCommit.Client.exceptions.EncryptionKeyNotFoundException`

  
  *   :py:class:`CodeCommit.Client.exceptions.EncryptionKeyUnavailableException`

  