:doc:`WorkSpaces <../../workspaces>` / Client / update_workspace_bundle

***********************
update_workspace_bundle
***********************



.. py:method:: WorkSpaces.Client.update_workspace_bundle(**kwargs)

  

  Updates a WorkSpace bundle with a new image. For more information about updating WorkSpace bundles, see `Update a Custom WorkSpaces Bundle <https://docs.aws.amazon.com/workspaces/latest/adminguide/update-custom-bundle.html>`__.

   

  .. warning::

     

    Existing WorkSpaces aren't automatically updated when you update the bundle that they're based on. To update existing WorkSpaces that are based on a bundle that you've updated, you must either rebuild the WorkSpaces or delete and recreate them.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/UpdateWorkspaceBundle>`_  


  **Request Syntax**
  ::

    response = client.update_workspace_bundle(
        BundleId='string',
        ImageId='string'
    )
    
  :type BundleId: string
  :param BundleId: 

    The identifier of the bundle.

    

  
  :type ImageId: string
  :param ImageId: 

    The identifier of the image.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`WorkSpaces.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`WorkSpaces.Client.exceptions.InvalidParameterValuesException`

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

  
  *   :py:class:`WorkSpaces.Client.exceptions.ResourceUnavailableException`

  
  *   :py:class:`WorkSpaces.Client.exceptions.OperationNotSupportedException`

  