list_source_repositories

list_source_repositories(**kwargs)

Retrieves a list of source repositories in a project.

See also: AWS API Documentation

Request Syntax

response = client.list_source_repositories(
    spaceName='string',
    projectName='string',
    nextToken='string',
    maxResults=123
)
Parameters
  • spaceName (string) --

    [REQUIRED]

    The name of the space.

  • projectName (string) --

    [REQUIRED]

    The name of the project in the space.

  • nextToken (string) -- A token returned from a call to this API to indicate the next batch of results to return, if any.
  • maxResults (integer) -- The maximum number of results to show in a single call to this API. If the number of results is larger than the number you specified, the response will include a NextToken element, which you can use to obtain additional results.
Return type

dict

Returns

Response Syntax

{
    'items': [
        {
            'id': 'string',
            'name': 'string',
            'description': 'string',
            'lastUpdatedTime': datetime(2015, 1, 1),
            'createdTime': datetime(2015, 1, 1)
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • items (list) --

      Information about the source repositories.

      • (dict) --

        Information about a source repository returned in a list of source repositories.

        • id (string) --

          The system-generated unique ID of the source repository.

        • name (string) --

          The name of the source repository.

        • description (string) --

          The description of the repository, if any.

        • lastUpdatedTime (datetime) --

          The time the source repository was last updated, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.

        • createdTime (datetime) --

          The time the source repository was created, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.

    • nextToken (string) --

      A token returned from a call to this API to indicate the next batch of results to return, if any.

Exceptions

  • CodeCatalyst.Client.exceptions.ThrottlingException
  • CodeCatalyst.Client.exceptions.ConflictException
  • CodeCatalyst.Client.exceptions.ValidationException
  • CodeCatalyst.Client.exceptions.ServiceQuotaExceededException
  • CodeCatalyst.Client.exceptions.ResourceNotFoundException
  • CodeCatalyst.Client.exceptions.AccessDeniedException