Skip to content

delete_glossary_term

delete_glossary_term(
    identifier: GlossaryTermId, *, config_overrides: Optional[GlueClientConfig] = None
) -> DeleteGlossaryTermResponse

Deletes a glossary term from Glue Data Catalog.

Parameters:

  • identifier (GlossaryTermId) –

    The unique identifier of the glossary term to delete.

Raises:

Source code in docs_src/capo_glue/_services/glue.py
def delete_glossary_term(
    self,
    identifier: "capo_glue.types.glossary_term_id.GlossaryTermId",
    *,
    config_overrides: Optional[GlueClientConfig] = None,
) -> "capo_glue.types.delete_glossary_term_response.DeleteGlossaryTermResponse":
    """<p>Deletes a glossary term from Glue Data Catalog.</p>

    Args:
        identifier: <p>The unique identifier of the glossary term to delete.</p>

    Raises:
        capo_glue.errors.access_denied_exception.AccessDeniedException: <p>Access to a resource was denied.</p>
        capo_glue.errors.concurrent_modification_exception.ConcurrentModificationException: <p>Two processes are trying to modify a resource simultaneously.</p>
        capo_glue.errors.internal_service_exception.InternalServiceException: <p>An internal service error occurred.</p>
        capo_glue.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</p>
        capo_glue.errors.throttling_exception.ThrottlingException: <p>The throttling threshhold was exceeded.</p>
        capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_glue.types.delete_glossary_term_request.DeleteGlossaryTermRequest]",
    ) -> OperationResponse[
        "capo_glue.types.delete_glossary_term_response.DeleteGlossaryTermResponse"
    ]:
        import capo_glue._operations.aws_glue.delete_glossary_term

        output, http_response = (
            capo_glue._operations.aws_glue.delete_glossary_term.delete_glossary_term(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteGlossaryTerm")
    )
    input_: capo_glue.types.delete_glossary_term_request.DeleteGlossaryTermRequest = {
        "identifier": identifier
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output