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

**********************************
modify_workspace_access_properties
**********************************



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

  

  Specifies which devices and operating systems users can use to access their WorkSpaces. For more information, see `Control Device Access <https://docs.aws.amazon.com/workspaces/latest/adminguide/update-directory-details.html#control-device-access>`__.

  

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


  **Request Syntax**
  ::

    response = client.modify_workspace_access_properties(
        ResourceId='string',
        WorkspaceAccessProperties={
            'DeviceTypeWindows': 'ALLOW'|'DENY',
            'DeviceTypeOsx': 'ALLOW'|'DENY',
            'DeviceTypeWeb': 'ALLOW'|'DENY',
            'DeviceTypeIos': 'ALLOW'|'DENY',
            'DeviceTypeAndroid': 'ALLOW'|'DENY',
            'DeviceTypeChromeOs': 'ALLOW'|'DENY',
            'DeviceTypeZeroClient': 'ALLOW'|'DENY',
            'DeviceTypeLinux': 'ALLOW'|'DENY',
            'DeviceTypeWorkSpacesThinClient': 'ALLOW'|'DENY',
            'AccessEndpointConfig': {
                'AccessEndpoints': [
                    {
                        'AccessEndpointType': 'STREAMING_WSP',
                        'VpcEndpointId': 'string'
                    },
                ],
                'InternetFallbackProtocols': [
                    'PCOIP',
                ]
            }
        }
    )
    
  :type ResourceId: string
  :param ResourceId: **[REQUIRED]** 

    The identifier of the directory.

    

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

    The device types and operating systems to enable or disable for access.

    

  
    - **DeviceTypeWindows** *(string) --* 

      Indicates whether users can use Windows clients to access their WorkSpaces.

      

    
    - **DeviceTypeOsx** *(string) --* 

      Indicates whether users can use macOS clients to access their WorkSpaces.

      

    
    - **DeviceTypeWeb** *(string) --* 

      Indicates whether users can access their WorkSpaces through a web browser.

      

    
    - **DeviceTypeIos** *(string) --* 

      Indicates whether users can use iOS devices to access their WorkSpaces.

      

    
    - **DeviceTypeAndroid** *(string) --* 

      Indicates whether users can use Android and Android-compatible Chrome OS devices to access their WorkSpaces.

      

    
    - **DeviceTypeChromeOs** *(string) --* 

      Indicates whether users can use Chromebooks to access their WorkSpaces.

      

    
    - **DeviceTypeZeroClient** *(string) --* 

      Indicates whether users can use zero client devices to access their WorkSpaces.

      

    
    - **DeviceTypeLinux** *(string) --* 

      Indicates whether users can use Linux clients to access their WorkSpaces.

      

    
    - **DeviceTypeWorkSpacesThinClient** *(string) --* 

      Indicates whether users can access their WorkSpaces through a WorkSpaces Thin Client.

      

    
    - **AccessEndpointConfig** *(dict) --* 

      Specifies the configuration for accessing the WorkSpace.

      

    
      - **AccessEndpoints** *(list) --* **[REQUIRED]** 

        Indicates a list of access endpoints associated with this directory.

        

      
        - *(dict) --* 

          Describes the access type and endpoint for a WorkSpace.

          

        
          - **AccessEndpointType** *(string) --* 

            Indicates the type of access endpoint.

            

          
          - **VpcEndpointId** *(string) --* 

            Indicates the VPC endpoint to use for access.

            

          
        
    
      - **InternetFallbackProtocols** *(list) --* 

        Indicates a list of protocols that fallback to using the public Internet when streaming over a VPC endpoint is not available.

        

      
        - *(string) --* 

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

    
    ::

      {}
      
    **Response Structure**

    

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

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

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

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

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

  