ListCodeRepositories

class SageMaker.Paginator.ListCodeRepositories
paginator = client.get_paginator('list_code_repositories')
paginate(**kwargs)

Creates an iterator that will paginate through responses from SageMaker.Client.list_code_repositories().

See also: AWS API Documentation

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'
    }
)
Parameters
  • CreationTimeAfter (datetime) -- A filter that returns only Git repositories that were created after the specified time.
  • CreationTimeBefore (datetime) -- A filter that returns only Git repositories that were created before the specified time.
  • LastModifiedTimeAfter (datetime) -- A filter that returns only Git repositories that were last modified after the specified time.
  • LastModifiedTimeBefore (datetime) -- A filter that returns only Git repositories that were last modified before the specified time.
  • NameContains (string) -- A string in the Git repositories name. This filter returns only repositories whose name contains the specified string.
  • SortBy (string) -- The field to sort results by. The default is Name .
  • SortOrder (string) -- The sort order for results. The default is Ascending .
  • PaginationConfig (dict) --

    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.

Return type

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}