:doc:`EC2 <../../ec2>` / Client / cancel_declarative_policies_report

**********************************
cancel_declarative_policies_report
**********************************



.. py:method:: EC2.Client.cancel_declarative_policies_report(**kwargs)

  

  Cancels the generation of an account status report.

   

  You can only cancel a report while it has the ``running`` status. Reports with other statuses ( ``complete``, ``cancelled``, or ``error``) can't be canceled.

   

  For more information, see `Generating the account status report for declarative policies <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative_status-report.html>`__ in the *Amazon Web Services Organizations User Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelDeclarativePoliciesReport>`_  


  **Request Syntax**
  ::

    response = client.cancel_declarative_policies_report(
        DryRun=True|False,
        ReportId='string'
    )
    
  :type DryRun: boolean
  :param DryRun: 

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is ``DryRunOperation``. Otherwise, it is ``UnauthorizedOperation``.

    

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

    The ID of the report.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'Return': True|False
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Return** *(boolean) --* 

        Is ``true`` if the request succeeds, and an error otherwise.

        
  