:doc:`MediaLive <../../medialive>` / Client / list_versions

*************
list_versions
*************



.. py:method:: MediaLive.Client.list_versions()

  Retrieves an array of all the encoder engine versions that are available in this AWS account.

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/ListVersions>`_  


  **Request Syntax**
  ::

    response = client.list_versions()
    
    
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'Versions': [
              {
                  'ExpirationDate': datetime(2015, 1, 1),
                  'Version': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* List of encoder engine versions that are available in this AWS account.
      

      - **Versions** *(list) --* List of engine versions that are available for this AWS account.
        

        - *(dict) --* Placeholder documentation for ChannelEngineVersionResponse
          

          - **ExpirationDate** *(datetime) --* The UTC time when the version expires.
          

          - **Version** *(string) --* The build identifier for this version of the channel version.
      
    
  
  **Exceptions**
  
  *   :py:class:`MediaLive.Client.exceptions.BadRequestException`

  
  *   :py:class:`MediaLive.Client.exceptions.InternalServerErrorException`

  
  *   :py:class:`MediaLive.Client.exceptions.ForbiddenException`

  
  *   :py:class:`MediaLive.Client.exceptions.BadGatewayException`

  
  *   :py:class:`MediaLive.Client.exceptions.NotFoundException`

  
  *   :py:class:`MediaLive.Client.exceptions.GatewayTimeoutException`

  
  *   :py:class:`MediaLive.Client.exceptions.TooManyRequestsException`

  
  *   :py:class:`MediaLive.Client.exceptions.ConflictException`

  