Deletes a business glossary from Glue Data Catalog. A glossary cannot be deleted if it still contains glossary terms.
Parameters:
-
identifier
(GlossaryId)
–
The unique identifier of the glossary to delete.
Raises:
Source code in docs_src/capo_glue/_services/async_glue.py
| async def delete_glossary(
self,
identifier: "capo_glue.types.glossary_id.GlossaryId",
*,
config_overrides: Optional[AsyncGlueClientConfig] = None,
) -> "capo_glue.types.delete_glossary_response.DeleteGlossaryResponse":
"""<p>Deletes a business glossary from Glue Data Catalog. A glossary cannot be deleted if it still contains glossary terms.</p>
Args:
identifier: <p>The unique identifier of the glossary 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.conflict_exception.ConflictException: <p>The <code>CreatePartitions</code> API was called on a table that has indexes enabled. </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.
"""
async def _handler(
req: "AsyncOperationRequest[capo_glue.types.delete_glossary_request.DeleteGlossaryRequest]",
) -> AsyncOperationResponse[
"capo_glue.types.delete_glossary_response.DeleteGlossaryResponse"
]:
import capo_glue._operations.aws_glue.delete_glossary
(
output,
http_response,
) = await capo_glue._operations.aws_glue.delete_glossary.async_delete_glossary(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteGlossary")
)
input_: capo_glue.types.delete_glossary_request.DeleteGlossaryRequest = {
"identifier": identifier
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|