:doc:`SageMaker <../../sagemaker>` / Paginator / ListCodeRepositories

********************
ListCodeRepositories
********************



.. py:class:: SageMaker.Paginator.ListCodeRepositories

  ::

    
    paginator = client.get_paginator('list_code_repositories')

  
  

  .. py:method:: paginate(**kwargs)

    Creates an iterator that will paginate through responses from :py:meth:`SageMaker.Client.list_code_repositories`.

    See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListCodeRepositories>`_    


    **Request Syntax**
    ::

      response_iterator = paginator.paginate(
          CreationTimeAfter=datetime(2015, 1, 1),
          CreationTimeBefore=datetime(2015, 1, 1),
          LastModifiedTimeAfter=datetime(2015, 1, 1),
          LastModifiedTimeBefore=datetime(2015, 1, 1),
          NameContains='string',
          SortBy='Name'|'CreationTime'|'LastModifiedTime',
          SortOrder='Ascending'|'Descending',
          PaginationConfig={
              'MaxItems': 123,
              'PageSize': 123,
              'StartingToken': 'string'
          }
      )
      
    :type CreationTimeAfter: datetime
    :param CreationTimeAfter: 

      A filter that returns only Git repositories that were created after the specified time.

      

    
    :type CreationTimeBefore: datetime
    :param CreationTimeBefore: 

      A filter that returns only Git repositories that were created before the specified time.

      

    
    :type LastModifiedTimeAfter: datetime
    :param LastModifiedTimeAfter: 

      A filter that returns only Git repositories that were last modified after the specified time.

      

    
    :type LastModifiedTimeBefore: datetime
    :param LastModifiedTimeBefore: 

      A filter that returns only Git repositories that were last modified before the specified time.

      

    
    :type NameContains: string
    :param NameContains: 

      A string in the Git repositories name. This filter returns only repositories whose name contains the specified string.

      

    
    :type SortBy: string
    :param SortBy: 

      The field to sort results by. The default is ``Name``.

      

    
    :type SortOrder: string
    :param SortOrder: 

      The sort order for results. The default is ``Ascending``.

      

    
    :type PaginationConfig: dict
    :param PaginationConfig: 

      A dictionary that provides parameters to control pagination.

      

    
      - **MaxItems** *(integer) --* 

        The total number of items to return. If the total number of items available is more than the value specified in max-items then a ``NextToken`` will be provided in the output that you can use to resume pagination.

        

      
      - **PageSize** *(integer) --* 

        The size of each page.

        

      
      - **StartingToken** *(string) --* 

        A token to specify where to start paginating. This is the ``NextToken`` from a previous response.

        

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

      
      ::

        {
            'CodeRepositorySummaryList': [
                {
                    'CodeRepositoryName': 'string',
                    'CodeRepositoryArn': 'string',
                    'CreationTime': datetime(2015, 1, 1),
                    'LastModifiedTime': datetime(2015, 1, 1),
                    'GitConfig': {
                        'RepositoryUrl': 'string',
                        'Branch': 'string',
                        'SecretArn': 'string'
                    }
                },
            ],
            
        }
        
      **Response Structure**

      

      - *(dict) --* 
        

        - **CodeRepositorySummaryList** *(list) --* 

          Gets a list of summaries of the Git repositories. Each summary specifies the following values for the repository:

           

          
          * Name
           
          * Amazon Resource Name (ARN)
           
          * Creation time
           
          * Last modified time
           
          * Configuration information, including the URL location of the repository and the ARN of the Amazon Web Services Secrets Manager secret that contains the credentials used to access the repository.
          

          
          

          - *(dict) --* 

            Specifies summary information about a Git repository.

            
            

            - **CodeRepositoryName** *(string) --* 

              The name of the Git repository.

              
            

            - **CodeRepositoryArn** *(string) --* 

              The Amazon Resource Name (ARN) of the Git repository.

              
            

            - **CreationTime** *(datetime) --* 

              The date and time that the Git repository was created.

              
            

            - **LastModifiedTime** *(datetime) --* 

              The date and time that the Git repository was last modified.

              
            

            - **GitConfig** *(dict) --* 

              Configuration details for the Git repository, including the URL where it is located and the ARN of the Amazon Web Services Secrets Manager secret that contains the credentials used to access the repository.

              
              

              - **RepositoryUrl** *(string) --* 

                The URL where the Git repository is located.

                
              

              - **Branch** *(string) --* 

                The default branch for the Git repository.

                
              

              - **SecretArn** *(string) --* 

                The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains the credentials used to access the git repository. The secret must have a staging label of ``AWSCURRENT`` and must be in the following format:

                 

                ``{"username": UserName, "password": Password}``

                
          
        
      
    