Skip to content

update_sync_blocker async

update_sync_blocker(
    id: Id,
    sync_type: SyncConfigurationType,
    resource_name: ResourceName,
    resolved_reason: ResolvedReason,
    *,
    config_overrides: Optional[AsyncCodeConnectionsClientConfig] = None,
) -> UpdateSyncBlockerOutput

Allows you to update the status of a sync blocker, resolving the blocker and allowing syncing to continue.

Parameters:

  • id (Id) –

    The ID of the sync blocker to be updated.

  • sync_type (SyncConfigurationType) –

    The sync type of the sync blocker to be updated.

  • resource_name (ResourceName) –

    The name of the resource for the sync blocker to be updated.

  • resolved_reason (ResolvedReason) –

    The reason for resolving the sync blocker.

Raises:

Source code in docs_src/capo_codeconnections/_services/async_code_connections.py
async def update_sync_blocker(
    self,
    id: "capo_codeconnections.types.id.Id",
    sync_type: "capo_codeconnections.types.sync_configuration_type.SyncConfigurationType",
    resource_name: "capo_codeconnections.types.resource_name.ResourceName",
    resolved_reason: "capo_codeconnections.types.resolved_reason.ResolvedReason",
    *,
    config_overrides: Optional[AsyncCodeConnectionsClientConfig] = None,
) -> (
    "capo_codeconnections.types.update_sync_blocker_output.UpdateSyncBlockerOutput"
):
    """<p>Allows you to update the status of a sync blocker, resolving the blocker and allowing syncing to continue.</p>

    Args:
        id: <p>The ID of the sync blocker to be updated.</p>
        sync_type: <p>The sync type of the sync blocker to be updated.</p>
        resource_name: <p>The name of the resource for the sync blocker to be updated.</p>
        resolved_reason: <p>The reason for resolving the sync blocker.</p>

    Raises:
        capo_codeconnections.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</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.retry_latest_commit_failed_exception.RetryLatestCommitFailedException: <p>Retrying the latest commit failed. Try again later.</p>
        capo_codeconnections.errors.sync_blocker_does_not_exist_exception.SyncBlockerDoesNotExistException: <p>Unable to continue. The sync blocker does not exist.</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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_codeconnections.types.update_sync_blocker_input.UpdateSyncBlockerInput]",
    ) -> AsyncOperationResponse[
        "capo_codeconnections.types.update_sync_blocker_output.UpdateSyncBlockerOutput"
    ]:
        import capo_codeconnections._operations.code_connections_20231201.update_sync_blocker

        (
            output,
            http_response,
        ) = await capo_codeconnections._operations.code_connections_20231201.update_sync_blocker.async_update_sync_blocker(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateSyncBlocker")
    )
    input_: capo_codeconnections.types.update_sync_blocker_input.UpdateSyncBlockerInput = {
        "id": id,
        "sync_type": sync_type,
        "resource_name": resource_name,
        "resolved_reason": resolved_reason,
    }

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