Deletes a custom pattern by specifying its name.
Parameters:
-
name
(NameString)
–
The name of the custom pattern that you want to delete.
Raises:
Source code in docs_src/capo_glue/_services/async_glue.py
| async def delete_custom_entity_type(
self,
name: "capo_glue.types.name_string.NameString",
*,
config_overrides: Optional[AsyncGlueClientConfig] = None,
) -> "capo_glue.types.delete_custom_entity_type_response.DeleteCustomEntityTypeResponse":
"""<p>Deletes a custom pattern by specifying its name.</p>
Args:
name: <p>The name of the custom pattern that you want to delete.</p>
Raises:
capo_glue.errors.access_denied_exception.AccessDeniedException: <p>Access to a resource was denied.</p>
capo_glue.errors.entity_not_found_exception.EntityNotFoundException: <p>A specified entity does not exist</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.operation_timeout_exception.OperationTimeoutException: <p>The operation timed out.</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_custom_entity_type_request.DeleteCustomEntityTypeRequest]",
) -> AsyncOperationResponse[
"capo_glue.types.delete_custom_entity_type_response.DeleteCustomEntityTypeResponse"
]:
import capo_glue._operations.aws_glue.delete_custom_entity_type
(
output,
http_response,
) = await capo_glue._operations.aws_glue.delete_custom_entity_type.async_delete_custom_entity_type(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteCustomEntityType")
)
input_: capo_glue.types.delete_custom_entity_type_request.DeleteCustomEntityTypeRequest = {
"name": name
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|