Skip to content

batch_delete_unique_id async

batch_delete_unique_id(
    workflow_name: EntityName,
    unique_ids: UniqueIdList,
    *,
    config_overrides: Optional[AsyncEntityResolutionClientConfig] = None,
    input_source: Optional[str] = None,
) -> BatchDeleteUniqueIdOutput

Deletes multiple unique IDs in a matching workflow.

Parameters:

  • workflow_name (EntityName) –

    The name of the workflow.

  • input_source (Optional[str], default: None ) –

    The input source for the batch delete unique ID operation.

  • unique_ids (UniqueIdList) –

    The unique IDs to delete.

Raises:

Source code in docs_src/capo_entityresolution/_services/async_entity_resolution.py
async def batch_delete_unique_id(
    self,
    workflow_name: "capo_entityresolution.types.entity_name.EntityName",
    unique_ids: "capo_entityresolution.types.unique_id_list.UniqueIdList",
    *,
    config_overrides: Optional[AsyncEntityResolutionClientConfig] = None,
    input_source: Optional[str] = None,
) -> "capo_entityresolution.types.batch_delete_unique_id_output.BatchDeleteUniqueIdOutput":
    """<p>Deletes multiple unique IDs in a matching workflow.</p>

    Args:
        workflow_name: <p>The name of the workflow.</p>
        input_source: <p>The input source for the batch delete unique ID operation.</p>
        unique_ids: <p>The unique IDs to delete.</p>

    Raises:
        capo_entityresolution.errors.internal_server_exception.InternalServerException: <p>This exception occurs when there is an internal failure in the Entity Resolution service. </p>
        capo_entityresolution.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource couldn't be found. </p>
        capo_entityresolution.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by Entity Resolution. </p>
        capo_entityresolution.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_entityresolution.types.batch_delete_unique_id_input.BatchDeleteUniqueIdInput]",
    ) -> AsyncOperationResponse[
        "capo_entityresolution.types.batch_delete_unique_id_output.BatchDeleteUniqueIdOutput"
    ]:
        import capo_entityresolution._operations.aws_venice_service.batch_delete_unique_id

        (
            output,
            http_response,
        ) = await capo_entityresolution._operations.aws_venice_service.batch_delete_unique_id.async_batch_delete_unique_id(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("BatchDeleteUniqueId")
    )
    input_: capo_entityresolution.types.batch_delete_unique_id_input.BatchDeleteUniqueIdInput = {
        "workflow_name": workflow_name,
        "unique_ids": unique_ids,
    }
    if input_source is not None:
        input_["input_source"] = input_source

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