list_repositories

list_repositories(**kwargs)

Returns a list of RepositorySummary objects. Each RepositorySummary contains information about a repository in the specified Amazon Web Services account and that matches the input parameters.

See also: AWS API Documentation

Request Syntax

response = client.list_repositories(
    repositoryPrefix='string',
    maxResults=123,
    nextToken='string'
)
Parameters
  • repositoryPrefix (string) -- A prefix used to filter returned repositories. Only repositories with names that start with repositoryPrefix are returned.
  • maxResults (integer) -- The maximum number of results to return per page.
  • nextToken (string) -- The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
Return type

dict

Returns

Response Syntax

{
    'repositories': [
        {
            'name': 'string',
            'administratorAccount': 'string',
            'domainName': 'string',
            'domainOwner': 'string',
            'arn': 'string',
            'description': 'string'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • repositories (list) --

      The returned list of RepositorySummary objects.

      • (dict) --

        Details about a repository, including its Amazon Resource Name (ARN), description, and domain information. The ListRepositories operation returns a list of RepositorySummary objects.

        • name (string) --

          The name of the repository.

        • administratorAccount (string) --

          The Amazon Web Services account ID that manages the repository.

        • domainName (string) --

          The name of the domain that contains the repository.

        • domainOwner (string) --

          The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

        • arn (string) --

          The ARN of the repository.

        • description (string) --

          The description of the repository.

    • nextToken (string) --

      If there are additional results, this is the token for the next set of results.

Exceptions

  • CodeArtifact.Client.exceptions.AccessDeniedException
  • CodeArtifact.Client.exceptions.InternalServerException
  • CodeArtifact.Client.exceptions.ThrottlingException
  • CodeArtifact.Client.exceptions.ValidationException