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

******************
post_lineage_event
******************



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

  

  Posts a data lineage event.

  

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


  **Request Syntax**
  ::

    response = client.post_lineage_event(
        domainIdentifier='string',
        event=b'bytes'|file,
        clientToken='string'
    )
    
  :type domainIdentifier: string
  :param domainIdentifier: **[REQUIRED]** 

    The ID of the domain where you want to post a data lineage event.

    

  
  :type event: bytes or seekable file-like object
  :param event: **[REQUIRED]** 

    The data lineage event that you want to post. Only open-lineage run event are supported as events.

    

  
  :type clientToken: string
  :param clientToken: 

    A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.

    This field is autopopulated if not provided.

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

    
    ::

      {
          'id': 'string',
          'domainId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **id** *(string) --* 

        The ID of the lineage event.

        
      

      - **domainId** *(string) --* 

        The ID of the domain.

        
  
  **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.ServiceQuotaExceededException`

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

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

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

  