:doc:`AppStream <../../appstream>` / Client / create_streaming_url

********************
create_streaming_url
********************



.. py:method:: AppStream.Client.create_streaming_url(**kwargs)

  

  Creates a temporary URL to start an WorkSpaces Applications streaming session for the specified user. A streaming URL enables application streaming to be tested without user setup.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateStreamingURL>`_  


  **Request Syntax**
  ::

    response = client.create_streaming_url(
        StackName='string',
        FleetName='string',
        UserId='string',
        ApplicationId='string',
        Validity=123,
        SessionContext='string'
    )
    
  :type StackName: string
  :param StackName: **[REQUIRED]** 

    The name of the stack.

    

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

    The name of the fleet.

    

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

    The identifier of the user.

    

  
  :type ApplicationId: string
  :param ApplicationId: 

    The name of the application to launch after the session starts. This is the name that you specified as **Name** in the Image Assistant. If your fleet is enabled for the **Desktop** stream view, you can also choose to launch directly to the operating system desktop. To do so, specify **Desktop**.

    

  
  :type Validity: integer
  :param Validity: 

    The time that the streaming URL will be valid, in seconds. Specify a value between 1 and 604800 seconds. The default is 60 seconds.

    

  
  :type SessionContext: string
  :param SessionContext: 

    The session context. For more information, see `Session Context <https://docs.aws.amazon.com/appstream2/latest/developerguide/managing-stacks-fleets.html#managing-stacks-fleets-parameters>`__ in the *Amazon WorkSpaces Applications Administration Guide*.

    

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

    
    ::

      {
          'StreamingURL': 'string',
          'Expires': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **StreamingURL** *(string) --* 

        The URL to start the WorkSpaces Applications streaming session.

        
      

      - **Expires** *(datetime) --* 

        The elapsed time, in seconds after the Unix epoch, when this URL expires.

        
  
  **Exceptions**
  
  *   :py:class:`AppStream.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`AppStream.Client.exceptions.ResourceNotAvailableException`

  
  *   :py:class:`AppStream.Client.exceptions.OperationNotPermittedException`

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

  