list_repositories
¶
list_repositories(
provider: GitProvider,
owner: GitOwnerName,
*,
config_overrides: Optional[AmplifyGen3ClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListRepositoriesResponse
Lists the repositories that a Git connection can access. For GitHub, these are the repositories that you granted to the app installation. For GitLab, these are the projects that you're a member of, with the most recently active first. The AWS Management Console uses this operation to show the repositories that you can choose from when you create an app.
Parameters:
-
provider(GitProvider) –The Git provider.
-
owner(GitOwnerName) –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.
-
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return in a single response.
-
next_token(Optional[NextToken], default:None) –The pagination token returned in a previous response, used to retrieve the next page of results.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
GitConnectionDisconnectedException–The Git connection doesn't exist, or the Git provider no longer accepts its access. For example, the app was uninstalled or access was revoked. Reconnect the Git provider account, and then try again.
-
InternalServerException–An internal error occurred. Retry the request.
-
ThrottlingException–The request was denied because the request rate exceeds the allowed limit.
-
ValidationException–The request contains invalid parameters or is otherwise malformed.
-
UnknownServiceError–The service returned an error code this client does not model.