Deregisters the resource as managed by the Data Catalog.
When you deregister a path, Lake Formation removes the path from the inline policy attached to your service-linked role.
Parameters:
-
resource_arn
(ResourceArnString)
–
The Amazon Resource Name (ARN) of the resource that you want to deregister.
Raises:
Source code in docs_src/capo_lakeformation/_services/lake_formation.py
| def deregister_resource(
self,
resource_arn: "capo_lakeformation.types.resource_arn_string.ResourceArnString",
*,
config_overrides: Optional[LakeFormationClientConfig] = None,
) -> "capo_lakeformation.types.deregister_resource_response.DeregisterResourceResponse":
"""<p>Deregisters the resource as managed by the Data Catalog.</p> <p>When you deregister a path, Lake Formation removes the path from the inline policy attached to your service-linked role.</p>
Args:
resource_arn: <p>The Amazon Resource Name (ARN) of the resource that you want to deregister.</p>
Raises:
capo_lakeformation.errors.entity_not_found_exception.EntityNotFoundException: <p>A specified entity does not exist.</p>
capo_lakeformation.errors.internal_service_exception.InternalServiceException: <p>An internal service error occurred.</p>
capo_lakeformation.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</p>
capo_lakeformation.errors.operation_timeout_exception.OperationTimeoutException: <p>The operation timed out.</p>
capo_lakeformation.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_lakeformation.types.deregister_resource_request.DeregisterResourceRequest]",
) -> OperationResponse[
"capo_lakeformation.types.deregister_resource_response.DeregisterResourceResponse"
]:
import capo_lakeformation._operations.aws_lake_formation.deregister_resource
output, http_response = (
capo_lakeformation._operations.aws_lake_formation.deregister_resource.deregister_resource(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeregisterResource")
)
input_: capo_lakeformation.types.deregister_resource_request.DeregisterResourceRequest = {
"resource_arn": resource_arn
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|