Skip to content

delete_repository_link async

delete_repository_link(
    repository_link_id: RepositoryLinkId,
    *,
    config_overrides: Optional[AsyncCodeStarconnectionsClientConfig] = None,
) -> DeleteRepositoryLinkOutput

Deletes the association between your connection and a specified external Git repository.

Parameters:

  • repository_link_id (RepositoryLinkId) –

    The ID of the repository link to be deleted.

Raises:

Source code in docs_src/capo_codestar_connections/_services/async_code_starconnections.py
async def delete_repository_link(
    self,
    repository_link_id: "capo_codestar_connections.types.repository_link_id.RepositoryLinkId",
    *,
    config_overrides: Optional[AsyncCodeStarconnectionsClientConfig] = None,
) -> "capo_codestar_connections.types.delete_repository_link_output.DeleteRepositoryLinkOutput":
    """<p>Deletes the association between your connection and a specified external Git repository.</p>

    Args:
        repository_link_id: <p>The ID of the repository link to be deleted.</p>

    Raises:
        capo_codestar_connections.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_codestar_connections.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_codestar_connections.errors.internal_server_exception.InternalServerException: <p>Received an internal server exception. Try again later.</p>
        capo_codestar_connections.errors.invalid_input_exception.InvalidInputException: <p>The input is not valid. Verify that the action is typed correctly.</p>
        capo_codestar_connections.errors.resource_not_found_exception.ResourceNotFoundException: <p>Resource not found. Verify the connection resource ARN and try again.</p>
        capo_codestar_connections.errors.sync_configuration_still_exists_exception.SyncConfigurationStillExistsException: <p>Unable to continue. The sync blocker still exists.</p>
        capo_codestar_connections.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_codestar_connections.errors.unsupported_provider_type_exception.UnsupportedProviderTypeException: <p>The specified provider type is not supported for connections.</p>
        capo_codestar_connections.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_codestar_connections.types.delete_repository_link_input.DeleteRepositoryLinkInput]",
    ) -> AsyncOperationResponse[
        "capo_codestar_connections.types.delete_repository_link_output.DeleteRepositoryLinkOutput"
    ]:
        import capo_codestar_connections._operations.code_star_connections_20191201.delete_repository_link

        (
            output,
            http_response,
        ) = await capo_codestar_connections._operations.code_star_connections_20191201.delete_repository_link.async_delete_repository_link(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteRepositoryLink")
    )
    input_: capo_codestar_connections.types.delete_repository_link_input.DeleteRepositoryLinkInput = {
        "repository_link_id": repository_link_id
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output