Skip to content

get_repository_sync_status async

get_repository_sync_status(
    branch: BranchName,
    repository_link_id: RepositoryLinkId,
    sync_type: SyncConfigurationType,
    *,
    config_overrides: Optional[AsyncCodeStarconnectionsClientConfig] = None,
) -> GetRepositorySyncStatusOutput

Returns details about the sync status for a repository. A repository sync uses Git sync to push and pull changes from your remote repository.

Parameters:

  • branch (BranchName) –

    The branch of the repository link for the requested repository sync status.

  • repository_link_id (RepositoryLinkId) –

    The repository link ID for the requested repository sync status.

  • sync_type (SyncConfigurationType) –

    The sync type of the requested sync status.

Raises:

Source code in docs_src/capo_codestar_connections/_services/async_code_starconnections.py
async def get_repository_sync_status(
    self,
    branch: "capo_codestar_connections.types.branch_name.BranchName",
    repository_link_id: "capo_codestar_connections.types.repository_link_id.RepositoryLinkId",
    sync_type: "capo_codestar_connections.types.sync_configuration_type.SyncConfigurationType",
    *,
    config_overrides: Optional[AsyncCodeStarconnectionsClientConfig] = None,
) -> "capo_codestar_connections.types.get_repository_sync_status_output.GetRepositorySyncStatusOutput":
    """<p>Returns details about the sync status for a repository. A repository sync uses Git sync to push and pull changes from your remote repository.</p>

    Args:
        branch: <p>The branch of the repository link for the requested repository sync status.</p>
        repository_link_id: <p>The repository link ID for the requested repository sync status.</p>
        sync_type: <p>The sync type of the requested sync status.</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.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.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</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.get_repository_sync_status_input.GetRepositorySyncStatusInput]",
    ) -> AsyncOperationResponse[
        "capo_codestar_connections.types.get_repository_sync_status_output.GetRepositorySyncStatusOutput"
    ]:
        import capo_codestar_connections._operations.code_star_connections_20191201.get_repository_sync_status

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetRepositorySyncStatus")
    )
    input_: capo_codestar_connections.types.get_repository_sync_status_input.GetRepositorySyncStatusInput = {
        "branch": branch,
        "repository_link_id": repository_link_id,
        "sync_type": sync_type,
    }

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