Delete the entire registry including schema and all of its versions. To get the status of the delete operation, you can call the GetRegistry API after the asynchronous call. Deleting a registry will deactivate all online operations for the registry such as the UpdateRegistry, CreateSchema, UpdateSchema, and RegisterSchemaVersion APIs.
Parameters:
-
registry_id
(RegistryId)
–
This is a wrapper structure that may contain the registry name and Amazon Resource Name (ARN).
Raises:
Source code in docs_src/capo_glue/_services/glue.py
| def delete_registry(
self,
registry_id: "capo_glue.types.registry_id.RegistryId",
*,
config_overrides: Optional[GlueClientConfig] = None,
) -> "capo_glue.types.delete_registry_response.DeleteRegistryResponse":
"""<p>Delete the entire registry including schema and all of its versions. To get the status of the delete operation, you can call the <code>GetRegistry</code> API after the asynchronous call. Deleting a registry will deactivate all online operations for the registry such as the <code>UpdateRegistry</code>, <code>CreateSchema</code>, <code>UpdateSchema</code>, and <code>RegisterSchemaVersion</code> APIs. </p>
Args:
registry_id: <p>This is a wrapper structure that may contain the registry name and Amazon Resource Name (ARN).</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.entity_not_found_exception.EntityNotFoundException: <p>A specified entity does not exist</p>
capo_glue.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</p>
capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_glue.types.delete_registry_input.DeleteRegistryInput]",
) -> OperationResponse[
"capo_glue.types.delete_registry_response.DeleteRegistryResponse"
]:
import capo_glue._operations.aws_glue.delete_registry
output, http_response = (
capo_glue._operations.aws_glue.delete_registry.delete_registry(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteRegistry")
)
input_: capo_glue.types.delete_registry_input.DeleteRegistryInput = {
"registry_id": registry_id
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|