Lists the resources registered to be managed by the Data Catalog.
Parameters:
-
filter_condition_list
(Optional[FilterConditionList], default:
None
)
–
Any applicable row-level and/or column-level filtering conditions for the resources.
-
max_results
(Optional[PageSize], default:
None
)
–
The maximum number of resource results.
-
next_token
(Optional[Token], default:
None
)
–
A continuation token, if this is not the first call to retrieve these resources.
Raises:
Source code in docs_src/capo_lakeformation/_services/lake_formation.py
| def list_resources(
self,
*,
config_overrides: Optional[LakeFormationClientConfig] = None,
filter_condition_list: Optional[
"capo_lakeformation.types.filter_condition_list.FilterConditionList"
] = None,
max_results: Optional["capo_lakeformation.types.page_size.PageSize"] = None,
next_token: Optional["capo_lakeformation.types.token.Token"] = None,
) -> "capo_lakeformation.types.list_resources_response.ListResourcesResponse":
"""<p>Lists the resources registered to be managed by the Data Catalog.</p>
Args:
filter_condition_list: <p>Any applicable row-level and/or column-level filtering conditions for the resources.</p>
max_results: <p>The maximum number of resource results.</p>
next_token: <p>A continuation token, if this is not the first call to retrieve these resources.</p>
Raises:
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.list_resources_request.ListResourcesRequest]",
) -> OperationResponse[
"capo_lakeformation.types.list_resources_response.ListResourcesResponse"
]:
import capo_lakeformation._operations.aws_lake_formation.list_resources
output, http_response = (
capo_lakeformation._operations.aws_lake_formation.list_resources.list_resources(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListResources")
)
input_: capo_lakeformation.types.list_resources_request.ListResourcesRequest = {}
if filter_condition_list is not None:
input_["filter_condition_list"] = filter_condition_list
if max_results is not None:
input_["max_results"] = max_results
if next_token is not None:
input_["next_token"] = next_token
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|