:doc:`Connect <../../connect>` / Client / list_workspace_media

********************
list_workspace_media
********************



.. py:method:: Connect.Client.list_workspace_media(**kwargs)

  

  Lists media assets (such as logos) associated with a workspace.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListWorkspaceMedia>`_  


  **Request Syntax**
  ::

    response = client.list_workspace_media(
        InstanceId='string',
        WorkspaceId='string'
    )
    
  :type InstanceId: string
  :param InstanceId: **[REQUIRED]** 

    The identifier of the Amazon Connect instance. You can `find the instance ID <https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html>`__ in the Amazon Resource Name (ARN) of the instance.

    

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

    The identifier of the workspace.

    

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

    
    ::

      {
          'Media': [
              {
                  'Type': 'IMAGE_LOGO_LIGHT_FAVICON'|'IMAGE_LOGO_DARK_FAVICON'|'IMAGE_LOGO_LIGHT_HORIZONTAL'|'IMAGE_LOGO_DARK_HORIZONTAL',
                  'Source': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Media** *(list) --* 

        A list of media assets for the workspace.

        
        

        - *(dict) --* 

          Contains information about a media asset used in a workspace.

          
          

          - **Type** *(string) --* 

            The type of media. Valid values are: ``IMAGE_LOGO_FAVICON`` and ``IMAGE_LOGO_HORIZONTAL``.

            
          

          - **Source** *(string) --* 

            The source URL or data for the media asset.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`Connect.Client.exceptions.InternalServiceException`

  
  *   :py:class:`Connect.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`Connect.Client.exceptions.InvalidRequestException`

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

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

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

  