Lists the repository links created for connections in your account.
Parameters:
-
max_results
(Optional[MaxResults], default:
None
)
–
A non-zero, non-negative integer used to limit the number of returned results.
-
next_token
(Optional[SharpNextToken], default:
None
)
–
An enumeration token that, when provided in a request, returns the next batch of the results.
Raises:
Source code in docs_src/capo_codeconnections/_services/code_connections.py
| def list_repository_links(
self,
*,
config_overrides: Optional[CodeConnectionsClientConfig] = None,
max_results: Optional[
"capo_codeconnections.types.max_results.MaxResults"
] = None,
next_token: Optional[
"capo_codeconnections.types.sharp_next_token.SharpNextToken"
] = None,
) -> "capo_codeconnections.types.list_repository_links_output.ListRepositoryLinksOutput":
"""<p>Lists the repository links created for connections in your account.</p>
Args:
max_results: <p> A non-zero, non-negative integer used to limit the number of returned results.</p>
next_token: <p> An enumeration token that, when provided in a request, returns the next batch of the results.</p>
Raises:
capo_codeconnections.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
capo_codeconnections.errors.concurrent_modification_exception.ConcurrentModificationException: <p>Exception thrown as a result of concurrent modification to an application. For example, two individuals attempting to edit the same application at the same time. </p>
capo_codeconnections.errors.internal_server_exception.InternalServerException: <p>Received an internal server exception. Try again later.</p>
capo_codeconnections.errors.invalid_input_exception.InvalidInputException: <p>The input is not valid. Verify that the action is typed correctly.</p>
capo_codeconnections.errors.resource_not_found_exception.ResourceNotFoundException: <p>Resource not found. Verify the connection resource ARN and try again.</p>
capo_codeconnections.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
capo_codeconnections.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_codeconnections.types.list_repository_links_input.ListRepositoryLinksInput]",
) -> OperationResponse[
"capo_codeconnections.types.list_repository_links_output.ListRepositoryLinksOutput"
]:
import capo_codeconnections._operations.code_connections_20231201.list_repository_links
output, http_response = (
capo_codeconnections._operations.code_connections_20231201.list_repository_links.list_repository_links(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListRepositoryLinks")
)
input_: capo_codeconnections.types.list_repository_links_input.ListRepositoryLinksInput = {}
if max_results is not None:
input_["max_results"] = max_results
if next_token is not None:
input_["next_token"] = next_token
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|