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

*************************
create_listing_change_set
*************************



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

  

  Publishes a listing (a record of an asset at a given time) or removes a listing from the catalog.

  

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


  **Request Syntax**
  ::

    response = client.create_listing_change_set(
        domainIdentifier='string',
        entityIdentifier='string',
        entityType='ASSET'|'DATA_PRODUCT',
        entityRevision='string',
        action='PUBLISH'|'UNPUBLISH',
        clientToken='string'
    )
    
  :type domainIdentifier: string
  :param domainIdentifier: **[REQUIRED]** 

    The ID of the Amazon DataZone domain.

    

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

    The ID of the asset.

    

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

    The type of an entity.

    

  
  :type entityRevision: string
  :param entityRevision: 

    The revision of an asset.

    

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

    Specifies whether to publish or unpublish a listing.

    

  
  :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**

    
    ::

      {
          'listingId': 'string',
          'listingRevision': 'string',
          'status': 'CREATING'|'ACTIVE'|'INACTIVE'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **listingId** *(string) --* 

        The ID of the listing (a record of an asset at a given time).

        
      

      - **listingRevision** *(string) --* 

        The revision of a listing.

        
      

      - **status** *(string) --* 

        Specifies the status of the listing.

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

  