Deletes a form type from Glue Data Catalog. A form type cannot be deleted if it is still referenced by an asset type.
Parameters:
-
identifier
(FormTypeId)
–
The identifier of the form type to delete.
Raises:
Source code in docs_src/capo_glue/_services/glue.py
| def delete_form_type(
self,
identifier: "capo_glue.types.form_type_id.FormTypeId",
*,
config_overrides: Optional[GlueClientConfig] = None,
) -> "capo_glue.types.delete_form_type_response.DeleteFormTypeResponse":
"""<p>Deletes a form type from Glue Data Catalog. A form type cannot be deleted if it is still referenced by an asset type.</p>
Args:
identifier: <p>The identifier of the form type 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.
"""
def _handler(
req: "OperationRequest[capo_glue.types.delete_form_type_request.DeleteFormTypeRequest]",
) -> OperationResponse[
"capo_glue.types.delete_form_type_response.DeleteFormTypeResponse"
]:
import capo_glue._operations.aws_glue.delete_form_type
output, http_response = (
capo_glue._operations.aws_glue.delete_form_type.delete_form_type(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteFormType")
)
input_: capo_glue.types.delete_form_type_request.DeleteFormTypeRequest = {
"identifier": identifier
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|