:doc:`ElasticsearchService <../../es>` / Client / get_package_version_history

***************************
get_package_version_history
***************************



.. py:method:: ElasticsearchService.Client.get_package_version_history(**kwargs)

  

  Returns a list of versions of the package, along with their creation time and commit message.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/GetPackageVersionHistory>`_  


  **Request Syntax**
  ::

    response = client.get_package_version_history(
        PackageID='string',
        MaxResults=123,
        NextToken='string'
    )
    
  :type PackageID: string
  :param PackageID: **[REQUIRED]** 

    Returns an audit history of versions of the package.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    Limits results to a maximum number of versions.

    

  
  :type NextToken: string
  :param NextToken: 

    Used for pagination. Only necessary if a previous API call includes a non-null NextToken value. If provided, returns results for the next page.

    

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

    
    ::

      {
          'PackageID': 'string',
          'PackageVersionHistoryList': [
              {
                  'PackageVersion': 'string',
                  'CommitMessage': 'string',
                  'CreatedAt': datetime(2015, 1, 1)
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      Container for response returned by ``GetPackageVersionHistory`` operation.

      
      

      - **PackageID** *(string) --* 
      

      - **PackageVersionHistoryList** *(list) --* 

        List of ``PackageVersionHistory`` objects.

        
        

        - *(dict) --* 

          Details of a package version.

          
          

          - **PackageVersion** *(string) --* 

            Version of the package.

            
          

          - **CommitMessage** *(string) --* 

            A message associated with the version.

            
          

          - **CreatedAt** *(datetime) --* 

            Timestamp which tells creation time of the package version.

            
      
    
      

      - **NextToken** *(string) --* 
  
  **Exceptions**
  
  *   :py:class:`ElasticsearchService.Client.exceptions.BaseException`

  
  *   :py:class:`ElasticsearchService.Client.exceptions.InternalException`

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

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

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

  