:doc:`DataZone <../../datazone>` / Client / cancel_metadata_generation_run

******************************
cancel_metadata_generation_run
******************************



.. py:method:: DataZone.Client.cancel_metadata_generation_run(**kwargs)

  

  Cancels the metadata generation run.

   

  Prerequisites:

   

  
  * The run must exist and be in a cancelable status (e.g., SUBMITTED, IN_PROGRESS).
   
  * Runs in SUCCEEDED status cannot be cancelled.
   
  * User must have access to the run and cancel permissions.
  

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/datazone-2018-05-10/CancelMetadataGenerationRun>`_  


  **Request Syntax**
  ::

    response = client.cancel_metadata_generation_run(
        domainIdentifier='string',
        identifier='string'
    )
    
  :type domainIdentifier: string
  :param domainIdentifier: **[REQUIRED]** 

    The ID of the Amazon DataZone domain in which the metadata generation run is to be cancelled.

    

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

    The ID of the metadata generation run.

    

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

    
    ::

      {}
      
    **Response Structure**

    

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

  
  *   :py:class:`DataZone.Client.exceptions.ResourceNotFoundException`

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

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

  
  *   :py:class:`DataZone.Client.exceptions.ConflictException`

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

  
  *   :py:class:`DataZone.Client.exceptions.UnauthorizedException`

  