:doc:`CostExplorer <../../ce>` / Client / list_savings_plans_purchase_recommendation_generation

*****************************************************
list_savings_plans_purchase_recommendation_generation
*****************************************************



.. py:method:: CostExplorer.Client.list_savings_plans_purchase_recommendation_generation(**kwargs)

  

  Retrieves a list of your historical recommendation generations within the past 30 days.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/ListSavingsPlansPurchaseRecommendationGeneration>`_  


  **Request Syntax**
  ::

    response = client.list_savings_plans_purchase_recommendation_generation(
        GenerationStatus='SUCCEEDED'|'PROCESSING'|'FAILED',
        RecommendationIds=[
            'string',
        ],
        PageSize=123,
        NextPageToken='string'
    )
    
  :type GenerationStatus: string
  :param GenerationStatus: 

    The status of the recommendation generation.

    

  
  :type RecommendationIds: list
  :param RecommendationIds: 

    The IDs for each specific recommendation.

    

  
    - *(string) --* 

    

  :type PageSize: integer
  :param PageSize: 

    The number of recommendations that you want returned in a single response object.

    

  
  :type NextPageToken: string
  :param NextPageToken: 

    The token to retrieve the next set of results.

    

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

    
    ::

      {
          'GenerationSummaryList': [
              {
                  'RecommendationId': 'string',
                  'GenerationStatus': 'SUCCEEDED'|'PROCESSING'|'FAILED',
                  'GenerationStartedTime': 'string',
                  'GenerationCompletionTime': 'string',
                  'EstimatedCompletionTime': 'string'
              },
          ],
          'NextPageToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **GenerationSummaryList** *(list) --* 

        The list of historical recommendation generations.

        
        

        - *(dict) --* 

          The summary of the Savings Plans recommendation generation.

          
          

          - **RecommendationId** *(string) --* 

            Indicates the ID for this specific recommendation.

            
          

          - **GenerationStatus** *(string) --* 

            Indicates whether the recommendation generation succeeded, is processing, or failed.

            
          

          - **GenerationStartedTime** *(string) --* 

            Indicates the start time of the recommendation generation.

            
          

          - **GenerationCompletionTime** *(string) --* 

            Indicates the completion time of the recommendation generation.

            
          

          - **EstimatedCompletionTime** *(string) --* 

            Indicates the estimated time for when the recommendation generation will complete.

            
      
    
      

      - **NextPageToken** *(string) --* 

        The token to retrieve the next set of results.

        
  
  **Exceptions**
  
  *   :py:class:`CostExplorer.Client.exceptions.LimitExceededException`

  
  *   :py:class:`CostExplorer.Client.exceptions.InvalidNextTokenException`

  
  *   :py:class:`CostExplorer.Client.exceptions.DataUnavailableException`

  