Skip to content

delete_id_namespace async

delete_id_namespace(
    id_namespace_name: EntityName,
    *,
    config_overrides: Optional[AsyncEntityResolutionClientConfig] = None,
) -> DeleteIdNamespaceOutput

Deletes the IdNamespace with a given name. This operation returns a ResourceNotFoundException if an ID namespace with the given name does not exist.

Parameters:

  • id_namespace_name (EntityName) –

    The name of the ID namespace.

Raises:

Source code in docs_src/capo_entityresolution/_services/async_entity_resolution.py
async def delete_id_namespace(
    self,
    id_namespace_name: "capo_entityresolution.types.entity_name.EntityName",
    *,
    config_overrides: Optional[AsyncEntityResolutionClientConfig] = None,
) -> (
    "capo_entityresolution.types.delete_id_namespace_output.DeleteIdNamespaceOutput"
):
    """<p>Deletes the <code>IdNamespace</code> with a given name. This operation returns a <code>ResourceNotFoundException</code> if an ID namespace with the given name does not exist.</p>

    Args:
        id_namespace_name: <p>The name of the ID namespace.</p>

    Raises:
        capo_entityresolution.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action. </p>
        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.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling. </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.delete_id_namespace_input.DeleteIdNamespaceInput]",
    ) -> AsyncOperationResponse[
        "capo_entityresolution.types.delete_id_namespace_output.DeleteIdNamespaceOutput"
    ]:
        import capo_entityresolution._operations.aws_venice_service.delete_id_namespace

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteIdNamespace")
    )
    input_: capo_entityresolution.types.delete_id_namespace_input.DeleteIdNamespaceInput = {
        "id_namespace_name": id_namespace_name
    }

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