:doc:`DeviceFarm <../../devicefarm>` / Client / create_test_grid_url

********************
create_test_grid_url
********************



.. py:method:: DeviceFarm.Client.create_test_grid_url(**kwargs)

  

  Creates a signed, short-term URL that can be passed to a Selenium ``RemoteWebDriver`` constructor.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateTestGridUrl>`_  


  **Request Syntax**
  ::

    response = client.create_test_grid_url(
        projectArn='string',
        expiresInSeconds=123
    )
    
  :type projectArn: string
  :param projectArn: **[REQUIRED]** 

    ARN (from  CreateTestGridProject or  ListTestGridProjects) to associate with the short-term URL.

    

  
  :type expiresInSeconds: integer
  :param expiresInSeconds: **[REQUIRED]** 

    Lifetime, in seconds, of the URL.

    

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

    
    ::

      {
          'url': 'string',
          'expires': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **url** *(string) --* 

        A signed URL, expiring in  CreateTestGridUrlRequest$expiresInSeconds seconds, to be passed to a ``RemoteWebDriver``.

        
      

      - **expires** *(datetime) --* 

        The number of seconds the URL from  CreateTestGridUrlResult$url stays active.

        
  
  **Exceptions**
  
  *   :py:class:`DeviceFarm.Client.exceptions.NotFoundException`

  
  *   :py:class:`DeviceFarm.Client.exceptions.ArgumentException`

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

  