:doc:`AccessAnalyzer <../../accessanalyzer>` / Client / cancel_policy_generation

************************
cancel_policy_generation
************************



.. py:method:: AccessAnalyzer.Client.cancel_policy_generation(**kwargs)

  

  Cancels the requested policy generation.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/CancelPolicyGeneration>`_  


  **Request Syntax**
  ::

    response = client.cancel_policy_generation(
        jobId='string'
    )
    
  :type jobId: string
  :param jobId: **[REQUIRED]** 

    The ``JobId`` that is returned by the ``StartPolicyGeneration`` operation. The ``JobId`` can be used with ``GetGeneratedPolicy`` to retrieve the generated policies or used with ``CancelPolicyGeneration`` to cancel the policy generation request.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`AccessAnalyzer.Client.exceptions.InternalServerException`

  
  *   :py:class:`AccessAnalyzer.Client.exceptions.ValidationException`

  
  *   :py:class:`AccessAnalyzer.Client.exceptions.ThrottlingException`

  
  *   :py:class:`AccessAnalyzer.Client.exceptions.AccessDeniedException`

  