AmplifyGen3 / Paginator / ListRepositories

ListRepositories

class AmplifyGen3.Paginator.ListRepositories
paginator = client.get_paginator('list_repositories')
paginate(**kwargs)

Creates an iterator that will paginate through responses from AmplifyGen3.Client.list_repositories().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    Provider='GITHUB'|'GITLAB',
    Owner='string',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • Provider (string) –

    [REQUIRED]

    The Git provider.

  • Owner (string) –

    [REQUIRED]

    The account that the Git connection is for. The value depends on the provider:

    • For GitHub, specify the user or organization name.

    • For GitLab, specify the user name.

    To get this value, call ListGitConnections.

  • 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

{
    'Repositories': [
        {
            'Provider': 'GITHUB'|'GITLAB',
            'Owner': 'string',
            'Name': 'string',
            'DefaultBranch': 'string',
            'RepositoryPath': 'string',
            'UpdatedAt': datetime(2015, 1, 1),
            'CloneUrl': 'string'
        },
    ],

}

Response Structure

  • (dict) –

    • Repositories (list) –

      The repositories that the connection can access.

      • (dict) –

        A repository that a Git connection can access.

        • Provider (string) –

          The Git provider.

        • Owner (string) –

          The account that the Git connection is for. The value depends on the provider:

          • For GitHub, this is the user or organization name.

          • For GitLab, this is the user name.

        • Name (string) –

          The name of the repository.

        • DefaultBranch (string) –

          The repository’s default branch, such as main.

        • RepositoryPath (string) –

          The full path of the repository in the Git provider, for example my-org/my-app. GitLab paths can include subgroups, for example my-group/subgroup/my-app.

        • UpdatedAt (datetime) –

          The time when the repository last changed in the Git provider.

        • CloneUrl (string) –

          The HTTPS URL for cloning the repository with Git.