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

**********************
import_workspace_media
**********************



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

  

  Imports a media asset (such as a logo) for use in a workspace.

  

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


  **Request Syntax**
  ::

    response = client.import_workspace_media(
        InstanceId='string',
        WorkspaceId='string',
        MediaType='IMAGE_LOGO_LIGHT_FAVICON'|'IMAGE_LOGO_DARK_FAVICON'|'IMAGE_LOGO_LIGHT_HORIZONTAL'|'IMAGE_LOGO_DARK_HORIZONTAL',
        MediaSource='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.

    

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

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

    

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

    The media source. Can be an S3 presigned URL or a base64-encoded string.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Connect.Client.exceptions.InvalidRequestException`

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

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

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

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

  