:doc:`RedshiftServerless <../../redshift-serverless>` / Client / list_recovery_points

********************
list_recovery_points
********************



.. py:method:: RedshiftServerless.Client.list_recovery_points(**kwargs)

  

  Returns an array of recovery points.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/ListRecoveryPoints>`_  


  **Request Syntax**
  ::

    response = client.list_recovery_points(
        endTime=datetime(2015, 1, 1),
        maxResults=123,
        namespaceArn='string',
        namespaceName='string',
        nextToken='string',
        startTime=datetime(2015, 1, 1)
    )
    
  :type endTime: datetime
  :param endTime: 

    The time when creation of the recovery point finished.

    

  
  :type maxResults: integer
  :param maxResults: 

    An optional parameter that specifies the maximum number of results to return. You can use ``nextToken`` to display the next page of results.

    

  
  :type namespaceArn: string
  :param namespaceArn: 

    The Amazon Resource Name (ARN) of the namespace from which to list recovery points.

    

  
  :type namespaceName: string
  :param namespaceName: 

    The name of the namespace to list recovery points for.

    

  
  :type nextToken: string
  :param nextToken: 

    If your initial ``ListRecoveryPoints`` operation returns a ``nextToken``, you can include the returned ``nextToken`` in following ``ListRecoveryPoints`` operations, which returns results in the next page.

    

  
  :type startTime: datetime
  :param startTime: 

    The time when the recovery point's creation was initiated.

    

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

    
    ::

      {
          'nextToken': 'string',
          'recoveryPoints': [
              {
                  'namespaceArn': 'string',
                  'namespaceName': 'string',
                  'recoveryPointCreateTime': datetime(2015, 1, 1),
                  'recoveryPointId': 'string',
                  'totalSizeInMegaBytes': 123.0,
                  'workgroupName': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **nextToken** *(string) --* 

        If ``nextToken`` is returned, there are more results available. The value of ``nextToken`` is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

        
      

      - **recoveryPoints** *(list) --* 

        The returned recovery point objects.

        
        

        - *(dict) --* 

          The automatically created recovery point of a namespace. Recovery points are created every 30 minutes and kept for 24 hours.

          
          

          - **namespaceArn** *(string) --* 

            The Amazon Resource Name (ARN) of the namespace the recovery point is associated with.

            
          

          - **namespaceName** *(string) --* 

            The name of the namespace the recovery point is associated with.

            
          

          - **recoveryPointCreateTime** *(datetime) --* 

            The time the recovery point is created.

            
          

          - **recoveryPointId** *(string) --* 

            The unique identifier of the recovery point.

            
          

          - **totalSizeInMegaBytes** *(float) --* 

            The total size of the data in the recovery point in megabytes.

            
          

          - **workgroupName** *(string) --* 

            The name of the workgroup the recovery point is associated with.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`RedshiftServerless.Client.exceptions.InternalServerException`

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

  