:doc:`GameLiftStreams <../../gameliftstreams>` / Client / terminate_stream_session

************************
terminate_stream_session
************************



.. py:method:: GameLiftStreams.Client.terminate_stream_session(**kwargs)

  

  Permanently terminates an active stream session. When called, the stream session status changes to ``TERMINATING``. You can terminate a stream session in any status except ``ACTIVATING``. If the stream session is in ``ACTIVATING`` status, an exception is thrown.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/gameliftstreams-2018-05-10/TerminateStreamSession>`_  


  **Request Syntax**
  ::

    response = client.terminate_stream_session(
        Identifier='string',
        StreamSessionIdentifier='string'
    )
    
  :type Identifier: string
  :param Identifier: **[REQUIRED]** 

    `Amazon Resource Name (ARN) <https://docs.aws.amazon.com/IAM/latest/UserGuide/reference-arns.html>`__ or ID that uniquely identifies the stream group resource. Example ARN: ``arn:aws:gameliftstreams:us-west-2:111122223333:streamgroup/sg-1AB2C3De4``. Example ID: ``sg-1AB2C3De4``.

     

    The stream group that runs this stream session.

    

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

    `Amazon Resource Name (ARN) <https://docs.aws.amazon.com/IAM/latest/UserGuide/reference-arns.html>`__ or ID that uniquely identifies the stream session resource. Example ARN: ``arn:aws:gameliftstreams:us-west-2:111122223333:streamsession/sg-1AB2C3De4/ABC123def4567``. Example ID: ``ABC123def4567``.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`GameLiftStreams.Client.exceptions.AccessDeniedException`

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

  
  *   :py:class:`GameLiftStreams.Client.exceptions.ThrottlingException`

  
  *   :py:class:`GameLiftStreams.Client.exceptions.InternalServerException`

  
  *   :py:class:`GameLiftStreams.Client.exceptions.ValidationException`

  