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

******************************
modify_selfservice_permissions
******************************



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

  

  Modifies the self-service WorkSpace management capabilities for your users. For more information, see `Enable Self-Service WorkSpace Management Capabilities for Your Users <https://docs.aws.amazon.com/workspaces/latest/adminguide/enable-user-self-service-workspace-management.html>`__.

  

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


  **Request Syntax**
  ::

    response = client.modify_selfservice_permissions(
        ResourceId='string',
        SelfservicePermissions={
            'RestartWorkspace': 'ENABLED'|'DISABLED',
            'IncreaseVolumeSize': 'ENABLED'|'DISABLED',
            'ChangeComputeType': 'ENABLED'|'DISABLED',
            'SwitchRunningMode': 'ENABLED'|'DISABLED',
            'RebuildWorkspace': 'ENABLED'|'DISABLED'
        }
    )
    
  :type ResourceId: string
  :param ResourceId: **[REQUIRED]** 

    The identifier of the directory.

    

  
  :type SelfservicePermissions: dict
  :param SelfservicePermissions: **[REQUIRED]** 

    The permissions to enable or disable self-service capabilities.

    

  
    - **RestartWorkspace** *(string) --* 

      Specifies whether users can restart their WorkSpace.

      

    
    - **IncreaseVolumeSize** *(string) --* 

      Specifies whether users can increase the volume size of the drives on their WorkSpace.

      

    
    - **ChangeComputeType** *(string) --* 

      Specifies whether users can change the compute type (bundle) for their WorkSpace.

      

    
    - **SwitchRunningMode** *(string) --* 

      Specifies whether users can switch the running mode of their WorkSpace.

      

    
    - **RebuildWorkspace** *(string) --* 

      Specifies whether users can rebuild the operating system of a WorkSpace to its original state.

      

    
  
  
  :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.OperationNotSupportedException`

  